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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ComponentPublicInstance, HTMLAttributes } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { nextTick } from 'vue';
|
|
3
|
+
import { type MazBackdropProps } from './MazBackdrop.vue';
|
|
3
4
|
export interface InternalProps {
|
|
4
5
|
/** @model Modal's model value */
|
|
5
6
|
modelValue?: boolean;
|
|
@@ -7,31 +8,32 @@ export interface InternalProps {
|
|
|
7
8
|
title?: string;
|
|
8
9
|
/** Remove the close button in header */
|
|
9
10
|
noClose?: boolean;
|
|
10
|
-
/** Modal's width */
|
|
11
|
-
width?: string;
|
|
12
11
|
/** Modal's max-width */
|
|
13
12
|
maxWidth?: string;
|
|
14
|
-
/** Modal's
|
|
15
|
-
|
|
13
|
+
/** Modal's min-width */
|
|
14
|
+
minWidth?: string;
|
|
16
15
|
/** Modal's content becomes scrollable - warning: a overflow is applied */
|
|
17
16
|
scrollable?: boolean;
|
|
18
17
|
/** Persistent dialog (not closable by clicking outside and remove close button) */
|
|
19
18
|
persistent?: boolean;
|
|
20
19
|
}
|
|
21
|
-
export type
|
|
22
|
-
type __VLS_Props =
|
|
20
|
+
export type MazDialogProps = InternalProps & MazBackdropProps;
|
|
21
|
+
type __VLS_Props = InternalProps & MazBackdropProps;
|
|
23
22
|
declare function __VLS_template(): {
|
|
24
23
|
attrs: Partial<{}>;
|
|
25
24
|
slots: {
|
|
26
25
|
header?(_: {
|
|
27
26
|
close: () => void;
|
|
27
|
+
onBackdropClicked: () => void;
|
|
28
28
|
}): any;
|
|
29
29
|
title?(_: {}): any;
|
|
30
30
|
default?(_: {
|
|
31
31
|
close: () => void;
|
|
32
|
+
onBackdropClicked: () => void;
|
|
32
33
|
}): any;
|
|
33
34
|
footer?(_: {
|
|
34
35
|
close: () => void;
|
|
36
|
+
onBackdropClicked: () => void;
|
|
35
37
|
}): any;
|
|
36
38
|
};
|
|
37
39
|
refs: {
|
|
@@ -47,6 +49,10 @@ declare function __VLS_template(): {
|
|
|
47
49
|
readonly transitionName?: string | undefined;
|
|
48
50
|
readonly backdropClass?: HTMLAttributes["class"];
|
|
49
51
|
readonly backdropContentClass?: HTMLAttributes["class"];
|
|
52
|
+
readonly contentPadding?: boolean | undefined;
|
|
53
|
+
readonly justify?: ("center" | "end" | "start" | "space-between" | "space-around" | "none") | undefined;
|
|
54
|
+
readonly align?: ("center" | "end" | "start" | "none") | undefined;
|
|
55
|
+
readonly variant?: ("bottom-sheet" | "dialog" | "drawer") | undefined;
|
|
50
56
|
readonly onClose?: ((value?: void | undefined) => any) | undefined;
|
|
51
57
|
readonly onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
52
58
|
readonly "onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
@@ -84,16 +90,7 @@ declare function __VLS_template(): {
|
|
|
84
90
|
open: (value: void) => any;
|
|
85
91
|
"update:model-value": (value: boolean) => any;
|
|
86
92
|
"before-close": (value: void) => any;
|
|
87
|
-
}, string, {
|
|
88
|
-
modelValue: boolean;
|
|
89
|
-
teleportSelector: string;
|
|
90
|
-
beforeClose: () => Promise<void> | void;
|
|
91
|
-
persistent: boolean;
|
|
92
|
-
noCloseOnEscKey: boolean;
|
|
93
|
-
transitionName: string;
|
|
94
|
-
backdropClass: HTMLAttributes["class"];
|
|
95
|
-
backdropContentClass: HTMLAttributes["class"];
|
|
96
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
93
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
97
94
|
beforeCreate?: (() => void) | (() => void)[];
|
|
98
95
|
created?: (() => void) | (() => void)[];
|
|
99
96
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -111,23 +108,14 @@ declare function __VLS_template(): {
|
|
|
111
108
|
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
112
109
|
};
|
|
113
110
|
$forceUpdate: () => void;
|
|
114
|
-
$nextTick: typeof
|
|
111
|
+
$nextTick: typeof nextTick;
|
|
115
112
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
116
|
-
} & Readonly<{
|
|
117
|
-
modelValue: boolean;
|
|
118
|
-
teleportSelector: string;
|
|
119
|
-
beforeClose: () => Promise<void> | void;
|
|
120
|
-
persistent: boolean;
|
|
121
|
-
noCloseOnEscKey: boolean;
|
|
122
|
-
transitionName: string;
|
|
123
|
-
backdropClass: HTMLAttributes["class"];
|
|
124
|
-
backdropContentClass: HTMLAttributes["class"];
|
|
125
|
-
}> & Omit<Readonly<MazBackdropProps> & Readonly<{
|
|
113
|
+
} & Readonly<{}> & Omit<Readonly<MazBackdropProps> & Readonly<{
|
|
126
114
|
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
127
115
|
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
128
116
|
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
129
117
|
"onBefore-close"?: ((value?: void | undefined) => any) | undefined;
|
|
130
|
-
}>, "close" | "onBackdropAnimationEnter" | "onBackdropAnimationLeave" | "onBackdropClicked" | "present" | "toggleModal" | "onKeyPress"
|
|
118
|
+
}>, "close" | "onBackdropAnimationEnter" | "onBackdropAnimationLeave" | "onBackdropClicked" | "present" | "toggleModal" | "onKeyPress"> & import("vue").ShallowUnwrapRef<{
|
|
131
119
|
onBackdropAnimationEnter: () => void;
|
|
132
120
|
onBackdropAnimationLeave: () => void;
|
|
133
121
|
onBackdropClicked: () => void;
|
|
@@ -139,9 +127,11 @@ declare function __VLS_template(): {
|
|
|
139
127
|
$slots: {
|
|
140
128
|
default?(_: {
|
|
141
129
|
close: () => void;
|
|
130
|
+
onBackdropClicked: () => void;
|
|
142
131
|
}): any;
|
|
143
132
|
};
|
|
144
133
|
}) | null;
|
|
134
|
+
dialogContent: HTMLDivElement;
|
|
145
135
|
};
|
|
146
136
|
rootEl: any;
|
|
147
137
|
};
|
|
@@ -158,11 +148,10 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
|
158
148
|
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
159
149
|
}>, {
|
|
160
150
|
title: string;
|
|
161
|
-
width: string;
|
|
162
151
|
persistent: boolean;
|
|
163
152
|
noClose: boolean;
|
|
164
153
|
maxWidth: string;
|
|
165
|
-
|
|
154
|
+
minWidth: string;
|
|
166
155
|
scrollable: boolean;
|
|
167
156
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
168
157
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
package/components/MazDialog.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DialogCustomButton, DialogData } from './MazDialogPromise/useMazDialogPromise';
|
|
2
|
-
import { type
|
|
2
|
+
import { type MazDialogProps } from './MazDialog.vue';
|
|
3
3
|
export interface MazDialogPromiseProps {
|
|
4
4
|
/** Dialog Data - @type DialogData */
|
|
5
5
|
data?: DialogData;
|
|
@@ -13,12 +13,12 @@ export interface MazDialogPromiseProps {
|
|
|
13
13
|
export type Props = MazDialogPromiseProps & MazDialogProps & DialogData;
|
|
14
14
|
export { useMazDialogPromise } from './MazDialogPromise/useMazDialogPromise';
|
|
15
15
|
export type { ActionButton, DialogButton, DialogCustomButton, DialogData, DialogState, PromiseButton } from './MazDialogPromise/useMazDialogPromise';
|
|
16
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<MazDialogPromiseProps & import("./MazDialog.vue").InternalProps & import("./MazBackdrop.vue").
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<MazDialogPromiseProps & import("./MazDialog.vue").InternalProps & import("./MazBackdrop.vue").MazBackdropProps & DialogData, {
|
|
17
17
|
close: () => any;
|
|
18
18
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
19
|
close: (value: void) => any;
|
|
20
20
|
open: (value: void) => any;
|
|
21
|
-
}, string, import("vue").PublicProps, Readonly<MazDialogPromiseProps & import("./MazDialog.vue").InternalProps & import("./MazBackdrop.vue").
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<MazDialogPromiseProps & import("./MazDialog.vue").InternalProps & import("./MazBackdrop.vue").MazBackdropProps & DialogData> & Readonly<{
|
|
22
22
|
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
23
23
|
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
24
24
|
}>, {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface MazDrawerProps {
|
|
2
2
|
/** The title of the drawer */
|
|
3
3
|
title?: string;
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* The variant of the drawer
|
|
6
|
+
* @values 'right', 'top', 'left', 'bottom'
|
|
7
|
+
*/
|
|
5
8
|
variant?: 'right' | 'top' | 'left' | 'bottom';
|
|
6
9
|
/** The size of the drawer */
|
|
7
10
|
size?: string;
|
|
@@ -24,12 +27,12 @@ declare function __VLS_template(): {
|
|
|
24
27
|
rootEl: any;
|
|
25
28
|
};
|
|
26
29
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
30
|
+
declare const __VLS_component: import("vue").DefineComponent<MazDrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
28
31
|
close: () => any;
|
|
29
32
|
open: () => any;
|
|
30
33
|
"update:model-value": (value: boolean) => any;
|
|
31
34
|
"before-close": () => any;
|
|
32
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
35
|
+
}, string, import("vue").PublicProps, Readonly<MazDrawerProps> & Readonly<{
|
|
33
36
|
onClose?: (() => any) | undefined;
|
|
34
37
|
onOpen?: (() => any) | undefined;
|
|
35
38
|
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
package/components/MazDrawer.mjs
CHANGED
|
@@ -1,196 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './assets/MazDrawer.css';const A = "--backdrop-present", U = /* @__PURE__ */ V({
|
|
3
|
-
inheritAttrs: !1,
|
|
4
|
-
__name: "MazBackdrop",
|
|
5
|
-
props: {
|
|
6
|
-
modelValue: { type: Boolean, default: !1 },
|
|
7
|
-
teleportSelector: { default: "body" },
|
|
8
|
-
beforeClose: { type: Function, default: void 0 },
|
|
9
|
-
persistent: { type: Boolean, default: !1 },
|
|
10
|
-
noCloseOnEscKey: { type: Boolean, default: !1 },
|
|
11
|
-
transitionName: { default: "backdrop-anim" },
|
|
12
|
-
backdropClass: { default: void 0 },
|
|
13
|
-
backdropContentClass: { default: void 0 }
|
|
14
|
-
},
|
|
15
|
-
emits: ["open", "close", "update:model-value", "before-close"],
|
|
16
|
-
setup(b, { expose: i, emit: c }) {
|
|
17
|
-
const e = b, t = c;
|
|
18
|
-
function n() {
|
|
19
|
-
document.documentElement.classList.add(A);
|
|
20
|
-
}
|
|
21
|
-
async function M() {
|
|
22
|
-
document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(A);
|
|
23
|
-
}
|
|
24
|
-
const s = S(e.modelValue);
|
|
25
|
-
function l() {
|
|
26
|
-
C(!1);
|
|
27
|
-
}
|
|
28
|
-
async function C(o) {
|
|
29
|
-
var p;
|
|
30
|
-
o || (t("before-close"), await ((p = e.beforeClose) == null ? void 0 : p.call(e))), s.value = o;
|
|
31
|
-
}
|
|
32
|
-
function y() {
|
|
33
|
-
t("open");
|
|
34
|
-
}
|
|
35
|
-
function E() {
|
|
36
|
-
t("update:model-value", !1), t("close"), u();
|
|
37
|
-
}
|
|
38
|
-
function $() {
|
|
39
|
-
e.persistent || l();
|
|
40
|
-
}
|
|
41
|
-
function m(o) {
|
|
42
|
-
!e.noCloseOnEscKey && o.key === "Escape" && !e.persistent && l();
|
|
43
|
-
}
|
|
44
|
-
function w() {
|
|
45
|
-
n(), document.addEventListener("keyup", m, !1);
|
|
46
|
-
}
|
|
47
|
-
function u() {
|
|
48
|
-
document.removeEventListener("keyup", m), M();
|
|
49
|
-
}
|
|
50
|
-
return g(() => {
|
|
51
|
-
e.modelValue ? w() : u();
|
|
52
|
-
}), N(
|
|
53
|
-
() => e.modelValue,
|
|
54
|
-
(o) => {
|
|
55
|
-
s.value = o, o ? w() : u();
|
|
56
|
-
}
|
|
57
|
-
), i({
|
|
58
|
-
onBackdropAnimationEnter: y,
|
|
59
|
-
onBackdropAnimationLeave: E,
|
|
60
|
-
onBackdropClicked: $,
|
|
61
|
-
close: l,
|
|
62
|
-
present: s,
|
|
63
|
-
toggleModal: C,
|
|
64
|
-
onKeyPress: m
|
|
65
|
-
}), (o, p) => (r(), h(T, { to: o.teleportSelector }, [
|
|
66
|
-
f(O, {
|
|
67
|
-
appear: "",
|
|
68
|
-
name: o.transitionName,
|
|
69
|
-
onAfterEnter: y,
|
|
70
|
-
onAfterLeave: E
|
|
71
|
-
}, {
|
|
72
|
-
default: v(() => [
|
|
73
|
-
s.value ? (r(), D(
|
|
74
|
-
"div",
|
|
75
|
-
{
|
|
76
|
-
key: 0,
|
|
77
|
-
class: d(["m-backdrop --present", [o.backdropClass]]),
|
|
78
|
-
tabindex: "-1",
|
|
79
|
-
role: "dialog"
|
|
80
|
-
},
|
|
81
|
-
[
|
|
82
|
-
a(
|
|
83
|
-
"button",
|
|
84
|
-
{
|
|
85
|
-
class: d(["m-backdrop-overlay", { "--disabled": o.persistent }]),
|
|
86
|
-
tabindex: "-1",
|
|
87
|
-
onClick: P($, ["self"])
|
|
88
|
-
},
|
|
89
|
-
null,
|
|
90
|
-
2
|
|
91
|
-
/* CLASS */
|
|
92
|
-
),
|
|
93
|
-
a(
|
|
94
|
-
"div",
|
|
95
|
-
K({
|
|
96
|
-
class: ["m-backdrop-content", o.backdropContentClass]
|
|
97
|
-
}, o.$attrs, {
|
|
98
|
-
role: "document",
|
|
99
|
-
tabindex: "0"
|
|
100
|
-
}),
|
|
101
|
-
[
|
|
102
|
-
k(o.$slots, "default", { close: l })
|
|
103
|
-
],
|
|
104
|
-
16
|
|
105
|
-
/* FULL_PROPS */
|
|
106
|
-
)
|
|
107
|
-
],
|
|
108
|
-
2
|
|
109
|
-
/* CLASS */
|
|
110
|
-
)) : L("v-if", !0)
|
|
111
|
-
]),
|
|
112
|
-
_: 3
|
|
113
|
-
/* FORWARDED */
|
|
114
|
-
}, 8, ["name"])
|
|
115
|
-
], 8, ["to"]));
|
|
116
|
-
}
|
|
117
|
-
}), X = { class: "m-drawer-header__title" }, j = {
|
|
118
|
-
key: 0,
|
|
119
|
-
class: "m-drawer-header__close"
|
|
120
|
-
}, G = { class: "m-drawer-body" }, J = /* @__PURE__ */ V({
|
|
121
|
-
__name: "MazDrawer",
|
|
122
|
-
props: {
|
|
123
|
-
title: { default: void 0 },
|
|
124
|
-
variant: { default: "right" },
|
|
125
|
-
size: { default: "30rem" },
|
|
126
|
-
backdropClass: { default: void 0 },
|
|
127
|
-
noClose: { type: Boolean, default: !1 }
|
|
128
|
-
},
|
|
129
|
-
emits: ["before-close", "open", "close", "update:model-value"],
|
|
130
|
-
setup(b) {
|
|
131
|
-
const i = B(() => import("./chunks/MazBtn-CIAdgMGr.mjs").then((e) => e.M)), c = B(() => import("./chunks/x-mark-CnZwVvA7.mjs"));
|
|
132
|
-
return (e, t) => (r(), h(U, {
|
|
133
|
-
"backdrop-class": ["m-drawer", `--${e.variant}`, e.backdropClass],
|
|
134
|
-
style: F({
|
|
135
|
-
"--maz-drawer-size": e.size
|
|
136
|
-
}),
|
|
137
|
-
onClose: t[0] || (t[0] = (n) => e.$emit("close")),
|
|
138
|
-
onOpen: t[1] || (t[1] = (n) => e.$emit("open")),
|
|
139
|
-
onBeforeClose: t[2] || (t[2] = (n) => e.$emit("before-close")),
|
|
140
|
-
"onUpdate:modelValue": t[3] || (t[3] = (n) => e.$emit("update:model-value", n))
|
|
141
|
-
}, {
|
|
142
|
-
default: v(({ close: n }) => [
|
|
143
|
-
a(
|
|
144
|
-
"div",
|
|
145
|
-
{
|
|
146
|
-
class: d(["m-drawer-content-wrap", [`--${e.variant}`]])
|
|
147
|
-
},
|
|
148
|
-
[
|
|
149
|
-
a(
|
|
150
|
-
"header",
|
|
151
|
-
{
|
|
152
|
-
class: d(["m-drawer-header", [e.$slots.title || e.title ? "--between" : "--end"]])
|
|
153
|
-
},
|
|
154
|
-
[
|
|
155
|
-
a("h4", X, [
|
|
156
|
-
k(e.$slots, "title", { close: n }, () => [
|
|
157
|
-
q(
|
|
158
|
-
I(e.title),
|
|
159
|
-
1
|
|
160
|
-
/* TEXT */
|
|
161
|
-
)
|
|
162
|
-
])
|
|
163
|
-
]),
|
|
164
|
-
e.noClose ? L("v-if", !0) : (r(), D("div", j, [
|
|
165
|
-
f(z(i), {
|
|
166
|
-
size: "sm",
|
|
167
|
-
color: "transparent",
|
|
168
|
-
onClick: n
|
|
169
|
-
}, {
|
|
170
|
-
default: v(() => [
|
|
171
|
-
f(z(c), { class: "icon maz-text-lg" })
|
|
172
|
-
]),
|
|
173
|
-
_: 2
|
|
174
|
-
/* DYNAMIC */
|
|
175
|
-
}, 1032, ["onClick"])
|
|
176
|
-
]))
|
|
177
|
-
],
|
|
178
|
-
2
|
|
179
|
-
/* CLASS */
|
|
180
|
-
),
|
|
181
|
-
a("div", G, [
|
|
182
|
-
k(e.$slots, "default", { close: n })
|
|
183
|
-
])
|
|
184
|
-
],
|
|
185
|
-
2
|
|
186
|
-
/* CLASS */
|
|
187
|
-
)
|
|
188
|
-
]),
|
|
189
|
-
_: 3
|
|
190
|
-
/* FORWARDED */
|
|
191
|
-
}, 8, ["backdrop-class", "style"]));
|
|
192
|
-
}
|
|
193
|
-
});
|
|
1
|
+
import { M as f } from "./chunks/MazDrawer-BqNLfW4e.mjs";
|
|
194
2
|
export {
|
|
195
|
-
|
|
3
|
+
f as default
|
|
196
4
|
};
|
|
@@ -12,22 +12,22 @@ import './assets/MazExpandAnimation.css';const M = ["aria-hidden"], y = /* @__PU
|
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
13
|
setup(i) {
|
|
14
14
|
const n = m(i, "modelValue"), t = d(!n.value), a = d();
|
|
15
|
-
function
|
|
15
|
+
function s() {
|
|
16
16
|
n.value || (t.value = !0);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function r() {
|
|
19
19
|
n.value && (t.value = !1);
|
|
20
20
|
}
|
|
21
21
|
return f(() => {
|
|
22
22
|
var e, o;
|
|
23
|
-
(e = a.value) == null || e.addEventListener("transitionstart",
|
|
23
|
+
(e = a.value) == null || e.addEventListener("transitionstart", s, !1), (o = a.value) == null || o.addEventListener("transitionend", r, !1);
|
|
24
24
|
}), v(() => {
|
|
25
25
|
var e, o;
|
|
26
|
-
(e = a.value) == null || e.removeEventListener("transitionstart",
|
|
26
|
+
(e = a.value) == null || e.removeEventListener("transitionstart", s, !1), (o = a.value) == null || o.removeEventListener("transitionend", r, !1);
|
|
27
27
|
}), (e, o) => (c(), p("div", {
|
|
28
28
|
ref_key: "expandAnimationRef",
|
|
29
29
|
ref: a,
|
|
30
|
-
class: _(["m-expand-animation", { "m-expand-animation--expanded": n.value }]),
|
|
30
|
+
class: _(["m-expand-animation m-reset-css", { "m-expand-animation--expanded": n.value }]),
|
|
31
31
|
"aria-hidden": !n.value,
|
|
32
32
|
role: "region",
|
|
33
33
|
style: x([{ "--expand-animation-duration": e.duration, "--expand-animation-timing-function": e.timingFunction }])
|
|
@@ -49,10 +49,10 @@ import './assets/MazExpandAnimation.css';const M = ["aria-hidden"], y = /* @__PU
|
|
|
49
49
|
}
|
|
50
50
|
}), A = (i, n) => {
|
|
51
51
|
const t = i.__vccOpts || i;
|
|
52
|
-
for (const [a,
|
|
53
|
-
t[a] =
|
|
52
|
+
for (const [a, s] of n)
|
|
53
|
+
t[a] = s;
|
|
54
54
|
return t;
|
|
55
|
-
}, z = /* @__PURE__ */ A(y, [["__scopeId", "data-v-
|
|
55
|
+
}, z = /* @__PURE__ */ A(y, [["__scopeId", "data-v-058a2912"]]);
|
|
56
56
|
export {
|
|
57
57
|
z as default
|
|
58
58
|
};
|
|
@@ -1,42 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './assets/MazFullscreenLoader.css';const b = { key: 0 }, S = /* @__PURE__ */ l({
|
|
3
|
-
__name: "MazFullscreenLoader",
|
|
4
|
-
props: {
|
|
5
|
-
color: { default: "primary" },
|
|
6
|
-
size: { default: "3em" },
|
|
7
|
-
teleportSelector: { default: "body" }
|
|
8
|
-
},
|
|
9
|
-
setup(v) {
|
|
10
|
-
const t = a(() => import("./chunks/MazSpinner-Du5o8JC_.mjs"));
|
|
11
|
-
function r() {
|
|
12
|
-
document.documentElement.classList.add("--maz-fullscreen-loader-present");
|
|
13
|
-
}
|
|
14
|
-
async function n() {
|
|
15
|
-
document.documentElement.classList.remove("--maz-fullscreen-loader-present");
|
|
16
|
-
}
|
|
17
|
-
return s(() => {
|
|
18
|
-
r();
|
|
19
|
-
}), m(() => {
|
|
20
|
-
n();
|
|
21
|
-
}), (e, C) => (o(), c(d, { to: e.teleportSelector }, [
|
|
22
|
-
u(
|
|
23
|
-
"div",
|
|
24
|
-
p({ class: "m-fullscreen-loader maz-fixed maz-inset-0 maz-z-default-backdrop maz-flex maz-flex-col maz-gap-2 maz-bg-overlay maz-text-center maz-backdrop-blur maz-flex-center" }, e.$attrs),
|
|
25
|
-
[
|
|
26
|
-
f(i(t), {
|
|
27
|
-
color: e.color,
|
|
28
|
-
size: e.size
|
|
29
|
-
}, null, 8, ["color", "size"]),
|
|
30
|
-
e.$slots.default ? (o(), z("span", b, [
|
|
31
|
-
k(e.$slots, "default")
|
|
32
|
-
])) : y("v-if", !0)
|
|
33
|
-
],
|
|
34
|
-
16
|
|
35
|
-
/* FULL_PROPS */
|
|
36
|
-
)
|
|
37
|
-
], 8, ["to"]));
|
|
38
|
-
}
|
|
39
|
-
});
|
|
1
|
+
import { M as f } from "./chunks/MazFullscreenLoader-XF8wIEcL.mjs";
|
|
40
2
|
export {
|
|
41
|
-
|
|
3
|
+
f as default
|
|
42
4
|
};
|
package/components/MazIcon.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { inject as T, defineComponent as x, ref as
|
|
2
|
-
function H(i,
|
|
3
|
-
const o = T(i,
|
|
1
|
+
import { inject as T, defineComponent as x, ref as v, computed as p, onMounted as L, watchEffect as C, openBlock as P, createElementBlock as _, mergeProps as $, createCommentVNode as A, nextTick as q } from "vue";
|
|
2
|
+
function H(i, u) {
|
|
3
|
+
const o = T(i, u);
|
|
4
4
|
if (!o)
|
|
5
5
|
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${i.toString()}`);
|
|
6
6
|
return o;
|
|
@@ -25,8 +25,8 @@ const I = ["innerHTML"], V = /* @__PURE__ */ x({
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
emits: ["loaded", "unloaded", "error"],
|
|
28
|
-
setup(i, { emit:
|
|
29
|
-
const o = i, d =
|
|
28
|
+
setup(i, { emit: u }) {
|
|
29
|
+
const o = i, d = u, a = {}, s = v(), f = v();
|
|
30
30
|
function g() {
|
|
31
31
|
try {
|
|
32
32
|
return H("mazIconPath");
|
|
@@ -34,7 +34,7 @@ const I = ["innerHTML"], V = /* @__PURE__ */ x({
|
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const m = p(() => o.path ?? g()), S = p(() => o.src ? o.src : m.value ? `${m.value}/${o.name}.svg` : `/${o.name}.svg`);
|
|
38
38
|
L(() => {
|
|
39
39
|
!o.name && !o.src && console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop');
|
|
40
40
|
});
|
|
@@ -77,8 +77,8 @@ const I = ["innerHTML"], V = /* @__PURE__ */ x({
|
|
|
77
77
|
n.open("GET", e, !0), n.addEventListener("load", () => {
|
|
78
78
|
if (n.status >= 200 && n.status < 400)
|
|
79
79
|
try {
|
|
80
|
-
let
|
|
81
|
-
|
|
80
|
+
let c = new DOMParser().parseFromString(n.responseText, "text/xml").querySelectorAll("svg")[0];
|
|
81
|
+
c ? (c = o.transformSource(c), r(c)) : t(new Error('Loaded file is not valid SVG"'));
|
|
82
82
|
} catch (l) {
|
|
83
83
|
t(l);
|
|
84
84
|
}
|
|
@@ -91,6 +91,7 @@ const I = ["innerHTML"], V = /* @__PURE__ */ x({
|
|
|
91
91
|
key: 0,
|
|
92
92
|
ref_key: "svgElem",
|
|
93
93
|
ref: f,
|
|
94
|
+
class: "m-icon m-reset-css",
|
|
94
95
|
width: "1em",
|
|
95
96
|
height: "1em"
|
|
96
97
|
}, {
|
package/components/MazInput.d.ts
CHANGED
|
@@ -91,6 +91,8 @@ export interface Props<T = ModelValueSimple> {
|
|
|
91
91
|
roundedSize?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
92
92
|
/** The input will be displayed in full width */
|
|
93
93
|
block?: boolean;
|
|
94
|
+
/** The attribut autocomplete of the input */
|
|
95
|
+
autocomplete?: string;
|
|
94
96
|
}
|
|
95
97
|
export type { Color, ModelValueSimple, Size } from './types';
|
|
96
98
|
declare const _default: <T extends ModelValueSimple>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
package/components/MazInput.mjs
CHANGED
|
@@ -99,7 +99,7 @@ import './assets/MazInputCode.css';const F = ["disabled"], K = { class: "m-input
|
|
|
99
99
|
}
|
|
100
100
|
const S = m(() => n.error ? "!maz-border-danger" : n.success ? "!maz-border-success" : n.warning ? "!maz-border-warning" : ""), C = m(() => `var(--maz-color-${n.color})`);
|
|
101
101
|
return (e, t) => (g(), v("fieldset", {
|
|
102
|
-
class: h(["m-input-code", [e.size ? `--${e.size}` : void 0, n.class]]),
|
|
102
|
+
class: h(["m-input-code m-reset-css", [e.size ? `--${e.size}` : void 0, n.class]]),
|
|
103
103
|
disabled: e.disabled,
|
|
104
104
|
style: P([e.style, { "--input-border-color": C.value }])
|
|
105
105
|
}, [
|
|
@@ -161,7 +161,7 @@ import './assets/MazInputCode.css';const F = ["disabled"], K = { class: "m-input
|
|
|
161
161
|
for (const [d, u] of p)
|
|
162
162
|
n[d] = u;
|
|
163
163
|
return n;
|
|
164
|
-
}, R = /* @__PURE__ */ W(O, [["__scopeId", "data-v-
|
|
164
|
+
}, R = /* @__PURE__ */ W(O, [["__scopeId", "data-v-dbb4e5e8"]]);
|
|
165
165
|
export {
|
|
166
166
|
R as default
|
|
167
167
|
};
|
package/components/MazLink.d.ts
CHANGED