maz-ui 3.43.4 → 3.44.0
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/components/MazAccordion.d.ts +2 -2
- package/components/MazAccordion.mjs +84 -84
- package/components/MazAnimatedCounter.mjs +9 -10
- package/components/MazAvatar.d.ts +3 -3
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.d.ts +2 -2
- package/components/MazBackdrop.mjs +12 -10
- package/components/MazBadge.d.ts +2 -2
- package/components/MazBadge.mjs +3 -4
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +7 -5
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.d.ts +3 -3
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.d.ts +2 -2
- package/components/MazCardSpotlight.mjs +4 -5
- package/components/MazCarousel.d.ts +2 -2
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChart.d.ts +1 -1
- package/components/MazCheckbox.d.ts +2 -2
- package/components/MazCheckbox.mjs +10 -11
- package/components/MazCircularProgressBar.d.ts +1 -1
- package/components/MazCircularProgressBar.mjs +21 -23
- package/components/MazDialog.d.ts +2 -2
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +17 -14
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.d.ts +2 -2
- package/components/MazDrawer.mjs +71 -69
- package/components/MazDropdown.d.ts +7 -6
- package/components/MazDropdown.mjs +130 -128
- package/components/MazDropzone.d.ts +1 -1
- package/components/MazDropzone.mjs +1 -1
- package/components/MazExpandAnimation.d.ts +2 -2
- package/components/MazExpandAnimation.mjs +26 -26
- package/components/MazFullscreenLoader.d.ts +2 -2
- package/components/MazFullscreenLoader.mjs +11 -10
- package/components/MazGallery.d.ts +2 -2
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +45 -34
- package/components/MazInput.d.ts +4 -4
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.d.ts +2 -2
- package/components/MazInputCode.mjs +4 -5
- package/components/MazInputNumber.d.ts +2 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.d.ts +2 -2
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.d.ts +7 -2
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.d.ts +2 -2
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazLink.d.ts +6 -6
- package/components/MazLink.mjs +3 -4
- package/components/MazLoadingBar.d.ts +2 -2
- package/components/MazLoadingBar.mjs +17 -18
- package/components/MazPagination.d.ts +3 -3
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +1 -1
- package/components/MazPhoneNumberInput/types.d.ts +5 -5
- package/components/MazPhoneNumberInput/use-libphonenumber.d.ts +1 -1
- package/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
- package/components/MazPhoneNumberInput.d.ts +8 -8
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +2 -2
- package/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
- package/components/MazPicker/types.d.ts +4 -4
- package/components/MazPicker/utils.d.ts +4 -4
- package/components/MazPicker.d.ts +3 -3
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.d.ts +2 -2
- package/components/MazPullToRefresh.mjs +1 -1
- package/components/MazRadio.mjs +8 -9
- package/components/MazRadioButtons.d.ts +2 -2
- package/components/MazRadioButtons.mjs +44 -42
- package/components/MazReadingProgressBar.d.ts +2 -2
- package/components/MazReadingProgressBar.mjs +12 -13
- package/components/MazSelect.d.ts +4 -4
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider/utils.d.ts +4 -4
- package/components/MazSlider.mjs +100 -87
- package/components/MazSpinner.mjs +6 -7
- package/components/MazStepper.d.ts +3 -3
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.d.ts +2 -2
- package/components/MazSwitch.mjs +6 -6
- package/components/MazTable.d.ts +13 -10
- package/components/MazTable.mjs +1 -1
- package/components/MazTableCell.mjs +4 -5
- package/components/MazTableRow.d.ts +2 -2
- package/components/MazTableRow.mjs +4 -5
- package/components/MazTableTitle.mjs +2 -3
- package/components/MazTabs.d.ts +4 -4
- package/components/MazTabsBar.d.ts +7 -5
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTabsContent.mjs +5 -4
- package/components/MazTabsContentItem.mjs +16 -17
- package/components/MazTextarea.d.ts +2 -2
- package/components/MazTextarea.mjs +19 -17
- package/components/MazTransitionExpand.d.ts +2 -2
- package/components/MazTransitionExpand.mjs +19 -18
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAnimatedCounter.css +1 -1
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazBadge.css +1 -1
- package/components/assets/MazBottomSheet.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazCarousel.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazCircularProgressBar.css +1 -1
- package/components/assets/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/assets/MazExpandAnimation.css +1 -1
- package/components/assets/MazGallery.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputCode.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazLazyImg.css +1 -1
- package/components/assets/MazLink.css +1 -1
- package/components/assets/MazLoadingBar.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazPickerMonthSwitcher.css +1 -1
- package/components/assets/MazPickerShortcuts.css +1 -1
- package/components/assets/MazPickerYearSwitcher.css +1 -1
- package/components/assets/MazPullToRefresh.css +1 -1
- package/components/assets/MazRadio.css +1 -1
- package/components/assets/MazRadioButtons.css +1 -1
- package/components/assets/MazReadingProgressBar.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazSlider.css +1 -1
- package/components/assets/MazSpinner.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazSwitch.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTableCell.css +1 -1
- package/components/assets/MazTableRow.css +1 -1
- package/components/assets/MazTableTitle.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/assets/MazTabsContentItem.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/assets/MazTransitionExpand.css +1 -1
- package/components/chunks/{MazAvatar-DsJvzyS9.mjs → MazAvatar-BU1nJFcV.mjs} +8 -9
- package/components/chunks/{MazBadge-CYJlqITD.mjs → MazBadge-CwA0md19.mjs} +4 -5
- package/components/chunks/{MazBottomSheet-CIlIdn-2.mjs → MazBottomSheet-DUOIusEi.mjs} +54 -52
- package/components/chunks/{MazBtn-CCNGs6oo.mjs → MazBtn-5BSKOcqG.mjs} +35 -36
- package/components/chunks/{MazBtn-Ccvl1ZWv.mjs → MazBtn-B1-sTc7F.mjs} +31 -32
- package/components/chunks/{MazBtn-BC5OegPu.mjs → MazBtn-BY8WCtM7.mjs} +35 -36
- package/components/chunks/{MazBtn-CX4OgPzp.mjs → MazBtn-C5G78zLg.mjs} +35 -36
- package/components/chunks/MazBtn-CeVwyYR5.mjs +150 -0
- package/components/chunks/{MazBtn-BqgdERYQ.mjs → MazBtn-ColLVUca.mjs} +35 -36
- package/components/chunks/{MazBtn-beTASOLt.mjs → MazBtn-DJhQqzja.mjs} +35 -36
- package/components/chunks/MazBtn-DuY28-0U.mjs +150 -0
- package/components/chunks/{MazBtn-BydIwD1J.mjs → MazBtn-f1mBXJeU.mjs} +31 -32
- package/components/chunks/MazBtn-h3WmmaEO.mjs +150 -0
- package/components/chunks/MazBtn-zyRLUViT.mjs +150 -0
- package/components/chunks/{MazCard-bmiVPg8p.mjs → MazCard-BWxV_Z-i.mjs} +25 -26
- package/components/chunks/{MazCarousel-CL0bMygd.mjs → MazCarousel-D5EmW7Sa.mjs} +43 -35
- package/components/chunks/{MazCheckbox-DsFbvpp4.mjs → MazCheckbox-BWiMbecz.mjs} +11 -12
- package/components/chunks/{MazCheckbox-CCa7grGF.mjs → MazCheckbox-D3PXkt75.mjs} +11 -12
- package/components/chunks/{MazDialog-BckFta4N.mjs → MazDialog-CLWKCphI.mjs} +56 -54
- package/components/chunks/{MazDialogPromise-Bb6h4hFz.mjs → MazDialogPromise-DVOJwdVp.mjs} +139 -126
- package/components/chunks/{MazDropzone-C_8mRUbK.mjs → MazDropzone-Dm2IirHm.mjs} +33 -54
- package/components/chunks/MazExpandAnimation-ChSSdQAq.mjs +58 -0
- package/components/chunks/{MazGallery-CcpeM_zk.mjs → MazGallery-BlfPe8WG.mjs} +103 -101
- package/components/chunks/{MazGallery-6UK5sH9P.mjs → MazGallery-Bn9p1gNb.mjs} +102 -100
- package/{modules/chunks/MazIcon-CiNswMKM.mjs → components/chunks/MazIcon-B8A0hQAH.mjs} +45 -34
- package/components/chunks/{MazIcon-Cxrv3_OK.mjs → MazIcon-BDGxCy9M.mjs} +45 -34
- package/components/chunks/{MazIcon-BKuhvwwq.mjs → MazIcon-D3umgnku.mjs} +45 -34
- package/components/chunks/{MazInput-DNwBL54e.mjs → MazInput-BpsE-mdg.mjs} +69 -69
- package/components/chunks/{MazInputNumber-BSdVF8-q.mjs → MazInputNumber-DGBYbDSX.mjs} +186 -182
- package/components/chunks/{MazInputPrice-osrAz4xd.mjs → MazInputPrice-j2BNMeFp.mjs} +134 -129
- package/components/chunks/{MazInputTags-XUWwx6p8.mjs → MazInputTags-CJofVaj5.mjs} +234 -252
- package/components/chunks/{MazLazyImg-6qrfqWKr.mjs → MazLazyImg-BFG6FIJZ.mjs} +6 -7
- package/components/chunks/{MazLazyImg-BelScAEF.mjs → MazLazyImg-Dboc6Xfz.mjs} +5 -6
- package/components/chunks/{MazPagination-DUiHgLAp.mjs → MazPagination-C6ZehQSZ.mjs} +118 -119
- package/components/chunks/{MazPhoneNumberInput-HeEEyDu0.mjs → MazPhoneNumberInput-DpWoNQfx.mjs} +707 -695
- package/components/chunks/MazPicker-ia2BEmm5.mjs +2531 -0
- package/components/chunks/{MazPickerMonthSwitcher-CoV-84J1.mjs → MazPickerMonthSwitcher-CKtfZ_m-.mjs} +19 -19
- package/components/chunks/{MazPickerShortcuts-5IfUIwpz.mjs → MazPickerShortcuts-Cc9VoqBw.mjs} +10 -10
- package/components/chunks/{MazPickerYearSwitcher-MeptqtZk.mjs → MazPickerYearSwitcher-0b5Wrem9.mjs} +10 -8
- package/components/chunks/{MazPullToRefresh-DWbmwlzV.mjs → MazPullToRefresh-CUazP4y2.mjs} +21 -22
- package/components/chunks/MazSelect-COJoKXbV.mjs +847 -0
- package/components/chunks/MazSpinner-9Jue6cel.mjs +37 -0
- package/components/chunks/{MazSpinner-BKjRRWtc.mjs → MazSpinner-BGPOws6a.mjs} +6 -7
- package/components/chunks/{MazSpinner-BXxULdoD.mjs → MazSpinner-BWYdqSMP.mjs} +6 -7
- package/components/chunks/{MazSpinner-BRgzRI07.mjs → MazSpinner-BZOjTZBN.mjs} +6 -7
- package/components/chunks/{MazSpinner-B-svzg-R.mjs → MazSpinner-BaAMq7LI.mjs} +6 -7
- package/components/chunks/MazSpinner-Bad2n-0k.mjs +37 -0
- package/components/chunks/MazSpinner-BxnVFqUu.mjs +37 -0
- package/components/chunks/{MazSpinner-Mvsi6uCt.mjs → MazSpinner-C41VyUup.mjs} +6 -7
- package/components/chunks/MazSpinner-C6StE-Mb.mjs +37 -0
- package/components/chunks/{MazSpinner-BFXwybUv.mjs → MazSpinner-CNIlbDfg.mjs} +6 -7
- package/components/chunks/MazSpinner-Cz2DHV6g.mjs +37 -0
- package/components/chunks/MazSpinner-D4CdHpP2.mjs +37 -0
- package/{modules/chunks/MazSpinner--jWWogVn.mjs → components/chunks/MazSpinner-DHQH6Bhz.mjs} +6 -7
- package/components/chunks/MazSpinner-DRj2VpGA.mjs +37 -0
- package/components/chunks/{MazSpinner-C1lg-Klx.mjs → MazSpinner-DkXequnp.mjs} +6 -7
- package/components/chunks/MazSpinner-EA5ejB8F.mjs +37 -0
- package/components/chunks/{MazSpinner-BtpIL60X.mjs → MazSpinner-RvDGcBng.mjs} +6 -7
- package/components/chunks/{MazSpinner-B_WP-2kr.mjs → MazSpinner-V-bFi71W.mjs} +6 -7
- package/components/chunks/MazSpinner-aPFlrc5E.mjs +37 -0
- package/components/chunks/{MazSpinner-CfA_KEZT.mjs → MazSpinner-nH44Htog.mjs} +6 -7
- package/components/chunks/MazSpinner-nOD-7_sU.mjs +37 -0
- package/components/chunks/MazSpinner-yZGK-AQe.mjs +37 -0
- package/components/chunks/{MazStepper-DDofJsdg.mjs → MazStepper-DxrzKz06.mjs} +94 -83
- package/components/chunks/MazTable-DRUj_PZp.mjs +1960 -0
- package/components/chunks/{MazTabsBar-BXDEQkZM.mjs → MazTabsBar-xcIIXHx5.mjs} +67 -68
- package/components/chunks/{MazTransitionExpand-BwuAIzII.mjs → MazTransitionExpand-B08cSrmL.mjs} +20 -19
- package/components/chunks/{examples.mobile.json-um0ibyv5.mjs → examples.mobile.json-JpNGylGv.mjs} +1 -1
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/MazSpinner.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/{MazBtn-Czcbhr3Z.cjs → MazBtn-BbCGGxkK.cjs} +2 -2
- package/modules/chunks/{MazBtn-CXcW31TK.mjs → MazBtn-UBHTKqaN.mjs} +35 -36
- package/modules/chunks/MazIcon-BDSXZYZ8.cjs +1 -0
- package/{components/chunks/MazIcon-DtG5ii8R.mjs → modules/chunks/MazIcon-C2ch3jUS.mjs} +45 -34
- package/modules/chunks/{MazSpinner-Cw1KnqLM.cjs → MazSpinner-BiyFRA4w.cjs} +1 -1
- package/modules/chunks/MazSpinner-C9_xSbZZ.mjs +37 -0
- package/modules/chunks/{index-CThtJOu5.mjs → index-Cwbjspv3.mjs} +621 -588
- package/modules/chunks/index-tnjajVkX.cjs +124 -0
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +34 -35
- package/nuxt/index.json +2 -2
- package/nuxt/index.mjs +3 -4
- package/nuxt/types.d.mts +24 -0
- package/nuxt/types.d.ts +24 -0
- package/package.json +77 -83
- package/resolvers/unplugin-directives-resolver.d.ts +1 -1
- package/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
- package/tailwindcss/tailwind.config.ts +9 -2
- package/tailwindcss/utils/colors.ts +3 -3
- package/tailwindcss/variables/colors.ts +12 -12
- package/tailwindcss/variables/utilities.ts +2 -2
- package/tailwindcss/variables/z-indexes.ts +12 -11
- package/types/components/MazAccordion.vue.d.ts +2 -2
- package/types/components/MazAvatar.vue.d.ts +3 -3
- package/types/components/MazBackdrop.vue.d.ts +2 -2
- package/types/components/MazBadge.vue.d.ts +2 -2
- package/types/components/MazBtn.vue.d.ts +7 -5
- package/types/components/MazCard.vue.d.ts +3 -3
- package/types/components/MazCardSpotlight.vue.d.ts +2 -2
- package/types/components/MazCarousel.vue.d.ts +2 -2
- package/types/components/MazChart.vue.d.ts +1 -1
- package/types/components/MazCheckbox.vue.d.ts +2 -2
- package/types/components/MazCircularProgressBar.vue.d.ts +1 -1
- package/types/components/MazDialog.vue.d.ts +2 -2
- package/types/components/MazDialogPromise/use-maz-dialog-promise.d.ts +17 -14
- package/types/components/MazDrawer.vue.d.ts +2 -2
- package/types/components/MazDropdown.vue.d.ts +7 -6
- package/types/components/MazDropzone.vue.d.ts +1 -1
- package/types/components/MazExpandAnimation.vue.d.ts +2 -2
- package/types/components/MazFullscreenLoader.vue.d.ts +2 -2
- package/types/components/MazGallery.vue.d.ts +2 -2
- package/types/components/MazInput.vue.d.ts +4 -4
- package/types/components/MazInputCode.vue.d.ts +2 -2
- package/types/components/MazInputNumber.vue.d.ts +2 -2
- package/types/components/MazInputPrice.vue.d.ts +2 -2
- package/types/components/MazInputTags.vue.d.ts +7 -2
- package/types/components/MazLazyImg.vue.d.ts +2 -2
- package/types/components/MazLink.vue.d.ts +6 -6
- package/types/components/MazLoadingBar.vue.d.ts +2 -2
- package/types/components/MazPagination.vue.d.ts +3 -3
- package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +1 -1
- package/types/components/MazPhoneNumberInput/types.d.ts +5 -5
- package/types/components/MazPhoneNumberInput/use-libphonenumber.d.ts +1 -1
- package/types/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
- package/types/components/MazPhoneNumberInput.vue.d.ts +8 -8
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +2 -2
- package/types/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
- package/types/components/MazPicker/types.d.ts +4 -4
- package/types/components/MazPicker/utils.d.ts +4 -4
- package/types/components/MazPicker.vue.d.ts +3 -3
- package/types/components/MazPullToRefresh.vue.d.ts +2 -2
- package/types/components/MazRadioButtons.vue.d.ts +2 -2
- package/types/components/MazReadingProgressBar.vue.d.ts +2 -2
- package/types/components/MazSelect.vue.d.ts +4 -4
- package/types/components/MazSlider/utils.d.ts +4 -4
- package/types/components/MazStepper.vue.d.ts +3 -3
- package/types/components/MazSwitch.vue.d.ts +2 -2
- package/types/components/MazTable.vue.d.ts +13 -10
- package/types/components/MazTableRow.vue.d.ts +2 -2
- package/types/components/MazTabs.vue.d.ts +4 -4
- package/types/components/MazTabsBar.vue.d.ts +7 -5
- package/types/components/MazTextarea.vue.d.ts +2 -2
- package/types/components/MazTransitionExpand.vue.d.ts +2 -2
- package/types/modules/composables/use-reading-time.d.ts +5 -5
- package/types/modules/composables/use-theme-handler.d.ts +2 -2
- package/types/modules/directives/closable.d.ts +2 -2
- package/types/modules/directives/tooltip/index.d.ts +4 -4
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +2 -2
- package/types/modules/directives/v-lazy-img/index.d.ts +1 -1
- package/types/modules/filters/capitalize.d.ts +1 -1
- package/types/modules/filters/currency.d.ts +1 -1
- package/types/modules/filters/date.d.ts +1 -1
- package/types/modules/filters/index.d.ts +8 -4
- package/types/modules/filters/number.d.ts +1 -1
- package/types/modules/filters/telephone.d.ts +1 -1
- package/types/modules/helpers/idle-timeout/idle-timeout-handler.d.ts +1 -1
- package/types/modules/helpers/mount-component.d.ts +2 -2
- package/types/modules/helpers/normalize-string.d.ts +2 -2
- package/types/modules/helpers/swipe-handler.d.ts +2 -2
- package/types/modules/helpers/user-visibility/types.d.ts +2 -2
- package/types/modules/plugins/aos/index.d.ts +3 -3
- package/types/modules/plugins/index.d.ts +2 -2
- package/types/modules/plugins/toaster/MazToast.vue.d.ts +3 -3
- package/types/modules/plugins/toaster/index.d.ts +1 -2
- package/types/modules/plugins/toaster/types.d.ts +6 -6
- package/types/modules/plugins/wait/utils.d.ts +4 -4
- package/types/resolvers/unplugin-directives-resolver.d.ts +1 -1
- package/types/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
- package/types/tailwindcss/tailwind.config.d.ts +71 -9
- package/types/tailwindcss/variables/z-indexes.d.ts +11 -11
- package/components/chunks/MazBtn-BOb7Fg_d.mjs +0 -151
- package/components/chunks/MazBtn-DpkJQ_3W.mjs +0 -151
- package/components/chunks/MazBtn-Dw_CR_0X.mjs +0 -151
- package/components/chunks/MazBtn-_NGDIlQK.mjs +0 -151
- package/components/chunks/MazExpandAnimation-Cin7sZ3I.mjs +0 -58
- package/components/chunks/MazPicker-CltoTa2Z.mjs +0 -2477
- package/components/chunks/MazSelect-DDKbowf3.mjs +0 -835
- package/components/chunks/MazSpinner-2ti3NQjo.mjs +0 -38
- package/components/chunks/MazSpinner-BZUmasIf.mjs +0 -38
- package/components/chunks/MazSpinner-C-lFmcUR.mjs +0 -38
- package/components/chunks/MazSpinner-C75WMoEA.mjs +0 -38
- package/components/chunks/MazSpinner-CA38Ikqe.mjs +0 -38
- package/components/chunks/MazSpinner-CAHOYqvB.mjs +0 -38
- package/components/chunks/MazSpinner-COOp2WX8.mjs +0 -38
- package/components/chunks/MazSpinner-D-ONjGGv.mjs +0 -38
- package/components/chunks/MazSpinner-DJkziC4O.mjs +0 -38
- package/components/chunks/MazSpinner-Di0F6oZz.mjs +0 -38
- package/components/chunks/MazSpinner-EcA0uOQv.mjs +0 -38
- package/components/chunks/MazSpinner-s_0BLDqW.mjs +0 -38
- package/components/chunks/MazTable-B9JiJ2B2.mjs +0 -1950
- package/modules/chunks/MazIcon-DdFYd3W8.cjs +0 -1
- package/modules/chunks/index-RvIMpzcQ.cjs +0 -124
- package/nuxt/runtime/composables/{use-aos.mjs → use-aos.js} +0 -0
- package/nuxt/runtime/composables/{use-theme-handler.mjs → use-theme-handler.js} +1 -1
- package/nuxt/runtime/composables/{use-toast.mjs → use-toast.js} +0 -0
- package/nuxt/runtime/composables/{use-wait.mjs → use-wait.js} +0 -0
- package/nuxt/runtime/plugins/{aos.mjs → aos.js} +1 -1
- package/nuxt/runtime/plugins/{maz-icon-path.mjs → maz-icon-path.js} +0 -0
- package/nuxt/runtime/plugins/{toaster.mjs → toaster.js} +1 -1
- package/nuxt/runtime/plugins/{v-click-outside.mjs → v-click-outside.js} +1 -1
- package/nuxt/runtime/plugins/{v-fullscreen-img.mjs → v-fullscreen-img.js} +1 -1
- package/nuxt/runtime/plugins/{v-lazy-img.mjs → v-lazy-img.js} +1 -1
- package/nuxt/runtime/plugins/{v-tooltip.mjs → v-tooltip.js} +1 -1
- package/nuxt/runtime/plugins/{v-zoom-img.mjs → v-zoom-img.js} +1 -1
- package/nuxt/runtime/plugins/{wait.mjs → wait.js} +1 -1
|
@@ -1,1950 +0,0 @@
|
|
|
1
|
-
import '../assets/MazTable.css';
|
|
2
|
-
import { openBlock as s, createElementBlock as z, createElementVNode as B, getCurrentInstance as xe, computed as p, defineComponent as oe, defineAsyncComponent as Y, ref as N, onMounted as et, useSlots as Pe, normalizeClass as C, normalizeStyle as ie, createCommentVNode as u, renderSlot as V, createBlock as S, unref as h, resolveDynamicComponent as fe, withDirectives as He, mergeProps as Le, toHandlers as tt, vModelDynamic as ot, createTextVNode as re, toDisplayString as G, withModifiers as pe, withCtx as O, createVNode as _, useCssVars as we, onBeforeMount as Oe, nextTick as Ce, Transition as lt, Fragment as be, renderList as ke, useAttrs as at, inject as nt, pushScopeId as Ue, popScopeId as qe, toRefs as st, provide as rt, watch as ge } from "vue";
|
|
3
|
-
const it = {
|
|
4
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
-
width: "1em",
|
|
6
|
-
height: "1em",
|
|
7
|
-
fill: "none",
|
|
8
|
-
viewBox: "0 0 24 24"
|
|
9
|
-
}, ut = /* @__PURE__ */ B(
|
|
10
|
-
"path",
|
|
11
|
-
{
|
|
12
|
-
stroke: "currentColor",
|
|
13
|
-
"stroke-linecap": "round",
|
|
14
|
-
"stroke-linejoin": "round",
|
|
15
|
-
"stroke-width": "1.5",
|
|
16
|
-
d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607"
|
|
17
|
-
},
|
|
18
|
-
null,
|
|
19
|
-
-1
|
|
20
|
-
/* HOISTED */
|
|
21
|
-
), dt = [
|
|
22
|
-
ut
|
|
23
|
-
];
|
|
24
|
-
function Re(i, d) {
|
|
25
|
-
return s(), z("svg", it, [...dt]);
|
|
26
|
-
}
|
|
27
|
-
const Qe = { render: Re }, ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28
|
-
__proto__: null,
|
|
29
|
-
default: Qe,
|
|
30
|
-
render: Re
|
|
31
|
-
}, Symbol.toStringTag, { value: "Module" })), pt = {
|
|
32
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
33
|
-
width: "1em",
|
|
34
|
-
height: "1em",
|
|
35
|
-
fill: "none",
|
|
36
|
-
viewBox: "0 0 24 24"
|
|
37
|
-
}, ft = /* @__PURE__ */ B(
|
|
38
|
-
"path",
|
|
39
|
-
{
|
|
40
|
-
stroke: "currentColor",
|
|
41
|
-
"stroke-linecap": "round",
|
|
42
|
-
"stroke-linejoin": "round",
|
|
43
|
-
"stroke-width": "1.5",
|
|
44
|
-
d: "M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"
|
|
45
|
-
},
|
|
46
|
-
null,
|
|
47
|
-
-1
|
|
48
|
-
/* HOISTED */
|
|
49
|
-
), mt = [
|
|
50
|
-
ft
|
|
51
|
-
];
|
|
52
|
-
function vt(i, d) {
|
|
53
|
-
return s(), z("svg", pt, [...mt]);
|
|
54
|
-
}
|
|
55
|
-
const bt = { render: vt }, ht = {
|
|
56
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
57
|
-
width: "1em",
|
|
58
|
-
height: "1em",
|
|
59
|
-
fill: "none",
|
|
60
|
-
viewBox: "0 0 24 24"
|
|
61
|
-
}, yt = /* @__PURE__ */ B(
|
|
62
|
-
"path",
|
|
63
|
-
{
|
|
64
|
-
stroke: "currentColor",
|
|
65
|
-
"stroke-linecap": "round",
|
|
66
|
-
"stroke-linejoin": "round",
|
|
67
|
-
"stroke-width": "1.5",
|
|
68
|
-
d: "M15.75 19.5 8.25 12l7.5-7.5"
|
|
69
|
-
},
|
|
70
|
-
null,
|
|
71
|
-
-1
|
|
72
|
-
/* HOISTED */
|
|
73
|
-
), gt = [
|
|
74
|
-
yt
|
|
75
|
-
];
|
|
76
|
-
function zt(i, d) {
|
|
77
|
-
return s(), z("svg", ht, [...gt]);
|
|
78
|
-
}
|
|
79
|
-
const je = { render: zt }, kt = {
|
|
80
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
81
|
-
width: "1em",
|
|
82
|
-
height: "1em",
|
|
83
|
-
fill: "none",
|
|
84
|
-
viewBox: "0 0 24 24"
|
|
85
|
-
}, $t = /* @__PURE__ */ B(
|
|
86
|
-
"path",
|
|
87
|
-
{
|
|
88
|
-
stroke: "currentColor",
|
|
89
|
-
"stroke-linecap": "round",
|
|
90
|
-
"stroke-linejoin": "round",
|
|
91
|
-
"stroke-width": "1.5",
|
|
92
|
-
d: "m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"
|
|
93
|
-
},
|
|
94
|
-
null,
|
|
95
|
-
-1
|
|
96
|
-
/* HOISTED */
|
|
97
|
-
), wt = [
|
|
98
|
-
$t
|
|
99
|
-
];
|
|
100
|
-
function It(i, d) {
|
|
101
|
-
return s(), z("svg", kt, [...wt]);
|
|
102
|
-
}
|
|
103
|
-
const De = { render: It };
|
|
104
|
-
function Vt(i, d) {
|
|
105
|
-
let t;
|
|
106
|
-
return function(...b) {
|
|
107
|
-
clearTimeout(t), t = setTimeout(() => {
|
|
108
|
-
i.apply(this, b);
|
|
109
|
-
}, d);
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
function Ne({
|
|
113
|
-
componentName: i,
|
|
114
|
-
providedId: d
|
|
115
|
-
}) {
|
|
116
|
-
const t = xe();
|
|
117
|
-
return p(() => d ?? `${i}-${t == null ? void 0 : t.uid}`);
|
|
118
|
-
}
|
|
119
|
-
const St = {
|
|
120
|
-
key: 0,
|
|
121
|
-
class: "m-input-wrapper-left"
|
|
122
|
-
}, Ct = { class: "m-input-wrapper-input" }, Bt = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], At = { key: 0 }, Mt = {
|
|
123
|
-
key: 1,
|
|
124
|
-
class: "m-input-wrapper-right"
|
|
125
|
-
}, _t = /* @__PURE__ */ oe({
|
|
126
|
-
inheritAttrs: !1,
|
|
127
|
-
__name: "MazInput",
|
|
128
|
-
props: {
|
|
129
|
-
style: { default: void 0 },
|
|
130
|
-
class: { default: void 0 },
|
|
131
|
-
modelValue: { default: void 0 },
|
|
132
|
-
placeholder: { default: void 0 },
|
|
133
|
-
label: { default: void 0 },
|
|
134
|
-
name: { default: void 0 },
|
|
135
|
-
color: { default: "primary" },
|
|
136
|
-
type: { default: "text" },
|
|
137
|
-
required: { type: Boolean, default: !1 },
|
|
138
|
-
disabled: { type: Boolean, default: !1 },
|
|
139
|
-
readonly: { type: Boolean, default: !1 },
|
|
140
|
-
id: { default: void 0 },
|
|
141
|
-
error: { type: Boolean, default: !1 },
|
|
142
|
-
success: { type: Boolean, default: !1 },
|
|
143
|
-
warning: { type: Boolean, default: !1 },
|
|
144
|
-
hint: { default: void 0 },
|
|
145
|
-
inputClasses: { default: void 0 },
|
|
146
|
-
noBorder: { type: Boolean, default: !1 },
|
|
147
|
-
noRadius: { type: Boolean, default: !1 },
|
|
148
|
-
inputmode: { default: "text" },
|
|
149
|
-
size: { default: "md" },
|
|
150
|
-
debounce: { type: [Boolean, Number], default: !1 },
|
|
151
|
-
debounceDelay: { default: 500 },
|
|
152
|
-
validButton: { type: Boolean, default: !1 },
|
|
153
|
-
validButtonLoading: { type: Boolean, default: !1 },
|
|
154
|
-
autoFocus: { type: Boolean, default: !1 },
|
|
155
|
-
borderActive: { type: Boolean, default: !1 },
|
|
156
|
-
leftIcon: { default: void 0 },
|
|
157
|
-
rightIcon: { default: void 0 },
|
|
158
|
-
roundedSize: { default: void 0 },
|
|
159
|
-
block: { type: Boolean }
|
|
160
|
-
},
|
|
161
|
-
emits: ["update:model-value", "focus", "blur", "click", "change"],
|
|
162
|
-
setup(i, { emit: d }) {
|
|
163
|
-
const t = Y(() => Promise.resolve().then(() => Qt)), b = Y(() => import("./MazIcon-DtG5ii8R.mjs")), c = Y(() => import("./eye-slash-tjfxO0LK.mjs")), v = Y(() => import("./eye-DqO_Jx56.mjs")), y = Y(() => Promise.resolve().then(() => no)), o = i, K = d, T = N(!1), w = N(!1), j = N(), A = Ne({
|
|
164
|
-
componentName: "MazInput",
|
|
165
|
-
providedId: o.id
|
|
166
|
-
});
|
|
167
|
-
et(() => {
|
|
168
|
-
var a;
|
|
169
|
-
o.autoFocus && ((a = j.value) == null || a.focus());
|
|
170
|
-
});
|
|
171
|
-
const q = p(() => o.type === "password"), $ = p(() => T.value ? "text" : o.type), I = p(() => {
|
|
172
|
-
if (!o.noBorder) {
|
|
173
|
-
if (o.error)
|
|
174
|
-
return "maz-border-danger";
|
|
175
|
-
if (o.success)
|
|
176
|
-
return "maz-border-success";
|
|
177
|
-
if (o.warning)
|
|
178
|
-
return "maz-border-warning";
|
|
179
|
-
if (w.value || o.borderActive) {
|
|
180
|
-
if (o.color === "black")
|
|
181
|
-
return "maz-border-black";
|
|
182
|
-
if (o.color === "danger")
|
|
183
|
-
return "maz-border-danger";
|
|
184
|
-
if (o.color === "info")
|
|
185
|
-
return "maz-border-info";
|
|
186
|
-
if (o.color === "primary")
|
|
187
|
-
return "maz-border-primary";
|
|
188
|
-
if (o.color === "secondary")
|
|
189
|
-
return "maz-border-secondary";
|
|
190
|
-
if (o.color === "success")
|
|
191
|
-
return "maz-border-success";
|
|
192
|
-
if (o.color === "warning")
|
|
193
|
-
return "maz-border-warning";
|
|
194
|
-
if (o.color === "white")
|
|
195
|
-
return "maz-border-white";
|
|
196
|
-
}
|
|
197
|
-
return "--default-border";
|
|
198
|
-
}
|
|
199
|
-
}), E = Pe(), R = p(() => {
|
|
200
|
-
const { required: a, placeholder: P } = o;
|
|
201
|
-
if (P)
|
|
202
|
-
return a ? `${P} *` : P;
|
|
203
|
-
}), g = p(() => J.value !== void 0 && J.value !== ""), Z = Vt(
|
|
204
|
-
(a) => {
|
|
205
|
-
K("update:model-value", a);
|
|
206
|
-
},
|
|
207
|
-
typeof o.debounce == "number" ? o.debounce : o.debounceDelay ?? 500
|
|
208
|
-
), ae = (a) => {
|
|
209
|
-
if (o.debounce)
|
|
210
|
-
return Z(a);
|
|
211
|
-
K("update:model-value", a);
|
|
212
|
-
}, J = p({
|
|
213
|
-
get: () => o.modelValue,
|
|
214
|
-
set: (a) => ae(a)
|
|
215
|
-
}), ee = p(() => (!!o.label || !!o.hint) && (w.value || !!g.value || !!o.placeholder || ["date", "month", "week"].includes(o.type))), ue = p(() => !!o.label || !!o.hint);
|
|
216
|
-
function ne() {
|
|
217
|
-
return !!E["right-icon"] || q.value || !!E["valid-button"] || o.validButton || !!o.rightIcon;
|
|
218
|
-
}
|
|
219
|
-
function F() {
|
|
220
|
-
return !!E["left-icon"] || !!o.leftIcon;
|
|
221
|
-
}
|
|
222
|
-
function se(a) {
|
|
223
|
-
K("focus", a), w.value = !0;
|
|
224
|
-
}
|
|
225
|
-
function me(a) {
|
|
226
|
-
K("blur", a), w.value = !1;
|
|
227
|
-
}
|
|
228
|
-
function Q(a) {
|
|
229
|
-
return K("change", a);
|
|
230
|
-
}
|
|
231
|
-
return (a, P) => (s(), z(
|
|
232
|
-
"div",
|
|
233
|
-
{
|
|
234
|
-
class: C(["m-input", [
|
|
235
|
-
{
|
|
236
|
-
"--is-focused": w.value || a.borderActive,
|
|
237
|
-
"--should-up": ee.value,
|
|
238
|
-
"--has-label": ue.value,
|
|
239
|
-
"--is-disabled": a.disabled,
|
|
240
|
-
"--is-readonly": a.readonly,
|
|
241
|
-
"--has-z-2": a.error || a.warning || a.success,
|
|
242
|
-
"--has-state": a.error || a.warning || a.success,
|
|
243
|
-
"--block": a.block
|
|
244
|
-
},
|
|
245
|
-
o.class,
|
|
246
|
-
`--${a.color}`,
|
|
247
|
-
`--${a.size}`
|
|
248
|
-
]]),
|
|
249
|
-
style: ie(a.style)
|
|
250
|
-
},
|
|
251
|
-
[
|
|
252
|
-
B(
|
|
253
|
-
"div",
|
|
254
|
-
{
|
|
255
|
-
class: C(["m-input-wrapper", [
|
|
256
|
-
a.inputClasses,
|
|
257
|
-
I.value,
|
|
258
|
-
a.roundedSize ? `--rounded-${a.roundedSize}` : { "maz-rounded": !a.noRadius }
|
|
259
|
-
]])
|
|
260
|
-
},
|
|
261
|
-
[
|
|
262
|
-
F() ? (s(), z("div", St, [
|
|
263
|
-
u(`
|
|
264
|
-
@slot left-icon - The icon to display on the left of the input
|
|
265
|
-
`),
|
|
266
|
-
a.$slots["left-icon"] || a.leftIcon ? V(a.$slots, "left-icon", { key: 0 }, () => [
|
|
267
|
-
typeof a.leftIcon == "string" ? (s(), S(h(b), {
|
|
268
|
-
key: 0,
|
|
269
|
-
name: a.leftIcon,
|
|
270
|
-
class: "maz-text-xl maz-text-muted"
|
|
271
|
-
}, null, 8, ["name"])) : a.leftIcon ? (s(), S(fe(a.leftIcon), {
|
|
272
|
-
key: 1,
|
|
273
|
-
class: "maz-text-xl maz-text-muted"
|
|
274
|
-
})) : u("v-if", !0)
|
|
275
|
-
], !0) : u("v-if", !0)
|
|
276
|
-
])) : u("v-if", !0),
|
|
277
|
-
B("div", Ct, [
|
|
278
|
-
He(B("input", Le({
|
|
279
|
-
id: h(A),
|
|
280
|
-
ref_key: "input",
|
|
281
|
-
ref: j,
|
|
282
|
-
"onUpdate:modelValue": P[0] || (P[0] = (X) => J.value = X),
|
|
283
|
-
type: $.value,
|
|
284
|
-
name: a.name
|
|
285
|
-
}, a.$attrs, {
|
|
286
|
-
inputmode: a.inputmode,
|
|
287
|
-
placeholder: R.value,
|
|
288
|
-
"aria-label": a.label || a.placeholder,
|
|
289
|
-
disabled: a.disabled,
|
|
290
|
-
readonly: a.readonly,
|
|
291
|
-
required: a.required,
|
|
292
|
-
class: "m-input-input"
|
|
293
|
-
}, tt({
|
|
294
|
-
blur: me,
|
|
295
|
-
focus: se,
|
|
296
|
-
change: Q
|
|
297
|
-
}, !0), {
|
|
298
|
-
onClick: P[1] || (P[1] = (X) => a.$emit("click", X))
|
|
299
|
-
}), null, 16, Bt), [
|
|
300
|
-
[ot, J.value]
|
|
301
|
-
]),
|
|
302
|
-
a.label || a.hint ? (s(), z(
|
|
303
|
-
"span",
|
|
304
|
-
{
|
|
305
|
-
key: 0,
|
|
306
|
-
ref: "label",
|
|
307
|
-
class: C(["m-input-label", [
|
|
308
|
-
{
|
|
309
|
-
"maz-text-danger-600": a.error,
|
|
310
|
-
"maz-text-success-600": a.success,
|
|
311
|
-
"maz-text-warning-600": a.warning
|
|
312
|
-
}
|
|
313
|
-
]])
|
|
314
|
-
},
|
|
315
|
-
[
|
|
316
|
-
re(
|
|
317
|
-
G(a.hint || a.label) + " ",
|
|
318
|
-
1
|
|
319
|
-
/* TEXT */
|
|
320
|
-
),
|
|
321
|
-
a.required ? (s(), z("sup", At, "*")) : u("v-if", !0)
|
|
322
|
-
],
|
|
323
|
-
2
|
|
324
|
-
/* CLASS */
|
|
325
|
-
)) : u("v-if", !0)
|
|
326
|
-
]),
|
|
327
|
-
ne() ? (s(), z("div", Mt, [
|
|
328
|
-
u(`
|
|
329
|
-
@slot right-icon - The icon to display on the right of the input
|
|
330
|
-
`),
|
|
331
|
-
a.$slots["right-icon"] || a.rightIcon ? V(a.$slots, "right-icon", { key: 0 }, () => [
|
|
332
|
-
typeof a.rightIcon == "string" ? (s(), S(h(b), {
|
|
333
|
-
key: 0,
|
|
334
|
-
name: a.rightIcon,
|
|
335
|
-
class: "maz-text-xl maz-text-muted"
|
|
336
|
-
}, null, 8, ["name"])) : a.rightIcon ? (s(), S(fe(a.rightIcon), {
|
|
337
|
-
key: 1,
|
|
338
|
-
class: "maz-text-xl maz-text-muted"
|
|
339
|
-
})) : u("v-if", !0)
|
|
340
|
-
], !0) : u("v-if", !0),
|
|
341
|
-
q.value ? (s(), S(h(t), {
|
|
342
|
-
key: 1,
|
|
343
|
-
color: "transparent",
|
|
344
|
-
tabindex: "-1",
|
|
345
|
-
size: "mini",
|
|
346
|
-
onClick: P[2] || (P[2] = pe((X) => T.value = !T.value, ["stop"]))
|
|
347
|
-
}, {
|
|
348
|
-
default: O(() => [
|
|
349
|
-
T.value ? (s(), S(h(c), {
|
|
350
|
-
key: 0,
|
|
351
|
-
class: "maz-text-xl maz-text-muted"
|
|
352
|
-
})) : (s(), S(h(v), {
|
|
353
|
-
key: 1,
|
|
354
|
-
class: "maz-text-xl maz-text-muted"
|
|
355
|
-
}))
|
|
356
|
-
]),
|
|
357
|
-
_: 1
|
|
358
|
-
/* STABLE */
|
|
359
|
-
})) : u("v-if", !0),
|
|
360
|
-
u(`
|
|
361
|
-
@slot valid-button - Replace the valid button by your own
|
|
362
|
-
`),
|
|
363
|
-
a.$slots["valid-button"] || a.validButton ? V(a.$slots, "valid-button", { key: 2 }, () => [
|
|
364
|
-
_(h(t), {
|
|
365
|
-
color: "transparent",
|
|
366
|
-
disabled: a.disabled,
|
|
367
|
-
tabindex: "-1",
|
|
368
|
-
loading: a.validButtonLoading,
|
|
369
|
-
class: "m-input-valid-button",
|
|
370
|
-
size: "mini",
|
|
371
|
-
type: "submit"
|
|
372
|
-
}, {
|
|
373
|
-
default: O(() => [
|
|
374
|
-
_(h(y), { class: "maz-text-2xl maz-text-normal" })
|
|
375
|
-
]),
|
|
376
|
-
_: 1
|
|
377
|
-
/* STABLE */
|
|
378
|
-
}, 8, ["disabled", "loading"])
|
|
379
|
-
], !0) : u("v-if", !0)
|
|
380
|
-
])) : u("v-if", !0)
|
|
381
|
-
],
|
|
382
|
-
2
|
|
383
|
-
/* CLASS */
|
|
384
|
-
)
|
|
385
|
-
],
|
|
386
|
-
6
|
|
387
|
-
/* CLASS, STYLE */
|
|
388
|
-
));
|
|
389
|
-
}
|
|
390
|
-
}), le = (i, d) => {
|
|
391
|
-
const t = i.__vccOpts || i;
|
|
392
|
-
for (const [b, c] of d)
|
|
393
|
-
t[b] = c;
|
|
394
|
-
return t;
|
|
395
|
-
}, Te = /* @__PURE__ */ le(_t, [["__scopeId", "data-v-84073434"]]);
|
|
396
|
-
let Be = null;
|
|
397
|
-
function Tt(i, d) {
|
|
398
|
-
Be && clearTimeout(Be), Be = setTimeout(i, d);
|
|
399
|
-
}
|
|
400
|
-
const Kt = {
|
|
401
|
-
removeAccents: !0,
|
|
402
|
-
caseSensitive: !1,
|
|
403
|
-
replaceSpaces: !0,
|
|
404
|
-
removeSpecialCharacters: !1,
|
|
405
|
-
trim: !0,
|
|
406
|
-
normalizeSpaces: !0,
|
|
407
|
-
removeNumbers: !1,
|
|
408
|
-
customNormalizationForms: ["NFC", "NFKD"]
|
|
409
|
-
};
|
|
410
|
-
function $e(i, d) {
|
|
411
|
-
const t = { ...Kt, ...d }, b = {
|
|
412
|
-
À: "A",
|
|
413
|
-
Á: "A",
|
|
414
|
-
Â: "A",
|
|
415
|
-
Ã: "A",
|
|
416
|
-
Ä: "A",
|
|
417
|
-
Å: "A",
|
|
418
|
-
à: "a",
|
|
419
|
-
á: "a",
|
|
420
|
-
â: "a",
|
|
421
|
-
ã: "a",
|
|
422
|
-
ä: "a",
|
|
423
|
-
å: "a",
|
|
424
|
-
È: "E",
|
|
425
|
-
É: "E",
|
|
426
|
-
Ê: "E",
|
|
427
|
-
Ë: "E",
|
|
428
|
-
è: "e",
|
|
429
|
-
é: "e",
|
|
430
|
-
ê: "e",
|
|
431
|
-
ë: "e",
|
|
432
|
-
Î: "I",
|
|
433
|
-
Ï: "I",
|
|
434
|
-
í: "I",
|
|
435
|
-
î: "i",
|
|
436
|
-
ï: "i",
|
|
437
|
-
Ô: "O",
|
|
438
|
-
Õ: "O",
|
|
439
|
-
Ö: "O",
|
|
440
|
-
Ø: "O",
|
|
441
|
-
ô: "o",
|
|
442
|
-
õ: "o",
|
|
443
|
-
ö: "o",
|
|
444
|
-
ø: "o",
|
|
445
|
-
Ù: "U",
|
|
446
|
-
Ú: "U",
|
|
447
|
-
Û: "U",
|
|
448
|
-
Ü: "U",
|
|
449
|
-
ù: "u",
|
|
450
|
-
ú: "u",
|
|
451
|
-
û: "u",
|
|
452
|
-
ü: "u",
|
|
453
|
-
Ç: "C",
|
|
454
|
-
ç: "c",
|
|
455
|
-
ÿ: "y",
|
|
456
|
-
Ñ: "N",
|
|
457
|
-
ñ: "n",
|
|
458
|
-
ó: "o"
|
|
459
|
-
};
|
|
460
|
-
let c = i.toString();
|
|
461
|
-
if (t.trim && (c = c.trim()), t.normalizeSpaces && (c = c.replaceAll(/\s+/g, " ")), t.replaceSpaces && (c = c.replaceAll(" ", "-")), t.removeNumbers && (c = c.replaceAll(/\d/g, "")), t.removeAccents && (c = c.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (v) => b[v] || v), c = c.replaceAll(/[\u0300-\u036F]/g, "")), t.caseSensitive === !1 && (c = c.toLowerCase()), t.removeSpecialCharacters && (c = c.replaceAll(/[^\dA-Za-z-]/g, "")), t.trim && (c = c.trim()), t.customNormalizationForms)
|
|
462
|
-
for (const v of t.customNormalizationForms)
|
|
463
|
-
c = c.normalize(v);
|
|
464
|
-
return c;
|
|
465
|
-
}
|
|
466
|
-
function Pt(i, d) {
|
|
467
|
-
const t = i.length, b = d.length, c = [];
|
|
468
|
-
for (let v = 0; v <= t; v++)
|
|
469
|
-
c[v] = [v];
|
|
470
|
-
for (let v = 0; v <= b; v++)
|
|
471
|
-
c[0][v] = v;
|
|
472
|
-
for (let v = 1; v <= t; v++)
|
|
473
|
-
for (let y = 1; y <= b; y++) {
|
|
474
|
-
const o = i[v - 1] === d[y - 1] ? 0 : 1;
|
|
475
|
-
c[v][y] = Math.min(
|
|
476
|
-
c[v - 1][y] + 1,
|
|
477
|
-
c[v][y - 1] + 1,
|
|
478
|
-
c[v - 1][y - 1] + o
|
|
479
|
-
);
|
|
480
|
-
}
|
|
481
|
-
return c[t][b];
|
|
482
|
-
}
|
|
483
|
-
function We(i, d) {
|
|
484
|
-
const t = Pt(i, d), b = Math.max(i.length, d.length);
|
|
485
|
-
return 1 - t / b;
|
|
486
|
-
}
|
|
487
|
-
function Lt(i, d, t = 0.75) {
|
|
488
|
-
return We(i, d) >= t;
|
|
489
|
-
}
|
|
490
|
-
function Ae(i, d, t = 0.75) {
|
|
491
|
-
const b = p(
|
|
492
|
-
() => $e(typeof i == "string" ? i : i.value)
|
|
493
|
-
), c = p(
|
|
494
|
-
() => $e(typeof d == "string" ? d : d.value)
|
|
495
|
-
), v = p(() => typeof t == "number" ? t : t.value), y = p(() => We(b.value, c.value));
|
|
496
|
-
return {
|
|
497
|
-
isMatching: p(
|
|
498
|
-
() => Lt(b.value, c.value, v.value)
|
|
499
|
-
),
|
|
500
|
-
score: y
|
|
501
|
-
};
|
|
502
|
-
}
|
|
503
|
-
const Ge = (i, d, t) => {
|
|
504
|
-
var y;
|
|
505
|
-
i.stopPropagation();
|
|
506
|
-
const b = typeof t.value == "function" ? t.value : t.value.handler, c = typeof t.value == "object" ? t.value.exclude : void 0;
|
|
507
|
-
let v = !1;
|
|
508
|
-
if (c && c.length > 0) {
|
|
509
|
-
for (const o of c)
|
|
510
|
-
if (!v && i.target instanceof HTMLElement) {
|
|
511
|
-
const K = (y = document.querySelector(o)) == null ? void 0 : y.getAttribute("id");
|
|
512
|
-
v = i.target.getAttribute("id") === K;
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
!d.contains(i.target) && !v && (b == null || b());
|
|
516
|
-
};
|
|
517
|
-
function Ye() {
|
|
518
|
-
return document.ontouchstart === null ? "touchstart" : "click";
|
|
519
|
-
}
|
|
520
|
-
function Ot(i, d) {
|
|
521
|
-
const t = Ye();
|
|
522
|
-
document.removeEventListener(t, (b) => Ge(b, i, d));
|
|
523
|
-
}
|
|
524
|
-
function Nt(i, d) {
|
|
525
|
-
if (typeof d.value != "function" && typeof d.value == "object" && typeof d.value.handler != "function") {
|
|
526
|
-
console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
|
|
527
|
-
return;
|
|
528
|
-
}
|
|
529
|
-
const t = Ye();
|
|
530
|
-
document.addEventListener(t, (b) => Ge(b, i, d));
|
|
531
|
-
}
|
|
532
|
-
const Et = {
|
|
533
|
-
mounted: Nt,
|
|
534
|
-
unmounted: Ot
|
|
535
|
-
}, jt = ["aria-label"], Dt = { class: "m-select-list__no-results" }, Ft = {
|
|
536
|
-
key: 2,
|
|
537
|
-
class: "m-select-list__scroll-wrapper",
|
|
538
|
-
tabindex: "-1"
|
|
539
|
-
}, Ht = { class: "m-select-list-optgroup" }, Ut = ["onClick"], qt = /* @__PURE__ */ oe({
|
|
540
|
-
inheritAttrs: !1,
|
|
541
|
-
__name: "MazSelect",
|
|
542
|
-
props: {
|
|
543
|
-
style: { default: void 0 },
|
|
544
|
-
class: { default: void 0 },
|
|
545
|
-
id: { default: void 0 },
|
|
546
|
-
modelValue: { default: void 0 },
|
|
547
|
-
options: { default: void 0 },
|
|
548
|
-
optionValueKey: { default: "value" },
|
|
549
|
-
optionLabelKey: { default: "label" },
|
|
550
|
-
optionInputValueKey: { default: "label" },
|
|
551
|
-
listPosition: { default: "bottom left" },
|
|
552
|
-
itemHeight: { default: void 0 },
|
|
553
|
-
maxListHeight: { default: 240 },
|
|
554
|
-
maxListWidth: { default: void 0 },
|
|
555
|
-
size: { default: "md" },
|
|
556
|
-
color: { default: "primary" },
|
|
557
|
-
search: { type: Boolean },
|
|
558
|
-
searchPlaceholder: { default: "Search in options" },
|
|
559
|
-
open: { type: Boolean },
|
|
560
|
-
multiple: { type: Boolean, default: void 0 },
|
|
561
|
-
required: { type: Boolean },
|
|
562
|
-
disabled: { type: Boolean },
|
|
563
|
-
block: { type: Boolean },
|
|
564
|
-
excludeSelectors: { default: void 0 }
|
|
565
|
-
},
|
|
566
|
-
emits: ["close", "open", "blur", "focus", "change", "update:model-value", "selected-option"],
|
|
567
|
-
setup(i, { expose: d, emit: t }) {
|
|
568
|
-
we((e) => ({
|
|
569
|
-
"416802e0": $.value,
|
|
570
|
-
"21823f4f": A.value,
|
|
571
|
-
"6d76cd12": q.value
|
|
572
|
-
}));
|
|
573
|
-
const b = Y(() => Promise.resolve().then(() => uo)), c = Y(() => Promise.resolve().then(() => ct)), v = Y(() => import("./chevron-down-CzMH-gFW.mjs")), y = Y(() => import("./no-symbol-QAqP9IlR.mjs"));
|
|
574
|
-
d({
|
|
575
|
-
/** Method to open the option list */
|
|
576
|
-
openList: H,
|
|
577
|
-
/** Method to close the option list */
|
|
578
|
-
closeList: te
|
|
579
|
-
});
|
|
580
|
-
const o = i, K = t, T = N(!1), w = N(), j = p(
|
|
581
|
-
() => ["black", "transparent", "white"].includes(o.color)
|
|
582
|
-
), A = p(
|
|
583
|
-
() => j.value ? "var(--maz-color-black)" : `var(--maz-color-${o.color}-800)`
|
|
584
|
-
), q = p(
|
|
585
|
-
() => j.value ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-100)`
|
|
586
|
-
), $ = p(
|
|
587
|
-
() => j.value ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-200)`
|
|
588
|
-
), I = p(() => T.value || o.open), E = Ne({
|
|
589
|
-
componentName: "MazSelect",
|
|
590
|
-
providedId: o.id
|
|
591
|
-
});
|
|
592
|
-
function R(e) {
|
|
593
|
-
return {
|
|
594
|
-
[o.optionValueKey]: e,
|
|
595
|
-
[o.optionLabelKey]: e,
|
|
596
|
-
[o.optionInputValueKey]: e
|
|
597
|
-
};
|
|
598
|
-
}
|
|
599
|
-
function g(e) {
|
|
600
|
-
return {
|
|
601
|
-
...e,
|
|
602
|
-
[o.optionValueKey]: e[o.optionValueKey],
|
|
603
|
-
[o.optionLabelKey]: e[o.optionLabelKey],
|
|
604
|
-
[o.optionInputValueKey]: e[o.optionInputValueKey]
|
|
605
|
-
};
|
|
606
|
-
}
|
|
607
|
-
const Z = p(() => {
|
|
608
|
-
var n;
|
|
609
|
-
const e = [];
|
|
610
|
-
if (!((n = o.options) != null && n.length))
|
|
611
|
-
return [];
|
|
612
|
-
for (const m of o.options)
|
|
613
|
-
typeof m == "string" || typeof m == "number" || typeof m == "boolean" ? e.push(R(m)) : typeof m == "object" && "options" in m && Array.isArray(m.options) ? e.push(
|
|
614
|
-
{ label: m.label, isOptGroup: !0 },
|
|
615
|
-
...m.options.map(
|
|
616
|
-
(r) => typeof r == "string" || typeof r == "number" || typeof r == "boolean" ? R(r) : g(r)
|
|
617
|
-
)
|
|
618
|
-
) : e.push(g(m));
|
|
619
|
-
return e;
|
|
620
|
-
}), ae = p(
|
|
621
|
-
() => {
|
|
622
|
-
var e;
|
|
623
|
-
return ((e = Z.value) == null ? void 0 : e.filter((n) => o.multiple ? Array.isArray(o.modelValue) ? o.modelValue.includes(n[o.optionValueKey]) && !F(n[o.optionValueKey]) : !1 : o.modelValue === n[o.optionValueKey] && !F(n[o.optionValueKey]))) ?? [];
|
|
624
|
-
}
|
|
625
|
-
);
|
|
626
|
-
Oe(() => {
|
|
627
|
-
var e;
|
|
628
|
-
(e = o.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), f();
|
|
629
|
-
});
|
|
630
|
-
const J = N(), ee = N(), ue = N(), ne = N(), F = (e) => e == null;
|
|
631
|
-
function se(e) {
|
|
632
|
-
var m;
|
|
633
|
-
return (((m = ae.value) == null ? void 0 : m.some(
|
|
634
|
-
(r) => r[o.optionValueKey] === e[o.optionValueKey]
|
|
635
|
-
)) ?? !1) && !F(e[o.optionValueKey]);
|
|
636
|
-
}
|
|
637
|
-
const me = p(() => {
|
|
638
|
-
var n;
|
|
639
|
-
if (o.multiple && o.modelValue && Array.isArray(o.modelValue))
|
|
640
|
-
return o.modelValue.map(
|
|
641
|
-
(m) => {
|
|
642
|
-
var r, M;
|
|
643
|
-
return (M = (r = Z.value) == null ? void 0 : r.find((D) => D[o.optionValueKey] === m)) == null ? void 0 : M[o.optionInputValueKey];
|
|
644
|
-
}
|
|
645
|
-
).join(", ");
|
|
646
|
-
const e = (n = Z.value) == null ? void 0 : n.find(
|
|
647
|
-
(m) => m[o.optionValueKey] === o.modelValue
|
|
648
|
-
);
|
|
649
|
-
return F(o.modelValue) || e == null ? void 0 : e[o.optionInputValueKey];
|
|
650
|
-
}), Q = p(
|
|
651
|
-
() => o.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
|
|
652
|
-
), a = N(""), P = N(""), X = (e, n) => n && e && $e(e).includes($e(n));
|
|
653
|
-
function x(e) {
|
|
654
|
-
var n;
|
|
655
|
-
return e ? (n = Z.value) == null ? void 0 : n.filter((m) => {
|
|
656
|
-
const r = m[o.optionLabelKey], M = m[o.optionValueKey], D = m[o.optionInputValueKey];
|
|
657
|
-
return X(r, e) || X(D, e) || X(M, e) || typeof r == "string" && Ae(r, e, 0.5).isMatching.value || typeof D == "string" && Ae(D, e, 0.5).isMatching.value || typeof M == "string" && Ae(M, e, 0.5).isMatching.value;
|
|
658
|
-
}) : Z.value;
|
|
659
|
-
}
|
|
660
|
-
const W = p(() => x(a.value));
|
|
661
|
-
async function te(e) {
|
|
662
|
-
var m, r;
|
|
663
|
-
if (!I.value)
|
|
664
|
-
return;
|
|
665
|
-
if (e && ("relatedTarget" in e && ((m = J.value) != null && m.contains(e.relatedTarget)) || e.type === "keydown"))
|
|
666
|
-
return e.preventDefault();
|
|
667
|
-
const n = e && "relatedTarget" in e && e.relatedTarget instanceof HTMLElement && e.relatedTarget.getAttribute("id");
|
|
668
|
-
if ((r = o.excludeSelectors) != null && r.includes(`#${n}`))
|
|
669
|
-
return e == null ? void 0 : e.preventDefault();
|
|
670
|
-
await Ce(), T.value = !1, w.value = 0, K("close", e);
|
|
671
|
-
}
|
|
672
|
-
async function H(e) {
|
|
673
|
-
o.disabled || I.value || (e == null || e.preventDefault(), T.value = !0, await k(), K("focus", e), K("open", T.value));
|
|
674
|
-
}
|
|
675
|
-
function U() {
|
|
676
|
-
var e, n;
|
|
677
|
-
(n = ((e = ee.value) == null ? void 0 : e.$el).querySelector("input")) == null || n.focus();
|
|
678
|
-
}
|
|
679
|
-
function Ie(e) {
|
|
680
|
-
T.value ? te(e) : U();
|
|
681
|
-
}
|
|
682
|
-
function he(e) {
|
|
683
|
-
var n, m;
|
|
684
|
-
a.value = e, (m = ((n = ue.value) == null ? void 0 : n.$el).querySelector("input")) == null || m.focus();
|
|
685
|
-
}
|
|
686
|
-
function Ve(e) {
|
|
687
|
-
var m;
|
|
688
|
-
e === "Backspace" && P.value.length > 0 ? P.value = P.value.slice(0, -1) : P.value += e;
|
|
689
|
-
const n = x(P.value);
|
|
690
|
-
n != null && n.length && (w.value = (m = W.value) == null ? void 0 : m.findIndex(
|
|
691
|
-
(r) => r[o.optionValueKey] === n[0][o.optionValueKey]
|
|
692
|
-
), typeof w.value == "number" && w.value >= 0 && k(w.value)), Tt(() => {
|
|
693
|
-
P.value = "";
|
|
694
|
-
}, 1e3);
|
|
695
|
-
}
|
|
696
|
-
const Se = (e) => {
|
|
697
|
-
const n = e.key;
|
|
698
|
-
/^[\dA-Za-z\u0400-\u04FF]$/.test(n) ? (e.preventDefault(), H(e), o.search ? he(n) : Ve(n)) : de(e);
|
|
699
|
-
}, de = (e) => {
|
|
700
|
-
const n = e.code, m = ["ArrowUp", "ArrowDown"].includes(n), r = ["Enter", "Space"].includes(n), M = n === "Escape" && I.value;
|
|
701
|
-
m ? ye(e, w.value) : r ? l(e, w.value) : M && te(e);
|
|
702
|
-
}, ye = (e, n) => {
|
|
703
|
-
var M;
|
|
704
|
-
e.preventDefault();
|
|
705
|
-
const m = e.code;
|
|
706
|
-
I.value || H(e);
|
|
707
|
-
const r = (M = W.value) == null ? void 0 : M.length;
|
|
708
|
-
r && (typeof n == "number" ? n === r - 1 && m === "ArrowDown" ? w.value = 0 : n === 0 && m === "ArrowUp" ? w.value = r - 1 : w.value = m === "ArrowDown" ? n + 1 : n - 1 : w.value = m === "ArrowDown" ? 0 : r - 1, k(w.value));
|
|
709
|
-
}, l = (e, n) => {
|
|
710
|
-
var r, M, D;
|
|
711
|
-
if (e.preventDefault(), !I.value)
|
|
712
|
-
return H(e);
|
|
713
|
-
const m = n ? ((r = W.value) == null ? void 0 : r[n]) ?? ((M = W.value) == null ? void 0 : M[0]) : (D = W.value) == null ? void 0 : D[0];
|
|
714
|
-
F(m) || L(m);
|
|
715
|
-
};
|
|
716
|
-
async function k(e) {
|
|
717
|
-
var m, r;
|
|
718
|
-
await Ce(), typeof e != "number" && f();
|
|
719
|
-
const n = e ?? w.value;
|
|
720
|
-
typeof n == "number" && n >= 0 && ((r = (m = ne.value) == null ? void 0 : m.querySelectorAll(".m-select-list-item")[n]) == null || r.scrollIntoView({
|
|
721
|
-
behavior: "auto",
|
|
722
|
-
block: "nearest",
|
|
723
|
-
inline: "start"
|
|
724
|
-
}));
|
|
725
|
-
}
|
|
726
|
-
function f(e) {
|
|
727
|
-
var m;
|
|
728
|
-
const n = (m = W.value) == null ? void 0 : m.findIndex((r) => {
|
|
729
|
-
var M, D;
|
|
730
|
-
return o.multiple && Array.isArray(o.modelValue) ? e ? e[o.optionValueKey] === r[o.optionValueKey] : [...o.modelValue].reverse()[0] === r[o.optionValueKey] : ((D = (M = ae.value) == null ? void 0 : M[0]) == null ? void 0 : D[o.optionValueKey]) === r[o.optionValueKey];
|
|
731
|
-
});
|
|
732
|
-
w.value = n && n >= 0 ? n : 0;
|
|
733
|
-
}
|
|
734
|
-
function L(e, n = !0) {
|
|
735
|
-
var D;
|
|
736
|
-
n && !o.multiple && Ce(() => te()), a.value = "";
|
|
737
|
-
const m = (D = ae.value) == null ? void 0 : D.some(
|
|
738
|
-
(ce) => ce[o.optionValueKey] === e[o.optionValueKey]
|
|
739
|
-
);
|
|
740
|
-
let r = ae.value;
|
|
741
|
-
m && o.multiple ? r = r == null ? void 0 : r.filter(
|
|
742
|
-
(ce) => ce[o.optionValueKey] !== e[o.optionValueKey]
|
|
743
|
-
) : o.multiple ? r.push(e) : r = [e];
|
|
744
|
-
const M = r.map((ce) => ce[o.optionValueKey]);
|
|
745
|
-
K("update:model-value", o.multiple ? M : M[0]), K("selected-option", e), f(e), U();
|
|
746
|
-
}
|
|
747
|
-
return (e, n) => {
|
|
748
|
-
var m;
|
|
749
|
-
return He((s(), z(
|
|
750
|
-
"div",
|
|
751
|
-
{
|
|
752
|
-
ref_key: "mazSelectElement",
|
|
753
|
-
ref: J,
|
|
754
|
-
class: C(["m-select", [
|
|
755
|
-
{ "--is-open": I.value, "--disabled": e.disabled, "--block": e.block },
|
|
756
|
-
o.class,
|
|
757
|
-
`--${e.size}`
|
|
758
|
-
]]),
|
|
759
|
-
style: ie(e.style)
|
|
760
|
-
},
|
|
761
|
-
[
|
|
762
|
-
_(Te, Le({
|
|
763
|
-
id: h(E),
|
|
764
|
-
ref_key: "mazInputComponent",
|
|
765
|
-
ref: ee,
|
|
766
|
-
class: "m-select-input"
|
|
767
|
-
}, e.$attrs, {
|
|
768
|
-
required: e.required,
|
|
769
|
-
"border-active": T.value,
|
|
770
|
-
color: e.color,
|
|
771
|
-
"model-value": me.value,
|
|
772
|
-
autocomplete: "off",
|
|
773
|
-
size: e.size,
|
|
774
|
-
block: "",
|
|
775
|
-
disabled: e.disabled,
|
|
776
|
-
onFocus: pe(H, ["prevent", "stop"]),
|
|
777
|
-
onBlur: pe(te, ["prevent", "stop"]),
|
|
778
|
-
onClick: pe(H, ["prevent", "stop"]),
|
|
779
|
-
onChange: n[0] || (n[0] = (r) => K("change", r)),
|
|
780
|
-
onKeydown: Se
|
|
781
|
-
}), {
|
|
782
|
-
"right-icon": O(() => [
|
|
783
|
-
B("button", {
|
|
784
|
-
tabindex: "-1",
|
|
785
|
-
type: "button",
|
|
786
|
-
class: "m-select-input__toggle-button maz-custom",
|
|
787
|
-
"aria-label": `${I.value ? "collapse" : "expand"} list of options`,
|
|
788
|
-
onClick: pe(Ie, ["stop"])
|
|
789
|
-
}, [
|
|
790
|
-
_(h(v), { class: "m-select-chevron maz-text-xl" })
|
|
791
|
-
], 8, jt)
|
|
792
|
-
]),
|
|
793
|
-
_: 1
|
|
794
|
-
/* STABLE */
|
|
795
|
-
}, 16, ["id", "required", "border-active", "color", "model-value", "size", "disabled"]),
|
|
796
|
-
_(lt, { name: Q.value }, {
|
|
797
|
-
default: O(() => [
|
|
798
|
-
I.value ? (s(), z(
|
|
799
|
-
"div",
|
|
800
|
-
{
|
|
801
|
-
key: 0,
|
|
802
|
-
ref_key: "optionsListElement",
|
|
803
|
-
ref: ne,
|
|
804
|
-
class: C(["m-select-list", {
|
|
805
|
-
"--top": e.listPosition.includes("top"),
|
|
806
|
-
"--left": e.listPosition.includes("left"),
|
|
807
|
-
"--right": e.listPosition.includes("right"),
|
|
808
|
-
"--bottom": e.listPosition.includes("bottom")
|
|
809
|
-
}]),
|
|
810
|
-
style: ie({
|
|
811
|
-
maxHeight: `${e.maxListHeight}px`,
|
|
812
|
-
maxWidth: `${e.maxListWidth}px`
|
|
813
|
-
})
|
|
814
|
-
},
|
|
815
|
-
[
|
|
816
|
-
e.search ? (s(), S(Te, {
|
|
817
|
-
key: 0,
|
|
818
|
-
ref_key: "searchInputComponent",
|
|
819
|
-
ref: ue,
|
|
820
|
-
modelValue: a.value,
|
|
821
|
-
"onUpdate:modelValue": [
|
|
822
|
-
n[1] || (n[1] = (r) => a.value = r),
|
|
823
|
-
n[2] || (n[2] = (r) => w.value = 0)
|
|
824
|
-
],
|
|
825
|
-
size: "sm",
|
|
826
|
-
color: e.color,
|
|
827
|
-
placeholder: e.searchPlaceholder,
|
|
828
|
-
name: "search",
|
|
829
|
-
autocomplete: "off",
|
|
830
|
-
tabindex: "-1",
|
|
831
|
-
class: "m-select-list__search-input maz-flex-none",
|
|
832
|
-
"left-icon": h(c),
|
|
833
|
-
onKeydown: de
|
|
834
|
-
}, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : u("v-if", !0),
|
|
835
|
-
u(`
|
|
836
|
-
@slot No results slot - Displayed when no results corresponding with search query
|
|
837
|
-
`),
|
|
838
|
-
!W.value || W.value.length <= 0 ? V(e.$slots, "no-results", { key: 1 }, () => [
|
|
839
|
-
B("span", Dt, [
|
|
840
|
-
_(h(y), { class: "maz-h-6 maz-w-6 maz-text-normal" })
|
|
841
|
-
])
|
|
842
|
-
], !0) : (s(), z("div", Ft, [
|
|
843
|
-
(s(!0), z(
|
|
844
|
-
be,
|
|
845
|
-
null,
|
|
846
|
-
ke(W.value, (r, M) => (s(), z(
|
|
847
|
-
be,
|
|
848
|
-
{ key: M },
|
|
849
|
-
[
|
|
850
|
-
u(`
|
|
851
|
-
@slot Custom optgroup label
|
|
852
|
-
@binding {String} label - the label of the optgroup
|
|
853
|
-
`),
|
|
854
|
-
r.label && r.isOptGroup ? V(e.$slots, "optgroup", {
|
|
855
|
-
key: 0,
|
|
856
|
-
label: r.label
|
|
857
|
-
}, () => [
|
|
858
|
-
B(
|
|
859
|
-
"span",
|
|
860
|
-
Ht,
|
|
861
|
-
G(r.label),
|
|
862
|
-
1
|
|
863
|
-
/* TEXT */
|
|
864
|
-
)
|
|
865
|
-
], !0) : (s(), z("button", {
|
|
866
|
-
key: 1,
|
|
867
|
-
tabindex: "-1",
|
|
868
|
-
type: "button",
|
|
869
|
-
class: C(["m-select-list-item maz-custom maz-flex-none", [
|
|
870
|
-
{
|
|
871
|
-
"--is-keyboard-selected": w.value === M,
|
|
872
|
-
"--is-selected": se(r),
|
|
873
|
-
"--is-none-value": F(r[e.optionValueKey])
|
|
874
|
-
}
|
|
875
|
-
]]),
|
|
876
|
-
style: ie(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
|
|
877
|
-
onClick: pe((D) => L(r), ["prevent", "stop"])
|
|
878
|
-
}, [
|
|
879
|
-
e.multiple ? (s(), S(h(b), {
|
|
880
|
-
key: 0,
|
|
881
|
-
tabindex: "-1",
|
|
882
|
-
"model-value": se(r),
|
|
883
|
-
size: "sm",
|
|
884
|
-
color: e.color
|
|
885
|
-
}, null, 8, ["model-value", "color"])) : u("v-if", !0),
|
|
886
|
-
u(`
|
|
887
|
-
@slot Custom option
|
|
888
|
-
@binding {Object} option - the option object
|
|
889
|
-
@binding {Boolean} is-selected - if the option is selected
|
|
890
|
-
`),
|
|
891
|
-
V(e.$slots, "default", {
|
|
892
|
-
option: r,
|
|
893
|
-
isSelected: se(r)
|
|
894
|
-
}, () => [
|
|
895
|
-
B(
|
|
896
|
-
"span",
|
|
897
|
-
null,
|
|
898
|
-
G(r[e.optionLabelKey]),
|
|
899
|
-
1
|
|
900
|
-
/* TEXT */
|
|
901
|
-
)
|
|
902
|
-
], !0)
|
|
903
|
-
], 14, Ut))
|
|
904
|
-
],
|
|
905
|
-
64
|
|
906
|
-
/* STABLE_FRAGMENT */
|
|
907
|
-
))),
|
|
908
|
-
128
|
|
909
|
-
/* KEYED_FRAGMENT */
|
|
910
|
-
))
|
|
911
|
-
]))
|
|
912
|
-
],
|
|
913
|
-
6
|
|
914
|
-
/* CLASS, STYLE */
|
|
915
|
-
)) : u("v-if", !0)
|
|
916
|
-
]),
|
|
917
|
-
_: 3
|
|
918
|
-
/* FORWARDED */
|
|
919
|
-
}, 8, ["name"])
|
|
920
|
-
],
|
|
921
|
-
6
|
|
922
|
-
/* CLASS, STYLE */
|
|
923
|
-
)), [
|
|
924
|
-
[h(Et), {
|
|
925
|
-
exclude: (m = e.excludeSelectors) != null && m.length ? e.excludeSelectors : [],
|
|
926
|
-
handler: te
|
|
927
|
-
}]
|
|
928
|
-
]);
|
|
929
|
-
};
|
|
930
|
-
}
|
|
931
|
-
}), Fe = /* @__PURE__ */ le(qt, [["__scopeId", "data-v-05b98a1b"]]), Rt = /* @__PURE__ */ oe({
|
|
932
|
-
__name: "MazBtn",
|
|
933
|
-
props: {
|
|
934
|
-
variant: { default: "button" },
|
|
935
|
-
size: { default: "md" },
|
|
936
|
-
color: { default: "primary" },
|
|
937
|
-
type: { default: "button" },
|
|
938
|
-
rounded: { type: Boolean },
|
|
939
|
-
roundedSize: { default: "lg" },
|
|
940
|
-
noRounded: { type: Boolean },
|
|
941
|
-
outline: { type: Boolean },
|
|
942
|
-
pastel: { type: Boolean },
|
|
943
|
-
block: { type: Boolean },
|
|
944
|
-
noUnderline: { type: Boolean },
|
|
945
|
-
loading: { type: Boolean },
|
|
946
|
-
disabled: { type: Boolean },
|
|
947
|
-
fab: { type: Boolean },
|
|
948
|
-
icon: { default: void 0 },
|
|
949
|
-
leftIcon: { default: void 0 },
|
|
950
|
-
rightIcon: { default: void 0 },
|
|
951
|
-
noPadding: { type: Boolean },
|
|
952
|
-
noElevation: { type: Boolean },
|
|
953
|
-
contentClass: { default: void 0 }
|
|
954
|
-
},
|
|
955
|
-
setup(i) {
|
|
956
|
-
const d = Y(() => import("./MazSpinner-C1lg-Klx.mjs")), t = Y(() => import("./MazIcon-DtG5ii8R.mjs")), { href: b, to: c } = at(), v = Pe(), y = i;
|
|
957
|
-
Oe(() => {
|
|
958
|
-
y.icon && !y.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
959
|
-
});
|
|
960
|
-
const o = p(() => b ? "a" : c ? "router-link" : "button"), K = p(
|
|
961
|
-
() => y.pastel ? `--${y.color}-pastel` : y.outline ? `--${y.color}-outline` : `--${y.color}`
|
|
962
|
-
), T = p(
|
|
963
|
-
() => (y.loading || y.disabled) && o.value === "button"
|
|
964
|
-
), w = p(() => T.value ? "--cursor-default" : "--cursor-pointer"), j = p(() => `--is-${y.variant}`), A = p(() => y.loading && y.variant === "button"), q = p(() => !!v["left-icon"] || y.leftIcon), $ = p(() => !!v["right-icon"] || y.rightIcon), I = p(() => q.value || $.value), E = p(() => y.fab && (y.icon || !!v.icon)), R = p(() => o.value === "button" ? y.type : void 0);
|
|
965
|
-
return (g, Z) => (s(), S(fe(o.value), {
|
|
966
|
-
disabled: T.value || void 0,
|
|
967
|
-
class: C(["m-btn", [
|
|
968
|
-
`--${g.size}`,
|
|
969
|
-
!g.fab && g.roundedSize && `--rounded-${g.roundedSize}`,
|
|
970
|
-
K.value,
|
|
971
|
-
w.value,
|
|
972
|
-
j.value,
|
|
973
|
-
{
|
|
974
|
-
"--block": g.block,
|
|
975
|
-
"--no-underline": g.noUnderline,
|
|
976
|
-
"--fab": g.fab,
|
|
977
|
-
"--loading": g.loading,
|
|
978
|
-
"--disabled": T.value,
|
|
979
|
-
"--icon": I.value,
|
|
980
|
-
"--rounded": g.rounded,
|
|
981
|
-
"--no-rounded": g.noRounded,
|
|
982
|
-
"--no-padding": g.noPadding,
|
|
983
|
-
"--no-elevation": g.noElevation
|
|
984
|
-
}
|
|
985
|
-
]]),
|
|
986
|
-
type: R.value
|
|
987
|
-
}, {
|
|
988
|
-
default: O(() => [
|
|
989
|
-
q.value ? (s(), z(
|
|
990
|
-
"div",
|
|
991
|
-
{
|
|
992
|
-
key: 0,
|
|
993
|
-
class: C(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": A.value }])
|
|
994
|
-
},
|
|
995
|
-
[
|
|
996
|
-
u(`
|
|
997
|
-
@slot left-icon - The icon to display on the left of the button
|
|
998
|
-
`),
|
|
999
|
-
V(g.$slots, "left-icon", {}, () => [
|
|
1000
|
-
typeof g.leftIcon == "string" ? (s(), S(h(t), {
|
|
1001
|
-
key: 0,
|
|
1002
|
-
name: g.leftIcon
|
|
1003
|
-
}, null, 8, ["name"])) : g.leftIcon ? (s(), S(fe(g.leftIcon), { key: 1 })) : u("v-if", !0)
|
|
1004
|
-
], !0)
|
|
1005
|
-
],
|
|
1006
|
-
2
|
|
1007
|
-
/* CLASS */
|
|
1008
|
-
)) : u("v-if", !0),
|
|
1009
|
-
E.value ? (s(), z(
|
|
1010
|
-
"div",
|
|
1011
|
-
{
|
|
1012
|
-
key: 1,
|
|
1013
|
-
class: C(["m-btn__icon", { "maz-invisible": A.value }])
|
|
1014
|
-
},
|
|
1015
|
-
[
|
|
1016
|
-
u(`
|
|
1017
|
-
@slot icon - The icon to display on the fab button
|
|
1018
|
-
`),
|
|
1019
|
-
V(g.$slots, "icon", {}, () => [
|
|
1020
|
-
typeof g.icon == "string" ? (s(), S(h(t), {
|
|
1021
|
-
key: 0,
|
|
1022
|
-
name: g.icon
|
|
1023
|
-
}, null, 8, ["name"])) : g.icon ? (s(), S(fe(g.icon), { key: 1 })) : u("v-if", !0)
|
|
1024
|
-
], !0)
|
|
1025
|
-
],
|
|
1026
|
-
2
|
|
1027
|
-
/* CLASS */
|
|
1028
|
-
)) : u("v-if", !0),
|
|
1029
|
-
g.$slots.default ? (s(), z(
|
|
1030
|
-
"span",
|
|
1031
|
-
{
|
|
1032
|
-
key: 2,
|
|
1033
|
-
class: C([{ "maz-invisible": A.value }, g.contentClass])
|
|
1034
|
-
},
|
|
1035
|
-
[
|
|
1036
|
-
u(`
|
|
1037
|
-
@slot default - The content of the button
|
|
1038
|
-
`),
|
|
1039
|
-
V(g.$slots, "default", {}, void 0, !0)
|
|
1040
|
-
],
|
|
1041
|
-
2
|
|
1042
|
-
/* CLASS */
|
|
1043
|
-
)) : u("v-if", !0),
|
|
1044
|
-
$.value ? (s(), z(
|
|
1045
|
-
"div",
|
|
1046
|
-
{
|
|
1047
|
-
key: 3,
|
|
1048
|
-
class: C(["m-btn__icon-right", { "maz-invisible": A.value }])
|
|
1049
|
-
},
|
|
1050
|
-
[
|
|
1051
|
-
u(`
|
|
1052
|
-
@slot right-icon - The icon to display on the right of the button
|
|
1053
|
-
`),
|
|
1054
|
-
V(g.$slots, "right-icon", {}, () => [
|
|
1055
|
-
typeof g.rightIcon == "string" ? (s(), S(h(t), {
|
|
1056
|
-
key: 0,
|
|
1057
|
-
name: g.rightIcon
|
|
1058
|
-
}, null, 8, ["name"])) : g.rightIcon ? (s(), S(fe(g.rightIcon), { key: 1 })) : u("v-if", !0)
|
|
1059
|
-
], !0)
|
|
1060
|
-
],
|
|
1061
|
-
2
|
|
1062
|
-
/* CLASS */
|
|
1063
|
-
)) : u("v-if", !0),
|
|
1064
|
-
A.value ? (s(), S(h(d), {
|
|
1065
|
-
key: 4,
|
|
1066
|
-
class: "m-btn-loader",
|
|
1067
|
-
size: "2em",
|
|
1068
|
-
color: g.color
|
|
1069
|
-
}, null, 8, ["color"])) : u("v-if", !0)
|
|
1070
|
-
]),
|
|
1071
|
-
_: 3
|
|
1072
|
-
/* FORWARDED */
|
|
1073
|
-
}, 8, ["disabled", "class", "type"]));
|
|
1074
|
-
}
|
|
1075
|
-
}), ve = /* @__PURE__ */ le(Rt, [["__scopeId", "data-v-4d87e490"]]), Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1076
|
-
__proto__: null,
|
|
1077
|
-
default: ve
|
|
1078
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1079
|
-
function Ee(i, d) {
|
|
1080
|
-
const t = nt(i, d);
|
|
1081
|
-
if (!t)
|
|
1082
|
-
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${i}`);
|
|
1083
|
-
return t;
|
|
1084
|
-
}
|
|
1085
|
-
const Wt = /* @__PURE__ */ oe({
|
|
1086
|
-
__name: "MazTableRow",
|
|
1087
|
-
props: {
|
|
1088
|
-
noHoverable: { type: Boolean }
|
|
1089
|
-
},
|
|
1090
|
-
setup(i) {
|
|
1091
|
-
const { hoverable: d, backgroundEven: t, backgroundOdd: b } = Ee("maz-table");
|
|
1092
|
-
return (c, v) => (s(), z(
|
|
1093
|
-
"tr",
|
|
1094
|
-
{
|
|
1095
|
-
class: C(["m-table-row", {
|
|
1096
|
-
"--hoverable": h(d) && !c.noHoverable,
|
|
1097
|
-
"--background-odd": h(b),
|
|
1098
|
-
"--background-even": h(t)
|
|
1099
|
-
}])
|
|
1100
|
-
},
|
|
1101
|
-
[
|
|
1102
|
-
V(c.$slots, "default", {}, void 0, !0)
|
|
1103
|
-
],
|
|
1104
|
-
2
|
|
1105
|
-
/* CLASS */
|
|
1106
|
-
));
|
|
1107
|
-
}
|
|
1108
|
-
}), Me = /* @__PURE__ */ le(Wt, [["__scopeId", "data-v-57ba9a97"]]), Gt = /* @__PURE__ */ oe({
|
|
1109
|
-
__name: "MazTableCell",
|
|
1110
|
-
setup(i) {
|
|
1111
|
-
const { size: d } = Ee("maz-table");
|
|
1112
|
-
return (t, b) => (s(), z(
|
|
1113
|
-
"td",
|
|
1114
|
-
{
|
|
1115
|
-
class: C(["m-table-cell", `--${h(d)}`])
|
|
1116
|
-
},
|
|
1117
|
-
[
|
|
1118
|
-
V(t.$slots, "default", {}, void 0, !0)
|
|
1119
|
-
],
|
|
1120
|
-
2
|
|
1121
|
-
/* CLASS */
|
|
1122
|
-
));
|
|
1123
|
-
}
|
|
1124
|
-
}), ze = /* @__PURE__ */ le(Gt, [["__scopeId", "data-v-0668079a"]]), Yt = /* @__PURE__ */ oe({
|
|
1125
|
-
__name: "MazTableTitle",
|
|
1126
|
-
setup(i) {
|
|
1127
|
-
const { size: d } = Ee("maz-table");
|
|
1128
|
-
return (t, b) => (s(), z(
|
|
1129
|
-
"th",
|
|
1130
|
-
{
|
|
1131
|
-
class: C(["m-table-title", `--${h(d)}`])
|
|
1132
|
-
},
|
|
1133
|
-
[
|
|
1134
|
-
V(t.$slots, "default", {}, void 0, !0)
|
|
1135
|
-
],
|
|
1136
|
-
2
|
|
1137
|
-
/* CLASS */
|
|
1138
|
-
));
|
|
1139
|
-
}
|
|
1140
|
-
}), _e = /* @__PURE__ */ le(Yt, [["__scopeId", "data-v-7d02b262"]]), Zt = (i) => (Ue("data-v-26d3bae5"), i = i(), qe(), i), Jt = { class: "m-loading-bar" }, Xt = /* @__PURE__ */ Zt(() => /* @__PURE__ */ B(
|
|
1141
|
-
"div",
|
|
1142
|
-
null,
|
|
1143
|
-
null,
|
|
1144
|
-
-1
|
|
1145
|
-
/* HOISTED */
|
|
1146
|
-
)), xt = [
|
|
1147
|
-
Xt
|
|
1148
|
-
], eo = /* @__PURE__ */ oe({
|
|
1149
|
-
__name: "MazLoadingBar",
|
|
1150
|
-
props: {
|
|
1151
|
-
color: { default: "primary" },
|
|
1152
|
-
height: { default: "0.125rem" }
|
|
1153
|
-
},
|
|
1154
|
-
setup(i) {
|
|
1155
|
-
we((b) => ({
|
|
1156
|
-
"4d5d421f": b.height,
|
|
1157
|
-
d3c0e8e8: t.value.alpha,
|
|
1158
|
-
ccfba46a: t.value.main
|
|
1159
|
-
}));
|
|
1160
|
-
const d = i, t = p(() => ({
|
|
1161
|
-
alpha: `var(--maz-color-${d.color}-alpha-20)`,
|
|
1162
|
-
main: `var(--maz-color-${d.color})`
|
|
1163
|
-
}));
|
|
1164
|
-
return (b, c) => (s(), z("div", Jt, xt));
|
|
1165
|
-
}
|
|
1166
|
-
}), to = /* @__PURE__ */ le(eo, [["__scopeId", "data-v-26d3bae5"]]), oo = {
|
|
1167
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1168
|
-
width: "1em",
|
|
1169
|
-
height: "1em",
|
|
1170
|
-
fill: "none",
|
|
1171
|
-
viewBox: "0 0 24 24"
|
|
1172
|
-
}, lo = /* @__PURE__ */ B(
|
|
1173
|
-
"path",
|
|
1174
|
-
{
|
|
1175
|
-
stroke: "currentColor",
|
|
1176
|
-
"stroke-linecap": "round",
|
|
1177
|
-
"stroke-linejoin": "round",
|
|
1178
|
-
"stroke-width": "1.5",
|
|
1179
|
-
d: "m4.5 12.75 6 6 9-13.5"
|
|
1180
|
-
},
|
|
1181
|
-
null,
|
|
1182
|
-
-1
|
|
1183
|
-
/* HOISTED */
|
|
1184
|
-
), ao = [
|
|
1185
|
-
lo
|
|
1186
|
-
];
|
|
1187
|
-
function Ze(i, d) {
|
|
1188
|
-
return s(), z("svg", oo, [...ao]);
|
|
1189
|
-
}
|
|
1190
|
-
const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1191
|
-
__proto__: null,
|
|
1192
|
-
default: Je,
|
|
1193
|
-
render: Ze
|
|
1194
|
-
}, Symbol.toStringTag, { value: "Module" })), so = ["for", "aria-checked"], ro = ["id", "checked", "disabled", "name"], io = /* @__PURE__ */ oe({
|
|
1195
|
-
inheritAttrs: !1,
|
|
1196
|
-
__name: "MazCheckbox",
|
|
1197
|
-
props: {
|
|
1198
|
-
style: { default: void 0 },
|
|
1199
|
-
class: { default: void 0 },
|
|
1200
|
-
modelValue: { type: [Boolean, Array], default: void 0 },
|
|
1201
|
-
id: { default: void 0 },
|
|
1202
|
-
color: { default: "primary" },
|
|
1203
|
-
value: { type: [String, Number, Boolean], default: void 0 },
|
|
1204
|
-
name: { default: "m-checkbox" },
|
|
1205
|
-
size: { default: "md" },
|
|
1206
|
-
label: { default: void 0 },
|
|
1207
|
-
disabled: { type: Boolean, default: !1 }
|
|
1208
|
-
},
|
|
1209
|
-
emits: [
|
|
1210
|
-
/* emitted when value change */
|
|
1211
|
-
"update:model-value",
|
|
1212
|
-
/* emited when value change */
|
|
1213
|
-
"change"
|
|
1214
|
-
],
|
|
1215
|
-
setup(i, { emit: d }) {
|
|
1216
|
-
we(($) => ({
|
|
1217
|
-
"3eedcc0a": K.value,
|
|
1218
|
-
a3137f46: y.value,
|
|
1219
|
-
"03d4fcac": T.value,
|
|
1220
|
-
"5778d022": w.value
|
|
1221
|
-
}));
|
|
1222
|
-
const t = i, b = d, c = Ne({
|
|
1223
|
-
componentName: "MazCheckbox",
|
|
1224
|
-
providedId: t.id
|
|
1225
|
-
}), v = p(
|
|
1226
|
-
() => typeof t.value != "boolean" && Array.isArray(t.modelValue) ? t.modelValue.includes(t.value) : typeof t.modelValue == "boolean" ? t.modelValue : !1
|
|
1227
|
-
), y = p(() => {
|
|
1228
|
-
switch (t.size) {
|
|
1229
|
-
case "xl":
|
|
1230
|
-
return "2.25rem";
|
|
1231
|
-
case "lg":
|
|
1232
|
-
return "2rem";
|
|
1233
|
-
default:
|
|
1234
|
-
return "1.625rem";
|
|
1235
|
-
case "sm":
|
|
1236
|
-
return "1.425rem";
|
|
1237
|
-
case "xs":
|
|
1238
|
-
return "1.325rem";
|
|
1239
|
-
case "mini":
|
|
1240
|
-
return "1.2rem";
|
|
1241
|
-
}
|
|
1242
|
-
}), o = p(() => {
|
|
1243
|
-
switch (t.size) {
|
|
1244
|
-
case "xl":
|
|
1245
|
-
return "maz-text-2xl";
|
|
1246
|
-
case "lg":
|
|
1247
|
-
return "maz-text-xl";
|
|
1248
|
-
default:
|
|
1249
|
-
return "maz-text-lg";
|
|
1250
|
-
case "sm":
|
|
1251
|
-
return "maz-text-base";
|
|
1252
|
-
case "xs":
|
|
1253
|
-
return "maz-text-sm";
|
|
1254
|
-
case "mini":
|
|
1255
|
-
return "maz-text-xs";
|
|
1256
|
-
}
|
|
1257
|
-
}), K = p(() => `var(--maz-color-${t.color}-contrast)`), T = p(() => `var(--maz-color-${t.color})`), w = p(
|
|
1258
|
-
() => ["black", "transparent"].includes(t.color) ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-alpha)`
|
|
1259
|
-
);
|
|
1260
|
-
function j($) {
|
|
1261
|
-
["Space"].includes($.code) && ($.preventDefault(), q(t.value ?? !t.modelValue));
|
|
1262
|
-
}
|
|
1263
|
-
function A($) {
|
|
1264
|
-
return typeof $ == "boolean" && (typeof t.modelValue == "boolean" || t.modelValue === void 0 || t.modelValue === null) ? !t.modelValue : Array.isArray(t.modelValue) && typeof $ != "boolean" ? t.modelValue.includes($) ? t.modelValue.filter((I) => I !== $) : [...t.modelValue, $] : [$];
|
|
1265
|
-
}
|
|
1266
|
-
function q($) {
|
|
1267
|
-
const I = A($);
|
|
1268
|
-
b("update:model-value", I), b("change", I);
|
|
1269
|
-
}
|
|
1270
|
-
return ($, I) => (s(), z("label", {
|
|
1271
|
-
for: h(c),
|
|
1272
|
-
class: C(["m-checkbox", [{ "--disabled": $.disabled }, t.class]]),
|
|
1273
|
-
tabindex: "0",
|
|
1274
|
-
style: ie($.style),
|
|
1275
|
-
role: "checkbox",
|
|
1276
|
-
"aria-checked": v.value,
|
|
1277
|
-
onKeydown: j
|
|
1278
|
-
}, [
|
|
1279
|
-
B("input", Le({
|
|
1280
|
-
id: h(c),
|
|
1281
|
-
checked: v.value
|
|
1282
|
-
}, $.$attrs, {
|
|
1283
|
-
tabindex: "-1",
|
|
1284
|
-
disabled: $.disabled,
|
|
1285
|
-
name: $.name,
|
|
1286
|
-
type: "checkbox",
|
|
1287
|
-
onChange: I[0] || (I[0] = (E) => {
|
|
1288
|
-
var R;
|
|
1289
|
-
return q($.value ?? ((R = E == null ? void 0 : E.target) == null ? void 0 : R.checked));
|
|
1290
|
-
})
|
|
1291
|
-
}), null, 16, ro),
|
|
1292
|
-
B("span", null, [
|
|
1293
|
-
_(h(Je), {
|
|
1294
|
-
class: C(["check-icon", o.value])
|
|
1295
|
-
}, null, 8, ["class"])
|
|
1296
|
-
]),
|
|
1297
|
-
V($.$slots, "default", {}, () => [
|
|
1298
|
-
re(
|
|
1299
|
-
G($.label),
|
|
1300
|
-
1
|
|
1301
|
-
/* TEXT */
|
|
1302
|
-
)
|
|
1303
|
-
], !0)
|
|
1304
|
-
], 46, so));
|
|
1305
|
-
}
|
|
1306
|
-
}), Ke = /* @__PURE__ */ le(io, [["__scopeId", "data-v-06d3ee3a"]]), uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1307
|
-
__proto__: null,
|
|
1308
|
-
default: Ke
|
|
1309
|
-
}, Symbol.toStringTag, { value: "Module" })), Xe = (i) => (Ue("data-v-04b924e2"), i = i(), qe(), i), co = {
|
|
1310
|
-
key: 0,
|
|
1311
|
-
class: "m-table-header"
|
|
1312
|
-
}, po = { class: "m-table-spacer" }, fo = { class: "m-table-header-title" }, mo = {
|
|
1313
|
-
key: 0,
|
|
1314
|
-
class: "m-table-header-search"
|
|
1315
|
-
}, vo = { key: 0 }, bo = { key: 1 }, ho = {
|
|
1316
|
-
key: 0,
|
|
1317
|
-
class: "m-table-sort-icon-wrapper"
|
|
1318
|
-
}, yo = { class: "maz-text-center maz-text-muted" }, go = {
|
|
1319
|
-
key: 1,
|
|
1320
|
-
class: "m-table-footer"
|
|
1321
|
-
}, zo = /* @__PURE__ */ Xe(() => /* @__PURE__ */ B(
|
|
1322
|
-
"div",
|
|
1323
|
-
{ class: "m-table-spacer" },
|
|
1324
|
-
null,
|
|
1325
|
-
-1
|
|
1326
|
-
/* HOISTED */
|
|
1327
|
-
)), ko = {
|
|
1328
|
-
key: 0,
|
|
1329
|
-
class: "m-table-footer-pagination"
|
|
1330
|
-
}, $o = { class: "m-table-footer-pagination-items-per-page" }, wo = /* @__PURE__ */ Xe(() => /* @__PURE__ */ B(
|
|
1331
|
-
"span",
|
|
1332
|
-
{ class: "maz-hidden maz-text-sm maz-text-muted tab-s:maz-block" },
|
|
1333
|
-
" Item per page ",
|
|
1334
|
-
-1
|
|
1335
|
-
/* HOISTED */
|
|
1336
|
-
)), Io = {
|
|
1337
|
-
key: 0,
|
|
1338
|
-
class: "maz-whitespace-nowrap maz-text-sm"
|
|
1339
|
-
}, Vo = { class: "m-table-footer-pagination-buttons" }, So = /* @__PURE__ */ oe({
|
|
1340
|
-
__name: "MazTable",
|
|
1341
|
-
props: {
|
|
1342
|
-
tableClass: { default: void 0 },
|
|
1343
|
-
tableStyle: { default: void 0 },
|
|
1344
|
-
modelValue: { default: void 0 },
|
|
1345
|
-
size: { default: "md" },
|
|
1346
|
-
title: { default: void 0 },
|
|
1347
|
-
headers: { default: void 0 },
|
|
1348
|
-
sortable: { type: Boolean },
|
|
1349
|
-
headersAlign: { default: "left" },
|
|
1350
|
-
rows: { default: void 0 },
|
|
1351
|
-
hoverable: { type: Boolean },
|
|
1352
|
-
search: { type: Boolean },
|
|
1353
|
-
noSearchInRow: { type: Boolean },
|
|
1354
|
-
searchPlaceholder: { default: "Search" },
|
|
1355
|
-
noSearchBy: { type: Boolean },
|
|
1356
|
-
searchByPlaceholder: { default: "Search by" },
|
|
1357
|
-
searchByAllLabel: { default: "All" },
|
|
1358
|
-
searchQuery: { default: void 0 },
|
|
1359
|
-
backgroundOdd: { type: Boolean },
|
|
1360
|
-
backgroundEven: { type: Boolean },
|
|
1361
|
-
elevation: { type: Boolean },
|
|
1362
|
-
divider: { type: Boolean },
|
|
1363
|
-
caption: { default: void 0 },
|
|
1364
|
-
captionSide: { default: "bottom" },
|
|
1365
|
-
pagination: { type: Boolean },
|
|
1366
|
-
page: { default: 1 },
|
|
1367
|
-
pageSize: { default: 20 },
|
|
1368
|
-
totalPages: { default: void 0 },
|
|
1369
|
-
paginationAllLabel: { default: "All" },
|
|
1370
|
-
noPaginateRows: { type: Boolean },
|
|
1371
|
-
totalItems: { default: void 0 },
|
|
1372
|
-
loading: { type: Boolean },
|
|
1373
|
-
selectable: { type: Boolean },
|
|
1374
|
-
selectedKey: { default: void 0 },
|
|
1375
|
-
tableLayout: { default: void 0 },
|
|
1376
|
-
color: { default: "primary" }
|
|
1377
|
-
},
|
|
1378
|
-
emits: ["update:model-value", "update:search-query", "update:page", "update:page-size"],
|
|
1379
|
-
setup(i, { emit: d }) {
|
|
1380
|
-
we((l) => ({
|
|
1381
|
-
"80c1f54c": t.tableLayout,
|
|
1382
|
-
"472efd1f": t.captionSide
|
|
1383
|
-
}));
|
|
1384
|
-
const t = i, b = p(
|
|
1385
|
-
() => t.divider && !t.backgroundEven && !t.backgroundOdd
|
|
1386
|
-
), c = d, { size: v, hoverable: y, backgroundEven: o, backgroundOdd: K } = st(t);
|
|
1387
|
-
rt("maz-table", {
|
|
1388
|
-
size: v,
|
|
1389
|
-
hoverable: y,
|
|
1390
|
-
backgroundEven: o,
|
|
1391
|
-
backgroundOdd: K
|
|
1392
|
-
});
|
|
1393
|
-
const T = N(te()), w = p(() => t.selectable || !!t.selectedKey), j = N(t.page);
|
|
1394
|
-
ge(
|
|
1395
|
-
() => t.page,
|
|
1396
|
-
(l) => {
|
|
1397
|
-
j.value = l;
|
|
1398
|
-
}
|
|
1399
|
-
);
|
|
1400
|
-
const A = p({
|
|
1401
|
-
get: () => j.value,
|
|
1402
|
-
set: (l) => {
|
|
1403
|
-
j.value = l, c("update:page", l);
|
|
1404
|
-
}
|
|
1405
|
-
}), q = p(() => [
|
|
1406
|
-
{ label: t.paginationAllLabel, value: Number.POSITIVE_INFINITY },
|
|
1407
|
-
{ label: 5, value: 5 },
|
|
1408
|
-
{ label: 10, value: 10 },
|
|
1409
|
-
{ label: 20, value: 20 },
|
|
1410
|
-
{ label: 50, value: 50 },
|
|
1411
|
-
{ label: 100, value: 100 },
|
|
1412
|
-
{ label: 200, value: 200 }
|
|
1413
|
-
]), $ = N(t.pageSize);
|
|
1414
|
-
ge(
|
|
1415
|
-
() => t.pageSize,
|
|
1416
|
-
(l) => {
|
|
1417
|
-
$.value = l;
|
|
1418
|
-
}
|
|
1419
|
-
);
|
|
1420
|
-
const I = p({
|
|
1421
|
-
get: () => $.value,
|
|
1422
|
-
set: (l) => {
|
|
1423
|
-
$.value = l, c("update:page-size", l);
|
|
1424
|
-
}
|
|
1425
|
-
}), E = p(() => {
|
|
1426
|
-
var l;
|
|
1427
|
-
return t.totalPages ?? (I.value === Number.POSITIVE_INFINITY || !((l = t.rows) != null && l.length)) ? 1 : Math.ceil(t.rows.length / I.value);
|
|
1428
|
-
});
|
|
1429
|
-
function R() {
|
|
1430
|
-
A.value = 1;
|
|
1431
|
-
}
|
|
1432
|
-
function g() {
|
|
1433
|
-
A.value = E.value;
|
|
1434
|
-
}
|
|
1435
|
-
function Z() {
|
|
1436
|
-
A.value = A.value - 1;
|
|
1437
|
-
}
|
|
1438
|
-
function ae() {
|
|
1439
|
-
A.value = A.value + 1;
|
|
1440
|
-
}
|
|
1441
|
-
const J = p(() => {
|
|
1442
|
-
if (!t.pagination || t.noPaginateRows || I.value === Number.POSITIVE_INFINITY)
|
|
1443
|
-
return T.value;
|
|
1444
|
-
const l = (j.value - 1) * I.value, k = l + I.value;
|
|
1445
|
-
return T.value.slice(l, k);
|
|
1446
|
-
});
|
|
1447
|
-
ge(
|
|
1448
|
-
() => [t.rows, t.modelValue],
|
|
1449
|
-
() => {
|
|
1450
|
-
T.value = te();
|
|
1451
|
-
}
|
|
1452
|
-
);
|
|
1453
|
-
const ee = N(), ue = p(() => [
|
|
1454
|
-
// eslint-disable-next-line unicorn/no-null
|
|
1455
|
-
{ label: t.searchByAllLabel, value: null },
|
|
1456
|
-
...x.value.map((l) => ({
|
|
1457
|
-
label: l.label,
|
|
1458
|
-
value: l.key
|
|
1459
|
-
}))
|
|
1460
|
-
]), ne = N(t.searchQuery);
|
|
1461
|
-
ge(
|
|
1462
|
-
() => t.searchQuery,
|
|
1463
|
-
(l) => {
|
|
1464
|
-
ne.value = l;
|
|
1465
|
-
}
|
|
1466
|
-
);
|
|
1467
|
-
const F = p({
|
|
1468
|
-
get: () => ne.value,
|
|
1469
|
-
set: (l) => {
|
|
1470
|
-
ne.value = l, c("update:search-query", l);
|
|
1471
|
-
}
|
|
1472
|
-
});
|
|
1473
|
-
function se(l) {
|
|
1474
|
-
return [...l].sort((k, f) => {
|
|
1475
|
-
if (H.value === void 0 || U.value === void 0)
|
|
1476
|
-
return 0;
|
|
1477
|
-
const L = k[x.value[H.value].key], e = f[x.value[H.value].key];
|
|
1478
|
-
return typeof L == "string" && typeof e == "string" ? U.value === "ASC" ? L.localeCompare(e) : e.localeCompare(L) : U.value === "ASC" ? L - e : e - L;
|
|
1479
|
-
});
|
|
1480
|
-
}
|
|
1481
|
-
function me(l) {
|
|
1482
|
-
if (t.noSearchInRow || typeof F.value != "string")
|
|
1483
|
-
return J.value;
|
|
1484
|
-
const k = F.value.toLowerCase();
|
|
1485
|
-
return [...l].filter((f) => ee.value ? String(f[ee.value]).toLowerCase().includes(k) : Object.values(f).some((L) => typeof L == "string" || typeof L == "number" || typeof L == "boolean" ? String(L).toLowerCase().includes(k) : !1));
|
|
1486
|
-
}
|
|
1487
|
-
const Q = p(() => {
|
|
1488
|
-
const l = me(J.value);
|
|
1489
|
-
return se(l);
|
|
1490
|
-
}), a = Pe(), P = p(() => t.search || !!t.title || !!a.title), X = p(() => t.pagination), x = N(W());
|
|
1491
|
-
function W() {
|
|
1492
|
-
var l;
|
|
1493
|
-
return ((l = t.headers) == null ? void 0 : l.map(
|
|
1494
|
-
(k) => typeof k == "string" ? { label: k, align: t.headersAlign } : { align: t.headersAlign, thHeaders: k.headers, ...k }
|
|
1495
|
-
)) ?? [];
|
|
1496
|
-
}
|
|
1497
|
-
function te() {
|
|
1498
|
-
var l;
|
|
1499
|
-
return ((l = t.rows) == null ? void 0 : l.map((k) => {
|
|
1500
|
-
var f;
|
|
1501
|
-
return {
|
|
1502
|
-
selected: (f = t.modelValue) == null ? void 0 : f.includes(t.selectedKey ? k[t.selectedKey] : k),
|
|
1503
|
-
...k
|
|
1504
|
-
};
|
|
1505
|
-
})) ?? [];
|
|
1506
|
-
}
|
|
1507
|
-
const H = N(), U = N();
|
|
1508
|
-
function Ie(l) {
|
|
1509
|
-
l === H.value ? U.value = U.value === void 0 ? "DESC" : U.value === "DESC" ? "ASC" : void 0 : U.value = "DESC", H.value = U.value === void 0 ? void 0 : l;
|
|
1510
|
-
}
|
|
1511
|
-
const he = p({
|
|
1512
|
-
get: () => Q.value.every((l) => l.selected) ?? !1,
|
|
1513
|
-
set: Ve
|
|
1514
|
-
});
|
|
1515
|
-
function Ve(l) {
|
|
1516
|
-
for (const k of Q.value)
|
|
1517
|
-
k.selected = l;
|
|
1518
|
-
de();
|
|
1519
|
-
}
|
|
1520
|
-
function Se(l, k) {
|
|
1521
|
-
Q.value[k].selected = l, de();
|
|
1522
|
-
}
|
|
1523
|
-
function de(l) {
|
|
1524
|
-
l = l ?? ye();
|
|
1525
|
-
const k = l != null && l.length ? l : void 0;
|
|
1526
|
-
c("update:model-value", k);
|
|
1527
|
-
}
|
|
1528
|
-
function ye() {
|
|
1529
|
-
return Q.value.filter((l) => l.selected).map((l) => t.selectedKey ? l[t.selectedKey] : l);
|
|
1530
|
-
}
|
|
1531
|
-
return Oe(() => {
|
|
1532
|
-
const l = ye();
|
|
1533
|
-
l != null && l.length && de(l);
|
|
1534
|
-
}), (l, k) => (s(), z(
|
|
1535
|
-
"div",
|
|
1536
|
-
{
|
|
1537
|
-
class: C(["m-table", { "--has-header": P.value }])
|
|
1538
|
-
},
|
|
1539
|
-
[
|
|
1540
|
-
P.value ? (s(), z("div", co, [
|
|
1541
|
-
B("div", po, [
|
|
1542
|
-
l.title || l.$slots.title ? V(l.$slots, "title", { key: 0 }, () => [
|
|
1543
|
-
B(
|
|
1544
|
-
"span",
|
|
1545
|
-
fo,
|
|
1546
|
-
G(l.title),
|
|
1547
|
-
1
|
|
1548
|
-
/* TEXT */
|
|
1549
|
-
)
|
|
1550
|
-
], !0) : u("v-if", !0)
|
|
1551
|
-
]),
|
|
1552
|
-
l.search ? (s(), z("div", mo, [
|
|
1553
|
-
l.noSearchBy ? u("v-if", !0) : (s(), S(Fe, {
|
|
1554
|
-
key: 0,
|
|
1555
|
-
modelValue: ee.value,
|
|
1556
|
-
"onUpdate:modelValue": k[0] || (k[0] = (f) => ee.value = f),
|
|
1557
|
-
color: l.color,
|
|
1558
|
-
style: { width: "8rem" },
|
|
1559
|
-
placeholder: l.searchByPlaceholder,
|
|
1560
|
-
size: h(v),
|
|
1561
|
-
options: ue.value
|
|
1562
|
-
}, null, 8, ["modelValue", "color", "placeholder", "size", "options"])),
|
|
1563
|
-
_(Te, {
|
|
1564
|
-
modelValue: F.value,
|
|
1565
|
-
"onUpdate:modelValue": k[1] || (k[1] = (f) => F.value = f),
|
|
1566
|
-
size: h(v),
|
|
1567
|
-
color: l.color,
|
|
1568
|
-
placeholder: l.searchPlaceholder,
|
|
1569
|
-
"left-icon": h(Qe)
|
|
1570
|
-
}, null, 8, ["modelValue", "size", "color", "placeholder", "left-icon"])
|
|
1571
|
-
])) : u("v-if", !0)
|
|
1572
|
-
])) : u("v-if", !0),
|
|
1573
|
-
B(
|
|
1574
|
-
"table",
|
|
1575
|
-
{
|
|
1576
|
-
class: C([{ "--elevation": l.elevation, "--has-layout": l.tableLayout }, l.tableClass]),
|
|
1577
|
-
style: ie(l.tableStyle)
|
|
1578
|
-
},
|
|
1579
|
-
[
|
|
1580
|
-
l.caption || l.$slots.caption ? (s(), z("caption", vo, [
|
|
1581
|
-
u(`
|
|
1582
|
-
@slot caption - add caption on top or bottom of the table
|
|
1583
|
-
`),
|
|
1584
|
-
V(l.$slots, "caption", {}, () => [
|
|
1585
|
-
re(
|
|
1586
|
-
G(l.caption),
|
|
1587
|
-
1
|
|
1588
|
-
/* TEXT */
|
|
1589
|
-
)
|
|
1590
|
-
], !0)
|
|
1591
|
-
])) : u("v-if", !0),
|
|
1592
|
-
x.value ? (s(), z("thead", bo, [
|
|
1593
|
-
u(`
|
|
1594
|
-
@slot thead - content in thead element
|
|
1595
|
-
`),
|
|
1596
|
-
V(l.$slots, "thead", {}, () => [
|
|
1597
|
-
_(Me, { "no-hoverable": "" }, {
|
|
1598
|
-
default: O(() => [
|
|
1599
|
-
w.value ? (s(), S(_e, {
|
|
1600
|
-
key: 0,
|
|
1601
|
-
align: "left",
|
|
1602
|
-
class: C([`--${h(v)}`, "m-table-select-column"])
|
|
1603
|
-
}, {
|
|
1604
|
-
default: O(() => [
|
|
1605
|
-
_(Ke, {
|
|
1606
|
-
modelValue: he.value,
|
|
1607
|
-
"onUpdate:modelValue": k[2] || (k[2] = (f) => he.value = f),
|
|
1608
|
-
size: "xs"
|
|
1609
|
-
}, null, 8, ["modelValue"])
|
|
1610
|
-
]),
|
|
1611
|
-
_: 1
|
|
1612
|
-
/* STABLE */
|
|
1613
|
-
}, 8, ["class"])) : u("v-if", !0),
|
|
1614
|
-
(s(!0), z(
|
|
1615
|
-
be,
|
|
1616
|
-
null,
|
|
1617
|
-
ke(x.value, (f, L) => (s(), S(_e, {
|
|
1618
|
-
key: L,
|
|
1619
|
-
scope: f.scope,
|
|
1620
|
-
align: f.align,
|
|
1621
|
-
rowspan: f.rowspan,
|
|
1622
|
-
colspan: f.colspan,
|
|
1623
|
-
headers: f.thHeaders,
|
|
1624
|
-
style: ie({ width: f.width, textAlign: f.align }),
|
|
1625
|
-
class: C(["maz-group", [
|
|
1626
|
-
{ "--hidden": f.hidden, "--sortable": f.sortable ?? l.sortable },
|
|
1627
|
-
f.classes,
|
|
1628
|
-
`--${h(v)}`
|
|
1629
|
-
]]),
|
|
1630
|
-
onClick: (e) => (f.sortable ?? l.sortable) && Ie(L)
|
|
1631
|
-
}, {
|
|
1632
|
-
default: O(() => [
|
|
1633
|
-
B(
|
|
1634
|
-
"span",
|
|
1635
|
-
{
|
|
1636
|
-
class: C({ "maz-sr-only": f.srOnly })
|
|
1637
|
-
},
|
|
1638
|
-
[
|
|
1639
|
-
u(`
|
|
1640
|
-
@slot header - replace column header
|
|
1641
|
-
@binding {Object} header - header data
|
|
1642
|
-
@binding {String} label - header label
|
|
1643
|
-
`),
|
|
1644
|
-
V(l.$slots, "header", {
|
|
1645
|
-
header: f,
|
|
1646
|
-
label: f.label
|
|
1647
|
-
}, () => [
|
|
1648
|
-
u(`
|
|
1649
|
-
@slot header-label-{key} - replace column header label
|
|
1650
|
-
@binding {Object} header - header data
|
|
1651
|
-
@binding {String} label - header label
|
|
1652
|
-
`),
|
|
1653
|
-
V(l.$slots, `header-label-${f.key}`, {
|
|
1654
|
-
header: f,
|
|
1655
|
-
label: f.label
|
|
1656
|
-
}, () => [
|
|
1657
|
-
re(
|
|
1658
|
-
G(f.label),
|
|
1659
|
-
1
|
|
1660
|
-
/* TEXT */
|
|
1661
|
-
)
|
|
1662
|
-
], !0),
|
|
1663
|
-
f.sortable ?? l.sortable ? (s(), z("div", ho, [
|
|
1664
|
-
_(h(bt), {
|
|
1665
|
-
class: C(["m-table-sort-icon maz-hidden group-hover:maz-block", {
|
|
1666
|
-
"--sorted": L === H.value,
|
|
1667
|
-
"--up": U.value === "DESC",
|
|
1668
|
-
"--down": U.value === "ASC"
|
|
1669
|
-
}])
|
|
1670
|
-
}, null, 8, ["class"])
|
|
1671
|
-
])) : u("v-if", !0)
|
|
1672
|
-
], !0)
|
|
1673
|
-
],
|
|
1674
|
-
2
|
|
1675
|
-
/* CLASS */
|
|
1676
|
-
)
|
|
1677
|
-
]),
|
|
1678
|
-
_: 2
|
|
1679
|
-
/* DYNAMIC */
|
|
1680
|
-
}, 1032, ["scope", "align", "rowspan", "colspan", "headers", "style", "class", "onClick"]))),
|
|
1681
|
-
128
|
|
1682
|
-
/* KEYED_FRAGMENT */
|
|
1683
|
-
)),
|
|
1684
|
-
l.$slots.actions ? (s(), S(_e, {
|
|
1685
|
-
key: 1,
|
|
1686
|
-
align: "left",
|
|
1687
|
-
class: C(`--${h(v)}`)
|
|
1688
|
-
}, {
|
|
1689
|
-
default: O(() => [
|
|
1690
|
-
u(`
|
|
1691
|
-
@slot actions-header - replace text of actions header
|
|
1692
|
-
`),
|
|
1693
|
-
V(l.$slots, "actions-header", {}, () => [
|
|
1694
|
-
re(" Actions ")
|
|
1695
|
-
], !0)
|
|
1696
|
-
]),
|
|
1697
|
-
_: 3
|
|
1698
|
-
/* FORWARDED */
|
|
1699
|
-
}, 8, ["class"])) : u("v-if", !0)
|
|
1700
|
-
]),
|
|
1701
|
-
_: 3
|
|
1702
|
-
/* FORWARDED */
|
|
1703
|
-
})
|
|
1704
|
-
], !0)
|
|
1705
|
-
])) : u("v-if", !0),
|
|
1706
|
-
l.loading ? (s(), S(to, {
|
|
1707
|
-
key: 2,
|
|
1708
|
-
color: l.color,
|
|
1709
|
-
class: "!maz-absolute"
|
|
1710
|
-
}, null, 8, ["color"])) : u("v-if", !0),
|
|
1711
|
-
B(
|
|
1712
|
-
"tbody",
|
|
1713
|
-
{
|
|
1714
|
-
class: C({ "--divider": b.value })
|
|
1715
|
-
},
|
|
1716
|
-
[
|
|
1717
|
-
V(l.$slots, "default", {}, () => [
|
|
1718
|
-
Q.value.length > 0 ? (s(!0), z(
|
|
1719
|
-
be,
|
|
1720
|
-
{ key: 0 },
|
|
1721
|
-
ke(Q.value, (f, L) => (s(), S(Me, {
|
|
1722
|
-
key: L,
|
|
1723
|
-
class: C(f.classes),
|
|
1724
|
-
onClick: (e) => f.action && f.action(f)
|
|
1725
|
-
}, {
|
|
1726
|
-
default: O(() => [
|
|
1727
|
-
w.value ? (s(), S(
|
|
1728
|
-
ze,
|
|
1729
|
-
{
|
|
1730
|
-
key: 0,
|
|
1731
|
-
class: "m-table-select-column"
|
|
1732
|
-
},
|
|
1733
|
-
{
|
|
1734
|
-
default: O(() => [
|
|
1735
|
-
u(`
|
|
1736
|
-
@slot select - replace checkbox component
|
|
1737
|
-
@binding {Object} row - row data
|
|
1738
|
-
@binding {Boolean} selected - if selected or not
|
|
1739
|
-
`),
|
|
1740
|
-
V(l.$slots, "select", {
|
|
1741
|
-
row: f,
|
|
1742
|
-
selected: f.selected
|
|
1743
|
-
}, () => [
|
|
1744
|
-
_(Ke, {
|
|
1745
|
-
size: "xs",
|
|
1746
|
-
"model-value": f.selected,
|
|
1747
|
-
"onUpdate:modelValue": (e) => Se(e, L)
|
|
1748
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
1749
|
-
], !0)
|
|
1750
|
-
]),
|
|
1751
|
-
_: 2
|
|
1752
|
-
/* DYNAMIC */
|
|
1753
|
-
},
|
|
1754
|
-
1024
|
|
1755
|
-
/* DYNAMIC_SLOTS */
|
|
1756
|
-
)) : u("v-if", !0),
|
|
1757
|
-
(s(!0), z(
|
|
1758
|
-
be,
|
|
1759
|
-
null,
|
|
1760
|
-
ke(x.value, ({ key: e, align: n, classes: m }, r) => (s(), S(ze, {
|
|
1761
|
-
key: r,
|
|
1762
|
-
align: n,
|
|
1763
|
-
class: C(m)
|
|
1764
|
-
}, {
|
|
1765
|
-
default: O(() => [
|
|
1766
|
-
u(`
|
|
1767
|
-
@slot cell - replace all row cells
|
|
1768
|
-
@binding {Object} row - row data
|
|
1769
|
-
@binding {Boolean} value - cell value
|
|
1770
|
-
`),
|
|
1771
|
-
e ? V(l.$slots, "cell", {
|
|
1772
|
-
key: 0,
|
|
1773
|
-
row: f,
|
|
1774
|
-
value: f[e]
|
|
1775
|
-
}, () => [
|
|
1776
|
-
u(`
|
|
1777
|
-
@slot cell-{key} - replace row cells of column
|
|
1778
|
-
@binding {Object} row - row data
|
|
1779
|
-
@binding {Boolean} value - cell value
|
|
1780
|
-
`),
|
|
1781
|
-
V(l.$slots, `cell-${e}`, {
|
|
1782
|
-
row: f,
|
|
1783
|
-
value: f[e]
|
|
1784
|
-
}, () => [
|
|
1785
|
-
re(
|
|
1786
|
-
G(f[e]),
|
|
1787
|
-
1
|
|
1788
|
-
/* TEXT */
|
|
1789
|
-
)
|
|
1790
|
-
], !0)
|
|
1791
|
-
], !0) : u("v-if", !0)
|
|
1792
|
-
]),
|
|
1793
|
-
_: 2
|
|
1794
|
-
/* DYNAMIC */
|
|
1795
|
-
}, 1032, ["align", "class"]))),
|
|
1796
|
-
128
|
|
1797
|
-
/* KEYED_FRAGMENT */
|
|
1798
|
-
)),
|
|
1799
|
-
l.$slots.actions ? (s(), S(
|
|
1800
|
-
ze,
|
|
1801
|
-
{ key: 1 },
|
|
1802
|
-
{
|
|
1803
|
-
default: O(() => [
|
|
1804
|
-
u(`
|
|
1805
|
-
@slot actions - will add actions column
|
|
1806
|
-
@binding {Object} row - row data
|
|
1807
|
-
`),
|
|
1808
|
-
V(l.$slots, "actions", { row: f }, void 0, !0)
|
|
1809
|
-
]),
|
|
1810
|
-
_: 2
|
|
1811
|
-
/* DYNAMIC */
|
|
1812
|
-
},
|
|
1813
|
-
1024
|
|
1814
|
-
/* DYNAMIC_SLOTS */
|
|
1815
|
-
)) : u("v-if", !0)
|
|
1816
|
-
]),
|
|
1817
|
-
_: 2
|
|
1818
|
-
/* DYNAMIC */
|
|
1819
|
-
}, 1032, ["class", "onClick"]))),
|
|
1820
|
-
128
|
|
1821
|
-
/* KEYED_FRAGMENT */
|
|
1822
|
-
)) : (s(), S(Me, { key: 1 }, {
|
|
1823
|
-
default: O(() => [
|
|
1824
|
-
_(ze, {
|
|
1825
|
-
colspan: x.value.length + (w.value ? 1 : 0) + (l.$slots.actions ? 1 : 0)
|
|
1826
|
-
}, {
|
|
1827
|
-
default: O(() => [
|
|
1828
|
-
u(`
|
|
1829
|
-
@slot no-results - replace no results
|
|
1830
|
-
`),
|
|
1831
|
-
V(l.$slots, "no-results", {}, () => [
|
|
1832
|
-
B("p", yo, [
|
|
1833
|
-
u(`
|
|
1834
|
-
@slot no-results-text - replace no results test only
|
|
1835
|
-
`),
|
|
1836
|
-
V(l.$slots, "no-results-text", {}, () => [
|
|
1837
|
-
re(" No results ")
|
|
1838
|
-
], !0)
|
|
1839
|
-
])
|
|
1840
|
-
], !0)
|
|
1841
|
-
]),
|
|
1842
|
-
_: 3
|
|
1843
|
-
/* FORWARDED */
|
|
1844
|
-
}, 8, ["colspan"])
|
|
1845
|
-
]),
|
|
1846
|
-
_: 3
|
|
1847
|
-
/* FORWARDED */
|
|
1848
|
-
}))
|
|
1849
|
-
], !0)
|
|
1850
|
-
],
|
|
1851
|
-
2
|
|
1852
|
-
/* CLASS */
|
|
1853
|
-
)
|
|
1854
|
-
],
|
|
1855
|
-
6
|
|
1856
|
-
/* CLASS, STYLE */
|
|
1857
|
-
),
|
|
1858
|
-
X.value ? (s(), z("div", go, [
|
|
1859
|
-
zo,
|
|
1860
|
-
l.pagination ? (s(), z("div", ko, [
|
|
1861
|
-
B("div", $o, [
|
|
1862
|
-
wo,
|
|
1863
|
-
_(Fe, {
|
|
1864
|
-
modelValue: I.value,
|
|
1865
|
-
"onUpdate:modelValue": k[3] || (k[3] = (f) => I.value = f),
|
|
1866
|
-
options: q.value,
|
|
1867
|
-
size: h(v),
|
|
1868
|
-
color: l.color,
|
|
1869
|
-
"list-position": "top",
|
|
1870
|
-
style: { width: "5rem" }
|
|
1871
|
-
}, null, 8, ["modelValue", "options", "size", "color"])
|
|
1872
|
-
]),
|
|
1873
|
-
E.value ? (s(), z(
|
|
1874
|
-
"span",
|
|
1875
|
-
Io,
|
|
1876
|
-
G(A.value) + " - " + G(Q.value.length) + " of " + G(E.value),
|
|
1877
|
-
1
|
|
1878
|
-
/* TEXT */
|
|
1879
|
-
)) : u("v-if", !0),
|
|
1880
|
-
B("div", Vo, [
|
|
1881
|
-
_(ve, {
|
|
1882
|
-
disabled: A.value === 1,
|
|
1883
|
-
size: h(v),
|
|
1884
|
-
color: "transparent",
|
|
1885
|
-
fab: "",
|
|
1886
|
-
"no-elevation": "",
|
|
1887
|
-
onClick: R
|
|
1888
|
-
}, {
|
|
1889
|
-
default: O(() => [
|
|
1890
|
-
_(h(De), { class: "maz-text-base" })
|
|
1891
|
-
]),
|
|
1892
|
-
_: 1
|
|
1893
|
-
/* STABLE */
|
|
1894
|
-
}, 8, ["disabled", "size"]),
|
|
1895
|
-
_(ve, {
|
|
1896
|
-
disabled: A.value === 1,
|
|
1897
|
-
size: h(v),
|
|
1898
|
-
color: "transparent",
|
|
1899
|
-
fab: "",
|
|
1900
|
-
"no-elevation": "",
|
|
1901
|
-
onClick: Z
|
|
1902
|
-
}, {
|
|
1903
|
-
default: O(() => [
|
|
1904
|
-
_(h(je), { class: "maz-text-base" })
|
|
1905
|
-
]),
|
|
1906
|
-
_: 1
|
|
1907
|
-
/* STABLE */
|
|
1908
|
-
}, 8, ["disabled", "size"]),
|
|
1909
|
-
_(ve, {
|
|
1910
|
-
disabled: A.value === E.value,
|
|
1911
|
-
size: h(v),
|
|
1912
|
-
color: "transparent",
|
|
1913
|
-
fab: "",
|
|
1914
|
-
"no-elevation": "",
|
|
1915
|
-
onClick: ae
|
|
1916
|
-
}, {
|
|
1917
|
-
default: O(() => [
|
|
1918
|
-
_(h(je), { class: "maz-rotate-180 maz-text-base" })
|
|
1919
|
-
]),
|
|
1920
|
-
_: 1
|
|
1921
|
-
/* STABLE */
|
|
1922
|
-
}, 8, ["disabled", "size"]),
|
|
1923
|
-
_(ve, {
|
|
1924
|
-
disabled: A.value === E.value,
|
|
1925
|
-
size: h(v),
|
|
1926
|
-
color: "transparent",
|
|
1927
|
-
fab: "",
|
|
1928
|
-
"no-elevation": "",
|
|
1929
|
-
onClick: g
|
|
1930
|
-
}, {
|
|
1931
|
-
default: O(() => [
|
|
1932
|
-
_(h(De), { class: "maz-rotate-180 maz-text-base" })
|
|
1933
|
-
]),
|
|
1934
|
-
_: 1
|
|
1935
|
-
/* STABLE */
|
|
1936
|
-
}, 8, ["disabled", "size"])
|
|
1937
|
-
])
|
|
1938
|
-
])) : u("v-if", !0)
|
|
1939
|
-
])) : u("v-if", !0)
|
|
1940
|
-
],
|
|
1941
|
-
2
|
|
1942
|
-
/* CLASS */
|
|
1943
|
-
));
|
|
1944
|
-
}
|
|
1945
|
-
}), Bo = /* @__PURE__ */ le(So, [["__scopeId", "data-v-04b924e2"]]);
|
|
1946
|
-
export {
|
|
1947
|
-
Bo as M,
|
|
1948
|
-
le as _,
|
|
1949
|
-
Ee as i
|
|
1950
|
-
};
|