admins-components 1.2.4 → 1.2.5

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