maz-ui 3.47.2-beta.23 → 3.47.2-beta.25
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/components/MazAccordion.mjs +56 -56
- package/components/MazAnimatedCounter.mjs +7 -7
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.mjs +9 -9
- package/components/MazBadge.mjs +2 -2
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.mjs +7 -7
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChart.mjs +13 -13
- package/components/MazCheckbox.mjs +2 -2
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.mjs +11 -11
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +1 -1
- package/components/MazDropzone.mjs +1 -1
- package/components/MazExpandAnimation.mjs +8 -8
- package/components/MazFullscreenLoader.mjs +2 -40
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +9 -8
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.mjs +2 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazLink.d.ts +2 -2
- package/components/MazLink.mjs +6 -6
- package/components/MazLoadingBar.mjs +17 -17
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.mjs +1 -1
- package/components/MazRadio.mjs +11 -11
- package/components/MazRadioButtons.mjs +2 -2
- package/components/MazReadingProgressBar.mjs +15 -15
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +31 -31
- package/components/MazSpinner.mjs +7 -7
- package/components/MazStepper.d.ts +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +9 -9
- package/components/MazTable.mjs +1 -1
- package/components/MazTableCell.mjs +12 -12
- package/components/MazTableRow.mjs +6 -6
- package/components/MazTableTitle.mjs +11 -11
- package/components/MazTabs.d.ts +3 -3
- package/components/MazTabs.mjs +7 -7
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTabsContent.mjs +4 -4
- package/components/MazTabsContentItem.mjs +8 -8
- package/components/MazTextarea.mjs +2 -2
- package/components/MazTransitionExpand.mjs +10 -10
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAnimatedCounter.css +1 -1
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazBackdrop.css +1 -1
- package/components/assets/MazBadge.css +1 -1
- package/components/assets/MazBottomSheet.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazCarousel.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazChecklist.css +1 -1
- package/components/assets/MazCircularProgressBar.css +1 -1
- package/components/assets/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/assets/MazDrawer.css +1 -1
- package/components/assets/MazExpandAnimation.css +1 -1
- package/components/assets/MazFullscreenLoader.css +1 -1
- package/components/assets/MazGallery.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputCode.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazLazyImg.css +1 -1
- package/components/assets/MazLink.css +1 -1
- package/components/assets/MazLoadingBar.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazPullToRefresh.css +1 -1
- package/components/assets/MazRadio.css +1 -1
- package/components/assets/MazRadioButtons.css +1 -1
- package/components/assets/MazReadingProgressBar.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazSlider.css +1 -1
- package/components/assets/MazSpinner.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTableCell.css +1 -1
- package/components/assets/MazTableRow.css +1 -1
- package/components/assets/MazTableTitle.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/assets/MazTabsContentItem.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/assets/MazTransitionExpand.css +1 -1
- package/components/chunks/{MazAvatar-CZzOIbzh.mjs → MazAvatar-CuOWgdVG.mjs} +18 -18
- package/components/chunks/{MazBadge-DCzaExPj.mjs → MazBadge-tPgFsG6Y.mjs} +6 -6
- package/components/chunks/{MazBottomSheet-DGsGO0zo.mjs → MazBottomSheet-CMqzf-dT.mjs} +15 -15
- package/components/chunks/MazBtn-B16x1gSu.mjs +103 -0
- package/components/chunks/MazBtn-BLSmc1v4.mjs +103 -0
- package/components/chunks/MazBtn-BcrrOaO_.mjs +103 -0
- package/components/chunks/MazBtn-Bje1xDu3.mjs +103 -0
- package/components/chunks/MazBtn-C5sb0470.mjs +103 -0
- package/components/chunks/MazBtn-CPwCJ1l-.mjs +103 -0
- package/components/chunks/{MazBtn-BVWOyFm-.mjs → MazBtn-Cf-LPT5p.mjs} +4 -4
- package/components/chunks/MazBtn-DCyFSkZo.mjs +103 -0
- package/components/chunks/{MazBtn-oZhhJy09.mjs → MazBtn-DETtZdlj.mjs} +3 -3
- package/components/chunks/{MazBtn-BS2kvd1Z.mjs → MazBtn-DnJzOPh9.mjs} +4 -4
- package/components/chunks/{MazBtn-CM-xSnA5.mjs → MazBtn-DsGaq_eB.mjs} +3 -3
- package/components/chunks/{MazBtn-4-B-zs6Y.mjs → MazBtn-S7EnZYtZ.mjs} +4 -4
- package/components/chunks/MazBtn-iYAY4cer.mjs +103 -0
- package/components/chunks/MazBtn-v4i4k53h.mjs +103 -0
- package/components/chunks/{MazCard-98OuVlyK.mjs → MazCard-l54W3CUU.mjs} +3 -3
- package/components/chunks/{MazCarousel-COTaKhKF.mjs → MazCarousel-C16E1i1T.mjs} +3 -3
- package/components/chunks/{MazCheckbox-CbfTOJdy.mjs → MazCheckbox-C1nh-xQt.mjs} +7 -7
- package/components/chunks/{MazCheckbox-CCma_qyQ.mjs → MazCheckbox-CEsAHbdi.mjs} +7 -7
- package/components/chunks/{MazCheckbox-eOEEACaM.mjs → MazCheckbox-D-7-TdgO.mjs} +3 -3
- package/components/chunks/{MazChecklist-Bb_70sf5.mjs → MazChecklist-DSfD55m5.mjs} +125 -125
- package/components/chunks/{MazDialog-Ca3jJ12T.mjs → MazDialog-BjQ3ivmv.mjs} +107 -107
- package/components/chunks/MazDialogPromise-Bg3ZOsEI.mjs +551 -0
- package/components/chunks/{MazDrawer-Bas9dy0D.mjs → MazDrawer-BqNLfW4e.mjs} +3 -3
- package/components/chunks/{MazDropdown-0r445NfW.mjs → MazDropdown-DNXKdC_3.mjs} +3 -2
- package/components/chunks/{MazDropzone-DKFkgqqD.mjs → MazDropzone-n0JE92da.mjs} +2 -2
- package/components/chunks/{MazExpandAnimation-Bdf0-L85.mjs → MazExpandAnimation-B04WMwpW.mjs} +8 -8
- package/components/chunks/MazFullscreenLoader-XF8wIEcL.mjs +48 -0
- package/components/chunks/{MazGallery-r8SBTCgJ.mjs → MazGallery-CzlKPQFX.mjs} +65 -65
- package/components/chunks/{MazGallery-xPp1apvO.mjs → MazGallery-DdZ3bFvX.mjs} +5 -5
- package/components/chunks/{MazIcon-_hN-Kivn.mjs → MazIcon-Cq1v4J3r.mjs} +9 -8
- package/components/chunks/{MazIcon-C-aPrqx2.mjs → MazIcon-DQXhsxp8.mjs} +11 -10
- package/{modules/chunks/MazIcon-C3__MBEL.mjs → components/chunks/MazIcon-DR6-win-.mjs} +12 -11
- package/components/chunks/MazIcon-Gv6n6i4M.mjs +4 -0
- package/components/chunks/{MazInput-BM4n-byz.mjs → MazInput-BjnuoFvn.mjs} +26 -26
- package/components/chunks/{MazInput-BcutbP8N.mjs → MazInput-DB4HtpCQ.mjs} +4 -4
- package/components/chunks/{MazInput-C9Qh4Gt3.mjs → MazInput-yBii2AFS.mjs} +19 -19
- package/components/chunks/{MazInputNumber-DgjOMiOt.mjs → MazInputNumber-DqnLi9-C.mjs} +37 -37
- package/components/chunks/{MazInputPrice-D6fJN9yv.mjs → MazInputPrice-Ca8mL53M.mjs} +4 -4
- package/components/chunks/{MazInputTags-DthGSyHQ.mjs → MazInputTags-Bto9dVQq.mjs} +40 -40
- package/components/chunks/{MazLazyImg-DQLwaKKz.mjs → MazLazyImg-D9mlGTCs.mjs} +4 -4
- package/components/chunks/{MazLazyImg-B-6PQWEi.mjs → MazLazyImg-DnJyLBjr.mjs} +3 -3
- package/components/chunks/{MazLink-tud3eDgU.mjs → MazLink-DlUG7E5K.mjs} +3 -3
- package/components/chunks/{MazLoadingBar-C2qPjfEQ.mjs → MazLoadingBar-DBt1Ltm5.mjs} +8 -8
- package/components/chunks/{MazPagination-BSu0Ifkp.mjs → MazPagination-sxkvTajI.mjs} +49 -49
- package/components/chunks/{MazPhoneNumberInput-BAGcArnr.mjs → MazPhoneNumberInput-C3j3JyDI.mjs} +11 -11
- package/components/chunks/{MazPicker-BljfUneI.mjs → MazPicker-BUXJof_-.mjs} +9 -9
- package/components/chunks/{MazPickerMonthSwitcher-CEVb4BXw.mjs → MazPickerMonthSwitcher-DW2WfonJ.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-DayGMC9m.mjs → MazPickerShortcuts-fw4-dWSv.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DC1lFIbp.mjs → MazPickerYearSwitcher-aHvmQBF1.mjs} +1 -1
- package/components/chunks/{MazPullToRefresh-CFQX0soS.mjs → MazPullToRefresh-a1rT-zWr.mjs} +3 -3
- package/components/chunks/{MazSelect-CH3JdigO.mjs → MazSelect-BwahUlbE.mjs} +49 -49
- package/components/chunks/{MazSelect-D3KXcHJS.mjs → MazSelect-CBaOs6va.mjs} +44 -44
- package/components/chunks/MazSpinner-BVQYjLWp.mjs +34 -0
- package/components/chunks/{MazSpinner-yr9xVdAa.mjs → MazSpinner-BYlkcKf0.mjs} +6 -6
- package/components/chunks/MazSpinner-B_THFs0t.mjs +34 -0
- package/components/chunks/MazSpinner-Bb1BgWPD.mjs +34 -0
- package/components/chunks/MazSpinner-Bb4B4Nz8.mjs +34 -0
- package/components/chunks/{MazSpinner-BBZoDxwq.mjs → MazSpinner-Bpkl7q5u.mjs} +7 -7
- package/components/chunks/MazSpinner-BtDo7ZEC.mjs +34 -0
- package/components/chunks/MazSpinner-C-DOH7ou.mjs +34 -0
- package/components/chunks/MazSpinner-C1Rr3w9l.mjs +34 -0
- package/components/chunks/MazSpinner-C47dmUu7.mjs +34 -0
- package/components/chunks/MazSpinner-C7_Q1K-e.mjs +34 -0
- package/components/chunks/MazSpinner-CBHbVSef.mjs +34 -0
- package/components/chunks/MazSpinner-CCThMV5o.mjs +34 -0
- package/components/chunks/MazSpinner-CizL97Q2.mjs +34 -0
- package/components/chunks/{MazSpinner-BlbTztM3.mjs → MazSpinner-Cmy2WyWY.mjs} +7 -7
- package/components/chunks/MazSpinner-CodOqnm1.mjs +34 -0
- package/components/chunks/MazSpinner-Cq0S_tbE.mjs +34 -0
- package/components/chunks/{MazSpinner-BIPm54-3.mjs → MazSpinner-D6PdYOcD.mjs} +7 -7
- package/components/chunks/MazSpinner-DV9-beEc.mjs +34 -0
- package/components/chunks/MazSpinner-DoFpeVcl.mjs +34 -0
- package/components/chunks/MazSpinner-Dx-3_EFZ.mjs +34 -0
- package/components/chunks/MazSpinner-PVTrAf5V.mjs +34 -0
- package/components/chunks/MazSpinner-PXSS3XT3.mjs +34 -0
- package/components/chunks/MazSpinner-XZrAaGeE.mjs +34 -0
- package/components/chunks/{MazStepper-B3fuhbye.mjs → MazStepper-DtAqtJjn.mjs} +32 -32
- package/components/chunks/{MazTable-BU3Hluiu.mjs → MazTable-Soe-MrTW.mjs} +79 -74
- package/components/chunks/{MazTableCell-DKMZAanm.mjs → MazTableCell-DtoO9MOe.mjs} +6 -6
- package/components/chunks/MazTableRow-ChFMulaU.mjs +30 -0
- package/components/chunks/{MazTableTitle-BSFZ84Ob.mjs → MazTableTitle-D8El-v5p.mjs} +6 -6
- package/components/chunks/{MazTabsBar--Xq_cpuz.mjs → MazTabsBar-8wchBiYF.mjs} +20 -20
- package/components/chunks/{MazTransitionExpand-Cedz9Ree.mjs → MazTransitionExpand-CRArAQZu.mjs} +10 -10
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/MazSpinner.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-D0bVfaLm.cjs +1 -0
- package/{components/chunks/MazBtn-C60T0UDa.mjs → modules/chunks/MazBtn-Z86MClP9.mjs} +4 -4
- package/modules/chunks/{MazIcon-CqhvM2xp.cjs → MazIcon-BwgJhGLT.cjs} +1 -1
- package/{components/chunks/MazIcon-BSUswKRF.mjs → modules/chunks/MazIcon-XtyPgbu6.mjs} +12 -11
- package/{components/chunks/MazSpinner-B5JChIrj.mjs → modules/chunks/MazSpinner-BfUXTY7m.mjs} +7 -7
- package/modules/chunks/MazSpinner-C5Fi9q_G.cjs +1 -0
- package/modules/chunks/index-Bq5KVBKA.cjs +124 -0
- package/modules/chunks/{index-CXu9R01-.mjs → index-YwIF5a3Q.mjs} +746 -745
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/tailwindcss/tailwind.css +0 -6
- package/tailwindcss/variables/utilities.ts +3 -0
- package/types/components/MazLink.vue.d.ts +2 -2
- package/types/components/MazStepper.vue.d.ts +1 -1
- package/types/components/MazTabs.vue.d.ts +3 -3
- package/types/modules/composables/useFormValidator/useFormField.d.ts +56 -16
- package/types/modules/composables/useFormValidator/utils.d.ts +6 -6
- package/types/tailwindcss/variables/utilities.d.ts +3 -0
- package/components/chunks/MazBtn-C6zsmGnw.mjs +0 -103
- package/components/chunks/MazBtn-CC9H3U2X.mjs +0 -103
- package/components/chunks/MazBtn-CsLtHm4K.mjs +0 -103
- package/components/chunks/MazBtn-D1jMqwE1.mjs +0 -103
- package/components/chunks/MazBtn-DAXwt847.mjs +0 -103
- package/components/chunks/MazBtn-DOWVQgpN.mjs +0 -103
- package/components/chunks/MazBtn-DZaVjTvW.mjs +0 -103
- package/components/chunks/MazBtn-ZAcYNusG.mjs +0 -103
- package/components/chunks/MazDialogPromise-DOnmLhui.mjs +0 -551
- package/components/chunks/MazIcon-BoTByt7n.mjs +0 -4
- package/components/chunks/MazSpinner-C-ln9ldX.mjs +0 -34
- package/components/chunks/MazSpinner-C11EOZZd.mjs +0 -34
- package/components/chunks/MazSpinner-C6h03sqc.mjs +0 -34
- package/components/chunks/MazSpinner-CCc9ajpj.mjs +0 -34
- package/components/chunks/MazSpinner-CgKOIkQQ.mjs +0 -34
- package/components/chunks/MazSpinner-Cp_nPioh.mjs +0 -34
- package/components/chunks/MazSpinner-CwdlrYSt.mjs +0 -34
- package/components/chunks/MazSpinner-D5Sbo759.mjs +0 -34
- package/components/chunks/MazSpinner-DOPjHhPx.mjs +0 -34
- package/components/chunks/MazSpinner-DPur0-r-.mjs +0 -34
- package/components/chunks/MazSpinner-DjM6ktPY.mjs +0 -34
- package/components/chunks/MazSpinner-DjUU4G1h.mjs +0 -34
- package/components/chunks/MazSpinner-DqD51Fb6.mjs +0 -34
- package/components/chunks/MazSpinner-Du5o8JC_.mjs +0 -38
- package/components/chunks/MazSpinner-QfPXLpa_.mjs +0 -34
- package/components/chunks/MazSpinner-XB6tX3Ld.mjs +0 -34
- package/components/chunks/MazSpinner-ZFhNCy24.mjs +0 -34
- package/components/chunks/MazSpinner-b90e3OQK.mjs +0 -34
- package/components/chunks/MazSpinner-f6pBzqbu.mjs +0 -34
- package/components/chunks/MazTableRow-CDHpmXfw.mjs +0 -30
- package/modules/chunks/MazBtn-CFge_w1W.cjs +0 -1
- package/modules/chunks/MazBtn-yNCoLFA6.mjs +0 -103
- package/modules/chunks/MazSpinner-C4XtaFJk.mjs +0 -34
- package/modules/chunks/MazSpinner-DkJAN36F.cjs +0 -1
- package/modules/chunks/index-Bawg2UGE.cjs +0 -124
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
import { defineComponent as K, ref as M, onMounted as R, watch as H, nextTick as N, openBlock as v, createBlock as A, Teleport as Y, createVNode as Z, Transition as x, withCtx as E, createElementBlock as L, mergeProps as T, createElementVNode as j, normalizeClass as W, withModifiers as _, renderSlot as k, createCommentVNode as z, defineAsyncComponent as F, useAttrs as ee, computed as D, useSlots as te, createTextVNode as S, toDisplayString as V, unref as p, Fragment as U, renderList as oe } from "vue";
|
|
2
|
+
import '../assets/MazDialogPromise.css';const ne = {
|
|
3
|
+
role: "dialog",
|
|
4
|
+
class: "m-backdrop-container",
|
|
5
|
+
"aria-modal": "true"
|
|
6
|
+
}, ae = { class: "m-backdrop-wrapper" }, X = "--backdrop-present", le = /* @__PURE__ */ K({
|
|
7
|
+
inheritAttrs: !1,
|
|
8
|
+
__name: "MazBackdrop",
|
|
9
|
+
props: {
|
|
10
|
+
modelValue: { type: Boolean, default: !1 },
|
|
11
|
+
teleportSelector: { default: "body" },
|
|
12
|
+
beforeClose: { type: Function, default: void 0 },
|
|
13
|
+
persistent: { type: Boolean, default: !1 },
|
|
14
|
+
noCloseOnEscKey: { type: Boolean, default: !1 },
|
|
15
|
+
transitionName: { default: "backdrop-anim" },
|
|
16
|
+
backdropClass: { default: () => {
|
|
17
|
+
} },
|
|
18
|
+
backdropContentClass: { default: () => {
|
|
19
|
+
} },
|
|
20
|
+
contentPadding: { type: Boolean, default: !1 },
|
|
21
|
+
justify: { default: "none" },
|
|
22
|
+
align: { default: "none" },
|
|
23
|
+
variant: {}
|
|
24
|
+
},
|
|
25
|
+
emits: ["open", "close", "update:model-value", "before-close"],
|
|
26
|
+
setup(s, { expose: l, emit: n }) {
|
|
27
|
+
const d = n;
|
|
28
|
+
function y() {
|
|
29
|
+
document.documentElement.classList.add(X);
|
|
30
|
+
}
|
|
31
|
+
function g() {
|
|
32
|
+
document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(X);
|
|
33
|
+
}
|
|
34
|
+
const m = M(s.modelValue);
|
|
35
|
+
function f() {
|
|
36
|
+
w(!1);
|
|
37
|
+
}
|
|
38
|
+
async function w(e) {
|
|
39
|
+
var r;
|
|
40
|
+
e || (d("before-close"), await ((r = s.beforeClose) == null ? void 0 : r.call(s))), m.value = e;
|
|
41
|
+
}
|
|
42
|
+
function $() {
|
|
43
|
+
d("open");
|
|
44
|
+
}
|
|
45
|
+
function C() {
|
|
46
|
+
d("update:model-value", !1), d("close"), i();
|
|
47
|
+
}
|
|
48
|
+
function h() {
|
|
49
|
+
s.persistent || f();
|
|
50
|
+
}
|
|
51
|
+
function c(e) {
|
|
52
|
+
!s.noCloseOnEscKey && e.key === "Escape" && !s.persistent && f();
|
|
53
|
+
}
|
|
54
|
+
function o() {
|
|
55
|
+
y(), document.addEventListener("keyup", c, !1);
|
|
56
|
+
}
|
|
57
|
+
function i() {
|
|
58
|
+
document.removeEventListener("keyup", c), g();
|
|
59
|
+
}
|
|
60
|
+
R(() => {
|
|
61
|
+
s.modelValue ? o() : i();
|
|
62
|
+
});
|
|
63
|
+
let u = null;
|
|
64
|
+
function t(e) {
|
|
65
|
+
const r = document.querySelector(e), B = r && Array.from(r.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select')), b = B == null ? void 0 : B.filter((q) => {
|
|
66
|
+
const I = window.getComputedStyle(q);
|
|
67
|
+
return I.display !== "none" && I.visibility !== "hidden" && !q.disabled;
|
|
68
|
+
});
|
|
69
|
+
return b && b.length > 0 ? b[0] : null;
|
|
70
|
+
}
|
|
71
|
+
return H(
|
|
72
|
+
() => s.modelValue,
|
|
73
|
+
async (e) => {
|
|
74
|
+
if (m.value = e, e) {
|
|
75
|
+
o(), u = document.activeElement, await N();
|
|
76
|
+
const r = t(".m-backdrop-content");
|
|
77
|
+
r == null || r.focus();
|
|
78
|
+
} else
|
|
79
|
+
i(), await N(), u == null || u.focus();
|
|
80
|
+
}
|
|
81
|
+
), l({
|
|
82
|
+
onBackdropAnimationEnter: $,
|
|
83
|
+
onBackdropAnimationLeave: C,
|
|
84
|
+
onBackdropClicked: h,
|
|
85
|
+
close: f,
|
|
86
|
+
present: m,
|
|
87
|
+
toggleModal: w,
|
|
88
|
+
onKeyPress: c
|
|
89
|
+
}), (e, r) => (v(), A(Y, { to: e.teleportSelector }, [
|
|
90
|
+
Z(x, {
|
|
91
|
+
appear: "",
|
|
92
|
+
name: e.transitionName,
|
|
93
|
+
onAfterEnter: $,
|
|
94
|
+
onAfterLeave: C
|
|
95
|
+
}, {
|
|
96
|
+
default: E(() => [
|
|
97
|
+
m.value ? (v(), L(
|
|
98
|
+
"div",
|
|
99
|
+
T({
|
|
100
|
+
key: 0,
|
|
101
|
+
class: "m-backdrop --present m-reset-css"
|
|
102
|
+
}, e.$attrs, {
|
|
103
|
+
class: [e.backdropClass, e.variant && `--variant-${e.variant}`, { "--persistent": e.persistent }]
|
|
104
|
+
}),
|
|
105
|
+
[
|
|
106
|
+
j("div", ne, [
|
|
107
|
+
j("div", ae, [
|
|
108
|
+
j(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
class: W(["m-backdrop-content", [e.backdropContentClass, `--justify-${e.justify}`, `--align-${e.align}`, { "--padding": e.contentPadding }]]),
|
|
112
|
+
role: "button",
|
|
113
|
+
tabindex: "-1",
|
|
114
|
+
onClick: _(h, ["self"])
|
|
115
|
+
},
|
|
116
|
+
[
|
|
117
|
+
k(e.$slots, "default", {
|
|
118
|
+
close: f,
|
|
119
|
+
onBackdropClicked: h
|
|
120
|
+
}, void 0, !0)
|
|
121
|
+
],
|
|
122
|
+
2
|
|
123
|
+
/* CLASS */
|
|
124
|
+
)
|
|
125
|
+
])
|
|
126
|
+
])
|
|
127
|
+
],
|
|
128
|
+
16
|
|
129
|
+
/* FULL_PROPS */
|
|
130
|
+
)) : z("v-if", !0)
|
|
131
|
+
]),
|
|
132
|
+
_: 3
|
|
133
|
+
/* FORWARDED */
|
|
134
|
+
}, 8, ["name"])
|
|
135
|
+
], 8, ["to"]));
|
|
136
|
+
}
|
|
137
|
+
}), J = (s, l) => {
|
|
138
|
+
const n = s.__vccOpts || s;
|
|
139
|
+
for (const [d, y] of l)
|
|
140
|
+
n[d] = y;
|
|
141
|
+
return n;
|
|
142
|
+
}, se = /* @__PURE__ */ J(le, [["__scopeId", "data-v-90448c91"]]), ie = {
|
|
143
|
+
key: 0,
|
|
144
|
+
id: "dialogTitle",
|
|
145
|
+
class: "m-dialog-title"
|
|
146
|
+
}, re = {
|
|
147
|
+
key: 0,
|
|
148
|
+
class: "m-dialog-footer"
|
|
149
|
+
}, de = /* @__PURE__ */ K({
|
|
150
|
+
name: "MazDialog",
|
|
151
|
+
inheritAttrs: !1,
|
|
152
|
+
__name: "MazDialog",
|
|
153
|
+
props: {
|
|
154
|
+
modelValue: { type: Boolean },
|
|
155
|
+
title: { default: void 0 },
|
|
156
|
+
noClose: { type: Boolean, default: !1 },
|
|
157
|
+
maxWidth: { default: "100%" },
|
|
158
|
+
minWidth: { default: "32rem" },
|
|
159
|
+
scrollable: { type: Boolean, default: !1 },
|
|
160
|
+
persistent: { type: Boolean, default: !1 },
|
|
161
|
+
teleportSelector: {},
|
|
162
|
+
beforeClose: {},
|
|
163
|
+
noCloseOnEscKey: { type: Boolean },
|
|
164
|
+
transitionName: {},
|
|
165
|
+
backdropClass: {},
|
|
166
|
+
backdropContentClass: {},
|
|
167
|
+
contentPadding: { type: Boolean },
|
|
168
|
+
justify: {},
|
|
169
|
+
align: {},
|
|
170
|
+
variant: {}
|
|
171
|
+
},
|
|
172
|
+
emits: ["open", "close", "update:model-value"],
|
|
173
|
+
setup(s, { expose: l }) {
|
|
174
|
+
const n = s, d = F(() => import("./MazBtn-Bje1xDu3.mjs")), y = F(() => import("./x-mark-CnZwVvA7.mjs")), g = ee(), m = M();
|
|
175
|
+
l({
|
|
176
|
+
close: () => {
|
|
177
|
+
var o, i;
|
|
178
|
+
return (i = (o = m.value) == null ? void 0 : o.close) == null ? void 0 : i.call(o);
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
const f = D(() => {
|
|
182
|
+
const o = [
|
|
183
|
+
"modelValue",
|
|
184
|
+
"title",
|
|
185
|
+
"noClose",
|
|
186
|
+
"maxWidth",
|
|
187
|
+
"minWidth",
|
|
188
|
+
"scrollable"
|
|
189
|
+
];
|
|
190
|
+
return Object.fromEntries(
|
|
191
|
+
Object.entries(n).filter(([i]) => !o.includes(i))
|
|
192
|
+
);
|
|
193
|
+
}), w = D(() => ({
|
|
194
|
+
...g,
|
|
195
|
+
class: void 0,
|
|
196
|
+
style: void 0
|
|
197
|
+
})), $ = D(() => ({
|
|
198
|
+
class: g.class,
|
|
199
|
+
style: g.style
|
|
200
|
+
})), C = M(), h = te(), c = D(() => !!h.footer);
|
|
201
|
+
return n.scrollable && H(() => n.modelValue, async (o) => {
|
|
202
|
+
await N(), o && C.value && setTimeout(() => {
|
|
203
|
+
var i;
|
|
204
|
+
(i = C.value) == null || i.scrollTo({ top: 0, behavior: "instant" });
|
|
205
|
+
}, 0);
|
|
206
|
+
}), (o, i) => (v(), A(se, T({ ...w.value, ...f.value }, {
|
|
207
|
+
ref_key: "backdrop",
|
|
208
|
+
ref: m,
|
|
209
|
+
"model-value": o.modelValue,
|
|
210
|
+
"transition-name": "modal-anim",
|
|
211
|
+
"aria-labelledby": "dialogTitle",
|
|
212
|
+
"aria-describedby": "dialogDesc",
|
|
213
|
+
"content-padding": "",
|
|
214
|
+
justify: "center",
|
|
215
|
+
variant: "dialog",
|
|
216
|
+
onClose: i[0] || (i[0] = (u) => o.$emit("close", u)),
|
|
217
|
+
onOpen: i[1] || (i[1] = (u) => o.$emit("open", u)),
|
|
218
|
+
"onUpdate:modelValue": i[2] || (i[2] = (u) => o.$emit("update:model-value", u))
|
|
219
|
+
}), {
|
|
220
|
+
default: E(({ close: u, onBackdropClicked: t }) => [
|
|
221
|
+
j(
|
|
222
|
+
"div",
|
|
223
|
+
T({
|
|
224
|
+
class: ["m-dialog", { "--scrollable": o.scrollable }],
|
|
225
|
+
role: "dialog",
|
|
226
|
+
"aria-modal": "true",
|
|
227
|
+
style: [{ "--max-width": o.maxWidth, "--min-width": o.minWidth }]
|
|
228
|
+
}, $.value),
|
|
229
|
+
[
|
|
230
|
+
k(o.$slots, "header", {
|
|
231
|
+
close: u,
|
|
232
|
+
onBackdropClicked: t
|
|
233
|
+
}, () => [
|
|
234
|
+
j(
|
|
235
|
+
"div",
|
|
236
|
+
{
|
|
237
|
+
class: W(["m-dialog-header", { "--has-title": o.$slots.title || o.title }])
|
|
238
|
+
},
|
|
239
|
+
[
|
|
240
|
+
o.$slots.title || o.title ? (v(), L("h2", ie, [
|
|
241
|
+
k(o.$slots, "title", {}, () => [
|
|
242
|
+
S(
|
|
243
|
+
V(o.title),
|
|
244
|
+
1
|
|
245
|
+
/* TEXT */
|
|
246
|
+
)
|
|
247
|
+
], !0)
|
|
248
|
+
])) : z("v-if", !0),
|
|
249
|
+
!o.noClose && !o.persistent ? (v(), A(p(d), {
|
|
250
|
+
key: 1,
|
|
251
|
+
color: "transparent",
|
|
252
|
+
size: "sm",
|
|
253
|
+
icon: p(y),
|
|
254
|
+
onClick: u
|
|
255
|
+
}, null, 8, ["icon", "onClick"])) : z("v-if", !0)
|
|
256
|
+
],
|
|
257
|
+
2
|
|
258
|
+
/* CLASS */
|
|
259
|
+
)
|
|
260
|
+
], !0),
|
|
261
|
+
j(
|
|
262
|
+
"div",
|
|
263
|
+
{
|
|
264
|
+
id: "dialogDesc",
|
|
265
|
+
ref_key: "dialogContent",
|
|
266
|
+
ref: C,
|
|
267
|
+
class: W(["m-dialog-content", { "--bottom-padding": !c.value }])
|
|
268
|
+
},
|
|
269
|
+
[
|
|
270
|
+
k(o.$slots, "default", {
|
|
271
|
+
close: u,
|
|
272
|
+
onBackdropClicked: t
|
|
273
|
+
}, void 0, !0)
|
|
274
|
+
],
|
|
275
|
+
2
|
|
276
|
+
/* CLASS */
|
|
277
|
+
),
|
|
278
|
+
c.value ? (v(), L("div", re, [
|
|
279
|
+
k(o.$slots, "footer", {
|
|
280
|
+
close: u,
|
|
281
|
+
onBackdropClicked: t
|
|
282
|
+
}, void 0, !0)
|
|
283
|
+
])) : z("v-if", !0)
|
|
284
|
+
],
|
|
285
|
+
16
|
|
286
|
+
/* FULL_PROPS */
|
|
287
|
+
)
|
|
288
|
+
]),
|
|
289
|
+
_: 3
|
|
290
|
+
/* FORWARDED */
|
|
291
|
+
}, 16, ["model-value"]));
|
|
292
|
+
}
|
|
293
|
+
}), ue = /* @__PURE__ */ J(de, [["__scopeId", "data-v-b8a6c7fb"]]), P = {
|
|
294
|
+
cancelText: "Cancel",
|
|
295
|
+
confirmText: "Confirm",
|
|
296
|
+
cancelButton: {
|
|
297
|
+
text: "Cancel",
|
|
298
|
+
color: "danger"
|
|
299
|
+
},
|
|
300
|
+
confirmButton: {
|
|
301
|
+
text: "Confirm",
|
|
302
|
+
color: "success"
|
|
303
|
+
}
|
|
304
|
+
}, ce = M(P), O = M([]);
|
|
305
|
+
function me(s, l) {
|
|
306
|
+
return new Promise((n, d) => {
|
|
307
|
+
O.value = [
|
|
308
|
+
...O.value,
|
|
309
|
+
{
|
|
310
|
+
id: s,
|
|
311
|
+
isActive: !0,
|
|
312
|
+
resolve: async (y) => {
|
|
313
|
+
n(y), await (l == null ? void 0 : l());
|
|
314
|
+
},
|
|
315
|
+
reject: async (y) => {
|
|
316
|
+
d(y), await (l == null ? void 0 : l());
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
];
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
function Q(s) {
|
|
323
|
+
return O.value = O.value.filter(({ id: l }) => l !== s), O.value;
|
|
324
|
+
}
|
|
325
|
+
function G(s, l, n) {
|
|
326
|
+
var d;
|
|
327
|
+
l && ((d = l[s]) == null || d.call(l, n), l.isActive = !1, setTimeout(() => {
|
|
328
|
+
Q(l.id);
|
|
329
|
+
}, 500));
|
|
330
|
+
}
|
|
331
|
+
function fe() {
|
|
332
|
+
return {
|
|
333
|
+
data: ce,
|
|
334
|
+
dialogState: O,
|
|
335
|
+
showDialogAndWaitChoice: me,
|
|
336
|
+
removeDialogFromState: Q,
|
|
337
|
+
rejectDialog: async (s, l = new Error("cancel"), n) => (await (n == null ? void 0 : n()), G("reject", s, l)),
|
|
338
|
+
resolveDialog: async (s, l = "accept", n) => (await (n == null ? void 0 : n()), G("resolve", s, l))
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
const pe = { class: "maz-flex maz-items-center maz-gap-2" }, ye = /* @__PURE__ */ K({
|
|
342
|
+
__name: "MazDialogPromise",
|
|
343
|
+
props: {
|
|
344
|
+
data: { default: void 0 },
|
|
345
|
+
message: { default: void 0 },
|
|
346
|
+
identifier: { default: void 0 },
|
|
347
|
+
buttons: { default: void 0 },
|
|
348
|
+
modelValue: { type: Boolean },
|
|
349
|
+
title: {},
|
|
350
|
+
noClose: { type: Boolean },
|
|
351
|
+
maxWidth: {},
|
|
352
|
+
minWidth: {},
|
|
353
|
+
scrollable: { type: Boolean },
|
|
354
|
+
persistent: { type: Boolean },
|
|
355
|
+
teleportSelector: {},
|
|
356
|
+
beforeClose: {},
|
|
357
|
+
noCloseOnEscKey: { type: Boolean },
|
|
358
|
+
transitionName: {},
|
|
359
|
+
backdropClass: {},
|
|
360
|
+
backdropContentClass: {},
|
|
361
|
+
contentPadding: { type: Boolean },
|
|
362
|
+
justify: {},
|
|
363
|
+
align: {},
|
|
364
|
+
variant: {},
|
|
365
|
+
cancelText: {},
|
|
366
|
+
cancelButton: { type: [Boolean, Object] },
|
|
367
|
+
confirmText: {},
|
|
368
|
+
confirmButton: { type: [Boolean, Object] }
|
|
369
|
+
},
|
|
370
|
+
emits: ["open", "close"],
|
|
371
|
+
setup(s, { expose: l }) {
|
|
372
|
+
const n = s, d = F(() => import("./MazBtn-Bje1xDu3.mjs")), { dialogState: y, rejectDialog: g, resolveDialog: m, data: f } = fe(), w = D(() => {
|
|
373
|
+
var t;
|
|
374
|
+
return n.buttons ?? ((t = n.data) == null ? void 0 : t.buttons) ?? f.value.buttons;
|
|
375
|
+
}), $ = D(() => ({
|
|
376
|
+
...P,
|
|
377
|
+
...f.value,
|
|
378
|
+
...n.data
|
|
379
|
+
})), C = D(() => {
|
|
380
|
+
var r, a, B, b;
|
|
381
|
+
if (!(((r = f.value) == null ? void 0 : r.cancelButton) ?? ((a = n.data) == null ? void 0 : a.cancelButton) ?? P.cancelButton))
|
|
382
|
+
return;
|
|
383
|
+
const e = {
|
|
384
|
+
...P.cancelButton,
|
|
385
|
+
...(B = f.value) == null ? void 0 : B.cancelButton,
|
|
386
|
+
...(b = n.data) == null ? void 0 : b.cancelButton
|
|
387
|
+
};
|
|
388
|
+
return {
|
|
389
|
+
...e,
|
|
390
|
+
text: n.cancelText || $.value.cancelText || e.text
|
|
391
|
+
};
|
|
392
|
+
}), h = D(() => {
|
|
393
|
+
var r, a, B, b;
|
|
394
|
+
if (!(((r = f.value) == null ? void 0 : r.confirmButton) ?? ((a = n.data) == null ? void 0 : a.confirmButton) ?? P.confirmButton))
|
|
395
|
+
return;
|
|
396
|
+
const e = {
|
|
397
|
+
...P.confirmButton,
|
|
398
|
+
...(B = f.value) == null ? void 0 : B.confirmButton,
|
|
399
|
+
...(b = n.data) == null ? void 0 : b.confirmButton
|
|
400
|
+
};
|
|
401
|
+
return {
|
|
402
|
+
...e,
|
|
403
|
+
text: n.confirmText || $.value.confirmText || e.text
|
|
404
|
+
};
|
|
405
|
+
}), c = D(
|
|
406
|
+
() => y.value.find(({ id: t }) => t === n.identifier)
|
|
407
|
+
), o = M();
|
|
408
|
+
l({
|
|
409
|
+
close: () => {
|
|
410
|
+
var t, e;
|
|
411
|
+
return (e = (t = o.value) == null ? void 0 : t.close) == null ? void 0 : e.call(t);
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
function i(t) {
|
|
415
|
+
return "type" in t && (t.type === "resolve" || t.type === "reject");
|
|
416
|
+
}
|
|
417
|
+
function u(t, e) {
|
|
418
|
+
return i(e) ? e.type === "resolve" ? m(t, e.response) : g(t, e.response) : m(t, void 0, e.action);
|
|
419
|
+
}
|
|
420
|
+
return (t, e) => {
|
|
421
|
+
var r;
|
|
422
|
+
return v(), A(ue, T({
|
|
423
|
+
ref_key: "dialog",
|
|
424
|
+
ref: o
|
|
425
|
+
}, { ...t.$attrs, ...n }, {
|
|
426
|
+
"model-value": ((r = c.value) == null ? void 0 : r.isActive) ?? t.modelValue ?? !1,
|
|
427
|
+
onClose: e[2] || (e[2] = (a) => t.$emit("close", a)),
|
|
428
|
+
onOpen: e[3] || (e[3] = (a) => t.$emit("open", a)),
|
|
429
|
+
"onUpdate:modelValue": e[4] || (e[4] = (a) => p(g)(c.value))
|
|
430
|
+
}), {
|
|
431
|
+
title: E(() => [
|
|
432
|
+
k(t.$slots, "title", {}, () => {
|
|
433
|
+
var a;
|
|
434
|
+
return [
|
|
435
|
+
S(
|
|
436
|
+
V(t.title || ((a = $.value) == null ? void 0 : a.title)),
|
|
437
|
+
1
|
|
438
|
+
/* TEXT */
|
|
439
|
+
)
|
|
440
|
+
];
|
|
441
|
+
})
|
|
442
|
+
]),
|
|
443
|
+
default: E(() => [
|
|
444
|
+
k(t.$slots, "default", {
|
|
445
|
+
resolve: (a) => p(m)(c.value, a),
|
|
446
|
+
reject: (a) => p(g)(c.value, a)
|
|
447
|
+
}, () => {
|
|
448
|
+
var a;
|
|
449
|
+
return [
|
|
450
|
+
S(
|
|
451
|
+
V(t.message || ((a = $.value) == null ? void 0 : a.message)),
|
|
452
|
+
1
|
|
453
|
+
/* TEXT */
|
|
454
|
+
)
|
|
455
|
+
];
|
|
456
|
+
})
|
|
457
|
+
]),
|
|
458
|
+
footer: E(() => [
|
|
459
|
+
k(t.$slots, "footer-button", {
|
|
460
|
+
resolve: (a) => p(m)(c.value, a),
|
|
461
|
+
reject: (a) => p(g)(c.value, a)
|
|
462
|
+
}, () => [
|
|
463
|
+
j("div", pe, [
|
|
464
|
+
w.value ? (v(!0), L(
|
|
465
|
+
U,
|
|
466
|
+
{ key: 0 },
|
|
467
|
+
oe(w.value, (a, B) => (v(), A(p(d), T({
|
|
468
|
+
key: B,
|
|
469
|
+
ref_for: !0
|
|
470
|
+
}, {
|
|
471
|
+
...a,
|
|
472
|
+
type: "button"
|
|
473
|
+
}, {
|
|
474
|
+
onClick: (b) => u(c.value, a)
|
|
475
|
+
}), {
|
|
476
|
+
default: E(() => [
|
|
477
|
+
S(
|
|
478
|
+
V(a.text),
|
|
479
|
+
1
|
|
480
|
+
/* TEXT */
|
|
481
|
+
)
|
|
482
|
+
]),
|
|
483
|
+
_: 2
|
|
484
|
+
/* DYNAMIC */
|
|
485
|
+
}, 1040, ["onClick"]))),
|
|
486
|
+
128
|
|
487
|
+
/* KEYED_FRAGMENT */
|
|
488
|
+
)) : (v(), L(
|
|
489
|
+
U,
|
|
490
|
+
{ key: 1 },
|
|
491
|
+
[
|
|
492
|
+
C.value ? (v(), A(
|
|
493
|
+
p(d),
|
|
494
|
+
T({ key: 0 }, C.value, {
|
|
495
|
+
onClick: e[0] || (e[0] = (a) => p(g)(c.value))
|
|
496
|
+
}),
|
|
497
|
+
{
|
|
498
|
+
default: E(() => [
|
|
499
|
+
k(t.$slots, "cancel-text", {}, () => [
|
|
500
|
+
S(
|
|
501
|
+
V(C.value.text),
|
|
502
|
+
1
|
|
503
|
+
/* TEXT */
|
|
504
|
+
)
|
|
505
|
+
])
|
|
506
|
+
]),
|
|
507
|
+
_: 3
|
|
508
|
+
/* FORWARDED */
|
|
509
|
+
},
|
|
510
|
+
16
|
|
511
|
+
/* FULL_PROPS */
|
|
512
|
+
)) : z("v-if", !0),
|
|
513
|
+
h.value ? (v(), A(
|
|
514
|
+
p(d),
|
|
515
|
+
T({ key: 1 }, h.value, {
|
|
516
|
+
onClick: e[1] || (e[1] = (a) => p(m)(c.value))
|
|
517
|
+
}),
|
|
518
|
+
{
|
|
519
|
+
default: E(() => [
|
|
520
|
+
k(t.$slots, "confirm-text", {}, () => [
|
|
521
|
+
S(
|
|
522
|
+
V(h.value.text),
|
|
523
|
+
1
|
|
524
|
+
/* TEXT */
|
|
525
|
+
)
|
|
526
|
+
])
|
|
527
|
+
]),
|
|
528
|
+
_: 3
|
|
529
|
+
/* FORWARDED */
|
|
530
|
+
},
|
|
531
|
+
16
|
|
532
|
+
/* FULL_PROPS */
|
|
533
|
+
)) : z("v-if", !0)
|
|
534
|
+
],
|
|
535
|
+
64
|
|
536
|
+
/* STABLE_FRAGMENT */
|
|
537
|
+
))
|
|
538
|
+
])
|
|
539
|
+
])
|
|
540
|
+
]),
|
|
541
|
+
_: 3
|
|
542
|
+
/* FORWARDED */
|
|
543
|
+
}, 16, ["model-value"]);
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
});
|
|
547
|
+
export {
|
|
548
|
+
J as _,
|
|
549
|
+
ye as a,
|
|
550
|
+
fe as u
|
|
551
|
+
};
|
|
@@ -98,7 +98,7 @@ import '../assets/MazDrawer.css';const Y = {
|
|
|
98
98
|
"div",
|
|
99
99
|
G({
|
|
100
100
|
key: 0,
|
|
101
|
-
class: "m-backdrop --present"
|
|
101
|
+
class: "m-backdrop --present m-reset-css"
|
|
102
102
|
}, e.$attrs, {
|
|
103
103
|
class: [e.backdropClass, e.variant && `--variant-${e.variant}`, { "--persistent": e.persistent }]
|
|
104
104
|
}),
|
|
@@ -139,7 +139,7 @@ import '../assets/MazDrawer.css';const Y = {
|
|
|
139
139
|
for (const [l, f] of r)
|
|
140
140
|
d[l] = f;
|
|
141
141
|
return d;
|
|
142
|
-
}, _ = /* @__PURE__ */ O(x, [["__scopeId", "data-v-
|
|
142
|
+
}, _ = /* @__PURE__ */ O(x, [["__scopeId", "data-v-90448c91"]]), ee = { class: "m-drawer-header__title" }, te = {
|
|
143
143
|
key: 0,
|
|
144
144
|
class: "m-drawer-header__close"
|
|
145
145
|
}, ne = { class: "m-drawer-body" }, oe = /* @__PURE__ */ L({
|
|
@@ -153,7 +153,7 @@ import '../assets/MazDrawer.css';const Y = {
|
|
|
153
153
|
},
|
|
154
154
|
emits: ["before-close", "open", "close", "update:model-value"],
|
|
155
155
|
setup(n) {
|
|
156
|
-
const r = n, d = D(() => import("./MazBtn-
|
|
156
|
+
const r = n, d = D(() => import("./MazBtn-BcrrOaO_.mjs")), l = D(() => import("./x-mark-CnZwVvA7.mjs")), f = g(() => r.variant === "left" ? "start" : r.variant === "right" ? "end" : "none"), v = g(() => r.variant === "top" ? "start" : r.variant === "bottom" ? "end" : "none"), c = J(), u = g(() => !!(r.title || c.title));
|
|
157
157
|
return (t, o) => (p(), T(_, {
|
|
158
158
|
"backdrop-class": ["m-drawer", t.backdropClass],
|
|
159
159
|
justify: f.value,
|
|
@@ -147,6 +147,7 @@ const ge = ["innerHTML"], be = /* @__PURE__ */ Z({
|
|
|
147
147
|
key: 0,
|
|
148
148
|
ref_key: "svgElem",
|
|
149
149
|
ref: h,
|
|
150
|
+
class: "m-icon m-reset-css",
|
|
150
151
|
width: "1em",
|
|
151
152
|
height: "1em"
|
|
152
153
|
}, {
|
|
@@ -185,7 +186,7 @@ const ge = ["innerHTML"], be = /* @__PURE__ */ Z({
|
|
|
185
186
|
const n = l, f = s, p = me({
|
|
186
187
|
componentName: "MazDropdown",
|
|
187
188
|
providedId: n.id
|
|
188
|
-
}), v = F(() => import("./MazBtn-
|
|
189
|
+
}), v = F(() => import("./MazBtn-DETtZdlj.mjs")), h = F(() => import("./MazLink-DlUG7E5K.mjs")), T = F(() => import("./chevron-down-BkvtON3b.mjs")), u = A(n.open), d = A(), C = M(() => n.size === "xl" ? "maz-text-lg" : n.size === "lg" || n.size === "md" || n.size === "sm" ? "maz-text-base" : n.size === "xs" || n.size === "mini" ? "maz-text-sm" : "maz-text-lg"), y = we((e) => {
|
|
189
190
|
r(e);
|
|
190
191
|
}, 200);
|
|
191
192
|
function L() {
|
|
@@ -249,7 +250,7 @@ const ge = ["innerHTML"], be = /* @__PURE__ */ Z({
|
|
|
249
250
|
(e) => r(e)
|
|
250
251
|
), (e, c) => Q((w(), E("div", {
|
|
251
252
|
id: m(p),
|
|
252
|
-
class: S(["m-dropdown", [n.class, { "--block": e.block }]]),
|
|
253
|
+
class: S(["m-dropdown m-reset-css", [n.class, { "--block": e.block }]]),
|
|
253
254
|
style: X(e.style)
|
|
254
255
|
}, [
|
|
255
256
|
J("div", {
|
|
@@ -2,7 +2,7 @@ import { defineAsyncComponent as H, defineComponent as Q, ref as z, computed as
|
|
|
2
2
|
import '../assets/MazDropzone.css';function G(n) {
|
|
3
3
|
return n.default ?? n;
|
|
4
4
|
}
|
|
5
|
-
const K = H(() => import("./MazSpinner-
|
|
5
|
+
const K = H(() => import("./MazSpinner-B_THFs0t.mjs")), P = `<div class="dz-preview dz-file-preview maz-flex-1">
|
|
6
6
|
<div class="dz-image">
|
|
7
7
|
<div data-dz-thumbnail-bg></div>
|
|
8
8
|
</div>
|
|
@@ -159,7 +159,7 @@ function te(n, t, d, p, e, g) {
|
|
|
159
159
|
ref: "ButtonElement",
|
|
160
160
|
type: "button",
|
|
161
161
|
name: "maz-dropzone",
|
|
162
|
-
class: "maz-dropzone",
|
|
162
|
+
class: "maz-dropzone m-reset-css",
|
|
163
163
|
style: W([n.dropzoneStyle])
|
|
164
164
|
},
|
|
165
165
|
[
|
package/components/chunks/{MazExpandAnimation-Bdf0-L85.mjs → MazExpandAnimation-B04WMwpW.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as l, mergeModels as m, useModel as u, ref as
|
|
2
|
-
import { _ as M } from "./MazStepper-
|
|
1
|
+
import { defineComponent as l, mergeModels as m, useModel as u, ref as r, onMounted as f, onUnmounted as p, openBlock as v, createElementBlock as c, normalizeClass as _, normalizeStyle as x, createElementVNode as E, mergeProps as h, renderSlot as g } from "vue";
|
|
2
|
+
import { _ as M } from "./MazStepper-DtAqtJjn.mjs";
|
|
3
3
|
import '../assets/MazExpandAnimation.css';const A = ["aria-hidden"], y = /* @__PURE__ */ l({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "MazExpandAnimation",
|
|
@@ -12,23 +12,23 @@ import '../assets/MazExpandAnimation.css';const A = ["aria-hidden"], y = /* @__P
|
|
|
12
12
|
}),
|
|
13
13
|
emits: ["update:modelValue"],
|
|
14
14
|
setup(d) {
|
|
15
|
-
const a = u(d, "modelValue"), i =
|
|
15
|
+
const a = u(d, "modelValue"), i = r(!a.value), t = r();
|
|
16
16
|
function o() {
|
|
17
17
|
a.value || (i.value = !0);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function s() {
|
|
20
20
|
a.value && (i.value = !1);
|
|
21
21
|
}
|
|
22
22
|
return f(() => {
|
|
23
23
|
var e, n;
|
|
24
|
-
(e = t.value) == null || e.addEventListener("transitionstart", o, !1), (n = t.value) == null || n.addEventListener("transitionend",
|
|
24
|
+
(e = t.value) == null || e.addEventListener("transitionstart", o, !1), (n = t.value) == null || n.addEventListener("transitionend", s, !1);
|
|
25
25
|
}), p(() => {
|
|
26
26
|
var e, n;
|
|
27
|
-
(e = t.value) == null || e.removeEventListener("transitionstart", o, !1), (n = t.value) == null || n.removeEventListener("transitionend",
|
|
27
|
+
(e = t.value) == null || e.removeEventListener("transitionstart", o, !1), (n = t.value) == null || n.removeEventListener("transitionend", s, !1);
|
|
28
28
|
}), (e, n) => (v(), c("div", {
|
|
29
29
|
ref_key: "expandAnimationRef",
|
|
30
30
|
ref: t,
|
|
31
|
-
class: _(["m-expand-animation", { "m-expand-animation--expanded": a.value }]),
|
|
31
|
+
class: _(["m-expand-animation m-reset-css", { "m-expand-animation--expanded": a.value }]),
|
|
32
32
|
"aria-hidden": !a.value,
|
|
33
33
|
role: "region",
|
|
34
34
|
style: x([{ "--expand-animation-duration": e.duration, "--expand-animation-timing-function": e.timingFunction }])
|
|
@@ -48,7 +48,7 @@ import '../assets/MazExpandAnimation.css';const A = ["aria-hidden"], y = /* @__P
|
|
|
48
48
|
)
|
|
49
49
|
], 14, A));
|
|
50
50
|
}
|
|
51
|
-
}), V = /* @__PURE__ */ M(y, [["__scopeId", "data-v-
|
|
51
|
+
}), V = /* @__PURE__ */ M(y, [["__scopeId", "data-v-058a2912"]]);
|
|
52
52
|
export {
|
|
53
53
|
V as default
|
|
54
54
|
};
|