admins-components 1.2.11 → 1.2.13
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/admins-components.cjs +1 -1
- package/dist/admins-components.js +520 -495
- package/dist/style.css +1 -0
- package/package.json +2 -18
- package/dist/admins-components.css +0 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var Y = Object.defineProperty;
|
|
2
|
+
var Z = (p, o, t) => o in p ? Y(p, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[o] = t;
|
|
3
|
+
var M = (p, o, t) => Z(p, typeof o != "symbol" ? o + "" : o, t);
|
|
4
|
+
import { defineComponent as w, createElementBlock as a, openBlock as n, createElementVNode as r, toDisplayString as C, resolveComponent as A, Fragment as _, renderList as $, createVNode as H, createBlock as B, createCommentVNode as v, watch as E, ref as g, onMounted as F, unref as ee, normalizeStyle as j, createTextVNode as z, normalizeClass as I, computed as S, onUnmounted as te } from "vue";
|
|
5
|
+
const le = { class: "form-check" }, oe = ["checked", "id"], se = ["for"], V = /* @__PURE__ */ w({
|
|
3
6
|
__name: "CheckBox",
|
|
4
7
|
props: {
|
|
5
8
|
id: {},
|
|
@@ -7,60 +10,60 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], j = /*
|
|
|
7
10
|
checked: { type: Boolean }
|
|
8
11
|
},
|
|
9
12
|
emits: ["changed"],
|
|
10
|
-
setup(
|
|
11
|
-
return (
|
|
13
|
+
setup(p) {
|
|
14
|
+
return (o, t) => (n(), a("div", le, [
|
|
12
15
|
r("input", {
|
|
13
16
|
class: "form-check-input",
|
|
14
17
|
type: "checkbox",
|
|
15
|
-
checked:
|
|
18
|
+
checked: o.checked,
|
|
16
19
|
value: "",
|
|
17
|
-
id:
|
|
18
|
-
onChange:
|
|
19
|
-
id:
|
|
20
|
+
id: o.id,
|
|
21
|
+
onChange: t[0] || (t[0] = (e) => o.$emit("changed", {
|
|
22
|
+
id: o.id,
|
|
20
23
|
checked: e.target.checked
|
|
21
24
|
}))
|
|
22
|
-
}, null, 40,
|
|
25
|
+
}, null, 40, oe),
|
|
23
26
|
r("label", {
|
|
24
27
|
class: "form-check-label",
|
|
25
|
-
for:
|
|
26
|
-
}, C(
|
|
28
|
+
for: o.id
|
|
29
|
+
}, C(o.label), 9, se)
|
|
27
30
|
]));
|
|
28
31
|
}
|
|
29
|
-
}),
|
|
32
|
+
}), ne = { class: "cbl-childrend-container" }, ie = /* @__PURE__ */ w({
|
|
30
33
|
__name: "CheckBoxList",
|
|
31
34
|
props: {
|
|
32
35
|
items: {},
|
|
33
36
|
callback: { type: Function }
|
|
34
37
|
},
|
|
35
|
-
setup(
|
|
36
|
-
return (
|
|
37
|
-
const e =
|
|
38
|
-
return
|
|
39
|
-
key:
|
|
38
|
+
setup(p) {
|
|
39
|
+
return (o, t) => {
|
|
40
|
+
const e = A("CheckBoxList", !0);
|
|
41
|
+
return n(!0), a(_, null, $(o.items, (l) => (n(), a("div", {
|
|
42
|
+
key: l.id,
|
|
40
43
|
class: "cbl-container"
|
|
41
44
|
}, [
|
|
42
|
-
|
|
43
|
-
id:
|
|
44
|
-
label:
|
|
45
|
-
checked:
|
|
46
|
-
onChanged:
|
|
45
|
+
H(V, {
|
|
46
|
+
id: l.id,
|
|
47
|
+
label: l.label,
|
|
48
|
+
checked: l.checked,
|
|
49
|
+
onChanged: t[0] || (t[0] = (d) => o.callback(d.id, d.checked))
|
|
47
50
|
}, null, 8, ["id", "label", "checked"]),
|
|
48
|
-
r("div",
|
|
49
|
-
|
|
51
|
+
r("div", ne, [
|
|
52
|
+
l.childrend ? (n(), B(e, {
|
|
50
53
|
key: 0,
|
|
51
|
-
items:
|
|
52
|
-
callback:
|
|
53
|
-
}, null, 8, ["items", "callback"])) :
|
|
54
|
+
items: l.childrend,
|
|
55
|
+
callback: o.callback
|
|
56
|
+
}, null, 8, ["items", "callback"])) : v("", !0)
|
|
54
57
|
])
|
|
55
58
|
]))), 128);
|
|
56
59
|
};
|
|
57
60
|
}
|
|
58
|
-
}),
|
|
59
|
-
const
|
|
60
|
-
for (const [e,
|
|
61
|
-
|
|
62
|
-
return
|
|
63
|
-
},
|
|
61
|
+
}), ae = (p, o) => {
|
|
62
|
+
const t = p.__vccOpts || p;
|
|
63
|
+
for (const [e, l] of o)
|
|
64
|
+
t[e] = l;
|
|
65
|
+
return t;
|
|
66
|
+
}, re = /* @__PURE__ */ ae(ie, [["__scopeId", "data-v-ae2832c5"]]), de = ["id"], ue = ["disabled"], ce = { class: "dd-label" }, pe = { class: "dd-item-list" }, ve = ["onClick"], P = /* @__PURE__ */ w({
|
|
64
67
|
__name: "DropDown",
|
|
65
68
|
props: {
|
|
66
69
|
id: {},
|
|
@@ -74,43 +77,43 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], j = /*
|
|
|
74
77
|
disabled: { type: Boolean }
|
|
75
78
|
},
|
|
76
79
|
emits: ["selected", "filtered"],
|
|
77
|
-
setup(
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}),
|
|
82
|
-
() =>
|
|
80
|
+
setup(p, { emit: o }) {
|
|
81
|
+
const t = p;
|
|
82
|
+
E(t.options, () => {
|
|
83
|
+
t.filterevent && (c.value = t.options.value);
|
|
84
|
+
}), E(
|
|
85
|
+
() => t.selected,
|
|
83
86
|
() => {
|
|
84
87
|
b();
|
|
85
88
|
}
|
|
86
|
-
),
|
|
87
|
-
() =>
|
|
89
|
+
), E(
|
|
90
|
+
() => t.label,
|
|
88
91
|
() => {
|
|
89
92
|
b();
|
|
90
93
|
}
|
|
91
94
|
);
|
|
92
|
-
const e =
|
|
93
|
-
|
|
94
|
-
}, d = "törlés", f =
|
|
95
|
-
if (
|
|
96
|
-
const
|
|
97
|
-
|
|
95
|
+
const e = o, l = (h) => {
|
|
96
|
+
t.storeselected || (f.value = h.label), e("selected", h);
|
|
97
|
+
}, d = "törlés", f = g(""), b = () => {
|
|
98
|
+
if (t.options.value) {
|
|
99
|
+
const h = t.options.value.find((k) => k.id == t.selected);
|
|
100
|
+
h ? f.value = h.label : (i(""), f.value = t.label);
|
|
98
101
|
}
|
|
99
102
|
};
|
|
100
|
-
|
|
101
|
-
|
|
103
|
+
F(() => {
|
|
104
|
+
t.label && (f.value = t.label), b(), m = "", document.addEventListener("click", function() {
|
|
102
105
|
L.value == "block" && (L.value = "none");
|
|
103
106
|
}), window.addEventListener("scrolled", function() {
|
|
104
107
|
L.value == "block" && (L.value = "none");
|
|
105
108
|
}), y();
|
|
106
109
|
});
|
|
107
|
-
let
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
(
|
|
110
|
+
let m = "";
|
|
111
|
+
const i = (h) => {
|
|
112
|
+
m = h, t.filterevent ? e("filtered", h) : h == "" ? c.value = t.options.value : c.value = t.options.value.filter(
|
|
113
|
+
(k) => k.label.toLowerCase().includes(h.toLowerCase())
|
|
111
114
|
);
|
|
112
|
-
}, c =
|
|
113
|
-
|
|
115
|
+
}, c = g([]), s = () => {
|
|
116
|
+
l({ label: t.label, id: "" }), i("");
|
|
114
117
|
}, u = () => {
|
|
115
118
|
if (L.value == "block") {
|
|
116
119
|
L.value = "none";
|
|
@@ -120,11 +123,11 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], j = /*
|
|
|
120
123
|
L.value = "block";
|
|
121
124
|
}, 10), setTimeout(y, 20);
|
|
122
125
|
}, y = () => {
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
}, D =
|
|
126
|
-
return (
|
|
127
|
-
id:
|
|
126
|
+
const h = D.value, k = x.value;
|
|
127
|
+
t.opentop ? k.style.top = h.getBoundingClientRect().y - k.offsetHeight + "px" : (k.style.top = h.getBoundingClientRect().y + h.offsetHeight + "px", h.getBoundingClientRect().y - k.getBoundingClientRect().y != -h.offsetHeight && (k.style.top = parseInt(k.style.top.substring(0, k.style.top.length - 2)) + (h.getBoundingClientRect().y - k.getBoundingClientRect().y) + h.offsetHeight + "px")), O.value && O.value.focus();
|
|
128
|
+
}, D = g(null), x = g(null), L = g("none"), O = g(null);
|
|
129
|
+
return (h, k) => (n(), a("div", {
|
|
130
|
+
id: h.id,
|
|
128
131
|
class: "dd-flex"
|
|
129
132
|
}, [
|
|
130
133
|
r("button", {
|
|
@@ -132,52 +135,52 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], j = /*
|
|
|
132
135
|
ref: D,
|
|
133
136
|
class: "btn btn-outline-secondary dd-toggle dd-flex",
|
|
134
137
|
type: "button",
|
|
135
|
-
disabled:
|
|
136
|
-
onClick:
|
|
137
|
-
|
|
138
|
+
disabled: h.disabled,
|
|
139
|
+
onClick: k[0] || (k[0] = (T) => {
|
|
140
|
+
i(ee(m)), u();
|
|
138
141
|
})
|
|
139
142
|
}, [
|
|
140
|
-
r("div",
|
|
141
|
-
], 8,
|
|
143
|
+
r("div", ce, C(f.value), 1)
|
|
144
|
+
], 8, ue),
|
|
142
145
|
r("div", {
|
|
143
146
|
class: "dd-menu",
|
|
144
|
-
style:
|
|
147
|
+
style: j({ display: L.value }),
|
|
145
148
|
ref_key: "DropDownMenu",
|
|
146
149
|
ref: x
|
|
147
150
|
}, [
|
|
148
|
-
f.value !=
|
|
151
|
+
f.value != t.label ? (n(), a("button", {
|
|
149
152
|
key: 0,
|
|
150
153
|
type: "button",
|
|
151
154
|
class: "btn btn-outline-secondary dd-button",
|
|
152
|
-
onClick:
|
|
153
|
-
}, C(d))) :
|
|
154
|
-
|
|
155
|
+
onClick: k[1] || (k[1] = (T) => s())
|
|
156
|
+
}, C(d))) : v("", !0),
|
|
157
|
+
h.disableFilter ? v("", !0) : (n(), a("input", {
|
|
155
158
|
key: 1,
|
|
156
159
|
ref_key: "ddSearch",
|
|
157
|
-
ref:
|
|
160
|
+
ref: O,
|
|
158
161
|
type: "text ",
|
|
159
162
|
class: "form-control",
|
|
160
163
|
placeholder: "keresés",
|
|
161
|
-
onInput:
|
|
162
|
-
onClick:
|
|
164
|
+
onInput: k[2] || (k[2] = (T) => i(T.target.value)),
|
|
165
|
+
onClick: k[3] || (k[3] = (T) => T.stopPropagation())
|
|
163
166
|
}, null, 544)),
|
|
164
|
-
r("div",
|
|
165
|
-
(
|
|
167
|
+
r("div", pe, [
|
|
168
|
+
(n(!0), a(_, null, $(c.value, (T) => (n(), a("div", {
|
|
166
169
|
key: T.id,
|
|
167
170
|
class: "dd-item",
|
|
168
|
-
onClick: (
|
|
171
|
+
onClick: (Pt) => l(T)
|
|
169
172
|
}, [
|
|
170
|
-
T.icon ? (
|
|
173
|
+
T.icon ? (n(), a("i", {
|
|
171
174
|
key: 0,
|
|
172
175
|
class: I([T.icon, "dd-item__icon"])
|
|
173
|
-
}, null, 2)) :
|
|
174
|
-
|
|
175
|
-
], 8,
|
|
176
|
+
}, null, 2)) : v("", !0),
|
|
177
|
+
z(C(T.label), 1)
|
|
178
|
+
], 8, ve))), 128))
|
|
176
179
|
])
|
|
177
180
|
], 4)
|
|
178
|
-
], 8,
|
|
181
|
+
], 8, de));
|
|
179
182
|
}
|
|
180
|
-
}),
|
|
183
|
+
}), fe = ["id"], me = ["disabled"], ge = { class: "ddc-row" }, be = { class: "ddc-label" }, ye = { class: "dd-item-list" }, he = ["onClick"], ke = { class: "ddc-item" }, _e = { class: "ddc-label" }, Ce = "törlés", K = /* @__PURE__ */ w({
|
|
181
184
|
__name: "DropDownCallBack",
|
|
182
185
|
props: {
|
|
183
186
|
id: {},
|
|
@@ -186,30 +189,30 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], j = /*
|
|
|
186
189
|
enabled: { type: Boolean },
|
|
187
190
|
options: {}
|
|
188
191
|
},
|
|
189
|
-
setup(
|
|
190
|
-
const
|
|
191
|
-
c ==
|
|
192
|
-
}, e =
|
|
193
|
-
if (
|
|
194
|
-
const c =
|
|
195
|
-
(
|
|
192
|
+
setup(p) {
|
|
193
|
+
const o = p, t = (c) => {
|
|
194
|
+
c == o.default && e.value.callback(""), e.value = c, e.value.callback(e.value.value);
|
|
195
|
+
}, e = g(o.default), l = () => {
|
|
196
|
+
if (o.selected && o.options.value) {
|
|
197
|
+
const c = o.options.value.find(
|
|
198
|
+
(s) => s.value == o.selected
|
|
196
199
|
);
|
|
197
200
|
c && (e.value = c);
|
|
198
201
|
}
|
|
199
202
|
};
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
+
F(() => {
|
|
204
|
+
l(), document.addEventListener("click", function() {
|
|
205
|
+
i.value == "block" && (i.value = "none");
|
|
203
206
|
});
|
|
204
207
|
});
|
|
205
208
|
const d = () => {
|
|
206
209
|
setTimeout(() => {
|
|
207
|
-
|
|
210
|
+
i.value = "block";
|
|
208
211
|
}, 10), setTimeout(() => {
|
|
209
|
-
|
|
212
|
+
m.value = f.value.offsetHeight;
|
|
210
213
|
}, 20);
|
|
211
|
-
}, f =
|
|
212
|
-
return (c,
|
|
214
|
+
}, f = g(null), b = g(null), m = g(0), i = g("none");
|
|
215
|
+
return (c, s) => (n(), a("div", {
|
|
213
216
|
class: "ddc-flex",
|
|
214
217
|
id: c.id
|
|
215
218
|
}, [
|
|
@@ -219,51 +222,51 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], j = /*
|
|
|
219
222
|
class: "btn btn-outline-secondary ddc-button",
|
|
220
223
|
type: "button",
|
|
221
224
|
disabled: !c.enabled,
|
|
222
|
-
onClick:
|
|
225
|
+
onClick: s[0] || (s[0] = (u) => d())
|
|
223
226
|
}, [
|
|
224
|
-
r("span",
|
|
227
|
+
r("span", ge, [
|
|
225
228
|
r("i", {
|
|
226
229
|
class: I([e.value.icon, "ddc-icon"])
|
|
227
230
|
}, null, 2),
|
|
228
|
-
r("span",
|
|
231
|
+
r("span", be, C(e.value.label), 1)
|
|
229
232
|
])
|
|
230
|
-
], 8,
|
|
233
|
+
], 8, me),
|
|
231
234
|
r("div", {
|
|
232
235
|
class: "ddc-menu",
|
|
233
|
-
style:
|
|
236
|
+
style: j({ display: i.value, "margin-top": m.value + "px" }),
|
|
234
237
|
ref_key: "DropDownMenu",
|
|
235
238
|
ref: b
|
|
236
239
|
}, [
|
|
237
|
-
e.value !=
|
|
240
|
+
e.value != o.default ? (n(), a("button", {
|
|
238
241
|
key: 0,
|
|
239
242
|
type: "button",
|
|
240
243
|
class: "btn btn-outline-secondary ddc-button",
|
|
241
|
-
onClick:
|
|
242
|
-
}, C(
|
|
243
|
-
r("div",
|
|
244
|
-
(
|
|
244
|
+
onClick: s[1] || (s[1] = (u) => t(o.default))
|
|
245
|
+
}, C(Ce))) : v("", !0),
|
|
246
|
+
r("div", ye, [
|
|
247
|
+
(n(!0), a(_, null, $(c.options.value, (u) => (n(), a("div", {
|
|
245
248
|
key: u.label,
|
|
246
249
|
class: "ddc-item",
|
|
247
|
-
onClick: (y) =>
|
|
250
|
+
onClick: (y) => t(u)
|
|
248
251
|
}, [
|
|
249
|
-
r("span",
|
|
252
|
+
r("span", ke, [
|
|
250
253
|
r("i", {
|
|
251
254
|
class: I([u.icon, "ddc-icon"])
|
|
252
255
|
}, null, 2),
|
|
253
|
-
r("span",
|
|
256
|
+
r("span", _e, C(u.label), 1)
|
|
254
257
|
])
|
|
255
|
-
], 8,
|
|
258
|
+
], 8, he))), 128))
|
|
256
259
|
])
|
|
257
260
|
], 4)
|
|
258
|
-
], 8,
|
|
261
|
+
], 8, fe));
|
|
259
262
|
}
|
|
260
|
-
}),
|
|
263
|
+
}), $e = ["id"], we = {
|
|
261
264
|
key: 0,
|
|
262
265
|
class: "ddm-label"
|
|
263
|
-
},
|
|
266
|
+
}, De = {
|
|
264
267
|
key: 1,
|
|
265
268
|
class: "ddm-label"
|
|
266
|
-
},
|
|
269
|
+
}, Be = ["onClick"], N = /* @__PURE__ */ w({
|
|
267
270
|
__name: "DropDownMenu",
|
|
268
271
|
props: {
|
|
269
272
|
label: {},
|
|
@@ -273,203 +276,222 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], j = /*
|
|
|
273
276
|
id: {},
|
|
274
277
|
right: { type: Boolean }
|
|
275
278
|
},
|
|
276
|
-
setup(
|
|
277
|
-
const
|
|
278
|
-
|
|
279
|
+
setup(p) {
|
|
280
|
+
const o = p;
|
|
281
|
+
F(() => {
|
|
279
282
|
document.addEventListener("click", function() {
|
|
280
|
-
|
|
283
|
+
t.value && (t.value = !1);
|
|
281
284
|
});
|
|
282
285
|
});
|
|
283
|
-
const
|
|
286
|
+
const t = g(!1), e = () => {
|
|
284
287
|
setTimeout(() => {
|
|
285
|
-
|
|
286
|
-
}, 10), setTimeout(
|
|
287
|
-
},
|
|
288
|
-
const
|
|
289
|
-
|
|
290
|
-
}, d =
|
|
291
|
-
return (
|
|
288
|
+
t.value = !0;
|
|
289
|
+
}, 10), setTimeout(l, 20);
|
|
290
|
+
}, l = () => {
|
|
291
|
+
const m = d.value, i = f.value;
|
|
292
|
+
i.style.top = m.getBoundingClientRect().y + m.offsetHeight + "px", m.getBoundingClientRect().y - i.getBoundingClientRect().y != -m.offsetHeight && (i.style.top = parseInt(i.style.top.substring(0, i.style.top.length - 2)) + (m.getBoundingClientRect().y - i.getBoundingClientRect().y) + m.offsetHeight + "px"), i.style.left = m.getBoundingClientRect().x - (o.right ? 100 : 0) + "px";
|
|
293
|
+
}, d = g(null), f = g(null), b = g(0);
|
|
294
|
+
return (m, i) => (n(), a("div", {
|
|
292
295
|
class: "d-flex",
|
|
293
|
-
id:
|
|
296
|
+
id: m.id
|
|
294
297
|
}, [
|
|
295
298
|
r("button", {
|
|
296
299
|
ref_key: "DropDownTriggerButton",
|
|
297
300
|
ref: d,
|
|
298
301
|
class: "btn btn-outline-secondary",
|
|
299
302
|
type: "button",
|
|
300
|
-
onClick:
|
|
303
|
+
onClick: i[0] || (i[0] = (c) => e())
|
|
301
304
|
}, [
|
|
302
|
-
|
|
303
|
-
|
|
305
|
+
m.label ? (n(), a("span", we, C(m.label), 1)) : v("", !0),
|
|
306
|
+
m.icon ? (n(), a("span", De, [
|
|
304
307
|
r("i", {
|
|
305
|
-
class: I(
|
|
308
|
+
class: I(m.icon)
|
|
306
309
|
}, null, 2)
|
|
307
|
-
])) :
|
|
310
|
+
])) : v("", !0)
|
|
308
311
|
], 512),
|
|
309
|
-
|
|
312
|
+
t.value ? (n(), a("div", {
|
|
310
313
|
key: 0,
|
|
311
314
|
class: "ddm-menu",
|
|
312
315
|
ref_key: "DropDownMenu",
|
|
313
316
|
ref: f,
|
|
314
|
-
style:
|
|
317
|
+
style: j({ "margin-top": b.value + "px" })
|
|
315
318
|
}, [
|
|
316
|
-
(
|
|
319
|
+
(n(!0), a(_, null, $(m.options, (c) => (n(), a("div", {
|
|
317
320
|
key: c.icon,
|
|
318
321
|
class: "ddm-item",
|
|
319
|
-
onClick: (
|
|
322
|
+
onClick: (s) => c.command(m.item)
|
|
320
323
|
}, [
|
|
321
324
|
r("i", {
|
|
322
325
|
class: I(c.icon)
|
|
323
326
|
}, null, 2),
|
|
324
|
-
|
|
325
|
-
], 8,
|
|
326
|
-
], 4)) :
|
|
327
|
-
], 8,
|
|
327
|
+
z(C(c.label), 1)
|
|
328
|
+
], 8, Be))), 128))
|
|
329
|
+
], 4)) : v("", !0)
|
|
330
|
+
], 8, $e));
|
|
328
331
|
}
|
|
329
|
-
}),
|
|
332
|
+
}), Te = { class: "fltrc-container" }, Le = { class: "fltrc-container" }, Ie = ["placeholder", "value"], Se = {
|
|
330
333
|
key: 1,
|
|
331
334
|
class: "d-flex flex-row input-group align-items-center"
|
|
332
|
-
},
|
|
335
|
+
}, Fe = ["value"], xe = ["value"], U = /* @__PURE__ */ w({
|
|
333
336
|
__name: "FilterCompact",
|
|
334
337
|
props: {
|
|
335
338
|
items: {}
|
|
336
339
|
},
|
|
337
|
-
setup(
|
|
338
|
-
const
|
|
339
|
-
let
|
|
340
|
-
|
|
341
|
-
}, f =
|
|
342
|
-
|
|
340
|
+
setup(p) {
|
|
341
|
+
const o = p, t = g(0), e = g(0), l = S(() => o.items[t.value].filter), d = (c) => {
|
|
342
|
+
let s = o.items[e.value];
|
|
343
|
+
s.filter.filtered(s.filter.key, ""), t.value = c, e.value = c, i.value += 1;
|
|
344
|
+
}, f = g(void 0);
|
|
345
|
+
F(() => {
|
|
343
346
|
let c = [];
|
|
344
|
-
for (let
|
|
347
|
+
for (let s = 0; s < o.items.length; s++)
|
|
345
348
|
c.push({
|
|
346
|
-
icon:
|
|
347
|
-
label:
|
|
348
|
-
command: () => d(
|
|
349
|
+
icon: o.items[s].icon,
|
|
350
|
+
label: o.items[s].label,
|
|
351
|
+
command: () => d(s)
|
|
349
352
|
});
|
|
350
353
|
f.value = c;
|
|
351
354
|
});
|
|
352
|
-
const b =
|
|
353
|
-
return (c,
|
|
354
|
-
f.value ? (
|
|
355
|
+
const b = g({}), m = g(void 0), i = g(0);
|
|
356
|
+
return (c, s) => (n(), a("div", Te, [
|
|
357
|
+
f.value ? (n(), B(N, {
|
|
355
358
|
key: 0,
|
|
356
359
|
id: "ddm",
|
|
357
|
-
icon: c.items[
|
|
358
|
-
item: c.items[
|
|
360
|
+
icon: c.items[t.value].icon,
|
|
361
|
+
item: c.items[t.value],
|
|
359
362
|
label: "",
|
|
360
363
|
options: f.value
|
|
361
|
-
}, null, 8, ["icon", "item", "options"])) :
|
|
362
|
-
r("div",
|
|
363
|
-
|
|
364
|
+
}, null, 8, ["icon", "item", "options"])) : v("", !0),
|
|
365
|
+
r("div", Le, [
|
|
366
|
+
l.value.type == "text" ? (n(), a("input", {
|
|
364
367
|
key: 0,
|
|
365
368
|
type: "text",
|
|
366
369
|
class: "form-control",
|
|
367
|
-
placeholder:
|
|
368
|
-
value:
|
|
369
|
-
onInput:
|
|
370
|
-
|
|
371
|
-
|
|
370
|
+
placeholder: l.value.placeholder,
|
|
371
|
+
value: l.value.defaultv ?? "",
|
|
372
|
+
onInput: s[0] || (s[0] = (u) => {
|
|
373
|
+
l.value.filtered(
|
|
374
|
+
l.value.key,
|
|
372
375
|
u.target.value
|
|
373
|
-
),
|
|
376
|
+
), l.value.defaultv = u.target.value;
|
|
374
377
|
})
|
|
375
|
-
}, null, 40,
|
|
376
|
-
|
|
378
|
+
}, null, 40, Ie)) : v("", !0),
|
|
379
|
+
l.value.type == "date" ? (n(), a("div", Se, [
|
|
377
380
|
r("input", {
|
|
378
381
|
type: "date",
|
|
379
382
|
class: "form-control",
|
|
380
|
-
value:
|
|
381
|
-
onInput:
|
|
382
|
-
b.value.from = u.target.value == "" ? null : u.target.value,
|
|
383
|
+
value: l.value.defFrom ?? "",
|
|
384
|
+
onInput: s[1] || (s[1] = (u) => {
|
|
385
|
+
b.value.from = u.target.value == "" ? null : u.target.value, l.value.defFrom = u.target.value == "" ? null : u.target.value, l.value.filtered(l.value.key, b.value);
|
|
383
386
|
})
|
|
384
|
-
}, null, 40,
|
|
385
|
-
|
|
387
|
+
}, null, 40, Fe),
|
|
388
|
+
s[5] || (s[5] = r("span", { class: "input-group-text" }, "-", -1)),
|
|
386
389
|
r("input", {
|
|
387
390
|
type: "date",
|
|
388
391
|
class: "form-control",
|
|
389
|
-
value:
|
|
390
|
-
onInput:
|
|
391
|
-
b.value.untill = u.target.value == "" ? null : u.target.value,
|
|
392
|
+
value: l.value.defTill ?? "",
|
|
393
|
+
onInput: s[2] || (s[2] = (u) => {
|
|
394
|
+
b.value.untill = u.target.value == "" ? null : u.target.value, l.value.defTill = u.target.value == "" ? null : u.target.value, l.value.filtered(l.value.key, b.value);
|
|
392
395
|
})
|
|
393
|
-
}, null, 40,
|
|
394
|
-
])) :
|
|
395
|
-
|
|
396
|
-
key:
|
|
397
|
-
selected:
|
|
398
|
-
options:
|
|
399
|
-
filterevent:
|
|
400
|
-
onFiltered:
|
|
401
|
-
|
|
396
|
+
}, null, 40, xe)
|
|
397
|
+
])) : v("", !0),
|
|
398
|
+
l.value.type == "dropdown" ? (n(), B(P, {
|
|
399
|
+
key: i.value,
|
|
400
|
+
selected: m.value,
|
|
401
|
+
options: l.value.options,
|
|
402
|
+
filterevent: l.value.filterevent,
|
|
403
|
+
onFiltered: s[3] || (s[3] = (u) => {
|
|
404
|
+
l.value.onfiltered && l.value.onfiltered(u);
|
|
402
405
|
}),
|
|
403
|
-
id:
|
|
404
|
-
label:
|
|
405
|
-
onSelected:
|
|
406
|
-
}, null, 8, ["selected", "options", "filterevent", "id", "label"])) :
|
|
406
|
+
id: l.value.key,
|
|
407
|
+
label: l.value.label,
|
|
408
|
+
onSelected: s[4] || (s[4] = (u) => l.value.filtered(l.value.key, u.id))
|
|
409
|
+
}, null, 8, ["selected", "options", "filterevent", "id", "label"])) : v("", !0)
|
|
407
410
|
])
|
|
408
411
|
]));
|
|
409
412
|
}
|
|
410
|
-
}),
|
|
413
|
+
}), Me = { class: "fltrctrl-container" }, Re = ["placeholder", "value"], Ee = {
|
|
411
414
|
key: 1,
|
|
412
415
|
class: "d-flex flex-row input-group align-items-center"
|
|
413
|
-
},
|
|
416
|
+
}, He = ["value"], ze = ["value"];
|
|
417
|
+
class Vt {
|
|
418
|
+
constructor(o, t, e) {
|
|
419
|
+
M(this, "type");
|
|
420
|
+
this.key = o, this.placeholder = t, this.filtered = e, this.type = "text";
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
class Nt {
|
|
424
|
+
constructor(o, t, e, l, d, f) {
|
|
425
|
+
M(this, "type");
|
|
426
|
+
this.key = o, this.label = t, this.options = e, this.filterevent = l, this.onfiltered = d, this.filtered = f, this.type = "dropdown";
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
class Gt {
|
|
430
|
+
constructor(o, t, e, l, d) {
|
|
431
|
+
M(this, "type");
|
|
432
|
+
this.key = o, this.label = t, this.filtered = e, this.defFrom = l, this.defTill = d, this.type = "date";
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
const R = g({}), q = /* @__PURE__ */ w({
|
|
414
436
|
__name: "FilterControl",
|
|
415
437
|
props: {
|
|
416
438
|
item: {}
|
|
417
439
|
},
|
|
418
|
-
setup(
|
|
419
|
-
const
|
|
420
|
-
|
|
440
|
+
setup(p) {
|
|
441
|
+
const o = p;
|
|
442
|
+
F(() => {
|
|
421
443
|
var e;
|
|
422
|
-
if (
|
|
423
|
-
const
|
|
424
|
-
|
|
425
|
-
(d) => d.id ==
|
|
444
|
+
if (o.item.type == "dropdown") {
|
|
445
|
+
const l = o.item;
|
|
446
|
+
t.value = (e = l.options.value.find(
|
|
447
|
+
(d) => d.id == o.item.defaultv
|
|
426
448
|
)) == null ? void 0 : e.id;
|
|
427
449
|
}
|
|
428
450
|
});
|
|
429
|
-
const
|
|
430
|
-
return (e,
|
|
431
|
-
e.item.type == "text" ? (
|
|
451
|
+
const t = g(void 0);
|
|
452
|
+
return (e, l) => (n(), a("div", Me, [
|
|
453
|
+
e.item.type == "text" ? (n(), a("input", {
|
|
432
454
|
key: 0,
|
|
433
455
|
type: "text",
|
|
434
456
|
class: "form-control",
|
|
435
457
|
placeholder: e.item.placeholder,
|
|
436
458
|
value: e.item.defaultv ?? "",
|
|
437
|
-
onInput:
|
|
438
|
-
}, null, 40,
|
|
439
|
-
e.item.type == "date" ? (
|
|
459
|
+
onInput: l[0] || (l[0] = (d) => e.item.filtered(e.item.key, d.target.value))
|
|
460
|
+
}, null, 40, Re)) : v("", !0),
|
|
461
|
+
e.item.type == "date" ? (n(), a("div", Ee, [
|
|
440
462
|
r("input", {
|
|
441
463
|
type: "date",
|
|
442
464
|
class: "form-control",
|
|
443
465
|
value: e.item.defFrom ?? "",
|
|
444
|
-
onInput:
|
|
445
|
-
|
|
466
|
+
onInput: l[1] || (l[1] = (d) => {
|
|
467
|
+
R.value.from = d.target.value == "" ? null : d.target.value, e.item.filtered(e.item.key, R.value);
|
|
446
468
|
})
|
|
447
|
-
}, null, 40,
|
|
448
|
-
|
|
469
|
+
}, null, 40, He),
|
|
470
|
+
l[5] || (l[5] = r("span", { class: "input-group-text" }, "-", -1)),
|
|
449
471
|
r("input", {
|
|
450
472
|
type: "date",
|
|
451
473
|
class: "form-control",
|
|
452
474
|
value: e.item.defTill ?? "",
|
|
453
|
-
onInput:
|
|
454
|
-
|
|
475
|
+
onInput: l[2] || (l[2] = (d) => {
|
|
476
|
+
R.value.untill = d.target.value == "" ? null : d.target.value, e.item.filtered(e.item.key, R.value);
|
|
455
477
|
})
|
|
456
|
-
}, null, 40,
|
|
457
|
-
])) :
|
|
458
|
-
e.item.type == "dropdown" ? (
|
|
478
|
+
}, null, 40, ze)
|
|
479
|
+
])) : v("", !0),
|
|
480
|
+
e.item.type == "dropdown" ? (n(), B(P, {
|
|
459
481
|
key: 2,
|
|
460
|
-
selected:
|
|
461
|
-
options:
|
|
482
|
+
selected: t.value,
|
|
483
|
+
options: g(e.item.options),
|
|
462
484
|
filterevent: e.item.filterevent,
|
|
463
|
-
onFiltered:
|
|
485
|
+
onFiltered: l[3] || (l[3] = (d) => {
|
|
464
486
|
e.item.onfiltered && e.item.onfiltered(d);
|
|
465
487
|
}),
|
|
466
488
|
id: e.item.key,
|
|
467
489
|
label: e.item.label,
|
|
468
|
-
onSelected:
|
|
469
|
-
}, null, 8, ["selected", "options", "filterevent", "id", "label"])) :
|
|
490
|
+
onSelected: l[4] || (l[4] = (d) => e.item.filtered(e.item.key, d.id))
|
|
491
|
+
}, null, 8, ["selected", "options", "filterevent", "id", "label"])) : v("", !0)
|
|
470
492
|
]));
|
|
471
493
|
}
|
|
472
|
-
}),
|
|
494
|
+
}), G = /* @__PURE__ */ w({
|
|
473
495
|
__name: "IconButton",
|
|
474
496
|
props: {
|
|
475
497
|
icon: {},
|
|
@@ -477,12 +499,12 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], j = /*
|
|
|
477
499
|
big: { type: Boolean }
|
|
478
500
|
},
|
|
479
501
|
emits: ["click"],
|
|
480
|
-
setup(
|
|
481
|
-
const
|
|
482
|
-
() => `${
|
|
483
|
-
),
|
|
484
|
-
return (d, f) => (
|
|
485
|
-
onClick: f[0] || (f[0] = (b) =>
|
|
502
|
+
setup(p, { emit: o }) {
|
|
503
|
+
const t = p, e = S(
|
|
504
|
+
() => `${t.icon} ${t.big ? "ib-button-big" : ""}`
|
|
505
|
+
), l = o;
|
|
506
|
+
return (d, f) => (n(), a("div", {
|
|
507
|
+
onClick: f[0] || (f[0] = (b) => l("click")),
|
|
486
508
|
class: "ib-container"
|
|
487
509
|
}, [
|
|
488
510
|
r("div", {
|
|
@@ -494,33 +516,33 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], j = /*
|
|
|
494
516
|
], 2)
|
|
495
517
|
]));
|
|
496
518
|
}
|
|
497
|
-
}),
|
|
519
|
+
}), Pe = { class: "pc-container" }, Oe = ["value", "max"], J = /* @__PURE__ */ w({
|
|
498
520
|
__name: "PaginatorControl",
|
|
499
521
|
props: {
|
|
500
522
|
settings: {}
|
|
501
523
|
},
|
|
502
524
|
emits: ["pagesize", "page"],
|
|
503
|
-
setup(
|
|
504
|
-
const
|
|
505
|
-
let
|
|
506
|
-
return
|
|
507
|
-
(c) =>
|
|
508
|
-
),
|
|
509
|
-
}, d =
|
|
510
|
-
|
|
511
|
-
() =>
|
|
525
|
+
setup(p, { emit: o }) {
|
|
526
|
+
const t = p, e = o, l = () => {
|
|
527
|
+
let i = g([]);
|
|
528
|
+
return t.settings.value.sizes.forEach(
|
|
529
|
+
(c) => i.value.push({ label: c.toString(), id: c.toString() })
|
|
530
|
+
), i;
|
|
531
|
+
}, d = g(1);
|
|
532
|
+
E(
|
|
533
|
+
() => t.settings.value,
|
|
512
534
|
() => {
|
|
513
535
|
d.value = 1;
|
|
514
536
|
}
|
|
515
537
|
);
|
|
516
538
|
const f = S(
|
|
517
|
-
() => Math.floor(
|
|
539
|
+
() => Math.floor(t.settings.value.total / t.settings.value.pagesize) + 1
|
|
518
540
|
), b = () => {
|
|
519
541
|
d.value > 1 && (d.value -= 1, e("page", d.value));
|
|
520
|
-
},
|
|
542
|
+
}, m = () => {
|
|
521
543
|
d.value < f.value && (d.value += 1, e("page", d.value));
|
|
522
544
|
};
|
|
523
|
-
return (
|
|
545
|
+
return (i, c) => (n(), a("div", Pe, [
|
|
524
546
|
r("button", {
|
|
525
547
|
class: "btn btn-outline-secondary",
|
|
526
548
|
onClick: b
|
|
@@ -531,27 +553,27 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], j = /*
|
|
|
531
553
|
value: d.value,
|
|
532
554
|
min: "1",
|
|
533
555
|
max: f.value,
|
|
534
|
-
onChange: c[0] || (c[0] = (
|
|
535
|
-
}, null, 40,
|
|
536
|
-
|
|
556
|
+
onChange: c[0] || (c[0] = (s) => i.$emit("page", s.target.value))
|
|
557
|
+
}, null, 40, Oe),
|
|
558
|
+
z("/" + C(f.value) + " ", 1),
|
|
537
559
|
r("button", {
|
|
538
560
|
class: "btn btn-outline-secondary",
|
|
539
|
-
onClick:
|
|
561
|
+
onClick: m
|
|
540
562
|
}, ">"),
|
|
541
|
-
|
|
563
|
+
H(P, {
|
|
542
564
|
opentop: !0,
|
|
543
565
|
class: "pc-dropdown",
|
|
544
566
|
id: "pagecount",
|
|
545
567
|
label: "10",
|
|
546
|
-
selected:
|
|
547
|
-
options:
|
|
548
|
-
onSelected: c[1] || (c[1] = (
|
|
549
|
-
d.value = 1,
|
|
568
|
+
selected: i.settings.value.pagesize.toString(),
|
|
569
|
+
options: l(),
|
|
570
|
+
onSelected: c[1] || (c[1] = (s) => {
|
|
571
|
+
d.value = 1, i.$emit("pagesize", parseInt(s.id));
|
|
550
572
|
})
|
|
551
573
|
}, null, 8, ["selected", "options"])
|
|
552
574
|
]));
|
|
553
575
|
}
|
|
554
|
-
}),
|
|
576
|
+
}), je = { class: "form-check" }, Ve = ["name", "id", "checked"], Ne = ["for"], Q = /* @__PURE__ */ w({
|
|
555
577
|
__name: "RadioButton",
|
|
556
578
|
props: {
|
|
557
579
|
group: {},
|
|
@@ -560,296 +582,296 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], j = /*
|
|
|
560
582
|
selected: { type: Boolean }
|
|
561
583
|
},
|
|
562
584
|
emits: ["selected"],
|
|
563
|
-
setup(
|
|
564
|
-
return (
|
|
585
|
+
setup(p) {
|
|
586
|
+
return (o, t) => (n(), a("div", je, [
|
|
565
587
|
r("input", {
|
|
566
588
|
class: "form-check-input",
|
|
567
589
|
type: "radio",
|
|
568
|
-
name:
|
|
569
|
-
id:
|
|
570
|
-
checked:
|
|
571
|
-
onChange:
|
|
572
|
-
}, null, 40,
|
|
590
|
+
name: o.group,
|
|
591
|
+
id: o.id,
|
|
592
|
+
checked: o.selected,
|
|
593
|
+
onChange: t[0] || (t[0] = (e) => o.$emit("selected", o.id))
|
|
594
|
+
}, null, 40, Ve),
|
|
573
595
|
r("label", {
|
|
574
596
|
class: "form-check-label",
|
|
575
|
-
for:
|
|
576
|
-
}, C(
|
|
597
|
+
for: o.id
|
|
598
|
+
}, C(o.label), 9, Ne)
|
|
577
599
|
]));
|
|
578
600
|
}
|
|
579
|
-
}),
|
|
601
|
+
}), Ge = { class: "d-flex flex-column gap-2 justify-content-around" }, We = /* @__PURE__ */ w({
|
|
580
602
|
__name: "RadioButtonGroup",
|
|
581
603
|
props: {
|
|
582
604
|
group: {},
|
|
583
605
|
items: {}
|
|
584
606
|
},
|
|
585
607
|
emits: ["selected"],
|
|
586
|
-
setup(
|
|
587
|
-
return (
|
|
588
|
-
(
|
|
608
|
+
setup(p) {
|
|
609
|
+
return (o, t) => (n(), a("div", Ge, [
|
|
610
|
+
(n(!0), a(_, null, $(o.items, (e) => (n(), B(Q, {
|
|
589
611
|
key: e.id,
|
|
590
612
|
id: e.id,
|
|
591
613
|
label: e.label,
|
|
592
|
-
group:
|
|
614
|
+
group: o.group,
|
|
593
615
|
selected: e.selected,
|
|
594
|
-
onSelected:
|
|
616
|
+
onSelected: t[0] || (t[0] = (l) => o.$emit("selected", l))
|
|
595
617
|
}, null, 8, ["id", "label", "group", "selected"]))), 128))
|
|
596
618
|
]));
|
|
597
619
|
}
|
|
598
|
-
}),
|
|
620
|
+
}), Ae = {
|
|
599
621
|
key: 0,
|
|
600
622
|
class: "spinner-border",
|
|
601
623
|
role: "status"
|
|
602
|
-
},
|
|
624
|
+
}, Ke = /* @__PURE__ */ w({
|
|
603
625
|
__name: "SpinningProgress",
|
|
604
626
|
props: {
|
|
605
627
|
loading: { type: Boolean }
|
|
606
628
|
},
|
|
607
|
-
setup(
|
|
608
|
-
return (
|
|
629
|
+
setup(p) {
|
|
630
|
+
return (o, t) => o.loading ? (n(), a("div", Ae, t[0] || (t[0] = [
|
|
609
631
|
r("span", { class: "visually-hidden" }, "Loading...", -1)
|
|
610
|
-
]))) :
|
|
632
|
+
]))) : v("", !0);
|
|
611
633
|
}
|
|
612
|
-
}),
|
|
634
|
+
}), Ue = { class: "t2l-table-view t2l-table-header-label" }, qe = {
|
|
613
635
|
key: 0,
|
|
614
636
|
class: "t2l-select"
|
|
615
|
-
},
|
|
637
|
+
}, Je = {
|
|
616
638
|
key: 1,
|
|
617
639
|
class: "t2l-cell"
|
|
618
|
-
},
|
|
640
|
+
}, Qe = { class: "t2l-table-view t2l-table-header-filter" }, Xe = {
|
|
619
641
|
key: 0,
|
|
620
642
|
class: "t2l-select"
|
|
621
|
-
},
|
|
643
|
+
}, Ye = {
|
|
622
644
|
key: 1,
|
|
623
645
|
class: "t2l-cell"
|
|
624
|
-
},
|
|
646
|
+
}, Ze = { class: "t2l-table-view t2l-rows" }, et = {
|
|
625
647
|
key: 0,
|
|
626
648
|
class: "t2l-select"
|
|
627
|
-
},
|
|
649
|
+
}, tt = ["id", "onChange"], lt = ["innerHTML"], ot = {
|
|
628
650
|
key: 1,
|
|
629
651
|
class: "t2l-cell t2l-actions"
|
|
630
|
-
},
|
|
652
|
+
}, st = ["title", "disabled", "onClick"], nt = { class: "t2l-card-view t2l-card-filters" }, it = { class: "t2l-card-filter-order" }, at = { class: "t2l-card-filter-search" }, rt = { class: "t2l-card-view t2l-rows" }, dt = {
|
|
631
653
|
key: 0,
|
|
632
654
|
class: "t2l-card-select"
|
|
633
|
-
},
|
|
655
|
+
}, ut = ["id", "onChange"], ct = {
|
|
634
656
|
key: 0,
|
|
635
657
|
class: "t2l-property"
|
|
636
|
-
},
|
|
658
|
+
}, pt = { class: "t2l-label" }, vt = ["innerHTML"], ft = { class: "d-flex align-items-center" }, mt = {
|
|
637
659
|
key: 1,
|
|
638
660
|
class: "d-flex justify-content-center t2l-footer"
|
|
639
|
-
},
|
|
661
|
+
}, gt = /* @__PURE__ */ w({
|
|
640
662
|
__name: "TableToList",
|
|
641
663
|
props: {
|
|
642
664
|
items: {},
|
|
643
665
|
config: {}
|
|
644
666
|
},
|
|
645
667
|
emits: ["pagesize", "page"],
|
|
646
|
-
setup(
|
|
647
|
-
const
|
|
648
|
-
() =>
|
|
668
|
+
setup(p) {
|
|
669
|
+
const o = p, t = S(
|
|
670
|
+
() => o.config.columns.filter((i) => i.visible != !1)
|
|
649
671
|
), e = S(
|
|
650
|
-
() =>
|
|
651
|
-
),
|
|
652
|
-
() =>
|
|
653
|
-
(
|
|
672
|
+
() => o.config.columns.filter((i) => i.visible != !1 && i.filter)
|
|
673
|
+
), l = S(
|
|
674
|
+
() => t.value.filter(
|
|
675
|
+
(i) => i.sort && i.sort.active && i.sort.active.value
|
|
654
676
|
)
|
|
655
|
-
), d = S(() => Math.ceil(
|
|
656
|
-
var
|
|
657
|
-
return
|
|
658
|
-
}, b = (
|
|
659
|
-
if (
|
|
660
|
-
let c = !
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
}),
|
|
677
|
+
), d = S(() => Math.ceil(t.value.length / o.config.smColCount)), f = (i, c) => {
|
|
678
|
+
var s = i - 1 + (c - 1) * d.value;
|
|
679
|
+
return s < t.value.length ? t.value[s] : null;
|
|
680
|
+
}, b = (i, c) => i.converter ? i.converter(c[i.property], c) : c[i.property], m = (i) => {
|
|
681
|
+
if (i.sort && i.sort.active) {
|
|
682
|
+
let c = !i.sort.active.value;
|
|
683
|
+
o.config.columns.forEach((s) => {
|
|
684
|
+
s.sort && s.sort.active && (s.sort.active.value = !1);
|
|
685
|
+
}), i.sort.active.value = c, i.sort.callback(c ? i.property : "");
|
|
664
686
|
}
|
|
665
687
|
};
|
|
666
|
-
return (
|
|
667
|
-
r("div",
|
|
668
|
-
|
|
669
|
-
(
|
|
688
|
+
return (i, c) => (n(), a(_, null, [
|
|
689
|
+
r("div", Ue, [
|
|
690
|
+
i.config.selectableId ? (n(), a("span", qe)) : v("", !0),
|
|
691
|
+
(n(!0), a(_, null, $(t.value, (s) => {
|
|
670
692
|
var u, y;
|
|
671
|
-
return
|
|
693
|
+
return n(), a("span", {
|
|
672
694
|
class: "t2l-cell",
|
|
673
|
-
key:
|
|
695
|
+
key: s.property
|
|
674
696
|
}, [
|
|
675
|
-
|
|
697
|
+
s.sort ? (n(), B(G, {
|
|
676
698
|
key: 0,
|
|
677
|
-
icon:
|
|
678
|
-
onClick: (D) =>
|
|
679
|
-
active: (y = (u =
|
|
680
|
-
}, null, 8, ["icon", "onClick", "active"])) :
|
|
681
|
-
|
|
699
|
+
icon: s.sort.icon,
|
|
700
|
+
onClick: (D) => m(s),
|
|
701
|
+
active: (y = (u = s.sort) == null ? void 0 : u.active) == null ? void 0 : y.value
|
|
702
|
+
}, null, 8, ["icon", "onClick", "active"])) : v("", !0),
|
|
703
|
+
z(" " + C(s.label), 1)
|
|
682
704
|
]);
|
|
683
705
|
}), 128)),
|
|
684
|
-
|
|
706
|
+
i.config.actionHeader ? (n(), a("span", Je, C(i.config.actionHeader), 1)) : v("", !0)
|
|
685
707
|
]),
|
|
686
|
-
r("div",
|
|
687
|
-
|
|
688
|
-
(
|
|
708
|
+
r("div", Qe, [
|
|
709
|
+
i.config.selectableId ? (n(), a("span", Xe)) : v("", !0),
|
|
710
|
+
(n(!0), a(_, null, $(t.value, (s) => (n(), a("span", {
|
|
689
711
|
class: "t2l-cell",
|
|
690
|
-
key:
|
|
712
|
+
key: s.label
|
|
691
713
|
}, [
|
|
692
|
-
|
|
714
|
+
s.filter ? (n(), B(q, {
|
|
693
715
|
key: 0,
|
|
694
|
-
item:
|
|
695
|
-
}, null, 8, ["item"])) :
|
|
716
|
+
item: s.filter
|
|
717
|
+
}, null, 8, ["item"])) : v("", !0)
|
|
696
718
|
]))), 128)),
|
|
697
|
-
|
|
719
|
+
i.config.actionHeader ? (n(), a("span", Ye)) : v("", !0)
|
|
698
720
|
]),
|
|
699
|
-
r("div",
|
|
700
|
-
(
|
|
701
|
-
key:
|
|
721
|
+
r("div", Ze, [
|
|
722
|
+
(n(!0), a(_, null, $(i.items, (s) => (n(), a("div", {
|
|
723
|
+
key: s,
|
|
702
724
|
class: "t2l-row"
|
|
703
725
|
}, [
|
|
704
|
-
|
|
726
|
+
i.config.selectableId ? (n(), a("div", et, [
|
|
705
727
|
r("input", {
|
|
706
728
|
class: "form-check-input",
|
|
707
729
|
type: "checkbox",
|
|
708
|
-
id:
|
|
709
|
-
onChange: (u) =>
|
|
710
|
-
}, null, 40,
|
|
711
|
-
])) :
|
|
712
|
-
(
|
|
730
|
+
id: s[i.config.selectableId],
|
|
731
|
+
onChange: (u) => s.selected = !s.selected
|
|
732
|
+
}, null, 40, tt)
|
|
733
|
+
])) : v("", !0),
|
|
734
|
+
(n(!0), a(_, null, $(t.value, (u) => (n(), a("div", {
|
|
713
735
|
class: "t2l-cell",
|
|
714
736
|
key: u.property,
|
|
715
|
-
innerHTML: b(u,
|
|
716
|
-
}, null, 8,
|
|
717
|
-
|
|
718
|
-
(
|
|
737
|
+
innerHTML: b(u, s)
|
|
738
|
+
}, null, 8, lt))), 128)),
|
|
739
|
+
i.config.actions ? (n(), a("div", ot, [
|
|
740
|
+
(n(!0), a(_, null, $(i.config.actions, (u) => (n(), a("button", {
|
|
719
741
|
key: u,
|
|
720
742
|
type: "button",
|
|
721
743
|
class: "btn btn-outline-secondary",
|
|
722
744
|
title: u.label,
|
|
723
|
-
disabled: !u.enabled(
|
|
724
|
-
onClick: (y) => u.command(
|
|
745
|
+
disabled: !u.enabled(s),
|
|
746
|
+
onClick: (y) => u.command(s)
|
|
725
747
|
}, [
|
|
726
748
|
r("i", {
|
|
727
749
|
class: I(u.icon)
|
|
728
750
|
}, null, 2)
|
|
729
|
-
], 8,
|
|
730
|
-
])) :
|
|
751
|
+
], 8, st))), 128))
|
|
752
|
+
])) : v("", !0)
|
|
731
753
|
]))), 128))
|
|
732
754
|
]),
|
|
733
|
-
r("div",
|
|
734
|
-
r("div",
|
|
735
|
-
|
|
755
|
+
r("div", nt, [
|
|
756
|
+
r("div", it, [
|
|
757
|
+
H(K, {
|
|
736
758
|
id: "card-filter-order",
|
|
737
759
|
default: {
|
|
738
760
|
icon: "fa-solid fa-chevron-down",
|
|
739
761
|
label: "rendezés"
|
|
740
762
|
},
|
|
741
|
-
selected:
|
|
742
|
-
enabled:
|
|
743
|
-
options:
|
|
744
|
-
|
|
745
|
-
icon:
|
|
746
|
-
label:
|
|
747
|
-
value:
|
|
748
|
-
callback:
|
|
763
|
+
selected: l.value.length > 0 ? l.value[0].property : "",
|
|
764
|
+
enabled: i.config.sortEnabled,
|
|
765
|
+
options: g(
|
|
766
|
+
t.value.filter((s) => s.sort).map((s) => ({
|
|
767
|
+
icon: s.sort.icon,
|
|
768
|
+
label: s.sort.label,
|
|
769
|
+
value: s.property,
|
|
770
|
+
callback: s.sort.callback
|
|
749
771
|
}))
|
|
750
772
|
)
|
|
751
773
|
}, null, 8, ["selected", "enabled", "options"])
|
|
752
774
|
]),
|
|
753
|
-
r("div",
|
|
754
|
-
|
|
755
|
-
items: e.value.map((
|
|
756
|
-
filter:
|
|
757
|
-
icon:
|
|
758
|
-
label:
|
|
775
|
+
r("div", at, [
|
|
776
|
+
H(U, {
|
|
777
|
+
items: e.value.map((s) => ({
|
|
778
|
+
filter: s.filter,
|
|
779
|
+
icon: s.filterIcon,
|
|
780
|
+
label: s.label
|
|
759
781
|
}))
|
|
760
782
|
}, null, 8, ["items"])
|
|
761
783
|
])
|
|
762
784
|
]),
|
|
763
|
-
r("div",
|
|
764
|
-
(
|
|
785
|
+
r("div", rt, [
|
|
786
|
+
(n(!0), a(_, null, $(i.items, (s, u) => (n(), a("div", {
|
|
765
787
|
class: "t2l-row",
|
|
766
788
|
key: u
|
|
767
789
|
}, [
|
|
768
|
-
|
|
790
|
+
i.config.selectableId ? (n(), a("div", dt, [
|
|
769
791
|
r("input", {
|
|
770
792
|
class: "form-check-input",
|
|
771
793
|
type: "checkbox",
|
|
772
|
-
id:
|
|
773
|
-
onChange: (y) =>
|
|
774
|
-
}, null, 40,
|
|
775
|
-
])) :
|
|
776
|
-
(
|
|
794
|
+
id: s[i.config.selectableId],
|
|
795
|
+
onChange: (y) => s.selected = !s.selected
|
|
796
|
+
}, null, 40, ut)
|
|
797
|
+
])) : v("", !0),
|
|
798
|
+
(n(!0), a(_, null, $(i.config.smColCount, (y) => (n(), a("div", {
|
|
777
799
|
class: "t2l-card-col",
|
|
778
800
|
key: y
|
|
779
801
|
}, [
|
|
780
|
-
(
|
|
781
|
-
f(D, y) ? (
|
|
782
|
-
r("span",
|
|
802
|
+
(n(!0), a(_, null, $(d.value, (D) => (n(), a(_, { key: D }, [
|
|
803
|
+
f(D, y) ? (n(), a("div", ct, [
|
|
804
|
+
r("span", pt, C(f(D, y).label), 1),
|
|
783
805
|
r("div", {
|
|
784
|
-
innerHTML: b(f(D, y),
|
|
785
|
-
}, null, 8,
|
|
786
|
-
])) :
|
|
806
|
+
innerHTML: b(f(D, y), s)
|
|
807
|
+
}, null, 8, vt)
|
|
808
|
+
])) : v("", !0)
|
|
787
809
|
], 64))), 128))
|
|
788
810
|
]))), 128)),
|
|
789
|
-
r("div",
|
|
790
|
-
|
|
811
|
+
r("div", ft, [
|
|
812
|
+
o.config.actions ? (n(), B(N, {
|
|
791
813
|
key: 0,
|
|
792
|
-
item:
|
|
793
|
-
options:
|
|
814
|
+
item: s,
|
|
815
|
+
options: o.config.actions,
|
|
794
816
|
label: "...",
|
|
795
817
|
id: u.toString(),
|
|
796
818
|
right: !0
|
|
797
|
-
}, null, 8, ["item", "options", "id"])) :
|
|
819
|
+
}, null, 8, ["item", "options", "id"])) : v("", !0)
|
|
798
820
|
])
|
|
799
821
|
]))), 128))
|
|
800
822
|
]),
|
|
801
|
-
|
|
823
|
+
i.config.paginatorSettings ? (n(), B(J, {
|
|
802
824
|
key: 0,
|
|
803
|
-
settings:
|
|
804
|
-
onPagesize: c[0] || (c[0] = (
|
|
805
|
-
onPage: c[1] || (c[1] = (
|
|
806
|
-
}, null, 8, ["settings"])) :
|
|
807
|
-
|
|
825
|
+
settings: i.config.paginatorSettings,
|
|
826
|
+
onPagesize: c[0] || (c[0] = (s) => i.$emit("pagesize", s)),
|
|
827
|
+
onPage: c[1] || (c[1] = (s) => i.$emit("page", s))
|
|
828
|
+
}, null, 8, ["settings"])) : v("", !0),
|
|
829
|
+
i.config.paginatorSettings ? v("", !0) : (n(), a("div", mt, " Elemek: " + C(o.items.length), 1))
|
|
808
830
|
], 64));
|
|
809
831
|
}
|
|
810
|
-
}),
|
|
832
|
+
}), bt = { class: "d-flex flex flex-row" }, yt = {
|
|
811
833
|
key: 1,
|
|
812
834
|
class: "d-flex flex-column gap-2 options-body flex-grow-1"
|
|
813
|
-
},
|
|
835
|
+
}, ht = { class: "d-flex flex-row" }, kt = { class: "d-flex align-items-end" }, _t = ["disabled"], Ct = /* @__PURE__ */ w({
|
|
814
836
|
__name: "TableToListOptions",
|
|
815
837
|
props: {
|
|
816
838
|
colCount: {},
|
|
817
839
|
options: {}
|
|
818
840
|
},
|
|
819
841
|
emits: ["save"],
|
|
820
|
-
setup(
|
|
821
|
-
const
|
|
822
|
-
|
|
823
|
-
e.value =
|
|
842
|
+
setup(p, { emit: o }) {
|
|
843
|
+
const t = p, e = g([]);
|
|
844
|
+
F(() => {
|
|
845
|
+
e.value = t.options, c();
|
|
824
846
|
});
|
|
825
|
-
const
|
|
826
|
-
() =>
|
|
827
|
-
), d = (
|
|
828
|
-
var y =
|
|
847
|
+
const l = S(
|
|
848
|
+
() => t.colCount != 0 ? Math.ceil(t.options.length / t.colCount) : 0
|
|
849
|
+
), d = (s, u) => {
|
|
850
|
+
var y = t.options[(s - 1) * l.value + u - 1];
|
|
829
851
|
return y;
|
|
830
852
|
}, f = () => {
|
|
831
853
|
b("save", e.value);
|
|
832
|
-
}, b =
|
|
833
|
-
|
|
854
|
+
}, b = o, m = g(!1), i = g(!0), c = () => {
|
|
855
|
+
i.value = e.value.filter((s) => s.checked).length <= 1;
|
|
834
856
|
};
|
|
835
|
-
return (
|
|
836
|
-
|
|
857
|
+
return (s, u) => (n(), a("div", bt, [
|
|
858
|
+
m.value ? v("", !0) : (n(), a("div", {
|
|
837
859
|
key: 0,
|
|
838
860
|
class: "d-flex flex-row align-items-center gap-2 options-header justify-content-start",
|
|
839
|
-
onClick: u[0] || (u[0] = (y) =>
|
|
861
|
+
onClick: u[0] || (u[0] = (y) => m.value = !m.value)
|
|
840
862
|
}, u[2] || (u[2] = [
|
|
841
863
|
r("i", { class: "fa-solid fa-cog" }, null, -1),
|
|
842
864
|
r("div", { class: "options-header-label" }, "beállítások", -1)
|
|
843
865
|
]))),
|
|
844
|
-
|
|
866
|
+
m.value ? (n(), a("div", yt, [
|
|
845
867
|
u[4] || (u[4] = r("div", { class: "options-header-label" }, "Látható oszlopok", -1)),
|
|
846
|
-
r("div",
|
|
847
|
-
(
|
|
868
|
+
r("div", ht, [
|
|
869
|
+
(n(!0), a(_, null, $(s.colCount, (y) => (n(), a("div", {
|
|
848
870
|
class: "d-flex flex-grow-1 flex-column",
|
|
849
871
|
key: y
|
|
850
872
|
}, [
|
|
851
|
-
(
|
|
852
|
-
d(y, D) ? (
|
|
873
|
+
(n(!0), a(_, null, $(l.value, (D) => (n(), a(_, { key: D }, [
|
|
874
|
+
d(y, D) ? (n(), B(V, {
|
|
853
875
|
key: 0,
|
|
854
876
|
id: d(y, D).property,
|
|
855
877
|
label: d(y, D).label,
|
|
@@ -859,86 +881,86 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], j = /*
|
|
|
859
881
|
(L) => L.property == x.id
|
|
860
882
|
).checked = x.checked, c();
|
|
861
883
|
})
|
|
862
|
-
}, null, 8, ["id", "label", "checked"])) :
|
|
884
|
+
}, null, 8, ["id", "label", "checked"])) : v("", !0)
|
|
863
885
|
], 64))), 128))
|
|
864
886
|
]))), 128)),
|
|
865
|
-
r("div",
|
|
887
|
+
r("div", kt, [
|
|
866
888
|
r("button", {
|
|
867
889
|
class: "btn btn-outline-secondary",
|
|
868
890
|
type: "button",
|
|
869
891
|
onClick: f,
|
|
870
|
-
disabled:
|
|
892
|
+
disabled: i.value
|
|
871
893
|
}, u[3] || (u[3] = [
|
|
872
894
|
r("i", { class: "fa-solid fa-save" }, null, -1)
|
|
873
|
-
]), 8,
|
|
895
|
+
]), 8, _t)
|
|
874
896
|
])
|
|
875
897
|
])
|
|
876
|
-
])) :
|
|
898
|
+
])) : v("", !0)
|
|
877
899
|
]));
|
|
878
900
|
}
|
|
879
|
-
}),
|
|
901
|
+
}), $t = { class: "tlb-container d-flex flex-column flex-grow-1" }, wt = { class: "d-flex flex-row tlb-item" }, Dt = { class: "d-flex flex-column flex-grow-1 flex-sm-row justify-content-between tlb-item" }, Bt = ["id"], Tt = {
|
|
880
902
|
key: 0,
|
|
881
903
|
class: "d-flex id"
|
|
882
|
-
},
|
|
904
|
+
}, Lt = { class: "d-flex flex-row align-items-center tlb-children-container" }, It = /* @__PURE__ */ w({
|
|
883
905
|
__name: "TextListBox",
|
|
884
906
|
props: {
|
|
885
907
|
items: {}
|
|
886
908
|
},
|
|
887
909
|
emits: ["deleted"],
|
|
888
|
-
setup(
|
|
889
|
-
return (
|
|
890
|
-
const e =
|
|
891
|
-
return
|
|
892
|
-
(
|
|
910
|
+
setup(p) {
|
|
911
|
+
return (o, t) => {
|
|
912
|
+
const e = A("TextListBox", !0);
|
|
913
|
+
return n(), a("div", $t, [
|
|
914
|
+
(n(!0), a(_, null, $(o.items, (l) => (n(), a("div", {
|
|
893
915
|
class: "d-flex flex-column",
|
|
894
|
-
key:
|
|
916
|
+
key: l.id
|
|
895
917
|
}, [
|
|
896
|
-
r("div",
|
|
897
|
-
r("div",
|
|
918
|
+
r("div", wt, [
|
|
919
|
+
r("div", Dt, [
|
|
898
920
|
r("div", {
|
|
899
921
|
class: "d-flex flex-grow-1",
|
|
900
|
-
id:
|
|
901
|
-
}, C(
|
|
902
|
-
|
|
922
|
+
id: l.id
|
|
923
|
+
}, C(l.label), 9, Bt),
|
|
924
|
+
l.showId ? (n(), a("div", Tt, C(l.id), 1)) : v("", !0)
|
|
903
925
|
]),
|
|
904
|
-
|
|
926
|
+
l.hideDelete ? v("", !0) : (n(), B(G, {
|
|
905
927
|
key: 0,
|
|
906
928
|
icon: "fa-solid fa-trash",
|
|
907
|
-
onClick: (d) =>
|
|
929
|
+
onClick: (d) => o.$emit("deleted", l.id)
|
|
908
930
|
}, null, 8, ["onClick"]))
|
|
909
931
|
]),
|
|
910
|
-
r("div",
|
|
911
|
-
|
|
932
|
+
r("div", Lt, [
|
|
933
|
+
l.childrend ? (n(), B(e, {
|
|
912
934
|
key: 0,
|
|
913
|
-
items:
|
|
914
|
-
showId:
|
|
915
|
-
hideDelete:
|
|
916
|
-
}, null, 8, ["items", "showId", "hideDelete"])) :
|
|
935
|
+
items: l.childrend,
|
|
936
|
+
showId: l.showId,
|
|
937
|
+
hideDelete: l.hideDelete
|
|
938
|
+
}, null, 8, ["items", "showId", "hideDelete"])) : v("", !0)
|
|
917
939
|
])
|
|
918
940
|
]))), 128))
|
|
919
941
|
]);
|
|
920
942
|
};
|
|
921
943
|
}
|
|
922
|
-
}),
|
|
944
|
+
}), St = {
|
|
923
945
|
key: 0,
|
|
924
946
|
class: "toast-container position-fixed bottom-0 start-50 translate-middle-x p-4 toast-zindex"
|
|
925
|
-
},
|
|
947
|
+
}, Ft = { class: "toast-header" }, xt = { class: "me-auto" }, Mt = { class: "text-body-secondary" }, Rt = ["onClick"], Et = ["innerHTML"], W = 500, X = /* @__PURE__ */ w({
|
|
926
948
|
__name: "ToastComponent",
|
|
927
949
|
props: {
|
|
928
950
|
defaultDisplayDuration: {}
|
|
929
951
|
},
|
|
930
|
-
setup(
|
|
931
|
-
const
|
|
932
|
-
return
|
|
952
|
+
setup(p, { expose: o }) {
|
|
953
|
+
const t = p, e = g([]);
|
|
954
|
+
return o({
|
|
933
955
|
addToast: (d) => {
|
|
934
|
-
d.displayDuration || (d.displayDuration =
|
|
956
|
+
d.displayDuration || (d.displayDuration = t.defaultDisplayDuration), d.id = /* @__PURE__ */ new Date(), e.value.filter(function(f) {
|
|
935
957
|
return f.id !== d.id;
|
|
936
958
|
}), e.value.push(d);
|
|
937
959
|
}
|
|
938
960
|
}), setInterval(() => {
|
|
939
|
-
e.value = e.value.map((d) => (d.displayDuration -=
|
|
940
|
-
},
|
|
941
|
-
(
|
|
961
|
+
e.value = e.value.map((d) => (d.displayDuration -= W, d)), e.value = e.value.filter((d) => d.displayDuration > 0);
|
|
962
|
+
}, W), (d, f) => e.value.length > 0 ? (n(), a("div", St, [
|
|
963
|
+
(n(!0), a(_, null, $(e.value, (b) => (n(), a("div", {
|
|
942
964
|
key: b.message,
|
|
943
965
|
class: I(["toast d-block", {
|
|
944
966
|
"toast-info": b.type === "info",
|
|
@@ -950,105 +972,108 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], j = /*
|
|
|
950
972
|
"aria-live": "assertive",
|
|
951
973
|
"aria-atomic": "true"
|
|
952
974
|
}, [
|
|
953
|
-
r("div",
|
|
954
|
-
r("strong",
|
|
955
|
-
r("small",
|
|
975
|
+
r("div", Ft, [
|
|
976
|
+
r("strong", xt, C(b.title), 1),
|
|
977
|
+
r("small", Mt, C(b.id.toLocaleTimeString()), 1),
|
|
956
978
|
r("button", {
|
|
957
979
|
type: "button",
|
|
958
980
|
class: "btn-close",
|
|
959
981
|
"data-bs-dismiss": "toast",
|
|
960
982
|
"aria-label": "Close",
|
|
961
|
-
onClick: (
|
|
962
|
-
}, null, 8,
|
|
983
|
+
onClick: (m) => e.value = e.value.filter((i) => i.id !== b.id)
|
|
984
|
+
}, null, 8, Rt)
|
|
963
985
|
]),
|
|
964
986
|
r("div", {
|
|
965
987
|
class: "toast-body",
|
|
966
988
|
innerHTML: b.message
|
|
967
|
-
}, null, 8,
|
|
989
|
+
}, null, 8, Et)
|
|
968
990
|
], 2))), 128))
|
|
969
|
-
])) :
|
|
991
|
+
])) : v("", !0);
|
|
970
992
|
}
|
|
971
|
-
}),
|
|
993
|
+
}), Ht = /* @__PURE__ */ w({
|
|
972
994
|
__name: "ToastWrapper",
|
|
973
|
-
setup(
|
|
974
|
-
const
|
|
995
|
+
setup(p) {
|
|
996
|
+
const o = g(), t = [
|
|
975
997
|
{
|
|
976
998
|
id: "toast-notification-message",
|
|
977
999
|
handler: (e) => {
|
|
978
|
-
let
|
|
979
|
-
|
|
980
|
-
title:
|
|
981
|
-
message:
|
|
982
|
-
type:
|
|
983
|
-
displayDuration:
|
|
1000
|
+
let l = e.detail;
|
|
1001
|
+
o.value.addToast({
|
|
1002
|
+
title: l.title,
|
|
1003
|
+
message: l.message,
|
|
1004
|
+
type: l.severity,
|
|
1005
|
+
displayDuration: l.displayDuration
|
|
984
1006
|
});
|
|
985
1007
|
}
|
|
986
1008
|
},
|
|
987
1009
|
{
|
|
988
1010
|
id: "fetch-error",
|
|
989
1011
|
handler: (e) => {
|
|
990
|
-
let
|
|
991
|
-
|
|
992
|
-
title:
|
|
993
|
-
message:
|
|
1012
|
+
let l = e.detail;
|
|
1013
|
+
o.value.addToast({
|
|
1014
|
+
title: l.title,
|
|
1015
|
+
message: l.message,
|
|
994
1016
|
type: "error",
|
|
995
1017
|
displayDuration: 1e4
|
|
996
1018
|
});
|
|
997
1019
|
}
|
|
998
1020
|
}
|
|
999
1021
|
];
|
|
1000
|
-
return
|
|
1001
|
-
|
|
1002
|
-
}),
|
|
1003
|
-
|
|
1004
|
-
}), (e,
|
|
1022
|
+
return F(() => {
|
|
1023
|
+
t.forEach((e) => window.addEventListener(e.id, e.handler));
|
|
1024
|
+
}), te(() => {
|
|
1025
|
+
t.forEach((e) => window.removeEventListener(e.id, e.handler));
|
|
1026
|
+
}), (e, l) => (n(), B(X, {
|
|
1005
1027
|
ref_key: "toast",
|
|
1006
|
-
ref:
|
|
1028
|
+
ref: o,
|
|
1007
1029
|
defaultDisplayDuration: 5e3
|
|
1008
1030
|
}, null, 512));
|
|
1009
1031
|
}
|
|
1010
|
-
}),
|
|
1011
|
-
CheckBox:
|
|
1012
|
-
CheckBoxList:
|
|
1013
|
-
DropDown:
|
|
1014
|
-
DropDownMenu:
|
|
1015
|
-
DropDownCallBack:
|
|
1016
|
-
FilterCompact:
|
|
1017
|
-
FilterControl:
|
|
1018
|
-
IconButton:
|
|
1019
|
-
PaginatorControl:
|
|
1020
|
-
RadioButton:
|
|
1021
|
-
RadioButtonGroup:
|
|
1022
|
-
SpinningProgress:
|
|
1023
|
-
TableToList:
|
|
1024
|
-
TableToListOptions:
|
|
1025
|
-
TextListBox:
|
|
1026
|
-
ToastComponent:
|
|
1027
|
-
ToastWrapper:
|
|
1028
|
-
},
|
|
1029
|
-
install(
|
|
1030
|
-
Object.entries(
|
|
1031
|
-
|
|
1032
|
+
}), zt = {
|
|
1033
|
+
CheckBox: V,
|
|
1034
|
+
CheckBoxList: re,
|
|
1035
|
+
DropDown: P,
|
|
1036
|
+
DropDownMenu: N,
|
|
1037
|
+
DropDownCallBack: K,
|
|
1038
|
+
FilterCompact: U,
|
|
1039
|
+
FilterControl: q,
|
|
1040
|
+
IconButton: G,
|
|
1041
|
+
PaginatorControl: J,
|
|
1042
|
+
RadioButton: Q,
|
|
1043
|
+
RadioButtonGroup: We,
|
|
1044
|
+
SpinningProgress: Ke,
|
|
1045
|
+
TableToList: gt,
|
|
1046
|
+
TableToListOptions: Ct,
|
|
1047
|
+
TextListBox: It,
|
|
1048
|
+
ToastComponent: X,
|
|
1049
|
+
ToastWrapper: Ht
|
|
1050
|
+
}, Wt = {
|
|
1051
|
+
install(p) {
|
|
1052
|
+
Object.entries(zt).forEach(([o, t]) => {
|
|
1053
|
+
p.component(o, t);
|
|
1032
1054
|
});
|
|
1033
1055
|
}
|
|
1034
1056
|
};
|
|
1035
1057
|
export {
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1058
|
+
V as CheckBox,
|
|
1059
|
+
re as CheckBoxList,
|
|
1060
|
+
P as DropDown,
|
|
1061
|
+
K as DropDownCallBack,
|
|
1062
|
+
N as DropDownMenu,
|
|
1063
|
+
U as FilterCompact,
|
|
1064
|
+
q as FilterControl,
|
|
1065
|
+
Gt as FilterDate,
|
|
1066
|
+
Nt as FilterDropDown,
|
|
1067
|
+
Vt as FilterText,
|
|
1068
|
+
G as IconButton,
|
|
1069
|
+
J as PaginatorControl,
|
|
1070
|
+
Q as RadioButton,
|
|
1071
|
+
We as RadioButtonGroup,
|
|
1072
|
+
Ke as SpinningProgress,
|
|
1073
|
+
gt as TableToList,
|
|
1074
|
+
Ct as TableToListOptions,
|
|
1075
|
+
It as TextListBox,
|
|
1076
|
+
X as ToastComponent,
|
|
1077
|
+
Ht as ToastWrapper,
|
|
1078
|
+
Wt as default
|
|
1054
1079
|
};
|