finso-vue-components 0.4.26 → 0.4.28

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,7 +1,7 @@
1
- import { defineComponent as C, resolveComponent as y, openBlock as s, createBlock as b, computed as S, withDirectives as ue, unref as V, mergeProps as w, isRef as j, createSlots as H, renderList as N, withCtx as m, renderSlot as A, normalizeProps as G, guardReactiveProps as K, useModel as L, ref as P, watch as le, createElementBlock as B, resolveDynamicComponent as ce, toHandlers as me, toDisplayString as T, createTextVNode as E, createElementVNode as O, createCommentVNode as X, withModifiers as q, createVNode as k, mergeModels as Y, onMounted as fe, Fragment as W } from "vue";
2
- import { VTextField as ae, VTextarea as pe, VAutocomplete as ve, VCheckbox as ye, VSelect as ge, VNumberInput as be, VSwitch as _e } from "vuetify/components";
1
+ import { defineComponent as C, resolveComponent as b, openBlock as s, createBlock as _, computed as B, withDirectives as ce, unref as h, mergeProps as S, isRef as E, createSlots as H, renderList as R, withCtx as f, renderSlot as A, normalizeProps as G, guardReactiveProps as K, useModel as L, ref as N, watch as le, createElementBlock as T, resolveDynamicComponent as me, toHandlers as fe, toDisplayString as P, createTextVNode as X, createElementVNode as j, createCommentVNode as z, withModifiers as q, createVNode as V, mergeModels as Y, onMounted as ae, Fragment as W } from "vue";
2
+ import { VTextField as ne, VTextarea as pe, VAutocomplete as ve, VCheckbox as ye, VSelect as ge, VNumberInput as be, VSwitch as _e } from "vuetify/components";
3
3
  import { vMaska as he } from "maska/vue";
4
- import { useField as R } from "vee-validate";
4
+ import { useField as U } from "vee-validate";
5
5
  const J = /* @__PURE__ */ C({
6
6
  __name: "FButton",
7
7
  props: {
@@ -10,9 +10,9 @@ const J = /* @__PURE__ */ C({
10
10
  },
11
11
  setup(t) {
12
12
  const e = t;
13
- return (n, r) => {
14
- const l = y("v-btn");
15
- return s(), b(l, {
13
+ return (n, o) => {
14
+ const a = b("v-btn");
15
+ return s(), _(a, {
16
16
  color: e.color,
17
17
  rounded: e.rounded
18
18
  }, null, 8, ["color", "rounded"]);
@@ -37,13 +37,13 @@ const J = /* @__PURE__ */ C({
37
37
  },
38
38
  emits: ["clickAppendInner"],
39
39
  setup(t) {
40
- const e = t, n = S(() => e.rules), { errorMessage: r, value: l } = R(() => e.name, n, {
40
+ const e = t, n = B(() => e.rules), { errorMessage: o, value: a } = U(() => e.name, n, {
41
41
  initialValue: e.modelValue,
42
42
  syncVModel: !0
43
43
  });
44
- return (p, o) => ue((s(), b(V(ae), w(p.$attrs, {
45
- modelValue: V(l),
46
- "onUpdate:modelValue": o[0] || (o[0] = (v) => j(l) ? l.value = v : null),
44
+ return (p, i) => ce((s(), _(h(ne), S(p.$attrs, {
45
+ modelValue: h(a),
46
+ "onUpdate:modelValue": i[0] || (i[0] = (y) => E(a) ? a.value = y : null),
47
47
  name: e.name,
48
48
  color: e.color,
49
49
  density: e.density,
@@ -51,18 +51,18 @@ const J = /* @__PURE__ */ C({
51
51
  variant: e.variant,
52
52
  clearable: e.clearable,
53
53
  "hide-details": e.hideDetails,
54
- "error-messages": V(r),
54
+ "error-messages": h(o),
55
55
  "append-inner-icon": e.appendInnerIcon,
56
- "onClick:appendInner": o[1] || (o[1] = (v) => p.$emit("clickAppendInner"))
56
+ "onClick:appendInner": i[1] || (i[1] = (y) => p.$emit("clickAppendInner"))
57
57
  }), H({ _: 2 }, [
58
- N(p.$slots, (v, g) => ({
58
+ R(p.$slots, (y, g) => ({
59
59
  name: g,
60
- fn: m((i) => [
61
- A(p.$slots, g, G(K(i ?? {})))
60
+ fn: f((d) => [
61
+ A(p.$slots, g, G(K(d ?? {})))
62
62
  ])
63
63
  }))
64
64
  ]), 1040, ["modelValue", "name", "color", "density", "rounded", "variant", "clearable", "hide-details", "error-messages", "append-inner-icon"])), [
65
- [V(he), e.mask]
65
+ [h(he), e.mask]
66
66
  ]);
67
67
  }
68
68
  }), ke = {
@@ -71,7 +71,7 @@ const J = /* @__PURE__ */ C({
71
71
  }, Fe = {
72
72
  key: 1,
73
73
  class: "font-weight-bold d-flex justify-center align-center fill-height"
74
- }, xe = { key: 2 }, De = { key: 5 }, $e = { class: "f-data-table__actions" }, we = { class: "text-h6" }, Ce = /* @__PURE__ */ C({
74
+ }, xe = { key: 2 }, De = { key: 5 }, $e = { class: "f-data-table__actions" }, we = { class: "text-h6" }, Se = /* @__PURE__ */ C({
75
75
  name: "FDataTable",
76
76
  inheritAttrs: !1,
77
77
  __name: "FDataTable",
@@ -113,55 +113,55 @@ const J = /* @__PURE__ */ C({
113
113
  }),
114
114
  emits: /* @__PURE__ */ Y(["show-record", "delete-record"], ["update:page", "update:itemsPerPage", "update:sortBy"]),
115
115
  setup(t, { emit: e }) {
116
- const n = t, r = e, l = L(t, "page"), p = L(t, "itemsPerPage"), o = L(t, "sortBy"), v = P(!1), g = P(null);
117
- function i(u, c) {
118
- return c.split(".").reduce((M, U) => M == null ? void 0 : M[U], u);
116
+ const n = t, o = e, a = L(t, "page"), p = L(t, "itemsPerPage"), i = L(t, "sortBy"), y = N(!1), g = N(null);
117
+ function d(c, m) {
118
+ return m.split(".").reduce((I, O) => I == null ? void 0 : I[O], c);
119
119
  }
120
- function d(u) {
121
- return u == null ? "" : new Intl.NumberFormat(n.moneyLocale, {
120
+ function r(c) {
121
+ return c == null ? "" : new Intl.NumberFormat(n.moneyLocale, {
122
122
  style: "currency",
123
123
  currency: n.moneyCurrency
124
- }).format(u);
124
+ }).format(c);
125
125
  }
126
- function a(u) {
127
- if (!u) return "";
128
- const c = u.replace(/\D/g, "");
129
- return c.length < 10 ? u : `(${c.substring(0, 3)}) ${c.substring(3, 6)} ${c.substring(6, 10)}`;
126
+ function l(c) {
127
+ if (!c) return "";
128
+ const m = c.replace(/\D/g, "");
129
+ return m.length < 10 ? c : `(${m.substring(0, 3)}) ${m.substring(3, 6)} ${m.substring(6, 10)}`;
130
130
  }
131
- function F(u, c) {
132
- return c.split(",").map((M) => {
133
- const U = i(u, M.trim());
134
- return typeof U == "string" ? U.charAt(0).toUpperCase() : "";
131
+ function k(c, m) {
132
+ return m.split(",").map((I) => {
133
+ const O = d(c, I.trim());
134
+ return typeof O == "string" ? O.charAt(0).toUpperCase() : "";
135
135
  }).join("");
136
136
  }
137
- const _ = S(() => {
138
- const M = n.items.length === 0 ? 108 : n.items.length * 52 + 56;
139
- return Math.min(M, n.maxHeight);
140
- }), $ = S(() => !n.canEditRecord && !n.canReadRecord ? {} : {
141
- "click:row": (u, { item: c }) => {
142
- r("show-record", c);
137
+ const w = B(() => {
138
+ const I = n.items.length === 0 ? 108 : n.items.length * 52 + 56;
139
+ return Math.min(I, n.maxHeight);
140
+ }), M = B(() => !n.canEditRecord && !n.canReadRecord ? {} : {
141
+ "click:row": (c, { item: m }) => {
142
+ o("show-record", m);
143
143
  }
144
- }), h = S(
145
- () => n.headers.filter((u) => u.type && u.key !== "actions")
146
- ), z = S(() => n.headers.some((u) => u.key === "actions"));
147
- function I(u) {
148
- n.showDeleteConfirm ? (g.value = u, v.value = !0) : r("delete-record", u);
144
+ }), u = B(
145
+ () => n.headers.filter((c) => c.type && c.key !== "actions")
146
+ ), x = B(() => n.headers.some((c) => c.key === "actions"));
147
+ function $(c) {
148
+ n.showDeleteConfirm ? (g.value = c, y.value = !0) : o("delete-record", c);
149
149
  }
150
- function x() {
151
- r("delete-record", g.value), n.deleteLoading === void 0 && (v.value = !1, g.value = null);
150
+ function F() {
151
+ o("delete-record", g.value), n.deleteLoading === void 0 && (y.value = !1, g.value = null);
152
152
  }
153
- return le(() => n.deleteLoading, (u, c) => {
154
- c && !u && v.value && (v.value = !1, g.value = null);
155
- }), (u, c) => {
156
- const M = y("v-icon"), U = y("v-img"), Z = y("v-avatar"), ne = y("v-chip"), ee = y("v-btn"), oe = y("v-card-text"), re = y("v-spacer"), te = y("f-button"), de = y("v-card-actions"), ie = y("f-dialog");
157
- return s(), B("div", null, [
158
- (s(), b(ce(t.serverSide ? "v-data-table-server" : "v-data-table"), w(u.$attrs, {
159
- page: l.value,
160
- "onUpdate:page": c[0] || (c[0] = (f) => l.value = f),
153
+ return le(() => n.deleteLoading, (c, m) => {
154
+ m && !c && y.value && (y.value = !1, g.value = null);
155
+ }), (c, m) => {
156
+ const I = b("v-icon"), O = b("v-img"), Z = b("v-avatar"), oe = b("v-chip"), ee = b("v-btn"), re = b("v-card-text"), ie = b("v-spacer"), te = b("f-button"), de = b("v-card-actions"), se = b("f-dialog");
157
+ return s(), T("div", null, [
158
+ (s(), _(me(t.serverSide ? "v-data-table-server" : "v-data-table"), S(c.$attrs, {
159
+ page: a.value,
160
+ "onUpdate:page": m[0] || (m[0] = (v) => a.value = v),
161
161
  "items-per-page": p.value,
162
- "onUpdate:itemsPerPage": c[1] || (c[1] = (f) => p.value = f),
163
- "sort-by": o.value,
164
- "onUpdate:sortBy": c[2] || (c[2] = (f) => o.value = f),
162
+ "onUpdate:itemsPerPage": m[1] || (m[1] = (v) => p.value = v),
163
+ "sort-by": i.value,
164
+ "onUpdate:sortBy": m[2] || (m[2] = (v) => i.value = v),
165
165
  class: "rounded-b-lg",
166
166
  headers: t.headers,
167
167
  items: t.items,
@@ -169,55 +169,55 @@ const J = /* @__PURE__ */ C({
169
169
  loading: t.loading,
170
170
  hover: t.hover,
171
171
  density: t.density,
172
- height: _.value,
172
+ height: w.value,
173
173
  "show-select": t.showSelect,
174
174
  "fixed-header": t.fixedHeader,
175
175
  "items-per-page-text": t.labelItemsPerPage,
176
176
  "no-data-text": t.labelNoData
177
- }, me($.value)), H({ _: 2 }, [
178
- N(h.value, (f) => ({
179
- name: `item.${f.key}`,
180
- fn: m(({ item: D }) => [
181
- A(u.$slots, `item.${f.key}`, {
177
+ }, fe(M.value)), H({ _: 2 }, [
178
+ R(u.value, (v) => ({
179
+ name: `item.${v.key}`,
180
+ fn: f(({ item: D }) => [
181
+ A(c.$slots, `item.${v.key}`, {
182
182
  item: D,
183
- value: i(D, f.key)
183
+ value: d(D, v.key)
184
184
  }, () => [
185
- f.type === "image" ? (s(), b(Z, {
185
+ v.type === "image" ? (s(), _(Z, {
186
186
  key: 0,
187
187
  rounded: "lg",
188
188
  variant: "elevated",
189
189
  border: ""
190
190
  }, {
191
- default: m(() => [
192
- i(D, f.key) ? (s(), b(U, {
191
+ default: f(() => [
192
+ d(D, v.key) ? (s(), _(O, {
193
193
  key: 0,
194
- src: i(D, f.key),
194
+ src: d(D, v.key),
195
195
  class: "f-data-table__logo"
196
196
  }, {
197
- error: m(() => [
198
- f.imageInitialsKey ? (s(), B("span", ke, T(F(D, f.imageInitialsKey)), 1)) : (s(), b(M, {
197
+ error: f(() => [
198
+ v.imageInitialsKey ? (s(), T("span", ke, P(k(D, v.imageInitialsKey)), 1)) : (s(), _(I, {
199
199
  key: 1,
200
200
  color: "white"
201
201
  }, {
202
- default: m(() => [...c[5] || (c[5] = [
203
- E("mdi-account", -1)
202
+ default: f(() => [...m[5] || (m[5] = [
203
+ X("mdi-account", -1)
204
204
  ])]),
205
205
  _: 1
206
206
  }))
207
207
  ]),
208
208
  _: 2
209
- }, 1032, ["src"])) : f.imageInitialsKey ? (s(), B("span", Fe, T(F(D, f.imageInitialsKey)), 1)) : (s(), b(M, {
209
+ }, 1032, ["src"])) : v.imageInitialsKey ? (s(), T("span", Fe, P(k(D, v.imageInitialsKey)), 1)) : (s(), _(I, {
210
210
  key: 2,
211
211
  color: "white"
212
212
  }, {
213
- default: m(() => [...c[6] || (c[6] = [
214
- E("mdi-account", -1)
213
+ default: f(() => [...m[6] || (m[6] = [
214
+ X("mdi-account", -1)
215
215
  ])]),
216
216
  _: 1
217
217
  }))
218
218
  ]),
219
219
  _: 2
220
- }, 1024)) : f.type === "logo" ? (s(), b(Z, {
220
+ }, 1024)) : v.type === "logo" ? (s(), _(Z, {
221
221
  key: 1,
222
222
  rounded: "lg",
223
223
  variant: "elevated",
@@ -225,103 +225,103 @@ const J = /* @__PURE__ */ C({
225
225
  class: "f-data-table__logo-avatar",
226
226
  color: "white"
227
227
  }, {
228
- default: m(() => [
229
- i(D, f.key) ? (s(), b(U, {
228
+ default: f(() => [
229
+ d(D, v.key) ? (s(), _(O, {
230
230
  key: 0,
231
- src: i(D, f.key),
231
+ src: d(D, v.key),
232
232
  class: "f-data-table__logo"
233
233
  }, {
234
- error: m(() => [...c[7] || (c[7] = [
235
- O("div", { class: "f-data-table__logo-avatar fill-height" }, null, -1)
234
+ error: f(() => [...m[7] || (m[7] = [
235
+ j("div", { class: "f-data-table__logo-avatar fill-height" }, null, -1)
236
236
  ])]),
237
237
  _: 1
238
- }, 8, ["src"])) : X("", !0)
238
+ }, 8, ["src"])) : z("", !0)
239
239
  ]),
240
240
  _: 2
241
- }, 1024)) : f.type === "money" ? (s(), B("span", xe, T(d(i(D, f.key))), 1)) : f.type === "status" ? (s(), b(ne, {
241
+ }, 1024)) : v.type === "money" ? (s(), T("span", xe, P(r(d(D, v.key))), 1)) : v.type === "status" ? (s(), _(oe, {
242
242
  key: 3,
243
- color: i(D, f.key) ? "green-darken-1" : "red-darken-2",
243
+ color: d(D, v.key) ? "green-darken-1" : "red-darken-2",
244
244
  size: "small"
245
245
  }, {
246
- default: m(() => [
247
- E(T(i(D, f.key) ? t.labelActive : t.labelPassive), 1)
246
+ default: f(() => [
247
+ X(P(d(D, v.key) ? t.labelActive : t.labelPassive), 1)
248
248
  ]),
249
249
  _: 2
250
- }, 1032, ["color"])) : f.type === "boolean" ? (s(), b(M, {
250
+ }, 1032, ["color"])) : v.type === "boolean" ? (s(), _(I, {
251
251
  key: 4,
252
- color: i(D, f.key) ? "green-darken-1" : "red-darken-2"
252
+ color: d(D, v.key) ? "green-darken-1" : "red-darken-2"
253
253
  }, {
254
- default: m(() => [
255
- E(T(i(D, f.key) ? "mdi-check" : "mdi-close"), 1)
254
+ default: f(() => [
255
+ X(P(d(D, v.key) ? "mdi-check" : "mdi-close"), 1)
256
256
  ]),
257
257
  _: 2
258
- }, 1032, ["color"])) : f.type === "gsmNo" ? (s(), B("span", De, T(a(i(D, f.key))), 1)) : X("", !0)
258
+ }, 1032, ["color"])) : v.type === "gsmNo" ? (s(), T("span", De, P(l(d(D, v.key))), 1)) : z("", !0)
259
259
  ], !0)
260
260
  ])
261
261
  })),
262
- z.value ? {
262
+ x.value ? {
263
263
  name: "item.actions",
264
- fn: m(({ item: f }) => [
265
- A(u.$slots, "item.actions", { item: f }, () => [
266
- O("div", $e, [
267
- t.canEditRecord || t.canReadRecord ? (s(), b(ee, {
264
+ fn: f(({ item: v }) => [
265
+ A(c.$slots, "item.actions", { item: v }, () => [
266
+ j("div", $e, [
267
+ t.canEditRecord || t.canReadRecord ? (s(), _(ee, {
268
268
  key: 0,
269
269
  size: "small",
270
270
  variant: "text",
271
271
  icon: t.canEditRecord ? "mdi-pencil-outline" : "mdi-eye-outline",
272
272
  color: t.canEditRecord ? "primary" : "secondary",
273
- onClick: q((D) => r("show-record", f), ["stop"])
274
- }, null, 8, ["icon", "color", "onClick"])) : X("", !0),
275
- t.canDeleteRecord ? (s(), b(ee, {
273
+ onClick: q((D) => o("show-record", v), ["stop"])
274
+ }, null, 8, ["icon", "color", "onClick"])) : z("", !0),
275
+ t.canDeleteRecord ? (s(), _(ee, {
276
276
  key: 1,
277
277
  icon: "mdi-trash-can-outline",
278
278
  variant: "text",
279
279
  size: "small",
280
280
  color: "red-darken-2",
281
- onClick: q((D) => I(f), ["stop"])
282
- }, null, 8, ["onClick"])) : X("", !0)
281
+ onClick: q((D) => $(v), ["stop"])
282
+ }, null, 8, ["onClick"])) : z("", !0)
283
283
  ])
284
284
  ], !0)
285
285
  ]),
286
286
  key: "0"
287
287
  } : void 0,
288
- N(u.$slots, (f, D) => ({
288
+ R(c.$slots, (v, D) => ({
289
289
  name: D,
290
- fn: m((se) => [
291
- A(u.$slots, D, G(K(se ?? {})), void 0, !0)
290
+ fn: f((ue) => [
291
+ A(c.$slots, D, G(K(ue ?? {})), void 0, !0)
292
292
  ])
293
293
  }))
294
294
  ]), 1040, ["page", "items-per-page", "sort-by", "headers", "items", "items-length", "loading", "hover", "density", "height", "show-select", "fixed-header", "items-per-page-text", "no-data-text"])),
295
- k(ie, {
296
- modelValue: v.value,
297
- "onUpdate:modelValue": c[4] || (c[4] = (f) => v.value = f),
295
+ V(se, {
296
+ modelValue: y.value,
297
+ "onUpdate:modelValue": m[4] || (m[4] = (v) => y.value = v),
298
298
  "max-width": "400",
299
299
  "hide-close": !0
300
300
  }, {
301
- header: m(() => [
302
- O("div", we, T(t.labelDeleteTitle), 1)
301
+ header: f(() => [
302
+ j("div", we, P(t.labelDeleteTitle), 1)
303
303
  ]),
304
- default: m(() => [
305
- k(oe, null, {
306
- default: m(() => [
307
- E(T(t.deleteMessageFormatter && g.value ? t.deleteMessageFormatter(g.value) : t.labelDeleteMessage), 1)
304
+ default: f(() => [
305
+ V(re, null, {
306
+ default: f(() => [
307
+ X(P(t.deleteMessageFormatter && g.value ? t.deleteMessageFormatter(g.value) : t.labelDeleteMessage), 1)
308
308
  ]),
309
309
  _: 1
310
310
  }),
311
- k(de, null, {
312
- default: m(() => [
313
- k(re),
314
- k(te, {
311
+ V(de, null, {
312
+ default: f(() => [
313
+ V(ie),
314
+ V(te, {
315
315
  variant: "plain",
316
316
  color: "red-darken-2",
317
317
  text: t.labelDeleteCancel,
318
- onClick: c[3] || (c[3] = (f) => v.value = !1)
318
+ onClick: m[3] || (m[3] = (v) => y.value = !1)
319
319
  }, null, 8, ["text"]),
320
- k(te, {
320
+ V(te, {
321
321
  variant: "tonal",
322
322
  text: t.labelDeleteConfirm,
323
323
  loading: t.deleteLoading ?? !1,
324
- onClick: x
324
+ onClick: F
325
325
  }, null, 8, ["text", "loading"])
326
326
  ]),
327
327
  _: 1
@@ -334,10 +334,10 @@ const J = /* @__PURE__ */ C({
334
334
  }
335
335
  }), Q = (t, e) => {
336
336
  const n = t.__vccOpts || t;
337
- for (const [r, l] of e)
338
- n[r] = l;
337
+ for (const [o, a] of e)
338
+ n[o] = a;
339
339
  return n;
340
- }, Se = /* @__PURE__ */ Q(Ce, [["__scopeId", "data-v-6a520706"]]);
340
+ }, Ce = /* @__PURE__ */ Q(Se, [["__scopeId", "data-v-6a520706"]]);
341
341
  var Be = /* @__PURE__ */ ((t) => (t.IMAGE = "image", t.MONEY = "money", t.STATUS = "status", t.BOOLEAN = "boolean", t.GSM_NO = "gsmNo", t.LOGO = "logo", t))(Be || {});
342
342
  const Me = /* @__PURE__ */ C({
343
343
  name: "FTextarea",
@@ -357,13 +357,13 @@ const Me = /* @__PURE__ */ C({
357
357
  rules: { type: [String, Function], default: "" }
358
358
  },
359
359
  setup(t) {
360
- const e = t, n = S(() => e.rules), { errorMessage: r, value: l } = R(() => e.name, n, {
360
+ const e = t, n = B(() => e.rules), { errorMessage: o, value: a } = U(() => e.name, n, {
361
361
  initialValue: e.modelValue,
362
362
  syncVModel: !0
363
363
  });
364
- return (p, o) => (s(), b(V(pe), w(p.$attrs, {
365
- modelValue: V(l),
366
- "onUpdate:modelValue": o[0] || (o[0] = (v) => j(l) ? l.value = v : null),
364
+ return (p, i) => (s(), _(h(pe), S(p.$attrs, {
365
+ modelValue: h(a),
366
+ "onUpdate:modelValue": i[0] || (i[0] = (y) => E(a) ? a.value = y : null),
367
367
  name: e.name,
368
368
  rounded: e.rounded,
369
369
  variant: e.variant,
@@ -373,7 +373,7 @@ const Me = /* @__PURE__ */ C({
373
373
  label: e.label,
374
374
  "hide-details": e.hideDetails,
375
375
  "no-resize": e.noResize,
376
- "error-messages": V(r)
376
+ "error-messages": h(o)
377
377
  }), null, 16, ["modelValue", "name", "rounded", "variant", "rows", "density", "color", "label", "hide-details", "no-resize", "error-messages"]));
378
378
  }
379
379
  }), Te = /* @__PURE__ */ C({
@@ -396,36 +396,36 @@ const Me = /* @__PURE__ */ C({
396
396
  },
397
397
  emits: ["change"],
398
398
  setup(t, { emit: e }) {
399
- const n = e, r = t, l = S(() => r.rules), { errorMessage: p, value: o } = R(() => r.name, l, {
400
- initialValue: r.modelValue,
399
+ const n = e, o = t, a = B(() => o.rules), { errorMessage: p, value: i } = U(() => o.name, a, {
400
+ initialValue: o.modelValue,
401
401
  syncVModel: !0
402
402
  });
403
- function v(g) {
403
+ function y(g) {
404
404
  n("change", g);
405
405
  }
406
- return (g, i) => (s(), b(V(ve), w(g.$attrs, {
407
- modelValue: V(o),
406
+ return (g, d) => (s(), _(h(ve), S(g.$attrs, {
407
+ modelValue: h(i),
408
408
  "onUpdate:modelValue": [
409
- i[0] || (i[0] = (d) => j(o) ? o.value = d : null),
410
- i[1] || (i[1] = (d) => v(V(o)))
409
+ d[0] || (d[0] = (r) => E(i) ? i.value = r : null),
410
+ d[1] || (d[1] = (r) => y(h(i)))
411
411
  ],
412
- name: r.name,
413
- items: r.items,
414
- rounded: r.rounded,
415
- variant: r.variant,
416
- density: r.density,
417
- color: r.color,
418
- clearable: r.clearable,
419
- "hide-details": r.hideDetails,
420
- "return-object": r.returnObject,
421
- "no-data-text": r.noDataText,
422
- "error-messages": V(p),
412
+ name: o.name,
413
+ items: o.items,
414
+ rounded: o.rounded,
415
+ variant: o.variant,
416
+ density: o.density,
417
+ color: o.color,
418
+ clearable: o.clearable,
419
+ "hide-details": o.hideDetails,
420
+ "return-object": o.returnObject,
421
+ "no-data-text": o.noDataText,
422
+ "error-messages": h(p),
423
423
  "menu-props": { maxWidth: 0 }
424
424
  }), H({ _: 2 }, [
425
- N(g.$slots, (d, a) => ({
426
- name: a,
427
- fn: m((F) => [
428
- A(g.$slots, a, G(K(F ?? {})))
425
+ R(g.$slots, (r, l) => ({
426
+ name: l,
427
+ fn: f((k) => [
428
+ A(g.$slots, l, G(K(k ?? {})))
429
429
  ])
430
430
  }))
431
431
  ]), 1040, ["modelValue", "name", "items", "rounded", "variant", "density", "color", "clearable", "hide-details", "return-object", "no-data-text", "error-messages"]));
@@ -442,7 +442,7 @@ const Me = /* @__PURE__ */ C({
442
442
  },
443
443
  setup(t) {
444
444
  const e = t;
445
- return (n, r) => (s(), b(V(ye), w(n.$attrs, {
445
+ return (n, o) => (s(), _(h(ye), S(n.$attrs, {
446
446
  color: e.color,
447
447
  "hide-details": e.hideDetails,
448
448
  indeterminate: e.indeterminate,
@@ -469,42 +469,52 @@ const Me = /* @__PURE__ */ C({
469
469
  rules: { type: [String, Function], default: "" }
470
470
  },
471
471
  setup(t) {
472
- const e = t, n = S(() => e.rules), { errorMessage: r, value: l } = R(() => e.name, n, {
472
+ const e = t, n = B(() => e.rules), { errorMessage: o, value: a } = U(() => e.name, n, {
473
473
  initialValue: e.modelValue,
474
- syncVModel: !0,
475
- validateOnValueUpdate: !1
476
- }), p = S(
474
+ syncVModel: !0
475
+ }), p = N(), i = N(!1), y = B(
477
476
  () => new Intl.NumberFormat(e.locale, {
478
477
  style: "currency",
479
478
  currency: e.currency,
480
479
  minimumFractionDigits: e.precision,
481
480
  maximumFractionDigits: e.precision
482
481
  })
483
- ), o = P(v(e.modelValue));
484
- function v(_) {
485
- return _ == null || isNaN(_) ? "" : p.value.format(_);
482
+ );
483
+ function g(u) {
484
+ return u == null || isNaN(u) ? "" : y.value.format(u);
485
+ }
486
+ function d(u) {
487
+ const x = u.replace(/[^\d,.-]/g, "").replace(/\./g, "").replace(",", "."), $ = parseFloat(x);
488
+ return isNaN($) ? null : Math.round($ * Math.pow(10, e.precision)) / Math.pow(10, e.precision);
489
+ }
490
+ function r() {
491
+ var u, x;
492
+ return ((x = (u = p.value) == null ? void 0 : u.$el) == null ? void 0 : x.querySelector("input")) ?? null;
486
493
  }
487
- function g(_) {
488
- const $ = _.replace(/[^\d,.-]/g, "").replace(/\./g, "").replace(",", "."), h = parseFloat($);
489
- return isNaN(h) ? null : Math.round(h * Math.pow(10, e.precision)) / Math.pow(10, e.precision);
494
+ function l(u) {
495
+ const x = r();
496
+ x && (x.value = u);
490
497
  }
491
- const i = P(!1);
492
- function d(_) {
493
- const $ = _.target;
494
- o.value = $.value, l.value = g($.value);
498
+ function k(u) {
499
+ const x = u.target;
500
+ a.value = d(x.value);
495
501
  }
496
- function a() {
497
- i.value = !1, o.value = v(l.value);
502
+ function w() {
503
+ i.value = !1, l(g(a.value));
498
504
  }
499
- function F(_) {
505
+ function M(u) {
500
506
  i.value = !0;
501
- const $ = _.target, h = l.value;
502
- h != null ? o.value = h.toFixed(e.precision).replace(".", ",") : o.value = "", setTimeout(() => $.select(), 0);
507
+ const x = u.target, $ = a.value;
508
+ x.value = $ != null ? $.toFixed(e.precision).replace(".", ",") : "", setTimeout(() => x.select(), 0);
503
509
  }
504
- return le(() => e.modelValue, (_) => {
505
- l.value = _, i.value || (o.value = v(_));
506
- }), (_, $) => (s(), b(V(ae), w(_.$attrs, {
507
- "model-value": o.value,
510
+ return le(() => e.modelValue, (u) => {
511
+ a.value = u, i.value || l(g(u));
512
+ }), ae(() => {
513
+ l(g(e.modelValue));
514
+ }), (u, x) => (s(), _(h(ne), S({
515
+ ref_key: "fieldRef",
516
+ ref: p
517
+ }, u.$attrs, {
508
518
  name: e.name,
509
519
  label: e.label,
510
520
  readonly: e.readonly,
@@ -513,12 +523,12 @@ const Me = /* @__PURE__ */ C({
513
523
  variant: e.variant,
514
524
  density: e.density,
515
525
  color: e.color,
516
- "error-messages": V(r),
526
+ "error-messages": h(o),
517
527
  inputmode: "decimal",
518
- onInput: d,
519
- onBlur: a,
520
- onFocus: F
521
- }), null, 16, ["model-value", "name", "label", "readonly", "hide-details", "rounded", "variant", "density", "color", "error-messages"]));
528
+ onInput: k,
529
+ onBlur: w,
530
+ onFocus: M
531
+ }), null, 16, ["name", "label", "readonly", "hide-details", "rounded", "variant", "density", "color", "error-messages"]));
522
532
  }
523
533
  }), Ne = /* @__PURE__ */ C({
524
534
  name: "FSelect",
@@ -537,13 +547,13 @@ const Me = /* @__PURE__ */ C({
537
547
  rules: { type: [String, Function], default: "" }
538
548
  },
539
549
  setup(t) {
540
- const e = t, n = S(() => e.rules), { errorMessage: r, value: l } = R(() => e.name, n, {
550
+ const e = t, n = B(() => e.rules), { errorMessage: o, value: a } = U(() => e.name, n, {
541
551
  initialValue: e.modelValue,
542
552
  syncVModel: !0
543
553
  });
544
- return (p, o) => (s(), b(V(ge), w(p.$attrs, {
545
- modelValue: V(l),
546
- "onUpdate:modelValue": o[0] || (o[0] = (v) => j(l) ? l.value = v : null),
554
+ return (p, i) => (s(), _(h(ge), S(p.$attrs, {
555
+ modelValue: h(a),
556
+ "onUpdate:modelValue": i[0] || (i[0] = (y) => E(a) ? a.value = y : null),
547
557
  name: e.name,
548
558
  items: e.items,
549
559
  rounded: e.rounded,
@@ -552,17 +562,17 @@ const Me = /* @__PURE__ */ C({
552
562
  color: e.color,
553
563
  "hide-details": e.hideDetails,
554
564
  "return-object": e.returnObject,
555
- "error-messages": V(r)
565
+ "error-messages": h(o)
556
566
  }), H({ _: 2 }, [
557
- N(p.$slots, (v, g) => ({
567
+ R(p.$slots, (y, g) => ({
558
568
  name: g,
559
- fn: m((i) => [
560
- A(p.$slots, g, G(K(i ?? {})))
569
+ fn: f((d) => [
570
+ A(p.$slots, g, G(K(d ?? {})))
561
571
  ])
562
572
  }))
563
573
  ]), 1040, ["modelValue", "name", "items", "rounded", "variant", "density", "color", "hide-details", "return-object", "error-messages"]));
564
574
  }
565
- }), Ae = /* @__PURE__ */ C({
575
+ }), Re = /* @__PURE__ */ C({
566
576
  name: "FNumberField",
567
577
  inheritAttrs: !1,
568
578
  __name: "FNumberField",
@@ -586,13 +596,13 @@ const Me = /* @__PURE__ */ C({
586
596
  rules: { type: [String, Function], default: "" }
587
597
  },
588
598
  setup(t) {
589
- const e = t, n = S(() => e.rules), { errorMessage: r, value: l } = R(() => e.name, n, {
599
+ const e = t, n = B(() => e.rules), { errorMessage: o, value: a } = U(() => e.name, n, {
590
600
  initialValue: e.modelValue,
591
601
  syncVModel: !0
592
602
  });
593
- return (p, o) => (s(), b(V(be), w(p.$attrs, {
594
- modelValue: V(l),
595
- "onUpdate:modelValue": o[0] || (o[0] = (v) => j(l) ? l.value = v : null),
603
+ return (p, i) => (s(), _(h(be), S(p.$attrs, {
604
+ modelValue: h(a),
605
+ "onUpdate:modelValue": i[0] || (i[0] = (y) => E(a) ? a.value = y : null),
596
606
  name: e.name,
597
607
  color: e.color,
598
608
  density: e.density,
@@ -608,10 +618,10 @@ const Me = /* @__PURE__ */ C({
608
618
  min: e.min,
609
619
  precision: e.precision,
610
620
  inset: e.inset,
611
- "error-messages": V(r)
621
+ "error-messages": h(o)
612
622
  }), null, 16, ["modelValue", "name", "color", "density", "rounded", "variant", "control-variant", "hide-details", "placeholder", "label", "prefix", "disabled", "readonly", "min", "precision", "inset", "error-messages"]));
613
623
  }
614
- }), Re = { key: 0 }, Ue = { key: 1 }, Oe = /* @__PURE__ */ C({
624
+ }), Ae = { key: 0 }, Ue = { key: 1 }, Oe = /* @__PURE__ */ C({
615
625
  name: "FSwitch",
616
626
  inheritAttrs: !1,
617
627
  __name: "FSwitch",
@@ -628,17 +638,17 @@ const Me = /* @__PURE__ */ C({
628
638
  emits: ["update:modelValue"],
629
639
  setup(t) {
630
640
  const e = t, n = L(t, "modelValue");
631
- return (r, l) => (s(), b(V(_e), w(r.$attrs, {
641
+ return (o, a) => (s(), _(h(_e), S(o.$attrs, {
632
642
  modelValue: n.value,
633
- "onUpdate:modelValue": l[0] || (l[0] = (p) => n.value = p),
643
+ "onUpdate:modelValue": a[0] || (a[0] = (p) => n.value = p),
634
644
  color: e.color,
635
645
  "hide-details": e.hideDetails,
636
646
  density: e.density
637
647
  }), H({ _: 2 }, [
638
648
  e.labelTrue || e.labelFalse ? {
639
649
  name: "label",
640
- fn: m(() => [
641
- n.value ? (s(), B("span", Re, T(e.labelTrue), 1)) : (s(), B("span", Ue, T(e.labelFalse), 1))
650
+ fn: f(() => [
651
+ n.value ? (s(), T("span", Ae, P(e.labelTrue), 1)) : (s(), T("span", Ue, P(e.labelFalse), 1))
642
652
  ]),
643
653
  key: "0"
644
654
  } : void 0
@@ -660,42 +670,42 @@ const Me = /* @__PURE__ */ C({
660
670
  emits: /* @__PURE__ */ Y(["closeDialog"], ["update:modelValue"]),
661
671
  setup(t) {
662
672
  const e = t, n = L(t, "modelValue");
663
- return (r, l) => {
664
- const p = y("v-btn"), o = y("v-card-title"), v = y("v-divider"), g = y("v-card-text"), i = y("v-card"), d = y("v-dialog");
665
- return s(), b(d, w(r.$attrs, {
673
+ return (o, a) => {
674
+ const p = b("v-btn"), i = b("v-card-title"), y = b("v-divider"), g = b("v-card-text"), d = b("v-card"), r = b("v-dialog");
675
+ return s(), _(r, S(o.$attrs, {
666
676
  modelValue: n.value,
667
- "onUpdate:modelValue": l[1] || (l[1] = (a) => n.value = a),
677
+ "onUpdate:modelValue": a[1] || (a[1] = (l) => n.value = l),
668
678
  transition: e.transition,
669
679
  class: "f-dialog",
670
680
  width: e.width,
671
681
  persistent: e.persistent
672
682
  }), {
673
- default: m(() => [
674
- k(i, {
683
+ default: f(() => [
684
+ V(d, {
675
685
  class: "f-dialog-card",
676
686
  density: "default",
677
687
  variant: "elevated",
678
688
  rounded: "lg"
679
689
  }, {
680
- default: m(() => [
681
- k(o, { class: "d-flex justify-space-between align-center" }, {
682
- default: m(() => [
683
- O("header", null, [
684
- A(r.$slots, "header")
690
+ default: f(() => [
691
+ V(i, { class: "d-flex justify-space-between align-center" }, {
692
+ default: f(() => [
693
+ j("header", null, [
694
+ A(o.$slots, "header")
685
695
  ]),
686
- e.hideClose ? X("", !0) : (s(), b(p, {
696
+ e.hideClose ? z("", !0) : (s(), _(p, {
687
697
  key: 0,
688
698
  icon: "mdi-close",
689
699
  variant: "text",
690
- onClick: l[0] || (l[0] = (a) => r.$emit("closeDialog"))
700
+ onClick: a[0] || (a[0] = (l) => o.$emit("closeDialog"))
691
701
  }))
692
702
  ]),
693
703
  _: 3
694
704
  }),
695
- k(v),
696
- k(g, { class: "py-4 px-1 overflow-auto overflow-x-hidden" }, {
697
- default: m(() => [
698
- A(r.$slots, "default")
705
+ V(y),
706
+ V(g, { class: "py-4 px-1 overflow-auto overflow-x-hidden" }, {
707
+ default: f(() => [
708
+ A(o.$slots, "default")
699
709
  ]),
700
710
  _: 3
701
711
  })
@@ -729,21 +739,21 @@ const Me = /* @__PURE__ */ C({
729
739
  labelConfirm: { default: "Confirm" }
730
740
  },
731
741
  setup(t) {
732
- const e = t, n = S(() => e.rules), { errorMessage: r, value: l } = R(() => e.name, n, {
742
+ const e = t, n = B(() => e.rules), { errorMessage: o, value: a } = U(() => e.name, n, {
733
743
  initialValue: e.modelValue || "",
734
744
  syncVModel: !0
735
- }), p = P(!1), o = P(l);
736
- function v() {
737
- l.value = o.value, p.value = !1;
745
+ }), p = N(!1), i = N(a);
746
+ function y() {
747
+ a.value = i.value, p.value = !1;
738
748
  }
739
- function g(i) {
740
- o.value && o.value.includes(":") && (o.value = i.toString().padStart(2, "0") + o.value.substring(o.value.indexOf(":")));
749
+ function g(d) {
750
+ i.value && i.value.includes(":") && (i.value = d.toString().padStart(2, "0") + i.value.substring(i.value.indexOf(":")));
741
751
  }
742
- return (i, d) => {
743
- const a = y("v-spacer"), F = y("v-time-picker"), _ = y("v-menu"), $ = y("v-text-field");
744
- return s(), b($, w(i.$attrs, {
745
- modelValue: V(l),
746
- "onUpdate:modelValue": d[4] || (d[4] = (h) => j(l) ? l.value = h : null),
752
+ return (d, r) => {
753
+ const l = b("v-spacer"), k = b("v-time-picker"), w = b("v-menu"), M = b("v-text-field");
754
+ return s(), _(M, S(d.$attrs, {
755
+ modelValue: h(a),
756
+ "onUpdate:modelValue": r[4] || (r[4] = (u) => E(a) ? a.value = u : null),
747
757
  "prepend-inner-icon": "mdi-clock-time-four-outline",
748
758
  name: e.name,
749
759
  active: p.value,
@@ -753,46 +763,46 @@ const Me = /* @__PURE__ */ C({
753
763
  variant: e.variant,
754
764
  "hide-details": e.hideDetails,
755
765
  readonly: e.readonly,
756
- "error-messages": V(r)
766
+ "error-messages": h(o)
757
767
  }), {
758
- default: m(() => [
759
- k(_, {
768
+ default: f(() => [
769
+ V(w, {
760
770
  modelValue: p.value,
761
- "onUpdate:modelValue": d[3] || (d[3] = (h) => p.value = h),
771
+ "onUpdate:modelValue": r[3] || (r[3] = (u) => p.value = u),
762
772
  activator: "parent",
763
773
  location: "center",
764
774
  disabled: e.readonly,
765
775
  "close-on-content-click": !1
766
776
  }, {
767
- default: m(() => [
768
- p.value ? (s(), b(F, {
777
+ default: f(() => [
778
+ p.value ? (s(), _(k, {
769
779
  key: 0,
770
- modelValue: o.value,
771
- "onUpdate:modelValue": d[1] || (d[1] = (h) => o.value = h),
780
+ modelValue: i.value,
781
+ "onUpdate:modelValue": r[1] || (r[1] = (u) => i.value = u),
772
782
  "full-width": "",
773
783
  color: "secondary",
774
784
  format: "24hr",
775
785
  title: e.title,
776
- "onUpdate:hour": d[2] || (d[2] = (h) => g(h))
786
+ "onUpdate:hour": r[2] || (r[2] = (u) => g(u))
777
787
  }, {
778
- actions: m(() => [
779
- O("div", Ee, [
780
- k(J, {
788
+ actions: f(() => [
789
+ j("div", Ee, [
790
+ V(J, {
781
791
  variant: "plain",
782
792
  color: "red-darken-2",
783
793
  text: e.labelCancel,
784
- onClick: d[0] || (d[0] = (h) => p.value = !1)
794
+ onClick: r[0] || (r[0] = (u) => p.value = !1)
785
795
  }, null, 8, ["text"]),
786
- k(a),
787
- k(J, {
796
+ V(l),
797
+ V(J, {
788
798
  variant: "tonal",
789
799
  text: e.labelConfirm,
790
- onClick: v
800
+ onClick: y
791
801
  }, null, 8, ["text"])
792
802
  ])
793
803
  ]),
794
804
  _: 1
795
- }, 8, ["modelValue", "title"])) : X("", !0)
805
+ }, 8, ["modelValue", "title"])) : z("", !0)
796
806
  ]),
797
807
  _: 1
798
808
  }, 8, ["modelValue", "disabled"])
@@ -822,46 +832,46 @@ const Me = /* @__PURE__ */ C({
822
832
  dateFormat: { default: "DD/MM/YYYY" }
823
833
  },
824
834
  setup(t) {
825
- const e = t, n = S(() => e.rules);
826
- function r(d) {
827
- if (!d) return "";
828
- let a;
829
- if (d instanceof Date)
830
- a = d;
835
+ const e = t, n = B(() => e.rules);
836
+ function o(r) {
837
+ if (!r) return "";
838
+ let l;
839
+ if (r instanceof Date)
840
+ l = r;
831
841
  else {
832
- const h = d.split("/");
833
- h.length === 3 ? a = new Date(Number(h[2]), Number(h[1]) - 1, Number(h[0])) : a = new Date(d);
842
+ const u = r.split("/");
843
+ u.length === 3 ? l = new Date(Number(u[2]), Number(u[1]) - 1, Number(u[0])) : l = new Date(r);
834
844
  }
835
- if (isNaN(a.getTime())) return "";
836
- const F = `0${a.getDate()}`.slice(-2), _ = `0${a.getMonth() + 1}`.slice(-2), $ = a.getFullYear();
837
- return `${F}/${_}/${$}`;
845
+ if (isNaN(l.getTime())) return "";
846
+ const k = `0${l.getDate()}`.slice(-2), w = `0${l.getMonth() + 1}`.slice(-2), M = l.getFullYear();
847
+ return `${k}/${w}/${M}`;
838
848
  }
839
- function l(d) {
840
- if (!d) return null;
841
- const a = d.split("/");
842
- return a.length === 3 ? new Date(Number(a[2]), Number(a[1]) - 1, Number(a[0])) : null;
849
+ function a(r) {
850
+ if (!r) return null;
851
+ const l = r.split("/");
852
+ return l.length === 3 ? new Date(Number(l[2]), Number(l[1]) - 1, Number(l[0])) : null;
843
853
  }
844
- const { errorMessage: p, value: o } = R(() => e.name, n, {
845
- initialValue: e.modelValue ? r(e.modelValue) : "",
854
+ const { errorMessage: p, value: i } = U(() => e.name, n, {
855
+ initialValue: e.modelValue ? o(e.modelValue) : "",
846
856
  syncVModel: !0
847
- }), v = P(null), g = P(!1), i = (d) => {
848
- o.value = r(d), g.value = !1;
857
+ }), y = N(null), g = N(!1), d = (r) => {
858
+ i.value = o(r), g.value = !1;
849
859
  };
850
- return fe(() => {
851
- v.value = e.modelValue ? l(e.modelValue) : null;
852
- }), (d, a) => {
853
- const F = y("v-text-field"), _ = y("v-date-picker"), $ = y("v-locale-provider"), h = y("v-btn"), z = y("v-menu");
854
- return s(), b(z, {
860
+ return ae(() => {
861
+ y.value = e.modelValue ? a(e.modelValue) : null;
862
+ }), (r, l) => {
863
+ const k = b("v-text-field"), w = b("v-date-picker"), M = b("v-locale-provider"), u = b("v-btn"), x = b("v-menu");
864
+ return s(), _(x, {
855
865
  modelValue: g.value,
856
- "onUpdate:modelValue": a[4] || (a[4] = (I) => g.value = I),
866
+ "onUpdate:modelValue": l[4] || (l[4] = ($) => g.value = $),
857
867
  location: "center",
858
868
  disabled: e.disabled,
859
869
  "close-on-content-click": !1
860
870
  }, {
861
- activator: m(({ props: I }) => [
862
- k(F, w({ ...d.$attrs, ...I }, {
863
- modelValue: V(o),
864
- "onUpdate:modelValue": a[0] || (a[0] = (x) => j(o) ? o.value = x : null),
871
+ activator: f(({ props: $ }) => [
872
+ V(k, S({ ...r.$attrs, ...$ }, {
873
+ modelValue: h(i),
874
+ "onUpdate:modelValue": l[0] || (l[0] = (F) => E(i) ? i.value = F : null),
865
875
  "prepend-inner-icon": "mdi-calendar-outline",
866
876
  name: e.name,
867
877
  density: e.density,
@@ -870,21 +880,21 @@ const Me = /* @__PURE__ */ C({
870
880
  "hide-details": e.hideDetails,
871
881
  color: e.color,
872
882
  readonly: "",
873
- "error-messages": V(p),
874
- "onClick:clear": a[1] || (a[1] = (x) => o.value = "")
883
+ "error-messages": h(p),
884
+ "onClick:clear": l[1] || (l[1] = (F) => i.value = "")
875
885
  }), null, 16, ["modelValue", "name", "density", "rounded", "variant", "hide-details", "color", "error-messages"])
876
886
  ]),
877
- default: m(() => [
878
- O("div", Le, [
879
- k($, {
887
+ default: f(() => [
888
+ j("div", Le, [
889
+ V(M, {
880
890
  locale: e.locale
881
891
  }, {
882
- default: m(() => [
883
- k(_, {
884
- modelValue: v.value,
892
+ default: f(() => [
893
+ V(w, {
894
+ modelValue: y.value,
885
895
  "onUpdate:modelValue": [
886
- a[2] || (a[2] = (I) => v.value = I),
887
- i
896
+ l[2] || (l[2] = ($) => y.value = $),
897
+ d
888
898
  ],
889
899
  title: "",
890
900
  elevation: "10",
@@ -898,13 +908,13 @@ const Me = /* @__PURE__ */ C({
898
908
  ]),
899
909
  _: 1
900
910
  }, 8, ["locale"]),
901
- k(h, {
911
+ V(u, {
902
912
  class: "position-absolute top-0 right-0",
903
913
  color: "white",
904
914
  icon: "mdi-close",
905
915
  size: "small",
906
916
  variant: "text",
907
- onClick: a[3] || (a[3] = (I) => g.value = !1)
917
+ onClick: l[3] || (l[3] = ($) => g.value = !1)
908
918
  })
909
919
  ])
910
920
  ]),
@@ -925,41 +935,41 @@ const Me = /* @__PURE__ */ C({
925
935
  },
926
936
  emits: ["set-selected-items"],
927
937
  setup(t, { emit: e }) {
928
- const n = t, r = e, l = P(n.selectedItems), p = P(!1), o = [];
929
- function v(i) {
930
- i.isSelected ? l.value.push(i) : l.value.splice(l.value.indexOf(i), 1);
931
- const d = n.items.find((a) => a.id === i.id);
932
- if (d)
933
- d.children.map((a) => a.isSelected = i.isSelected), i.isSelected && d.children.forEach((a) => {
934
- const F = l.value.findIndex(
935
- (_) => _.id === a.id
938
+ const n = t, o = e, a = N(n.selectedItems), p = N(!1), i = [];
939
+ function y(d) {
940
+ d.isSelected ? a.value.push(d) : a.value.splice(a.value.indexOf(d), 1);
941
+ const r = n.items.find((l) => l.id === d.id);
942
+ if (r)
943
+ r.children.map((l) => l.isSelected = d.isSelected), d.isSelected && r.children.forEach((l) => {
944
+ const k = a.value.findIndex(
945
+ (w) => w.id === l.id
936
946
  );
937
- F !== -1 && l.value.splice(F, 1);
947
+ k !== -1 && a.value.splice(k, 1);
938
948
  });
939
949
  else {
940
- const a = n.items.find((F) => F.id === i.parentId);
941
- a && a.children.every((F) => F.isSelected) && (a.isSelected = !0);
950
+ const l = n.items.find((k) => k.id === d.parentId);
951
+ l && l.children.every((k) => k.isSelected) && (l.isSelected = !0);
942
952
  }
943
- r("set-selected-items", [...l.value]);
953
+ o("set-selected-items", [...a.value]);
944
954
  }
945
- function g(i) {
946
- const d = n.items.find((a) => a.id === i.id);
947
- return !d || d.children.every((a) => a.isSelected) ? !1 : !!d.children.find((a) => a.isSelected);
955
+ function g(d) {
956
+ const r = n.items.find((l) => l.id === d.id);
957
+ return !r || r.children.every((l) => l.isSelected) ? !1 : !!r.children.find((l) => l.isSelected);
948
958
  }
949
- return (i, d) => {
950
- const a = y("v-chip"), F = y("v-text-field"), _ = y("v-list-item"), $ = y("f-checkbox"), h = y("v-list-group"), z = y("v-list"), I = y("v-menu");
951
- return s(), b(I, {
959
+ return (d, r) => {
960
+ const l = b("v-chip"), k = b("v-text-field"), w = b("v-list-item"), M = b("f-checkbox"), u = b("v-list-group"), x = b("v-list"), $ = b("v-menu");
961
+ return s(), _($, {
952
962
  modelValue: p.value,
953
- "onUpdate:modelValue": d[1] || (d[1] = (x) => p.value = x),
963
+ "onUpdate:modelValue": r[1] || (r[1] = (F) => p.value = F),
954
964
  "max-height": "250px",
955
965
  "close-on-content-click": !1,
956
966
  disabled: n.disabled
957
967
  }, {
958
- activator: m(({ props: x }) => [
959
- k(F, w({
968
+ activator: f(({ props: F }) => [
969
+ V(k, S({
960
970
  name: "selectedItems",
961
971
  readonly: ""
962
- }, x, {
972
+ }, F, {
963
973
  variant: "outlined",
964
974
  rounded: "lg",
965
975
  density: "compact",
@@ -967,17 +977,17 @@ const Me = /* @__PURE__ */ C({
967
977
  "hide-details": "",
968
978
  clearable: !1,
969
979
  label: n.label,
970
- active: l.value.length > 0
980
+ active: a.value.length > 0
971
981
  }), {
972
- "prepend-inner": m(() => [
973
- O("div", Ge, [
974
- (s(!0), B(W, null, N(l.value, (u, c) => (s(), b(a, {
975
- key: c,
982
+ "prepend-inner": f(() => [
983
+ j("div", Ge, [
984
+ (s(!0), T(W, null, R(a.value, (c, m) => (s(), _(l, {
985
+ key: m,
976
986
  density: "compact",
977
987
  class: "ml-3"
978
988
  }, {
979
- default: m(() => [
980
- E(T(u[n.itemTitle]), 1)
989
+ default: f(() => [
990
+ X(P(c[n.itemTitle]), 1)
981
991
  ]),
982
992
  _: 2
983
993
  }, 1024))), 128))
@@ -986,55 +996,55 @@ const Me = /* @__PURE__ */ C({
986
996
  _: 1
987
997
  }, 16, ["label", "active"])
988
998
  ]),
989
- default: m(() => [
990
- k(z, {
999
+ default: f(() => [
1000
+ V(x, {
991
1001
  density: "compact",
992
1002
  nav: "",
993
1003
  "open-strategy": "single",
994
1004
  width: "100%",
995
- opened: o,
1005
+ opened: i,
996
1006
  slim: ""
997
1007
  }, {
998
- default: m(() => [
999
- (s(!0), B(W, null, N(t.items, (x) => (s(), B("div", {
1000
- key: x.id
1008
+ default: f(() => [
1009
+ (s(!0), T(W, null, R(t.items, (F) => (s(), T("div", {
1010
+ key: F.id
1001
1011
  }, [
1002
- x.children ? (s(), b(h, {
1012
+ F.children ? (s(), _(u, {
1003
1013
  key: 1,
1004
- value: x.id
1014
+ value: F.id
1005
1015
  }, {
1006
- activator: m(({ props: u }) => [
1007
- k(_, w({ ref_for: !0 }, u, {
1016
+ activator: f(({ props: c }) => [
1017
+ V(w, S({ ref_for: !0 }, c, {
1008
1018
  rounded: "lg",
1009
- title: x[n.itemTitle]
1019
+ title: F[n.itemTitle]
1010
1020
  }), {
1011
- prepend: m(() => [
1012
- k($, {
1013
- modelValue: x.isSelected,
1014
- "onUpdate:modelValue": (c) => x.isSelected = c,
1015
- indeterminate: g(x),
1016
- onClick: d[0] || (d[0] = q(() => {
1021
+ prepend: f(() => [
1022
+ V(M, {
1023
+ modelValue: F.isSelected,
1024
+ "onUpdate:modelValue": (m) => F.isSelected = m,
1025
+ indeterminate: g(F),
1026
+ onClick: r[0] || (r[0] = q(() => {
1017
1027
  }, ["stop"])),
1018
- onChange: (c) => v(x)
1028
+ onChange: (m) => y(F)
1019
1029
  }, null, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "onChange"])
1020
1030
  ]),
1021
1031
  _: 2
1022
1032
  }, 1040, ["title"])
1023
1033
  ]),
1024
- default: m(() => [
1025
- (s(!0), B(W, null, N(x.children, (u) => (s(), B("div", {
1026
- key: u.id
1034
+ default: f(() => [
1035
+ (s(!0), T(W, null, R(F.children, (c) => (s(), T("div", {
1036
+ key: c.id
1027
1037
  }, [
1028
- k(_, {
1038
+ V(w, {
1029
1039
  rounded: "lg",
1030
- title: u[n.itemTitle],
1031
- value: u.id
1040
+ title: c[n.itemTitle],
1041
+ value: c.id
1032
1042
  }, {
1033
- prepend: m(() => [
1034
- k($, {
1035
- modelValue: u.isSelected,
1036
- "onUpdate:modelValue": (c) => u.isSelected = c,
1037
- onChange: (c) => v(u)
1043
+ prepend: f(() => [
1044
+ V(M, {
1045
+ modelValue: c.isSelected,
1046
+ "onUpdate:modelValue": (m) => c.isSelected = m,
1047
+ onChange: (m) => y(c)
1038
1048
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
1039
1049
  ]),
1040
1050
  _: 2
@@ -1042,11 +1052,11 @@ const Me = /* @__PURE__ */ C({
1042
1052
  ]))), 128))
1043
1053
  ]),
1044
1054
  _: 2
1045
- }, 1032, ["value"])) : (s(), b(_, {
1055
+ }, 1032, ["value"])) : (s(), _(w, {
1046
1056
  key: 0,
1047
1057
  rounded: "lg",
1048
- title: x[n.itemTitle],
1049
- value: x.id
1058
+ title: F[n.itemTitle],
1059
+ value: F.id
1050
1060
  }, null, 8, ["title", "value"]))
1051
1061
  ]))), 128))
1052
1062
  ]),
@@ -1059,7 +1069,7 @@ const Me = /* @__PURE__ */ C({
1059
1069
  }
1060
1070
  }), Ze = {
1061
1071
  install(t) {
1062
- t.component("FButton", J), t.component("FTextField", Ve), t.component("FDataTable", Se), t.component("FTextarea", Me), t.component("FAutocomplete", Te), t.component("FCheckbox", Ie), t.component("FCurrencyField", Pe), t.component("FSelect", Ne), t.component("FNumberField", Ae), t.component("FSwitch", Oe), t.component("FDialog", je), t.component("FTimePicker", ze), t.component("FDatePicker", He), t.component("FTreeView", Ke);
1072
+ t.component("FButton", J), t.component("FTextField", Ve), t.component("FDataTable", Ce), t.component("FTextarea", Me), t.component("FAutocomplete", Te), t.component("FCheckbox", Ie), t.component("FCurrencyField", Pe), t.component("FSelect", Ne), t.component("FNumberField", Re), t.component("FSwitch", Oe), t.component("FDialog", je), t.component("FTimePicker", ze), t.component("FDatePicker", He), t.component("FTreeView", Ke);
1063
1073
  }
1064
1074
  };
1065
1075
  export {
@@ -1067,11 +1077,11 @@ export {
1067
1077
  J as FButton,
1068
1078
  Ie as FCheckbox,
1069
1079
  Pe as FCurrencyField,
1070
- Se as FDataTable,
1080
+ Ce as FDataTable,
1071
1081
  Be as FDataTableHeaderType,
1072
1082
  He as FDatePicker,
1073
1083
  je as FDialog,
1074
- Ae as FNumberField,
1084
+ Re as FNumberField,
1075
1085
  Ne as FSelect,
1076
1086
  Oe as FSwitch,
1077
1087
  Ve as FTextField,