maz-ui 3.47.2-beta.9 → 3.48.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.mjs +76 -77
- package/components/MazAnimatedCounter.mjs +7 -7
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.d.ts +21 -13
- package/components/MazBackdrop.mjs +107 -82
- package/components/MazBadge.mjs +2 -2
- package/components/MazBottomSheet.d.ts +11 -24
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.mjs +7 -7
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChart.mjs +13 -13
- package/components/MazCheckbox.mjs +36 -37
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +18 -0
- package/components/MazCircularProgressBar.mjs +40 -38
- package/components/MazDialog.d.ts +20 -31
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.d.ts +3 -3
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.d.ts +7 -4
- package/components/MazDrawer.mjs +2 -194
- package/components/MazDropdown.mjs +1 -1
- package/components/MazDropzone.mjs +1 -1
- package/components/MazExpandAnimation.mjs +8 -8
- package/components/MazFullscreenLoader.mjs +2 -40
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +9 -8
- package/components/MazInput.d.ts +2 -0
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.mjs +2 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazLink.d.ts +2 -2
- package/components/MazLink.mjs +6 -6
- package/components/MazLoadingBar.mjs +17 -17
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
- package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +12 -23
- package/components/MazPhoneNumberInput/types.d.ts +4 -2
- package/{types/components/MazPhoneNumberInput/use-libphonenumber.d.ts → components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
- package/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.mjs +1 -1
- package/components/MazRadio.mjs +18 -19
- package/components/MazRadioButtons.mjs +2 -2
- package/components/MazReadingProgressBar.mjs +15 -15
- package/components/MazSelect.d.ts +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +31 -31
- package/components/MazSpinner.mjs +7 -7
- package/components/MazStepper.d.ts +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +19 -20
- package/components/MazTable.mjs +1 -1
- package/components/MazTableCell.mjs +12 -12
- package/components/MazTableRow.mjs +6 -6
- package/components/MazTableTitle.mjs +11 -11
- package/components/MazTabs.d.ts +3 -3
- package/components/MazTabs.mjs +7 -7
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTabsContent.mjs +4 -4
- package/components/MazTabsContentItem.mjs +10 -10
- package/components/MazTextarea.d.ts +26 -48
- package/components/MazTextarea.mjs +4 -5
- package/components/MazTransitionExpand.mjs +10 -10
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAnimatedCounter.css +1 -1
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazBackdrop.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/MazChecklist.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/MazDrawer.css +1 -1
- package/components/assets/MazExpandAnimation.css +1 -1
- package/components/assets/MazFullscreenLoader.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/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/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-CZzOIbzh.mjs → MazAvatar-CuOWgdVG.mjs} +18 -18
- package/components/chunks/{MazBadge-CupQjB8D.mjs → MazBadge-tPgFsG6Y.mjs} +6 -6
- package/components/chunks/MazBottomSheet-CMqzf-dT.mjs +224 -0
- package/components/chunks/MazBtn-B16x1gSu.mjs +103 -0
- package/components/chunks/MazBtn-BLSmc1v4.mjs +103 -0
- package/components/chunks/MazBtn-BcrrOaO_.mjs +103 -0
- package/components/chunks/MazBtn-Bje1xDu3.mjs +103 -0
- package/components/chunks/MazBtn-C5sb0470.mjs +103 -0
- package/components/chunks/MazBtn-CPwCJ1l-.mjs +103 -0
- package/components/chunks/{MazBtn-BVWOyFm-.mjs → MazBtn-Cf-LPT5p.mjs} +4 -4
- package/components/chunks/MazBtn-DCyFSkZo.mjs +103 -0
- package/components/chunks/{MazBtn-DhSKmF01.mjs → MazBtn-DETtZdlj.mjs} +3 -3
- package/components/chunks/{MazBtn-BSgCMRt0.mjs → MazBtn-DnJzOPh9.mjs} +4 -4
- package/components/chunks/{MazBtn-CM-xSnA5.mjs → MazBtn-DsGaq_eB.mjs} +3 -3
- package/components/chunks/{MazBtn-Br3xKJMD.mjs → MazBtn-S7EnZYtZ.mjs} +4 -4
- package/components/chunks/MazBtn-iYAY4cer.mjs +103 -0
- package/components/chunks/MazBtn-v4i4k53h.mjs +103 -0
- package/components/chunks/{MazCard-XBaeDZkg.mjs → MazCard-l54W3CUU.mjs} +3 -3
- package/components/chunks/{MazCarousel-COTaKhKF.mjs → MazCarousel-C16E1i1T.mjs} +3 -3
- package/components/chunks/{MazCheckbox-DxfneUvu.mjs → MazCheckbox-C1nh-xQt.mjs} +7 -7
- package/components/chunks/{MazCheckbox-B-Sw22La.mjs → MazCheckbox-CEsAHbdi.mjs} +7 -7
- package/components/chunks/{MazCheckbox-DjY15PA3.mjs → MazCheckbox-D-7-TdgO.mjs} +4 -4
- package/components/chunks/{MazChecklist-DaozZlNb.mjs → MazChecklist-DSfD55m5.mjs} +125 -126
- package/components/chunks/MazDialog-BjQ3ivmv.mjs +297 -0
- package/components/chunks/MazDialogPromise-Bg3ZOsEI.mjs +551 -0
- package/components/chunks/MazDrawer-BqNLfW4e.mjs +226 -0
- package/components/chunks/{MazDropdown-CKuIGitT.mjs → MazDropdown-DNXKdC_3.mjs} +5 -5
- package/components/chunks/{MazDropzone-DKFkgqqD.mjs → MazDropzone-n0JE92da.mjs} +2 -2
- package/components/chunks/{MazExpandAnimation-Bdf0-L85.mjs → MazExpandAnimation-B04WMwpW.mjs} +8 -8
- package/components/chunks/MazFullscreenLoader-XF8wIEcL.mjs +48 -0
- package/components/chunks/{MazGallery-BooLoRWi.mjs → MazGallery-CzlKPQFX.mjs} +67 -67
- package/components/chunks/{MazGallery-DUOQamrE.mjs → MazGallery-DdZ3bFvX.mjs} +68 -68
- package/components/chunks/{MazIcon-_hN-Kivn.mjs → MazIcon-Cq1v4J3r.mjs} +9 -8
- package/components/chunks/{MazIcon-C-aPrqx2.mjs → MazIcon-DQXhsxp8.mjs} +11 -10
- package/components/chunks/{MazIcon-DFW4cVVf.mjs → MazIcon-DR6-win-.mjs} +12 -11
- package/components/chunks/MazIcon-Gv6n6i4M.mjs +4 -0
- package/components/chunks/{MazInput-HLPtw5QK.mjs → MazInput-BjnuoFvn.mjs} +36 -36
- package/components/chunks/{MazInput-BWAWlxDa.mjs → MazInput-DB4HtpCQ.mjs} +13 -13
- package/components/chunks/{MazInput-DIN1VAoX.mjs → MazInput-yBii2AFS.mjs} +27 -28
- package/components/chunks/{MazInputNumber-7Ku2ZcG-.mjs → MazInputNumber-DqnLi9-C.mjs} +81 -82
- package/components/chunks/{MazInputPrice-C5yErBFP.mjs → MazInputPrice-Ca8mL53M.mjs} +44 -45
- package/components/chunks/{MazInputTags-DvbQ2mK8.mjs → MazInputTags-Bto9dVQq.mjs} +78 -79
- package/components/chunks/{MazLazyImg-DQLwaKKz.mjs → MazLazyImg-D9mlGTCs.mjs} +4 -4
- package/components/chunks/{MazLazyImg-B-6PQWEi.mjs → MazLazyImg-DnJyLBjr.mjs} +3 -3
- package/components/chunks/{MazLink-mrqHeBS0.mjs → MazLink-DlUG7E5K.mjs} +3 -3
- package/components/chunks/{MazLoadingBar-CNm3Yt6D.mjs → MazLoadingBar-DBt1Ltm5.mjs} +8 -8
- package/components/chunks/{MazPagination-BSu0Ifkp.mjs → MazPagination-sxkvTajI.mjs} +49 -49
- package/components/chunks/MazPhoneNumberInput-C3j3JyDI.mjs +1813 -0
- package/components/chunks/{MazPicker-CzYUZcLy.mjs → MazPicker-BUXJof_-.mjs} +19 -20
- package/components/chunks/{MazPickerMonthSwitcher-Ds5agR3Z.mjs → MazPickerMonthSwitcher-DW2WfonJ.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-BP6CY9-c.mjs → MazPickerShortcuts-fw4-dWSv.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-PM8qZMzR.mjs → MazPickerYearSwitcher-aHvmQBF1.mjs} +1 -1
- package/components/chunks/{MazPullToRefresh-CFQX0soS.mjs → MazPullToRefresh-a1rT-zWr.mjs} +3 -3
- package/components/chunks/{MazSelect-DOexatNj.mjs → MazSelect-BwahUlbE.mjs} +322 -326
- package/components/chunks/MazSelect-CBaOs6va.mjs +550 -0
- package/components/chunks/MazSpinner-BVQYjLWp.mjs +34 -0
- package/components/chunks/{MazSpinner-yr9xVdAa.mjs → MazSpinner-BYlkcKf0.mjs} +6 -6
- package/components/chunks/MazSpinner-B_THFs0t.mjs +34 -0
- package/components/chunks/MazSpinner-Bb1BgWPD.mjs +34 -0
- package/components/chunks/MazSpinner-Bb4B4Nz8.mjs +34 -0
- package/components/chunks/{MazSpinner-9M_EGMpy.mjs → MazSpinner-Bpkl7q5u.mjs} +7 -7
- package/components/chunks/MazSpinner-BtDo7ZEC.mjs +34 -0
- package/components/chunks/MazSpinner-C-DOH7ou.mjs +34 -0
- package/components/chunks/MazSpinner-C1Rr3w9l.mjs +34 -0
- package/components/chunks/MazSpinner-C47dmUu7.mjs +34 -0
- package/components/chunks/MazSpinner-C7_Q1K-e.mjs +34 -0
- package/components/chunks/MazSpinner-CBHbVSef.mjs +34 -0
- package/components/chunks/MazSpinner-CCThMV5o.mjs +34 -0
- package/components/chunks/MazSpinner-CizL97Q2.mjs +34 -0
- package/components/chunks/{MazSpinner-BJpv1muf.mjs → MazSpinner-Cmy2WyWY.mjs} +7 -7
- package/components/chunks/MazSpinner-CodOqnm1.mjs +34 -0
- package/components/chunks/MazSpinner-Cq0S_tbE.mjs +34 -0
- package/components/chunks/{MazSpinner-Bsy1nA3c.mjs → MazSpinner-D6PdYOcD.mjs} +7 -7
- package/components/chunks/MazSpinner-DV9-beEc.mjs +34 -0
- package/components/chunks/MazSpinner-DoFpeVcl.mjs +34 -0
- package/components/chunks/MazSpinner-Dx-3_EFZ.mjs +34 -0
- package/components/chunks/MazSpinner-PVTrAf5V.mjs +34 -0
- package/components/chunks/MazSpinner-PXSS3XT3.mjs +34 -0
- package/components/chunks/MazSpinner-XZrAaGeE.mjs +34 -0
- package/components/chunks/{MazStepper-B3fuhbye.mjs → MazStepper-DtAqtJjn.mjs} +32 -32
- package/components/chunks/{MazTable-Ci8nhgOP.mjs → MazTable-Soe-MrTW.mjs} +79 -74
- package/components/chunks/{MazTableCell-BIganK6X.mjs → MazTableCell-DtoO9MOe.mjs} +6 -6
- package/components/chunks/MazTableRow-ChFMulaU.mjs +30 -0
- package/components/chunks/{MazTableTitle-OEgTPQB3.mjs → MazTableTitle-D8El-v5p.mjs} +6 -6
- package/components/chunks/{MazTabsBar-CT35SCIK.mjs → MazTabsBar-8wchBiYF.mjs} +21 -21
- package/components/chunks/{MazTransitionExpand-Bcwdl9g2.mjs → MazTransitionExpand-CRArAQZu.mjs} +10 -10
- package/components/chunks/examples.mobile.json-tW3aL0qI.mjs +4 -0
- package/components/chunks/useInstanceUniqId-BkOfxhk8.mjs +10 -0
- 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-D0bVfaLm.cjs +1 -0
- package/{components/chunks/MazBtn-BfIn7glE.mjs → modules/chunks/MazBtn-Z86MClP9.mjs} +4 -4
- package/modules/chunks/{MazIcon-D-Gna0vz.cjs → MazIcon-BwgJhGLT.cjs} +1 -1
- package/modules/chunks/{MazIcon-CeT6HK_q.mjs → MazIcon-XtyPgbu6.mjs} +12 -11
- package/{components/chunks/MazSpinner-BlbTztM3.mjs → modules/chunks/MazSpinner-BfUXTY7m.mjs} +7 -7
- package/modules/chunks/MazSpinner-C5Fi9q_G.cjs +1 -0
- package/modules/chunks/index-Bq5KVBKA.cjs +124 -0
- package/modules/chunks/{index-Kry9j5uD.mjs → index-YwIF5a3Q.mjs} +1187 -951
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +47 -46
- package/nuxt/index.json +1 -1
- package/package.json +4 -3
- package/tailwindcss/tailwind.css +0 -6
- package/tailwindcss/utils/colors.ts +9 -5
- package/tailwindcss/variables/utilities.ts +3 -0
- package/types/components/MazBackdrop.vue.d.ts +21 -13
- package/types/components/MazBottomSheet.vue.d.ts +11 -24
- package/types/components/MazCircularProgressBar.vue.d.ts +18 -0
- package/types/components/MazDialog.vue.d.ts +20 -31
- package/types/components/MazDialogPromise.vue.d.ts +3 -3
- package/types/components/MazDrawer.vue.d.ts +7 -4
- package/types/components/MazInput.vue.d.ts +2 -0
- package/types/components/MazLink.vue.d.ts +2 -2
- package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
- package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +12 -23
- package/types/components/MazPhoneNumberInput/types.d.ts +4 -2
- package/{components/MazPhoneNumberInput/use-libphonenumber.d.ts → types/components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
- package/types/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
- package/types/components/MazSelect.vue.d.ts +1 -1
- package/types/components/MazStepper.vue.d.ts +1 -1
- package/types/components/MazTabs.vue.d.ts +3 -3
- package/types/components/MazTextarea.vue.d.ts +26 -48
- package/types/modules/composables/useFormValidator/types.d.ts +2 -2
- package/types/modules/composables/useFormValidator/useFormField.d.ts +56 -16
- package/types/modules/composables/useFormValidator/utils.d.ts +6 -6
- package/types/modules/composables/useLanguageDisplayNames.d.ts +13 -12
- package/types/modules/directives/closable.d.ts +1 -1
- package/types/modules/directives/tooltip/index.d.ts +21 -0
- package/types/tailwindcss/tailwind.config.d.ts +2 -2
- package/types/tailwindcss/utils/colors.d.ts +1 -1
- package/types/tailwindcss/variables/utilities.d.ts +3 -0
- package/components/MazPhoneNumberInput.d.ts +0 -240
- package/components/chunks/MazBottomSheet-D9EPpEV8.mjs +0 -208
- package/components/chunks/MazBtn-CB6xVwox.mjs +0 -103
- package/components/chunks/MazBtn-CIAdgMGr.mjs +0 -111
- package/components/chunks/MazBtn-CQq-U8qQ.mjs +0 -103
- package/components/chunks/MazBtn-Chk7DWOF.mjs +0 -103
- package/components/chunks/MazBtn-Ck84sP9a.mjs +0 -103
- package/components/chunks/MazBtn-DI80W9rl.mjs +0 -103
- package/components/chunks/MazBtn-DzwuLea3.mjs +0 -103
- package/components/chunks/MazBtn-tOUtVpek.mjs +0 -103
- package/components/chunks/MazDialog-XiX9LEiz.mjs +0 -237
- package/components/chunks/MazDialogPromise-B9_e3Ma9.mjs +0 -488
- package/components/chunks/MazIcon-BX2Gbz8R.mjs +0 -4
- package/components/chunks/MazPhoneNumberInput-B5Up8CqL.mjs +0 -1806
- package/components/chunks/MazSelect-DaDRzcT_.mjs +0 -552
- package/components/chunks/MazSpinner-C30YfScc.mjs +0 -34
- package/components/chunks/MazSpinner-C5mnD76l.mjs +0 -34
- package/components/chunks/MazSpinner-CDx6lo7l.mjs +0 -34
- package/components/chunks/MazSpinner-C_GueolV.mjs +0 -34
- package/components/chunks/MazSpinner-Cc-KlPEG.mjs +0 -34
- package/components/chunks/MazSpinner-Cgg2dkzQ.mjs +0 -34
- package/components/chunks/MazSpinner-CkKIUYXO.mjs +0 -34
- package/components/chunks/MazSpinner-CxyUHAvm.mjs +0 -34
- package/components/chunks/MazSpinner-DROgQW2M.mjs +0 -34
- package/components/chunks/MazSpinner-DjM6ktPY.mjs +0 -34
- package/components/chunks/MazSpinner-DjUU4G1h.mjs +0 -34
- package/components/chunks/MazSpinner-Du5o8JC_.mjs +0 -38
- package/components/chunks/MazSpinner-Dzs2W0kq.mjs +0 -34
- package/components/chunks/MazSpinner-NCtEpFMm.mjs +0 -34
- package/components/chunks/MazSpinner-QfPXLpa_.mjs +0 -34
- package/components/chunks/MazSpinner-XB6tX3Ld.mjs +0 -34
- package/components/chunks/MazSpinner-ZPQe8ON_.mjs +0 -34
- package/components/chunks/MazSpinner-b90e3OQK.mjs +0 -34
- package/components/chunks/MazSpinner-f6pBzqbu.mjs +0 -34
- package/components/chunks/MazTableRow-CIO-x6Lb.mjs +0 -30
- package/components/chunks/examples.mobile.json-JpNGylGv.mjs +0 -4
- package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +0 -11
- package/modules/chunks/MazBtn-0CRjeBvn.mjs +0 -103
- package/modules/chunks/MazBtn-DRqCRJD-.cjs +0 -1
- package/modules/chunks/MazSpinner-DV--lwdI.mjs +0 -34
- package/modules/chunks/MazSpinner-DersvZQw.cjs +0 -1
- package/modules/chunks/index-DvromXrX.cjs +0 -124
- package/types/components/MazPhoneNumberInput.vue.d.ts +0 -240
|
@@ -0,0 +1,550 @@
|
|
|
1
|
+
import { computed as f, defineComponent as Ie, defineAsyncComponent as $, ref as g, onBeforeMount as Le, nextTick as W, withDirectives as we, openBlock as V, createElementBlock as A, normalizeClass as q, normalizeStyle as j, createVNode as N, mergeProps as Ce, unref as I, withModifiers as M, withCtx as ne, createElementVNode as O, Transition as Me, createBlock as se, createCommentVNode as Q, renderSlot as G, Fragment as ie, renderList as Ee, toDisplayString as ue } from "vue";
|
|
2
|
+
import { u as Te } from "./useInstanceUniqId-BkOfxhk8.mjs";
|
|
3
|
+
import re from "./MazInput-DB4HtpCQ.mjs";
|
|
4
|
+
import { _ as $e } from "./MazTable-Soe-MrTW.mjs";
|
|
5
|
+
import '../assets/MazSelect.css';const Ne = {
|
|
6
|
+
removeAccents: !0,
|
|
7
|
+
caseSensitive: !1,
|
|
8
|
+
replaceSpaces: !0,
|
|
9
|
+
removeSpecialCharacters: !1,
|
|
10
|
+
trim: !0,
|
|
11
|
+
normalizeSpaces: !0,
|
|
12
|
+
removeNumbers: !1,
|
|
13
|
+
customNormalizationForms: ["NFC", "NFKD"]
|
|
14
|
+
};
|
|
15
|
+
function x(u, r) {
|
|
16
|
+
const s = { ...Ne, ...r }, t = {
|
|
17
|
+
À: "A",
|
|
18
|
+
Á: "A",
|
|
19
|
+
Â: "A",
|
|
20
|
+
Ã: "A",
|
|
21
|
+
Ä: "A",
|
|
22
|
+
Å: "A",
|
|
23
|
+
à: "a",
|
|
24
|
+
á: "a",
|
|
25
|
+
â: "a",
|
|
26
|
+
ã: "a",
|
|
27
|
+
ä: "a",
|
|
28
|
+
å: "a",
|
|
29
|
+
È: "E",
|
|
30
|
+
É: "E",
|
|
31
|
+
Ê: "E",
|
|
32
|
+
Ë: "E",
|
|
33
|
+
è: "e",
|
|
34
|
+
é: "e",
|
|
35
|
+
ê: "e",
|
|
36
|
+
ë: "e",
|
|
37
|
+
Î: "I",
|
|
38
|
+
Ï: "I",
|
|
39
|
+
í: "I",
|
|
40
|
+
î: "i",
|
|
41
|
+
ï: "i",
|
|
42
|
+
Ô: "O",
|
|
43
|
+
Õ: "O",
|
|
44
|
+
Ö: "O",
|
|
45
|
+
Ø: "O",
|
|
46
|
+
ô: "o",
|
|
47
|
+
õ: "o",
|
|
48
|
+
ö: "o",
|
|
49
|
+
ø: "o",
|
|
50
|
+
Ù: "U",
|
|
51
|
+
Ú: "U",
|
|
52
|
+
Û: "U",
|
|
53
|
+
Ü: "U",
|
|
54
|
+
ù: "u",
|
|
55
|
+
ú: "u",
|
|
56
|
+
û: "u",
|
|
57
|
+
ü: "u",
|
|
58
|
+
Ç: "C",
|
|
59
|
+
ç: "c",
|
|
60
|
+
ÿ: "y",
|
|
61
|
+
Ñ: "N",
|
|
62
|
+
ñ: "n",
|
|
63
|
+
ó: "o"
|
|
64
|
+
};
|
|
65
|
+
let n = u.toString();
|
|
66
|
+
if (s.trim && (n = n.trim()), s.normalizeSpaces && (n = n.replaceAll(/\s+/g, " ")), s.replaceSpaces && (n = n.replaceAll(" ", "-")), s.removeNumbers && (n = n.replaceAll(/\d/g, "")), s.removeAccents && (n = n.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (i) => t[i] || i), n = n.replaceAll(/[\u0300-\u036F]/g, "")), s.caseSensitive === !1 && (n = n.toLowerCase()), s.removeSpecialCharacters && (n = n.replaceAll(/[^\dA-Z-]/gi, "")), s.trim && (n = n.trim()), s.customNormalizationForms)
|
|
67
|
+
for (const i of s.customNormalizationForms)
|
|
68
|
+
n = n.normalize(i);
|
|
69
|
+
return n;
|
|
70
|
+
}
|
|
71
|
+
function Oe(u, r) {
|
|
72
|
+
const s = u.length, t = r.length, n = [];
|
|
73
|
+
for (let i = 0; i <= s; i++)
|
|
74
|
+
n[i] = [i];
|
|
75
|
+
for (let i = 0; i <= t; i++)
|
|
76
|
+
n[0][i] = i;
|
|
77
|
+
for (let i = 1; i <= s; i++)
|
|
78
|
+
for (let m = 1; m <= t; m++) {
|
|
79
|
+
const z = u[i - 1] === r[m - 1] ? 0 : 1;
|
|
80
|
+
n[i][m] = Math.min(
|
|
81
|
+
n[i - 1][m] + 1,
|
|
82
|
+
n[i][m - 1] + 1,
|
|
83
|
+
n[i - 1][m - 1] + z
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
return n[s][t];
|
|
87
|
+
}
|
|
88
|
+
function ce(u, r) {
|
|
89
|
+
const s = Oe(u, r), t = Math.max(u.length, r.length);
|
|
90
|
+
return 1 - s / t;
|
|
91
|
+
}
|
|
92
|
+
function xe(u, r, s = 0.75) {
|
|
93
|
+
return ce(u, r) >= s;
|
|
94
|
+
}
|
|
95
|
+
function Z(u, r, s = 0.75) {
|
|
96
|
+
const t = f(
|
|
97
|
+
() => x(typeof u == "string" ? u : u.value)
|
|
98
|
+
), n = f(
|
|
99
|
+
() => x(typeof r == "string" ? r : r.value)
|
|
100
|
+
), i = f(() => typeof s == "number" ? s : s.value), m = f(() => ce(t.value, n.value));
|
|
101
|
+
return {
|
|
102
|
+
isMatching: f(
|
|
103
|
+
() => xe(t.value, n.value, i.value)
|
|
104
|
+
),
|
|
105
|
+
score: m
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function de(u, r, s) {
|
|
109
|
+
var m, z;
|
|
110
|
+
u.stopPropagation();
|
|
111
|
+
const t = typeof s.value == "function" ? s.value : s.value.handler, n = typeof s.value == "object" ? s.value.exclude : void 0;
|
|
112
|
+
let i = !1;
|
|
113
|
+
if (n && n.length > 0) {
|
|
114
|
+
for (const E of n)
|
|
115
|
+
if (!i && u.target instanceof HTMLElement) {
|
|
116
|
+
const h = (m = document.querySelector(E)) == null ? void 0 : m.getAttribute("id");
|
|
117
|
+
i = (u.target.getAttribute("id") === h || ((z = document.querySelector(E)) == null ? void 0 : z.contains(u.target))) ?? !1;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
!r.contains(u.target) && !i && (t == null || t(u));
|
|
121
|
+
}
|
|
122
|
+
function pe() {
|
|
123
|
+
return document.ontouchstart === null ? "touchstart" : "click";
|
|
124
|
+
}
|
|
125
|
+
function Be(u, r) {
|
|
126
|
+
const s = pe();
|
|
127
|
+
document.removeEventListener(s, (t) => de(t, u, r));
|
|
128
|
+
}
|
|
129
|
+
function De(u, r) {
|
|
130
|
+
if (typeof r.value != "function" && typeof r.value == "object" && typeof r.value.handler != "function") {
|
|
131
|
+
console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const s = pe();
|
|
135
|
+
document.addEventListener(s, (t) => de(t, u, r));
|
|
136
|
+
}
|
|
137
|
+
const He = {
|
|
138
|
+
mounted: De,
|
|
139
|
+
unmounted: Be
|
|
140
|
+
};
|
|
141
|
+
let R = null;
|
|
142
|
+
function Pe(u, r) {
|
|
143
|
+
R && clearTimeout(R), R = setTimeout(u, r);
|
|
144
|
+
}
|
|
145
|
+
const Fe = ["aria-label"], Ue = { class: "m-select-list__no-results" }, We = {
|
|
146
|
+
key: 2,
|
|
147
|
+
class: "m-select-list__scroll-wrapper",
|
|
148
|
+
tabindex: "-1"
|
|
149
|
+
}, qe = { class: "m-select-list-optgroup" }, je = ["onClick"], Qe = /* @__PURE__ */ Ie({
|
|
150
|
+
inheritAttrs: !1,
|
|
151
|
+
__name: "MazSelect",
|
|
152
|
+
props: {
|
|
153
|
+
style: { default: void 0 },
|
|
154
|
+
class: { default: void 0 },
|
|
155
|
+
id: { default: void 0 },
|
|
156
|
+
modelValue: { default: void 0 },
|
|
157
|
+
options: { default: void 0 },
|
|
158
|
+
optionValueKey: { default: "value" },
|
|
159
|
+
optionLabelKey: { default: "label" },
|
|
160
|
+
optionInputValueKey: { default: "label" },
|
|
161
|
+
listPosition: { default: "bottom left" },
|
|
162
|
+
itemHeight: { default: void 0 },
|
|
163
|
+
maxListHeight: { default: 240 },
|
|
164
|
+
maxListWidth: { default: void 0 },
|
|
165
|
+
minListHeight: { default: void 0 },
|
|
166
|
+
minListWidth: { default: void 0 },
|
|
167
|
+
size: { default: "md" },
|
|
168
|
+
color: { default: "primary" },
|
|
169
|
+
search: { type: Boolean },
|
|
170
|
+
searchPlaceholder: { default: "Search in options" },
|
|
171
|
+
searchThreshold: { default: 0.75 },
|
|
172
|
+
open: { type: Boolean },
|
|
173
|
+
multiple: { type: Boolean, default: void 0 },
|
|
174
|
+
required: { type: Boolean },
|
|
175
|
+
disabled: { type: Boolean },
|
|
176
|
+
block: { type: Boolean },
|
|
177
|
+
excludeSelectors: { default: void 0 },
|
|
178
|
+
autocomplete: { default: "off" }
|
|
179
|
+
},
|
|
180
|
+
emits: ["close", "open", "blur", "focus", "change", "input", "update:model-value", "selected-option"],
|
|
181
|
+
setup(u, { expose: r, emit: s }) {
|
|
182
|
+
const t = u, n = s, i = $(() => import("./MazCheckbox-D-7-TdgO.mjs")), m = $(() => import("./magnifying-glass--nBiyXot.mjs")), z = $(() => import("./chevron-down-BkvtON3b.mjs")), E = $(() => import("./no-symbol-CIgKzsrB.mjs"));
|
|
183
|
+
r({
|
|
184
|
+
/** Method to open the option list */
|
|
185
|
+
openList: C,
|
|
186
|
+
/** Method to close the option list */
|
|
187
|
+
closeList: S
|
|
188
|
+
});
|
|
189
|
+
const h = g(!1), d = g(), B = f(
|
|
190
|
+
() => ["black", "transparent", "white"].includes(t.color)
|
|
191
|
+
), fe = f(
|
|
192
|
+
() => B.value ? "var(--maz-color-black)" : `var(--maz-color-${t.color}-800)`
|
|
193
|
+
), me = f(
|
|
194
|
+
() => B.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
|
|
195
|
+
), ve = f(
|
|
196
|
+
() => B.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
|
|
197
|
+
), b = f(() => h.value || t.open), ye = Te({
|
|
198
|
+
componentName: "MazSelect",
|
|
199
|
+
providedId: t.id
|
|
200
|
+
});
|
|
201
|
+
function J(e) {
|
|
202
|
+
return {
|
|
203
|
+
[t.optionValueKey]: e,
|
|
204
|
+
[t.optionLabelKey]: e,
|
|
205
|
+
[t.optionInputValueKey]: e
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
function X(e) {
|
|
209
|
+
return {
|
|
210
|
+
...e,
|
|
211
|
+
[t.optionValueKey]: e[t.optionValueKey],
|
|
212
|
+
[t.optionLabelKey]: e[t.optionLabelKey],
|
|
213
|
+
[t.optionInputValueKey]: e[t.optionInputValueKey]
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
const L = f(() => {
|
|
217
|
+
var l;
|
|
218
|
+
const e = [];
|
|
219
|
+
if (!((l = t.options) != null && l.length))
|
|
220
|
+
return [];
|
|
221
|
+
for (const o of t.options)
|
|
222
|
+
typeof o == "string" || typeof o == "number" || typeof o == "boolean" ? e.push(J(o)) : typeof o == "object" && "options" in o && Array.isArray(o.options) ? e.push(
|
|
223
|
+
{ label: o.label, isOptGroup: !0 },
|
|
224
|
+
...o.options.map(
|
|
225
|
+
(a) => typeof a == "string" || typeof a == "number" || typeof a == "boolean" ? J(a) : X(a)
|
|
226
|
+
)
|
|
227
|
+
) : e.push(X(o));
|
|
228
|
+
return e;
|
|
229
|
+
}), T = f(
|
|
230
|
+
() => {
|
|
231
|
+
var e;
|
|
232
|
+
return ((e = L.value) == null ? void 0 : e.filter((l) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(l[t.optionValueKey]) && !K(l[t.optionValueKey]) : !1 : t.modelValue === l[t.optionValueKey] && !K(l[t.optionValueKey]))) ?? [];
|
|
233
|
+
}
|
|
234
|
+
);
|
|
235
|
+
Le(() => {
|
|
236
|
+
var e;
|
|
237
|
+
(e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), U();
|
|
238
|
+
});
|
|
239
|
+
const Y = g(), D = g(), _ = g(), ee = g();
|
|
240
|
+
function K(e) {
|
|
241
|
+
return e == null;
|
|
242
|
+
}
|
|
243
|
+
function H(e) {
|
|
244
|
+
var o;
|
|
245
|
+
return (((o = T.value) == null ? void 0 : o.some(
|
|
246
|
+
(a) => a[t.optionValueKey] === e[t.optionValueKey]
|
|
247
|
+
)) ?? !1) && !K(e[t.optionValueKey]);
|
|
248
|
+
}
|
|
249
|
+
const he = f(() => {
|
|
250
|
+
var l;
|
|
251
|
+
if (t.multiple && t.modelValue && Array.isArray(t.modelValue))
|
|
252
|
+
return t.modelValue.map(
|
|
253
|
+
(o) => {
|
|
254
|
+
var a, c;
|
|
255
|
+
return (c = (a = L.value) == null ? void 0 : a.find((p) => p[t.optionValueKey] === o)) == null ? void 0 : c[t.optionInputValueKey];
|
|
256
|
+
}
|
|
257
|
+
).join(", ");
|
|
258
|
+
const e = (l = L.value) == null ? void 0 : l.find(
|
|
259
|
+
(o) => o[t.optionValueKey] === t.modelValue
|
|
260
|
+
);
|
|
261
|
+
return K(t.modelValue) || e == null ? void 0 : e[t.optionInputValueKey];
|
|
262
|
+
}), be = f(
|
|
263
|
+
() => t.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
|
|
264
|
+
), w = g(""), k = g("");
|
|
265
|
+
function P(e, l) {
|
|
266
|
+
return l && e && x(e).includes(x(l));
|
|
267
|
+
}
|
|
268
|
+
function te(e) {
|
|
269
|
+
var l;
|
|
270
|
+
return e ? (l = L.value) == null ? void 0 : l.filter((o) => {
|
|
271
|
+
const a = o[t.optionLabelKey], c = o[t.optionValueKey], p = o[t.optionInputValueKey], v = t.searchThreshold;
|
|
272
|
+
return P(a, e) || P(p, e) || P(c, e) || typeof a == "string" && Z(a, e, v).isMatching.value || typeof p == "string" && Z(p, e, v).isMatching.value || typeof c == "string" && Z(c, e, v).isMatching.value;
|
|
273
|
+
}) : L.value;
|
|
274
|
+
}
|
|
275
|
+
const y = f(() => te(w.value));
|
|
276
|
+
async function S(e) {
|
|
277
|
+
var o, a;
|
|
278
|
+
if (!b.value)
|
|
279
|
+
return;
|
|
280
|
+
if (e && ("relatedTarget" in e && ((o = Y.value) != null && o.contains(e.relatedTarget)) || e.type === "keydown"))
|
|
281
|
+
return e.preventDefault();
|
|
282
|
+
const l = e && "relatedTarget" in e && e.relatedTarget instanceof HTMLElement && e.relatedTarget.getAttribute("id");
|
|
283
|
+
if ((a = t.excludeSelectors) != null && a.includes(`#${l}`))
|
|
284
|
+
return e == null ? void 0 : e.preventDefault();
|
|
285
|
+
await W(), h.value = !1, d.value = 0, n("close", e);
|
|
286
|
+
}
|
|
287
|
+
async function C(e) {
|
|
288
|
+
t.disabled || b.value || (e == null || e.preventDefault(), h.value = !0, await F(), n("focus", e), n("open", h.value));
|
|
289
|
+
}
|
|
290
|
+
function oe() {
|
|
291
|
+
var e, l;
|
|
292
|
+
(l = ((e = D.value) == null ? void 0 : e.$el).querySelector("input")) == null || l.focus();
|
|
293
|
+
}
|
|
294
|
+
function ge() {
|
|
295
|
+
var e, l;
|
|
296
|
+
(l = ((e = D.value) == null ? void 0 : e.$el).querySelector("input")) == null || l.dispatchEvent(new Event("input"));
|
|
297
|
+
}
|
|
298
|
+
function Ve(e) {
|
|
299
|
+
h.value ? S(e) : oe();
|
|
300
|
+
}
|
|
301
|
+
function ze(e) {
|
|
302
|
+
var l, o;
|
|
303
|
+
w.value = e, (o = ((l = _.value) == null ? void 0 : l.$el).querySelector("input")) == null || o.focus();
|
|
304
|
+
}
|
|
305
|
+
function Ke(e) {
|
|
306
|
+
var o;
|
|
307
|
+
e === "Backspace" && k.value.length > 0 ? k.value = k.value.slice(0, -1) : k.value += e;
|
|
308
|
+
const l = te(k.value);
|
|
309
|
+
l != null && l.length && (d.value = (o = y.value) == null ? void 0 : o.findIndex(
|
|
310
|
+
(a) => a[t.optionValueKey] === l[0][t.optionValueKey]
|
|
311
|
+
), typeof d.value == "number" && d.value >= 0 && F(d.value)), Pe(() => {
|
|
312
|
+
k.value = "";
|
|
313
|
+
}, 1e3);
|
|
314
|
+
}
|
|
315
|
+
function ke(e) {
|
|
316
|
+
const l = e.key;
|
|
317
|
+
/^[\dA-Za-z\u0400-\u04FF]$/.test(l) ? (e.preventDefault(), C(e), t.search ? ze(l) : Ke(l)) : le(e);
|
|
318
|
+
}
|
|
319
|
+
function le(e, l = !0) {
|
|
320
|
+
const o = e.code, a = ["ArrowUp", "ArrowDown"].includes(o), c = (l ? ["Enter", "Space"] : ["Enter"]).includes(o), p = o === "Escape" && b.value;
|
|
321
|
+
a ? Se(e, d.value) : c ? Ae(e, d.value) : p && S(e);
|
|
322
|
+
}
|
|
323
|
+
function Se(e, l) {
|
|
324
|
+
var c;
|
|
325
|
+
e.preventDefault();
|
|
326
|
+
const o = e.code;
|
|
327
|
+
b.value || C(e);
|
|
328
|
+
const a = (c = y.value) == null ? void 0 : c.length;
|
|
329
|
+
a && (typeof l == "number" ? l === a - 1 && o === "ArrowDown" ? d.value = 0 : l === 0 && o === "ArrowUp" ? d.value = a - 1 : d.value = o === "ArrowDown" ? l + 1 : l - 1 : d.value = o === "ArrowDown" ? 0 : a - 1, F(d.value));
|
|
330
|
+
}
|
|
331
|
+
function Ae(e, l) {
|
|
332
|
+
var a, c, p;
|
|
333
|
+
if (!b.value)
|
|
334
|
+
return;
|
|
335
|
+
e.preventDefault();
|
|
336
|
+
const o = l ? ((a = y.value) == null ? void 0 : a[l]) ?? ((c = y.value) == null ? void 0 : c[0]) : (p = y.value) == null ? void 0 : p[0];
|
|
337
|
+
K(o) || ae(o);
|
|
338
|
+
}
|
|
339
|
+
async function F(e) {
|
|
340
|
+
var o, a;
|
|
341
|
+
await W(), typeof e != "number" && U();
|
|
342
|
+
const l = e ?? d.value;
|
|
343
|
+
if (typeof l == "number" && l >= 0) {
|
|
344
|
+
const c = (o = ee.value) == null ? void 0 : o.querySelectorAll(".m-select-list-item");
|
|
345
|
+
(a = c == null ? void 0 : c[l]) == null || a.scrollIntoView({
|
|
346
|
+
behavior: "auto",
|
|
347
|
+
block: "nearest",
|
|
348
|
+
inline: "start"
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
function U(e) {
|
|
353
|
+
var o;
|
|
354
|
+
const l = (o = y.value) == null ? void 0 : o.findIndex((a) => {
|
|
355
|
+
var c, p;
|
|
356
|
+
return t.multiple && Array.isArray(t.modelValue) ? e ? e[t.optionValueKey] === a[t.optionValueKey] : [...t.modelValue].reverse()[0] === a[t.optionValueKey] : ((p = (c = T.value) == null ? void 0 : c[0]) == null ? void 0 : p[t.optionValueKey]) === a[t.optionValueKey];
|
|
357
|
+
});
|
|
358
|
+
d.value = l && l >= 0 ? l : 0;
|
|
359
|
+
}
|
|
360
|
+
function ae(e, l = !0) {
|
|
361
|
+
var p;
|
|
362
|
+
l && !t.multiple && W(() => S()), w.value = "";
|
|
363
|
+
const o = (p = T.value) == null ? void 0 : p.some(
|
|
364
|
+
(v) => v[t.optionValueKey] === e[t.optionValueKey]
|
|
365
|
+
);
|
|
366
|
+
let a = T.value;
|
|
367
|
+
o && t.multiple ? a = a == null ? void 0 : a.filter(
|
|
368
|
+
(v) => v[t.optionValueKey] !== e[t.optionValueKey]
|
|
369
|
+
) : t.multiple ? a.push(e) : a = [e];
|
|
370
|
+
const c = a.map((v) => v[t.optionValueKey]);
|
|
371
|
+
n("update:model-value", t.multiple ? c : c[0]), n("selected-option", e), ge(), U(e), oe();
|
|
372
|
+
}
|
|
373
|
+
return (e, l) => we((V(), A(
|
|
374
|
+
"div",
|
|
375
|
+
{
|
|
376
|
+
ref_key: "mazSelectElement",
|
|
377
|
+
ref: Y,
|
|
378
|
+
class: q(["m-select m-reset-css", [
|
|
379
|
+
{ "--is-open": b.value, "--disabled": e.disabled, "--block": e.block },
|
|
380
|
+
t.class,
|
|
381
|
+
`--${e.size}`
|
|
382
|
+
]]),
|
|
383
|
+
style: j([e.style, { "--keyboard-selected-bg-color": ve.value, "--selected-bg-color": me.value, "--selected-text-color": fe.value }])
|
|
384
|
+
},
|
|
385
|
+
[
|
|
386
|
+
N(re, Ce({
|
|
387
|
+
id: I(ye),
|
|
388
|
+
ref_key: "mazInputComponent",
|
|
389
|
+
ref: D,
|
|
390
|
+
class: "m-select-input"
|
|
391
|
+
}, e.$attrs, {
|
|
392
|
+
required: e.required,
|
|
393
|
+
"border-active": h.value,
|
|
394
|
+
color: e.color,
|
|
395
|
+
"model-value": he.value,
|
|
396
|
+
size: e.size,
|
|
397
|
+
block: "",
|
|
398
|
+
autocomplete: e.autocomplete,
|
|
399
|
+
disabled: e.disabled,
|
|
400
|
+
onFocus: M(C, ["prevent", "stop"]),
|
|
401
|
+
onBlur: M(S, ["prevent", "stop"]),
|
|
402
|
+
onClick: M(C, ["prevent", "stop"]),
|
|
403
|
+
onChange: l[0] || (l[0] = (o) => n("change", o)),
|
|
404
|
+
onInput: l[1] || (l[1] = (o) => n("input", o)),
|
|
405
|
+
onKeydown: ke
|
|
406
|
+
}), {
|
|
407
|
+
"right-icon": ne(() => [
|
|
408
|
+
O("button", {
|
|
409
|
+
tabindex: "-1",
|
|
410
|
+
type: "button",
|
|
411
|
+
class: "m-select-input__toggle-button maz-custom",
|
|
412
|
+
"aria-label": `${b.value ? "collapse" : "expand"} list of options`,
|
|
413
|
+
onClick: M(Ve, ["stop"])
|
|
414
|
+
}, [
|
|
415
|
+
N(I(z), { class: "m-select-chevron maz-text-xl" })
|
|
416
|
+
], 8, Fe)
|
|
417
|
+
]),
|
|
418
|
+
_: 1
|
|
419
|
+
/* STABLE */
|
|
420
|
+
}, 16, ["id", "required", "border-active", "color", "model-value", "size", "autocomplete", "disabled"]),
|
|
421
|
+
N(Me, { name: be.value }, {
|
|
422
|
+
default: ne(() => [
|
|
423
|
+
b.value ? (V(), A(
|
|
424
|
+
"div",
|
|
425
|
+
{
|
|
426
|
+
key: 0,
|
|
427
|
+
ref_key: "optionsListElement",
|
|
428
|
+
ref: ee,
|
|
429
|
+
class: q(["m-select-list", {
|
|
430
|
+
"--top": e.listPosition.includes("top"),
|
|
431
|
+
"--left": e.listPosition.includes("left"),
|
|
432
|
+
"--right": e.listPosition.includes("right"),
|
|
433
|
+
"--bottom": e.listPosition.includes("bottom")
|
|
434
|
+
}]),
|
|
435
|
+
style: j({
|
|
436
|
+
maxHeight: `${e.maxListHeight}px`,
|
|
437
|
+
maxWidth: `${e.maxListWidth}px`,
|
|
438
|
+
minHeight: `${e.minListHeight}px`,
|
|
439
|
+
minWidth: `${e.minListWidth}px`
|
|
440
|
+
})
|
|
441
|
+
},
|
|
442
|
+
[
|
|
443
|
+
e.search ? (V(), se(re, {
|
|
444
|
+
key: 0,
|
|
445
|
+
ref_key: "searchInputComponent",
|
|
446
|
+
ref: _,
|
|
447
|
+
modelValue: w.value,
|
|
448
|
+
"onUpdate:modelValue": [
|
|
449
|
+
l[2] || (l[2] = (o) => w.value = o),
|
|
450
|
+
l[4] || (l[4] = (o) => d.value = 0)
|
|
451
|
+
],
|
|
452
|
+
size: "sm",
|
|
453
|
+
color: e.color,
|
|
454
|
+
placeholder: e.searchPlaceholder,
|
|
455
|
+
name: "search",
|
|
456
|
+
inputmode: "search",
|
|
457
|
+
block: "",
|
|
458
|
+
autocomplete: "off",
|
|
459
|
+
tabindex: "-1",
|
|
460
|
+
class: "m-select-list__search-input maz-flex-none",
|
|
461
|
+
"left-icon": I(m),
|
|
462
|
+
onKeydown: l[3] || (l[3] = (o) => le(o, !1))
|
|
463
|
+
}, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : Q("v-if", !0),
|
|
464
|
+
!y.value || y.value.length <= 0 ? G(e.$slots, "no-results", { key: 1 }, () => [
|
|
465
|
+
O("span", Ue, [
|
|
466
|
+
N(I(E), { class: "maz-h-6 maz-w-6 maz-text-normal" })
|
|
467
|
+
])
|
|
468
|
+
], !0) : (V(), A("div", We, [
|
|
469
|
+
(V(!0), A(
|
|
470
|
+
ie,
|
|
471
|
+
null,
|
|
472
|
+
Ee(y.value, (o, a) => (V(), A(
|
|
473
|
+
ie,
|
|
474
|
+
{ key: a },
|
|
475
|
+
[
|
|
476
|
+
o.label && o.isOptGroup ? G(e.$slots, "optgroup", {
|
|
477
|
+
key: 0,
|
|
478
|
+
label: o.label
|
|
479
|
+
}, () => [
|
|
480
|
+
O(
|
|
481
|
+
"span",
|
|
482
|
+
qe,
|
|
483
|
+
ue(o.label),
|
|
484
|
+
1
|
|
485
|
+
/* TEXT */
|
|
486
|
+
)
|
|
487
|
+
], !0) : (V(), A("button", {
|
|
488
|
+
key: 1,
|
|
489
|
+
tabindex: "-1",
|
|
490
|
+
type: "button",
|
|
491
|
+
class: q(["m-select-list-item maz-custom maz-flex-none", [
|
|
492
|
+
{
|
|
493
|
+
"--is-keyboard-selected": d.value === a,
|
|
494
|
+
"--is-selected": H(o),
|
|
495
|
+
"--is-none-value": K(o[e.optionValueKey])
|
|
496
|
+
}
|
|
497
|
+
]]),
|
|
498
|
+
style: j(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
|
|
499
|
+
onClick: M((c) => ae(o), ["prevent", "stop"])
|
|
500
|
+
}, [
|
|
501
|
+
e.multiple ? (V(), se(I(i), {
|
|
502
|
+
key: 0,
|
|
503
|
+
tabindex: "-1",
|
|
504
|
+
"model-value": H(o),
|
|
505
|
+
size: "sm",
|
|
506
|
+
color: e.color
|
|
507
|
+
}, null, 8, ["model-value", "color"])) : Q("v-if", !0),
|
|
508
|
+
G(e.$slots, "default", {
|
|
509
|
+
option: o,
|
|
510
|
+
isSelected: H(o)
|
|
511
|
+
}, () => [
|
|
512
|
+
O(
|
|
513
|
+
"span",
|
|
514
|
+
null,
|
|
515
|
+
ue(o[e.optionLabelKey]),
|
|
516
|
+
1
|
|
517
|
+
/* TEXT */
|
|
518
|
+
)
|
|
519
|
+
], !0)
|
|
520
|
+
], 14, je))
|
|
521
|
+
],
|
|
522
|
+
64
|
|
523
|
+
/* STABLE_FRAGMENT */
|
|
524
|
+
))),
|
|
525
|
+
128
|
|
526
|
+
/* KEYED_FRAGMENT */
|
|
527
|
+
))
|
|
528
|
+
]))
|
|
529
|
+
],
|
|
530
|
+
6
|
|
531
|
+
/* CLASS, STYLE */
|
|
532
|
+
)) : Q("v-if", !0)
|
|
533
|
+
]),
|
|
534
|
+
_: 3
|
|
535
|
+
/* FORWARDED */
|
|
536
|
+
}, 8, ["name"])
|
|
537
|
+
],
|
|
538
|
+
6
|
|
539
|
+
/* CLASS, STYLE */
|
|
540
|
+
)), [
|
|
541
|
+
[I(He), {
|
|
542
|
+
exclude: e.excludeSelectors,
|
|
543
|
+
handler: S
|
|
544
|
+
}]
|
|
545
|
+
]);
|
|
546
|
+
}
|
|
547
|
+
}), Xe = /* @__PURE__ */ $e(Qe, [["__scopeId", "data-v-0050f306"]]);
|
|
548
|
+
export {
|
|
549
|
+
Xe as default
|
|
550
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as n, openBlock as o, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
|
|
2
|
+
import { _ as a } from "./MazInputTags-Bto9dVQq.mjs";
|
|
3
|
+
import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ n({
|
|
4
|
+
__name: "MazSpinner",
|
|
5
|
+
props: {
|
|
6
|
+
size: { default: "2em" },
|
|
7
|
+
color: { default: "theme" }
|
|
8
|
+
},
|
|
9
|
+
setup(m) {
|
|
10
|
+
return (e, s) => (o(), t("svg", {
|
|
11
|
+
width: e.size,
|
|
12
|
+
height: e.size,
|
|
13
|
+
version: "1.1",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
x: "0px",
|
|
16
|
+
y: "0px",
|
|
17
|
+
viewBox: "0 0 50 50",
|
|
18
|
+
"xml:space": "preserve",
|
|
19
|
+
class: r(["m-spinner m-reset-css", `m-spinner--${e.color}`]),
|
|
20
|
+
style: { "enable-background": "new 0 0 50 50" }
|
|
21
|
+
}, s[0] || (s[0] = [
|
|
22
|
+
p(
|
|
23
|
+
"path",
|
|
24
|
+
{ 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" },
|
|
25
|
+
null,
|
|
26
|
+
-1
|
|
27
|
+
/* HOISTED */
|
|
28
|
+
)
|
|
29
|
+
]), 10, i));
|
|
30
|
+
}
|
|
31
|
+
}), h = /* @__PURE__ */ a(l, [["__scopeId", "data-v-52831d3b"]]);
|
|
32
|
+
export {
|
|
33
|
+
h as default
|
|
34
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as n, openBlock as o, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
|
|
2
2
|
import { _ as a } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
-
import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */
|
|
3
|
+
import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ n({
|
|
4
4
|
__name: "MazSpinner",
|
|
5
5
|
props: {
|
|
6
6
|
size: { default: "2em" },
|
|
7
7
|
color: { default: "theme" }
|
|
8
8
|
},
|
|
9
9
|
setup(m) {
|
|
10
|
-
return (e,
|
|
10
|
+
return (e, s) => (o(), t("svg", {
|
|
11
11
|
width: e.size,
|
|
12
12
|
height: e.size,
|
|
13
13
|
version: "1.1",
|
|
@@ -16,9 +16,9 @@ import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE_
|
|
|
16
16
|
y: "0px",
|
|
17
17
|
viewBox: "0 0 50 50",
|
|
18
18
|
"xml:space": "preserve",
|
|
19
|
-
class: r(["m-spinner", `m-spinner--${e.color}`]),
|
|
19
|
+
class: r(["m-spinner m-reset-css", `m-spinner--${e.color}`]),
|
|
20
20
|
style: { "enable-background": "new 0 0 50 50" }
|
|
21
|
-
},
|
|
21
|
+
}, s[0] || (s[0] = [
|
|
22
22
|
p(
|
|
23
23
|
"path",
|
|
24
24
|
{ 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" },
|
|
@@ -28,7 +28,7 @@ import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE_
|
|
|
28
28
|
)
|
|
29
29
|
]), 10, i));
|
|
30
30
|
}
|
|
31
|
-
}), h = /* @__PURE__ */ a(l, [["__scopeId", "data-v-
|
|
31
|
+
}), h = /* @__PURE__ */ a(l, [["__scopeId", "data-v-52831d3b"]]);
|
|
32
32
|
export {
|
|
33
33
|
h as default
|
|
34
34
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as n, openBlock as o, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
|
|
2
|
+
import { _ as a } from "./MazDropzone-n0JE92da.mjs";
|
|
3
|
+
import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ n({
|
|
4
|
+
__name: "MazSpinner",
|
|
5
|
+
props: {
|
|
6
|
+
size: { default: "2em" },
|
|
7
|
+
color: { default: "theme" }
|
|
8
|
+
},
|
|
9
|
+
setup(m) {
|
|
10
|
+
return (e, s) => (o(), t("svg", {
|
|
11
|
+
width: e.size,
|
|
12
|
+
height: e.size,
|
|
13
|
+
version: "1.1",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
x: "0px",
|
|
16
|
+
y: "0px",
|
|
17
|
+
viewBox: "0 0 50 50",
|
|
18
|
+
"xml:space": "preserve",
|
|
19
|
+
class: r(["m-spinner m-reset-css", `m-spinner--${e.color}`]),
|
|
20
|
+
style: { "enable-background": "new 0 0 50 50" }
|
|
21
|
+
}, s[0] || (s[0] = [
|
|
22
|
+
p(
|
|
23
|
+
"path",
|
|
24
|
+
{ 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" },
|
|
25
|
+
null,
|
|
26
|
+
-1
|
|
27
|
+
/* HOISTED */
|
|
28
|
+
)
|
|
29
|
+
]), 10, i));
|
|
30
|
+
}
|
|
31
|
+
}), h = /* @__PURE__ */ a(l, [["__scopeId", "data-v-52831d3b"]]);
|
|
32
|
+
export {
|
|
33
|
+
h as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as n, openBlock as o, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
|
|
2
|
+
import { _ as a } from "./MazPagination-sxkvTajI.mjs";
|
|
3
|
+
import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ n({
|
|
4
|
+
__name: "MazSpinner",
|
|
5
|
+
props: {
|
|
6
|
+
size: { default: "2em" },
|
|
7
|
+
color: { default: "theme" }
|
|
8
|
+
},
|
|
9
|
+
setup(m) {
|
|
10
|
+
return (e, s) => (o(), t("svg", {
|
|
11
|
+
width: e.size,
|
|
12
|
+
height: e.size,
|
|
13
|
+
version: "1.1",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
x: "0px",
|
|
16
|
+
y: "0px",
|
|
17
|
+
viewBox: "0 0 50 50",
|
|
18
|
+
"xml:space": "preserve",
|
|
19
|
+
class: r(["m-spinner m-reset-css", `m-spinner--${e.color}`]),
|
|
20
|
+
style: { "enable-background": "new 0 0 50 50" }
|
|
21
|
+
}, s[0] || (s[0] = [
|
|
22
|
+
p(
|
|
23
|
+
"path",
|
|
24
|
+
{ 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" },
|
|
25
|
+
null,
|
|
26
|
+
-1
|
|
27
|
+
/* HOISTED */
|
|
28
|
+
)
|
|
29
|
+
]), 10, i));
|
|
30
|
+
}
|
|
31
|
+
}), h = /* @__PURE__ */ a(l, [["__scopeId", "data-v-52831d3b"]]);
|
|
32
|
+
export {
|
|
33
|
+
h as default
|
|
34
|
+
};
|