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