dendelion-ui 0.0.21 → 0.0.22

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 C, computed as I, createElementBlock as i, openBlock as u, normalizeClass as N, createElementVNode as h, renderSlot as T, ref as $, createBlock as q, resolveDynamicComponent as ee, withCtx as fe, createTextVNode as te, toDisplayString as X, onMounted as H, createCommentVNode as R, Fragment as E, unref as K, isVNode as ye, normalizeProps as _e, guardReactiveProps as xe, defineAsyncComponent as se, watch as U, renderList as O, provide as we, inject as ne, Transition as Se, onUnmounted as ke, normalizeStyle as Be, withDirectives as $e, vModelRadio as Ce } 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 Ee {
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 Re() {
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,65 +261,65 @@ 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 = Re();
275
+ const A = /* @__PURE__ */ pe(Fe), We = ["type", "disabled"], Ve = { class: "group-[.is-loading]:text-transparent" }, gt = /* @__PURE__ */ C({
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(
270
- () => D(
287
+ const t = e, r = I(
288
+ () => A(
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) => (u(), 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] = h("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
305
+ h("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) {
315
+ }, De = {};
316
+ function Oe(e, t) {
299
317
  return u(), 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__ */ C({
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 },
@@ -309,41 +327,41 @@ const bt = /* @__PURE__ */ re(Re, [["render", Fe]]), vt = /* @__PURE__ */ C({
309
327
  },
310
328
  setup(e) {
311
329
  const t = e, r = $(
312
- D(
330
+ A(
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) => (u(), 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 u(), 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__ */ C({
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) => (u(), 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__ */ C({
347
365
  __name: "Container",
348
366
  props: {
349
367
  container: { type: Boolean, default: !0 },
@@ -355,169 +373,169 @@ const ht = /* @__PURE__ */ re(We, [["render", Ve]]), mt = /* @__PURE__ */ C({
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) => (u(), 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
+ }), P = (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 = p, V.createFuzzySearchImpl = x, V.experimentalSmartFuzzyMatch = M, V.fuzzyMatchImpl = S;
379
397
  var e = t(be());
380
398
  function t(l) {
381
399
  return l && l.__esModule ? l : { default: l };
382
400
  }
383
- var r = Number.MAX_SAFE_INTEGER, s = function(c, b) {
401
+ var r = Number.MAX_SAFE_INTEGER, a = function(c, v) {
384
402
  return (
385
403
  /*: number*/
386
- c.score - b.score
404
+ c.score - v.score
387
405
  );
388
- }, a = function(c, b) {
406
+ }, s = function(c, v) {
389
407
  return (
390
408
  /*: number*/
391
- c[0] - b[0]
409
+ c[0] - v[0]
392
410
  );
393
411
  }, n = new Set(`  []()-–—'"“”`.split(""));
394
412
  function o(l) {
395
413
  return n.has(l);
396
414
  }
397
- function f(l, c, b, _, d, y, v) {
398
- if (l === _)
415
+ function f(l, c, v, w, d, _, m) {
416
+ if (l === w)
399
417
  return [0, [[0, l.length - 1]]];
400
- var p = _.length, m = c.length, x = d.length;
418
+ var b = w.length, g = c.length, k = d.length;
401
419
  if (c === d)
402
- return [0.1, [[0, m - 1]]];
420
+ return [0.1, [[0, g - 1]]];
403
421
  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);
422
+ return [0.5, [[0, k - 1]]];
423
+ var z = l.indexOf(w);
424
+ if (z > -1 && o(l[z - 1]))
425
+ return [0.9, [[z, z + b - 1]]];
426
+ var B = c.indexOf(d);
427
+ if (B > -1 && o(c[B - 1]))
428
+ return [1, [[B, B + b - 1]]];
429
+ var L = _.length;
430
+ if (L > 1 && _.every(function(W) {
431
+ return v.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, _.map(function(W) {
435
+ var D = c.indexOf(W);
436
+ return [D, D + 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 + b - 1]]] : m === "aggressive" ? p(c, d) : m === "smart" ? M(c, 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 p(l, c) {
442
+ for (var v = l.length, w = c.length, d = 0, _ = c[d], m = [], b = -1, g = -2, k = 0; k < v; k += 1)
443
+ if (l[k] === _) {
444
+ if (k !== g + 1 && (b >= 0 && m.push([b, g]), b = k), g = k, d += 1, d === w)
445
+ return m.push([b, g]), y(m, l);
446
+ _ = c[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 M(l, c) {
451
+ for (var v = l.length, w = [], d = 0, _ = c[d], m = -1, b = -2; ; ) {
452
+ var g = l.indexOf(_, b + 1);
453
+ if (g === -1)
436
454
  break;
437
- if (m === 0 || o(l[m - 1]))
438
- v = m;
455
+ if (g === 0 || o(l[g - 1]))
456
+ m = g;
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 k = c.length - d, z = l.length - g, B = Math.min(3, k, z), L = c.slice(d, d + B);
459
+ if (l.slice(g, g + B) === L)
460
+ m = g;
443
461
  else {
444
- p += 1;
462
+ b += 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 (b = m; b < v && l[b] === _; b += 1)
467
+ d += 1, _ = c[d];
468
+ if (b -= 1, w.push([m, b]), d === c.length)
469
+ return y(w, l);
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 y(l, c) {
474
+ var v = 2;
475
+ return l.forEach(function(w) {
476
+ var d = w[0], _ = w[1], m = _ - d + 1, b = d === 0 || c[d] === " " || c[d - 1] === " ", g = _ === c.length - 1 || c[_] === " " || c[_ + 1] === " ", k = b && g;
477
+ k ? v += 0.2 : b ? v += 0.4 : m >= 3 ? v += 0.8 : v += 1.6;
478
+ }), [v, l];
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 ? {
480
+ function S(l, c) {
481
+ var v = (0, e.default)(c), w = v.split(" "), d = (0, e.default)(l), _ = new Set(d.split(" ")), m = f(l, d, _, c, v, w, "smart");
482
+ return m ? {
465
483
  item: l,
466
- score: v[0],
467
- matches: [v[1]]
484
+ score: m[0],
485
+ matches: [m[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) {
472
- var p;
488
+ function x(l, c) {
489
+ var v = c.strategy, w = v === void 0 ? "aggressive" : v, d = c.getText, _ = l.map(function(m) {
490
+ var b;
473
491
  if (d)
474
- p = d(v);
492
+ b = d(m);
475
493
  else {
476
- var m = c.key ? v[c.key] : v;
477
- p = [m];
494
+ var g = c.key ? m[c.key] : m;
495
+ b = [g];
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 k = b.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 [m, k];
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(m) {
504
+ var b = [], g = (0, e.default)(m), k = g.split(" ");
505
+ return g.length ? (_.forEach(function(z) {
506
+ for (var B = z[0], L = z[1], F = r, W = [], D = 0, ve = L.length; D < ve; D += 1) {
507
+ var j = L[D], me = j[0], he = j[1], ge = j[2], J = f(me, he, ge, m, g, k, w);
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 && b.push({
511
+ item: B,
512
+ score: F,
513
+ matches: W
496
514
  });
497
- }), p.sort(s), p) : [];
515
+ }), b.sort(a), b) : [];
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__ */ C({
521
539
  __name: "TableColumn",
522
540
  props: {
523
541
  column: {},
@@ -525,35 +543,35 @@ 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(P(t.row, t.column.data), t.row) : P(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);
550
+ const a = (n, o) => o.render === void 0 ? {} : o.render(P(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);
533
551
  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))
552
+ n.column.render ? n.row ? (u(), i(E, { key: 1 }, [
553
+ r.value ? (u(), i("div", Ke, [
554
+ typeof r.value == "string" ? (u(), i("div", He, [
555
+ h("div", { innerHTML: r.value }, null, 8, Ge)
556
+ ])) : ye(r.value) ? (u(), i("div", je, [
557
+ (u(), q(ee(r.value)))
558
+ ])) : (u(), i("div", Je, [
559
+ (u(), 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
+ ])) : R("", !0)
562
+ ], 64)) : R("", !0) : (u(), i(E, { key: 0 }, [
563
+ te(X(K(P)(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__ */ C({
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 },
557
575
  columns: {},
558
576
  dataSource: {},
559
577
  ajax: {},
@@ -562,197 +580,197 @@ const Ae = /* @__PURE__ */ pe(De), qe = { key: 0 }, Ie = { key: 0 }, Xe = ["inne
562
580
  onRowClick: {}
563
581
  },
564
582
  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
583
+ const t = $([]), r = $([]), a = $(null), s = e, n = $(
584
+ A("table", Le.toClassName(s.size), {
585
+ "table-zebra": s.zebra,
586
+ "table-pin-rows": s.pinRows,
587
+ "table-pin-cols ": s.pinCols
570
588
  })
571
- ), o = (h, T) => {
572
- a.onRowClick && a.onRowClick(h, T);
589
+ ), o = (p, M) => {
590
+ s.onRowClick && s.onRowClick(p, M);
573
591
  };
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;
592
+ H(() => {
593
+ t.value = s.dataSource, r.value = s.dataSource;
594
+ }), U(
595
+ () => s.dataSource,
596
+ (p) => {
597
+ t.value = p, r.value = p;
580
598
  },
581
599
  { immediate: !0 }
582
- ), X(
583
- () => a.searchValue,
584
- (h) => {
585
- if (a.searchFunction) {
586
- r.value = a.searchFunction(h ?? "");
600
+ ), U(
601
+ () => s.searchValue,
602
+ (p) => {
603
+ if (s.searchFunction) {
604
+ r.value = s.searchFunction(p ?? "");
587
605
  return;
588
606
  }
589
- r.value = h ? f(h) : t.value;
607
+ r.value = p ? f(p) : t.value;
590
608
  },
591
609
  { immediate: !0 }
592
610
  );
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(..._);
611
+ const f = (p) => {
612
+ const M = [];
613
+ return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((S) => {
614
+ const x = t.value.map((v) => P(v, S)), c = Ue(x)(p);
615
+ for (const v of c) {
616
+ const w = t.value.filter((d) => P(d, S) === v.item);
617
+ M.push(...w);
600
618
  }
601
- }), T) : [];
619
+ }), M) : [];
602
620
  };
603
- return (h, T) => (u(), i("table", {
621
+ return (p, M) => (u(), i("table", {
604
622
  ref_key: "table",
605
- ref: s,
606
- class: E(n.value)
623
+ ref: a,
624
+ class: N(n.value)
607
625
  }, [
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))
626
+ p.horizontal ? R("", !0) : (u(), i("thead", Ze, [
627
+ h("tr", null, [
628
+ (u(!0), i(E, null, O(s.columns, (y) => (u(), i("th", {
629
+ key: y.title
630
+ }, X(y.title), 1))), 128))
613
631
  ])
614
632
  ])),
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)
633
+ p.horizontal ? R("", !0) : (u(), i("tbody", Ye, [
634
+ r.value.length === 0 ? (u(), i("tr", Qe, [
635
+ h("td", {
636
+ colspan: s.columns.length
637
+ }, "No data found", 8, et)
638
+ ])) : (u(!0), i(E, { key: 1 }, O(r.value, (y, S) => (u(), i("tr", {
639
+ class: N(s.onRowClick ? "hover" : ""),
640
+ key: JSON.stringify(y),
641
+ onClick: (x) => o(y, S)
624
642
  }, [
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
643
+ (u(!0), i(E, null, O(s.columns, (x) => (u(), q(de, {
644
+ key: x.data,
645
+ column: x,
646
+ row: y,
647
+ rowIndex: S
630
648
  }, null, 8, ["column", "row", "rowIndex"]))), 128))
631
- ], 10, Ze))), 128))
649
+ ], 10, tt))), 128))
632
650
  ])),
633
- h.horizontal ? (u(), i("tbody", Ye, [
634
- (u(!0), i(O, null, q(a.columns, (w) => (u(), i("tr", {
635
- key: w.title
651
+ p.horizontal ? (u(), i("tbody", nt, [
652
+ (u(!0), i(E, null, O(s.columns, (y) => (u(), i("tr", {
653
+ key: y.title
636
654
  }, [
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
655
+ h("th", null, X(y.title), 1),
656
+ (u(!0), i(E, null, O(r.value, (S, x) => (u(), q(de, {
657
+ key: x,
658
+ column: y,
659
+ row: S,
660
+ rowIndex: x
643
661
  }, null, 8, ["column", "row", "rowIndex"]))), 128))
644
662
  ]))), 128)),
645
- r.value.length === 0 ? (u(), i("tr", Qe, [
646
- g("td", {
647
- colspan: a.columns.length + 1,
663
+ r.value.length === 0 ? (u(), i("tr", rt, [
664
+ h("td", {
665
+ colspan: s.columns.length + 1,
648
666
  style: { "text-align": "center", padding: "1rem" }
649
- }, " No data found ", 8, et)
650
- ])) : L("", !0)
651
- ])) : L("", !0)
667
+ }, " No data found ", 8, at)
668
+ ])) : R("", !0)
669
+ ])) : R("", !0)
652
670
  ], 2));
653
671
  }
654
- }), _t = /* @__PURE__ */ C({
672
+ }), Bt = /* @__PURE__ */ C({
655
673
  __name: "Stepper",
656
674
  props: {
657
675
  value: {}
658
676
  },
659
677
  emits: ["update:value"],
660
678
  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);
679
+ const a = e, s = $(a.value), n = r, o = (f) => {
680
+ s.value = f, n("update:value", f);
663
681
  };
664
682
  return we("stepper", {
665
- value: a,
683
+ value: s,
666
684
  updateValue: o
667
- }), X(
668
- () => s.value,
685
+ }), U(
686
+ () => a.value,
669
687
  (f) => {
670
- a.value = f;
688
+ s.value = f;
671
689
  }
672
690
  ), t({
673
691
  updateValue: o
674
- }), (f, h) => z(f.$slots, "default", { updateValue: o });
692
+ }), (f, p) => T(f.$slots, "default", { updateValue: o });
675
693
  }
676
- }), xt = /* @__PURE__ */ C({
694
+ }), $t = /* @__PURE__ */ C({
677
695
  __name: "Step",
678
696
  props: {
679
697
  value: {}
680
698
  },
681
699
  setup(e) {
682
- const t = e, r = ee("stepper"), s = $("");
683
- return X(
700
+ const t = e, r = ne("stepper"), a = $("");
701
+ return U(
684
702
  () => r?.value.value,
685
- (a) => {
686
- a && t.value && (s.value = Number(a) >= Number(t.value) ? "step-primary" : "");
703
+ (s) => {
704
+ s && t.value && (a.value = Number(s) >= Number(t.value) ? "step-primary" : "");
687
705
  }
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])
706
+ ), H(() => {
707
+ r && (a.value = r.value.value === t.value ? "step-primary" : "", Number(r.value.value) >= Number(t.value) && (a.value = "step-primary"));
708
+ }), (s, n) => (u(), i("li", {
709
+ class: N(["step", a.value])
692
710
  }, [
693
- z(a.$slots, "default")
711
+ T(s.$slots, "default")
694
712
  ], 2));
695
713
  }
696
- }), tt = {}, nt = { class: "steps" };
697
- function rt(e, t) {
698
- return u(), i("ul", nt, [
699
- z(e.$slots, "default")
714
+ }), st = {}, ot = { class: "steps" };
715
+ function ut(e, t) {
716
+ return u(), i("ul", ot, [
717
+ T(e.$slots, "default")
700
718
  ]);
701
719
  }
702
- const wt = /* @__PURE__ */ re(tt, [["render", rt]]), at = { key: 0 }, kt = /* @__PURE__ */ C({
720
+ const Ct = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @__PURE__ */ C({
703
721
  __name: "StepPanels",
704
722
  setup(e) {
705
- const t = ee("stepper");
706
- return (r, s) => (u(), A(ke, {
723
+ const t = ne("stepper");
724
+ return (r, a) => (u(), q(Se, {
707
725
  name: "fade",
708
726
  mode: "out-in"
709
727
  }, {
710
- default: de(() => [
711
- Y(t)?.value ? (u(), i("div", at, [
712
- z(r.$slots, "default", {
713
- currentStep: Y(t)?.value
728
+ default: fe(() => [
729
+ K(t)?.value ? (u(), i("div", ct, [
730
+ T(r.$slots, "default", {
731
+ currentStep: K(t)?.value
714
732
  })
715
- ])) : L("", !0)
733
+ ])) : R("", !0)
716
734
  ]),
717
735
  _: 3
718
736
  }));
719
737
  }
720
- }), st = { key: 0 }, St = /* @__PURE__ */ C({
738
+ }), lt = { key: 0 }, zt = /* @__PURE__ */ C({
721
739
  __name: "StepPanel",
722
740
  props: {
723
741
  value: {}
724
742
  },
725
743
  setup(e, { expose: t }) {
726
- const r = Q(() => s?.value.value), s = ee("stepper"), a = (n) => {
727
- s && s.updateValue(n.toString());
744
+ const r = I(() => a?.value.value), a = ne("stepper"), s = (n) => {
745
+ a && a.updateValue(n.toString());
728
746
  };
729
747
  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);
748
+ activateCallback: s
749
+ }), (n, o) => n.value === r.value ? (u(), i("div", lt, [
750
+ T(n.$slots, "default", { activateCallback: s })
751
+ ])) : R("", !0);
734
752
  }
735
- }), ot = {
753
+ }), it = {
736
754
  key: 0,
737
755
  method: "dialog"
738
- }, Bt = /* @__PURE__ */ C({
756
+ }, Nt = /* @__PURE__ */ C({
739
757
  __name: "Modal",
740
758
  props: {
741
759
  closeButton: { type: Boolean, default: !0 },
742
760
  overflow: { type: Boolean, default: !1 },
743
- closeButtonSize: { default: ne.SM },
761
+ closeButtonSize: { default: G.SM },
744
762
  extraBoxClasses: {}
745
763
  },
746
764
  emits: ["close"],
747
765
  setup(e, { expose: t, emit: r }) {
748
- const s = $(null), a = r, n = e, o = $(D("modal-box", n.extraBoxClasses, {
766
+ const a = $(null), s = r, n = e, o = $(A("modal-box", n.extraBoxClasses, {
749
767
  "overflow-visible": n.overflow
750
768
  })), f = $(
751
- D("modal")
752
- ), h = $(
753
- D(
769
+ A("modal")
770
+ ), p = $(
771
+ A(
754
772
  "btn",
755
- Ce.toClassName(n.closeButtonSize),
773
+ Ne.toClassName(n.closeButtonSize),
756
774
  "btn-circle",
757
775
  "btn-ghost",
758
776
  "absolute",
@@ -762,53 +780,53 @@ const wt = /* @__PURE__ */ re(tt, [["render", rt]]), at = { key: 0 }, kt = /* @_
762
780
  );
763
781
  return t({
764
782
  showModal: () => {
765
- s.value?.showModal();
783
+ a.value?.showModal();
766
784
  },
767
785
  closeModal: () => {
768
- s.value?.close();
786
+ a.value?.close();
769
787
  }
770
- }), (B, k) => (u(), i("dialog", {
788
+ }), (S, x) => (u(), i("dialog", {
771
789
  ref_key: "modal",
772
- ref: s,
773
- class: E([f.value, B.$attrs.class]),
790
+ ref: a,
791
+ class: N([f.value, S.$attrs.class]),
774
792
  "aria-modal": "true",
775
793
  "aria-hidden": "true",
776
794
  role: "dialog",
777
- onClose: k[0] || (k[0] = (l) => a("close", l))
795
+ onClose: x[0] || (x[0] = (l) => s("close", l))
778
796
  }, [
779
- g("div", {
780
- class: E(o.value)
797
+ h("div", {
798
+ class: N(o.value)
781
799
  }, [
782
- B.closeButton ? (u(), i("form", ot, [
783
- g("button", {
784
- class: E(h.value)
800
+ S.closeButton ? (u(), i("form", it, [
801
+ h("button", {
802
+ class: N(p.value)
785
803
  }, "✕", 2)
786
- ])) : L("", !0),
787
- z(B.$slots, "default")
804
+ ])) : R("", !0),
805
+ T(S.$slots, "default")
788
806
  ], 2),
789
- k[1] || (k[1] = g("form", {
807
+ x[1] || (x[1] = h("form", {
790
808
  method: "dialog",
791
809
  class: "modal-backdrop"
792
810
  }, [
793
- g("button", null, "close")
811
+ h("button", null, "close")
794
812
  ], -1))
795
813
  ], 34));
796
814
  }
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({
815
+ }), 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__ */ C({
798
816
  __name: "SearchBar",
799
817
  props: ["modelValue"],
800
818
  emits: ["update:modelValue"],
801
819
  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());
820
+ const r = e, a = $(null), s = t, n = (o) => {
821
+ (o.ctrlKey || o.metaKey) && o.key.toLowerCase() === "k" && (o.preventDefault(), a.value && a.value.focus());
804
822
  };
805
- return U(() => {
823
+ return H(() => {
806
824
  document.addEventListener("keydown", n);
807
- }), Se(() => {
825
+ }), ke(() => {
808
826
  document.removeEventListener("keydown", n);
809
- }), (o, f) => (u(), i("div", ut, [
810
- g("label", ct, [
811
- f[1] || (f[1] = g("svg", {
827
+ }), (o, f) => (u(), i("div", dt, [
828
+ h("label", ft, [
829
+ f[1] || (f[1] = h("svg", {
812
830
  class: "pointer-events-none absolute z-10 my-3.5 ms-4 text-base-content opacity-60",
813
831
  "aria-hidden": "true",
814
832
  width: "16",
@@ -816,33 +834,90 @@ const wt = /* @__PURE__ */ re(tt, [["render", rt]]), at = { key: 0 }, kt = /* @_
816
834
  viewBox: "0.48 0.48 23.04 23.04",
817
835
  fill: "currentColor"
818
836
  }, [
819
- g("path", {
837
+ h("path", {
820
838
  fill: "none",
821
839
  d: "M0 0h24v24H0z"
822
840
  }),
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" })
841
+ h("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
842
  ], -1)),
825
- g("div", lt, [
826
- g("form", null, [
827
- g("input", {
843
+ h("div", pt, [
844
+ h("form", null, [
845
+ h("input", {
828
846
  ref_key: "searchInput",
829
- ref: s,
847
+ ref: a,
830
848
  type: "search",
831
849
  placeholder: "Zoeken...",
832
850
  value: r.modelValue,
833
- onInput: f[0] || (f[0] = (h) => a("update:modelValue", h.target.value)),
851
+ onInput: f[0] || (f[0] = (p) => s("update:modelValue", p.target.value)),
834
852
  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)
853
+ }, null, 40, bt)
836
854
  ])
837
855
  ]),
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")
856
+ f[2] || (f[2] = h("div", { class: "pointer-events-none absolute end-10 top-2.5 hidden gap-1 opacity-50 lg:flex rtl:flex-row-reverse" }, [
857
+ h("kbd", { class: "kbd kbd-sm" }, "ctrl"),
858
+ h("kbd", { class: "kbd kbd-sm" }, "K")
841
859
  ], -1))
842
860
  ])
843
861
  ]));
844
862
  }
845
- }), Ct = [
863
+ }), vt = ["name", "value"], Lt = /* @__PURE__ */ C({
864
+ __name: "Tabs",
865
+ props: {
866
+ box: { type: Boolean, default: !1 },
867
+ border: { type: Boolean, default: !1 },
868
+ lift: { type: Boolean, default: !1 },
869
+ fullWidth: { type: Boolean, default: !1 },
870
+ placement: { default: "top" },
871
+ size: { default: G.MD },
872
+ items: {},
873
+ activeTab: { default: 0 }
874
+ },
875
+ setup(e, { expose: t }) {
876
+ const r = Math.random().toString(36).substring(2, 15), a = e, s = I(() => 100 / a.items.length), n = I(() => [
877
+ "tabs",
878
+ a.placement === "top" ? "tabs-top" : "tabs-bottom",
879
+ `${Ee.toClassName(a.size)}`,
880
+ {
881
+ "tabs-box": a.box,
882
+ "tabs-border": a.border,
883
+ "tabs-lift": a.lift
884
+ }
885
+ ]), o = $(a.activeTab ?? 0), f = (p) => {
886
+ o.value = p;
887
+ };
888
+ return U(() => a.activeTab, (p) => {
889
+ o.value = p;
890
+ }), t({
891
+ activeIndex: o,
892
+ setActiveTab: f
893
+ }), (p, M) => (u(), i("div", {
894
+ role: "tablist",
895
+ class: N(n.value)
896
+ }, [
897
+ (u(!0), i(E, null, O(a.items, (y, S) => (u(), i(E, { key: S }, [
898
+ h("label", {
899
+ class: "tab",
900
+ style: Be(a.fullWidth ? { width: s.value + "%" } : {})
901
+ }, [
902
+ $e(h("input", {
903
+ type: "radio",
904
+ name: K(r),
905
+ value: S,
906
+ "onUpdate:modelValue": M[0] || (M[0] = (x) => o.value = x)
907
+ }, null, 8, vt), [
908
+ [Ce, o.value]
909
+ ]),
910
+ te(" " + X(y.label), 1)
911
+ ], 4),
912
+ h("div", {
913
+ class: N(["tab-content p-6", y.disabled ? "tab-disabled" : ""])
914
+ }, [
915
+ T(p.$slots, y.slot)
916
+ ], 2)
917
+ ], 64))), 128))
918
+ ], 2));
919
+ }
920
+ }), Et = [
846
921
  "bg-primary",
847
922
  "bg-primary-content",
848
923
  "bg-secondary",
@@ -928,28 +1003,30 @@ const wt = /* @__PURE__ */ re(tt, [["render", rt]]), at = { key: 0 }, kt = /* @_
928
1003
  "block"
929
1004
  ];
930
1005
  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,
1006
+ Me as BackgroundColorUtils,
1007
+ gt as Button,
1008
+ ze as ButtonColorUtils,
1009
+ Ne as ButtonSizeUtils,
1010
+ _t as Card,
1011
+ xt as CardBody,
1012
+ wt as CardTitle,
1013
+ re as Color,
1014
+ St as Container,
1015
+ Nt as Modal,
1016
+ Te as RoundedSizeUtils,
1017
+ Tt as SearchBar,
1018
+ yt as SimpleButton,
1019
+ G as Size,
1020
+ $t as Step,
1021
+ Ct as StepList,
1022
+ zt as StepPanel,
1023
+ Mt as StepPanels,
1024
+ Bt as Stepper,
1025
+ kt as Table,
1026
+ Le as TableSizeUtils,
1027
+ Lt as Tabs,
1028
+ Ee as TabsSizeUtils,
1029
+ ht as TextColorUtils,
1030
+ Et as dendelionSafeList,
954
1031
  P as getValue
955
1032
  };