-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[aform, atable] added file attach component (#138)
* [aform, atable] added file attach component * [aform, atable] added changelog * [aForm, atable] upgrade vueuse for file attach * [graphql] parse graphQL responses and convert numbers to Decimals (#135) * feat: parse graphQL responses and convert numbers to Decimals * fix: add changelog --------- Co-authored-by: Rohan Bansal <[email protected]> * [project] avoid recursive rendering issues (#137) * fix: avoid recursive rendering issues * ci: add changelog for recursion render fix * fix: pnpm lockfile --------- Co-authored-by: Rohan Bansal <[email protected]> * fix: remove unnecessary changelogs * styled file attach componet and updated form fields to use CSS grid instead of flexbox * fixed some styling conflicts with the login component * added changelog * reverted form to flexbox --------- Co-authored-by: Devarsh Bhatt <[email protected]> Co-authored-by: Rohan Bansal <[email protected]> Co-authored-by: Curt Rabinak <[email protected]>
- Loading branch information
1 parent
4ce9430
commit 7ffeadf
Showing
14 changed files
with
140 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<template> | ||
<div class="aform__form-element aform__file-attach aform__grid--full"> | ||
|
||
|
||
<template v-if="files"> | ||
<div class="aform__file-attach-feedback"> | ||
<p> | ||
You have selected: <b>{{ `${files.length} ${files.length === 1 ? 'file' : 'files'}` }}</b> | ||
</p> | ||
<li v-for="file of files" :key="file.name"> | ||
{{ file.name }} | ||
</li> | ||
</div> | ||
</template> | ||
<button type="button" @click="open()" class="aform__form-btn"> | ||
{{ props.label }} | ||
</button> | ||
<button type="button" :disabled="!files" @click="reset()" class="aform__form-btn">Reset</button> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useFileDialog } from '@vueuse/core' | ||
import { SchemaTypes } from 'types/index' | ||
const props = defineProps<{ | ||
schema: SchemaTypes[] | ||
label: string | ||
collapsible?: boolean | ||
data?: any | ||
}>() | ||
const { files, open, reset, onChange } = useFileDialog() | ||
onChange(files => { | ||
return files | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
common/changes/@stonecrop/aform/file-attach_2024-04-25-18-48.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@stonecrop/aform", | ||
"comment": "added attach file component", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@stonecrop/aform" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/@stonecrop/themes/file-attach_2024-07-29-18-01.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@stonecrop/themes", | ||
"comment": "Styled file attach component", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@stonecrop/themes" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters