@nxgt/material-vue 0.3.2 → 0.5.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/README.md +25 -7
- package/dist/{camera-0FF92_uw.js → camera-Gbi9FZ9_.js} +7 -7
- package/dist/{components-CIZI-QTh.js → components-7Ajwd8cr.js} +31524 -29120
- package/dist/components.js +5 -4
- package/dist/{use-localized-date-C8vHzgho.js → composables-C5LhV5Vi.js} +126 -46
- package/dist/composables.js +3 -70
- package/dist/{dnd-DxjI7Q-L.js → dnd-DJL4dR9c.js} +1 -1
- package/dist/dnd.js +1 -1
- package/dist/{i18n-DXZMN9FA.js → i18n-GAjGs1da.js} +86 -0
- package/dist/i18n.js +1 -1
- package/dist/lib/components/index.d.ts +15 -0
- package/dist/lib/components/ui/anchor-heading/anchor-heading.vue.d.ts +20 -0
- package/dist/lib/components/ui/anchor-heading/index.d.ts +2 -0
- package/dist/lib/components/ui/api-endpoint/api-endpoint.vue.d.ts +20 -0
- package/dist/lib/components/ui/api-endpoint/index.d.ts +2 -0
- package/dist/lib/components/ui/api-operation/api-operation.vue.d.ts +24 -0
- package/dist/lib/components/ui/api-operation/index.d.ts +2 -0
- package/dist/lib/components/ui/cards/crew-card.vue.d.ts +21 -0
- package/dist/lib/components/ui/cards/feature-card.vue.d.ts +22 -0
- package/dist/lib/components/ui/cards/index.d.ts +22 -0
- package/dist/lib/components/ui/cards/media-card.vue.d.ts +21 -0
- package/dist/lib/components/ui/cards/notice-card.vue.d.ts +20 -0
- package/dist/lib/components/ui/cards/overlay-card.vue.d.ts +22 -0
- package/dist/lib/components/ui/cards/pricing-card.vue.d.ts +25 -0
- package/dist/lib/components/ui/cards/profile-card.vue.d.ts +22 -0
- package/dist/lib/components/ui/cards/quote-card.vue.d.ts +20 -0
- package/dist/lib/components/ui/cards/split-card.vue.d.ts +22 -0
- package/dist/lib/components/ui/cards/spotlight-card.vue.d.ts +20 -0
- package/dist/lib/components/ui/cards/ticket-card.vue.d.ts +21 -0
- package/dist/lib/components/ui/code/code-group.vue.d.ts +17 -0
- package/dist/lib/components/ui/code/index.d.ts +2 -0
- package/dist/lib/components/ui/contacts/consts.d.ts +1 -1
- package/dist/lib/components/ui/copy-button/copy-button.vue.d.ts +12 -2
- package/dist/lib/components/ui/doc/doc-context.d.ts +7 -0
- package/dist/lib/components/ui/doc/doc.keyboard.d.ts +20 -0
- package/dist/lib/components/ui/doc/doc.store.d.ts +2 -0
- package/dist/lib/components/ui/doc/doc.utils.d.ts +19 -0
- package/dist/lib/components/ui/doc/doc.vue.d.ts +37 -0
- package/dist/lib/components/ui/doc/index.d.ts +24 -0
- package/dist/lib/components/ui/doc/partials/doc-article.vue.d.ts +17 -0
- package/dist/lib/components/ui/doc/partials/doc-child-cards.vue.d.ts +6 -0
- package/dist/lib/components/ui/doc/partials/doc-copy-markdown.vue.d.ts +6 -0
- package/dist/lib/components/ui/doc/partials/doc-empty.vue.d.ts +25 -0
- package/dist/lib/components/ui/doc/partials/doc-header.vue.d.ts +31 -0
- package/dist/lib/components/ui/doc/partials/doc-link.vue.d.ts +18 -0
- package/dist/lib/components/ui/doc/partials/doc-nav-list.vue.d.ts +8 -0
- package/dist/lib/components/ui/doc/partials/doc-nav.vue.d.ts +7 -0
- package/dist/lib/components/ui/doc/partials/doc-page.vue.d.ts +27 -0
- package/dist/lib/components/ui/doc/partials/doc-pager.vue.d.ts +7 -0
- package/dist/lib/components/ui/doc/partials/doc-progress.vue.d.ts +5 -0
- package/dist/lib/components/ui/doc/partials/doc-search-hit.vue.d.ts +12 -0
- package/dist/lib/components/ui/doc/partials/doc-search.vue.d.ts +3 -0
- package/dist/lib/components/ui/doc/partials/doc-see-also.vue.d.ts +6 -0
- package/dist/lib/components/ui/doc/partials/doc-sidebar.vue.d.ts +17 -0
- package/dist/lib/components/ui/doc/partials/doc-skip-link.vue.d.ts +6 -0
- package/dist/lib/components/ui/doc/partials/doc-toc.vue.d.ts +9 -0
- package/dist/lib/components/ui/doc/partials/doc-topbar.vue.d.ts +19 -0
- package/dist/lib/components/ui/doc/types.d.ts +37 -0
- package/dist/lib/components/ui/doc/use-doc.d.ts +29 -0
- package/dist/lib/components/ui/event-calendar/event-calendar.vue.d.ts +1 -1
- package/dist/lib/components/ui/feedback/index.d.ts +2 -0
- package/dist/lib/components/ui/feedback/scroll-progress.vue.d.ts +10 -0
- package/dist/lib/components/ui/figure/figure.vue.d.ts +18 -0
- package/dist/lib/components/ui/figure/index.d.ts +2 -0
- package/dist/lib/components/ui/hero/hero.vue.d.ts +22 -0
- package/dist/lib/components/ui/hero/index.d.ts +2 -0
- package/dist/lib/components/ui/highlight-text/highlight-text.vue.d.ts +10 -0
- package/dist/lib/components/ui/highlight-text/index.d.ts +2 -0
- package/dist/lib/components/ui/list-tile/list-tile.vue.d.ts +2 -0
- package/dist/lib/components/ui/metrics/breakdown-card.vue.d.ts +14 -0
- package/dist/lib/components/ui/metrics/goal-card.vue.d.ts +11 -0
- package/dist/lib/components/ui/metrics/index.d.ts +10 -0
- package/dist/lib/components/ui/metrics/rank-card.vue.d.ts +15 -0
- package/dist/lib/components/ui/metrics/sparkline.vue.d.ts +7 -0
- package/dist/lib/components/ui/metrics/trend-card.vue.d.ts +13 -0
- package/dist/lib/components/ui/pager/index.d.ts +2 -0
- package/dist/lib/components/ui/pager/pager.vue.d.ts +21 -0
- package/dist/lib/components/ui/param-table/index.d.ts +2 -0
- package/dist/lib/components/ui/param-table/param-table.vue.d.ts +15 -0
- package/dist/lib/components/ui/see-also/index.d.ts +2 -0
- package/dist/lib/components/ui/see-also/see-also.vue.d.ts +16 -0
- package/dist/lib/components/ui/skip-link/index.d.ts +2 -0
- package/dist/lib/components/ui/skip-link/skip-link.vue.d.ts +20 -0
- package/dist/lib/components/ui/steps/index.d.ts +4 -0
- package/dist/lib/components/ui/steps/steps-item.vue.d.ts +21 -0
- package/dist/lib/components/ui/steps/steps.vue.d.ts +17 -0
- package/dist/lib/components/ui/stx-player/index.d.ts +2 -2
- package/dist/lib/components/ui/stx-player/stx-player.vue.d.ts +1 -1
- package/dist/lib/components/ui/toc/index.d.ts +2 -0
- package/dist/lib/components/ui/toc/toc.vue.d.ts +24 -0
- package/dist/lib/composables/index.d.ts +1 -0
- package/dist/lib/composables/use-heading-spy.d.ts +7 -0
- package/dist/lib/i18n/resources/en/index.d.ts +49 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +49 -0
- package/dist/lib/i18n/resources/fr/index.d.ts +49 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +49 -0
- package/dist/lib/i18n/resources/index.d.ts +98 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/lib/string.utils.d.ts +9 -0
- package/dist/lib/lib/url.utils.d.ts +2 -0
- package/dist/lib/nuxt/component-names.d.ts +1 -1
- package/dist/{lib-kSGjbZgz.js → lib-DZZQQdzj.js} +146 -119
- package/dist/lib.js +3 -3
- package/dist/main.js +9 -10
- package/dist/material-vue.css +1 -1
- package/dist/{pdf-outline-sidebar-iHgJ3Tdm.js → pdf-outline-sidebar-7EEhkMof.js} +6 -6
- package/dist/{pdf-page-g1icnvlW.js → pdf-page-bDjssyjX.js} +1 -1
- package/dist/{pdf-page-list-BW9tw41T.js → pdf-page-list-DPGxoujP.js} +16 -16
- package/dist/{pdf-reader-C_dSoAH6.js → pdf-reader-B4Qeofx-.js} +13 -13
- package/dist/{pdf-sidebar-DW_or7mU.js → pdf-sidebar-C36bGZ5M.js} +4 -4
- package/dist/{pdf-thumbnail-sidebar-xrrwRQIL.js → pdf-thumbnail-sidebar-B5M7JduL.js} +17 -17
- package/dist/{pdf-toolbar-BcKsxHJ2.js → pdf-toolbar-BKeM1-o9.js} +21 -21
- package/dist/{stx-player-lvdY9PTs.js → stx-player-W-82wI6s.js} +7 -7
- package/lib/nuxt/component-names.ts +45 -0
- package/package.json +1 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { A as e, C as t, E as n, F as r, I as i, L as a, P as o, R as s, a as c, b as l, c as u, d, g as f, h as p, k as m, l as h, q as g, v as _, w as v, x as y, y as
|
|
2
|
-
import { i as
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { createPinia as
|
|
1
|
+
import { A as e, C as t, E as n, F as r, I as i, L as a, P as o, R as s, a as c, b as l, c as u, d, g as f, h as p, k as m, l as h, q as g, v as _, w as v, x as y, y as b } from "./i18n-GAjGs1da.js";
|
|
2
|
+
import { i as ee } from "./date.utils-C08DvLLr.js";
|
|
3
|
+
import { defineComponent as te, getCurrentInstance as ne, h as re, inject as ie, provide as ae, useId as oe } from "vue";
|
|
4
|
+
import { createPinia as se, defineStore as ce, setActivePinia as le, storeToRefs as ue } from "pinia";
|
|
5
5
|
//#region node_modules/lodash-es/_WeakMap.js
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
if (!t(e)) return
|
|
6
|
+
var x = m(s, "WeakMap"), de = _(Object.keys, Object), fe = Object.prototype.hasOwnProperty;
|
|
7
|
+
function S(e) {
|
|
8
|
+
if (!t(e)) return de(e);
|
|
9
9
|
var n = [];
|
|
10
|
-
for (var r in Object(e))
|
|
10
|
+
for (var r in Object(e)) fe.call(e, r) && r != "constructor" && n.push(r);
|
|
11
11
|
return n;
|
|
12
12
|
}
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region node_modules/lodash-es/keys.js
|
|
15
|
-
function
|
|
16
|
-
return v(e) ?
|
|
15
|
+
function C(e) {
|
|
16
|
+
return v(e) ? b(e) : S(e);
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region node_modules/lodash-es/_arrayPush.js
|
|
20
|
-
function
|
|
20
|
+
function pe(e, t) {
|
|
21
21
|
for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
|
|
22
22
|
return e;
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region node_modules/lodash-es/_arrayFilter.js
|
|
26
|
-
function
|
|
26
|
+
function me(e, t) {
|
|
27
27
|
for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
|
|
28
28
|
var o = e[n];
|
|
29
29
|
t(o, n, e) && (a[i++] = o);
|
|
@@ -32,38 +32,38 @@ function he(e, t) {
|
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region node_modules/lodash-es/stubArray.js
|
|
35
|
-
function
|
|
35
|
+
function he() {
|
|
36
36
|
return [];
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region node_modules/lodash-es/_getSymbols.js
|
|
40
|
-
var
|
|
41
|
-
return e == null ? [] : (e = Object(e),
|
|
42
|
-
return
|
|
40
|
+
var ge = Object.prototype.propertyIsEnumerable, w = Object.getOwnPropertySymbols, _e = w ? function(e) {
|
|
41
|
+
return e == null ? [] : (e = Object(e), me(w(e), function(t) {
|
|
42
|
+
return ge.call(e, t);
|
|
43
43
|
}));
|
|
44
|
-
} :
|
|
44
|
+
} : he;
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region node_modules/lodash-es/_baseGetAllKeys.js
|
|
47
|
-
function
|
|
47
|
+
function ve(e, t, n) {
|
|
48
48
|
var r = t(e);
|
|
49
|
-
return o(e) ? r :
|
|
49
|
+
return o(e) ? r : pe(r, n(e));
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region node_modules/lodash-es/_getAllKeys.js
|
|
53
|
-
function
|
|
54
|
-
return
|
|
53
|
+
function T(e) {
|
|
54
|
+
return ve(e, C, _e);
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
57
57
|
//#region node_modules/lodash-es/_DataView.js
|
|
58
|
-
var
|
|
59
|
-
(
|
|
60
|
-
var n = i(t), r = n ==
|
|
58
|
+
var E = m(s, "DataView"), D = m(s, "Promise"), O = m(s, "Set"), k = "[object Map]", ye = "[object Object]", A = "[object Promise]", j = "[object Set]", M = "[object WeakMap]", be = "[object DataView]", xe = e(E), Se = e(f), Ce = e(D), we = e(O), Te = e(x), N = i;
|
|
59
|
+
(E && N(new E(/* @__PURE__ */ new ArrayBuffer(1))) != be || f && N(new f()) != k || D && N(D.resolve()) != A || O && N(new O()) != j || x && N(new x()) != M) && (N = function(t) {
|
|
60
|
+
var n = i(t), r = n == ye ? t.constructor : void 0, a = r ? e(r) : "";
|
|
61
61
|
if (a) switch (a) {
|
|
62
|
-
case xe: return
|
|
63
|
-
case Se: return
|
|
64
|
-
case Ce: return
|
|
65
|
-
case we: return
|
|
66
|
-
case Te: return
|
|
62
|
+
case xe: return be;
|
|
63
|
+
case Se: return k;
|
|
64
|
+
case Ce: return A;
|
|
65
|
+
case we: return j;
|
|
66
|
+
case Te: return M;
|
|
67
67
|
}
|
|
68
68
|
return n;
|
|
69
69
|
});
|
|
@@ -173,8 +173,8 @@ function Je(e, t, r, i, a, o, s) {
|
|
|
173
173
|
//#region node_modules/lodash-es/_equalObjects.js
|
|
174
174
|
var Ye = 1, Xe = Object.prototype.hasOwnProperty;
|
|
175
175
|
function Ze(e, t, n, r, i, a) {
|
|
176
|
-
var o = n & Ye, s =
|
|
177
|
-
if (c !=
|
|
176
|
+
var o = n & Ye, s = T(e), c = s.length;
|
|
177
|
+
if (c != T(t).length && !o) return !1;
|
|
178
178
|
for (var l = c; l--;) {
|
|
179
179
|
var u = s[l];
|
|
180
180
|
if (!(o ? u in t : Xe.call(t, u))) return !1;
|
|
@@ -214,8 +214,8 @@ function $e(e, t, n, r, i, a) {
|
|
|
214
214
|
if (!(n & Qe)) {
|
|
215
215
|
var g = f && H.call(e, "__wrapped__"), _ = p && H.call(t, "__wrapped__");
|
|
216
216
|
if (g || _) {
|
|
217
|
-
var v = g ? e.value() : e,
|
|
218
|
-
return a ||= new h(), i(v,
|
|
217
|
+
var v = g ? e.value() : e, b = _ ? t.value() : t;
|
|
218
|
+
return a ||= new h(), i(v, b, n, r, a);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
return m ? (a ||= new h(), Ze(e, t, n, r, i, a)) : !1;
|
|
@@ -236,13 +236,59 @@ function W(e) {
|
|
|
236
236
|
return e == null;
|
|
237
237
|
}
|
|
238
238
|
//#endregion
|
|
239
|
-
//#region lib/lib/
|
|
240
|
-
|
|
239
|
+
//#region lib/lib/string.utils.ts
|
|
240
|
+
function G(e) {
|
|
241
|
+
return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
242
|
+
}
|
|
241
243
|
function K(e) {
|
|
242
|
-
return
|
|
244
|
+
return e ? e.toLowerCase().replace(/_/g, "-") : "";
|
|
245
|
+
}
|
|
246
|
+
function q(e, t = ", ") {
|
|
247
|
+
return e.filter((e) => !!e).join(t);
|
|
248
|
+
}
|
|
249
|
+
function J(e, t) {
|
|
250
|
+
let n = t.trim();
|
|
251
|
+
if (!n) return [{
|
|
252
|
+
text: e,
|
|
253
|
+
match: !1
|
|
254
|
+
}];
|
|
255
|
+
let r = n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), i = new RegExp(r, "ig"), a = [], o = 0;
|
|
256
|
+
for (let t of e.matchAll(i)) {
|
|
257
|
+
let n = t.index ?? 0;
|
|
258
|
+
n > o && a.push({
|
|
259
|
+
text: e.slice(o, n),
|
|
260
|
+
match: !1
|
|
261
|
+
}), a.push({
|
|
262
|
+
text: t[0],
|
|
263
|
+
match: !0
|
|
264
|
+
}), o = n + t[0].length;
|
|
265
|
+
}
|
|
266
|
+
return o < e.length && a.push({
|
|
267
|
+
text: e.slice(o),
|
|
268
|
+
match: !1
|
|
269
|
+
}), a.length > 0 ? a : [{
|
|
270
|
+
text: e,
|
|
271
|
+
match: !1
|
|
272
|
+
}];
|
|
273
|
+
}
|
|
274
|
+
var tt = {
|
|
275
|
+
enumToKebabCase: K,
|
|
276
|
+
joinTruthyParts: q,
|
|
277
|
+
slugify: G,
|
|
278
|
+
splitMatch: J
|
|
279
|
+
}, nt = {
|
|
280
|
+
colorFromVariable(e, t = 1) {
|
|
281
|
+
return `rgb(from var(--${e}) r g b / ${t})`;
|
|
282
|
+
},
|
|
283
|
+
cssSize(e) {
|
|
284
|
+
if (!(e == null || e === "")) return typeof e == "number" ? `${e}px` : e;
|
|
285
|
+
}
|
|
286
|
+
}, Y = 0;
|
|
287
|
+
function X(e) {
|
|
288
|
+
return ne() ? `${e}:${oe()}` : (Y += 1, `${e}:${Y}`);
|
|
243
289
|
}
|
|
244
|
-
function
|
|
245
|
-
return (n) =>
|
|
290
|
+
function Z(e, t) {
|
|
291
|
+
return (n) => ce(X(e), {
|
|
246
292
|
state: () => ({
|
|
247
293
|
...t.state(),
|
|
248
294
|
...n
|
|
@@ -251,7 +297,7 @@ function q(e, t) {
|
|
|
251
297
|
getters: { ...t.getters ?? {} }
|
|
252
298
|
})();
|
|
253
299
|
}
|
|
254
|
-
function
|
|
300
|
+
function rt(e, t) {
|
|
255
301
|
return t ? {
|
|
256
302
|
...e,
|
|
257
303
|
...t
|
|
@@ -259,9 +305,9 @@ function tt(e, t) {
|
|
|
259
305
|
}
|
|
260
306
|
//#endregion
|
|
261
307
|
//#region lib/lib/pinia/filter-store.ts
|
|
262
|
-
function
|
|
308
|
+
function it(e, t, n = {}) {
|
|
263
309
|
let r = structuredClone(t);
|
|
264
|
-
return
|
|
310
|
+
return Z(e, {
|
|
265
311
|
state: () => structuredClone(r),
|
|
266
312
|
actions: {
|
|
267
313
|
updateFilter(e) {
|
|
@@ -283,7 +329,7 @@ function nt(e, t, n = {}) {
|
|
|
283
329
|
}
|
|
284
330
|
//#endregion
|
|
285
331
|
//#region lib/lib/pinia/run-status.ts
|
|
286
|
-
async function
|
|
332
|
+
async function at(e, t) {
|
|
287
333
|
e.start();
|
|
288
334
|
try {
|
|
289
335
|
let n = await t();
|
|
@@ -294,9 +340,9 @@ async function rt(e, t) {
|
|
|
294
340
|
}
|
|
295
341
|
//#endregion
|
|
296
342
|
//#region lib/lib/pinia/status-store.ts
|
|
297
|
-
function
|
|
343
|
+
function ot(e, t = { status: "idle" }, n = {}) {
|
|
298
344
|
let r = { ...t };
|
|
299
|
-
return
|
|
345
|
+
return Z(e, {
|
|
300
346
|
state: () => ({ ...r }),
|
|
301
347
|
actions: {
|
|
302
348
|
reset() {
|
|
@@ -315,9 +361,9 @@ function it(e, t = { status: "idle" }, n = {}) {
|
|
|
315
361
|
}
|
|
316
362
|
});
|
|
317
363
|
}
|
|
318
|
-
function
|
|
364
|
+
function st(e, t, n = {}) {
|
|
319
365
|
let r = structuredClone(t);
|
|
320
|
-
return
|
|
366
|
+
return Z(e, {
|
|
321
367
|
state: () => structuredClone(r),
|
|
322
368
|
actions: {
|
|
323
369
|
reset(e) {
|
|
@@ -341,7 +387,7 @@ function at(e, t, n = {}) {
|
|
|
341
387
|
}
|
|
342
388
|
//#endregion
|
|
343
389
|
//#region lib/lib/storage.utils.ts
|
|
344
|
-
function
|
|
390
|
+
function Q(e, t) {
|
|
345
391
|
try {
|
|
346
392
|
let n = localStorage.getItem(e);
|
|
347
393
|
if (n) return typeof t == "string" ? n : JSON.parse(n);
|
|
@@ -350,40 +396,40 @@ function J(e, t) {
|
|
|
350
396
|
}
|
|
351
397
|
return t;
|
|
352
398
|
}
|
|
353
|
-
function
|
|
399
|
+
function $(e, t) {
|
|
354
400
|
try {
|
|
355
401
|
localStorage.setItem(e, typeof t == "string" ? t : JSON.stringify(t));
|
|
356
402
|
} catch (t) {
|
|
357
403
|
console.warn(`Failed to store state for key "${e}":`, t);
|
|
358
404
|
}
|
|
359
405
|
}
|
|
360
|
-
function
|
|
406
|
+
function ct(e) {
|
|
361
407
|
try {
|
|
362
408
|
localStorage.removeItem(e);
|
|
363
409
|
} catch (t) {
|
|
364
410
|
console.warn(`Failed to remove state for key "${e}":`, t);
|
|
365
411
|
}
|
|
366
412
|
}
|
|
367
|
-
var
|
|
368
|
-
safeGetItem:
|
|
369
|
-
safeSetItem:
|
|
370
|
-
safeRemoveItem:
|
|
371
|
-
},
|
|
413
|
+
var lt = {
|
|
414
|
+
safeGetItem: Q,
|
|
415
|
+
safeSetItem: $,
|
|
416
|
+
safeRemoveItem: ct
|
|
417
|
+
}, ut = {
|
|
372
418
|
isDirty: !1,
|
|
373
419
|
step: 0,
|
|
374
420
|
values: {}
|
|
375
421
|
};
|
|
376
|
-
function
|
|
377
|
-
let r = t ??
|
|
422
|
+
function dt(e, t, n = {}) {
|
|
423
|
+
let r = t ?? ut.values, i = () => ({
|
|
378
424
|
isDirty: !1,
|
|
379
425
|
step: 0,
|
|
380
426
|
values: { ...r }
|
|
381
427
|
});
|
|
382
|
-
return
|
|
428
|
+
return Z(e, {
|
|
383
429
|
state: i,
|
|
384
430
|
actions: {
|
|
385
431
|
updateStep(t) {
|
|
386
|
-
this.step = typeof t == "function" ? t(this.step) : t,
|
|
432
|
+
this.step = typeof t == "function" ? t(this.step) : t, $(e, {
|
|
387
433
|
isDirty: this.isDirty,
|
|
388
434
|
step: this.step,
|
|
389
435
|
values: this.values
|
|
@@ -393,7 +439,7 @@ function st(e, t, n = {}) {
|
|
|
393
439
|
this.values = {
|
|
394
440
|
...this.values,
|
|
395
441
|
...typeof e == "function" ? e(this.values) : e
|
|
396
|
-
}, this.isDirty = !et(this.values,
|
|
442
|
+
}, this.isDirty = !et(this.values, ut.values);
|
|
397
443
|
},
|
|
398
444
|
reset() {
|
|
399
445
|
let e = i();
|
|
@@ -405,50 +451,51 @@ function st(e, t, n = {}) {
|
|
|
405
451
|
}
|
|
406
452
|
//#endregion
|
|
407
453
|
//#region lib/lib/client-only.utils.ts
|
|
408
|
-
var
|
|
409
|
-
function
|
|
410
|
-
return
|
|
454
|
+
var ft = Symbol("inside-client-only");
|
|
455
|
+
function pt(e) {
|
|
456
|
+
return te({
|
|
411
457
|
name: "ClientOnly",
|
|
412
458
|
inheritAttrs: !1,
|
|
413
459
|
setup(t, { attrs: n, slots: r }) {
|
|
414
|
-
let i =
|
|
415
|
-
return
|
|
460
|
+
let i = ie(ft, !1), a = ee();
|
|
461
|
+
return ae(ft, !0), () => !i && !a.value ? null : re(e, { ...n }, r);
|
|
416
462
|
}
|
|
417
463
|
});
|
|
418
464
|
}
|
|
419
465
|
//#endregion
|
|
420
|
-
//#region lib/lib/
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
466
|
+
//#region lib/lib/url.utils.ts
|
|
467
|
+
function mt(e) {
|
|
468
|
+
return new URL(e.url).searchParams;
|
|
469
|
+
}
|
|
470
|
+
function ht(e, t) {
|
|
471
|
+
return mt(e).get(t);
|
|
472
|
+
}
|
|
473
|
+
function gt(e) {
|
|
474
|
+
return /^(https?:)?\/\//.test(e) || e.startsWith("mailto:");
|
|
475
|
+
}
|
|
429
476
|
//#endregion
|
|
430
477
|
//#region lib/lib/array.utils.ts
|
|
431
|
-
function
|
|
478
|
+
function _t(e) {
|
|
432
479
|
return Array.from(new Set(e));
|
|
433
480
|
}
|
|
434
|
-
function
|
|
481
|
+
function vt(e, t, n) {
|
|
435
482
|
return e.find((e) => e[t] === n);
|
|
436
483
|
}
|
|
437
|
-
function
|
|
484
|
+
function yt(e, t, n) {
|
|
438
485
|
return e.filter((e) => n.includes(e[t]));
|
|
439
486
|
}
|
|
440
|
-
function
|
|
487
|
+
function bt(e, t) {
|
|
441
488
|
return {
|
|
442
|
-
findByKey: (n) =>
|
|
443
|
-
findByKeyIn: (n) =>
|
|
489
|
+
findByKey: (n) => vt(e, t, n),
|
|
490
|
+
findByKeyIn: (n) => yt(e, t, n)
|
|
444
491
|
};
|
|
445
492
|
}
|
|
446
|
-
function
|
|
447
|
-
return
|
|
493
|
+
function xt(e) {
|
|
494
|
+
return bt(e, "id");
|
|
448
495
|
}
|
|
449
496
|
//#endregion
|
|
450
497
|
//#region lib/lib/build-field-options.ts
|
|
451
|
-
function
|
|
498
|
+
function St(e, { valueKey: t, label: n }) {
|
|
452
499
|
return e.map((e) => ({
|
|
453
500
|
value: d(e, t),
|
|
454
501
|
label: typeof n == "function" ? n(e) : d(e, n)
|
|
@@ -456,79 +503,59 @@ function ht(e, { valueKey: t, label: n }) {
|
|
|
456
503
|
}
|
|
457
504
|
//#endregion
|
|
458
505
|
//#region lib/lib/format.utils.ts
|
|
459
|
-
function
|
|
506
|
+
function Ct(e, t) {
|
|
460
507
|
return e?.length ? e : t;
|
|
461
508
|
}
|
|
462
|
-
function
|
|
509
|
+
function wt(e, t) {
|
|
463
510
|
return e?.length ? e : t;
|
|
464
511
|
}
|
|
465
|
-
function
|
|
512
|
+
function Tt(e) {
|
|
466
513
|
let t = new FormData();
|
|
467
514
|
return typeof e == "object" && Object.entries(e).forEach(([e, n]) => {
|
|
468
515
|
W(n) || t.append(e, n);
|
|
469
516
|
}), t;
|
|
470
517
|
}
|
|
471
|
-
function
|
|
518
|
+
function Et(e) {
|
|
472
519
|
let t = {};
|
|
473
520
|
for (let [n, r] of e.entries()) t[n] = r;
|
|
474
521
|
return t;
|
|
475
522
|
}
|
|
476
523
|
//#endregion
|
|
477
524
|
//#region lib/lib/object.utils.ts
|
|
478
|
-
function
|
|
525
|
+
function Dt(e, t) {
|
|
479
526
|
let n = {};
|
|
480
527
|
if (!Array.isArray(t)) n[t] = e?.[t];
|
|
481
528
|
else for (let r of t) n[r] = e?.[r];
|
|
482
529
|
return n;
|
|
483
530
|
}
|
|
484
|
-
function
|
|
531
|
+
function Ot(e, t) {
|
|
485
532
|
let n = { ...e };
|
|
486
533
|
if (Array.isArray(t)) for (let e of t) delete n?.[e];
|
|
487
534
|
else delete n?.[t];
|
|
488
535
|
return n ?? {};
|
|
489
536
|
}
|
|
490
|
-
function
|
|
537
|
+
function kt(e) {
|
|
491
538
|
return e;
|
|
492
539
|
}
|
|
493
|
-
async function
|
|
540
|
+
async function At(e) {
|
|
494
541
|
return await e;
|
|
495
542
|
}
|
|
496
|
-
function
|
|
543
|
+
function jt(e, t = !1) {
|
|
497
544
|
return Object.fromEntries(Object.entries(e).filter(([e, n]) => t ? n != null && n !== void 0 : n !== void 0));
|
|
498
545
|
}
|
|
499
546
|
//#endregion
|
|
500
547
|
//#region lib/lib/promise.utils.ts
|
|
501
|
-
function
|
|
548
|
+
function Mt(e) {
|
|
502
549
|
return new Promise((t) => setTimeout(t, e));
|
|
503
550
|
}
|
|
504
551
|
//#endregion
|
|
505
|
-
//#region lib/lib/
|
|
506
|
-
function
|
|
507
|
-
return e ? e.toLowerCase().replace(/_/g, "-") : "";
|
|
508
|
-
}
|
|
509
|
-
function Dt(e, t = ", ") {
|
|
510
|
-
return e.filter((e) => !!e).join(t);
|
|
511
|
-
}
|
|
512
|
-
var Ot = {
|
|
513
|
-
enumToKebabCase: Et,
|
|
514
|
-
joinTruthyParts: Dt
|
|
515
|
-
}, kt = (e, t) => typeof e == "function" ? e(t) : e, At = (e, t = "files") => {
|
|
552
|
+
//#region lib/lib/ui.utils.ts
|
|
553
|
+
var Nt = (e, t) => typeof e == "function" ? e(t) : e, Pt = (e, t = "files") => {
|
|
516
554
|
let n = new FormData();
|
|
517
555
|
return (o(e) ? e.filter(Boolean) : [e]).forEach((e) => {
|
|
518
556
|
n.append(t, e, e.name);
|
|
519
557
|
}), n;
|
|
520
|
-
}
|
|
521
|
-
//#endregion
|
|
522
|
-
//#region lib/lib/url.utils.ts
|
|
523
|
-
function jt(e) {
|
|
524
|
-
return new URL(e.url).searchParams;
|
|
525
|
-
}
|
|
526
|
-
function Mt(e, t) {
|
|
527
|
-
return jt(e).get(t);
|
|
528
|
-
}
|
|
529
|
-
//#endregion
|
|
530
|
-
//#region lib/lib/zod-error-map.ts
|
|
531
|
-
var $ = (e) => {
|
|
558
|
+
}, Ft = (e) => {
|
|
532
559
|
let t = typeof e;
|
|
533
560
|
switch (t) {
|
|
534
561
|
case "number": return Number.isNaN(e) ? "NaN" : "number";
|
|
@@ -538,12 +565,12 @@ var $ = (e) => {
|
|
|
538
565
|
if (Object.getPrototypeOf(e) !== Object.prototype && e.constructor) return e.constructor.name;
|
|
539
566
|
}
|
|
540
567
|
return t;
|
|
541
|
-
},
|
|
542
|
-
let t =
|
|
568
|
+
}, It = () => localStorage.getItem("language") === "fr" ? "fr" : "en", Lt = () => (e) => {
|
|
569
|
+
let t = It(), n = g[t].material.zod.sizing[e.origin], r = g[t].material.zod.nouns;
|
|
543
570
|
switch (e.code) {
|
|
544
571
|
case "invalid_type": return c(e.input ? `material.zod.invalid_type.${e.expected}` : "material.zod.required", {
|
|
545
572
|
expected: e.expected,
|
|
546
|
-
received:
|
|
573
|
+
received: Ft(e.input)
|
|
547
574
|
});
|
|
548
575
|
case "invalid_value": return e.values.length === 1 ? c("material.zod.invalid_value_single", { value: e.values[0] }) : c("material.zod.invalid_value_multiple", { values: e.values.join(" | ") });
|
|
549
576
|
case "too_big": {
|
|
@@ -581,4 +608,4 @@ var $ = (e) => {
|
|
|
581
608
|
}
|
|
582
609
|
};
|
|
583
610
|
//#endregion
|
|
584
|
-
export {
|
|
611
|
+
export { Q as A, nt as B, mt as C, ue as D, le as E, at as F, J as G, K as H, it as I, P as J, W as K, Z as L, $ as M, ot as N, dt as O, st as P, X as R, ht as S, se as T, q as U, tt as V, G as W, S as X, C as Y, yt as _, Mt as a, bt as b, jt as c, Et as d, wt as f, vt as g, St as h, Nt as i, ct as j, lt as k, Ot as l, Tt as m, Lt as n, kt as o, Ct as p, U as q, Pt as r, At as s, Ft as t, Dt as u, _t as v, pt as w, gt as x, xt as y, rt as z };
|
package/dist/lib.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as e } from "./utils-Cy-ByIEo.js";
|
|
2
|
-
import { A as t, B as n, C as r, D as i, E as a, F as o,
|
|
3
|
-
import { n as
|
|
4
|
-
export {
|
|
2
|
+
import { A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, L as u, M as d, N as f, O as p, P as m, R as h, S as g, T as _, U as v, V as y, W as b, _ as x, a as S, b as C, c as w, d as T, f as E, g as D, h as O, i as k, j as A, k as j, l as M, m as N, n as P, o as F, p as I, r as L, s as R, t as z, u as B, v as V, w as H, x as U, y as W, z as G } from "./lib-DZZQQdzj.js";
|
|
3
|
+
import { n as K, r as q, t as J } from "./date.utils-C08DvLLr.js";
|
|
4
|
+
export { J as DATE_UTILS, j as LOCALE_STORE_UTILS, y as STRING_UTILS, n as STYLES_UTILS, O as buildFieldOptions, F as cast, R as castAsync, w as cleanObject, H as clientOnly, e as cn, L as convertToFormData, _ as createPinia, l as defineFilterStore, u as defineLocalStore, f as defineStatusStore, m as defineStatusesStore, p as defineStepFormStore, S as delay, c as enumToKebabCase, D as findByKey, x as findByKeyIn, T as formDataToObject, K as formatDateRangeFilter, q as formatNumber, E as ifEmptyList, I as ifEmptyString, U as isExternalHref, v as joinTruthyParts, h as localStoreId, N as objectToFormData, M as omit, z as parsedType, B as pick, k as renderSlot, G as resolveStoreState, o as runStatus, t as safeGetItem, A as safeRemoveItem, d as safeSetItem, g as searchParam, r as searchParams, a as setActivePinia, b as slugify, s as splitMatch, i as storeToRefs, V as uniqueArray, W as useFindById, C as useFindByKey, P as zodLocaleError };
|