@ghentcdh/ui 0.6.6 → 0.6.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/index.css +1 -1
- package/index.esm.js +884 -657
- package/index.js +5 -5
- package/index.mjs +884 -657
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
import { defineComponent as p, openBlock as
|
|
1
|
+
import { defineComponent as p, openBlock as l, createElementBlock as c, unref as f, normalizeClass as y, createElementVNode as a, toDisplayString as h, createBlock as v, createCommentVNode as x, Fragment as k, renderList as L, mergeProps as V, computed as $, resolveComponent as oe, withCtx as C, createTextVNode as S, ref as N, watch as te, onMounted as xe, renderSlot as D, resolveDynamicComponent as ae, createVNode as B, withDirectives as I, vModelCheckbox as fe, normalizeStyle as se, getCurrentInstance as we, toHandlerKey as be, camelize as ke, mergeDefaults as U, useModel as H, normalizeProps as W, guardReactiveProps as Z, vModelSelect as $e, mergeModels as P, resolveDirective as he, vModelText as ie, onBeforeUnmount as Ce, vModelDynamic as Be, useSlots as pe } from "vue";
|
|
2
2
|
import { RouterLink as _e } from "vue-router";
|
|
3
|
-
import { v4 as
|
|
4
|
-
import {
|
|
5
|
-
import { ChevronDownIcon as
|
|
6
|
-
import
|
|
7
|
-
import { useEditor as
|
|
8
|
-
import { Markdown as
|
|
9
|
-
const
|
|
3
|
+
import { v4 as le } from "uuid";
|
|
4
|
+
import { apiNoAuth as Le, useApi as Me } from "@ghentcdh/tools-vue";
|
|
5
|
+
import { ChevronDownIcon as Pe, ChevronRightIcon as Ve } from "@heroicons/vue/24/solid";
|
|
6
|
+
import De from "@tiptap/starter-kit";
|
|
7
|
+
import { useEditor as Ae, EditorContent as Te } from "@tiptap/vue-3";
|
|
8
|
+
import { Markdown as ze } from "tiptap-markdown";
|
|
9
|
+
const M = (...e) => `<svg
|
|
10
10
|
xmlns="http://www.w3.org/2000/svg"
|
|
11
11
|
fill="none"
|
|
12
12
|
viewBox="0 0 24 24"
|
|
13
13
|
stroke-width="1.5"
|
|
14
14
|
stroke="currentColor" >
|
|
15
15
|
${e.map(
|
|
16
|
-
(
|
|
16
|
+
(o) => ` <path
|
|
17
17
|
stroke-linejoin="round"
|
|
18
18
|
stroke-linecap="round"
|
|
19
|
-
d="${
|
|
19
|
+
d="${o}"
|
|
20
20
|
/>`
|
|
21
21
|
).join(`
|
|
22
22
|
`)}
|
|
23
23
|
</svg>`;
|
|
24
|
-
var
|
|
25
|
-
const
|
|
26
|
-
Edit:
|
|
24
|
+
var F = /* @__PURE__ */ ((e) => (e.Edit = "Edit", e.Delete = "Delete", e.BarsArrowDown = "BarsArrowDown", e.BarsArrowUp = "BarsArrowUp", e.Funnel = "Funnel", e.Close = "Close", e.Plus = "Plus", e.PaperClip = "PaperClip", e.Hamburger = "Hamburger", e.ChevronRight = "ChevronRight", e.ChevronLeft = "ChevronLeft", e.ChevronDown = "ChevronDown", e.ChevronUp = "ChevronUp", e.DblChevronLeft = "DblChevronLeft", e.DblChevronRight = "DblChevronRight", e.Check = "Check", e.View = "View", e.Text = "Text", e))(F || {});
|
|
25
|
+
const Fe = {
|
|
26
|
+
Edit: M(
|
|
27
27
|
"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"
|
|
28
28
|
),
|
|
29
|
-
Delete:
|
|
29
|
+
Delete: M(
|
|
30
30
|
"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"
|
|
31
31
|
),
|
|
32
|
-
BarsArrowDown:
|
|
32
|
+
BarsArrowDown: M(
|
|
33
33
|
"M3 4.5h14.25M3 9h9.75M3 13.5h9.75m4.5-4.5v12m0 0-3.75-3.75M17.25 21 21 17.25"
|
|
34
34
|
),
|
|
35
|
-
BarsArrowUp:
|
|
35
|
+
BarsArrowUp: M(
|
|
36
36
|
"M3 4.5h14.25M3 9h9.75M3 13.5h5.25m5.25-.75L17.25 9m0 0L21 12.75M17.25 9v12"
|
|
37
37
|
),
|
|
38
|
-
Funnel:
|
|
38
|
+
Funnel: M(
|
|
39
39
|
"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"
|
|
40
40
|
),
|
|
41
|
-
Close:
|
|
42
|
-
Plus:
|
|
43
|
-
PaperClip:
|
|
41
|
+
Close: M("M6 18 18 6M6 6l12 12"),
|
|
42
|
+
Plus: M("M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"),
|
|
43
|
+
PaperClip: M(
|
|
44
44
|
"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"
|
|
45
45
|
),
|
|
46
|
-
Hamburger:
|
|
47
|
-
ChevronDown:
|
|
46
|
+
Hamburger: M("M4 6h16M4 12h16M4 18h16"),
|
|
47
|
+
ChevronDown: M(
|
|
48
48
|
"M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z"
|
|
49
49
|
),
|
|
50
|
-
ChevronUp:
|
|
50
|
+
ChevronUp: M(
|
|
51
51
|
"M11.47 7.72a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06L12 9.31l-6.97 6.97a.75.75 0 0 1-1.06-1.06l7.5-7.5Z"
|
|
52
52
|
),
|
|
53
|
-
Check:
|
|
54
|
-
View:
|
|
53
|
+
Check: M("m4.5 12.75 6 6 9-13.5"),
|
|
54
|
+
View: M(
|
|
55
55
|
"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z",
|
|
56
56
|
"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
|
|
57
57
|
),
|
|
58
|
-
Text:
|
|
58
|
+
Text: M(
|
|
59
59
|
"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"
|
|
60
60
|
),
|
|
61
|
-
DblChevronLeft:
|
|
61
|
+
DblChevronLeft: M(
|
|
62
62
|
"m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"
|
|
63
63
|
),
|
|
64
|
-
DblChevronRight:
|
|
65
|
-
},
|
|
64
|
+
DblChevronRight: M("m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5")
|
|
65
|
+
}, Se = ["innerHTML"], j = /* @__PURE__ */ p({
|
|
66
66
|
__name: "icon",
|
|
67
67
|
props: {
|
|
68
68
|
icon: {},
|
|
69
69
|
size: {}
|
|
70
70
|
},
|
|
71
71
|
setup(e) {
|
|
72
|
-
return (t,
|
|
73
|
-
class:
|
|
72
|
+
return (t, o) => (l(), c("div", {
|
|
73
|
+
class: y([
|
|
74
74
|
{
|
|
75
75
|
"w-full h-full": !e.size,
|
|
76
76
|
"w-2 h-2": e.size === "xs",
|
|
77
77
|
"w-4 h-4": e.size === "sm"
|
|
78
78
|
}
|
|
79
79
|
]),
|
|
80
|
-
innerHTML:
|
|
81
|
-
}, null, 10,
|
|
80
|
+
innerHTML: f(Fe)[e.icon]
|
|
81
|
+
}, null, 10, Se));
|
|
82
82
|
}
|
|
83
|
-
}),
|
|
83
|
+
}), Ne = { class: "dropdown dropdown-end" }, Ke = {
|
|
84
84
|
tabindex: "0",
|
|
85
85
|
class: "menu dropdown-content bg-white z-1 mt-4 p-2 shadow-sm"
|
|
86
|
-
}, Re = { class: "min-w-max flex-no-wrap text-black" },
|
|
86
|
+
}, Re = { class: "min-w-max flex-no-wrap text-black" }, re = /* @__PURE__ */ p({
|
|
87
87
|
__name: "sub-menu",
|
|
88
88
|
props: {
|
|
89
89
|
label: {},
|
|
@@ -94,29 +94,29 @@ const ze = {
|
|
|
94
94
|
disableArrow: { type: Boolean }
|
|
95
95
|
},
|
|
96
96
|
setup(e) {
|
|
97
|
-
return (t,
|
|
97
|
+
return (t, o) => (l(), c("div", Ne, [
|
|
98
98
|
a("div", {
|
|
99
99
|
tabindex: "0",
|
|
100
100
|
role: "button",
|
|
101
|
-
class:
|
|
101
|
+
class: y([e.btnClass, "btn btn-ghost text-right flex-nowrap flex"])
|
|
102
102
|
}, [
|
|
103
|
-
a("span", null,
|
|
104
|
-
e.disableArrow ?
|
|
103
|
+
a("span", null, h(e.label), 1),
|
|
104
|
+
e.disableArrow ? x("", !0) : (l(), v(f(j), {
|
|
105
105
|
key: 0,
|
|
106
|
-
icon:
|
|
106
|
+
icon: f(F).ChevronDown,
|
|
107
107
|
size: "sm"
|
|
108
108
|
}, null, 8, ["icon"]))
|
|
109
109
|
], 2),
|
|
110
|
-
a("ul",
|
|
110
|
+
a("ul", Ke, [
|
|
111
111
|
a("li", Re, [
|
|
112
|
-
(
|
|
113
|
-
key:
|
|
114
|
-
}, { ref_for: !0 },
|
|
112
|
+
(l(!0), c(k, null, L(e.items, (s) => (l(), v(ve, V({
|
|
113
|
+
key: s.label
|
|
114
|
+
}, { ref_for: !0 }, s), null, 16))), 128))
|
|
115
115
|
])
|
|
116
116
|
])
|
|
117
117
|
]));
|
|
118
118
|
}
|
|
119
|
-
}),
|
|
119
|
+
}), ee = "btn btn-ghost text-left justify-between min-w-max font-normal", ve = /* @__PURE__ */ p({
|
|
120
120
|
__name: "menu-item",
|
|
121
121
|
props: {
|
|
122
122
|
label: {},
|
|
@@ -125,89 +125,89 @@ const ze = {
|
|
|
125
125
|
disabled: { type: Boolean, default: !1 }
|
|
126
126
|
},
|
|
127
127
|
setup(e) {
|
|
128
|
-
const t = e,
|
|
129
|
-
const
|
|
130
|
-
return
|
|
131
|
-
name:
|
|
132
|
-
params:
|
|
128
|
+
const t = e, o = $(() => !t.disabled && t.action && "routerLink" in t.action), s = $(() => !t.disabled && t.action), n = $(() => t.items?.length), u = $(() => {
|
|
129
|
+
const m = t.action;
|
|
130
|
+
return m && "routerLink" in m && "params" in m ? {
|
|
131
|
+
name: m.routerLink,
|
|
132
|
+
params: m.params
|
|
133
133
|
} : "";
|
|
134
|
-
}),
|
|
134
|
+
}), b = () => {
|
|
135
135
|
t.action?.();
|
|
136
136
|
};
|
|
137
|
-
return (
|
|
138
|
-
const d =
|
|
139
|
-
return
|
|
137
|
+
return (m, i) => {
|
|
138
|
+
const d = oe("RouterLink");
|
|
139
|
+
return n.value ? (l(), v(re, V({ key: 0 }, t, { "btn-class": ee }), null, 16)) : o.value ? (l(), v(d, {
|
|
140
140
|
key: 1,
|
|
141
|
-
to:
|
|
142
|
-
class:
|
|
143
|
-
onClick:
|
|
141
|
+
to: u.value,
|
|
142
|
+
class: y(ee),
|
|
143
|
+
onClick: b
|
|
144
144
|
}, {
|
|
145
|
-
default:
|
|
146
|
-
|
|
145
|
+
default: C(() => [
|
|
146
|
+
S(h(e.label), 1)
|
|
147
147
|
]),
|
|
148
148
|
_: 1
|
|
149
|
-
}, 8, ["to"])) :
|
|
149
|
+
}, 8, ["to"])) : s.value ? (l(), c("button", {
|
|
150
150
|
key: 2,
|
|
151
|
-
class:
|
|
152
|
-
onClick:
|
|
153
|
-
},
|
|
151
|
+
class: y(ee),
|
|
152
|
+
onClick: b
|
|
153
|
+
}, h(e.label), 1)) : (l(), c("div", {
|
|
154
154
|
key: 3,
|
|
155
|
-
class:
|
|
156
|
-
},
|
|
155
|
+
class: y([ee, { "btn-disabled": e.disabled }])
|
|
156
|
+
}, h(e.label), 3));
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
|
-
}),
|
|
159
|
+
}), Ie = { class: "navbar bg-base-100 shadow-sm" }, Ue = { class: "flex-1" }, qe = {
|
|
160
160
|
key: 0,
|
|
161
161
|
class: "breadcrumbs text-sm"
|
|
162
|
-
},
|
|
162
|
+
}, je = { class: "flex grow justify-end px-2" }, He = { class: "flex items-stretch" }, qo = /* @__PURE__ */ p({
|
|
163
163
|
__name: "menu",
|
|
164
164
|
props: {
|
|
165
165
|
menu: {},
|
|
166
166
|
breadcrumbs: {}
|
|
167
167
|
},
|
|
168
168
|
setup(e) {
|
|
169
|
-
return (t,
|
|
170
|
-
const
|
|
171
|
-
return
|
|
172
|
-
a("div",
|
|
173
|
-
e.breadcrumbs ? (
|
|
169
|
+
return (t, o) => {
|
|
170
|
+
const s = oe("RouterLink");
|
|
171
|
+
return l(), c("nav", Ie, [
|
|
172
|
+
a("div", Ue, [
|
|
173
|
+
e.breadcrumbs ? (l(), c("div", qe, [
|
|
174
174
|
a("ul", null, [
|
|
175
|
-
(
|
|
176
|
-
key:
|
|
175
|
+
(l(!0), c(k, null, L(e.breadcrumbs, (n) => (l(), c("li", {
|
|
176
|
+
key: n.label
|
|
177
177
|
}, [
|
|
178
|
-
|
|
178
|
+
n.routerLink ? (l(), v(s, {
|
|
179
179
|
key: 0,
|
|
180
|
-
to: { name:
|
|
180
|
+
to: { name: n.routerLink, params: n.params }
|
|
181
181
|
}, {
|
|
182
|
-
default:
|
|
183
|
-
|
|
182
|
+
default: C(() => [
|
|
183
|
+
S(h(n.label), 1)
|
|
184
184
|
]),
|
|
185
185
|
_: 2
|
|
186
|
-
}, 1032, ["to"])) : (
|
|
187
|
-
|
|
186
|
+
}, 1032, ["to"])) : (l(), c(k, { key: 1 }, [
|
|
187
|
+
S(h(n.label), 1)
|
|
188
188
|
], 64))
|
|
189
189
|
]))), 128))
|
|
190
190
|
])
|
|
191
|
-
])) :
|
|
191
|
+
])) : x("", !0)
|
|
192
192
|
]),
|
|
193
|
-
a("div",
|
|
193
|
+
a("div", je, [
|
|
194
194
|
a("div", He, [
|
|
195
|
-
(
|
|
196
|
-
key:
|
|
197
|
-
}, { ref_for: !0 },
|
|
195
|
+
(l(!0), c(k, null, L(e.menu, (n) => (l(), v(ve, V({
|
|
196
|
+
key: n.label
|
|
197
|
+
}, { ref_for: !0 }, n), null, 16))), 128))
|
|
198
198
|
])
|
|
199
199
|
])
|
|
200
200
|
]);
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
}),
|
|
203
|
+
}), jo = /* @__PURE__ */ p({
|
|
204
204
|
__name: "dropdown",
|
|
205
205
|
props: {
|
|
206
206
|
items: {}
|
|
207
207
|
},
|
|
208
208
|
setup(e) {
|
|
209
|
-
const t =
|
|
210
|
-
return (
|
|
209
|
+
const t = N(!0);
|
|
210
|
+
return (o, s) => (l(), v(re, {
|
|
211
211
|
items: e.items,
|
|
212
212
|
label: "test",
|
|
213
213
|
open: t.value,
|
|
@@ -215,7 +215,7 @@ const ze = {
|
|
|
215
215
|
"disable-arrow": !0
|
|
216
216
|
}, null, 8, ["items", "open"]));
|
|
217
217
|
}
|
|
218
|
-
}),
|
|
218
|
+
}), Oe = { class: "font-bold" }, Ee = { class: "pt-4" }, We = { class: "modal-action" }, Ze = /* @__PURE__ */ p({
|
|
219
219
|
__name: "modal",
|
|
220
220
|
props: {
|
|
221
221
|
modalTitle: {},
|
|
@@ -227,133 +227,133 @@ const ze = {
|
|
|
227
227
|
width: { default: "sm" }
|
|
228
228
|
},
|
|
229
229
|
emits: ["closeModal"],
|
|
230
|
-
setup(e, { expose: t, emit:
|
|
231
|
-
const
|
|
230
|
+
setup(e, { expose: t, emit: o }) {
|
|
231
|
+
const s = {
|
|
232
232
|
xs: "max-w-xs w-[50VW]",
|
|
233
233
|
sm: "max-w-sm w-[50VW]",
|
|
234
234
|
lg: "max-w-2xl w-[80VW]",
|
|
235
235
|
xl: "max-w-[80VW] w-[80VW]"
|
|
236
|
-
},
|
|
237
|
-
document.getElementById(
|
|
238
|
-
},
|
|
239
|
-
document.getElementById(
|
|
236
|
+
}, n = e, u = `modal_${le()}`, b = o, m = () => {
|
|
237
|
+
document.getElementById(u)?.showModal();
|
|
238
|
+
}, i = () => {
|
|
239
|
+
document.getElementById(u)?.close(), b("closeModal");
|
|
240
240
|
};
|
|
241
|
-
return t({ closeModal:
|
|
242
|
-
() =>
|
|
243
|
-
(d, r,
|
|
244
|
-
|
|
241
|
+
return t({ closeModal: i, openModal: m }), te(
|
|
242
|
+
() => n.open,
|
|
243
|
+
(d, r, A) => {
|
|
244
|
+
n.open ? m() : i();
|
|
245
245
|
}
|
|
246
|
-
),
|
|
247
|
-
|
|
248
|
-
}), (d, r) => (
|
|
249
|
-
id:
|
|
246
|
+
), xe(() => {
|
|
247
|
+
n.open && m();
|
|
248
|
+
}), (d, r) => (l(), c("dialog", {
|
|
249
|
+
id: u,
|
|
250
250
|
class: "modal"
|
|
251
251
|
}, [
|
|
252
252
|
a("div", {
|
|
253
|
-
class:
|
|
253
|
+
class: y(["modal-box bg-white", s[e.width]])
|
|
254
254
|
}, [
|
|
255
|
-
e.disableClose ?
|
|
255
|
+
e.disableClose ? x("", !0) : (l(), c("button", {
|
|
256
256
|
key: 0,
|
|
257
257
|
type: "button",
|
|
258
258
|
class: "btn btn-sm btn-circle btn-ghost absolute right-2 top-2",
|
|
259
|
-
onClick:
|
|
259
|
+
onClick: i
|
|
260
260
|
}, " ✕ ")),
|
|
261
|
-
a("h3",
|
|
262
|
-
a("div",
|
|
263
|
-
|
|
261
|
+
a("h3", Oe, h(e.modalTitle), 1),
|
|
262
|
+
a("div", Ee, [
|
|
263
|
+
D(d.$slots, "content")
|
|
264
264
|
]),
|
|
265
|
-
a("div",
|
|
266
|
-
|
|
265
|
+
a("div", We, [
|
|
266
|
+
D(d.$slots, "actions")
|
|
267
267
|
])
|
|
268
268
|
], 2)
|
|
269
269
|
]));
|
|
270
270
|
}
|
|
271
271
|
});
|
|
272
|
-
var
|
|
273
|
-
const
|
|
272
|
+
var ce = /* @__PURE__ */ ((e) => (e.button = "button", e.submit = "submit", e.reset = "reset", e))(ce || {}), ge = /* @__PURE__ */ ((e) => (e.a = "a", e.button = "button", e))(ge || {}), G = /* @__PURE__ */ ((e) => (e.blank = "blank", e.primary = "primary", e.secondary = "secondary", e.error = "error", e))(G || {});
|
|
273
|
+
const Ge = {
|
|
274
274
|
blank: "btn-ghost",
|
|
275
275
|
primary: "btn-primary",
|
|
276
276
|
secondary: "btn-soft btn-primary",
|
|
277
277
|
error: "btn-error text-white"
|
|
278
|
-
},
|
|
278
|
+
}, Je = {
|
|
279
279
|
blank: "badge-ghost",
|
|
280
280
|
primary: "badge-primary",
|
|
281
281
|
secondary: "badge-soft badge-primary",
|
|
282
282
|
error: "badge-error"
|
|
283
|
-
},
|
|
283
|
+
}, Qe = {
|
|
284
284
|
xs: "btn-xs",
|
|
285
285
|
sm: "btn-sm",
|
|
286
286
|
lg: "btn-sm",
|
|
287
287
|
xl: "btn"
|
|
288
|
-
},
|
|
288
|
+
}, Xe = {
|
|
289
289
|
xs: "badge-xs text-xxs",
|
|
290
290
|
sm: "badge-sm text-xs",
|
|
291
291
|
lg: "badge-sm text-xs",
|
|
292
292
|
xl: "badge text-xs"
|
|
293
|
-
},
|
|
293
|
+
}, J = /* @__PURE__ */ p({
|
|
294
294
|
__name: "btn",
|
|
295
295
|
props: {
|
|
296
296
|
href: {},
|
|
297
297
|
disabled: { type: Boolean, default: !1 },
|
|
298
|
-
as: { default:
|
|
298
|
+
as: { default: ge.button },
|
|
299
299
|
icon: {},
|
|
300
|
-
type: { default:
|
|
300
|
+
type: { default: ce.button },
|
|
301
301
|
outline: { type: Boolean, default: !1 },
|
|
302
|
-
color: { default:
|
|
302
|
+
color: { default: G.primary },
|
|
303
303
|
size: { default: "sm" },
|
|
304
304
|
square: { type: Boolean, default: !1 }
|
|
305
305
|
},
|
|
306
306
|
emits: ["click"],
|
|
307
307
|
setup(e, { emit: t }) {
|
|
308
|
-
const
|
|
309
|
-
return (
|
|
308
|
+
const o = e, s = t;
|
|
309
|
+
return (n, u) => (l(), v(ae(e.as), V({
|
|
310
310
|
class: [
|
|
311
311
|
"btn p-1 flex justify-center flex-nowrap",
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
f(Ge)[e.color],
|
|
313
|
+
f(Qe)[e.size],
|
|
314
314
|
{ "btn-outline": e.outline, "btn-square": e.square }
|
|
315
315
|
]
|
|
316
|
-
},
|
|
317
|
-
onClick:
|
|
316
|
+
}, o, {
|
|
317
|
+
onClick: u[0] || (u[0] = (b) => s("click"))
|
|
318
318
|
}), {
|
|
319
|
-
default:
|
|
320
|
-
e.icon ? (
|
|
319
|
+
default: C(() => [
|
|
320
|
+
e.icon ? (l(), v(f(j), {
|
|
321
321
|
key: 0,
|
|
322
322
|
icon: e.icon,
|
|
323
323
|
size: e.size
|
|
324
|
-
}, null, 8, ["icon", "size"])) :
|
|
325
|
-
|
|
324
|
+
}, null, 8, ["icon", "size"])) : x("", !0),
|
|
325
|
+
D(n.$slots, "default")
|
|
326
326
|
]),
|
|
327
327
|
_: 3
|
|
328
328
|
}, 16, ["class"]));
|
|
329
329
|
}
|
|
330
|
-
}),
|
|
330
|
+
}), Ye = ["type", "disabled"], Ho = /* @__PURE__ */ p({
|
|
331
331
|
__name: "btn-badge",
|
|
332
332
|
props: {
|
|
333
333
|
icon: { default: void 0 },
|
|
334
|
-
type: { default:
|
|
334
|
+
type: { default: ce.button },
|
|
335
335
|
color: { default: void 0 },
|
|
336
336
|
disabled: { type: Boolean, default: !1 },
|
|
337
337
|
size: { default: "sm" }
|
|
338
338
|
},
|
|
339
339
|
emits: ["click"],
|
|
340
340
|
setup(e, { emit: t }) {
|
|
341
|
-
const
|
|
342
|
-
return (
|
|
343
|
-
class:
|
|
341
|
+
const o = t;
|
|
342
|
+
return (s, n) => (l(), c("button", {
|
|
343
|
+
class: y(["badge gap-1", f(Xe)[e.size], f(Je)[e.color]]),
|
|
344
344
|
type: e.type,
|
|
345
345
|
disabled: e.disabled,
|
|
346
|
-
onClick:
|
|
346
|
+
onClick: n[0] || (n[0] = (u) => o("click"))
|
|
347
347
|
}, [
|
|
348
|
-
|
|
349
|
-
e.icon ? (
|
|
348
|
+
D(s.$slots, "default"),
|
|
349
|
+
e.icon ? (l(), v(f(j), {
|
|
350
350
|
key: 0,
|
|
351
351
|
icon: e.icon,
|
|
352
352
|
size: e.size
|
|
353
|
-
}, null, 8, ["icon", "size"])) :
|
|
354
|
-
], 10,
|
|
353
|
+
}, null, 8, ["icon", "size"])) : x("", !0)
|
|
354
|
+
], 10, Ye));
|
|
355
355
|
}
|
|
356
|
-
}),
|
|
356
|
+
}), et = /* @__PURE__ */ p({
|
|
357
357
|
__name: "confirmModal",
|
|
358
358
|
props: {
|
|
359
359
|
title: {},
|
|
@@ -363,33 +363,33 @@ const We = {
|
|
|
363
363
|
},
|
|
364
364
|
emits: ["closeModal"],
|
|
365
365
|
setup(e, { emit: t }) {
|
|
366
|
-
const
|
|
367
|
-
|
|
366
|
+
const o = t, s = (n) => {
|
|
367
|
+
o("closeModal", { confirmed: n });
|
|
368
368
|
};
|
|
369
|
-
return (
|
|
369
|
+
return (n, u) => (l(), v(Ze, {
|
|
370
370
|
"modal-title": e.title,
|
|
371
371
|
open: !0,
|
|
372
372
|
"disable-close": !0
|
|
373
373
|
}, {
|
|
374
|
-
content:
|
|
375
|
-
|
|
374
|
+
content: C(() => [
|
|
375
|
+
S(h(e.message), 1)
|
|
376
376
|
]),
|
|
377
|
-
actions:
|
|
378
|
-
|
|
379
|
-
color:
|
|
377
|
+
actions: C(() => [
|
|
378
|
+
B(f(J), {
|
|
379
|
+
color: f(G).secondary,
|
|
380
380
|
outline: !0,
|
|
381
|
-
onClick:
|
|
381
|
+
onClick: u[0] || (u[0] = (b) => s(!1))
|
|
382
382
|
}, {
|
|
383
|
-
default:
|
|
384
|
-
|
|
383
|
+
default: C(() => [
|
|
384
|
+
S(h(e.cancelLabel), 1)
|
|
385
385
|
]),
|
|
386
386
|
_: 1
|
|
387
387
|
}, 8, ["color"]),
|
|
388
|
-
|
|
389
|
-
onClick:
|
|
388
|
+
B(f(J), {
|
|
389
|
+
onClick: u[1] || (u[1] = (b) => s(!0))
|
|
390
390
|
}, {
|
|
391
|
-
default:
|
|
392
|
-
|
|
391
|
+
default: C(() => [
|
|
392
|
+
S(h(e.confirmLabel), 1)
|
|
393
393
|
]),
|
|
394
394
|
_: 1
|
|
395
395
|
})
|
|
@@ -398,22 +398,22 @@ const We = {
|
|
|
398
398
|
}, 8, ["modal-title"]));
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
|
-
class
|
|
401
|
+
class ue {
|
|
402
402
|
constructor() {
|
|
403
|
-
this.showModal =
|
|
403
|
+
this.showModal = N(!1), this.modals = [];
|
|
404
404
|
}
|
|
405
405
|
openModal(t) {
|
|
406
|
-
const
|
|
407
|
-
t.props.onClose = (
|
|
408
|
-
|
|
409
|
-
},
|
|
406
|
+
const o = t.props.onClose, s = le(), n = t;
|
|
407
|
+
t.props.onClose = (u) => {
|
|
408
|
+
o(u), this.closeModal(s);
|
|
409
|
+
}, n.id = s, this.modals = [...this.modals, n], this.showModal.value = Date.now();
|
|
410
410
|
}
|
|
411
411
|
closeModal(t) {
|
|
412
|
-
this.modals = this.modals.filter((
|
|
412
|
+
this.modals = this.modals.filter((o) => o.id !== t), this.showModal.value = Date.now();
|
|
413
413
|
}
|
|
414
414
|
static showConfirm(t) {
|
|
415
415
|
this.getInstance().openModal({
|
|
416
|
-
component:
|
|
416
|
+
component: et,
|
|
417
417
|
props: t
|
|
418
418
|
});
|
|
419
419
|
}
|
|
@@ -421,7 +421,7 @@ class ce {
|
|
|
421
421
|
this.getInstance().openModal(t);
|
|
422
422
|
}
|
|
423
423
|
static getInstance() {
|
|
424
|
-
return this.instance || (this.instance = new
|
|
424
|
+
return this.instance || (this.instance = new ue()), this.instance;
|
|
425
425
|
}
|
|
426
426
|
static closeAll() {
|
|
427
427
|
this.instance.closeAll();
|
|
@@ -430,19 +430,19 @@ class ce {
|
|
|
430
430
|
this.modals = [], this.showModal.value = !1;
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
const
|
|
433
|
+
const tt = /* @__PURE__ */ p({
|
|
434
434
|
__name: "modalWrapper",
|
|
435
435
|
setup(e) {
|
|
436
|
-
const t =
|
|
437
|
-
return (
|
|
438
|
-
key:
|
|
436
|
+
const t = ue.getInstance(), o = $(() => t.showModal.value ? t.modals : []);
|
|
437
|
+
return (s, n) => (l(!0), c(k, null, L(o.value, (u) => (l(), v(ae(u?.component), V({
|
|
438
|
+
key: u.id,
|
|
439
439
|
ref_for: !0
|
|
440
|
-
},
|
|
440
|
+
}, u?.props, {
|
|
441
441
|
open: !0,
|
|
442
|
-
onCloseModal:
|
|
442
|
+
onCloseModal: u?.props?.onClose
|
|
443
443
|
}), null, 16, ["onCloseModal"]))), 128));
|
|
444
444
|
}
|
|
445
|
-
}),
|
|
445
|
+
}), ot = /* @__PURE__ */ p({
|
|
446
446
|
__name: "notification-message",
|
|
447
447
|
props: {
|
|
448
448
|
message: {},
|
|
@@ -455,34 +455,34 @@ const Ye = /* @__PURE__ */ p({
|
|
|
455
455
|
warning: "alert-warning",
|
|
456
456
|
info: "alert-info"
|
|
457
457
|
};
|
|
458
|
-
return (
|
|
458
|
+
return (o, s) => (l(), c("div", {
|
|
459
459
|
role: "alert",
|
|
460
|
-
class:
|
|
460
|
+
class: y(`alert ${t[e.type]} `)
|
|
461
461
|
}, [
|
|
462
|
-
a("span", null,
|
|
462
|
+
a("span", null, h(e.message), 1)
|
|
463
463
|
], 2));
|
|
464
464
|
}
|
|
465
|
-
}),
|
|
466
|
-
class
|
|
465
|
+
}), lt = 5e3;
|
|
466
|
+
class de {
|
|
467
467
|
constructor() {
|
|
468
|
-
this.notifications =
|
|
469
|
-
const
|
|
470
|
-
id:
|
|
471
|
-
duration:
|
|
468
|
+
this.notifications = N([]), this.addNotification = (t, o = "info") => {
|
|
469
|
+
const s = {
|
|
470
|
+
id: le(),
|
|
471
|
+
duration: lt,
|
|
472
472
|
message: t,
|
|
473
|
-
type:
|
|
473
|
+
type: o
|
|
474
474
|
};
|
|
475
|
-
this.notifications.value.push(
|
|
475
|
+
this.notifications.value.push(s), this.removeNotificationAfterDuration(s);
|
|
476
476
|
}, this.removeNotificationAfterDuration = (t) => {
|
|
477
477
|
setTimeout(() => {
|
|
478
478
|
this.removeNotification(t.id);
|
|
479
479
|
}, t.duration);
|
|
480
480
|
}, this.removeNotification = (t) => {
|
|
481
|
-
this.notifications.value = this.notifications.value.filter((
|
|
481
|
+
this.notifications.value = this.notifications.value.filter((o) => o.id !== t);
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
484
|
static getInstance() {
|
|
485
|
-
return this.instance || (this.instance = new
|
|
485
|
+
return this.instance || (this.instance = new de()), this.instance;
|
|
486
486
|
}
|
|
487
487
|
static info(t) {
|
|
488
488
|
this.getInstance().addNotification(t, "info");
|
|
@@ -500,17 +500,17 @@ class ue {
|
|
|
500
500
|
this.getInstance().removeNotification(t);
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
const nt = { class: "toast toast-top toast-center z-[999]" },
|
|
503
|
+
const nt = { class: "toast toast-top toast-center z-[999]" }, st = /* @__PURE__ */ p({
|
|
504
504
|
__name: "notifications",
|
|
505
505
|
setup(e) {
|
|
506
|
-
const t =
|
|
507
|
-
return (
|
|
508
|
-
(
|
|
509
|
-
key:
|
|
510
|
-
}, { ref_for: !0 },
|
|
506
|
+
const t = de.getInstance();
|
|
507
|
+
return (o, s) => (l(), c("div", nt, [
|
|
508
|
+
(l(!0), c(k, null, L(f(t).notifications.value, (n) => (l(), v(ot, V({
|
|
509
|
+
key: n.id
|
|
510
|
+
}, { ref_for: !0 }, n), null, 16))), 128))
|
|
511
511
|
]));
|
|
512
512
|
}
|
|
513
|
-
}),
|
|
513
|
+
}), at = { class: "flex h-screen flex-col" }, it = { class: "shrink-0" }, rt = { class: "navbar bg-primary text-primary-content w-full z-100" }, ct = { class: "navbar-start" }, ut = { class: "navbar-center" }, dt = ["href"], mt = { class: "navbar-end" }, bt = { class: "drawer-content overflow-y-auto mb-2 mr-2 shadow-md" }, ft = { class: "drawer-side h-full shadow-md" }, ht = { class: "flex-grow overflow-y-auto" }, pt = { class: "bg-base-200 p-4" }, Oo = /* @__PURE__ */ p({
|
|
514
514
|
__name: "shell.component",
|
|
515
515
|
props: {
|
|
516
516
|
title: {},
|
|
@@ -521,62 +521,62 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
521
521
|
},
|
|
522
522
|
emits: ["logout"],
|
|
523
523
|
setup(e, { emit: t }) {
|
|
524
|
-
const
|
|
525
|
-
|
|
526
|
-
},
|
|
527
|
-
label:
|
|
524
|
+
const s = e, n = N(!1), u = () => {
|
|
525
|
+
n.value = !n.value;
|
|
526
|
+
}, b = t, m = $(() => s.user ? {
|
|
527
|
+
label: s.user.name,
|
|
528
528
|
items: [
|
|
529
529
|
{
|
|
530
530
|
label: "Logout",
|
|
531
531
|
action: () => {
|
|
532
|
-
|
|
532
|
+
b("logout");
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
]
|
|
536
536
|
} : null);
|
|
537
|
-
return (
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
a("div",
|
|
541
|
-
a("header",
|
|
542
|
-
a("nav",
|
|
543
|
-
a("div",
|
|
537
|
+
return (i, d) => (l(), c(k, null, [
|
|
538
|
+
B(st),
|
|
539
|
+
B(f(tt)),
|
|
540
|
+
a("div", at, [
|
|
541
|
+
a("header", it, [
|
|
542
|
+
a("nav", rt, [
|
|
543
|
+
a("div", ct, [
|
|
544
544
|
a("button", {
|
|
545
545
|
"aria-label": "open sidebar",
|
|
546
546
|
class: "btn btn-square btn-ghost p-1",
|
|
547
|
-
onClick:
|
|
547
|
+
onClick: u
|
|
548
548
|
}, [
|
|
549
|
-
|
|
550
|
-
icon:
|
|
549
|
+
B(f(j), {
|
|
550
|
+
icon: f(F).Hamburger
|
|
551
551
|
}, null, 8, ["icon"])
|
|
552
552
|
])
|
|
553
553
|
]),
|
|
554
|
-
a("div",
|
|
554
|
+
a("div", ut, [
|
|
555
555
|
a("a", {
|
|
556
556
|
class: "btn btn-ghost text-primary-content text-lg color-white",
|
|
557
|
-
href:
|
|
558
|
-
},
|
|
557
|
+
href: f("/")
|
|
558
|
+
}, h(e.title), 9, dt)
|
|
559
559
|
]),
|
|
560
|
-
a("div",
|
|
561
|
-
|
|
560
|
+
a("div", mt, [
|
|
561
|
+
m.value ? (l(), v(f(re), V({ key: 0 }, m.value, { "btn-class": "" }), null, 16)) : x("", !0)
|
|
562
562
|
])
|
|
563
563
|
])
|
|
564
564
|
]),
|
|
565
565
|
a("div", {
|
|
566
|
-
class:
|
|
566
|
+
class: y(["drawer flex-1 overflow-hidden", { "drawer-open": n.value }])
|
|
567
567
|
}, [
|
|
568
|
-
|
|
568
|
+
I(a("input", {
|
|
569
569
|
id: "app-drawer",
|
|
570
|
-
"onUpdate:modelValue": d[0] || (d[0] = (r) =>
|
|
570
|
+
"onUpdate:modelValue": d[0] || (d[0] = (r) => n.value = r),
|
|
571
571
|
type: "checkbox",
|
|
572
572
|
class: "drawer-toggle"
|
|
573
573
|
}, null, 512), [
|
|
574
|
-
[
|
|
574
|
+
[fe, n.value]
|
|
575
575
|
]),
|
|
576
|
-
a("main",
|
|
577
|
-
|
|
576
|
+
a("main", bt, [
|
|
577
|
+
D(i.$slots, "default")
|
|
578
578
|
]),
|
|
579
|
-
a("div",
|
|
579
|
+
a("div", ft, [
|
|
580
580
|
d[1] || (d[1] = a("label", {
|
|
581
581
|
for: "app-drawer",
|
|
582
582
|
"aria-label": "close sidebar",
|
|
@@ -584,30 +584,30 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
584
584
|
}, null, -1)),
|
|
585
585
|
a("div", {
|
|
586
586
|
class: "menu bg-base-100 h-full flex flex-col justify-between",
|
|
587
|
-
style:
|
|
587
|
+
style: se({ width: e.widthSidebar + "px" })
|
|
588
588
|
}, [
|
|
589
|
-
a("ul",
|
|
590
|
-
(
|
|
589
|
+
a("ul", ht, [
|
|
590
|
+
(l(!0), c(k, null, L(e.menu, (r) => (l(), c("li", {
|
|
591
591
|
key: r.label
|
|
592
592
|
}, [
|
|
593
|
-
|
|
593
|
+
B(f(_e), {
|
|
594
594
|
to: { name: r.routerLink, params: r.params }
|
|
595
595
|
}, {
|
|
596
|
-
default:
|
|
597
|
-
|
|
596
|
+
default: C(() => [
|
|
597
|
+
S(h(r.label), 1)
|
|
598
598
|
]),
|
|
599
599
|
_: 2
|
|
600
600
|
}, 1032, ["to"])
|
|
601
601
|
]))), 128))
|
|
602
602
|
]),
|
|
603
|
-
a("div",
|
|
603
|
+
a("div", pt, " version: " + h(e.version), 1)
|
|
604
604
|
], 4)
|
|
605
605
|
])
|
|
606
606
|
], 2)
|
|
607
607
|
])
|
|
608
608
|
], 64));
|
|
609
609
|
}
|
|
610
|
-
}),
|
|
610
|
+
}), Q = /* @__PURE__ */ p({
|
|
611
611
|
__name: "pagination-button.component",
|
|
612
612
|
props: {
|
|
613
613
|
currentPage: {},
|
|
@@ -618,25 +618,25 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
618
618
|
},
|
|
619
619
|
emits: ["updatePage", "updatePageSize"],
|
|
620
620
|
setup(e, { emit: t }) {
|
|
621
|
-
const
|
|
622
|
-
() =>
|
|
623
|
-
),
|
|
624
|
-
|
|
621
|
+
const o = e, s = t, n = $(
|
|
622
|
+
() => o.neverActive ? !1 : o.page === o.currentPage
|
|
623
|
+
), u = $(() => o.neverActive ? G.blank : n.value ? G.primary : G.secondary), b = () => {
|
|
624
|
+
s("updatePage", o.page);
|
|
625
625
|
};
|
|
626
|
-
return (
|
|
626
|
+
return (m, i) => (l(), v(f(J), {
|
|
627
627
|
disabled: e.disabled,
|
|
628
628
|
square: !0,
|
|
629
629
|
size: "xs",
|
|
630
|
-
color:
|
|
631
|
-
onClick:
|
|
630
|
+
color: u.value,
|
|
631
|
+
onClick: i[0] || (i[0] = (d) => b())
|
|
632
632
|
}, {
|
|
633
|
-
default:
|
|
634
|
-
|
|
633
|
+
default: C(() => [
|
|
634
|
+
S(h(e.label), 1)
|
|
635
635
|
]),
|
|
636
636
|
_: 1
|
|
637
637
|
}, 8, ["disabled", "color"]));
|
|
638
638
|
}
|
|
639
|
-
}),
|
|
639
|
+
}), vt = { class: "flex gap-2" }, gt = { class: "flex flex-1 justify-center items-center" }, yt = { class: "flex gap-1" }, xt = { class: "text-sm" }, X = 6, wt = /* @__PURE__ */ p({
|
|
640
640
|
__name: "pagination.component",
|
|
641
641
|
props: {
|
|
642
642
|
totalItems: { type: Number, default: 0 },
|
|
@@ -645,48 +645,48 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
645
645
|
},
|
|
646
646
|
emits: ["updatePage", "updatePageSize"],
|
|
647
647
|
setup(e, { emit: t }) {
|
|
648
|
-
const
|
|
649
|
-
let r = Math.ceil(
|
|
648
|
+
const o = e, s = t, n = $(() => {
|
|
649
|
+
let r = Math.ceil(o.totalItems / o.itemsPerPage);
|
|
650
650
|
return r < 1 ? 1 : r;
|
|
651
|
-
}),
|
|
652
|
-
if (
|
|
651
|
+
}), u = X / 2, b = $(() => {
|
|
652
|
+
if (n.value <= X)
|
|
653
653
|
return {
|
|
654
654
|
min: 1,
|
|
655
|
-
max:
|
|
655
|
+
max: n.value
|
|
656
656
|
};
|
|
657
|
-
let r =
|
|
658
|
-
r <= 1 ? r = 1 : r +
|
|
659
|
-
let
|
|
657
|
+
let r = o.currentPage - u;
|
|
658
|
+
r <= 1 ? r = 1 : r + X > n.value && (r = n.value - X);
|
|
659
|
+
let A = r + X;
|
|
660
660
|
return {
|
|
661
661
|
min: r,
|
|
662
|
-
max:
|
|
662
|
+
max: A
|
|
663
663
|
};
|
|
664
|
-
}),
|
|
664
|
+
}), m = (r) => ({
|
|
665
665
|
label: "...",
|
|
666
666
|
currentPage: r,
|
|
667
667
|
page: -10,
|
|
668
668
|
disabled: !0,
|
|
669
669
|
neverActive: !0
|
|
670
|
-
}),
|
|
671
|
-
let r =
|
|
670
|
+
}), i = $(() => {
|
|
671
|
+
let r = n.value;
|
|
672
672
|
r < 1 && (r = 1);
|
|
673
|
-
const
|
|
674
|
-
return Array.from({ length: r }, (
|
|
675
|
-
const
|
|
676
|
-
|
|
677
|
-
label: `${
|
|
673
|
+
const A = o.currentPage, T = [], { min: R, max: E } = b.value;
|
|
674
|
+
return Array.from({ length: r }, (_, g) => {
|
|
675
|
+
const w = g + 1;
|
|
676
|
+
w !== 1 && w !== r && (w > E || w < R) || (w === r && r > 1 && E < r && T.push(m(A)), T.push({
|
|
677
|
+
label: `${w}`,
|
|
678
678
|
totalPages: r,
|
|
679
|
-
currentPage:
|
|
680
|
-
page:
|
|
681
|
-
}),
|
|
682
|
-
}),
|
|
679
|
+
currentPage: A,
|
|
680
|
+
page: w
|
|
681
|
+
}), w === 1 && r > 1 && R > 1 && T.push(m(A)));
|
|
682
|
+
}), T;
|
|
683
683
|
}), d = (r) => {
|
|
684
|
-
|
|
684
|
+
s("updatePage", r);
|
|
685
685
|
};
|
|
686
|
-
return (r,
|
|
687
|
-
a("div",
|
|
688
|
-
a("div",
|
|
689
|
-
|
|
686
|
+
return (r, A) => (l(), c("div", vt, [
|
|
687
|
+
a("div", gt, [
|
|
688
|
+
a("div", yt, [
|
|
689
|
+
B(Q, V(o, {
|
|
690
690
|
page: 1,
|
|
691
691
|
label: "<<",
|
|
692
692
|
"current-page": e.currentPage,
|
|
@@ -694,7 +694,7 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
694
694
|
disabled: e.currentPage === 1,
|
|
695
695
|
onUpdatePage: d
|
|
696
696
|
}), null, 16, ["current-page", "disabled"]),
|
|
697
|
-
|
|
697
|
+
B(Q, V(o, {
|
|
698
698
|
page: e.currentPage - 1,
|
|
699
699
|
label: "<",
|
|
700
700
|
"current-page": e.currentPage,
|
|
@@ -702,37 +702,37 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
702
702
|
disabled: e.currentPage === 1,
|
|
703
703
|
onUpdatePage: d
|
|
704
704
|
}), null, 16, ["page", "current-page", "disabled"]),
|
|
705
|
-
(
|
|
706
|
-
key:
|
|
705
|
+
(l(!0), c(k, null, L(i.value, (T) => (l(), v(Q, V({
|
|
706
|
+
key: T.page,
|
|
707
707
|
ref_for: !0
|
|
708
|
-
},
|
|
709
|
-
|
|
708
|
+
}, T, { onUpdatePage: d }), null, 16))), 128)),
|
|
709
|
+
B(Q, V(o, {
|
|
710
710
|
page: e.currentPage + 1,
|
|
711
711
|
label: ">",
|
|
712
712
|
"current-page": e.currentPage,
|
|
713
713
|
"never-active": !0,
|
|
714
|
-
disabled:
|
|
714
|
+
disabled: o.currentPage === n.value,
|
|
715
715
|
onUpdatePage: d
|
|
716
716
|
}), null, 16, ["page", "current-page", "disabled"]),
|
|
717
|
-
|
|
718
|
-
page:
|
|
717
|
+
B(Q, V(o, {
|
|
718
|
+
page: n.value,
|
|
719
719
|
label: ">>",
|
|
720
720
|
"current-page": e.currentPage,
|
|
721
721
|
"never-active": !0,
|
|
722
|
-
disabled:
|
|
722
|
+
disabled: o.currentPage === n.value,
|
|
723
723
|
onUpdatePage: d
|
|
724
724
|
}), null, 16, ["page", "current-page", "disabled"])
|
|
725
725
|
])
|
|
726
726
|
]),
|
|
727
|
-
a("div",
|
|
727
|
+
a("div", xt, " page " + h(e.currentPage) + " of " + h(n.value), 1)
|
|
728
728
|
]));
|
|
729
729
|
}
|
|
730
|
-
}),
|
|
731
|
-
const
|
|
732
|
-
for (const [
|
|
733
|
-
|
|
734
|
-
return
|
|
735
|
-
},
|
|
730
|
+
}), me = (e, t) => {
|
|
731
|
+
const o = e.__vccOpts || e;
|
|
732
|
+
for (const [s, n] of t)
|
|
733
|
+
o[s] = n;
|
|
734
|
+
return o;
|
|
735
|
+
}, kt = () => ({
|
|
736
736
|
data: {
|
|
737
737
|
type: Object,
|
|
738
738
|
required: !0
|
|
@@ -745,10 +745,10 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
745
745
|
type: Object,
|
|
746
746
|
required: !1
|
|
747
747
|
}
|
|
748
|
-
}),
|
|
748
|
+
}), $t = p({
|
|
749
749
|
name: "TextCell",
|
|
750
750
|
props: {
|
|
751
|
-
...
|
|
751
|
+
...kt()
|
|
752
752
|
},
|
|
753
753
|
computed: {
|
|
754
754
|
value() {
|
|
@@ -756,11 +756,11 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
756
756
|
return e ? this.column.options?.format === "keyValue" ? e[this.column.options.key] : e : null;
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
|
-
}),
|
|
760
|
-
function
|
|
761
|
-
return
|
|
759
|
+
}), Ct = $t;
|
|
760
|
+
function Bt(e, t, o, s, n, u) {
|
|
761
|
+
return h(e.value) + " - value";
|
|
762
762
|
}
|
|
763
|
-
const
|
|
763
|
+
const Eo = /* @__PURE__ */ me(Ct, [["render", Bt]]), _t = { class: "flex-grow pr-2" }, Lt = { class: "h-4 w-4" }, Mt = /* @__PURE__ */ p({
|
|
764
764
|
__name: "sort.header",
|
|
765
765
|
props: {
|
|
766
766
|
column: {},
|
|
@@ -769,25 +769,25 @@ const Kn = /* @__PURE__ */ de(kt, [["render", $t]]), Ct = { class: "flex-grow pr
|
|
|
769
769
|
},
|
|
770
770
|
emits: ["sort"],
|
|
771
771
|
setup(e, { emit: t }) {
|
|
772
|
-
const
|
|
773
|
-
() =>
|
|
774
|
-
),
|
|
775
|
-
|
|
776
|
-
},
|
|
777
|
-
return (
|
|
772
|
+
const o = e, s = $(
|
|
773
|
+
() => o.sortDirection === "asc" ? F.BarsArrowUp : F.BarsArrowDown
|
|
774
|
+
), n = $(() => o.column.options?.sortId ?? o.column.id), u = () => {
|
|
775
|
+
b("sort", n.value);
|
|
776
|
+
}, b = t;
|
|
777
|
+
return (m, i) => (l(), c("button", {
|
|
778
778
|
class: "flex items-center",
|
|
779
|
-
onClick:
|
|
779
|
+
onClick: u
|
|
780
780
|
}, [
|
|
781
|
-
a("span",
|
|
782
|
-
a("div",
|
|
783
|
-
e.sortColumn ===
|
|
781
|
+
a("span", _t, h(e.column.label), 1),
|
|
782
|
+
a("div", Lt, [
|
|
783
|
+
e.sortColumn === n.value ? (l(), v(f(j), {
|
|
784
784
|
key: 0,
|
|
785
|
-
icon:
|
|
786
|
-
}, null, 8, ["icon"])) :
|
|
785
|
+
icon: s.value
|
|
786
|
+
}, null, 8, ["icon"])) : x("", !0)
|
|
787
787
|
])
|
|
788
788
|
]));
|
|
789
789
|
}
|
|
790
|
-
}),
|
|
790
|
+
}), Pt = { class: "table w-full" }, Vt = { key: 0 }, Dt = ["colspan"], At = { class: "flex gap-2" }, Wo = /* @__PURE__ */ p({
|
|
791
791
|
__name: "table.component",
|
|
792
792
|
props: {
|
|
793
793
|
loading: { type: Boolean },
|
|
@@ -799,133 +799,133 @@ const Kn = /* @__PURE__ */ de(kt, [["render", $t]]), Ct = { class: "flex-grow pr
|
|
|
799
799
|
},
|
|
800
800
|
emits: ["delete", "edit", "updatePage", "sort"],
|
|
801
801
|
setup(e, { emit: t }) {
|
|
802
|
-
const
|
|
803
|
-
|
|
804
|
-
},
|
|
805
|
-
|
|
806
|
-
},
|
|
807
|
-
|
|
808
|
-
},
|
|
809
|
-
|
|
802
|
+
const o = t, s = (m) => {
|
|
803
|
+
o("edit", m);
|
|
804
|
+
}, n = (m) => {
|
|
805
|
+
o("delete", m);
|
|
806
|
+
}, u = (m) => {
|
|
807
|
+
o("updatePage", m);
|
|
808
|
+
}, b = (m) => {
|
|
809
|
+
o("sort", m);
|
|
810
810
|
};
|
|
811
|
-
return (
|
|
812
|
-
a("table",
|
|
811
|
+
return (m, i) => (l(), c(k, null, [
|
|
812
|
+
a("table", Pt, [
|
|
813
813
|
a("thead", null, [
|
|
814
814
|
a("tr", null, [
|
|
815
|
-
(
|
|
815
|
+
(l(!0), c(k, null, L(e.displayColumns, (d) => (l(), c("th", {
|
|
816
816
|
key: d.scope
|
|
817
817
|
}, [
|
|
818
|
-
|
|
818
|
+
B(Mt, V({ column: d }, { ref_for: !0 }, e.sort, { onSort: b }), null, 16, ["column"])
|
|
819
819
|
]))), 128)),
|
|
820
|
-
|
|
820
|
+
i[0] || (i[0] = a("th", null, null, -1))
|
|
821
821
|
])
|
|
822
822
|
]),
|
|
823
823
|
a("tbody", null, [
|
|
824
|
-
e.loading ? (
|
|
824
|
+
e.loading ? (l(), c("tr", Vt, [
|
|
825
825
|
a("td", {
|
|
826
826
|
colspan: e.displayColumns.length + 1,
|
|
827
827
|
class: "text-center"
|
|
828
|
-
}, [...
|
|
828
|
+
}, [...i[1] || (i[1] = [
|
|
829
829
|
a("span", { class: "loading loading-bars loading-xs" }, null, -1)
|
|
830
|
-
])], 8,
|
|
831
|
-
])) :
|
|
832
|
-
(
|
|
830
|
+
])], 8, Dt)
|
|
831
|
+
])) : x("", !0),
|
|
832
|
+
(l(!0), c(k, null, L(e.data, (d) => (l(), c("tr", {
|
|
833
833
|
key: d.id
|
|
834
834
|
}, [
|
|
835
|
-
(
|
|
835
|
+
(l(!0), c(k, null, L(e.displayColumns, (r) => (l(), c("td", {
|
|
836
836
|
key: r.scope
|
|
837
837
|
}, [
|
|
838
|
-
(
|
|
838
|
+
(l(), v(ae(r.component), V({ ref_for: !0 }, r, {
|
|
839
839
|
data: d,
|
|
840
840
|
column: r
|
|
841
841
|
}), null, 16, ["data", "column"]))
|
|
842
842
|
]))), 128)),
|
|
843
843
|
a("td", null, [
|
|
844
|
-
a("span",
|
|
845
|
-
(
|
|
844
|
+
a("span", At, [
|
|
845
|
+
(l(!0), c(k, null, L(e.actions, (r) => (l(), v(J, {
|
|
846
846
|
key: r.label,
|
|
847
847
|
icon: r.icon,
|
|
848
848
|
outline: !0,
|
|
849
|
-
onClick: (
|
|
849
|
+
onClick: (A) => r.action(d)
|
|
850
850
|
}, {
|
|
851
|
-
default:
|
|
852
|
-
|
|
851
|
+
default: C(() => [
|
|
852
|
+
S(h(r.label), 1)
|
|
853
853
|
]),
|
|
854
854
|
_: 2
|
|
855
855
|
}, 1032, ["icon", "onClick"]))), 128)),
|
|
856
|
-
|
|
857
|
-
icon:
|
|
856
|
+
B(J, {
|
|
857
|
+
icon: f(F).Edit,
|
|
858
858
|
outline: !0,
|
|
859
|
-
onClick: (r) =>
|
|
859
|
+
onClick: (r) => s(d)
|
|
860
860
|
}, null, 8, ["icon", "onClick"]),
|
|
861
|
-
|
|
862
|
-
icon:
|
|
861
|
+
B(J, {
|
|
862
|
+
icon: f(F).Delete,
|
|
863
863
|
outline: !0,
|
|
864
|
-
onClick: (r) =>
|
|
864
|
+
onClick: (r) => n(d)
|
|
865
865
|
}, null, 8, ["icon", "onClick"])
|
|
866
866
|
])
|
|
867
867
|
])
|
|
868
868
|
]))), 128))
|
|
869
869
|
])
|
|
870
870
|
]),
|
|
871
|
-
e.page ? (
|
|
871
|
+
e.page ? (l(), v(wt, {
|
|
872
872
|
key: 0,
|
|
873
873
|
class: "border-gray-300 border-t pt-4 border-x-0 border-b-0",
|
|
874
874
|
"total-items": e.page.count,
|
|
875
875
|
"items-per-page": e.page.pageSize,
|
|
876
876
|
"current-page": e.page.page,
|
|
877
|
-
onUpdatePage:
|
|
878
|
-
}, null, 8, ["total-items", "items-per-page", "current-page"])) :
|
|
877
|
+
onUpdatePage: u
|
|
878
|
+
}, null, 8, ["total-items", "items-per-page", "current-page"])) : x("", !0)
|
|
879
879
|
], 64));
|
|
880
880
|
}
|
|
881
|
-
}),
|
|
881
|
+
}), Tt = {}, zt = { class: "card bg-base-100 shadow-sm" }, Ft = { class: "card-body" }, St = {
|
|
882
882
|
key: 0,
|
|
883
883
|
class: "card-title"
|
|
884
|
-
},
|
|
884
|
+
}, Nt = {
|
|
885
885
|
key: 1,
|
|
886
886
|
class: "card-actions justify-end"
|
|
887
887
|
};
|
|
888
|
-
function
|
|
889
|
-
return
|
|
890
|
-
a("div",
|
|
891
|
-
e.$slots.title ? (
|
|
892
|
-
|
|
893
|
-
])) :
|
|
888
|
+
function Kt(e, t) {
|
|
889
|
+
return l(), c("div", zt, [
|
|
890
|
+
a("div", Ft, [
|
|
891
|
+
e.$slots.title ? (l(), c("h2", St, [
|
|
892
|
+
D(e.$slots, "title")
|
|
893
|
+
])) : x("", !0),
|
|
894
894
|
a("p", null, [
|
|
895
|
-
|
|
896
|
-
|
|
895
|
+
D(e.$slots, "default"),
|
|
896
|
+
D(e.$slots, "content")
|
|
897
897
|
]),
|
|
898
|
-
e.$slots.actions ? (
|
|
899
|
-
|
|
900
|
-
])) :
|
|
898
|
+
e.$slots.actions ? (l(), c("div", Nt, [
|
|
899
|
+
D(e.$slots, "actions")
|
|
900
|
+
])) : x("", !0)
|
|
901
901
|
])
|
|
902
902
|
]);
|
|
903
903
|
}
|
|
904
|
-
const
|
|
904
|
+
const Zo = /* @__PURE__ */ me(Tt, [["render", Kt]]), Go = (e, t) => {
|
|
905
905
|
if (!e) return null;
|
|
906
|
-
const
|
|
907
|
-
e.contains(
|
|
906
|
+
const o = (s) => {
|
|
907
|
+
e.contains(s.target) || t();
|
|
908
908
|
};
|
|
909
|
-
return document.addEventListener("click",
|
|
910
|
-
},
|
|
909
|
+
return document.addEventListener("click", o), o;
|
|
910
|
+
}, Jo = (e) => {
|
|
911
911
|
document.removeEventListener("click", e);
|
|
912
|
-
},
|
|
912
|
+
}, Qo = {
|
|
913
913
|
beforeMount(e, t) {
|
|
914
|
-
e.clickOutsideEvent = function(
|
|
915
|
-
e ===
|
|
914
|
+
e.clickOutsideEvent = function(o) {
|
|
915
|
+
e === o.target || e.contains(o.target) || t.value(o);
|
|
916
916
|
}, document.addEventListener("click", e.clickOutsideEvent);
|
|
917
917
|
},
|
|
918
918
|
unmounted(e) {
|
|
919
919
|
document.removeEventListener("click", e.clickOutsideEvent);
|
|
920
920
|
}
|
|
921
921
|
};
|
|
922
|
-
function
|
|
922
|
+
function Xo(e) {
|
|
923
923
|
const t = we();
|
|
924
924
|
if (!t)
|
|
925
925
|
return !1;
|
|
926
|
-
const
|
|
927
|
-
return
|
|
928
|
-
|
|
926
|
+
const o = t.vnode.props;
|
|
927
|
+
return o ? !!(o[be(e)] || // also try camelCase event handler (#2249)
|
|
928
|
+
o[be(ke(e))]) : !1;
|
|
929
929
|
}
|
|
930
930
|
const Rt = {
|
|
931
931
|
group: {
|
|
@@ -951,6 +951,7 @@ const Rt = {
|
|
|
951
951
|
label: "fieldset-legend",
|
|
952
952
|
error: "",
|
|
953
953
|
input: "input",
|
|
954
|
+
textarea: "input h-32",
|
|
954
955
|
select: "select",
|
|
955
956
|
description: "form-control--description label text-xs text-gray-500"
|
|
956
957
|
},
|
|
@@ -958,8 +959,8 @@ const Rt = {
|
|
|
958
959
|
root: "flex flex-row gap-x-2",
|
|
959
960
|
item: "w-full"
|
|
960
961
|
}
|
|
961
|
-
},
|
|
962
|
-
id:
|
|
962
|
+
}, q = () => ({
|
|
963
|
+
id: le(),
|
|
963
964
|
visible: !0,
|
|
964
965
|
required: !1,
|
|
965
966
|
enabled: !0,
|
|
@@ -967,15 +968,19 @@ const Rt = {
|
|
|
967
968
|
isTouched: !1,
|
|
968
969
|
hideLabel: !1,
|
|
969
970
|
styles: Rt
|
|
970
|
-
}),
|
|
971
|
-
...
|
|
971
|
+
}), It = () => ({
|
|
972
|
+
...q(),
|
|
972
973
|
options: [],
|
|
973
974
|
valueKey: "value",
|
|
974
975
|
labelKey: "label"
|
|
975
|
-
}),
|
|
976
|
+
}), ye = (e, t, o) => !!(e && o), Ut = (e, t, o, s) => t === void 0 || t !== void 0 && !e || !s && !o, Yo = (e, t, o, s) => [
|
|
977
|
+
e?.control.input,
|
|
978
|
+
{ "input-error": ye(o, t, s) }
|
|
979
|
+
], qt = { key: 0 }, O = /* @__PURE__ */ p({
|
|
976
980
|
__name: "ControlWrapper",
|
|
977
|
-
props: /* @__PURE__ */
|
|
981
|
+
props: /* @__PURE__ */ U({
|
|
978
982
|
id: {},
|
|
983
|
+
placeholder: {},
|
|
979
984
|
description: {},
|
|
980
985
|
errors: {},
|
|
981
986
|
label: {},
|
|
@@ -986,38 +991,39 @@ const Rt = {
|
|
|
986
991
|
isTouched: { type: Boolean },
|
|
987
992
|
hideLabel: { type: Boolean },
|
|
988
993
|
styles: {}
|
|
989
|
-
},
|
|
994
|
+
}, q()),
|
|
990
995
|
setup(e) {
|
|
991
|
-
const t = e,
|
|
996
|
+
const t = e, o = $(() => !Ut(
|
|
992
997
|
t.visible,
|
|
993
998
|
t.description,
|
|
994
999
|
t.isFocused,
|
|
995
1000
|
!0
|
|
996
|
-
)),
|
|
1001
|
+
)), s = $(() => t.required), n = $(() => ye(
|
|
997
1002
|
t.isTouched,
|
|
998
1003
|
t.isFocused,
|
|
999
1004
|
t.errors
|
|
1000
1005
|
));
|
|
1001
|
-
return (
|
|
1002
|
-
class:
|
|
1006
|
+
return (u, b) => (l(), c("fieldset", {
|
|
1007
|
+
class: y(e.styles.control.wrapper)
|
|
1003
1008
|
}, [
|
|
1004
|
-
e.hideLabel ?
|
|
1009
|
+
e.hideLabel ? x("", !0) : (l(), c("legend", {
|
|
1005
1010
|
key: 0,
|
|
1006
|
-
class:
|
|
1011
|
+
class: y(e.styles.control.label)
|
|
1007
1012
|
}, [
|
|
1008
|
-
|
|
1009
|
-
|
|
1013
|
+
S(h(e.label) + " ", 1),
|
|
1014
|
+
s.value ? (l(), c("span", qt, "*")) : x("", !0)
|
|
1010
1015
|
], 2)),
|
|
1011
|
-
|
|
1016
|
+
D(u.$slots, "default"),
|
|
1012
1017
|
a("p", {
|
|
1013
|
-
class:
|
|
1014
|
-
},
|
|
1018
|
+
class: y(["fieldset-label h-4", { "text-error": n.value }])
|
|
1019
|
+
}, h(n.value ? e.errors : o.value ? e.description : null), 3)
|
|
1015
1020
|
], 2));
|
|
1016
1021
|
}
|
|
1017
|
-
}),
|
|
1022
|
+
}), jt = ["disabled"], Ht = ["value"], el = /* @__PURE__ */ p({
|
|
1018
1023
|
__name: "SelectComponent",
|
|
1019
|
-
props: /* @__PURE__ */
|
|
1024
|
+
props: /* @__PURE__ */ P(/* @__PURE__ */ U({
|
|
1020
1025
|
id: {},
|
|
1026
|
+
placeholder: {},
|
|
1021
1027
|
description: {},
|
|
1022
1028
|
errors: {},
|
|
1023
1029
|
label: {},
|
|
@@ -1032,7 +1038,7 @@ const Rt = {
|
|
|
1032
1038
|
valueKey: {},
|
|
1033
1039
|
labelKey: {}
|
|
1034
1040
|
}, {
|
|
1035
|
-
...
|
|
1041
|
+
...q(),
|
|
1036
1042
|
options: [],
|
|
1037
1043
|
valueKey: "value",
|
|
1038
1044
|
labelKey: "label"
|
|
@@ -1040,46 +1046,47 @@ const Rt = {
|
|
|
1040
1046
|
modelValue: {},
|
|
1041
1047
|
modelModifiers: {}
|
|
1042
1048
|
}),
|
|
1043
|
-
emits: /* @__PURE__ */
|
|
1049
|
+
emits: /* @__PURE__ */ P(["change", "focus", "blur"], ["update:modelValue"]),
|
|
1044
1050
|
setup(e, { emit: t }) {
|
|
1045
|
-
const
|
|
1046
|
-
|
|
1047
|
-
},
|
|
1048
|
-
|
|
1049
|
-
},
|
|
1050
|
-
|
|
1051
|
+
const o = e, s = t, n = H(e, "modelValue"), u = (i) => {
|
|
1052
|
+
s("change", i);
|
|
1053
|
+
}, b = (i) => {
|
|
1054
|
+
s("focus", i);
|
|
1055
|
+
}, m = (i) => {
|
|
1056
|
+
s("blur", i);
|
|
1051
1057
|
};
|
|
1052
|
-
return (
|
|
1053
|
-
default:
|
|
1054
|
-
|
|
1055
|
-
"onUpdate:modelValue": d[0] || (d[0] = (r) =>
|
|
1058
|
+
return (i, d) => (l(), v(O, W(Z(o)), {
|
|
1059
|
+
default: C(() => [
|
|
1060
|
+
I(a("select", {
|
|
1061
|
+
"onUpdate:modelValue": d[0] || (d[0] = (r) => n.value = r),
|
|
1056
1062
|
disabled: !e.enabled,
|
|
1057
|
-
class:
|
|
1058
|
-
onChange:
|
|
1059
|
-
onFocus:
|
|
1060
|
-
onBlur:
|
|
1063
|
+
class: y(["select select-bordered", e.styles.control.select]),
|
|
1064
|
+
onChange: u,
|
|
1065
|
+
onFocus: b,
|
|
1066
|
+
onBlur: m
|
|
1061
1067
|
}, [
|
|
1062
|
-
(
|
|
1068
|
+
(l(!0), c(k, null, L(e.options, (r) => (l(), c("option", {
|
|
1063
1069
|
key: r[e.valueKey],
|
|
1064
1070
|
value: r
|
|
1065
|
-
},
|
|
1066
|
-
], 42,
|
|
1067
|
-
[
|
|
1071
|
+
}, h(r[e.labelKey]), 9, Ht))), 128))
|
|
1072
|
+
], 42, jt), [
|
|
1073
|
+
[$e, n.value]
|
|
1068
1074
|
])
|
|
1069
1075
|
]),
|
|
1070
1076
|
_: 1
|
|
1071
1077
|
}, 16));
|
|
1072
1078
|
}
|
|
1073
|
-
}),
|
|
1079
|
+
}), Ot = ["disabled"], Et = {
|
|
1074
1080
|
key: 0,
|
|
1075
|
-
class: /* @__PURE__ */
|
|
1081
|
+
class: /* @__PURE__ */ y([
|
|
1076
1082
|
`bg-base-100 w-52 shadow -mt-5
|
|
1077
1083
|
absolute z-50`
|
|
1078
1084
|
])
|
|
1079
|
-
},
|
|
1085
|
+
}, Wt = ["onClick", "onBlur"], tl = /* @__PURE__ */ p({
|
|
1080
1086
|
__name: "AutoComplete",
|
|
1081
|
-
props: /* @__PURE__ */
|
|
1087
|
+
props: /* @__PURE__ */ P(/* @__PURE__ */ U({
|
|
1082
1088
|
id: {},
|
|
1089
|
+
placeholder: {},
|
|
1083
1090
|
description: {},
|
|
1084
1091
|
errors: {},
|
|
1085
1092
|
label: {},
|
|
@@ -1094,91 +1101,92 @@ const Rt = {
|
|
|
1094
1101
|
options: {},
|
|
1095
1102
|
valueKey: {},
|
|
1096
1103
|
labelKey: {}
|
|
1097
|
-
},
|
|
1104
|
+
}, It()), {
|
|
1098
1105
|
modelValue: {},
|
|
1099
1106
|
modelModifiers: {}
|
|
1100
1107
|
}),
|
|
1101
|
-
emits: /* @__PURE__ */
|
|
1108
|
+
emits: /* @__PURE__ */ P(["change", "focus", "blur"], ["update:modelValue"]),
|
|
1102
1109
|
setup(e, { emit: t }) {
|
|
1103
|
-
const
|
|
1104
|
-
|
|
1105
|
-
},
|
|
1106
|
-
|
|
1107
|
-
},
|
|
1108
|
-
|
|
1109
|
-
}, d =
|
|
1110
|
-
d.value = !0,
|
|
1111
|
-
},
|
|
1112
|
-
|
|
1113
|
-
},
|
|
1114
|
-
r.value?.length ===
|
|
1115
|
-
},
|
|
1116
|
-
return
|
|
1117
|
-
() =>
|
|
1118
|
-
(
|
|
1119
|
-
|
|
1110
|
+
const o = e, s = t, n = H(e, "modelValue"), u = N(""), b = (g) => {
|
|
1111
|
+
s("change", g);
|
|
1112
|
+
}, m = (g) => {
|
|
1113
|
+
s("focus", g);
|
|
1114
|
+
}, i = (g) => {
|
|
1115
|
+
s("blur", g);
|
|
1116
|
+
}, d = N(!1), r = N([]), A = (g) => {
|
|
1117
|
+
d.value = !0, T(g);
|
|
1118
|
+
}, T = (g) => {
|
|
1119
|
+
n.value = g, b(g);
|
|
1120
|
+
}, R = (g) => {
|
|
1121
|
+
r.value?.length === g + 1 && (r.value = []);
|
|
1122
|
+
}, E = (g) => g[o.valueKey], _ = (g) => g?.[o.labelKey] ?? "";
|
|
1123
|
+
return te(
|
|
1124
|
+
() => n.value,
|
|
1125
|
+
(g) => {
|
|
1126
|
+
g && !E(g) || (d.value = !0, r.value = [], u.value = _(g));
|
|
1120
1127
|
},
|
|
1121
1128
|
{ immediate: !0 }
|
|
1122
|
-
),
|
|
1123
|
-
() =>
|
|
1124
|
-
(
|
|
1129
|
+
), te(
|
|
1130
|
+
() => u.value,
|
|
1131
|
+
(g) => {
|
|
1125
1132
|
if (d.value) {
|
|
1126
1133
|
d.value = !1;
|
|
1127
1134
|
return;
|
|
1128
1135
|
}
|
|
1129
|
-
if (
|
|
1130
|
-
const { uri:
|
|
1131
|
-
|
|
1132
|
-
r.value =
|
|
1136
|
+
if (T({ [o.labelKey]: g }), o.config) {
|
|
1137
|
+
const { uri: w, skipAuth: z, dataField: K } = o.config;
|
|
1138
|
+
(o.config.skipAuth ? Le : Me()).get(`${w}${g}`).then((ne) => {
|
|
1139
|
+
r.value = ne.data[K];
|
|
1133
1140
|
});
|
|
1134
|
-
} else
|
|
1141
|
+
} else o.options && (r.value = o.options.filter((w) => _(w).toLowerCase().includes(g)).slice(0, 10));
|
|
1135
1142
|
}
|
|
1136
|
-
), (
|
|
1137
|
-
const
|
|
1138
|
-
return
|
|
1139
|
-
default:
|
|
1140
|
-
|
|
1141
|
-
"onUpdate:modelValue":
|
|
1143
|
+
), (g, w) => {
|
|
1144
|
+
const z = he("click-outside");
|
|
1145
|
+
return l(), v(O, W(Z(o)), {
|
|
1146
|
+
default: C(() => [
|
|
1147
|
+
I(a("input", {
|
|
1148
|
+
"onUpdate:modelValue": w[0] || (w[0] = (K) => u.value = K),
|
|
1142
1149
|
autocomplete: "off",
|
|
1143
1150
|
type: "text",
|
|
1144
|
-
class:
|
|
1151
|
+
class: y([e.styles.control.select]),
|
|
1145
1152
|
disabled: !e.enabled,
|
|
1146
|
-
onFocus:
|
|
1147
|
-
onBlur:
|
|
1148
|
-
}, null, 42,
|
|
1149
|
-
[
|
|
1153
|
+
onFocus: m,
|
|
1154
|
+
onBlur: i
|
|
1155
|
+
}, null, 42, Ot), [
|
|
1156
|
+
[ie, u.value]
|
|
1150
1157
|
]),
|
|
1151
|
-
|
|
1152
|
-
r.value?.length ? (
|
|
1153
|
-
(
|
|
1158
|
+
I((l(), c("div", null, [
|
|
1159
|
+
r.value?.length ? (l(), c("ul", Et, [
|
|
1160
|
+
(l(!0), c(k, null, L(r.value, (K, Y) => (l(), c("li", {
|
|
1154
1161
|
key: K[e.valueKey]
|
|
1155
1162
|
}, [
|
|
1156
1163
|
a("button", {
|
|
1157
1164
|
class: "w-full h-8 border-b-1 border-gray-200 border-x-0 border-t-0 px-4 py-2 text-left hover:bg-primary-content cursor-pointer",
|
|
1158
1165
|
type: "button",
|
|
1159
|
-
onClick: (
|
|
1160
|
-
onBlur: (
|
|
1161
|
-
},
|
|
1166
|
+
onClick: (ne) => A(K),
|
|
1167
|
+
onBlur: (ne) => R(Y)
|
|
1168
|
+
}, h(_(K)), 41, Wt)
|
|
1162
1169
|
]))), 128))
|
|
1163
|
-
])) :
|
|
1170
|
+
])) : x("", !0)
|
|
1164
1171
|
])), [
|
|
1165
|
-
[
|
|
1172
|
+
[z, () => r.value = []]
|
|
1166
1173
|
])
|
|
1167
1174
|
]),
|
|
1168
1175
|
_: 1
|
|
1169
1176
|
}, 16);
|
|
1170
1177
|
};
|
|
1171
1178
|
}
|
|
1172
|
-
}),
|
|
1179
|
+
}), Zt = {
|
|
1173
1180
|
key: 0,
|
|
1174
|
-
class: /* @__PURE__ */
|
|
1181
|
+
class: /* @__PURE__ */ y([
|
|
1175
1182
|
`bg-base-100 w-52 shadow -mt-5
|
|
1176
1183
|
absolute z-50 p-0`
|
|
1177
1184
|
])
|
|
1178
|
-
},
|
|
1185
|
+
}, Gt = ["onClick"], Jt = { class: "w-4 mr-2" }, ol = /* @__PURE__ */ p({
|
|
1179
1186
|
__name: "MultiSelect",
|
|
1180
|
-
props: /* @__PURE__ */
|
|
1187
|
+
props: /* @__PURE__ */ P(/* @__PURE__ */ U({
|
|
1181
1188
|
id: {},
|
|
1189
|
+
placeholder: {},
|
|
1182
1190
|
description: {},
|
|
1183
1191
|
errors: {},
|
|
1184
1192
|
label: {},
|
|
@@ -1193,73 +1201,74 @@ const Rt = {
|
|
|
1193
1201
|
valueKey: {},
|
|
1194
1202
|
labelKey: {}
|
|
1195
1203
|
}, {
|
|
1196
|
-
...
|
|
1204
|
+
...q(),
|
|
1197
1205
|
valueKey: "value",
|
|
1198
1206
|
labelKey: "label"
|
|
1199
1207
|
}), {
|
|
1200
1208
|
modelValue: {},
|
|
1201
1209
|
modelModifiers: {}
|
|
1202
1210
|
}),
|
|
1203
|
-
emits: /* @__PURE__ */
|
|
1211
|
+
emits: /* @__PURE__ */ P(["change", "focus", "blur"], ["update:modelValue"]),
|
|
1204
1212
|
setup(e, { emit: t }) {
|
|
1205
|
-
const
|
|
1206
|
-
let
|
|
1207
|
-
const
|
|
1208
|
-
|
|
1209
|
-
},
|
|
1210
|
-
|
|
1213
|
+
const o = e, s = t, n = H(e, "modelValue");
|
|
1214
|
+
let u = !1;
|
|
1215
|
+
const b = (_) => {
|
|
1216
|
+
s("change", _);
|
|
1217
|
+
}, m = N(!1), i = () => {
|
|
1218
|
+
m.value = !m.value, u = !0;
|
|
1211
1219
|
}, d = () => {
|
|
1212
|
-
|
|
1213
|
-
}, r =
|
|
1214
|
-
() =>
|
|
1215
|
-
),
|
|
1216
|
-
|
|
1217
|
-
let
|
|
1218
|
-
const
|
|
1219
|
-
|
|
1220
|
-
},
|
|
1221
|
-
return (
|
|
1222
|
-
const
|
|
1223
|
-
return
|
|
1224
|
-
default:
|
|
1220
|
+
u || (m.value = !1), u = !1;
|
|
1221
|
+
}, r = $(
|
|
1222
|
+
() => n.value?.map((_) => R(_)) ?? []
|
|
1223
|
+
), A = (_) => r.value.includes(_), T = (_, g) => {
|
|
1224
|
+
_.preventDefault();
|
|
1225
|
+
let w = n.value ?? [];
|
|
1226
|
+
const z = R(g);
|
|
1227
|
+
A(z) ? w = w.filter((Y) => R(Y) !== z) : w.push(g), n.value = w, b(w);
|
|
1228
|
+
}, R = (_) => _[o.valueKey], E = (_) => _?.[o.labelKey] ?? "";
|
|
1229
|
+
return (_, g) => {
|
|
1230
|
+
const w = he("click-outside");
|
|
1231
|
+
return l(), v(O, W(Z(o)), {
|
|
1232
|
+
default: C(() => [
|
|
1225
1233
|
a("button", {
|
|
1226
1234
|
type: "button",
|
|
1227
|
-
class:
|
|
1228
|
-
onClick:
|
|
1229
|
-
},
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
(
|
|
1233
|
-
key:
|
|
1235
|
+
class: y([e.styles.control.select, "w-full truncate block"]),
|
|
1236
|
+
onClick: i
|
|
1237
|
+
}, h(n.value?.map?.((z) => E(z)).join(", ") ?? "Select value"), 3),
|
|
1238
|
+
I((l(), c("div", null, [
|
|
1239
|
+
m.value ? (l(), c("ul", Zt, [
|
|
1240
|
+
(l(!0), c(k, null, L(e.options, (z) => (l(), c("li", {
|
|
1241
|
+
key: z[e.valueKey]
|
|
1234
1242
|
}, [
|
|
1235
1243
|
a("button", {
|
|
1236
1244
|
class: "w-full flex h-8 border-b-1 border-gray-200 border-x-0 border-t-0 p-2 text-left hover:bg-primary-content cursor-pointer",
|
|
1237
1245
|
type: "button",
|
|
1238
|
-
onClick: (
|
|
1246
|
+
onClick: (K) => T(K, z)
|
|
1239
1247
|
}, [
|
|
1240
|
-
a("div",
|
|
1241
|
-
|
|
1248
|
+
a("div", Jt, [
|
|
1249
|
+
A(R(z)) ? (l(), v(f(j), {
|
|
1242
1250
|
key: 0,
|
|
1243
|
-
icon:
|
|
1251
|
+
icon: f(F).Check,
|
|
1244
1252
|
size: "sm"
|
|
1245
|
-
}, null, 8, ["icon"])) :
|
|
1253
|
+
}, null, 8, ["icon"])) : x("", !0)
|
|
1246
1254
|
]),
|
|
1247
|
-
|
|
1248
|
-
], 8,
|
|
1255
|
+
S(" " + h(E(z)), 1)
|
|
1256
|
+
], 8, Gt)
|
|
1249
1257
|
]))), 128))
|
|
1250
|
-
])) :
|
|
1258
|
+
])) : x("", !0)
|
|
1251
1259
|
])), [
|
|
1252
|
-
[
|
|
1260
|
+
[w, () => d()]
|
|
1253
1261
|
])
|
|
1254
1262
|
]),
|
|
1255
1263
|
_: 1
|
|
1256
1264
|
}, 16);
|
|
1257
1265
|
};
|
|
1258
1266
|
}
|
|
1259
|
-
}),
|
|
1267
|
+
}), Qt = { class: "card bg-base-100 border border-base-300" }, Xt = { class: "flex items-center gap-1 px-3 py-2 border-b border-base-300 bg-base-200" }, Yt = ["title", "onClick"], eo = ["innerHTML"], to = { class: "card-body p-3" }, oo = /* @__PURE__ */ p({
|
|
1260
1268
|
__name: "Markdown",
|
|
1261
|
-
props: /* @__PURE__ */
|
|
1269
|
+
props: /* @__PURE__ */ P(/* @__PURE__ */ U({
|
|
1262
1270
|
id: {},
|
|
1271
|
+
placeholder: {},
|
|
1263
1272
|
description: {},
|
|
1264
1273
|
errors: {},
|
|
1265
1274
|
label: {},
|
|
@@ -1272,7 +1281,7 @@ const Rt = {
|
|
|
1272
1281
|
styles: {},
|
|
1273
1282
|
actions: {}
|
|
1274
1283
|
}, {
|
|
1275
|
-
...
|
|
1284
|
+
...q(),
|
|
1276
1285
|
actions: () => [
|
|
1277
1286
|
{
|
|
1278
1287
|
label: "<strong>B</strong>",
|
|
@@ -1289,12 +1298,12 @@ const Rt = {
|
|
|
1289
1298
|
modelValue: {},
|
|
1290
1299
|
modelModifiers: {}
|
|
1291
1300
|
}),
|
|
1292
|
-
emits: /* @__PURE__ */
|
|
1301
|
+
emits: /* @__PURE__ */ P(["update:modelValue"], ["update:modelValue"]),
|
|
1293
1302
|
setup(e, { emit: t }) {
|
|
1294
|
-
const
|
|
1295
|
-
content:
|
|
1303
|
+
const o = e, s = t, n = H(e, "modelValue"), u = Ae({
|
|
1304
|
+
content: n.value ?? "",
|
|
1296
1305
|
extensions: [
|
|
1297
|
-
|
|
1306
|
+
De.configure({
|
|
1298
1307
|
heading: !1,
|
|
1299
1308
|
blockquote: !1,
|
|
1300
1309
|
bulletList: !1,
|
|
@@ -1305,36 +1314,36 @@ const Rt = {
|
|
|
1305
1314
|
horizontalRule: !1,
|
|
1306
1315
|
hardBreak: !1
|
|
1307
1316
|
}),
|
|
1308
|
-
|
|
1317
|
+
ze.configure({
|
|
1309
1318
|
html: !1,
|
|
1310
1319
|
transformPastedText: !0
|
|
1311
1320
|
// parse markdown on paste
|
|
1312
1321
|
})
|
|
1313
1322
|
],
|
|
1314
|
-
onUpdate({ editor:
|
|
1315
|
-
|
|
1323
|
+
onUpdate({ editor: b }) {
|
|
1324
|
+
s("update:modelValue", b.storage.markdown.getMarkdown());
|
|
1316
1325
|
}
|
|
1317
1326
|
});
|
|
1318
1327
|
return Ce(() => {
|
|
1319
|
-
|
|
1320
|
-
}), (
|
|
1321
|
-
default:
|
|
1322
|
-
a("div",
|
|
1323
|
-
a("div",
|
|
1324
|
-
(
|
|
1325
|
-
key:
|
|
1326
|
-
class:
|
|
1327
|
-
title:
|
|
1328
|
-
onClick: (d) =>
|
|
1328
|
+
u.value?.destroy();
|
|
1329
|
+
}), (b, m) => (l(), v(O, W(Z(o)), {
|
|
1330
|
+
default: C(() => [
|
|
1331
|
+
a("div", Qt, [
|
|
1332
|
+
a("div", Xt, [
|
|
1333
|
+
(l(!0), c(k, null, L(e.actions, (i) => (l(), c("button", {
|
|
1334
|
+
key: i.name,
|
|
1335
|
+
class: y(["btn btn-sm btn-ghost", { "btn-active": f(u)?.isActive(i.name) }]),
|
|
1336
|
+
title: i.label,
|
|
1337
|
+
onClick: (d) => i.action(f(u))
|
|
1329
1338
|
}, [
|
|
1330
1339
|
a("span", {
|
|
1331
|
-
innerHTML:
|
|
1332
|
-
}, null, 8,
|
|
1333
|
-
], 10,
|
|
1340
|
+
innerHTML: i.label
|
|
1341
|
+
}, null, 8, eo)
|
|
1342
|
+
], 10, Yt))), 128))
|
|
1334
1343
|
]),
|
|
1335
|
-
a("div",
|
|
1336
|
-
|
|
1337
|
-
editor:
|
|
1344
|
+
a("div", to, [
|
|
1345
|
+
B(f(Te), {
|
|
1346
|
+
editor: f(u),
|
|
1338
1347
|
class: "prose prose-sm max-w-none min-h-24"
|
|
1339
1348
|
}, null, 8, ["editor"])
|
|
1340
1349
|
])
|
|
@@ -1343,73 +1352,286 @@ const Rt = {
|
|
|
1343
1352
|
_: 1
|
|
1344
1353
|
}, 16));
|
|
1345
1354
|
}
|
|
1346
|
-
}),
|
|
1355
|
+
}), ll = /* @__PURE__ */ me(oo, [["__scopeId", "data-v-0d8fa163"]]), lo = { class: "flex items-center justify-center h-full" }, no = { class: "fieldset-label" }, so = ["disabled"], ao = { class: "font-bold text-gray-500 text-sm" }, nl = /* @__PURE__ */ p({
|
|
1356
|
+
__name: "Checkbox",
|
|
1357
|
+
props: /* @__PURE__ */ P(/* @__PURE__ */ U({
|
|
1358
|
+
id: {},
|
|
1359
|
+
placeholder: {},
|
|
1360
|
+
description: {},
|
|
1361
|
+
errors: {},
|
|
1362
|
+
label: {},
|
|
1363
|
+
visible: { type: Boolean },
|
|
1364
|
+
required: { type: Boolean },
|
|
1365
|
+
enabled: { type: Boolean },
|
|
1366
|
+
isFocused: { type: Boolean },
|
|
1367
|
+
isTouched: { type: Boolean },
|
|
1368
|
+
hideLabel: { type: Boolean },
|
|
1369
|
+
styles: {},
|
|
1370
|
+
options: {},
|
|
1371
|
+
valueKey: {},
|
|
1372
|
+
labelKey: {}
|
|
1373
|
+
}, {
|
|
1374
|
+
...q()
|
|
1375
|
+
}), {
|
|
1376
|
+
modelValue: {},
|
|
1377
|
+
modelModifiers: {}
|
|
1378
|
+
}),
|
|
1379
|
+
emits: /* @__PURE__ */ P(["change", "focus", "blur"], ["update:modelValue"]),
|
|
1380
|
+
setup(e, { emit: t }) {
|
|
1381
|
+
const o = e, s = t, n = H(e, "modelValue"), u = (i) => {
|
|
1382
|
+
s("change", i);
|
|
1383
|
+
}, b = (i) => {
|
|
1384
|
+
s("focus", i);
|
|
1385
|
+
}, m = (i) => {
|
|
1386
|
+
s("blur", i);
|
|
1387
|
+
};
|
|
1388
|
+
return (i, d) => (l(), c("div", lo, [
|
|
1389
|
+
B(O, V(o, { "hide-label": !0 }), {
|
|
1390
|
+
default: C(() => [
|
|
1391
|
+
a("label", no, [
|
|
1392
|
+
I(a("input", {
|
|
1393
|
+
"onUpdate:modelValue": d[0] || (d[0] = (r) => n.value = r),
|
|
1394
|
+
type: "checkbox",
|
|
1395
|
+
class: y(["checkbox", e.styles.control.checkbox]),
|
|
1396
|
+
disabled: !e.enabled,
|
|
1397
|
+
onChange: u,
|
|
1398
|
+
onFocus: b,
|
|
1399
|
+
onBlur: m
|
|
1400
|
+
}, null, 42, so), [
|
|
1401
|
+
[fe, n.value]
|
|
1402
|
+
]),
|
|
1403
|
+
a("span", ao, h(e.label), 1)
|
|
1404
|
+
])
|
|
1405
|
+
]),
|
|
1406
|
+
_: 1
|
|
1407
|
+
}, 16)
|
|
1408
|
+
]));
|
|
1409
|
+
}
|
|
1410
|
+
}), io = ["type", "disabled", "autofocus", "placeholder"], sl = /* @__PURE__ */ p({
|
|
1411
|
+
__name: "Input",
|
|
1412
|
+
props: /* @__PURE__ */ P(/* @__PURE__ */ U({
|
|
1413
|
+
id: {},
|
|
1414
|
+
placeholder: {},
|
|
1415
|
+
description: {},
|
|
1416
|
+
errors: {},
|
|
1417
|
+
label: {},
|
|
1418
|
+
visible: { type: Boolean },
|
|
1419
|
+
required: { type: Boolean },
|
|
1420
|
+
enabled: { type: Boolean },
|
|
1421
|
+
isFocused: { type: Boolean },
|
|
1422
|
+
isTouched: { type: Boolean },
|
|
1423
|
+
hideLabel: { type: Boolean },
|
|
1424
|
+
styles: {},
|
|
1425
|
+
type: {}
|
|
1426
|
+
}, {
|
|
1427
|
+
...q(),
|
|
1428
|
+
type: "text"
|
|
1429
|
+
}), {
|
|
1430
|
+
modelValue: {},
|
|
1431
|
+
modelModifiers: {}
|
|
1432
|
+
}),
|
|
1433
|
+
emits: /* @__PURE__ */ P(["change", "focus", "blur"], ["update:modelValue"]),
|
|
1434
|
+
setup(e, { emit: t }) {
|
|
1435
|
+
const o = e, s = t, n = H(e, "modelValue"), u = (i) => {
|
|
1436
|
+
s("change", i);
|
|
1437
|
+
}, b = (i) => {
|
|
1438
|
+
s("focus", i);
|
|
1439
|
+
}, m = (i) => {
|
|
1440
|
+
s("blur", i);
|
|
1441
|
+
};
|
|
1442
|
+
return (i, d) => (l(), v(O, W(Z(o)), {
|
|
1443
|
+
default: C(() => [
|
|
1444
|
+
I(a("input", {
|
|
1445
|
+
"onUpdate:modelValue": d[0] || (d[0] = (r) => n.value = r),
|
|
1446
|
+
autocomplete: "off",
|
|
1447
|
+
type: e.type,
|
|
1448
|
+
class: y([e.styles.control.input]),
|
|
1449
|
+
disabled: !e.enabled,
|
|
1450
|
+
autofocus: e.isFocused,
|
|
1451
|
+
placeholder: e.placeholder,
|
|
1452
|
+
onChange: u,
|
|
1453
|
+
onFocus: b,
|
|
1454
|
+
onBlur: m
|
|
1455
|
+
}, null, 42, io), [
|
|
1456
|
+
[Be, n.value]
|
|
1457
|
+
])
|
|
1458
|
+
]),
|
|
1459
|
+
_: 1
|
|
1460
|
+
}, 16));
|
|
1461
|
+
}
|
|
1462
|
+
}), ro = ["disabled", "step", "autofocus", "placeholder"], al = /* @__PURE__ */ p({
|
|
1463
|
+
__name: "InputNumber",
|
|
1464
|
+
props: /* @__PURE__ */ P(/* @__PURE__ */ U({
|
|
1465
|
+
id: {},
|
|
1466
|
+
placeholder: {},
|
|
1467
|
+
description: {},
|
|
1468
|
+
errors: {},
|
|
1469
|
+
label: {},
|
|
1470
|
+
visible: { type: Boolean },
|
|
1471
|
+
required: { type: Boolean },
|
|
1472
|
+
enabled: { type: Boolean },
|
|
1473
|
+
isFocused: { type: Boolean },
|
|
1474
|
+
isTouched: { type: Boolean },
|
|
1475
|
+
hideLabel: { type: Boolean },
|
|
1476
|
+
styles: {},
|
|
1477
|
+
steps: {}
|
|
1478
|
+
}, {
|
|
1479
|
+
...q(),
|
|
1480
|
+
steps: 1
|
|
1481
|
+
}), {
|
|
1482
|
+
modelValue: {},
|
|
1483
|
+
modelModifiers: {}
|
|
1484
|
+
}),
|
|
1485
|
+
emits: /* @__PURE__ */ P(["change", "focus", "blur"], ["update:modelValue"]),
|
|
1486
|
+
setup(e, { emit: t }) {
|
|
1487
|
+
const o = e, s = t, n = H(e, "modelValue"), u = (i) => {
|
|
1488
|
+
s("change", i);
|
|
1489
|
+
}, b = (i) => {
|
|
1490
|
+
s("focus", i);
|
|
1491
|
+
}, m = (i) => {
|
|
1492
|
+
s("blur", i);
|
|
1493
|
+
};
|
|
1494
|
+
return (i, d) => (l(), v(O, W(Z(o)), {
|
|
1495
|
+
default: C(() => [
|
|
1496
|
+
I(a("input", {
|
|
1497
|
+
"onUpdate:modelValue": d[0] || (d[0] = (r) => n.value = r),
|
|
1498
|
+
autocomplete: "off",
|
|
1499
|
+
type: "number",
|
|
1500
|
+
class: y([e.styles.control.input]),
|
|
1501
|
+
disabled: !e.enabled,
|
|
1502
|
+
step: e.steps,
|
|
1503
|
+
autofocus: e.isFocused,
|
|
1504
|
+
placeholder: e.placeholder,
|
|
1505
|
+
onChange: u,
|
|
1506
|
+
onFocus: b,
|
|
1507
|
+
onBlur: m
|
|
1508
|
+
}, null, 42, ro), [
|
|
1509
|
+
[ie, n.value]
|
|
1510
|
+
])
|
|
1511
|
+
]),
|
|
1512
|
+
_: 1
|
|
1513
|
+
}, 16));
|
|
1514
|
+
}
|
|
1515
|
+
}), co = ["disabled", "rows", "autofocus", "placeholder"], il = /* @__PURE__ */ p({
|
|
1516
|
+
__name: "Textarea",
|
|
1517
|
+
props: /* @__PURE__ */ P(/* @__PURE__ */ U({
|
|
1518
|
+
id: {},
|
|
1519
|
+
placeholder: {},
|
|
1520
|
+
description: {},
|
|
1521
|
+
errors: {},
|
|
1522
|
+
label: {},
|
|
1523
|
+
visible: { type: Boolean },
|
|
1524
|
+
required: { type: Boolean },
|
|
1525
|
+
enabled: { type: Boolean },
|
|
1526
|
+
isFocused: { type: Boolean },
|
|
1527
|
+
isTouched: { type: Boolean },
|
|
1528
|
+
hideLabel: { type: Boolean },
|
|
1529
|
+
styles: {},
|
|
1530
|
+
rows: {}
|
|
1531
|
+
}, {
|
|
1532
|
+
...q(),
|
|
1533
|
+
rows: 4
|
|
1534
|
+
}), {
|
|
1535
|
+
modelValue: {},
|
|
1536
|
+
modelModifiers: {}
|
|
1537
|
+
}),
|
|
1538
|
+
emits: /* @__PURE__ */ P(["change", "focus", "blur"], ["update:modelValue"]),
|
|
1539
|
+
setup(e, { emit: t }) {
|
|
1540
|
+
const o = e, s = t, n = H(e, "modelValue"), u = (i) => {
|
|
1541
|
+
s("change", i);
|
|
1542
|
+
}, b = (i) => {
|
|
1543
|
+
s("focus", i);
|
|
1544
|
+
}, m = (i) => {
|
|
1545
|
+
s("blur", i);
|
|
1546
|
+
};
|
|
1547
|
+
return (i, d) => (l(), v(O, W(Z(o)), {
|
|
1548
|
+
default: C(() => [
|
|
1549
|
+
I(a("textarea", {
|
|
1550
|
+
"onUpdate:modelValue": d[0] || (d[0] = (r) => n.value = r),
|
|
1551
|
+
autocomplete: "off",
|
|
1552
|
+
type: "text",
|
|
1553
|
+
class: y([e.styles.control.textarea]),
|
|
1554
|
+
disabled: !e.enabled,
|
|
1555
|
+
rows: e.rows,
|
|
1556
|
+
autofocus: e.isFocused,
|
|
1557
|
+
placeholder: e.placeholder,
|
|
1558
|
+
onChange: u,
|
|
1559
|
+
onFocus: b,
|
|
1560
|
+
onBlur: m
|
|
1561
|
+
}, null, 42, co), [
|
|
1562
|
+
[ie, n.value]
|
|
1563
|
+
])
|
|
1564
|
+
]),
|
|
1565
|
+
_: 1
|
|
1566
|
+
}, 16));
|
|
1567
|
+
}
|
|
1568
|
+
}), uo = { class: "grid grid-cols-[auto_1fr_auto] h-full overflow-hidden" }, mo = {
|
|
1347
1569
|
id: "drawer-left",
|
|
1348
1570
|
class: "min-h-0 min-w-6 relative flex-shrink-0 bg-white shadow-lg transition-all duration-300 ease-in-out border-l border-gray-200 overflow-visible"
|
|
1349
|
-
},
|
|
1571
|
+
}, bo = { class: "flex-1 overflow-y-auto bg-white" }, fo = { class: "min-h-0 min-w-6 relative flex-shrink-0 bg-white shadow-lg transition-all duration-300 ease-in-out border-l border-gray-200 overflow-visible" }, rl = /* @__PURE__ */ p({
|
|
1350
1572
|
__name: "drawer",
|
|
1351
1573
|
props: {
|
|
1352
1574
|
widthLeft: { default: 200 },
|
|
1353
1575
|
widthRight: { default: 200 }
|
|
1354
1576
|
},
|
|
1355
1577
|
setup(e) {
|
|
1356
|
-
const t =
|
|
1357
|
-
t.value[
|
|
1578
|
+
const t = N({ left: !0, right: !0 }), o = (s) => {
|
|
1579
|
+
t.value[s] = !t.value[s];
|
|
1358
1580
|
};
|
|
1359
|
-
return (
|
|
1360
|
-
a("aside",
|
|
1581
|
+
return (s, n) => (l(), c("main", uo, [
|
|
1582
|
+
a("aside", mo, [
|
|
1361
1583
|
a("div", {
|
|
1362
|
-
class:
|
|
1584
|
+
class: y(["absolute top-0 z-20", t.value.left ? "-right-0" : "-right-2"])
|
|
1363
1585
|
}, [
|
|
1364
1586
|
a("button", {
|
|
1365
1587
|
class: "btn btn-ghost btn-circle",
|
|
1366
|
-
onClick:
|
|
1588
|
+
onClick: n[0] || (n[0] = (u) => o("left"))
|
|
1367
1589
|
}, [
|
|
1368
|
-
|
|
1590
|
+
B(f(j), {
|
|
1369
1591
|
size: "sm",
|
|
1370
|
-
icon: t.value.left ?
|
|
1592
|
+
icon: t.value.left ? f(F).DblChevronLeft : f(F).DblChevronRight
|
|
1371
1593
|
}, null, 8, ["icon"])
|
|
1372
1594
|
])
|
|
1373
1595
|
], 2),
|
|
1374
|
-
t.value.left ? (
|
|
1596
|
+
t.value.left ? (l(), c("div", {
|
|
1375
1597
|
key: 0,
|
|
1376
|
-
style:
|
|
1598
|
+
style: se({ width: e.widthLeft + "px" }),
|
|
1377
1599
|
class: "h-full overflow-y-auto p-4"
|
|
1378
1600
|
}, [
|
|
1379
|
-
|
|
1380
|
-
], 4)) :
|
|
1601
|
+
D(s.$slots, "left-drawer")
|
|
1602
|
+
], 4)) : x("", !0)
|
|
1381
1603
|
]),
|
|
1382
|
-
a("div",
|
|
1383
|
-
|
|
1604
|
+
a("div", bo, [
|
|
1605
|
+
D(s.$slots, "default")
|
|
1384
1606
|
]),
|
|
1385
|
-
a("aside",
|
|
1386
|
-
t.value.right ? (
|
|
1607
|
+
a("aside", fo, [
|
|
1608
|
+
t.value.right ? (l(), c("div", {
|
|
1387
1609
|
key: 0,
|
|
1388
|
-
style:
|
|
1610
|
+
style: se({ width: e.widthRight + "px" }),
|
|
1389
1611
|
class: "h-full overflow-y-auto p-4"
|
|
1390
1612
|
}, [
|
|
1391
|
-
|
|
1392
|
-
], 4)) :
|
|
1613
|
+
D(s.$slots, "right-drawer")
|
|
1614
|
+
], 4)) : x("", !0),
|
|
1393
1615
|
a("div", {
|
|
1394
|
-
class:
|
|
1616
|
+
class: y(["absolute top-0 z-20", t.value.right ? "-left-0" : "-left-2"])
|
|
1395
1617
|
}, [
|
|
1396
1618
|
a("button", {
|
|
1397
1619
|
class: "btn btn-ghost btn-circle",
|
|
1398
|
-
onClick:
|
|
1620
|
+
onClick: n[1] || (n[1] = (u) => o("right"))
|
|
1399
1621
|
}, [
|
|
1400
|
-
|
|
1622
|
+
B(f(j), {
|
|
1401
1623
|
size: "sm",
|
|
1402
|
-
icon: t.value.right ?
|
|
1624
|
+
icon: t.value.right ? f(F).DblChevronRight : f(F).DblChevronLeft
|
|
1403
1625
|
}, null, 8, ["icon"])
|
|
1404
1626
|
])
|
|
1405
1627
|
], 2)
|
|
1406
1628
|
])
|
|
1407
1629
|
]));
|
|
1408
1630
|
}
|
|
1409
|
-
}),
|
|
1631
|
+
}), ho = { class: "ml-1" }, po = { class: "truncate flex-1 min-w-0 text-left" }, vo = {
|
|
1410
1632
|
key: 0,
|
|
1411
1633
|
class: "badge badge-ghost badge-sm flex-shrink-0"
|
|
1412
|
-
},
|
|
1634
|
+
}, go = /* @__PURE__ */ p({
|
|
1413
1635
|
__name: "TreeItem",
|
|
1414
1636
|
props: {
|
|
1415
1637
|
active: {},
|
|
@@ -1419,59 +1641,59 @@ const Rt = {
|
|
|
1419
1641
|
},
|
|
1420
1642
|
emits: ["toggle", "select"],
|
|
1421
1643
|
setup(e, { emit: t }) {
|
|
1422
|
-
const
|
|
1423
|
-
return (
|
|
1424
|
-
const
|
|
1425
|
-
return
|
|
1644
|
+
const o = e, s = t, n = $(() => o.active === o.node.id);
|
|
1645
|
+
return (u, b) => {
|
|
1646
|
+
const m = oe("TreeItem", !0);
|
|
1647
|
+
return l(), c("li", ho, [
|
|
1426
1648
|
a("div", {
|
|
1427
|
-
class:
|
|
1649
|
+
class: y([
|
|
1428
1650
|
`flex items-center gap-1 cursor-pointer rounded-md px-1 py-0.5
|
|
1429
1651
|
hover:bg-gray-100`,
|
|
1430
|
-
|
|
1652
|
+
n.value ? "text-primary" : ""
|
|
1431
1653
|
])
|
|
1432
1654
|
}, [
|
|
1433
|
-
e.node.children?.length > 0 ? (
|
|
1655
|
+
e.node.children?.length > 0 ? (l(), c("span", {
|
|
1434
1656
|
key: 0,
|
|
1435
1657
|
class: "flex items-center justify-center",
|
|
1436
|
-
onClick:
|
|
1658
|
+
onClick: b[0] || (b[0] = (i) => s("toggle", e.node))
|
|
1437
1659
|
}, [
|
|
1438
|
-
e.node.children && e.isExpanded(e.node.id) ? (
|
|
1660
|
+
e.node.children && e.isExpanded(e.node.id) ? (l(), v(f(Pe), {
|
|
1439
1661
|
key: 0,
|
|
1440
1662
|
class: "w-3 h-3"
|
|
1441
|
-
})) : (
|
|
1663
|
+
})) : (l(), v(f(Ve), {
|
|
1442
1664
|
key: 1,
|
|
1443
1665
|
class: "w-3 h-3"
|
|
1444
1666
|
}))
|
|
1445
|
-
])) :
|
|
1667
|
+
])) : x("", !0),
|
|
1446
1668
|
a("div", {
|
|
1447
1669
|
class: "flex items-center gap-2 w-full min-w-0",
|
|
1448
|
-
onClick:
|
|
1670
|
+
onClick: b[1] || (b[1] = (i) => s("select", e.node))
|
|
1449
1671
|
}, [
|
|
1450
|
-
a("div",
|
|
1451
|
-
e.node.tag ? (
|
|
1672
|
+
a("div", po, h(e.node.label), 1),
|
|
1673
|
+
e.node.tag ? (l(), c("div", vo, h(e.node.tag), 1)) : x("", !0)
|
|
1452
1674
|
])
|
|
1453
1675
|
], 2),
|
|
1454
|
-
e.node.children && e.isExpanded(e.node.id) ? (
|
|
1676
|
+
e.node.children && e.isExpanded(e.node.id) ? (l(), c("ul", {
|
|
1455
1677
|
key: 0,
|
|
1456
|
-
class:
|
|
1678
|
+
class: y([
|
|
1457
1679
|
"ml-4 border-l pl-2",
|
|
1458
|
-
{ "border-gray-200": !
|
|
1680
|
+
{ "border-gray-200": !n.value, "border-primary": n.value }
|
|
1459
1681
|
])
|
|
1460
1682
|
}, [
|
|
1461
|
-
(
|
|
1462
|
-
key:
|
|
1463
|
-
node:
|
|
1683
|
+
(l(!0), c(k, null, L(e.node.children, (i) => (l(), v(m, {
|
|
1684
|
+
key: i.id,
|
|
1685
|
+
node: i,
|
|
1464
1686
|
expanded: e.expanded,
|
|
1465
1687
|
active: e.active,
|
|
1466
1688
|
"is-expanded": e.isExpanded,
|
|
1467
|
-
onToggle:
|
|
1468
|
-
onSelect:
|
|
1689
|
+
onToggle: b[2] || (b[2] = (d) => s("toggle", d)),
|
|
1690
|
+
onSelect: b[3] || (b[3] = (d) => s("select", d))
|
|
1469
1691
|
}, null, 8, ["node", "expanded", "active", "is-expanded"]))), 128))
|
|
1470
|
-
], 2)) :
|
|
1692
|
+
], 2)) : x("", !0)
|
|
1471
1693
|
]);
|
|
1472
1694
|
};
|
|
1473
1695
|
}
|
|
1474
|
-
}),
|
|
1696
|
+
}), yo = { class: "select-none text-sm" }, cl = /* @__PURE__ */ p({
|
|
1475
1697
|
__name: "TreeView",
|
|
1476
1698
|
props: {
|
|
1477
1699
|
data: {},
|
|
@@ -1479,80 +1701,80 @@ const Rt = {
|
|
|
1479
1701
|
},
|
|
1480
1702
|
emits: ["select"],
|
|
1481
1703
|
setup(e, { emit: t }) {
|
|
1482
|
-
const
|
|
1483
|
-
const d =
|
|
1484
|
-
if (!
|
|
1485
|
-
|
|
1704
|
+
const o = e, s = t, n = N(/* @__PURE__ */ new Set()), u = (i) => {
|
|
1705
|
+
const d = i.id;
|
|
1706
|
+
if (!i.children || i.children.length === 0) {
|
|
1707
|
+
s("select", i);
|
|
1486
1708
|
return;
|
|
1487
1709
|
}
|
|
1488
|
-
|
|
1489
|
-
},
|
|
1490
|
-
|
|
1491
|
-
},
|
|
1492
|
-
return (
|
|
1493
|
-
(
|
|
1710
|
+
n.value.has(d) ? n.value.delete(d) : n.value.add(d);
|
|
1711
|
+
}, b = (i) => {
|
|
1712
|
+
s("select", i), n.value.add(i.id);
|
|
1713
|
+
}, m = (i) => n.value.has(i);
|
|
1714
|
+
return (i, d) => (l(), c("ul", yo, [
|
|
1715
|
+
(l(!0), c(k, null, L(o.data, (r) => (l(), v(go, {
|
|
1494
1716
|
key: r.id,
|
|
1495
1717
|
node: r,
|
|
1496
|
-
expanded:
|
|
1718
|
+
expanded: n.value,
|
|
1497
1719
|
active: e.active,
|
|
1498
|
-
"is-expanded":
|
|
1499
|
-
onToggle:
|
|
1500
|
-
onSelect:
|
|
1720
|
+
"is-expanded": m,
|
|
1721
|
+
onToggle: u,
|
|
1722
|
+
onSelect: b
|
|
1501
1723
|
}, null, 8, ["node", "expanded", "active"]))), 128))
|
|
1502
1724
|
]));
|
|
1503
1725
|
}
|
|
1504
|
-
}),
|
|
1726
|
+
}), xo = {
|
|
1505
1727
|
key: 0,
|
|
1506
1728
|
class: "flex items-center justify-center h-20"
|
|
1507
|
-
},
|
|
1729
|
+
}, ul = /* @__PURE__ */ p({
|
|
1508
1730
|
__name: "loading",
|
|
1509
1731
|
props: {
|
|
1510
1732
|
loading: { type: Boolean }
|
|
1511
1733
|
},
|
|
1512
1734
|
setup(e) {
|
|
1513
|
-
return (t,
|
|
1735
|
+
return (t, o) => e.loading ? (l(), c("div", xo, [...o[0] || (o[0] = [
|
|
1514
1736
|
a("span", { class: "loading loading-bars loading-md text-primary" }, null, -1)
|
|
1515
|
-
])])) :
|
|
1737
|
+
])])) : x("", !0);
|
|
1516
1738
|
}
|
|
1517
|
-
}),
|
|
1739
|
+
}), wo = { class: "collapse collapse-arrow bg-white w-full border border-gray-300" }, ko = ["checked"], $o = { class: "collapse-title text-gray-500 text-xs font-medium" }, Co = {
|
|
1518
1740
|
key: 0,
|
|
1519
1741
|
class: "list bg-base-100"
|
|
1520
|
-
},
|
|
1742
|
+
}, dl = /* @__PURE__ */ p({
|
|
1521
1743
|
__name: "Collapse",
|
|
1522
1744
|
props: {
|
|
1523
1745
|
title: {},
|
|
1524
1746
|
opened: { type: Boolean, default: !0 }
|
|
1525
1747
|
},
|
|
1526
1748
|
setup(e) {
|
|
1527
|
-
const t =
|
|
1528
|
-
return
|
|
1529
|
-
() =>
|
|
1749
|
+
const t = pe(), o = e, s = N(o.opened);
|
|
1750
|
+
return te(
|
|
1751
|
+
() => o.opened,
|
|
1530
1752
|
() => {
|
|
1531
1753
|
},
|
|
1532
1754
|
{ immediate: !0 }
|
|
1533
|
-
), (
|
|
1755
|
+
), (n, u) => (l(), c("div", wo, [
|
|
1534
1756
|
a("input", {
|
|
1535
1757
|
type: "checkbox",
|
|
1536
|
-
checked:
|
|
1537
|
-
}, null, 8,
|
|
1538
|
-
a("div",
|
|
1758
|
+
checked: s.value
|
|
1759
|
+
}, null, 8, ko),
|
|
1760
|
+
a("div", $o, h(e.title), 1),
|
|
1539
1761
|
a("div", {
|
|
1540
|
-
class:
|
|
1762
|
+
class: y(["collapse-content", f(t).list ? "p-0" : ""])
|
|
1541
1763
|
}, [
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
])) :
|
|
1764
|
+
D(n.$slots, "default"),
|
|
1765
|
+
f(t).list ? (l(), c("ul", Co, [
|
|
1766
|
+
D(n.$slots, "list")
|
|
1767
|
+
])) : x("", !0)
|
|
1546
1768
|
], 2)
|
|
1547
1769
|
]));
|
|
1548
1770
|
}
|
|
1549
|
-
}),
|
|
1771
|
+
}), Bo = { class: "list-row" }, _o = { class: "list-col-grow" }, Lo = {
|
|
1550
1772
|
key: 0,
|
|
1551
1773
|
class: "text-xs text-gray-600"
|
|
1552
|
-
},
|
|
1774
|
+
}, Mo = ["href"], Po = { key: 1 }, Vo = {
|
|
1553
1775
|
key: 0,
|
|
1554
1776
|
class: "text-xs text-gray-500"
|
|
1555
|
-
},
|
|
1777
|
+
}, Do = ["href"], Ao = { key: 1 }, To = { class: "list-col-wrap text-xs text-gray-500" }, ml = /* @__PURE__ */ p({
|
|
1556
1778
|
__name: "CollapseRow",
|
|
1557
1779
|
props: {
|
|
1558
1780
|
title: {},
|
|
@@ -1562,75 +1784,80 @@ const Rt = {
|
|
|
1562
1784
|
descriptionLink: {}
|
|
1563
1785
|
},
|
|
1564
1786
|
setup(e) {
|
|
1565
|
-
return
|
|
1566
|
-
const
|
|
1567
|
-
return
|
|
1568
|
-
a("div",
|
|
1569
|
-
a("div", null,
|
|
1570
|
-
e.description || e.descriptionLink ? (
|
|
1571
|
-
e.descriptionLink ? (
|
|
1787
|
+
return pe(), (t, o) => {
|
|
1788
|
+
const s = oe("ng-content");
|
|
1789
|
+
return l(), c("li", Bo, [
|
|
1790
|
+
a("div", _o, [
|
|
1791
|
+
a("div", null, h(e.title), 1),
|
|
1792
|
+
e.description || e.descriptionLink ? (l(), c("div", Lo, [
|
|
1793
|
+
e.descriptionLink ? (l(), c("a", {
|
|
1572
1794
|
key: 0,
|
|
1573
1795
|
href: e.descriptionLink,
|
|
1574
1796
|
target: "_blank"
|
|
1575
|
-
},
|
|
1576
|
-
])) :
|
|
1797
|
+
}, h(e.description ?? e.descriptionLink), 9, Mo)) : (l(), c("span", Po, h(e.description), 1))
|
|
1798
|
+
])) : x("", !0)
|
|
1577
1799
|
]),
|
|
1578
|
-
e.label ? (
|
|
1579
|
-
e.labelLink ? (
|
|
1800
|
+
e.label ? (l(), c("div", Vo, [
|
|
1801
|
+
e.labelLink ? (l(), c("a", {
|
|
1580
1802
|
key: 0,
|
|
1581
1803
|
href: e.labelLink,
|
|
1582
1804
|
target: "_blank"
|
|
1583
|
-
},
|
|
1584
|
-
])) :
|
|
1585
|
-
a("p",
|
|
1586
|
-
|
|
1805
|
+
}, h(e.label), 9, Do)) : (l(), c("span", Ao, h(e.label), 1))
|
|
1806
|
+
])) : x("", !0),
|
|
1807
|
+
a("p", To, [
|
|
1808
|
+
B(s)
|
|
1587
1809
|
])
|
|
1588
1810
|
]);
|
|
1589
1811
|
};
|
|
1590
1812
|
}
|
|
1591
1813
|
});
|
|
1592
1814
|
export {
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1815
|
+
tl as Autocomplete,
|
|
1816
|
+
Xe as BadgeSize,
|
|
1817
|
+
J as Btn,
|
|
1818
|
+
Ho as BtnBadge,
|
|
1819
|
+
Qe as ButtonSize,
|
|
1820
|
+
Zo as Card,
|
|
1821
|
+
nl as Checkbox,
|
|
1822
|
+
Qo as ClickOutside,
|
|
1823
|
+
dl as Collapse,
|
|
1824
|
+
ml as CollapseRow,
|
|
1825
|
+
G as Color,
|
|
1826
|
+
et as ConfirmModal,
|
|
1827
|
+
O as ControlWrapper,
|
|
1828
|
+
It as DefaultAutoCompleteProperties,
|
|
1829
|
+
q as DefaultControlProperties,
|
|
1830
|
+
rl as Drawer,
|
|
1831
|
+
jo as Dropdown,
|
|
1832
|
+
j as Icon,
|
|
1833
|
+
F as IconEnum,
|
|
1834
|
+
Fe as IconMap,
|
|
1835
|
+
sl as Input,
|
|
1836
|
+
al as InputNumber,
|
|
1837
|
+
ul as Loading,
|
|
1838
|
+
ll as Markdown,
|
|
1839
|
+
qo as Menu,
|
|
1840
|
+
Ze as Modal,
|
|
1841
|
+
ue as ModalService,
|
|
1842
|
+
tt as ModalWrapper,
|
|
1843
|
+
ol as MultiSelect,
|
|
1844
|
+
ot as NotificationMessage,
|
|
1845
|
+
de as NotificationService,
|
|
1846
|
+
st as Notifications,
|
|
1847
|
+
wt as PaginationComponent,
|
|
1848
|
+
el as SelectComponent,
|
|
1849
|
+
Oo as ShellComponent,
|
|
1850
|
+
re as SubMenu,
|
|
1851
|
+
Wo as Table,
|
|
1852
|
+
Wo as TableComponent,
|
|
1853
|
+
Eo as TextCell,
|
|
1854
|
+
il as Textarea,
|
|
1855
|
+
cl as TreeView,
|
|
1856
|
+
Go as addClickOutsideEventListener,
|
|
1857
|
+
Xo as hasCustomEventListener,
|
|
1858
|
+
Yo as inputClasses,
|
|
1859
|
+
Ut as isDescriptionHidden,
|
|
1633
1860
|
Rt as myStyles,
|
|
1634
|
-
|
|
1635
|
-
|
|
1861
|
+
Jo as removeClickOutsideEventListener,
|
|
1862
|
+
ye as showErrors
|
|
1636
1863
|
};
|