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