dendelion-ui 0.0.16 → 0.0.18

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