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