maz-ui 4.0.0-beta.2 → 4.0.0-beta.21
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.BFhP-9HO.css +1 -0
- package/dist/assets/MazCard.DBuQhXtl.css +1 -0
- package/dist/assets/{MazCardSpotlight.Dy-wuLQq.css → MazCardSpotlight.IbPp_y0j.css} +1 -1
- package/dist/assets/MazCheckbox.aH1IKnrR.css +1 -0
- package/dist/assets/MazChecklist.BzF5KtZ3.css +1 -0
- package/dist/assets/MazDatePicker.8GyrtM-j.css +1 -0
- package/dist/assets/MazDropzone.CXu1QtnY.css +1 -0
- package/dist/assets/MazInput.ByolKDfx.css +1 -0
- package/dist/assets/MazInputCode.FA2z4HQd.css +1 -0
- package/dist/assets/MazInputPhoneNumber.CrXS7DOY.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/MazPickerCalendarMonth.Boe_8k4x.css +1 -0
- package/dist/assets/MazPickerMonthSwitcher.CszcpCcY.css +1 -0
- package/dist/assets/{MazPickerYearSwitcher.Dl30Dwor.css → MazPickerYearSwitcher.Cn-nS-Vv.css} +1 -1
- package/dist/assets/MazPopover.rBpotMKW.css +1 -0
- package/dist/assets/MazPullToRefresh.BQ64UvzA.css +1 -0
- package/dist/assets/MazRadio.aTHM-mpx.css +1 -0
- package/dist/assets/MazRadioButtons.SGytq4d7.css +1 -0
- package/dist/assets/MazReadingProgressBar.CwBVXE3g.css +1 -0
- package/dist/assets/MazSelect.CwjnAZiu.css +1 -0
- package/dist/assets/{MazSelectCountry.D2Qudf0K.css → MazSelectCountry.t3GsKyqw.css} +1 -1
- package/dist/assets/{MazSlider.D5SgmZLH.css → MazSlider.y4qpnD0N.css} +1 -1
- 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.BJiKqOF6.css} +1 -1
- package/dist/assets/{fullscreen-img.pvt6196l.css → fullscreen-img.Bkuz1GOX.css} +1 -1
- package/dist/assets/{toast.kunueRvo.css → toast.CC2VQab8.css} +1 -1
- package/dist/chunks/{MazDatePicker.CT5yJhSN.js → MazDatePicker.De3Ltb2F.js} +29 -31
- 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.BES3jpuw.js} +12 -22
- package/dist/chunks/{MazInputPhoneNumber.Uwhn1Q9j.js → MazInputPhoneNumber.Ch-PCGiv.js} +14 -12
- 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.DKXNI8O4.js} +1 -1
- package/dist/chunks/{MazPickerCalendarMonth.hQBSVkc9.js → MazPickerCalendarMonth.DKBqgrNp.js} +5 -5
- package/dist/chunks/{MazPickerCalendarSwitcher.Cp2ux3E4.js → MazPickerCalendarSwitcher.CzIZol3Z.js} +1 -1
- package/dist/chunks/{MazPickerContainer.DnfB3Dqg.js → MazPickerContainer.Mrh-Q52I.js} +1 -1
- package/dist/chunks/{MazPickerHeader.Dlz2yJ1D.js → MazPickerHeader.Bm9vIrtB.js} +1 -1
- package/dist/chunks/{MazPickerMonthSwitcher.BpfCGGxQ.js → MazPickerMonthSwitcher.BSD2GtY6.js} +5 -6
- package/dist/chunks/{MazPickerTime.EuWWNfid.js → MazPickerTime.D0hilq5b.js} +1 -1
- package/dist/chunks/{MazPickerYearSwitcher.D4aO09D3.js → MazPickerYearSwitcher.BIUYJMvj.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.BzL1_XS5.js} +5 -4
- 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/types.D0Bp_UhS.js +6 -0
- package/dist/chunks/{normalizeString.CFe2M8S_.js → useStringMatching.Ba1yCuA4.js} +40 -1
- 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 +1 -1
- 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 +177 -89
- package/dist/components/MazPullToRefresh.js +8 -3
- package/dist/components/MazRadio.js +8 -16
- package/dist/components/MazRadioButtons.js +7 -6
- package/dist/components/MazReadingProgressBar.js +10 -3
- package/dist/components/MazSelect.js +24 -14
- package/dist/components/MazSelectCountry.js +15 -9
- package/dist/components/MazSlider.js +2 -2
- 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 +7 -1
- 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/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 +97 -60
- package/dist/index.js +1 -114
- package/dist/plugins/dialog.js +3 -3
- package/dist/plugins/maz-ui.js +150 -143
- package/dist/plugins/toast.js +8 -11
- package/dist/resolvers/MazComponentsResolver.js +7 -1
- package/dist/resolvers/MazDirectivesResolver.js +1 -1
- package/dist/resolvers/MazModulesResolver.js +3 -1
- 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/MazCheckbox.vue.d.ts +0 -6
- package/dist/types/components/MazChecklist.vue.d.ts +1 -1
- package/dist/types/components/MazDatePicker.vue.d.ts +15 -23
- 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 +2 -2
- package/dist/types/components/MazInputPhoneNumber/useLibphonenumber.d.ts +2 -2
- package/dist/types/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +6 -2
- package/dist/types/components/MazInputPhoneNumber.vue.d.ts +38 -15
- 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 +18 -15
- package/dist/types/components/MazRadioButtons.vue.d.ts +1 -1
- package/dist/types/components/MazSelect.vue.d.ts +2 -2
- package/dist/types/components/MazSelectCountry.vue.d.ts +13 -4
- 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 +2 -2
- 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/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 +42 -39
- 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/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/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/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/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
|
@@ -2,7 +2,7 @@ import { inject } from "vue";
|
|
|
2
2
|
function useTranslations() {
|
|
3
3
|
const injected = inject("mazTranslations");
|
|
4
4
|
if (!injected)
|
|
5
|
-
throw new Error("
|
|
5
|
+
throw new Error("[@maz-ui/translations] You must install the MazUi or MazTranslations plugin before using useTranslations composable");
|
|
6
6
|
return injected;
|
|
7
7
|
}
|
|
8
8
|
export {
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { nextTick } from "vue";
|
|
2
|
+
function isServer() {
|
|
3
|
+
return typeof document > "u" || typeof globalThis.window > "u";
|
|
4
|
+
}
|
|
5
|
+
const eventHandlers = /* @__PURE__ */ new WeakMap();
|
|
6
|
+
function getEventType() {
|
|
7
|
+
return isServer() ? "click" : document.ontouchstart === null ? "touchstart" : "click";
|
|
8
|
+
}
|
|
9
|
+
function isOptionsObject(value) {
|
|
10
|
+
return typeof value == "object" && value !== null && "callback" in value;
|
|
11
|
+
}
|
|
12
|
+
function getOptionsFromBinding(binding) {
|
|
13
|
+
const value = binding.value;
|
|
14
|
+
return isOptionsObject(value) ? {
|
|
15
|
+
ignore: [],
|
|
16
|
+
capture: !1,
|
|
17
|
+
once: !1,
|
|
18
|
+
stopPropagation: !1,
|
|
19
|
+
...value
|
|
20
|
+
} : {
|
|
21
|
+
callback: value,
|
|
22
|
+
ignore: [],
|
|
23
|
+
capture: !1,
|
|
24
|
+
once: !1,
|
|
25
|
+
stopPropagation: !1
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function shouldIgnoreElement(target, ignoreSelectors) {
|
|
29
|
+
return isServer() ? !1 : ignoreSelectors.some((selector) => {
|
|
30
|
+
try {
|
|
31
|
+
if (target.matches && target.matches(selector) || target.closest && target.closest(selector) !== null)
|
|
32
|
+
return !0;
|
|
33
|
+
const excludedElement = document.querySelector(selector);
|
|
34
|
+
if (excludedElement) {
|
|
35
|
+
const elementId = excludedElement.getAttribute("id");
|
|
36
|
+
if (elementId && target instanceof HTMLElement && target.getAttribute("id") === elementId || excludedElement.contains(target))
|
|
37
|
+
return !0;
|
|
38
|
+
}
|
|
39
|
+
return !1;
|
|
40
|
+
} catch {
|
|
41
|
+
return !1;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
async function onMounted(el, binding) {
|
|
46
|
+
if (!isServer())
|
|
47
|
+
try {
|
|
48
|
+
onUnmounted(el);
|
|
49
|
+
const vm = binding.instance, options = getOptionsFromBinding(binding), { callback, ignore = [], capture = !1, once = !1, stopPropagation = !1 } = options, isCallbackFunction = typeof callback == "function";
|
|
50
|
+
if (!isCallbackFunction)
|
|
51
|
+
throw new Error("[maz-ui](vClickOutside) the callback should be a function");
|
|
52
|
+
await nextTick();
|
|
53
|
+
const eventHandler = (event) => {
|
|
54
|
+
stopPropagation && event.stopPropagation();
|
|
55
|
+
const target = event.target;
|
|
56
|
+
if (!target || !el)
|
|
57
|
+
return;
|
|
58
|
+
const isOutside = !el.contains(target), shouldIgnore = ignore.length > 0 && shouldIgnoreElement(target, ignore);
|
|
59
|
+
if (isOutside && !shouldIgnore && callback && isCallbackFunction)
|
|
60
|
+
return callback.call(vm, event);
|
|
61
|
+
};
|
|
62
|
+
eventHandlers.set(el, eventHandler);
|
|
63
|
+
const eventType = getEventType(), eventOptions = {
|
|
64
|
+
passive: !0,
|
|
65
|
+
capture,
|
|
66
|
+
once
|
|
67
|
+
};
|
|
68
|
+
document.addEventListener(eventType, eventHandler, eventOptions);
|
|
69
|
+
} catch (error) {
|
|
70
|
+
console.error("[maz-ui](vClickOutside)", error);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function onUnmounted(el) {
|
|
74
|
+
if (!isServer())
|
|
75
|
+
try {
|
|
76
|
+
const eventHandler = eventHandlers.get(el);
|
|
77
|
+
if (eventHandler) {
|
|
78
|
+
const eventType = getEventType();
|
|
79
|
+
document.removeEventListener(eventType, eventHandler, !1), eventHandlers.delete(el);
|
|
80
|
+
}
|
|
81
|
+
} catch (error) {
|
|
82
|
+
console.error("[maz-ui](vClickOutside)", error);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function onUpdated(el, binding) {
|
|
86
|
+
try {
|
|
87
|
+
if (binding.value === binding.oldValue)
|
|
88
|
+
return;
|
|
89
|
+
onMounted(el, binding);
|
|
90
|
+
} catch (error) {
|
|
91
|
+
console.error("[maz-ui](vClickOutside)", error);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const directive = {
|
|
95
|
+
mounted: onMounted,
|
|
96
|
+
updated: onUpdated,
|
|
97
|
+
unmounted: onUnmounted
|
|
98
|
+
}, plugin = {
|
|
99
|
+
install: (app) => {
|
|
100
|
+
app.directive("click-outside", directive);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
export {
|
|
104
|
+
directive as d,
|
|
105
|
+
isServer as i,
|
|
106
|
+
plugin as p
|
|
107
|
+
};
|
|
@@ -4,7 +4,7 @@ import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
|
4
4
|
import MazCardSpotlight from "./MazCardSpotlight.js";
|
|
5
5
|
import MazExpandAnimation from "./MazExpandAnimation.js";
|
|
6
6
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
7
|
-
import '../assets/MazAccordion.
|
|
7
|
+
import '../assets/MazAccordion.DUQCf8vy.css';const _hoisted_1 = {
|
|
8
8
|
class: "m-accordion m-reset-css",
|
|
9
9
|
role: "presentation"
|
|
10
10
|
}, _hoisted_2 = ["id", "aria-controls", "aria-expanded", "onClick"], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -78,7 +78,7 @@ import '../assets/MazAccordion.esK3rR4p.css';const _hoisted_1 = {
|
|
|
78
78
|
}, 1024))), 128))
|
|
79
79
|
]));
|
|
80
80
|
}
|
|
81
|
-
}), MazAccordion = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
81
|
+
}), MazAccordion = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-70bf9ef9"]]);
|
|
82
82
|
export {
|
|
83
83
|
MazAccordion as default
|
|
84
84
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, onBeforeUnmount, watch, createElementBlock, openBlock, createElementVNode, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { i as isClient } from "../chunks/isClient.WI4oSt66.js";
|
|
3
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
|
-
import '../assets/MazAnimatedCounter.
|
|
4
|
+
import '../assets/MazAnimatedCounter.DkZNPRLp.css';const _hoisted_1 = { class: "maz-sr-only" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazAnimatedCounter",
|
|
6
6
|
props: {
|
|
7
7
|
count: {},
|
|
@@ -14,7 +14,7 @@ import '../assets/MazAnimatedCounter.CTG-PC5W.css';const _hoisted_1 = { class: "
|
|
|
14
14
|
setup(__props) {
|
|
15
15
|
const props = __props, currentCount = ref(0), elementRef = ref(null);
|
|
16
16
|
function getRequestAnimationFrame() {
|
|
17
|
-
return !isClient() || !
|
|
17
|
+
return !isClient() || !globalThis.requestAnimationFrame ? (callback) => (setTimeout(callback, 1e3 / 60), 0) : globalThis.requestAnimationFrame.bind(globalThis);
|
|
18
18
|
}
|
|
19
19
|
function animate(start, end, duration, delay) {
|
|
20
20
|
const requestAnim = getRequestAnimationFrame();
|
|
@@ -71,7 +71,7 @@ import '../assets/MazAnimatedCounter.CTG-PC5W.css';const _hoisted_1 = { class: "
|
|
|
71
71
|
], !0)
|
|
72
72
|
], 512));
|
|
73
73
|
}
|
|
74
|
-
}), MazAnimatedCounter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
74
|
+
}), MazAnimatedCounter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-02bb6e23"]]);
|
|
75
75
|
export {
|
|
76
76
|
MazAnimatedCounter as default
|
|
77
77
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, onMounted, onBeforeUnmount, createElementBlock, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createCommentVNode, Fragment, renderList, createElementVNode, normalizeStyle, normalizeClass, toDisplayString, createTextVNode } from "vue";
|
|
2
2
|
import { c as checkAvailability } from "../chunks/checkAvailability.aTpZidex.js";
|
|
3
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
|
-
import '../assets/MazAnimatedText.
|
|
4
|
+
import '../assets/MazAnimatedText.DDqCxrFX.css';const _hoisted_1 = { class: "m-reset-css m-animated-text" }, _hoisted_2 = { class: "m-animated-text__last-word-inner" }, _hoisted_3 = { class: "m-animated-text__last-word-inner-text" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "MazAnimatedText",
|
|
7
7
|
props: {
|
|
@@ -73,7 +73,7 @@ import '../assets/MazAnimatedText.BrOwWuqf.css';const _hoisted_1 = { class: "m-r
|
|
|
73
73
|
}, 16))
|
|
74
74
|
]));
|
|
75
75
|
}
|
|
76
|
-
}), MazAnimatedText = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
76
|
+
}), MazAnimatedText = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1285ff2b"]]);
|
|
77
77
|
export {
|
|
78
78
|
MazAnimatedText as default
|
|
79
79
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, watch, nextTick, createBlock, openBlock, Teleport, createVNode, Transition, withCtx, createElementBlock, createCommentVNode, mergeProps, createElementVNode, withModifiers, normalizeClass, renderSlot } from "vue";
|
|
2
2
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
3
|
-
import '../assets/MazBackdrop.
|
|
3
|
+
import '../assets/MazBackdrop.BnhcmjbP.css';const _hoisted_1 = {
|
|
4
4
|
role: "dialog",
|
|
5
5
|
class: "m-backdrop-container",
|
|
6
6
|
"aria-modal": "true"
|
|
@@ -65,7 +65,7 @@ import '../assets/MazBackdrop.DNpnLh63.css';const _hoisted_1 = {
|
|
|
65
65
|
let initialFocusableElement = null;
|
|
66
66
|
function findFirstFocusableElement(selector) {
|
|
67
67
|
const modal = document.querySelector(selector), visibleFocusableElements = (modal && Array.from(modal.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select')))?.filter((el) => {
|
|
68
|
-
const style =
|
|
68
|
+
const style = globalThis.getComputedStyle(el);
|
|
69
69
|
return style.display !== "none" && style.visibility !== "hidden" && !el.disabled;
|
|
70
70
|
});
|
|
71
71
|
return visibleFocusableElements && visibleFocusableElements.length > 0 ? visibleFocusableElements[0] : null;
|
|
@@ -118,7 +118,7 @@ import '../assets/MazBackdrop.DNpnLh63.css';const _hoisted_1 = {
|
|
|
118
118
|
}, 8, ["name"])
|
|
119
119
|
], 8, ["to"]));
|
|
120
120
|
}
|
|
121
|
-
}), MazBackdrop = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
121
|
+
}), MazBackdrop = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-94bf4716"]]);
|
|
122
122
|
export {
|
|
123
123
|
MazBackdrop as default
|
|
124
124
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, renderSlot } from "vue";
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot } from "vue";
|
|
2
|
+
import { g as getColor } from "../chunks/types.D0Bp_UhS.js";
|
|
2
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
3
|
-
import '../assets/MazBadge.
|
|
4
|
+
import '../assets/MazBadge.ChI2DaTU.css';const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
5
|
__name: "MazBadge",
|
|
5
6
|
props: {
|
|
6
7
|
color: { default: "primary" },
|
|
@@ -13,7 +14,7 @@ import '../assets/MazBadge.DN8tdE8_.css';const _sfc_main = /* @__PURE__ */ defin
|
|
|
13
14
|
setup(__props) {
|
|
14
15
|
return (_ctx, _cache) => (openBlock(), createElementBlock("span", {
|
|
15
16
|
class: normalizeClass(["m-badge m-reset-css", [
|
|
16
|
-
`--${_ctx.color}`,
|
|
17
|
+
`--${unref(getColor)(_ctx.color)}`,
|
|
17
18
|
{ "--outlined": _ctx.outlined, "--pastel": _ctx.pastel, "--nowrap": _ctx.nowrap },
|
|
18
19
|
`--rounded-${_ctx.roundedSize}`
|
|
19
20
|
]]),
|
|
@@ -22,7 +23,7 @@ import '../assets/MazBadge.DN8tdE8_.css';const _sfc_main = /* @__PURE__ */ defin
|
|
|
22
23
|
renderSlot(_ctx.$slots, "default", {}, void 0, !0)
|
|
23
24
|
], 6));
|
|
24
25
|
}
|
|
25
|
-
}), MazBadge = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
26
|
+
}), MazBadge = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3e5aca4b"]]);
|
|
26
27
|
export {
|
|
27
28
|
MazBadge as default
|
|
28
29
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, defineAsyncComponent, useAttrs, computed, createBlock, openBlock, resolveDynamicComponent, normalizeStyle, normalizeClass, withCtx, renderSlot, createElementBlock, createCommentVNode,
|
|
1
|
+
import { defineComponent, defineAsyncComponent, useAttrs, computed, createBlock, openBlock, resolveDynamicComponent, normalizeStyle, normalizeClass, unref, withCtx, renderSlot, createElementBlock, createCommentVNode, createTextVNode, toDisplayString, createVNode } from "vue";
|
|
2
|
+
import { g as getColor } from "../chunks/types.D0Bp_UhS.js";
|
|
2
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
3
|
-
import '../assets/MazBtn.
|
|
4
|
+
import '../assets/MazBtn.BFhP-9HO.css';const _hoisted_1 = {
|
|
4
5
|
key: 0,
|
|
5
6
|
class: "m-btn-loader-container"
|
|
6
7
|
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -24,7 +25,7 @@ import '../assets/MazBtn.BnRxVlqS.css';const _hoisted_1 = {
|
|
|
24
25
|
justify: { default: "center" }
|
|
25
26
|
},
|
|
26
27
|
setup(__props) {
|
|
27
|
-
const MazIcon = defineAsyncComponent(() => import("./MazIcon.js")), MazSpinner = defineAsyncComponent(() => import("./MazSpinner.js")), { href, to } = useAttrs(), component = computed(() => href ? "a" : to ? "router-link" : "button"), btnColorClass = computed(() => __props.pastel ? `--${__props.color}-pastel` : __props.outlined ? `--${__props.color}-outlined` : `--${__props.color}`), isDisabled = computed(
|
|
28
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon.js")), MazSpinner = defineAsyncComponent(() => import("./MazSpinner.js")), { href, to } = useAttrs(), component = computed(() => href ? "a" : to ? "router-link" : "button"), btnColorClass = computed(() => __props.pastel ? `--${__props.color}-pastel` : __props.outlined ? `--${__props.color}-outlined` : `--${getColor(__props.color)}`), isDisabled = computed(
|
|
28
29
|
() => (__props.loading || __props.disabled) && component.value === "button"
|
|
29
30
|
), cursorClass = computed(() => isDisabled.value ? "--cursor-default" : "--cursor-pointer"), btnType = computed(() => component.value === "button" ? __props.type : void 0), iconClassSize = computed(() => __props.size === "xl" ? "maz-text-3xl" : __props.size === "lg" ? "maz-text-2xl" : __props.size === "md" ? "maz-text-xl" : __props.size === "sm" ? "maz-text-lg" : __props.size === "xs" ? "maz-text-base" : __props.size === "mini" ? "maz-text-sm" : "maz-text-xl");
|
|
30
31
|
return (_ctx, _cache) => (openBlock(), createBlock(resolveDynamicComponent(component.value), {
|
|
@@ -38,11 +39,10 @@ import '../assets/MazBtn.BnRxVlqS.css';const _hoisted_1 = {
|
|
|
38
39
|
"--block": _ctx.block,
|
|
39
40
|
"--fab": _ctx.fab,
|
|
40
41
|
"--loading": _ctx.loading,
|
|
41
|
-
"--disabled": isDisabled.value,
|
|
42
42
|
"--no-padding": !_ctx.padding
|
|
43
43
|
}
|
|
44
44
|
]]),
|
|
45
|
-
style: normalizeStyle([`--justify: ${_ctx.justify}`, `--color: var(--maz-${_ctx.color})`]),
|
|
45
|
+
style: normalizeStyle([`--justify: ${_ctx.justify}`, `--color: var(--maz-${unref(getColor)(_ctx.color)})`]),
|
|
46
46
|
type: btnType.value
|
|
47
47
|
}, {
|
|
48
48
|
default: withCtx(() => [
|
|
@@ -80,13 +80,15 @@ import '../assets/MazBtn.BnRxVlqS.css';const _hoisted_1 = {
|
|
|
80
80
|
}, null, 8, ["class"])) : createCommentVNode("", !0)
|
|
81
81
|
], !0),
|
|
82
82
|
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
83
|
-
|
|
83
|
+
renderSlot(_ctx.$slots, "loader", {}, () => [
|
|
84
|
+
createVNode(unref(MazSpinner), { size: "2em" })
|
|
85
|
+
], !0)
|
|
84
86
|
])) : createCommentVNode("", !0)
|
|
85
87
|
]),
|
|
86
88
|
_: 3
|
|
87
89
|
}, 8, ["disabled", "class", "style", "type"]));
|
|
88
90
|
}
|
|
89
|
-
}), MazBtn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
91
|
+
}), MazBtn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-010b1d32"]]);
|
|
90
92
|
export {
|
|
91
93
|
MazBtn as default
|
|
92
94
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent, mergeModels, defineAsyncComponent, useSlots, useModel,
|
|
|
2
2
|
import { MazChevronDown } from "@maz-ui/icons";
|
|
3
3
|
import { RouterLink } from "vue-router";
|
|
4
4
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
5
|
-
import '../assets/MazCard.
|
|
5
|
+
import '../assets/MazCard.DBuQhXtl.css';const _hoisted_1 = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "m-card__gallery__wrapper"
|
|
8
8
|
}, _hoisted_2 = { class: "maz-min-w-0 maz-flex-1" }, _hoisted_3 = {
|
|
@@ -175,7 +175,7 @@ import '../assets/MazCard.C6nDaeIC.css';const _hoisted_1 = {
|
|
|
175
175
|
])) : createCommentVNode("", !0)
|
|
176
176
|
], 2));
|
|
177
177
|
}
|
|
178
|
-
}), MazCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
178
|
+
}), MazCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b17f806c"]]);
|
|
179
179
|
export {
|
|
180
180
|
MazCard as default
|
|
181
181
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, onMounted, onUnmounted, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, withDirectives, renderSlot, vShow } from "vue";
|
|
2
2
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
3
|
-
import '../assets/MazCardSpotlight.
|
|
3
|
+
import '../assets/MazCardSpotlight.IbPp_y0j.css';const _hoisted_1 = { class: "inner" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "MazCardSpotlight",
|
|
5
5
|
props: {
|
|
6
6
|
color: { default: "primary" },
|
|
@@ -31,9 +31,9 @@ import '../assets/MazCardSpotlight.Dy-wuLQq.css';const _hoisted_1 = { class: "in
|
|
|
31
31
|
}
|
|
32
32
|
const alphaColor = computed(() => `hsl(var(--maz-${__props.color}) / 60%)`), alphaColor20 = computed(() => `hsl(var(--maz-${__props.color}) / 20%)`);
|
|
33
33
|
return onMounted(() => {
|
|
34
|
-
|
|
34
|
+
globalThis.addEventListener("mousemove", animateBlob);
|
|
35
35
|
}), onUnmounted(() => {
|
|
36
|
-
|
|
36
|
+
globalThis.removeEventListener("mousemove", animateBlob);
|
|
37
37
|
}), (_ctx, _cache) => (openBlock(), createElementBlock("div", {
|
|
38
38
|
class: normalizeClass(["m-card-spotlight m-reset-css", { "maz-shadow-elevation maz-drop-shadow-md": _ctx.elevation }]),
|
|
39
39
|
style: normalizeStyle({ backgroundColor: alphaColor20.value, "--inner-opacity": _ctx.innerOpacity })
|
|
@@ -63,7 +63,7 @@ import '../assets/MazCardSpotlight.Dy-wuLQq.css';const _hoisted_1 = { class: "in
|
|
|
63
63
|
])
|
|
64
64
|
], 6));
|
|
65
65
|
}
|
|
66
|
-
}), MazCardSpotlight = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
66
|
+
}), MazCardSpotlight = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e67f8a00"]]);
|
|
67
67
|
export {
|
|
68
68
|
MazCardSpotlight as default
|
|
69
69
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, useSlots, ref, computed, createElementBlock, openBlock, normalizeClass, createCommentVNode, createElementVNode, renderSlot, createVNode, unref, withCtx } from "vue";
|
|
2
2
|
import { MazChevronLeft, MazChevronRight } from "@maz-ui/icons";
|
|
3
|
-
import { u as useTranslations } from "../chunks/useTranslations.
|
|
3
|
+
import { u as useTranslations } from "../chunks/useTranslations.D5aoYwD7.js";
|
|
4
4
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
5
5
|
import '../assets/MazCarousel.BaqN4hLP.css';const _hoisted_1 = { key: 0 }, _hoisted_2 = {
|
|
6
6
|
key: 1,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, createCommentVNode, mergeProps, createVNode, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { MazCheck } from "@maz-ui/icons";
|
|
3
3
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
4
4
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
5
|
-
import '../assets/MazCheckbox.
|
|
5
|
+
import '../assets/MazCheckbox.aH1IKnrR.css';const _hoisted_1 = ["for", "aria-checked"], _hoisted_2 = ["id", "checked", "disabled", "name"], _hoisted_3 = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "m-checkbox__text"
|
|
8
8
|
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -22,15 +22,14 @@ import '../assets/MazCheckbox.C_qIngLy.css';const _hoisted_1 = ["for", "tabindex
|
|
|
22
22
|
error: { type: Boolean },
|
|
23
23
|
success: { type: Boolean },
|
|
24
24
|
warning: { type: Boolean },
|
|
25
|
-
hint: {}
|
|
26
|
-
tabindex: { default: 0 }
|
|
25
|
+
hint: {}
|
|
27
26
|
},
|
|
28
27
|
emits: ["update:model-value", "change", "blur", "focus"],
|
|
29
28
|
setup(__props, { emit: __emit }) {
|
|
30
29
|
const props = __props, emits = __emit, instanceId = useInstanceUniqId({
|
|
31
30
|
componentName: "MazCheckbox",
|
|
32
31
|
providedId: props.id
|
|
33
|
-
}), isChecked = computed(() => typeof props.value != "boolean" && Array.isArray(props.modelValue) ? props.modelValue.includes(props.value) : typeof props.modelValue == "boolean" ? props.modelValue : !1), checkboxSize = computed(() => {
|
|
32
|
+
}), inputRef = ref(), isFocused = ref(!1), isChecked = computed(() => typeof props.value != "boolean" && Array.isArray(props.modelValue) ? props.modelValue.includes(props.value) : typeof props.modelValue == "boolean" ? props.modelValue : !1), checkboxSize = computed(() => {
|
|
34
33
|
switch (props.size) {
|
|
35
34
|
case "xl":
|
|
36
35
|
return "2rem";
|
|
@@ -60,7 +59,7 @@ import '../assets/MazCheckbox.C_qIngLy.css';const _hoisted_1 = ["for", "tabindex
|
|
|
60
59
|
default:
|
|
61
60
|
return "maz-text-lg";
|
|
62
61
|
}
|
|
63
|
-
}), checkIconColor = computed(() => props.color === "contrast" ? "hsl(var(--maz-background))" : `hsl(var(--maz-${props.color}-foreground))`), checkboxSelectedColor = computed(() => props.color === "contrast" ? "hsl(var(--maz-contrast))" : `hsl(var(--maz-${props.color}))`), checkboxBoxShadow = computed(() => props.error ? "hsl(var(--maz-destructive))" : props.warning ? "hsl(var(--maz-warning))" : props.success ? "hsl(var(--maz-success))" : ["transparent", "contrast"].includes(props.color) ? "hsl(var(--maz-muted))" : `hsl(var(--maz-${props.color}) / 60%)`);
|
|
62
|
+
}), checkIconColor = computed(() => props.color === "contrast" ? "hsl(var(--maz-background))" : `hsl(var(--maz-${props.color}-foreground))`), checkboxSelectedColor = computed(() => props.color === "contrast" ? "hsl(var(--maz-contrast))" : `hsl(var(--maz-${props.color}))`), checkboxBoxShadow = computed(() => props.error && !isFocused.value ? "hsl(var(--maz-destructive))" : props.warning && !isFocused.value ? "hsl(var(--maz-warning))" : props.success && !isFocused.value ? "hsl(var(--maz-success))" : ["transparent", "contrast"].includes(props.color) ? "hsl(var(--maz-muted))" : `hsl(var(--maz-${props.color}) / 60%)`);
|
|
64
63
|
function keyboardHandler(event) {
|
|
65
64
|
["Space"].includes(event.code) && (event.preventDefault(), emitValue(props.value ?? !props.modelValue));
|
|
66
65
|
}
|
|
@@ -71,20 +70,19 @@ import '../assets/MazCheckbox.C_qIngLy.css';const _hoisted_1 = ["for", "tabindex
|
|
|
71
70
|
const newValue = getNewValue(value);
|
|
72
71
|
emits("update:model-value", newValue), emits("change", newValue);
|
|
73
72
|
}
|
|
74
|
-
const inputRef = ref();
|
|
75
73
|
function onBlur(event) {
|
|
76
|
-
inputRef.value?.dispatchEvent(new Event("blur")), emits("blur", event);
|
|
74
|
+
isFocused.value = !1, inputRef.value?.dispatchEvent(new Event("blur")), emits("blur", event);
|
|
77
75
|
}
|
|
78
76
|
function onFocus(event) {
|
|
79
|
-
inputRef.value?.dispatchEvent(new Event("focus")), emits("focus", event);
|
|
77
|
+
isFocused.value = !0, inputRef.value?.dispatchEvent(new Event("focus")), emits("focus", event);
|
|
80
78
|
}
|
|
81
79
|
return (_ctx, _cache) => (openBlock(), createElementBlock("label", {
|
|
82
80
|
for: unref(instanceId),
|
|
83
|
-
class: normalizeClass(["m-checkbox m-reset-css", [{ "--
|
|
84
|
-
tabindex: _ctx.tabindex,
|
|
81
|
+
class: normalizeClass(["m-checkbox m-reset-css", [{ "--error": _ctx.error, "--warning": _ctx.warning, "--success": _ctx.success }, props.class]]),
|
|
85
82
|
style: normalizeStyle([_ctx.style, { "--checkbox-selected-color": checkboxSelectedColor.value, "--checkbox-box-shadow-color": checkboxBoxShadow.value }]),
|
|
86
83
|
role: "checkbox",
|
|
87
84
|
"aria-checked": isChecked.value,
|
|
85
|
+
tabindex: "0",
|
|
88
86
|
onKeydown: keyboardHandler,
|
|
89
87
|
onBlur,
|
|
90
88
|
onFocus
|
|
@@ -124,7 +122,7 @@ import '../assets/MazCheckbox.C_qIngLy.css';const _hoisted_1 = ["for", "tabindex
|
|
|
124
122
|
])) : createCommentVNode("", !0)
|
|
125
123
|
], 46, _hoisted_1));
|
|
126
124
|
}
|
|
127
|
-
}), MazCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
125
|
+
}), MazCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0961f346"]]);
|
|
128
126
|
export {
|
|
129
127
|
MazCheckbox as default
|
|
130
128
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, ref, watch, computed, createElementBlock, openBlock, createElementVNode, createVNode, unref, createCommentVNode, createBlock, renderSlot, createTextVNode, toDisplayString, mergeProps, withCtx, Fragment, renderList } from "vue";
|
|
2
2
|
import { MazMagnifyingGlass, MazNoSymbol } from "@maz-ui/icons";
|
|
3
|
-
import { u as useTranslations } from "../chunks/useTranslations.
|
|
4
|
-
import { n as normalizeString } from "../chunks/
|
|
3
|
+
import { u as useTranslations } from "../chunks/useTranslations.D5aoYwD7.js";
|
|
4
|
+
import { n as normalizeString, u as useStringMatching } from "../chunks/useStringMatching.Ba1yCuA4.js";
|
|
5
5
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
6
|
-
import { useStringMatching } from "../composables/useStringMatching.js";
|
|
7
6
|
import MazCardSpotlight from "./MazCardSpotlight.js";
|
|
8
7
|
import MazCheckbox from "./MazCheckbox.js";
|
|
9
8
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
10
|
-
import '../assets/MazChecklist.
|
|
9
|
+
import '../assets/MazChecklist.BzF5KtZ3.css';const _hoisted_1 = { class: "m-checklist m-reset-css" }, _hoisted_2 = ["for"], _hoisted_3 = {
|
|
11
10
|
key: 0,
|
|
12
11
|
class: "title"
|
|
13
12
|
}, _hoisted_4 = {
|
|
@@ -127,7 +126,7 @@ import '../assets/MazChecklist.CWK_Gl-t.css';const _hoisted_1 = { class: "m-chec
|
|
|
127
126
|
}, 8, ["color", "elevation"])
|
|
128
127
|
]));
|
|
129
128
|
}
|
|
130
|
-
}), MazChecklist = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
129
|
+
}), MazChecklist = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a24e1de6"]]);
|
|
131
130
|
export {
|
|
132
131
|
MazChecklist as default
|
|
133
132
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { _ as _sfc_main } from "../chunks/MazDialogConfirm.vue_vue_type_script_setup_true_lang.Grn2kB3x.js";
|
|
2
|
+
import { u } from "../chunks/MazDialogConfirm.vue_vue_type_script_setup_true_lang.Grn2kB3x.js";
|
|
3
|
+
export {
|
|
4
|
+
_sfc_main as default,
|
|
5
|
+
u as useMazDialogConfirm
|
|
6
|
+
};
|
|
@@ -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 { u as useTranslations } from "../chunks/useTranslations.
|
|
3
|
+
import { u as useTranslations } from "../chunks/useTranslations.D5aoYwD7.js";
|
|
4
4
|
import { s as sleep } from "../chunks/sleep.BLRH1qZG.js";
|
|
5
5
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
6
|
-
import {
|
|
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.CXu1QtnY.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({
|
|
@@ -236,7 +236,7 @@ import '../assets/MazDropzone.DafxQwbq.css';const _hoisted_1 = ["for"], _hoisted
|
|
|
236
236
|
function onOver(files, event) {
|
|
237
237
|
emits("over", { files, event });
|
|
238
238
|
}
|
|
239
|
-
const { isOverDropZone, isOverError } =
|
|
239
|
+
const { isOverDropZone, isOverError } = useDropzone(dropZoneRef, { dataTypes: __props.dataTypes, onDrop, preventDefaultForUnhandled: __props.preventDefaultForUnhandled, multiple: hasMultiple.value, onError, onEnter, onLeave, onOver }), fileInput = ref();
|
|
240
240
|
function handleFileUpload(event) {
|
|
241
241
|
const input = event.target, files = input?.files;
|
|
242
242
|
files && handleFiles(files), setTimeout(() => {
|
|
@@ -498,7 +498,7 @@ import '../assets/MazDropzone.DafxQwbq.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-3bac5ce2"]]);
|
|
502
502
|
export {
|
|
503
503
|
MazDropzone as default
|
|
504
504
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
import { d as directive } from "../chunks/lazy-img.directive.
|
|
4
|
-
import { d as directive$1 } from "../chunks/fullscreen-img.directive.
|
|
3
|
+
import { d as directive } from "../chunks/lazy-img.directive.BLFnGqQa.js";
|
|
4
|
+
import { d as directive$1 } from "../chunks/fullscreen-img.directive.Be383en8.js";
|
|
5
5
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
6
6
|
import '../assets/MazGallery.DZ3TyggM.css';const _hoisted_1 = { class: "m-gallery__wrapper maz-flex maz-flex-1" }, _hoisted_2 = ["alt"], _hoisted_3 = {
|
|
7
7
|
key: 0,
|