@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.
Files changed (115) hide show
  1. package/README.md +25 -7
  2. package/dist/{camera-0FF92_uw.js → camera-Gbi9FZ9_.js} +7 -7
  3. package/dist/{components-CIZI-QTh.js → components-7Ajwd8cr.js} +31524 -29120
  4. package/dist/components.js +5 -4
  5. package/dist/{use-localized-date-C8vHzgho.js → composables-C5LhV5Vi.js} +126 -46
  6. package/dist/composables.js +3 -70
  7. package/dist/{dnd-DxjI7Q-L.js → dnd-DJL4dR9c.js} +1 -1
  8. package/dist/dnd.js +1 -1
  9. package/dist/{i18n-DXZMN9FA.js → i18n-GAjGs1da.js} +86 -0
  10. package/dist/i18n.js +1 -1
  11. package/dist/lib/components/index.d.ts +15 -0
  12. package/dist/lib/components/ui/anchor-heading/anchor-heading.vue.d.ts +20 -0
  13. package/dist/lib/components/ui/anchor-heading/index.d.ts +2 -0
  14. package/dist/lib/components/ui/api-endpoint/api-endpoint.vue.d.ts +20 -0
  15. package/dist/lib/components/ui/api-endpoint/index.d.ts +2 -0
  16. package/dist/lib/components/ui/api-operation/api-operation.vue.d.ts +24 -0
  17. package/dist/lib/components/ui/api-operation/index.d.ts +2 -0
  18. package/dist/lib/components/ui/cards/crew-card.vue.d.ts +21 -0
  19. package/dist/lib/components/ui/cards/feature-card.vue.d.ts +22 -0
  20. package/dist/lib/components/ui/cards/index.d.ts +22 -0
  21. package/dist/lib/components/ui/cards/media-card.vue.d.ts +21 -0
  22. package/dist/lib/components/ui/cards/notice-card.vue.d.ts +20 -0
  23. package/dist/lib/components/ui/cards/overlay-card.vue.d.ts +22 -0
  24. package/dist/lib/components/ui/cards/pricing-card.vue.d.ts +25 -0
  25. package/dist/lib/components/ui/cards/profile-card.vue.d.ts +22 -0
  26. package/dist/lib/components/ui/cards/quote-card.vue.d.ts +20 -0
  27. package/dist/lib/components/ui/cards/split-card.vue.d.ts +22 -0
  28. package/dist/lib/components/ui/cards/spotlight-card.vue.d.ts +20 -0
  29. package/dist/lib/components/ui/cards/ticket-card.vue.d.ts +21 -0
  30. package/dist/lib/components/ui/code/code-group.vue.d.ts +17 -0
  31. package/dist/lib/components/ui/code/index.d.ts +2 -0
  32. package/dist/lib/components/ui/contacts/consts.d.ts +1 -1
  33. package/dist/lib/components/ui/copy-button/copy-button.vue.d.ts +12 -2
  34. package/dist/lib/components/ui/doc/doc-context.d.ts +7 -0
  35. package/dist/lib/components/ui/doc/doc.keyboard.d.ts +20 -0
  36. package/dist/lib/components/ui/doc/doc.store.d.ts +2 -0
  37. package/dist/lib/components/ui/doc/doc.utils.d.ts +19 -0
  38. package/dist/lib/components/ui/doc/doc.vue.d.ts +37 -0
  39. package/dist/lib/components/ui/doc/index.d.ts +24 -0
  40. package/dist/lib/components/ui/doc/partials/doc-article.vue.d.ts +17 -0
  41. package/dist/lib/components/ui/doc/partials/doc-child-cards.vue.d.ts +6 -0
  42. package/dist/lib/components/ui/doc/partials/doc-copy-markdown.vue.d.ts +6 -0
  43. package/dist/lib/components/ui/doc/partials/doc-empty.vue.d.ts +25 -0
  44. package/dist/lib/components/ui/doc/partials/doc-header.vue.d.ts +31 -0
  45. package/dist/lib/components/ui/doc/partials/doc-link.vue.d.ts +18 -0
  46. package/dist/lib/components/ui/doc/partials/doc-nav-list.vue.d.ts +8 -0
  47. package/dist/lib/components/ui/doc/partials/doc-nav.vue.d.ts +7 -0
  48. package/dist/lib/components/ui/doc/partials/doc-page.vue.d.ts +27 -0
  49. package/dist/lib/components/ui/doc/partials/doc-pager.vue.d.ts +7 -0
  50. package/dist/lib/components/ui/doc/partials/doc-progress.vue.d.ts +5 -0
  51. package/dist/lib/components/ui/doc/partials/doc-search-hit.vue.d.ts +12 -0
  52. package/dist/lib/components/ui/doc/partials/doc-search.vue.d.ts +3 -0
  53. package/dist/lib/components/ui/doc/partials/doc-see-also.vue.d.ts +6 -0
  54. package/dist/lib/components/ui/doc/partials/doc-sidebar.vue.d.ts +17 -0
  55. package/dist/lib/components/ui/doc/partials/doc-skip-link.vue.d.ts +6 -0
  56. package/dist/lib/components/ui/doc/partials/doc-toc.vue.d.ts +9 -0
  57. package/dist/lib/components/ui/doc/partials/doc-topbar.vue.d.ts +19 -0
  58. package/dist/lib/components/ui/doc/types.d.ts +37 -0
  59. package/dist/lib/components/ui/doc/use-doc.d.ts +29 -0
  60. package/dist/lib/components/ui/event-calendar/event-calendar.vue.d.ts +1 -1
  61. package/dist/lib/components/ui/feedback/index.d.ts +2 -0
  62. package/dist/lib/components/ui/feedback/scroll-progress.vue.d.ts +10 -0
  63. package/dist/lib/components/ui/figure/figure.vue.d.ts +18 -0
  64. package/dist/lib/components/ui/figure/index.d.ts +2 -0
  65. package/dist/lib/components/ui/hero/hero.vue.d.ts +22 -0
  66. package/dist/lib/components/ui/hero/index.d.ts +2 -0
  67. package/dist/lib/components/ui/highlight-text/highlight-text.vue.d.ts +10 -0
  68. package/dist/lib/components/ui/highlight-text/index.d.ts +2 -0
  69. package/dist/lib/components/ui/list-tile/list-tile.vue.d.ts +2 -0
  70. package/dist/lib/components/ui/metrics/breakdown-card.vue.d.ts +14 -0
  71. package/dist/lib/components/ui/metrics/goal-card.vue.d.ts +11 -0
  72. package/dist/lib/components/ui/metrics/index.d.ts +10 -0
  73. package/dist/lib/components/ui/metrics/rank-card.vue.d.ts +15 -0
  74. package/dist/lib/components/ui/metrics/sparkline.vue.d.ts +7 -0
  75. package/dist/lib/components/ui/metrics/trend-card.vue.d.ts +13 -0
  76. package/dist/lib/components/ui/pager/index.d.ts +2 -0
  77. package/dist/lib/components/ui/pager/pager.vue.d.ts +21 -0
  78. package/dist/lib/components/ui/param-table/index.d.ts +2 -0
  79. package/dist/lib/components/ui/param-table/param-table.vue.d.ts +15 -0
  80. package/dist/lib/components/ui/see-also/index.d.ts +2 -0
  81. package/dist/lib/components/ui/see-also/see-also.vue.d.ts +16 -0
  82. package/dist/lib/components/ui/skip-link/index.d.ts +2 -0
  83. package/dist/lib/components/ui/skip-link/skip-link.vue.d.ts +20 -0
  84. package/dist/lib/components/ui/steps/index.d.ts +4 -0
  85. package/dist/lib/components/ui/steps/steps-item.vue.d.ts +21 -0
  86. package/dist/lib/components/ui/steps/steps.vue.d.ts +17 -0
  87. package/dist/lib/components/ui/stx-player/index.d.ts +2 -2
  88. package/dist/lib/components/ui/stx-player/stx-player.vue.d.ts +1 -1
  89. package/dist/lib/components/ui/toc/index.d.ts +2 -0
  90. package/dist/lib/components/ui/toc/toc.vue.d.ts +24 -0
  91. package/dist/lib/composables/index.d.ts +1 -0
  92. package/dist/lib/composables/use-heading-spy.d.ts +7 -0
  93. package/dist/lib/i18n/resources/en/index.d.ts +49 -0
  94. package/dist/lib/i18n/resources/en/material.json.d.ts +49 -0
  95. package/dist/lib/i18n/resources/fr/index.d.ts +49 -0
  96. package/dist/lib/i18n/resources/fr/material.json.d.ts +49 -0
  97. package/dist/lib/i18n/resources/index.d.ts +98 -0
  98. package/dist/lib/i18n/translator.d.ts +1 -1
  99. package/dist/lib/lib/string.utils.d.ts +9 -0
  100. package/dist/lib/lib/url.utils.d.ts +2 -0
  101. package/dist/lib/nuxt/component-names.d.ts +1 -1
  102. package/dist/{lib-kSGjbZgz.js → lib-DZZQQdzj.js} +146 -119
  103. package/dist/lib.js +3 -3
  104. package/dist/main.js +9 -10
  105. package/dist/material-vue.css +1 -1
  106. package/dist/{pdf-outline-sidebar-iHgJ3Tdm.js → pdf-outline-sidebar-7EEhkMof.js} +6 -6
  107. package/dist/{pdf-page-g1icnvlW.js → pdf-page-bDjssyjX.js} +1 -1
  108. package/dist/{pdf-page-list-BW9tw41T.js → pdf-page-list-DPGxoujP.js} +16 -16
  109. package/dist/{pdf-reader-C_dSoAH6.js → pdf-reader-B4Qeofx-.js} +13 -13
  110. package/dist/{pdf-sidebar-DW_or7mU.js → pdf-sidebar-C36bGZ5M.js} +4 -4
  111. package/dist/{pdf-thumbnail-sidebar-xrrwRQIL.js → pdf-thumbnail-sidebar-B5M7JduL.js} +17 -17
  112. package/dist/{pdf-toolbar-BcKsxHJ2.js → pdf-toolbar-BKeM1-o9.js} +21 -21
  113. package/dist/{stx-player-lvdY9PTs.js → stx-player-W-82wI6s.js} +7 -7
  114. package/lib/nuxt/component-names.ts +45 -0
  115. 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 ee } from "./i18n-DXZMN9FA.js";
2
- import { i as te } from "./date.utils-C08DvLLr.js";
3
- import { defineComponent as ne, getCurrentInstance as re, h as ie, inject as ae, provide as oe, useId as se } from "vue";
4
- import { createPinia as ce, defineStore as le, setActivePinia as ue, storeToRefs as de } from "pinia";
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 b = m(s, "WeakMap"), fe = _(Object.keys, Object), pe = Object.prototype.hasOwnProperty;
7
- function x(e) {
8
- if (!t(e)) return fe(e);
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)) pe.call(e, r) && r != "constructor" && n.push(r);
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 S(e) {
16
- return v(e) ? ee(e) : x(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 me(e, t) {
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 he(e, t) {
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 ge() {
35
+ function he() {
36
36
  return [];
37
37
  }
38
38
  //#endregion
39
39
  //#region node_modules/lodash-es/_getSymbols.js
40
- var _e = Object.prototype.propertyIsEnumerable, C = Object.getOwnPropertySymbols, ve = C ? function(e) {
41
- return e == null ? [] : (e = Object(e), he(C(e), function(t) {
42
- return _e.call(e, t);
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
- } : ge;
44
+ } : he;
45
45
  //#endregion
46
46
  //#region node_modules/lodash-es/_baseGetAllKeys.js
47
- function ye(e, t, n) {
47
+ function ve(e, t, n) {
48
48
  var r = t(e);
49
- return o(e) ? r : me(r, n(e));
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 w(e) {
54
- return ye(e, S, ve);
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 T = m(s, "DataView"), E = m(s, "Promise"), D = m(s, "Set"), O = "[object Map]", be = "[object Object]", k = "[object Promise]", A = "[object Set]", j = "[object WeakMap]", M = "[object DataView]", xe = e(T), Se = e(f), Ce = e(E), we = e(D), Te = e(b), N = i;
59
- (T && N(new T(/* @__PURE__ */ new ArrayBuffer(1))) != M || f && N(new f()) != O || E && N(E.resolve()) != k || D && N(new D()) != A || b && N(new b()) != j) && (N = function(t) {
60
- var n = i(t), r = n == be ? t.constructor : void 0, a = r ? e(r) : "";
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 M;
63
- case Se: return O;
64
- case Ce: return k;
65
- case we: return A;
66
- case Te: return j;
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 = w(e), c = s.length;
177
- if (c != w(t).length && !o) return !1;
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, ee = _ ? t.value() : t;
218
- return a ||= new h(), i(v, ee, n, r, a);
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/pinia/define-local-store.ts
240
- var G = 0;
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 re() ? `${e}:${se()}` : (G += 1, `${e}:${G}`);
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 q(e, t) {
245
- return (n) => le(K(e), {
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 tt(e, t) {
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 nt(e, t, n = {}) {
308
+ function it(e, t, n = {}) {
263
309
  let r = structuredClone(t);
264
- return q(e, {
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 rt(e, t) {
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 it(e, t = { status: "idle" }, n = {}) {
343
+ function ot(e, t = { status: "idle" }, n = {}) {
298
344
  let r = { ...t };
299
- return q(e, {
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 at(e, t, n = {}) {
364
+ function st(e, t, n = {}) {
319
365
  let r = structuredClone(t);
320
- return q(e, {
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 J(e, t) {
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 Y(e, t) {
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 X(e) {
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 ot = {
368
- safeGetItem: J,
369
- safeSetItem: Y,
370
- safeRemoveItem: X
371
- }, Z = {
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 st(e, t, n = {}) {
377
- let r = t ?? Z.values, i = () => ({
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 q(e, {
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, Y(e, {
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, Z.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 ct = Symbol("inside-client-only");
409
- function lt(e) {
410
- return ne({
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 = ae(ct, !1), a = te();
415
- return oe(ct, !0), () => !i && !a.value ? null : ie(e, { ...n }, r);
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/styles.utils.ts
421
- var ut = {
422
- colorFromVariable(e, t = 1) {
423
- return `rgb(from var(--${e}) r g b / ${t})`;
424
- },
425
- cssSize(e) {
426
- if (!(e == null || e === "")) return typeof e == "number" ? `${e}px` : e;
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 dt(e) {
478
+ function _t(e) {
432
479
  return Array.from(new Set(e));
433
480
  }
434
- function ft(e, t, n) {
481
+ function vt(e, t, n) {
435
482
  return e.find((e) => e[t] === n);
436
483
  }
437
- function Q(e, t, n) {
484
+ function yt(e, t, n) {
438
485
  return e.filter((e) => n.includes(e[t]));
439
486
  }
440
- function pt(e, t) {
487
+ function bt(e, t) {
441
488
  return {
442
- findByKey: (n) => ft(e, t, n),
443
- findByKeyIn: (n) => Q(e, t, n)
489
+ findByKey: (n) => vt(e, t, n),
490
+ findByKeyIn: (n) => yt(e, t, n)
444
491
  };
445
492
  }
446
- function mt(e) {
447
- return pt(e, "id");
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 ht(e, { valueKey: t, label: n }) {
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 gt(e, t) {
506
+ function Ct(e, t) {
460
507
  return e?.length ? e : t;
461
508
  }
462
- function _t(e, t) {
509
+ function wt(e, t) {
463
510
  return e?.length ? e : t;
464
511
  }
465
- function vt(e) {
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 yt(e) {
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 bt(e, t) {
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 xt(e, t) {
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 St(e) {
537
+ function kt(e) {
491
538
  return e;
492
539
  }
493
- async function Ct(e) {
540
+ async function At(e) {
494
541
  return await e;
495
542
  }
496
- function wt(e, t = !1) {
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 Tt(e) {
548
+ function Mt(e) {
502
549
  return new Promise((t) => setTimeout(t, e));
503
550
  }
504
551
  //#endregion
505
- //#region lib/lib/string.utils.ts
506
- function Et(e) {
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
- }, Nt = () => localStorage.getItem("language") === "fr" ? "fr" : "en", Pt = () => (e) => {
542
- let t = Nt(), n = g[t].material.zod.sizing[e.origin], r = g[t].material.zod.nouns;
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: $(e.input)
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 { de as A, q as B, dt as C, lt as D, ut as E, Y as F, P as G, tt as H, it as I, S as K, at as L, ot as M, J as N, ce as O, X as P, rt as R, Q as S, pt as T, W as U, K as V, U as W, _t as _, At as a, ht as b, Et as c, St as d, Ct as f, yt as g, bt as h, jt as i, st as j, ue as k, Dt as l, xt as m, Pt as n, kt as o, wt as p, x as q, Mt as r, Ot as s, $ as t, Tt as u, gt as v, mt as w, ft as x, vt as y, nt as z };
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, H as s, I as c, L as l, M as u, N as d, O as f, P as p, R as m, S as h, T as g, V as _, _ as v, a as y, b, c as x, d as S, f as C, g as w, h as T, i as E, j as D, k as O, l as k, m as A, n as j, o as M, p as N, r as P, s as F, t as I, u as L, v as R, w as z, x as B, y as V, z as H } from "./lib-kSGjbZgz.js";
3
- import { n as U, r as W, t as G } from "./date.utils-C08DvLLr.js";
4
- export { G as DATE_UTILS, u as LOCALE_STORE_UTILS, F as STRING_UTILS, a as STYLES_UTILS, b as buildFieldOptions, S as cast, C as castAsync, N as cleanObject, i as clientOnly, e as cn, y as convertToFormData, f as createPinia, H as defineFilterStore, n as defineLocalStore, c as defineStatusStore, l as defineStatusesStore, D as defineStepFormStore, L as delay, x as enumToKebabCase, B as findByKey, h as findByKeyIn, w as formDataToObject, U as formatDateRangeFilter, W as formatNumber, v as ifEmptyList, R as ifEmptyString, k as joinTruthyParts, _ as localStoreId, V as objectToFormData, A as omit, I as parsedType, T as pick, M as renderSlot, s as resolveStoreState, m as runStatus, d as safeGetItem, p as safeRemoveItem, o as safeSetItem, P as searchParam, E as searchParams, O as setActivePinia, t as storeToRefs, r as uniqueArray, z as useFindById, g as useFindByKey, j as zodLocaleError };
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 };