@bildvitta/quasar-ui-asteroid 2.16.0 → 3.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/QasActions.json +40 -0
- package/dist/api/QasActionsMenu.json +64 -0
- package/dist/api/QasAlert.json +40 -0
- package/dist/api/QasAppBar.json +52 -0
- package/dist/api/QasAppMenu.json +38 -0
- package/dist/api/QasAvatar.json +44 -0
- package/dist/api/QasBox.json +16 -0
- package/dist/api/QasBreakline.json +32 -0
- package/dist/api/QasBtn.json +16 -0
- package/dist/api/QasCard.json +52 -0
- package/dist/api/QasCheckboxGroup.json +38 -0
- package/dist/api/QasCopy.json +29 -0
- package/dist/api/QasDateTimeInput.json +60 -0
- package/dist/api/QasDebugger.json +13 -0
- package/dist/api/QasDelete.json +64 -0
- package/dist/api/QasDialog.json +109 -0
- package/dist/api/QasDialogRouter.json +31 -0
- package/dist/api/QasField.json +56 -0
- package/dist/api/QasFilters.json +111 -0
- package/dist/api/QasFormGenerator.json +92 -0
- package/dist/api/QasFormView.json +228 -0
- package/dist/api/QasGallery.json +54 -0
- package/dist/api/QasGridGenerator.json +108 -0
- package/dist/api/QasInput.json +40 -0
- package/dist/api/QasLabel.json +40 -0
- package/dist/api/QasLayout.json +47 -0
- package/dist/api/QasListItems.json +72 -0
- package/dist/api/QasListView.json +161 -0
- package/dist/api/QasMap.json +41 -0
- package/dist/api/QasNestedFields.json +223 -0
- package/dist/api/QasNumericInput.json +68 -0
- package/dist/api/QasPageHeader.json +36 -0
- package/dist/api/QasPasswordInput.json +121 -0
- package/dist/api/QasPasswordStrengthChecker.json +126 -0
- package/dist/api/QasProfile.json +74 -0
- package/dist/api/QasResizer.json +34 -0
- package/dist/api/QasSearchBox.json +91 -0
- package/dist/api/QasSelect.json +88 -0
- package/dist/api/QasSelectList.json +134 -0
- package/dist/api/QasSignaturePad.json +63 -0
- package/dist/api/QasSignatureUploader.json +41 -0
- package/dist/api/QasSingleView.json +147 -0
- package/dist/api/QasSortable.json +80 -0
- package/dist/api/QasTableGenerator.json +56 -0
- package/dist/api/QasTabsGenerator.json +90 -0
- package/dist/api/QasTextTruncate.json +38 -0
- package/dist/api/QasTransfer.json +70 -0
- package/dist/api/QasUploader.json +143 -0
- package/dist/asteroid.cjs.css +1 -0
- package/dist/asteroid.cjs.js +9307 -0
- package/dist/asteroid.cjs.min.js +6 -0
- package/dist/asteroid.esm.css +1 -0
- package/dist/asteroid.esm.js +9298 -0
- package/dist/asteroid.esm.min.js +6 -0
- package/dist/asteroid.umd.css +1 -0
- package/dist/asteroid.umd.js +9301 -0
- package/dist/asteroid.umd.min.js +6 -0
- package/dist/vetur/asteroid-attributes.json +1178 -0
- package/dist/vetur/asteroid-tags.json +535 -0
- package/package.json +41 -56
- package/src/assets/logo-modular.svg +1 -1
- package/src/asteroid.js +1 -0
- package/src/components/actions/QasActions.vue +45 -0
- package/src/components/actions/QasActions.yml +24 -0
- package/src/components/actions-menu/QasActionsMenu.vue +41 -14
- package/src/components/actions-menu/QasActionsMenu.yml +63 -0
- package/src/components/alert/QasAlert.vue +90 -0
- package/src/components/alert/QasAlert.yml +33 -0
- package/src/components/app-bar/QasAppBar.vue +16 -13
- package/src/components/app-bar/QasAppBar.yml +51 -0
- package/src/components/app-menu/QasAppMenu.vue +10 -12
- package/src/components/app-menu/QasAppMenu.yml +32 -0
- package/src/components/avatar/QasAvatar.vue +17 -9
- package/src/components/avatar/QasAvatar.yml +38 -0
- package/src/components/box/QasBox.vue +12 -4
- package/src/components/box/QasBox.yml +13 -0
- package/src/components/breakline/QasBreakline.vue +37 -0
- package/src/components/breakline/QasBreakline.yml +25 -0
- package/src/components/btn/QasBtn.vue +27 -24
- package/src/components/btn/QasBtn.yml +13 -0
- package/src/components/card/QasCard.vue +32 -33
- package/src/components/card/QasCard.yml +42 -0
- package/src/components/checkbox-group/QasCheckboxGroup.vue +50 -17
- package/src/components/checkbox-group/QasCheckboxGroup.yml +30 -0
- package/src/components/copy/QasCopy.vue +22 -11
- package/src/components/copy/QasCopy.yml +20 -0
- package/src/components/date-time-input/QasDateTimeInput.vue +18 -26
- package/src/components/date-time-input/QasDateTimeInput.yml +54 -0
- package/src/components/debugger/QasDebugger.vue +2 -0
- package/src/components/debugger/QasDebugger.yml +10 -0
- package/src/components/delete/QasDelete.vue +43 -16
- package/src/components/delete/QasDelete.yml +52 -0
- package/src/components/dialog/QasDialog.vue +63 -67
- package/src/components/dialog/QasDialog.yml +86 -0
- package/src/components/dialog-router/QasDialogRouter.vue +14 -4
- package/src/components/dialog-router/QasDialogRouter.yml +23 -0
- package/src/components/field/QasField.vue +21 -24
- package/src/components/field/QasField.yml +31 -0
- package/src/components/filters/QasFilters.vue +33 -26
- package/src/components/filters/QasFilters.yml +91 -0
- package/src/components/form-generator/QasFormGenerator.vue +13 -15
- package/src/components/form-generator/QasFormGenerator.yml +64 -0
- package/src/components/form-view/QasFormView.vue +129 -69
- package/src/components/form-view/QasFormView.yml +179 -0
- package/src/components/gallery/QasGallery.vue +47 -30
- package/src/components/gallery/QasGallery.yml +51 -0
- package/src/components/grid-generator/QasGridGenerator.vue +15 -7
- package/src/components/grid-generator/QasGridGenerator.yml +73 -0
- package/src/components/index.js +0 -0
- package/src/components/input/QasInput.vue +43 -36
- package/src/components/input/QasInput.yml +32 -0
- package/src/components/label/QasLabel.vue +14 -15
- package/src/components/label/QasLabel.yml +28 -0
- package/src/components/layout/QasLayout.vue +13 -21
- package/src/components/layout/QasLayout.yml +38 -0
- package/src/components/list-items/QasListItems.vue +15 -12
- package/src/components/list-items/QasListItems.yml +57 -0
- package/src/components/list-view/QasListView.vue +57 -31
- package/src/components/list-view/QasListView.yml +132 -0
- package/src/components/map/QasMap.vue +15 -31
- package/src/components/map/QasMap.yml +33 -0
- package/src/components/nested-fields/QasNestedFields.vue +57 -47
- package/src/components/nested-fields/QasNestedFields.yml +180 -0
- package/src/components/numeric-input/QasNumericInput.vue +31 -22
- package/src/components/numeric-input/QasNumericInput.yml +51 -0
- package/src/components/page-header/QasPageHeader.vue +20 -11
- package/src/components/page-header/QasPageHeader.yml +24 -0
- package/src/components/password-input/QasPasswordInput.vue +24 -21
- package/src/components/password-input/QasPasswordInput.yml +103 -0
- package/src/components/password-strength-checker/QasPasswordStrengthChecker.vue +51 -34
- package/src/components/password-strength-checker/QasPasswordStrengthChecker.yml +103 -0
- package/src/components/profile/QasProfile.vue +15 -13
- package/src/components/profile/QasProfile.yml +60 -0
- package/src/components/resizer/QasResizer.vue +3 -3
- package/src/components/resizer/QasResizer.yml +23 -0
- package/src/components/search-box/QasSearchBox.vue +50 -21
- package/src/components/search-box/QasSearchBox.yml +76 -0
- package/src/components/select/QasSelect.vue +51 -50
- package/src/components/select/QasSelect.yml +62 -0
- package/src/components/select-list/QasSelectList.vue +72 -53
- package/src/components/select-list/QasSelectList.yml +116 -0
- package/src/components/signature-pad/QasSignaturePad.vue +60 -40
- package/src/components/signature-pad/QasSignaturePad.yml +53 -0
- package/src/components/signature-uploader/QasSignatureUploader.vue +19 -17
- package/src/components/signature-uploader/QasSignatureUploader.yml +36 -0
- package/src/components/single-view/QasSingleView.vue +41 -22
- package/src/components/single-view/QasSingleView.yml +116 -0
- package/src/components/sortable/QasSortable.vue +51 -30
- package/src/components/sortable/QasSortable.yml +65 -0
- package/src/components/table-generator/QasTableGenerator.vue +112 -21
- package/src/components/table-generator/QasTableGenerator.yml +46 -0
- package/src/components/tabs-generator/QasTabsGenerator.vue +37 -25
- package/src/components/tabs-generator/QasTabsGenerator.yml +67 -0
- package/src/components/text-truncate/QasTextTruncate.vue +25 -17
- package/src/components/text-truncate/QasTextTruncate.yml +32 -0
- package/src/components/transfer/QasTransfer.vue +48 -49
- package/src/components/transfer/QasTransfer.yml +59 -0
- package/src/components/uploader/QasUploader.vue +169 -48
- package/src/components/uploader/QasUploader.yml +117 -0
- package/src/css/background.scss +1 -1
- package/src/css/border.scss +7 -6
- package/src/css/design-system.scss +0 -43
- package/src/css/fonts.scss +2 -28
- package/src/css/opacity.scss +0 -4
- package/src/css/set-brand.scss +15 -0
- package/src/css/transitions.scss +1 -1
- package/src/helpers/add-counter-suffix.js +3 -0
- package/src/helpers/{base64ToBlob.js → base-64-to-blob.js} +0 -0
- package/src/helpers/{constructObject.js → construct-object.js} +0 -0
- package/src/helpers/filter-object.js +8 -6
- package/src/helpers/filters.js +8 -4
- package/src/helpers/{greatestCommonDivisor.js → get-greatest-common-divisor.js} +0 -0
- package/src/helpers/get-slot-children-text.js +15 -0
- package/src/helpers/images.js +28 -0
- package/src/helpers/index.js +11 -59
- package/src/helpers/{isLocalDevelopment.js → is-local-development.js} +0 -0
- package/src/helpers/set-scroll-on-grab.js +61 -0
- package/src/index.cjs.js +1 -0
- package/src/index.esm.js +4 -0
- package/src/index.scss +19 -21
- package/src/index.umd.js +2 -0
- package/src/mixins/context.js +1 -1
- package/src/mixins/dialog-router.js +17 -0
- package/src/mixins/form.js +4 -12
- package/src/mixins/generator.js +14 -14
- package/src/mixins/index.js +2 -8
- package/src/mixins/password.js +73 -11
- package/src/mixins/screen.js +8 -6
- package/src/mixins/view.js +62 -22
- package/src/plugins/dialog/Dialog.js +14 -0
- package/src/plugins/dialog/Dialog.yml +10 -0
- package/src/plugins/index.js +4 -2
- package/src/plugins/{NotifyError.js → notify-error/NotifyError.js} +0 -0
- package/src/plugins/notify-error/NotifyError.yml +11 -0
- package/src/plugins/{NotifySuccess.js → notify-success/NotifySuccess.js} +3 -3
- package/src/plugins/notify-success/NotifySuccess.yml +11 -0
- package/src/store/history.js +43 -0
- package/src/store/index.js +1 -0
- package/src/vue-plugin.js +185 -0
- package/.babelrc +0 -12
- package/.storybook/main.js +0 -35
- package/.storybook/preview.js +0 -26
- package/debug.log +0 -1
- package/index.js +0 -4
- package/jest-setup.js +0 -1
- package/jest.config.json +0 -22
- package/postcss.config.js +0 -5
- package/src/components/Introduction.stories.mdx +0 -12
- package/src/components/actions-menu/QasActionsMenu.stories.js +0 -73
- package/src/components/app-bar/QasAppBar.stories.js +0 -84
- package/src/components/app-menu/QasAppMenu.stories.js +0 -66
- package/src/components/apps-menu/QasAppsMenu.spec.js +0 -58
- package/src/components/apps-menu/QasAppsMenu.stories.js +0 -54
- package/src/components/apps-menu/QasAppsMenu.vue +0 -48
- package/src/components/avatar/QasAvatar.spec.js +0 -14
- package/src/components/avatar/QasAvatar.stories.js +0 -52
- package/src/components/box/QasBox.spec.js +0 -18
- package/src/components/box/QasBox.stories.js +0 -35
- package/src/components/break-line/QasBreakLine.stories.js +0 -57
- package/src/components/break-line/QasBreakLine.vue +0 -52
- package/src/components/btn/QasBtn.stories.js +0 -45
- package/src/components/btn-actions/QasBtnActions.stories.js +0 -77
- package/src/components/btn-actions/QasBtnActions.vue +0 -54
- package/src/components/card/QasCard.stories.js +0 -126
- package/src/components/checkbox-group/QasCheckboxGroup.stories.js +0 -59
- package/src/components/copy/QasCopy.stories.js +0 -41
- package/src/components/date-time-input/QasDateTimeInput.stories.js +0 -67
- package/src/components/debugger/QasDebugger.stories.js +0 -33
- package/src/components/delete/QasDelete.stories.js +0 -80
- package/src/components/dialog/QasDialog.stories.js +0 -139
- package/src/components/dialog-router/QasDialogRouter.stories.js +0 -38
- package/src/components/field/QasField.stories.js +0 -181
- package/src/components/filters/QasFilters.stories.js +0 -121
- package/src/components/form-generator/QasFormGenerator.stories.js +0 -115
- package/src/components/form-view/QasFormView.stories.js +0 -236
- package/src/components/gallery/QasGallery.stories.js +0 -91
- package/src/components/grid-generator/QasGridGenerator.stories.js +0 -142
- package/src/components/input/QasInput.stories.js +0 -78
- package/src/components/label/QasLabel.stories.js +0 -60
- package/src/components/layout/QasLayout.stories.js +0 -104
- package/src/components/list-items/QasListItems.stories.js +0 -135
- package/src/components/list-view/QasListView.stories.js +0 -168
- package/src/components/map/QasMap.stories.js +0 -75
- package/src/components/nested-fields/QasNestedFields.stories.js +0 -255
- package/src/components/numeric-input/QasNumericInput.stories.js +0 -92
- package/src/components/page-header/QasPageHeader.stories.js +0 -61
- package/src/components/password-input/QasPasswordInput.stories.js +0 -76
- package/src/components/password-strength-checker/QasPasswordStrengthChecker.stories.js +0 -54
- package/src/components/profile/QasProfile.stories.js +0 -131
- package/src/components/resizer/QasResizer.stories.js +0 -43
- package/src/components/search-box/QasSearchBox.stories.js +0 -111
- package/src/components/select/QasSelect.stories.js +0 -113
- package/src/components/select-list/QasSelectList.stories.js +0 -153
- package/src/components/signature-pad/QasSignaturePad.stories.js +0 -51
- package/src/components/signature-uploader/QasSignatureUploader.stories.js +0 -69
- package/src/components/single-view/QasSingleView.stories.js +0 -130
- package/src/components/sortable/QasSortable.stories.js +0 -80
- package/src/components/table-generator/QasTableGenerator.stories.js +0 -120
- package/src/components/tabs-generator/QasTabsGenerator.stories.js +0 -145
- package/src/components/text-truncate/QasTextTruncate.stories.js +0 -55
- package/src/components/tip/QasTip.stories.js +0 -57
- package/src/components/tip/QasTip.vue +0 -68
- package/src/components/tooltip/QasTooltip.stories.js +0 -63
- package/src/components/tooltip/QasTooltip.vue +0 -81
- package/src/components/transfer/QasTransfer.stories.js +0 -118
- package/src/components/uploader/QasCustomUploader.vue +0 -120
- package/src/components/uploader/QasUploader.stories.js +0 -139
- package/src/directives/Test.js +0 -13
- package/src/helpers/historyHandler.js +0 -52
- package/src/helpers/label.js +0 -3
- package/src/index.js +0 -249
- package/src/mixins/map-markers.js +0 -26
- package/src/mixins/unsaved-changes.js +0 -24
- package/src/mixins/uploader.js +0 -30
- package/src/mocks/json/user.json +0 -27
- package/src/mocks/json/users-new.json +0 -23
- package/src/mocks/json/users.json +0 -97
- package/src/mocks/storeModule.js +0 -71
- package/src/pages/Forbidden.vue +0 -6
- package/src/pages/NotFound.vue +0 -6
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import QasGallery from './QasGallery.vue'
|
|
2
|
-
|
|
3
|
-
const noSummary = {
|
|
4
|
-
type: { summary: null }
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
component: QasGallery,
|
|
9
|
-
title: 'Components/Gallery',
|
|
10
|
-
|
|
11
|
-
parameters: {
|
|
12
|
-
docs: {
|
|
13
|
-
description: {
|
|
14
|
-
component: 'Gallery component, with list of images and carousel.'
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
argTypes: {
|
|
20
|
-
// Props
|
|
21
|
-
carouselNextIcon: {
|
|
22
|
-
description: 'Define the next image icon for carousel.'
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
carouselPreviousIcon: {
|
|
26
|
-
description: 'Define the previous image icon for carousel.'
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
height: {
|
|
30
|
-
description: 'Define the height of item.'
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
initialLength: {
|
|
34
|
-
description: 'Define the initial quantity of items.'
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
items: {
|
|
38
|
-
description: 'List of items.'
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
loadLength: {
|
|
42
|
-
description: 'Define the quantity of items to load.'
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
showMoreLabel: {
|
|
46
|
-
description: 'Text that will show for load more items.'
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
// Slots
|
|
50
|
-
default: {
|
|
51
|
-
description: 'Main content.',
|
|
52
|
-
table: noSummary
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const Template = (args, { argTypes }) => ({
|
|
58
|
-
components: { QasGallery },
|
|
59
|
-
props: Object.keys(argTypes),
|
|
60
|
-
template:
|
|
61
|
-
`<qas-box class="q-pa-lg">
|
|
62
|
-
<qas-gallery :items="images" />
|
|
63
|
-
</qas-box>`
|
|
64
|
-
})
|
|
65
|
-
|
|
66
|
-
const images = [
|
|
67
|
-
'https://cdn.pixabay.com/photo/2016/10/10/12/54/space-1728314_960_720.jpg',
|
|
68
|
-
'https://cdn.pixabay.com/photo/2011/12/14/12/21/orion-nebula-11107_960_720.jpg',
|
|
69
|
-
'https://cdn.pixabay.com/photo/2016/10/10/12/54/space-1728314_960_720.jpg',
|
|
70
|
-
'https://cdn.pixabay.com/photo/2011/12/14/12/21/orion-nebula-11107_960_720.jpg',
|
|
71
|
-
'https://cdn.pixabay.com/photo/2016/10/10/12/54/space-1728314_960_720.jpg',
|
|
72
|
-
'https://cdn.pixabay.com/photo/2011/12/14/12/21/orion-nebula-11107_960_720.jpg',
|
|
73
|
-
'https://cdn.pixabay.com/photo/2016/10/10/12/54/space-1728314_960_720.jpg',
|
|
74
|
-
'https://cdn.pixabay.com/photo/2011/12/14/12/21/orion-nebula-11107_960_720.jpg',
|
|
75
|
-
'https://cdn.pixabay.com/photo/2016/10/10/12/54/space-1728314_960_720.jpg',
|
|
76
|
-
'https://cdn.pixabay.com/photo/2011/12/14/12/21/orion-nebula-11107_960_720.jpg',
|
|
77
|
-
'https://cdn.pixabay.com/photo/2016/10/10/12/54/space-1728314_960_720.jpg',
|
|
78
|
-
'https://cdn.pixabay.com/photo/2011/12/14/12/21/orion-nebula-11107_960_720.jpg'
|
|
79
|
-
]
|
|
80
|
-
|
|
81
|
-
export const Default = Template.bind({})
|
|
82
|
-
Default.args = { images }
|
|
83
|
-
|
|
84
|
-
Default.parameters = {
|
|
85
|
-
docs: {
|
|
86
|
-
source: {
|
|
87
|
-
code:
|
|
88
|
-
'<qas-gallery :photos="images" />'
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import QasGridGenerator from './QasGridGenerator.vue'
|
|
2
|
-
|
|
3
|
-
const slotDefaults = {
|
|
4
|
-
table: {
|
|
5
|
-
category: 'slots',
|
|
6
|
-
defaultValue: {
|
|
7
|
-
detail: JSON.stringify({ field: 'object' }),
|
|
8
|
-
summary: '{}'
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
component: QasGridGenerator,
|
|
15
|
-
title: 'Components/GridGenerator',
|
|
16
|
-
|
|
17
|
-
parameters: {
|
|
18
|
-
docs: {
|
|
19
|
-
description: {
|
|
20
|
-
component: 'Generates a grid with header (as `fields`) and content (as `results`).'
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
argTypes: {
|
|
26
|
-
// Props
|
|
27
|
-
columns: {
|
|
28
|
-
description: 'Define size of each column.',
|
|
29
|
-
table: {
|
|
30
|
-
defaultValue: { summary: '[]' }
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
contentClass: {
|
|
35
|
-
description: 'CSS classes for each result value.'
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
emptyResultText: {
|
|
39
|
-
description: 'Message for fields with empty values.'
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
fields: {
|
|
43
|
-
description: 'Define header value for each `field`.'
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
gutter: {
|
|
47
|
-
description: 'Gutter space by Quasar convention. `q-col-gutter-{$gutter}`.'
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
headerClass: {
|
|
51
|
-
description: 'CSS classes for each header value.'
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
hideEmptyResult: {
|
|
55
|
-
description: 'Omits cell when result value is empty.'
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
result: {
|
|
59
|
-
description: 'Define result value for each `field`.'
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
// Slots
|
|
63
|
-
default: {
|
|
64
|
-
table: { disable: true }
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
content: {
|
|
68
|
-
description: 'Content value defaults.',
|
|
69
|
-
...slotDefaults
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
'field-[field.name]': {
|
|
73
|
-
description: 'Each cell inside `fields` is a slot.',
|
|
74
|
-
...slotDefaults
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
header: {
|
|
78
|
-
description: 'Header value defaults.',
|
|
79
|
-
...slotDefaults
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
const Template = (args, { argTypes }) => ({
|
|
85
|
-
components: { QasGridGenerator },
|
|
86
|
-
props: Object.keys(argTypes),
|
|
87
|
-
template:
|
|
88
|
-
'<qas-grid-generator v-bind="$props" />'
|
|
89
|
-
})
|
|
90
|
-
|
|
91
|
-
const fields = {
|
|
92
|
-
name: { name: 'name', label: 'Full name', type: 'text' },
|
|
93
|
-
email: { name: 'email', label: 'E-mail', type: 'email' },
|
|
94
|
-
phone: { name: 'phone', label: 'Phone', type: 'text', mask: 'phone' },
|
|
95
|
-
gender: { name: 'gender', label: 'Gender', type: 'text' },
|
|
96
|
-
document: { name: 'document', label: 'Document', type: 'text', mask: 'document' },
|
|
97
|
-
address: { name: 'address', label: 'Address', type: 'text' }
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
const result = {
|
|
101
|
-
name: 'John Appleseed',
|
|
102
|
-
email: 'john.appleseed@example.com',
|
|
103
|
-
phone: '99999999999',
|
|
104
|
-
gender: 'Male',
|
|
105
|
-
document: '99999999999',
|
|
106
|
-
address: '747 Austen View'
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
const columns = {
|
|
110
|
-
name: { col: 12, sm: 6 },
|
|
111
|
-
email: { col: 12, sm: 6 },
|
|
112
|
-
phone: { col: 12, sm: 6 },
|
|
113
|
-
gender: { col: 12, sm: 6 },
|
|
114
|
-
document: { col: 12 },
|
|
115
|
-
address: { col: 12 }
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export const Default = Template.bind({})
|
|
119
|
-
Default.args = {
|
|
120
|
-
columns: [],
|
|
121
|
-
fields,
|
|
122
|
-
result
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
Default.parameters = {
|
|
126
|
-
docs: {
|
|
127
|
-
source: { code: '<qas-grid-generator :field="fields" :result="result" />' }
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export const CustomColumns = Template.bind({})
|
|
132
|
-
CustomColumns.args = {
|
|
133
|
-
columns,
|
|
134
|
-
fields,
|
|
135
|
-
result
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
CustomColumns.parameters = {
|
|
139
|
-
docs: {
|
|
140
|
-
source: { code: `<qas-grid-generator :field="fields" :result="result" :columns="${JSON.stringify(columns)}" />` }
|
|
141
|
-
}
|
|
142
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import QasInput from './QasInput.vue'
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
component: QasInput,
|
|
5
|
-
title: 'Components/Input',
|
|
6
|
-
|
|
7
|
-
parameters: {
|
|
8
|
-
docs: {
|
|
9
|
-
description: {
|
|
10
|
-
component: 'Extends [QInput](https://quasar.dev/vue-components/input). Can mask raw values by default.'
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
argTypes: {
|
|
16
|
-
// Props
|
|
17
|
-
value: {
|
|
18
|
-
description: 'Input text value.',
|
|
19
|
-
control: { type: null }
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
// Slots
|
|
23
|
-
default: {
|
|
24
|
-
description: 'Field main content',
|
|
25
|
-
table: {
|
|
26
|
-
type: { summary: null }
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const Template = (args, { argTypes }) => ({
|
|
33
|
-
components: { QasInput },
|
|
34
|
-
props: Object.keys(argTypes),
|
|
35
|
-
|
|
36
|
-
data () {
|
|
37
|
-
return {
|
|
38
|
-
text: ''
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
template:
|
|
43
|
-
`<div>
|
|
44
|
-
<qas-input v-bind="$props" v-model="text" />
|
|
45
|
-
<pre v-if="text">{{ text }}</pre>
|
|
46
|
-
</div>`
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
function setTemplate (mask) {
|
|
50
|
-
const code = mask
|
|
51
|
-
? `<qas-input v-model="text" mask="${mask}" />`
|
|
52
|
-
: '<qas-input v-model="text" />'
|
|
53
|
-
|
|
54
|
-
return { docs: { source: { code } } }
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export const Default = Template.bind({})
|
|
58
|
-
Default.parameters = setTemplate()
|
|
59
|
-
|
|
60
|
-
export const PhoneMask = Template.bind({})
|
|
61
|
-
PhoneMask.args = { mask: 'phone' }
|
|
62
|
-
PhoneMask.parameters = setTemplate('phone')
|
|
63
|
-
|
|
64
|
-
export const DocumentMask = Template.bind({})
|
|
65
|
-
DocumentMask.args = { mask: 'document' }
|
|
66
|
-
DocumentMask.parameters = setTemplate('document')
|
|
67
|
-
|
|
68
|
-
export const PersonalDocumentMask = Template.bind({})
|
|
69
|
-
PersonalDocumentMask.args = { mask: 'personal-document' }
|
|
70
|
-
PersonalDocumentMask.parameters = setTemplate('personal-document')
|
|
71
|
-
|
|
72
|
-
export const CompanyDocumentMask = Template.bind({})
|
|
73
|
-
CompanyDocumentMask.args = { mask: 'company-document' }
|
|
74
|
-
CompanyDocumentMask.parameters = setTemplate('company-document')
|
|
75
|
-
|
|
76
|
-
export const PostalCodeMask = Template.bind({})
|
|
77
|
-
PostalCodeMask.args = { mask: 'postal-code' }
|
|
78
|
-
PostalCodeMask.parameters = setTemplate('postal-code')
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import QasLabel from './QasLabel.vue'
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
component: QasLabel,
|
|
5
|
-
title: 'Components/Label',
|
|
6
|
-
|
|
7
|
-
parameters: {
|
|
8
|
-
docs: {
|
|
9
|
-
description: {
|
|
10
|
-
component: 'Standardizes the display of labels for a form\'s field.'
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
argTypes: {
|
|
16
|
-
// Events
|
|
17
|
-
label: {
|
|
18
|
-
description: 'Text to be displayed.'
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
margin: {
|
|
22
|
-
description: 'Margin spaces.'
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
quantity: {
|
|
26
|
-
description: 'Number to be displayed after label, inside parentheses. E.g. Groups (9).'
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
// Slots
|
|
30
|
-
default: {
|
|
31
|
-
description: 'Main content, will be replace label prop.',
|
|
32
|
-
table: {
|
|
33
|
-
defaultValue: {
|
|
34
|
-
detail: JSON.stringify({ formattedLabel: 'string' }),
|
|
35
|
-
summary: '{}'
|
|
36
|
-
},
|
|
37
|
-
type: { summary: null }
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const Template = (args, { argTypes }) => ({
|
|
44
|
-
components: { QasLabel },
|
|
45
|
-
props: Object.keys(argTypes),
|
|
46
|
-
|
|
47
|
-
template:
|
|
48
|
-
'<qas-label v-bind="$props" />'
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
export const Default = Template.bind({})
|
|
52
|
-
Default.args = {
|
|
53
|
-
label: 'My label!'
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export const Quantity = Template.bind({})
|
|
57
|
-
Quantity.args = {
|
|
58
|
-
label: 'My label, but with quantity!',
|
|
59
|
-
quantity: 10
|
|
60
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import QasLayout from './QasLayout.vue'
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
component: QasLayout,
|
|
5
|
-
title: 'Components/Layout',
|
|
6
|
-
|
|
7
|
-
parameters: {
|
|
8
|
-
docs: {
|
|
9
|
-
description: {
|
|
10
|
-
component: 'Implementation of [QLayout](https://quasar.dev/layout/layout#introduction) with [QasAppMenu](http://localhost:6006/?path=/docs/components-appmenu--default) and [QasAppBar](http://localhost:6006/?path=/docs/components-appbar--default).'
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
argTypes: {
|
|
16
|
-
// Props
|
|
17
|
-
appMenuProps: {
|
|
18
|
-
description: '[QasAppMenu props](http://localhost:6006/?path=/docs/components-appmenu--default).'
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
appBarProps: {
|
|
22
|
-
description: '[QasAppBar props](http://localhost:6006/?path=/docs/components-appbar--default).'
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
appMenuEvents: {
|
|
26
|
-
description: '[QasAppMenu events](http://localhost:6006/?path=/docs/components-appmenu--default).'
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
appBarEvents: {
|
|
30
|
-
description: '[QasAppBar events](http://localhost:6006/?path=/docs/components-appbar--default).'
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
value: {
|
|
34
|
-
description: 'Model value for toggle drawer.'
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
// Slots
|
|
38
|
-
'app-bar': {
|
|
39
|
-
description: 'header slot.'
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
'app-menu': {
|
|
43
|
-
description: 'left side menu.'
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
default: {
|
|
47
|
-
description: 'page container with router-view.'
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
// events
|
|
51
|
-
input: {
|
|
52
|
-
description: 'input model event for toggle drawer.'
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const Template = (args, { argTypes }) => ({
|
|
58
|
-
components: { QasLayout },
|
|
59
|
-
props: Object.keys(argTypes),
|
|
60
|
-
|
|
61
|
-
template: '<qas-layout v-bind="$props" />'
|
|
62
|
-
})
|
|
63
|
-
|
|
64
|
-
export const Default = Template.bind({})
|
|
65
|
-
|
|
66
|
-
Default.args = {
|
|
67
|
-
appMenuProps: {
|
|
68
|
-
items: [
|
|
69
|
-
{
|
|
70
|
-
label: 'Dialog',
|
|
71
|
-
icon: 'o_home',
|
|
72
|
-
to: { path: '/dialog-form' }
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
{
|
|
76
|
-
label: 'Teste expansivo',
|
|
77
|
-
icon: 'o_edit'
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
|
|
81
|
-
modules: [
|
|
82
|
-
{
|
|
83
|
-
label: 'Modulo de teste',
|
|
84
|
-
value: 'test',
|
|
85
|
-
path: 'http://localhost:8080'
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
label: 'Segundo modulo de teste',
|
|
89
|
-
value: 'test-2',
|
|
90
|
-
path: 'https://google.com'
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
appBarProps: {
|
|
96
|
-
isAuth: true,
|
|
97
|
-
title: 'Some title',
|
|
98
|
-
user: {
|
|
99
|
-
photo: 'https://www.abc.net.au/cm/lb/6367016/data/alan2c-see-the-person-data.jpg',
|
|
100
|
-
name: 'Eduardo Lima',
|
|
101
|
-
email: 'eduardolima@gmail.com'
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import QasListItems from './QasListItems.vue'
|
|
2
|
-
|
|
3
|
-
const slotDefaults = {
|
|
4
|
-
defaultValue: {
|
|
5
|
-
detail: JSON.stringify({
|
|
6
|
-
item: 'object',
|
|
7
|
-
index: 'number'
|
|
8
|
-
}),
|
|
9
|
-
summary: '{}'
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
type: {
|
|
13
|
-
summary: null
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export default {
|
|
18
|
-
component: QasListItems,
|
|
19
|
-
title: 'Components/ListItems',
|
|
20
|
-
|
|
21
|
-
parameters: {
|
|
22
|
-
docs: {
|
|
23
|
-
description: {
|
|
24
|
-
component: 'Extends [QList and QItem](https://v1.quasar.dev/vue-components/list-and-list-items#qlist-api) from quasar for creating a list of items.'
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
argTypes: {
|
|
30
|
-
// Props
|
|
31
|
-
iconProps: {
|
|
32
|
-
description: 'Icon props.'
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
list: {
|
|
36
|
-
description: 'Array of object.'
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
redirectKey: {
|
|
40
|
-
control: null,
|
|
41
|
-
description: 'Item key that will be the value of the redirect.'
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
paramKey: {
|
|
45
|
-
control: null,
|
|
46
|
-
description: 'Redirect parameter key.'
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
useIconRedirect: {
|
|
50
|
-
description: 'Only redirect when clicked on icon.'
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
to: {
|
|
54
|
-
description: 'Router config like `name`.'
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
// Slots
|
|
58
|
-
|
|
59
|
-
item: {
|
|
60
|
-
description: 'Main item slot.',
|
|
61
|
-
table: {
|
|
62
|
-
...slotDefaults
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
'item-section-left': {
|
|
67
|
-
description: 'Left section slot.',
|
|
68
|
-
table: {
|
|
69
|
-
...slotDefaults
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
'item-section-side': {
|
|
74
|
-
description: 'Side section slot (used for actions).',
|
|
75
|
-
table: {
|
|
76
|
-
...slotDefaults
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function Generate (template) {
|
|
83
|
-
return (args, { argTypes }) => ({
|
|
84
|
-
components: { QasListItems },
|
|
85
|
-
props: Object.keys(argTypes),
|
|
86
|
-
template
|
|
87
|
-
})
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
const args = {
|
|
91
|
-
list: [
|
|
92
|
-
{
|
|
93
|
-
name: 'item 1',
|
|
94
|
-
email: 'email1@example.com',
|
|
95
|
-
uuid: 'uuid1'
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: 'item 2',
|
|
99
|
-
email: 'email2@example.com',
|
|
100
|
-
uuid: 'uuid2'
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
name: 'item 3',
|
|
104
|
-
email: 'email3@example.com',
|
|
105
|
-
uuid: 'uuid3'
|
|
106
|
-
}
|
|
107
|
-
],
|
|
108
|
-
|
|
109
|
-
useIconRedirect: true
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
const itemTemplate = (
|
|
113
|
-
`
|
|
114
|
-
<qas-list-items v-bind="$props">
|
|
115
|
-
<template #item-section-left="{ item, index }">
|
|
116
|
-
<div>
|
|
117
|
-
name: {{ item.name }}
|
|
118
|
-
index: {{ index }}
|
|
119
|
-
</div>
|
|
120
|
-
</template>
|
|
121
|
-
</qas-list-items>
|
|
122
|
-
`
|
|
123
|
-
)
|
|
124
|
-
|
|
125
|
-
export const Item = Generate(itemTemplate).bind({})
|
|
126
|
-
|
|
127
|
-
Item.args = args
|
|
128
|
-
|
|
129
|
-
Item.parameters = {
|
|
130
|
-
docs: {
|
|
131
|
-
source: {
|
|
132
|
-
code: itemTemplate
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|