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
package/components/MazSlider.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
function le(a, l) {
|
|
1
|
+
import { defineComponent as te, ref as y, computed as f, watch as F, onMounted as ne, onBeforeUnmount as ae, nextTick as g, openBlock as b, createElementBlock as w, Fragment as T, createCommentVNode as oe, createElementVNode as _, normalizeStyle as B, normalizeClass as j, renderList as K, toDisplayString as ue } from "vue";
|
|
2
|
+
import './assets/MazSlider.css';function le(o, l) {
|
|
4
3
|
let n;
|
|
5
4
|
return function(...c) {
|
|
6
5
|
clearTimeout(n), n = setTimeout(() => {
|
|
7
|
-
|
|
6
|
+
o.apply(this, c);
|
|
8
7
|
}, l);
|
|
9
8
|
};
|
|
10
9
|
}
|
|
11
|
-
|
|
12
|
-
const l = document.documentElement, n = document.body, c =
|
|
10
|
+
function se(o) {
|
|
11
|
+
const l = document.documentElement, n = document.body, c = o.getBoundingClientRect();
|
|
13
12
|
return {
|
|
14
13
|
y: c.top + (window.pageYOffset || l.scrollTop) - (l.clientTop || n.clientTop || 0),
|
|
15
14
|
x: c.left + (window.pageXOffset || l.scrollLeft) - (l.clientLeft || n.clientLeft || 0)
|
|
16
15
|
};
|
|
17
|
-
}
|
|
18
|
-
|
|
16
|
+
}
|
|
17
|
+
function re(o, l, n = !1) {
|
|
18
|
+
const c = "targetTouches" in o ? o.targetTouches[0] : o, v = se(l), i = {
|
|
19
19
|
x: c.pageX - v.x,
|
|
20
20
|
y: c.pageY - v.y
|
|
21
21
|
};
|
|
@@ -23,17 +23,22 @@ const ue = (a) => {
|
|
|
23
23
|
x: n ? l.offsetWidth - i.x : i.x,
|
|
24
24
|
y: n ? l.offsetHeight - i.y : i.y
|
|
25
25
|
};
|
|
26
|
-
}
|
|
27
|
-
|
|
26
|
+
}
|
|
27
|
+
function q(o, l, n, c) {
|
|
28
|
+
return c === "minus" ? l ? o >= l : !0 : n ? o <= n : !0;
|
|
29
|
+
}
|
|
30
|
+
function I(o, l, n) {
|
|
31
|
+
const c = o + 1, i = l < c ? c - l : l - c;
|
|
28
32
|
return 100 / n * i / 100;
|
|
29
|
-
}
|
|
33
|
+
}
|
|
34
|
+
const ie = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], ce = ["data-label", "onMousedownPassive", "onTouchstartPassive", "onFocusPassive", "onBlurPassive", "onTouchendPassive", "onKeydownPassive"], de = /* @__PURE__ */ te({
|
|
30
35
|
__name: "MazSlider",
|
|
31
36
|
props: {
|
|
32
37
|
/** Array of cursors values */
|
|
33
38
|
modelValue: {
|
|
34
39
|
type: [Number, Array],
|
|
35
40
|
required: !0,
|
|
36
|
-
validator: (
|
|
41
|
+
validator: (o) => ["number"].includes(typeof o) || Array.isArray(o) || o === null
|
|
37
42
|
},
|
|
38
43
|
/** array of cursors label */
|
|
39
44
|
labels: { type: Array, default: void 0 },
|
|
@@ -56,8 +61,8 @@ const ue = (a) => {
|
|
|
56
61
|
noCursorAnim: { type: Boolean, default: !1 }
|
|
57
62
|
},
|
|
58
63
|
emits: ["update:model-value"],
|
|
59
|
-
setup(
|
|
60
|
-
const n =
|
|
64
|
+
setup(o, { emit: l }) {
|
|
65
|
+
const n = o, c = l, v = y(), i = y(), m = y(), d = y(), C = y([]), k = y([]), p = f(() => typeof n.modelValue == "number" ? [n.modelValue] : n.modelValue ? n.modelValue : [0]), M = f(() => Math.log(n.min || 1)), X = f(() => Math.log(n.max)), L = f(() => {
|
|
61
66
|
const { min: e, max: t } = n;
|
|
62
67
|
return (X.value - M.value) / (t - e);
|
|
63
68
|
}), A = f(() => {
|
|
@@ -77,109 +82,117 @@ const ue = (a) => {
|
|
|
77
82
|
const $ = le(() => z(), 300);
|
|
78
83
|
ne(() => {
|
|
79
84
|
z(!0), window.addEventListener("resize", $);
|
|
80
|
-
}),
|
|
85
|
+
}), ae(() => {
|
|
81
86
|
window.removeEventListener("resize", $);
|
|
82
87
|
});
|
|
83
|
-
|
|
88
|
+
async function z(e) {
|
|
84
89
|
e === !0 && U(), await Q(), await g();
|
|
85
|
-
for (const [t,
|
|
90
|
+
for (const [t, s] of p.value.entries())
|
|
86
91
|
P(t);
|
|
87
|
-
}
|
|
92
|
+
}
|
|
93
|
+
function R(e, t) {
|
|
88
94
|
e.key === "ArrowLeft" ? d.value && q(d.value[t] - 1, d.value[t - 1], d.value[t + 1], "minus") && (d.value[t]--, x(d.value)) : e.key === "ArrowRight" && d.value && q(d.value[t] + 1, d.value[t - 1], d.value[t + 1], "plus") && (d.value[t]++, x(d.value));
|
|
89
|
-
}
|
|
95
|
+
}
|
|
96
|
+
function W(e) {
|
|
90
97
|
i.value = void 0, D(e);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
}
|
|
99
|
+
function U() {
|
|
100
|
+
const { min: e, max: t } = n, s = p.value.map(
|
|
101
|
+
(a) => a < e ? e : a > t ? t : a
|
|
94
102
|
);
|
|
95
|
-
x(
|
|
96
|
-
}
|
|
103
|
+
x(s), d.value = s;
|
|
104
|
+
}
|
|
105
|
+
function x(e) {
|
|
97
106
|
const t = H.value ? [...e] : e[0];
|
|
98
107
|
c("update:model-value", t);
|
|
99
|
-
}
|
|
108
|
+
}
|
|
109
|
+
function G(e) {
|
|
100
110
|
const { labels: t } = n;
|
|
101
111
|
return t ? t[e] : void 0;
|
|
102
|
-
}
|
|
112
|
+
}
|
|
113
|
+
function P(e) {
|
|
103
114
|
D(e), n.noDivider || J();
|
|
104
|
-
}
|
|
105
|
-
|
|
115
|
+
}
|
|
116
|
+
async function D(e) {
|
|
117
|
+
var s;
|
|
106
118
|
await g();
|
|
107
119
|
const t = document.querySelectorAll(".m-slider .m-slider__btn");
|
|
108
120
|
if (t) {
|
|
109
|
-
const
|
|
110
|
-
left: typeof ((
|
|
121
|
+
const a = t[e], u = (a == null ? void 0 : a.clientWidth) + 16, r = {
|
|
122
|
+
left: typeof ((s = m.value) == null ? void 0 : s[e]) == "number" ? `${m.value[e] - u / 2 || 1}px` : ""
|
|
111
123
|
};
|
|
112
124
|
C.value[e] = r;
|
|
113
125
|
}
|
|
114
|
-
}
|
|
126
|
+
}
|
|
127
|
+
function J() {
|
|
115
128
|
if (m.value) {
|
|
116
129
|
const e = [...m.value];
|
|
117
130
|
e.push(0);
|
|
118
|
-
const t = e.length,
|
|
119
|
-
k.value = e.map((
|
|
120
|
-
left:
|
|
131
|
+
const t = e.length, s = Math.round(t / 2);
|
|
132
|
+
k.value = e.map((a, u) => ({
|
|
133
|
+
left: u === 0 ? 0 : `${e[u - 1]}px`,
|
|
121
134
|
// ATTENTION: buttonPositions.value[i - 1]
|
|
122
|
-
right:
|
|
123
|
-
backgroundColor:
|
|
124
|
-
|
|
125
|
-
`rgba(255, 255, 255, ${I(s, u, t)})`
|
|
126
|
-
) : (
|
|
127
|
-
// darken
|
|
128
|
-
`rgba(0, 0, 0, ${I(s, u, t)})`
|
|
129
|
-
)
|
|
135
|
+
right: u + 1 === t ? 0 : `calc( 100% - ${a}px )`,
|
|
136
|
+
backgroundColor: s === u + 1 ? void 0 : u < s ? `rgba(255, 255, 255, ${I(u, s, t)})` : `rgba(0, 0, 0, ${I(u, s, t)})`
|
|
137
|
+
// darken
|
|
130
138
|
}));
|
|
131
139
|
}
|
|
132
|
-
}
|
|
133
|
-
|
|
140
|
+
}
|
|
141
|
+
async function Q() {
|
|
142
|
+
var u, r;
|
|
134
143
|
await g();
|
|
135
|
-
const { min: e, max: t, log:
|
|
136
|
-
|
|
137
|
-
(h) =>
|
|
144
|
+
const { min: e, max: t, log: s } = n, a = (u = v.value) == null ? void 0 : u.clientWidth;
|
|
145
|
+
a ? m.value = (r = d.value) == null ? void 0 : r.map(
|
|
146
|
+
(h) => s ? a / t * (e + (Math.log(h) - M.value) / L.value) : a / A.value * (h - e)
|
|
138
147
|
) : console.warn("[maz-ui][MazSlider] ref component not found");
|
|
139
|
-
}
|
|
140
|
-
|
|
148
|
+
}
|
|
149
|
+
async function E() {
|
|
150
|
+
var u, r, h;
|
|
141
151
|
await g();
|
|
142
|
-
const { max: e, min: t, log:
|
|
143
|
-
if (
|
|
144
|
-
return
|
|
145
|
-
const Z = V / (
|
|
152
|
+
const { max: e, min: t, log: s } = n, a = (u = v.value) == null ? void 0 : u.clientWidth;
|
|
153
|
+
if (a)
|
|
154
|
+
return s ? (r = m.value) == null ? void 0 : r.map((V) => {
|
|
155
|
+
const Z = V / (a / e), ee = Math.exp((Z - t) * L.value + M.value);
|
|
146
156
|
return Math.round(ee);
|
|
147
157
|
}) : (h = m.value) == null ? void 0 : h.map(
|
|
148
|
-
(V) => Math.round(V / (
|
|
158
|
+
(V) => Math.round(V / (a / A.value)) + t
|
|
149
159
|
);
|
|
150
160
|
console.warn("[maz-ui][MazSlider] ref component not found");
|
|
151
|
-
}
|
|
161
|
+
}
|
|
162
|
+
function S(e, t) {
|
|
152
163
|
i.value === void 0 && (i.value = t, P(t));
|
|
153
|
-
}
|
|
164
|
+
}
|
|
165
|
+
async function O() {
|
|
154
166
|
if (i.value === void 0)
|
|
155
167
|
return;
|
|
156
168
|
const e = await E();
|
|
157
169
|
e && x(e), i.value = void 0;
|
|
158
|
-
}
|
|
159
|
-
|
|
170
|
+
}
|
|
171
|
+
async function N(e) {
|
|
172
|
+
var s;
|
|
160
173
|
if (await g(), i.value === void 0)
|
|
161
174
|
return;
|
|
162
|
-
const t = (
|
|
175
|
+
const t = (s = v.value) == null ? void 0 : s.clientWidth;
|
|
163
176
|
if (m.value) {
|
|
164
|
-
const
|
|
177
|
+
const a = m.value[i.value - 1] || 0, u = m.value[i.value + 1] || t;
|
|
165
178
|
if (!v.value)
|
|
166
179
|
return console.error("[maz-ui](MazSlider/handleMousemove) MazSlider not available");
|
|
167
180
|
m.value[i.value] = (() => {
|
|
168
181
|
const r = re(e, v.value).x;
|
|
169
|
-
return r <
|
|
182
|
+
return r < a ? a : u && r > u ? u : r;
|
|
170
183
|
})(), d.value = await E(), P(i.value);
|
|
171
184
|
}
|
|
172
|
-
}
|
|
185
|
+
}
|
|
173
186
|
return (e, t) => (b(), w(
|
|
174
187
|
T,
|
|
175
188
|
null,
|
|
176
189
|
[
|
|
177
|
-
|
|
190
|
+
oe(" eslint-disable vuejs-accessibility/mouse-events-have-key-events "),
|
|
178
191
|
_(
|
|
179
192
|
"div",
|
|
180
193
|
{
|
|
181
|
-
style: B([Y.value, { fontSize:
|
|
182
|
-
class: j(["m-slider", [`m-slider--${
|
|
194
|
+
style: B([Y.value, { fontSize: o.size }]),
|
|
195
|
+
class: j(["m-slider", [`m-slider--${o.color}`]]),
|
|
183
196
|
role: "button",
|
|
184
197
|
tabindex: "-1",
|
|
185
198
|
onMousemovePassive: N,
|
|
@@ -193,18 +206,18 @@ const ue = (a) => {
|
|
|
193
206
|
ref: v,
|
|
194
207
|
class: "m-slider__bar",
|
|
195
208
|
role: "slider",
|
|
196
|
-
"aria-valuenow":
|
|
197
|
-
"aria-valuemin":
|
|
198
|
-
"aria-valuemax":
|
|
209
|
+
"aria-valuenow": o.modelValue.toString(),
|
|
210
|
+
"aria-valuemin": o.min,
|
|
211
|
+
"aria-valuemax": o.max
|
|
199
212
|
}, [
|
|
200
213
|
(b(!0), w(
|
|
201
214
|
T,
|
|
202
215
|
null,
|
|
203
|
-
K(k.value, (
|
|
216
|
+
K(k.value, (s, a) => (b(), w(
|
|
204
217
|
"div",
|
|
205
218
|
{
|
|
206
|
-
key: `divider-${
|
|
207
|
-
style: B([
|
|
219
|
+
key: `divider-${a}`,
|
|
220
|
+
style: B([s]),
|
|
208
221
|
class: "m-slider__divider"
|
|
209
222
|
},
|
|
210
223
|
null,
|
|
@@ -217,27 +230,27 @@ const ue = (a) => {
|
|
|
217
230
|
(b(!0), w(
|
|
218
231
|
T,
|
|
219
232
|
null,
|
|
220
|
-
K(p.value, (
|
|
221
|
-
var
|
|
233
|
+
K(p.value, (s, a) => {
|
|
234
|
+
var u;
|
|
222
235
|
return b(), w("button", {
|
|
223
|
-
key: `cursor-${
|
|
236
|
+
key: `cursor-${a}`,
|
|
224
237
|
type: "button",
|
|
225
|
-
"data-label": G(
|
|
238
|
+
"data-label": G(a),
|
|
226
239
|
class: j(["m-slider__btn", {
|
|
227
|
-
"active-cursor":
|
|
240
|
+
"active-cursor": a === i.value && !o.noCursorAnim
|
|
228
241
|
}]),
|
|
229
|
-
style: B([C.value[
|
|
230
|
-
onMousedownPassive: (r) => S(r,
|
|
231
|
-
onTouchstartPassive: (r) => S(r,
|
|
232
|
-
onFocusPassive: (r) => S(r,
|
|
233
|
-
onBlurPassive: (r) => W(
|
|
234
|
-
onTouchendPassive: (r) => W(
|
|
235
|
-
onKeydownPassive: (r) => R(r,
|
|
242
|
+
style: B([C.value[a]]),
|
|
243
|
+
onMousedownPassive: (r) => S(r, a),
|
|
244
|
+
onTouchstartPassive: (r) => S(r, a),
|
|
245
|
+
onFocusPassive: (r) => S(r, a),
|
|
246
|
+
onBlurPassive: (r) => W(a),
|
|
247
|
+
onTouchendPassive: (r) => W(a),
|
|
248
|
+
onKeydownPassive: (r) => R(r, a)
|
|
236
249
|
}, [
|
|
237
250
|
_(
|
|
238
251
|
"span",
|
|
239
252
|
null,
|
|
240
|
-
|
|
253
|
+
ue((u = d.value) == null ? void 0 : u[a]),
|
|
241
254
|
1
|
|
242
255
|
/* TEXT */
|
|
243
256
|
)
|
|
@@ -256,12 +269,12 @@ const ue = (a) => {
|
|
|
256
269
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
257
270
|
));
|
|
258
271
|
}
|
|
259
|
-
}), ve = (
|
|
260
|
-
const n =
|
|
272
|
+
}), ve = (o, l) => {
|
|
273
|
+
const n = o.__vccOpts || o;
|
|
261
274
|
for (const [c, v] of l)
|
|
262
275
|
n[c] = v;
|
|
263
276
|
return n;
|
|
264
|
-
}, fe = /* @__PURE__ */ ve(de, [["__scopeId", "data-v-
|
|
277
|
+
}, fe = /* @__PURE__ */ ve(de, [["__scopeId", "data-v-433a5afb"]]);
|
|
265
278
|
export {
|
|
266
279
|
fe as default
|
|
267
280
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
const h = (e) => (i("data-v-c67298ec"), e = e(), l(), e), _ = ["width", "height"], m = /* @__PURE__ */ h(() => /* @__PURE__ */ d(
|
|
1
|
+
import { defineComponent as s, openBlock as a, createElementBlock as r, normalizeClass as p, pushScopeId as i, popScopeId as l, createElementVNode as d } from "vue";
|
|
2
|
+
import './assets/MazSpinner.css';const h = (e) => (i("data-v-c16a57a3"), e = e(), l(), e), _ = ["width", "height"], m = /* @__PURE__ */ h(() => /* @__PURE__ */ d(
|
|
4
3
|
"path",
|
|
5
4
|
{ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
|
|
6
5
|
null,
|
|
@@ -18,7 +17,7 @@ const h = (e) => (i("data-v-c67298ec"), e = e(), l(), e), _ = ["width", "height"
|
|
|
18
17
|
}
|
|
19
18
|
},
|
|
20
19
|
setup(e) {
|
|
21
|
-
return (o, t) => (
|
|
20
|
+
return (o, t) => (a(), r("svg", {
|
|
22
21
|
width: e.size,
|
|
23
22
|
height: e.size,
|
|
24
23
|
version: "1.1",
|
|
@@ -33,10 +32,10 @@ const h = (e) => (i("data-v-c67298ec"), e = e(), l(), e), _ = ["width", "height"
|
|
|
33
32
|
}
|
|
34
33
|
}), v = (e, o) => {
|
|
35
34
|
const t = e.__vccOpts || e;
|
|
36
|
-
for (const [
|
|
37
|
-
t[
|
|
35
|
+
for (const [n, c] of o)
|
|
36
|
+
t[n] = c;
|
|
38
37
|
return t;
|
|
39
|
-
}, x = /* @__PURE__ */ v(g, [["__scopeId", "data-v-
|
|
38
|
+
}, x = /* @__PURE__ */ v(g, [["__scopeId", "data-v-c16a57a3"]]);
|
|
40
39
|
export {
|
|
41
40
|
x as default
|
|
42
41
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Component, type ComponentPublicInstance, type
|
|
1
|
+
import { type Component, type ComponentPublicInstance, type FunctionalComponent, type SVGAttributes } from 'vue';
|
|
2
2
|
import type { Color } from './types';
|
|
3
3
|
export type { Color };
|
|
4
4
|
export type Icon = FunctionalComponent<SVGAttributes> | ComponentPublicInstance | Component;
|
|
@@ -13,7 +13,7 @@ export interface Step {
|
|
|
13
13
|
icon?: string | Icon;
|
|
14
14
|
}
|
|
15
15
|
export type Steps = Step[];
|
|
16
|
-
export
|
|
16
|
+
export interface Props {
|
|
17
17
|
/** The current step */
|
|
18
18
|
modelValue?: number;
|
|
19
19
|
/** The steps */
|
|
@@ -35,7 +35,7 @@ export type Props = {
|
|
|
35
35
|
allStepsValidated?: boolean;
|
|
36
36
|
/** Allow to close the steps */
|
|
37
37
|
canCloseSteps?: boolean;
|
|
38
|
-
}
|
|
38
|
+
}
|
|
39
39
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
40
40
|
modelValue: undefined;
|
|
41
41
|
steps: undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'vue';
|
|
2
2
|
import type { Color } from './types';
|
|
3
3
|
export type { Color };
|
|
4
|
-
export
|
|
4
|
+
export interface Props {
|
|
5
5
|
/** Style attribut of the component root element */
|
|
6
6
|
style?: HTMLAttributes['style'];
|
|
7
7
|
/** Class attribut of the component root element */
|
|
@@ -16,7 +16,7 @@ export type Props = {
|
|
|
16
16
|
name?: string;
|
|
17
17
|
/** The color of the switch */
|
|
18
18
|
color?: Color;
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
20
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
21
21
|
style: undefined;
|
|
22
22
|
class: undefined;
|
package/components/MazSwitch.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import './assets/MazSwitch.css';
|
|
2
1
|
import { getCurrentInstance as b, computed as t, defineComponent as v, useCssVars as k, openBlock as c, createElementBlock as i, unref as r, normalizeClass as _, normalizeStyle as y, createElementVNode as m, mergeProps as C, createCommentVNode as u, renderSlot as w } from "vue";
|
|
3
|
-
function V({
|
|
2
|
+
import './assets/MazSwitch.css';function V({
|
|
4
3
|
componentName: o,
|
|
5
4
|
providedId: s
|
|
6
5
|
}) {
|
|
@@ -31,18 +30,19 @@ const g = ["for", "aria-checked"], z = ["id", "name", "checked", "disabled"], $
|
|
|
31
30
|
emits: ["update:model-value", "change"],
|
|
32
31
|
setup(o, { emit: s }) {
|
|
33
32
|
k((e) => ({
|
|
34
|
-
"
|
|
35
|
-
"
|
|
33
|
+
"4ed3b471": h.value,
|
|
34
|
+
"118dd1e2": f.value
|
|
36
35
|
}));
|
|
37
36
|
const a = o, d = s, n = V({
|
|
38
37
|
componentName: "MazCheckbox",
|
|
39
38
|
providedId: a.id
|
|
40
39
|
}), h = t(() => `var(--maz-color-${a.color}-alpha)`), f = t(
|
|
41
40
|
() => a.modelValue ? `var(--maz-color-${a.color})` : "var(--maz-color-white)"
|
|
42
|
-
)
|
|
41
|
+
);
|
|
42
|
+
function p(e) {
|
|
43
43
|
const l = e.target;
|
|
44
44
|
d("update:model-value", (l == null ? void 0 : l.checked) ?? !1), d("change", (l == null ? void 0 : l.checked) ?? !1);
|
|
45
|
-
}
|
|
45
|
+
}
|
|
46
46
|
return (e, l) => (c(), i("label", {
|
|
47
47
|
for: r(n),
|
|
48
48
|
class: _(["m-switch", [{ "--is-disabled": e.disabled }, a.class]]),
|
package/components/MazTable.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type HTMLAttributes, type Ref, type StyleValue, type ThHTMLAttributes } from 'vue';
|
|
2
2
|
import type { Color, Size } from './types';
|
|
3
3
|
export type { Size, Color };
|
|
4
|
-
export
|
|
4
|
+
export interface HeadersEnriched {
|
|
5
5
|
label: string;
|
|
6
6
|
key?: string;
|
|
7
7
|
sortable?: boolean;
|
|
@@ -15,21 +15,22 @@ export type HeadersEnriched = {
|
|
|
15
15
|
rowspan?: ThHTMLAttributes['rowspan'];
|
|
16
16
|
colspan?: ThHTMLAttributes['colspan'];
|
|
17
17
|
headers?: ThHTMLAttributes['headers'];
|
|
18
|
-
}
|
|
18
|
+
}
|
|
19
19
|
export type Row = Record<string, any> & {
|
|
20
20
|
selected?: boolean;
|
|
21
21
|
action?: (row: Row) => unknown;
|
|
22
22
|
classes?: HTMLAttributes['class'];
|
|
23
23
|
};
|
|
24
24
|
export type Header = string | HeadersEnriched;
|
|
25
|
-
export
|
|
25
|
+
export interface Props {
|
|
26
26
|
/** class of the table element */
|
|
27
27
|
tableClass?: HTMLAttributes['class'];
|
|
28
28
|
/** style of the table element */
|
|
29
29
|
tableStyle?: StyleValue;
|
|
30
30
|
/** v-model of the table - list of selected rows */
|
|
31
31
|
modelValue?: (string | boolean | number)[];
|
|
32
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* size of the table
|
|
33
34
|
* @values `'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'mini'`
|
|
34
35
|
*/
|
|
35
36
|
size?: Size;
|
|
@@ -69,7 +70,8 @@ export type Props = {
|
|
|
69
70
|
divider?: boolean;
|
|
70
71
|
/** caption of the table */
|
|
71
72
|
caption?: string;
|
|
72
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* caption side
|
|
73
75
|
* @values `'top' | 'bottom'`
|
|
74
76
|
*/
|
|
75
77
|
captionSide?: 'top' | 'bottom';
|
|
@@ -93,19 +95,20 @@ export type Props = {
|
|
|
93
95
|
selectable?: boolean;
|
|
94
96
|
/** Enable selection of rows - key of the selected row */
|
|
95
97
|
selectedKey?: string;
|
|
96
|
-
/**
|
|
98
|
+
/**
|
|
99
|
+
* table layout
|
|
97
100
|
* @values `'auto' | 'fixed'`
|
|
98
101
|
*/
|
|
99
102
|
tableLayout?: 'auto' | 'fixed';
|
|
100
103
|
/** color of the loading bar */
|
|
101
104
|
color?: Color;
|
|
102
|
-
}
|
|
103
|
-
export
|
|
105
|
+
}
|
|
106
|
+
export interface MazTableProvide {
|
|
104
107
|
size: Ref<Size>;
|
|
105
108
|
hoverable: Ref<boolean>;
|
|
106
109
|
backgroundEven: Ref<boolean>;
|
|
107
110
|
backgroundOdd: Ref<boolean>;
|
|
108
|
-
}
|
|
111
|
+
}
|
|
109
112
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
110
113
|
tableClass: undefined;
|
|
111
114
|
tableStyle: undefined;
|
package/components/MazTable.mjs
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import './assets/MazTableCell.css';
|
|
2
1
|
import { inject as c, defineComponent as l, openBlock as a, createElementBlock as s, normalizeClass as i, unref as _, renderSlot as u } from "vue";
|
|
3
|
-
function
|
|
2
|
+
import './assets/MazTableCell.css';function d(t, o) {
|
|
4
3
|
const e = c(t, o);
|
|
5
4
|
if (!e)
|
|
6
5
|
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${t}`);
|
|
7
6
|
return e;
|
|
8
7
|
}
|
|
9
|
-
const
|
|
8
|
+
const p = /* @__PURE__ */ l({
|
|
10
9
|
__name: "MazTableCell",
|
|
11
10
|
setup(t) {
|
|
12
|
-
const { size: o } =
|
|
11
|
+
const { size: o } = d("maz-table");
|
|
13
12
|
return (e, r) => (a(), s(
|
|
14
13
|
"td",
|
|
15
14
|
{
|
|
@@ -27,7 +26,7 @@ const d = /* @__PURE__ */ l({
|
|
|
27
26
|
for (const [r, n] of o)
|
|
28
27
|
e[r] = n;
|
|
29
28
|
return e;
|
|
30
|
-
}, v = /* @__PURE__ */ f(
|
|
29
|
+
}, v = /* @__PURE__ */ f(p, [["__scopeId", "data-v-28c38d00"]]);
|
|
31
30
|
export {
|
|
32
31
|
v as default
|
|
33
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface Props {
|
|
2
2
|
/** Override hoverable of table props */
|
|
3
3
|
noHoverable?: boolean;
|
|
4
|
-
}
|
|
4
|
+
}
|
|
5
5
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<Props>>>, {}, {}>, {
|
|
6
6
|
default?(_: {}): any;
|
|
7
7
|
}>;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import './assets/MazTableRow.css';
|
|
2
1
|
import { inject as c, defineComponent as l, openBlock as s, createElementBlock as d, normalizeClass as u, unref as a, renderSlot as p } from "vue";
|
|
3
|
-
function
|
|
2
|
+
import './assets/MazTableRow.css';function i(o, r) {
|
|
4
3
|
const e = c(o, r);
|
|
5
4
|
if (!e)
|
|
6
5
|
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${o}`);
|
|
7
6
|
return e;
|
|
8
7
|
}
|
|
9
|
-
const
|
|
8
|
+
const b = /* @__PURE__ */ l({
|
|
10
9
|
__name: "MazTableRow",
|
|
11
10
|
props: {
|
|
12
11
|
noHoverable: { type: Boolean }
|
|
13
12
|
},
|
|
14
13
|
setup(o) {
|
|
15
|
-
const { hoverable: r, backgroundEven: e, backgroundOdd: n } =
|
|
14
|
+
const { hoverable: r, backgroundEven: e, backgroundOdd: n } = i("maz-table");
|
|
16
15
|
return (t, _) => (s(), d(
|
|
17
16
|
"tr",
|
|
18
17
|
{
|
|
@@ -34,7 +33,7 @@ const i = /* @__PURE__ */ l({
|
|
|
34
33
|
for (const [n, t] of r)
|
|
35
34
|
e[n] = t;
|
|
36
35
|
return e;
|
|
37
|
-
}, m = /* @__PURE__ */ v(
|
|
36
|
+
}, m = /* @__PURE__ */ v(b, [["__scopeId", "data-v-f9d9120a"]]);
|
|
38
37
|
export {
|
|
39
38
|
m as default
|
|
40
39
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import './assets/MazTableTitle.css';
|
|
2
1
|
import { inject as c, defineComponent as a, openBlock as s, createElementBlock as l, normalizeClass as i, unref as _, renderSlot as u } from "vue";
|
|
3
|
-
function p(e, o) {
|
|
2
|
+
import './assets/MazTableTitle.css';function p(e, o) {
|
|
4
3
|
const t = c(e, o);
|
|
5
4
|
if (!t)
|
|
6
5
|
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${e}`);
|
|
@@ -27,7 +26,7 @@ const d = /* @__PURE__ */ a({
|
|
|
27
26
|
for (const [r, n] of o)
|
|
28
27
|
t[r] = n;
|
|
29
28
|
return t;
|
|
30
|
-
}, v = /* @__PURE__ */ f(d, [["__scopeId", "data-v-
|
|
29
|
+
}, v = /* @__PURE__ */ f(d, [["__scopeId", "data-v-cd769807"]]);
|
|
31
30
|
export {
|
|
32
31
|
v as default
|
|
33
32
|
};
|
package/components/MazTabs.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
export
|
|
2
|
+
export interface Props {
|
|
3
3
|
/** The the selected tab number */
|
|
4
4
|
modelValue?: number;
|
|
5
|
-
}
|
|
6
|
-
export
|
|
5
|
+
}
|
|
6
|
+
export interface MazTabsProvide {
|
|
7
7
|
currentTab: Ref<number>;
|
|
8
8
|
updateCurrentTab: (index: number) => number;
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
10
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
11
|
"update:model-value": (index: number) => void;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<Props>>> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { BadgeColor, BadgeRoundedSize } from './MazBadge.vue';
|
|
2
2
|
export type MazTabsBarItem = {
|
|
3
3
|
label: string;
|
|
4
4
|
disabled?: boolean;
|
|
@@ -11,12 +11,13 @@ export type MazTabsBarItem = {
|
|
|
11
11
|
roundedSize?: BadgeRoundedSize;
|
|
12
12
|
};
|
|
13
13
|
} | string;
|
|
14
|
-
export
|
|
14
|
+
export interface Props {
|
|
15
15
|
/** The items to display in the tabs bar */
|
|
16
16
|
items: MazTabsBarItem[];
|
|
17
17
|
/** Will add a query param to the url to keep the selected tab on page refresh */
|
|
18
18
|
persistent?: boolean;
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* The name of the query param to add to the url
|
|
20
21
|
* @default tab
|
|
21
22
|
*/
|
|
22
23
|
queryParam?: string;
|
|
@@ -24,11 +25,12 @@ export type Props = {
|
|
|
24
25
|
block?: boolean;
|
|
25
26
|
/** Will remove the elevation */
|
|
26
27
|
noElevation?: boolean;
|
|
27
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Will add a scroll on the tabs bar to show selected element
|
|
28
30
|
* @default true
|
|
29
31
|
*/
|
|
30
32
|
autoScroll?: boolean;
|
|
31
|
-
}
|
|
33
|
+
}
|
|
32
34
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
33
35
|
queryParam: string;
|
|
34
36
|
autoScroll: boolean;
|