maz-ui 4.0.0-beta.3 → 4.0.0-beta.33
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/README.md +1 -1
- package/dist/assets/MazAccordion.DUQCf8vy.css +1 -0
- package/dist/assets/{MazAnimatedCounter.CTG-PC5W.css → MazAnimatedCounter.DkZNPRLp.css} +1 -1
- package/dist/assets/MazAnimatedText.DDqCxrFX.css +1 -0
- package/dist/assets/MazBackdrop.BnhcmjbP.css +1 -0
- package/dist/assets/{MazBadge.DN8tdE8_.css → MazBadge.ChI2DaTU.css} +1 -1
- package/dist/assets/MazBtn.BYOKMl_2.css +1 -0
- package/dist/assets/MazCard.D0ksni8A.css +1 -0
- package/dist/assets/{MazCardSpotlight.Dy-wuLQq.css → MazCardSpotlight.IbPp_y0j.css} +1 -1
- package/dist/assets/MazCarousel.D4zTkRsG.css +1 -0
- package/dist/assets/MazCheckbox.aH1IKnrR.css +1 -0
- package/dist/assets/MazChecklist.BzF5KtZ3.css +1 -0
- package/dist/assets/MazDatePicker.BUVI9tfN.css +1 -0
- package/dist/assets/MazDropzone.C2SunLAI.css +1 -0
- package/dist/assets/MazInput.BPhjbYZG.css +1 -0
- package/dist/assets/MazInputCode.FA2z4HQd.css +1 -0
- package/dist/assets/MazInputPhoneNumber.DQKElfIM.css +1 -0
- package/dist/assets/MazInputTags.KNTpDHof.css +1 -0
- package/dist/assets/MazLazyImg.NlPRN3Nk.css +1 -0
- package/dist/assets/MazLink.CFscNMFr.css +1 -0
- package/dist/assets/MazPickerCalendar.e-eF8E7m.css +1 -0
- package/dist/assets/MazPickerCalendarMonth.BRoEh_ad.css +1 -0
- package/dist/assets/{MazPickerCalendarSwitcher.uni8vJJv.css → MazPickerCalendarSwitcher.CI9Vw1sJ.css} +1 -1
- package/dist/assets/{MazPickerContainer.k3DGjyHC.css → MazPickerContainer.DmHuaFqE.css} +1 -1
- package/dist/assets/{MazPickerHeader.ZYCJY5bX.css → MazPickerHeader.C4W93yMD.css} +1 -1
- package/dist/assets/MazPickerMonthSwitcher.D9lfVzYo.css +1 -0
- package/dist/assets/{MazPickerYearSwitcher.Dl30Dwor.css → MazPickerYearSwitcher.CFiH13QC.css} +1 -1
- package/dist/assets/MazPopover.BkR4UUzj.css +1 -0
- package/dist/assets/MazPullToRefresh.BQ64UvzA.css +1 -0
- package/dist/assets/MazRadio.aTHM-mpx.css +1 -0
- package/dist/assets/MazRadioButtons.DN_rAzT9.css +1 -0
- package/dist/assets/MazReadingProgressBar.CwBVXE3g.css +1 -0
- package/dist/assets/MazSelect.DuRAHZGW.css +1 -0
- package/dist/assets/{MazSelectCountry.D2Qudf0K.css → MazSelectCountry.EW8fKXFX.css} +1 -1
- package/dist/assets/{MazSlider.D5SgmZLH.css → MazSlider.y4qpnD0N.css} +1 -1
- package/dist/assets/MazSpinner.CsiFJ1DS.css +1 -0
- package/dist/assets/MazStepper.BD2gDGAX.css +1 -0
- package/dist/assets/MazSwitch.Bxmh2iFj.css +1 -0
- package/dist/assets/{MazTable.B1tkeUfE.css → MazTable.DMlQdImb.css} +1 -1
- package/dist/assets/MazTableRow.DgBXpK9J.css +1 -0
- package/dist/assets/{MazTabsBar.B9N_jdqU.css → MazTabsBar.gcS2Fc-B.css} +1 -1
- package/dist/assets/{MazTabsContentItem.CHfy19ZF.css → MazTabsContentItem.C84SDmj0.css} +1 -1
- package/dist/assets/MazTextarea.li9dWBax.css +1 -0
- package/dist/assets/{PhoneInput.CyWO76iq.css → PhoneInput.DCWA_-gC.css} +1 -1
- package/dist/assets/{fullscreen-img.pvt6196l.css → fullscreen-img.Bkuz1GOX.css} +1 -1
- package/dist/assets/{toast.kunueRvo.css → toast.DH9mbkvs.css} +1 -1
- package/dist/chunks/{MazDatePicker.CT5yJhSN.js → MazDatePicker.bKFpslPf.js} +54 -44
- package/dist/chunks/{MazDialogPromise.vue_vue_type_script_setup_true_lang.BQvDEofz.js → MazDialogConfirm.vue_vue_type_script_setup_true_lang.Grn2kB3x.js} +78 -18
- package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.abk1IbMX.js → MazDropdown.vue_vue_type_style_index_0_lang.X8ygqBUZ.js} +22 -27
- package/dist/chunks/{MazInputPhoneNumber.Uwhn1Q9j.js → MazInputPhoneNumber.BVHi0OiN.js} +28 -18
- package/dist/chunks/{MazInputPrice.vue_vue_type_script_setup_true_lang.GMKzSu7R.js → MazInputPrice.vue_vue_type_script_setup_true_lang.BA6TDX-T.js} +31 -1
- package/dist/chunks/{MazPickerCalendar.RS6ZMdDK.js → MazPickerCalendar.lLfvUtrb.js} +8 -8
- package/dist/chunks/{MazPickerCalendarMonth.hQBSVkc9.js → MazPickerCalendarMonth.Djzgo1tF.js} +9 -9
- package/dist/chunks/{MazPickerCalendarSwitcher.Cp2ux3E4.js → MazPickerCalendarSwitcher.Bf24kKw6.js} +3 -3
- package/dist/chunks/{MazPickerContainer.DnfB3Dqg.js → MazPickerContainer.7hYHiOaa.js} +4 -6
- package/dist/chunks/{MazPickerHeader.Dlz2yJ1D.js → MazPickerHeader.B00RAQPS.js} +3 -3
- package/dist/chunks/{MazPickerMonthSwitcher.BpfCGGxQ.js → MazPickerMonthSwitcher.B2ZgNJWy.js} +5 -6
- package/dist/chunks/{MazPickerTime.EuWWNfid.js → MazPickerTime.Bd4khA2e.js} +1 -1
- package/dist/chunks/{MazPickerYearSwitcher.D4aO09D3.js → MazPickerYearSwitcher.BIy9xGIw.js} +8 -27
- package/dist/chunks/{MazSwitch.vue_vue_type_style_index_0_lang.DnCjlD6D.js → MazSwitch.vue_vue_type_style_index_0_lang.CU43Y1ky.js} +2 -2
- package/dist/chunks/{MazTable.vue_vue_type_script_setup_true_lang.bm7ng8fK.js → MazTable.vue_vue_type_script_setup_true_lang.BcTw9Tyh.js} +3 -3
- package/dist/chunks/{PhoneInput.CPjyZ8Sq.js → PhoneInput.D9vRIgS6.js} +21 -27
- package/dist/chunks/{utils.BBuYjMbK.js → dom-events.Bbe7wDQl.js} +221 -115
- package/dist/chunks/{en.BzBlrE0C.js → en.Q_4-KljL.js} +12 -0
- package/dist/chunks/{fullscreen-img.directive.CyOHexcO.js → fullscreen-img.directive.Be383en8.js} +2 -2
- package/dist/chunks/{lazy-img.directive.D5zCo3Zi.js → lazy-img.directive.BLFnGqQa.js} +1 -1
- package/dist/chunks/pascalCase.GdDKKQ-O.js +19 -0
- package/dist/chunks/types.D0Bp_UhS.js +6 -0
- package/dist/chunks/useStringMatching.BBezu-6J.js +134 -0
- package/dist/chunks/{useTranslations.BXuww4ux.js → useTranslations.D5aoYwD7.js} +1 -1
- package/dist/chunks/vClickOutside.DIOiluy0.js +107 -0
- package/dist/components/MazAccordion.js +2 -2
- package/dist/components/MazAnimatedCounter.js +3 -3
- package/dist/components/MazAnimatedText.js +2 -2
- package/dist/components/MazBackdrop.js +3 -3
- package/dist/components/MazBadge.js +5 -4
- package/dist/components/MazBtn.js +9 -7
- package/dist/components/MazCard.js +2 -2
- package/dist/components/MazCardSpotlight.js +4 -4
- package/dist/components/MazCarousel.js +12 -9
- package/dist/components/MazCheckbox.js +10 -12
- package/dist/components/MazChecklist.js +4 -5
- package/dist/components/MazDatePicker.js +1 -1
- package/dist/components/MazDialogConfirm.js +6 -0
- package/dist/components/MazDropdown.js +1 -1
- package/dist/components/MazDropzone.js +5 -5
- package/dist/components/MazGallery.js +2 -2
- package/dist/components/MazInput.js +21 -16
- package/dist/components/MazInputCode.js +2 -2
- package/dist/components/MazInputPhoneNumber.js +1 -1
- package/dist/components/MazInputPrice.js +1 -1
- package/dist/components/MazInputTags.js +2 -2
- package/dist/components/MazLazyImg.js +9 -9
- package/dist/components/MazLink.js +9 -5
- package/dist/components/MazPagination.js +1 -1
- package/dist/components/MazPopover.js +127 -164
- package/dist/components/MazPullToRefresh.js +8 -3
- package/dist/components/MazRadio.js +8 -16
- package/dist/components/MazRadioButtons.js +8 -7
- package/dist/components/MazReadingProgressBar.js +10 -3
- package/dist/components/MazSelect.js +31 -18
- package/dist/components/MazSelectCountry.js +18 -11
- package/dist/components/MazSlider.js +2 -2
- package/dist/components/MazSpinner.js +3 -4
- package/dist/components/MazStepper.js +2 -2
- package/dist/components/MazSwitch.js +1 -1
- package/dist/components/MazTable.js +3 -3
- package/dist/components/MazTableCell.js +1 -1
- package/dist/components/MazTableRow.js +3 -3
- package/dist/components/MazTableTitle.js +1 -1
- package/dist/components/MazTabsBar.js +6 -6
- package/dist/components/MazTabsContentItem.js +6 -7
- package/dist/components/MazTextarea.js +24 -3
- package/dist/components/index.js +8 -8
- package/dist/composables/index.js +4 -2
- package/dist/composables/useAos.js +1 -1
- package/dist/composables/useDialog.js +1 -1
- package/dist/composables/useDisplayNames.js +17 -13
- package/dist/composables/useDropzone.js +7 -7
- package/dist/composables/useFormField.js +15 -19
- package/dist/composables/useFormValidator.js +58 -29
- package/dist/composables/useIdleTimeout.js +108 -1
- package/dist/composables/useInjectStrict.js +2 -2
- package/dist/composables/useInstanceUniqId.js +3 -2
- package/dist/composables/useStringMatching.js +3 -40
- package/dist/composables/useSwipe.js +77 -1
- package/dist/composables/useToast.js +1 -1
- package/dist/composables/useUserVisibility.js +47 -1
- package/dist/composables/useWait.js +1 -1
- package/dist/composables/useWindowSize.js +1 -1
- package/dist/css/main.css +1 -1
- package/dist/directives/index.js +7 -7
- package/dist/directives/vClickOutside.js +4 -102
- package/dist/directives/vFullscreenImg.js +1 -1
- package/dist/directives/vLazyImg.js +2 -2
- package/dist/directives/vTooltip.js +93 -64
- package/dist/index.js +1 -114
- package/dist/plugins/dialog.js +3 -3
- package/dist/plugins/maz-ui.js +235 -195
- package/dist/plugins/toast.js +13 -14
- package/dist/resolvers/MazComponentsResolver.js +1 -1
- package/dist/resolvers/MazDirectivesResolver.js +1 -1
- package/dist/resolvers/MazModulesResolver.js +6 -2
- package/dist/tailwindcss/tailwind.config.js +5 -2
- package/dist/tailwindcss/variables/design-tokens.js +3 -0
- package/dist/types/components/MazAccordion.vue.d.ts +15 -2
- package/dist/types/components/MazBtn.vue.d.ts +1 -0
- package/dist/types/components/MazCard.vue.d.ts +1 -1
- package/dist/types/components/MazCarousel.vue.d.ts +4 -1
- package/dist/types/components/MazCheckbox.vue.d.ts +0 -6
- package/dist/types/components/MazChecklist.vue.d.ts +1 -1
- package/dist/types/components/MazDatePicker/utils.d.ts +5 -4
- package/dist/types/components/MazDatePicker.vue.d.ts +49 -53
- package/dist/types/components/MazDialogConfirm/useMazDialogConfirm.d.ts +47 -0
- package/dist/types/components/{MazDialogPromise.vue.d.ts → MazDialogConfirm.vue.d.ts} +43 -10
- package/dist/types/components/MazDropdown.vue.d.ts +12 -12
- package/dist/types/components/MazInput.vue.d.ts +7 -0
- package/dist/types/components/MazInputNumber.vue.d.ts +4 -4
- package/dist/types/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +1 -1
- package/dist/types/components/MazInputPhoneNumber/useLibphonenumber.d.ts +3 -3
- package/dist/types/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +8 -2
- package/dist/types/components/MazInputPhoneNumber.vue.d.ts +45 -23
- package/dist/types/components/MazInputPrice.vue.d.ts +3 -3
- package/dist/types/components/MazInputTags.vue.d.ts +1 -1
- package/dist/types/components/MazLazyImg.vue.d.ts +8 -8
- package/dist/types/components/MazLink.vue.d.ts +11 -0
- package/dist/types/components/MazPopover.vue.d.ts +28 -20
- package/dist/types/components/MazRadioButtons.vue.d.ts +9 -9
- package/dist/types/components/MazReadingProgressBar.vue.d.ts +1 -1
- package/dist/types/components/MazSelect.vue.d.ts +11 -4
- package/dist/types/components/MazSelectCountry.vue.d.ts +15 -6
- package/dist/types/components/MazStepper.vue.d.ts +13 -2
- package/dist/types/components/MazTable.vue.d.ts +63 -2
- package/dist/types/components/index.d.ts +4 -4
- package/dist/types/components/types.d.ts +1 -0
- package/dist/types/composables/index.d.ts +2 -1
- package/dist/types/composables/useDisplayNames.d.ts +3 -8
- package/dist/types/composables/useDropzone.d.ts +3 -3
- package/dist/types/composables/useFormField.d.ts +16 -56
- package/dist/types/composables/useFormValidator/config.d.ts +2 -2
- package/dist/types/composables/useFormValidator/dom-events.d.ts +19 -0
- package/dist/types/composables/useFormValidator/state-management.d.ts +72 -0
- package/dist/types/composables/useFormValidator/types.d.ts +20 -32
- package/dist/types/composables/useFormValidator/validation.d.ts +37 -0
- package/dist/types/composables/useFormValidator.d.ts +16 -10
- package/dist/types/composables/useIdleTimeout.d.ts +1 -1
- package/dist/types/composables/useInjectStrict.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/directives/vClickOutside.d.ts +11 -18
- package/dist/types/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +2 -2
- package/dist/types/directives/vFullscreenImg/fullscreen-img.directive.d.ts +3 -5
- package/dist/types/directives/vFullscreenImg.d.ts +9 -4
- package/dist/types/directives/vLazyImg/lazy-img.directive.d.ts +3 -5
- package/dist/types/directives/vLazyImg.d.ts +11 -6
- package/dist/types/directives/vTooltip.d.ts +14 -14
- package/dist/types/directives/vZoomImg/zoom-img.directive.d.ts +2 -0
- package/dist/types/directives/vZoomImg.d.ts +9 -5
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plugins/aos.d.ts +30 -4
- package/dist/types/plugins/dialog/DialogHandler.d.ts +2 -2
- package/dist/types/plugins/dialog.d.ts +2 -4
- package/dist/types/plugins/maz-ui.d.ts +2 -63
- package/dist/types/plugins/toast.d.ts +2 -4
- package/dist/types/plugins/wait.d.ts +2 -3
- package/dist/types/tailwindcss/tailwind.config.d.ts +5 -0
- package/dist/types/tailwindcss/variables/design-tokens.d.ts +3 -0
- package/package.json +38 -37
- package/dist/assets/MazAccordion.esK3rR4p.css +0 -1
- package/dist/assets/MazAnimatedText.BrOwWuqf.css +0 -1
- package/dist/assets/MazBackdrop.DNpnLh63.css +0 -1
- package/dist/assets/MazBtn.BnRxVlqS.css +0 -1
- package/dist/assets/MazCard.C6nDaeIC.css +0 -1
- package/dist/assets/MazCarousel.BaqN4hLP.css +0 -1
- package/dist/assets/MazCheckbox.C_qIngLy.css +0 -1
- package/dist/assets/MazChecklist.CWK_Gl-t.css +0 -1
- package/dist/assets/MazDatePicker.V5JwKPrQ.css +0 -1
- package/dist/assets/MazDropzone.DafxQwbq.css +0 -1
- package/dist/assets/MazInput.DW2KOJHY.css +0 -1
- package/dist/assets/MazInputCode.CG6EJBEk.css +0 -1
- package/dist/assets/MazInputPhoneNumber.vpA2mrZn.css +0 -1
- package/dist/assets/MazInputTags.B_s9J3sw.css +0 -1
- package/dist/assets/MazLazyImg.BNaVtpfX.css +0 -1
- package/dist/assets/MazLink.CCfbrUs0.css +0 -1
- package/dist/assets/MazPickerCalendar.CHpWIzhL.css +0 -1
- package/dist/assets/MazPickerCalendarMonth.zkrPVHDv.css +0 -1
- package/dist/assets/MazPickerMonthSwitcher.168v7Hs1.css +0 -1
- package/dist/assets/MazPopover.Bth9NWia.css +0 -1
- package/dist/assets/MazPullToRefresh.DABqbGtK.css +0 -1
- package/dist/assets/MazRadio.DKMFWwy_.css +0 -1
- package/dist/assets/MazRadioButtons.BA4rjgK9.css +0 -1
- package/dist/assets/MazReadingProgressBar.n1Is8_Y3.css +0 -1
- package/dist/assets/MazSelect.DZZpDg8z.css +0 -1
- package/dist/assets/MazSpinner.CP85N7RJ.css +0 -1
- package/dist/assets/MazStepper.DYMde9uq.css +0 -1
- package/dist/assets/MazSwitch.Z1ZMm7tx.css +0 -1
- package/dist/assets/MazTableRow.B78Bd4Kv.css +0 -1
- package/dist/assets/MazTextarea.Dz11mUeK.css +0 -1
- package/dist/chunks/TextareaAutogrow.C22LQx0k.js +0 -25
- package/dist/chunks/debounceCallback.B69vn57Q.js +0 -7
- package/dist/chunks/formatCurrency.C8NzW9Ii.js +0 -34
- package/dist/chunks/formatDate.DZ_OzdnV.js +0 -21
- package/dist/chunks/getCountryFlagUrl.dQjriBXx.js +0 -9
- package/dist/chunks/idleTimeout.-ICpdeGV.js +0 -111
- package/dist/chunks/isServer.BokzeB-Q.js +0 -6
- package/dist/chunks/isStandaloneMode.BpUpOTbA.js +0 -10
- package/dist/chunks/normalizeString.CFe2M8S_.js +0 -69
- package/dist/chunks/pascalCase.D_nuQ66I.js +0 -11
- package/dist/chunks/swipeHandler.8emelhOL.js +0 -80
- package/dist/chunks/throttle.DN8ARw0a.js +0 -11
- package/dist/chunks/throttleId.7PhWZjcS.js +0 -62
- package/dist/chunks/userVisibility.BbQSJASv.js +0 -50
- package/dist/chunks/x-mark.CTalOvvY.js +0 -23
- package/dist/components/MazDialogPromise.js +0 -6
- package/dist/types/components/MazDialogPromise/useMazDialogPromise.d.ts +0 -54
- package/dist/types/components/MazInputPhoneNumber/types.d.ts +0 -22
- package/dist/types/composables/useFormValidator/utils.d.ts +0 -116
- package/dist/chunks/{pristine.ylgbwjxO.js → pristine.CxBZzgUG.js} +4 -4
|
@@ -18,9 +18,11 @@ const composablesMap = {
|
|
|
18
18
|
useDisplayNames: !0,
|
|
19
19
|
useFreezeValue: !0,
|
|
20
20
|
useDialog: !0,
|
|
21
|
-
useMountComponent: !0
|
|
21
|
+
useMountComponent: !0,
|
|
22
|
+
useDropzone: !0
|
|
22
23
|
}, modulesMap = {
|
|
23
24
|
capitalize: !0,
|
|
25
|
+
getErrorMessage: !0,
|
|
24
26
|
checkAvailability: !0,
|
|
25
27
|
countryCodeToUnicodeFlag: !0,
|
|
26
28
|
formatCurrency: !0,
|
|
@@ -45,7 +47,9 @@ const composablesMap = {
|
|
|
45
47
|
ScriptLoader: !0,
|
|
46
48
|
Swipe: !0,
|
|
47
49
|
UserVisibility: !0,
|
|
48
|
-
TextareaAutogrow: !0
|
|
50
|
+
TextareaAutogrow: !0,
|
|
51
|
+
kebabCase: !0,
|
|
52
|
+
snakeCase: !0
|
|
49
53
|
};
|
|
50
54
|
function MazModulesResolver(options) {
|
|
51
55
|
return (name) => {
|
|
@@ -67,7 +67,7 @@ function requirePlugin() {
|
|
|
67
67
|
}
|
|
68
68
|
var pluginExports = /* @__PURE__ */ requirePlugin();
|
|
69
69
|
const plugin = /* @__PURE__ */ getDefaultExportFromCjs(pluginExports);
|
|
70
|
-
function defineMazTailwindConfig(config) {
|
|
70
|
+
function defineMazTailwindConfig(config, { utilities: utilities$1 } = {}) {
|
|
71
71
|
return {
|
|
72
72
|
darkMode: ["class", '[class~="dark"]'],
|
|
73
73
|
content: [],
|
|
@@ -81,7 +81,10 @@ function defineMazTailwindConfig(config) {
|
|
|
81
81
|
},
|
|
82
82
|
plugins: [
|
|
83
83
|
plugin(({ addUtilities }) => {
|
|
84
|
-
addUtilities(
|
|
84
|
+
addUtilities({
|
|
85
|
+
...utilities,
|
|
86
|
+
...utilities$1
|
|
87
|
+
});
|
|
85
88
|
})
|
|
86
89
|
],
|
|
87
90
|
...config
|
|
@@ -3,7 +3,20 @@ export interface MazAccordionProps {
|
|
|
3
3
|
modelValue?: number;
|
|
4
4
|
contentClass?: unknown;
|
|
5
5
|
}
|
|
6
|
-
declare function __VLS_template():
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: Partial<Record<`title-${number}`, (_: {
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
}) => any>> & Partial<Record<`content-${number}`, (_: {
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
}) => any>> & {
|
|
13
|
+
content?(_: {
|
|
14
|
+
isOpen: boolean;
|
|
15
|
+
}): any;
|
|
16
|
+
};
|
|
17
|
+
refs: {};
|
|
18
|
+
rootEl: HTMLDivElement;
|
|
19
|
+
};
|
|
7
20
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
8
21
|
declare const __VLS_component: import('vue').DefineComponent<MazAccordionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
22
|
"update:model-value": (...args: any[]) => void;
|
|
@@ -13,7 +26,7 @@ declare const __VLS_component: import('vue').DefineComponent<MazAccordionProps,
|
|
|
13
26
|
id: string;
|
|
14
27
|
modelValue: number;
|
|
15
28
|
contentClass: undefined;
|
|
16
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
30
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
31
|
export default _default;
|
|
19
32
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'vue';
|
|
2
|
-
import { MazGalleryProps } from './MazGallery.vue';
|
|
3
2
|
import { RouterLinkProps } from 'vue-router';
|
|
3
|
+
import { MazGalleryProps } from './MazGallery.vue';
|
|
4
4
|
type __VLS_Props = MazCardProps;
|
|
5
5
|
export interface MazCardProps {
|
|
6
6
|
/** Card variant: Must be `column | row | row-reverse | column-reverse` */
|
|
@@ -14,10 +14,13 @@ export interface MazCarouselProps {
|
|
|
14
14
|
translations?: DeepPartial<MazTranslationsNestedSchema['carousel']>;
|
|
15
15
|
/**
|
|
16
16
|
* Hide the scrollbar when not active
|
|
17
|
-
* @type {boolean}
|
|
18
17
|
* @default false
|
|
19
18
|
*/
|
|
20
19
|
hideScrollbar?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The title of the carousel
|
|
22
|
+
*/
|
|
23
|
+
title?: string;
|
|
21
24
|
}
|
|
22
25
|
declare function __VLS_template(): {
|
|
23
26
|
attrs: Partial<{}>;
|
|
@@ -30,12 +30,6 @@ export interface MazCheckboxProps<T = boolean | (string | number)[]> {
|
|
|
30
30
|
warning?: boolean;
|
|
31
31
|
/** The hint text to display below the input. */
|
|
32
32
|
hint?: string;
|
|
33
|
-
/**
|
|
34
|
-
* The tabindex of the checkbox
|
|
35
|
-
* @default 0
|
|
36
|
-
* @type {HTMLAttributes['tabindex']}
|
|
37
|
-
*/
|
|
38
|
-
tabindex?: HTMLAttributes['tabindex'];
|
|
39
33
|
}
|
|
40
34
|
declare const _default: <T extends boolean | (string | number)[]>(__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<{
|
|
41
35
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MazTranslationsNestedSchema } from '@maz-ui/translations/src/types.js';
|
|
2
|
+
import { NormalizeStringOptions } from '@maz-ui/utils/src/helpers/normalizeString.js';
|
|
2
3
|
import { DeepPartial } from '@maz-ui/utils/src/ts-helpers/DeepPartial.js';
|
|
3
|
-
import { NormalizeStringOptions } from '@maz-ui/utils/src/utils/normalizeString.js';
|
|
4
4
|
import { MazInputProps } from './MazInput.vue';
|
|
5
5
|
import { MazColor } from './types';
|
|
6
6
|
export type MazChecklistItemOption = {
|
|
@@ -28,11 +28,12 @@ interface CheckValueResponse {
|
|
|
28
28
|
newValue?: string;
|
|
29
29
|
newCurrentDate?: string;
|
|
30
30
|
}
|
|
31
|
-
export declare function checkValueWithMinMaxDates({ value, minDate, maxDate, format, }: {
|
|
32
|
-
value
|
|
33
|
-
minDate
|
|
34
|
-
maxDate
|
|
31
|
+
export declare function checkValueWithMinMaxDates({ value, minDate, maxDate, format, minMaxAuto, }: {
|
|
32
|
+
value: string | undefined;
|
|
33
|
+
minDate: string | undefined;
|
|
34
|
+
maxDate: string | undefined;
|
|
35
35
|
format: string;
|
|
36
|
+
minMaxAuto: boolean;
|
|
36
37
|
}): CheckValueResponse;
|
|
37
38
|
export declare function isValueDisabledWeekly({ value, disabledWeekly, }: {
|
|
38
39
|
value: string;
|
|
@@ -63,7 +63,7 @@ export interface MazDatePickerProps {
|
|
|
63
63
|
* @type {Intl.DateTimeFormatOptions}
|
|
64
64
|
* @default { dateStyle: 'medium', timeStyle: 'full' }
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
inputDateFormat?: Intl.DateTimeFormatOptions;
|
|
67
67
|
/**
|
|
68
68
|
* Custom function to transform the formatted date display
|
|
69
69
|
* @type {Function}
|
|
@@ -80,25 +80,21 @@ export interface MazDatePickerProps {
|
|
|
80
80
|
}) => string;
|
|
81
81
|
/**
|
|
82
82
|
* The locale string for date formatting and localization
|
|
83
|
-
* @type {string}
|
|
84
83
|
* @example 'en-US', 'fr-FR', 'de-DE'
|
|
85
84
|
*/
|
|
86
85
|
locale?: string;
|
|
87
86
|
/**
|
|
88
87
|
* Controls whether the calendar header is hidden
|
|
89
|
-
* @type {boolean}
|
|
90
88
|
* @default false
|
|
91
89
|
*/
|
|
92
90
|
hideHeader?: boolean;
|
|
93
91
|
/**
|
|
94
92
|
* Controls whether the component is disabled
|
|
95
|
-
* @type {boolean}
|
|
96
93
|
* @default false
|
|
97
94
|
*/
|
|
98
95
|
disabled?: boolean;
|
|
99
96
|
/**
|
|
100
97
|
* The first day of the week in the calendar
|
|
101
|
-
* @type {number}
|
|
102
98
|
* @values 0, 1, 2, 3, 4, 5, 6
|
|
103
99
|
* @default 0
|
|
104
100
|
* @example 0 (Sunday), 1 (Monday), 6 (Saturday)
|
|
@@ -106,25 +102,21 @@ export interface MazDatePickerProps {
|
|
|
106
102
|
firstDayOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
107
103
|
/**
|
|
108
104
|
* Controls whether the picker closes automatically after date selection
|
|
109
|
-
* @type {boolean}
|
|
110
105
|
* @default false
|
|
111
106
|
*/
|
|
112
107
|
autoClose?: boolean;
|
|
113
108
|
/**
|
|
114
109
|
* CSS selector for a custom element that triggers the picker
|
|
115
|
-
* @type {string}
|
|
116
110
|
* @example '#my-button', '.trigger-class'
|
|
117
111
|
*/
|
|
118
112
|
customElementSelector?: string;
|
|
119
113
|
/**
|
|
120
114
|
* Controls whether the picker displays two months side by side
|
|
121
|
-
* @type {boolean}
|
|
122
115
|
* @default false
|
|
123
116
|
*/
|
|
124
117
|
double?: boolean;
|
|
125
118
|
/**
|
|
126
119
|
* Controls whether the picker is displayed inline without input field
|
|
127
|
-
* @type {boolean}
|
|
128
120
|
* @default false
|
|
129
121
|
*/
|
|
130
122
|
inline?: boolean;
|
|
@@ -138,37 +130,33 @@ export interface MazDatePickerProps {
|
|
|
138
130
|
/**
|
|
139
131
|
* The position where the picker popover should appear
|
|
140
132
|
* @type {MazPopoverProps['position']}
|
|
141
|
-
* @values top, bottom, left, right, top-left, top-
|
|
133
|
+
* @values top, bottom, left, right, top-end, bottom-end, left-end, right-end, top-start, bottom-start, left-start, right-start
|
|
134
|
+
* @default 'auto'
|
|
142
135
|
*/
|
|
143
136
|
pickerPosition?: MazPopoverProps['position'];
|
|
144
137
|
/**
|
|
145
138
|
* Controls whether the picker includes a time selector
|
|
146
|
-
* @type {boolean}
|
|
147
139
|
* @default false
|
|
148
140
|
*/
|
|
149
141
|
time?: boolean;
|
|
150
142
|
/**
|
|
151
143
|
* Controls whether the picker shows only time selection (no date)
|
|
152
|
-
* @type {boolean}
|
|
153
144
|
* @default false
|
|
154
145
|
*/
|
|
155
146
|
onlyTime?: boolean;
|
|
156
147
|
/**
|
|
157
148
|
* The interval in minutes for the time picker minute selection
|
|
158
|
-
* @type {number}
|
|
159
149
|
* @default 5
|
|
160
150
|
* @values 1, 5, 10, 15, 30
|
|
161
151
|
*/
|
|
162
152
|
minuteInterval?: number;
|
|
163
153
|
/**
|
|
164
154
|
* Controls whether to automatically detect and use the browser's locale
|
|
165
|
-
* @type {boolean}
|
|
166
155
|
* @default true
|
|
167
156
|
*/
|
|
168
157
|
useBrowserLocale?: boolean;
|
|
169
158
|
/**
|
|
170
159
|
* Controls whether to fetch locale data dynamically
|
|
171
|
-
* @type {boolean}
|
|
172
160
|
* @default true
|
|
173
161
|
*/
|
|
174
162
|
fetchLocal?: boolean;
|
|
@@ -180,54 +168,58 @@ export interface MazDatePickerProps {
|
|
|
180
168
|
shortcuts?: MazDatePickerShortcut[] | boolean;
|
|
181
169
|
/**
|
|
182
170
|
* The identifier of the currently selected shortcut
|
|
183
|
-
* @type {
|
|
171
|
+
* @type {MazDatePickerShortcut['identifier']}
|
|
184
172
|
*/
|
|
185
173
|
shortcut?: MazDatePickerShortcut['identifier'];
|
|
186
174
|
/**
|
|
187
175
|
* The minimum selectable date in ISO format
|
|
188
|
-
* @type {string}
|
|
189
176
|
* @example '2023-01-01'
|
|
190
177
|
*/
|
|
191
178
|
minDate?: string;
|
|
192
179
|
/**
|
|
193
180
|
* The maximum selectable date in ISO format
|
|
194
|
-
* @type {string}
|
|
195
181
|
* @example '2024-12-31'
|
|
196
182
|
*/
|
|
197
183
|
maxDate?: string;
|
|
184
|
+
/**
|
|
185
|
+
* When minDate or maxDate are provided, if the current date is not between minDate and maxDate, the current date will be set to the minDate or maxDate
|
|
186
|
+
* @default true
|
|
187
|
+
*/
|
|
188
|
+
minMaxAuto?: boolean;
|
|
198
189
|
/**
|
|
199
190
|
* Array of weekday numbers to disable (0 = Sunday, 6 = Saturday)
|
|
200
|
-
* @type {number[]}
|
|
201
191
|
* @default []
|
|
202
192
|
* @example [0, 6] to disable weekends
|
|
203
193
|
*/
|
|
204
194
|
disabledWeekly?: number[];
|
|
205
195
|
/**
|
|
206
196
|
* Array of specific dates to disable in ISO format
|
|
207
|
-
* @type {string[]}
|
|
208
197
|
* @default []
|
|
209
198
|
* @example ['2023-12-25', '2024-01-01']
|
|
210
199
|
*/
|
|
211
200
|
disabledDates?: string[];
|
|
212
201
|
/**
|
|
213
202
|
* Array of hour numbers to disable in the time picker (0-23)
|
|
214
|
-
* @type {number[]}
|
|
215
203
|
* @default []
|
|
216
204
|
* @example [0, 1, 2, 22, 23] to disable night hours
|
|
217
205
|
*/
|
|
218
206
|
disabledHours?: number[];
|
|
219
207
|
/**
|
|
220
208
|
* Controls whether the input displays in full width
|
|
221
|
-
* @type {boolean}
|
|
222
209
|
* @default false
|
|
223
210
|
*/
|
|
224
211
|
block?: boolean;
|
|
225
212
|
/**
|
|
226
213
|
* Controls whether the picker operates in range selection mode
|
|
227
|
-
* @type {boolean}
|
|
228
214
|
* @default false
|
|
229
215
|
*/
|
|
230
216
|
range?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* The transition name of the popover
|
|
219
|
+
* @type {MazPopoverProps['transition']}
|
|
220
|
+
* @default 'scale-fade'
|
|
221
|
+
*/
|
|
222
|
+
transition?: MazPopoverProps['transition'];
|
|
231
223
|
}
|
|
232
224
|
type __VLS_PublicProps = {
|
|
233
225
|
'locale'?: string;
|
|
@@ -249,18 +241,18 @@ declare function __VLS_template(): {
|
|
|
249
241
|
$data: {};
|
|
250
242
|
$props: {
|
|
251
243
|
readonly modelValue?: boolean | undefined;
|
|
252
|
-
readonly position?: import('./MazPopover.vue').
|
|
253
|
-
readonly preferPosition?: import('./MazPopover.vue').
|
|
254
|
-
readonly fallbackPosition?: import('./MazPopover.vue').
|
|
255
|
-
readonly trigger?: import('./MazPopover.vue').
|
|
256
|
-
readonly role?: import('./MazPopover.vue').
|
|
244
|
+
readonly position?: import('./MazPopover.vue').MazPopoverPosition | undefined;
|
|
245
|
+
readonly preferPosition?: import('./MazPopover.vue').MazPopoverPreferPosition | undefined;
|
|
246
|
+
readonly fallbackPosition?: import('./MazPopover.vue').MazPopoverFallbackPosition | undefined;
|
|
247
|
+
readonly trigger?: import('./MazPopover.vue').MazPopoverTrigger | undefined;
|
|
248
|
+
readonly role?: import('./MazPopover.vue').MazPopoverRole | undefined;
|
|
257
249
|
readonly ariaLabel?: string | undefined;
|
|
258
250
|
readonly announceChanges?: boolean | undefined;
|
|
259
251
|
readonly disabled?: boolean | undefined;
|
|
260
252
|
readonly offset?: number | undefined;
|
|
261
253
|
readonly delay?: number | undefined;
|
|
262
254
|
readonly hoverDelay?: number | undefined;
|
|
263
|
-
readonly transition?: string | undefined;
|
|
255
|
+
readonly transition?: "scale-pop" | "scale-fade" | string | undefined;
|
|
264
256
|
readonly teleportTo?: string | undefined;
|
|
265
257
|
readonly overlayClass?: HTMLAttributes["class"];
|
|
266
258
|
readonly panelClass?: HTMLAttributes["class"];
|
|
@@ -275,12 +267,13 @@ declare function __VLS_template(): {
|
|
|
275
267
|
readonly trapFocus?: boolean | undefined;
|
|
276
268
|
readonly keepOpenOnHover?: boolean | undefined;
|
|
277
269
|
readonly block?: boolean | undefined;
|
|
278
|
-
readonly
|
|
270
|
+
readonly positionReference?: (string | HTMLElement) | undefined;
|
|
279
271
|
readonly onClose?: (() => any) | undefined;
|
|
280
272
|
readonly onToggle?: ((value: boolean) => any) | undefined;
|
|
281
273
|
readonly onOpen?: (() => any) | undefined;
|
|
282
274
|
readonly "onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
283
275
|
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
276
|
+
readonly "onAfter-close-animation"?: (() => any) | undefined;
|
|
284
277
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
285
278
|
$attrs: {
|
|
286
279
|
[x: string]: unknown;
|
|
@@ -297,7 +290,7 @@ declare function __VLS_template(): {
|
|
|
297
290
|
$root: import('vue').ComponentPublicInstance | null;
|
|
298
291
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
299
292
|
$host: Element | null;
|
|
300
|
-
$emit: ((event: "close") => void) & ((event: "toggle", value: boolean) => void) & ((event: "open") => void) & ((event: "update:model-value", value: boolean) => void) & ((event: "update:modelValue", value: boolean) => void);
|
|
293
|
+
$emit: ((event: "close") => void) & ((event: "toggle", value: boolean) => void) & ((event: "open") => void) & ((event: "update:model-value", value: boolean) => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "after-close-animation") => void);
|
|
301
294
|
$el: any;
|
|
302
295
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
303
296
|
modelValue?: boolean;
|
|
@@ -307,6 +300,7 @@ declare function __VLS_template(): {
|
|
|
307
300
|
onOpen?: (() => any) | undefined;
|
|
308
301
|
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
309
302
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
303
|
+
"onAfter-close-animation"?: (() => any) | undefined;
|
|
310
304
|
}>, {
|
|
311
305
|
open: () => void;
|
|
312
306
|
close: () => void;
|
|
@@ -319,6 +313,7 @@ declare function __VLS_template(): {
|
|
|
319
313
|
open: () => any;
|
|
320
314
|
"update:model-value": (value: boolean) => any;
|
|
321
315
|
"update:modelValue": (value: boolean) => any;
|
|
316
|
+
"after-close-animation": () => any;
|
|
322
317
|
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
323
318
|
beforeCreate?: (() => void) | (() => void)[];
|
|
324
319
|
created?: (() => void) | (() => void)[];
|
|
@@ -338,11 +333,7 @@ declare function __VLS_template(): {
|
|
|
338
333
|
};
|
|
339
334
|
$forceUpdate: () => void;
|
|
340
335
|
$nextTick: typeof import('vue').nextTick;
|
|
341
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...
|
|
342
|
-
* CSS selector for a custom element that triggers the picker
|
|
343
|
-
* @type {string}
|
|
344
|
-
* @example '#my-button', '.trigger-class'
|
|
345
|
-
*/args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
336
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
346
337
|
} & Readonly<{}> & Omit<Readonly<{
|
|
347
338
|
modelValue?: boolean;
|
|
348
339
|
} & MazPopoverProps> & Readonly<{
|
|
@@ -351,6 +342,7 @@ declare function __VLS_template(): {
|
|
|
351
342
|
onOpen?: (() => any) | undefined;
|
|
352
343
|
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
353
344
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
345
|
+
"onAfter-close-animation"?: (() => any) | undefined;
|
|
354
346
|
}>, "close" | "toggle" | "open" | "updatePosition" | "isOpen"> & import('vue').ShallowUnwrapRef<{
|
|
355
347
|
open: () => void;
|
|
356
348
|
close: () => void;
|
|
@@ -364,6 +356,7 @@ declare function __VLS_template(): {
|
|
|
364
356
|
close: () => void;
|
|
365
357
|
toggle: () => void;
|
|
366
358
|
isOpen: boolean;
|
|
359
|
+
trigger: "click" | "hover" | "manual";
|
|
367
360
|
}): any;
|
|
368
361
|
default?(_: {
|
|
369
362
|
open: () => void;
|
|
@@ -392,22 +385,24 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
392
385
|
color: MazColor;
|
|
393
386
|
disabled: boolean;
|
|
394
387
|
open: boolean;
|
|
388
|
+
format: string;
|
|
389
|
+
transition: string;
|
|
390
|
+
shortcuts: MazDatePickerShortcut[] | boolean;
|
|
395
391
|
double: boolean;
|
|
396
392
|
inline: boolean;
|
|
397
393
|
range: boolean;
|
|
398
|
-
shortcuts: MazDatePickerShortcut[] | boolean;
|
|
399
|
-
format: string;
|
|
400
394
|
minDate: string;
|
|
401
395
|
maxDate: string;
|
|
396
|
+
minMaxAuto: boolean;
|
|
402
397
|
disabledWeekly: number[];
|
|
403
398
|
disabledDates: string[];
|
|
404
399
|
firstDayOfWeek: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
405
400
|
minuteInterval: number;
|
|
406
401
|
disabledHours: number[];
|
|
407
402
|
hideHeader: boolean;
|
|
408
|
-
|
|
403
|
+
inputDateFormat: Intl.DateTimeFormatOptions;
|
|
409
404
|
autoClose: boolean;
|
|
410
|
-
pickerPosition: import('./MazPopover.vue').
|
|
405
|
+
pickerPosition: import('./MazPopover.vue').MazPopoverPosition;
|
|
411
406
|
onlyTime: boolean;
|
|
412
407
|
useBrowserLocale: boolean;
|
|
413
408
|
fetchLocal: boolean;
|
|
@@ -417,18 +412,18 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
417
412
|
$data: {};
|
|
418
413
|
$props: {
|
|
419
414
|
readonly modelValue?: boolean | undefined;
|
|
420
|
-
readonly position?: import('./MazPopover.vue').
|
|
421
|
-
readonly preferPosition?: import('./MazPopover.vue').
|
|
422
|
-
readonly fallbackPosition?: import('./MazPopover.vue').
|
|
423
|
-
readonly trigger?: import('./MazPopover.vue').
|
|
424
|
-
readonly role?: import('./MazPopover.vue').
|
|
415
|
+
readonly position?: import('./MazPopover.vue').MazPopoverPosition | undefined;
|
|
416
|
+
readonly preferPosition?: import('./MazPopover.vue').MazPopoverPreferPosition | undefined;
|
|
417
|
+
readonly fallbackPosition?: import('./MazPopover.vue').MazPopoverFallbackPosition | undefined;
|
|
418
|
+
readonly trigger?: import('./MazPopover.vue').MazPopoverTrigger | undefined;
|
|
419
|
+
readonly role?: import('./MazPopover.vue').MazPopoverRole | undefined;
|
|
425
420
|
readonly ariaLabel?: string | undefined;
|
|
426
421
|
readonly announceChanges?: boolean | undefined;
|
|
427
422
|
readonly disabled?: boolean | undefined;
|
|
428
423
|
readonly offset?: number | undefined;
|
|
429
424
|
readonly delay?: number | undefined;
|
|
430
425
|
readonly hoverDelay?: number | undefined;
|
|
431
|
-
readonly transition?: string | undefined;
|
|
426
|
+
readonly transition?: "scale-pop" | "scale-fade" | string | undefined;
|
|
432
427
|
readonly teleportTo?: string | undefined;
|
|
433
428
|
readonly overlayClass?: HTMLAttributes["class"];
|
|
434
429
|
readonly panelClass?: HTMLAttributes["class"];
|
|
@@ -443,12 +438,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
443
438
|
readonly trapFocus?: boolean | undefined;
|
|
444
439
|
readonly keepOpenOnHover?: boolean | undefined;
|
|
445
440
|
readonly block?: boolean | undefined;
|
|
446
|
-
readonly
|
|
441
|
+
readonly positionReference?: (string | HTMLElement) | undefined;
|
|
447
442
|
readonly onClose?: (() => any) | undefined;
|
|
448
443
|
readonly onToggle?: ((value: boolean) => any) | undefined;
|
|
449
444
|
readonly onOpen?: (() => any) | undefined;
|
|
450
445
|
readonly "onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
451
446
|
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
447
|
+
readonly "onAfter-close-animation"?: (() => any) | undefined;
|
|
452
448
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
453
449
|
$attrs: {
|
|
454
450
|
[x: string]: unknown;
|
|
@@ -465,7 +461,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
465
461
|
$root: import('vue').ComponentPublicInstance | null;
|
|
466
462
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
467
463
|
$host: Element | null;
|
|
468
|
-
$emit: ((event: "close") => void) & ((event: "toggle", value: boolean) => void) & ((event: "open") => void) & ((event: "update:model-value", value: boolean) => void) & ((event: "update:modelValue", value: boolean) => void);
|
|
464
|
+
$emit: ((event: "close") => void) & ((event: "toggle", value: boolean) => void) & ((event: "open") => void) & ((event: "update:model-value", value: boolean) => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "after-close-animation") => void);
|
|
469
465
|
$el: any;
|
|
470
466
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
471
467
|
modelValue?: boolean;
|
|
@@ -475,6 +471,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
475
471
|
onOpen?: (() => any) | undefined;
|
|
476
472
|
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
477
473
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
474
|
+
"onAfter-close-animation"?: (() => any) | undefined;
|
|
478
475
|
}>, {
|
|
479
476
|
open: () => void;
|
|
480
477
|
close: () => void;
|
|
@@ -487,6 +484,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
487
484
|
open: () => any;
|
|
488
485
|
"update:model-value": (value: boolean) => any;
|
|
489
486
|
"update:modelValue": (value: boolean) => any;
|
|
487
|
+
"after-close-animation": () => any;
|
|
490
488
|
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
491
489
|
beforeCreate?: (() => void) | (() => void)[];
|
|
492
490
|
created?: (() => void) | (() => void)[];
|
|
@@ -506,11 +504,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
506
504
|
};
|
|
507
505
|
$forceUpdate: () => void;
|
|
508
506
|
$nextTick: typeof import('vue').nextTick;
|
|
509
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...
|
|
510
|
-
* CSS selector for a custom element that triggers the picker
|
|
511
|
-
* @type {string}
|
|
512
|
-
* @example '#my-button', '.trigger-class'
|
|
513
|
-
*/args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
507
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
514
508
|
} & Readonly<{}> & Omit<Readonly<{
|
|
515
509
|
modelValue?: boolean;
|
|
516
510
|
} & MazPopoverProps> & Readonly<{
|
|
@@ -519,6 +513,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
519
513
|
onOpen?: (() => any) | undefined;
|
|
520
514
|
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
521
515
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
516
|
+
"onAfter-close-animation"?: (() => any) | undefined;
|
|
522
517
|
}>, "close" | "toggle" | "open" | "updatePosition" | "isOpen"> & import('vue').ShallowUnwrapRef<{
|
|
523
518
|
open: () => void;
|
|
524
519
|
close: () => void;
|
|
@@ -532,6 +527,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
532
527
|
close: () => void;
|
|
533
528
|
toggle: () => void;
|
|
534
529
|
isOpen: boolean;
|
|
530
|
+
trigger: "click" | "hover" | "manual";
|
|
535
531
|
}): any;
|
|
536
532
|
default?(_: {
|
|
537
533
|
open: () => void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { MazBtnProps } from '../MazBtn.vue';
|
|
3
|
+
import { MazDialogConfirmInternalProps } from '../MazDialogConfirm.vue';
|
|
4
|
+
export interface MazDialogConfirmState {
|
|
5
|
+
id: string;
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
accept: (value: unknown) => void;
|
|
8
|
+
reject?: (reason?: unknown) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface MazDialogConfirmButtonAction extends Omit<MazBtnProps, 'type'> {
|
|
11
|
+
type: never;
|
|
12
|
+
text?: string;
|
|
13
|
+
onClick: () => unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface MazDialogConfirmButtonPromised extends Omit<MazBtnProps, 'type'> {
|
|
16
|
+
text?: string;
|
|
17
|
+
type: 'accept' | 'reject';
|
|
18
|
+
response?: unknown;
|
|
19
|
+
}
|
|
20
|
+
export type MazDialogConfirmButton = MazDialogConfirmButtonPromised | MazDialogConfirmButtonAction;
|
|
21
|
+
export type MazDialogConfirmData = Omit<MazDialogConfirmInternalProps, 'identifier'>;
|
|
22
|
+
export declare const defaultData: {
|
|
23
|
+
buttons: undefined;
|
|
24
|
+
acceptText: string;
|
|
25
|
+
hideAcceptButton: false;
|
|
26
|
+
acceptProps: {
|
|
27
|
+
color: "success";
|
|
28
|
+
type: "accept";
|
|
29
|
+
response: string;
|
|
30
|
+
};
|
|
31
|
+
rejectText: string;
|
|
32
|
+
hideRejectButton: false;
|
|
33
|
+
rejectProps: {
|
|
34
|
+
color: "destructive";
|
|
35
|
+
type: "reject";
|
|
36
|
+
response: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
declare function showDialogAndWaitChoice(identifier: string, callback?: () => unknown): Promise<unknown>;
|
|
40
|
+
export declare function useMazDialogConfirm(): {
|
|
41
|
+
data: Ref<MazDialogConfirmData, MazDialogConfirmData>;
|
|
42
|
+
dialogState: Ref<MazDialogConfirmState[], MazDialogConfirmState[]>;
|
|
43
|
+
showDialogAndWaitChoice: typeof showDialogAndWaitChoice;
|
|
44
|
+
reject: (currentDialog: MazDialogConfirmState, response?: unknown, onClick?: () => unknown) => Promise<unknown>;
|
|
45
|
+
accept: (currentDialog: MazDialogConfirmState, response?: unknown, onClick?: () => unknown) => Promise<unknown>;
|
|
46
|
+
};
|
|
47
|
+
export {};
|