dendelion-ui 0.0.5 → 0.0.7
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 +334 -307
- package/dist/dendelion-ui.umd.js +2 -2
- package/dist/types/components/button/SimpleButton.vue.d.ts +2 -0
- package/dist/types/components/button/index.d.ts +3 -2
- package/dist/types/components/search/SearchBar.vue.d.ts +8 -4
- package/package.json +7 -6
- package/src/components/button/Button.vue +4 -11
- package/src/components/button/SimpleButton.vue +8 -0
- package/src/components/button/index.ts +3 -2
- package/src/components/button/interface.ts +1 -0
- package/src/components/search/SearchBar.vue +4 -2
- package/src/components/table/Table.vue +48 -8
package/dist/dendelion-ui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as N,
|
|
2
|
-
var
|
|
3
|
-
class
|
|
4
|
-
static toClassName(
|
|
5
|
-
switch (
|
|
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
|
|
51
|
+
function le(e) {
|
|
52
52
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
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
|
|
60
|
+
var ee;
|
|
61
61
|
function ye() {
|
|
62
|
-
return
|
|
62
|
+
return ee || (ee = 1, function(e) {
|
|
63
63
|
(function() {
|
|
64
|
-
var
|
|
65
|
-
function
|
|
66
|
-
for (var
|
|
67
|
-
var
|
|
68
|
-
|
|
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
|
|
70
|
+
return n;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
if (typeof
|
|
74
|
-
return
|
|
75
|
-
if (typeof
|
|
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(
|
|
78
|
-
return
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
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
|
|
83
|
-
|
|
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
|
|
87
|
-
return u ?
|
|
86
|
+
function r(n, u) {
|
|
87
|
+
return u ? n ? n + " " + u : n + u : n;
|
|
88
88
|
}
|
|
89
|
-
e.exports ? (
|
|
89
|
+
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
90
90
|
})();
|
|
91
|
-
}(
|
|
91
|
+
}(I)), I.exports;
|
|
92
92
|
}
|
|
93
93
|
var xe = ye();
|
|
94
|
-
const D = /* @__PURE__ */
|
|
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:
|
|
99
|
+
color: { default: J.Neutral },
|
|
100
100
|
click: {}
|
|
101
101
|
},
|
|
102
102
|
setup(e) {
|
|
103
|
-
const
|
|
103
|
+
const t = e, a = se(() => D(
|
|
104
104
|
"btn",
|
|
105
105
|
"group",
|
|
106
|
-
`btn-${
|
|
107
|
-
|
|
106
|
+
`btn-${ge.toClassName(t.color)}`,
|
|
107
|
+
t.loading ? "is-loading" : ""
|
|
108
108
|
));
|
|
109
|
-
return
|
|
110
|
-
r
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
|
|
123
|
-
|
|
124
|
-
T(
|
|
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
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
|
153
|
+
const je = /* @__PURE__ */ N({
|
|
153
154
|
__name: "Card",
|
|
154
155
|
props: {
|
|
155
|
-
backgroundColor: { default:
|
|
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
|
|
163
|
+
const t = e, a = B(D(
|
|
163
164
|
"card",
|
|
164
|
-
`bg-${
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
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 (
|
|
170
|
-
class:
|
|
170
|
+
return (s, r) => (f(), m("div", {
|
|
171
|
+
class: C(a.value)
|
|
171
172
|
}, [
|
|
172
|
-
T(
|
|
173
|
+
T(s.$slots, "default")
|
|
173
174
|
], 2));
|
|
174
175
|
}
|
|
175
|
-
}),
|
|
176
|
-
|
|
177
|
-
|
|
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
|
|
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 (
|
|
194
|
-
default:
|
|
195
|
-
|
|
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
|
-
}),
|
|
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
|
|
208
|
-
|
|
203
|
+
const t = e, a = B([
|
|
204
|
+
t.container ? "container" : "",
|
|
209
205
|
//To disable the max width in some cases
|
|
210
|
-
|
|
206
|
+
t.padding ? "p-6" : ""
|
|
211
207
|
]);
|
|
212
|
-
return (
|
|
213
|
-
class:
|
|
208
|
+
return (s, r) => (f(), m("div", {
|
|
209
|
+
class: C(a.value)
|
|
214
210
|
}, [
|
|
215
|
-
T(
|
|
211
|
+
T(s.$slots, "default")
|
|
216
212
|
], 2));
|
|
217
213
|
}
|
|
218
214
|
});
|
|
219
|
-
var
|
|
220
|
-
function
|
|
221
|
-
return
|
|
222
|
-
e.__esModule = !0, e.default =
|
|
223
|
-
var
|
|
224
|
-
function
|
|
225
|
-
return
|
|
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
|
-
}(
|
|
223
|
+
}(H)), H;
|
|
228
224
|
}
|
|
229
|
-
var F = {},
|
|
230
|
-
function
|
|
231
|
-
if (
|
|
232
|
-
|
|
233
|
-
var e =
|
|
234
|
-
function
|
|
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
|
|
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
|
-
},
|
|
238
|
+
}, r = function(o, v) {
|
|
243
239
|
return (
|
|
244
240
|
/*: number*/
|
|
245
241
|
o[0] - v[0]
|
|
246
242
|
);
|
|
247
|
-
},
|
|
243
|
+
}, n = new Set(` []()-–—'"“”`.split(""));
|
|
248
244
|
function u(c) {
|
|
249
|
-
return
|
|
245
|
+
return n.has(c);
|
|
250
246
|
}
|
|
251
|
-
function
|
|
252
|
-
if (c ===
|
|
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 =
|
|
250
|
+
var i = k.length, b = o.length, w = l.length;
|
|
255
251
|
if (o === l)
|
|
256
|
-
return [0.1, [[0,
|
|
252
|
+
return [0.1, [[0, b - 1]]];
|
|
257
253
|
if (o.startsWith(l))
|
|
258
|
-
return [0.5, [[0,
|
|
259
|
-
var
|
|
260
|
-
if (
|
|
261
|
-
return [0.9, [[
|
|
262
|
-
var
|
|
263
|
-
if (
|
|
264
|
-
return [1, [[
|
|
265
|
-
var L =
|
|
266
|
-
if (L > 1 &&
|
|
267
|
-
return v.has(
|
|
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
|
|
270
|
-
return [
|
|
271
|
-
var
|
|
272
|
-
return [
|
|
273
|
-
}).sort(
|
|
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
|
|
271
|
+
return $ > -1 ? [2, [[$, $ + i - 1]]] : h === "aggressive" ? _(o, l) : h === "smart" ? S(o, l) : null;
|
|
276
272
|
}
|
|
277
|
-
function
|
|
278
|
-
for (var v = c.length,
|
|
279
|
-
if (c[
|
|
280
|
-
if (
|
|
281
|
-
return
|
|
282
|
-
|
|
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
|
|
287
|
-
for (var v = c.length,
|
|
288
|
-
var
|
|
289
|
-
if (
|
|
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 (
|
|
292
|
-
|
|
287
|
+
if (b === 0 || u(c[b - 1]))
|
|
288
|
+
h = b;
|
|
293
289
|
else {
|
|
294
|
-
var
|
|
295
|
-
if (c.slice(
|
|
296
|
-
|
|
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 =
|
|
303
|
-
l += 1,
|
|
304
|
-
if (i -= 1,
|
|
305
|
-
return
|
|
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
|
|
305
|
+
function p(c, o) {
|
|
310
306
|
var v = 2;
|
|
311
|
-
return c.forEach(function(
|
|
312
|
-
var l =
|
|
313
|
-
|
|
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
|
|
317
|
-
var v = (0, e.default)(o),
|
|
318
|
-
return
|
|
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:
|
|
321
|
-
matches: [
|
|
316
|
+
score: h[0],
|
|
317
|
+
matches: [h[1]]
|
|
322
318
|
} : null;
|
|
323
319
|
}
|
|
324
|
-
function
|
|
325
|
-
var v = o.strategy,
|
|
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(
|
|
324
|
+
i = l(h);
|
|
329
325
|
else {
|
|
330
|
-
var
|
|
331
|
-
i = [
|
|
326
|
+
var b = o.key ? h[o.key] : h;
|
|
327
|
+
i = [b];
|
|
332
328
|
}
|
|
333
|
-
var
|
|
334
|
-
var
|
|
335
|
-
return [
|
|
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 [
|
|
333
|
+
return [h, w];
|
|
338
334
|
});
|
|
339
|
-
return function(
|
|
340
|
-
var i = [],
|
|
341
|
-
return
|
|
342
|
-
for (var
|
|
343
|
-
var
|
|
344
|
-
|
|
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
|
-
|
|
347
|
-
item:
|
|
348
|
-
score:
|
|
349
|
-
matches:
|
|
342
|
+
z < a && i.push({
|
|
343
|
+
item: $,
|
|
344
|
+
score: z,
|
|
345
|
+
matches: E
|
|
350
346
|
});
|
|
351
|
-
}), i.sort(
|
|
347
|
+
}), i.sort(s), i) : [];
|
|
352
348
|
};
|
|
353
349
|
}
|
|
354
350
|
return F;
|
|
355
351
|
}
|
|
356
|
-
var
|
|
357
|
-
function
|
|
358
|
-
return
|
|
359
|
-
e.__esModule = !0, e.default =
|
|
360
|
-
var
|
|
361
|
-
e.normalizeText =
|
|
362
|
-
function
|
|
363
|
-
return
|
|
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
|
|
366
|
-
return u === void 0 && (u = {}),
|
|
361
|
+
function s(n, u) {
|
|
362
|
+
return u === void 0 && (u = {}), re().createFuzzySearchImpl(n, u);
|
|
367
363
|
}
|
|
368
|
-
function
|
|
369
|
-
return
|
|
364
|
+
function r(n, u) {
|
|
365
|
+
return re().fuzzyMatchImpl(n, u);
|
|
370
366
|
}
|
|
371
|
-
}(
|
|
367
|
+
}(K)), K;
|
|
372
368
|
}
|
|
373
|
-
var
|
|
374
|
-
const
|
|
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:
|
|
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
|
|
389
|
-
"table-zebra":
|
|
390
|
-
"table-pin-rows":
|
|
391
|
-
"table-pin-cols ":
|
|
392
|
-
})),
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
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
|
-
|
|
399
|
-
}
|
|
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:
|
|
413
|
+
class: C(n.value)
|
|
403
414
|
}, [
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
(
|
|
407
|
-
key:
|
|
408
|
-
},
|
|
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
|
-
|
|
412
|
-
|
|
413
|
-
|
|
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
|
-
(
|
|
416
|
-
key:
|
|
417
|
-
|
|
418
|
-
|
|
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
|
-
}),
|
|
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:
|
|
430
|
-
const
|
|
431
|
-
|
|
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
|
|
434
|
-
value:
|
|
457
|
+
return be("stepper", {
|
|
458
|
+
value: r,
|
|
435
459
|
updateValue: u
|
|
436
|
-
}),
|
|
437
|
-
|
|
438
|
-
}),
|
|
460
|
+
}), V(() => s.value, (d) => {
|
|
461
|
+
r.value = d;
|
|
462
|
+
}), t({
|
|
439
463
|
updateValue: u
|
|
440
|
-
}), (
|
|
464
|
+
}), (d, _) => T(d.$slots, "default", { updateValue: u });
|
|
441
465
|
}
|
|
442
|
-
}),
|
|
466
|
+
}), nt = /* @__PURE__ */ N({
|
|
443
467
|
__name: "Step",
|
|
444
468
|
props: {
|
|
445
469
|
value: {}
|
|
446
470
|
},
|
|
447
471
|
setup(e) {
|
|
448
|
-
const
|
|
449
|
-
return
|
|
450
|
-
|
|
451
|
-
}),
|
|
452
|
-
|
|
453
|
-
}), (
|
|
454
|
-
class:
|
|
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(
|
|
480
|
+
T(r.$slots, "default")
|
|
457
481
|
], 2));
|
|
458
482
|
}
|
|
459
|
-
}),
|
|
460
|
-
function
|
|
461
|
-
return
|
|
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
|
|
489
|
+
const rt = /* @__PURE__ */ Y(Re, [["render", Ve]]), De = { key: 0 }, at = /* @__PURE__ */ N({
|
|
466
490
|
__name: "StepPanels",
|
|
467
491
|
setup(e) {
|
|
468
|
-
const
|
|
469
|
-
return (
|
|
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:
|
|
474
|
-
var
|
|
497
|
+
default: oe(() => {
|
|
498
|
+
var r, n;
|
|
475
499
|
return [
|
|
476
|
-
(
|
|
477
|
-
T(
|
|
478
|
-
currentStep: (
|
|
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
|
-
])) :
|
|
504
|
+
])) : O("", !0)
|
|
481
505
|
];
|
|
482
506
|
}),
|
|
483
507
|
_: 3
|
|
484
508
|
}));
|
|
485
509
|
}
|
|
486
|
-
}),
|
|
510
|
+
}), qe = { key: 0 }, st = /* @__PURE__ */ N({
|
|
487
511
|
__name: "StepPanel",
|
|
488
512
|
props: {
|
|
489
513
|
value: {}
|
|
490
514
|
},
|
|
491
|
-
setup(e, { expose:
|
|
492
|
-
const
|
|
493
|
-
|
|
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
|
|
496
|
-
activateCallback:
|
|
497
|
-
}), (
|
|
498
|
-
T(
|
|
499
|
-
])) :
|
|
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
|
-
}),
|
|
525
|
+
}), Pe = { className: "modal-box" }, Ae = {
|
|
502
526
|
key: 0,
|
|
503
527
|
method: "dialog"
|
|
504
|
-
},
|
|
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:
|
|
512
|
-
const
|
|
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
|
|
539
|
+
return t({
|
|
516
540
|
showModal: () => {
|
|
517
|
-
var
|
|
518
|
-
(
|
|
541
|
+
var S;
|
|
542
|
+
(S = s.value) == null || S.showModal();
|
|
519
543
|
},
|
|
520
544
|
closeModal: () => {
|
|
521
|
-
var
|
|
522
|
-
(
|
|
545
|
+
var S;
|
|
546
|
+
(S = s.value) == null || S.close();
|
|
523
547
|
}
|
|
524
|
-
}), (
|
|
548
|
+
}), (S, p) => (f(), m("dialog", {
|
|
525
549
|
ref_key: "modal",
|
|
526
|
-
ref:
|
|
527
|
-
class:
|
|
550
|
+
ref: s,
|
|
551
|
+
class: C(u.value),
|
|
528
552
|
"aria-modal": "true",
|
|
529
553
|
"aria-hidden": "true",
|
|
530
554
|
role: "dialog",
|
|
531
|
-
onClose:
|
|
555
|
+
onClose: p[0] || (p[0] = (g) => r("close", g))
|
|
532
556
|
}, [
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
]))) :
|
|
537
|
-
T(
|
|
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
|
-
}),
|
|
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
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
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
|
|
549
|
-
document.addEventListener("keydown",
|
|
573
|
+
return Z(() => {
|
|
574
|
+
document.addEventListener("keydown", n);
|
|
550
575
|
}), _e(() => {
|
|
551
|
-
document.removeEventListener("keydown",
|
|
552
|
-
}), (
|
|
553
|
-
|
|
554
|
-
|
|
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
|
-
|
|
587
|
+
x("path", {
|
|
563
588
|
fill: "none",
|
|
564
589
|
d: "M0 0h24v24H0z"
|
|
565
590
|
}),
|
|
566
|
-
|
|
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
|
-
|
|
569
|
-
|
|
570
|
-
|
|
593
|
+
x("div", Ke, [
|
|
594
|
+
x("form", null, [
|
|
595
|
+
x("input", {
|
|
571
596
|
ref_key: "searchInput",
|
|
572
|
-
ref:
|
|
597
|
+
ref: s,
|
|
573
598
|
type: "search",
|
|
574
599
|
placeholder: "Zoeken...",
|
|
575
|
-
|
|
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,
|
|
603
|
+
}, null, 40, He)
|
|
578
604
|
])
|
|
579
605
|
]),
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
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
|
-
}),
|
|
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
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
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
|
};
|