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