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
package/components/MazSlider.mjs
CHANGED
|
@@ -87,7 +87,7 @@ const re = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], ie = ["data-labe
|
|
|
87
87
|
});
|
|
88
88
|
async function z(e) {
|
|
89
89
|
e === !0 && U(), await Q(), await g();
|
|
90
|
-
for (const [t
|
|
90
|
+
for (const [t] of y.value.entries())
|
|
91
91
|
P(t);
|
|
92
92
|
}
|
|
93
93
|
function R(e, t) {
|
|
@@ -97,10 +97,10 @@ const re = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], ie = ["data-labe
|
|
|
97
97
|
i.value = void 0, $(e);
|
|
98
98
|
}
|
|
99
99
|
function U() {
|
|
100
|
-
const { min: e, max: t } = n,
|
|
100
|
+
const { min: e, max: t } = n, r = y.value.map(
|
|
101
101
|
(o) => o < e ? e : o > t ? t : o
|
|
102
102
|
);
|
|
103
|
-
x(
|
|
103
|
+
x(r), d.value = r;
|
|
104
104
|
}
|
|
105
105
|
function x(e) {
|
|
106
106
|
const t = H.value ? [...e] : e[0];
|
|
@@ -114,44 +114,44 @@ const re = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], ie = ["data-labe
|
|
|
114
114
|
$(e), n.noDivider || J();
|
|
115
115
|
}
|
|
116
116
|
async function $(e) {
|
|
117
|
-
var
|
|
117
|
+
var r;
|
|
118
118
|
await g();
|
|
119
119
|
const t = document.querySelectorAll(".m-slider .m-slider__btn");
|
|
120
120
|
if (t) {
|
|
121
|
-
const o = t[e], u = (o == null ? void 0 : o.clientWidth) + 16,
|
|
122
|
-
left: typeof ((
|
|
121
|
+
const o = t[e], u = (o == null ? void 0 : o.clientWidth) + 16, s = {
|
|
122
|
+
left: typeof ((r = m.value) == null ? void 0 : r[e]) == "number" ? `${m.value[e] - u / 2 || 1}px` : ""
|
|
123
123
|
};
|
|
124
|
-
_.value[e] =
|
|
124
|
+
_.value[e] = s;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
function J() {
|
|
128
128
|
if (m.value) {
|
|
129
129
|
const e = [...m.value];
|
|
130
130
|
e.push(0);
|
|
131
|
-
const t = e.length,
|
|
131
|
+
const t = e.length, r = Math.round(t / 2);
|
|
132
132
|
B.value = e.map((o, u) => ({
|
|
133
133
|
left: u === 0 ? 0 : `${e[u - 1]}px`,
|
|
134
134
|
// ATTENTION: buttonPositions.value[i - 1]
|
|
135
135
|
right: u + 1 === t ? 0 : `calc( 100% - ${o}px )`,
|
|
136
|
-
backgroundColor:
|
|
136
|
+
backgroundColor: r === u + 1 ? void 0 : u < r ? `rgba(255, 255, 255, ${I(u, r, t)})` : `rgba(0, 0, 0, ${I(u, r, t)})`
|
|
137
137
|
// darken
|
|
138
138
|
}));
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
async function Q() {
|
|
142
|
-
var u,
|
|
142
|
+
var u, s;
|
|
143
143
|
await g();
|
|
144
|
-
const { min: e, max: t, log:
|
|
145
|
-
o ? m.value = (
|
|
146
|
-
(h) =>
|
|
144
|
+
const { min: e, max: t, log: r } = n, o = (u = v.value) == null ? void 0 : u.clientWidth;
|
|
145
|
+
o ? m.value = (s = d.value) == null ? void 0 : s.map(
|
|
146
|
+
(h) => r ? o / t * (e + (Math.log(h) - M.value) / C.value) : o / k.value * (h - e)
|
|
147
147
|
) : console.warn("[maz-ui][MazSlider] ref component not found");
|
|
148
148
|
}
|
|
149
149
|
async function W() {
|
|
150
|
-
var u,
|
|
150
|
+
var u, s, h;
|
|
151
151
|
await g();
|
|
152
|
-
const { max: e, min: t, log:
|
|
152
|
+
const { max: e, min: t, log: r } = n, o = (u = v.value) == null ? void 0 : u.clientWidth;
|
|
153
153
|
if (o)
|
|
154
|
-
return
|
|
154
|
+
return r ? (s = m.value) == null ? void 0 : s.map((T) => {
|
|
155
155
|
const Z = T / (o / e), ee = Math.exp((Z - t) * C.value + M.value);
|
|
156
156
|
return Math.round(ee);
|
|
157
157
|
}) : (h = m.value) == null ? void 0 : h.map(
|
|
@@ -169,17 +169,17 @@ const re = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], ie = ["data-labe
|
|
|
169
169
|
e && x(e), i.value = void 0;
|
|
170
170
|
}
|
|
171
171
|
async function E(e) {
|
|
172
|
-
var
|
|
172
|
+
var r;
|
|
173
173
|
if (await g(), i.value === void 0)
|
|
174
174
|
return;
|
|
175
|
-
const t = (
|
|
175
|
+
const t = (r = v.value) == null ? void 0 : r.clientWidth;
|
|
176
176
|
if (m.value) {
|
|
177
177
|
const o = m.value[i.value - 1] || 0, u = m.value[i.value + 1] || t;
|
|
178
178
|
if (!v.value)
|
|
179
179
|
return console.error("[maz-ui](MazSlider/handleMousemove) MazSlider not available");
|
|
180
180
|
m.value[i.value] = (() => {
|
|
181
|
-
const
|
|
182
|
-
return
|
|
181
|
+
const s = se(e, v.value).x;
|
|
182
|
+
return s < o ? o : u && s > u ? u : s;
|
|
183
183
|
})(), d.value = await W(), P(i.value);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
@@ -187,7 +187,7 @@ const re = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], ie = ["data-labe
|
|
|
187
187
|
"div",
|
|
188
188
|
{
|
|
189
189
|
style: V([Y.value, { fontSize: a.size }]),
|
|
190
|
-
class: F(["m-slider", [`m-slider--${a.color}`]]),
|
|
190
|
+
class: F(["m-slider m-reset-css", [`m-slider--${a.color}`]]),
|
|
191
191
|
role: "button",
|
|
192
192
|
tabindex: "-1",
|
|
193
193
|
onMousemovePassive: E,
|
|
@@ -208,11 +208,11 @@ const re = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], ie = ["data-labe
|
|
|
208
208
|
(b(!0), w(
|
|
209
209
|
K,
|
|
210
210
|
null,
|
|
211
|
-
j(B.value, (
|
|
211
|
+
j(B.value, (r, o) => (b(), w(
|
|
212
212
|
"div",
|
|
213
213
|
{
|
|
214
214
|
key: `divider-${o}`,
|
|
215
|
-
style: V([
|
|
215
|
+
style: V([r]),
|
|
216
216
|
class: "m-slider__divider"
|
|
217
217
|
},
|
|
218
218
|
null,
|
|
@@ -225,7 +225,7 @@ const re = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], ie = ["data-labe
|
|
|
225
225
|
(b(!0), w(
|
|
226
226
|
K,
|
|
227
227
|
null,
|
|
228
|
-
j(y.value, (
|
|
228
|
+
j(y.value, (r, o) => {
|
|
229
229
|
var u;
|
|
230
230
|
return b(), w("button", {
|
|
231
231
|
key: `cursor-${o}`,
|
|
@@ -235,12 +235,12 @@ const re = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], ie = ["data-labe
|
|
|
235
235
|
"active-cursor": o === i.value && !a.noCursorAnim
|
|
236
236
|
}]),
|
|
237
237
|
style: V([_.value[o]]),
|
|
238
|
-
onMousedownPassive: (
|
|
239
|
-
onTouchstartPassive: (
|
|
240
|
-
onFocusPassive: (
|
|
241
|
-
onBlurPassive: (
|
|
242
|
-
onTouchendPassive: (
|
|
243
|
-
onKeydownPassive: (
|
|
238
|
+
onMousedownPassive: (s) => S(s, o),
|
|
239
|
+
onTouchstartPassive: (s) => S(s, o),
|
|
240
|
+
onFocusPassive: (s) => S(s, o),
|
|
241
|
+
onBlurPassive: (s) => A(o),
|
|
242
|
+
onTouchendPassive: (s) => A(o),
|
|
243
|
+
onKeydownPassive: (s) => R(s, o)
|
|
244
244
|
}, [
|
|
245
245
|
N(
|
|
246
246
|
"span",
|
|
@@ -265,7 +265,7 @@ const re = ["aria-valuenow", "aria-valuemin", "aria-valuemax"], ie = ["data-labe
|
|
|
265
265
|
for (const [c, v] of l)
|
|
266
266
|
n[c] = v;
|
|
267
267
|
return n;
|
|
268
|
-
}, me = /* @__PURE__ */ de(ce, [["__scopeId", "data-v-
|
|
268
|
+
}, me = /* @__PURE__ */ de(ce, [["__scopeId", "data-v-a0330fd0"]]);
|
|
269
269
|
export {
|
|
270
270
|
me as default
|
|
271
271
|
};
|
|
@@ -5,7 +5,7 @@ import './assets/MazSpinner.css';const i = ["width", "height"], m = /* @__PURE__
|
|
|
5
5
|
size: { default: "2em" },
|
|
6
6
|
color: { default: "theme" }
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
8
|
+
setup(s) {
|
|
9
9
|
return (e, t) => (p(), a("svg", {
|
|
10
10
|
width: e.size,
|
|
11
11
|
height: e.size,
|
|
@@ -15,7 +15,7 @@ import './assets/MazSpinner.css';const i = ["width", "height"], m = /* @__PURE__
|
|
|
15
15
|
y: "0px",
|
|
16
16
|
viewBox: "0 0 50 50",
|
|
17
17
|
"xml:space": "preserve",
|
|
18
|
-
class: c(["m-spinner", `m-spinner--${e.color}`]),
|
|
18
|
+
class: c(["m-spinner m-reset-css", `m-spinner--${e.color}`]),
|
|
19
19
|
style: { "enable-background": "new 0 0 50 50" }
|
|
20
20
|
}, t[0] || (t[0] = [
|
|
21
21
|
l(
|
|
@@ -27,12 +27,12 @@ import './assets/MazSpinner.css';const i = ["width", "height"], m = /* @__PURE__
|
|
|
27
27
|
)
|
|
28
28
|
]), 10, i));
|
|
29
29
|
}
|
|
30
|
-
}), d = (
|
|
31
|
-
const t =
|
|
32
|
-
for (const [
|
|
33
|
-
t[
|
|
30
|
+
}), d = (s, e) => {
|
|
31
|
+
const t = s.__vccOpts || s;
|
|
32
|
+
for (const [n, o] of e)
|
|
33
|
+
t[n] = o;
|
|
34
34
|
return t;
|
|
35
|
-
}, h = /* @__PURE__ */ d(m, [["__scopeId", "data-v-
|
|
35
|
+
}, h = /* @__PURE__ */ d(m, [["__scopeId", "data-v-52831d3b"]]);
|
|
36
36
|
export {
|
|
37
37
|
h as default
|
|
38
38
|
};
|
|
@@ -47,7 +47,7 @@ declare function __VLS_template(): {
|
|
|
47
47
|
rootEl: HTMLDivElement;
|
|
48
48
|
};
|
|
49
49
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
50
|
-
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
50
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
51
|
"update:model-value": (value: number) => any;
|
|
52
52
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
53
53
|
"onUpdate:model-value"?: ((value: number) => any) | undefined;
|
package/components/MazSwitch.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed as b, useId as k, defineComponent as V, ref as B, openBlock as r, createElementBlock as i, unref as c, normalizeClass as m, normalizeStyle as z, createElementVNode as f, mergeProps as C, renderSlot as E, createTextVNode as S, toDisplayString as p, createCommentVNode as h } from "vue";
|
|
2
2
|
import './assets/MazSwitch.css';function $({
|
|
3
3
|
componentName: n,
|
|
4
|
-
providedId:
|
|
4
|
+
providedId: s
|
|
5
5
|
}) {
|
|
6
|
-
return b(() =>
|
|
6
|
+
return b(() => s ?? `${n}-${k().replace(/:/g, "")}`);
|
|
7
7
|
}
|
|
8
8
|
const I = ["for", "aria-checked"], N = ["id", "name", "checked", "aria-label", "disabled"], D = {
|
|
9
9
|
key: 0,
|
|
@@ -26,29 +26,29 @@ const I = ["for", "aria-checked"], N = ["id", "name", "checked", "aria-label", "
|
|
|
26
26
|
hint: {}
|
|
27
27
|
},
|
|
28
28
|
emits: ["update:model-value", "change", "blur", "focus"],
|
|
29
|
-
setup(n, { emit:
|
|
30
|
-
const l = n, o =
|
|
29
|
+
setup(n, { emit: s }) {
|
|
30
|
+
const l = n, o = s, d = $({
|
|
31
31
|
componentName: "MazSwitch",
|
|
32
32
|
providedId: l.id
|
|
33
33
|
}), v = b(() => l.color === "theme" ? "var(--maz-color-bg-theme)" : `var(--maz-color-${l.color}-alpha)`);
|
|
34
34
|
function u() {
|
|
35
35
|
o("update:model-value", !l.modelValue), o("change", !l.modelValue);
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const t = B();
|
|
38
38
|
function y(e) {
|
|
39
39
|
["Space"].includes(e.code) && (e.preventDefault(), u());
|
|
40
40
|
}
|
|
41
41
|
function w(e) {
|
|
42
42
|
var a;
|
|
43
|
-
(a =
|
|
43
|
+
(a = t.value) == null || a.dispatchEvent(new Event("blur")), o("blur", e);
|
|
44
44
|
}
|
|
45
45
|
function g(e) {
|
|
46
46
|
var a;
|
|
47
|
-
(a =
|
|
47
|
+
(a = t.value) == null || a.dispatchEvent(new Event("focus")), o("focus", e);
|
|
48
48
|
}
|
|
49
49
|
return (e, a) => (r(), i("label", {
|
|
50
50
|
for: c(d),
|
|
51
|
-
class: m(["m-switch", [{ "--is-disabled": e.disabled }, l.class]]),
|
|
51
|
+
class: m(["m-switch m-reset-css", [{ "--is-disabled": e.disabled }, l.class]]),
|
|
52
52
|
role: "switch",
|
|
53
53
|
style: z([e.style, { "--switch-color": v.value }]),
|
|
54
54
|
"aria-checked": e.modelValue,
|
|
@@ -59,7 +59,7 @@ const I = ["for", "aria-checked"], N = ["id", "name", "checked", "aria-label", "
|
|
|
59
59
|
}, [
|
|
60
60
|
f("input", C({ id: c(d) }, e.$attrs, {
|
|
61
61
|
ref_key: "inputRef",
|
|
62
|
-
ref:
|
|
62
|
+
ref: t,
|
|
63
63
|
type: "checkbox",
|
|
64
64
|
name: e.name,
|
|
65
65
|
tabindex: "-1",
|
package/components/MazTable.mjs
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { inject as c, defineComponent as
|
|
2
|
-
import './assets/MazTableCell.css';function
|
|
1
|
+
import { inject as c, defineComponent as s, openBlock as a, createElementBlock as l, normalizeClass as i, unref as _, renderSlot as m } from "vue";
|
|
2
|
+
import './assets/MazTableCell.css';function u(t, o) {
|
|
3
3
|
const e = c(t, o);
|
|
4
4
|
if (!e)
|
|
5
5
|
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${t.toString()}`);
|
|
6
6
|
return e;
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const f = "maz-table", p = (t, o) => {
|
|
9
9
|
const e = t.__vccOpts || t;
|
|
10
|
-
for (const [
|
|
11
|
-
e[
|
|
10
|
+
for (const [r, n] of o)
|
|
11
|
+
e[r] = n;
|
|
12
12
|
return e;
|
|
13
|
-
},
|
|
13
|
+
}, d = /* @__PURE__ */ s({
|
|
14
14
|
__name: "MazTableCell",
|
|
15
15
|
setup(t) {
|
|
16
|
-
const { size: o } =
|
|
17
|
-
return (e,
|
|
16
|
+
const { size: o } = u(f);
|
|
17
|
+
return (e, r) => (a(), l(
|
|
18
18
|
"td",
|
|
19
19
|
{
|
|
20
|
-
class: i(["m-table-cell", [`--${_(o)}`]])
|
|
20
|
+
class: i(["m-table-cell m-reset-css", [`--${_(o)}`]])
|
|
21
21
|
},
|
|
22
22
|
[
|
|
23
|
-
|
|
23
|
+
m(e.$slots, "default", {}, void 0, !0)
|
|
24
24
|
],
|
|
25
25
|
2
|
|
26
26
|
/* CLASS */
|
|
27
27
|
));
|
|
28
28
|
}
|
|
29
|
-
}),
|
|
29
|
+
}), b = /* @__PURE__ */ p(d, [["__scopeId", "data-v-f338a7b0"]]);
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
b as default
|
|
32
32
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { inject as c, defineComponent as
|
|
1
|
+
import { inject as c, defineComponent as s, openBlock as l, createElementBlock as d, normalizeClass as u, unref as a, renderSlot as i } from "vue";
|
|
2
2
|
import './assets/MazTableRow.css';function p(o, t) {
|
|
3
3
|
const e = c(o, t);
|
|
4
4
|
if (!e)
|
|
5
5
|
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${o.toString()}`);
|
|
6
6
|
return e;
|
|
7
7
|
}
|
|
8
|
-
const b = "maz-table",
|
|
8
|
+
const b = "maz-table", m = (o, t) => {
|
|
9
9
|
const e = o.__vccOpts || o;
|
|
10
10
|
for (const [n, r] of t)
|
|
11
11
|
e[n] = r;
|
|
12
12
|
return e;
|
|
13
|
-
},
|
|
13
|
+
}, v = /* @__PURE__ */ s({
|
|
14
14
|
__name: "MazTableRow",
|
|
15
15
|
props: {
|
|
16
16
|
noHoverable: { type: Boolean }
|
|
17
17
|
},
|
|
18
18
|
setup(o) {
|
|
19
19
|
const { hoverable: t, backgroundEven: e, backgroundOdd: n } = p(b);
|
|
20
|
-
return (r,
|
|
20
|
+
return (r, _) => (l(), d(
|
|
21
21
|
"tr",
|
|
22
22
|
{
|
|
23
|
-
class: u(["m-table-row", {
|
|
23
|
+
class: u(["m-table-row m-reset-css", {
|
|
24
24
|
"--hoverable": a(t) && !r.noHoverable,
|
|
25
25
|
"--background-odd": a(n),
|
|
26
26
|
"--background-even": a(e)
|
|
@@ -33,7 +33,7 @@ const b = "maz-table", v = (o, t) => {
|
|
|
33
33
|
/* CLASS */
|
|
34
34
|
));
|
|
35
35
|
}
|
|
36
|
-
}), g = /* @__PURE__ */ v
|
|
36
|
+
}), g = /* @__PURE__ */ m(v, [["__scopeId", "data-v-c9f9a9c5"]]);
|
|
37
37
|
export {
|
|
38
38
|
g as default
|
|
39
39
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import './assets/MazTableTitle.css';function
|
|
3
|
-
const t =
|
|
1
|
+
import { inject as s, defineComponent as c, openBlock as a, createElementBlock as l, normalizeClass as i, unref as _, renderSlot as f } from "vue";
|
|
2
|
+
import './assets/MazTableTitle.css';function u(e, o) {
|
|
3
|
+
const t = s(e, o);
|
|
4
4
|
if (!t)
|
|
5
5
|
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${e.toString()}`);
|
|
6
6
|
return t;
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const m = /* @__PURE__ */ c({
|
|
9
9
|
__name: "MazTableTitle",
|
|
10
10
|
setup(e) {
|
|
11
|
-
const { size: o } =
|
|
12
|
-
return (t, r) => (
|
|
11
|
+
const { size: o } = u("maz-table");
|
|
12
|
+
return (t, r) => (a(), l(
|
|
13
13
|
"th",
|
|
14
14
|
{
|
|
15
|
-
class: i(["m-table-title", [`--${_(o)}`]])
|
|
15
|
+
class: i(["m-table-title m-reset-css", [`--${_(o)}`]])
|
|
16
16
|
},
|
|
17
17
|
[
|
|
18
|
-
|
|
18
|
+
f(t.$slots, "default", {}, void 0, !0)
|
|
19
19
|
],
|
|
20
20
|
2
|
|
21
21
|
/* CLASS */
|
|
22
22
|
));
|
|
23
23
|
}
|
|
24
|
-
}),
|
|
24
|
+
}), p = (e, o) => {
|
|
25
25
|
const t = e.__vccOpts || e;
|
|
26
26
|
for (const [r, n] of o)
|
|
27
27
|
t[r] = n;
|
|
28
28
|
return t;
|
|
29
|
-
},
|
|
29
|
+
}, v = /* @__PURE__ */ p(m, [["__scopeId", "data-v-253f46bf"]]);
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
v as default
|
|
32
32
|
};
|
package/components/MazTabs.d.ts
CHANGED
|
@@ -16,10 +16,10 @@ declare function __VLS_template(): {
|
|
|
16
16
|
rootEl: HTMLDivElement;
|
|
17
17
|
};
|
|
18
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
-
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
-
"update:model-value": (
|
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
"update:model-value": (value: number) => any;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
22
|
-
"onUpdate:model-value"?: ((
|
|
22
|
+
"onUpdate:model-value"?: ((value: number) => any) | undefined;
|
|
23
23
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
24
24
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
25
|
export default _default;
|
package/components/MazTabs.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { defineComponent as n, ref as c, computed as m, provide as p, openBlock as d, createElementBlock as i, renderSlot as f } from "vue";
|
|
2
|
-
const v = { class: "m-tabs" }, T = /* @__PURE__ */ n({
|
|
2
|
+
const v = { class: "m-tabs m-reset-css" }, T = /* @__PURE__ */ n({
|
|
3
3
|
__name: "MazTabs",
|
|
4
4
|
props: {
|
|
5
5
|
modelValue: {}
|
|
6
6
|
},
|
|
7
7
|
emits: ["update:model-value"],
|
|
8
|
-
setup(o, { emit:
|
|
9
|
-
const
|
|
10
|
-
get: () =>
|
|
8
|
+
setup(o, { emit: s }) {
|
|
9
|
+
const l = o, r = s, t = c(1), a = m({
|
|
10
|
+
get: () => l.modelValue ?? t.value,
|
|
11
11
|
set: (e) => {
|
|
12
|
-
t.value = e,
|
|
12
|
+
t.value = e, r("update:model-value", e);
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
function
|
|
15
|
+
function u(e) {
|
|
16
16
|
return a.value = e, e;
|
|
17
17
|
}
|
|
18
18
|
return p("maz-tabs", {
|
|
19
19
|
currentTab: a,
|
|
20
|
-
updateCurrentTab:
|
|
20
|
+
updateCurrentTab: u
|
|
21
21
|
}), (e, _) => (d(), i("div", v, [
|
|
22
22
|
f(e.$slots, "default")
|
|
23
23
|
]));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as l, defineComponent as
|
|
1
|
+
import { inject as l, defineComponent as s, ref as c, watch as i, openBlock as u, createElementBlock as m, normalizeClass as f, renderSlot as d } from "vue";
|
|
2
2
|
function v(n, e) {
|
|
3
3
|
let t;
|
|
4
4
|
return function(...o) {
|
|
@@ -13,7 +13,7 @@ function p(n, e) {
|
|
|
13
13
|
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${n.toString()}`);
|
|
14
14
|
return t;
|
|
15
15
|
}
|
|
16
|
-
const h = /* @__PURE__ */
|
|
16
|
+
const h = /* @__PURE__ */ s({
|
|
17
17
|
__name: "MazTabsContent",
|
|
18
18
|
setup(n) {
|
|
19
19
|
const e = c(!1), { currentTab: t } = p("maz-tabs"), o = v(() => {
|
|
@@ -22,14 +22,14 @@ const h = /* @__PURE__ */ i({
|
|
|
22
22
|
function r() {
|
|
23
23
|
e.value = !0, o();
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return i(
|
|
26
26
|
() => t.value,
|
|
27
27
|
() => r(),
|
|
28
28
|
{ immediate: !0 }
|
|
29
29
|
), (a, w) => (u(), m(
|
|
30
30
|
"div",
|
|
31
31
|
{
|
|
32
|
-
class: f(["m-tabs-content maz-relative", { "maz-overflow-hidden": e.value }])
|
|
32
|
+
class: f(["m-tabs-content maz-relative m-reset-css", { "maz-overflow-hidden": e.value }])
|
|
33
33
|
},
|
|
34
34
|
[
|
|
35
35
|
d(a.$slots, "default")
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { inject as p, defineComponent as
|
|
1
|
+
import { inject as p, defineComponent as f, ref as c, watch as l, computed as i, openBlock as d, createBlock as v, Transition as _, withCtx as T, withDirectives as z, createElementVNode as C, renderSlot as w, vShow as h } from "vue";
|
|
2
2
|
import './assets/MazTabsContentItem.css';function I(e, n) {
|
|
3
3
|
const t = p(e, n);
|
|
4
4
|
if (!t)
|
|
5
5
|
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${e.toString()}`);
|
|
6
6
|
return t;
|
|
7
7
|
}
|
|
8
|
-
const y = /* @__PURE__ */
|
|
8
|
+
const y = /* @__PURE__ */ f({
|
|
9
9
|
__name: "MazTabsContentItem",
|
|
10
10
|
props: {
|
|
11
11
|
tab: { type: Number, required: !0 }
|
|
12
12
|
},
|
|
13
13
|
setup(e) {
|
|
14
|
-
const n = e, t =
|
|
15
|
-
|
|
14
|
+
const n = e, t = c("maz-tab-transition"), o = c(), { currentTab: r } = I("maz-tabs");
|
|
15
|
+
l(
|
|
16
16
|
() => r.value,
|
|
17
17
|
(a, s) => {
|
|
18
18
|
if (typeof a == "number" && typeof s == "number") {
|
|
@@ -22,8 +22,8 @@ const y = /* @__PURE__ */ d({
|
|
|
22
22
|
},
|
|
23
23
|
{ immediate: !0 }
|
|
24
24
|
);
|
|
25
|
-
const m =
|
|
26
|
-
return (a, s) => (
|
|
25
|
+
const m = i(() => n.tab - 1), u = i(() => r.value - 1 === m.value);
|
|
26
|
+
return (a, s) => (d(), v(_, {
|
|
27
27
|
name: t.value,
|
|
28
28
|
persisted: ""
|
|
29
29
|
}, {
|
|
@@ -33,7 +33,7 @@ const y = /* @__PURE__ */ d({
|
|
|
33
33
|
{
|
|
34
34
|
ref_key: "MazTabsContentItem",
|
|
35
35
|
ref: o,
|
|
36
|
-
class: "m-tabs-content-item"
|
|
36
|
+
class: "m-tabs-content-item m-reset-css"
|
|
37
37
|
},
|
|
38
38
|
[
|
|
39
39
|
w(a.$slots, "default", {}, void 0, !0)
|
|
@@ -53,7 +53,7 @@ const y = /* @__PURE__ */ d({
|
|
|
53
53
|
for (const [o, r] of n)
|
|
54
54
|
t[o] = r;
|
|
55
55
|
return t;
|
|
56
|
-
}, M = /* @__PURE__ */ S(y, [["__scopeId", "data-v-
|
|
56
|
+
}, M = /* @__PURE__ */ S(y, [["__scopeId", "data-v-89ecbfa6"]]);
|
|
57
57
|
export {
|
|
58
58
|
M as default
|
|
59
59
|
};
|
|
@@ -123,7 +123,7 @@ const W = ["for"], X = ["for"], Y = { key: 1 }, Z = { key: 2 }, x = ["id", "plac
|
|
|
123
123
|
return "--default-border";
|
|
124
124
|
}), q = n(() => y.value !== "--default-border");
|
|
125
125
|
return (e, g) => (l(), i("label", {
|
|
126
|
-
class: B(["m-textarea", [
|
|
126
|
+
class: B(["m-textarea m-reset-css", [
|
|
127
127
|
{
|
|
128
128
|
"--is-disabled": e.disabled,
|
|
129
129
|
"--has-label": f.value,
|
|
@@ -195,7 +195,7 @@ const W = ["for"], X = ["for"], Y = { key: 1 }, Z = { key: 2 }, x = ["id", "plac
|
|
|
195
195
|
for (const [a, s] of o)
|
|
196
196
|
t[a] = s;
|
|
197
197
|
return t;
|
|
198
|
-
}, ne = /* @__PURE__ */ oe(te, [["__scopeId", "data-v-
|
|
198
|
+
}, ne = /* @__PURE__ */ oe(te, [["__scopeId", "data-v-cc98bc3c"]]);
|
|
199
199
|
export {
|
|
200
200
|
ne as default
|
|
201
201
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, useCssVars as d, openBlock as h, createBlock as u, TransitionGroup as y, withCtx as g, renderSlot as l, nextTick as
|
|
1
|
+
import { defineComponent as p, useCssVars as d, openBlock as h, createBlock as u, TransitionGroup as y, withCtx as g, renderSlot as l, nextTick as r } from "vue";
|
|
2
2
|
import './assets/MazTransitionExpand.css';const f = /* @__PURE__ */ p({
|
|
3
3
|
__name: "MazTransitionExpand",
|
|
4
4
|
props: {
|
|
@@ -6,32 +6,32 @@ import './assets/MazTransitionExpand.css';const f = /* @__PURE__ */ p({
|
|
|
6
6
|
},
|
|
7
7
|
setup(n) {
|
|
8
8
|
d((t) => ({
|
|
9
|
-
|
|
9
|
+
"6402c434": t.animationDuration
|
|
10
10
|
}));
|
|
11
11
|
function a(t) {
|
|
12
12
|
const o = getComputedStyle(t).width;
|
|
13
13
|
t.style.width = o, t.style.position = "absolute", t.style.visibility = "hidden", t.style.height = "auto", t.style.top = "bottom";
|
|
14
14
|
const i = getComputedStyle(t).height;
|
|
15
|
-
t.style.width = "", t.style.position = "", t.style.visibility = "", t.style.height = "0px", getComputedStyle(t).height,
|
|
15
|
+
t.style.width = "", t.style.position = "", t.style.visibility = "", t.style.height = "0px", getComputedStyle(t).height, r(() => {
|
|
16
16
|
t.style.height = i;
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
function s(t) {
|
|
20
20
|
t.style.height = "auto";
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function e(t) {
|
|
23
23
|
const o = getComputedStyle(t).height;
|
|
24
|
-
t.style.height = o, getComputedStyle(t).height,
|
|
24
|
+
t.style.height = o, getComputedStyle(t).height, r(() => {
|
|
25
25
|
t.style.height = "0px";
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
return (t, o) => (h(), u(y, {
|
|
29
|
-
class: "m-transition-expand",
|
|
29
|
+
class: "m-transition-expand m-reset-css",
|
|
30
30
|
name: "maz-expand",
|
|
31
31
|
tag: "div",
|
|
32
32
|
onEnter: o[0] || (o[0] = (i) => a(i)),
|
|
33
33
|
onAfterEnter: o[1] || (o[1] = (i) => s(i)),
|
|
34
|
-
onLeave: o[2] || (o[2] = (i) =>
|
|
34
|
+
onLeave: o[2] || (o[2] = (i) => e(i))
|
|
35
35
|
}, {
|
|
36
36
|
default: g(() => [
|
|
37
37
|
l(t.$slots, "default", {}, void 0, !0)
|
|
@@ -42,10 +42,10 @@ import './assets/MazTransitionExpand.css';const f = /* @__PURE__ */ p({
|
|
|
42
42
|
}
|
|
43
43
|
}), c = (n, a) => {
|
|
44
44
|
const s = n.__vccOpts || n;
|
|
45
|
-
for (const [
|
|
46
|
-
s[
|
|
45
|
+
for (const [e, t] of a)
|
|
46
|
+
s[e] = t;
|
|
47
47
|
return s;
|
|
48
|
-
}, v = /* @__PURE__ */ c(f, [["__scopeId", "data-v-
|
|
48
|
+
}, v = /* @__PURE__ */ c(f, [["__scopeId", "data-v-fbd5f8a0"]]);
|
|
49
49
|
export {
|
|
50
50
|
v as default
|
|
51
51
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.m-card-spotlight[data-v-
|
|
1
|
+
.m-card-spotlight[data-v-4f773edc]{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;overflow:hidden;border-radius:var(--maz-border-radius);padding:var(--maz-border-width)}.m-card-spotlight .inner[data-v-4f773edc]{position:relative;height:auto;width:100%;overflow:hidden;border-radius:calc(var(--maz-border-radius) - var(--maz-border-width))}.m-card-spotlight .inner[data-v-4f773edc]:before{content:"";position:absolute;left:0;top:0;z-index:1;height:100%;width:100%;background-color:var(--maz-color-bg);opacity:var(--inner-opacity)}.m-card-spotlight .content[data-v-4f773edc]{position:relative;z-index:2;height:100%;width:100%}.m-card-spotlight .blob[data-v-4f773edc]{position:absolute;left:0;top:0;z-index:0;height:16rem;width:16rem;border-radius:9999px;--tw-blur: blur(40px);-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.m-card-spotlight .fakeblob[data-v-4f773edc]{display:hidden;position:absolute;z-index:-1;top:0;left:0;width:200px;height:200px;height:13rem;width:13rem;border-radius:9999px}.m-expand-animation[data-v-058a2912]{display:grid;grid-template-rows:0fr;-webkit-transition:grid-template-rows var(--expand-animation-duration) var(--expand-animation-timing-function);transition:grid-template-rows var(--expand-animation-duration) var(--expand-animation-timing-function);transition:grid-template-rows var(--expand-animation-duration) var(--expand-animation-timing-function),-ms-grid-rows var(--expand-animation-duration) var(--expand-animation-timing-function)}.m-expand-animation__inner.--overflow-hidden[data-v-058a2912]{overflow:hidden}.m-expand-animation--expanded[data-v-058a2912]{grid-template-rows:1fr}.m-accordion[data-v-6a945de6]{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:1rem;vertical-align:top}.m-accordion__spotlight[data-v-6a945de6]{width:100%}.m-accordion__header[data-v-6a945de6]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;gap:1rem;padding:1rem;text-align:start;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.m-accordion__header .header-icon[data-v-6a945de6]{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.m-accordion__header .header-icon.--rotate[data-v-6a945de6]{-webkit-transform:rotate(135deg);transform:rotate(135deg)}.m-accordion__content[data-v-6a945de6]{padding:1rem}
|