@bildvitta/quasar-ui-asteroid 3.19.0-beta.8-alpha.11 → 3.19.0-beta.9
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/package.json +2 -1
- package/src/asteroid.js +92 -91
- package/src/components/actions/QasActions.vue +116 -116
- package/src/components/actions/QasActions.yml +49 -49
- package/src/components/actions-menu/QasActionsMenu.vue +276 -276
- package/src/components/actions-menu/QasActionsMenu.yml +89 -89
- package/src/components/actions-menu/composables/use-delete.js +30 -30
- package/src/components/actions-menu/composables/use-double-split-actions.js +42 -42
- package/src/components/actions-menu/composables/use-options-actions.js +27 -27
- package/src/components/actions-menu/composables/use-single-action.js +17 -17
- package/src/components/actions-menu/composables/use-single-split-actions.js +35 -35
- package/src/components/actions-menu/composables/use-tooltips.js +43 -43
- package/src/components/actions-menu/utils/get-label.js +3 -3
- package/src/components/actions-menu/utils/set-click-handler.js +6 -6
- package/src/components/alert/QasAlert.test.js +43 -43
- package/src/components/alert/QasAlert.vue +239 -238
- package/src/components/alert/QasAlert.yml +61 -61
- package/src/components/app-bar/QasAppBar.vue +121 -121
- package/src/components/app-bar/QasAppBar.yml +44 -44
- package/src/components/app-menu/QasAppMenu.vue +518 -518
- package/src/components/app-menu/QasAppMenu.yml +83 -83
- package/src/components/app-menu/composables/use-app-menu-dropdown.js +71 -71
- package/src/components/app-menu/composables/use-app-user.js +49 -49
- package/src/components/app-menu/composables/use-development-badge.js +23 -23
- package/src/components/app-menu/private/PvAppMenuDropdown.vue +73 -73
- package/src/components/app-user/QasAppUser.vue +295 -295
- package/src/components/app-user/QasAppUser.yml +61 -61
- package/src/components/avatar/QasAvatar.vue +95 -95
- package/src/components/avatar/QasAvatar.yml +38 -38
- package/src/components/avatar/enums/AvatarColors.js +10 -10
- package/src/components/badge/QasBadge.vue +64 -64
- package/src/components/badge/QasBadge.yml +55 -55
- package/src/components/board-generator/QasBoardGenerator.vue +751 -751
- package/src/components/board-generator/QasBoardGenerator.yml +221 -221
- package/src/components/box/QasBox.vue +51 -62
- package/src/components/box/QasBox.yml +29 -29
- package/src/components/breakline/QasBreakline.vue +38 -38
- package/src/components/breakline/QasBreakline.yml +25 -25
- package/src/components/btn/QasBtn.vue +222 -231
- package/src/components/btn/QasBtn.yml +59 -59
- package/src/components/btn-dropdown/QasBtnDropdown.vue +153 -153
- package/src/components/btn-dropdown/QasBtnDropdown.yml +64 -64
- package/src/components/card/QasCard.vue +147 -147
- package/src/components/card/QasCard.yml +44 -44
- package/src/components/card-image/QasCardImage.vue +97 -97
- package/src/components/card-image/QasCardImage.yml +48 -48
- package/src/components/chart-view/QasChartView.vue +504 -504
- package/src/components/chart-view/QasChartView.yml +115 -115
- package/src/components/chart-view/config/charts/bar.js +45 -45
- package/src/components/chart-view/config/charts/doughnut.js +43 -43
- package/src/components/chart-view/config/charts/index.js +9 -9
- package/src/components/chart-view/config/charts/line.js +57 -57
- package/src/components/chart-view/config/defaults/colors.js +19 -19
- package/src/components/chart-view/config/defaults/font.js +5 -5
- package/src/components/chart-view/config/defaults/index.js +2 -2
- package/src/components/chart-view/config/index.js +3 -3
- package/src/components/chart-view/config/plugins/index.js +3 -3
- package/src/components/chart-view/config/plugins/legend.js +9 -9
- package/src/components/chart-view/config/plugins/tooltip.js +15 -15
- package/src/components/chart-view/config/plugins/zoom.js +31 -31
- package/src/components/checkbox/QasCheckbox.vue +253 -253
- package/src/components/checkbox/QasCheckbox.yml +49 -49
- package/src/components/copy/QasCopy.vue +54 -54
- package/src/components/copy/QasCopy.yml +23 -23
- package/src/components/date/QasDate.vue +600 -600
- package/src/components/date/QasDate.yml +69 -69
- package/src/components/date/enums/DateMaskOptions.js +6 -6
- package/src/components/date-time-input/QasDateTimeInput.vue +286 -286
- package/src/components/date-time-input/QasDateTimeInput.yml +74 -74
- package/src/components/debugger/QasDebugger.vue +31 -31
- package/src/components/debugger/QasDebugger.yml +10 -10
- package/src/components/delete/QasDelete.vue +102 -102
- package/src/components/delete/QasDelete.yml +59 -59
- package/src/components/dialog/QasDialog.vue +218 -218
- package/src/components/dialog/QasDialog.yml +117 -117
- package/src/components/dialog/composables/use-cancel.js +40 -40
- package/src/components/dialog/composables/use-dynamic-components.js +86 -86
- package/src/components/dialog/composables/use-ok.js +45 -45
- package/src/components/dialog-router/QasDialogRouter.vue +86 -86
- package/src/components/dialog-router/QasDialogRouter.yml +23 -23
- package/src/components/drawer/QasDrawer.vue +121 -123
- package/src/components/drawer/QasDrawer.yml +58 -58
- package/src/components/empty-result-text/QasEmptyResultText.vue +18 -18
- package/src/components/empty-result-text/QasEmptyResultText.yml +14 -14
- package/src/components/error-message/QasErrorMessage.vue +23 -23
- package/src/components/error-message/QasErrorMessage.yml +9 -9
- package/src/components/expansion-item/QasExpansionItem.vue +259 -257
- package/src/components/expansion-item/QasExpansionItem.yml +71 -71
- package/src/components/field/QasField.vue +311 -311
- package/src/components/field/QasField.yml +36 -36
- package/src/components/filters/QasFilters.vue +498 -498
- package/src/components/filters/QasFilters.yml +180 -180
- package/src/components/filters/private/PvFiltersButton.vue +101 -101
- package/src/components/form-generator/QasFormGenerator.vue +274 -274
- package/src/components/form-generator/QasFormGenerator.yml +124 -124
- package/src/components/form-view/QasFormView.vue +486 -494
- package/src/components/form-view/QasFormView.yml +253 -253
- package/src/components/gallery/QasGallery.vue +311 -311
- package/src/components/gallery/QasGallery.yml +194 -194
- package/src/components/gallery/composables/use-delete.js +54 -54
- package/src/components/gallery/private/PvGalleryCarouselDialog.vue +95 -95
- package/src/components/gallery/private/PvGalleryDeleteDialog.vue +56 -56
- package/src/components/gallery-card/QasGalleryCard.vue +245 -245
- package/src/components/gallery-card/QasGalleryCard.yml +66 -66
- package/src/components/grabbable/QasGrabbable.vue +185 -185
- package/src/components/grabbable/QasGrabbable.yml +26 -26
- package/src/components/grid-generator/QasGridGenerator.vue +250 -250
- package/src/components/grid-generator/QasGridGenerator.yml +127 -127
- package/src/components/grid-item/QasGridItem.vue +114 -114
- package/src/components/grid-item/QasGridItem.yml +22 -22
- package/src/components/header/QasHeader.vue +179 -179
- package/src/components/header/QasHeader.yml +55 -55
- package/src/components/infinite-scroll/QasInfiniteScroll.vue +170 -170
- package/src/components/infinite-scroll/QasInfiniteScroll.yml +78 -78
- package/src/components/input/QasInput.vue +348 -318
- package/src/components/input/QasInput.yml +74 -74
- package/src/components/label/QasLabel.vue +61 -61
- package/src/components/label/QasLabel.yml +44 -44
- package/src/components/layout/QasLayout.vue +101 -111
- package/src/components/layout/QasLayout.yml +46 -46
- package/src/components/layout/private/PvLayoutNotificationCard.vue +85 -85
- package/src/components/layout/private/PvLayoutNotificationsDrawer.vue +142 -142
- package/src/components/list-items/QasListItems.vue +127 -127
- package/src/components/list-items/QasListItems.yml +71 -71
- package/src/components/list-view/QasListView.vue +370 -370
- package/src/components/list-view/QasListView.yml +184 -184
- package/src/components/map/QasMap.vue +114 -114
- package/src/components/map/QasMap.yml +33 -33
- package/src/components/nested-fields/QasNestedFields.vue +601 -601
- package/src/components/nested-fields/QasNestedFields.yml +316 -316
- package/src/components/numeric-input/QasNumericInput.vue +218 -218
- package/src/components/numeric-input/QasNumericInput.yml +85 -85
- package/src/components/option-group/QasOptionGroup.vue +54 -54
- package/src/components/option-group/QasOptionGroup.yml +30 -30
- package/src/components/page-header/QasPageHeader.vue +143 -148
- package/src/components/page-header/QasPageHeader.yml +42 -42
- package/src/components/pagination/QasPagination.vue +71 -71
- package/src/components/pagination/QasPagination.yml +4 -4
- package/src/components/password-input/QasPasswordInput.vue +116 -116
- package/src/components/password-input/QasPasswordInput.yml +111 -111
- package/src/components/password-strength-checker/QasPasswordStrengthChecker.vue +71 -71
- package/src/components/password-strength-checker/QasPasswordStrengthChecker.yml +103 -103
- package/src/components/pdf-viewer/QasPdfViewer.vue +160 -0
- package/src/components/pdf-viewer/QasPdfViewer.yml +15 -0
- package/src/components/profile/QasProfile.vue +98 -98
- package/src/components/profile/QasProfile.yml +60 -60
- package/src/components/radio/QasRadio.vue +112 -112
- package/src/components/radio/QasRadio.yml +18 -18
- package/src/components/reports-filters/QasReportsFilters.vue +287 -287
- package/src/components/reports-filters/QasReportsFilters.yml +54 -54
- package/src/components/resizer/QasResizer.vue +90 -90
- package/src/components/resizer/QasResizer.yml +24 -24
- package/src/components/search-box/QasSearchBox.vue +308 -308
- package/src/components/search-box/QasSearchBox.yml +159 -159
- package/src/components/search-input/QasSearchInput.vue +99 -99
- package/src/components/search-input/QasSearchInput.yml +48 -48
- package/src/components/select/QasSelect.vue +583 -555
- package/src/components/select/QasSelect.yml +172 -172
- package/src/components/select-filter/QasSelectFilter.vue +94 -94
- package/src/components/select-filter/QasSelectFilter.yml +41 -41
- package/src/components/select-list/QasSelectList.vue +238 -238
- package/src/components/select-list/QasSelectList.yml +108 -108
- package/src/components/select-list/private/PvSelectListCheckbox.vue +31 -31
- package/src/components/select-list-dialog/QasSelectListDialog.vue +402 -402
- package/src/components/select-list-dialog/QasSelectListDialog.yml +111 -111
- package/src/components/signature-pad/QasSignaturePad.vue +123 -123
- package/src/components/signature-pad/QasSignaturePad.yml +53 -53
- package/src/components/signature-uploader/QasSignatureUploader.vue +163 -163
- package/src/components/signature-uploader/QasSignatureUploader.yml +37 -37
- package/src/components/single-view/QasSingleView.vue +177 -177
- package/src/components/single-view/QasSingleView.yml +131 -131
- package/src/components/sortable/QasSortable.vue +151 -151
- package/src/components/sortable/QasSortable.yml +65 -65
- package/src/components/status/QasStatus.test.js +11 -11
- package/src/components/status/QasStatus.vue +29 -29
- package/src/components/status/QasStatus.yml +10 -10
- package/src/components/stepper/QasStepper.vue +275 -275
- package/src/components/stepper/QasStepper.yml +46 -46
- package/src/components/stepper-form-view/QasStepperFormView.vue +88 -88
- package/src/components/stepper-form-view/QasStepperFormView.yml +58 -58
- package/src/components/table-generator/QasTableGenerator.vue +687 -687
- package/src/components/table-generator/QasTableGenerator.yml +148 -148
- package/src/components/table-generator/private/PvTableGeneratorTd.vue +116 -116
- package/src/components/tabs-generator/QasTabsGenerator.vue +196 -196
- package/src/components/tabs-generator/QasTabsGenerator.yml +53 -53
- package/src/components/text-truncate/QasTextTruncate.vue +373 -373
- package/src/components/text-truncate/QasTextTruncate.yml +71 -71
- package/src/components/timeline/QasTimeline.vue +140 -140
- package/src/components/timeline/QasTimeline.yml +36 -36
- package/src/components/tip/QasTip.vue +48 -48
- package/src/components/tip/QasTip.yml +26 -26
- package/src/components/toggle/QasToggle.vue +39 -39
- package/src/components/toggle/QasToggle.yml +5 -5
- package/src/components/toggle-visibility/QasToggleVisibility.vue +91 -91
- package/src/components/toggle-visibility/QasToggleVisibility.yml +30 -30
- package/src/components/tooltip/QasTooltip.vue +23 -23
- package/src/components/tooltip/QasTooltip.yml +10 -10
- package/src/components/transfer/QasTransfer.vue +243 -243
- package/src/components/transfer/QasTransfer.yml +60 -60
- package/src/components/tree-generator/QasTreeForm.vue +62 -62
- package/src/components/tree-generator/QasTreeGenerator.vue +505 -505
- package/src/components/tree-generator/QasTreeGenerator.yml +81 -81
- package/src/components/uploader/QasUploader.vue +848 -848
- package/src/components/uploader/QasUploader.yml +226 -226
- package/src/components/uploader/private/PvUploaderGalleryCard.vue +423 -423
- package/src/components/welcome/QasWelcome.vue +137 -137
- package/src/components/welcome/QasWelcome.yml +26 -26
- package/src/components/welcome/private/PvWelcomeShortcutCard.vue +58 -58
- package/src/components/whatsapp-link/QasWhatsappLink.vue +36 -36
- package/src/components/whatsapp-link/QasWhatsappLink.yml +18 -18
- package/src/composables/index.js +10 -11
- package/src/composables/private/index.js +5 -5
- package/src/composables/private/use-auth-user.js +20 -20
- package/src/composables/private/use-error-message.js +28 -28
- package/src/composables/private/use-generator.js +401 -398
- package/src/composables/private/use-toggle-visibility.js +48 -48
- package/src/composables/private/use-view.js +186 -189
- package/src/composables/use-context.js +15 -15
- package/src/composables/use-default-filters.js +187 -187
- package/src/composables/use-form.js +32 -32
- package/src/composables/use-history.js +46 -46
- package/src/composables/use-notifications.js +128 -128
- package/src/composables/use-query-cache.js +60 -60
- package/src/composables/use-screen.js +42 -42
- package/src/css/base/font-face.scss +28 -28
- package/src/css/base/index.scss +1 -1
- package/src/css/components/base.scss +12 -12
- package/src/css/components/button.scss +229 -229
- package/src/css/components/editor.scss +7 -7
- package/src/css/components/field.scss +178 -178
- package/src/css/components/index.scss +8 -8
- package/src/css/components/item.scss +60 -53
- package/src/css/components/menu.scss +21 -21
- package/src/css/components/scrollbar.scss +20 -20
- package/src/css/components/tabs.scss +3 -3
- package/src/css/mixins/index.scss +4 -4
- package/src/css/mixins/set-brand.scss +15 -15
- package/src/css/mixins/set-button.scss +36 -36
- package/src/css/mixins/set-error-message.scss +8 -8
- package/src/css/mixins/set-typography.scss +8 -8
- package/src/css/plugins/index.scss +2 -2
- package/src/css/plugins/loading.scss +5 -5
- package/src/css/plugins/notify.scss +100 -100
- package/src/css/utils/background.scss +34 -34
- package/src/css/utils/border-radius.scss +29 -29
- package/src/css/utils/border.scss +42 -42
- package/src/css/utils/container.scss +36 -36
- package/src/css/utils/fonts.scss +5 -5
- package/src/css/utils/index.scss +10 -10
- package/src/css/utils/line-height.scss +19 -19
- package/src/css/utils/opacity.scss +5 -5
- package/src/css/utils/scroll.scss +21 -21
- package/src/css/utils/text.scss +15 -15
- package/src/css/utils/unset.scss +8 -8
- package/src/css/variables/button.scss +4 -4
- package/src/css/variables/index.scss +6 -6
- package/src/css/variables/scrollbar.scss +11 -11
- package/src/css/variables/separator.scss +2 -2
- package/src/css/variables/shadow.scss +3 -3
- package/src/css/variables/spacing.scss +98 -98
- package/src/css/variables/typography.scss +149 -149
- package/src/directives/Test.js +13 -13
- package/src/enums/Align.js +7 -7
- package/src/enums/Spacing.js +98 -98
- package/src/enums/Status.js +33 -33
- package/src/helpers/add-counter-suffix.js +3 -3
- package/src/helpers/base-64-to-blob.js +21 -21
- package/src/helpers/camelize-fields-name.js +15 -15
- package/src/helpers/colors.js +137 -137
- package/src/helpers/construct-object.js +29 -29
- package/src/helpers/copy-to-clipboard.js +15 -15
- package/src/helpers/destroy-nested-children-by-key.js +33 -33
- package/src/helpers/download-file.js +21 -21
- package/src/helpers/filter-list-by-handle.js +31 -31
- package/src/helpers/filter-object-to-array.js +29 -29
- package/src/helpers/filter-object.js +34 -34
- package/src/helpers/filters.js +163 -163
- package/src/helpers/find-children-by-key.js +14 -14
- package/src/helpers/get-greatest-common-divisor.js +16 -16
- package/src/helpers/get-normalized-options.js +20 -20
- package/src/helpers/get-placeholder.js +19 -19
- package/src/helpers/get-required-label.js +3 -3
- package/src/helpers/get-slot-children-text.js +15 -15
- package/src/helpers/handle-process.js +13 -13
- package/src/helpers/images.js +28 -28
- package/src/helpers/index.js +26 -26
- package/src/helpers/is-empty.js +3 -3
- package/src/helpers/is-local-development.js +3 -3
- package/src/helpers/private/gutter-validator.js +15 -15
- package/src/helpers/private/has-parent-by-class-name.js +15 -15
- package/src/helpers/promise-handler.js +40 -40
- package/src/helpers/rules.js +7 -7
- package/src/helpers/set-scroll-gradient.js +261 -261
- package/src/helpers/set-scroll-on-grab.js +128 -128
- package/src/index.cjs.js +1 -1
- package/src/index.esm.js +4 -4
- package/src/index.scss +56 -56
- package/src/index.umd.js +2 -2
- package/src/mixins/context.js +8 -8
- package/src/mixins/delete.js +48 -48
- package/src/mixins/dialog-router.js +17 -17
- package/src/mixins/form.js +11 -11
- package/src/mixins/generator.js +94 -94
- package/src/mixins/index.js +17 -17
- package/src/mixins/password.js +86 -86
- package/src/mixins/search-filter.js +357 -354
- package/src/mixins/view.js +156 -159
- package/src/pages/ErrorComponent.vue +82 -82
- package/src/pages/Forbidden.vue +30 -30
- package/src/pages/NotFound.vue +30 -30
- package/src/pages/ServerError.vue +30 -30
- package/src/pages/Unauthorized.vue +30 -30
- package/src/plugins/delete/Delete.js +107 -107
- package/src/plugins/delete/Delete.yml +75 -75
- package/src/plugins/dialog/Dialog.js +14 -14
- package/src/plugins/dialog/Dialog.yml +10 -10
- package/src/plugins/index.js +5 -5
- package/src/plugins/notify-error/NotifyError.js +14 -14
- package/src/plugins/notify-error/NotifyError.yml +11 -11
- package/src/plugins/notify-success/NotifySuccess.js +14 -14
- package/src/plugins/notify-success/NotifySuccess.yml +11 -11
- package/src/plugins/screen/Screen.js +35 -35
- package/src/plugins/screen/Screen.yml +16 -16
- package/src/shared/badge-config.js +29 -29
- package/src/shared/date-config.js +26 -26
- package/src/shared/fuse-config.js +4 -4
- package/src/shared/notify-config.js +7 -7
- package/src/vue-plugin.js +40 -40
- package/src/components/layout/private/PvLayoutOverlayDrawer.vue +0 -67
- package/src/composables/use-overlay-navigation.js +0 -358
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bildvitta/quasar-ui-asteroid",
|
|
3
3
|
"description": "Asteroid",
|
|
4
|
-
"version": "3.19.0-beta.
|
|
4
|
+
"version": "3.19.0-beta.9",
|
|
5
5
|
"author": "Bild & Vitta <systemteam@bild.com.br>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "./src/asteroid.js",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"autonumeric": "^4.9.0",
|
|
48
48
|
"axios": "^1.4.0",
|
|
49
49
|
"date-fns": "^2.30.0",
|
|
50
|
+
"pdfjs-dist": "4.3.136",
|
|
50
51
|
"debug": "^4.3.4",
|
|
51
52
|
"fuse.js": "^6.6.2",
|
|
52
53
|
"gleap": "^14.2.7",
|
package/src/asteroid.js
CHANGED
|
@@ -1,91 +1,92 @@
|
|
|
1
|
-
import { defineAsyncComponent } from 'vue'
|
|
2
|
-
|
|
3
|
-
export * from './helpers'
|
|
4
|
-
export * from './mixins'
|
|
5
|
-
export * from './vue-plugin'
|
|
6
|
-
export * from './composables'
|
|
7
|
-
export * from './plugins'
|
|
8
|
-
|
|
9
|
-
// components
|
|
10
|
-
export const QasActions = defineAsyncComponent(() => import('./components/actions/QasActions.vue'))
|
|
11
|
-
export const QasActionsMenu = defineAsyncComponent(() => import('./components/actions-menu/QasActionsMenu.vue'))
|
|
12
|
-
export const QasAlert = defineAsyncComponent(() => import('./components/alert/QasAlert.vue'))
|
|
13
|
-
export const QasAppBar = defineAsyncComponent(() => import('./components/app-bar/QasAppBar.vue'))
|
|
14
|
-
export const QasAppMenu = defineAsyncComponent(() => import('./components/app-menu/QasAppMenu.vue'))
|
|
15
|
-
export const QasAppUser = defineAsyncComponent(() => import('./components/app-user/QasAppUser.vue'))
|
|
16
|
-
export const QasAvatar = defineAsyncComponent(() => import('./components/avatar/QasAvatar.vue'))
|
|
17
|
-
export const QasBadge = defineAsyncComponent(() => import('./components/badge/QasBadge.vue'))
|
|
18
|
-
export const QasBoardGenerator = defineAsyncComponent(() => import('./components/board-generator/QasBoardGenerator.vue'))
|
|
19
|
-
export const QasBox = defineAsyncComponent(() => import('./components/box/QasBox.vue'))
|
|
20
|
-
export const QasBreakline = defineAsyncComponent(() => import('./components/breakline/QasBreakline.vue'))
|
|
21
|
-
export const QasBtn = defineAsyncComponent(() => import('./components/btn/QasBtn.vue'))
|
|
22
|
-
export const QasBtnDropdown = defineAsyncComponent(() => import('./components/btn-dropdown/QasBtnDropdown.vue'))
|
|
23
|
-
export const QasCard = defineAsyncComponent(() => import('./components/card/QasCard.vue'))
|
|
24
|
-
export const QasCardImage = defineAsyncComponent(() => import('./components/card-image/QasCardImage.vue'))
|
|
25
|
-
export const QasCheckbox = defineAsyncComponent(() => import('./components/checkbox/QasCheckbox.vue'))
|
|
26
|
-
export const QasSelectFilter = defineAsyncComponent(() => import('./components/select-filter/QasSelectFilter.vue'))
|
|
27
|
-
export const QasCopy = defineAsyncComponent(() => import('./components/copy/QasCopy.vue'))
|
|
28
|
-
export const QasDate = defineAsyncComponent(() => import('./components/date/QasDate.vue'))
|
|
29
|
-
export const QasDateTimeInput = defineAsyncComponent(() => import('./components/date-time-input/QasDateTimeInput.vue'))
|
|
30
|
-
export const QasDebugger = defineAsyncComponent(() => import('./components/debugger/QasDebugger.vue'))
|
|
31
|
-
export const QasDelete = defineAsyncComponent(() => import('./components/delete/QasDelete.vue'))
|
|
32
|
-
export const QasDialog = defineAsyncComponent(() => import('./components/dialog/QasDialog.vue'))
|
|
33
|
-
export const QasDialogRouter = defineAsyncComponent(() => import('./components/dialog-router/QasDialogRouter.vue'))
|
|
34
|
-
export const QasDrawer = defineAsyncComponent(() => import('./components/drawer/QasDrawer.vue'))
|
|
35
|
-
export const QasEmptyResultText = defineAsyncComponent(() => import('./components/empty-result-text/QasEmptyResultText.vue'))
|
|
36
|
-
export const QasErrorMessage = defineAsyncComponent(() => import('./components/error-message/QasErrorMessage.vue'))
|
|
37
|
-
export const QasExpansionItem = defineAsyncComponent(() => import('./components/expansion-item/QasExpansionItem.vue'))
|
|
38
|
-
export const QasField = defineAsyncComponent(() => import('./components/field/QasField.vue'))
|
|
39
|
-
export const QasFilters = defineAsyncComponent(() => import('./components/filters/QasFilters.vue'))
|
|
40
|
-
export const QasFormGenerator = defineAsyncComponent(() => import('./components/form-generator/QasFormGenerator.vue'))
|
|
41
|
-
export const QasFormView = defineAsyncComponent(() => import('./components/form-view/QasFormView.vue'))
|
|
42
|
-
export const QasGallery = defineAsyncComponent(() => import('./components/gallery/QasGallery.vue'))
|
|
43
|
-
export const QasGalleryCard = defineAsyncComponent(() => import('./components/gallery-card/QasGalleryCard.vue'))
|
|
44
|
-
export const QasGrabbable = defineAsyncComponent(() => import('./components/grabbable/QasGrabbable.vue'))
|
|
45
|
-
export const QasGridGenerator = defineAsyncComponent(() => import('./components/grid-generator/QasGridGenerator.vue'))
|
|
46
|
-
export const QasGridItem = defineAsyncComponent(() => import('./components/grid-item/QasGridItem.vue'))
|
|
47
|
-
export const QasHeader = defineAsyncComponent(() => import('./components/header/QasHeader.vue'))
|
|
48
|
-
export const QasInfiniteScroll = defineAsyncComponent(() => import('./components/infinite-scroll/QasInfiniteScroll.vue'))
|
|
49
|
-
export const QasInput = defineAsyncComponent(() => import('./components/input/QasInput.vue'))
|
|
50
|
-
export const QasLabel = defineAsyncComponent(() => import('./components/label/QasLabel.vue'))
|
|
51
|
-
export const QasLayout = defineAsyncComponent(() => import('./components/layout/QasLayout.vue'))
|
|
52
|
-
export const QasListItems = defineAsyncComponent(() => import('./components/list-items/QasListItems.vue'))
|
|
53
|
-
export const QasListView = defineAsyncComponent(() => import('./components/list-view/QasListView.vue'))
|
|
54
|
-
export const QasNestedFields = defineAsyncComponent(() => import('./components/nested-fields/QasNestedFields.vue'))
|
|
55
|
-
export const QasNumericInput = defineAsyncComponent(() => import('./components/numeric-input/QasNumericInput.vue'))
|
|
56
|
-
export const QasOptionGroup = defineAsyncComponent(() => import('./components/option-group/QasOptionGroup.vue'))
|
|
57
|
-
export const QasPageHeader = defineAsyncComponent(() => import('./components/page-header/QasPageHeader.vue'))
|
|
58
|
-
export const QasPagination = defineAsyncComponent(() => import('./components/pagination/QasPagination.vue'))
|
|
59
|
-
export const QasPasswordInput = defineAsyncComponent(() => import('./components/password-input/QasPasswordInput.vue'))
|
|
60
|
-
export const QasPasswordStrengthChecker = defineAsyncComponent(() => import('./components/password-strength-checker/QasPasswordStrengthChecker.vue'))
|
|
61
|
-
export const
|
|
62
|
-
export const
|
|
63
|
-
export const
|
|
64
|
-
export const
|
|
65
|
-
export const
|
|
66
|
-
export const
|
|
67
|
-
export const
|
|
68
|
-
export const
|
|
69
|
-
export const
|
|
70
|
-
export const
|
|
71
|
-
export const
|
|
72
|
-
export const
|
|
73
|
-
export const
|
|
74
|
-
export const
|
|
75
|
-
export const
|
|
76
|
-
export const
|
|
77
|
-
export const
|
|
78
|
-
export const
|
|
79
|
-
export const
|
|
80
|
-
export const
|
|
81
|
-
export const
|
|
82
|
-
export const
|
|
83
|
-
export const
|
|
84
|
-
export const
|
|
85
|
-
export const
|
|
86
|
-
export const
|
|
87
|
-
export const
|
|
88
|
-
export const
|
|
89
|
-
export const
|
|
90
|
-
export const
|
|
91
|
-
export const
|
|
1
|
+
import { defineAsyncComponent } from 'vue'
|
|
2
|
+
|
|
3
|
+
export * from './helpers'
|
|
4
|
+
export * from './mixins'
|
|
5
|
+
export * from './vue-plugin'
|
|
6
|
+
export * from './composables'
|
|
7
|
+
export * from './plugins'
|
|
8
|
+
|
|
9
|
+
// components
|
|
10
|
+
export const QasActions = defineAsyncComponent(() => import('./components/actions/QasActions.vue'))
|
|
11
|
+
export const QasActionsMenu = defineAsyncComponent(() => import('./components/actions-menu/QasActionsMenu.vue'))
|
|
12
|
+
export const QasAlert = defineAsyncComponent(() => import('./components/alert/QasAlert.vue'))
|
|
13
|
+
export const QasAppBar = defineAsyncComponent(() => import('./components/app-bar/QasAppBar.vue'))
|
|
14
|
+
export const QasAppMenu = defineAsyncComponent(() => import('./components/app-menu/QasAppMenu.vue'))
|
|
15
|
+
export const QasAppUser = defineAsyncComponent(() => import('./components/app-user/QasAppUser.vue'))
|
|
16
|
+
export const QasAvatar = defineAsyncComponent(() => import('./components/avatar/QasAvatar.vue'))
|
|
17
|
+
export const QasBadge = defineAsyncComponent(() => import('./components/badge/QasBadge.vue'))
|
|
18
|
+
export const QasBoardGenerator = defineAsyncComponent(() => import('./components/board-generator/QasBoardGenerator.vue'))
|
|
19
|
+
export const QasBox = defineAsyncComponent(() => import('./components/box/QasBox.vue'))
|
|
20
|
+
export const QasBreakline = defineAsyncComponent(() => import('./components/breakline/QasBreakline.vue'))
|
|
21
|
+
export const QasBtn = defineAsyncComponent(() => import('./components/btn/QasBtn.vue'))
|
|
22
|
+
export const QasBtnDropdown = defineAsyncComponent(() => import('./components/btn-dropdown/QasBtnDropdown.vue'))
|
|
23
|
+
export const QasCard = defineAsyncComponent(() => import('./components/card/QasCard.vue'))
|
|
24
|
+
export const QasCardImage = defineAsyncComponent(() => import('./components/card-image/QasCardImage.vue'))
|
|
25
|
+
export const QasCheckbox = defineAsyncComponent(() => import('./components/checkbox/QasCheckbox.vue'))
|
|
26
|
+
export const QasSelectFilter = defineAsyncComponent(() => import('./components/select-filter/QasSelectFilter.vue'))
|
|
27
|
+
export const QasCopy = defineAsyncComponent(() => import('./components/copy/QasCopy.vue'))
|
|
28
|
+
export const QasDate = defineAsyncComponent(() => import('./components/date/QasDate.vue'))
|
|
29
|
+
export const QasDateTimeInput = defineAsyncComponent(() => import('./components/date-time-input/QasDateTimeInput.vue'))
|
|
30
|
+
export const QasDebugger = defineAsyncComponent(() => import('./components/debugger/QasDebugger.vue'))
|
|
31
|
+
export const QasDelete = defineAsyncComponent(() => import('./components/delete/QasDelete.vue'))
|
|
32
|
+
export const QasDialog = defineAsyncComponent(() => import('./components/dialog/QasDialog.vue'))
|
|
33
|
+
export const QasDialogRouter = defineAsyncComponent(() => import('./components/dialog-router/QasDialogRouter.vue'))
|
|
34
|
+
export const QasDrawer = defineAsyncComponent(() => import('./components/drawer/QasDrawer.vue'))
|
|
35
|
+
export const QasEmptyResultText = defineAsyncComponent(() => import('./components/empty-result-text/QasEmptyResultText.vue'))
|
|
36
|
+
export const QasErrorMessage = defineAsyncComponent(() => import('./components/error-message/QasErrorMessage.vue'))
|
|
37
|
+
export const QasExpansionItem = defineAsyncComponent(() => import('./components/expansion-item/QasExpansionItem.vue'))
|
|
38
|
+
export const QasField = defineAsyncComponent(() => import('./components/field/QasField.vue'))
|
|
39
|
+
export const QasFilters = defineAsyncComponent(() => import('./components/filters/QasFilters.vue'))
|
|
40
|
+
export const QasFormGenerator = defineAsyncComponent(() => import('./components/form-generator/QasFormGenerator.vue'))
|
|
41
|
+
export const QasFormView = defineAsyncComponent(() => import('./components/form-view/QasFormView.vue'))
|
|
42
|
+
export const QasGallery = defineAsyncComponent(() => import('./components/gallery/QasGallery.vue'))
|
|
43
|
+
export const QasGalleryCard = defineAsyncComponent(() => import('./components/gallery-card/QasGalleryCard.vue'))
|
|
44
|
+
export const QasGrabbable = defineAsyncComponent(() => import('./components/grabbable/QasGrabbable.vue'))
|
|
45
|
+
export const QasGridGenerator = defineAsyncComponent(() => import('./components/grid-generator/QasGridGenerator.vue'))
|
|
46
|
+
export const QasGridItem = defineAsyncComponent(() => import('./components/grid-item/QasGridItem.vue'))
|
|
47
|
+
export const QasHeader = defineAsyncComponent(() => import('./components/header/QasHeader.vue'))
|
|
48
|
+
export const QasInfiniteScroll = defineAsyncComponent(() => import('./components/infinite-scroll/QasInfiniteScroll.vue'))
|
|
49
|
+
export const QasInput = defineAsyncComponent(() => import('./components/input/QasInput.vue'))
|
|
50
|
+
export const QasLabel = defineAsyncComponent(() => import('./components/label/QasLabel.vue'))
|
|
51
|
+
export const QasLayout = defineAsyncComponent(() => import('./components/layout/QasLayout.vue'))
|
|
52
|
+
export const QasListItems = defineAsyncComponent(() => import('./components/list-items/QasListItems.vue'))
|
|
53
|
+
export const QasListView = defineAsyncComponent(() => import('./components/list-view/QasListView.vue'))
|
|
54
|
+
export const QasNestedFields = defineAsyncComponent(() => import('./components/nested-fields/QasNestedFields.vue'))
|
|
55
|
+
export const QasNumericInput = defineAsyncComponent(() => import('./components/numeric-input/QasNumericInput.vue'))
|
|
56
|
+
export const QasOptionGroup = defineAsyncComponent(() => import('./components/option-group/QasOptionGroup.vue'))
|
|
57
|
+
export const QasPageHeader = defineAsyncComponent(() => import('./components/page-header/QasPageHeader.vue'))
|
|
58
|
+
export const QasPagination = defineAsyncComponent(() => import('./components/pagination/QasPagination.vue'))
|
|
59
|
+
export const QasPasswordInput = defineAsyncComponent(() => import('./components/password-input/QasPasswordInput.vue'))
|
|
60
|
+
export const QasPasswordStrengthChecker = defineAsyncComponent(() => import('./components/password-strength-checker/QasPasswordStrengthChecker.vue'))
|
|
61
|
+
export const QasPdfViewer = defineAsyncComponent(() => import('./components/pdf-viewer/QasPdfViewer.vue'))
|
|
62
|
+
export const QasProfile = defineAsyncComponent(() => import('./components/profile/QasProfile.vue'))
|
|
63
|
+
export const QasResizer = defineAsyncComponent(() => import('./components/resizer/QasResizer.vue'))
|
|
64
|
+
export const QasRadio = defineAsyncComponent(() => import('./components/radio/QasRadio.vue'))
|
|
65
|
+
export const QasSearchBox = defineAsyncComponent(() => import('./components/search-box/QasSearchBox.vue'))
|
|
66
|
+
export const QasSearchInput = defineAsyncComponent(() => import('./components/search-input/QasSearchInput.vue'))
|
|
67
|
+
export const QasSelect = defineAsyncComponent(() => import('./components/select/QasSelect.vue'))
|
|
68
|
+
export const QasSelectList = defineAsyncComponent(() => import('./components/select-list/QasSelectList.vue'))
|
|
69
|
+
export const QasSelectListDialog = defineAsyncComponent(() => import('./components/select-list-dialog/QasSelectListDialog.vue'))
|
|
70
|
+
export const QasSignaturePad = defineAsyncComponent(() => import('./components/signature-pad/QasSignaturePad.vue'))
|
|
71
|
+
export const QasSignatureUploader = defineAsyncComponent(() => import('./components/signature-uploader/QasSignatureUploader.vue'))
|
|
72
|
+
export const QasSingleView = defineAsyncComponent(() => import('./components/single-view/QasSingleView.vue'))
|
|
73
|
+
export const QasSortable = defineAsyncComponent(() => import('./components/sortable/QasSortable.vue'))
|
|
74
|
+
export const QasStatus = defineAsyncComponent(() => import('./components/status/QasStatus.vue'))
|
|
75
|
+
export const QasStepper = defineAsyncComponent(() => import('./components/stepper/QasStepper.vue'))
|
|
76
|
+
export const QasStepperFormView = defineAsyncComponent(() => import('./components/stepper-form-view/QasStepperFormView.vue'))
|
|
77
|
+
export const QasTableGenerator = defineAsyncComponent(() => import('./components/table-generator/QasTableGenerator.vue'))
|
|
78
|
+
export const QasTabsGenerator = defineAsyncComponent(() => import('./components/tabs-generator/QasTabsGenerator.vue'))
|
|
79
|
+
export const QasTextTruncate = defineAsyncComponent(() => import('./components/text-truncate/QasTextTruncate.vue'))
|
|
80
|
+
export const QasTimeline = defineAsyncComponent(() => import('./components/timeline/QasTimeline.vue'))
|
|
81
|
+
export const QasTip = defineAsyncComponent(() => import('./components/tip/QasTip.vue'))
|
|
82
|
+
export const QasToggle = defineAsyncComponent(() => import('./components/toggle/QasToggle.vue'))
|
|
83
|
+
export const QasToggleVisibility = defineAsyncComponent(() => import('./components/toggle-visibility/QasToggleVisibility.vue'))
|
|
84
|
+
export const QasTooltip = defineAsyncComponent(() => import('./components/tooltip/QasTooltip.vue'))
|
|
85
|
+
export const QasTransfer = defineAsyncComponent(() => import('./components/transfer/QasTransfer.vue'))
|
|
86
|
+
export const QasTreeGenerator = defineAsyncComponent(() => import('./components/tree-generator/QasTreeGenerator.vue'))
|
|
87
|
+
export const QasUploader = defineAsyncComponent(() => import('./components/uploader/QasUploader.vue'))
|
|
88
|
+
export const QasWelcome = defineAsyncComponent(() => import('./components/welcome/QasWelcome.vue'))
|
|
89
|
+
export const QasWhatsappLink = defineAsyncComponent(() => import('./components/whatsapp-link/QasWhatsappLink.vue'))
|
|
90
|
+
export const QasReportsFilters = defineAsyncComponent(() => import('./components/reports-filters/QasReportsFilters.vue'))
|
|
91
|
+
export const QasMap = defineAsyncComponent(() => import('./components/map/QasMap.vue'))
|
|
92
|
+
export const QasChartView = defineAsyncComponent(() => import('./components/chart-view/QasChartView.vue'))
|
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="q-mt-sm" :class="classes">
|
|
3
|
-
<div v-if="hasTertiaryButton" :class="columnClasses">
|
|
4
|
-
<slot name="tertiary">
|
|
5
|
-
<qas-btn v-bind="formattedButtonsProps.tertiary" />
|
|
6
|
-
</slot>
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<div v-if="hasSecondaryButton" :class="columnClasses">
|
|
10
|
-
<slot name="secondary">
|
|
11
|
-
<qas-btn v-bind="formattedButtonsProps.secondary" />
|
|
12
|
-
</slot>
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
<div v-if="hasPrimaryButton" :class="columnClasses">
|
|
16
|
-
<slot name="primary">
|
|
17
|
-
<qas-btn v-bind="formattedButtonsProps.primary" />
|
|
18
|
-
</slot>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<script setup>
|
|
24
|
-
import useScreen from '../../composables/use-screen'
|
|
25
|
-
import { FlexAlign } from '../../enums/Align'
|
|
26
|
-
import { Spacing } from '../../enums/Spacing'
|
|
27
|
-
|
|
28
|
-
import QasBtn from '../btn/QasBtn.vue'
|
|
29
|
-
|
|
30
|
-
import { computed, useSlots } from 'vue'
|
|
31
|
-
|
|
32
|
-
defineOptions({ name: 'QasActions' })
|
|
33
|
-
|
|
34
|
-
const props = defineProps({
|
|
35
|
-
align: {
|
|
36
|
-
default: FlexAlign.End,
|
|
37
|
-
type: String,
|
|
38
|
-
validator: value => Object.values(FlexAlign).includes(value)
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
gutter: {
|
|
42
|
-
default: '',
|
|
43
|
-
type: String,
|
|
44
|
-
validator: value => !value || Object.values(Spacing).includes(value)
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
primaryButtonProps: {
|
|
48
|
-
type: Object,
|
|
49
|
-
default: () => ({})
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
secondaryButtonProps: {
|
|
53
|
-
type: Object,
|
|
54
|
-
default: () => ({})
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
tertiaryButtonProps: {
|
|
58
|
-
type: Object,
|
|
59
|
-
default: () => ({})
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
useFullWidth: {
|
|
63
|
-
type: Boolean
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
useEqualWidth: {
|
|
67
|
-
type: Boolean
|
|
68
|
-
}
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
const slots = useSlots()
|
|
72
|
-
const screen = useScreen()
|
|
73
|
-
|
|
74
|
-
const defaultGutter = computed(() => {
|
|
75
|
-
return props.gutter || (screen.isSmall ? 'md' : 'lg')
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
const classes = computed(() => {
|
|
79
|
-
const isSmallOrFullWidth = screen.isSmall || props.useFullWidth
|
|
80
|
-
|
|
81
|
-
return [
|
|
82
|
-
!screen.isSmall && 'items-center',
|
|
83
|
-
|
|
84
|
-
// alinhamento
|
|
85
|
-
`justify-${props.align}`,
|
|
86
|
-
|
|
87
|
-
// espaçamento
|
|
88
|
-
`q-col-gutter-${defaultGutter.value}`,
|
|
89
|
-
|
|
90
|
-
// disposição
|
|
91
|
-
isSmallOrFullWidth ? 'column reverse' : 'row'
|
|
92
|
-
]
|
|
93
|
-
})
|
|
94
|
-
|
|
95
|
-
const columnClasses = computed(() => {
|
|
96
|
-
if (props.useEqualWidth) return 'col-12 col-sm-6'
|
|
97
|
-
|
|
98
|
-
return props.useFullWidth ? 'full-width' : 'col-12 col-sm-auto'
|
|
99
|
-
})
|
|
100
|
-
|
|
101
|
-
const hasPrimarySlot = computed(() => !!slots.primary)
|
|
102
|
-
const hasSecondarySlot = computed(() => !!slots.secondary)
|
|
103
|
-
const hasTertiarySlot = computed(() => !!slots.tertiary)
|
|
104
|
-
|
|
105
|
-
const hasPrimaryButton = computed(() => hasPrimarySlot.value || Object.keys(props.primaryButtonProps).length)
|
|
106
|
-
const hasSecondaryButton = computed(() => hasSecondarySlot.value || Object.keys(props.secondaryButtonProps).length)
|
|
107
|
-
const hasTertiaryButton = computed(() => hasTertiarySlot.value || Object.keys(props.tertiaryButtonProps).length)
|
|
108
|
-
|
|
109
|
-
const formattedButtonsProps = computed(() => {
|
|
110
|
-
return {
|
|
111
|
-
primary: { ...props.primaryButtonProps, variant: 'primary' },
|
|
112
|
-
secondary: { ...props.secondaryButtonProps, variant: 'secondary' },
|
|
113
|
-
tertiary: { ...props.tertiaryButtonProps, variant: 'tertiary' }
|
|
114
|
-
}
|
|
115
|
-
})
|
|
116
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="q-mt-sm" :class="classes">
|
|
3
|
+
<div v-if="hasTertiaryButton" :class="columnClasses">
|
|
4
|
+
<slot name="tertiary">
|
|
5
|
+
<qas-btn v-bind="formattedButtonsProps.tertiary" />
|
|
6
|
+
</slot>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<div v-if="hasSecondaryButton" :class="columnClasses">
|
|
10
|
+
<slot name="secondary">
|
|
11
|
+
<qas-btn v-bind="formattedButtonsProps.secondary" />
|
|
12
|
+
</slot>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div v-if="hasPrimaryButton" :class="columnClasses">
|
|
16
|
+
<slot name="primary">
|
|
17
|
+
<qas-btn v-bind="formattedButtonsProps.primary" />
|
|
18
|
+
</slot>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script setup>
|
|
24
|
+
import useScreen from '../../composables/use-screen'
|
|
25
|
+
import { FlexAlign } from '../../enums/Align'
|
|
26
|
+
import { Spacing } from '../../enums/Spacing'
|
|
27
|
+
|
|
28
|
+
import QasBtn from '../btn/QasBtn.vue'
|
|
29
|
+
|
|
30
|
+
import { computed, useSlots } from 'vue'
|
|
31
|
+
|
|
32
|
+
defineOptions({ name: 'QasActions' })
|
|
33
|
+
|
|
34
|
+
const props = defineProps({
|
|
35
|
+
align: {
|
|
36
|
+
default: FlexAlign.End,
|
|
37
|
+
type: String,
|
|
38
|
+
validator: value => Object.values(FlexAlign).includes(value)
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
gutter: {
|
|
42
|
+
default: '',
|
|
43
|
+
type: String,
|
|
44
|
+
validator: value => !value || Object.values(Spacing).includes(value)
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
primaryButtonProps: {
|
|
48
|
+
type: Object,
|
|
49
|
+
default: () => ({})
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
secondaryButtonProps: {
|
|
53
|
+
type: Object,
|
|
54
|
+
default: () => ({})
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
tertiaryButtonProps: {
|
|
58
|
+
type: Object,
|
|
59
|
+
default: () => ({})
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
useFullWidth: {
|
|
63
|
+
type: Boolean
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
useEqualWidth: {
|
|
67
|
+
type: Boolean
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
const slots = useSlots()
|
|
72
|
+
const screen = useScreen()
|
|
73
|
+
|
|
74
|
+
const defaultGutter = computed(() => {
|
|
75
|
+
return props.gutter || (screen.isSmall ? 'md' : 'lg')
|
|
76
|
+
})
|
|
77
|
+
|
|
78
|
+
const classes = computed(() => {
|
|
79
|
+
const isSmallOrFullWidth = screen.isSmall || props.useFullWidth
|
|
80
|
+
|
|
81
|
+
return [
|
|
82
|
+
!screen.isSmall && 'items-center',
|
|
83
|
+
|
|
84
|
+
// alinhamento
|
|
85
|
+
`justify-${props.align}`,
|
|
86
|
+
|
|
87
|
+
// espaçamento
|
|
88
|
+
`q-col-gutter-${defaultGutter.value}`,
|
|
89
|
+
|
|
90
|
+
// disposição
|
|
91
|
+
isSmallOrFullWidth ? 'column reverse' : 'row'
|
|
92
|
+
]
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
const columnClasses = computed(() => {
|
|
96
|
+
if (props.useEqualWidth) return 'col-12 col-sm-6'
|
|
97
|
+
|
|
98
|
+
return props.useFullWidth ? 'full-width' : 'col-12 col-sm-auto'
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
const hasPrimarySlot = computed(() => !!slots.primary)
|
|
102
|
+
const hasSecondarySlot = computed(() => !!slots.secondary)
|
|
103
|
+
const hasTertiarySlot = computed(() => !!slots.tertiary)
|
|
104
|
+
|
|
105
|
+
const hasPrimaryButton = computed(() => hasPrimarySlot.value || Object.keys(props.primaryButtonProps).length)
|
|
106
|
+
const hasSecondaryButton = computed(() => hasSecondarySlot.value || Object.keys(props.secondaryButtonProps).length)
|
|
107
|
+
const hasTertiaryButton = computed(() => hasTertiarySlot.value || Object.keys(props.tertiaryButtonProps).length)
|
|
108
|
+
|
|
109
|
+
const formattedButtonsProps = computed(() => {
|
|
110
|
+
return {
|
|
111
|
+
primary: { ...props.primaryButtonProps, variant: 'primary' },
|
|
112
|
+
secondary: { ...props.secondaryButtonProps, variant: 'secondary' },
|
|
113
|
+
tertiary: { ...props.tertiaryButtonProps, variant: 'tertiary' }
|
|
114
|
+
}
|
|
115
|
+
})
|
|
116
|
+
</script>
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
type: component
|
|
2
|
-
|
|
3
|
-
meta:
|
|
4
|
-
desc: Área de ações para páginas que lidam com botões primários e secundários, como um formulário ou caixa de diálogo.
|
|
5
|
-
|
|
6
|
-
props:
|
|
7
|
-
align:
|
|
8
|
-
desc: Alinhamento dos elementos.
|
|
9
|
-
default: end
|
|
10
|
-
type: String
|
|
11
|
-
examples: [start, end, between, around, center]
|
|
12
|
-
|
|
13
|
-
gutter:
|
|
14
|
-
desc: Espaçamento entre os elementos.
|
|
15
|
-
default: lg
|
|
16
|
-
type: String
|
|
17
|
-
examples: ['xs', 'sm', 'md', 'lg', 'xl']
|
|
18
|
-
|
|
19
|
-
use-full-width:
|
|
20
|
-
desc: Deixa as colunas 100%, com col-12.
|
|
21
|
-
default: false
|
|
22
|
-
type: Boolean
|
|
23
|
-
|
|
24
|
-
use-equal-width:
|
|
25
|
-
desc: Deixa as colunas 50% no desktop e 100% no mobile, col-12 col-sm-6.
|
|
26
|
-
default: false
|
|
27
|
-
type: Boolean
|
|
28
|
-
|
|
29
|
-
primary-button-props:
|
|
30
|
-
desc: Propriedades do botão primário.
|
|
31
|
-
default: {}
|
|
32
|
-
type: Object
|
|
33
|
-
|
|
34
|
-
secondary-button-props:
|
|
35
|
-
desc: Propriedades do botão secundário.
|
|
36
|
-
default: {}
|
|
37
|
-
type: Object
|
|
38
|
-
|
|
39
|
-
tertiary-button-props:
|
|
40
|
-
desc: Propriedades do botão terciário.
|
|
41
|
-
default: {}
|
|
42
|
-
type: Object
|
|
43
|
-
|
|
44
|
-
slots:
|
|
45
|
-
primary:
|
|
46
|
-
desc: 'Slot para ação primaria (ex: botão de salvar), em telas menores que sm, se torna o primeiro elemento.'
|
|
47
|
-
|
|
48
|
-
secondary:
|
|
49
|
-
desc: 'Slot para ação secundaria (ex: botão de cancelar), em telas menores que sm, se torna o segundo elemento.'
|
|
1
|
+
type: component
|
|
2
|
+
|
|
3
|
+
meta:
|
|
4
|
+
desc: Área de ações para páginas que lidam com botões primários e secundários, como um formulário ou caixa de diálogo.
|
|
5
|
+
|
|
6
|
+
props:
|
|
7
|
+
align:
|
|
8
|
+
desc: Alinhamento dos elementos.
|
|
9
|
+
default: end
|
|
10
|
+
type: String
|
|
11
|
+
examples: [start, end, between, around, center]
|
|
12
|
+
|
|
13
|
+
gutter:
|
|
14
|
+
desc: Espaçamento entre os elementos.
|
|
15
|
+
default: lg
|
|
16
|
+
type: String
|
|
17
|
+
examples: ['xs', 'sm', 'md', 'lg', 'xl']
|
|
18
|
+
|
|
19
|
+
use-full-width:
|
|
20
|
+
desc: Deixa as colunas 100%, com col-12.
|
|
21
|
+
default: false
|
|
22
|
+
type: Boolean
|
|
23
|
+
|
|
24
|
+
use-equal-width:
|
|
25
|
+
desc: Deixa as colunas 50% no desktop e 100% no mobile, col-12 col-sm-6.
|
|
26
|
+
default: false
|
|
27
|
+
type: Boolean
|
|
28
|
+
|
|
29
|
+
primary-button-props:
|
|
30
|
+
desc: Propriedades do botão primário.
|
|
31
|
+
default: {}
|
|
32
|
+
type: Object
|
|
33
|
+
|
|
34
|
+
secondary-button-props:
|
|
35
|
+
desc: Propriedades do botão secundário.
|
|
36
|
+
default: {}
|
|
37
|
+
type: Object
|
|
38
|
+
|
|
39
|
+
tertiary-button-props:
|
|
40
|
+
desc: Propriedades do botão terciário.
|
|
41
|
+
default: {}
|
|
42
|
+
type: Object
|
|
43
|
+
|
|
44
|
+
slots:
|
|
45
|
+
primary:
|
|
46
|
+
desc: 'Slot para ação primaria (ex: botão de salvar), em telas menores que sm, se torna o primeiro elemento.'
|
|
47
|
+
|
|
48
|
+
secondary:
|
|
49
|
+
desc: 'Slot para ação secundaria (ex: botão de cancelar), em telas menores que sm, se torna o segundo elemento.'
|