maz-ui 3.37.0 → 3.37.2
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/MazCheckbox.d.ts +4 -0
- package/components/MazCheckbox.mjs +31 -24
- package/components/MazInput.d.ts +2 -0
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.d.ts +2 -0
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.d.ts +8 -0
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.d.ts +2 -0
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPhoneNumberInput.d.ts +2 -0
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.d.ts +2 -0
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadio.d.ts +9 -0
- package/components/MazRadio.mjs +44 -37
- package/components/MazSelect.d.ts +2 -0
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/MazTextarea.mjs +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazInput.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/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazRadio.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/chunks/{MazBtn-C3z_znl5.mjs → MazBtn-Bo51KtKY.mjs} +2 -2
- package/components/chunks/{MazBtn-CuYCQCM2.mjs → MazBtn-CDQAW3fg.mjs} +2 -2
- package/components/chunks/MazBtn-D-Axz-X0.mjs +151 -0
- package/components/chunks/{MazBtn-D7b2VFGB.mjs → MazBtn-Koayc6g_.mjs} +2 -2
- package/components/chunks/{MazBtn-CS2F1-mC.mjs → MazBtn-pLRsSxug.mjs} +2 -2
- package/components/chunks/{MazCheckbox-BTM3Xpxz.mjs → MazCheckbox-CXVe5vda.mjs} +30 -23
- package/components/chunks/{MazCheckbox-COTppi08.mjs → MazCheckbox-DBlQwP82.mjs} +30 -23
- package/components/chunks/{MazIcon-Bspx_Ojq.mjs → MazIcon-BTsi1M-S.mjs} +1 -1
- package/components/chunks/{MazInput-C1r0b8BB.mjs → MazInput-Caas-0Nk.mjs} +19 -17
- package/components/chunks/{MazInputNumber-DJWxTvJ0.mjs → MazInputNumber-CnoCQQzg.mjs} +85 -81
- package/components/chunks/{MazInputPrice-CmX_rC0L.mjs → MazInputPrice---5nCUKm.mjs} +57 -53
- package/components/chunks/{MazInputTags-pm_5HtHM.mjs → MazInputTags-CipoVBP2.mjs} +83 -79
- package/components/chunks/{MazPhoneNumberInput-CVz5eTvG.mjs → MazPhoneNumberInput-CsX6Kqob.mjs} +402 -395
- package/components/chunks/{MazPicker-DP1zd8tt.mjs → MazPicker-CfhI75aw.mjs} +67 -62
- package/components/chunks/{MazPickerCalendar-qjcDNw86.mjs → MazPickerCalendar-DnkNE-Am.mjs} +3 -3
- package/components/chunks/{MazPickerHeader-CozeYkFf.mjs → MazPickerHeader-Vt86yzXS.mjs} +1 -1
- package/components/chunks/{MazPickerMonthSwitcher-aaUELZpE.mjs → MazPickerMonthSwitcher-zfKhsjW1.mjs} +2 -2
- package/components/chunks/{MazPickerShortcuts-ppox8lXf.mjs → MazPickerShortcuts-DUIKfOO8.mjs} +2 -2
- package/components/chunks/{MazPickerTime-DmpypIWr.mjs → MazPickerTime-B2znRxr2.mjs} +2 -2
- package/components/chunks/{MazPickerYearSwitcher-BNBvipzs.mjs → MazPickerYearSwitcher-CB339kof.mjs} +3 -3
- package/components/chunks/{MazSelect-DGEof7R3.mjs → MazSelect-DZeXglR8.mjs} +117 -109
- package/components/chunks/{MazSpinner-CTdeHHNH.mjs → MazSpinner-BAhgxOgg.mjs} +1 -1
- package/components/chunks/{MazSpinner-DmFFdtxB.mjs → MazSpinner-CJaSrYbQ.mjs} +1 -1
- package/components/chunks/{MazSpinner-KKcK5-QF.mjs → MazSpinner-CORsBFCP.mjs} +1 -1
- package/components/chunks/{MazSpinner-DTZHIIMh.mjs → MazSpinner-CVBVegaS.mjs} +1 -1
- package/components/chunks/MazSpinner-CkdjTE0y.mjs +38 -0
- package/components/chunks/{MazSpinner-DZTqt2Yn.mjs → MazSpinner-DECa8Pby.mjs} +1 -1
- package/components/chunks/{MazSpinner-DUVEeU4h.mjs → MazSpinner-Dq4o-_GM.mjs} +1 -1
- package/components/chunks/{MazSpinner-CiPbsWOG.mjs → MazSpinner-DqXjnLKa.mjs} +1 -1
- package/components/chunks/{MazTable-BhDfeDU1.mjs → MazTable-DrFqDO-J.mjs} +214 -199
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazCheckbox.vue.d.ts +4 -0
- package/types/components/MazInput.vue.d.ts +2 -0
- package/types/components/MazInputNumber.vue.d.ts +2 -0
- package/types/components/MazInputPrice.vue.d.ts +8 -0
- package/types/components/MazInputTags.vue.d.ts +2 -0
- package/types/components/MazPhoneNumberInput.vue.d.ts +2 -0
- package/types/components/MazPicker.vue.d.ts +2 -0
- package/types/components/MazRadio.vue.d.ts +9 -0
- package/types/components/MazSelect.vue.d.ts +2 -0
- package/components/chunks/MazBtn-OUDBhJKd.mjs +0 -151
- package/components/chunks/MazSpinner-yPD_Biya.mjs +0 -38
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import '../assets/MazTable.css';
|
|
2
|
-
import { openBlock as r, createElementBlock as g, createElementVNode as
|
|
2
|
+
import { openBlock as r, createElementBlock as g, createElementVNode as B, getCurrentInstance as tt, computed as c, defineComponent as oe, defineAsyncComponent as Z, ref as T, onMounted as ot, useSlots as Te, normalizeClass as S, normalizeStyle as se, createCommentVNode as u, renderSlot as V, createBlock as I, unref as b, resolveDynamicComponent as ce, withDirectives as He, mergeProps as Pe, toHandlers as lt, vModelDynamic as at, createTextVNode as ne, toDisplayString as Y, withModifiers as de, withCtx as L, createVNode as _, nextTick as ke, useCssVars as Ve, onBeforeMount as Oe, Transition as nt, Fragment as be, renderList as we, useAttrs as st, inject as rt, pushScopeId as Re, popScopeId as qe, toRefs as it, provide as ut, watch as ge } from "vue";
|
|
3
3
|
const dt = {
|
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5
5
|
width: "1em",
|
|
6
6
|
height: "1em",
|
|
7
7
|
fill: "none",
|
|
8
8
|
viewBox: "0 0 24 24"
|
|
9
|
-
}, ct = /* @__PURE__ */
|
|
9
|
+
}, ct = /* @__PURE__ */ B(
|
|
10
10
|
"path",
|
|
11
11
|
{
|
|
12
12
|
stroke: "currentColor",
|
|
@@ -34,7 +34,7 @@ const We = { render: Qe }, ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
34
34
|
height: "1em",
|
|
35
35
|
fill: "none",
|
|
36
36
|
viewBox: "0 0 24 24"
|
|
37
|
-
}, vt = /* @__PURE__ */
|
|
37
|
+
}, vt = /* @__PURE__ */ B(
|
|
38
38
|
"path",
|
|
39
39
|
{
|
|
40
40
|
stroke: "currentColor",
|
|
@@ -58,7 +58,7 @@ const yt = { render: ht }, gt = {
|
|
|
58
58
|
height: "1em",
|
|
59
59
|
fill: "none",
|
|
60
60
|
viewBox: "0 0 24 24"
|
|
61
|
-
}, zt = /* @__PURE__ */
|
|
61
|
+
}, zt = /* @__PURE__ */ B(
|
|
62
62
|
"path",
|
|
63
63
|
{
|
|
64
64
|
stroke: "currentColor",
|
|
@@ -82,7 +82,7 @@ const De = { render: wt }, $t = {
|
|
|
82
82
|
height: "1em",
|
|
83
83
|
fill: "none",
|
|
84
84
|
viewBox: "0 0 24 24"
|
|
85
|
-
}, Vt = /* @__PURE__ */
|
|
85
|
+
}, Vt = /* @__PURE__ */ B(
|
|
86
86
|
"path",
|
|
87
87
|
{
|
|
88
88
|
stroke: "currentColor",
|
|
@@ -101,7 +101,7 @@ function St(s, d) {
|
|
|
101
101
|
return r(), g("svg", $t, [...It]);
|
|
102
102
|
}
|
|
103
103
|
const je = { render: St };
|
|
104
|
-
function
|
|
104
|
+
function Bt(s, d) {
|
|
105
105
|
let t;
|
|
106
106
|
return function(...z) {
|
|
107
107
|
clearTimeout(t), t = setTimeout(() => {
|
|
@@ -115,7 +115,7 @@ const Ne = ({
|
|
|
115
115
|
}) => {
|
|
116
116
|
const t = tt();
|
|
117
117
|
return c(() => d ?? `${s}-${t == null ? void 0 : t.uid}`);
|
|
118
|
-
},
|
|
118
|
+
}, Ct = {
|
|
119
119
|
key: 0,
|
|
120
120
|
class: "m-input-wrapper-left"
|
|
121
121
|
}, _t = { class: "m-input-wrapper-input" }, Mt = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], At = { key: 0 }, Kt = {
|
|
@@ -154,11 +154,12 @@ const Ne = ({
|
|
|
154
154
|
borderActive: { type: Boolean, default: !1 },
|
|
155
155
|
leftIcon: { default: void 0 },
|
|
156
156
|
rightIcon: { default: void 0 },
|
|
157
|
-
roundedSize: { default: void 0 }
|
|
157
|
+
roundedSize: { default: void 0 },
|
|
158
|
+
block: { type: Boolean }
|
|
158
159
|
},
|
|
159
160
|
emits: ["update:model-value", "focus", "blur", "click", "change"],
|
|
160
161
|
setup(s, { emit: d }) {
|
|
161
|
-
const t =
|
|
162
|
+
const t = Z(() => Promise.resolve().then(() => Qt)), z = Z(() => import("./MazIcon-BTsi1M-S.mjs")), w = Z(() => import("./eye-slash-tjfxO0LK.mjs")), v = Z(() => import("./eye-DqO_Jx56.mjs")), l = Z(() => Promise.resolve().then(() => no)), f = s, O = d, $ = T(!1), N = T(!1), F = T(), C = Ne({
|
|
162
163
|
componentName: "MazInput",
|
|
163
164
|
providedId: f.id
|
|
164
165
|
});
|
|
@@ -166,7 +167,7 @@ const Ne = ({
|
|
|
166
167
|
var a;
|
|
167
168
|
f.autoFocus && ((a = F.value) == null || a.focus());
|
|
168
169
|
});
|
|
169
|
-
const H = c(() => f.type === "password"),
|
|
170
|
+
const H = c(() => f.type === "password"), h = c(() => $.value ? "text" : f.type), M = c(() => {
|
|
170
171
|
if (!f.noBorder) {
|
|
171
172
|
if (f.error)
|
|
172
173
|
return "maz-border-danger";
|
|
@@ -198,7 +199,7 @@ const Ne = ({
|
|
|
198
199
|
const { required: a, placeholder: E } = f;
|
|
199
200
|
if (E)
|
|
200
201
|
return a ? `${E} *` : E;
|
|
201
|
-
}),
|
|
202
|
+
}), y = c(() => W.value !== void 0 && W.value !== ""), ee = Bt(
|
|
202
203
|
(a) => {
|
|
203
204
|
W.value = a;
|
|
204
205
|
},
|
|
@@ -210,11 +211,11 @@ const Ne = ({
|
|
|
210
211
|
return ee(a);
|
|
211
212
|
O("update:model-value", a);
|
|
212
213
|
}
|
|
213
|
-
}), te = c(() => (!!f.label || !!f.hint) && (N.value || !!
|
|
214
|
+
}), te = c(() => (!!f.label || !!f.hint) && (N.value || !!y.value || !!f.placeholder || ["date", "month", "week"].includes(f.type))), re = c(() => !!f.label || !!f.hint);
|
|
214
215
|
function R() {
|
|
215
216
|
return !!P["right-icon"] || H.value || !!P["valid-button"] || f.validButton || !!f.rightIcon;
|
|
216
217
|
}
|
|
217
|
-
function
|
|
218
|
+
function J() {
|
|
218
219
|
return !!P["left-icon"] || !!f.leftIcon;
|
|
219
220
|
}
|
|
220
221
|
function fe(a) {
|
|
@@ -233,20 +234,21 @@ const Ne = ({
|
|
|
233
234
|
{
|
|
234
235
|
"--is-focused": N.value || a.borderActive,
|
|
235
236
|
"--should-up": te.value,
|
|
236
|
-
"--has-label":
|
|
237
|
+
"--has-label": re.value,
|
|
237
238
|
"--is-disabled": a.disabled,
|
|
238
239
|
"--is-readonly": a.readonly,
|
|
239
240
|
"--has-z-2": a.error || a.warning || a.success,
|
|
240
|
-
"--has-state": a.error || a.warning || a.success
|
|
241
|
+
"--has-state": a.error || a.warning || a.success,
|
|
242
|
+
"--block": a.block
|
|
241
243
|
},
|
|
242
244
|
f.class,
|
|
243
245
|
`--${a.color}`,
|
|
244
246
|
`--${a.size}`
|
|
245
247
|
]]),
|
|
246
|
-
style:
|
|
248
|
+
style: se(a.style)
|
|
247
249
|
},
|
|
248
250
|
[
|
|
249
|
-
|
|
251
|
+
B(
|
|
250
252
|
"div",
|
|
251
253
|
{
|
|
252
254
|
class: S(["m-input-wrapper", [
|
|
@@ -256,7 +258,7 @@ const Ne = ({
|
|
|
256
258
|
]])
|
|
257
259
|
},
|
|
258
260
|
[
|
|
259
|
-
|
|
261
|
+
J() ? (r(), g("div", Ct, [
|
|
260
262
|
u(`
|
|
261
263
|
@slot left-icon - The icon to display on the left of the input
|
|
262
264
|
`),
|
|
@@ -271,13 +273,13 @@ const Ne = ({
|
|
|
271
273
|
})) : u("v-if", !0)
|
|
272
274
|
], !0) : u("v-if", !0)
|
|
273
275
|
])) : u("v-if", !0),
|
|
274
|
-
|
|
275
|
-
He(
|
|
276
|
-
id: b(
|
|
276
|
+
B("div", _t, [
|
|
277
|
+
He(B("input", Pe({
|
|
278
|
+
id: b(C),
|
|
277
279
|
ref_key: "input",
|
|
278
280
|
ref: F,
|
|
279
|
-
"onUpdate:modelValue": E[0] || (E[0] = (
|
|
280
|
-
type:
|
|
281
|
+
"onUpdate:modelValue": E[0] || (E[0] = (X) => W.value = X),
|
|
282
|
+
type: h.value,
|
|
281
283
|
name: a.name
|
|
282
284
|
}, a.$attrs, {
|
|
283
285
|
inputmode: a.inputmode,
|
|
@@ -292,7 +294,7 @@ const Ne = ({
|
|
|
292
294
|
focus: fe,
|
|
293
295
|
change: D
|
|
294
296
|
}, !0), {
|
|
295
|
-
onClick: E[1] || (E[1] = (
|
|
297
|
+
onClick: E[1] || (E[1] = (X) => a.$emit("click", X))
|
|
296
298
|
}), null, 16, Mt), [
|
|
297
299
|
[at, W.value]
|
|
298
300
|
]),
|
|
@@ -310,8 +312,8 @@ const Ne = ({
|
|
|
310
312
|
]])
|
|
311
313
|
},
|
|
312
314
|
[
|
|
313
|
-
|
|
314
|
-
|
|
315
|
+
ne(
|
|
316
|
+
Y(a.hint || a.label) + " ",
|
|
315
317
|
1
|
|
316
318
|
/* TEXT */
|
|
317
319
|
),
|
|
@@ -340,7 +342,7 @@ const Ne = ({
|
|
|
340
342
|
color: "transparent",
|
|
341
343
|
tabindex: "-1",
|
|
342
344
|
size: "mini",
|
|
343
|
-
onClick: E[2] || (E[2] = de((
|
|
345
|
+
onClick: E[2] || (E[2] = de((X) => $.value = !$.value, ["stop"]))
|
|
344
346
|
}, {
|
|
345
347
|
default: L(() => [
|
|
346
348
|
$.value ? (r(), I(b(w), {
|
|
@@ -389,10 +391,10 @@ const Ne = ({
|
|
|
389
391
|
for (const [z, w] of d)
|
|
390
392
|
t[z] = w;
|
|
391
393
|
return t;
|
|
392
|
-
}, Ke = /* @__PURE__ */ le(Lt, [["__scopeId", "data-v-
|
|
393
|
-
let
|
|
394
|
+
}, Ke = /* @__PURE__ */ le(Lt, [["__scopeId", "data-v-78090be8"]]);
|
|
395
|
+
let Ce = null;
|
|
394
396
|
function Tt(s, d) {
|
|
395
|
-
|
|
397
|
+
Ce && clearTimeout(Ce), Ce = setTimeout(s, d);
|
|
396
398
|
}
|
|
397
399
|
const $e = "__maz-click-outside__", Ge = () => document.ontouchstart === null ? "touchstart" : "click";
|
|
398
400
|
async function Ye(s, d) {
|
|
@@ -500,24 +502,25 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
500
502
|
open: { type: Boolean },
|
|
501
503
|
multiple: { type: Boolean },
|
|
502
504
|
required: { type: Boolean },
|
|
503
|
-
disabled: { type: Boolean }
|
|
505
|
+
disabled: { type: Boolean },
|
|
506
|
+
block: { type: Boolean }
|
|
504
507
|
},
|
|
505
508
|
emits: ["close", "open", "blur", "focus", "change", "update:model-value", "selected-option"],
|
|
506
509
|
setup(s, { emit: d }) {
|
|
507
510
|
Ve((e) => ({
|
|
508
|
-
"
|
|
509
|
-
|
|
510
|
-
"
|
|
511
|
+
"2223ba14": H.value,
|
|
512
|
+
"619dedd3": F.value,
|
|
513
|
+
"72c218fb": C.value
|
|
511
514
|
}));
|
|
512
|
-
const t =
|
|
515
|
+
const t = Z(() => Promise.resolve().then(() => uo)), z = Z(() => Promise.resolve().then(() => ft)), w = Z(() => import("./chevron-down-CzMH-gFW.mjs")), v = Z(() => import("./no-symbol-QAqP9IlR.mjs")), l = s, f = d, O = T(!1), $ = T(), N = c(
|
|
513
516
|
() => ["black", "transparent", "white"].includes(l.color)
|
|
514
517
|
), F = c(
|
|
515
518
|
() => N.value ? "var(--maz-color-black)" : `var(--maz-color-${l.color}-800)`
|
|
516
|
-
),
|
|
519
|
+
), C = c(
|
|
517
520
|
() => N.value ? "var(--maz-color-muted)" : `var(--maz-color-${l.color}-100)`
|
|
518
521
|
), H = c(
|
|
519
522
|
() => N.value ? "var(--maz-color-muted)" : `var(--maz-color-${l.color}-200)`
|
|
520
|
-
),
|
|
523
|
+
), h = c(() => O.value || l.open), M = Ne({
|
|
521
524
|
componentName: "MazSelect",
|
|
522
525
|
providedId: l.id
|
|
523
526
|
});
|
|
@@ -536,7 +539,7 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
536
539
|
[l.optionInputValueKey]: e[l.optionInputValueKey]
|
|
537
540
|
};
|
|
538
541
|
}
|
|
539
|
-
const
|
|
542
|
+
const y = c(() => {
|
|
540
543
|
var n;
|
|
541
544
|
const e = [];
|
|
542
545
|
if (!((n = l.options) != null && n.length))
|
|
@@ -552,15 +555,15 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
552
555
|
}), ee = c(
|
|
553
556
|
() => {
|
|
554
557
|
var e;
|
|
555
|
-
return ((e =
|
|
558
|
+
return ((e = y.value) == null ? void 0 : e.filter((n) => l.multiple ? Array.isArray(l.modelValue) ? l.modelValue.includes(n[l.optionValueKey]) && !R(n[l.optionValueKey]) : !1 : l.modelValue === n[l.optionValueKey] && !R(n[l.optionValueKey]))) ?? [];
|
|
556
559
|
}
|
|
557
560
|
);
|
|
558
561
|
Oe(() => {
|
|
559
562
|
var e;
|
|
560
563
|
(e = l.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), p();
|
|
561
564
|
});
|
|
562
|
-
const pe = T(), W = T(), te = T(),
|
|
563
|
-
function
|
|
565
|
+
const pe = T(), W = T(), te = T(), re = T(), R = (e) => e == null;
|
|
566
|
+
function J(e) {
|
|
564
567
|
var i;
|
|
565
568
|
return (((i = ee.value) == null ? void 0 : i.some(
|
|
566
569
|
(m) => m[l.optionValueKey] === e[l.optionValueKey]
|
|
@@ -572,10 +575,10 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
572
575
|
return l.modelValue.map(
|
|
573
576
|
(i) => {
|
|
574
577
|
var m, A;
|
|
575
|
-
return (A = (m =
|
|
578
|
+
return (A = (m = y.value) == null ? void 0 : m.find((j) => j[l.optionValueKey] === i)) == null ? void 0 : A[l.optionInputValueKey];
|
|
576
579
|
}
|
|
577
580
|
).join(", ");
|
|
578
|
-
const e = (n =
|
|
581
|
+
const e = (n = y.value) == null ? void 0 : n.find(
|
|
579
582
|
(i) => i[l.optionValueKey] === l.modelValue
|
|
580
583
|
);
|
|
581
584
|
return R(l.modelValue) || e == null ? void 0 : e[l.optionInputValueKey];
|
|
@@ -585,27 +588,27 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
585
588
|
function E(e) {
|
|
586
589
|
return e.normalize("NFD").replaceAll(/[\u0300-\u036F]/g, "").replaceAll(/[^\dA-Za-z\u0400-\u04FF]/g, "");
|
|
587
590
|
}
|
|
588
|
-
const
|
|
591
|
+
const X = (e, n) => n && e && E(e.toString().toLocaleLowerCase().trim()).includes(
|
|
589
592
|
E(n.toLocaleLowerCase().trim())
|
|
590
593
|
);
|
|
591
|
-
function
|
|
594
|
+
function x(e) {
|
|
592
595
|
var n;
|
|
593
|
-
return e ? (n =
|
|
596
|
+
return e ? (n = y.value) == null ? void 0 : n.filter((i) => {
|
|
594
597
|
const m = i[l.optionLabelKey], A = i[l.optionValueKey], j = i[l.optionInputValueKey];
|
|
595
|
-
return
|
|
596
|
-
}) :
|
|
598
|
+
return X(m, e) || X(j, e) || X(A, e) || typeof m == "string" && _e(m, e).isMatching.value || typeof j == "string" && _e(j, e).isMatching.value || typeof A == "string" && _e(A, e).isMatching.value;
|
|
599
|
+
}) : y.value;
|
|
597
600
|
}
|
|
598
|
-
const G = c(() =>
|
|
601
|
+
const G = c(() => x(D.value));
|
|
599
602
|
async function ae(e) {
|
|
600
603
|
var n;
|
|
601
|
-
if (
|
|
604
|
+
if (h.value) {
|
|
602
605
|
if (e && ("relatedTarget" in e && ((n = pe.value) != null && n.contains(e.relatedTarget)) || e.type === "keydown"))
|
|
603
606
|
return e.preventDefault();
|
|
604
607
|
await ke(), O.value = !1, $.value = 0, f("close", e);
|
|
605
608
|
}
|
|
606
609
|
}
|
|
607
610
|
async function q(e) {
|
|
608
|
-
l.disabled ||
|
|
611
|
+
l.disabled || h.value || (e == null || e.preventDefault(), O.value = !0, await k(), f("focus", e), f("open", O.value));
|
|
609
612
|
}
|
|
610
613
|
function U() {
|
|
611
614
|
var e, n;
|
|
@@ -621,29 +624,29 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
621
624
|
function Se(e) {
|
|
622
625
|
var i;
|
|
623
626
|
e === "Backspace" && a.value.length > 0 ? a.value = a.value.slice(0, -1) : a.value += e;
|
|
624
|
-
const n =
|
|
627
|
+
const n = x(a.value);
|
|
625
628
|
n != null && n.length && ($.value = (i = G.value) == null ? void 0 : i.findIndex(
|
|
626
629
|
(m) => m[l.optionValueKey] === n[0][l.optionValueKey]
|
|
627
630
|
), typeof $.value == "number" && $.value >= 0 && k($.value)), Tt(() => {
|
|
628
631
|
a.value = "";
|
|
629
632
|
}, 1e3);
|
|
630
633
|
}
|
|
631
|
-
const
|
|
634
|
+
const Be = (e) => {
|
|
632
635
|
const n = e.key;
|
|
633
|
-
/^[\dA-Za-z\u0400-\u04FF]$/.test(n) ? (e.preventDefault(), q(e), l.search ? he(n) : Se(n)) :
|
|
634
|
-
},
|
|
635
|
-
const n = e.code, i = ["ArrowUp", "ArrowDown"].includes(n), m = ["Enter", "Space"].includes(n), A = n === "Escape" &&
|
|
636
|
+
/^[\dA-Za-z\u0400-\u04FF]$/.test(n) ? (e.preventDefault(), q(e), l.search ? he(n) : Se(n)) : ie(e);
|
|
637
|
+
}, ie = (e) => {
|
|
638
|
+
const n = e.code, i = ["ArrowUp", "ArrowDown"].includes(n), m = ["Enter", "Space"].includes(n), A = n === "Escape" && h.value;
|
|
636
639
|
i ? ye(e, $.value) : m ? o(e, $.value) : A && ae();
|
|
637
640
|
}, ye = (e, n) => {
|
|
638
641
|
var A;
|
|
639
642
|
e.preventDefault();
|
|
640
643
|
const i = e.code;
|
|
641
|
-
|
|
644
|
+
h.value || q(e);
|
|
642
645
|
const m = (A = G.value) == null ? void 0 : A.length;
|
|
643
646
|
m && (typeof n == "number" ? n === m - 1 && i === "ArrowDown" ? $.value = 0 : n === 0 && i === "ArrowUp" ? $.value = m - 1 : $.value = i === "ArrowDown" ? n + 1 : n - 1 : $.value = i === "ArrowDown" ? 0 : m - 1, k($.value));
|
|
644
647
|
}, o = (e, n) => {
|
|
645
648
|
var m, A, j;
|
|
646
|
-
if (e.preventDefault(), !
|
|
649
|
+
if (e.preventDefault(), !h.value)
|
|
647
650
|
return q(e);
|
|
648
651
|
const i = n ? ((m = G.value) == null ? void 0 : m[n]) ?? ((A = G.value) == null ? void 0 : A[0]) : (j = G.value) == null ? void 0 : j[0];
|
|
649
652
|
R(i) || K(i);
|
|
@@ -652,7 +655,7 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
652
655
|
var i, m;
|
|
653
656
|
await ke(), typeof e != "number" && p();
|
|
654
657
|
const n = e ?? $.value;
|
|
655
|
-
typeof n == "number" && n >= 0 && ((m = (i =
|
|
658
|
+
typeof n == "number" && n >= 0 && ((m = (i = re.value) == null ? void 0 : i.querySelectorAll(".m-select-list-item")[n]) == null || m.scrollIntoView({
|
|
656
659
|
behavior: "auto",
|
|
657
660
|
block: "center",
|
|
658
661
|
inline: "center"
|
|
@@ -670,13 +673,13 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
670
673
|
var j;
|
|
671
674
|
n && !l.multiple && ke(() => ae()), D.value = "";
|
|
672
675
|
const i = (j = ee.value) == null ? void 0 : j.some(
|
|
673
|
-
(
|
|
676
|
+
(ue) => ue[l.optionValueKey] === e[l.optionValueKey]
|
|
674
677
|
);
|
|
675
678
|
let m = ee.value;
|
|
676
679
|
i && l.multiple ? m = m == null ? void 0 : m.filter(
|
|
677
|
-
(
|
|
680
|
+
(ue) => ue[l.optionValueKey] !== e[l.optionValueKey]
|
|
678
681
|
) : l.multiple ? m.push(e) : m = [e];
|
|
679
|
-
const A = m.map((
|
|
682
|
+
const A = m.map((ue) => ue[l.optionValueKey]);
|
|
680
683
|
f("update:model-value", l.multiple ? A : A[0]), f("selected-option", e), p(e), U();
|
|
681
684
|
};
|
|
682
685
|
return (e, n) => He((r(), g(
|
|
@@ -684,8 +687,12 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
684
687
|
{
|
|
685
688
|
ref_key: "mazSelectElement",
|
|
686
689
|
ref: pe,
|
|
687
|
-
class: S(["m-select", [
|
|
688
|
-
|
|
690
|
+
class: S(["m-select", [
|
|
691
|
+
{ "--is-open": h.value, "--disabled": e.disabled, "--block": e.block },
|
|
692
|
+
l.class,
|
|
693
|
+
`--${e.size}`
|
|
694
|
+
]]),
|
|
695
|
+
style: se(e.style)
|
|
689
696
|
},
|
|
690
697
|
[
|
|
691
698
|
_(Ke, Pe({
|
|
@@ -700,19 +707,20 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
700
707
|
"model-value": fe.value,
|
|
701
708
|
autocomplete: "off",
|
|
702
709
|
size: e.size,
|
|
710
|
+
block: "",
|
|
703
711
|
disabled: e.disabled,
|
|
704
712
|
onFocus: de(q, ["prevent", "stop"]),
|
|
705
713
|
onClick: de(q, ["prevent", "stop"]),
|
|
706
714
|
onBlur: de(ae, ["prevent", "stop"]),
|
|
707
715
|
onChange: n[0] || (n[0] = (i) => f("change", i)),
|
|
708
|
-
onKeydown:
|
|
716
|
+
onKeydown: Be
|
|
709
717
|
}), {
|
|
710
718
|
"right-icon": L(() => [
|
|
711
|
-
|
|
719
|
+
B("button", {
|
|
712
720
|
tabindex: "-1",
|
|
713
721
|
type: "button",
|
|
714
722
|
class: "m-select-input__toggle-button maz-custom",
|
|
715
|
-
"aria-label": `${
|
|
723
|
+
"aria-label": `${h.value ? "collapse" : "expand"} list of options`,
|
|
716
724
|
onClick: de(Ie, ["stop"])
|
|
717
725
|
}, [
|
|
718
726
|
_(b(w), { class: "m-select-chevron maz-text-xl" })
|
|
@@ -723,19 +731,19 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
723
731
|
}, 16, ["id", "required", "border-active", "color", "model-value", "size", "disabled"]),
|
|
724
732
|
_(nt, { name: me.value }, {
|
|
725
733
|
default: L(() => [
|
|
726
|
-
|
|
734
|
+
h.value ? (r(), g(
|
|
727
735
|
"div",
|
|
728
736
|
{
|
|
729
737
|
key: 0,
|
|
730
738
|
ref_key: "optionsListElement",
|
|
731
|
-
ref:
|
|
739
|
+
ref: re,
|
|
732
740
|
class: S(["m-select-list", {
|
|
733
741
|
"--top": e.listPosition.includes("top"),
|
|
734
742
|
"--left": e.listPosition.includes("left"),
|
|
735
743
|
"--right": e.listPosition.includes("right"),
|
|
736
744
|
"--bottom": e.listPosition.includes("bottom")
|
|
737
745
|
}]),
|
|
738
|
-
style:
|
|
746
|
+
style: se({
|
|
739
747
|
maxHeight: `${e.maxListHeight}px`,
|
|
740
748
|
maxWidth: `${e.maxListWidth}px`
|
|
741
749
|
})
|
|
@@ -758,13 +766,13 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
758
766
|
tabindex: "-1",
|
|
759
767
|
class: "m-select-list__search-input maz-flex-none",
|
|
760
768
|
"left-icon": b(z),
|
|
761
|
-
onKeydown:
|
|
769
|
+
onKeydown: ie
|
|
762
770
|
}, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : u("v-if", !0),
|
|
763
771
|
u(`
|
|
764
772
|
@slot No results slot - Displayed when no results corresponding with search query
|
|
765
773
|
`),
|
|
766
774
|
!G.value || G.value.length <= 0 ? V(e.$slots, "no-results", { key: 1 }, () => [
|
|
767
|
-
|
|
775
|
+
B("span", jt, [
|
|
768
776
|
_(b(v), { class: "maz-h-6 maz-w-6 maz-text-normal" })
|
|
769
777
|
])
|
|
770
778
|
], !0) : (r(), g("div", Ft, [
|
|
@@ -783,10 +791,10 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
783
791
|
key: 0,
|
|
784
792
|
label: i.label
|
|
785
793
|
}, () => [
|
|
786
|
-
|
|
794
|
+
B(
|
|
787
795
|
"span",
|
|
788
796
|
Ut,
|
|
789
|
-
|
|
797
|
+
Y(i.label),
|
|
790
798
|
1
|
|
791
799
|
/* TEXT */
|
|
792
800
|
)
|
|
@@ -797,17 +805,17 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
797
805
|
class: S(["m-select-list-item maz-custom maz-flex-none", [
|
|
798
806
|
{
|
|
799
807
|
"--is-keyboard-selected": $.value === m,
|
|
800
|
-
"--is-selected":
|
|
808
|
+
"--is-selected": J(i),
|
|
801
809
|
"--is-none-value": R(i[e.optionValueKey])
|
|
802
810
|
}
|
|
803
811
|
]]),
|
|
804
|
-
style:
|
|
812
|
+
style: se(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
|
|
805
813
|
onClick: de((A) => K(i), ["prevent", "stop"])
|
|
806
814
|
}, [
|
|
807
815
|
e.multiple ? (r(), I(b(t), {
|
|
808
816
|
key: 0,
|
|
809
817
|
tabindex: "-1",
|
|
810
|
-
"model-value":
|
|
818
|
+
"model-value": J(i),
|
|
811
819
|
size: "sm",
|
|
812
820
|
color: e.color
|
|
813
821
|
}, null, 8, ["model-value", "color"])) : u("v-if", !0),
|
|
@@ -818,12 +826,12 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
818
826
|
`),
|
|
819
827
|
V(e.$slots, "default", {
|
|
820
828
|
option: i,
|
|
821
|
-
isSelected:
|
|
829
|
+
isSelected: J(i)
|
|
822
830
|
}, () => [
|
|
823
|
-
|
|
831
|
+
B(
|
|
824
832
|
"span",
|
|
825
833
|
null,
|
|
826
|
-
|
|
834
|
+
Y(i[e.optionLabelKey]),
|
|
827
835
|
1
|
|
828
836
|
/* TEXT */
|
|
829
837
|
)
|
|
@@ -852,7 +860,7 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
852
860
|
[b(Ot), ae]
|
|
853
861
|
]);
|
|
854
862
|
}
|
|
855
|
-
}), Ue = /* @__PURE__ */ le(Rt, [["__scopeId", "data-v-
|
|
863
|
+
}), Ue = /* @__PURE__ */ le(Rt, [["__scopeId", "data-v-7825a2da"]]), qt = /* @__PURE__ */ oe({
|
|
856
864
|
__name: "MazBtn",
|
|
857
865
|
props: {
|
|
858
866
|
variant: { default: "button" },
|
|
@@ -877,7 +885,7 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
877
885
|
contentClass: { default: void 0 }
|
|
878
886
|
},
|
|
879
887
|
setup(s) {
|
|
880
|
-
const d =
|
|
888
|
+
const d = Z(() => import("./MazSpinner-CJaSrYbQ.mjs")), t = Z(() => import("./MazIcon-BTsi1M-S.mjs")), { href: z, to: w } = st(), v = Te(), l = s;
|
|
881
889
|
Oe(() => {
|
|
882
890
|
l.icon && !l.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
883
891
|
});
|
|
@@ -885,26 +893,26 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
885
893
|
() => l.pastel ? `--${l.color}-pastel` : l.outline ? `--${l.color}-outline` : `--${l.color}`
|
|
886
894
|
), $ = c(
|
|
887
895
|
() => (l.loading || l.disabled) && f.value === "button"
|
|
888
|
-
), N = c(() => $.value ? "--cursor-default" : "--cursor-pointer"), F = c(() => `--is-${l.variant}`),
|
|
889
|
-
return (
|
|
896
|
+
), N = c(() => $.value ? "--cursor-default" : "--cursor-pointer"), F = c(() => `--is-${l.variant}`), C = c(() => l.loading && l.variant === "button"), H = c(() => !!v["left-icon"] || l.leftIcon), h = c(() => !!v["right-icon"] || l.rightIcon), M = c(() => H.value || h.value), P = c(() => l.fab && (l.icon || !!v.icon)), Q = c(() => f.value === "button" ? l.type : void 0);
|
|
897
|
+
return (y, ee) => (r(), I(ce(f.value), {
|
|
890
898
|
disabled: $.value,
|
|
891
899
|
class: S(["m-btn", [
|
|
892
|
-
`--${
|
|
900
|
+
`--${y.size}`,
|
|
893
901
|
O.value,
|
|
894
902
|
N.value,
|
|
895
903
|
F.value,
|
|
896
904
|
{
|
|
897
|
-
"--block":
|
|
898
|
-
"--no-underline":
|
|
899
|
-
"--no-leading":
|
|
900
|
-
"--fab":
|
|
901
|
-
"--loading":
|
|
905
|
+
"--block": y.block,
|
|
906
|
+
"--no-underline": y.noUnderline,
|
|
907
|
+
"--no-leading": y.noLeading,
|
|
908
|
+
"--fab": y.fab,
|
|
909
|
+
"--loading": y.loading,
|
|
902
910
|
"--disabled": $.value,
|
|
903
911
|
"--icon": M.value,
|
|
904
|
-
"--rounded":
|
|
905
|
-
"--no-rounded":
|
|
906
|
-
"--no-padding":
|
|
907
|
-
"--no-elevation":
|
|
912
|
+
"--rounded": y.rounded,
|
|
913
|
+
"--no-rounded": y.noRounded,
|
|
914
|
+
"--no-padding": y.noPadding,
|
|
915
|
+
"--no-elevation": y.noElevation
|
|
908
916
|
}
|
|
909
917
|
]]),
|
|
910
918
|
type: Q.value
|
|
@@ -914,17 +922,17 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
914
922
|
"div",
|
|
915
923
|
{
|
|
916
924
|
key: 0,
|
|
917
|
-
class: S(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible":
|
|
925
|
+
class: S(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": C.value }])
|
|
918
926
|
},
|
|
919
927
|
[
|
|
920
928
|
u(`
|
|
921
929
|
@slot left-icon - The icon to display on the left of the button
|
|
922
930
|
`),
|
|
923
|
-
V(
|
|
924
|
-
typeof
|
|
931
|
+
V(y.$slots, "left-icon", {}, () => [
|
|
932
|
+
typeof y.leftIcon == "string" ? (r(), I(b(t), {
|
|
925
933
|
key: 0,
|
|
926
|
-
name:
|
|
927
|
-
}, null, 8, ["name"])) :
|
|
934
|
+
name: y.leftIcon
|
|
935
|
+
}, null, 8, ["name"])) : y.leftIcon ? (r(), I(ce(y.leftIcon), { key: 1 })) : u("v-if", !0)
|
|
928
936
|
], !0)
|
|
929
937
|
],
|
|
930
938
|
2
|
|
@@ -934,62 +942,62 @@ const Dt = ["aria-label"], jt = { class: "m-select-list__no-results" }, Ft = {
|
|
|
934
942
|
"div",
|
|
935
943
|
{
|
|
936
944
|
key: 1,
|
|
937
|
-
class: S(["m-btn__icon", { "maz-invisible":
|
|
945
|
+
class: S(["m-btn__icon", { "maz-invisible": C.value }])
|
|
938
946
|
},
|
|
939
947
|
[
|
|
940
948
|
u(`
|
|
941
949
|
@slot icon - The icon to display on the fab button
|
|
942
950
|
`),
|
|
943
|
-
V(
|
|
944
|
-
typeof
|
|
951
|
+
V(y.$slots, "icon", {}, () => [
|
|
952
|
+
typeof y.icon == "string" ? (r(), I(b(t), {
|
|
945
953
|
key: 0,
|
|
946
|
-
name:
|
|
947
|
-
}, null, 8, ["name"])) :
|
|
954
|
+
name: y.icon
|
|
955
|
+
}, null, 8, ["name"])) : y.icon ? (r(), I(ce(y.icon), { key: 1 })) : u("v-if", !0)
|
|
948
956
|
], !0)
|
|
949
957
|
],
|
|
950
958
|
2
|
|
951
959
|
/* CLASS */
|
|
952
960
|
)) : u("v-if", !0),
|
|
953
|
-
|
|
961
|
+
y.$slots.default ? (r(), g(
|
|
954
962
|
"span",
|
|
955
963
|
{
|
|
956
964
|
key: 2,
|
|
957
|
-
class: S([{ "maz-invisible":
|
|
965
|
+
class: S([{ "maz-invisible": C.value }, y.contentClass])
|
|
958
966
|
},
|
|
959
967
|
[
|
|
960
968
|
u(`
|
|
961
969
|
@slot default - The content of the button
|
|
962
970
|
`),
|
|
963
|
-
V(
|
|
971
|
+
V(y.$slots, "default", {}, void 0, !0)
|
|
964
972
|
],
|
|
965
973
|
2
|
|
966
974
|
/* CLASS */
|
|
967
975
|
)) : u("v-if", !0),
|
|
968
|
-
|
|
976
|
+
h.value ? (r(), g(
|
|
969
977
|
"div",
|
|
970
978
|
{
|
|
971
979
|
key: 3,
|
|
972
|
-
class: S(["m-btn__icon-right", { "maz-invisible":
|
|
980
|
+
class: S(["m-btn__icon-right", { "maz-invisible": C.value }])
|
|
973
981
|
},
|
|
974
982
|
[
|
|
975
983
|
u(`
|
|
976
984
|
@slot right-icon - The icon to display on the right of the button
|
|
977
985
|
`),
|
|
978
|
-
V(
|
|
979
|
-
typeof
|
|
986
|
+
V(y.$slots, "right-icon", {}, () => [
|
|
987
|
+
typeof y.rightIcon == "string" ? (r(), I(b(t), {
|
|
980
988
|
key: 0,
|
|
981
|
-
name:
|
|
982
|
-
}, null, 8, ["name"])) :
|
|
989
|
+
name: y.rightIcon
|
|
990
|
+
}, null, 8, ["name"])) : y.rightIcon ? (r(), I(ce(y.rightIcon), { key: 1 })) : u("v-if", !0)
|
|
983
991
|
], !0)
|
|
984
992
|
],
|
|
985
993
|
2
|
|
986
994
|
/* CLASS */
|
|
987
995
|
)) : u("v-if", !0),
|
|
988
|
-
|
|
996
|
+
C.value ? (r(), I(b(d), {
|
|
989
997
|
key: 4,
|
|
990
998
|
class: "m-btn-loader",
|
|
991
999
|
size: "2em",
|
|
992
|
-
color:
|
|
1000
|
+
color: y.color
|
|
993
1001
|
}, null, 8, ["color"])) : u("v-if", !0)
|
|
994
1002
|
]),
|
|
995
1003
|
_: 3
|
|
@@ -1061,7 +1069,7 @@ const Wt = /* @__PURE__ */ oe({
|
|
|
1061
1069
|
/* CLASS */
|
|
1062
1070
|
));
|
|
1063
1071
|
}
|
|
1064
|
-
}), Ae = /* @__PURE__ */ le(Yt, [["__scopeId", "data-v-7d02b262"]]), Zt = (s) => (Re("data-v-26d3bae5"), s = s(), qe(), s), Jt = { class: "m-loading-bar" }, Xt = /* @__PURE__ */ Zt(() => /* @__PURE__ */
|
|
1072
|
+
}), Ae = /* @__PURE__ */ le(Yt, [["__scopeId", "data-v-7d02b262"]]), Zt = (s) => (Re("data-v-26d3bae5"), s = s(), qe(), s), Jt = { class: "m-loading-bar" }, Xt = /* @__PURE__ */ Zt(() => /* @__PURE__ */ B(
|
|
1065
1073
|
"div",
|
|
1066
1074
|
null,
|
|
1067
1075
|
null,
|
|
@@ -1093,7 +1101,7 @@ const Wt = /* @__PURE__ */ oe({
|
|
|
1093
1101
|
height: "1em",
|
|
1094
1102
|
fill: "none",
|
|
1095
1103
|
viewBox: "0 0 24 24"
|
|
1096
|
-
}, lo = /* @__PURE__ */
|
|
1104
|
+
}, lo = /* @__PURE__ */ B(
|
|
1097
1105
|
"path",
|
|
1098
1106
|
{
|
|
1099
1107
|
stroke: "currentColor",
|
|
@@ -1127,6 +1135,7 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1127
1135
|
value: { type: [String, Number, Boolean], default: void 0 },
|
|
1128
1136
|
name: { default: "m-checkbox" },
|
|
1129
1137
|
size: { default: "md" },
|
|
1138
|
+
label: { default: void 0 },
|
|
1130
1139
|
disabled: { type: Boolean, default: !1 }
|
|
1131
1140
|
},
|
|
1132
1141
|
emits: [
|
|
@@ -1136,11 +1145,11 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1136
1145
|
"change"
|
|
1137
1146
|
],
|
|
1138
1147
|
setup(s, { emit: d }) {
|
|
1139
|
-
Ve((
|
|
1140
|
-
"
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
"
|
|
1148
|
+
Ve((h) => ({
|
|
1149
|
+
"3eedcc0a": O.value,
|
|
1150
|
+
a3137f46: l.value,
|
|
1151
|
+
"03d4fcac": $.value,
|
|
1152
|
+
"5778d022": N.value
|
|
1144
1153
|
}));
|
|
1145
1154
|
const t = s, z = d, w = Ne({
|
|
1146
1155
|
componentName: "MazCheckbox",
|
|
@@ -1180,47 +1189,53 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1180
1189
|
}), O = c(() => `var(--maz-color-${t.color}-contrast)`), $ = c(() => `var(--maz-color-${t.color})`), N = c(
|
|
1181
1190
|
() => ["black", "transparent"].includes(t.color) ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-alpha)`
|
|
1182
1191
|
);
|
|
1183
|
-
function F(
|
|
1184
|
-
["Space"].includes(
|
|
1192
|
+
function F(h) {
|
|
1193
|
+
["Space"].includes(h.code) && (h.preventDefault(), H(t.value ?? !t.modelValue));
|
|
1185
1194
|
}
|
|
1186
|
-
function
|
|
1187
|
-
return typeof
|
|
1195
|
+
function C(h) {
|
|
1196
|
+
return typeof h == "boolean" && (typeof t.modelValue == "boolean" || t.modelValue === void 0 || t.modelValue === null) ? !t.modelValue : Array.isArray(t.modelValue) && typeof h != "boolean" ? t.modelValue.includes(h) ? t.modelValue.filter((M) => M !== h) : [...t.modelValue, h] : [h];
|
|
1188
1197
|
}
|
|
1189
|
-
function H(
|
|
1190
|
-
const M =
|
|
1198
|
+
function H(h) {
|
|
1199
|
+
const M = C(h);
|
|
1191
1200
|
z("update:model-value", M), z("change", M);
|
|
1192
1201
|
}
|
|
1193
|
-
return (
|
|
1202
|
+
return (h, M) => (r(), g("label", {
|
|
1194
1203
|
for: b(w),
|
|
1195
|
-
class: S(["m-checkbox", [{ "--disabled":
|
|
1204
|
+
class: S(["m-checkbox", [{ "--disabled": h.disabled }, t.class]]),
|
|
1196
1205
|
tabindex: "0",
|
|
1197
|
-
style:
|
|
1206
|
+
style: se(h.style),
|
|
1198
1207
|
role: "checkbox",
|
|
1199
1208
|
"aria-checked": v.value,
|
|
1200
1209
|
onKeydown: F
|
|
1201
1210
|
}, [
|
|
1202
|
-
|
|
1211
|
+
B("input", Pe({
|
|
1203
1212
|
id: b(w),
|
|
1204
1213
|
checked: v.value
|
|
1205
|
-
},
|
|
1214
|
+
}, h.$attrs, {
|
|
1206
1215
|
tabindex: "-1",
|
|
1207
|
-
disabled:
|
|
1208
|
-
name:
|
|
1216
|
+
disabled: h.disabled,
|
|
1217
|
+
name: h.name,
|
|
1209
1218
|
type: "checkbox",
|
|
1210
1219
|
onChange: M[0] || (M[0] = (P) => {
|
|
1211
1220
|
var Q;
|
|
1212
|
-
return H(
|
|
1221
|
+
return H(h.value ?? ((Q = P == null ? void 0 : P.target) == null ? void 0 : Q.checked));
|
|
1213
1222
|
})
|
|
1214
1223
|
}), null, 16, ro),
|
|
1215
|
-
|
|
1224
|
+
B("span", null, [
|
|
1216
1225
|
_(b(xe), {
|
|
1217
1226
|
class: S(["check-icon", f.value])
|
|
1218
1227
|
}, null, 8, ["class"])
|
|
1219
1228
|
]),
|
|
1220
|
-
V(
|
|
1229
|
+
V(h.$slots, "default", {}, () => [
|
|
1230
|
+
ne(
|
|
1231
|
+
Y(h.label),
|
|
1232
|
+
1
|
|
1233
|
+
/* TEXT */
|
|
1234
|
+
)
|
|
1235
|
+
], !0)
|
|
1221
1236
|
], 46, so));
|
|
1222
1237
|
}
|
|
1223
|
-
}), Le = /* @__PURE__ */ le(io, [["__scopeId", "data-v-
|
|
1238
|
+
}), Le = /* @__PURE__ */ le(io, [["__scopeId", "data-v-06d3ee3a"]]), uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1224
1239
|
__proto__: null,
|
|
1225
1240
|
default: Le
|
|
1226
1241
|
}, Symbol.toStringTag, { value: "Module" })), et = (s) => (Re("data-v-04b924e2"), s = s(), qe(), s), co = {
|
|
@@ -1235,7 +1250,7 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1235
1250
|
}, yo = { class: "maz-text-center maz-text-muted" }, go = {
|
|
1236
1251
|
key: 1,
|
|
1237
1252
|
class: "m-table-footer"
|
|
1238
|
-
}, zo = /* @__PURE__ */ et(() => /* @__PURE__ */
|
|
1253
|
+
}, zo = /* @__PURE__ */ et(() => /* @__PURE__ */ B(
|
|
1239
1254
|
"div",
|
|
1240
1255
|
{ class: "m-table-spacer" },
|
|
1241
1256
|
null,
|
|
@@ -1244,7 +1259,7 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1244
1259
|
)), ko = {
|
|
1245
1260
|
key: 0,
|
|
1246
1261
|
class: "m-table-footer-pagination"
|
|
1247
|
-
}, wo = { class: "m-table-footer-pagination-items-per-page" }, $o = /* @__PURE__ */ et(() => /* @__PURE__ */
|
|
1262
|
+
}, wo = { class: "m-table-footer-pagination-items-per-page" }, $o = /* @__PURE__ */ et(() => /* @__PURE__ */ B(
|
|
1248
1263
|
"span",
|
|
1249
1264
|
{ class: "maz-hidden maz-text-sm maz-text-muted tab-s:maz-block" },
|
|
1250
1265
|
" Item per page ",
|
|
@@ -1314,7 +1329,7 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1314
1329
|
F.value = o;
|
|
1315
1330
|
}
|
|
1316
1331
|
);
|
|
1317
|
-
const
|
|
1332
|
+
const C = c({
|
|
1318
1333
|
get: () => F.value,
|
|
1319
1334
|
set: (o) => {
|
|
1320
1335
|
F.value = o, w("update:page", o);
|
|
@@ -1327,33 +1342,33 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1327
1342
|
{ label: 50, value: 50 },
|
|
1328
1343
|
{ label: 100, value: 100 },
|
|
1329
1344
|
{ label: 200, value: 200 }
|
|
1330
|
-
]),
|
|
1345
|
+
]), h = T(t.pageSize);
|
|
1331
1346
|
ge(
|
|
1332
1347
|
() => t.pageSize,
|
|
1333
1348
|
(o) => {
|
|
1334
|
-
|
|
1349
|
+
h.value = o;
|
|
1335
1350
|
}
|
|
1336
1351
|
);
|
|
1337
1352
|
const M = c({
|
|
1338
|
-
get: () =>
|
|
1353
|
+
get: () => h.value,
|
|
1339
1354
|
set: (o) => {
|
|
1340
|
-
|
|
1355
|
+
h.value = o, w("update:page-size", o);
|
|
1341
1356
|
}
|
|
1342
1357
|
}), P = c(() => {
|
|
1343
1358
|
var o;
|
|
1344
1359
|
return t.totalPages ?? (M.value === Number.POSITIVE_INFINITY || !((o = t.rows) != null && o.length)) ? 1 : Math.ceil(t.rows.length / M.value);
|
|
1345
1360
|
});
|
|
1346
1361
|
function Q() {
|
|
1347
|
-
|
|
1362
|
+
C.value = 1;
|
|
1348
1363
|
}
|
|
1349
|
-
function
|
|
1350
|
-
|
|
1364
|
+
function y() {
|
|
1365
|
+
C.value = P.value;
|
|
1351
1366
|
}
|
|
1352
1367
|
function ee() {
|
|
1353
|
-
|
|
1368
|
+
C.value = C.value - 1;
|
|
1354
1369
|
}
|
|
1355
1370
|
function pe() {
|
|
1356
|
-
|
|
1371
|
+
C.value = C.value + 1;
|
|
1357
1372
|
}
|
|
1358
1373
|
const W = c(() => {
|
|
1359
1374
|
if (!t.pagination || t.noPaginateRows || M.value === Number.POSITIVE_INFINITY)
|
|
@@ -1367,10 +1382,10 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1367
1382
|
$.value = ae();
|
|
1368
1383
|
}
|
|
1369
1384
|
);
|
|
1370
|
-
const te = T(),
|
|
1385
|
+
const te = T(), re = c(() => [
|
|
1371
1386
|
// eslint-disable-next-line unicorn/no-null
|
|
1372
1387
|
{ label: t.searchByAllLabel, value: null },
|
|
1373
|
-
...
|
|
1388
|
+
...x.value.map((o) => ({
|
|
1374
1389
|
label: o.label,
|
|
1375
1390
|
value: o.key
|
|
1376
1391
|
}))
|
|
@@ -1381,7 +1396,7 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1381
1396
|
R.value = o;
|
|
1382
1397
|
}
|
|
1383
1398
|
);
|
|
1384
|
-
const
|
|
1399
|
+
const J = c({
|
|
1385
1400
|
get: () => R.value,
|
|
1386
1401
|
set: (o) => {
|
|
1387
1402
|
R.value = o, w("update:search-query", o);
|
|
@@ -1391,20 +1406,20 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1391
1406
|
return [...o].sort((k, p) => {
|
|
1392
1407
|
if (q.value === void 0 || U.value === void 0)
|
|
1393
1408
|
return 0;
|
|
1394
|
-
const K = k[
|
|
1409
|
+
const K = k[x.value[q.value].key], e = p[x.value[q.value].key];
|
|
1395
1410
|
return typeof K == "string" && typeof e == "string" ? U.value === "ASC" ? K.localeCompare(e) : e.localeCompare(K) : U.value === "ASC" ? K - e : e - K;
|
|
1396
1411
|
});
|
|
1397
1412
|
}
|
|
1398
1413
|
function me(o) {
|
|
1399
|
-
if (t.noSearchInRow || typeof
|
|
1414
|
+
if (t.noSearchInRow || typeof J.value != "string")
|
|
1400
1415
|
return W.value;
|
|
1401
|
-
const k =
|
|
1416
|
+
const k = J.value.toLowerCase();
|
|
1402
1417
|
return [...o].filter((p) => te.value ? String(p[te.value]).toLowerCase().includes(k) : Object.values(p).some((K) => typeof K == "string" || typeof K == "number" || typeof K == "boolean" ? String(K).toLowerCase().includes(k) : !1));
|
|
1403
1418
|
}
|
|
1404
1419
|
const D = c(() => {
|
|
1405
1420
|
const o = me(W.value);
|
|
1406
1421
|
return fe(o);
|
|
1407
|
-
}), a = Te(), E = c(() => t.search || !!t.title || !!a.title),
|
|
1422
|
+
}), a = Te(), E = c(() => t.search || !!t.title || !!a.title), X = c(() => t.pagination), x = T(G());
|
|
1408
1423
|
function G() {
|
|
1409
1424
|
var o;
|
|
1410
1425
|
return ((o = t.headers) == null ? void 0 : o.map(
|
|
@@ -1432,12 +1447,12 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1432
1447
|
function Se(o) {
|
|
1433
1448
|
for (const k of D.value)
|
|
1434
1449
|
k.selected = o;
|
|
1435
|
-
|
|
1450
|
+
ie();
|
|
1436
1451
|
}
|
|
1437
|
-
function
|
|
1438
|
-
D.value[k].selected = o,
|
|
1452
|
+
function Be(o, k) {
|
|
1453
|
+
D.value[k].selected = o, ie();
|
|
1439
1454
|
}
|
|
1440
|
-
function
|
|
1455
|
+
function ie(o) {
|
|
1441
1456
|
o = o ?? ye();
|
|
1442
1457
|
const k = o != null && o.length ? o : void 0;
|
|
1443
1458
|
w("update:model-value", k);
|
|
@@ -1447,7 +1462,7 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1447
1462
|
}
|
|
1448
1463
|
return Oe(() => {
|
|
1449
1464
|
const o = ye();
|
|
1450
|
-
o != null && o.length &&
|
|
1465
|
+
o != null && o.length && ie(o);
|
|
1451
1466
|
}), (o, k) => (r(), g(
|
|
1452
1467
|
"div",
|
|
1453
1468
|
{
|
|
@@ -1455,12 +1470,12 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1455
1470
|
},
|
|
1456
1471
|
[
|
|
1457
1472
|
E.value ? (r(), g("div", co, [
|
|
1458
|
-
|
|
1473
|
+
B("div", po, [
|
|
1459
1474
|
o.title || o.$slots.title ? V(o.$slots, "title", { key: 0 }, () => [
|
|
1460
|
-
|
|
1475
|
+
B(
|
|
1461
1476
|
"span",
|
|
1462
1477
|
fo,
|
|
1463
|
-
|
|
1478
|
+
Y(o.title),
|
|
1464
1479
|
1
|
|
1465
1480
|
/* TEXT */
|
|
1466
1481
|
)
|
|
@@ -1475,11 +1490,11 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1475
1490
|
style: { width: "8rem" },
|
|
1476
1491
|
placeholder: o.searchByPlaceholder,
|
|
1477
1492
|
size: b(v),
|
|
1478
|
-
options:
|
|
1493
|
+
options: re.value
|
|
1479
1494
|
}, null, 8, ["modelValue", "color", "placeholder", "size", "options"])),
|
|
1480
1495
|
_(Ke, {
|
|
1481
|
-
modelValue:
|
|
1482
|
-
"onUpdate:modelValue": k[1] || (k[1] = (p) =>
|
|
1496
|
+
modelValue: J.value,
|
|
1497
|
+
"onUpdate:modelValue": k[1] || (k[1] = (p) => J.value = p),
|
|
1483
1498
|
size: b(v),
|
|
1484
1499
|
color: o.color,
|
|
1485
1500
|
placeholder: o.searchPlaceholder,
|
|
@@ -1487,11 +1502,11 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1487
1502
|
}, null, 8, ["modelValue", "size", "color", "placeholder", "left-icon"])
|
|
1488
1503
|
])) : u("v-if", !0)
|
|
1489
1504
|
])) : u("v-if", !0),
|
|
1490
|
-
|
|
1505
|
+
B(
|
|
1491
1506
|
"table",
|
|
1492
1507
|
{
|
|
1493
1508
|
class: S([{ "--elevation": o.elevation, "--has-layout": o.tableLayout }, o.tableClass]),
|
|
1494
|
-
style:
|
|
1509
|
+
style: se(o.tableStyle)
|
|
1495
1510
|
},
|
|
1496
1511
|
[
|
|
1497
1512
|
o.caption || o.$slots.caption ? (r(), g("caption", vo, [
|
|
@@ -1499,14 +1514,14 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1499
1514
|
@slot caption - add caption on top or bottom of the table
|
|
1500
1515
|
`),
|
|
1501
1516
|
V(o.$slots, "caption", {}, () => [
|
|
1502
|
-
|
|
1503
|
-
|
|
1517
|
+
ne(
|
|
1518
|
+
Y(o.caption),
|
|
1504
1519
|
1
|
|
1505
1520
|
/* TEXT */
|
|
1506
1521
|
)
|
|
1507
1522
|
], !0)
|
|
1508
1523
|
])) : u("v-if", !0),
|
|
1509
|
-
|
|
1524
|
+
x.value ? (r(), g("thead", bo, [
|
|
1510
1525
|
u(`
|
|
1511
1526
|
@slot thead - content in thead element
|
|
1512
1527
|
`),
|
|
@@ -1531,14 +1546,14 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1531
1546
|
(r(!0), g(
|
|
1532
1547
|
be,
|
|
1533
1548
|
null,
|
|
1534
|
-
we(
|
|
1549
|
+
we(x.value, (p, K) => (r(), I(Ae, {
|
|
1535
1550
|
key: K,
|
|
1536
1551
|
scope: p.scope,
|
|
1537
1552
|
align: p.align,
|
|
1538
1553
|
rowspan: p.rowspan,
|
|
1539
1554
|
colspan: p.colspan,
|
|
1540
1555
|
headers: p.thHeaders,
|
|
1541
|
-
style:
|
|
1556
|
+
style: se({ width: p.width, textAlign: p.align }),
|
|
1542
1557
|
class: S(["maz-group", [
|
|
1543
1558
|
{ "--hidden": p.hidden, "--sortable": p.sortable ?? o.sortable },
|
|
1544
1559
|
p.classes,
|
|
@@ -1547,7 +1562,7 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1547
1562
|
onClick: (e) => (p.sortable ?? o.sortable) && Ie(K)
|
|
1548
1563
|
}, {
|
|
1549
1564
|
default: L(() => [
|
|
1550
|
-
|
|
1565
|
+
B(
|
|
1551
1566
|
"span",
|
|
1552
1567
|
{
|
|
1553
1568
|
class: S({ "maz-sr-only": p.srOnly })
|
|
@@ -1571,8 +1586,8 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1571
1586
|
header: p,
|
|
1572
1587
|
label: p.label
|
|
1573
1588
|
}, () => [
|
|
1574
|
-
|
|
1575
|
-
|
|
1589
|
+
ne(
|
|
1590
|
+
Y(p.label),
|
|
1576
1591
|
1
|
|
1577
1592
|
/* TEXT */
|
|
1578
1593
|
)
|
|
@@ -1608,7 +1623,7 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1608
1623
|
@slot actions-header - replace text of actions header
|
|
1609
1624
|
`),
|
|
1610
1625
|
V(o.$slots, "actions-header", {}, () => [
|
|
1611
|
-
|
|
1626
|
+
ne(" Actions ")
|
|
1612
1627
|
], !0)
|
|
1613
1628
|
]),
|
|
1614
1629
|
_: 3
|
|
@@ -1625,7 +1640,7 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1625
1640
|
color: o.color,
|
|
1626
1641
|
class: "!maz-absolute"
|
|
1627
1642
|
}, null, 8, ["color"])) : u("v-if", !0),
|
|
1628
|
-
|
|
1643
|
+
B(
|
|
1629
1644
|
"tbody",
|
|
1630
1645
|
{
|
|
1631
1646
|
class: S({ "--divider": z.value })
|
|
@@ -1661,7 +1676,7 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1661
1676
|
_(Le, {
|
|
1662
1677
|
size: "xs",
|
|
1663
1678
|
"model-value": p.selected,
|
|
1664
|
-
"onUpdate:modelValue": (e) =>
|
|
1679
|
+
"onUpdate:modelValue": (e) => Be(e, K)
|
|
1665
1680
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
1666
1681
|
], !0)
|
|
1667
1682
|
]),
|
|
@@ -1674,7 +1689,7 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1674
1689
|
(r(!0), g(
|
|
1675
1690
|
be,
|
|
1676
1691
|
null,
|
|
1677
|
-
we(
|
|
1692
|
+
we(x.value, ({ key: e, align: n, classes: i }, m) => (r(), I(ze, {
|
|
1678
1693
|
key: m,
|
|
1679
1694
|
align: n,
|
|
1680
1695
|
class: S(i)
|
|
@@ -1699,8 +1714,8 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1699
1714
|
row: p,
|
|
1700
1715
|
value: p[e]
|
|
1701
1716
|
}, () => [
|
|
1702
|
-
|
|
1703
|
-
|
|
1717
|
+
ne(
|
|
1718
|
+
Y(p[e]),
|
|
1704
1719
|
1
|
|
1705
1720
|
/* TEXT */
|
|
1706
1721
|
)
|
|
@@ -1739,19 +1754,19 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1739
1754
|
)) : (r(), I(Me, { key: 1 }, {
|
|
1740
1755
|
default: L(() => [
|
|
1741
1756
|
_(ze, {
|
|
1742
|
-
colspan:
|
|
1757
|
+
colspan: x.value.length + (N.value ? 1 : 0) + (o.$slots.actions ? 1 : 0)
|
|
1743
1758
|
}, {
|
|
1744
1759
|
default: L(() => [
|
|
1745
1760
|
u(`
|
|
1746
1761
|
@slot no-results - replace no results
|
|
1747
1762
|
`),
|
|
1748
1763
|
V(o.$slots, "no-results", {}, () => [
|
|
1749
|
-
|
|
1764
|
+
B("p", yo, [
|
|
1750
1765
|
u(`
|
|
1751
1766
|
@slot no-results-text - replace no results test only
|
|
1752
1767
|
`),
|
|
1753
1768
|
V(o.$slots, "no-results-text", {}, () => [
|
|
1754
|
-
|
|
1769
|
+
ne(" No results ")
|
|
1755
1770
|
], !0)
|
|
1756
1771
|
])
|
|
1757
1772
|
], !0)
|
|
@@ -1772,10 +1787,10 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1772
1787
|
6
|
|
1773
1788
|
/* CLASS, STYLE */
|
|
1774
1789
|
),
|
|
1775
|
-
|
|
1790
|
+
X.value ? (r(), g("div", go, [
|
|
1776
1791
|
zo,
|
|
1777
1792
|
o.pagination ? (r(), g("div", ko, [
|
|
1778
|
-
|
|
1793
|
+
B("div", wo, [
|
|
1779
1794
|
$o,
|
|
1780
1795
|
_(Ue, {
|
|
1781
1796
|
modelValue: M.value,
|
|
@@ -1790,13 +1805,13 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1790
1805
|
P.value ? (r(), g(
|
|
1791
1806
|
"span",
|
|
1792
1807
|
Vo,
|
|
1793
|
-
|
|
1808
|
+
Y(C.value) + " - " + Y(D.value.length) + " of " + Y(P.value),
|
|
1794
1809
|
1
|
|
1795
1810
|
/* TEXT */
|
|
1796
1811
|
)) : u("v-if", !0),
|
|
1797
|
-
|
|
1812
|
+
B("div", Io, [
|
|
1798
1813
|
_(ve, {
|
|
1799
|
-
disabled:
|
|
1814
|
+
disabled: C.value === 1,
|
|
1800
1815
|
size: b(v),
|
|
1801
1816
|
color: "transparent",
|
|
1802
1817
|
fab: "",
|
|
@@ -1810,7 +1825,7 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1810
1825
|
/* STABLE */
|
|
1811
1826
|
}, 8, ["disabled", "size"]),
|
|
1812
1827
|
_(ve, {
|
|
1813
|
-
disabled:
|
|
1828
|
+
disabled: C.value === 1,
|
|
1814
1829
|
size: b(v),
|
|
1815
1830
|
color: "transparent",
|
|
1816
1831
|
fab: "",
|
|
@@ -1824,7 +1839,7 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1824
1839
|
/* STABLE */
|
|
1825
1840
|
}, 8, ["disabled", "size"]),
|
|
1826
1841
|
_(ve, {
|
|
1827
|
-
disabled:
|
|
1842
|
+
disabled: C.value === P.value,
|
|
1828
1843
|
size: b(v),
|
|
1829
1844
|
color: "transparent",
|
|
1830
1845
|
fab: "",
|
|
@@ -1838,12 +1853,12 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1838
1853
|
/* STABLE */
|
|
1839
1854
|
}, 8, ["disabled", "size"]),
|
|
1840
1855
|
_(ve, {
|
|
1841
|
-
disabled:
|
|
1856
|
+
disabled: C.value === P.value,
|
|
1842
1857
|
size: b(v),
|
|
1843
1858
|
color: "transparent",
|
|
1844
1859
|
fab: "",
|
|
1845
1860
|
"no-elevation": "",
|
|
1846
|
-
onClick:
|
|
1861
|
+
onClick: y
|
|
1847
1862
|
}, {
|
|
1848
1863
|
default: L(() => [
|
|
1849
1864
|
_(b(je), { class: "maz-rotate-180 maz-text-base" })
|
|
@@ -1859,9 +1874,9 @@ const xe = { render: Xe }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1859
1874
|
/* CLASS */
|
|
1860
1875
|
));
|
|
1861
1876
|
}
|
|
1862
|
-
}),
|
|
1877
|
+
}), Co = /* @__PURE__ */ le(So, [["__scopeId", "data-v-04b924e2"]]);
|
|
1863
1878
|
export {
|
|
1864
|
-
|
|
1879
|
+
Co as M,
|
|
1865
1880
|
le as _,
|
|
1866
1881
|
Ee as i
|
|
1867
1882
|
};
|