@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.
Files changed (330) hide show
  1. package/package.json +2 -1
  2. package/src/asteroid.js +92 -91
  3. package/src/components/actions/QasActions.vue +116 -116
  4. package/src/components/actions/QasActions.yml +49 -49
  5. package/src/components/actions-menu/QasActionsMenu.vue +276 -276
  6. package/src/components/actions-menu/QasActionsMenu.yml +89 -89
  7. package/src/components/actions-menu/composables/use-delete.js +30 -30
  8. package/src/components/actions-menu/composables/use-double-split-actions.js +42 -42
  9. package/src/components/actions-menu/composables/use-options-actions.js +27 -27
  10. package/src/components/actions-menu/composables/use-single-action.js +17 -17
  11. package/src/components/actions-menu/composables/use-single-split-actions.js +35 -35
  12. package/src/components/actions-menu/composables/use-tooltips.js +43 -43
  13. package/src/components/actions-menu/utils/get-label.js +3 -3
  14. package/src/components/actions-menu/utils/set-click-handler.js +6 -6
  15. package/src/components/alert/QasAlert.test.js +43 -43
  16. package/src/components/alert/QasAlert.vue +239 -238
  17. package/src/components/alert/QasAlert.yml +61 -61
  18. package/src/components/app-bar/QasAppBar.vue +121 -121
  19. package/src/components/app-bar/QasAppBar.yml +44 -44
  20. package/src/components/app-menu/QasAppMenu.vue +518 -518
  21. package/src/components/app-menu/QasAppMenu.yml +83 -83
  22. package/src/components/app-menu/composables/use-app-menu-dropdown.js +71 -71
  23. package/src/components/app-menu/composables/use-app-user.js +49 -49
  24. package/src/components/app-menu/composables/use-development-badge.js +23 -23
  25. package/src/components/app-menu/private/PvAppMenuDropdown.vue +73 -73
  26. package/src/components/app-user/QasAppUser.vue +295 -295
  27. package/src/components/app-user/QasAppUser.yml +61 -61
  28. package/src/components/avatar/QasAvatar.vue +95 -95
  29. package/src/components/avatar/QasAvatar.yml +38 -38
  30. package/src/components/avatar/enums/AvatarColors.js +10 -10
  31. package/src/components/badge/QasBadge.vue +64 -64
  32. package/src/components/badge/QasBadge.yml +55 -55
  33. package/src/components/board-generator/QasBoardGenerator.vue +751 -751
  34. package/src/components/board-generator/QasBoardGenerator.yml +221 -221
  35. package/src/components/box/QasBox.vue +51 -62
  36. package/src/components/box/QasBox.yml +29 -29
  37. package/src/components/breakline/QasBreakline.vue +38 -38
  38. package/src/components/breakline/QasBreakline.yml +25 -25
  39. package/src/components/btn/QasBtn.vue +222 -231
  40. package/src/components/btn/QasBtn.yml +59 -59
  41. package/src/components/btn-dropdown/QasBtnDropdown.vue +153 -153
  42. package/src/components/btn-dropdown/QasBtnDropdown.yml +64 -64
  43. package/src/components/card/QasCard.vue +147 -147
  44. package/src/components/card/QasCard.yml +44 -44
  45. package/src/components/card-image/QasCardImage.vue +97 -97
  46. package/src/components/card-image/QasCardImage.yml +48 -48
  47. package/src/components/chart-view/QasChartView.vue +504 -504
  48. package/src/components/chart-view/QasChartView.yml +115 -115
  49. package/src/components/chart-view/config/charts/bar.js +45 -45
  50. package/src/components/chart-view/config/charts/doughnut.js +43 -43
  51. package/src/components/chart-view/config/charts/index.js +9 -9
  52. package/src/components/chart-view/config/charts/line.js +57 -57
  53. package/src/components/chart-view/config/defaults/colors.js +19 -19
  54. package/src/components/chart-view/config/defaults/font.js +5 -5
  55. package/src/components/chart-view/config/defaults/index.js +2 -2
  56. package/src/components/chart-view/config/index.js +3 -3
  57. package/src/components/chart-view/config/plugins/index.js +3 -3
  58. package/src/components/chart-view/config/plugins/legend.js +9 -9
  59. package/src/components/chart-view/config/plugins/tooltip.js +15 -15
  60. package/src/components/chart-view/config/plugins/zoom.js +31 -31
  61. package/src/components/checkbox/QasCheckbox.vue +253 -253
  62. package/src/components/checkbox/QasCheckbox.yml +49 -49
  63. package/src/components/copy/QasCopy.vue +54 -54
  64. package/src/components/copy/QasCopy.yml +23 -23
  65. package/src/components/date/QasDate.vue +600 -600
  66. package/src/components/date/QasDate.yml +69 -69
  67. package/src/components/date/enums/DateMaskOptions.js +6 -6
  68. package/src/components/date-time-input/QasDateTimeInput.vue +286 -286
  69. package/src/components/date-time-input/QasDateTimeInput.yml +74 -74
  70. package/src/components/debugger/QasDebugger.vue +31 -31
  71. package/src/components/debugger/QasDebugger.yml +10 -10
  72. package/src/components/delete/QasDelete.vue +102 -102
  73. package/src/components/delete/QasDelete.yml +59 -59
  74. package/src/components/dialog/QasDialog.vue +218 -218
  75. package/src/components/dialog/QasDialog.yml +117 -117
  76. package/src/components/dialog/composables/use-cancel.js +40 -40
  77. package/src/components/dialog/composables/use-dynamic-components.js +86 -86
  78. package/src/components/dialog/composables/use-ok.js +45 -45
  79. package/src/components/dialog-router/QasDialogRouter.vue +86 -86
  80. package/src/components/dialog-router/QasDialogRouter.yml +23 -23
  81. package/src/components/drawer/QasDrawer.vue +121 -123
  82. package/src/components/drawer/QasDrawer.yml +58 -58
  83. package/src/components/empty-result-text/QasEmptyResultText.vue +18 -18
  84. package/src/components/empty-result-text/QasEmptyResultText.yml +14 -14
  85. package/src/components/error-message/QasErrorMessage.vue +23 -23
  86. package/src/components/error-message/QasErrorMessage.yml +9 -9
  87. package/src/components/expansion-item/QasExpansionItem.vue +259 -257
  88. package/src/components/expansion-item/QasExpansionItem.yml +71 -71
  89. package/src/components/field/QasField.vue +311 -311
  90. package/src/components/field/QasField.yml +36 -36
  91. package/src/components/filters/QasFilters.vue +498 -498
  92. package/src/components/filters/QasFilters.yml +180 -180
  93. package/src/components/filters/private/PvFiltersButton.vue +101 -101
  94. package/src/components/form-generator/QasFormGenerator.vue +274 -274
  95. package/src/components/form-generator/QasFormGenerator.yml +124 -124
  96. package/src/components/form-view/QasFormView.vue +486 -494
  97. package/src/components/form-view/QasFormView.yml +253 -253
  98. package/src/components/gallery/QasGallery.vue +311 -311
  99. package/src/components/gallery/QasGallery.yml +194 -194
  100. package/src/components/gallery/composables/use-delete.js +54 -54
  101. package/src/components/gallery/private/PvGalleryCarouselDialog.vue +95 -95
  102. package/src/components/gallery/private/PvGalleryDeleteDialog.vue +56 -56
  103. package/src/components/gallery-card/QasGalleryCard.vue +245 -245
  104. package/src/components/gallery-card/QasGalleryCard.yml +66 -66
  105. package/src/components/grabbable/QasGrabbable.vue +185 -185
  106. package/src/components/grabbable/QasGrabbable.yml +26 -26
  107. package/src/components/grid-generator/QasGridGenerator.vue +250 -250
  108. package/src/components/grid-generator/QasGridGenerator.yml +127 -127
  109. package/src/components/grid-item/QasGridItem.vue +114 -114
  110. package/src/components/grid-item/QasGridItem.yml +22 -22
  111. package/src/components/header/QasHeader.vue +179 -179
  112. package/src/components/header/QasHeader.yml +55 -55
  113. package/src/components/infinite-scroll/QasInfiniteScroll.vue +170 -170
  114. package/src/components/infinite-scroll/QasInfiniteScroll.yml +78 -78
  115. package/src/components/input/QasInput.vue +348 -318
  116. package/src/components/input/QasInput.yml +74 -74
  117. package/src/components/label/QasLabel.vue +61 -61
  118. package/src/components/label/QasLabel.yml +44 -44
  119. package/src/components/layout/QasLayout.vue +101 -111
  120. package/src/components/layout/QasLayout.yml +46 -46
  121. package/src/components/layout/private/PvLayoutNotificationCard.vue +85 -85
  122. package/src/components/layout/private/PvLayoutNotificationsDrawer.vue +142 -142
  123. package/src/components/list-items/QasListItems.vue +127 -127
  124. package/src/components/list-items/QasListItems.yml +71 -71
  125. package/src/components/list-view/QasListView.vue +370 -370
  126. package/src/components/list-view/QasListView.yml +184 -184
  127. package/src/components/map/QasMap.vue +114 -114
  128. package/src/components/map/QasMap.yml +33 -33
  129. package/src/components/nested-fields/QasNestedFields.vue +601 -601
  130. package/src/components/nested-fields/QasNestedFields.yml +316 -316
  131. package/src/components/numeric-input/QasNumericInput.vue +218 -218
  132. package/src/components/numeric-input/QasNumericInput.yml +85 -85
  133. package/src/components/option-group/QasOptionGroup.vue +54 -54
  134. package/src/components/option-group/QasOptionGroup.yml +30 -30
  135. package/src/components/page-header/QasPageHeader.vue +143 -148
  136. package/src/components/page-header/QasPageHeader.yml +42 -42
  137. package/src/components/pagination/QasPagination.vue +71 -71
  138. package/src/components/pagination/QasPagination.yml +4 -4
  139. package/src/components/password-input/QasPasswordInput.vue +116 -116
  140. package/src/components/password-input/QasPasswordInput.yml +111 -111
  141. package/src/components/password-strength-checker/QasPasswordStrengthChecker.vue +71 -71
  142. package/src/components/password-strength-checker/QasPasswordStrengthChecker.yml +103 -103
  143. package/src/components/pdf-viewer/QasPdfViewer.vue +160 -0
  144. package/src/components/pdf-viewer/QasPdfViewer.yml +15 -0
  145. package/src/components/profile/QasProfile.vue +98 -98
  146. package/src/components/profile/QasProfile.yml +60 -60
  147. package/src/components/radio/QasRadio.vue +112 -112
  148. package/src/components/radio/QasRadio.yml +18 -18
  149. package/src/components/reports-filters/QasReportsFilters.vue +287 -287
  150. package/src/components/reports-filters/QasReportsFilters.yml +54 -54
  151. package/src/components/resizer/QasResizer.vue +90 -90
  152. package/src/components/resizer/QasResizer.yml +24 -24
  153. package/src/components/search-box/QasSearchBox.vue +308 -308
  154. package/src/components/search-box/QasSearchBox.yml +159 -159
  155. package/src/components/search-input/QasSearchInput.vue +99 -99
  156. package/src/components/search-input/QasSearchInput.yml +48 -48
  157. package/src/components/select/QasSelect.vue +583 -555
  158. package/src/components/select/QasSelect.yml +172 -172
  159. package/src/components/select-filter/QasSelectFilter.vue +94 -94
  160. package/src/components/select-filter/QasSelectFilter.yml +41 -41
  161. package/src/components/select-list/QasSelectList.vue +238 -238
  162. package/src/components/select-list/QasSelectList.yml +108 -108
  163. package/src/components/select-list/private/PvSelectListCheckbox.vue +31 -31
  164. package/src/components/select-list-dialog/QasSelectListDialog.vue +402 -402
  165. package/src/components/select-list-dialog/QasSelectListDialog.yml +111 -111
  166. package/src/components/signature-pad/QasSignaturePad.vue +123 -123
  167. package/src/components/signature-pad/QasSignaturePad.yml +53 -53
  168. package/src/components/signature-uploader/QasSignatureUploader.vue +163 -163
  169. package/src/components/signature-uploader/QasSignatureUploader.yml +37 -37
  170. package/src/components/single-view/QasSingleView.vue +177 -177
  171. package/src/components/single-view/QasSingleView.yml +131 -131
  172. package/src/components/sortable/QasSortable.vue +151 -151
  173. package/src/components/sortable/QasSortable.yml +65 -65
  174. package/src/components/status/QasStatus.test.js +11 -11
  175. package/src/components/status/QasStatus.vue +29 -29
  176. package/src/components/status/QasStatus.yml +10 -10
  177. package/src/components/stepper/QasStepper.vue +275 -275
  178. package/src/components/stepper/QasStepper.yml +46 -46
  179. package/src/components/stepper-form-view/QasStepperFormView.vue +88 -88
  180. package/src/components/stepper-form-view/QasStepperFormView.yml +58 -58
  181. package/src/components/table-generator/QasTableGenerator.vue +687 -687
  182. package/src/components/table-generator/QasTableGenerator.yml +148 -148
  183. package/src/components/table-generator/private/PvTableGeneratorTd.vue +116 -116
  184. package/src/components/tabs-generator/QasTabsGenerator.vue +196 -196
  185. package/src/components/tabs-generator/QasTabsGenerator.yml +53 -53
  186. package/src/components/text-truncate/QasTextTruncate.vue +373 -373
  187. package/src/components/text-truncate/QasTextTruncate.yml +71 -71
  188. package/src/components/timeline/QasTimeline.vue +140 -140
  189. package/src/components/timeline/QasTimeline.yml +36 -36
  190. package/src/components/tip/QasTip.vue +48 -48
  191. package/src/components/tip/QasTip.yml +26 -26
  192. package/src/components/toggle/QasToggle.vue +39 -39
  193. package/src/components/toggle/QasToggle.yml +5 -5
  194. package/src/components/toggle-visibility/QasToggleVisibility.vue +91 -91
  195. package/src/components/toggle-visibility/QasToggleVisibility.yml +30 -30
  196. package/src/components/tooltip/QasTooltip.vue +23 -23
  197. package/src/components/tooltip/QasTooltip.yml +10 -10
  198. package/src/components/transfer/QasTransfer.vue +243 -243
  199. package/src/components/transfer/QasTransfer.yml +60 -60
  200. package/src/components/tree-generator/QasTreeForm.vue +62 -62
  201. package/src/components/tree-generator/QasTreeGenerator.vue +505 -505
  202. package/src/components/tree-generator/QasTreeGenerator.yml +81 -81
  203. package/src/components/uploader/QasUploader.vue +848 -848
  204. package/src/components/uploader/QasUploader.yml +226 -226
  205. package/src/components/uploader/private/PvUploaderGalleryCard.vue +423 -423
  206. package/src/components/welcome/QasWelcome.vue +137 -137
  207. package/src/components/welcome/QasWelcome.yml +26 -26
  208. package/src/components/welcome/private/PvWelcomeShortcutCard.vue +58 -58
  209. package/src/components/whatsapp-link/QasWhatsappLink.vue +36 -36
  210. package/src/components/whatsapp-link/QasWhatsappLink.yml +18 -18
  211. package/src/composables/index.js +10 -11
  212. package/src/composables/private/index.js +5 -5
  213. package/src/composables/private/use-auth-user.js +20 -20
  214. package/src/composables/private/use-error-message.js +28 -28
  215. package/src/composables/private/use-generator.js +401 -398
  216. package/src/composables/private/use-toggle-visibility.js +48 -48
  217. package/src/composables/private/use-view.js +186 -189
  218. package/src/composables/use-context.js +15 -15
  219. package/src/composables/use-default-filters.js +187 -187
  220. package/src/composables/use-form.js +32 -32
  221. package/src/composables/use-history.js +46 -46
  222. package/src/composables/use-notifications.js +128 -128
  223. package/src/composables/use-query-cache.js +60 -60
  224. package/src/composables/use-screen.js +42 -42
  225. package/src/css/base/font-face.scss +28 -28
  226. package/src/css/base/index.scss +1 -1
  227. package/src/css/components/base.scss +12 -12
  228. package/src/css/components/button.scss +229 -229
  229. package/src/css/components/editor.scss +7 -7
  230. package/src/css/components/field.scss +178 -178
  231. package/src/css/components/index.scss +8 -8
  232. package/src/css/components/item.scss +60 -53
  233. package/src/css/components/menu.scss +21 -21
  234. package/src/css/components/scrollbar.scss +20 -20
  235. package/src/css/components/tabs.scss +3 -3
  236. package/src/css/mixins/index.scss +4 -4
  237. package/src/css/mixins/set-brand.scss +15 -15
  238. package/src/css/mixins/set-button.scss +36 -36
  239. package/src/css/mixins/set-error-message.scss +8 -8
  240. package/src/css/mixins/set-typography.scss +8 -8
  241. package/src/css/plugins/index.scss +2 -2
  242. package/src/css/plugins/loading.scss +5 -5
  243. package/src/css/plugins/notify.scss +100 -100
  244. package/src/css/utils/background.scss +34 -34
  245. package/src/css/utils/border-radius.scss +29 -29
  246. package/src/css/utils/border.scss +42 -42
  247. package/src/css/utils/container.scss +36 -36
  248. package/src/css/utils/fonts.scss +5 -5
  249. package/src/css/utils/index.scss +10 -10
  250. package/src/css/utils/line-height.scss +19 -19
  251. package/src/css/utils/opacity.scss +5 -5
  252. package/src/css/utils/scroll.scss +21 -21
  253. package/src/css/utils/text.scss +15 -15
  254. package/src/css/utils/unset.scss +8 -8
  255. package/src/css/variables/button.scss +4 -4
  256. package/src/css/variables/index.scss +6 -6
  257. package/src/css/variables/scrollbar.scss +11 -11
  258. package/src/css/variables/separator.scss +2 -2
  259. package/src/css/variables/shadow.scss +3 -3
  260. package/src/css/variables/spacing.scss +98 -98
  261. package/src/css/variables/typography.scss +149 -149
  262. package/src/directives/Test.js +13 -13
  263. package/src/enums/Align.js +7 -7
  264. package/src/enums/Spacing.js +98 -98
  265. package/src/enums/Status.js +33 -33
  266. package/src/helpers/add-counter-suffix.js +3 -3
  267. package/src/helpers/base-64-to-blob.js +21 -21
  268. package/src/helpers/camelize-fields-name.js +15 -15
  269. package/src/helpers/colors.js +137 -137
  270. package/src/helpers/construct-object.js +29 -29
  271. package/src/helpers/copy-to-clipboard.js +15 -15
  272. package/src/helpers/destroy-nested-children-by-key.js +33 -33
  273. package/src/helpers/download-file.js +21 -21
  274. package/src/helpers/filter-list-by-handle.js +31 -31
  275. package/src/helpers/filter-object-to-array.js +29 -29
  276. package/src/helpers/filter-object.js +34 -34
  277. package/src/helpers/filters.js +163 -163
  278. package/src/helpers/find-children-by-key.js +14 -14
  279. package/src/helpers/get-greatest-common-divisor.js +16 -16
  280. package/src/helpers/get-normalized-options.js +20 -20
  281. package/src/helpers/get-placeholder.js +19 -19
  282. package/src/helpers/get-required-label.js +3 -3
  283. package/src/helpers/get-slot-children-text.js +15 -15
  284. package/src/helpers/handle-process.js +13 -13
  285. package/src/helpers/images.js +28 -28
  286. package/src/helpers/index.js +26 -26
  287. package/src/helpers/is-empty.js +3 -3
  288. package/src/helpers/is-local-development.js +3 -3
  289. package/src/helpers/private/gutter-validator.js +15 -15
  290. package/src/helpers/private/has-parent-by-class-name.js +15 -15
  291. package/src/helpers/promise-handler.js +40 -40
  292. package/src/helpers/rules.js +7 -7
  293. package/src/helpers/set-scroll-gradient.js +261 -261
  294. package/src/helpers/set-scroll-on-grab.js +128 -128
  295. package/src/index.cjs.js +1 -1
  296. package/src/index.esm.js +4 -4
  297. package/src/index.scss +56 -56
  298. package/src/index.umd.js +2 -2
  299. package/src/mixins/context.js +8 -8
  300. package/src/mixins/delete.js +48 -48
  301. package/src/mixins/dialog-router.js +17 -17
  302. package/src/mixins/form.js +11 -11
  303. package/src/mixins/generator.js +94 -94
  304. package/src/mixins/index.js +17 -17
  305. package/src/mixins/password.js +86 -86
  306. package/src/mixins/search-filter.js +357 -354
  307. package/src/mixins/view.js +156 -159
  308. package/src/pages/ErrorComponent.vue +82 -82
  309. package/src/pages/Forbidden.vue +30 -30
  310. package/src/pages/NotFound.vue +30 -30
  311. package/src/pages/ServerError.vue +30 -30
  312. package/src/pages/Unauthorized.vue +30 -30
  313. package/src/plugins/delete/Delete.js +107 -107
  314. package/src/plugins/delete/Delete.yml +75 -75
  315. package/src/plugins/dialog/Dialog.js +14 -14
  316. package/src/plugins/dialog/Dialog.yml +10 -10
  317. package/src/plugins/index.js +5 -5
  318. package/src/plugins/notify-error/NotifyError.js +14 -14
  319. package/src/plugins/notify-error/NotifyError.yml +11 -11
  320. package/src/plugins/notify-success/NotifySuccess.js +14 -14
  321. package/src/plugins/notify-success/NotifySuccess.yml +11 -11
  322. package/src/plugins/screen/Screen.js +35 -35
  323. package/src/plugins/screen/Screen.yml +16 -16
  324. package/src/shared/badge-config.js +29 -29
  325. package/src/shared/date-config.js +26 -26
  326. package/src/shared/fuse-config.js +4 -4
  327. package/src/shared/notify-config.js +7 -7
  328. package/src/vue-plugin.js +40 -40
  329. package/src/components/layout/private/PvLayoutOverlayDrawer.vue +0 -67
  330. 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.8-alpha.11",
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 QasProfile = defineAsyncComponent(() => import('./components/profile/QasProfile.vue'))
62
- export const QasResizer = defineAsyncComponent(() => import('./components/resizer/QasResizer.vue'))
63
- export const QasRadio = defineAsyncComponent(() => import('./components/radio/QasRadio.vue'))
64
- export const QasSearchBox = defineAsyncComponent(() => import('./components/search-box/QasSearchBox.vue'))
65
- export const QasSearchInput = defineAsyncComponent(() => import('./components/search-input/QasSearchInput.vue'))
66
- export const QasSelect = defineAsyncComponent(() => import('./components/select/QasSelect.vue'))
67
- export const QasSelectList = defineAsyncComponent(() => import('./components/select-list/QasSelectList.vue'))
68
- export const QasSelectListDialog = defineAsyncComponent(() => import('./components/select-list-dialog/QasSelectListDialog.vue'))
69
- export const QasSignaturePad = defineAsyncComponent(() => import('./components/signature-pad/QasSignaturePad.vue'))
70
- export const QasSignatureUploader = defineAsyncComponent(() => import('./components/signature-uploader/QasSignatureUploader.vue'))
71
- export const QasSingleView = defineAsyncComponent(() => import('./components/single-view/QasSingleView.vue'))
72
- export const QasSortable = defineAsyncComponent(() => import('./components/sortable/QasSortable.vue'))
73
- export const QasStatus = defineAsyncComponent(() => import('./components/status/QasStatus.vue'))
74
- export const QasStepper = defineAsyncComponent(() => import('./components/stepper/QasStepper.vue'))
75
- export const QasStepperFormView = defineAsyncComponent(() => import('./components/stepper-form-view/QasStepperFormView.vue'))
76
- export const QasTableGenerator = defineAsyncComponent(() => import('./components/table-generator/QasTableGenerator.vue'))
77
- export const QasTabsGenerator = defineAsyncComponent(() => import('./components/tabs-generator/QasTabsGenerator.vue'))
78
- export const QasTextTruncate = defineAsyncComponent(() => import('./components/text-truncate/QasTextTruncate.vue'))
79
- export const QasTimeline = defineAsyncComponent(() => import('./components/timeline/QasTimeline.vue'))
80
- export const QasTip = defineAsyncComponent(() => import('./components/tip/QasTip.vue'))
81
- export const QasToggle = defineAsyncComponent(() => import('./components/toggle/QasToggle.vue'))
82
- export const QasToggleVisibility = defineAsyncComponent(() => import('./components/toggle-visibility/QasToggleVisibility.vue'))
83
- export const QasTooltip = defineAsyncComponent(() => import('./components/tooltip/QasTooltip.vue'))
84
- export const QasTransfer = defineAsyncComponent(() => import('./components/transfer/QasTransfer.vue'))
85
- export const QasTreeGenerator = defineAsyncComponent(() => import('./components/tree-generator/QasTreeGenerator.vue'))
86
- export const QasUploader = defineAsyncComponent(() => import('./components/uploader/QasUploader.vue'))
87
- export const QasWelcome = defineAsyncComponent(() => import('./components/welcome/QasWelcome.vue'))
88
- export const QasWhatsappLink = defineAsyncComponent(() => import('./components/whatsapp-link/QasWhatsappLink.vue'))
89
- export const QasReportsFilters = defineAsyncComponent(() => import('./components/reports-filters/QasReportsFilters.vue'))
90
- export const QasMap = defineAsyncComponent(() => import('./components/map/QasMap.vue'))
91
- export const QasChartView = defineAsyncComponent(() => import('./components/chart-view/QasChartView.vue'))
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.'