dendelion-ui 0.0.11 → 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 (49) hide show
  1. package/dist/dendelion-ui.cjs.js +2 -2
  2. package/dist/dendelion-ui.es.js +321 -315
  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 -21
  9. package/dist/types/components/modal/interface.d.ts +1 -0
  10. package/dist/types/components/stepper/Step.vue.d.ts +2 -8
  11. package/dist/types/components/stepper/StepList.vue.d.ts +2 -4
  12. package/dist/types/components/stepper/StepPanel.vue.d.ts +2 -9
  13. package/dist/types/components/stepper/StepPanels.vue.d.ts +2 -10
  14. package/dist/types/components/stepper/Stepper.vue.d.ts +2 -11
  15. package/dist/types/components/table/interface.d.ts +10 -2
  16. package/package.json +79 -75
  17. package/src/components/button/Button.vue +32 -29
  18. package/src/components/button/SimpleButton.vue +5 -8
  19. package/src/components/button/index.ts +3 -3
  20. package/src/components/button/interface.ts +13 -13
  21. package/src/components/card/Card.vue +32 -25
  22. package/src/components/card/CardBody.vue +7 -9
  23. package/src/components/card/CardTitle.vue +20 -18
  24. package/src/components/card/index.ts +4 -4
  25. package/src/components/card/interface.ts +9 -9
  26. package/src/components/container/Container.vue +20 -21
  27. package/src/components/container/index.ts +2 -2
  28. package/src/components/container/interface.ts +4 -5
  29. package/src/components/modal/Modal.vue +70 -50
  30. package/src/components/modal/index.ts +2 -2
  31. package/src/components/modal/interface.ts +12 -11
  32. package/src/components/search/SearchBar.vue +62 -53
  33. package/src/components/search/index.ts +1 -1
  34. package/src/components/stepper/Step.vue +37 -35
  35. package/src/components/stepper/StepList.vue +7 -8
  36. package/src/components/stepper/StepPanel.vue +29 -30
  37. package/src/components/stepper/StepPanels.vue +16 -17
  38. package/src/components/stepper/Stepper.vue +35 -33
  39. package/src/components/stepper/index.ts +6 -6
  40. package/src/components/stepper/interface.ts +3 -4
  41. package/src/components/table/Table.vue +135 -104
  42. package/src/components/table/index.ts +2 -2
  43. package/src/components/table/interface.ts +39 -31
  44. package/src/components.ts +7 -7
  45. package/src/index.ts +91 -91
  46. package/src/shims-vue.d.ts +7 -11
  47. package/src/types/color.ts +169 -170
  48. package/src/types/index.ts +2 -2
  49. 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 O, renderList as X, createCommentVNode as V, 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 f = arguments[u];
231
- f && (n = r(n, s(f)));
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 = "";
244
+ var c = "";
245
245
  for (var f in n)
246
- t.call(n, f) && n[f] && (u = r(u, f));
247
- return u;
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 D = /* @__PURE__ */ ie(Be), Me = ["type", "disabled"], $e = { class: "group-[.is-loading]:text-transparent" }, Ye = /* @__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 D = /* @__PURE__ */ ie(Be), Me = ["type", "disabled"], $e = { class: "grou
266
266
  click: {}
267
267
  },
268
268
  setup(e) {
269
- const t = e, a = ue(() => D(
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 Qe = /* @__PURE__ */ Q(Ne, [["render", ze]]), et = /* @__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 Qe = /* @__PURE__ */ Q(Ne, [["render", ze]]), et = /* @__PURE__ */ $({
306
306
  roundedSize: {}
307
307
  },
308
308
  setup(e) {
309
- const t = e, a = B(D(
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
- }), Te = {}, Le = { class: "card-body" };
323
- function Ce(e, t) {
324
- return p(), h("div", Le, [
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 tt = /* @__PURE__ */ Q(Te, [["render", Ce]]), nt = /* @__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
- }), rt = /* @__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 E = {}, re;
372
- function ae() {
373
- if (re) return E;
374
- re = 1, E.__esModule = !0, E.aggressiveFuzzyMatch = y, E.createFuzzySearchImpl = W, E.experimentalSmartFuzzyMatch = T, E.fuzzyMatchImpl = m;
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 f(o, c, b, S, l, x, v) {
394
- if (o === S)
395
- return [0, [[0, o.length - 1]]];
396
- var d = 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]))
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
403
  return [0.9, [[M, M + d - 1]]];
404
- var k = c.indexOf(l);
405
- if (k > -1 && u(c[k - 1]))
406
- return [1, [[k, k + d - 1]]];
407
- var N = x.length;
408
- if (N > 1 && x.every(function(C) {
409
- return b.has(C);
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(C) {
413
- var R = c.indexOf(C);
414
- return [R, R + C.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 + d - 1]]] : v === "aggressive" ? y(c, l) : v === "smart" ? T(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 y(o, c) {
420
- for (var b = o.length, S = c.length, l = 0, x = c[l], v = [], d = -1, g = -2, w = 0; w < b; w += 1)
421
- if (o[w] === x) {
422
- if (w !== g + 1 && (d >= 0 && v.push([d, g]), d = w), g = w, l += 1, l === S)
423
- return v.push([d, g]), i(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 T(o, c) {
429
- for (var b = o.length, S = [], l = 0, x = c[l], v = -1, d = -2; ; ) {
430
- var g = o.indexOf(x, d + 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
440
  d += 1;
441
441
  continue;
442
442
  }
443
443
  }
444
- for (d = v; d < b && o[d] === x; d += 1)
445
- l += 1, x = c[l];
446
- if (d -= 1, S.push([v, d]), l === c.length)
447
- return i(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 i(o, c) {
452
- var b = 2;
453
- return o.forEach(function(S) {
454
- var l = S[0], x = S[1], v = x - l + 1, d = l === 0 || c[l] === " " || c[l - 1] === " ", g = x === c.length - 1 || c[x] === " " || c[x + 1] === " ", w = d && g;
455
- w ? b += 0.2 : d ? 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 m(o, c) {
459
- var b = (0, e.default)(c), S = b.split(" "), l = (0, e.default)(o), x = new Set(l.split(" ")), v = f(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 W(o, c) {
467
- var b = c.strategy, S = b === void 0 ? "aggressive" : b, l = c.getText, x = o.map(function(v) {
466
+ function b(r, o) {
467
+ var m = o.strategy, S = m === void 0 ? "aggressive" : m, l = o.getText, _ = r.map(function(p) {
468
468
  var d;
469
469
  if (l)
470
- d = l(v);
470
+ d = l(p);
471
471
  else {
472
- var g = c.key ? v[c.key] : v;
472
+ var g = o.key ? p[o.key] : p;
473
473
  d = [g];
474
474
  }
475
- var w = d.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 d = [], 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, C = [], R = 0, fe = N.length; R < fe; R += 1) {
485
- var P = N[R], pe = P[0], be = P[1], ve = P[2], A = f(pe, be, ve, v, g, w, S);
486
- A ? (L = Math.min(L, A[0]), C.push(A[1])) : C.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 && d.push({
489
- item: k,
490
- score: L,
491
- matches: C
488
+ T < s && d.push({
489
+ item: w,
490
+ score: T,
491
+ matches: L
492
492
  });
493
- }), d.sort(s), d) : [];
493
+ }), d.sort(u), d) : [];
494
494
  };
495
495
  }
496
- return E;
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"], at = /* @__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,211 +527,217 @@ 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(D("table", we.toClassName(r.size), {
531
- "table-zebra": r.zebra,
532
- "table-pin-rows": r.pinRows,
533
- "table-pin-cols ": r.pinCols
534
- })), u = (y, T) => String(!y || typeof y != "object" ? y : T.split(".").reduce((i, m) => i && (typeof i == "object" ? i[m] : i), y));
535
- Z(() => {
536
- t.value = r.dataSource, a.value = r.dataSource;
537
- }), q(() => r.dataSource, (y) => {
538
- t.value = y, a.value = y;
539
- }, { immediate: !0 }), q(() => r.searchValue, (y) => {
540
- if (r.searchFunction) {
541
- a.value = r.searchFunction(y ?? "");
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 = y ? f(y) : t.value;
544
+ s.value = i ? O(i) : t.value;
545
545
  }, { immediate: !0 });
546
- const f = (y) => {
547
- const T = [];
548
- return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((m) => {
549
- const W = t.value.map((b) => u(b, m)), c = Re(W)(y);
550
- for (const b of c) {
551
- const S = t.value.filter((l) => u(l, m) === b.item);
552
- T.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
- }), T) : [];
554
+ }), y) : [];
555
555
  };
556
- return (y, T) => (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(O, null, X(r.columns, (i) => (p(), h("th", {
564
- key: i.title
565
- }, H(i.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(O, { key: 1 }, X(a.value, (i) => (p(), h("tr", {
574
- key: String(i)
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(O, null, X(r.columns, (m) => (p(), h("td", {
577
- key: m.title
576
+ (v(!0), h(V, null, X(a.columns, (r) => (v(), h("td", {
577
+ key: r.title
578
578
  }, [
579
- m.render ? V("", !0) : (p(), h(O, { key: 0 }, [
580
- le(H(u(i, m.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 m.render == "function" ? (p(), h(O, { key: 1 }, [
583
- typeof m.render(u(i, m.data), i) == "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: m.render(u(i, m.data), i)
586
- }, null, 8, Ve)) : (p(), G(ce(m.render(u(i, m.data), i)), { key: 1 }))
587
- ], 64)) : V("", !0)
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))
590
+ ], 64)) : D("", !0)
588
591
  ]))), 128))
589
592
  ]))), 128))
590
593
  ])
591
594
  ], 2));
592
595
  }
593
- }), st = /* @__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 = (f) => {
601
- r.value = f, n("update:value", f);
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, (f) => {
607
- r.value = f;
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
- }), (f, y) => z(f.$slots, "default", { updateValue: u });
612
+ updateValue: c
613
+ }), (f, z) => N(f.$slots, "default", { updateValue: c });
611
614
  }
612
- }), ut = /* @__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 ct = /* @__PURE__ */ Q(De, [["render", Pe]]), Ae = { key: 0 }, ot = /* @__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
- ])) : V("", !0)
653
+ ])) : D("", !0)
651
654
  ];
652
655
  }),
653
656
  _: 3
654
657
  }));
655
658
  }
656
- }), Xe = { key: 0 }, lt = /* @__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
- ])) : V("", !0);
669
+ activateCallback: a
670
+ }), (n, c) => n.value === s.value ? (v(), h("div", Ue, [
671
+ N(n.$slots, "default", { activateCallback: a })
672
+ ])) : D("", !0);
670
673
  }
671
- }), Ie = { class: "modal-box" }, Ue = {
674
+ }), Ke = {
672
675
  key: 0,
673
676
  method: "dialog"
674
- }, it = /* @__PURE__ */ $({
677
+ }, dt = /* @__PURE__ */ $({
675
678
  __name: "Modal",
676
679
  props: {
677
680
  closeButton: { type: Boolean, default: !0 },
678
681
  overflow: { type: Boolean, default: !1 },
679
- closeButtonSize: { default: Y.SM }
682
+ closeButtonSize: { default: Y.SM },
683
+ extraBoxClasses: {}
680
684
  },
681
685
  emits: ["close"],
682
- setup(e, { expose: t, emit: a }) {
683
- const s = B(null), r = a, n = e, u = B(D("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", {
684
688
  "overflow-visible": n.overflow
685
- })), f = B(D("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"));
686
690
  return t({
687
691
  showModal: () => {
688
- var i;
689
- (i = s.value) == null || i.showModal();
692
+ var y;
693
+ (y = u.value) == null || y.showModal();
690
694
  },
691
695
  closeModal: () => {
692
- var i;
693
- (i = s.value) == null || i.close();
696
+ var y;
697
+ (y = u.value) == null || y.close();
694
698
  }
695
- }), (i, m) => (p(), h("dialog", {
699
+ }), (y, b) => (v(), h("dialog", {
696
700
  ref_key: "modal",
697
- ref: s,
698
- class: F(u.value),
701
+ ref: u,
702
+ class: E([f.value, y.$attrs.class]),
699
703
  "aria-modal": "true",
700
704
  "aria-hidden": "true",
701
705
  role: "dialog",
702
- onClose: m[0] || (m[0] = (W) => r("close", W))
706
+ onClose: b[0] || (b[0] = (r) => a("close", r))
703
707
  }, [
704
- _("div", Ie, [
705
- i.closeButton ? (p(), h("form", Ue, [
706
- _("button", {
707
- class: F(f.value)
708
+ x("div", {
709
+ class: E(c.value)
710
+ }, [
711
+ y.closeButton ? (v(), h("form", Ke, [
712
+ x("button", {
713
+ class: E(z.value)
708
714
  }, "✕", 2)
709
- ])) : V("", !0),
710
- z(i.$slots, "default")
711
- ]),
712
- m[1] || (m[1] = _("form", {
715
+ ])) : D("", !0),
716
+ N(y.$slots, "default")
717
+ ], 2),
718
+ b[1] || (b[1] = x("form", {
713
719
  method: "dialog",
714
720
  class: "modal-backdrop"
715
721
  }, [
716
- _("button", null, "close")
722
+ x("button", null, "close")
717
723
  ], -1))
718
724
  ], 34));
719
725
  }
720
- }), Ke = { class: "hidden w-full max-w-sm lg:flex" }, He = { class: "relative mx-3 w-full" }, Ge = { class: "w-full max-w-full relative" }, Ze = ["value"], dt = /* @__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__ */ $({
721
727
  __name: "SearchBar",
722
728
  props: ["modelValue"],
723
729
  emits: ["update:modelValue"],
724
730
  setup(e, { emit: t }) {
725
- const a = e, s = B(null), r = t, n = (u) => {
726
- (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());
727
733
  };
728
- return Z(() => {
734
+ return j(() => {
729
735
  document.addEventListener("keydown", n);
730
- }), me(() => {
736
+ }), _e(() => {
731
737
  document.removeEventListener("keydown", n);
732
- }), (u, f) => (p(), h("div", Ke, [
733
- _("label", He, [
734
- f[1] || (f[1] = _("svg", {
738
+ }), (c, f) => (v(), h("div", He, [
739
+ x("label", Ge, [
740
+ f[1] || (f[1] = x("svg", {
735
741
  class: "pointer-events-none absolute z-10 my-3.5 ms-4 opacity-60 text-base-content",
736
742
  "aria-hidden": "true",
737
743
  width: "16",
@@ -739,33 +745,33 @@ const ct = /* @__PURE__ */ Q(De, [["render", Pe]]), Ae = { key: 0 }, ot = /* @__
739
745
  viewBox: "0.48 0.48 23.04 23.04",
740
746
  fill: "currentColor"
741
747
  }, [
742
- _("path", {
748
+ x("path", {
743
749
  fill: "none",
744
750
  d: "M0 0h24v24H0z"
745
751
  }),
746
- _("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" })
747
753
  ], -1)),
748
- _("div", Ge, [
749
- _("form", null, [
750
- _("input", {
754
+ x("div", je, [
755
+ x("form", null, [
756
+ x("input", {
751
757
  ref_key: "searchInput",
752
- ref: s,
758
+ ref: u,
753
759
  type: "search",
754
760
  placeholder: "Zoeken...",
755
- value: a.modelValue,
756
- onInput: f[0] || (f[0] = (y) => r("update:modelValue", y.target.value)),
761
+ value: s.modelValue,
762
+ onInput: f[0] || (f[0] = (z) => a("update:modelValue", z.target.value)),
757
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"
758
764
  }, null, 40, Ze)
759
765
  ])
760
766
  ]),
761
- f[2] || (f[2] = _("div", { class: "pointer-events-none absolute end-10 top-2.5 gap-1 opacity-50 rtl:flex-row-reverse hidden lg:flex" }, [
762
- _("kbd", { class: "kbd kbd-sm" }, "ctrl"),
763
- _("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")
764
770
  ], -1))
765
771
  ])
766
772
  ]));
767
773
  }
768
- }), ft = [
774
+ }), pt = [
769
775
  "bg-primary",
770
776
  "bg-primary-content",
771
777
  "bg-secondary",
@@ -851,27 +857,27 @@ const ct = /* @__PURE__ */ Q(De, [["render", Pe]]), Ae = { key: 0 }, ot = /* @__
851
857
  "block"
852
858
  ];
853
859
  export {
854
- ye as BackgroundColorUtils,
855
- Ye as Button,
856
- _e as ButtonColorUtils,
857
- xe as ButtonSizeUtils,
858
- et as Card,
859
- tt as CardBody,
860
- nt 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,
861
867
  J as Color,
862
- rt as Container,
863
- it as Modal,
864
- Se as RoundedSizeUtils,
865
- dt as SearchBar,
866
- Qe as SimpleButton,
868
+ at as Container,
869
+ dt as Modal,
870
+ we as RoundedSizeUtils,
871
+ ft as SearchBar,
872
+ et as SimpleButton,
867
873
  Y as Size,
868
- ut as Step,
869
- ct as StepList,
870
- lt as StepPanel,
871
- ot as StepPanels,
872
- st as Stepper,
873
- at as Table,
874
- we as TableSizeUtils,
875
- Je as TextColorUtils,
876
- ft 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
877
883
  };