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