dendelion-ui 0.0.21 → 0.0.23

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,6 +1,6 @@
1
- import { defineComponent as C, computed as Q, createElementBlock as i, openBlock as u, normalizeClass as E, createElementVNode as g, renderSlot as z, ref as $, createBlock as A, resolveDynamicComponent as Z, withCtx as de, createTextVNode as fe, toDisplayString as I, onMounted as U, createCommentVNode as L, Fragment as O, unref as Y, isVNode as ye, normalizeProps as _e, guardReactiveProps as xe, defineAsyncComponent as ae, watch as X, renderList as q, provide as we, inject as ee, Transition as ke, onUnmounted as Se } from "vue";
2
- var te = /* @__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))(te || {});
3
- class Be {
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";
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
+ class Me {
4
4
  static toClassName(t) {
5
5
  switch (t) {
6
6
  case 0:
@@ -48,7 +48,7 @@ class Be {
48
48
  }
49
49
  }
50
50
  }
51
- class $e {
51
+ class ze {
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 ft {
99
+ class ht {
100
100
  static toClassName(t) {
101
101
  switch (t) {
102
102
  case 0:
@@ -144,8 +144,8 @@ class ft {
144
144
  }
145
145
  }
146
146
  }
147
- var ne = /* @__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))(ne || {});
148
- class Ce {
147
+ var G = /* @__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))(G || {});
148
+ class Ne {
149
149
  static toClassName(t) {
150
150
  switch (t) {
151
151
  case 0:
@@ -167,7 +167,7 @@ class Ce {
167
167
  }
168
168
  }
169
169
  }
170
- class Me {
170
+ class Te {
171
171
  static toClassName(t) {
172
172
  switch (t) {
173
173
  case 0:
@@ -189,7 +189,7 @@ class Me {
189
189
  }
190
190
  }
191
191
  }
192
- class Ne {
192
+ class Le {
193
193
  static toClassName(t) {
194
194
  switch (t) {
195
195
  case 0:
@@ -211,28 +211,46 @@ class Ne {
211
211
  }
212
212
  }
213
213
  }
214
+ class Re {
215
+ static toClassName(t) {
216
+ switch (t) {
217
+ case 0:
218
+ return "tabs-xs";
219
+ case 1:
220
+ return "tabs-sm";
221
+ case 2:
222
+ return "tabs-md";
223
+ case 3:
224
+ return "tabs-lg";
225
+ case 4:
226
+ return "tabs-xl";
227
+ default:
228
+ return "tabs-md";
229
+ }
230
+ }
231
+ }
214
232
  function pe(e) {
215
233
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
216
234
  }
217
- var G = { exports: {} };
235
+ var Z = { exports: {} };
218
236
  /*!
219
237
  Copyright (c) 2018 Jed Watson.
220
238
  Licensed under the MIT License (MIT), see
221
239
  http://jedwatson.github.io/classnames
222
240
  */
223
- var se;
224
- function ze() {
225
- return se || (se = 1, function(e) {
241
+ var oe;
242
+ function Ee() {
243
+ return oe || (oe = 1, function(e) {
226
244
  (function() {
227
245
  var t = {}.hasOwnProperty;
228
246
  function r() {
229
247
  for (var n = "", o = 0; o < arguments.length; o++) {
230
248
  var f = arguments[o];
231
- f && (n = a(n, s(f)));
249
+ f && (n = s(n, a(f)));
232
250
  }
233
251
  return n;
234
252
  }
235
- function s(n) {
253
+ function a(n) {
236
254
  if (typeof n == "string" || typeof n == "number")
237
255
  return n;
238
256
  if (typeof n != "object")
@@ -243,281 +261,281 @@ function ze() {
243
261
  return n.toString();
244
262
  var o = "";
245
263
  for (var f in n)
246
- t.call(n, f) && n[f] && (o = a(o, f));
264
+ t.call(n, f) && n[f] && (o = s(o, f));
247
265
  return o;
248
266
  }
249
- function a(n, o) {
267
+ function s(n, o) {
250
268
  return o ? n ? n + " " + o : n + o : n;
251
269
  }
252
270
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
253
271
  })();
254
- }(G)), G.exports;
272
+ }(Z)), Z.exports;
255
273
  }
256
- var Te = ze();
257
- const D = /* @__PURE__ */ pe(Te), Le = ["type", "disabled"], Ee = { class: "group-[.is-loading]:text-transparent" }, pt = /* @__PURE__ */ C({
274
+ var Fe = Ee();
275
+ const D = /* @__PURE__ */ pe(Fe), We = ["type", "disabled"], Ve = { class: "group-[.is-loading]:text-transparent" }, gt = /* @__PURE__ */ M({
258
276
  __name: "Button",
259
277
  props: {
260
278
  type: { default: "button" },
261
279
  loading: { type: Boolean },
262
- color: { default: te.Neutral },
280
+ color: { default: re.Neutral },
263
281
  soft: { type: Boolean, default: !1 },
264
282
  outline: { type: Boolean, default: !1 },
265
283
  disabled: { type: Boolean },
266
284
  click: {}
267
285
  },
268
286
  setup(e) {
269
- const t = e, r = Q(
287
+ const t = e, r = I(
270
288
  () => D(
271
289
  "btn",
272
290
  "group",
273
- $e.toClassName(t.color),
291
+ ze.toClassName(t.color),
274
292
  t.soft ? "btn-soft" : "",
275
293
  t.outline ? "btn-outline" : "",
276
294
  t.loading ? "is-loading" : "",
277
295
  t.disabled ? "disabled" : ""
278
296
  )
279
297
  );
280
- return (s, a) => (u(), i("button", {
281
- onClick: a[0] || (a[0] = (n) => s.click ? s.click : void 0),
282
- class: E(r.value),
283
- type: s.type,
284
- disabled: s.disabled || s.loading
298
+ return (a, s) => (c(), i("button", {
299
+ onClick: s[0] || (s[0] = (n) => a.click ? a.click : void 0),
300
+ class: N(r.value),
301
+ type: a.type,
302
+ disabled: a.disabled || a.loading
285
303
  }, [
286
- a[1] || (a[1] = g("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
287
- g("span", Ee, [
288
- z(s.$slots, "default")
304
+ s[1] || (s[1] = v("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
305
+ v("span", Ve, [
306
+ T(a.$slots, "default")
289
307
  ])
290
- ], 10, Le));
308
+ ], 10, We));
291
309
  }
292
- }), re = (e, t) => {
310
+ }), ae = (e, t) => {
293
311
  const r = e.__vccOpts || e;
294
- for (const [s, a] of t)
295
- r[s] = a;
312
+ for (const [a, s] of t)
313
+ r[a] = s;
296
314
  return r;
297
- }, Re = {};
298
- function Fe(e, t) {
299
- return u(), i("button");
315
+ }, De = {};
316
+ function Oe(e, t) {
317
+ return c(), i("button");
300
318
  }
301
- const bt = /* @__PURE__ */ re(Re, [["render", Fe]]), vt = /* @__PURE__ */ C({
319
+ const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), _t = /* @__PURE__ */ M({
302
320
  __name: "Card",
303
321
  props: {
304
- backgroundColor: { default: te.Primary },
322
+ backgroundColor: { default: re.Primary },
305
323
  shadow: { type: Boolean, default: !1 },
306
324
  fullWidth: { type: Boolean, default: !1 },
307
325
  rounded: { type: Boolean },
308
326
  roundedSize: {}
309
327
  },
310
328
  setup(e) {
311
- const t = e, r = $(
329
+ const t = e, r = C(
312
330
  D(
313
331
  "card",
314
- Be.toClassName(t.backgroundColor),
332
+ Me.toClassName(t.backgroundColor),
315
333
  t.shadow ? "shadow-lg" : "",
316
334
  t.fullWidth ? "w-full" : "",
317
- t.rounded && !t.roundedSize ? "rounded" : t.roundedSize ? Me.toClassName(t.roundedSize) : ""
335
+ t.rounded && !t.roundedSize ? "rounded" : t.roundedSize ? Te.toClassName(t.roundedSize) : ""
318
336
  )
319
337
  );
320
- return (s, a) => (u(), i("div", {
321
- class: E(r.value)
338
+ return (a, s) => (c(), i("div", {
339
+ class: N(r.value)
322
340
  }, [
323
- z(s.$slots, "default")
341
+ T(a.$slots, "default")
324
342
  ], 2));
325
343
  }
326
- }), We = {}, Oe = { class: "card-body" };
327
- function Ve(e, t) {
328
- return u(), i("div", Oe, [
329
- z(e.$slots, "default")
344
+ }), Pe = {}, Ae = { class: "card-body" };
345
+ function qe(e, t) {
346
+ return c(), i("div", Ae, [
347
+ T(e.$slots, "default")
330
348
  ]);
331
349
  }
332
- const ht = /* @__PURE__ */ re(We, [["render", Ve]]), mt = /* @__PURE__ */ C({
350
+ const xt = /* @__PURE__ */ ae(Pe, [["render", qe]]), wt = /* @__PURE__ */ M({
333
351
  __name: "CardTitle",
334
352
  props: {
335
353
  is: { default: "h1" },
336
354
  text: { default: "" }
337
355
  },
338
356
  setup(e) {
339
- return (t, r) => (u(), A(Z(t.is), { class: "card-title" }, {
340
- default: de(() => [
341
- fe(I(t.text), 1)
357
+ return (t, r) => (c(), q(ee(t.is), { class: "card-title" }, {
358
+ default: fe(() => [
359
+ te(X(t.text), 1)
342
360
  ]),
343
361
  _: 1
344
362
  }));
345
363
  }
346
- }), gt = /* @__PURE__ */ C({
364
+ }), St = /* @__PURE__ */ M({
347
365
  __name: "Container",
348
366
  props: {
349
367
  container: { type: Boolean, default: !0 },
350
368
  padding: { type: Boolean, default: !0 }
351
369
  },
352
370
  setup(e) {
353
- const t = e, r = $([
371
+ const t = e, r = C([
354
372
  t.container ? "container" : "",
355
373
  //To disable the max width in some cases
356
374
  t.padding ? "p-6" : ""
357
375
  ]);
358
- return (s, a) => (u(), i("div", {
359
- class: E(r.value)
376
+ return (a, s) => (c(), i("div", {
377
+ class: N(r.value)
360
378
  }, [
361
- z(s.$slots, "default")
379
+ T(a.$slots, "default")
362
380
  ], 2));
363
381
  }
364
- }), P = (e, t) => String(!e || typeof e != "object" ? e : t.split(".").reduce((r, s) => r && (typeof r == "object" ? r[s] : r), e));
365
- var j = {}, J = {}, oe;
382
+ }), A = (e, t) => String(!e || typeof e != "object" ? e : t.split(".").reduce((r, a) => r && (typeof r == "object" ? r[a] : r), e));
383
+ var Y = {}, Q = {}, ue;
366
384
  function be() {
367
- return oe || (oe = 1, function(e) {
368
- e.__esModule = !0, e.default = a;
369
- var t = /[\u0300-\u036f]/g, r = /ł/g, s = /ñ/g;
370
- function a(n) {
371
- return n.toLowerCase().normalize("NFD").replace(t, "").replace(r, "l").replace(s, "n").trim();
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();
372
390
  }
373
- }(J)), J;
391
+ }(Q)), Q;
374
392
  }
375
- var W = {}, ue;
376
- function ce() {
377
- if (ue) return W;
378
- ue = 1, W.__esModule = !0, W.aggressiveFuzzyMatch = h, W.createFuzzySearchImpl = k, W.experimentalSmartFuzzyMatch = T, W.fuzzyMatchImpl = B;
393
+ var V = {}, ce;
394
+ function le() {
395
+ if (ce) return V;
396
+ ce = 1, V.__esModule = !0, V.aggressiveFuzzyMatch = k, V.createFuzzySearchImpl = w, V.experimentalSmartFuzzyMatch = g, V.fuzzyMatchImpl = _;
379
397
  var e = t(be());
380
- function t(l) {
381
- return l && l.__esModule ? l : { default: l };
398
+ function t(u) {
399
+ return u && u.__esModule ? u : { default: u };
382
400
  }
383
- var r = Number.MAX_SAFE_INTEGER, s = function(c, b) {
401
+ var r = Number.MAX_SAFE_INTEGER, a = function(l, m) {
384
402
  return (
385
403
  /*: number*/
386
- c.score - b.score
404
+ l.score - m.score
387
405
  );
388
- }, a = function(c, b) {
406
+ }, s = function(l, m) {
389
407
  return (
390
408
  /*: number*/
391
- c[0] - b[0]
409
+ l[0] - m[0]
392
410
  );
393
411
  }, n = new Set(`  []()-–—'"“”`.split(""));
394
- function o(l) {
395
- return n.has(l);
412
+ function o(u) {
413
+ return n.has(u);
396
414
  }
397
- function f(l, c, b, _, d, y, v) {
398
- if (l === _)
399
- return [0, [[0, l.length - 1]]];
400
- var p = _.length, m = c.length, x = d.length;
401
- if (c === d)
402
- return [0.1, [[0, m - 1]]];
403
- if (c.startsWith(d))
404
- return [0.5, [[0, x - 1]]];
405
- var M = l.indexOf(_);
406
- if (M > -1 && o(l[M - 1]))
407
- return [0.9, [[M, M + p - 1]]];
408
- var S = c.indexOf(d);
409
- if (S > -1 && o(c[S - 1]))
410
- return [1, [[S, S + p - 1]]];
411
- var N = y.length;
412
- if (N > 1 && y.every(function(F) {
413
- return b.has(F);
415
+ function f(u, l, m, x, d, y, b) {
416
+ if (u === x)
417
+ return [0, [[0, u.length - 1]]];
418
+ var p = x.length, h = l.length, S = d.length;
419
+ if (l === d)
420
+ return [0.1, [[0, h - 1]]];
421
+ if (l.startsWith(d))
422
+ return [0.5, [[0, S - 1]]];
423
+ var z = u.indexOf(x);
424
+ if (z > -1 && o(u[z - 1]))
425
+ return [0.9, [[z, z + p - 1]]];
426
+ var B = l.indexOf(d);
427
+ if (B > -1 && o(l[B - 1]))
428
+ return [1, [[B, B + p - 1]]];
429
+ var L = y.length;
430
+ if (L > 1 && y.every(function(W) {
431
+ return m.has(W);
414
432
  })) {
415
- var R = 1.5 + N * 0.2;
416
- return [R, y.map(function(F) {
417
- var V = c.indexOf(F);
418
- return [V, V + F.length - 1];
419
- }).sort(a)];
433
+ var F = 1.5 + L * 0.2;
434
+ return [F, y.map(function(W) {
435
+ var O = l.indexOf(W);
436
+ return [O, O + W.length - 1];
437
+ }).sort(s)];
420
438
  }
421
- return S > -1 ? [2, [[S, S + p - 1]]] : v === "aggressive" ? h(c, d) : v === "smart" ? T(c, d) : null;
439
+ return B > -1 ? [2, [[B, B + p - 1]]] : b === "aggressive" ? k(l, d) : b === "smart" ? g(l, d) : null;
422
440
  }
423
- function h(l, c) {
424
- for (var b = l.length, _ = c.length, d = 0, y = c[d], v = [], p = -1, m = -2, x = 0; x < b; x += 1)
425
- if (l[x] === y) {
426
- if (x !== m + 1 && (p >= 0 && v.push([p, m]), p = x), m = x, d += 1, d === _)
427
- return v.push([p, m]), w(v, l);
428
- y = c[d];
441
+ 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) {
444
+ if (S !== h + 1 && (p >= 0 && b.push([p, h]), p = S), h = S, d += 1, d === x)
445
+ return b.push([p, h]), $(b, u);
446
+ y = l[d];
429
447
  }
430
448
  return null;
431
449
  }
432
- function T(l, c) {
433
- for (var b = l.length, _ = [], d = 0, y = c[d], v = -1, p = -2; ; ) {
434
- var m = l.indexOf(y, p + 1);
435
- if (m === -1)
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);
453
+ if (h === -1)
436
454
  break;
437
- if (m === 0 || o(l[m - 1]))
438
- v = m;
455
+ if (h === 0 || o(u[h - 1]))
456
+ b = h;
439
457
  else {
440
- var x = c.length - d, M = l.length - m, S = Math.min(3, x, M), N = c.slice(d, d + S);
441
- if (l.slice(m, m + S) === N)
442
- v = m;
458
+ var S = l.length - d, z = u.length - h, B = Math.min(3, S, z), L = l.slice(d, d + B);
459
+ if (u.slice(h, h + B) === L)
460
+ b = h;
443
461
  else {
444
462
  p += 1;
445
463
  continue;
446
464
  }
447
465
  }
448
- for (p = v; p < b && l[p] === y; p += 1)
449
- d += 1, y = c[d];
450
- if (p -= 1, _.push([v, p]), d === c.length)
451
- return w(_, l);
466
+ for (p = b; p < m && u[p] === y; p += 1)
467
+ d += 1, y = l[d];
468
+ if (p -= 1, x.push([b, p]), d === l.length)
469
+ return $(x, u);
452
470
  }
453
471
  return null;
454
472
  }
455
- function w(l, c) {
456
- var b = 2;
457
- return l.forEach(function(_) {
458
- var d = _[0], y = _[1], v = y - d + 1, p = d === 0 || c[d] === " " || c[d - 1] === " ", m = y === c.length - 1 || c[y] === " " || c[y + 1] === " ", x = p && m;
459
- x ? b += 0.2 : p ? b += 0.4 : v >= 3 ? b += 0.8 : b += 1.6;
460
- }), [b, l];
473
+ function $(u, l) {
474
+ var m = 2;
475
+ 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;
477
+ S ? m += 0.2 : p ? m += 0.4 : b >= 3 ? m += 0.8 : m += 1.6;
478
+ }), [m, u];
461
479
  }
462
- function B(l, c) {
463
- var b = (0, e.default)(c), _ = b.split(" "), d = (0, e.default)(l), y = new Set(d.split(" ")), v = f(l, d, y, c, b, _, "smart");
464
- return v ? {
465
- item: l,
466
- score: v[0],
467
- matches: [v[1]]
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");
482
+ return b ? {
483
+ item: u,
484
+ score: b[0],
485
+ matches: [b[1]]
468
486
  } : null;
469
487
  }
470
- function k(l, c) {
471
- var b = c.strategy, _ = b === void 0 ? "aggressive" : b, d = c.getText, y = l.map(function(v) {
488
+ function w(u, l) {
489
+ var m = l.strategy, x = m === void 0 ? "aggressive" : m, d = l.getText, y = u.map(function(b) {
472
490
  var p;
473
491
  if (d)
474
- p = d(v);
492
+ p = d(b);
475
493
  else {
476
- var m = c.key ? v[c.key] : v;
477
- p = [m];
494
+ var h = l.key ? b[l.key] : b;
495
+ p = [h];
478
496
  }
479
- var x = p.map(function(M) {
480
- var S = M || "", N = (0, e.default)(S), R = new Set(N.split(" "));
481
- return [S, N, R];
497
+ var S = p.map(function(z) {
498
+ var B = z || "", L = (0, e.default)(B), F = new Set(L.split(" "));
499
+ return [B, L, F];
482
500
  });
483
- return [v, x];
501
+ return [b, S];
484
502
  });
485
- return function(v) {
486
- var p = [], m = (0, e.default)(v), x = m.split(" ");
487
- return m.length ? (y.forEach(function(M) {
488
- for (var S = M[0], N = M[1], R = r, F = [], V = 0, ve = N.length; V < ve; V += 1) {
489
- var K = N[V], he = K[0], me = K[1], ge = K[2], H = f(he, me, ge, v, m, x, _);
490
- H ? (R = Math.min(R, H[0]), F.push(H[1])) : F.push(null);
503
+ return function(b) {
504
+ var p = [], h = (0, e.default)(b), S = h.split(" ");
505
+ return h.length ? (y.forEach(function(z) {
506
+ for (var B = z[0], L = z[1], F = r, W = [], O = 0, ve = L.length; O < ve; O += 1) {
507
+ var j = L[O], me = j[0], he = j[1], ge = j[2], J = f(me, he, ge, b, h, S, x);
508
+ J ? (F = Math.min(F, J[0]), W.push(J[1])) : W.push(null);
491
509
  }
492
- R < r && p.push({
493
- item: S,
494
- score: R,
495
- matches: F
510
+ F < r && p.push({
511
+ item: B,
512
+ score: F,
513
+ matches: W
496
514
  });
497
- }), p.sort(s), p) : [];
515
+ }), p.sort(a), p) : [];
498
516
  };
499
517
  }
500
- return W;
518
+ return V;
501
519
  }
502
- var le;
503
- function Pe() {
504
- return le || (le = 1, function(e) {
505
- e.__esModule = !0, e.default = s, e.fuzzyMatch = a;
520
+ var ie;
521
+ function Ie() {
522
+ return ie || (ie = 1, function(e) {
523
+ e.__esModule = !0, e.default = a, e.fuzzyMatch = s;
506
524
  var t = r(be());
507
525
  e.normalizeText = t.default;
508
526
  function r(n) {
509
527
  return n && n.__esModule ? n : { default: n };
510
528
  }
511
- function s(n, o) {
512
- return o === void 0 && (o = {}), ce().createFuzzySearchImpl(n, o);
513
- }
514
529
  function a(n, o) {
515
- return ce().fuzzyMatchImpl(n, o);
530
+ return o === void 0 && (o = {}), le().createFuzzySearchImpl(n, o);
516
531
  }
517
- }(j)), j;
532
+ function s(n, o) {
533
+ return le().fuzzyMatchImpl(n, o);
534
+ }
535
+ }(Y)), Y;
518
536
  }
519
- var De = Pe();
520
- const Ae = /* @__PURE__ */ pe(De), qe = { key: 0 }, Ie = { key: 0 }, Xe = ["innerHTML"], Ue = { key: 1 }, Ke = { key: 2 }, ie = /* @__PURE__ */ C({
537
+ var Xe = Ie();
538
+ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["innerHTML"], je = { key: 1 }, Je = { key: 2 }, de = /* @__PURE__ */ M({
521
539
  __name: "TableColumn",
522
540
  props: {
523
541
  column: {},
@@ -525,35 +543,36 @@ const Ae = /* @__PURE__ */ pe(De), qe = { key: 0 }, Ie = { key: 0 }, Xe = ["inne
525
543
  rowIndex: {}
526
544
  },
527
545
  setup(e) {
528
- const t = e, r = Q(() => t.column.render ? t.column.render(P(t.row, t.column.data), t.row) : P(t.row, t.column.data));
529
- U(() => {
546
+ const t = e, r = I(() => t.column.render ? t.column.render(A(t.row, t.column.data), t.row) : A(t.row, t.column.data));
547
+ H(() => {
530
548
  r.value && typeof r.value == "object" && "then" in r.value && console.warn("Async component detected in TableColumn, this may cause issues with rendering.");
531
549
  });
532
- const s = (n, o) => o.render === void 0 ? {} : o.render(P(n, o.data), n).props, a = (n) => (console.log("getComponent", n), n && typeof n == "object" && "then" in n ? ae(() => n) : typeof n == "function" ? ae(n) : n);
533
- return (n, o) => (u(), i("td", null, [
534
- n.column.render ? n.row ? (u(), i(O, { key: 1 }, [
535
- r.value ? (u(), i("div", qe, [
536
- typeof r.value == "string" ? (u(), i("div", Ie, [
537
- g("div", { innerHTML: r.value }, null, 8, Xe)
538
- ])) : ye(r.value) ? (u(), i("div", Ue, [
539
- (u(), A(Z(r.value)))
540
- ])) : (u(), i("div", Ke, [
541
- (u(), A(Z(a(r.value.component)), _e(xe(s(n.row, n.column))), null, 16))
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);
551
+ return (n, o) => (c(), i("td", null, [
552
+ n.column.render ? n.row ? (c(), i(R, { key: 1 }, [
553
+ r.value ? (c(), i("div", Ke, [
554
+ typeof r.value == "string" ? (c(), i("div", He, [
555
+ v("div", { innerHTML: r.value }, null, 8, Ge)
556
+ ])) : ye(r.value) ? (c(), i("div", je, [
557
+ (c(), q(ee(r.value)))
558
+ ])) : (c(), i("div", Je, [
559
+ (c(), q(ee(s(r.value.component)), _e(xe(a(n.row, n.column))), null, 16))
542
560
  ]))
543
- ])) : L("", !0)
544
- ], 64)) : L("", !0) : (u(), i(O, { key: 0 }, [
545
- fe(I(Y(P)(n.row, n.column.data)), 1)
561
+ ])) : E("", !0)
562
+ ], 64)) : E("", !0) : (c(), i(R, { key: 0 }, [
563
+ te(X(K(A)(n.row, n.column.data)), 1)
546
564
  ], 64))
547
565
  ]));
548
566
  }
549
- }), He = { key: 0 }, Ge = { key: 1 }, je = { key: 0 }, Je = ["colspan"], Ze = ["onClick"], Ye = { key: 2 }, Qe = { key: 0 }, et = ["colspan"], yt = /* @__PURE__ */ C({
567
+ }), Ze = { key: 0 }, Ye = { key: 1 }, Qe = { key: 0 }, et = ["colspan"], tt = ["onClick"], nt = { key: 2 }, rt = { key: 0 }, at = ["colspan"], kt = /* @__PURE__ */ M({
550
568
  __name: "Table",
551
569
  props: {
552
570
  zebra: { type: Boolean, default: !1 },
553
571
  pinRows: { type: Boolean, default: !1 },
554
572
  pinCols: { type: Boolean, default: !1 },
555
573
  horizontal: { type: Boolean, default: !1 },
556
- size: { default: ne.MD },
574
+ size: { default: G.MD },
575
+ customRowClasses: { default: void 0 },
557
576
  columns: {},
558
577
  dataSource: {},
559
578
  ajax: {},
@@ -562,197 +581,200 @@ const Ae = /* @__PURE__ */ pe(De), qe = { key: 0 }, Ie = { key: 0 }, Xe = ["inne
562
581
  onRowClick: {}
563
582
  },
564
583
  setup(e) {
565
- const t = $([]), r = $([]), s = $(null), a = e, n = $(
566
- D("table", Ne.toClassName(a.size), {
567
- "table-zebra": a.zebra,
568
- "table-pin-rows": a.pinRows,
569
- "table-pin-cols ": a.pinCols
584
+ const t = C([]), r = C([]), a = C(null), s = e, n = C(D(
585
+ s.customRowClasses,
586
+ { hover: s.onRowClick }
587
+ )), 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
570
592
  })
571
- ), o = (h, T) => {
572
- a.onRowClick && a.onRowClick(h, T);
593
+ ), f = (g, $) => {
594
+ s.onRowClick && s.onRowClick(g, $);
573
595
  };
574
- U(() => {
575
- t.value = a.dataSource, r.value = a.dataSource;
576
- }), X(
577
- () => a.dataSource,
578
- (h) => {
579
- console.log("dataSource changed", h), t.value = h, r.value = h;
596
+ H(() => {
597
+ t.value = s.dataSource, r.value = s.dataSource;
598
+ }), U(
599
+ () => s.dataSource,
600
+ (g) => {
601
+ t.value = g, r.value = g;
580
602
  },
581
603
  { immediate: !0 }
582
- ), X(
583
- () => a.searchValue,
584
- (h) => {
585
- if (a.searchFunction) {
586
- r.value = a.searchFunction(h ?? "");
604
+ ), U(
605
+ () => s.searchValue,
606
+ (g) => {
607
+ if (s.searchFunction) {
608
+ r.value = s.searchFunction(g ?? "");
587
609
  return;
588
610
  }
589
- r.value = h ? f(h) : t.value;
611
+ r.value = g ? k(g) : t.value;
590
612
  },
591
613
  { immediate: !0 }
592
614
  );
593
- const f = (h) => {
594
- const T = [];
595
- return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((B) => {
596
- const k = t.value.map((b) => P(b, B)), c = Ae(k)(h);
597
- for (const b of c) {
598
- const _ = t.value.filter((d) => P(d, B) === b.item);
599
- T.push(..._);
615
+ const k = (g) => {
616
+ const $ = [];
617
+ 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);
619
+ for (const x of m) {
620
+ const d = t.value.filter((y) => A(y, w) === x.item);
621
+ $.push(...d);
600
622
  }
601
- }), T) : [];
623
+ }), $) : [];
602
624
  };
603
- return (h, T) => (u(), i("table", {
625
+ return (g, $) => (c(), i("table", {
604
626
  ref_key: "table",
605
- ref: s,
606
- class: E(n.value)
627
+ ref: a,
628
+ class: N(o.value)
607
629
  }, [
608
- h.horizontal ? L("", !0) : (u(), i("thead", He, [
609
- g("tr", null, [
610
- (u(!0), i(O, null, q(a.columns, (w) => (u(), i("th", {
611
- key: w.title
612
- }, I(w.title), 1))), 128))
630
+ g.horizontal ? E("", !0) : (c(), i("thead", Ze, [
631
+ v("tr", null, [
632
+ (c(!0), i(R, null, P(s.columns, (_) => (c(), i("th", {
633
+ key: _.title
634
+ }, X(_.title), 1))), 128))
613
635
  ])
614
636
  ])),
615
- h.horizontal ? L("", !0) : (u(), i("tbody", Ge, [
616
- r.value.length === 0 ? (u(), i("tr", je, [
617
- g("td", {
618
- colspan: a.columns.length
619
- }, "No data found", 8, Je)
620
- ])) : (u(!0), i(O, { key: 1 }, q(r.value, (w, B) => (u(), i("tr", {
621
- class: E(a.onRowClick ? "hover" : ""),
622
- key: JSON.stringify(w),
623
- onClick: (k) => o(w, B)
637
+ g.horizontal ? E("", !0) : (c(), i("tbody", Ye, [
638
+ r.value.length === 0 ? (c(), i("tr", Qe, [
639
+ v("td", {
640
+ colspan: s.columns.length
641
+ }, "No data found", 8, et)
642
+ ])) : (c(!0), i(R, { key: 1 }, P(r.value, (_, w) => (c(), i("tr", {
643
+ class: N(n.value),
644
+ key: JSON.stringify(_),
645
+ onClick: (u) => f(_, w)
624
646
  }, [
625
- (u(!0), i(O, null, q(a.columns, (k) => (u(), A(ie, {
626
- key: k.data,
627
- column: k,
628
- row: w,
629
- rowIndex: B
647
+ (c(!0), i(R, null, P(s.columns, (u) => (c(), q(de, {
648
+ key: u.data,
649
+ column: u,
650
+ row: _,
651
+ rowIndex: w
630
652
  }, null, 8, ["column", "row", "rowIndex"]))), 128))
631
- ], 10, Ze))), 128))
653
+ ], 10, tt))), 128))
632
654
  ])),
633
- h.horizontal ? (u(), i("tbody", Ye, [
634
- (u(!0), i(O, null, q(a.columns, (w) => (u(), i("tr", {
635
- key: w.title
655
+ g.horizontal ? (c(), i("tbody", nt, [
656
+ (c(!0), i(R, null, P(s.columns, (_) => (c(), i("tr", {
657
+ key: _.title
636
658
  }, [
637
- g("th", null, I(w.title), 1),
638
- (u(!0), i(O, null, q(r.value, (B, k) => (u(), A(ie, {
639
- key: k,
640
- column: w,
641
- row: B,
642
- rowIndex: k
659
+ v("th", null, X(_.title), 1),
660
+ (c(!0), i(R, null, P(r.value, (w, u) => (c(), q(de, {
661
+ key: u,
662
+ column: _,
663
+ row: w,
664
+ rowIndex: u
643
665
  }, null, 8, ["column", "row", "rowIndex"]))), 128))
644
666
  ]))), 128)),
645
- r.value.length === 0 ? (u(), i("tr", Qe, [
646
- g("td", {
647
- colspan: a.columns.length + 1,
667
+ r.value.length === 0 ? (c(), i("tr", rt, [
668
+ v("td", {
669
+ colspan: s.columns.length + 1,
648
670
  style: { "text-align": "center", padding: "1rem" }
649
- }, " No data found ", 8, et)
650
- ])) : L("", !0)
651
- ])) : L("", !0)
671
+ }, " No data found ", 8, at)
672
+ ])) : E("", !0)
673
+ ])) : E("", !0)
652
674
  ], 2));
653
675
  }
654
- }), _t = /* @__PURE__ */ C({
676
+ }), Bt = /* @__PURE__ */ M({
655
677
  __name: "Stepper",
656
678
  props: {
657
679
  value: {}
658
680
  },
659
681
  emits: ["update:value"],
660
682
  setup(e, { expose: t, emit: r }) {
661
- const s = e, a = $(s.value), n = r, o = (f) => {
662
- a.value = f, n("update:value", f);
683
+ const a = e, s = C(a.value), n = r, o = (f) => {
684
+ s.value = f, n("update:value", f);
663
685
  };
664
686
  return we("stepper", {
665
- value: a,
687
+ value: s,
666
688
  updateValue: o
667
- }), X(
668
- () => s.value,
689
+ }), U(
690
+ () => a.value,
669
691
  (f) => {
670
- a.value = f;
692
+ s.value = f;
671
693
  }
672
694
  ), t({
673
695
  updateValue: o
674
- }), (f, h) => z(f.$slots, "default", { updateValue: o });
696
+ }), (f, k) => T(f.$slots, "default", { updateValue: o });
675
697
  }
676
- }), xt = /* @__PURE__ */ C({
698
+ }), Ct = /* @__PURE__ */ M({
677
699
  __name: "Step",
678
700
  props: {
679
701
  value: {}
680
702
  },
681
703
  setup(e) {
682
- const t = e, r = ee("stepper"), s = $("");
683
- return X(
704
+ const t = e, r = ne("stepper"), a = C("");
705
+ return U(
684
706
  () => r?.value.value,
685
- (a) => {
686
- a && t.value && (s.value = Number(a) >= Number(t.value) ? "step-primary" : "");
707
+ (s) => {
708
+ s && t.value && (a.value = Number(s) >= Number(t.value) ? "step-primary" : "");
687
709
  }
688
- ), U(() => {
689
- r && (s.value = r.value.value === t.value ? "step-primary" : "", Number(r.value.value) >= Number(t.value) && (s.value = "step-primary"));
690
- }), (a, n) => (u(), i("li", {
691
- class: E(["step", s.value])
710
+ ), 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])
692
714
  }, [
693
- z(a.$slots, "default")
715
+ T(s.$slots, "default")
694
716
  ], 2));
695
717
  }
696
- }), tt = {}, nt = { class: "steps" };
697
- function rt(e, t) {
698
- return u(), i("ul", nt, [
699
- z(e.$slots, "default")
718
+ }), st = {}, ot = { class: "steps" };
719
+ function ut(e, t) {
720
+ return c(), i("ul", ot, [
721
+ T(e.$slots, "default")
700
722
  ]);
701
723
  }
702
- const wt = /* @__PURE__ */ re(tt, [["render", rt]]), at = { key: 0 }, kt = /* @__PURE__ */ C({
724
+ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @__PURE__ */ M({
703
725
  __name: "StepPanels",
704
726
  setup(e) {
705
- const t = ee("stepper");
706
- return (r, s) => (u(), A(ke, {
727
+ const t = ne("stepper");
728
+ return (r, a) => (c(), q(Se, {
707
729
  name: "fade",
708
730
  mode: "out-in"
709
731
  }, {
710
- default: de(() => [
711
- Y(t)?.value ? (u(), i("div", at, [
712
- z(r.$slots, "default", {
713
- currentStep: Y(t)?.value
732
+ default: fe(() => [
733
+ K(t)?.value ? (c(), i("div", ct, [
734
+ T(r.$slots, "default", {
735
+ currentStep: K(t)?.value
714
736
  })
715
- ])) : L("", !0)
737
+ ])) : E("", !0)
716
738
  ]),
717
739
  _: 3
718
740
  }));
719
741
  }
720
- }), st = { key: 0 }, St = /* @__PURE__ */ C({
742
+ }), lt = { key: 0 }, zt = /* @__PURE__ */ M({
721
743
  __name: "StepPanel",
722
744
  props: {
723
745
  value: {}
724
746
  },
725
747
  setup(e, { expose: t }) {
726
- const r = Q(() => s?.value.value), s = ee("stepper"), a = (n) => {
727
- s && s.updateValue(n.toString());
748
+ const r = I(() => a?.value.value), a = ne("stepper"), s = (n) => {
749
+ a && a.updateValue(n.toString());
728
750
  };
729
751
  return t({
730
- activateCallback: a
731
- }), (n, o) => n.value === r.value ? (u(), i("div", st, [
732
- z(n.$slots, "default", { activateCallback: a })
733
- ])) : L("", !0);
752
+ activateCallback: s
753
+ }), (n, o) => n.value === r.value ? (c(), i("div", lt, [
754
+ T(n.$slots, "default", { activateCallback: s })
755
+ ])) : E("", !0);
734
756
  }
735
- }), ot = {
757
+ }), it = {
736
758
  key: 0,
737
759
  method: "dialog"
738
- }, Bt = /* @__PURE__ */ C({
760
+ }, Nt = /* @__PURE__ */ M({
739
761
  __name: "Modal",
740
762
  props: {
741
763
  closeButton: { type: Boolean, default: !0 },
742
764
  overflow: { type: Boolean, default: !1 },
743
- closeButtonSize: { default: ne.SM },
765
+ closeButtonSize: { default: G.SM },
744
766
  extraBoxClasses: {}
745
767
  },
746
768
  emits: ["close"],
747
769
  setup(e, { expose: t, emit: r }) {
748
- const s = $(null), a = r, n = e, o = $(D("modal-box", n.extraBoxClasses, {
770
+ const a = C(null), s = r, n = e, o = C(D("modal-box", n.extraBoxClasses, {
749
771
  "overflow-visible": n.overflow
750
- })), f = $(
772
+ })), f = C(
751
773
  D("modal")
752
- ), h = $(
774
+ ), k = C(
753
775
  D(
754
776
  "btn",
755
- Ce.toClassName(n.closeButtonSize),
777
+ Ne.toClassName(n.closeButtonSize),
756
778
  "btn-circle",
757
779
  "btn-ghost",
758
780
  "absolute",
@@ -762,53 +784,53 @@ const wt = /* @__PURE__ */ re(tt, [["render", rt]]), at = { key: 0 }, kt = /* @_
762
784
  );
763
785
  return t({
764
786
  showModal: () => {
765
- s.value?.showModal();
787
+ a.value?.showModal();
766
788
  },
767
789
  closeModal: () => {
768
- s.value?.close();
790
+ a.value?.close();
769
791
  }
770
- }), (B, k) => (u(), i("dialog", {
792
+ }), (_, w) => (c(), i("dialog", {
771
793
  ref_key: "modal",
772
- ref: s,
773
- class: E([f.value, B.$attrs.class]),
794
+ ref: a,
795
+ class: N([f.value, _.$attrs.class]),
774
796
  "aria-modal": "true",
775
797
  "aria-hidden": "true",
776
798
  role: "dialog",
777
- onClose: k[0] || (k[0] = (l) => a("close", l))
799
+ onClose: w[0] || (w[0] = (u) => s("close", u))
778
800
  }, [
779
- g("div", {
780
- class: E(o.value)
801
+ v("div", {
802
+ class: N(o.value)
781
803
  }, [
782
- B.closeButton ? (u(), i("form", ot, [
783
- g("button", {
784
- class: E(h.value)
804
+ _.closeButton ? (c(), i("form", it, [
805
+ v("button", {
806
+ class: N(k.value)
785
807
  }, "✕", 2)
786
- ])) : L("", !0),
787
- z(B.$slots, "default")
808
+ ])) : E("", !0),
809
+ T(_.$slots, "default")
788
810
  ], 2),
789
- k[1] || (k[1] = g("form", {
811
+ w[1] || (w[1] = v("form", {
790
812
  method: "dialog",
791
813
  class: "modal-backdrop"
792
814
  }, [
793
- g("button", null, "close")
815
+ v("button", null, "close")
794
816
  ], -1))
795
817
  ], 34));
796
818
  }
797
- }), ut = { class: "hidden w-full max-w-sm lg:flex" }, ct = { class: "relative mx-3 w-full" }, lt = { class: "relative w-full max-w-full" }, it = ["value"], $t = /* @__PURE__ */ C({
819
+ }), dt = { class: "hidden w-full max-w-sm lg:flex" }, ft = { class: "relative mx-3 w-full" }, pt = { class: "relative w-full max-w-full" }, bt = ["value"], Tt = /* @__PURE__ */ M({
798
820
  __name: "SearchBar",
799
821
  props: ["modelValue"],
800
822
  emits: ["update:modelValue"],
801
823
  setup(e, { emit: t }) {
802
- const r = e, s = $(null), a = t, n = (o) => {
803
- (o.ctrlKey || o.metaKey) && o.key.toLowerCase() === "k" && (o.preventDefault(), s.value && s.value.focus());
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());
804
826
  };
805
- return U(() => {
827
+ return H(() => {
806
828
  document.addEventListener("keydown", n);
807
- }), Se(() => {
829
+ }), ke(() => {
808
830
  document.removeEventListener("keydown", n);
809
- }), (o, f) => (u(), i("div", ut, [
810
- g("label", ct, [
811
- f[1] || (f[1] = g("svg", {
831
+ }), (o, f) => (c(), i("div", dt, [
832
+ v("label", ft, [
833
+ f[1] || (f[1] = v("svg", {
812
834
  class: "pointer-events-none absolute z-10 my-3.5 ms-4 text-base-content opacity-60",
813
835
  "aria-hidden": "true",
814
836
  width: "16",
@@ -816,33 +838,90 @@ const wt = /* @__PURE__ */ re(tt, [["render", rt]]), at = { key: 0 }, kt = /* @_
816
838
  viewBox: "0.48 0.48 23.04 23.04",
817
839
  fill: "currentColor"
818
840
  }, [
819
- g("path", {
841
+ v("path", {
820
842
  fill: "none",
821
843
  d: "M0 0h24v24H0z"
822
844
  }),
823
- g("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" })
845
+ v("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" })
824
846
  ], -1)),
825
- g("div", lt, [
826
- g("form", null, [
827
- g("input", {
847
+ v("div", pt, [
848
+ v("form", null, [
849
+ v("input", {
828
850
  ref_key: "searchInput",
829
- ref: s,
851
+ ref: a,
830
852
  type: "search",
831
853
  placeholder: "Zoeken...",
832
854
  value: r.modelValue,
833
- onInput: f[0] || (f[0] = (h) => a("update:modelValue", h.target.value)),
855
+ onInput: f[0] || (f[0] = (k) => s("update:modelValue", k.target.value)),
834
856
  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"
835
- }, null, 40, it)
857
+ }, null, 40, bt)
836
858
  ])
837
859
  ]),
838
- f[2] || (f[2] = g("div", { class: "pointer-events-none absolute end-10 top-2.5 hidden gap-1 opacity-50 lg:flex rtl:flex-row-reverse" }, [
839
- g("kbd", { class: "kbd kbd-sm" }, "ctrl"),
840
- g("kbd", { class: "kbd kbd-sm" }, "K")
860
+ f[2] || (f[2] = v("div", { class: "pointer-events-none absolute end-10 top-2.5 hidden gap-1 opacity-50 lg:flex rtl:flex-row-reverse" }, [
861
+ v("kbd", { class: "kbd kbd-sm" }, "ctrl"),
862
+ v("kbd", { class: "kbd kbd-sm" }, "K")
841
863
  ], -1))
842
864
  ])
843
865
  ]));
844
866
  }
845
- }), Ct = [
867
+ }), vt = ["name", "value"], Lt = /* @__PURE__ */ M({
868
+ __name: "Tabs",
869
+ props: {
870
+ box: { type: Boolean, default: !1 },
871
+ border: { type: Boolean, default: !1 },
872
+ lift: { type: Boolean, default: !1 },
873
+ fullWidth: { type: Boolean, default: !1 },
874
+ placement: { default: "top" },
875
+ size: { default: G.MD },
876
+ items: {},
877
+ activeTab: { default: 0 }
878
+ },
879
+ setup(e, { expose: t }) {
880
+ const r = Math.random().toString(36).substring(2, 15), a = e, s = I(() => 100 / a.items.length), n = I(() => [
881
+ "tabs",
882
+ a.placement === "top" ? "tabs-top" : "tabs-bottom",
883
+ `${Re.toClassName(a.size)}`,
884
+ {
885
+ "tabs-box": a.box,
886
+ "tabs-border": a.border,
887
+ "tabs-lift": a.lift
888
+ }
889
+ ]), o = C(a.activeTab ?? 0), f = (k) => {
890
+ o.value = k;
891
+ };
892
+ return U(() => a.activeTab, (k) => {
893
+ o.value = k;
894
+ }), t({
895
+ activeIndex: o,
896
+ setActiveTab: f
897
+ }), (k, g) => (c(), i("div", {
898
+ role: "tablist",
899
+ class: N(n.value)
900
+ }, [
901
+ (c(!0), i(R, null, P(a.items, ($, _) => (c(), i(R, { key: _ }, [
902
+ v("label", {
903
+ class: "tab",
904
+ style: Be(a.fullWidth ? { width: s.value + "%" } : {})
905
+ }, [
906
+ Ce(v("input", {
907
+ type: "radio",
908
+ name: K(r),
909
+ value: _,
910
+ "onUpdate:modelValue": g[0] || (g[0] = (w) => o.value = w)
911
+ }, null, 8, vt), [
912
+ [$e, o.value]
913
+ ]),
914
+ te(" " + X($.label), 1)
915
+ ], 4),
916
+ v("div", {
917
+ class: N(["tab-content p-6", $.disabled ? "tab-disabled" : ""])
918
+ }, [
919
+ T(k.$slots, $.slot)
920
+ ], 2)
921
+ ], 64))), 128))
922
+ ], 2));
923
+ }
924
+ }), Rt = [
846
925
  "bg-primary",
847
926
  "bg-primary-content",
848
927
  "bg-secondary",
@@ -928,28 +1007,30 @@ const wt = /* @__PURE__ */ re(tt, [["render", rt]]), at = { key: 0 }, kt = /* @_
928
1007
  "block"
929
1008
  ];
930
1009
  export {
931
- Be as BackgroundColorUtils,
932
- pt as Button,
933
- $e as ButtonColorUtils,
934
- Ce as ButtonSizeUtils,
935
- vt as Card,
936
- ht as CardBody,
937
- mt as CardTitle,
938
- te as Color,
939
- gt as Container,
940
- Bt as Modal,
941
- Me as RoundedSizeUtils,
942
- $t as SearchBar,
943
- bt as SimpleButton,
944
- ne as Size,
945
- xt as Step,
946
- wt as StepList,
947
- St as StepPanel,
948
- kt as StepPanels,
949
- _t as Stepper,
950
- yt as Table,
951
- Ne as TableSizeUtils,
952
- ft as TextColorUtils,
953
- Ct as dendelionSafeList,
954
- P as getValue
1010
+ Me as BackgroundColorUtils,
1011
+ gt as Button,
1012
+ ze as ButtonColorUtils,
1013
+ Ne as ButtonSizeUtils,
1014
+ _t as Card,
1015
+ xt as CardBody,
1016
+ wt as CardTitle,
1017
+ re as Color,
1018
+ St as Container,
1019
+ Nt as Modal,
1020
+ Te as RoundedSizeUtils,
1021
+ Tt as SearchBar,
1022
+ yt as SimpleButton,
1023
+ G as Size,
1024
+ Ct as Step,
1025
+ $t as StepList,
1026
+ zt as StepPanel,
1027
+ Mt as StepPanels,
1028
+ Bt as Stepper,
1029
+ kt as Table,
1030
+ Le as TableSizeUtils,
1031
+ Lt as Tabs,
1032
+ Re as TabsSizeUtils,
1033
+ ht as TextColorUtils,
1034
+ Rt as dendelionSafeList,
1035
+ A as getValue
955
1036
  };