admins-components 1.2.5 → 1.2.7

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