admins-components 1.3.0 → 2.0.0

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