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,171 @@
|
|
|
1
|
+
import { MazUiTranslationsNestedSchema } from '@maz-ui/translations';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
import { CodesType, DisplayNameCode, DisplayNamesOptions } from '../composables/useDisplayNames';
|
|
4
|
+
import { MazPopoverProps } from './MazPopover.vue';
|
|
5
|
+
import { MazSelectProps } from './MazSelect.vue';
|
|
6
|
+
import { MazColor, MazSize } from './types';
|
|
7
|
+
export interface MazSelectCountryProps<Option extends {
|
|
8
|
+
name: string;
|
|
9
|
+
code: DisplayNameCode | string;
|
|
10
|
+
} = {
|
|
11
|
+
name: string;
|
|
12
|
+
code: string;
|
|
13
|
+
}> extends Omit<MazSelectProps<Option['code'], Option, false>, 'options' | 'multiple'> {
|
|
14
|
+
/**
|
|
15
|
+
* Style attribut of the component root element
|
|
16
|
+
* @type {HTMLAttributes['style']}
|
|
17
|
+
*/
|
|
18
|
+
style?: HTMLAttributes['style'];
|
|
19
|
+
/**
|
|
20
|
+
* Class attribut of the component root element
|
|
21
|
+
* @type {HTMLAttributes['class']}
|
|
22
|
+
*/
|
|
23
|
+
class?: HTMLAttributes['class'];
|
|
24
|
+
/**
|
|
25
|
+
* Id of the component
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Color of the component
|
|
30
|
+
* @type {MazColor}
|
|
31
|
+
* @default primary
|
|
32
|
+
*/
|
|
33
|
+
color?: MazColor;
|
|
34
|
+
/**
|
|
35
|
+
* Size of the component
|
|
36
|
+
* @type {MazSize}
|
|
37
|
+
* @default md
|
|
38
|
+
*/
|
|
39
|
+
size?: MazSize;
|
|
40
|
+
/**
|
|
41
|
+
* Preferred countries to display
|
|
42
|
+
* @type {Option['code'][]}
|
|
43
|
+
*/
|
|
44
|
+
preferredCodes?: Option['code'][];
|
|
45
|
+
/**
|
|
46
|
+
* Ignored countries to display
|
|
47
|
+
* @type {Option['code'][]}
|
|
48
|
+
*/
|
|
49
|
+
ignoredCodes?: Option['code'][];
|
|
50
|
+
/**
|
|
51
|
+
* Only countries to display
|
|
52
|
+
* @type {Option['code'][]}
|
|
53
|
+
*/
|
|
54
|
+
onlyCodes?: Option['code'][];
|
|
55
|
+
/**
|
|
56
|
+
* Position of the list
|
|
57
|
+
* @type {MazPopoverProps['position']}
|
|
58
|
+
* @default 'auto'
|
|
59
|
+
*/
|
|
60
|
+
listPosition?: MazPopoverProps['position'];
|
|
61
|
+
/**
|
|
62
|
+
* Hide flags
|
|
63
|
+
*/
|
|
64
|
+
hideFlags?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Display search input in options list
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @default true
|
|
69
|
+
*/
|
|
70
|
+
search?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Show code on list
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
showCodeInList?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Locale
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @default locale defined within the maz-ui plugin or browser locale or en-US
|
|
80
|
+
*/
|
|
81
|
+
locale?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Success state
|
|
84
|
+
*/
|
|
85
|
+
success?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Error state
|
|
88
|
+
*/
|
|
89
|
+
error?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Warning state
|
|
92
|
+
*/
|
|
93
|
+
warning?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
displayCode?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Search threshold
|
|
100
|
+
*/
|
|
101
|
+
searchThreshold?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Translations
|
|
104
|
+
* @type {Partial<MazUiTranslationsNestedSchema['selectCountry']>}
|
|
105
|
+
* @default MazUiTranslationsNestedSchema['selectCountry']
|
|
106
|
+
*/
|
|
107
|
+
translations?: Partial<MazUiTranslationsNestedSchema['selectCountry']>;
|
|
108
|
+
/**
|
|
109
|
+
* Hint message displayed
|
|
110
|
+
*/
|
|
111
|
+
hint?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Options
|
|
114
|
+
* @type {Option[]}
|
|
115
|
+
*/
|
|
116
|
+
options?: Option[];
|
|
117
|
+
/**
|
|
118
|
+
* Display name type
|
|
119
|
+
* @type {Intl.DisplayNamesOptions}
|
|
120
|
+
* @default { type: 'region', languageDisplay: 'standard', fallback: 'code', style: 'long' }
|
|
121
|
+
*/
|
|
122
|
+
displayNamesOptions?: DisplayNamesOptions;
|
|
123
|
+
/**
|
|
124
|
+
* Codes type
|
|
125
|
+
* @type {CodesType}
|
|
126
|
+
* @default defined by displayNamesOptions.type (if 'region', 'country' is used, otherwise 'iso')
|
|
127
|
+
* @values 'iso' | 'bcp' | 'country' | 'all'
|
|
128
|
+
*/
|
|
129
|
+
codesType?: CodesType;
|
|
130
|
+
/**
|
|
131
|
+
* Open the select
|
|
132
|
+
* @type {boolean}
|
|
133
|
+
* @default false
|
|
134
|
+
*/
|
|
135
|
+
open?: boolean;
|
|
136
|
+
}
|
|
137
|
+
declare const _default: <Option extends {
|
|
138
|
+
name: string;
|
|
139
|
+
code: DisplayNameCode | string;
|
|
140
|
+
}>(__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<{
|
|
141
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
142
|
+
readonly "onUpdate:model-value"?: ((value?: Option["code"] | undefined) => any) | undefined;
|
|
143
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:model-value"> & MazSelectCountryProps<Option> & Partial<{}>> & import('vue').PublicProps;
|
|
144
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
145
|
+
attrs: any;
|
|
146
|
+
slots: {
|
|
147
|
+
'selector-flag'?(_: {
|
|
148
|
+
countryCode: Option["code"] | undefined;
|
|
149
|
+
}): any;
|
|
150
|
+
'no-results'?(_: {}): any;
|
|
151
|
+
'country-list-flag'?(_: {
|
|
152
|
+
option: Option;
|
|
153
|
+
isSelected: boolean;
|
|
154
|
+
}): any;
|
|
155
|
+
'country-list-code'?(_: {
|
|
156
|
+
option: Option;
|
|
157
|
+
isSelected: boolean;
|
|
158
|
+
}): any;
|
|
159
|
+
'country-list-name'?(_: {
|
|
160
|
+
option: Option;
|
|
161
|
+
isSelected: boolean;
|
|
162
|
+
}): any;
|
|
163
|
+
};
|
|
164
|
+
emit: (evt: "update:model-value", value?: Option["code"] | undefined) => void;
|
|
165
|
+
}>) => import('vue').VNode & {
|
|
166
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
167
|
+
};
|
|
168
|
+
export default _default;
|
|
169
|
+
type __VLS_PrettifyLocal<T> = {
|
|
170
|
+
[K in keyof T]: T[K];
|
|
171
|
+
} & {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface IPosObject {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
}
|
|
5
|
+
export declare function getOffset(elem: HTMLDivElement): IPosObject;
|
|
6
|
+
/**
|
|
7
|
+
* Get the position of the mouse/finger in the element
|
|
8
|
+
* @param e Trigger event
|
|
9
|
+
* @param elem Container element
|
|
10
|
+
* @param isReverse From the right/bottom
|
|
11
|
+
*/
|
|
12
|
+
export declare function getPos(e: MouseEvent | TouchEvent, elem: HTMLDivElement, isReverse?: boolean): IPosObject;
|
|
13
|
+
export declare function isBetween(value: number, prev: number, next: number, direction: string): boolean;
|
|
14
|
+
export declare function getOpacityCoeff(index: number, middle: number, length: number): number;
|
|
15
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, onMounted, onBeforeUnmount, nextTick, createElementBlock, openBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, toDisplayString } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { i } from "../chunks/debounce.DhXdop6X.js";
|
|
3
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
|
-
import '../assets/MazSlider.
|
|
4
|
+
import '../assets/MazSlider.WcnBC9zc.css';function getOffset(elem) {
|
|
5
5
|
const doc = document.documentElement, body = document.body, rect = elem.getBoundingClientRect();
|
|
6
6
|
return {
|
|
7
7
|
y: rect.top + (window.pageYOffset || doc.scrollTop) - (doc.clientTop || body.clientTop || 0),
|
|
@@ -52,7 +52,7 @@ const _hoisted_1 = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], _hoisted
|
|
|
52
52
|
() => [computedValue.value, __props.min, __props.max, __props.log].join(","),
|
|
53
53
|
() => buildComponent(!0)
|
|
54
54
|
);
|
|
55
|
-
const resizeListenerFunction =
|
|
55
|
+
const resizeListenerFunction = i(() => buildComponent(), 300);
|
|
56
56
|
onMounted(() => {
|
|
57
57
|
buildComponent(!0), window.addEventListener("resize", resizeListenerFunction);
|
|
58
58
|
}), onBeforeUnmount(() => {
|
|
@@ -66,11 +66,11 @@ const _hoisted_1 = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], _hoisted
|
|
|
66
66
|
function roundToStep(value) {
|
|
67
67
|
return Math.round((value - __props.min) / __props.step) * __props.step + __props.min;
|
|
68
68
|
}
|
|
69
|
-
function cursorKeyDown(event,
|
|
70
|
-
event.key === "ArrowLeft" ? tmpValues.value && isBetween(tmpValues.value[
|
|
69
|
+
function cursorKeyDown(event, i2) {
|
|
70
|
+
event.key === "ArrowLeft" ? tmpValues.value && isBetween(tmpValues.value[i2] - __props.step, tmpValues.value[i2 - 1], tmpValues.value[i2 + 1], "minus") && (tmpValues.value[i2] = Math.max(__props.min, tmpValues.value[i2] - __props.step), emitValue(tmpValues.value)) : event.key === "ArrowRight" && tmpValues.value && isBetween(tmpValues.value[i2] + __props.step, tmpValues.value[i2 - 1], tmpValues.value[i2 + 1], "plus") && (tmpValues.value[i2] = Math.min(__props.max, tmpValues.value[i2] + __props.step), emitValue(tmpValues.value));
|
|
71
71
|
}
|
|
72
|
-
function blurCursor(
|
|
73
|
-
activeCursor.value = void 0, setBtnStyle(
|
|
72
|
+
function blurCursor(i2) {
|
|
73
|
+
activeCursor.value = void 0, setBtnStyle(i2);
|
|
74
74
|
}
|
|
75
75
|
function checkValues() {
|
|
76
76
|
const valuesChecked = computedValue.value.map((v) => {
|
|
@@ -83,20 +83,20 @@ const _hoisted_1 = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], _hoisted
|
|
|
83
83
|
const valueToEmit = hasMultipleValues.value ? [...values] : values[0];
|
|
84
84
|
emits("update:model-value", valueToEmit);
|
|
85
85
|
}
|
|
86
|
-
function getLabel(
|
|
87
|
-
return __props.labels ? __props.labels[
|
|
86
|
+
function getLabel(i2) {
|
|
87
|
+
return __props.labels ? __props.labels[i2] : void 0;
|
|
88
88
|
}
|
|
89
|
-
function setBtnDividers(
|
|
90
|
-
setBtnStyle(
|
|
89
|
+
function setBtnDividers(i2) {
|
|
90
|
+
setBtnStyle(i2), __props.divider && setDividers();
|
|
91
91
|
}
|
|
92
|
-
async function setBtnStyle(
|
|
92
|
+
async function setBtnStyle(i2) {
|
|
93
93
|
await nextTick();
|
|
94
94
|
const currentCursor = document.querySelectorAll(".m-slider .m-slider__btn");
|
|
95
95
|
if (currentCursor) {
|
|
96
|
-
const width = currentCursor[
|
|
97
|
-
left: typeof buttonPositions.value?.[
|
|
96
|
+
const width = currentCursor[i2]?.clientWidth + 16, btnStyle = {
|
|
97
|
+
left: typeof buttonPositions.value?.[i2] == "number" ? `${buttonPositions.value[i2] - width / 2 || 1}px` : ""
|
|
98
98
|
};
|
|
99
|
-
buttonStyles.value[
|
|
99
|
+
buttonStyles.value[i2] = btnStyle;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
function setDividers() {
|
|
@@ -104,11 +104,11 @@ const _hoisted_1 = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], _hoisted
|
|
|
104
104
|
const base = [...buttonPositions.value];
|
|
105
105
|
base.push(0);
|
|
106
106
|
const baseLength = base.length, middle = Math.round(baseLength / 2);
|
|
107
|
-
dividers.value = base.map((pos,
|
|
108
|
-
left:
|
|
107
|
+
dividers.value = base.map((pos, i2) => ({
|
|
108
|
+
left: i2 === 0 ? 0 : `${base[i2 - 1]}px`,
|
|
109
109
|
// ATTENTION: buttonPositions.value[i - 1]
|
|
110
|
-
right:
|
|
111
|
-
backgroundColor: middle ===
|
|
110
|
+
right: i2 + 1 === baseLength ? 0 : `calc( 100% - ${pos}px )`,
|
|
111
|
+
backgroundColor: middle === i2 + 1 ? void 0 : i2 < middle ? `rgba(255, 255, 255, ${getOpacityCoeff(i2, middle, baseLength)})` : `rgba(0, 0, 0, ${getOpacityCoeff(i2, middle, baseLength)})`
|
|
112
112
|
// darken
|
|
113
113
|
}));
|
|
114
114
|
}
|
|
@@ -132,8 +132,8 @@ const _hoisted_1 = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], _hoisted
|
|
|
132
132
|
);
|
|
133
133
|
console.warn("[maz-ui][MazSlider] ref component not found");
|
|
134
134
|
}
|
|
135
|
-
function handleMousedown(_event,
|
|
136
|
-
activeCursor.value === void 0 && (activeCursor.value =
|
|
135
|
+
function handleMousedown(_event, i2) {
|
|
136
|
+
activeCursor.value === void 0 && (activeCursor.value = i2, setBtnDividers(i2));
|
|
137
137
|
}
|
|
138
138
|
async function handleMouseup() {
|
|
139
139
|
if (activeCursor.value === void 0)
|
|
@@ -174,32 +174,32 @@ const _hoisted_1 = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], _hoisted
|
|
|
174
174
|
"aria-valuemin": _ctx.min,
|
|
175
175
|
"aria-valuemax": _ctx.max
|
|
176
176
|
}, [
|
|
177
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(dividers.value, (div,
|
|
178
|
-
key: `divider-${
|
|
177
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(dividers.value, (div, i2) => (openBlock(), createElementBlock("div", {
|
|
178
|
+
key: `divider-${i2}`,
|
|
179
179
|
style: normalizeStyle([div]),
|
|
180
180
|
class: "m-slider__divider"
|
|
181
181
|
}, null, 4))), 128)),
|
|
182
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(computedValue.value, (_btn,
|
|
183
|
-
key: `cursor-${
|
|
182
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(computedValue.value, (_btn, i2) => (openBlock(), createElementBlock("button", {
|
|
183
|
+
key: `cursor-${i2}`,
|
|
184
184
|
type: "button",
|
|
185
|
-
"data-label": getLabel(
|
|
185
|
+
"data-label": getLabel(i2),
|
|
186
186
|
class: normalizeClass(["m-slider__btn", {
|
|
187
|
-
"active-cursor":
|
|
187
|
+
"active-cursor": i2 === activeCursor.value && _ctx.cursorAnim
|
|
188
188
|
}]),
|
|
189
|
-
style: normalizeStyle([buttonStyles.value[
|
|
190
|
-
onMousedownPassive: ($event) => handleMousedown($event,
|
|
191
|
-
onTouchstartPassive: ($event) => handleMousedown($event,
|
|
192
|
-
onFocusPassive: ($event) => handleMousedown($event,
|
|
193
|
-
onBlurPassive: ($event) => blurCursor(
|
|
194
|
-
onTouchendPassive: ($event) => blurCursor(
|
|
195
|
-
onKeydownPassive: ($event) => cursorKeyDown($event,
|
|
189
|
+
style: normalizeStyle([buttonStyles.value[i2]]),
|
|
190
|
+
onMousedownPassive: ($event) => handleMousedown($event, i2),
|
|
191
|
+
onTouchstartPassive: ($event) => handleMousedown($event, i2),
|
|
192
|
+
onFocusPassive: ($event) => handleMousedown($event, i2),
|
|
193
|
+
onBlurPassive: ($event) => blurCursor(i2),
|
|
194
|
+
onTouchendPassive: ($event) => blurCursor(i2),
|
|
195
|
+
onKeydownPassive: ($event) => cursorKeyDown($event, i2)
|
|
196
196
|
}, [
|
|
197
|
-
createElementVNode("span", null, toDisplayString(tmpValues.value?.[
|
|
197
|
+
createElementVNode("span", null, toDisplayString(tmpValues.value?.[i2]), 1)
|
|
198
198
|
], 46, _hoisted_2))), 128))
|
|
199
199
|
], 8, _hoisted_1)
|
|
200
200
|
], 38));
|
|
201
201
|
}
|
|
202
|
-
}), MazSlider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
202
|
+
}), MazSlider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8cc966c7"]]);
|
|
203
203
|
export {
|
|
204
204
|
MazSlider as default
|
|
205
205
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { MazColor } from './types';
|
|
2
|
+
export interface MazSliderProps {
|
|
3
|
+
/** Array of cursors values */
|
|
4
|
+
modelValue: number | number[] | undefined | null;
|
|
5
|
+
/** array of cursors label */
|
|
6
|
+
labels?: string[];
|
|
7
|
+
/** min value of sliders */
|
|
8
|
+
min?: number;
|
|
9
|
+
/** max value of sliders */
|
|
10
|
+
max?: number;
|
|
11
|
+
/** step value for slider increments */
|
|
12
|
+
step?: number;
|
|
13
|
+
/** height size of slider bar */
|
|
14
|
+
size?: string;
|
|
15
|
+
/** remove div in different colors */
|
|
16
|
+
divider?: boolean;
|
|
17
|
+
/** become a logarithmic slider (exponential) */
|
|
18
|
+
log?: boolean;
|
|
19
|
+
/** main slider color */
|
|
20
|
+
color?: MazColor;
|
|
21
|
+
/** disables cursor animation when active */
|
|
22
|
+
cursorAnim?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const _default: import('vue').DefineComponent<MazSliderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
"update:model-value": (...args: any[]) => void;
|
|
26
|
+
}, string, import('vue').PublicProps, Readonly<MazSliderProps> & Readonly<{
|
|
27
|
+
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
29
|
+
MazSlider: HTMLDivElement;
|
|
30
|
+
}, any>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MazColor } from './types';
|
|
2
|
+
export interface MazSpinnerProps {
|
|
3
|
+
/**
|
|
4
|
+
* The size of the spinner
|
|
5
|
+
* @default 2em
|
|
6
|
+
*/
|
|
7
|
+
size?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The color of the spinner
|
|
10
|
+
* @default theme
|
|
11
|
+
*/
|
|
12
|
+
color?: MazColor;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import('vue').DefineComponent<MazSpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazSpinnerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
15
|
+
export default _default;
|
|
@@ -3,7 +3,7 @@ import { MazCheckCircle, MazExclamationTriangle, MazExclamationCircle } from "@m
|
|
|
3
3
|
import MazExpandAnimation from "./MazExpandAnimation.js";
|
|
4
4
|
import MazIcon from "./MazIcon.js";
|
|
5
5
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
6
|
-
import '../assets/MazStepper.
|
|
6
|
+
import '../assets/MazStepper.C9R7g43I.css';const _hoisted_1 = ["id", "disabled", "onClick"], _hoisted_2 = { class: "m-stepper__header__wrapper" }, _hoisted_3 = { class: "m-stepper__count --primary" }, _hoisted_4 = { class: "m-stepper__count__circle" }, _hoisted_5 = { class: "m-stepper__header__content" }, _hoisted_6 = { class: "m-stepper__title" }, _hoisted_7 = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "m-stepper__subtitle"
|
|
9
9
|
}, _hoisted_8 = {
|
|
@@ -148,7 +148,7 @@ import '../assets/MazStepper.BD2gDGAX.css';const _hoisted_1 = ["id", "disabled",
|
|
|
148
148
|
], 64))), 128))
|
|
149
149
|
], 4));
|
|
150
150
|
}
|
|
151
|
-
}), MazStepper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
151
|
+
}), MazStepper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-37d7ed87"]]);
|
|
152
152
|
export {
|
|
153
153
|
MazStepper as default
|
|
154
154
|
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { IconComponent } from '@maz-ui/icons';
|
|
2
|
+
import { MazColor } from './types';
|
|
3
|
+
export interface MazStepperStep {
|
|
4
|
+
title?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
titleInfo?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
success?: boolean;
|
|
10
|
+
warning?: boolean;
|
|
11
|
+
icon?: string | IconComponent;
|
|
12
|
+
}
|
|
13
|
+
export interface MazStepperProps {
|
|
14
|
+
/** The current step */
|
|
15
|
+
modelValue?: number;
|
|
16
|
+
/** The steps */
|
|
17
|
+
steps?: MazStepperStep[];
|
|
18
|
+
/**
|
|
19
|
+
* The color of the stepper
|
|
20
|
+
* @default primary
|
|
21
|
+
*/
|
|
22
|
+
color?: MazColor;
|
|
23
|
+
/** Disable the next steps */
|
|
24
|
+
disabledNextSteps?: boolean;
|
|
25
|
+
/** Disable the previous steps */
|
|
26
|
+
disabledPreviousSteps?: boolean;
|
|
27
|
+
/** Auto validate the steps */
|
|
28
|
+
autoValidateSteps?: boolean;
|
|
29
|
+
/** Open all steps */
|
|
30
|
+
allStepsOpened?: boolean;
|
|
31
|
+
/** Validate all steps */
|
|
32
|
+
allStepsValidated?: boolean;
|
|
33
|
+
/** Allow to close the steps */
|
|
34
|
+
canCloseSteps?: boolean;
|
|
35
|
+
}
|
|
36
|
+
declare function __VLS_template(): {
|
|
37
|
+
attrs: Partial<{}>;
|
|
38
|
+
slots: Partial<Record<`icon-${number}`, (_: {}) => any>> & Partial<Record<`title-${number}`, (_: {}) => any>> & Partial<Record<`subtitle-${number}`, (_: {}) => any>> & Partial<Record<`title-info-${number}`, (_: {}) => any>> & Partial<Record<`content-${number}`, (_: {
|
|
39
|
+
validated: boolean;
|
|
40
|
+
error: boolean | undefined;
|
|
41
|
+
warning: boolean | undefined;
|
|
42
|
+
nextStep: () => void;
|
|
43
|
+
previousStep: () => void;
|
|
44
|
+
}) => any>>;
|
|
45
|
+
refs: {};
|
|
46
|
+
rootEl: HTMLDivElement;
|
|
47
|
+
};
|
|
48
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
49
|
+
declare const __VLS_component: import('vue').DefineComponent<MazStepperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
|
+
"update:model-value": (value: number) => any;
|
|
51
|
+
}, string, import('vue').PublicProps, Readonly<MazStepperProps> & Readonly<{
|
|
52
|
+
"onUpdate:model-value"?: ((value: number) => any) | undefined;
|
|
53
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
54
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
55
|
+
export default _default;
|
|
56
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { MazColor } from './types';
|
|
3
|
+
export interface MazSwitchProps {
|
|
4
|
+
/** Style attribut of the component root element */
|
|
5
|
+
style?: HTMLAttributes['style'];
|
|
6
|
+
/** Class attribut of the component root element */
|
|
7
|
+
class?: HTMLAttributes['class'];
|
|
8
|
+
/** The model value of the switch */
|
|
9
|
+
modelValue?: boolean;
|
|
10
|
+
/** The id of the switch */
|
|
11
|
+
id?: string;
|
|
12
|
+
/** If the switch is disabled */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** The name of the switch */
|
|
15
|
+
name?: string;
|
|
16
|
+
/** Text label */
|
|
17
|
+
label?: string;
|
|
18
|
+
/** The color of the switch */
|
|
19
|
+
color?: MazColor;
|
|
20
|
+
/** Whether there is an error with the input. */
|
|
21
|
+
error?: boolean;
|
|
22
|
+
/** Whether the input is successful. */
|
|
23
|
+
success?: boolean;
|
|
24
|
+
/** Whether there is a warning with the input. */
|
|
25
|
+
warning?: boolean;
|
|
26
|
+
/** The hint text to display below the input. */
|
|
27
|
+
hint?: string;
|
|
28
|
+
}
|
|
29
|
+
declare function __VLS_template(): {
|
|
30
|
+
attrs: Partial<{}>;
|
|
31
|
+
slots: {
|
|
32
|
+
default?(_: {
|
|
33
|
+
value: boolean;
|
|
34
|
+
}): any;
|
|
35
|
+
};
|
|
36
|
+
refs: {
|
|
37
|
+
inputRef: HTMLInputElement;
|
|
38
|
+
};
|
|
39
|
+
rootEl: any;
|
|
40
|
+
};
|
|
41
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
42
|
+
declare const __VLS_component: import('vue').DefineComponent<MazSwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
blur: (value: FocusEvent) => any;
|
|
44
|
+
change: (value: boolean) => any;
|
|
45
|
+
focus: (value: FocusEvent) => any;
|
|
46
|
+
"update:model-value": (value: boolean) => any;
|
|
47
|
+
}, string, import('vue').PublicProps, Readonly<MazSwitchProps> & Readonly<{
|
|
48
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
49
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
50
|
+
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
51
|
+
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
52
|
+
}>, {
|
|
53
|
+
name: string;
|
|
54
|
+
style: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
55
|
+
class: HTMLAttributes["class"];
|
|
56
|
+
color: MazColor;
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
id: string;
|
|
59
|
+
modelValue: boolean;
|
|
60
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
61
|
+
inputRef: HTMLInputElement;
|
|
62
|
+
}, any>;
|
|
63
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
64
|
+
export default _default;
|
|
65
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
|
+
new (): {
|
|
67
|
+
$slots: S;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _sfc_main } from "../chunks/MazTable.vue_vue_type_script_setup_true_lang.
|
|
2
|
-
import { m } from "../chunks/MazTable.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { _ as _sfc_main } from "../chunks/MazTable.vue_vue_type_script_setup_true_lang.Ct1Gtp2Q.js";
|
|
2
|
+
import { m } from "../chunks/MazTable.vue_vue_type_script_setup_true_lang.Ct1Gtp2Q.js";
|
|
3
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
|
-
import '../assets/MazTable.
|
|
4
|
+
import '../assets/MazTable.Cq7FEz09.css';const MazTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-10f9894b"]]);
|
|
5
5
|
export {
|
|
6
6
|
MazTable as default,
|
|
7
7
|
m as mazTableKey
|