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