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