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