dendelion-ui 0.0.12 → 0.0.13

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 (48) hide show
  1. package/dist/dendelion-ui.cjs.js +2 -2
  2. package/dist/dendelion-ui.es.js +319 -316
  3. package/dist/dendelion-ui.umd.js +2 -2
  4. package/dist/types/components/button/Button.vue.d.ts +2 -12
  5. package/dist/types/components/card/Card.vue.d.ts +2 -11
  6. package/dist/types/components/card/CardBody.vue.d.ts +2 -4
  7. package/dist/types/components/container/Container.vue.d.ts +2 -10
  8. package/dist/types/components/modal/Modal.vue.d.ts +2 -23
  9. package/dist/types/components/stepper/Step.vue.d.ts +2 -8
  10. package/dist/types/components/stepper/StepList.vue.d.ts +2 -4
  11. package/dist/types/components/stepper/StepPanel.vue.d.ts +2 -9
  12. package/dist/types/components/stepper/StepPanels.vue.d.ts +2 -10
  13. package/dist/types/components/stepper/Stepper.vue.d.ts +2 -11
  14. package/dist/types/components/table/interface.d.ts +10 -2
  15. package/package.json +79 -75
  16. package/src/components/button/Button.vue +32 -29
  17. package/src/components/button/SimpleButton.vue +5 -8
  18. package/src/components/button/index.ts +3 -3
  19. package/src/components/button/interface.ts +13 -13
  20. package/src/components/card/Card.vue +32 -25
  21. package/src/components/card/CardBody.vue +7 -9
  22. package/src/components/card/CardTitle.vue +20 -18
  23. package/src/components/card/index.ts +4 -4
  24. package/src/components/card/interface.ts +9 -9
  25. package/src/components/container/Container.vue +20 -21
  26. package/src/components/container/index.ts +2 -2
  27. package/src/components/container/interface.ts +4 -5
  28. package/src/components/modal/Modal.vue +70 -52
  29. package/src/components/modal/index.ts +2 -2
  30. package/src/components/modal/interface.ts +12 -12
  31. package/src/components/search/SearchBar.vue +62 -53
  32. package/src/components/search/index.ts +1 -1
  33. package/src/components/stepper/Step.vue +37 -35
  34. package/src/components/stepper/StepList.vue +7 -8
  35. package/src/components/stepper/StepPanel.vue +29 -30
  36. package/src/components/stepper/StepPanels.vue +16 -17
  37. package/src/components/stepper/Stepper.vue +35 -33
  38. package/src/components/stepper/index.ts +6 -6
  39. package/src/components/stepper/interface.ts +3 -4
  40. package/src/components/table/Table.vue +135 -104
  41. package/src/components/table/index.ts +2 -2
  42. package/src/components/table/interface.ts +39 -31
  43. package/src/components.ts +7 -7
  44. package/src/index.ts +91 -91
  45. package/src/shims-vue.d.ts +7 -11
  46. package/src/types/color.ts +169 -170
  47. package/src/types/index.ts +2 -2
  48. package/src/types/size.ts +78 -78
@@ -1,6 +1,6 @@
1
- import { defineComponent as $, computed as ue, createElementBlock as h, openBlock as p, normalizeClass as F, createElementVNode as _, renderSlot as z, ref as B, createBlock as G, resolveDynamicComponent as ce, withCtx as oe, createTextVNode as le, toDisplayString as H, onMounted as Z, watch as q, Fragment as V, renderList as X, createCommentVNode as D, provide as ge, inject as j, Transition as he, unref as ee, onUnmounted as me } from "vue";
1
+ import { defineComponent as $, computed as ce, createElementBlock as h, openBlock as v, normalizeClass as E, createElementVNode as x, renderSlot as N, ref as B, createBlock as G, resolveDynamicComponent as oe, withCtx as le, createTextVNode as ie, toDisplayString as H, onMounted as j, watch as P, Fragment as V, renderList as X, createCommentVNode as D, mergeProps as he, defineAsyncComponent as ee, provide as me, inject as Z, Transition as ye, unref as te, onUnmounted as _e } from "vue";
2
2
  var J = /* @__PURE__ */ ((e) => (e[e.Primary = 0] = "Primary", e[e.PrimaryContent = 1] = "PrimaryContent", e[e.Secondary = 2] = "Secondary", e[e.SecondaryContent = 3] = "SecondaryContent", e[e.Accent = 4] = "Accent", e[e.AccentContent = 5] = "AccentContent", e[e.Neutral = 6] = "Neutral", e[e.NeutralContent = 7] = "NeutralContent", e[e.Base100 = 8] = "Base100", e[e.Base200 = 9] = "Base200", e[e.Base300 = 10] = "Base300", e[e.BaseContent = 11] = "BaseContent", e[e.Info = 12] = "Info", e[e.InfoContent = 13] = "InfoContent", e[e.Success = 14] = "Success", e[e.SuccessContent = 15] = "SuccessContent", e[e.Warning = 16] = "Warning", e[e.WarningContent = 17] = "WarningContent", e[e.Error = 18] = "Error", e[e.ErrorContent = 19] = "ErrorContent", e))(J || {});
3
- class ye {
3
+ class xe {
4
4
  static toClassName(t) {
5
5
  switch (t) {
6
6
  case 0:
@@ -48,7 +48,7 @@ class ye {
48
48
  }
49
49
  }
50
50
  }
51
- class _e {
51
+ class Se {
52
52
  static toClassName(t) {
53
53
  switch (t) {
54
54
  case 0:
@@ -96,7 +96,7 @@ class _e {
96
96
  }
97
97
  }
98
98
  }
99
- class je {
99
+ class Ye {
100
100
  static toClassName(t) {
101
101
  switch (t) {
102
102
  case 0:
@@ -145,7 +145,7 @@ class je {
145
145
  }
146
146
  }
147
147
  var Y = /* @__PURE__ */ ((e) => (e[e.XS = 0] = "XS", e[e.SM = 1] = "SM", e[e.MD = 2] = "MD", e[e.LG = 3] = "LG", e[e.XL = 4] = "XL", e[e.TWOXL = 5] = "TWOXL", e[e.THREEXL = 6] = "THREEXL", e))(Y || {});
148
- class xe {
148
+ class ke {
149
149
  static toClassName(t) {
150
150
  switch (t) {
151
151
  case 0:
@@ -167,7 +167,7 @@ class xe {
167
167
  }
168
168
  }
169
169
  }
170
- class Se {
170
+ class we {
171
171
  static toClassName(t) {
172
172
  switch (t) {
173
173
  case 0:
@@ -189,7 +189,7 @@ class Se {
189
189
  }
190
190
  }
191
191
  }
192
- class we {
192
+ class Be {
193
193
  static toClassName(t) {
194
194
  switch (t) {
195
195
  case 0:
@@ -211,7 +211,7 @@ class we {
211
211
  }
212
212
  }
213
213
  }
214
- function ie(e) {
214
+ function de(e) {
215
215
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
216
216
  }
217
217
  var I = { exports: {} };
@@ -220,41 +220,41 @@ var I = { exports: {} };
220
220
  Licensed under the MIT License (MIT), see
221
221
  http://jedwatson.github.io/classnames
222
222
  */
223
- var te;
224
- function ke() {
225
- return te || (te = 1, function(e) {
223
+ var ne;
224
+ function Me() {
225
+ return ne || (ne = 1, function(e) {
226
226
  (function() {
227
227
  var t = {}.hasOwnProperty;
228
- function a() {
229
- for (var n = "", u = 0; u < arguments.length; u++) {
230
- var d = arguments[u];
231
- d && (n = r(n, s(d)));
228
+ function s() {
229
+ for (var n = "", c = 0; c < arguments.length; c++) {
230
+ var f = arguments[c];
231
+ f && (n = a(n, u(f)));
232
232
  }
233
233
  return n;
234
234
  }
235
- function s(n) {
235
+ function u(n) {
236
236
  if (typeof n == "string" || typeof n == "number")
237
237
  return n;
238
238
  if (typeof n != "object")
239
239
  return "";
240
240
  if (Array.isArray(n))
241
- return a.apply(null, n);
241
+ return s.apply(null, n);
242
242
  if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
243
243
  return n.toString();
244
- var u = "";
245
- for (var d in n)
246
- t.call(n, d) && n[d] && (u = r(u, d));
247
- return u;
244
+ var c = "";
245
+ for (var f in n)
246
+ t.call(n, f) && n[f] && (c = a(c, f));
247
+ return c;
248
248
  }
249
- function r(n, u) {
250
- return u ? n ? n + " " + u : n + u : n;
249
+ function a(n, c) {
250
+ return c ? n ? n + " " + c : n + c : n;
251
251
  }
252
- e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
252
+ e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
253
253
  })();
254
254
  }(I)), I.exports;
255
255
  }
256
- var Be = ke();
257
- const O = /* @__PURE__ */ ie(Be), Me = ["type", "disabled"], $e = { class: "group-[.is-loading]:text-transparent" }, Je = /* @__PURE__ */ $({
256
+ var $e = Me();
257
+ const W = /* @__PURE__ */ de($e), Ce = ["type", "disabled"], Ne = { class: "group-[.is-loading]:text-transparent" }, Qe = /* @__PURE__ */ $({
258
258
  __name: "Button",
259
259
  props: {
260
260
  type: { default: "button" },
@@ -266,37 +266,37 @@ const O = /* @__PURE__ */ ie(Be), Me = ["type", "disabled"], $e = { class: "grou
266
266
  click: {}
267
267
  },
268
268
  setup(e) {
269
- const t = e, a = ue(() => O(
269
+ const t = e, s = ce(() => W(
270
270
  "btn",
271
271
  "group",
272
- _e.toClassName(t.color),
272
+ Se.toClassName(t.color),
273
273
  t.soft ? "btn-soft" : "",
274
274
  t.outline ? "btn-outline" : "",
275
275
  t.loading ? "is-loading" : "",
276
276
  t.disabled ? "disabled" : ""
277
277
  ));
278
- return (s, r) => (p(), h("button", {
279
- onClick: r[0] || (r[0] = (n) => s.click ? s.click : void 0),
280
- class: F(a.value),
281
- type: s.type,
282
- disabled: s.disabled || s.loading
278
+ return (u, a) => (v(), h("button", {
279
+ onClick: a[0] || (a[0] = (n) => u.click ? u.click : void 0),
280
+ class: E(s.value),
281
+ type: u.type,
282
+ disabled: u.disabled || u.loading
283
283
  }, [
284
- r[1] || (r[1] = _("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
285
- _("span", $e, [
286
- z(s.$slots, "default")
284
+ a[1] || (a[1] = x("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
285
+ x("span", Ne, [
286
+ N(u.$slots, "default")
287
287
  ])
288
- ], 10, Me));
288
+ ], 10, Ce));
289
289
  }
290
290
  }), Q = (e, t) => {
291
- const a = e.__vccOpts || e;
292
- for (const [s, r] of t)
293
- a[s] = r;
294
- return a;
295
- }, Ne = {};
296
- function ze(e, t) {
297
- return p(), h("button");
291
+ const s = e.__vccOpts || e;
292
+ for (const [u, a] of t)
293
+ s[u] = a;
294
+ return s;
295
+ }, ze = {};
296
+ function Te(e, t) {
297
+ return v(), h("button");
298
298
  }
299
- const Ye = /* @__PURE__ */ Q(Ne, [["render", ze]]), Qe = /* @__PURE__ */ $({
299
+ const et = /* @__PURE__ */ Q(ze, [["render", Te]]), tt = /* @__PURE__ */ $({
300
300
  __name: "Card",
301
301
  props: {
302
302
  backgroundColor: { default: J.Primary },
@@ -306,214 +306,214 @@ const Ye = /* @__PURE__ */ Q(Ne, [["render", ze]]), Qe = /* @__PURE__ */ $({
306
306
  roundedSize: {}
307
307
  },
308
308
  setup(e) {
309
- const t = e, a = B(O(
309
+ const t = e, s = B(W(
310
310
  "card",
311
- ye.toClassName(t.backgroundColor),
311
+ xe.toClassName(t.backgroundColor),
312
312
  t.shadow ? "shadow-lg" : "",
313
313
  t.fullWidth ? "w-full" : "",
314
- t.rounded && !t.roundedSize ? "rounded" : t.roundedSize ? Se.toClassName(t.roundedSize) : ""
314
+ t.rounded && !t.roundedSize ? "rounded" : t.roundedSize ? we.toClassName(t.roundedSize) : ""
315
315
  ));
316
- return (s, r) => (p(), h("div", {
317
- class: F(a.value)
316
+ return (u, a) => (v(), h("div", {
317
+ class: E(s.value)
318
318
  }, [
319
- z(s.$slots, "default")
319
+ N(u.$slots, "default")
320
320
  ], 2));
321
321
  }
322
- }), Ce = {}, Te = { class: "card-body" };
323
- function Le(e, t) {
324
- return p(), h("div", Te, [
325
- z(e.$slots, "default")
322
+ }), Le = {}, Ee = { class: "card-body" };
323
+ function Fe(e, t) {
324
+ return v(), h("div", Ee, [
325
+ N(e.$slots, "default")
326
326
  ]);
327
327
  }
328
- const et = /* @__PURE__ */ Q(Ce, [["render", Le]]), tt = /* @__PURE__ */ $({
328
+ const nt = /* @__PURE__ */ Q(Le, [["render", Fe]]), rt = /* @__PURE__ */ $({
329
329
  __name: "CardTitle",
330
330
  props: {
331
331
  is: { default: "h1" },
332
332
  text: { default: "" }
333
333
  },
334
334
  setup(e) {
335
- return (t, a) => (p(), G(ce(t.is), { class: "card-title" }, {
336
- default: oe(() => [
337
- le(H(t.text), 1)
335
+ return (t, s) => (v(), G(oe(t.is), { class: "card-title" }, {
336
+ default: le(() => [
337
+ ie(H(t.text), 1)
338
338
  ]),
339
339
  _: 1
340
340
  }));
341
341
  }
342
- }), nt = /* @__PURE__ */ $({
342
+ }), at = /* @__PURE__ */ $({
343
343
  __name: "Container",
344
344
  props: {
345
345
  container: { type: Boolean, default: !0 },
346
346
  padding: { type: Boolean, default: !0 }
347
347
  },
348
348
  setup(e) {
349
- const t = e, a = B([
349
+ const t = e, s = B([
350
350
  t.container ? "container" : "",
351
351
  //To disable the max width in some cases
352
352
  t.padding ? "p-6" : ""
353
353
  ]);
354
- return (s, r) => (p(), h("div", {
355
- class: F(a.value)
354
+ return (u, a) => (v(), h("div", {
355
+ class: E(s.value)
356
356
  }, [
357
- z(s.$slots, "default")
357
+ N(u.$slots, "default")
358
358
  ], 2));
359
359
  }
360
360
  });
361
- var U = {}, K = {}, ne;
362
- function de() {
363
- return ne || (ne = 1, function(e) {
364
- e.__esModule = !0, e.default = r;
365
- var t = /[\u0300-\u036f]/g, a = /ł/g, s = /ñ/g;
366
- function r(n) {
367
- return n.toLowerCase().normalize("NFD").replace(t, "").replace(a, "l").replace(s, "n").trim();
361
+ var U = {}, K = {}, re;
362
+ function fe() {
363
+ return re || (re = 1, function(e) {
364
+ e.__esModule = !0, e.default = a;
365
+ var t = /[\u0300-\u036f]/g, s = /ł/g, u = /ñ/g;
366
+ function a(n) {
367
+ return n.toLowerCase().normalize("NFD").replace(t, "").replace(s, "l").replace(u, "n").trim();
368
368
  }
369
369
  }(K)), K;
370
370
  }
371
- var R = {}, re;
372
- function ae() {
373
- if (re) return R;
374
- re = 1, R.__esModule = !0, R.aggressiveFuzzyMatch = m, R.createFuzzySearchImpl = T, R.experimentalSmartFuzzyMatch = C, R.fuzzyMatchImpl = f;
375
- var e = t(de());
376
- function t(o) {
377
- return o && o.__esModule ? o : { default: o };
371
+ var F = {}, ae;
372
+ function se() {
373
+ if (ae) return F;
374
+ ae = 1, F.__esModule = !0, F.aggressiveFuzzyMatch = z, F.createFuzzySearchImpl = b, F.experimentalSmartFuzzyMatch = O, F.fuzzyMatchImpl = y;
375
+ var e = t(fe());
376
+ function t(r) {
377
+ return r && r.__esModule ? r : { default: r };
378
378
  }
379
- var a = Number.MAX_SAFE_INTEGER, s = function(c, b) {
379
+ var s = Number.MAX_SAFE_INTEGER, u = function(o, m) {
380
380
  return (
381
381
  /*: number*/
382
- c.score - b.score
382
+ o.score - m.score
383
383
  );
384
- }, r = function(c, b) {
384
+ }, a = function(o, m) {
385
385
  return (
386
386
  /*: number*/
387
- c[0] - b[0]
387
+ o[0] - m[0]
388
388
  );
389
389
  }, n = new Set(`  []()-–—'"“”`.split(""));
390
- function u(o) {
391
- return n.has(o);
390
+ function c(r) {
391
+ return n.has(r);
392
392
  }
393
- function d(o, c, b, S, l, x, v) {
394
- if (o === S)
395
- return [0, [[0, o.length - 1]]];
396
- var i = S.length, g = c.length, w = l.length;
397
- if (c === l)
393
+ function f(r, o, m, S, l, _, p) {
394
+ if (r === S)
395
+ return [0, [[0, r.length - 1]]];
396
+ var d = S.length, g = o.length, k = l.length;
397
+ if (o === l)
398
398
  return [0.1, [[0, g - 1]]];
399
- if (c.startsWith(l))
400
- return [0.5, [[0, w - 1]]];
401
- var M = o.indexOf(S);
402
- if (M > -1 && u(o[M - 1]))
403
- return [0.9, [[M, M + i - 1]]];
404
- var k = c.indexOf(l);
405
- if (k > -1 && u(c[k - 1]))
406
- return [1, [[k, k + i - 1]]];
407
- var N = x.length;
408
- if (N > 1 && x.every(function(E) {
409
- return b.has(E);
399
+ if (o.startsWith(l))
400
+ return [0.5, [[0, k - 1]]];
401
+ var M = r.indexOf(S);
402
+ if (M > -1 && c(r[M - 1]))
403
+ return [0.9, [[M, M + d - 1]]];
404
+ var w = o.indexOf(l);
405
+ if (w > -1 && c(o[w - 1]))
406
+ return [1, [[w, w + d - 1]]];
407
+ var C = _.length;
408
+ if (C > 1 && _.every(function(L) {
409
+ return m.has(L);
410
410
  })) {
411
- var L = 1.5 + N * 0.2;
412
- return [L, x.map(function(E) {
413
- var W = c.indexOf(E);
414
- return [W, W + E.length - 1];
415
- }).sort(r)];
411
+ var T = 1.5 + C * 0.2;
412
+ return [T, _.map(function(L) {
413
+ var R = o.indexOf(L);
414
+ return [R, R + L.length - 1];
415
+ }).sort(a)];
416
416
  }
417
- return k > -1 ? [2, [[k, k + i - 1]]] : v === "aggressive" ? m(c, l) : v === "smart" ? C(c, l) : null;
417
+ return w > -1 ? [2, [[w, w + d - 1]]] : p === "aggressive" ? z(o, l) : p === "smart" ? O(o, l) : null;
418
418
  }
419
- function m(o, c) {
420
- for (var b = o.length, S = c.length, l = 0, x = c[l], v = [], i = -1, g = -2, w = 0; w < b; w += 1)
421
- if (o[w] === x) {
422
- if (w !== g + 1 && (i >= 0 && v.push([i, g]), i = w), g = w, l += 1, l === S)
423
- return v.push([i, g]), y(v, o);
424
- x = c[l];
419
+ function z(r, o) {
420
+ for (var m = r.length, S = o.length, l = 0, _ = o[l], p = [], d = -1, g = -2, k = 0; k < m; k += 1)
421
+ if (r[k] === _) {
422
+ if (k !== g + 1 && (d >= 0 && p.push([d, g]), d = k), g = k, l += 1, l === S)
423
+ return p.push([d, g]), i(p, r);
424
+ _ = o[l];
425
425
  }
426
426
  return null;
427
427
  }
428
- function C(o, c) {
429
- for (var b = o.length, S = [], l = 0, x = c[l], v = -1, i = -2; ; ) {
430
- var g = o.indexOf(x, i + 1);
428
+ function O(r, o) {
429
+ for (var m = r.length, S = [], l = 0, _ = o[l], p = -1, d = -2; ; ) {
430
+ var g = r.indexOf(_, d + 1);
431
431
  if (g === -1)
432
432
  break;
433
- if (g === 0 || u(o[g - 1]))
434
- v = g;
433
+ if (g === 0 || c(r[g - 1]))
434
+ p = g;
435
435
  else {
436
- var w = c.length - l, M = o.length - g, k = Math.min(3, w, M), N = c.slice(l, l + k);
437
- if (o.slice(g, g + k) === N)
438
- v = g;
436
+ var k = o.length - l, M = r.length - g, w = Math.min(3, k, M), C = o.slice(l, l + w);
437
+ if (r.slice(g, g + w) === C)
438
+ p = g;
439
439
  else {
440
- i += 1;
440
+ d += 1;
441
441
  continue;
442
442
  }
443
443
  }
444
- for (i = v; i < b && o[i] === x; i += 1)
445
- l += 1, x = c[l];
446
- if (i -= 1, S.push([v, i]), l === c.length)
447
- return y(S, o);
444
+ for (d = p; d < m && r[d] === _; d += 1)
445
+ l += 1, _ = o[l];
446
+ if (d -= 1, S.push([p, d]), l === o.length)
447
+ return i(S, r);
448
448
  }
449
449
  return null;
450
450
  }
451
- function y(o, c) {
452
- var b = 2;
453
- return o.forEach(function(S) {
454
- var l = S[0], x = S[1], v = x - l + 1, i = l === 0 || c[l] === " " || c[l - 1] === " ", g = x === c.length - 1 || c[x] === " " || c[x + 1] === " ", w = i && g;
455
- w ? b += 0.2 : i ? b += 0.4 : v >= 3 ? b += 0.8 : b += 1.6;
456
- }), [b, o];
451
+ function i(r, o) {
452
+ var m = 2;
453
+ return r.forEach(function(S) {
454
+ var l = S[0], _ = S[1], p = _ - l + 1, d = l === 0 || o[l] === " " || o[l - 1] === " ", g = _ === o.length - 1 || o[_] === " " || o[_ + 1] === " ", k = d && g;
455
+ k ? m += 0.2 : d ? m += 0.4 : p >= 3 ? m += 0.8 : m += 1.6;
456
+ }), [m, r];
457
457
  }
458
- function f(o, c) {
459
- var b = (0, e.default)(c), S = b.split(" "), l = (0, e.default)(o), x = new Set(l.split(" ")), v = d(o, l, x, c, b, S, "smart");
460
- return v ? {
461
- item: o,
462
- score: v[0],
463
- matches: [v[1]]
458
+ function y(r, o) {
459
+ var m = (0, e.default)(o), S = m.split(" "), l = (0, e.default)(r), _ = new Set(l.split(" ")), p = f(r, l, _, o, m, S, "smart");
460
+ return p ? {
461
+ item: r,
462
+ score: p[0],
463
+ matches: [p[1]]
464
464
  } : null;
465
465
  }
466
- function T(o, c) {
467
- var b = c.strategy, S = b === void 0 ? "aggressive" : b, l = c.getText, x = o.map(function(v) {
468
- var i;
466
+ function b(r, o) {
467
+ var m = o.strategy, S = m === void 0 ? "aggressive" : m, l = o.getText, _ = r.map(function(p) {
468
+ var d;
469
469
  if (l)
470
- i = l(v);
470
+ d = l(p);
471
471
  else {
472
- var g = c.key ? v[c.key] : v;
473
- i = [g];
472
+ var g = o.key ? p[o.key] : p;
473
+ d = [g];
474
474
  }
475
- var w = i.map(function(M) {
476
- var k = M || "", N = (0, e.default)(k), L = new Set(N.split(" "));
477
- return [k, N, L];
475
+ var k = d.map(function(M) {
476
+ var w = M || "", C = (0, e.default)(w), T = new Set(C.split(" "));
477
+ return [w, C, T];
478
478
  });
479
- return [v, w];
479
+ return [p, k];
480
480
  });
481
- return function(v) {
482
- var i = [], g = (0, e.default)(v), w = g.split(" ");
483
- return g.length ? (x.forEach(function(M) {
484
- for (var k = M[0], N = M[1], L = a, E = [], W = 0, fe = N.length; W < fe; W += 1) {
485
- var P = N[W], pe = P[0], be = P[1], ve = P[2], A = d(pe, be, ve, v, g, w, S);
486
- A ? (L = Math.min(L, A[0]), E.push(A[1])) : E.push(null);
481
+ return function(p) {
482
+ var d = [], g = (0, e.default)(p), k = g.split(" ");
483
+ return g.length ? (_.forEach(function(M) {
484
+ for (var w = M[0], C = M[1], T = s, L = [], R = 0, pe = C.length; R < pe; R += 1) {
485
+ var q = C[R], be = q[0], ve = q[1], ge = q[2], A = f(be, ve, ge, p, g, k, S);
486
+ A ? (T = Math.min(T, A[0]), L.push(A[1])) : L.push(null);
487
487
  }
488
- L < a && i.push({
489
- item: k,
490
- score: L,
491
- matches: E
488
+ T < s && d.push({
489
+ item: w,
490
+ score: T,
491
+ matches: L
492
492
  });
493
- }), i.sort(s), i) : [];
493
+ }), d.sort(u), d) : [];
494
494
  };
495
495
  }
496
- return R;
496
+ return F;
497
497
  }
498
- var se;
499
- function Ee() {
500
- return se || (se = 1, function(e) {
501
- e.__esModule = !0, e.default = s, e.fuzzyMatch = r;
502
- var t = a(de());
498
+ var ue;
499
+ function Re() {
500
+ return ue || (ue = 1, function(e) {
501
+ e.__esModule = !0, e.default = u, e.fuzzyMatch = a;
502
+ var t = s(fe());
503
503
  e.normalizeText = t.default;
504
- function a(n) {
504
+ function s(n) {
505
505
  return n && n.__esModule ? n : { default: n };
506
506
  }
507
- function s(n, u) {
508
- return u === void 0 && (u = {}), ae().createFuzzySearchImpl(n, u);
507
+ function u(n, c) {
508
+ return c === void 0 && (c = {}), se().createFuzzySearchImpl(n, c);
509
509
  }
510
- function r(n, u) {
511
- return ae().fuzzyMatchImpl(n, u);
510
+ function a(n, c) {
511
+ return se().fuzzyMatchImpl(n, c);
512
512
  }
513
513
  }(U)), U;
514
514
  }
515
- var Fe = Ee();
516
- const Re = /* @__PURE__ */ ie(Fe), We = { key: 0 }, Oe = ["colspan"], Ve = ["innerHTML"], rt = /* @__PURE__ */ $({
515
+ var We = Re();
516
+ const Oe = /* @__PURE__ */ de(We), Ve = { key: 0 }, De = ["colspan"], Pe = ["innerHTML"], st = /* @__PURE__ */ $({
517
517
  __name: "Table",
518
518
  props: {
519
519
  zebra: { type: Boolean, default: !1 },
@@ -527,125 +527,128 @@ const Re = /* @__PURE__ */ ie(Fe), We = { key: 0 }, Oe = ["colspan"], Ve = ["inn
527
527
  searchFunction: {}
528
528
  },
529
529
  setup(e) {
530
- const t = B([]), a = B([]), s = B(null), r = e, n = B(O("table", we.toClassName(r.size), {
531
- "table-zebra": r.zebra,
532
- "table-pin-rows": r.pinRows,
533
- "table-pin-cols ": r.pinCols
534
- })), u = (m, C) => String(!m || typeof m != "object" ? m : C.split(".").reduce((y, f) => y && (typeof y == "object" ? y[f] : y), m));
535
- Z(() => {
536
- t.value = r.dataSource, a.value = r.dataSource;
537
- }), q(() => r.dataSource, (m) => {
538
- t.value = m, a.value = m;
539
- }, { immediate: !0 }), q(() => r.searchValue, (m) => {
540
- if (r.searchFunction) {
541
- a.value = r.searchFunction(m ?? "");
530
+ const t = B([]), s = B([]), u = B(null), a = e, n = B(W("table", Be.toClassName(a.size), {
531
+ "table-zebra": a.zebra,
532
+ "table-pin-rows": a.pinRows,
533
+ "table-pin-cols ": a.pinCols
534
+ })), c = (i, y) => String(!i || typeof i != "object" ? i : y.split(".").reduce((b, r) => b && (typeof b == "object" ? b[r] : b), i)), f = (i, y) => y.render === void 0 ? {} : y.render(c(i, y.data), i).props, z = (i) => i && typeof i == "object" && "then" in i ? ee(() => i) : typeof i == "function" ? ee(i) : i;
535
+ j(() => {
536
+ t.value = a.dataSource, s.value = a.dataSource;
537
+ }), P(() => a.dataSource, (i) => {
538
+ t.value = i, s.value = i;
539
+ }, { immediate: !0 }), P(() => a.searchValue, (i) => {
540
+ if (a.searchFunction) {
541
+ s.value = a.searchFunction(i ?? "");
542
542
  return;
543
543
  }
544
- a.value = m ? d(m) : t.value;
544
+ s.value = i ? O(i) : t.value;
545
545
  }, { immediate: !0 });
546
- const d = (m) => {
547
- const C = [];
548
- return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((f) => {
549
- const T = t.value.map((b) => u(b, f)), c = Re(T)(m);
550
- for (const b of c) {
551
- const S = t.value.filter((l) => u(l, f) === b.item);
552
- C.push(...S);
546
+ const O = (i) => {
547
+ const y = [];
548
+ return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((r) => {
549
+ const o = t.value.map((l) => c(l, r)), S = Oe(o)(i);
550
+ for (const l of S) {
551
+ const _ = t.value.filter((p) => c(p, r) === l.item);
552
+ y.push(..._);
553
553
  }
554
- }), C) : [];
554
+ }), y) : [];
555
555
  };
556
- return (m, C) => (p(), h("table", {
556
+ return (i, y) => (v(), h("table", {
557
557
  ref_key: "table",
558
- ref: s,
559
- class: F(n.value)
558
+ ref: u,
559
+ class: E(n.value)
560
560
  }, [
561
- _("thead", null, [
562
- _("tr", null, [
563
- (p(!0), h(V, null, X(r.columns, (y) => (p(), h("th", {
564
- key: y.title
565
- }, H(y.title), 1))), 128))
561
+ x("thead", null, [
562
+ x("tr", null, [
563
+ (v(!0), h(V, null, X(a.columns, (b) => (v(), h("th", {
564
+ key: b.title
565
+ }, H(b.title), 1))), 128))
566
566
  ])
567
567
  ]),
568
- _("tbody", null, [
569
- a.value.length === 0 ? (p(), h("tr", We, [
570
- _("td", {
571
- colspan: r.columns.length
572
- }, " No data found ", 8, Oe)
573
- ])) : (p(!0), h(V, { key: 1 }, X(a.value, (y) => (p(), h("tr", {
574
- key: String(y)
568
+ x("tbody", null, [
569
+ s.value.length === 0 ? (v(), h("tr", Ve, [
570
+ x("td", {
571
+ colspan: a.columns.length
572
+ }, " No data found ", 8, De)
573
+ ])) : (v(!0), h(V, { key: 1 }, X(s.value, (b) => (v(), h("tr", {
574
+ key: String(b)
575
575
  }, [
576
- (p(!0), h(V, null, X(r.columns, (f) => (p(), h("td", {
577
- key: f.title
576
+ (v(!0), h(V, null, X(a.columns, (r) => (v(), h("td", {
577
+ key: r.title
578
578
  }, [
579
- f.render ? D("", !0) : (p(), h(V, { key: 0 }, [
580
- le(H(u(y, f.data)), 1)
579
+ r.render ? D("", !0) : (v(), h(V, { key: 0 }, [
580
+ ie(H(c(b, r.data)), 1)
581
581
  ], 64)),
582
- typeof f.render == "function" ? (p(), h(V, { key: 1 }, [
583
- typeof f.render(u(y, f.data), y) == "string" ? (p(), h("div", {
582
+ typeof r.render == "function" ? (v(), h(V, { key: 1 }, [
583
+ typeof r.render(c(b, r.data), b) == "string" ? (v(), h("div", {
584
584
  key: 0,
585
- innerHTML: f.render(u(y, f.data), y)
586
- }, null, 8, Ve)) : (p(), G(ce(f.render(u(y, f.data), y)), { key: 1 }))
585
+ innerHTML: r.render(c(b, r.data), b)
586
+ }, null, 8, Pe)) : (v(), G(oe(z(r.render(c(b, r.data), b).component)), he({
587
+ key: 1,
588
+ ref_for: !0
589
+ }, f(b, r)), null, 16))
587
590
  ], 64)) : D("", !0)
588
591
  ]))), 128))
589
592
  ]))), 128))
590
593
  ])
591
594
  ], 2));
592
595
  }
593
- }), at = /* @__PURE__ */ $({
596
+ }), ut = /* @__PURE__ */ $({
594
597
  __name: "Stepper",
595
598
  props: {
596
599
  value: {}
597
600
  },
598
601
  emits: ["update:value"],
599
- setup(e, { expose: t, emit: a }) {
600
- const s = e, r = B(s.value), n = a, u = (d) => {
601
- r.value = d, n("update:value", d);
602
+ setup(e, { expose: t, emit: s }) {
603
+ const u = e, a = B(u.value), n = s, c = (f) => {
604
+ a.value = f, n("update:value", f);
602
605
  };
603
- return ge("stepper", {
604
- value: r,
605
- updateValue: u
606
- }), q(() => s.value, (d) => {
607
- r.value = d;
606
+ return me("stepper", {
607
+ value: a,
608
+ updateValue: c
609
+ }), P(() => u.value, (f) => {
610
+ a.value = f;
608
611
  }), t({
609
- updateValue: u
610
- }), (d, m) => z(d.$slots, "default", { updateValue: u });
612
+ updateValue: c
613
+ }), (f, z) => N(f.$slots, "default", { updateValue: c });
611
614
  }
612
- }), st = /* @__PURE__ */ $({
615
+ }), ct = /* @__PURE__ */ $({
613
616
  __name: "Step",
614
617
  props: {
615
618
  value: {}
616
619
  },
617
620
  setup(e) {
618
- const t = e, a = j("stepper"), s = B("");
619
- return q(() => a == null ? void 0 : a.value.value, (r) => {
620
- r && t.value && (s.value = Number(r) >= Number(t.value) ? "step-primary" : "");
621
- }), Z(() => {
622
- a && (s.value = a.value.value === t.value ? "step-primary" : "", Number(a.value.value) >= Number(t.value) && (s.value = "step-primary"));
623
- }), (r, n) => (p(), h("li", {
624
- class: F(["step", s.value])
621
+ const t = e, s = Z("stepper"), u = B("");
622
+ return P(() => s == null ? void 0 : s.value.value, (a) => {
623
+ a && t.value && (u.value = Number(a) >= Number(t.value) ? "step-primary" : "");
624
+ }), j(() => {
625
+ s && (u.value = s.value.value === t.value ? "step-primary" : "", Number(s.value.value) >= Number(t.value) && (u.value = "step-primary"));
626
+ }), (a, n) => (v(), h("li", {
627
+ class: E(["step", u.value])
625
628
  }, [
626
- z(r.$slots, "default")
629
+ N(a.$slots, "default")
627
630
  ], 2));
628
631
  }
629
- }), De = {}, qe = { class: "steps" };
630
- function Pe(e, t) {
631
- return p(), h("ul", qe, [
632
- z(e.$slots, "default")
632
+ }), qe = {}, Ae = { class: "steps" };
633
+ function Xe(e, t) {
634
+ return v(), h("ul", Ae, [
635
+ N(e.$slots, "default")
633
636
  ]);
634
637
  }
635
- const ut = /* @__PURE__ */ Q(De, [["render", Pe]]), Ae = { key: 0 }, ct = /* @__PURE__ */ $({
638
+ const ot = /* @__PURE__ */ Q(qe, [["render", Xe]]), Ie = { key: 0 }, lt = /* @__PURE__ */ $({
636
639
  __name: "StepPanels",
637
640
  setup(e) {
638
- const t = j("stepper");
639
- return (a, s) => (p(), G(he, {
641
+ const t = Z("stepper");
642
+ return (s, u) => (v(), G(ye, {
640
643
  name: "fade",
641
644
  mode: "out-in"
642
645
  }, {
643
- default: oe(() => {
644
- var r, n;
646
+ default: le(() => {
647
+ var a, n;
645
648
  return [
646
- (r = ee(t)) != null && r.value ? (p(), h("div", Ae, [
647
- z(a.$slots, "default", {
648
- currentStep: (n = ee(t)) == null ? void 0 : n.value
649
+ (a = te(t)) != null && a.value ? (v(), h("div", Ie, [
650
+ N(s.$slots, "default", {
651
+ currentStep: (n = te(t)) == null ? void 0 : n.value
649
652
  })
650
653
  ])) : D("", !0)
651
654
  ];
@@ -653,25 +656,25 @@ const ut = /* @__PURE__ */ Q(De, [["render", Pe]]), Ae = { key: 0 }, ct = /* @__
653
656
  _: 3
654
657
  }));
655
658
  }
656
- }), Xe = { key: 0 }, ot = /* @__PURE__ */ $({
659
+ }), Ue = { key: 0 }, it = /* @__PURE__ */ $({
657
660
  __name: "StepPanel",
658
661
  props: {
659
662
  value: {}
660
663
  },
661
664
  setup(e, { expose: t }) {
662
- const a = ue(() => s == null ? void 0 : s.value.value), s = j("stepper"), r = (n) => {
663
- s && s.updateValue(n.toString());
665
+ const s = ce(() => u == null ? void 0 : u.value.value), u = Z("stepper"), a = (n) => {
666
+ u && u.updateValue(n.toString());
664
667
  };
665
668
  return t({
666
- activateCallback: r
667
- }), (n, u) => n.value === a.value ? (p(), h("div", Xe, [
668
- z(n.$slots, "default", { activateCallback: r })
669
+ activateCallback: a
670
+ }), (n, c) => n.value === s.value ? (v(), h("div", Ue, [
671
+ N(n.$slots, "default", { activateCallback: a })
669
672
  ])) : D("", !0);
670
673
  }
671
- }), Ie = {
674
+ }), Ke = {
672
675
  key: 0,
673
676
  method: "dialog"
674
- }, lt = /* @__PURE__ */ $({
677
+ }, dt = /* @__PURE__ */ $({
675
678
  __name: "Modal",
676
679
  props: {
677
680
  closeButton: { type: Boolean, default: !0 },
@@ -680,61 +683,61 @@ const ut = /* @__PURE__ */ Q(De, [["render", Pe]]), Ae = { key: 0 }, ct = /* @__
680
683
  extraBoxClasses: {}
681
684
  },
682
685
  emits: ["close"],
683
- setup(e, { expose: t, emit: a }) {
684
- const s = B(null), r = a, n = e, u = B(O("modal-box", n.extraBoxClasses)), d = B(O("modal", {
686
+ setup(e, { expose: t, emit: s }) {
687
+ const u = B(null), a = s, n = e, c = B(W("modal-box", n.extraBoxClasses)), f = B(W("modal", {
685
688
  "overflow-visible": n.overflow
686
- })), m = B(O("btn", xe.toClassName(n.closeButtonSize), "btn-circle", "btn-ghost", "absolute", "right-2", "top-2"));
689
+ })), z = B(W("btn", ke.toClassName(n.closeButtonSize), "btn-circle", "btn-ghost", "absolute", "right-2", "top-2"));
687
690
  return t({
688
691
  showModal: () => {
689
- var f;
690
- (f = s.value) == null || f.showModal();
692
+ var y;
693
+ (y = u.value) == null || y.showModal();
691
694
  },
692
695
  closeModal: () => {
693
- var f;
694
- (f = s.value) == null || f.close();
696
+ var y;
697
+ (y = u.value) == null || y.close();
695
698
  }
696
- }), (f, T) => (p(), h("dialog", {
699
+ }), (y, b) => (v(), h("dialog", {
697
700
  ref_key: "modal",
698
- ref: s,
699
- class: F([d.value, f.$attrs.class]),
701
+ ref: u,
702
+ class: E([f.value, y.$attrs.class]),
700
703
  "aria-modal": "true",
701
704
  "aria-hidden": "true",
702
705
  role: "dialog",
703
- onClose: T[0] || (T[0] = (o) => r("close", o))
706
+ onClose: b[0] || (b[0] = (r) => a("close", r))
704
707
  }, [
705
- _("div", {
706
- class: F(u.value)
708
+ x("div", {
709
+ class: E(c.value)
707
710
  }, [
708
- f.closeButton ? (p(), h("form", Ie, [
709
- _("button", {
710
- class: F(m.value)
711
+ y.closeButton ? (v(), h("form", Ke, [
712
+ x("button", {
713
+ class: E(z.value)
711
714
  }, "✕", 2)
712
715
  ])) : D("", !0),
713
- z(f.$slots, "default")
716
+ N(y.$slots, "default")
714
717
  ], 2),
715
- T[1] || (T[1] = _("form", {
718
+ b[1] || (b[1] = x("form", {
716
719
  method: "dialog",
717
720
  class: "modal-backdrop"
718
721
  }, [
719
- _("button", null, "close")
722
+ x("button", null, "close")
720
723
  ], -1))
721
724
  ], 34));
722
725
  }
723
- }), Ue = { class: "hidden w-full max-w-sm lg:flex" }, Ke = { class: "relative mx-3 w-full" }, He = { class: "w-full max-w-full relative" }, Ge = ["value"], it = /* @__PURE__ */ $({
726
+ }), He = { class: "hidden w-full max-w-sm lg:flex" }, Ge = { class: "relative mx-3 w-full" }, je = { class: "w-full max-w-full relative" }, Ze = ["value"], ft = /* @__PURE__ */ $({
724
727
  __name: "SearchBar",
725
728
  props: ["modelValue"],
726
729
  emits: ["update:modelValue"],
727
730
  setup(e, { emit: t }) {
728
- const a = e, s = B(null), r = t, n = (u) => {
729
- (u.ctrlKey || u.metaKey) && u.key.toLowerCase() === "k" && (u.preventDefault(), s.value && s.value.focus());
731
+ const s = e, u = B(null), a = t, n = (c) => {
732
+ (c.ctrlKey || c.metaKey) && c.key.toLowerCase() === "k" && (c.preventDefault(), u.value && u.value.focus());
730
733
  };
731
- return Z(() => {
734
+ return j(() => {
732
735
  document.addEventListener("keydown", n);
733
- }), me(() => {
736
+ }), _e(() => {
734
737
  document.removeEventListener("keydown", n);
735
- }), (u, d) => (p(), h("div", Ue, [
736
- _("label", Ke, [
737
- d[1] || (d[1] = _("svg", {
738
+ }), (c, f) => (v(), h("div", He, [
739
+ x("label", Ge, [
740
+ f[1] || (f[1] = x("svg", {
738
741
  class: "pointer-events-none absolute z-10 my-3.5 ms-4 opacity-60 text-base-content",
739
742
  "aria-hidden": "true",
740
743
  width: "16",
@@ -742,33 +745,33 @@ const ut = /* @__PURE__ */ Q(De, [["render", Pe]]), Ae = { key: 0 }, ct = /* @__
742
745
  viewBox: "0.48 0.48 23.04 23.04",
743
746
  fill: "currentColor"
744
747
  }, [
745
- _("path", {
748
+ x("path", {
746
749
  fill: "none",
747
750
  d: "M0 0h24v24H0z"
748
751
  }),
749
- _("path", { d: "M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" })
752
+ x("path", { d: "M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" })
750
753
  ], -1)),
751
- _("div", He, [
752
- _("form", null, [
753
- _("input", {
754
+ x("div", je, [
755
+ x("form", null, [
756
+ x("input", {
754
757
  ref_key: "searchInput",
755
- ref: s,
758
+ ref: u,
756
759
  type: "search",
757
760
  placeholder: "Zoeken...",
758
- value: a.modelValue,
759
- onInput: d[0] || (d[0] = (m) => r("update:modelValue", m.target.value)),
761
+ value: s.modelValue,
762
+ onInput: f[0] || (f[0] = (z) => a("update:modelValue", z.target.value)),
760
763
  class: "bg-transparent color-[inherit] border-[2px] border-solid border-transparent focus:border-[2px] focus:border-base-200 focus:outline-none rounded-xl w-full px-3 py-2 ps-10"
761
- }, null, 40, Ge)
764
+ }, null, 40, Ze)
762
765
  ])
763
766
  ]),
764
- d[2] || (d[2] = _("div", { class: "pointer-events-none absolute end-10 top-2.5 gap-1 opacity-50 rtl:flex-row-reverse hidden lg:flex" }, [
765
- _("kbd", { class: "kbd kbd-sm" }, "ctrl"),
766
- _("kbd", { class: "kbd kbd-sm" }, "K")
767
+ f[2] || (f[2] = x("div", { class: "pointer-events-none absolute end-10 top-2.5 gap-1 opacity-50 rtl:flex-row-reverse hidden lg:flex" }, [
768
+ x("kbd", { class: "kbd kbd-sm" }, "ctrl"),
769
+ x("kbd", { class: "kbd kbd-sm" }, "K")
767
770
  ], -1))
768
771
  ])
769
772
  ]));
770
773
  }
771
- }), dt = [
774
+ }), pt = [
772
775
  "bg-primary",
773
776
  "bg-primary-content",
774
777
  "bg-secondary",
@@ -854,27 +857,27 @@ const ut = /* @__PURE__ */ Q(De, [["render", Pe]]), Ae = { key: 0 }, ct = /* @__
854
857
  "block"
855
858
  ];
856
859
  export {
857
- ye as BackgroundColorUtils,
858
- Je as Button,
859
- _e as ButtonColorUtils,
860
- xe as ButtonSizeUtils,
861
- Qe as Card,
862
- et as CardBody,
863
- tt as CardTitle,
860
+ xe as BackgroundColorUtils,
861
+ Qe as Button,
862
+ Se as ButtonColorUtils,
863
+ ke as ButtonSizeUtils,
864
+ tt as Card,
865
+ nt as CardBody,
866
+ rt as CardTitle,
864
867
  J as Color,
865
- nt as Container,
866
- lt as Modal,
867
- Se as RoundedSizeUtils,
868
- it as SearchBar,
869
- Ye as SimpleButton,
868
+ at as Container,
869
+ dt as Modal,
870
+ we as RoundedSizeUtils,
871
+ ft as SearchBar,
872
+ et as SimpleButton,
870
873
  Y as Size,
871
- st as Step,
872
- ut as StepList,
873
- ot as StepPanel,
874
- ct as StepPanels,
875
- at as Stepper,
876
- rt as Table,
877
- we as TableSizeUtils,
878
- je as TextColorUtils,
879
- dt as dendelionSafeList
874
+ ct as Step,
875
+ ot as StepList,
876
+ it as StepPanel,
877
+ lt as StepPanels,
878
+ ut as Stepper,
879
+ st as Table,
880
+ Be as TableSizeUtils,
881
+ Ye as TextColorUtils,
882
+ pt as dendelionSafeList
880
883
  };