dendelion-ui 0.0.23 → 0.0.25

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as M, computed as I, createElementBlock as i, openBlock as c, normalizeClass as N, createElementVNode as v, renderSlot as T, ref as C, createBlock as q, resolveDynamicComponent as ee, withCtx as fe, createTextVNode as te, toDisplayString as X, onMounted as H, createCommentVNode as E, Fragment as R, unref as K, isVNode as ye, normalizeProps as _e, guardReactiveProps as xe, defineAsyncComponent as se, watch as U, renderList as P, provide as we, inject as ne, Transition as Se, onUnmounted as ke, normalizeStyle as Be, withDirectives as Ce, vModelRadio as $e } from "vue";
1
+ import { defineComponent as M, computed as I, openBlock as c, createElementBlock as i, normalizeClass as N, createElementVNode as v, renderSlot as T, ref as C, createBlock as q, resolveDynamicComponent as ee, withCtx as fe, createTextVNode as te, toDisplayString as X, onMounted as H, Fragment as R, unref as K, isVNode as ye, normalizeProps as xe, guardReactiveProps as _e, createCommentVNode as E, defineAsyncComponent as se, watch as U, renderList as P, provide as we, inject as ne, Transition as Se, onUnmounted as ke, normalizeStyle as Be, withDirectives as Ce, vModelRadio as $e } from "vue";
2
2
  var re = /* @__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))(re || {});
3
3
  class Me {
4
4
  static toClassName(t) {
@@ -233,24 +233,19 @@ function pe(e) {
233
233
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
234
234
  }
235
235
  var Z = { exports: {} };
236
- /*!
237
- Copyright (c) 2018 Jed Watson.
238
- Licensed under the MIT License (MIT), see
239
- http://jedwatson.github.io/classnames
240
- */
241
236
  var oe;
242
237
  function Ee() {
243
- return oe || (oe = 1, function(e) {
238
+ return oe || (oe = 1, (function(e) {
244
239
  (function() {
245
240
  var t = {}.hasOwnProperty;
246
241
  function r() {
247
242
  for (var n = "", o = 0; o < arguments.length; o++) {
248
243
  var f = arguments[o];
249
- f && (n = s(n, a(f)));
244
+ f && (n = a(n, s(f)));
250
245
  }
251
246
  return n;
252
247
  }
253
- function a(n) {
248
+ function s(n) {
254
249
  if (typeof n == "string" || typeof n == "number")
255
250
  return n;
256
251
  if (typeof n != "object")
@@ -261,15 +256,15 @@ function Ee() {
261
256
  return n.toString();
262
257
  var o = "";
263
258
  for (var f in n)
264
- t.call(n, f) && n[f] && (o = s(o, f));
259
+ t.call(n, f) && n[f] && (o = a(o, f));
265
260
  return o;
266
261
  }
267
- function s(n, o) {
262
+ function a(n, o) {
268
263
  return o ? n ? n + " " + o : n + o : n;
269
264
  }
270
265
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
271
266
  })();
272
- }(Z)), Z.exports;
267
+ })(Z)), Z.exports;
273
268
  }
274
269
  var Fe = Ee();
275
270
  const D = /* @__PURE__ */ pe(Fe), We = ["type", "disabled"], Ve = { class: "group-[.is-loading]:text-transparent" }, gt = /* @__PURE__ */ M({
@@ -295,28 +290,28 @@ const D = /* @__PURE__ */ pe(Fe), We = ["type", "disabled"], Ve = { class: "grou
295
290
  t.disabled ? "disabled" : ""
296
291
  )
297
292
  );
298
- return (a, s) => (c(), i("button", {
299
- onClick: s[0] || (s[0] = (n) => a.click ? a.click : void 0),
293
+ return (s, a) => (c(), i("button", {
294
+ onClick: a[0] || (a[0] = (n) => e.click ? e.click : void 0),
300
295
  class: N(r.value),
301
- type: a.type,
302
- disabled: a.disabled || a.loading
296
+ type: e.type,
297
+ disabled: e.disabled || e.loading
303
298
  }, [
304
- s[1] || (s[1] = v("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
299
+ a[1] || (a[1] = v("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
305
300
  v("span", Ve, [
306
- T(a.$slots, "default")
301
+ T(s.$slots, "default")
307
302
  ])
308
303
  ], 10, We));
309
304
  }
310
305
  }), ae = (e, t) => {
311
306
  const r = e.__vccOpts || e;
312
- for (const [a, s] of t)
313
- r[a] = s;
307
+ for (const [s, a] of t)
308
+ r[s] = a;
314
309
  return r;
315
310
  }, De = {};
316
311
  function Oe(e, t) {
317
312
  return c(), i("button");
318
313
  }
319
- const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), _t = /* @__PURE__ */ M({
314
+ const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), xt = /* @__PURE__ */ M({
320
315
  __name: "Card",
321
316
  props: {
322
317
  backgroundColor: { default: re.Primary },
@@ -335,10 +330,10 @@ const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), _t = /* @__PURE__ */ M({
335
330
  t.rounded && !t.roundedSize ? "rounded" : t.roundedSize ? Te.toClassName(t.roundedSize) : ""
336
331
  )
337
332
  );
338
- return (a, s) => (c(), i("div", {
333
+ return (s, a) => (c(), i("div", {
339
334
  class: N(r.value)
340
335
  }, [
341
- T(a.$slots, "default")
336
+ T(s.$slots, "default")
342
337
  ], 2));
343
338
  }
344
339
  }), Pe = {}, Ae = { class: "card-body" };
@@ -347,16 +342,16 @@ function qe(e, t) {
347
342
  T(e.$slots, "default")
348
343
  ]);
349
344
  }
350
- const xt = /* @__PURE__ */ ae(Pe, [["render", qe]]), wt = /* @__PURE__ */ M({
345
+ const _t = /* @__PURE__ */ ae(Pe, [["render", qe]]), wt = /* @__PURE__ */ M({
351
346
  __name: "CardTitle",
352
347
  props: {
353
348
  is: { default: "h1" },
354
349
  text: { default: "" }
355
350
  },
356
351
  setup(e) {
357
- return (t, r) => (c(), q(ee(t.is), { class: "card-title" }, {
352
+ return (t, r) => (c(), q(ee(e.is), { class: "card-title" }, {
358
353
  default: fe(() => [
359
- te(X(t.text), 1)
354
+ te(X(e.text), 1)
360
355
  ]),
361
356
  _: 1
362
357
  }));
@@ -373,37 +368,37 @@ const xt = /* @__PURE__ */ ae(Pe, [["render", qe]]), wt = /* @__PURE__ */ M({
373
368
  //To disable the max width in some cases
374
369
  t.padding ? "p-6" : ""
375
370
  ]);
376
- return (a, s) => (c(), i("div", {
371
+ return (s, a) => (c(), i("div", {
377
372
  class: N(r.value)
378
373
  }, [
379
- T(a.$slots, "default")
374
+ T(s.$slots, "default")
380
375
  ], 2));
381
376
  }
382
- }), A = (e, t) => String(!e || typeof e != "object" ? e : t.split(".").reduce((r, a) => r && (typeof r == "object" ? r[a] : r), e));
377
+ }), A = (e, t) => String(!e || typeof e != "object" ? e : t.split(".").reduce((r, s) => r && (typeof r == "object" ? r[s] : r), e));
383
378
  var Y = {}, Q = {}, ue;
384
379
  function be() {
385
- return ue || (ue = 1, function(e) {
386
- e.__esModule = !0, e.default = s;
387
- var t = /[\u0300-\u036f]/g, r = /ł/g, a = /ñ/g;
388
- function s(n) {
389
- return n.toLowerCase().normalize("NFD").replace(t, "").replace(r, "l").replace(a, "n").trim();
380
+ return ue || (ue = 1, (function(e) {
381
+ e.__esModule = !0, e.default = a;
382
+ var t = /[\u0300-\u036f]/g, r = /ł/g, s = /ñ/g;
383
+ function a(n) {
384
+ return n.toLowerCase().normalize("NFD").replace(t, "").replace(r, "l").replace(s, "n").trim();
390
385
  }
391
- }(Q)), Q;
386
+ })(Q)), Q;
392
387
  }
393
388
  var V = {}, ce;
394
389
  function le() {
395
390
  if (ce) return V;
396
- ce = 1, V.__esModule = !0, V.aggressiveFuzzyMatch = k, V.createFuzzySearchImpl = w, V.experimentalSmartFuzzyMatch = g, V.fuzzyMatchImpl = _;
391
+ ce = 1, V.__esModule = !0, V.aggressiveFuzzyMatch = k, V.createFuzzySearchImpl = w, V.experimentalSmartFuzzyMatch = _, V.fuzzyMatchImpl = y;
397
392
  var e = t(be());
398
393
  function t(u) {
399
394
  return u && u.__esModule ? u : { default: u };
400
395
  }
401
- var r = Number.MAX_SAFE_INTEGER, a = function(l, m) {
396
+ var r = Number.MAX_SAFE_INTEGER, s = function(l, m) {
402
397
  return (
403
398
  /*: number*/
404
399
  l.score - m.score
405
400
  );
406
- }, s = function(l, m) {
401
+ }, a = function(l, m) {
407
402
  return (
408
403
  /*: number*/
409
404
  l[0] - m[0]
@@ -412,7 +407,7 @@ function le() {
412
407
  function o(u) {
413
408
  return n.has(u);
414
409
  }
415
- function f(u, l, m, x, d, y, b) {
410
+ function f(u, l, m, x, d, g, b) {
416
411
  if (u === x)
417
412
  return [0, [[0, u.length - 1]]];
418
413
  var p = x.length, h = l.length, S = d.length;
@@ -426,30 +421,30 @@ function le() {
426
421
  var B = l.indexOf(d);
427
422
  if (B > -1 && o(l[B - 1]))
428
423
  return [1, [[B, B + p - 1]]];
429
- var L = y.length;
430
- if (L > 1 && y.every(function(W) {
424
+ var L = g.length;
425
+ if (L > 1 && g.every(function(W) {
431
426
  return m.has(W);
432
427
  })) {
433
428
  var F = 1.5 + L * 0.2;
434
- return [F, y.map(function(W) {
429
+ return [F, g.map(function(W) {
435
430
  var O = l.indexOf(W);
436
431
  return [O, O + W.length - 1];
437
- }).sort(s)];
432
+ }).sort(a)];
438
433
  }
439
- return B > -1 ? [2, [[B, B + p - 1]]] : b === "aggressive" ? k(l, d) : b === "smart" ? g(l, d) : null;
434
+ return B > -1 ? [2, [[B, B + p - 1]]] : b === "aggressive" ? k(l, d) : b === "smart" ? _(l, d) : null;
440
435
  }
441
436
  function k(u, l) {
442
- for (var m = u.length, x = l.length, d = 0, y = l[d], b = [], p = -1, h = -2, S = 0; S < m; S += 1)
443
- if (u[S] === y) {
437
+ for (var m = u.length, x = l.length, d = 0, g = l[d], b = [], p = -1, h = -2, S = 0; S < m; S += 1)
438
+ if (u[S] === g) {
444
439
  if (S !== h + 1 && (p >= 0 && b.push([p, h]), p = S), h = S, d += 1, d === x)
445
440
  return b.push([p, h]), $(b, u);
446
- y = l[d];
441
+ g = l[d];
447
442
  }
448
443
  return null;
449
444
  }
450
- function g(u, l) {
451
- for (var m = u.length, x = [], d = 0, y = l[d], b = -1, p = -2; ; ) {
452
- var h = u.indexOf(y, p + 1);
445
+ function _(u, l) {
446
+ for (var m = u.length, x = [], d = 0, g = l[d], b = -1, p = -2; ; ) {
447
+ var h = u.indexOf(g, p + 1);
453
448
  if (h === -1)
454
449
  break;
455
450
  if (h === 0 || o(u[h - 1]))
@@ -463,8 +458,8 @@ function le() {
463
458
  continue;
464
459
  }
465
460
  }
466
- for (p = b; p < m && u[p] === y; p += 1)
467
- d += 1, y = l[d];
461
+ for (p = b; p < m && u[p] === g; p += 1)
462
+ d += 1, g = l[d];
468
463
  if (p -= 1, x.push([b, p]), d === l.length)
469
464
  return $(x, u);
470
465
  }
@@ -473,12 +468,12 @@ function le() {
473
468
  function $(u, l) {
474
469
  var m = 2;
475
470
  return u.forEach(function(x) {
476
- var d = x[0], y = x[1], b = y - d + 1, p = d === 0 || l[d] === " " || l[d - 1] === " ", h = y === l.length - 1 || l[y] === " " || l[y + 1] === " ", S = p && h;
471
+ var d = x[0], g = x[1], b = g - d + 1, p = d === 0 || l[d] === " " || l[d - 1] === " ", h = g === l.length - 1 || l[g] === " " || l[g + 1] === " ", S = p && h;
477
472
  S ? m += 0.2 : p ? m += 0.4 : b >= 3 ? m += 0.8 : m += 1.6;
478
473
  }), [m, u];
479
474
  }
480
- function _(u, l) {
481
- var m = (0, e.default)(l), x = m.split(" "), d = (0, e.default)(u), y = new Set(d.split(" ")), b = f(u, d, y, l, m, x, "smart");
475
+ function y(u, l) {
476
+ var m = (0, e.default)(l), x = m.split(" "), d = (0, e.default)(u), g = new Set(d.split(" ")), b = f(u, d, g, l, m, x, "smart");
482
477
  return b ? {
483
478
  item: u,
484
479
  score: b[0],
@@ -486,7 +481,7 @@ function le() {
486
481
  } : null;
487
482
  }
488
483
  function w(u, l) {
489
- var m = l.strategy, x = m === void 0 ? "aggressive" : m, d = l.getText, y = u.map(function(b) {
484
+ var m = l.strategy, x = m === void 0 ? "aggressive" : m, d = l.getText, g = u.map(function(b) {
490
485
  var p;
491
486
  if (d)
492
487
  p = d(b);
@@ -502,7 +497,7 @@ function le() {
502
497
  });
503
498
  return function(b) {
504
499
  var p = [], h = (0, e.default)(b), S = h.split(" ");
505
- return h.length ? (y.forEach(function(z) {
500
+ return h.length ? (g.forEach(function(z) {
506
501
  for (var B = z[0], L = z[1], F = r, W = [], O = 0, ve = L.length; O < ve; O += 1) {
507
502
  var j = L[O], me = j[0], he = j[1], ge = j[2], J = f(me, he, ge, b, h, S, x);
508
503
  J ? (F = Math.min(F, J[0]), W.push(J[1])) : W.push(null);
@@ -512,27 +507,27 @@ function le() {
512
507
  score: F,
513
508
  matches: W
514
509
  });
515
- }), p.sort(a), p) : [];
510
+ }), p.sort(s), p) : [];
516
511
  };
517
512
  }
518
513
  return V;
519
514
  }
520
515
  var ie;
521
516
  function Ie() {
522
- return ie || (ie = 1, function(e) {
523
- e.__esModule = !0, e.default = a, e.fuzzyMatch = s;
517
+ return ie || (ie = 1, (function(e) {
518
+ e.__esModule = !0, e.default = s, e.fuzzyMatch = a;
524
519
  var t = r(be());
525
520
  e.normalizeText = t.default;
526
521
  function r(n) {
527
522
  return n && n.__esModule ? n : { default: n };
528
523
  }
529
- function a(n, o) {
524
+ function s(n, o) {
530
525
  return o === void 0 && (o = {}), le().createFuzzySearchImpl(n, o);
531
526
  }
532
- function s(n, o) {
527
+ function a(n, o) {
533
528
  return le().fuzzyMatchImpl(n, o);
534
529
  }
535
- }(Y)), Y;
530
+ })(Y)), Y;
536
531
  }
537
532
  var Xe = Ie();
538
533
  const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["innerHTML"], je = { key: 1 }, Je = { key: 2 }, de = /* @__PURE__ */ M({
@@ -547,20 +542,20 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
547
542
  H(() => {
548
543
  r.value && typeof r.value == "object" && "then" in r.value && console.warn("Async component detected in TableColumn, this may cause issues with rendering.");
549
544
  });
550
- const a = (n, o) => o.render === void 0 ? {} : o.render(A(n, o.data), n).props, s = (n) => (console.log("getComponent", n), n && typeof n == "object" && "then" in n ? se(() => n) : typeof n == "function" ? se(n) : n);
545
+ const s = (n, o) => o.render === void 0 ? {} : o.render(A(n, o.data), n).props, a = (n) => (console.log("getComponent", n), n && typeof n == "object" && "then" in n ? se(() => n) : typeof n == "function" ? se(n) : n);
551
546
  return (n, o) => (c(), i("td", null, [
552
- n.column.render ? n.row ? (c(), i(R, { key: 1 }, [
547
+ e.column.render ? e.row ? (c(), i(R, { key: 1 }, [
553
548
  r.value ? (c(), i("div", Ke, [
554
549
  typeof r.value == "string" ? (c(), i("div", He, [
555
550
  v("div", { innerHTML: r.value }, null, 8, Ge)
556
551
  ])) : ye(r.value) ? (c(), i("div", je, [
557
552
  (c(), q(ee(r.value)))
558
553
  ])) : (c(), i("div", Je, [
559
- (c(), q(ee(s(r.value.component)), _e(xe(a(n.row, n.column))), null, 16))
554
+ (c(), q(ee(a(r.value.component)), xe(_e(s(e.row, e.column))), null, 16))
560
555
  ]))
561
556
  ])) : E("", !0)
562
557
  ], 64)) : E("", !0) : (c(), i(R, { key: 0 }, [
563
- te(X(K(A)(n.row, n.column.data)), 1)
558
+ te(X(K(A)(e.row, e.column.data)), 1)
564
559
  ], 64))
565
560
  ]));
566
561
  }
@@ -581,92 +576,92 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
581
576
  onRowClick: {}
582
577
  },
583
578
  setup(e) {
584
- const t = C([]), r = C([]), a = C(null), s = e, n = C(D(
585
- s.customRowClasses,
586
- { hover: s.onRowClick }
579
+ const t = C([]), r = C([]), s = C(null), a = e, n = C(D(
580
+ a.customRowClasses,
581
+ { hover: a.onRowClick }
587
582
  )), o = C(
588
- D("table", Le.toClassName(s.size), {
589
- "table-zebra": s.zebra,
590
- "table-pin-rows": s.pinRows,
591
- "table-pin-cols ": s.pinCols
583
+ D("table", Le.toClassName(a.size), {
584
+ "table-zebra": a.zebra,
585
+ "table-pin-rows": a.pinRows,
586
+ "table-pin-cols ": a.pinCols
592
587
  })
593
- ), f = (g, $) => {
594
- s.onRowClick && s.onRowClick(g, $);
588
+ ), f = (_, $) => {
589
+ a.onRowClick && a.onRowClick(_, $);
595
590
  };
596
591
  H(() => {
597
- t.value = s.dataSource, r.value = s.dataSource;
592
+ t.value = a.dataSource, r.value = a.dataSource;
598
593
  }), U(
599
- () => s.dataSource,
600
- (g) => {
601
- t.value = g, r.value = g;
594
+ () => a.dataSource,
595
+ (_) => {
596
+ t.value = _, r.value = _;
602
597
  },
603
598
  { immediate: !0 }
604
599
  ), U(
605
- () => s.searchValue,
606
- (g) => {
607
- if (s.searchFunction) {
608
- r.value = s.searchFunction(g ?? "");
600
+ () => a.searchValue,
601
+ (_) => {
602
+ if (a.searchFunction) {
603
+ r.value = a.searchFunction(_ ?? "");
609
604
  return;
610
605
  }
611
- r.value = g ? k(g) : t.value;
606
+ r.value = _ ? k(_) : t.value;
612
607
  },
613
608
  { immediate: !0 }
614
609
  );
615
- const k = (g) => {
610
+ const k = (_) => {
616
611
  const $ = [];
617
612
  return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((w) => {
618
- const u = t.value.map((x) => A(x, w)), m = Ue(u)(g);
613
+ const u = t.value.map((x) => A(x, w)), m = Ue(u)(_);
619
614
  for (const x of m) {
620
- const d = t.value.filter((y) => A(y, w) === x.item);
615
+ const d = t.value.filter((g) => A(g, w) === x.item);
621
616
  $.push(...d);
622
617
  }
623
618
  }), $) : [];
624
619
  };
625
- return (g, $) => (c(), i("table", {
620
+ return (_, $) => (c(), i("table", {
626
621
  ref_key: "table",
627
- ref: a,
622
+ ref: s,
628
623
  class: N(o.value)
629
624
  }, [
630
- g.horizontal ? E("", !0) : (c(), i("thead", Ze, [
625
+ e.horizontal ? E("", !0) : (c(), i("thead", Ze, [
631
626
  v("tr", null, [
632
- (c(!0), i(R, null, P(s.columns, (_) => (c(), i("th", {
633
- key: _.title
634
- }, X(_.title), 1))), 128))
627
+ (c(!0), i(R, null, P(a.columns, (y) => (c(), i("th", {
628
+ key: y.title
629
+ }, X(y.title), 1))), 128))
635
630
  ])
636
631
  ])),
637
- g.horizontal ? E("", !0) : (c(), i("tbody", Ye, [
632
+ e.horizontal ? E("", !0) : (c(), i("tbody", Ye, [
638
633
  r.value.length === 0 ? (c(), i("tr", Qe, [
639
634
  v("td", {
640
- colspan: s.columns.length
635
+ colspan: a.columns.length
641
636
  }, "No data found", 8, et)
642
- ])) : (c(!0), i(R, { key: 1 }, P(r.value, (_, w) => (c(), i("tr", {
637
+ ])) : (c(!0), i(R, { key: 1 }, P(r.value, (y, w) => (c(), i("tr", {
643
638
  class: N(n.value),
644
- key: JSON.stringify(_),
645
- onClick: (u) => f(_, w)
639
+ key: JSON.stringify(y),
640
+ onClick: (u) => f(y, w)
646
641
  }, [
647
- (c(!0), i(R, null, P(s.columns, (u) => (c(), q(de, {
642
+ (c(!0), i(R, null, P(a.columns, (u) => (c(), q(de, {
648
643
  key: u.data,
649
644
  column: u,
650
- row: _,
645
+ row: y,
651
646
  rowIndex: w
652
647
  }, null, 8, ["column", "row", "rowIndex"]))), 128))
653
648
  ], 10, tt))), 128))
654
649
  ])),
655
- g.horizontal ? (c(), i("tbody", nt, [
656
- (c(!0), i(R, null, P(s.columns, (_) => (c(), i("tr", {
657
- key: _.title
650
+ e.horizontal ? (c(), i("tbody", nt, [
651
+ (c(!0), i(R, null, P(a.columns, (y) => (c(), i("tr", {
652
+ key: y.title
658
653
  }, [
659
- v("th", null, X(_.title), 1),
654
+ v("th", null, X(y.title), 1),
660
655
  (c(!0), i(R, null, P(r.value, (w, u) => (c(), q(de, {
661
656
  key: u,
662
- column: _,
657
+ column: y,
663
658
  row: w,
664
659
  rowIndex: u
665
660
  }, null, 8, ["column", "row", "rowIndex"]))), 128))
666
661
  ]))), 128)),
667
662
  r.value.length === 0 ? (c(), i("tr", rt, [
668
663
  v("td", {
669
- colspan: s.columns.length + 1,
664
+ colspan: a.columns.length + 1,
670
665
  style: { "text-align": "center", padding: "1rem" }
671
666
  }, " No data found ", 8, at)
672
667
  ])) : E("", !0)
@@ -680,16 +675,16 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
680
675
  },
681
676
  emits: ["update:value"],
682
677
  setup(e, { expose: t, emit: r }) {
683
- const a = e, s = C(a.value), n = r, o = (f) => {
684
- s.value = f, n("update:value", f);
678
+ const s = e, a = C(s.value), n = r, o = (f) => {
679
+ a.value = f, n("update:value", f);
685
680
  };
686
681
  return we("stepper", {
687
- value: s,
682
+ value: a,
688
683
  updateValue: o
689
684
  }), U(
690
- () => a.value,
685
+ () => s.value,
691
686
  (f) => {
692
- s.value = f;
687
+ a.value = f;
693
688
  }
694
689
  ), t({
695
690
  updateValue: o
@@ -701,18 +696,18 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
701
696
  value: {}
702
697
  },
703
698
  setup(e) {
704
- const t = e, r = ne("stepper"), a = C("");
699
+ const t = e, r = ne("stepper"), s = C("");
705
700
  return U(
706
701
  () => r?.value.value,
707
- (s) => {
708
- s && t.value && (a.value = Number(s) >= Number(t.value) ? "step-primary" : "");
702
+ (a) => {
703
+ a && t.value && (s.value = Number(a) >= Number(t.value) ? "step-primary" : "");
709
704
  }
710
705
  ), H(() => {
711
- r && (a.value = r.value.value === t.value ? "step-primary" : "", Number(r.value.value) >= Number(t.value) && (a.value = "step-primary"));
712
- }), (s, n) => (c(), i("li", {
713
- class: N(["step", a.value])
706
+ r && (s.value = r.value.value === t.value ? "step-primary" : "", Number(r.value.value) >= Number(t.value) && (s.value = "step-primary"));
707
+ }), (a, n) => (c(), i("li", {
708
+ class: N(["step", s.value])
714
709
  }, [
715
- T(s.$slots, "default")
710
+ T(a.$slots, "default")
716
711
  ], 2));
717
712
  }
718
713
  }), st = {}, ot = { class: "steps" };
@@ -725,7 +720,7 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
725
720
  __name: "StepPanels",
726
721
  setup(e) {
727
722
  const t = ne("stepper");
728
- return (r, a) => (c(), q(Se, {
723
+ return (r, s) => (c(), q(Se, {
729
724
  name: "fade",
730
725
  mode: "out-in"
731
726
  }, {
@@ -745,13 +740,13 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
745
740
  value: {}
746
741
  },
747
742
  setup(e, { expose: t }) {
748
- const r = I(() => a?.value.value), a = ne("stepper"), s = (n) => {
749
- a && a.updateValue(n.toString());
743
+ const r = I(() => s?.value.value), s = ne("stepper"), a = (n) => {
744
+ s && s.updateValue(n.toString());
750
745
  };
751
746
  return t({
752
- activateCallback: s
753
- }), (n, o) => n.value === r.value ? (c(), i("div", lt, [
754
- T(n.$slots, "default", { activateCallback: s })
747
+ activateCallback: a
748
+ }), (n, o) => e.value === r.value ? (c(), i("div", lt, [
749
+ T(n.$slots, "default", { activateCallback: a })
755
750
  ])) : E("", !0);
756
751
  }
757
752
  }), it = {
@@ -767,7 +762,7 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
767
762
  },
768
763
  emits: ["close"],
769
764
  setup(e, { expose: t, emit: r }) {
770
- const a = C(null), s = r, n = e, o = C(D("modal-box", n.extraBoxClasses, {
765
+ const s = C(null), a = r, n = e, o = C(D("modal-box", n.extraBoxClasses, {
771
766
  "overflow-visible": n.overflow
772
767
  })), f = C(
773
768
  D("modal")
@@ -784,29 +779,29 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
784
779
  );
785
780
  return t({
786
781
  showModal: () => {
787
- a.value?.showModal();
782
+ s.value?.showModal();
788
783
  },
789
784
  closeModal: () => {
790
- a.value?.close();
785
+ s.value?.close();
791
786
  }
792
- }), (_, w) => (c(), i("dialog", {
787
+ }), (y, w) => (c(), i("dialog", {
793
788
  ref_key: "modal",
794
- ref: a,
795
- class: N([f.value, _.$attrs.class]),
789
+ ref: s,
790
+ class: N([f.value, y.$attrs.class]),
796
791
  "aria-modal": "true",
797
792
  "aria-hidden": "true",
798
793
  role: "dialog",
799
- onClose: w[0] || (w[0] = (u) => s("close", u))
794
+ onClose: w[0] || (w[0] = (u) => a("close", u))
800
795
  }, [
801
796
  v("div", {
802
797
  class: N(o.value)
803
798
  }, [
804
- _.closeButton ? (c(), i("form", it, [
799
+ e.closeButton ? (c(), i("form", it, [
805
800
  v("button", {
806
801
  class: N(k.value)
807
802
  }, "✕", 2)
808
803
  ])) : E("", !0),
809
- T(_.$slots, "default")
804
+ T(y.$slots, "default")
810
805
  ], 2),
811
806
  w[1] || (w[1] = v("form", {
812
807
  method: "dialog",
@@ -821,8 +816,8 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
821
816
  props: ["modelValue"],
822
817
  emits: ["update:modelValue"],
823
818
  setup(e, { emit: t }) {
824
- const r = e, a = C(null), s = t, n = (o) => {
825
- (o.ctrlKey || o.metaKey) && o.key.toLowerCase() === "k" && (o.preventDefault(), a.value && a.value.focus());
819
+ const r = e, s = C(null), a = t, n = (o) => {
820
+ (o.ctrlKey || o.metaKey) && o.key.toLowerCase() === "k" && (o.preventDefault(), s.value && s.value.focus());
826
821
  };
827
822
  return H(() => {
828
823
  document.addEventListener("keydown", n);
@@ -848,11 +843,11 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
848
843
  v("form", null, [
849
844
  v("input", {
850
845
  ref_key: "searchInput",
851
- ref: a,
846
+ ref: s,
852
847
  type: "search",
853
848
  placeholder: "Zoeken...",
854
849
  value: r.modelValue,
855
- onInput: f[0] || (f[0] = (k) => s("update:modelValue", k.target.value)),
850
+ onInput: f[0] || (f[0] = (k) => a("update:modelValue", k.target.value)),
856
851
  class: "color-[inherit] w-full rounded-xl border-[2px] border-solid border-transparent bg-transparent px-3 py-2 ps-10 focus:border-[2px] focus:border-base-200 focus:outline-none"
857
852
  }, null, 40, bt)
858
853
  ])
@@ -877,37 +872,37 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
877
872
  activeTab: { default: 0 }
878
873
  },
879
874
  setup(e, { expose: t }) {
880
- const r = Math.random().toString(36).substring(2, 15), a = e, s = I(() => 100 / a.items.length), n = I(() => [
875
+ const r = Math.random().toString(36).substring(2, 15), s = e, a = I(() => 100 / s.items.length), n = I(() => [
881
876
  "tabs",
882
- a.placement === "top" ? "tabs-top" : "tabs-bottom",
883
- `${Re.toClassName(a.size)}`,
877
+ s.placement === "top" ? "tabs-top" : "tabs-bottom",
878
+ `${Re.toClassName(s.size)}`,
884
879
  {
885
- "tabs-box": a.box,
886
- "tabs-border": a.border,
887
- "tabs-lift": a.lift
880
+ "tabs-box": s.box,
881
+ "tabs-border": s.border,
882
+ "tabs-lift": s.lift
888
883
  }
889
- ]), o = C(a.activeTab ?? 0), f = (k) => {
884
+ ]), o = C(s.activeTab ?? 0), f = (k) => {
890
885
  o.value = k;
891
886
  };
892
- return U(() => a.activeTab, (k) => {
887
+ return U(() => s.activeTab, (k) => {
893
888
  o.value = k;
894
889
  }), t({
895
890
  activeIndex: o,
896
891
  setActiveTab: f
897
- }), (k, g) => (c(), i("div", {
892
+ }), (k, _) => (c(), i("div", {
898
893
  role: "tablist",
899
894
  class: N(n.value)
900
895
  }, [
901
- (c(!0), i(R, null, P(a.items, ($, _) => (c(), i(R, { key: _ }, [
896
+ (c(!0), i(R, null, P(s.items, ($, y) => (c(), i(R, { key: y }, [
902
897
  v("label", {
903
898
  class: "tab",
904
- style: Be(a.fullWidth ? { width: s.value + "%" } : {})
899
+ style: Be(s.fullWidth ? { width: a.value + "%" } : {})
905
900
  }, [
906
901
  Ce(v("input", {
907
902
  type: "radio",
908
903
  name: K(r),
909
- value: _,
910
- "onUpdate:modelValue": g[0] || (g[0] = (w) => o.value = w)
904
+ value: y,
905
+ "onUpdate:modelValue": _[0] || (_[0] = (w) => o.value = w)
911
906
  }, null, 8, vt), [
912
907
  [$e, o.value]
913
908
  ]),
@@ -1011,8 +1006,8 @@ export {
1011
1006
  gt as Button,
1012
1007
  ze as ButtonColorUtils,
1013
1008
  Ne as ButtonSizeUtils,
1014
- _t as Card,
1015
- xt as CardBody,
1009
+ xt as Card,
1010
+ _t as CardBody,
1016
1011
  wt as CardTitle,
1017
1012
  re as Color,
1018
1013
  St as Container,