admins-components 1.2.11 → 1.2.13

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