maz-ui 4.0.0-beta.6 → 4.0.0-beta.8
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.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/{MazBtn.FsG6p6NF.css → MazBtn.DUBbj2mt.css} +1 -1
- package/dist/assets/{MazCardSpotlight.Dy-wuLQq.css → MazCardSpotlight.IbPp_y0j.css} +1 -1
- package/dist/assets/MazChecklist.BzF5KtZ3.css +1 -0
- package/dist/assets/{MazDropzone.DafxQwbq.css → MazDropzone.-8lzCrxJ.css} +1 -1
- package/dist/assets/{MazInput.WPopv89k.css → MazInput.BcUsJg7p.css} +1 -1
- package/dist/assets/MazInputPhoneNumber.CrXS7DOY.css +1 -0
- package/dist/assets/MazInputTags.DzTGy9z3.css +1 -0
- package/dist/assets/MazLink.wJoKRsCP.css +1 -0
- package/dist/assets/MazPickerCalendarMonth.Boe_8k4x.css +1 -0
- package/dist/assets/{MazPopover.D-WwUjU_.css → MazPopover.DzCAfuWw.css} +1 -1
- package/dist/assets/MazPullToRefresh.BQ64UvzA.css +1 -0
- package/dist/assets/MazReadingProgressBar.CwBVXE3g.css +1 -0
- package/dist/assets/MazSelect.Cljh3PVV.css +1 -0
- package/dist/assets/{MazSelectCountry.9RTcDxtM.css → MazSelectCountry.CdNTQPhr.css} +1 -1
- package/dist/assets/{MazSlider.D5SgmZLH.css → MazSlider.y4qpnD0N.css} +1 -1
- package/dist/assets/{MazTabsBar.B9N_jdqU.css → MazTabsBar.gcS2Fc-B.css} +1 -1
- package/dist/assets/MazTextarea.DME7BHS5.css +1 -0
- package/dist/assets/{PhoneInput.CyWO76iq.css → PhoneInput.DBLH22G1.css} +1 -1
- package/dist/assets/{fullscreen-img.pvt6196l.css → fullscreen-img.Bkuz1GOX.css} +1 -1
- package/dist/chunks/{MazDatePicker.EVP68BQf.js → MazDatePicker.De3Ltb2F.js} +2 -2
- package/dist/chunks/{MazDialogPromise.vue_vue_type_script_setup_true_lang.BQvDEofz.js → MazDialogConfirm.vue_vue_type_script_setup_true_lang.-K3NpiFL.js} +73 -21
- package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.DjPJ9-gt.js → MazDropdown.vue_vue_type_style_index_0_lang.BES3jpuw.js} +5 -8
- package/dist/chunks/{MazInputPhoneNumber.B7mxCHgU.js → MazInputPhoneNumber.DBncAmC5.js} +14 -12
- package/dist/chunks/{MazPickerCalendar.CzPlAVdQ.js → MazPickerCalendar.DKXNI8O4.js} +1 -1
- package/dist/chunks/{MazPickerCalendarMonth.gZBcslia.js → MazPickerCalendarMonth.DKBqgrNp.js} +5 -5
- package/dist/chunks/{MazPickerCalendarSwitcher.CzAkb2yj.js → MazPickerCalendarSwitcher.CzIZol3Z.js} +1 -1
- package/dist/chunks/{MazPickerContainer.BodulCQp.js → MazPickerContainer.Mrh-Q52I.js} +1 -1
- package/dist/chunks/{MazPickerHeader.ns_pHhiy.js → MazPickerHeader.Bm9vIrtB.js} +1 -1
- package/dist/chunks/{MazPickerMonthSwitcher.BuZuUauW.js → MazPickerMonthSwitcher.BSD2GtY6.js} +1 -1
- package/dist/chunks/{MazPickerTime.DMVpW3Ha.js → MazPickerTime.D0hilq5b.js} +1 -1
- package/dist/chunks/{MazPickerYearSwitcher.METGgjem.js → MazPickerYearSwitcher.BIUYJMvj.js} +1 -1
- package/dist/chunks/{MazTable.vue_vue_type_script_setup_true_lang.CK2bk5tI.js → MazTable.vue_vue_type_script_setup_true_lang.BcTw9Tyh.js} +1 -1
- package/dist/chunks/{PhoneInput.tDA-TWr5.js → PhoneInput.iFkRoIFk.js} +5 -4
- package/dist/chunks/{dom-events.CvkK8Xn2.js → dom-events.Bbe7wDQl.js} +3 -1
- 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/{useTranslations.BXuww4ux.js → useTranslations.D5aoYwD7.js} +1 -1
- package/dist/chunks/{vClickOutside.C69k0jaG.js → vClickOutside.DIOiluy0.js} +1 -1
- package/dist/components/MazAnimatedCounter.js +3 -3
- package/dist/components/MazAnimatedText.js +2 -2
- package/dist/components/MazBackdrop.js +3 -3
- package/dist/components/MazBtn.js +5 -3
- package/dist/components/MazCardSpotlight.js +4 -4
- package/dist/components/MazCarousel.js +1 -1
- package/dist/components/MazChecklist.js +3 -3
- 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 +14 -8
- package/dist/components/MazInputPhoneNumber.js +1 -1
- package/dist/components/MazInputTags.js +2 -2
- package/dist/components/MazLazyImg.js +1 -1
- package/dist/components/MazLink.js +9 -5
- package/dist/components/MazPagination.js +1 -1
- package/dist/components/MazPopover.js +6 -6
- package/dist/components/MazPullToRefresh.js +3 -3
- package/dist/components/MazReadingProgressBar.js +2 -2
- package/dist/components/MazSelect.js +4 -4
- package/dist/components/MazSelectCountry.js +9 -8
- package/dist/components/MazSlider.js +2 -2
- package/dist/components/MazTable.js +2 -2
- package/dist/components/MazTableCell.js +1 -1
- package/dist/components/MazTableRow.js +1 -1
- package/dist/components/MazTableTitle.js +1 -1
- package/dist/components/MazTabsBar.js +6 -6
- package/dist/components/MazTextarea.js +2 -2
- package/dist/components/index.js +6 -6
- package/dist/composables/useDropzone.js +6 -6
- package/dist/composables/useFormField.js +1 -1
- package/dist/composables/useFormValidator.js +1 -1
- package/dist/composables/useWindowSize.js +1 -1
- package/dist/directives/index.js +3 -3
- package/dist/directives/vClickOutside.js +1 -1
- package/dist/directives/vFullscreenImg.js +1 -1
- package/dist/directives/vLazyImg.js +2 -2
- package/dist/directives/vTooltip.js +1 -1
- package/dist/plugins/dialog.js +3 -3
- package/dist/plugins/maz-ui.js +121 -56
- package/dist/resolvers/MazModulesResolver.js +0 -2
- package/dist/types/components/MazBtn.vue.d.ts +1 -0
- package/dist/types/components/MazChecklist.vue.d.ts +1 -1
- package/dist/types/components/MazDialogConfirm/useMazDialogConfirm.d.ts +45 -0
- package/dist/types/components/{MazDialogPromise.vue.d.ts → MazDialogConfirm.vue.d.ts} +32 -9
- package/dist/types/components/MazInput.vue.d.ts +7 -0
- package/dist/types/components/MazInputNumber.vue.d.ts +1 -1
- package/dist/types/components/MazInputPhoneNumber.vue.d.ts +10 -2
- package/dist/types/components/MazLink.vue.d.ts +11 -0
- package/dist/types/components/MazPopover.vue.d.ts +1 -1
- package/dist/types/components/MazSelect.vue.d.ts +1 -1
- package/dist/types/components/MazSelectCountry.vue.d.ts +10 -1
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/composables/useDisplayNames.d.ts +1 -1
- package/dist/types/composables/useDropzone.d.ts +3 -3
- package/dist/types/composables/useFormField.d.ts +4 -4
- package/dist/types/composables/useFormValidator/types.d.ts +1 -2
- 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/dialog/DialogHandler.d.ts +2 -2
- package/package.json +19 -15
- package/dist/assets/MazAnimatedText.BrOwWuqf.css +0 -1
- package/dist/assets/MazBackdrop.DNpnLh63.css +0 -1
- package/dist/assets/MazChecklist.CWK_Gl-t.css +0 -1
- package/dist/assets/MazInputPhoneNumber.C-Nw3080.css +0 -1
- package/dist/assets/MazInputTags.B_s9J3sw.css +0 -1
- package/dist/assets/MazLink.CCfbrUs0.css +0 -1
- package/dist/assets/MazPickerCalendarMonth.zkrPVHDv.css +0 -1
- package/dist/assets/MazPullToRefresh.DABqbGtK.css +0 -1
- package/dist/assets/MazReadingProgressBar.n1Is8_Y3.css +0 -1
- package/dist/assets/MazSelect.DEBsk61Q.css +0 -1
- package/dist/assets/MazTextarea.Dz11mUeK.css +0 -1
- package/dist/components/MazDialogPromise.js +0 -6
- package/dist/types/components/MazDialogPromise/useMazDialogPromise.d.ts +0 -54
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, defineAsyncComponent, useModel, computed, watch, createBlock, openBlock, normalizeStyle, normalizeClass, withCtx, createElementVNode, unref, renderSlot, createElementBlock, Fragment, renderList,
|
|
1
|
+
import { defineComponent, mergeModels, defineAsyncComponent, useModel, computed, watch, createBlock, openBlock, normalizeStyle, normalizeClass, withCtx, createElementVNode, unref, renderSlot, createElementBlock, Fragment, renderList, mergeProps, withModifiers, createTextVNode, toDisplayString, withKeys, createVNode, createSlots, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { MazChevronDown } from "@maz-ui/icons";
|
|
3
|
-
import { u as useTranslations } from "./useTranslations.
|
|
3
|
+
import { u as useTranslations } from "./useTranslations.D5aoYwD7.js";
|
|
4
4
|
import { i as isClient } from "./isClient.WI4oSt66.js";
|
|
5
5
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
6
6
|
import MazPopover from "../components/MazPopover.js";
|
|
@@ -60,9 +60,6 @@ import '../assets/MazDropdown.C6vjLIeN.css';const _hoisted_1 = ["id", "aria-expa
|
|
|
60
60
|
function setDropdown(value) {
|
|
61
61
|
__props.disabled || (modelValue.value = value);
|
|
62
62
|
}
|
|
63
|
-
function isActionItem(item) {
|
|
64
|
-
return "onClick" in item;
|
|
65
|
-
}
|
|
66
63
|
function isLinkItem(item) {
|
|
67
64
|
return "href" in item || "to" in item;
|
|
68
65
|
}
|
|
@@ -217,11 +214,11 @@ import '../assets/MazDropdown.C6vjLIeN.css';const _hoisted_1 = ["id", "aria-expa
|
|
|
217
214
|
])
|
|
218
215
|
]),
|
|
219
216
|
_: 2
|
|
220
|
-
}, 1040, ["target", "to", "href", "color", "underline-only-hover", "class"])) :
|
|
217
|
+
}, 1040, ["target", "to", "href", "color", "underline-only-hover", "class"])) : (openBlock(), createElementBlock("button", mergeProps({
|
|
221
218
|
key: 1,
|
|
222
219
|
type: "button"
|
|
223
220
|
}, { ref_for: !0 }, { ...item, onClick: void 0 }, {
|
|
224
|
-
class: ["menuitem menuitem__button", [item.class, `--${item.color
|
|
221
|
+
class: ["menuitem menuitem__button", [item.class, item.color ? `--${item.color}` : ""]],
|
|
225
222
|
onClick: withModifiers(($event) => runAction(item, $event), ["stop"]),
|
|
226
223
|
onKeypress: withKeys(withModifiers(($event) => runAction(item, $event), ["stop", "prevent"]), ["enter"])
|
|
227
224
|
}), [
|
|
@@ -234,7 +231,7 @@ import '../assets/MazDropdown.C6vjLIeN.css';const _hoisted_1 = ["id", "aria-expa
|
|
|
234
231
|
}, () => [
|
|
235
232
|
createTextVNode(toDisplayString(item.label), 1)
|
|
236
233
|
])
|
|
237
|
-
], 16, _hoisted_4))
|
|
234
|
+
], 16, _hoisted_4))
|
|
238
235
|
])), 128))
|
|
239
236
|
])
|
|
240
237
|
], 14, _hoisted_3)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref, defineComponent, defineAsyncComponent, computed, onBeforeMount, onMounted, watch, provide, createElementBlock, openBlock, normalizeStyle, normalizeClass, createBlock, createCommentVNode, createVNode,
|
|
2
|
-
import { u as useTranslations } from "./useTranslations.
|
|
1
|
+
import { ref, defineComponent, defineAsyncComponent, computed, onBeforeMount, onMounted, watch, provide, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createBlock, createCommentVNode, createVNode, mergeProps, withCtx, createElementVNode, toDisplayString, renderSlot, nextTick } from "vue";
|
|
2
|
+
import { u as useTranslations } from "./useTranslations.D5aoYwD7.js";
|
|
3
3
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
4
4
|
import { getCountryCallingCode, getCountries, isSupportedCountry, getExampleNumber, parsePhoneNumberFromString, AsYouType } from "libphonenumber-js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
6
|
-
import '../assets/MazInputPhoneNumber.
|
|
6
|
+
import '../assets/MazInputPhoneNumber.CrXS7DOY.css';const examples = ref();
|
|
7
7
|
function isCountryAvailable(locale) {
|
|
8
8
|
try {
|
|
9
9
|
const response = isSupportedCountry(locale);
|
|
@@ -98,9 +98,9 @@ async function fetchLocaleIp() {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
function getBrowserLocale() {
|
|
101
|
-
if (typeof window > "u")
|
|
101
|
+
if (typeof globalThis.window > "u")
|
|
102
102
|
return;
|
|
103
|
-
const browserLocale =
|
|
103
|
+
const browserLocale = globalThis.navigator.language;
|
|
104
104
|
if (!browserLocale)
|
|
105
105
|
return;
|
|
106
106
|
let locale = browserLocale.slice(3, 7).toUpperCase();
|
|
@@ -156,7 +156,7 @@ function useMazInputPhoneNumber() {
|
|
|
156
156
|
getCountryList
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
|
-
const _hoisted_1 = { class: "m-input-phone-number__country-list-code" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
159
|
+
const _hoisted_1 = ["id"], _hoisted_2 = { class: "m-input-phone-number__country-list-code" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
160
160
|
name: "MazInputPhoneNumber",
|
|
161
161
|
inheritAttrs: !1,
|
|
162
162
|
__name: "MazInputPhoneNumber",
|
|
@@ -209,7 +209,7 @@ const _hoisted_1 = { class: "m-input-phone-number__country-list-code" }, _sfc_ma
|
|
|
209
209
|
},
|
|
210
210
|
emits: ["update:model-value", "country-code", "update:country-code", "data"],
|
|
211
211
|
setup(__props, { emit: __emit }) {
|
|
212
|
-
const props = __props, emits = __emit, MazSelectCountry = defineAsyncComponent(() => import("../components/MazSelectCountry.js")), PhoneInput = defineAsyncComponent(() => import("./PhoneInput.
|
|
212
|
+
const props = __props, emits = __emit, MazSelectCountry = defineAsyncComponent(() => import("../components/MazSelectCountry.js")), PhoneInput = defineAsyncComponent(() => import("./PhoneInput.iFkRoIFk.js")), { fetchCountryCode: fetchCountryCode2, getBrowserLocale: getBrowserLocale2, getCountryList: getCountryList2 } = useMazInputPhoneNumber(), { isCountryAvailable: isCountryAvailable2, getPhoneNumberResults: getPhoneNumberResults2 } = useLibphonenumber(), instanceId = useInstanceUniqId({
|
|
213
213
|
componentName: "MazInputPhoneNumber",
|
|
214
214
|
providedId: props.id
|
|
215
215
|
}), phoneNumber = ref(), selectedCountry = ref(), { t } = useTranslations(), messages = computed(() => ({
|
|
@@ -273,7 +273,7 @@ const _hoisted_1 = { class: "m-input-phone-number__country-list-code" }, _sfc_ma
|
|
|
273
273
|
updateTheResults({ phone: newPhoneNumber }), results.value.parsedCountryCode && results.value.parsedCountryCode !== selectedCountry.value && onCountryChanged({
|
|
274
274
|
countryCode: results.value.parsedCountryCode,
|
|
275
275
|
updateResults: !1
|
|
276
|
-
}), results.value.isValid && hasAutoFormat.value ? phoneNumber.value = results.value.formatNational?.trim().
|
|
276
|
+
}), results.value.isValid && hasAutoFormat.value ? phoneNumber.value = results.value.formatNational?.trim().replace(new RegExp(/\D/g), "") : phoneNumber.value = newPhoneNumber, isPhoneNumberInternalUpdate.value = !0, results.value.e164 ? emits("update:model-value", results.value.e164) : emits("update:model-value", results.value.phoneNumber), setTimeout(() => {
|
|
277
277
|
isPhoneNumberInternalUpdate.value = !1;
|
|
278
278
|
}, 0);
|
|
279
279
|
}
|
|
@@ -323,6 +323,7 @@ const _hoisted_1 = { class: "m-input-phone-number__country-list-code" }, _sfc_ma
|
|
|
323
323
|
phoneNumber,
|
|
324
324
|
results
|
|
325
325
|
}), (_ctx, _cache) => (openBlock(), createElementBlock("div", {
|
|
326
|
+
id: unref(instanceId),
|
|
326
327
|
class: normalizeClass(["m-input-phone-number m-reset-css", [props.class, { "--block": _ctx.block }, _ctx.orientation ? `--${_ctx.orientation}` : void 0]]),
|
|
327
328
|
style: normalizeStyle(_ctx.style)
|
|
328
329
|
}, [
|
|
@@ -367,7 +368,7 @@ const _hoisted_1 = { class: "m-input-phone-number__country-list-code" }, _sfc_ma
|
|
|
367
368
|
}, void 0, !0)
|
|
368
369
|
]),
|
|
369
370
|
"country-list-code": withCtx(({ option }) => [
|
|
370
|
-
createElementVNode("span",
|
|
371
|
+
createElementVNode("span", _hoisted_2, " +" + toDisplayString(option.dialCode), 1)
|
|
371
372
|
]),
|
|
372
373
|
_: 3
|
|
373
374
|
}, 16, ["id", "model-value", "option-input-value-key", "color", "size", "locale", "countries-list", "list-position", "hide-flags", "search", "block", "error", "success", "translations", "hint", "options", "disabled", "search-threshold", "format-input-value", "show-code-in-list", "label"])),
|
|
@@ -384,6 +385,7 @@ const _hoisted_1 = { class: "m-input-phone-number__country-list-code" }, _sfc_ma
|
|
|
384
385
|
example: _ctx.example,
|
|
385
386
|
block: "",
|
|
386
387
|
disabled: _ctx.disabled,
|
|
388
|
+
name: _ctx.phoneInputAttributes.name,
|
|
387
389
|
"has-radius": !_ctx.hideCountrySelect,
|
|
388
390
|
success: _ctx.success || (_ctx.validationSuccess ? results.value.isValid : !1),
|
|
389
391
|
error: _ctx.error || (_ctx.validationError ? !!phoneNumber.value && !results.value.isValid : !1),
|
|
@@ -391,10 +393,10 @@ const _hoisted_1 = { class: "m-input-phone-number__country-list-code" }, _sfc_ma
|
|
|
391
393
|
label: _ctx.label,
|
|
392
394
|
placeholder: _ctx.placeholder,
|
|
393
395
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => onPhoneNumberChanged({ newPhoneNumber: $event }))
|
|
394
|
-
}), null, 16, ["id", "model-value", "color", "size", "auto-format", "example", "disabled", "has-radius", "success", "error", "locales", "label", "placeholder"])
|
|
395
|
-
],
|
|
396
|
+
}), null, 16, ["id", "model-value", "color", "size", "auto-format", "example", "disabled", "name", "has-radius", "success", "error", "locales", "label", "placeholder"])
|
|
397
|
+
], 14, _hoisted_1));
|
|
396
398
|
}
|
|
397
|
-
}), MazInputPhoneNumber = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
399
|
+
}), MazInputPhoneNumber = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-941c0e2b"]]);
|
|
398
400
|
export {
|
|
399
401
|
MazInputPhoneNumber as M,
|
|
400
402
|
useLibphonenumber as u
|
|
@@ -21,7 +21,7 @@ import '../assets/MazPickerCalendar.CHpWIzhL.css';const _hoisted_1 = { class: "m
|
|
|
21
21
|
},
|
|
22
22
|
emits: ["update:model-value", "update:calendar-date"],
|
|
23
23
|
setup(__props, { emit: __emit }) {
|
|
24
|
-
const props = __props, emits = __emit, MazDatePickerCalendarMonth = defineAsyncComponent(() => import("./MazPickerCalendarMonth.
|
|
24
|
+
const props = __props, emits = __emit, MazDatePickerCalendarMonth = defineAsyncComponent(() => import("./MazPickerCalendarMonth.DKBqgrNp.js")), MazDatePickerCalendarSwitcher = defineAsyncComponent(() => import("./MazPickerCalendarSwitcher.CzIZol3Z.js")), MazDatePickerMonthSwitcher = defineAsyncComponent(() => import("./MazPickerMonthSwitcher.BSD2GtY6.js")), MazDatePickerShortcuts = defineAsyncComponent(() => import("./MazPickerShortcuts.CMySiKny.js")), MazDatePickerYearSwitcher = defineAsyncComponent(() => import("./MazPickerYearSwitcher.BIUYJMvj.js")), hoverredDay = ref(), hasShortcuts = computed(
|
|
25
25
|
() => props.shortcuts && props.shortcuts.length > 0 && props.range
|
|
26
26
|
), monthSwitcherOpen = ref(!1), yearSwitcherOpen = ref(!1), currentValue = computed({
|
|
27
27
|
get: () => props.modelValue,
|
package/dist/chunks/{MazPickerCalendarMonth.gZBcslia.js → MazPickerCalendarMonth.DKBqgrNp.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, Fragment, renderList, toDisplayString, useCssVars, ref, watch, createVNode, TransitionGroup, withCtx, normalizeClass, createBlock, createElementVNode } from "vue";
|
|
2
2
|
import dayjs from "dayjs";
|
|
3
|
-
import { g as getDaysOfWeek, b as getDaysInMonth, c as getFirstDayOfMonth, d as isRangeValue, i as isSameDate, e as isValidDate, h as isSameDay } from "./MazDatePicker.
|
|
3
|
+
import { g as getDaysOfWeek, b as getDaysInMonth, c as getFirstDayOfMonth, d as isRangeValue, i as isSameDate, e as isValidDate, h as isSameDay } from "./MazDatePicker.De3Ltb2F.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
5
5
|
import { d as debounce } from "./debounce.Brzkn9pm.js";
|
|
6
6
|
import MazBtn from "../components/MazBtn.js";
|
|
7
|
-
import '../assets/MazPickerCalendarMonth.
|
|
7
|
+
import '../assets/MazPickerCalendarMonth.Boe_8k4x.css';const _hoisted_1 = { class: "maz-picker-calendar-days" }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "MazPickerCalendarDays",
|
|
9
9
|
props: {
|
|
10
10
|
locale: { type: String, required: !0 },
|
|
@@ -39,8 +39,8 @@ import '../assets/MazPickerCalendarMonth.zkrPVHDv.css';const _hoisted_1 = { clas
|
|
|
39
39
|
emits: ["update:model-value", "update:hoverred-day"],
|
|
40
40
|
setup(__props, { emit: __emit }) {
|
|
41
41
|
useCssVars((_ctx) => ({
|
|
42
|
-
"
|
|
43
|
-
|
|
42
|
+
"4994ba23": hoverColor.value,
|
|
43
|
+
"2d754e14": hoverTextColor.value
|
|
44
44
|
}));
|
|
45
45
|
const props = __props, emits = __emit, MazDatePickerGrid = ref(), transitionName = ref("maz-slidenext"), calendarDateArray = computed(() => [props.calendarDate]), hoverColor = computed(() => `hsl(var(--maz-${props.color}) / 20%)`), hoverTextColor = computed(() => `hsl(var(--maz-${props.color}-foreground))`), modelValue = computed({
|
|
46
46
|
get: () => props.modelValue,
|
|
@@ -185,7 +185,7 @@ import '../assets/MazPickerCalendarMonth.zkrPVHDv.css';const _hoisted_1 = { clas
|
|
|
185
185
|
}, 8, ["name"])
|
|
186
186
|
], 512));
|
|
187
187
|
}
|
|
188
|
-
}), MazDatePickerCalendarGrid = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
188
|
+
}), MazDatePickerCalendarGrid = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-39e153c9"]]), _sfc_main = /* @__PURE__ */ defineComponent({
|
|
189
189
|
__name: "MazPickerCalendarMonth",
|
|
190
190
|
props: {
|
|
191
191
|
modelValue: {
|
package/dist/chunks/{MazPickerCalendarSwitcher.CzAkb2yj.js → MazPickerCalendarSwitcher.CzIZol3Z.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, createVNode, withCtx, unref, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { MazChevronLeft } from "@maz-ui/icons";
|
|
3
3
|
import { c as capitalize } from "./capitalize.BF6CDS_4.js";
|
|
4
|
-
import { f as formatDate } from "./MazDatePicker.
|
|
4
|
+
import { f as formatDate } from "./MazDatePicker.De3Ltb2F.js";
|
|
5
5
|
import dayjs from "dayjs";
|
|
6
6
|
import MazBtn from "../components/MazBtn.js";
|
|
7
7
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
@@ -30,7 +30,7 @@ import '../assets/MazPickerContainer.k3DGjyHC.css';const _hoisted_1 = { class: "
|
|
|
30
30
|
},
|
|
31
31
|
emits: ["update:model-value", "update:calendar-date", "close"],
|
|
32
32
|
setup(__props, { emit: __emit }) {
|
|
33
|
-
const emits = __emit, MazPickerCalendar = defineAsyncComponent(() => import("./MazPickerCalendar.
|
|
33
|
+
const emits = __emit, MazPickerCalendar = defineAsyncComponent(() => import("./MazPickerCalendar.DKXNI8O4.js")), MazPickerHeader = defineAsyncComponent(() => import("./MazPickerHeader.Bm9vIrtB.js")), MazPickerTime = defineAsyncComponent(() => import("./MazPickerTime.D0hilq5b.js")), lastTimeValue = ref(typeof __props.modelValue == "string" && __props.hasTime ? dayjs(__props.modelValue).format("HH:mm") : "00:00");
|
|
34
34
|
function saveLastTimeValue(value) {
|
|
35
35
|
lastTimeValue.value = dayjs(value).format("HH:mm"), emits("update:model-value", value);
|
|
36
36
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, watch, createElementBlock, openBlock, normalizeClass, createCommentVNode, createVNode, TransitionGroup, withCtx, Fragment, renderList, toDisplayString } from "vue";
|
|
2
2
|
import { c as capitalize } from "./capitalize.BF6CDS_4.js";
|
|
3
|
-
import { f as formatDate } from "./MazDatePicker.
|
|
3
|
+
import { f as formatDate } from "./MazDatePicker.De3Ltb2F.js";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
6
6
|
import '../assets/MazPickerHeader.ZYCJY5bX.css';const _hoisted_1 = {
|
package/dist/chunks/{MazPickerMonthSwitcher.BuZuUauW.js → MazPickerMonthSwitcher.BSD2GtY6.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, createElementVNode, createVNode, withModifiers, withCtx, unref, normalizeClass, Fragment, renderList, createBlock, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { MazXMark } from "@maz-ui/icons";
|
|
3
3
|
import { c as capitalize } from "./capitalize.BF6CDS_4.js";
|
|
4
|
-
import { f as formatDate, i as isSameDate } from "./MazDatePicker.
|
|
4
|
+
import { f as formatDate, i as isSameDate } from "./MazDatePicker.De3Ltb2F.js";
|
|
5
5
|
import dayjs from "dayjs";
|
|
6
6
|
import MazBtn from "../components/MazBtn.js";
|
|
7
7
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, onMounted, watch, nextTick, createElementBlock, openBlock, normalizeClass, Fragment, renderList, createElementVNode, normalizeStyle, createBlock, withModifiers, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import dayjs from "dayjs";
|
|
3
3
|
import MazBtn from "../components/MazBtn.js";
|
|
4
|
-
import { a as findNearestNumberInList, s as scrollToTarget } from "./MazDatePicker.
|
|
4
|
+
import { a as findNearestNumberInList, s as scrollToTarget } from "./MazDatePicker.De3Ltb2F.js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
6
6
|
import '../assets/MazPickerTime.yINUjbDZ.css';const _hoisted_1 = { class: "m-date-picker-time__column__items" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "MazPickerTime",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, createElementBlock, openBlock, createElementVNode, createVNode, withModifiers, withCtx, unref, Fragment, renderList, createBlock, normalizeClass, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { MazChevronLeft, MazXMark } from "@maz-ui/icons";
|
|
3
|
-
import { f as formatDate, i as isSameDate } from "./MazDatePicker.
|
|
3
|
+
import { f as formatDate, i as isSameDate } from "./MazDatePicker.De3Ltb2F.js";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
5
|
import MazBtn from "../components/MazBtn.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, useCssVars, defineAsyncComponent, computed, toRefs, provide, ref, watch, useSlots, onBeforeMount, createElementBlock, openBlock, normalizeClass, createCommentVNode, createElementVNode, renderSlot, toDisplayString, createBlock, createVNode, unref, normalizeStyle, createTextVNode, withCtx, Fragment, renderList } from "vue";
|
|
2
2
|
import { MazMagnifyingGlass, MazArrowUp, MazChevronDoubleLeft, MazChevronLeft } from "@maz-ui/icons";
|
|
3
|
-
import { u as useTranslations } from "./useTranslations.
|
|
3
|
+
import { u as useTranslations } from "./useTranslations.D5aoYwD7.js";
|
|
4
4
|
const _hoisted_1 = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "m-table-header"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, mergeModels, useModel, ref, computed, onMounted, watch, useTemplateRef, createBlock, openBlock, mergeProps, unref } from "vue";
|
|
2
|
-
import { u as useTranslations } from "./useTranslations.
|
|
2
|
+
import { u as useTranslations } from "./useTranslations.D5aoYwD7.js";
|
|
3
3
|
import { useInjectStrict } from "../composables/useInjectStrict.js";
|
|
4
4
|
import MazInput from "../components/MazInput.js";
|
|
5
|
-
import { u as useLibphonenumber } from "./MazInputPhoneNumber.
|
|
5
|
+
import { u as useLibphonenumber } from "./MazInputPhoneNumber.DBncAmC5.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
7
|
-
import '../assets/PhoneInput.
|
|
7
|
+
import '../assets/PhoneInput.DBLH22G1.css';const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "PhoneInput",
|
|
9
9
|
props: /* @__PURE__ */ mergeModels({
|
|
10
10
|
style: {},
|
|
@@ -36,6 +36,7 @@ import '../assets/PhoneInput.CyWO76iq.css';const _sfc_main = /* @__PURE__ */ def
|
|
|
36
36
|
block: { type: Boolean },
|
|
37
37
|
name: {},
|
|
38
38
|
autocomplete: {},
|
|
39
|
+
loading: { type: Boolean },
|
|
39
40
|
locales: {},
|
|
40
41
|
example: { type: Boolean },
|
|
41
42
|
hasRadius: { type: Boolean },
|
|
@@ -114,7 +115,7 @@ import '../assets/PhoneInput.CyWO76iq.css';const _sfc_main = /* @__PURE__ */ def
|
|
|
114
115
|
onBlur: _cache[1] || (_cache[1] = ($event) => inputFocused.value = !1)
|
|
115
116
|
}), null, 16, ["id", "model-value", "disabled", "color", "error", "size", "success", "name", "inputmode", "autocomplete", "class"]));
|
|
116
117
|
}
|
|
117
|
-
}), PhoneInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
118
|
+
}), PhoneInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b22da65e"]]);
|
|
118
119
|
export {
|
|
119
120
|
PhoneInput as default
|
|
120
121
|
};
|
|
@@ -100,7 +100,9 @@ async function setFieldValidationState({
|
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
102
|
const { result, isValid } = await getFieldValidationResult(name, schema, payload[name]);
|
|
103
|
-
fieldState.valid = isValid
|
|
103
|
+
fieldState.valid = isValid;
|
|
104
|
+
const shouldSetError = setError || setErrorIfInvalidAndNotEmpty && !isValid && !isEmptyValue(payload[name]), shouldPreserveError = fieldState.blurred && !isValid && fieldState.mode && ["eager", "blur", "progressive"].includes(fieldState.mode);
|
|
105
|
+
(shouldSetError || shouldPreserveError) && (fieldState.error = !isValid), fieldState.errors = result.issues ?? [], fieldState.validated = !0;
|
|
104
106
|
} finally {
|
|
105
107
|
fieldState.validating = !1;
|
|
106
108
|
}
|
package/dist/chunks/{fullscreen-img.directive.CyOHexcO.js → fullscreen-img.directive.Be383en8.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { MazChevronLeft, MazXMark } from "@maz-ui/icons";
|
|
|
4
4
|
import { c as checkAvailability } from "./checkAvailability.aTpZidex.js";
|
|
5
5
|
import MazSpinner from "../components/MazSpinner.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
7
|
-
import '../assets/fullscreen-img.
|
|
7
|
+
import '../assets/fullscreen-img.Bkuz1GOX.css';const _hoisted_1 = ["onKeypress"], _hoisted_2 = { class: "m-fullscreen-img-scroller" }, _hoisted_3 = ["src", "alt"], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "MazFullscreenImg",
|
|
9
9
|
props: {
|
|
10
10
|
src: {},
|
|
@@ -231,7 +231,7 @@ import '../assets/fullscreen-img.pvt6196l.css';const _hoisted_1 = ["onKeypress"]
|
|
|
231
231
|
])
|
|
232
232
|
], 40, _hoisted_1));
|
|
233
233
|
}
|
|
234
|
-
}), MazFullscreenImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
234
|
+
}), MazFullscreenImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c0b12968"]]), STATE_OPEN_CLASS = "m-fullscreen-is-open";
|
|
235
235
|
class FullscreenImgHandler {
|
|
236
236
|
options = void 0;
|
|
237
237
|
defaultOptions = {
|
|
@@ -134,7 +134,7 @@ class LazyImg {
|
|
|
134
134
|
async imageHandler(el, binding, type) {
|
|
135
135
|
if (type === "update")
|
|
136
136
|
for await (const observer of this.observers) observer.unobserve(el);
|
|
137
|
-
|
|
137
|
+
globalThis.IntersectionObserver ? this.createObserver(el, binding) : this.loadImage(el, binding);
|
|
138
138
|
}
|
|
139
139
|
async bindUpdateHandler(el, binding, type) {
|
|
140
140
|
await this.imageHandler(el, binding, type);
|
|
@@ -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 {
|
|
@@ -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,6 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, useAttrs, computed, createBlock, openBlock, resolveDynamicComponent, normalizeStyle, normalizeClass, withCtx, renderSlot, createElementBlock, createCommentVNode, unref, createTextVNode, toDisplayString, createVNode } from "vue";
|
|
2
2
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
3
|
-
import '../assets/MazBtn.
|
|
3
|
+
import '../assets/MazBtn.DUBbj2mt.css';const _hoisted_1 = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "m-btn-loader-container"
|
|
6
6
|
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -79,13 +79,15 @@ import '../assets/MazBtn.FsG6p6NF.css';const _hoisted_1 = {
|
|
|
79
79
|
}, null, 8, ["class"])) : createCommentVNode("", !0)
|
|
80
80
|
], !0),
|
|
81
81
|
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
82
|
-
|
|
82
|
+
renderSlot(_ctx.$slots, "loader", {}, () => [
|
|
83
|
+
createVNode(unref(MazSpinner), { size: "2em" })
|
|
84
|
+
], !0)
|
|
83
85
|
])) : createCommentVNode("", !0)
|
|
84
86
|
]),
|
|
85
87
|
_: 3
|
|
86
88
|
}, 8, ["disabled", "class", "style", "type"]));
|
|
87
89
|
}
|
|
88
|
-
}), MazBtn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
90
|
+
}), MazBtn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5b9a8954"]]);
|
|
89
91
|
export {
|
|
90
92
|
MazBtn as default
|
|
91
93
|
};
|
|
@@ -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,12 +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.
|
|
3
|
+
import { u as useTranslations } from "../chunks/useTranslations.D5aoYwD7.js";
|
|
4
4
|
import { n as normalizeString, u as useStringMatching } from "../chunks/useStringMatching.D5UvsCUS.js";
|
|
5
5
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
6
6
|
import MazCardSpotlight from "./MazCardSpotlight.js";
|
|
7
7
|
import MazCheckbox from "./MazCheckbox.js";
|
|
8
8
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
9
|
-
import '../assets/MazChecklist.
|
|
9
|
+
import '../assets/MazChecklist.BzF5KtZ3.css';const _hoisted_1 = { class: "m-checklist m-reset-css" }, _hoisted_2 = ["for"], _hoisted_3 = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "title"
|
|
12
12
|
}, _hoisted_4 = {
|
|
@@ -126,7 +126,7 @@ import '../assets/MazChecklist.CWK_Gl-t.css';const _hoisted_1 = { class: "m-chec
|
|
|
126
126
|
}, 8, ["color", "elevation"])
|
|
127
127
|
]));
|
|
128
128
|
}
|
|
129
|
-
}), MazChecklist = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
129
|
+
}), MazChecklist = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a24e1de6"]]);
|
|
130
130
|
export {
|
|
131
131
|
MazChecklist as default
|
|
132
132
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { _ as _sfc_main } from "../chunks/MazDialogConfirm.vue_vue_type_script_setup_true_lang.-K3NpiFL.js";
|
|
2
|
+
import { u } from "../chunks/MazDialogConfirm.vue_vue_type_script_setup_true_lang.-K3NpiFL.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.-8lzCrxJ.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-f34771b3"]]);
|
|
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,
|