maz-ui 4.0.0-beta.31 → 4.0.0-beta.35
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/dist/assets/{MazAnimatedCounter.DkZNPRLp.css → MazAnimatedCounter.LK7oyUrl.css} +1 -1
- package/dist/assets/MazAnimatedText.CHvAudRU.css +1 -0
- package/dist/assets/MazBackdrop.09bziTPM.css +1 -0
- package/dist/assets/MazBtn.BvC8ftmc.css +1 -0
- package/dist/assets/MazCard.Dv02b2P6.css +1 -0
- package/dist/assets/MazCardSpotlight.B7lFD7Pi.css +1 -0
- package/dist/assets/MazCarousel.BLHpZIu5.css +1 -0
- package/dist/assets/{MazCheckbox.aH1IKnrR.css → MazCheckbox.Di88TJ3e.css} +1 -1
- package/dist/assets/MazChecklist.Bu8wERn6.css +1 -0
- package/dist/assets/MazDatePicker.G6V7jjin.css +1 -0
- package/dist/assets/{MazDialog.DEmRfAv7.css → MazDialog.TS06kRcu.css} +1 -1
- package/dist/assets/MazDropdown.D90GEKDB.css +1 -0
- package/dist/assets/MazDropzone._2HwHowu.css +1 -0
- package/dist/assets/MazGallery.BTNB3D6k.css +1 -0
- package/dist/assets/MazInput.BvuxfP9k.css +1 -0
- package/dist/assets/MazInputCode.BYi64Mof.css +1 -0
- package/dist/assets/MazInputPhoneNumber.Baeyskod.css +1 -0
- package/dist/assets/MazInputTags.is2jSJk-.css +1 -0
- package/dist/assets/MazLazyImg.DO7a4PDm.css +1 -0
- package/dist/assets/{MazPagination.C6cUh-p4.css → MazPagination.BUhf2Qr7.css} +1 -1
- package/dist/assets/MazPickerCalendarMonth.DpijYq-O.css +1 -0
- package/dist/assets/{MazPickerCalendarSwitcher.CI9Vw1sJ.css → MazPickerCalendarSwitcher.ByAVjy00.css} +1 -1
- package/dist/assets/{MazPickerHeader.C4W93yMD.css → MazPickerHeader.D7JXgA3q.css} +1 -1
- package/dist/assets/MazPickerMonthSwitcher.BJGGy53r.css +1 -0
- package/dist/assets/{MazPickerYearSwitcher.CFiH13QC.css → MazPickerYearSwitcher.DPD1_dfz.css} +1 -1
- package/dist/assets/MazPopover.DIE65uVT.css +1 -0
- package/dist/assets/MazPullToRefresh.C0HGlupm.css +1 -0
- package/dist/assets/{MazRadio.aTHM-mpx.css → MazRadio.B0B3P1QS.css} +1 -1
- package/dist/assets/MazRadioButtons.CfiHq8H9.css +1 -0
- package/dist/assets/MazReadingProgressBar.dzfwQFNg.css +1 -0
- package/dist/assets/MazSelect.DIwjMD31.css +1 -0
- package/dist/assets/{MazSelectCountry.EW8fKXFX.css → MazSelectCountry.B0tlbfgr.css} +1 -1
- package/dist/assets/MazSlider.WcnBC9zc.css +1 -0
- package/dist/assets/{MazStepper.BD2gDGAX.css → MazStepper.C9R7g43I.css} +1 -1
- package/dist/assets/MazSwitch.LCcK91L7.css +1 -0
- package/dist/assets/MazTable.Cq7FEz09.css +1 -0
- package/dist/assets/MazTableRow.C0Ko4yDk.css +1 -0
- package/dist/assets/{MazTabsBar.gcS2Fc-B.css → MazTabsBar.BRr1XiYu.css} +1 -1
- package/dist/assets/MazTextarea.C9sZpRDZ.css +1 -0
- package/dist/assets/{PhoneInput.DCWA_-gC.css → PhoneInput.DkOXlrI9.css} +1 -1
- package/dist/assets/{fullscreen-img.Bkuz1GOX.css → fullscreen-img.Br983fLC.css} +1 -1
- package/dist/assets/{toast.DH9mbkvs.css → toast.BDNNJSjj.css} +1 -1
- package/dist/chunks/{MazDatePicker.bKFpslPf.js → MazDatePicker.B1B6gUrC.js} +24 -24
- package/dist/chunks/{MazDialogConfirm.vue_vue_type_script_setup_true_lang.Grn2kB3x.js → MazDialogConfirm.vue_vue_type_script_setup_true_lang.DuEcluOw.js} +3 -1
- package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.X8ygqBUZ.js → MazDropdown.vue_vue_type_style_index_0_lang.DfR-QxYQ.js} +4 -4
- package/dist/chunks/{MazInputNumber.vue_vue_type_style_index_0_lang.B6DYpHfi.js → MazInputNumber.vue_vue_type_style_index_0_lang.B0D4Zzds.js} +2 -2
- package/dist/chunks/{MazInputPhoneNumber.BVHi0OiN.js → MazInputPhoneNumber.CDy6n_Qj.js} +10 -10
- package/dist/chunks/{MazInputPrice.vue_vue_type_script_setup_true_lang.BA6TDX-T.js → MazInputPrice.vue_vue_type_script_setup_true_lang.3pKYuG8H.js} +18 -18
- package/dist/chunks/{MazPickerCalendar.lLfvUtrb.js → MazPickerCalendar.BSBQciuG.js} +1 -1
- package/dist/chunks/{MazPickerCalendarMonth.Djzgo1tF.js → MazPickerCalendarMonth.CFJHTFp5.js} +10 -10
- package/dist/chunks/{MazPickerCalendarSwitcher.Bf24kKw6.js → MazPickerCalendarSwitcher.DC21FpTy.js} +10 -10
- package/dist/chunks/{MazPickerContainer.7hYHiOaa.js → MazPickerContainer.CRPzAbRt.js} +1 -1
- package/dist/chunks/{MazPickerHeader.B00RAQPS.js → MazPickerHeader.D7Tbm-yH.js} +14 -14
- package/dist/chunks/{MazPickerMonthSwitcher.B2ZgNJWy.js → MazPickerMonthSwitcher.DzHOKbe4.js} +10 -10
- package/dist/chunks/{MazPickerTime.Bd4khA2e.js → MazPickerTime.EZK1foEx.js} +1 -1
- package/dist/chunks/{MazPickerYearSwitcher.BIy9xGIw.js → MazPickerYearSwitcher.BcT8GENl.js} +4 -4
- package/dist/chunks/{MazSwitch.vue_vue_type_style_index_0_lang.CU43Y1ky.js → MazSwitch.vue_vue_type_style_index_0_lang.Dz7-dIc9.js} +1 -1
- package/dist/chunks/{MazTable.vue_vue_type_script_setup_true_lang.BcTw9Tyh.js → MazTable.vue_vue_type_script_setup_true_lang.Ct1Gtp2Q.js} +5 -5
- package/dist/chunks/{MazTabsContent.vue_vue_type_script_setup_true_lang.arGqYTL5.js → MazTabsContent.vue_vue_type_script_setup_true_lang.hIwO-24k.js} +2 -2
- package/dist/chunks/{PhoneInput.D9vRIgS6.js → PhoneInput.DukRZp5u.js} +4 -4
- package/dist/chunks/capitalize.CVQ1jDrh.js +6 -0
- package/dist/chunks/checkAvailability.UFZSC8-1.js +16 -0
- package/dist/chunks/debounce.DhXdop6X.js +11 -0
- package/dist/chunks/{dom-events.Bbe7wDQl.js → dom-events.H9KIOv83.js} +52 -52
- package/dist/chunks/{fullscreen-img.directive.Be383en8.js → fullscreen-img.directive.D9oQ3Gni.js} +4 -4
- package/dist/chunks/{isClient.WI4oSt66.js → isClient.8V3qjGdO.js} +2 -2
- package/dist/chunks/{mazUi.D6UdqpTO.js → mazUi.0b7z2u9g.js} +2 -2
- package/dist/chunks/{obsidian.Cy0R8RHy.js → obsidian.C6upWOVF.js} +2 -2
- package/dist/chunks/{ocean.pHrY5H_S.js → ocean.ehMlC0HV.js} +2 -2
- package/dist/chunks/pascalCase.BKTE3qqE.js +19 -0
- package/dist/chunks/{pristine.CxBZzgUG.js → pristine.DMG3eBuN.js} +2 -2
- package/dist/chunks/sleep.Ci7GE4BQ.js +6 -0
- package/dist/chunks/truthyFilter.DZvXmxeK.js +6 -0
- package/dist/chunks/{useStringMatching.BBezu-6J.js → useStringMatching.DzSigyZ7.js} +27 -27
- package/dist/chunks/{vClickOutside.DIOiluy0.js → vClickOutside.CJBKY5no.js} +6 -6
- package/dist/components/MazAccordion.vue.d.ts +36 -0
- package/dist/components/MazAnimatedCounter.js +5 -5
- package/dist/components/MazAnimatedCounter.vue.d.ts +59 -0
- package/dist/components/MazAnimatedElement.vue.d.ts +44 -0
- package/dist/components/MazAnimatedText.js +4 -4
- package/dist/components/MazAnimatedText.vue.d.ts +57 -0
- package/dist/components/MazAvatar.vue.d.ts +99 -0
- package/dist/components/MazBackdrop.js +70 -31
- package/dist/components/MazBackdrop.vue.d.ts +91 -0
- package/dist/components/MazBadge.vue.d.ts +61 -0
- package/dist/components/MazBottomSheet.vue.d.ts +35 -0
- package/dist/components/MazBtn.js +2 -2
- package/dist/components/MazBtn.vue.d.ts +105 -0
- package/dist/components/MazCard.js +3 -3
- package/dist/components/MazCard.vue.d.ts +77 -0
- package/dist/components/MazCardSpotlight.js +2 -2
- package/dist/components/MazCardSpotlight.vue.d.ts +57 -0
- package/dist/components/MazCarousel.js +3 -3
- package/dist/components/MazCarousel.vue.d.ts +48 -0
- package/dist/components/MazChart.vue.d.ts +53 -0
- package/dist/components/MazCheckbox.js +2 -2
- package/dist/components/MazCheckbox.vue.d.ts +55 -0
- package/dist/components/MazChecklist.js +7 -7
- package/dist/components/MazChecklist.vue.d.ts +87 -0
- package/dist/components/MazCircularProgressBar.vue.d.ts +106 -0
- package/dist/components/MazDatePicker/MazPickerCalendar.vue.d.ts +27 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +20 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +125 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +134 -0
- package/dist/components/MazDatePicker/MazPickerCalendarSwitcher.vue.d.ts +42 -0
- package/dist/components/MazDatePicker/MazPickerContainer.vue.d.ts +38 -0
- package/dist/components/MazDatePicker/MazPickerHeader.vue.d.ts +15 -0
- package/dist/components/MazDatePicker/MazPickerMonthSwitcher.vue.d.ts +44 -0
- package/dist/components/MazDatePicker/MazPickerShortcuts.vue.d.ts +16 -0
- package/dist/components/MazDatePicker/MazPickerTime.vue.d.ts +107 -0
- package/dist/components/MazDatePicker/MazPickerYearSwitcher.vue.d.ts +36 -0
- package/dist/components/MazDatePicker/types.d.ts +14 -0
- package/dist/components/MazDatePicker/utils.d.ts +61 -0
- package/dist/components/MazDatePicker.js +1 -1
- package/dist/components/MazDatePicker.vue.d.ts +547 -0
- package/dist/components/MazDialog.js +9 -16
- package/dist/components/MazDialog.vue.d.ts +247 -0
- package/dist/components/MazDialogConfirm/useMazDialogConfirm.d.ts +47 -0
- package/dist/components/MazDialogConfirm.js +2 -2
- package/dist/components/MazDialogConfirm.vue.d.ts +270 -0
- package/dist/components/MazDrawer.vue.d.ts +52 -0
- package/dist/components/MazDropdown.js +1 -1
- package/dist/components/MazDropdown.vue.d.ts +242 -0
- package/dist/components/MazDropzone.js +6 -6
- package/dist/components/MazDropzone.vue.d.ts +305 -0
- package/dist/components/MazExpandAnimation.vue.d.ts +44 -0
- package/dist/components/MazFullscreenLoader.vue.d.ts +26 -0
- package/dist/components/MazGallery.js +4 -4
- package/dist/components/MazGallery.vue.d.ts +85 -0
- package/dist/components/MazIcon.vue.d.ts +26 -0
- package/dist/components/MazInput.js +4 -4
- package/dist/components/MazInput.vue.d.ts +225 -0
- package/dist/components/MazInputCode.js +2 -2
- package/dist/components/MazInputCode.vue.d.ts +49 -0
- package/dist/components/MazInputNumber.js +1 -1
- package/dist/components/MazInputNumber.vue.d.ts +125 -0
- package/dist/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +29 -0
- package/dist/components/MazInputPhoneNumber/useLibphonenumber.d.ts +26 -0
- package/dist/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +26 -0
- package/dist/components/MazInputPhoneNumber.js +1 -1
- package/dist/components/MazInputPhoneNumber.vue.d.ts +421 -0
- package/dist/components/MazInputPrice.js +1 -1
- package/dist/components/MazInputPrice.vue.d.ts +48 -0
- package/dist/components/MazInputTags.js +6 -6
- package/dist/components/MazInputTags.vue.d.ts +51 -0
- package/dist/components/MazLazyImg.js +2 -2
- package/dist/components/MazLazyImg.vue.d.ts +78 -0
- package/dist/components/MazLink.vue.d.ts +115 -0
- package/dist/components/MazLoadingBar.vue.d.ts +12 -0
- package/dist/components/MazPagination.js +3 -3
- package/dist/components/MazPagination.vue.d.ts +83 -0
- package/dist/components/MazPopover.js +15 -14
- package/dist/components/MazPopover.vue.d.ts +256 -0
- package/dist/components/MazPullToRefresh.js +7 -7
- package/dist/components/MazPullToRefresh.vue.d.ts +52 -0
- package/dist/components/MazRadio.js +2 -2
- package/dist/components/MazRadio.vue.d.ts +55 -0
- package/dist/components/MazRadioButtons.js +2 -2
- package/dist/components/MazRadioButtons.vue.d.ts +69 -0
- package/dist/components/MazReadingProgressBar.js +8 -8
- package/dist/components/MazReadingProgressBar.vue.d.ts +55 -0
- package/dist/components/MazSelect.js +10 -10
- package/dist/components/MazSelect.vue.d.ts +178 -0
- package/dist/components/MazSelectCountry.js +15 -15
- package/dist/components/MazSelectCountry.vue.d.ts +171 -0
- package/dist/components/MazSlider/utils.d.ts +15 -0
- package/dist/components/MazSlider.js +36 -36
- package/dist/components/MazSlider.vue.d.ts +31 -0
- package/dist/components/MazSpinner.vue.d.ts +15 -0
- package/dist/components/MazStepper.js +2 -2
- package/dist/components/MazStepper.vue.d.ts +60 -0
- package/dist/components/MazSwitch.js +1 -1
- package/dist/components/MazSwitch.vue.d.ts +69 -0
- package/dist/components/MazTable.js +3 -3
- package/dist/components/MazTable.vue.d.ts +324 -0
- package/dist/components/MazTableCell.js +1 -1
- package/dist/components/MazTableCell.vue.d.ts +17 -0
- package/dist/components/MazTableRow.js +6 -5
- package/dist/components/MazTableRow.vue.d.ts +23 -0
- package/dist/components/MazTableTitle.js +1 -1
- package/dist/components/MazTableTitle.vue.d.ts +17 -0
- package/dist/components/MazTabs.vue.d.ts +30 -0
- package/dist/components/MazTabsBar.js +4 -4
- package/dist/components/MazTabsBar.vue.d.ts +96 -0
- package/dist/components/MazTabsContent.js +1 -1
- package/dist/components/MazTabsContent.vue.d.ts +17 -0
- package/dist/components/MazTabsContentItem.vue.d.ts +31 -0
- package/dist/components/MazTextarea.js +6 -6
- package/dist/components/MazTextarea.vue.d.ts +88 -0
- package/dist/components/constantes.d.ts +2 -0
- package/dist/components/index.d.ts +109 -0
- package/dist/components/index.js +8 -8
- package/dist/components/types.d.ts +4 -0
- package/dist/composables/index.d.ts +21 -0
- package/dist/composables/index.js +1 -1
- package/dist/composables/useAos.d.ts +2 -0
- package/dist/composables/useBreakpoints.d.ts +38 -0
- package/dist/composables/useDialog.d.ts +2 -0
- package/dist/composables/useDisplayNames.d.ts +101 -0
- package/dist/composables/useDisplayNames.js +10 -16
- package/dist/composables/useDropzone.d.ts +27 -0
- package/dist/composables/useDropzone.js +2 -2
- package/dist/composables/useFormField.d.ts +16 -0
- package/dist/composables/useFormField.js +2 -2
- package/dist/composables/useFormValidator/config.d.ts +7 -0
- package/dist/composables/useFormValidator/dom-events.d.ts +19 -0
- package/dist/composables/useFormValidator/state-management.d.ts +72 -0
- package/dist/composables/useFormValidator/types.d.ts +98 -0
- package/dist/composables/useFormValidator/validation.d.ts +37 -0
- package/dist/composables/useFormValidator.d.ts +23 -0
- package/dist/composables/useFormValidator.js +1 -1
- package/dist/composables/useFreezeValue.d.ts +5 -0
- package/dist/composables/useIdleTimeout.d.ts +5 -0
- package/dist/composables/useIdleTimeout.js +27 -27
- package/dist/composables/useInjectStrict.d.ts +2 -0
- package/dist/composables/useInstanceUniqId.d.ts +4 -0
- package/dist/composables/useMountComponent.d.ts +14 -0
- package/dist/composables/useReadingTime.d.ts +25 -0
- package/dist/composables/useStringMatching.d.ts +5 -0
- package/dist/composables/useStringMatching.js +1 -1
- package/dist/composables/useSwipe.d.ts +14 -0
- package/dist/composables/useSwipe.js +22 -22
- package/dist/composables/useTimer.d.ts +30 -0
- package/dist/composables/useToast.d.ts +22 -0
- package/dist/composables/useUserVisibility.d.ts +5 -0
- package/dist/composables/useUserVisibility.js +8 -8
- package/dist/composables/useWait.d.ts +2 -0
- package/dist/composables/useWindowSize.d.ts +32 -0
- package/dist/composables/useWindowSize.js +2 -2
- package/dist/css/main.css +1 -1
- package/dist/directives/index.d.ts +5 -0
- package/dist/directives/index.js +2 -2
- package/dist/directives/vClickOutside.d.ts +36 -0
- package/dist/directives/vClickOutside.js +1 -1
- package/dist/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +50 -0
- package/dist/directives/vFullscreenImg/fullscreen-img.directive.d.ts +5 -0
- package/dist/directives/vFullscreenImg/fullscreen-img.handler.d.ts +36 -0
- package/dist/directives/vFullscreenImg.d.ts +11 -0
- package/dist/directives/vFullscreenImg.js +1 -1
- package/dist/directives/vLazyImg/lazy-img.directive.d.ts +5 -0
- package/dist/directives/vLazyImg/lazy-img.handler.d.ts +38 -0
- package/dist/directives/vLazyImg/types.d.ts +29 -0
- package/dist/directives/vLazyImg.d.ts +12 -0
- package/dist/directives/vTooltip.d.ts +54 -0
- package/dist/directives/vTooltip.js +13 -19
- package/dist/directives/vZoomImg/style.d.ts +1 -0
- package/dist/directives/vZoomImg/svgs.d.ts +3 -0
- package/dist/directives/vZoomImg/zoom-img.directive.d.ts +8 -0
- package/dist/directives/vZoomImg/zoom-img.handler.d.ts +46 -0
- package/dist/directives/vZoomImg.d.ts +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/plugins/aos.d.ts +81 -0
- package/dist/plugins/aos.js +5 -5
- package/dist/plugins/dialog/DialogHandler.d.ts +16 -0
- package/dist/plugins/dialog.d.ts +26 -0
- package/dist/plugins/dialog.js +1 -1
- package/dist/plugins/index.d.ts +5 -0
- package/dist/plugins/maz-ui.d.ts +43 -0
- package/dist/plugins/maz-ui.js +211 -373
- package/dist/plugins/toast/MazToast.vue.d.ts +34 -0
- package/dist/plugins/toast/ToastHandler.d.ts +29 -0
- package/dist/plugins/toast/types.d.ts +104 -0
- package/dist/plugins/toast.d.ts +25 -0
- package/dist/plugins/toast.js +2 -2
- package/dist/plugins/wait.d.ts +33 -0
- package/dist/resolvers/MazComponentsResolver.d.ts +10 -0
- package/dist/resolvers/MazComponentsResolver.js +2 -2
- package/dist/resolvers/MazDirectivesResolver.d.ts +11 -0
- package/dist/resolvers/MazDirectivesResolver.js +2 -2
- package/dist/resolvers/MazModulesResolver.d.ts +11 -0
- package/dist/resolvers/MazModulesResolver.js +3 -3
- package/dist/resolvers/index.d.ts +3 -0
- package/dist/tailwindcss/index.d.ts +6 -0
- package/dist/tailwindcss/tailwind.config.d.ts +89 -0
- package/dist/tailwindcss/utils/colors.d.ts +7 -0
- package/dist/tailwindcss/variables/breakpoints.d.ts +15 -0
- package/dist/tailwindcss/variables/colors.d.ts +20 -0
- package/dist/tailwindcss/variables/design-tokens.d.ts +35 -0
- package/dist/tailwindcss/variables/utilities.d.ts +17 -0
- package/dist/tailwindcss/variables/z-indexes.d.ts +14 -0
- package/dist/types/components/MazAnimatedCounter.vue.d.ts +1 -1
- package/dist/types/components/MazBackdrop.vue.d.ts +26 -6
- package/dist/types/components/MazCarousel.vue.d.ts +4 -4
- package/dist/types/components/MazChecklist.vue.d.ts +5 -5
- package/dist/types/components/MazDatePicker/utils.d.ts +2 -2
- package/dist/types/components/MazDatePicker.vue.d.ts +11 -3
- package/dist/types/components/MazDialog.vue.d.ts +10 -19
- package/dist/types/components/MazDialogConfirm.vue.d.ts +7 -11
- package/dist/types/components/MazDropdown.vue.d.ts +2 -2
- package/dist/types/components/MazInputNumber.vue.d.ts +1 -1
- package/dist/types/components/MazInputPhoneNumber.vue.d.ts +4 -4
- package/dist/types/components/MazInputPrice.vue.d.ts +1 -1
- package/dist/types/components/MazPopover.vue.d.ts +2 -0
- package/dist/types/components/MazSelect.vue.d.ts +3 -3
- package/dist/types/components/MazSelectCountry.vue.d.ts +4 -4
- package/dist/types/components/MazTable.vue.d.ts +5 -5
- package/dist/types/components/MazTableRow.vue.d.ts +2 -0
- package/dist/types/composables/useDisplayNames.d.ts +60 -1
- package/dist/types/composables/useFormValidator.d.ts +1 -1
- package/dist/types/composables/useIdleTimeout.d.ts +1 -1
- package/dist/types/composables/useSwipe.d.ts +1 -1
- package/dist/types/composables/useUserVisibility.d.ts +1 -1
- package/dist/types/plugins/maz-ui.d.ts +5 -5
- package/package.json +30 -18
- package/dist/assets/MazAnimatedText.DDqCxrFX.css +0 -1
- package/dist/assets/MazBackdrop.BnhcmjbP.css +0 -1
- package/dist/assets/MazBtn.BYOKMl_2.css +0 -1
- package/dist/assets/MazCard.D0ksni8A.css +0 -1
- package/dist/assets/MazCardSpotlight.IbPp_y0j.css +0 -1
- package/dist/assets/MazCarousel.D4zTkRsG.css +0 -1
- package/dist/assets/MazChecklist.BzF5KtZ3.css +0 -1
- package/dist/assets/MazDatePicker.BUVI9tfN.css +0 -1
- package/dist/assets/MazDropdown.C6vjLIeN.css +0 -1
- package/dist/assets/MazDropzone.C2SunLAI.css +0 -1
- package/dist/assets/MazGallery.DZ3TyggM.css +0 -1
- package/dist/assets/MazInput.BPhjbYZG.css +0 -1
- package/dist/assets/MazInputCode.FA2z4HQd.css +0 -1
- package/dist/assets/MazInputPhoneNumber.DQKElfIM.css +0 -1
- package/dist/assets/MazInputTags.KNTpDHof.css +0 -1
- package/dist/assets/MazLazyImg.NlPRN3Nk.css +0 -1
- package/dist/assets/MazPickerCalendarMonth.BRoEh_ad.css +0 -1
- package/dist/assets/MazPickerMonthSwitcher.D9lfVzYo.css +0 -1
- package/dist/assets/MazPopover.B3kR2Gsa.css +0 -1
- package/dist/assets/MazPullToRefresh.BQ64UvzA.css +0 -1
- package/dist/assets/MazRadioButtons.DN_rAzT9.css +0 -1
- package/dist/assets/MazReadingProgressBar.CwBVXE3g.css +0 -1
- package/dist/assets/MazSelect.DuRAHZGW.css +0 -1
- package/dist/assets/MazSlider.y4qpnD0N.css +0 -1
- package/dist/assets/MazSwitch.Bxmh2iFj.css +0 -1
- package/dist/assets/MazTable.DMlQdImb.css +0 -1
- package/dist/assets/MazTableRow.DgBXpK9J.css +0 -1
- package/dist/assets/MazTextarea.li9dWBax.css +0 -1
- package/dist/chunks/capitalize.BF6CDS_4.js +0 -6
- package/dist/chunks/checkAvailability.aTpZidex.js +0 -16
- package/dist/chunks/de.B15Maq8Z.js +0 -82
- package/dist/chunks/debounce.Brzkn9pm.js +0 -11
- package/dist/chunks/en.Q_4-KljL.js +0 -157
- package/dist/chunks/es.BV1TlfTw.js +0 -82
- package/dist/chunks/fr.BVPG-7Dk.js +0 -82
- package/dist/chunks/it.Be9xhI4P.js +0 -82
- package/dist/chunks/ja.CWU7KYEA.js +0 -82
- package/dist/chunks/pascalCase.GdDKKQ-O.js +0 -19
- package/dist/chunks/pt.CfaFSxVt.js +0 -82
- package/dist/chunks/sleep.BLRH1qZG.js +0 -6
- package/dist/chunks/truthyFilter.C2WOKUCG.js +0 -6
- package/dist/chunks/useTranslations.D5aoYwD7.js +0 -10
- package/dist/chunks/zh-CN.CCkuvk-E.js +0 -82
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { IconComponent } from '@maz-ui/icons';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
4
|
+
import { MazLinkProps } from './MazLink.vue';
|
|
5
|
+
import { MazPopoverProps } from './MazPopover.vue';
|
|
6
|
+
import { MazColor, MazSize } from './types';
|
|
7
|
+
type __VLS_Props = MazDropdownProps;
|
|
8
|
+
type MazDropdownItemBase = Record<string, unknown> & {
|
|
9
|
+
label: string;
|
|
10
|
+
class?: unknown;
|
|
11
|
+
color?: MazColor;
|
|
12
|
+
};
|
|
13
|
+
type MazDropdownLinkItem = MazDropdownItemBase & MazLinkProps & {
|
|
14
|
+
target?: string;
|
|
15
|
+
href?: string;
|
|
16
|
+
to?: RouteLocationRaw;
|
|
17
|
+
};
|
|
18
|
+
type MazDropdownActionItem = MazDropdownItemBase & {
|
|
19
|
+
onClick?: () => unknown;
|
|
20
|
+
};
|
|
21
|
+
export type MazDropdownMenuItem = (MazDropdownLinkItem & {
|
|
22
|
+
action?: never;
|
|
23
|
+
}) | (MazDropdownActionItem & {
|
|
24
|
+
href?: never;
|
|
25
|
+
to?: never;
|
|
26
|
+
target?: never;
|
|
27
|
+
});
|
|
28
|
+
export interface MazDropdownProps extends Omit<MazPopoverProps, 'modelValue'> {
|
|
29
|
+
/**
|
|
30
|
+
* Controls whether the dropdown menu is open
|
|
31
|
+
* @model
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
modelValue?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Inline styles to apply to the component root element
|
|
38
|
+
* @type {HTMLAttributes['style']}
|
|
39
|
+
*/
|
|
40
|
+
style?: HTMLAttributes['style'];
|
|
41
|
+
/**
|
|
42
|
+
* CSS classes to apply to the component root element
|
|
43
|
+
* @type {HTMLAttributes['class']}
|
|
44
|
+
*/
|
|
45
|
+
class?: HTMLAttributes['class'];
|
|
46
|
+
/**
|
|
47
|
+
* Menu items to display in the dropdown
|
|
48
|
+
* Each item can be either a link (with href/to properties) or an action (with onClick function)
|
|
49
|
+
* @type {MazDropdownMenuItem[]}
|
|
50
|
+
* @default []
|
|
51
|
+
* @example
|
|
52
|
+
* [
|
|
53
|
+
* { label: 'Profile', href: '/profile' },
|
|
54
|
+
* { label: 'Settings', onClick: () => console.log('Settings clicked') }
|
|
55
|
+
* ]
|
|
56
|
+
*/
|
|
57
|
+
items?: MazDropdownMenuItem[];
|
|
58
|
+
/**
|
|
59
|
+
* Unique identifier for the dropdown component
|
|
60
|
+
* @type {string}
|
|
61
|
+
*/
|
|
62
|
+
id?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Determines how the dropdown should be triggered
|
|
65
|
+
* @type {MazPopoverProps['trigger']}
|
|
66
|
+
* @values click, hover, manual, adaptive
|
|
67
|
+
* @default 'adaptive'
|
|
68
|
+
*/
|
|
69
|
+
trigger?: MazPopoverProps['trigger'];
|
|
70
|
+
/**
|
|
71
|
+
* Color theme for the dropdown button
|
|
72
|
+
* @type {MazColor}
|
|
73
|
+
* @values primary, secondary, info, success, warning, destructive, transparent, contrast, accent
|
|
74
|
+
* @default 'transparent'
|
|
75
|
+
*/
|
|
76
|
+
color?: MazColor;
|
|
77
|
+
/**
|
|
78
|
+
* Position of the menu relative to trigger
|
|
79
|
+
* @values auto, top, bottom, left, right, top-start, top-end, bottom-start, bottom-end, left-start, left-end, right-start, right-end
|
|
80
|
+
* @default 'auto'
|
|
81
|
+
*/
|
|
82
|
+
position?: MazPopoverProps['position'];
|
|
83
|
+
/**
|
|
84
|
+
* Preferred position of the menu relative to trigger when auto position is used
|
|
85
|
+
* @values auto, top, bottom, left, right, top-start, top-end, bottom-start, bottom-end, left-start, left-end, right-start, right-end
|
|
86
|
+
* @default 'bottom-start'
|
|
87
|
+
*/
|
|
88
|
+
preferPosition?: MazPopoverProps['preferPosition'];
|
|
89
|
+
/**
|
|
90
|
+
* Controls whether the dropdown menu closes when a menu item is clicked
|
|
91
|
+
* @type {boolean}
|
|
92
|
+
* @default true
|
|
93
|
+
*/
|
|
94
|
+
closeOnClick?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Disables the dropdown functionality
|
|
97
|
+
* @type {boolean}
|
|
98
|
+
* @default false
|
|
99
|
+
*/
|
|
100
|
+
disabled?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Controls whether to show the chevron icon in the trigger button
|
|
103
|
+
* @type {boolean}
|
|
104
|
+
* @default true
|
|
105
|
+
*/
|
|
106
|
+
chevron?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Accessible description for screen readers describing the dropdown functionality
|
|
109
|
+
* If not provided, the default translation of MazUiTranslations plugin will be used
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @default MazUiTranslationsSchema['dropdown']['screenReaderDescription']
|
|
112
|
+
*/
|
|
113
|
+
screenReaderDescription?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Additional CSS classes to apply to the dropdown menu panel
|
|
116
|
+
* Useful for customizing the dropdown appearance (background, border, etc.)
|
|
117
|
+
* @type {HTMLAttributes['class']}
|
|
118
|
+
*/
|
|
119
|
+
menuPanelClass?: HTMLAttributes['class'];
|
|
120
|
+
/**
|
|
121
|
+
* Inline styles to apply to the dropdown menu panel
|
|
122
|
+
* Useful for custom styling. You may use `!important` to override default styles
|
|
123
|
+
* @type {HTMLAttributes['style']}
|
|
124
|
+
*/
|
|
125
|
+
menuPanelStyle?: HTMLAttributes['style'];
|
|
126
|
+
/**
|
|
127
|
+
* Makes the dropdown button expand to full width of its container
|
|
128
|
+
* @type {boolean}
|
|
129
|
+
* @default false
|
|
130
|
+
*/
|
|
131
|
+
block?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Icon to use instead of the default chevron for the dropdown indicator
|
|
134
|
+
* Can be either an icon name string or a Vue component
|
|
135
|
+
* @type {string | IconComponent}
|
|
136
|
+
* @example 'arrow-down'
|
|
137
|
+
* @example ArrowDownIcon (import { ArrowDownIcon } from '@maz-ui/icons')
|
|
138
|
+
*/
|
|
139
|
+
dropdownIcon?: string | IconComponent;
|
|
140
|
+
/**
|
|
141
|
+
* Controls whether the dropdown icon rotates when the dropdown is opened
|
|
142
|
+
* @type {boolean}
|
|
143
|
+
* @default true
|
|
144
|
+
*/
|
|
145
|
+
dropdownIconAnimation?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Size of the dropdown button
|
|
148
|
+
* @type {MazSize}
|
|
149
|
+
* @values mini, xs, sm, md, lg, xl
|
|
150
|
+
* @default 'md'
|
|
151
|
+
*/
|
|
152
|
+
size?: MazSize;
|
|
153
|
+
}
|
|
154
|
+
type __VLS_PublicProps = {
|
|
155
|
+
modelValue?: boolean;
|
|
156
|
+
} & __VLS_Props;
|
|
157
|
+
declare function __VLS_template(): {
|
|
158
|
+
attrs: Partial<{}>;
|
|
159
|
+
slots: {
|
|
160
|
+
'screen-reader-description'?(_: {}): any;
|
|
161
|
+
trigger?(_: {
|
|
162
|
+
isOpen: boolean;
|
|
163
|
+
toggle: () => void;
|
|
164
|
+
close: () => void;
|
|
165
|
+
open: () => void;
|
|
166
|
+
}): any;
|
|
167
|
+
default?(_: {}): any;
|
|
168
|
+
'dropdown-icon'?(_: {
|
|
169
|
+
isOpen: boolean;
|
|
170
|
+
toggle: () => void;
|
|
171
|
+
close: () => void;
|
|
172
|
+
open: () => void;
|
|
173
|
+
}): any;
|
|
174
|
+
dropdown?(_: {
|
|
175
|
+
items: MazDropdownMenuItem[];
|
|
176
|
+
open: () => void;
|
|
177
|
+
close: () => void;
|
|
178
|
+
isOpen: true;
|
|
179
|
+
toggle: () => void;
|
|
180
|
+
}): any;
|
|
181
|
+
menuitem?(_: {
|
|
182
|
+
item: MazDropdownMenuItem;
|
|
183
|
+
open: () => void;
|
|
184
|
+
close: () => void;
|
|
185
|
+
isOpen: true;
|
|
186
|
+
toggle: () => void;
|
|
187
|
+
}): any;
|
|
188
|
+
'menuitem-label'?(_: {
|
|
189
|
+
item: Record<string, unknown> & {
|
|
190
|
+
label: string;
|
|
191
|
+
class?: unknown;
|
|
192
|
+
color?: MazColor;
|
|
193
|
+
} & MazLinkProps & {
|
|
194
|
+
target?: string;
|
|
195
|
+
href?: string;
|
|
196
|
+
to?: RouteLocationRaw;
|
|
197
|
+
} & {
|
|
198
|
+
action?: never;
|
|
199
|
+
};
|
|
200
|
+
open: () => void;
|
|
201
|
+
close: () => void;
|
|
202
|
+
isOpen: true;
|
|
203
|
+
toggle: () => void;
|
|
204
|
+
}): any;
|
|
205
|
+
'menuitem-label'?(_: {
|
|
206
|
+
item: Record<string, unknown> & {
|
|
207
|
+
label: string;
|
|
208
|
+
class?: unknown;
|
|
209
|
+
color?: MazColor;
|
|
210
|
+
} & {
|
|
211
|
+
onClick?: () => unknown;
|
|
212
|
+
} & {
|
|
213
|
+
href?: never;
|
|
214
|
+
to?: never;
|
|
215
|
+
target?: never;
|
|
216
|
+
};
|
|
217
|
+
open: () => void;
|
|
218
|
+
close: () => void;
|
|
219
|
+
isOpen: true;
|
|
220
|
+
toggle: () => void;
|
|
221
|
+
}): any;
|
|
222
|
+
};
|
|
223
|
+
refs: {};
|
|
224
|
+
rootEl: any;
|
|
225
|
+
};
|
|
226
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
227
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
228
|
+
"update:model-value": (value: boolean) => any;
|
|
229
|
+
"update:modelValue": (value: boolean) => any;
|
|
230
|
+
"menuitem-clicked": (event: Event) => any;
|
|
231
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
232
|
+
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
233
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
234
|
+
"onMenuitem-clicked"?: ((event: Event) => any) | undefined;
|
|
235
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
236
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
237
|
+
export default _default;
|
|
238
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
239
|
+
new (): {
|
|
240
|
+
$slots: S;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent, mergeModels, defineAsyncComponent, useModel, onBeforeMount, ref, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot, createCommentVNode, createElementVNode, createVNode, TransitionGroup, withCtx, Fragment, renderList, withModifiers, Transition, createBlock, mergeProps, toDisplayString, createTextVNode } from "vue";
|
|
2
2
|
import { MazCheckCircle, MazXCircle, MazTrash, MazArrowUpOnSquare } from "@maz-ui/icons";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useTranslations } from "@maz-ui/translations";
|
|
4
|
+
import { n } from "../chunks/sleep.Ci7GE4BQ.js";
|
|
5
5
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
6
6
|
import { useDropzone } from "../composables/useDropzone.js";
|
|
7
7
|
import MazBtn from "./MazBtn.js";
|
|
8
8
|
import MazIcon from "./MazIcon.js";
|
|
9
9
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
10
|
-
import '../assets/MazDropzone.
|
|
10
|
+
import '../assets/MazDropzone._2HwHowu.css';const _hoisted_1 = ["for"], _hoisted_2 = { class: "m-dropzone__icon-container" }, _hoisted_3 = { class: "m-dropzone__description" }, _hoisted_4 = { class: "m-dropzone__file-info" }, _hoisted_5 = { class: "m-dropzone__file-name" }, _hoisted_6 = { class: "m-dropzone__file-size" }, _hoisted_7 = { class: "m-dropzone__content" }, _hoisted_8 = { class: "m-dropzone__upload-text" }, _hoisted_9 = { class: "m-dropzone__divider" }, _hoisted_10 = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "m-dropzone__info-text"
|
|
13
13
|
}, _hoisted_11 = { key: 0 }, _hoisted_12 = { key: 0 }, _hoisted_13 = ["id", "multiple", "accept", "disabled"], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -94,7 +94,7 @@ import '../assets/MazDropzone.C2SunLAI.css';const _hoisted_1 = ["for"], _hoisted
|
|
|
94
94
|
} catch (error) {
|
|
95
95
|
filesData.value = filesData.value.map((f) => ({ ...f, uploading: !1, success: !1, error: !0 })), emits("upload-error-multiple", { files: filesData.value.map((f) => f.file), code: "FILE_UPLOAD_ERROR_MULTIPLE", error });
|
|
96
96
|
} finally {
|
|
97
|
-
isUploading.value = !1, await
|
|
97
|
+
isUploading.value = !1, await n(1e3), filesData.value = filesData.value.filter((f) => f.error);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
async function uploadFiles() {
|
|
@@ -123,7 +123,7 @@ import '../assets/MazDropzone.C2SunLAI.css';const _hoisted_1 = ["for"], _hoisted
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
} finally {
|
|
126
|
-
isUploading.value = !1, await
|
|
126
|
+
isUploading.value = !1, await n(1e3), filesData.value = filesData.value.filter((f) => f.error);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
async function getFileData(file) {
|
|
@@ -498,7 +498,7 @@ import '../assets/MazDropzone.C2SunLAI.css';const _hoisted_1 = ["for"], _hoisted
|
|
|
498
498
|
}, null, 40, _hoisted_13)
|
|
499
499
|
], 14, _hoisted_1));
|
|
500
500
|
}
|
|
501
|
-
}), MazDropzone = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
501
|
+
}), MazDropzone = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-69969cc3"]]);
|
|
502
502
|
export {
|
|
503
503
|
MazDropzone as default
|
|
504
504
|
};
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { MazBtnProps } from './MazBtn.vue';
|
|
2
|
+
import { MazSpinnerProps } from './MazSpinner.vue';
|
|
3
|
+
import { MazColor } from './types';
|
|
4
|
+
type __VLS_Props = MazDropzoneProps;
|
|
5
|
+
export type MazDropzoneErrorCode = 'FILE_SIZE_EXCEEDED' | 'MAX_FILES_EXCEEDED' | 'FILE_TYPE_NOT_ALLOWED' | 'FILE_DUPLICATED' | 'FILE_UPLOAD_ERROR' | 'NO_FILES_TO_UPLOAD' | 'FILE_UPLOAD_ERROR_MULTIPLE' | 'NO_URL' | 'FILE_SIZE_TOO_SMALL';
|
|
6
|
+
export type MazDropzoneProps = {
|
|
7
|
+
/**
|
|
8
|
+
* The id of the dropzone
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Allow multiple files to be uploaded.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
multiple?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Allowed data types/MIME types for files (e.g. ['application/json'])
|
|
18
|
+
* @default ['*\/*']
|
|
19
|
+
*/
|
|
20
|
+
dataTypes?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Prevent default behavior for unhandled drag & drop events.
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
preventDefaultForUnhandled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Maximum file size in MB.
|
|
28
|
+
*/
|
|
29
|
+
maxFileSize?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum number of files allowed.
|
|
32
|
+
*/
|
|
33
|
+
maxFiles?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Disable the dropzone
|
|
36
|
+
*/
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Show file preview
|
|
40
|
+
*/
|
|
41
|
+
preview?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Minimum file size in MB
|
|
44
|
+
*/
|
|
45
|
+
minFileSize?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Allow duplicates
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
allowDuplicates?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Translations
|
|
53
|
+
* @description Custom translations for the component
|
|
54
|
+
* @default {
|
|
55
|
+
* dragAndDrop: 'Drag and drop your files',
|
|
56
|
+
* fileMaxCount: 'Maximum {count} files',
|
|
57
|
+
* fileMaxSize: 'Maximum {size} MB',
|
|
58
|
+
* fileTypes: 'Allowed file types: {types}',
|
|
59
|
+
* selectFile: 'Select file',
|
|
60
|
+
* divider: 'or'
|
|
61
|
+
* }
|
|
62
|
+
*/
|
|
63
|
+
translations?: {
|
|
64
|
+
dragAndDrop?: string;
|
|
65
|
+
fileMaxCount?: string;
|
|
66
|
+
fileMaxSize?: string;
|
|
67
|
+
fileTypes?: string;
|
|
68
|
+
selectFile?: string;
|
|
69
|
+
divider?: string;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Main color of the component
|
|
73
|
+
* @default 'primary'
|
|
74
|
+
*/
|
|
75
|
+
color?: MazColor;
|
|
76
|
+
/**
|
|
77
|
+
* MazBtn props [MazBtn props](/components/maz-btn#props)
|
|
78
|
+
* @default {}
|
|
79
|
+
*/
|
|
80
|
+
selectFileBtnProps?: MazBtnProps;
|
|
81
|
+
/**
|
|
82
|
+
* MazBtn props [MazBtn props](/components/maz-btn#props)
|
|
83
|
+
* @default {}
|
|
84
|
+
*/
|
|
85
|
+
removeFileBtnProps?: MazBtnProps;
|
|
86
|
+
/**
|
|
87
|
+
* MazSpinner props [MazSpinner props](/components/maz-spinner#props)
|
|
88
|
+
* @default {}
|
|
89
|
+
*/
|
|
90
|
+
spinnerProps?: MazSpinnerProps;
|
|
91
|
+
/**
|
|
92
|
+
* Auto upload files
|
|
93
|
+
* @description If set to `multiple`, all files will be uploaded at once in a single request. If set to `single`, files will be uploaded one by one in separate requests. If set to `false`, no upload will be done automatically.
|
|
94
|
+
* @default false
|
|
95
|
+
*/
|
|
96
|
+
autoUpload?: 'multiple' | 'single' | false;
|
|
97
|
+
/**
|
|
98
|
+
* Upload URL
|
|
99
|
+
* @description If set, files will be uploaded to the given URL.
|
|
100
|
+
*/
|
|
101
|
+
url?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Request options
|
|
104
|
+
* @description Request options to be used for the upload (using fetch) [Request options](https://developer.mozilla.org/en-US/docs/Web/API/fetch#options)
|
|
105
|
+
* @example `{ mode: 'no-cors', headers: { 'Content-Type': 'multipart/form-data', 'Authorization': 'Bearer 1234567890' } }`
|
|
106
|
+
*/
|
|
107
|
+
requestOptions?: RequestInit;
|
|
108
|
+
/**
|
|
109
|
+
* Transform the body of the request
|
|
110
|
+
*/
|
|
111
|
+
transformBody?: (formData: FormData) => RequestInit['body'];
|
|
112
|
+
};
|
|
113
|
+
export interface MazDropzoneFileData {
|
|
114
|
+
file: File;
|
|
115
|
+
name?: string;
|
|
116
|
+
size?: number;
|
|
117
|
+
type?: string;
|
|
118
|
+
lastModified?: number;
|
|
119
|
+
sizeInMb?: string;
|
|
120
|
+
thumbnail?: string | undefined;
|
|
121
|
+
lastModifiedDate?: Date;
|
|
122
|
+
uploading?: boolean;
|
|
123
|
+
success?: boolean;
|
|
124
|
+
error?: boolean;
|
|
125
|
+
url?: string;
|
|
126
|
+
}
|
|
127
|
+
declare function getFormData(file: File): FormData;
|
|
128
|
+
declare function getFormDataMultiple(): FormData;
|
|
129
|
+
declare function uploadFilesMultiple(): Promise<void>;
|
|
130
|
+
declare function uploadFiles(): Promise<void>;
|
|
131
|
+
declare function handleFileInputClick(): void;
|
|
132
|
+
declare function reset(): void;
|
|
133
|
+
declare function addFile(file: File): void;
|
|
134
|
+
declare function removeFile(file: File): void;
|
|
135
|
+
type __VLS_PublicProps = {
|
|
136
|
+
modelValue?: MazDropzoneFileData[];
|
|
137
|
+
} & __VLS_Props;
|
|
138
|
+
declare function __VLS_template(): {
|
|
139
|
+
attrs: Partial<{}>;
|
|
140
|
+
slots: {
|
|
141
|
+
'files-area'?(_: {
|
|
142
|
+
filesData: MazDropzoneFileData[];
|
|
143
|
+
}): any;
|
|
144
|
+
'file-item'?(_: {
|
|
145
|
+
file: MazDropzoneFileData;
|
|
146
|
+
}): any;
|
|
147
|
+
'no-files-area'?(_: {
|
|
148
|
+
selectFile: typeof handleFileInputClick;
|
|
149
|
+
}): any;
|
|
150
|
+
'upload-icon'?(_: {}): any;
|
|
151
|
+
};
|
|
152
|
+
refs: {
|
|
153
|
+
dropZoneRef: HTMLLabelElement;
|
|
154
|
+
fileInput: HTMLInputElement;
|
|
155
|
+
};
|
|
156
|
+
rootEl: HTMLLabelElement;
|
|
157
|
+
};
|
|
158
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
159
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
160
|
+
/**
|
|
161
|
+
* Upload files
|
|
162
|
+
* @description With this method, the files are uploaded one by one (a request for each file)
|
|
163
|
+
* @usage `mazDropzoneInstance.value?.uploadFiles()`
|
|
164
|
+
*/
|
|
165
|
+
uploadFiles: typeof uploadFiles;
|
|
166
|
+
/**
|
|
167
|
+
* Upload multiple files
|
|
168
|
+
* @description With this method, the files are uploaded all at once in a single request
|
|
169
|
+
* @usage `mazDropzoneInstance.value?.uploadFilesMultiple()`
|
|
170
|
+
*/
|
|
171
|
+
uploadFilesMultiple: typeof uploadFilesMultiple;
|
|
172
|
+
/**
|
|
173
|
+
* Get form data
|
|
174
|
+
* @description Get the form data of one file
|
|
175
|
+
* @usage `const formData = mazDropzoneInstance.value?.getFormData(file)`
|
|
176
|
+
*/
|
|
177
|
+
getFormData: typeof getFormData;
|
|
178
|
+
/**
|
|
179
|
+
* Get form data multiple
|
|
180
|
+
* @description Get the form data of all files
|
|
181
|
+
* @usage `const formData = mazDropzoneInstance.value?.getFormDataMultiple()`
|
|
182
|
+
*/
|
|
183
|
+
getFormDataMultiple: typeof getFormDataMultiple;
|
|
184
|
+
/**
|
|
185
|
+
* Reset the files
|
|
186
|
+
* @description Remove all files from the dropzone
|
|
187
|
+
* @usage `mazDropzoneInstance.value?.reset()`
|
|
188
|
+
*/
|
|
189
|
+
reset: typeof reset;
|
|
190
|
+
/**
|
|
191
|
+
* Check if the files are uploading
|
|
192
|
+
* @type boolean
|
|
193
|
+
* @description Check if the files are uploading
|
|
194
|
+
* @usage `const isUploading = mazDropzoneInstance.value?.isUploading`
|
|
195
|
+
*/
|
|
196
|
+
isUploading: import('vue').Ref<boolean, boolean>;
|
|
197
|
+
/**
|
|
198
|
+
* Add a file to the dropzone
|
|
199
|
+
* @description Add a file manually to the dropzone
|
|
200
|
+
* @usage `mazDropzoneInstance.value?.addFile(file)`
|
|
201
|
+
*/
|
|
202
|
+
addFile: typeof addFile;
|
|
203
|
+
/**
|
|
204
|
+
* Remove a file from the dropzone
|
|
205
|
+
* @description Remove a file manually from the dropzone
|
|
206
|
+
* @usage `mazDropzoneInstance.value?.removeFile(file)`
|
|
207
|
+
*/
|
|
208
|
+
removeFile: typeof removeFile;
|
|
209
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
210
|
+
drop: (values: {
|
|
211
|
+
files: File[] | null;
|
|
212
|
+
event: DragEvent;
|
|
213
|
+
}) => any;
|
|
214
|
+
error: (values: {
|
|
215
|
+
files: File[] | null;
|
|
216
|
+
event: DragEvent | null;
|
|
217
|
+
code: MazDropzoneErrorCode;
|
|
218
|
+
}) => any;
|
|
219
|
+
add: (value: File) => any;
|
|
220
|
+
enter: (values: {
|
|
221
|
+
files: File[] | null;
|
|
222
|
+
event: DragEvent;
|
|
223
|
+
}) => any;
|
|
224
|
+
over: (values: {
|
|
225
|
+
files: File[] | null;
|
|
226
|
+
event: DragEvent;
|
|
227
|
+
}) => any;
|
|
228
|
+
leave: (values: {
|
|
229
|
+
files: File[] | null;
|
|
230
|
+
event: DragEvent;
|
|
231
|
+
}) => any;
|
|
232
|
+
"update:modelValue": (value: MazDropzoneFileData[]) => any;
|
|
233
|
+
remove: (value: File) => any;
|
|
234
|
+
"upload-error": (values: {
|
|
235
|
+
file: File;
|
|
236
|
+
code: MazDropzoneErrorCode;
|
|
237
|
+
error: unknown;
|
|
238
|
+
}) => any;
|
|
239
|
+
"upload-error-multiple": (values: {
|
|
240
|
+
files: File[];
|
|
241
|
+
code: MazDropzoneErrorCode;
|
|
242
|
+
error: unknown;
|
|
243
|
+
}) => any;
|
|
244
|
+
"upload-success": (values: {
|
|
245
|
+
file: File;
|
|
246
|
+
response?: Response;
|
|
247
|
+
}) => any;
|
|
248
|
+
"upload-success-multiple": (values: {
|
|
249
|
+
files: File[];
|
|
250
|
+
response?: Response;
|
|
251
|
+
}) => any;
|
|
252
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
253
|
+
onDrop?: ((values: {
|
|
254
|
+
files: File[] | null;
|
|
255
|
+
event: DragEvent;
|
|
256
|
+
}) => any) | undefined;
|
|
257
|
+
onError?: ((values: {
|
|
258
|
+
files: File[] | null;
|
|
259
|
+
event: DragEvent | null;
|
|
260
|
+
code: MazDropzoneErrorCode;
|
|
261
|
+
}) => any) | undefined;
|
|
262
|
+
onAdd?: ((value: File) => any) | undefined;
|
|
263
|
+
onEnter?: ((values: {
|
|
264
|
+
files: File[] | null;
|
|
265
|
+
event: DragEvent;
|
|
266
|
+
}) => any) | undefined;
|
|
267
|
+
onOver?: ((values: {
|
|
268
|
+
files: File[] | null;
|
|
269
|
+
event: DragEvent;
|
|
270
|
+
}) => any) | undefined;
|
|
271
|
+
onLeave?: ((values: {
|
|
272
|
+
files: File[] | null;
|
|
273
|
+
event: DragEvent;
|
|
274
|
+
}) => any) | undefined;
|
|
275
|
+
"onUpdate:modelValue"?: ((value: MazDropzoneFileData[]) => any) | undefined;
|
|
276
|
+
onRemove?: ((value: File) => any) | undefined;
|
|
277
|
+
"onUpload-error"?: ((values: {
|
|
278
|
+
file: File;
|
|
279
|
+
code: MazDropzoneErrorCode;
|
|
280
|
+
error: unknown;
|
|
281
|
+
}) => any) | undefined;
|
|
282
|
+
"onUpload-error-multiple"?: ((values: {
|
|
283
|
+
files: File[];
|
|
284
|
+
code: MazDropzoneErrorCode;
|
|
285
|
+
error: unknown;
|
|
286
|
+
}) => any) | undefined;
|
|
287
|
+
"onUpload-success"?: ((values: {
|
|
288
|
+
file: File;
|
|
289
|
+
response?: Response;
|
|
290
|
+
}) => any) | undefined;
|
|
291
|
+
"onUpload-success-multiple"?: ((values: {
|
|
292
|
+
files: File[];
|
|
293
|
+
response?: Response;
|
|
294
|
+
}) => any) | undefined;
|
|
295
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
296
|
+
dropZoneRef: HTMLLabelElement;
|
|
297
|
+
fileInput: HTMLInputElement;
|
|
298
|
+
}, HTMLLabelElement>;
|
|
299
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
300
|
+
export default _default;
|
|
301
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
302
|
+
new (): {
|
|
303
|
+
$slots: S;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface MazExpandAnimationProps {
|
|
2
|
+
/**
|
|
3
|
+
* Duration of the animation in milliseconds
|
|
4
|
+
* @default '300ms'
|
|
5
|
+
*/
|
|
6
|
+
duration?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Timing function of the animation
|
|
9
|
+
* @default 'ease-in-out'
|
|
10
|
+
*/
|
|
11
|
+
timingFunction?: string;
|
|
12
|
+
}
|
|
13
|
+
type __VLS_Props = MazExpandAnimationProps;
|
|
14
|
+
type __VLS_PublicProps = {
|
|
15
|
+
modelValue?: boolean;
|
|
16
|
+
} & __VLS_Props;
|
|
17
|
+
declare function __VLS_template(): {
|
|
18
|
+
attrs: Partial<{}>;
|
|
19
|
+
slots: {
|
|
20
|
+
default?(_: {}): any;
|
|
21
|
+
};
|
|
22
|
+
refs: {
|
|
23
|
+
expandAnimationRef: HTMLDivElement;
|
|
24
|
+
};
|
|
25
|
+
rootEl: any;
|
|
26
|
+
};
|
|
27
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
"update:modelValue": (value: boolean) => any;
|
|
30
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
31
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
duration: string;
|
|
34
|
+
timingFunction: string;
|
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
36
|
+
expandAnimationRef: HTMLDivElement;
|
|
37
|
+
}, any>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { MazColor } from './types';
|
|
2
|
+
export interface MazFullscreenLoaderProps {
|
|
3
|
+
/** The color of the spinner */
|
|
4
|
+
color?: MazColor;
|
|
5
|
+
/** The size of the spinner */
|
|
6
|
+
size?: string;
|
|
7
|
+
/** The selector to teleport the loader */
|
|
8
|
+
teleportSelector?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: any;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<MazFullscreenLoaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazFullscreenLoaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, onBeforeMount, computed, createElementBlock, createCommentVNode, openBlock, normalizeStyle, normalizeClass, createElementVNode, Fragment, renderList, withDirectives, unref, toDisplayString, createVNode } from "vue";
|
|
2
2
|
import { MazNoImage } from "@maz-ui/icons";
|
|
3
3
|
import { d as directive } from "../chunks/lazy-img.directive.BLFnGqQa.js";
|
|
4
|
-
import { d as directive$1 } from "../chunks/fullscreen-img.directive.
|
|
4
|
+
import { d as directive$1 } from "../chunks/fullscreen-img.directive.D9oQ3Gni.js";
|
|
5
5
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
6
|
-
import '../assets/MazGallery.
|
|
6
|
+
import '../assets/MazGallery.BTNB3D6k.css';const _hoisted_1 = { class: "m-gallery__wrapper maz-flex maz-flex-1" }, _hoisted_2 = ["alt"], _hoisted_3 = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "m-gallery__remaining-layer"
|
|
9
9
|
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -85,7 +85,7 @@ import '../assets/MazGallery.DZ3TyggM.css';const _hoisted_1 = { class: "m-galler
|
|
|
85
85
|
], 2))), 128)),
|
|
86
86
|
_ctx.hasEmptyLayer && _ctx.images.length === 0 ? (openBlock(), createElementBlock("div", {
|
|
87
87
|
key: 0,
|
|
88
|
-
class: normalizeClass(["
|
|
88
|
+
class: normalizeClass(["m-gallery__empty-layer", { "maz-rounded-xl": _ctx.radius }]),
|
|
89
89
|
style: normalizeStyle([sizeStyle.value])
|
|
90
90
|
}, [
|
|
91
91
|
createVNode(unref(MazNoImage), { class: "maz-size-8" })
|
|
@@ -99,7 +99,7 @@ import '../assets/MazGallery.DZ3TyggM.css';const _hoisted_1 = { class: "m-galler
|
|
|
99
99
|
])), 128))
|
|
100
100
|
], 6)) : createCommentVNode("", !0);
|
|
101
101
|
}
|
|
102
|
-
}), MazGallery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
102
|
+
}), MazGallery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e5e0c058"]]);
|
|
103
103
|
export {
|
|
104
104
|
MazGallery as default
|
|
105
105
|
};
|