maz-ui 3.46.1-beta.5 → 3.47.0
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 +30 -30
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +5 -0
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.mjs +15 -15
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChecklist.d.ts +79 -0
- package/components/MazChecklist.mjs +4 -0
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.d.ts +2 -0
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.d.ts +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.d.ts +2 -2
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.d.ts +2 -2
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazChecklist.css +1 -0
- package/components/assets/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/chunks/{MazBottomSheet-s9lLaK1M.mjs → MazBottomSheet-BvdiOa8P.mjs} +1 -1
- package/components/chunks/{MazBtn-BMmuCciQ.mjs → MazBtn-4g56EBmg.mjs} +20 -18
- package/components/chunks/MazBtn-4jMQE2G-.mjs +118 -0
- package/components/chunks/MazBtn-B3i4Ypas.mjs +118 -0
- package/components/chunks/MazBtn-B7rKmEGw.mjs +118 -0
- package/components/chunks/MazBtn-BAxR_dt3.mjs +118 -0
- package/components/chunks/MazBtn-BF48_wJx.mjs +118 -0
- package/components/chunks/{MazBtn-CHABo63Y.mjs → MazBtn-BRdMg4tc.mjs} +21 -19
- package/components/chunks/MazBtn-BvirhKh3.mjs +123 -0
- package/components/chunks/{MazBtn-BXdap6JU.mjs → MazBtn-CEOWwReA.mjs} +21 -19
- package/components/chunks/MazBtn-CGYoHDXm.mjs +118 -0
- package/components/chunks/{MazBtn-DarjZUV4.mjs → MazBtn-CVDDOeLF.mjs} +40 -38
- package/components/chunks/MazBtn-D6T9wOxO.mjs +118 -0
- package/components/chunks/MazBtn-DYMxHlYa.mjs +118 -0
- package/components/chunks/MazBtn-D_IQO-P2.mjs +118 -0
- package/components/chunks/{MazCard-BaJ5Ee3I.mjs → MazCard-StYuQv11.mjs} +1 -1
- package/components/chunks/{MazCarousel-Bb4fpVqN.mjs → MazCarousel-DEO7Tz8F.mjs} +1 -1
- package/components/chunks/{MazCheckbox-8n6NtRBb.mjs → MazCheckbox-CtiUQoBe.mjs} +1 -1
- package/components/chunks/MazCheckbox-D9RW0OPf.mjs +146 -0
- package/components/chunks/{MazCheckbox-C4diNXJq.mjs → MazCheckbox-TiwCiE2s.mjs} +1 -1
- package/components/chunks/MazChecklist-B9bw1Mn4.mjs +484 -0
- package/components/chunks/{MazDialog-Bv2PzQBz.mjs → MazDialog-C3urFx7y.mjs} +50 -54
- package/components/chunks/{MazDialogPromise-BZLP9sXZ.mjs → MazDialogPromise-BuOWwo6n.mjs} +40 -44
- package/components/chunks/{MazGallery-C9secrXc.mjs → MazGallery-DLNvXEka.mjs} +2 -2
- package/components/chunks/{MazIcon-BaJm2s8_.mjs → MazIcon-DjMuw8Bz.mjs} +1 -1
- package/components/chunks/{MazIcon-CudB1a0D.mjs → MazIcon-DyrYf9Sl.mjs} +1 -1
- package/components/chunks/{MazInput-B3RzuuNv.mjs → MazInput-BZ2U145p.mjs} +1 -1
- package/components/chunks/MazInput-Bq_SbBRE.mjs +290 -0
- package/components/chunks/MazInput-_rEW9XWJ.mjs +291 -0
- package/components/chunks/{MazInputNumber-mLgq5obR.mjs → MazInputNumber-G8880Neu.mjs} +173 -171
- package/components/chunks/{MazInputPrice-DhYRBqTS.mjs → MazInputPrice-DROLM9PX.mjs} +1 -1
- package/components/chunks/{MazInputTags-DinwbXaD.mjs → MazInputTags-BRmcZBo4.mjs} +170 -168
- package/components/chunks/MazLoadingBar-DHFjKEEm.mjs +32 -0
- package/components/chunks/{MazPagination-Cqnr19iI.mjs → MazPagination-6MyYnTer.mjs} +132 -130
- package/components/chunks/{MazPhoneNumberInput-C3GdtqN2.mjs → MazPhoneNumberInput-r6OjPeRI.mjs} +3 -3
- package/components/chunks/{MazPicker-DA92HhwS.mjs → MazPicker-B28fQccE.mjs} +536 -534
- package/components/chunks/{MazPickerMonthSwitcher-CPWkw0Hq.mjs → MazPickerMonthSwitcher-DrtbXCca.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-Fwcoqg5M.mjs → MazPickerShortcuts-TbhHaKoJ.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DfSXPGfT.mjs → MazPickerYearSwitcher-KwUBj6Cb.mjs} +1 -1
- package/components/chunks/{MazSelect-DPTuyc26.mjs → MazSelect-BvC9QQ6M.mjs} +2 -2
- package/components/chunks/MazSelect-DyQC9j4n.mjs +568 -0
- package/components/chunks/{MazSpinner-BCQzF6j-.mjs → MazSpinner-3vO8e4FF.mjs} +1 -1
- package/components/chunks/{MazSpinner-BEqvmPiV.mjs → MazSpinner-B0291afs.mjs} +1 -1
- package/components/chunks/MazSpinner-B0aGd8rG.mjs +37 -0
- package/components/chunks/{MazSpinner-C2ok6AlJ.mjs → MazSpinner-BziSiJFV.mjs} +1 -1
- package/components/chunks/MazSpinner-CKX-8iim.mjs +37 -0
- package/components/chunks/MazSpinner-CQ2XrZIS.mjs +37 -0
- package/components/chunks/{MazSpinner-B-mc1FWS.mjs → MazSpinner-CRW667yE.mjs} +1 -1
- package/components/chunks/{MazSpinner-CVBz5HIx.mjs → MazSpinner-D-7IOf2L.mjs} +1 -1
- package/components/chunks/MazSpinner-D0t4IJyq.mjs +37 -0
- package/components/chunks/{MazSpinner-CFJmcsGl.mjs → MazSpinner-D5hiFgo4.mjs} +1 -1
- package/components/chunks/{MazSpinner-DEdQlQr1.mjs → MazSpinner-DkXUB0w5.mjs} +1 -1
- package/components/chunks/{MazSpinner-BpjK60ul.mjs → MazSpinner-DyVjCwmM.mjs} +1 -1
- package/components/chunks/MazSpinner-HZYglQFY.mjs +37 -0
- package/components/chunks/{MazSpinner-BCHAzmqS.mjs → MazSpinner-JpzVmSvW.mjs} +1 -1
- package/components/chunks/MazSpinner-Nu5h2A6E.mjs +37 -0
- package/components/chunks/MazSpinner-S6Bx7B15.mjs +37 -0
- package/components/chunks/MazSpinner-wR0F3mAY.mjs +37 -0
- package/components/chunks/MazTable-DozpABdn.mjs +692 -0
- package/components/chunks/MazTableCell-DPgvJ7vY.mjs +23 -0
- package/components/chunks/MazTableRow-CCcjwAV1.mjs +30 -0
- package/components/chunks/MazTableTitle-Df7F9Cjh.mjs +23 -0
- package/components/chunks/{MazTransitionExpand-BoTQeNNf.mjs → MazTransitionExpand--vHzXjx7.mjs} +1 -1
- package/components/chunks/arrow-up-DjSlktWl.mjs +30 -0
- package/components/chunks/inject-strict-BmiaNiwC.mjs +10 -0
- package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +11 -0
- package/components/index.d.ts +1 -0
- package/components/index.mjs +1 -0
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/index.css +1 -1
- package/{components/chunks/MazBtn-CXxOU7fp.mjs → modules/chunks/MazBtn-BVxI1WwF.mjs} +21 -19
- package/modules/chunks/{MazBtn-BG2dUdHV.cjs → MazBtn-DrB5FzZN.cjs} +3 -3
- package/modules/chunks/{MazIcon-RkWxQ8JM.cjs → MazIcon-BMJqOZnG.cjs} +1 -1
- package/modules/chunks/{MazIcon-BqfELHOt.mjs → MazIcon-b8WRy8OV.mjs} +1 -1
- package/modules/chunks/{MazSpinner-GfL807jq.cjs → MazSpinner-6H0uaGkV.cjs} +1 -1
- package/modules/chunks/{MazSpinner-DgSRxVEo.mjs → MazSpinner-B-Tki1aV.mjs} +1 -1
- package/modules/chunks/{index-aKGx1nxl.mjs → index-Ch4k74ro.mjs} +1150 -954
- package/modules/chunks/index-G8fhXnFU.cjs +149 -0
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +37 -35
- package/nuxt/index.d.mts +20 -20
- package/nuxt/index.d.ts +20 -20
- package/nuxt/index.json +1 -1
- package/nuxt/index.mjs +26 -5
- package/package.json +1 -1
- package/resolvers/index.cjs +1 -1
- package/resolvers/index.mjs +3 -1
- package/types/components/MazBtn.vue.d.ts +5 -0
- package/types/components/MazChecklist.vue.d.ts +79 -0
- package/types/components/MazDialogPromise.vue.d.ts +2 -0
- package/types/components/MazPicker.vue.d.ts +1 -1
- package/types/components/MazPullToRefresh.vue.d.ts +2 -2
- package/types/components/MazTable.vue.d.ts +2 -2
- package/types/components/index.d.ts +1 -0
- package/types/modules/composables/index.d.ts +1 -0
- package/types/modules/composables/useLanguageDisplayNames.d.ts +17 -0
- package/types/modules/helpers/normalize-string.d.ts +1 -2
- package/components/chunks/MazBtn-CVB5qDjV.mjs +0 -121
- package/components/chunks/MazBtn-CZSXnr3w.mjs +0 -116
- package/components/chunks/MazBtn-CwYBz6QO.mjs +0 -116
- package/components/chunks/MazBtn-DIE2eM-g.mjs +0 -116
- package/components/chunks/MazBtn-DKD-ZMaF.mjs +0 -116
- package/components/chunks/MazBtn-OKT5-Y4s.mjs +0 -116
- package/components/chunks/MazBtn-e3abHT2L.mjs +0 -116
- package/components/chunks/MazSpinner-BoG1T_ZX.mjs +0 -37
- package/components/chunks/MazSpinner-DhHVVBJE.mjs +0 -37
- package/components/chunks/MazSpinner-DuGaC-cw.mjs +0 -37
- package/components/chunks/MazSpinner-Iwon82He.mjs +0 -37
- package/components/chunks/MazSpinner-JbfjMNFL.mjs +0 -37
- package/components/chunks/MazSpinner-QgcgF5j5.mjs +0 -37
- package/components/chunks/MazSpinner-yQGVxaFm.mjs +0 -37
- package/components/chunks/MazTable-CrtVI-dp.mjs +0 -2015
- package/modules/chunks/MazBtn-BeqYSSYI.mjs +0 -116
- package/modules/chunks/index-CE2CsQsx.cjs +0 -149
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as
|
|
1
|
+
import { openBlock as f, createElementBlock as b, createElementVNode as c, useId as A, computed as g, defineComponent as k, useCssVars as V, ref as p, onMounted as O, onUnmounted as B, normalizeClass as $, normalizeStyle as w, renderSlot as h, withDirectives as E, vShow as z, mergeModels as x, useModel as I, mergeProps as L, createCommentVNode as N, useSlots as j, Fragment as D, renderList as F, createBlock as R, withCtx as M, unref as y, createVNode as S } from "vue";
|
|
2
2
|
import './assets/MazAccordion.css';const P = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,8 +7,8 @@ import './assets/MazAccordion.css';const P = {
|
|
|
7
7
|
viewBox: "0 0 24 24"
|
|
8
8
|
};
|
|
9
9
|
function T(r, t) {
|
|
10
|
-
return
|
|
11
|
-
|
|
10
|
+
return f(), b("svg", P, t[0] || (t[0] = [
|
|
11
|
+
c(
|
|
12
12
|
"path",
|
|
13
13
|
{
|
|
14
14
|
stroke: "currentColor",
|
|
@@ -43,11 +43,11 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
43
43
|
},
|
|
44
44
|
setup(r) {
|
|
45
45
|
V((d) => ({
|
|
46
|
-
"
|
|
47
|
-
"
|
|
46
|
+
"4f499add": d.innerOpacity,
|
|
47
|
+
"2e65a0ad": n.value
|
|
48
48
|
}));
|
|
49
|
-
const t = r, a =
|
|
50
|
-
function m({ clientX: d, clientY:
|
|
49
|
+
const t = r, a = p(), l = p(), i = p(!1);
|
|
50
|
+
function m({ clientX: d, clientY: u }) {
|
|
51
51
|
var e, _, o;
|
|
52
52
|
i.value = !0;
|
|
53
53
|
const v = (e = l.value) == null ? void 0 : e.getBoundingClientRect();
|
|
@@ -55,7 +55,7 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
55
55
|
_,
|
|
56
56
|
[
|
|
57
57
|
{
|
|
58
|
-
transform: `translate(${d - v.left - v.width / 2}px,${
|
|
58
|
+
transform: `translate(${d - v.left - v.width / 2}px,${u - v.top - v.height / 2}px)`
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
61
|
{
|
|
@@ -69,15 +69,15 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
69
69
|
window.addEventListener("mousemove", m);
|
|
70
70
|
}), B(() => {
|
|
71
71
|
window.removeEventListener("mousemove", m);
|
|
72
|
-
}), (d,
|
|
72
|
+
}), (d, u) => (f(), b(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
75
|
class: $(["m-card-spotlight", { "maz-elevation": !d.noElevation }]),
|
|
76
76
|
style: w({ backgroundColor: s.value })
|
|
77
77
|
},
|
|
78
78
|
[
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
c("div", H, [
|
|
80
|
+
c(
|
|
81
81
|
"div",
|
|
82
82
|
{
|
|
83
83
|
class: $(["content", [{ "maz-p-4": d.padding }, d.contentClass]])
|
|
@@ -89,7 +89,7 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
89
89
|
/* CLASS */
|
|
90
90
|
)
|
|
91
91
|
]),
|
|
92
|
-
E(
|
|
92
|
+
E(c(
|
|
93
93
|
"div",
|
|
94
94
|
{
|
|
95
95
|
ref_key: "blobElement",
|
|
@@ -103,7 +103,7 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
103
103
|
), [
|
|
104
104
|
[z, i.value]
|
|
105
105
|
]),
|
|
106
|
-
E(
|
|
106
|
+
E(c(
|
|
107
107
|
"div",
|
|
108
108
|
{
|
|
109
109
|
ref_key: "fakeblobElement",
|
|
@@ -126,7 +126,7 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
126
126
|
for (const [l, i] of t)
|
|
127
127
|
a[l] = i;
|
|
128
128
|
return a;
|
|
129
|
-
}, G = /* @__PURE__ */ C(W, [["__scopeId", "data-v-
|
|
129
|
+
}, G = /* @__PURE__ */ C(W, [["__scopeId", "data-v-31abf9ff"]]), J = ["aria-hidden"], K = /* @__PURE__ */ k({
|
|
130
130
|
inheritAttrs: !1,
|
|
131
131
|
__name: "MazExpandAnimation",
|
|
132
132
|
props: /* @__PURE__ */ x({
|
|
@@ -142,7 +142,7 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
142
142
|
"3628b947": n.duration,
|
|
143
143
|
"239277b5": n.timingFunction
|
|
144
144
|
}));
|
|
145
|
-
const t = I(r, "modelValue"), a =
|
|
145
|
+
const t = I(r, "modelValue"), a = p(!t.value), l = p();
|
|
146
146
|
function i() {
|
|
147
147
|
t.value || (a.value = !0);
|
|
148
148
|
}
|
|
@@ -155,14 +155,14 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
155
155
|
}), B(() => {
|
|
156
156
|
var n, s;
|
|
157
157
|
(n = l.value) == null || n.removeEventListener("transitionstart", i, !1), (s = l.value) == null || s.removeEventListener("transitionend", m, !1);
|
|
158
|
-
}), (n, s) => (
|
|
158
|
+
}), (n, s) => (f(), b("div", {
|
|
159
159
|
ref_key: "expandAnimationRef",
|
|
160
160
|
ref: l,
|
|
161
161
|
class: $(["m-expand-animation", { "m-expand-animation--expanded": t.value }]),
|
|
162
162
|
"aria-hidden": !t.value,
|
|
163
163
|
role: "region"
|
|
164
164
|
}, [
|
|
165
|
-
|
|
165
|
+
c(
|
|
166
166
|
"div",
|
|
167
167
|
L({ class: "m-expand-animation__inner" }, n.$attrs, {
|
|
168
168
|
class: {
|
|
@@ -195,23 +195,23 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
195
195
|
providedId: a.id
|
|
196
196
|
}), m = j(), n = g(
|
|
197
197
|
() => Object.keys(m).filter((e) => e.startsWith("title-")).length
|
|
198
|
-
), s =
|
|
198
|
+
), s = p(a.modelValue), d = g({
|
|
199
199
|
get: () => a.modelValue || s.value,
|
|
200
200
|
set: (e) => {
|
|
201
201
|
s.value = e, l("update:model-value", e);
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
|
-
function
|
|
204
|
+
function u(e) {
|
|
205
205
|
return d.value === e;
|
|
206
206
|
}
|
|
207
207
|
function v(e) {
|
|
208
208
|
d.value === e ? (s.value = 0, l("update:model-value", 0)) : (s.value = e, l("update:model-value", e));
|
|
209
209
|
}
|
|
210
|
-
return (e, _) => (
|
|
211
|
-
(
|
|
210
|
+
return (e, _) => (f(), b("div", X, [
|
|
211
|
+
(f(!0), b(
|
|
212
212
|
D,
|
|
213
213
|
null,
|
|
214
|
-
F(n.value, (o) => (
|
|
214
|
+
F(n.value, (o) => (f(), R(
|
|
215
215
|
G,
|
|
216
216
|
{
|
|
217
217
|
key: o,
|
|
@@ -220,37 +220,37 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
default: M(() => [
|
|
223
|
-
|
|
223
|
+
c("button", {
|
|
224
224
|
id: `step-${o}-${y(i)}`,
|
|
225
225
|
class: "m-accordion__header",
|
|
226
226
|
"aria-controls": `step-${o}-${y(i)}`,
|
|
227
|
-
"aria-expanded":
|
|
227
|
+
"aria-expanded": u(o),
|
|
228
228
|
onClick: (ee) => v(o)
|
|
229
229
|
}, [
|
|
230
230
|
h(e.$slots, `title-${o}`, {
|
|
231
|
-
isOpen:
|
|
231
|
+
isOpen: u(o)
|
|
232
232
|
}, void 0, !0),
|
|
233
233
|
S(y(U), {
|
|
234
|
-
class: $(["header-icon", { "--rotate":
|
|
234
|
+
class: $(["header-icon", { "--rotate": u(o) }])
|
|
235
235
|
}, null, 8, ["class"])
|
|
236
236
|
], 8, Y),
|
|
237
237
|
S(Q, {
|
|
238
238
|
"animation-duration": "300ms",
|
|
239
|
-
"model-value":
|
|
239
|
+
"model-value": u(o),
|
|
240
240
|
"aria-labelledby": `step-${o}-${y(i)}`
|
|
241
241
|
}, {
|
|
242
242
|
default: M(() => [
|
|
243
|
-
|
|
243
|
+
c(
|
|
244
244
|
"div",
|
|
245
245
|
{
|
|
246
246
|
class: $(["m-accordion__content", e.contentClass])
|
|
247
247
|
},
|
|
248
248
|
[
|
|
249
249
|
h(e.$slots, "content", {
|
|
250
|
-
isOpen:
|
|
250
|
+
isOpen: u(o)
|
|
251
251
|
}, void 0, !0),
|
|
252
252
|
h(e.$slots, `content-${o}`, {
|
|
253
|
-
isOpen:
|
|
253
|
+
isOpen: u(o)
|
|
254
254
|
}, void 0, !0)
|
|
255
255
|
],
|
|
256
256
|
2
|
package/components/MazBtn.d.ts
CHANGED
|
@@ -98,6 +98,10 @@ export interface Props {
|
|
|
98
98
|
* @default false
|
|
99
99
|
*/
|
|
100
100
|
noElevation?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Choose how the elements are aligned in the button
|
|
103
|
+
*/
|
|
104
|
+
justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
|
|
101
105
|
}
|
|
102
106
|
declare function __VLS_template(): {
|
|
103
107
|
slots: {
|
|
@@ -119,6 +123,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
119
123
|
icon: string | Icon;
|
|
120
124
|
leftIcon: string | Icon;
|
|
121
125
|
rightIcon: string | Icon;
|
|
126
|
+
justify: "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
122
127
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
123
128
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
124
129
|
export default _default;
|
package/components/MazBtn.mjs
CHANGED
package/components/MazCard.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, useCssVars as k, ref as
|
|
1
|
+
import { defineComponent as _, useCssVars as k, ref as c, computed as m, onMounted as E, onUnmounted as w, openBlock as z, createElementBlock as B, normalizeClass as b, normalizeStyle as h, createElementVNode as i, renderSlot as S, withDirectives as y, vShow as g } from "vue";
|
|
2
2
|
import './assets/MazCardSpotlight.css';const $ = { class: "inner" }, O = /* @__PURE__ */ _({
|
|
3
3
|
__name: "MazCardSpotlight",
|
|
4
4
|
props: {
|
|
@@ -11,19 +11,19 @@ import './assets/MazCardSpotlight.css';const $ = { class: "inner" }, O = /* @__P
|
|
|
11
11
|
},
|
|
12
12
|
setup(l) {
|
|
13
13
|
k((e) => ({
|
|
14
|
-
"
|
|
15
|
-
"
|
|
14
|
+
"4f499add": e.innerOpacity,
|
|
15
|
+
"2e65a0ad": u.value
|
|
16
16
|
}));
|
|
17
|
-
const n = l, o =
|
|
18
|
-
function d({ clientX: e, clientY:
|
|
19
|
-
var
|
|
17
|
+
const n = l, o = c(), r = c(), t = c(!1);
|
|
18
|
+
function d({ clientX: e, clientY: f }) {
|
|
19
|
+
var p, s, v;
|
|
20
20
|
t.value = !0;
|
|
21
|
-
const a = (
|
|
22
|
-
a && ((
|
|
21
|
+
const a = (p = r.value) == null ? void 0 : p.getBoundingClientRect();
|
|
22
|
+
a && ((v = (s = o.value) == null ? void 0 : s.animate) == null || v.call(
|
|
23
23
|
s,
|
|
24
24
|
[
|
|
25
25
|
{
|
|
26
|
-
transform: `translate(${e - a.left - a.width / 2}px,${
|
|
26
|
+
transform: `translate(${e - a.left - a.width / 2}px,${f - a.top - a.height / 2}px)`
|
|
27
27
|
}
|
|
28
28
|
],
|
|
29
29
|
{
|
|
@@ -37,15 +37,15 @@ import './assets/MazCardSpotlight.css';const $ = { class: "inner" }, O = /* @__P
|
|
|
37
37
|
window.addEventListener("mousemove", d);
|
|
38
38
|
}), w(() => {
|
|
39
39
|
window.removeEventListener("mousemove", d);
|
|
40
|
-
}), (e,
|
|
40
|
+
}), (e, f) => (z(), B(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
43
43
|
class: b(["m-card-spotlight", { "maz-elevation": !e.noElevation }]),
|
|
44
44
|
style: h({ backgroundColor: C.value })
|
|
45
45
|
},
|
|
46
46
|
[
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
i("div", $, [
|
|
48
|
+
i(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
class: b(["content", [{ "maz-p-4": e.padding }, e.contentClass]])
|
|
@@ -57,7 +57,7 @@ import './assets/MazCardSpotlight.css';const $ = { class: "inner" }, O = /* @__P
|
|
|
57
57
|
/* CLASS */
|
|
58
58
|
)
|
|
59
59
|
]),
|
|
60
|
-
y(
|
|
60
|
+
y(i(
|
|
61
61
|
"div",
|
|
62
62
|
{
|
|
63
63
|
ref_key: "blobElement",
|
|
@@ -71,7 +71,7 @@ import './assets/MazCardSpotlight.css';const $ = { class: "inner" }, O = /* @__P
|
|
|
71
71
|
), [
|
|
72
72
|
[g, t.value]
|
|
73
73
|
]),
|
|
74
|
-
y(
|
|
74
|
+
y(i(
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
77
|
ref_key: "fakeblobElement",
|
|
@@ -94,7 +94,7 @@ import './assets/MazCardSpotlight.css';const $ = { class: "inner" }, O = /* @__P
|
|
|
94
94
|
for (const [r, t] of n)
|
|
95
95
|
o[r] = t;
|
|
96
96
|
return o;
|
|
97
|
-
}, L = /* @__PURE__ */ M(O, [["__scopeId", "data-v-
|
|
97
|
+
}, L = /* @__PURE__ */ M(O, [["__scopeId", "data-v-31abf9ff"]]);
|
|
98
98
|
export {
|
|
99
99
|
L as default
|
|
100
100
|
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { Color, Props as MazInputProps } from './MazInput.vue';
|
|
2
|
+
import { type NormalizeStringOptions } from '../modules/helpers/normalize-string';
|
|
3
|
+
export type ItemOption = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
} & Record<string, any>;
|
|
7
|
+
export interface MazCheckListProps<T, O> {
|
|
8
|
+
/**
|
|
9
|
+
* The model value of the checklist (selected items)
|
|
10
|
+
*/
|
|
11
|
+
modelValue?: T[];
|
|
12
|
+
/**
|
|
13
|
+
* The query to filter the items (model)
|
|
14
|
+
*/
|
|
15
|
+
query?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The list of items to display
|
|
18
|
+
*/
|
|
19
|
+
items?: O[];
|
|
20
|
+
/**
|
|
21
|
+
* The title of the checklist
|
|
22
|
+
*/
|
|
23
|
+
title?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Add elevation to the card
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
elevation?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The search input options
|
|
31
|
+
* @default { enabled: false }
|
|
32
|
+
*/
|
|
33
|
+
search?: {
|
|
34
|
+
enabled?: boolean;
|
|
35
|
+
} & MazInputProps<string>;
|
|
36
|
+
/**
|
|
37
|
+
* The options to normalize the search query
|
|
38
|
+
*/
|
|
39
|
+
searchOptions?: NormalizeStringOptions;
|
|
40
|
+
/**
|
|
41
|
+
* The color of the checklist (card, checkbox and search input)
|
|
42
|
+
* @default primary
|
|
43
|
+
*/
|
|
44
|
+
color?: Color;
|
|
45
|
+
}
|
|
46
|
+
export type { NormalizeStringOptions } from '../modules/helpers/normalize-string';
|
|
47
|
+
export type { Color } from './MazInput.vue';
|
|
48
|
+
declare const _default: <T extends string, O extends ItemOption>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
49
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
50
|
+
readonly "onUpdate:model-value"?: ((value?: T[] | undefined) => any) | undefined;
|
|
51
|
+
readonly "onUpdate:query"?: ((value?: string | undefined) => any) | undefined;
|
|
52
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<{}> & Readonly<{
|
|
53
|
+
"onUpdate:model-value"?: ((value?: T[] | undefined) => any) | undefined;
|
|
54
|
+
"onUpdate:query"?: ((value?: string | undefined) => any) | undefined;
|
|
55
|
+
}>, never>, "onUpdate:model-value" | "onUpdate:query"> & MazCheckListProps<T, O>> & import("vue").PublicProps;
|
|
56
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
57
|
+
attrs: any;
|
|
58
|
+
slots: {
|
|
59
|
+
title?(_: {}): any;
|
|
60
|
+
"no-results"?(_: {}): any;
|
|
61
|
+
"no-results-text"?(_: {}): any;
|
|
62
|
+
item?(_: {
|
|
63
|
+
selectedValues: T[];
|
|
64
|
+
item: {
|
|
65
|
+
label: string;
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
68
|
+
}): any;
|
|
69
|
+
};
|
|
70
|
+
emit: ((evt: "update:model-value", value?: T[] | undefined) => void) & ((evt: "update:query", value?: string | undefined) => void);
|
|
71
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
72
|
+
[key: string]: any;
|
|
73
|
+
}> & {
|
|
74
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
75
|
+
};
|
|
76
|
+
export default _default;
|
|
77
|
+
type __VLS_PrettifyLocal<T> = {
|
|
78
|
+
[K in keyof T]: T[K];
|
|
79
|
+
} & {};
|
package/components/MazDialog.mjs
CHANGED
|
@@ -23,6 +23,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
|
|
|
23
23
|
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
25
|
data: DialogData;
|
|
26
|
+
message: string;
|
|
27
|
+
identifier: string;
|
|
26
28
|
buttons: DialogCustomButton[];
|
|
27
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
28
30
|
title?(_: {}): any;
|
package/components/MazDrawer.mjs
CHANGED
|
@@ -128,7 +128,7 @@ import './assets/MazDrawer.css';const A = "--backdrop-present", U = /* @__PURE__
|
|
|
128
128
|
},
|
|
129
129
|
emits: ["before-close", "open", "close", "update:model-value"],
|
|
130
130
|
setup(b) {
|
|
131
|
-
const i = B(() => import("./chunks/MazBtn-
|
|
131
|
+
const i = B(() => import("./chunks/MazBtn-CVDDOeLF.mjs").then((e) => e.M)), c = B(() => import("./chunks/x-mark-CnZwVvA7.mjs"));
|
|
132
132
|
return (e, t) => (r(), h(U, {
|
|
133
133
|
"backdrop-class": ["m-drawer", `--${e.variant}`, e.backdropClass],
|
|
134
134
|
style: F({
|
|
@@ -97,7 +97,7 @@ const pe = ["id"], ve = ["aria-expanded"], ye = ["id"], be = ["onClick"], he = /
|
|
|
97
97
|
const o = t, c = l, f = ue({
|
|
98
98
|
componentName: "MazDropdown",
|
|
99
99
|
providedId: o.id
|
|
100
|
-
}), g = $(() => import("./chunks/MazBtn-
|
|
100
|
+
}), g = $(() => import("./chunks/MazBtn-4g56EBmg.mjs")), k = $(() => import("./chunks/MazLink-Dl9ePCGm.mjs")), R = $(() => import("./chunks/chevron-down-BkvtON3b.mjs")), i = b(o.open), s = b(), m = fe((e) => {
|
|
101
101
|
u(e);
|
|
102
102
|
}, 200);
|
|
103
103
|
function q() {
|
package/components/MazInput.mjs
CHANGED
|
@@ -93,9 +93,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
93
93
|
format: string;
|
|
94
94
|
modelValue: string | Partial<import("./MazPicker/types").RangeValue>;
|
|
95
95
|
open: boolean;
|
|
96
|
+
locale: string;
|
|
96
97
|
double: boolean;
|
|
97
98
|
inline: boolean;
|
|
98
|
-
locale: string;
|
|
99
99
|
placeholder: string;
|
|
100
100
|
noUseBrowserLocale: boolean;
|
|
101
101
|
minDate: string;
|
package/components/MazPicker.mjs
CHANGED
|
@@ -24,14 +24,14 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
24
24
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
25
|
error: (...args: any[]) => void;
|
|
26
26
|
loaded: (...args: any[]) => void;
|
|
27
|
-
response: (...args: any[]) => void;
|
|
28
27
|
start: (...args: any[]) => void;
|
|
28
|
+
response: (...args: any[]) => void;
|
|
29
29
|
finish: (...args: any[]) => void;
|
|
30
30
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
31
31
|
onError?: ((...args: any[]) => any) | undefined;
|
|
32
32
|
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
33
|
-
onResponse?: ((...args: any[]) => any) | undefined;
|
|
34
33
|
onStart?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
onResponse?: ((...args: any[]) => any) | undefined;
|
|
35
35
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
disabled: boolean;
|
package/components/MazSelect.mjs
CHANGED
package/components/MazTable.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export interface MazTableProps {
|
|
|
53
53
|
* Size of the search inputs
|
|
54
54
|
* @values `'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'mini'`
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
inputSize?: Size;
|
|
57
57
|
/** title of the table */
|
|
58
58
|
title?: string;
|
|
59
59
|
/** headers of the table */
|
|
@@ -199,9 +199,9 @@ declare const __VLS_component: import("vue").DefineComponent<MazTableProps, {},
|
|
|
199
199
|
searchQuery: string;
|
|
200
200
|
captionSide: "top" | "bottom";
|
|
201
201
|
tableLayout: "auto" | "fixed";
|
|
202
|
-
headers: Header[];
|
|
203
202
|
tableClass: HTMLAttributes["class"];
|
|
204
203
|
tableStyle: string | false | import("vue").CSSProperties | StyleValue[] | null;
|
|
204
|
+
headers: Header[];
|
|
205
205
|
headersAlign: "center" | "left" | "right" | "justify" | "char";
|
|
206
206
|
rows: Row[];
|
|
207
207
|
searchByPlaceholder: string;
|
package/components/MazTable.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.m-card-spotlight[data-v-
|
|
1
|
+
.m-card-spotlight[data-v-31abf9ff]{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-31abf9ff]{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-31abf9ff]:before{content:"";position:absolute;left:0;top:0;z-index:1;height:100%;width:100%;background-color:var(--maz-color-bg);opacity:var(--4f499add)}.m-card-spotlight .content[data-v-31abf9ff]{position:relative;z-index:2;height:100%;width:100%}.m-card-spotlight .blob[data-v-31abf9ff]{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);background-color:var(--2e65a0ad)}.m-card-spotlight .fakeblob[data-v-31abf9ff]{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-b7ca6b97]{display:grid;grid-template-rows:0fr;-webkit-transition:grid-template-rows var(--3628b947) var(--239277b5);transition:grid-template-rows var(--3628b947) var(--239277b5);transition:grid-template-rows var(--3628b947) var(--239277b5),-ms-grid-rows var(--3628b947) var(--239277b5)}.m-expand-animation__inner.--overflow-hidden[data-v-b7ca6b97]{overflow:hidden}.m-expand-animation--expanded[data-v-b7ca6b97]{grid-template-rows:1fr}.m-accordion[data-v-052b6500]{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-052b6500]{width:100%}.m-accordion__header[data-v-052b6500]{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-052b6500]{-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-052b6500]{-webkit-transform:rotate(135deg);transform:rotate(135deg)}.m-accordion__content[data-v-052b6500]{padding:1rem}
|