dendelion-ui 0.0.5 → 0.0.6

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,8 +1,8 @@
1
- import { defineComponent as N, ref as M, watch as R, createElementBlock as m, openBlock as h, normalizeClass as W, createElementVNode as _, renderSlot as T, createBlock as te, resolveDynamicComponent as be, withCtx as ne, createTextVNode as he, toDisplayString as re, computed as ae, Fragment as P, renderList as A, provide as ge, inject as H, onMounted as se, Transition as me, createCommentVNode as G, unref as U, onUnmounted as _e } from "vue";
2
- var K = /* @__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))(K || {});
3
- class Z {
4
- static toClassName(n) {
5
- switch (n) {
1
+ import { defineComponent as N, computed as se, createElementBlock as m, openBlock as f, normalizeClass as C, createElementVNode as x, renderSlot as T, ref as B, createBlock as U, resolveDynamicComponent as ue, withCtx as oe, createTextVNode as ce, toDisplayString as G, onMounted as Z, watch as V, Fragment as R, renderList as X, createCommentVNode as O, provide as be, inject as j, Transition as me, unref as Q, 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 ge {
4
+ static toClassName(t) {
5
+ switch (t) {
6
6
  case 0:
7
7
  return "primary";
8
8
  case 1:
@@ -48,88 +48,89 @@ class Z {
48
48
  }
49
49
  }
50
50
  }
51
- function ue(e) {
51
+ function le(e) {
52
52
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
53
53
  }
54
- var V = { exports: {} };
54
+ var I = { exports: {} };
55
55
  /*!
56
56
  Copyright (c) 2018 Jed Watson.
57
57
  Licensed under the MIT License (MIT), see
58
58
  http://jedwatson.github.io/classnames
59
59
  */
60
- var J;
60
+ var ee;
61
61
  function ye() {
62
- return J || (J = 1, function(e) {
62
+ return ee || (ee = 1, function(e) {
63
63
  (function() {
64
- var n = {}.hasOwnProperty;
65
- function r() {
66
- for (var t = "", u = 0; u < arguments.length; u++) {
67
- var p = arguments[u];
68
- p && (t = s(t, a(p)));
64
+ var t = {}.hasOwnProperty;
65
+ function a() {
66
+ for (var n = "", u = 0; u < arguments.length; u++) {
67
+ var d = arguments[u];
68
+ d && (n = r(n, s(d)));
69
69
  }
70
- return t;
70
+ return n;
71
71
  }
72
- function a(t) {
73
- if (typeof t == "string" || typeof t == "number")
74
- return t;
75
- if (typeof t != "object")
72
+ function s(n) {
73
+ if (typeof n == "string" || typeof n == "number")
74
+ return n;
75
+ if (typeof n != "object")
76
76
  return "";
77
- if (Array.isArray(t))
78
- return r.apply(null, t);
79
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
80
- return t.toString();
77
+ if (Array.isArray(n))
78
+ return a.apply(null, n);
79
+ if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
80
+ return n.toString();
81
81
  var u = "";
82
- for (var p in t)
83
- n.call(t, p) && t[p] && (u = s(u, p));
82
+ for (var d in n)
83
+ t.call(n, d) && n[d] && (u = r(u, d));
84
84
  return u;
85
85
  }
86
- function s(t, u) {
87
- return u ? t ? t + " " + u : t + u : t;
86
+ function r(n, u) {
87
+ return u ? n ? n + " " + u : n + u : n;
88
88
  }
89
- e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
89
+ e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
90
90
  })();
91
- }(V)), V.exports;
91
+ }(I)), I.exports;
92
92
  }
93
93
  var xe = ye();
94
- const D = /* @__PURE__ */ ue(xe), Se = ["type"], we = { class: "group-[.is-loading]:text-transparent" }, Xe = /* @__PURE__ */ N({
94
+ const D = /* @__PURE__ */ le(xe), Se = ["type"], ke = { class: "group-[.is-loading]:text-transparent" }, Ue = /* @__PURE__ */ N({
95
95
  __name: "Button",
96
96
  props: {
97
97
  type: { default: "button" },
98
98
  loading: { type: Boolean },
99
- color: { default: K.Neutral },
99
+ color: { default: J.Neutral },
100
100
  click: {}
101
101
  },
102
102
  setup(e) {
103
- const n = e, r = M(D(
103
+ const t = e, a = se(() => D(
104
104
  "btn",
105
105
  "group",
106
- `btn-${Z.toClassName(n.color)}`,
107
- n.loading ? "is-loading" : ""
106
+ `btn-${ge.toClassName(t.color)}`,
107
+ t.loading ? "is-loading" : ""
108
108
  ));
109
- return R(() => n.loading, (a) => {
110
- r.value = D(
111
- "btn",
112
- "group",
113
- `btn-${Z.toClassName(n.color)}`,
114
- a ? "is-loading" : ""
115
- );
116
- }), (a, s) => (h(), m("button", {
117
- onClick: s[0] || (s[0] = //@ts-ignore
118
- (...t) => a.click && a.click(...t)),
119
- class: W(r.value),
120
- type: a.type
109
+ return (s, r) => (f(), m("button", {
110
+ onClick: r[0] || (r[0] = (n) => s.click ? s.click : void 0),
111
+ class: C(a.value),
112
+ type: s.type
121
113
  }, [
122
- s[1] || (s[1] = _("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
123
- _("span", we, [
124
- T(a.$slots, "default")
114
+ r[1] || (r[1] = x("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
115
+ x("span", ke, [
116
+ T(s.$slots, "default")
125
117
  ])
126
118
  ], 10, Se));
127
119
  }
128
- });
129
- var oe = /* @__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))(oe || {});
130
- class ke {
131
- static toClassName(n) {
132
- switch (n) {
120
+ }), Y = (e, t) => {
121
+ const a = e.__vccOpts || e;
122
+ for (const [s, r] of t)
123
+ a[s] = r;
124
+ return a;
125
+ }, we = {};
126
+ function $e(e, t) {
127
+ return f(), m("button");
128
+ }
129
+ const Ze = /* @__PURE__ */ Y(we, [["render", $e]]);
130
+ var ie = /* @__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))(ie || {});
131
+ class Me {
132
+ static toClassName(t) {
133
+ switch (t) {
133
134
  case 0:
134
135
  return "xs";
135
136
  case 1:
@@ -149,235 +150,230 @@ class ke {
149
150
  }
150
151
  }
151
152
  }
152
- const Ie = /* @__PURE__ */ N({
153
+ const je = /* @__PURE__ */ N({
153
154
  __name: "Card",
154
155
  props: {
155
- backgroundColor: { default: K.Primary },
156
+ backgroundColor: { default: J.Primary },
156
157
  shadow: { type: Boolean, default: !1 },
157
158
  fullWidth: { type: Boolean, default: !1 },
158
159
  rounded: { type: Boolean },
159
160
  roundedSize: {}
160
161
  },
161
162
  setup(e) {
162
- const n = e, r = M(D(
163
+ const t = e, a = B(D(
163
164
  "card",
164
- `bg-${n.backgroundColor}`,
165
- n.shadow ? "shadow-lg" : "",
166
- n.fullWidth ? "w-full" : "",
167
- n.rounded && !n.roundedSize ? "rounded" : n.roundedSize ? `rounded-${n.roundedSize}` : ""
165
+ `bg-${t.backgroundColor}`,
166
+ t.shadow ? "shadow-lg" : "",
167
+ t.fullWidth ? "w-full" : "",
168
+ t.rounded && !t.roundedSize ? "rounded" : t.roundedSize ? `rounded-${t.roundedSize}` : ""
168
169
  ));
169
- return (a, s) => (h(), m("div", {
170
- class: W(r.value)
170
+ return (s, r) => (f(), m("div", {
171
+ class: C(a.value)
171
172
  }, [
172
- T(a.$slots, "default")
173
+ T(s.$slots, "default")
173
174
  ], 2));
174
175
  }
175
- }), ce = (e, n) => {
176
- const r = e.__vccOpts || e;
177
- for (const [a, s] of n)
178
- r[a] = s;
179
- return r;
180
- }, Me = {}, $e = { class: "card-body" };
181
- function Be(e, n) {
182
- return h(), m("div", $e, [
176
+ }), Be = {}, Ne = { class: "card-body" };
177
+ function Le(e, t) {
178
+ return f(), m("div", Ne, [
183
179
  T(e.$slots, "default")
184
180
  ]);
185
181
  }
186
- const He = /* @__PURE__ */ ce(Me, [["render", Be]]), Ge = /* @__PURE__ */ N({
182
+ const Je = /* @__PURE__ */ Y(Be, [["render", Le]]), Ye = /* @__PURE__ */ N({
187
183
  __name: "CardTitle",
188
184
  props: {
189
185
  is: { default: "h1" },
190
186
  text: { default: "" }
191
187
  },
192
188
  setup(e) {
193
- return (n, r) => (h(), te(be(n.is), { class: "card-title" }, {
194
- default: ne(() => [
195
- he(re(n.text), 1)
189
+ return (t, a) => (f(), U(ue(t.is), { class: "card-title" }, {
190
+ default: oe(() => [
191
+ ce(G(t.text), 1)
196
192
  ]),
197
193
  _: 1
198
194
  }));
199
195
  }
200
- }), Ke = /* @__PURE__ */ N({
196
+ }), Qe = /* @__PURE__ */ N({
201
197
  __name: "Container",
202
198
  props: {
203
199
  container: { type: Boolean, default: !0 },
204
200
  padding: { type: Boolean, default: !0 }
205
201
  },
206
202
  setup(e) {
207
- const n = e, r = M([
208
- n.container ? "container" : "",
203
+ const t = e, a = B([
204
+ t.container ? "container" : "",
209
205
  //To disable the max width in some cases
210
- n.padding ? "p-6" : ""
206
+ t.padding ? "p-6" : ""
211
207
  ]);
212
- return (a, s) => (h(), m("div", {
213
- class: W(r.value)
208
+ return (s, r) => (f(), m("div", {
209
+ class: C(a.value)
214
210
  }, [
215
- T(a.$slots, "default")
211
+ T(s.$slots, "default")
216
212
  ], 2));
217
213
  }
218
214
  });
219
- var X = {}, I = {}, Y;
220
- function le() {
221
- return Y || (Y = 1, function(e) {
222
- e.__esModule = !0, e.default = s;
223
- var n = /[\u0300-\u036f]/g, r = /ł/g, a = /ñ/g;
224
- function s(t) {
225
- return t.toLowerCase().normalize("NFD").replace(n, "").replace(r, "l").replace(a, "n").trim();
215
+ var K = {}, H = {}, te;
216
+ function de() {
217
+ return te || (te = 1, function(e) {
218
+ e.__esModule = !0, e.default = r;
219
+ var t = /[\u0300-\u036f]/g, a = /ł/g, s = /ñ/g;
220
+ function r(n) {
221
+ return n.toLowerCase().normalize("NFD").replace(t, "").replace(a, "l").replace(s, "n").trim();
226
222
  }
227
- }(I)), I;
223
+ }(H)), H;
228
224
  }
229
- var F = {}, j;
230
- function Q() {
231
- if (j) return F;
232
- j = 1, F.__esModule = !0, F.aggressiveFuzzyMatch = w, F.createFuzzySearchImpl = ie, F.experimentalSmartFuzzyMatch = k, F.fuzzyMatchImpl = $;
233
- var e = n(le());
234
- function n(c) {
225
+ var F = {}, ne;
226
+ function re() {
227
+ if (ne) return F;
228
+ ne = 1, F.__esModule = !0, F.aggressiveFuzzyMatch = _, F.createFuzzySearchImpl = q, F.experimentalSmartFuzzyMatch = S, F.fuzzyMatchImpl = g;
229
+ var e = t(de());
230
+ function t(c) {
235
231
  return c && c.__esModule ? c : { default: c };
236
232
  }
237
- var r = Number.MAX_SAFE_INTEGER, a = function(o, v) {
233
+ var a = Number.MAX_SAFE_INTEGER, s = function(o, v) {
238
234
  return (
239
235
  /*: number*/
240
236
  o.score - v.score
241
237
  );
242
- }, s = function(o, v) {
238
+ }, r = function(o, v) {
243
239
  return (
244
240
  /*: number*/
245
241
  o[0] - v[0]
246
242
  );
247
- }, t = new Set(`  []()-–—'"“”`.split(""));
243
+ }, n = new Set(`  []()-–—'"“”`.split(""));
248
244
  function u(c) {
249
- return t.has(c);
245
+ return n.has(c);
250
246
  }
251
- function p(c, o, v, x, l, g, d) {
252
- if (c === x)
247
+ function d(c, o, v, k, l, y, h) {
248
+ if (c === k)
253
249
  return [0, [[0, c.length - 1]]];
254
- var i = x.length, f = o.length, y = l.length;
250
+ var i = k.length, b = o.length, w = l.length;
255
251
  if (o === l)
256
- return [0.1, [[0, f - 1]]];
252
+ return [0.1, [[0, b - 1]]];
257
253
  if (o.startsWith(l))
258
- return [0.5, [[0, y - 1]]];
259
- var B = c.indexOf(x);
260
- if (B > -1 && u(c[B - 1]))
261
- return [0.9, [[B, B + i - 1]]];
262
- var S = o.indexOf(l);
263
- if (S > -1 && u(o[S - 1]))
264
- return [1, [[S, S + i - 1]]];
265
- var L = g.length;
266
- if (L > 1 && g.every(function(z) {
267
- return v.has(z);
254
+ return [0.5, [[0, w - 1]]];
255
+ var M = c.indexOf(k);
256
+ if (M > -1 && u(c[M - 1]))
257
+ return [0.9, [[M, M + i - 1]]];
258
+ var $ = o.indexOf(l);
259
+ if ($ > -1 && u(o[$ - 1]))
260
+ return [1, [[$, $ + i - 1]]];
261
+ var L = y.length;
262
+ if (L > 1 && y.every(function(E) {
263
+ return v.has(E);
268
264
  })) {
269
- var E = 1.5 + L * 0.2;
270
- return [E, g.map(function(z) {
271
- var C = o.indexOf(z);
272
- return [C, C + z.length - 1];
273
- }).sort(s)];
265
+ var z = 1.5 + L * 0.2;
266
+ return [z, y.map(function(E) {
267
+ var W = o.indexOf(E);
268
+ return [W, W + E.length - 1];
269
+ }).sort(r)];
274
270
  }
275
- return S > -1 ? [2, [[S, S + i - 1]]] : d === "aggressive" ? w(o, l) : d === "smart" ? k(o, l) : null;
271
+ return $ > -1 ? [2, [[$, $ + i - 1]]] : h === "aggressive" ? _(o, l) : h === "smart" ? S(o, l) : null;
276
272
  }
277
- function w(c, o) {
278
- for (var v = c.length, x = o.length, l = 0, g = o[l], d = [], i = -1, f = -2, y = 0; y < v; y += 1)
279
- if (c[y] === g) {
280
- if (y !== f + 1 && (i >= 0 && d.push([i, f]), i = y), f = y, l += 1, l === x)
281
- return d.push([i, f]), b(d, c);
282
- g = o[l];
273
+ function _(c, o) {
274
+ for (var v = c.length, k = o.length, l = 0, y = o[l], h = [], i = -1, b = -2, w = 0; w < v; w += 1)
275
+ if (c[w] === y) {
276
+ if (w !== b + 1 && (i >= 0 && h.push([i, b]), i = w), b = w, l += 1, l === k)
277
+ return h.push([i, b]), p(h, c);
278
+ y = o[l];
283
279
  }
284
280
  return null;
285
281
  }
286
- function k(c, o) {
287
- for (var v = c.length, x = [], l = 0, g = o[l], d = -1, i = -2; ; ) {
288
- var f = c.indexOf(g, i + 1);
289
- if (f === -1)
282
+ function S(c, o) {
283
+ for (var v = c.length, k = [], l = 0, y = o[l], h = -1, i = -2; ; ) {
284
+ var b = c.indexOf(y, i + 1);
285
+ if (b === -1)
290
286
  break;
291
- if (f === 0 || u(c[f - 1]))
292
- d = f;
287
+ if (b === 0 || u(c[b - 1]))
288
+ h = b;
293
289
  else {
294
- var y = o.length - l, B = c.length - f, S = Math.min(3, y, B), L = o.slice(l, l + S);
295
- if (c.slice(f, f + S) === L)
296
- d = f;
290
+ var w = o.length - l, M = c.length - b, $ = Math.min(3, w, M), L = o.slice(l, l + $);
291
+ if (c.slice(b, b + $) === L)
292
+ h = b;
297
293
  else {
298
294
  i += 1;
299
295
  continue;
300
296
  }
301
297
  }
302
- for (i = d; i < v && c[i] === g; i += 1)
303
- l += 1, g = o[l];
304
- if (i -= 1, x.push([d, i]), l === o.length)
305
- return b(x, c);
298
+ for (i = h; i < v && c[i] === y; i += 1)
299
+ l += 1, y = o[l];
300
+ if (i -= 1, k.push([h, i]), l === o.length)
301
+ return p(k, c);
306
302
  }
307
303
  return null;
308
304
  }
309
- function b(c, o) {
305
+ function p(c, o) {
310
306
  var v = 2;
311
- return c.forEach(function(x) {
312
- var l = x[0], g = x[1], d = g - l + 1, i = l === 0 || o[l] === " " || o[l - 1] === " ", f = g === o.length - 1 || o[g] === " " || o[g + 1] === " ", y = i && f;
313
- y ? v += 0.2 : i ? v += 0.4 : d >= 3 ? v += 0.8 : v += 1.6;
307
+ return c.forEach(function(k) {
308
+ var l = k[0], y = k[1], h = y - l + 1, i = l === 0 || o[l] === " " || o[l - 1] === " ", b = y === o.length - 1 || o[y] === " " || o[y + 1] === " ", w = i && b;
309
+ w ? v += 0.2 : i ? v += 0.4 : h >= 3 ? v += 0.8 : v += 1.6;
314
310
  }), [v, c];
315
311
  }
316
- function $(c, o) {
317
- var v = (0, e.default)(o), x = v.split(" "), l = (0, e.default)(c), g = new Set(l.split(" ")), d = p(c, l, g, o, v, x, "smart");
318
- return d ? {
312
+ function g(c, o) {
313
+ var v = (0, e.default)(o), k = v.split(" "), l = (0, e.default)(c), y = new Set(l.split(" ")), h = d(c, l, y, o, v, k, "smart");
314
+ return h ? {
319
315
  item: c,
320
- score: d[0],
321
- matches: [d[1]]
316
+ score: h[0],
317
+ matches: [h[1]]
322
318
  } : null;
323
319
  }
324
- function ie(c, o) {
325
- var v = o.strategy, x = v === void 0 ? "aggressive" : v, l = o.getText, g = c.map(function(d) {
320
+ function q(c, o) {
321
+ var v = o.strategy, k = v === void 0 ? "aggressive" : v, l = o.getText, y = c.map(function(h) {
326
322
  var i;
327
323
  if (l)
328
- i = l(d);
324
+ i = l(h);
329
325
  else {
330
- var f = o.key ? d[o.key] : d;
331
- i = [f];
326
+ var b = o.key ? h[o.key] : h;
327
+ i = [b];
332
328
  }
333
- var y = i.map(function(B) {
334
- var S = B || "", L = (0, e.default)(S), E = new Set(L.split(" "));
335
- return [S, L, E];
329
+ var w = i.map(function(M) {
330
+ var $ = M || "", L = (0, e.default)($), z = new Set(L.split(" "));
331
+ return [$, L, z];
336
332
  });
337
- return [d, y];
333
+ return [h, w];
338
334
  });
339
- return function(d) {
340
- var i = [], f = (0, e.default)(d), y = f.split(" ");
341
- return f.length ? (g.forEach(function(B) {
342
- for (var S = B[0], L = B[1], E = r, z = [], C = 0, de = L.length; C < de; C += 1) {
343
- var O = L[C], fe = O[0], pe = O[1], ve = O[2], q = p(fe, pe, ve, d, f, y, x);
344
- q ? (E = Math.min(E, q[0]), z.push(q[1])) : z.push(null);
335
+ return function(h) {
336
+ var i = [], b = (0, e.default)(h), w = b.split(" ");
337
+ return b.length ? (y.forEach(function(M) {
338
+ for (var $ = M[0], L = M[1], z = a, E = [], W = 0, fe = L.length; W < fe; W += 1) {
339
+ var P = L[W], pe = P[0], ve = P[1], he = P[2], A = d(pe, ve, he, h, b, w, k);
340
+ A ? (z = Math.min(z, A[0]), E.push(A[1])) : E.push(null);
345
341
  }
346
- E < r && i.push({
347
- item: S,
348
- score: E,
349
- matches: z
342
+ z < a && i.push({
343
+ item: $,
344
+ score: z,
345
+ matches: E
350
346
  });
351
- }), i.sort(a), i) : [];
347
+ }), i.sort(s), i) : [];
352
348
  };
353
349
  }
354
350
  return F;
355
351
  }
356
- var ee;
357
- function Ne() {
358
- return ee || (ee = 1, function(e) {
359
- e.__esModule = !0, e.default = a, e.fuzzyMatch = s;
360
- var n = r(le());
361
- e.normalizeText = n.default;
362
- function r(t) {
363
- return t && t.__esModule ? t : { default: t };
352
+ var ae;
353
+ function Te() {
354
+ return ae || (ae = 1, function(e) {
355
+ e.__esModule = !0, e.default = s, e.fuzzyMatch = r;
356
+ var t = a(de());
357
+ e.normalizeText = t.default;
358
+ function a(n) {
359
+ return n && n.__esModule ? n : { default: n };
364
360
  }
365
- function a(t, u) {
366
- return u === void 0 && (u = {}), Q().createFuzzySearchImpl(t, u);
361
+ function s(n, u) {
362
+ return u === void 0 && (u = {}), re().createFuzzySearchImpl(n, u);
367
363
  }
368
- function s(t, u) {
369
- return Q().fuzzyMatchImpl(t, u);
364
+ function r(n, u) {
365
+ return re().fuzzyMatchImpl(n, u);
370
366
  }
371
- }(X)), X;
367
+ }(K)), K;
372
368
  }
373
- var Le = Ne();
374
- const Te = /* @__PURE__ */ ue(Le), Ee = ["innerHTML"], Ue = /* @__PURE__ */ N({
369
+ var ze = Te();
370
+ const Ee = /* @__PURE__ */ le(ze), Fe = { key: 0 }, We = ["colspan"], Ce = ["innerHTML"], et = /* @__PURE__ */ N({
375
371
  __name: "Table",
376
372
  props: {
377
373
  zebra: { type: Boolean, default: !1 },
378
374
  pinRows: { type: Boolean, default: !1 },
379
375
  pinCols: { type: Boolean, default: !1 },
380
- size: { default: oe.MD },
376
+ size: { default: ie.MD },
381
377
  columns: {},
382
378
  dataSource: {},
383
379
  ajax: {},
@@ -385,173 +381,202 @@ const Te = /* @__PURE__ */ ue(Le), Ee = ["innerHTML"], Ue = /* @__PURE__ */ N({
385
381
  searchFunction: {}
386
382
  },
387
383
  setup(e) {
388
- const n = M([]), r = M([]), a = ae(() => Te(n.value)), s = M(null), t = e, u = M(D("table", `table-${ke.toClassName(t.size)}`, {
389
- "table-zebra": t.zebra,
390
- "table-pin-rows": t.pinRows,
391
- "table-pin-cols ": t.pinCols
392
- })), p = (w, k) => String(!w || typeof w != "object" ? w : k.split(".").reduce((b, $) => b && (typeof b == "object" ? b[$] : b), w));
393
- return R(() => t.searchValue, (w) => {
394
- if (t.searchFunction) {
395
- r.value = t.searchFunction(w ?? "");
384
+ const t = B([]), a = B([]), s = B(null), r = e, n = B(D("table", `table-${Me.toClassName(r.size)}`, {
385
+ "table-zebra": r.zebra,
386
+ "table-pin-rows": r.pinRows,
387
+ "table-pin-cols ": r.pinCols
388
+ })), u = (_, S) => String(!_ || typeof _ != "object" ? _ : S.split(".").reduce((p, g) => p && (typeof p == "object" ? p[g] : p), _));
389
+ Z(() => {
390
+ t.value = r.dataSource, a.value = r.dataSource;
391
+ }), V(() => r.dataSource, (_) => {
392
+ t.value = _, a.value = _;
393
+ }, { immediate: !0 }), V(() => r.searchValue, (_) => {
394
+ if (r.searchFunction) {
395
+ a.value = r.searchFunction(_ ?? "");
396
396
  return;
397
397
  }
398
- r.value = w ? a.value(w) : n.value;
399
- }), (w, k) => (h(), m("table", {
398
+ a.value = _ ? d(_) : t.value;
399
+ }, { immediate: !0 });
400
+ const d = (_) => {
401
+ const S = [];
402
+ return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((g) => {
403
+ const q = t.value.map((v) => u(v, g)), o = Ee(q)(_);
404
+ for (const v of o) {
405
+ const k = t.value.filter((l) => u(l, g) === v.item);
406
+ S.push(...k);
407
+ }
408
+ }), S) : [];
409
+ };
410
+ return (_, S) => (f(), m("table", {
400
411
  ref_key: "table",
401
412
  ref: s,
402
- class: W(u.value)
413
+ class: C(n.value)
403
414
  }, [
404
- _("thead", null, [
405
- _("tr", null, [
406
- (h(!0), m(P, null, A(t.columns, (b) => (h(), m("th", {
407
- key: b.title
408
- }, re(b.title), 1))), 128))
415
+ x("thead", null, [
416
+ x("tr", null, [
417
+ (f(!0), m(R, null, X(r.columns, (p) => (f(), m("th", {
418
+ key: p.title
419
+ }, G(p.title), 1))), 128))
409
420
  ])
410
421
  ]),
411
- _("tbody", null, [
412
- (h(!0), m(P, null, A(r.value, (b) => (h(), m("tr", {
413
- key: String(b)
422
+ x("tbody", null, [
423
+ a.value.length === 0 ? (f(), m("tr", Fe, [
424
+ x("td", {
425
+ colspan: r.columns.length
426
+ }, " No data found ", 8, We)
427
+ ])) : (f(!0), m(R, { key: 1 }, X(a.value, (p) => (f(), m("tr", {
428
+ key: String(p)
414
429
  }, [
415
- (h(!0), m(P, null, A(t.columns, ($) => (h(), m("td", {
416
- key: $.title,
417
- innerHTML: $.render ? $.render(p(b, $.data), b) : p(b, $.data)
418
- }, null, 8, Ee))), 128))
430
+ (f(!0), m(R, null, X(r.columns, (g) => (f(), m("td", {
431
+ key: g.title
432
+ }, [
433
+ g.render ? O("", !0) : (f(), m(R, { key: 0 }, [
434
+ ce(G(u(p, g.data)), 1)
435
+ ], 64)),
436
+ typeof g.render == "function" ? (f(), m(R, { key: 1 }, [
437
+ typeof g.render(u(p, g.data), p) == "string" ? (f(), m("div", {
438
+ key: 0,
439
+ innerHTML: g.render(u(p, g.data), p)
440
+ }, null, 8, Ce)) : (f(), U(ue(g.render(u(p, g.data), p)), { key: 1 }))
441
+ ], 64)) : O("", !0)
442
+ ]))), 128))
419
443
  ]))), 128))
420
444
  ])
421
445
  ], 2));
422
446
  }
423
- }), Ze = /* @__PURE__ */ N({
447
+ }), tt = /* @__PURE__ */ N({
424
448
  __name: "Stepper",
425
449
  props: {
426
450
  value: {}
427
451
  },
428
452
  emits: ["update:value"],
429
- setup(e, { expose: n, emit: r }) {
430
- const a = e, s = M(a.value), t = r, u = (p) => {
431
- s.value = p, t("update:value", p);
453
+ setup(e, { expose: t, emit: a }) {
454
+ const s = e, r = B(s.value), n = a, u = (d) => {
455
+ r.value = d, n("update:value", d);
432
456
  };
433
- return ge("stepper", {
434
- value: s,
457
+ return be("stepper", {
458
+ value: r,
435
459
  updateValue: u
436
- }), R(() => a.value, (p) => {
437
- s.value = p;
438
- }), n({
460
+ }), V(() => s.value, (d) => {
461
+ r.value = d;
462
+ }), t({
439
463
  updateValue: u
440
- }), (p, w) => T(p.$slots, "default", { updateValue: u });
464
+ }), (d, _) => T(d.$slots, "default", { updateValue: u });
441
465
  }
442
- }), Je = /* @__PURE__ */ N({
466
+ }), nt = /* @__PURE__ */ N({
443
467
  __name: "Step",
444
468
  props: {
445
469
  value: {}
446
470
  },
447
471
  setup(e) {
448
- const n = e, r = H("stepper"), a = M("");
449
- return R(() => r == null ? void 0 : r.value.value, (s) => {
450
- s && n.value && (a.value = Number(s) >= Number(n.value) ? "step-primary" : "");
451
- }), se(() => {
452
- r && (a.value = r.value.value === n.value ? "step-primary" : "", Number(r.value.value) >= Number(n.value) && (a.value = "step-primary"));
453
- }), (s, t) => (h(), m("li", {
454
- class: W(["step", a.value])
472
+ const t = e, a = j("stepper"), s = B("");
473
+ return V(() => a == null ? void 0 : a.value.value, (r) => {
474
+ r && t.value && (s.value = Number(r) >= Number(t.value) ? "step-primary" : "");
475
+ }), Z(() => {
476
+ a && (s.value = a.value.value === t.value ? "step-primary" : "", Number(a.value.value) >= Number(t.value) && (s.value = "step-primary"));
477
+ }), (r, n) => (f(), m("li", {
478
+ class: C(["step", s.value])
455
479
  }, [
456
- T(s.$slots, "default")
480
+ T(r.$slots, "default")
457
481
  ], 2));
458
482
  }
459
- }), ze = {}, Fe = { class: "steps" };
460
- function Ce(e, n) {
461
- return h(), m("ul", Fe, [
483
+ }), Re = {}, Oe = { class: "steps" };
484
+ function Ve(e, t) {
485
+ return f(), m("ul", Oe, [
462
486
  T(e.$slots, "default")
463
487
  ]);
464
488
  }
465
- const Ye = /* @__PURE__ */ ce(ze, [["render", Ce]]), We = { key: 0 }, je = /* @__PURE__ */ N({
489
+ const rt = /* @__PURE__ */ Y(Re, [["render", Ve]]), De = { key: 0 }, at = /* @__PURE__ */ N({
466
490
  __name: "StepPanels",
467
491
  setup(e) {
468
- const n = H("stepper");
469
- return (r, a) => (h(), te(me, {
492
+ const t = j("stepper");
493
+ return (a, s) => (f(), U(me, {
470
494
  name: "fade",
471
495
  mode: "out-in"
472
496
  }, {
473
- default: ne(() => {
474
- var s, t;
497
+ default: oe(() => {
498
+ var r, n;
475
499
  return [
476
- (s = U(n)) != null && s.value ? (h(), m("div", We, [
477
- T(r.$slots, "default", {
478
- currentStep: (t = U(n)) == null ? void 0 : t.value
500
+ (r = Q(t)) != null && r.value ? (f(), m("div", De, [
501
+ T(a.$slots, "default", {
502
+ currentStep: (n = Q(t)) == null ? void 0 : n.value
479
503
  })
480
- ])) : G("", !0)
504
+ ])) : O("", !0)
481
505
  ];
482
506
  }),
483
507
  _: 3
484
508
  }));
485
509
  }
486
- }), De = { key: 0 }, Qe = /* @__PURE__ */ N({
510
+ }), qe = { key: 0 }, st = /* @__PURE__ */ N({
487
511
  __name: "StepPanel",
488
512
  props: {
489
513
  value: {}
490
514
  },
491
- setup(e, { expose: n }) {
492
- const r = ae(() => a == null ? void 0 : a.value.value), a = H("stepper"), s = (t) => {
493
- a && a.updateValue(t.toString());
515
+ setup(e, { expose: t }) {
516
+ const a = se(() => s == null ? void 0 : s.value.value), s = j("stepper"), r = (n) => {
517
+ s && s.updateValue(n.toString());
494
518
  };
495
- return n({
496
- activateCallback: s
497
- }), (t, u) => t.value === r.value ? (h(), m("div", De, [
498
- T(t.$slots, "default", { activateCallback: s })
499
- ])) : G("", !0);
519
+ return t({
520
+ activateCallback: r
521
+ }), (n, u) => n.value === a.value ? (f(), m("div", qe, [
522
+ T(n.$slots, "default", { activateCallback: r })
523
+ ])) : O("", !0);
500
524
  }
501
- }), Re = { className: "modal-box" }, Oe = {
525
+ }), Pe = { className: "modal-box" }, Ae = {
502
526
  key: 0,
503
527
  method: "dialog"
504
- }, et = /* @__PURE__ */ N({
528
+ }, ut = /* @__PURE__ */ N({
505
529
  __name: "Modal",
506
530
  props: {
507
531
  closeButton: { type: Boolean, default: !0 },
508
532
  overflow: { type: Boolean, default: !1 }
509
533
  },
510
534
  emits: ["close"],
511
- setup(e, { expose: n, emit: r }) {
512
- const a = M(null), s = r, u = M(D("modal", {
535
+ setup(e, { expose: t, emit: a }) {
536
+ const s = B(null), r = a, u = B(D("modal", {
513
537
  "overflow-visible": e.overflow
514
538
  }));
515
- return n({
539
+ return t({
516
540
  showModal: () => {
517
- var k;
518
- (k = a.value) == null || k.showModal();
541
+ var S;
542
+ (S = s.value) == null || S.showModal();
519
543
  },
520
544
  closeModal: () => {
521
- var k;
522
- (k = a.value) == null || k.close();
545
+ var S;
546
+ (S = s.value) == null || S.close();
523
547
  }
524
- }), (k, b) => (h(), m("dialog", {
548
+ }), (S, p) => (f(), m("dialog", {
525
549
  ref_key: "modal",
526
- ref: a,
527
- class: W(u.value),
550
+ ref: s,
551
+ class: C(u.value),
528
552
  "aria-modal": "true",
529
553
  "aria-hidden": "true",
530
554
  role: "dialog",
531
- onClose: b[0] || (b[0] = ($) => s("close", $))
555
+ onClose: p[0] || (p[0] = (g) => r("close", g))
532
556
  }, [
533
- _("div", Re, [
534
- k.closeButton ? (h(), m("form", Oe, b[1] || (b[1] = [
535
- _("button", { className: "btn btn-sm btn-circle btn-ghost absolute right-2 top-2" }, "✕", -1)
536
- ]))) : G("", !0),
537
- T(k.$slots, "default")
557
+ x("div", Pe, [
558
+ S.closeButton ? (f(), m("form", Ae, p[1] || (p[1] = [
559
+ x("button", { className: "btn btn-sm btn-circle btn-ghost absolute right-2 top-2" }, "✕", -1)
560
+ ]))) : O("", !0),
561
+ T(S.$slots, "default")
538
562
  ])
539
563
  ], 34));
540
564
  }
541
- }), qe = { class: "hidden w-full max-w-sm lg:flex" }, Pe = { class: "relative mx-3 w-full" }, Ae = { class: "w-full max-w-full relative" }, tt = /* @__PURE__ */ N({
565
+ }), Xe = { class: "hidden w-full max-w-sm lg:flex" }, Ie = { class: "relative mx-3 w-full" }, Ke = { class: "w-full max-w-full relative" }, He = ["value"], ot = /* @__PURE__ */ N({
542
566
  __name: "SearchBar",
543
- emits: ["input"],
544
- setup(e, { emit: n }) {
545
- const r = M(null), a = n, s = (t) => {
546
- (t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "k" && (t.preventDefault(), r.value && r.value.focus());
567
+ props: ["modelValue"],
568
+ emits: ["update:modelValue"],
569
+ setup(e, { emit: t }) {
570
+ const a = e, s = B(null), r = t, n = (u) => {
571
+ (u.ctrlKey || u.metaKey) && u.key.toLowerCase() === "k" && (u.preventDefault(), s.value && s.value.focus());
547
572
  };
548
- return se(() => {
549
- document.addEventListener("keydown", s);
573
+ return Z(() => {
574
+ document.addEventListener("keydown", n);
550
575
  }), _e(() => {
551
- document.removeEventListener("keydown", s);
552
- }), (t, u) => (h(), m("div", qe, [
553
- _("label", Pe, [
554
- u[1] || (u[1] = _("svg", {
576
+ document.removeEventListener("keydown", n);
577
+ }), (u, d) => (f(), m("div", Xe, [
578
+ x("label", Ie, [
579
+ d[1] || (d[1] = x("svg", {
555
580
  class: "pointer-events-none absolute z-10 my-3.5 ms-4 opacity-60 text-base-content",
556
581
  "aria-hidden": "true",
557
582
  width: "16",
@@ -559,32 +584,33 @@ const Ye = /* @__PURE__ */ ce(ze, [["render", Ce]]), We = { key: 0 }, je = /* @_
559
584
  viewBox: "0.48 0.48 23.04 23.04",
560
585
  fill: "currentColor"
561
586
  }, [
562
- _("path", {
587
+ x("path", {
563
588
  fill: "none",
564
589
  d: "M0 0h24v24H0z"
565
590
  }),
566
- _("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" })
591
+ x("path", { d: "M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" })
567
592
  ], -1)),
568
- _("div", Ae, [
569
- _("form", null, [
570
- _("input", {
593
+ x("div", Ke, [
594
+ x("form", null, [
595
+ x("input", {
571
596
  ref_key: "searchInput",
572
- ref: r,
597
+ ref: s,
573
598
  type: "search",
574
599
  placeholder: "Zoeken...",
575
- onInput: u[0] || (u[0] = (p) => a("input", p.target.value)),
600
+ value: a.modelValue,
601
+ onInput: d[0] || (d[0] = (_) => r("update:modelValue", _.target.value)),
576
602
  class: "bg-transparent color-[inherit] border-[2px] border-solid border-transparent focus:border-[2px] focus:border-base-200 focus:outline-none rounded-xl w-full px-3 py-2 ps-10"
577
- }, null, 544)
603
+ }, null, 40, He)
578
604
  ])
579
605
  ]),
580
- u[2] || (u[2] = _("div", { class: "pointer-events-none absolute end-10 top-2.5 gap-1 opacity-50 rtl:flex-row-reverse hidden lg:flex" }, [
581
- _("kbd", { class: "kbd kbd-sm" }, "ctrl"),
582
- _("kbd", { class: "kbd kbd-sm" }, "K")
606
+ d[2] || (d[2] = x("div", { class: "pointer-events-none absolute end-10 top-2.5 gap-1 opacity-50 rtl:flex-row-reverse hidden lg:flex" }, [
607
+ x("kbd", { class: "kbd kbd-sm" }, "ctrl"),
608
+ x("kbd", { class: "kbd kbd-sm" }, "K")
583
609
  ], -1))
584
610
  ])
585
611
  ]));
586
612
  }
587
- }), nt = [
613
+ }), ct = [
588
614
  "bg-primary",
589
615
  "bg-primary-content",
590
616
  "bg-secondary",
@@ -670,22 +696,23 @@ const Ye = /* @__PURE__ */ ce(ze, [["render", Ce]]), We = { key: 0 }, je = /* @_
670
696
  "block"
671
697
  ];
672
698
  export {
673
- Xe as Button,
674
- Ie as Card,
675
- He as CardBody,
676
- Ge as CardTitle,
677
- K as Color,
678
- Z as ColorUtils,
679
- Ke as Container,
680
- et as Modal,
681
- tt as SearchBar,
682
- oe as Size,
683
- ke as SizeUtils,
684
- Je as Step,
685
- Ye as StepList,
686
- Qe as StepPanel,
687
- je as StepPanels,
688
- Ze as Stepper,
689
- Ue as Table,
690
- nt as dendelionSafeList
699
+ Ue as Button,
700
+ je as Card,
701
+ Je as CardBody,
702
+ Ye as CardTitle,
703
+ J as Color,
704
+ ge as ColorUtils,
705
+ Qe as Container,
706
+ ut as Modal,
707
+ ot as SearchBar,
708
+ Ze as SimpleButton,
709
+ ie as Size,
710
+ Me as SizeUtils,
711
+ nt as Step,
712
+ rt as StepList,
713
+ st as StepPanel,
714
+ at as StepPanels,
715
+ tt as Stepper,
716
+ et as Table,
717
+ ct as dendelionSafeList
691
718
  };