finso-vue-components 0.4.31 → 0.4.32

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.
@@ -8,13 +8,13 @@ type __VLS_Props = FDialogProps;
8
8
  type __VLS_PublicProps = __VLS_Props & {
9
9
  modelValue?: boolean;
10
10
  };
11
- declare var __VLS_14: {}, __VLS_32: {}, __VLS_42: {};
11
+ declare var __VLS_14: {}, __VLS_32: {}, __VLS_38: {};
12
12
  type __VLS_Slots = {} & {
13
13
  header?: (props: typeof __VLS_14) => any;
14
14
  } & {
15
15
  default?: (props: typeof __VLS_32) => any;
16
16
  } & {
17
- footer?: (props: typeof __VLS_42) => any;
17
+ footer?: (props: typeof __VLS_38) => any;
18
18
  };
19
19
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
20
  "update:modelValue": (value: boolean | undefined) => any;
@@ -1,7 +1,7 @@
1
- import { defineComponent as C, resolveComponent as y, openBlock as i, createBlock as _, computed as B, withDirectives as ie, unref as F, mergeProps as w, isRef as X, createSlots as H, renderList as A, withCtx as c, renderSlot as N, normalizeProps as K, guardReactiveProps as W, useModel as L, ref as I, watch as q, createElementBlock as S, resolveDynamicComponent as ue, toHandlers as ce, toDisplayString as T, createTextVNode as z, createElementVNode as E, createCommentVNode as j, withModifiers as J, createVNode as V, mergeModels as Y, Fragment as G, onMounted as me } from "vue";
1
+ import { defineComponent as C, resolveComponent as y, openBlock as i, createBlock as _, computed as B, withDirectives as ie, unref as k, mergeProps as w, isRef as X, createSlots as H, renderList as A, withCtx as m, renderSlot as N, normalizeProps as K, guardReactiveProps as W, useModel as L, ref as I, watch as q, createElementBlock as S, resolveDynamicComponent as ue, toHandlers as ce, toDisplayString as T, createTextVNode as z, createElementVNode as R, createCommentVNode as E, withModifiers as J, createVNode as V, mergeModels as Y, Fragment as G, onMounted as me } from "vue";
2
2
  import { VTextField as fe, VTextarea as ve, VAutocomplete as pe, 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 Q = /* @__PURE__ */ C({
6
6
  __name: "FButton",
7
7
  props: {
@@ -10,7 +10,7 @@ const Q = /* @__PURE__ */ C({
10
10
  },
11
11
  setup(t) {
12
12
  const e = t;
13
- return (a, r) => {
13
+ return (n, r) => {
14
14
  const l = y("v-btn");
15
15
  return i(), _(l, {
16
16
  color: e.color,
@@ -37,12 +37,12 @@ const Q = /* @__PURE__ */ C({
37
37
  },
38
38
  emits: ["clickAppendInner"],
39
39
  setup(t) {
40
- const e = t, a = B(() => e.rules), { errorMessage: r, value: l } = R(() => e.name, a, {
40
+ const e = t, n = B(() => e.rules), { errorMessage: r, value: l } = U(() => e.name, n, {
41
41
  initialValue: e.modelValue,
42
42
  syncVModel: !0
43
43
  });
44
- return (v, o) => ie((i(), _(F(fe), w(v.$attrs, {
45
- modelValue: F(l),
44
+ return (v, o) => ie((i(), _(k(fe), w(v.$attrs, {
45
+ modelValue: k(l),
46
46
  "onUpdate:modelValue": o[0] || (o[0] = (p) => X(l) ? l.value = p : null),
47
47
  name: e.name,
48
48
  color: e.color,
@@ -51,18 +51,18 @@ const Q = /* @__PURE__ */ C({
51
51
  variant: e.variant,
52
52
  clearable: e.clearable,
53
53
  "hide-details": e.hideDetails,
54
- "error-messages": F(r),
54
+ "error-messages": k(r),
55
55
  "append-inner-icon": e.appendInnerIcon,
56
56
  "onClick:appendInner": o[1] || (o[1] = (p) => v.$emit("clickAppendInner"))
57
57
  }), H({ _: 2 }, [
58
58
  A(v.$slots, (p, b) => ({
59
59
  name: b,
60
- fn: c((s) => [
60
+ fn: m((s) => [
61
61
  N(v.$slots, b, K(W(s ?? {})))
62
62
  ])
63
63
  }))
64
64
  ]), 1040, ["modelValue", "name", "color", "density", "rounded", "variant", "clearable", "hide-details", "error-messages", "append-inner-icon"])), [
65
- [F(he), e.mask]
65
+ [k(he), e.mask]
66
66
  ]);
67
67
  }
68
68
  }), ke = {
@@ -71,7 +71,7 @@ const Q = /* @__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 }, $e = { key: 5 }, De = { class: "f-data-table__actions" }, we = { class: "text-h6" }, Ce = /* @__PURE__ */ C({
75
75
  name: "FDataTable",
76
76
  inheritAttrs: !1,
77
77
  __name: "FDataTable",
@@ -113,55 +113,55 @@ const Q = /* @__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 a = t, r = e, l = L(t, "page"), v = L(t, "itemsPerPage"), o = L(t, "sortBy"), p = I(!1), b = I(null);
117
- function s(u, m) {
118
- return m.split(".").reduce((M, O) => M == null ? void 0 : M[O], u);
116
+ const n = t, r = e, l = L(t, "page"), v = L(t, "itemsPerPage"), o = L(t, "sortBy"), p = I(!1), b = I(null);
117
+ function s(u, c) {
118
+ return c.split(".").reduce((M, j) => M == null ? void 0 : M[j], u);
119
119
  }
120
120
  function d(u) {
121
- return u == null ? "" : new Intl.NumberFormat(a.moneyLocale, {
121
+ return u == null ? "" : new Intl.NumberFormat(n.moneyLocale, {
122
122
  style: "currency",
123
- currency: a.moneyCurrency
123
+ currency: n.moneyCurrency
124
124
  }).format(u);
125
125
  }
126
- function n(u) {
126
+ function a(u) {
127
127
  if (!u) return "";
128
- const m = u.replace(/\D/g, "");
129
- return m.length < 10 ? u : `(${m.substring(0, 3)}) ${m.substring(3, 6)} ${m.substring(6, 10)}`;
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)}`;
130
130
  }
131
- function k(u, m) {
132
- return m.split(",").map((M) => {
133
- const O = s(u, M.trim());
134
- return typeof O == "string" ? O.charAt(0).toUpperCase() : "";
131
+ function F(u, c) {
132
+ return c.split(",").map((M) => {
133
+ const j = s(u, M.trim());
134
+ return typeof j == "string" ? j.charAt(0).toUpperCase() : "";
135
135
  }).join("");
136
136
  }
137
137
  const g = B(() => {
138
- const M = a.items.length === 0 ? 108 : a.items.length * 52 + 56;
139
- return Math.min(M, a.maxHeight);
140
- }), $ = B(() => !a.canEditRecord && !a.canReadRecord ? {} : {
141
- "click:row": (u, { item: m }) => {
142
- r("show-record", m);
138
+ const M = n.items.length === 0 ? 108 : n.items.length * 52 + 56;
139
+ return Math.min(M, n.maxHeight);
140
+ }), D = B(() => !n.canEditRecord && !n.canReadRecord ? {} : {
141
+ "click:row": (u, { item: c }) => {
142
+ r("show-record", c);
143
143
  }
144
144
  }), h = B(
145
- () => a.headers.filter((u) => u.type && u.key !== "actions")
146
- ), U = B(() => a.headers.some((u) => u.key === "actions"));
145
+ () => n.headers.filter((u) => u.type && u.key !== "actions")
146
+ ), O = B(() => n.headers.some((u) => u.key === "actions"));
147
147
  function P(u) {
148
- a.showDeleteConfirm ? (b.value = u, p.value = !0) : r("delete-record", u);
148
+ n.showDeleteConfirm ? (b.value = u, p.value = !0) : r("delete-record", u);
149
149
  }
150
150
  function x() {
151
- r("delete-record", b.value), a.deleteLoading === void 0 && (p.value = !1, b.value = null);
151
+ r("delete-record", b.value), n.deleteLoading === void 0 && (p.value = !1, b.value = null);
152
152
  }
153
- return q(() => a.deleteLoading, (u, m) => {
154
- m && !u && p.value && (p.value = !1, b.value = null);
155
- }), (u, m) => {
156
- const M = y("v-icon"), O = y("v-img"), ee = y("v-avatar"), ae = y("v-chip"), te = y("v-btn"), ne = y("v-card-text"), oe = y("v-spacer"), le = y("f-button"), re = y("v-card-actions"), de = y("f-dialog");
153
+ return q(() => n.deleteLoading, (u, c) => {
154
+ c && !u && p.value && (p.value = !1, b.value = null);
155
+ }), (u, c) => {
156
+ const M = y("v-icon"), j = y("v-img"), ee = y("v-avatar"), ae = y("v-chip"), te = y("v-btn"), ne = y("v-card-text"), oe = y("v-spacer"), le = y("f-button"), re = y("v-card-actions"), de = y("f-dialog");
157
157
  return i(), S("div", null, [
158
158
  (i(), _(ue(t.serverSide ? "v-data-table-server" : "v-data-table"), w(u.$attrs, {
159
159
  page: l.value,
160
- "onUpdate:page": m[0] || (m[0] = (f) => l.value = f),
160
+ "onUpdate:page": c[0] || (c[0] = (f) => l.value = f),
161
161
  "items-per-page": v.value,
162
- "onUpdate:itemsPerPage": m[1] || (m[1] = (f) => v.value = f),
162
+ "onUpdate:itemsPerPage": c[1] || (c[1] = (f) => v.value = f),
163
163
  "sort-by": o.value,
164
- "onUpdate:sortBy": m[2] || (m[2] = (f) => o.value = f),
164
+ "onUpdate:sortBy": c[2] || (c[2] = (f) => o.value = f),
165
165
  class: "rounded-b-lg",
166
166
  headers: t.headers,
167
167
  items: t.items,
@@ -174,13 +174,13 @@ const Q = /* @__PURE__ */ C({
174
174
  "fixed-header": t.fixedHeader,
175
175
  "items-per-page-text": t.labelItemsPerPage,
176
176
  "no-data-text": t.labelNoData
177
- }, ce($.value)), H({ _: 2 }, [
177
+ }, ce(D.value)), H({ _: 2 }, [
178
178
  A(h.value, (f) => ({
179
179
  name: `item.${f.key}`,
180
- fn: c(({ item: D }) => [
180
+ fn: m(({ item: $ }) => [
181
181
  N(u.$slots, `item.${f.key}`, {
182
- item: D,
183
- value: s(D, f.key)
182
+ item: $,
183
+ value: s($, f.key)
184
184
  }, () => [
185
185
  f.type === "image" ? (i(), _(ee, {
186
186
  key: 0,
@@ -188,29 +188,29 @@ const Q = /* @__PURE__ */ C({
188
188
  variant: "elevated",
189
189
  border: ""
190
190
  }, {
191
- default: c(() => [
192
- s(D, f.key) ? (i(), _(O, {
191
+ default: m(() => [
192
+ s($, f.key) ? (i(), _(j, {
193
193
  key: 0,
194
- src: s(D, f.key),
194
+ src: s($, f.key),
195
195
  class: "f-data-table__logo"
196
196
  }, {
197
- error: c(() => [
198
- f.imageInitialsKey ? (i(), S("span", ke, T(k(D, f.imageInitialsKey)), 1)) : (i(), _(M, {
197
+ error: m(() => [
198
+ f.imageInitialsKey ? (i(), S("span", ke, T(F($, f.imageInitialsKey)), 1)) : (i(), _(M, {
199
199
  key: 1,
200
200
  color: "white"
201
201
  }, {
202
- default: c(() => [...m[5] || (m[5] = [
202
+ default: m(() => [...c[5] || (c[5] = [
203
203
  z("mdi-account", -1)
204
204
  ])]),
205
205
  _: 1
206
206
  }))
207
207
  ]),
208
208
  _: 2
209
- }, 1032, ["src"])) : f.imageInitialsKey ? (i(), S("span", Fe, T(k(D, f.imageInitialsKey)), 1)) : (i(), _(M, {
209
+ }, 1032, ["src"])) : f.imageInitialsKey ? (i(), S("span", Fe, T(F($, f.imageInitialsKey)), 1)) : (i(), _(M, {
210
210
  key: 2,
211
211
  color: "white"
212
212
  }, {
213
- default: c(() => [...m[6] || (m[6] = [
213
+ default: m(() => [...c[6] || (c[6] = [
214
214
  z("mdi-account", -1)
215
215
  ])]),
216
216
  _: 1
@@ -225,97 +225,97 @@ const Q = /* @__PURE__ */ C({
225
225
  class: "f-data-table__logo-avatar",
226
226
  color: "white"
227
227
  }, {
228
- default: c(() => [
229
- s(D, f.key) ? (i(), _(O, {
228
+ default: m(() => [
229
+ s($, f.key) ? (i(), _(j, {
230
230
  key: 0,
231
- src: s(D, f.key),
231
+ src: s($, f.key),
232
232
  class: "f-data-table__logo"
233
233
  }, {
234
- error: c(() => [...m[7] || (m[7] = [
235
- E("div", { class: "f-data-table__logo-avatar fill-height" }, null, -1)
234
+ error: m(() => [...c[7] || (c[7] = [
235
+ R("div", { class: "f-data-table__logo-avatar fill-height" }, null, -1)
236
236
  ])]),
237
237
  _: 1
238
- }, 8, ["src"])) : j("", !0)
238
+ }, 8, ["src"])) : E("", !0)
239
239
  ]),
240
240
  _: 2
241
- }, 1024)) : f.type === "money" ? (i(), S("span", xe, T(d(s(D, f.key))), 1)) : f.type === "status" ? (i(), _(ae, {
241
+ }, 1024)) : f.type === "money" ? (i(), S("span", xe, T(d(s($, f.key))), 1)) : f.type === "status" ? (i(), _(ae, {
242
242
  key: 3,
243
- color: s(D, f.key) ? "green-darken-1" : "red-darken-2",
243
+ color: s($, f.key) ? "green-darken-1" : "red-darken-2",
244
244
  size: "small"
245
245
  }, {
246
- default: c(() => [
247
- z(T(s(D, f.key) ? t.labelActive : t.labelPassive), 1)
246
+ default: m(() => [
247
+ z(T(s($, f.key) ? t.labelActive : t.labelPassive), 1)
248
248
  ]),
249
249
  _: 2
250
250
  }, 1032, ["color"])) : f.type === "boolean" ? (i(), _(M, {
251
251
  key: 4,
252
- color: s(D, f.key) ? "green-darken-1" : "red-darken-2"
252
+ color: s($, f.key) ? "green-darken-1" : "red-darken-2"
253
253
  }, {
254
- default: c(() => [
255
- z(T(s(D, f.key) ? "mdi-check" : "mdi-close"), 1)
254
+ default: m(() => [
255
+ z(T(s($, f.key) ? "mdi-check" : "mdi-close"), 1)
256
256
  ]),
257
257
  _: 2
258
- }, 1032, ["color"])) : f.type === "gsmNo" ? (i(), S("span", De, T(n(s(D, f.key))), 1)) : j("", !0)
258
+ }, 1032, ["color"])) : f.type === "gsmNo" ? (i(), S("span", $e, T(a(s($, f.key))), 1)) : E("", !0)
259
259
  ], !0)
260
260
  ])
261
261
  })),
262
- U.value ? {
262
+ O.value ? {
263
263
  name: "item.actions",
264
- fn: c(({ item: f }) => [
264
+ fn: m(({ item: f }) => [
265
265
  N(u.$slots, "item.actions", { item: f }, () => [
266
- E("div", $e, [
266
+ R("div", De, [
267
267
  t.canEditRecord || t.canReadRecord ? (i(), _(te, {
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: J((D) => r("show-record", f), ["stop"])
274
- }, null, 8, ["icon", "color", "onClick"])) : j("", !0),
273
+ onClick: J(($) => r("show-record", f), ["stop"])
274
+ }, null, 8, ["icon", "color", "onClick"])) : E("", !0),
275
275
  t.canDeleteRecord ? (i(), _(te, {
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: J((D) => P(f), ["stop"])
282
- }, null, 8, ["onClick"])) : j("", !0)
281
+ onClick: J(($) => P(f), ["stop"])
282
+ }, null, 8, ["onClick"])) : E("", !0)
283
283
  ])
284
284
  ], !0)
285
285
  ]),
286
286
  key: "0"
287
287
  } : void 0,
288
- A(u.$slots, (f, D) => ({
289
- name: D,
290
- fn: c((se) => [
291
- N(u.$slots, D, K(W(se ?? {})), void 0, !0)
288
+ A(u.$slots, (f, $) => ({
289
+ name: $,
290
+ fn: m((se) => [
291
+ N(u.$slots, $, K(W(se ?? {})), 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
295
  V(de, {
296
296
  modelValue: p.value,
297
- "onUpdate:modelValue": m[4] || (m[4] = (f) => p.value = f),
297
+ "onUpdate:modelValue": c[4] || (c[4] = (f) => p.value = f),
298
298
  "max-width": "400",
299
299
  "hide-close": !0
300
300
  }, {
301
- header: c(() => [
302
- E("div", we, T(t.labelDeleteTitle), 1)
301
+ header: m(() => [
302
+ R("div", we, T(t.labelDeleteTitle), 1)
303
303
  ]),
304
- default: c(() => [
304
+ default: m(() => [
305
305
  V(ne, null, {
306
- default: c(() => [
306
+ default: m(() => [
307
307
  z(T(t.deleteMessageFormatter && b.value ? t.deleteMessageFormatter(b.value) : t.labelDeleteMessage), 1)
308
308
  ]),
309
309
  _: 1
310
310
  }),
311
311
  V(re, null, {
312
- default: c(() => [
312
+ default: m(() => [
313
313
  V(oe),
314
314
  V(le, {
315
315
  variant: "plain",
316
316
  color: "red-darken-2",
317
317
  text: t.labelDeleteCancel,
318
- onClick: m[3] || (m[3] = (f) => p.value = !1)
318
+ onClick: c[3] || (c[3] = (f) => p.value = !1)
319
319
  }, null, 8, ["text"]),
320
320
  V(le, {
321
321
  variant: "tonal",
@@ -333,10 +333,10 @@ const Q = /* @__PURE__ */ C({
333
333
  };
334
334
  }
335
335
  }), Z = (t, e) => {
336
- const a = t.__vccOpts || t;
336
+ const n = t.__vccOpts || t;
337
337
  for (const [r, l] of e)
338
- a[r] = l;
339
- return a;
338
+ n[r] = l;
339
+ return n;
340
340
  }, Se = /* @__PURE__ */ Z(Ce, [["__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({
@@ -357,12 +357,12 @@ const Me = /* @__PURE__ */ C({
357
357
  rules: { type: [String, Function], default: "" }
358
358
  },
359
359
  setup(t) {
360
- const e = t, a = B(() => e.rules), { errorMessage: r, value: l } = R(() => e.name, a, {
360
+ const e = t, n = B(() => e.rules), { errorMessage: r, value: l } = U(() => e.name, n, {
361
361
  initialValue: e.modelValue,
362
362
  syncVModel: !0
363
363
  });
364
- return (v, o) => (i(), _(F(ve), w(v.$attrs, {
365
- modelValue: F(l),
364
+ return (v, o) => (i(), _(k(ve), w(v.$attrs, {
365
+ modelValue: k(l),
366
366
  "onUpdate:modelValue": o[0] || (o[0] = (p) => X(l) ? l.value = p : null),
367
367
  name: e.name,
368
368
  rounded: e.rounded,
@@ -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": F(r)
376
+ "error-messages": k(r)
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,18 +396,18 @@ const Me = /* @__PURE__ */ C({
396
396
  },
397
397
  emits: ["change"],
398
398
  setup(t, { emit: e }) {
399
- const a = e, r = t, l = B(() => r.rules), { errorMessage: v, value: o } = R(() => r.name, l, {
399
+ const n = e, r = t, l = B(() => r.rules), { errorMessage: v, value: o } = U(() => r.name, l, {
400
400
  initialValue: r.modelValue,
401
401
  syncVModel: !0
402
402
  });
403
403
  function p(b) {
404
- a("change", b);
404
+ n("change", b);
405
405
  }
406
- return (b, s) => (i(), _(F(pe), w(b.$attrs, {
407
- modelValue: F(o),
406
+ return (b, s) => (i(), _(k(pe), w(b.$attrs, {
407
+ modelValue: k(o),
408
408
  "onUpdate:modelValue": [
409
409
  s[0] || (s[0] = (d) => X(o) ? o.value = d : null),
410
- s[1] || (s[1] = (d) => p(F(o)))
410
+ s[1] || (s[1] = (d) => p(k(o)))
411
411
  ],
412
412
  name: r.name,
413
413
  items: r.items,
@@ -419,13 +419,13 @@ const Me = /* @__PURE__ */ C({
419
419
  "hide-details": r.hideDetails,
420
420
  "return-object": r.returnObject,
421
421
  "no-data-text": r.noDataText,
422
- "error-messages": F(v),
422
+ "error-messages": k(v),
423
423
  "menu-props": { maxWidth: 0 }
424
424
  }), H({ _: 2 }, [
425
- A(b.$slots, (d, n) => ({
426
- name: n,
427
- fn: c((k) => [
428
- N(b.$slots, n, K(W(k ?? {})))
425
+ A(b.$slots, (d, a) => ({
426
+ name: a,
427
+ fn: m((F) => [
428
+ N(b.$slots, a, K(W(F ?? {})))
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 (a, r) => (i(), _(F(ye), w(a.$attrs, {
445
+ return (n, r) => (i(), _(k(ye), w(n.$attrs, {
446
446
  color: e.color,
447
447
  "hide-details": e.hideDetails,
448
448
  indeterminate: e.indeterminate,
@@ -469,7 +469,7 @@ const Me = /* @__PURE__ */ C({
469
469
  rules: { type: [String, Function], default: "" }
470
470
  },
471
471
  setup(t) {
472
- const e = t, a = B(() => e.rules), { errorMessage: r, value: l } = R(() => e.name, a, {
472
+ const e = t, n = B(() => e.rules), { errorMessage: r, value: l } = U(() => e.name, n, {
473
473
  initialValue: e.modelValue,
474
474
  syncVModel: !0
475
475
  }), v = B(
@@ -484,9 +484,9 @@ const Me = /* @__PURE__ */ C({
484
484
  return g == null || isNaN(g) ? "" : v.value.format(g);
485
485
  }
486
486
  function b(g) {
487
- const $ = g.replace(/[^\d.,-]/g, "").replace(",", ".");
488
- if (!/\d/.test($)) return null;
489
- const h = parseFloat($);
487
+ const D = g.replace(/[^\d.,-]/g, "").replace(",", ".");
488
+ if (!/\d/.test(D)) return null;
489
+ const h = parseFloat(D);
490
490
  return isNaN(h) ? null : Math.round(h * Math.pow(10, e.precision)) / Math.pow(10, e.precision);
491
491
  }
492
492
  const s = I(!1);
@@ -496,27 +496,27 @@ const Me = /* @__PURE__ */ C({
496
496
  q(o, (g) => {
497
497
  g == null || g === "" ? l.value = null : s.value && (l.value = b(g));
498
498
  });
499
- function n() {
499
+ function a() {
500
500
  s.value = !1;
501
501
  const g = o.value;
502
502
  g == null || g === "" ? (l.value = null, o.value = "") : o.value = p(l.value);
503
503
  }
504
- function k(g) {
504
+ function F(g) {
505
505
  s.value = !0;
506
- const $ = g.target, h = l.value;
507
- h != null ? o.value = String(h) : o.value = "", setTimeout(() => $.select(), 0);
506
+ const D = g.target, h = l.value;
507
+ h != null ? o.value = String(h) : o.value = "", setTimeout(() => D.select(), 0);
508
508
  }
509
509
  return q(
510
510
  () => e.modelValue,
511
511
  (g) => {
512
512
  s.value || (l.value = g, o.value = p(g));
513
513
  }
514
- ), (g, $) => {
514
+ ), (g, D) => {
515
515
  const h = y("v-text-field");
516
516
  return i(), _(h, w(g.$attrs, {
517
517
  inputmode: "decimal",
518
518
  modelValue: o.value,
519
- "onUpdate:modelValue": $[0] || ($[0] = (U) => o.value = U),
519
+ "onUpdate:modelValue": D[0] || (D[0] = (O) => o.value = O),
520
520
  name: e.name,
521
521
  label: e.label,
522
522
  readonly: e.readonly,
@@ -525,10 +525,10 @@ const Me = /* @__PURE__ */ C({
525
525
  variant: e.variant,
526
526
  density: e.density,
527
527
  color: e.color,
528
- "error-messages": F(r),
528
+ "error-messages": k(r),
529
529
  "onClick:clear": d,
530
- onBlur: n,
531
- onFocus: k
530
+ onBlur: a,
531
+ onFocus: F
532
532
  }), null, 16, ["modelValue", "name", "label", "readonly", "hide-details", "rounded", "variant", "density", "color", "error-messages"]);
533
533
  };
534
534
  }
@@ -549,12 +549,12 @@ const Me = /* @__PURE__ */ C({
549
549
  rules: { type: [String, Function], default: "" }
550
550
  },
551
551
  setup(t) {
552
- const e = t, a = B(() => e.rules), { errorMessage: r, value: l } = R(() => e.name, a, {
552
+ const e = t, n = B(() => e.rules), { errorMessage: r, value: l } = U(() => e.name, n, {
553
553
  initialValue: e.modelValue,
554
554
  syncVModel: !0
555
555
  });
556
- return (v, o) => (i(), _(F(ge), w(v.$attrs, {
557
- modelValue: F(l),
556
+ return (v, o) => (i(), _(k(ge), w(v.$attrs, {
557
+ modelValue: k(l),
558
558
  "onUpdate:modelValue": o[0] || (o[0] = (p) => X(l) ? l.value = p : null),
559
559
  name: e.name,
560
560
  items: e.items,
@@ -564,11 +564,11 @@ const Me = /* @__PURE__ */ C({
564
564
  color: e.color,
565
565
  "hide-details": e.hideDetails,
566
566
  "return-object": e.returnObject,
567
- "error-messages": F(r)
567
+ "error-messages": k(r)
568
568
  }), H({ _: 2 }, [
569
569
  A(v.$slots, (p, b) => ({
570
570
  name: b,
571
- fn: c((s) => [
571
+ fn: m((s) => [
572
572
  N(v.$slots, b, K(W(s ?? {})))
573
573
  ])
574
574
  }))
@@ -598,12 +598,12 @@ const Me = /* @__PURE__ */ C({
598
598
  rules: { type: [String, Function], default: "" }
599
599
  },
600
600
  setup(t) {
601
- const e = t, a = B(() => e.rules), { errorMessage: r, value: l } = R(() => e.name, a, {
601
+ const e = t, n = B(() => e.rules), { errorMessage: r, value: l } = U(() => e.name, n, {
602
602
  initialValue: e.modelValue,
603
603
  syncVModel: !0
604
604
  });
605
- return (v, o) => (i(), _(F(be), w(v.$attrs, {
606
- modelValue: F(l),
605
+ return (v, o) => (i(), _(k(be), w(v.$attrs, {
606
+ modelValue: k(l),
607
607
  "onUpdate:modelValue": o[0] || (o[0] = (p) => X(l) ? l.value = p : null),
608
608
  name: e.name,
609
609
  color: e.color,
@@ -620,7 +620,7 @@ const Me = /* @__PURE__ */ C({
620
620
  min: e.min,
621
621
  precision: e.precision,
622
622
  inset: e.inset,
623
- "error-messages": F(r)
623
+ "error-messages": k(r)
624
624
  }), null, 16, ["modelValue", "name", "color", "density", "rounded", "variant", "control-variant", "hide-details", "placeholder", "label", "prefix", "disabled", "readonly", "min", "precision", "inset", "error-messages"]));
625
625
  }
626
626
  }), Re = { key: 0 }, Ue = { key: 1 }, Oe = /* @__PURE__ */ C({
@@ -639,24 +639,24 @@ const Me = /* @__PURE__ */ C({
639
639
  }),
640
640
  emits: ["update:modelValue"],
641
641
  setup(t) {
642
- const e = t, a = L(t, "modelValue");
643
- return (r, l) => (i(), _(F(_e), w(r.$attrs, {
644
- modelValue: a.value,
645
- "onUpdate:modelValue": l[0] || (l[0] = (v) => a.value = v),
642
+ const e = t, n = L(t, "modelValue");
643
+ return (r, l) => (i(), _(k(_e), w(r.$attrs, {
644
+ modelValue: n.value,
645
+ "onUpdate:modelValue": l[0] || (l[0] = (v) => n.value = v),
646
646
  color: e.color,
647
647
  "hide-details": e.hideDetails,
648
648
  density: e.density
649
649
  }), H({ _: 2 }, [
650
650
  e.labelTrue || e.labelFalse ? {
651
651
  name: "label",
652
- fn: c(() => [
653
- a.value ? (i(), S("span", Re, T(e.labelTrue), 1)) : (i(), S("span", Ue, T(e.labelFalse), 1))
652
+ fn: m(() => [
653
+ n.value ? (i(), S("span", Re, T(e.labelTrue), 1)) : (i(), S("span", Ue, T(e.labelFalse), 1))
654
654
  ]),
655
655
  key: "0"
656
656
  } : void 0
657
657
  ]), 1040, ["modelValue", "color", "hide-details", "density"]));
658
658
  }
659
- }), je = /* @__PURE__ */ C({
659
+ }), je = { class: "pa-4" }, Ee = /* @__PURE__ */ C({
660
660
  name: "FDialog",
661
661
  inheritAttrs: !1,
662
662
  __name: "FDialog",
@@ -671,55 +671,52 @@ const Me = /* @__PURE__ */ C({
671
671
  }),
672
672
  emits: /* @__PURE__ */ Y(["closeDialog"], ["update:modelValue"]),
673
673
  setup(t) {
674
- const e = t, a = L(t, "modelValue");
674
+ const e = t, n = L(t, "modelValue");
675
675
  return (r, l) => {
676
- const v = y("v-btn"), o = y("v-card-title"), p = y("v-divider"), b = y("v-card-text"), s = y("v-card-actions"), d = y("v-card"), n = y("v-dialog");
677
- return i(), _(n, w(r.$attrs, {
678
- modelValue: a.value,
679
- "onUpdate:modelValue": l[1] || (l[1] = (k) => a.value = k),
676
+ const v = y("v-btn"), o = y("v-card-title"), p = y("v-divider"), b = y("v-card-text"), s = y("v-card"), d = y("v-dialog");
677
+ return i(), _(d, w(r.$attrs, {
678
+ modelValue: n.value,
679
+ "onUpdate:modelValue": l[1] || (l[1] = (a) => n.value = a),
680
680
  transition: e.transition,
681
681
  class: "f-dialog",
682
682
  width: e.width,
683
683
  persistent: e.persistent
684
684
  }), {
685
- default: c(() => [
686
- V(d, {
685
+ default: m(() => [
686
+ V(s, {
687
687
  class: "f-dialog-card",
688
688
  density: "default",
689
689
  variant: "elevated",
690
690
  rounded: "lg"
691
691
  }, {
692
- default: c(() => [
692
+ default: m(() => [
693
693
  V(o, { class: "d-flex justify-space-between align-center" }, {
694
- default: c(() => [
695
- E("header", null, [
694
+ default: m(() => [
695
+ R("header", null, [
696
696
  N(r.$slots, "header")
697
697
  ]),
698
- e.hideClose ? j("", !0) : (i(), _(v, {
698
+ e.hideClose ? E("", !0) : (i(), _(v, {
699
699
  key: 0,
700
700
  icon: "mdi-close",
701
701
  variant: "text",
702
- onClick: l[0] || (l[0] = (k) => r.$emit("closeDialog"))
702
+ onClick: l[0] || (l[0] = (a) => r.$emit("closeDialog"))
703
703
  }))
704
704
  ]),
705
705
  _: 3
706
706
  }),
707
707
  V(p),
708
708
  V(b, { class: "py-4 px-1 overflow-auto overflow-x-hidden" }, {
709
- default: c(() => [
709
+ default: m(() => [
710
710
  N(r.$slots, "default")
711
711
  ]),
712
712
  _: 3
713
713
  }),
714
714
  r.$slots.footer ? (i(), S(G, { key: 0 }, [
715
715
  V(p),
716
- V(s, { class: "pa-4" }, {
717
- default: c(() => [
718
- N(r.$slots, "footer")
719
- ]),
720
- _: 3
721
- })
722
- ], 64)) : j("", !0)
716
+ R("div", je, [
717
+ N(r.$slots, "footer")
718
+ ])
719
+ ], 64)) : E("", !0)
723
720
  ]),
724
721
  _: 3
725
722
  })
@@ -728,10 +725,10 @@ const Me = /* @__PURE__ */ C({
728
725
  }, 16, ["modelValue", "transition", "width", "persistent"]);
729
726
  };
730
727
  }
731
- }), Ee = {
728
+ }), Xe = {
732
729
  class: "d-flex mt-5 mb-n6",
733
730
  style: { width: "100%" }
734
- }, Xe = /* @__PURE__ */ C({
731
+ }, ze = /* @__PURE__ */ C({
735
732
  name: "FTimePicker",
736
733
  inheritAttrs: !1,
737
734
  __name: "FTimePicker",
@@ -750,7 +747,7 @@ const Me = /* @__PURE__ */ C({
750
747
  labelConfirm: { default: "Confirm" }
751
748
  },
752
749
  setup(t) {
753
- const e = t, a = B(() => e.rules), { errorMessage: r, value: l } = R(() => e.name, a, {
750
+ const e = t, n = B(() => e.rules), { errorMessage: r, value: l } = U(() => e.name, n, {
754
751
  initialValue: e.modelValue || "",
755
752
  syncVModel: !0
756
753
  }), v = I(!1), o = I(l);
@@ -761,9 +758,9 @@ const Me = /* @__PURE__ */ C({
761
758
  o.value && o.value.includes(":") && (o.value = s.toString().padStart(2, "0") + o.value.substring(o.value.indexOf(":")));
762
759
  }
763
760
  return (s, d) => {
764
- const n = y("v-spacer"), k = y("v-time-picker"), g = y("v-menu"), $ = y("v-text-field");
765
- return i(), _($, w(s.$attrs, {
766
- modelValue: F(l),
761
+ const a = y("v-spacer"), F = y("v-time-picker"), g = y("v-menu"), D = y("v-text-field");
762
+ return i(), _(D, w(s.$attrs, {
763
+ modelValue: k(l),
767
764
  "onUpdate:modelValue": d[4] || (d[4] = (h) => X(l) ? l.value = h : null),
768
765
  "prepend-inner-icon": "mdi-clock-time-four-outline",
769
766
  name: e.name,
@@ -774,9 +771,9 @@ const Me = /* @__PURE__ */ C({
774
771
  variant: e.variant,
775
772
  "hide-details": e.hideDetails,
776
773
  readonly: e.readonly,
777
- "error-messages": F(r)
774
+ "error-messages": k(r)
778
775
  }), {
779
- default: c(() => [
776
+ default: m(() => [
780
777
  V(g, {
781
778
  modelValue: v.value,
782
779
  "onUpdate:modelValue": d[3] || (d[3] = (h) => v.value = h),
@@ -785,8 +782,8 @@ const Me = /* @__PURE__ */ C({
785
782
  disabled: e.readonly,
786
783
  "close-on-content-click": !1
787
784
  }, {
788
- default: c(() => [
789
- v.value ? (i(), _(k, {
785
+ default: m(() => [
786
+ v.value ? (i(), _(F, {
790
787
  key: 0,
791
788
  modelValue: o.value,
792
789
  "onUpdate:modelValue": d[1] || (d[1] = (h) => o.value = h),
@@ -796,15 +793,15 @@ const Me = /* @__PURE__ */ C({
796
793
  title: e.title,
797
794
  "onUpdate:hour": d[2] || (d[2] = (h) => b(h))
798
795
  }, {
799
- actions: c(() => [
800
- E("div", Ee, [
796
+ actions: m(() => [
797
+ R("div", Xe, [
801
798
  V(Q, {
802
799
  variant: "plain",
803
800
  color: "red-darken-2",
804
801
  text: e.labelCancel,
805
802
  onClick: d[0] || (d[0] = (h) => v.value = !1)
806
803
  }, null, 8, ["text"]),
807
- V(n),
804
+ V(a),
808
805
  V(Q, {
809
806
  variant: "tonal",
810
807
  text: e.labelConfirm,
@@ -813,7 +810,7 @@ const Me = /* @__PURE__ */ C({
813
810
  ])
814
811
  ]),
815
812
  _: 1
816
- }, 8, ["modelValue", "title"])) : j("", !0)
813
+ }, 8, ["modelValue", "title"])) : E("", !0)
817
814
  ]),
818
815
  _: 1
819
816
  }, 8, ["modelValue", "disabled"])
@@ -822,7 +819,7 @@ const Me = /* @__PURE__ */ C({
822
819
  }, 16, ["modelValue", "name", "active", "focus", "density", "rounded", "variant", "hide-details", "readonly", "error-messages"]);
823
820
  };
824
821
  }
825
- }), ze = /* @__PURE__ */ Z(Xe, [["__scopeId", "data-v-7639bf96"]]), Le = { class: "position-relative" }, Ye = /* @__PURE__ */ C({
822
+ }), Le = /* @__PURE__ */ Z(ze, [["__scopeId", "data-v-7639bf96"]]), Ye = { class: "position-relative" }, He = /* @__PURE__ */ C({
826
823
  name: "TestPicker",
827
824
  inheritAttrs: !1,
828
825
  __name: "FDatePicker",
@@ -844,26 +841,26 @@ const Me = /* @__PURE__ */ C({
844
841
  header: { default: "" }
845
842
  },
846
843
  setup(t) {
847
- const e = t, a = B(() => e.rules);
844
+ const e = t, n = B(() => e.rules);
848
845
  function r(d) {
849
846
  if (!d) return "";
850
- let n;
847
+ let a;
851
848
  if (d instanceof Date)
852
- n = d;
849
+ a = d;
853
850
  else {
854
851
  const h = d.split("/");
855
- h.length === 3 ? n = new Date(Number(h[2]), Number(h[1]) - 1, Number(h[0])) : n = new Date(d);
852
+ h.length === 3 ? a = new Date(Number(h[2]), Number(h[1]) - 1, Number(h[0])) : a = new Date(d);
856
853
  }
857
- if (isNaN(n.getTime())) return "";
858
- const k = `0${n.getDate()}`.slice(-2), g = `0${n.getMonth() + 1}`.slice(-2), $ = n.getFullYear();
859
- return `${k}/${g}/${$}`;
854
+ if (isNaN(a.getTime())) return "";
855
+ const F = `0${a.getDate()}`.slice(-2), g = `0${a.getMonth() + 1}`.slice(-2), D = a.getFullYear();
856
+ return `${F}/${g}/${D}`;
860
857
  }
861
858
  function l(d) {
862
859
  if (!d) return null;
863
- const n = d.split("/");
864
- return n.length === 3 ? new Date(Number(n[2]), Number(n[1]) - 1, Number(n[0])) : null;
860
+ const a = d.split("/");
861
+ return a.length === 3 ? new Date(Number(a[2]), Number(a[1]) - 1, Number(a[0])) : null;
865
862
  }
866
- const { errorMessage: v, value: o } = R(() => e.name, a, {
863
+ const { errorMessage: v, value: o } = U(() => e.name, n, {
867
864
  initialValue: e.modelValue ? r(e.modelValue) : "",
868
865
  syncVModel: !0
869
866
  }), p = I(null), b = I(!1), s = (d) => {
@@ -871,19 +868,19 @@ const Me = /* @__PURE__ */ C({
871
868
  };
872
869
  return me(() => {
873
870
  p.value = e.modelValue ? l(e.modelValue) : null;
874
- }), (d, n) => {
875
- const k = y("v-text-field"), g = y("v-date-picker"), $ = y("v-locale-provider"), h = y("v-btn"), U = y("v-menu");
876
- return i(), _(U, {
871
+ }), (d, a) => {
872
+ const F = y("v-text-field"), g = y("v-date-picker"), D = y("v-locale-provider"), h = y("v-btn"), O = y("v-menu");
873
+ return i(), _(O, {
877
874
  modelValue: b.value,
878
- "onUpdate:modelValue": n[4] || (n[4] = (P) => b.value = P),
875
+ "onUpdate:modelValue": a[4] || (a[4] = (P) => b.value = P),
879
876
  location: "center",
880
877
  disabled: e.disabled,
881
878
  "close-on-content-click": !1
882
879
  }, {
883
- activator: c(({ props: P }) => [
884
- V(k, w({ ...d.$attrs, ...P }, {
885
- modelValue: F(o),
886
- "onUpdate:modelValue": n[0] || (n[0] = (x) => X(o) ? o.value = x : null),
880
+ activator: m(({ props: P }) => [
881
+ V(F, w({ ...d.$attrs, ...P }, {
882
+ modelValue: k(o),
883
+ "onUpdate:modelValue": a[0] || (a[0] = (x) => X(o) ? o.value = x : null),
887
884
  "prepend-inner-icon": "mdi-calendar-outline",
888
885
  name: e.name,
889
886
  density: e.density,
@@ -892,20 +889,20 @@ const Me = /* @__PURE__ */ C({
892
889
  "hide-details": e.hideDetails,
893
890
  color: e.color,
894
891
  readonly: "",
895
- "error-messages": F(v),
896
- "onClick:clear": n[1] || (n[1] = (x) => o.value = "")
892
+ "error-messages": k(v),
893
+ "onClick:clear": a[1] || (a[1] = (x) => o.value = "")
897
894
  }), null, 16, ["modelValue", "name", "density", "rounded", "variant", "hide-details", "color", "error-messages"])
898
895
  ]),
899
- default: c(() => [
900
- E("div", Le, [
901
- V($, {
896
+ default: m(() => [
897
+ R("div", Ye, [
898
+ V(D, {
902
899
  locale: e.locale
903
900
  }, {
904
- default: c(() => [
901
+ default: m(() => [
905
902
  V(g, {
906
903
  modelValue: p.value,
907
904
  "onUpdate:modelValue": [
908
- n[2] || (n[2] = (P) => p.value = P),
905
+ a[2] || (a[2] = (P) => p.value = P),
909
906
  s
910
907
  ],
911
908
  title: "",
@@ -927,7 +924,7 @@ const Me = /* @__PURE__ */ C({
927
924
  icon: "mdi-close",
928
925
  size: "small",
929
926
  variant: "text",
930
- onClick: n[3] || (n[3] = (P) => b.value = !1)
927
+ onClick: a[3] || (a[3] = (P) => b.value = !1)
931
928
  })
932
929
  ])
933
930
  ]),
@@ -935,7 +932,7 @@ const Me = /* @__PURE__ */ C({
935
932
  }, 8, ["modelValue", "disabled"]);
936
933
  };
937
934
  }
938
- }), He = /* @__PURE__ */ Z(Ye, [["__scopeId", "data-v-313419c1"]]), Ge = { class: "d-flex" }, Ke = /* @__PURE__ */ C({
935
+ }), Ge = /* @__PURE__ */ Z(He, [["__scopeId", "data-v-313419c1"]]), Ke = { class: "d-flex" }, We = /* @__PURE__ */ C({
939
936
  name: "FTreeView",
940
937
  inheritAttrs: !1,
941
938
  __name: "FTreeView",
@@ -948,38 +945,38 @@ const Me = /* @__PURE__ */ C({
948
945
  },
949
946
  emits: ["set-selected-items"],
950
947
  setup(t, { emit: e }) {
951
- const a = t, r = e, l = I(a.selectedItems), v = I(!1), o = [];
948
+ const n = t, r = e, l = I(n.selectedItems), v = I(!1), o = [];
952
949
  function p(s) {
953
950
  s.isSelected ? l.value.push(s) : l.value.splice(l.value.indexOf(s), 1);
954
- const d = a.items.find((n) => n.id === s.id);
951
+ const d = n.items.find((a) => a.id === s.id);
955
952
  if (d)
956
- d.children.map((n) => n.isSelected = s.isSelected), s.isSelected && d.children.forEach((n) => {
957
- const k = l.value.findIndex(
958
- (g) => g.id === n.id
953
+ d.children.map((a) => a.isSelected = s.isSelected), s.isSelected && d.children.forEach((a) => {
954
+ const F = l.value.findIndex(
955
+ (g) => g.id === a.id
959
956
  );
960
- k !== -1 && l.value.splice(k, 1);
957
+ F !== -1 && l.value.splice(F, 1);
961
958
  });
962
959
  else {
963
- const n = a.items.find((k) => k.id === s.parentId);
964
- n && n.children.every((k) => k.isSelected) && (n.isSelected = !0);
960
+ const a = n.items.find((F) => F.id === s.parentId);
961
+ a && a.children.every((F) => F.isSelected) && (a.isSelected = !0);
965
962
  }
966
963
  r("set-selected-items", [...l.value]);
967
964
  }
968
965
  function b(s) {
969
- const d = a.items.find((n) => n.id === s.id);
970
- return !d || d.children.every((n) => n.isSelected) ? !1 : !!d.children.find((n) => n.isSelected);
966
+ const d = n.items.find((a) => a.id === s.id);
967
+ return !d || d.children.every((a) => a.isSelected) ? !1 : !!d.children.find((a) => a.isSelected);
971
968
  }
972
969
  return (s, d) => {
973
- const n = y("v-chip"), k = y("v-text-field"), g = y("v-list-item"), $ = y("f-checkbox"), h = y("v-list-group"), U = y("v-list"), P = y("v-menu");
970
+ const a = y("v-chip"), F = y("v-text-field"), g = y("v-list-item"), D = y("f-checkbox"), h = y("v-list-group"), O = y("v-list"), P = y("v-menu");
974
971
  return i(), _(P, {
975
972
  modelValue: v.value,
976
973
  "onUpdate:modelValue": d[1] || (d[1] = (x) => v.value = x),
977
974
  "max-height": "250px",
978
975
  "close-on-content-click": !1,
979
- disabled: a.disabled
976
+ disabled: n.disabled
980
977
  }, {
981
- activator: c(({ props: x }) => [
982
- V(k, w({
978
+ activator: m(({ props: x }) => [
979
+ V(F, w({
983
980
  name: "selectedItems",
984
981
  readonly: ""
985
982
  }, x, {
@@ -989,18 +986,18 @@ const Me = /* @__PURE__ */ C({
989
986
  color: "secondary",
990
987
  "hide-details": "",
991
988
  clearable: !1,
992
- label: a.label,
989
+ label: n.label,
993
990
  active: l.value.length > 0
994
991
  }), {
995
- "prepend-inner": c(() => [
996
- E("div", Ge, [
997
- (i(!0), S(G, null, A(l.value, (u, m) => (i(), _(n, {
998
- key: m,
992
+ "prepend-inner": m(() => [
993
+ R("div", Ke, [
994
+ (i(!0), S(G, null, A(l.value, (u, c) => (i(), _(a, {
995
+ key: c,
999
996
  density: "compact",
1000
997
  class: "ml-3"
1001
998
  }, {
1002
- default: c(() => [
1003
- z(T(u[a.itemTitle]), 1)
999
+ default: m(() => [
1000
+ z(T(u[n.itemTitle]), 1)
1004
1001
  ]),
1005
1002
  _: 2
1006
1003
  }, 1024))), 128))
@@ -1009,8 +1006,8 @@ const Me = /* @__PURE__ */ C({
1009
1006
  _: 1
1010
1007
  }, 16, ["label", "active"])
1011
1008
  ]),
1012
- default: c(() => [
1013
- V(U, {
1009
+ default: m(() => [
1010
+ V(O, {
1014
1011
  density: "compact",
1015
1012
  nav: "",
1016
1013
  "open-strategy": "single",
@@ -1018,7 +1015,7 @@ const Me = /* @__PURE__ */ C({
1018
1015
  opened: o,
1019
1016
  slim: ""
1020
1017
  }, {
1021
- default: c(() => [
1018
+ default: m(() => [
1022
1019
  (i(!0), S(G, null, A(t.items, (x) => (i(), S("div", {
1023
1020
  key: x.id
1024
1021
  }, [
@@ -1026,38 +1023,38 @@ const Me = /* @__PURE__ */ C({
1026
1023
  key: 1,
1027
1024
  value: x.id
1028
1025
  }, {
1029
- activator: c(({ props: u }) => [
1026
+ activator: m(({ props: u }) => [
1030
1027
  V(g, w({ ref_for: !0 }, u, {
1031
1028
  rounded: "lg",
1032
- title: x[a.itemTitle]
1029
+ title: x[n.itemTitle]
1033
1030
  }), {
1034
- prepend: c(() => [
1035
- V($, {
1031
+ prepend: m(() => [
1032
+ V(D, {
1036
1033
  modelValue: x.isSelected,
1037
- "onUpdate:modelValue": (m) => x.isSelected = m,
1034
+ "onUpdate:modelValue": (c) => x.isSelected = c,
1038
1035
  indeterminate: b(x),
1039
1036
  onClick: d[0] || (d[0] = J(() => {
1040
1037
  }, ["stop"])),
1041
- onChange: (m) => p(x)
1038
+ onChange: (c) => p(x)
1042
1039
  }, null, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "onChange"])
1043
1040
  ]),
1044
1041
  _: 2
1045
1042
  }, 1040, ["title"])
1046
1043
  ]),
1047
- default: c(() => [
1044
+ default: m(() => [
1048
1045
  (i(!0), S(G, null, A(x.children, (u) => (i(), S("div", {
1049
1046
  key: u.id
1050
1047
  }, [
1051
1048
  V(g, {
1052
1049
  rounded: "lg",
1053
- title: u[a.itemTitle],
1050
+ title: u[n.itemTitle],
1054
1051
  value: u.id
1055
1052
  }, {
1056
- prepend: c(() => [
1057
- V($, {
1053
+ prepend: m(() => [
1054
+ V(D, {
1058
1055
  modelValue: u.isSelected,
1059
- "onUpdate:modelValue": (m) => u.isSelected = m,
1060
- onChange: (m) => p(u)
1056
+ "onUpdate:modelValue": (c) => u.isSelected = c,
1057
+ onChange: (c) => p(u)
1061
1058
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
1062
1059
  ]),
1063
1060
  _: 2
@@ -1068,7 +1065,7 @@ const Me = /* @__PURE__ */ C({
1068
1065
  }, 1032, ["value"])) : (i(), _(g, {
1069
1066
  key: 0,
1070
1067
  rounded: "lg",
1071
- title: x[a.itemTitle],
1068
+ title: x[n.itemTitle],
1072
1069
  value: x.id
1073
1070
  }, null, 8, ["title", "value"]))
1074
1071
  ]))), 128))
@@ -1080,9 +1077,9 @@ const Me = /* @__PURE__ */ C({
1080
1077
  }, 8, ["modelValue", "disabled"]);
1081
1078
  };
1082
1079
  }
1083
- }), Ze = {
1080
+ }), et = {
1084
1081
  install(t) {
1085
- t.component("FButton", Q), t.component("FTextField", Ve), t.component("FDataTable", Se), t.component("FTextarea", Me), t.component("FAutocomplete", Te), t.component("FCheckbox", Pe), t.component("FCurrencyField", Ie), 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);
1082
+ t.component("FButton", Q), t.component("FTextField", Ve), t.component("FDataTable", Se), t.component("FTextarea", Me), t.component("FAutocomplete", Te), t.component("FCheckbox", Pe), t.component("FCurrencyField", Ie), t.component("FSelect", Ne), t.component("FNumberField", Ae), t.component("FSwitch", Oe), t.component("FDialog", Ee), t.component("FTimePicker", Le), t.component("FDatePicker", Ge), t.component("FTreeView", We);
1086
1083
  }
1087
1084
  };
1088
1085
  export {
@@ -1092,14 +1089,14 @@ export {
1092
1089
  Ie as FCurrencyField,
1093
1090
  Se as FDataTable,
1094
1091
  Be as FDataTableHeaderType,
1095
- He as FDatePicker,
1096
- je as FDialog,
1092
+ Ge as FDatePicker,
1093
+ Ee as FDialog,
1097
1094
  Ae as FNumberField,
1098
1095
  Ne as FSelect,
1099
1096
  Oe as FSwitch,
1100
1097
  Ve as FTextField,
1101
1098
  Me as FTextarea,
1102
- ze as FTimePicker,
1103
- Ke as FTreeView,
1104
- Ze as default
1099
+ Le as FTimePicker,
1100
+ We as FTreeView,
1101
+ et as default
1105
1102
  };
@@ -1 +1 @@
1
- (function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vuetify/components"),require("maska/vue"),require("vee-validate")):typeof define=="function"&&define.amd?define(["exports","vue","vuetify/components","maska/vue","vee-validate"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.FinsoVueComponents={},h.Vue,h.VuetifyComponents,h.MaskaVue,h.VeeValidate))})(this,(function(h,e,w,K,x){"use strict";const N=e.defineComponent({__name:"FButton",props:{color:{default:"primary"},rounded:{type:[String,Number,Boolean],default:"lg"}},setup(o){const t=o;return(n,d)=>{const l=e.resolveComponent("v-btn");return e.openBlock(),e.createBlock(l,{color:t.color,rounded:t.rounded},null,8,["color","rounded"])}}}),M=e.defineComponent({name:"FTextField",inheritAttrs:!1,__name:"FTextField",props:{name:{},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},color:{default:"secondary"},clearable:{type:Boolean,default:!0},hideDetails:{type:[Boolean,String],default:"auto"},appendInnerIcon:{default:""},mask:{default:""},modelValue:{default:""},rules:{type:[String,Function],default:""}},emits:["clickAppendInner"],setup(o){const t=o,n=e.computed(()=>t.rules),{errorMessage:d,value:l}=x.useField(()=>t.name,n,{initialValue:t.modelValue,syncVModel:!0});return(f,r)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(w.VTextField),e.mergeProps(f.$attrs,{modelValue:e.unref(l),"onUpdate:modelValue":r[0]||(r[0]=p=>e.isRef(l)?l.value=p:null),name:t.name,color:t.color,density:t.density,rounded:t.rounded,variant:t.variant,clearable:t.clearable,"hide-details":t.hideDetails,"error-messages":e.unref(d),"append-inner-icon":t.appendInnerIcon,"onClick:appendInner":r[1]||(r[1]=p=>f.$emit("clickAppendInner"))}),e.createSlots({_:2},[e.renderList(f.$slots,(p,g)=>({name:g,fn:e.withCtx(s=>[e.renderSlot(f.$slots,g,e.normalizeProps(e.guardReactiveProps(s??{})))])}))]),1040,["modelValue","name","color","density","rounded","variant","clearable","hide-details","error-messages","append-inner-icon"])),[[e.unref(K.vMaska),t.mask]])}}),W={key:0,class:"font-weight-bold d-flex justify-center align-center fill-height"},J={key:1,class:"font-weight-bold d-flex justify-center align-center fill-height"},Q={key:2},Z={key:5},v={class:"f-data-table__actions"},ee={class:"text-h6"},te=e.defineComponent({name:"FDataTable",inheritAttrs:!1,__name:"FDataTable",props:e.mergeModels({headers:{},items:{},loading:{type:Boolean,default:!1},hover:{type:Boolean,default:!0},density:{default:"default"},maxHeight:{default:576},showSelect:{type:Boolean,default:!1},fixedHeader:{type:Boolean,default:!0},serverSide:{type:Boolean,default:!0},totalCount:{default:0},canEditRecord:{type:Boolean,default:!0},canDeleteRecord:{type:Boolean,default:!0},canReadRecord:{type:Boolean,default:!0},showDeleteConfirm:{type:Boolean,default:!0},deleteLoading:{type:Boolean,default:void 0},labelActive:{default:"Active"},labelPassive:{default:"Passive"},labelDeleteTitle:{default:"Delete"},deleteMessageFormatter:{},labelDeleteMessage:{default:"Are you sure you want to delete this record?"},labelDeleteConfirm:{default:"Delete"},labelDeleteCancel:{default:"Cancel"},labelItemsPerPage:{default:"Items per page"},labelNoData:{default:"No data available"},moneyLocale:{default:"tr-TR"},moneyCurrency:{default:"TRY"},gsmPattern:{default:"(XXX) XXX XXXX"}},{page:{default:1},pageModifiers:{},itemsPerPage:{default:10},itemsPerPageModifiers:{},sortBy:{default:()=>[]},sortByModifiers:{}}),emits:e.mergeModels(["show-record","delete-record"],["update:page","update:itemsPerPage","update:sortBy"]),setup(o,{emit:t}){const n=o,d=t,l=e.useModel(o,"page"),f=e.useModel(o,"itemsPerPage"),r=e.useModel(o,"sortBy"),p=e.ref(!1),g=e.ref(null);function s(c,m){return m.split(".").reduce((B,D)=>B==null?void 0:B[D],c)}function i(c){return c==null?"":new Intl.NumberFormat(n.moneyLocale,{style:"currency",currency:n.moneyCurrency}).format(c)}function a(c){if(!c)return"";const m=c.replace(/\D/g,"");return m.length<10?c:`(${m.substring(0,3)}) ${m.substring(3,6)} ${m.substring(6,10)}`}function V(c,m){return m.split(",").map(B=>{const D=s(c,B.trim());return typeof D=="string"?D.charAt(0).toUpperCase():""}).join("")}const y=e.computed(()=>{const B=n.items.length===0?108:n.items.length*52+56;return Math.min(B,n.maxHeight)}),b=e.computed(()=>!n.canEditRecord&&!n.canReadRecord?{}:{"click:row":(c,{item:m})=>{d("show-record",m)}}),k=e.computed(()=>n.headers.filter(c=>c.type&&c.key!=="actions")),S=e.computed(()=>n.headers.some(c=>c.key==="actions"));function F(c){n.showDeleteConfirm?(g.value=c,p.value=!0):d("delete-record",c)}function C(){d("delete-record",g.value),n.deleteLoading===void 0&&(p.value=!1,g.value=null)}return e.watch(()=>n.deleteLoading,(c,m)=>{m&&!c&&p.value&&(p.value=!1,g.value=null)}),(c,m)=>{const B=e.resolveComponent("v-icon"),D=e.resolveComponent("v-img"),Y=e.resolveComponent("v-avatar"),ie=e.resolveComponent("v-chip"),q=e.resolveComponent("v-btn"),se=e.resolveComponent("v-card-text"),ce=e.resolveComponent("v-spacer"),G=e.resolveComponent("f-button"),me=e.resolveComponent("v-card-actions"),ue=e.resolveComponent("f-dialog");return e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.serverSide?"v-data-table-server":"v-data-table"),e.mergeProps(c.$attrs,{page:l.value,"onUpdate:page":m[0]||(m[0]=u=>l.value=u),"items-per-page":f.value,"onUpdate:itemsPerPage":m[1]||(m[1]=u=>f.value=u),"sort-by":r.value,"onUpdate:sortBy":m[2]||(m[2]=u=>r.value=u),class:"rounded-b-lg",headers:o.headers,items:o.items,"items-length":o.serverSide?o.totalCount:void 0,loading:o.loading,hover:o.hover,density:o.density,height:y.value,"show-select":o.showSelect,"fixed-header":o.fixedHeader,"items-per-page-text":o.labelItemsPerPage,"no-data-text":o.labelNoData},e.toHandlers(b.value)),e.createSlots({_:2},[e.renderList(k.value,u=>({name:`item.${u.key}`,fn:e.withCtx(({item:_})=>[e.renderSlot(c.$slots,`item.${u.key}`,{item:_,value:s(_,u.key)},()=>[u.type==="image"?(e.openBlock(),e.createBlock(Y,{key:0,rounded:"lg",variant:"elevated",border:""},{default:e.withCtx(()=>[s(_,u.key)?(e.openBlock(),e.createBlock(D,{key:0,src:s(_,u.key),class:"f-data-table__logo"},{error:e.withCtx(()=>[u.imageInitialsKey?(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(V(_,u.imageInitialsKey)),1)):(e.openBlock(),e.createBlock(B,{key:1,color:"white"},{default:e.withCtx(()=>[...m[5]||(m[5]=[e.createTextVNode("mdi-account",-1)])]),_:1}))]),_:2},1032,["src"])):u.imageInitialsKey?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(V(_,u.imageInitialsKey)),1)):(e.openBlock(),e.createBlock(B,{key:2,color:"white"},{default:e.withCtx(()=>[...m[6]||(m[6]=[e.createTextVNode("mdi-account",-1)])]),_:1}))]),_:2},1024)):u.type==="logo"?(e.openBlock(),e.createBlock(Y,{key:1,rounded:"lg",variant:"elevated",border:"",class:"f-data-table__logo-avatar",color:"white"},{default:e.withCtx(()=>[s(_,u.key)?(e.openBlock(),e.createBlock(D,{key:0,src:s(_,u.key),class:"f-data-table__logo"},{error:e.withCtx(()=>[...m[7]||(m[7]=[e.createElementVNode("div",{class:"f-data-table__logo-avatar fill-height"},null,-1)])]),_:1},8,["src"])):e.createCommentVNode("",!0)]),_:2},1024)):u.type==="money"?(e.openBlock(),e.createElementBlock("span",Q,e.toDisplayString(i(s(_,u.key))),1)):u.type==="status"?(e.openBlock(),e.createBlock(ie,{key:3,color:s(_,u.key)?"green-darken-1":"red-darken-2",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s(_,u.key)?o.labelActive:o.labelPassive),1)]),_:2},1032,["color"])):u.type==="boolean"?(e.openBlock(),e.createBlock(B,{key:4,color:s(_,u.key)?"green-darken-1":"red-darken-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s(_,u.key)?"mdi-check":"mdi-close"),1)]),_:2},1032,["color"])):u.type==="gsmNo"?(e.openBlock(),e.createElementBlock("span",Z,e.toDisplayString(a(s(_,u.key))),1)):e.createCommentVNode("",!0)],!0)])})),S.value?{name:"item.actions",fn:e.withCtx(({item:u})=>[e.renderSlot(c.$slots,"item.actions",{item:u},()=>[e.createElementVNode("div",v,[o.canEditRecord||o.canReadRecord?(e.openBlock(),e.createBlock(q,{key:0,size:"small",variant:"text",icon:o.canEditRecord?"mdi-pencil-outline":"mdi-eye-outline",color:o.canEditRecord?"primary":"secondary",onClick:e.withModifiers(_=>d("show-record",u),["stop"])},null,8,["icon","color","onClick"])):e.createCommentVNode("",!0),o.canDeleteRecord?(e.openBlock(),e.createBlock(q,{key:1,icon:"mdi-trash-can-outline",variant:"text",size:"small",color:"red-darken-2",onClick:e.withModifiers(_=>F(u),["stop"])},null,8,["onClick"])):e.createCommentVNode("",!0)])],!0)]),key:"0"}:void 0,e.renderList(c.$slots,(u,_)=>({name:_,fn:e.withCtx(fe=>[e.renderSlot(c.$slots,_,e.normalizeProps(e.guardReactiveProps(fe??{})),void 0,!0)])}))]),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"])),e.createVNode(ue,{modelValue:p.value,"onUpdate:modelValue":m[4]||(m[4]=u=>p.value=u),"max-width":"400","hide-close":!0},{header:e.withCtx(()=>[e.createElementVNode("div",ee,e.toDisplayString(o.labelDeleteTitle),1)]),default:e.withCtx(()=>[e.createVNode(se,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.deleteMessageFormatter&&g.value?o.deleteMessageFormatter(g.value):o.labelDeleteMessage),1)]),_:1}),e.createVNode(me,null,{default:e.withCtx(()=>[e.createVNode(ce),e.createVNode(G,{variant:"plain",color:"red-darken-2",text:o.labelDeleteCancel,onClick:m[3]||(m[3]=u=>p.value=!1)},null,8,["text"]),e.createVNode(G,{variant:"tonal",text:o.labelDeleteConfirm,loading:o.deleteLoading??!1,onClick:C},null,8,["text","loading"])]),_:1})]),_:1},8,["modelValue"])])}}}),$=(o,t)=>{const n=o.__vccOpts||o;for(const[d,l]of t)n[d]=l;return n},P=$(te,[["__scopeId","data-v-6a520706"]]);var T=(o=>(o.IMAGE="image",o.MONEY="money",o.STATUS="status",o.BOOLEAN="boolean",o.GSM_NO="gsmNo",o.LOGO="logo",o))(T||{});const R=e.defineComponent({name:"FTextarea",inheritAttrs:!1,__name:"FTextarea",props:{name:{},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},color:{default:"secondary"},label:{default:""},hideDetails:{type:[Boolean,String],default:"auto"},noResize:{type:Boolean,default:!0},rows:{default:""},modelValue:{default:""},rules:{type:[String,Function],default:""}},setup(o){const t=o,n=e.computed(()=>t.rules),{errorMessage:d,value:l}=x.useField(()=>t.name,n,{initialValue:t.modelValue,syncVModel:!0});return(f,r)=>(e.openBlock(),e.createBlock(e.unref(w.VTextarea),e.mergeProps(f.$attrs,{modelValue:e.unref(l),"onUpdate:modelValue":r[0]||(r[0]=p=>e.isRef(l)?l.value=p:null),name:t.name,rounded:t.rounded,variant:t.variant,rows:t.rows,density:t.density,color:t.color,label:t.label,"hide-details":t.hideDetails,"no-resize":t.noResize,"error-messages":e.unref(d)}),null,16,["modelValue","name","rounded","variant","rows","density","color","label","hide-details","no-resize","error-messages"]))}}),I=e.defineComponent({name:"FAutocomplete",inheritAttrs:!1,__name:"FAutocomplete",props:{name:{},items:{default:()=>[]},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},color:{default:"secondary"},clearable:{type:Boolean,default:!0},hideDetails:{type:[Boolean,String],default:"auto"},returnObject:{type:Boolean,default:!0},noDataText:{default:""},modelValue:{default:null},rules:{type:[String,Function],default:""}},emits:["change"],setup(o,{emit:t}){const n=t,d=o,l=e.computed(()=>d.rules),{errorMessage:f,value:r}=x.useField(()=>d.name,l,{initialValue:d.modelValue,syncVModel:!0});function p(g){n("change",g)}return(g,s)=>(e.openBlock(),e.createBlock(e.unref(w.VAutocomplete),e.mergeProps(g.$attrs,{modelValue:e.unref(r),"onUpdate:modelValue":[s[0]||(s[0]=i=>e.isRef(r)?r.value=i:null),s[1]||(s[1]=i=>p(e.unref(r)))],name:d.name,items:d.items,rounded:d.rounded,variant:d.variant,density:d.density,color:d.color,clearable:d.clearable,"hide-details":d.hideDetails,"return-object":d.returnObject,"no-data-text":d.noDataText,"error-messages":e.unref(f),"menu-props":{maxWidth:0}}),e.createSlots({_:2},[e.renderList(g.$slots,(i,a)=>({name:a,fn:e.withCtx(V=>[e.renderSlot(g.$slots,a,e.normalizeProps(e.guardReactiveProps(V??{})))])}))]),1040,["modelValue","name","items","rounded","variant","density","color","clearable","hide-details","return-object","no-data-text","error-messages"]))}}),E=e.defineComponent({name:"FCheckbox",inheritAttrs:!1,__name:"FCheckbox",props:{color:{default:"secondary"},hideDetails:{type:[Boolean,String],default:"auto"},indeterminate:{type:Boolean,default:!1},density:{default:"compact"}},setup(o){const t=o;return(n,d)=>(e.openBlock(),e.createBlock(e.unref(w.VCheckbox),e.mergeProps(n.$attrs,{color:t.color,"hide-details":t.hideDetails,indeterminate:t.indeterminate,density:t.density}),null,16,["color","hide-details","indeterminate","density"]))}}),A=e.defineComponent({name:"TestField",inheritAttrs:!1,__name:"FCurrencyField",props:{name:{},label:{default:""},readonly:{type:Boolean,default:!1},hideDetails:{type:[Boolean,String],default:"auto"},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},color:{default:"secondary"},locale:{default:"tr-TR"},currency:{default:"TRY"},precision:{default:2},modelValue:{default:null},rules:{type:[String,Function],default:""}},setup(o){const t=o,n=e.computed(()=>t.rules),{errorMessage:d,value:l}=x.useField(()=>t.name,n,{initialValue:t.modelValue,syncVModel:!0}),f=e.computed(()=>new Intl.NumberFormat(t.locale,{style:"currency",currency:t.currency,minimumFractionDigits:t.precision,maximumFractionDigits:t.precision})),r=e.ref(p(t.modelValue));function p(y){return y==null||isNaN(y)?"":f.value.format(y)}function g(y){const b=y.replace(/[^\d.,-]/g,"").replace(",",".");if(!/\d/.test(b))return null;const k=parseFloat(b);return isNaN(k)?null:Math.round(k*Math.pow(10,t.precision))/Math.pow(10,t.precision)}const s=e.ref(!1);function i(){r.value="",l.value=null}e.watch(r,y=>{y==null||y===""?l.value=null:s.value&&(l.value=g(y))});function a(){s.value=!1;const y=r.value;y==null||y===""?(l.value=null,r.value=""):r.value=p(l.value)}function V(y){s.value=!0;const b=y.target,k=l.value;k!=null?r.value=String(k):r.value="",setTimeout(()=>b.select(),0)}return e.watch(()=>t.modelValue,y=>{s.value||(l.value=y,r.value=p(y))}),(y,b)=>{const k=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(k,e.mergeProps(y.$attrs,{inputmode:"decimal",modelValue:r.value,"onUpdate:modelValue":b[0]||(b[0]=S=>r.value=S),name:t.name,label:t.label,readonly:t.readonly,"hide-details":t.hideDetails,rounded:t.rounded,variant:t.variant,density:t.density,color:t.color,"error-messages":e.unref(d),"onClick:clear":i,onBlur:a,onFocus:V}),null,16,["modelValue","name","label","readonly","hide-details","rounded","variant","density","color","error-messages"])}}}),U=e.defineComponent({name:"FSelect",inheritAttrs:!1,__name:"FSelect",props:{name:{},items:{default:()=>[]},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},color:{default:"secondary"},hideDetails:{type:[Boolean,String],default:"auto"},returnObject:{type:Boolean,default:!1},modelValue:{default:""},rules:{type:[String,Function],default:""}},setup(o){const t=o,n=e.computed(()=>t.rules),{errorMessage:d,value:l}=x.useField(()=>t.name,n,{initialValue:t.modelValue,syncVModel:!0});return(f,r)=>(e.openBlock(),e.createBlock(e.unref(w.VSelect),e.mergeProps(f.$attrs,{modelValue:e.unref(l),"onUpdate:modelValue":r[0]||(r[0]=p=>e.isRef(l)?l.value=p:null),name:t.name,items:t.items,rounded:t.rounded,variant:t.variant,density:t.density,color:t.color,"hide-details":t.hideDetails,"return-object":t.returnObject,"error-messages":e.unref(d)}),e.createSlots({_:2},[e.renderList(f.$slots,(p,g)=>({name:g,fn:e.withCtx(s=>[e.renderSlot(f.$slots,g,e.normalizeProps(e.guardReactiveProps(s??{})))])}))]),1040,["modelValue","name","items","rounded","variant","density","color","hide-details","return-object","error-messages"]))}}),L=e.defineComponent({name:"FNumberField",inheritAttrs:!1,__name:"FNumberField",props:{name:{},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},controlVariant:{default:"stacked"},color:{default:"secondary"},label:{default:""},placeholder:{default:""},prefix:{default:""},hideDetails:{type:[Boolean,String],default:"auto"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},min:{default:0},precision:{default:0},inset:{type:Boolean,default:!0},modelValue:{default:null},rules:{type:[String,Function],default:""}},setup(o){const t=o,n=e.computed(()=>t.rules),{errorMessage:d,value:l}=x.useField(()=>t.name,n,{initialValue:t.modelValue,syncVModel:!0});return(f,r)=>(e.openBlock(),e.createBlock(e.unref(w.VNumberInput),e.mergeProps(f.$attrs,{modelValue:e.unref(l),"onUpdate:modelValue":r[0]||(r[0]=p=>e.isRef(l)?l.value=p:null),name:t.name,color:t.color,density:t.density,rounded:t.rounded,variant:t.variant,"control-variant":t.controlVariant,"hide-details":t.hideDetails,placeholder:t.placeholder,label:t.label,prefix:t.prefix,disabled:t.disabled,readonly:t.readonly,min:t.min,precision:t.precision,inset:t.inset,"error-messages":e.unref(d)}),null,16,["modelValue","name","color","density","rounded","variant","control-variant","hide-details","placeholder","label","prefix","disabled","readonly","min","precision","inset","error-messages"]))}}),oe={key:0},le={key:1},O=e.defineComponent({name:"FSwitch",inheritAttrs:!1,__name:"FSwitch",props:e.mergeModels({color:{default:"secondary"},density:{default:"comfortable"},hideDetails:{type:[Boolean,String],default:"auto"},labelTrue:{default:""},labelFalse:{default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const t=o,n=e.useModel(o,"modelValue");return(d,l)=>(e.openBlock(),e.createBlock(e.unref(w.VSwitch),e.mergeProps(d.$attrs,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=f=>n.value=f),color:t.color,"hide-details":t.hideDetails,density:t.density}),e.createSlots({_:2},[t.labelTrue||t.labelFalse?{name:"label",fn:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("span",oe,e.toDisplayString(t.labelTrue),1)):(e.openBlock(),e.createElementBlock("span",le,e.toDisplayString(t.labelFalse),1))]),key:"0"}:void 0]),1040,["modelValue","color","hide-details","density"]))}}),j=e.defineComponent({name:"FDialog",inheritAttrs:!1,__name:"FDialog",props:e.mergeModels({width:{default:750},persistent:{type:Boolean,default:!0},transition:{default:"slide-y-transition"},hideClose:{type:Boolean,default:!1}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["closeDialog"],["update:modelValue"]),setup(o){const t=o,n=e.useModel(o,"modelValue");return(d,l)=>{const f=e.resolveComponent("v-btn"),r=e.resolveComponent("v-card-title"),p=e.resolveComponent("v-divider"),g=e.resolveComponent("v-card-text"),s=e.resolveComponent("v-card-actions"),i=e.resolveComponent("v-card"),a=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(a,e.mergeProps(d.$attrs,{modelValue:n.value,"onUpdate:modelValue":l[1]||(l[1]=V=>n.value=V),transition:t.transition,class:"f-dialog",width:t.width,persistent:t.persistent}),{default:e.withCtx(()=>[e.createVNode(i,{class:"f-dialog-card",density:"default",variant:"elevated",rounded:"lg"},{default:e.withCtx(()=>[e.createVNode(r,{class:"d-flex justify-space-between align-center"},{default:e.withCtx(()=>[e.createElementVNode("header",null,[e.renderSlot(d.$slots,"header")]),t.hideClose?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(f,{key:0,icon:"mdi-close",variant:"text",onClick:l[0]||(l[0]=V=>d.$emit("closeDialog"))}))]),_:3}),e.createVNode(p),e.createVNode(g,{class:"py-4 px-1 overflow-auto overflow-x-hidden"},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3}),d.$slots.footer?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(p),e.createVNode(s,{class:"pa-4"},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"footer")]),_:3})],64)):e.createCommentVNode("",!0)]),_:3})]),_:3},16,["modelValue","transition","width","persistent"])}}}),ne={class:"d-flex mt-5 mb-n6",style:{width:"100%"}},z=$(e.defineComponent({name:"FTimePicker",inheritAttrs:!1,__name:"FTimePicker",props:{name:{},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},color:{default:"secondary"},hideDetails:{type:[Boolean,String],default:"auto"},readonly:{type:Boolean,default:!1},modelValue:{default:""},rules:{type:[String,Function],default:""},title:{default:""},labelCancel:{default:"Cancel"},labelConfirm:{default:"Confirm"}},setup(o){const t=o,n=e.computed(()=>t.rules),{errorMessage:d,value:l}=x.useField(()=>t.name,n,{initialValue:t.modelValue||"",syncVModel:!0}),f=e.ref(!1),r=e.ref(l);function p(){l.value=r.value,f.value=!1}function g(s){r.value&&r.value.includes(":")&&(r.value=s.toString().padStart(2,"0")+r.value.substring(r.value.indexOf(":")))}return(s,i)=>{const a=e.resolveComponent("v-spacer"),V=e.resolveComponent("v-time-picker"),y=e.resolveComponent("v-menu"),b=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(b,e.mergeProps(s.$attrs,{modelValue:e.unref(l),"onUpdate:modelValue":i[4]||(i[4]=k=>e.isRef(l)?l.value=k:null),"prepend-inner-icon":"mdi-clock-time-four-outline",name:t.name,active:f.value,focus:f.value,density:t.density,rounded:t.rounded,variant:t.variant,"hide-details":t.hideDetails,readonly:t.readonly,"error-messages":e.unref(d)}),{default:e.withCtx(()=>[e.createVNode(y,{modelValue:f.value,"onUpdate:modelValue":i[3]||(i[3]=k=>f.value=k),activator:"parent",location:"center",disabled:t.readonly,"close-on-content-click":!1},{default:e.withCtx(()=>[f.value?(e.openBlock(),e.createBlock(V,{key:0,modelValue:r.value,"onUpdate:modelValue":i[1]||(i[1]=k=>r.value=k),"full-width":"",color:"secondary",format:"24hr",title:t.title,"onUpdate:hour":i[2]||(i[2]=k=>g(k))},{actions:e.withCtx(()=>[e.createElementVNode("div",ne,[e.createVNode(N,{variant:"plain",color:"red-darken-2",text:t.labelCancel,onClick:i[0]||(i[0]=k=>f.value=!1)},null,8,["text"]),e.createVNode(a),e.createVNode(N,{variant:"tonal",text:t.labelConfirm,onClick:p},null,8,["text"])])]),_:1},8,["modelValue","title"])):e.createCommentVNode("",!0)]),_:1},8,["modelValue","disabled"])]),_:1},16,["modelValue","name","active","focus","density","rounded","variant","hide-details","readonly","error-messages"])}}}),[["__scopeId","data-v-7639bf96"]]),ae={class:"position-relative"},X=$(e.defineComponent({name:"TestPicker",inheritAttrs:!1,__name:"FDatePicker",props:{name:{},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},color:{default:"secondary"},hideDetails:{type:[Boolean,String],default:"auto"},disabled:{type:Boolean,default:!1},modelValue:{default:""},rules:{type:[String,Function],default:""},max:{default:void 0},min:{default:void 0},locale:{default:"en"},firstDayOfWeek:{default:1},dateFormat:{default:"DD/MM/YYYY"},header:{default:""}},setup(o){const t=o,n=e.computed(()=>t.rules);function d(i){if(!i)return"";let a;if(i instanceof Date)a=i;else{const k=i.split("/");k.length===3?a=new Date(Number(k[2]),Number(k[1])-1,Number(k[0])):a=new Date(i)}if(isNaN(a.getTime()))return"";const V=`0${a.getDate()}`.slice(-2),y=`0${a.getMonth()+1}`.slice(-2),b=a.getFullYear();return`${V}/${y}/${b}`}function l(i){if(!i)return null;const a=i.split("/");return a.length===3?new Date(Number(a[2]),Number(a[1])-1,Number(a[0])):null}const{errorMessage:f,value:r}=x.useField(()=>t.name,n,{initialValue:t.modelValue?d(t.modelValue):"",syncVModel:!0}),p=e.ref(null),g=e.ref(!1),s=i=>{r.value=d(i),g.value=!1};return e.onMounted(()=>{p.value=t.modelValue?l(t.modelValue):null}),(i,a)=>{const V=e.resolveComponent("v-text-field"),y=e.resolveComponent("v-date-picker"),b=e.resolveComponent("v-locale-provider"),k=e.resolveComponent("v-btn"),S=e.resolveComponent("v-menu");return e.openBlock(),e.createBlock(S,{modelValue:g.value,"onUpdate:modelValue":a[4]||(a[4]=F=>g.value=F),location:"center",disabled:t.disabled,"close-on-content-click":!1},{activator:e.withCtx(({props:F})=>[e.createVNode(V,e.mergeProps({...i.$attrs,...F},{modelValue:e.unref(r),"onUpdate:modelValue":a[0]||(a[0]=C=>e.isRef(r)?r.value=C:null),"prepend-inner-icon":"mdi-calendar-outline",name:t.name,density:t.density,rounded:t.rounded,variant:t.variant,"hide-details":t.hideDetails,color:t.color,readonly:"","error-messages":e.unref(f),"onClick:clear":a[1]||(a[1]=C=>r.value="")}),null,16,["modelValue","name","density","rounded","variant","hide-details","color","error-messages"])]),default:e.withCtx(()=>[e.createElementVNode("div",ae,[e.createVNode(b,{locale:t.locale},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:p.value,"onUpdate:modelValue":[a[2]||(a[2]=F=>p.value=F),s],title:"",header:t.header,elevation:"10","first-day-of-week":t.firstDayOfWeek,min:t.min,max:t.max,color:t.color,"show-adjacent-months":"",rounded:t.rounded},null,8,["modelValue","header","first-day-of-week","min","max","color","rounded"])]),_:1},8,["locale"]),e.createVNode(k,{class:"position-absolute top-0 right-0",color:"white",icon:"mdi-close",size:"small",variant:"text",onClick:a[3]||(a[3]=F=>g.value=!1)})])]),_:1},8,["modelValue","disabled"])}}}),[["__scopeId","data-v-313419c1"]]),re={class:"d-flex"},H=e.defineComponent({name:"FTreeView",inheritAttrs:!1,__name:"FTreeView",props:{items:{default:()=>[]},selectedItems:{default:()=>[]},itemTitle:{default:"name"},label:{default:""},disabled:{type:Boolean,default:!1}},emits:["set-selected-items"],setup(o,{emit:t}){const n=o,d=t,l=e.ref(n.selectedItems),f=e.ref(!1),r=[];function p(s){s.isSelected?l.value.push(s):l.value.splice(l.value.indexOf(s),1);const i=n.items.find(a=>a.id===s.id);if(i)i.children.map(a=>a.isSelected=s.isSelected),s.isSelected&&i.children.forEach(a=>{const V=l.value.findIndex(y=>y.id===a.id);V!==-1&&l.value.splice(V,1)});else{const a=n.items.find(V=>V.id===s.parentId);a&&a.children.every(V=>V.isSelected)&&(a.isSelected=!0)}d("set-selected-items",[...l.value])}function g(s){const i=n.items.find(a=>a.id===s.id);return!i||i.children.every(a=>a.isSelected)?!1:!!i.children.find(a=>a.isSelected)}return(s,i)=>{const a=e.resolveComponent("v-chip"),V=e.resolveComponent("v-text-field"),y=e.resolveComponent("v-list-item"),b=e.resolveComponent("f-checkbox"),k=e.resolveComponent("v-list-group"),S=e.resolveComponent("v-list"),F=e.resolveComponent("v-menu");return e.openBlock(),e.createBlock(F,{modelValue:f.value,"onUpdate:modelValue":i[1]||(i[1]=C=>f.value=C),"max-height":"250px","close-on-content-click":!1,disabled:n.disabled},{activator:e.withCtx(({props:C})=>[e.createVNode(V,e.mergeProps({name:"selectedItems",readonly:""},C,{variant:"outlined",rounded:"lg",density:"compact",color:"secondary","hide-details":"",clearable:!1,label:n.label,active:l.value.length>0}),{"prepend-inner":e.withCtx(()=>[e.createElementVNode("div",re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(c,m)=>(e.openBlock(),e.createBlock(a,{key:m,density:"compact",class:"ml-3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c[n.itemTitle]),1)]),_:2},1024))),128))])]),_:1},16,["label","active"])]),default:e.withCtx(()=>[e.createVNode(S,{density:"compact",nav:"","open-strategy":"single",width:"100%",opened:r,slim:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,C=>(e.openBlock(),e.createElementBlock("div",{key:C.id},[C.children?(e.openBlock(),e.createBlock(k,{key:1,value:C.id},{activator:e.withCtx(({props:c})=>[e.createVNode(y,e.mergeProps({ref_for:!0},c,{rounded:"lg",title:C[n.itemTitle]}),{prepend:e.withCtx(()=>[e.createVNode(b,{modelValue:C.isSelected,"onUpdate:modelValue":m=>C.isSelected=m,indeterminate:g(C),onClick:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),onChange:m=>p(C)},null,8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])]),_:2},1040,["title"])]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.children,c=>(e.openBlock(),e.createElementBlock("div",{key:c.id},[e.createVNode(y,{rounded:"lg",title:c[n.itemTitle],value:c.id},{prepend:e.withCtx(()=>[e.createVNode(b,{modelValue:c.isSelected,"onUpdate:modelValue":m=>c.isSelected=m,onChange:m=>p(c)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["title","value"])]))),128))]),_:2},1032,["value"])):(e.openBlock(),e.createBlock(y,{key:0,rounded:"lg",title:C[n.itemTitle],value:C.id},null,8,["title","value"]))]))),128))]),_:1})]),_:1},8,["modelValue","disabled"])}}}),de={install(o){o.component("FButton",N),o.component("FTextField",M),o.component("FDataTable",P),o.component("FTextarea",R),o.component("FAutocomplete",I),o.component("FCheckbox",E),o.component("FCurrencyField",A),o.component("FSelect",U),o.component("FNumberField",L),o.component("FSwitch",O),o.component("FDialog",j),o.component("FTimePicker",z),o.component("FDatePicker",X),o.component("FTreeView",H)}};h.FAutocomplete=I,h.FButton=N,h.FCheckbox=E,h.FCurrencyField=A,h.FDataTable=P,h.FDataTableHeaderType=T,h.FDatePicker=X,h.FDialog=j,h.FNumberField=L,h.FSelect=U,h.FSwitch=O,h.FTextField=M,h.FTextarea=R,h.FTimePicker=z,h.FTreeView=H,h.default=de,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
1
+ (function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vuetify/components"),require("maska/vue"),require("vee-validate")):typeof define=="function"&&define.amd?define(["exports","vue","vuetify/components","maska/vue","vee-validate"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.FinsoVueComponents={},h.Vue,h.VuetifyComponents,h.MaskaVue,h.VeeValidate))})(this,(function(h,e,w,K,x){"use strict";const N=e.defineComponent({__name:"FButton",props:{color:{default:"primary"},rounded:{type:[String,Number,Boolean],default:"lg"}},setup(o){const t=o;return(a,d)=>{const l=e.resolveComponent("v-btn");return e.openBlock(),e.createBlock(l,{color:t.color,rounded:t.rounded},null,8,["color","rounded"])}}}),M=e.defineComponent({name:"FTextField",inheritAttrs:!1,__name:"FTextField",props:{name:{},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},color:{default:"secondary"},clearable:{type:Boolean,default:!0},hideDetails:{type:[Boolean,String],default:"auto"},appendInnerIcon:{default:""},mask:{default:""},modelValue:{default:""},rules:{type:[String,Function],default:""}},emits:["clickAppendInner"],setup(o){const t=o,a=e.computed(()=>t.rules),{errorMessage:d,value:l}=x.useField(()=>t.name,a,{initialValue:t.modelValue,syncVModel:!0});return(f,r)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(w.VTextField),e.mergeProps(f.$attrs,{modelValue:e.unref(l),"onUpdate:modelValue":r[0]||(r[0]=p=>e.isRef(l)?l.value=p:null),name:t.name,color:t.color,density:t.density,rounded:t.rounded,variant:t.variant,clearable:t.clearable,"hide-details":t.hideDetails,"error-messages":e.unref(d),"append-inner-icon":t.appendInnerIcon,"onClick:appendInner":r[1]||(r[1]=p=>f.$emit("clickAppendInner"))}),e.createSlots({_:2},[e.renderList(f.$slots,(p,g)=>({name:g,fn:e.withCtx(s=>[e.renderSlot(f.$slots,g,e.normalizeProps(e.guardReactiveProps(s??{})))])}))]),1040,["modelValue","name","color","density","rounded","variant","clearable","hide-details","error-messages","append-inner-icon"])),[[e.unref(K.vMaska),t.mask]])}}),W={key:0,class:"font-weight-bold d-flex justify-center align-center fill-height"},J={key:1,class:"font-weight-bold d-flex justify-center align-center fill-height"},Q={key:2},Z={key:5},v={class:"f-data-table__actions"},ee={class:"text-h6"},te=e.defineComponent({name:"FDataTable",inheritAttrs:!1,__name:"FDataTable",props:e.mergeModels({headers:{},items:{},loading:{type:Boolean,default:!1},hover:{type:Boolean,default:!0},density:{default:"default"},maxHeight:{default:576},showSelect:{type:Boolean,default:!1},fixedHeader:{type:Boolean,default:!0},serverSide:{type:Boolean,default:!0},totalCount:{default:0},canEditRecord:{type:Boolean,default:!0},canDeleteRecord:{type:Boolean,default:!0},canReadRecord:{type:Boolean,default:!0},showDeleteConfirm:{type:Boolean,default:!0},deleteLoading:{type:Boolean,default:void 0},labelActive:{default:"Active"},labelPassive:{default:"Passive"},labelDeleteTitle:{default:"Delete"},deleteMessageFormatter:{},labelDeleteMessage:{default:"Are you sure you want to delete this record?"},labelDeleteConfirm:{default:"Delete"},labelDeleteCancel:{default:"Cancel"},labelItemsPerPage:{default:"Items per page"},labelNoData:{default:"No data available"},moneyLocale:{default:"tr-TR"},moneyCurrency:{default:"TRY"},gsmPattern:{default:"(XXX) XXX XXXX"}},{page:{default:1},pageModifiers:{},itemsPerPage:{default:10},itemsPerPageModifiers:{},sortBy:{default:()=>[]},sortByModifiers:{}}),emits:e.mergeModels(["show-record","delete-record"],["update:page","update:itemsPerPage","update:sortBy"]),setup(o,{emit:t}){const a=o,d=t,l=e.useModel(o,"page"),f=e.useModel(o,"itemsPerPage"),r=e.useModel(o,"sortBy"),p=e.ref(!1),g=e.ref(null);function s(c,m){return m.split(".").reduce((B,D)=>B==null?void 0:B[D],c)}function i(c){return c==null?"":new Intl.NumberFormat(a.moneyLocale,{style:"currency",currency:a.moneyCurrency}).format(c)}function n(c){if(!c)return"";const m=c.replace(/\D/g,"");return m.length<10?c:`(${m.substring(0,3)}) ${m.substring(3,6)} ${m.substring(6,10)}`}function V(c,m){return m.split(",").map(B=>{const D=s(c,B.trim());return typeof D=="string"?D.charAt(0).toUpperCase():""}).join("")}const y=e.computed(()=>{const B=a.items.length===0?108:a.items.length*52+56;return Math.min(B,a.maxHeight)}),_=e.computed(()=>!a.canEditRecord&&!a.canReadRecord?{}:{"click:row":(c,{item:m})=>{d("show-record",m)}}),k=e.computed(()=>a.headers.filter(c=>c.type&&c.key!=="actions")),S=e.computed(()=>a.headers.some(c=>c.key==="actions"));function F(c){a.showDeleteConfirm?(g.value=c,p.value=!0):d("delete-record",c)}function C(){d("delete-record",g.value),a.deleteLoading===void 0&&(p.value=!1,g.value=null)}return e.watch(()=>a.deleteLoading,(c,m)=>{m&&!c&&p.value&&(p.value=!1,g.value=null)}),(c,m)=>{const B=e.resolveComponent("v-icon"),D=e.resolveComponent("v-img"),Y=e.resolveComponent("v-avatar"),se=e.resolveComponent("v-chip"),q=e.resolveComponent("v-btn"),ce=e.resolveComponent("v-card-text"),me=e.resolveComponent("v-spacer"),G=e.resolveComponent("f-button"),ue=e.resolveComponent("v-card-actions"),fe=e.resolveComponent("f-dialog");return e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.serverSide?"v-data-table-server":"v-data-table"),e.mergeProps(c.$attrs,{page:l.value,"onUpdate:page":m[0]||(m[0]=u=>l.value=u),"items-per-page":f.value,"onUpdate:itemsPerPage":m[1]||(m[1]=u=>f.value=u),"sort-by":r.value,"onUpdate:sortBy":m[2]||(m[2]=u=>r.value=u),class:"rounded-b-lg",headers:o.headers,items:o.items,"items-length":o.serverSide?o.totalCount:void 0,loading:o.loading,hover:o.hover,density:o.density,height:y.value,"show-select":o.showSelect,"fixed-header":o.fixedHeader,"items-per-page-text":o.labelItemsPerPage,"no-data-text":o.labelNoData},e.toHandlers(_.value)),e.createSlots({_:2},[e.renderList(k.value,u=>({name:`item.${u.key}`,fn:e.withCtx(({item:b})=>[e.renderSlot(c.$slots,`item.${u.key}`,{item:b,value:s(b,u.key)},()=>[u.type==="image"?(e.openBlock(),e.createBlock(Y,{key:0,rounded:"lg",variant:"elevated",border:""},{default:e.withCtx(()=>[s(b,u.key)?(e.openBlock(),e.createBlock(D,{key:0,src:s(b,u.key),class:"f-data-table__logo"},{error:e.withCtx(()=>[u.imageInitialsKey?(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(V(b,u.imageInitialsKey)),1)):(e.openBlock(),e.createBlock(B,{key:1,color:"white"},{default:e.withCtx(()=>[...m[5]||(m[5]=[e.createTextVNode("mdi-account",-1)])]),_:1}))]),_:2},1032,["src"])):u.imageInitialsKey?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(V(b,u.imageInitialsKey)),1)):(e.openBlock(),e.createBlock(B,{key:2,color:"white"},{default:e.withCtx(()=>[...m[6]||(m[6]=[e.createTextVNode("mdi-account",-1)])]),_:1}))]),_:2},1024)):u.type==="logo"?(e.openBlock(),e.createBlock(Y,{key:1,rounded:"lg",variant:"elevated",border:"",class:"f-data-table__logo-avatar",color:"white"},{default:e.withCtx(()=>[s(b,u.key)?(e.openBlock(),e.createBlock(D,{key:0,src:s(b,u.key),class:"f-data-table__logo"},{error:e.withCtx(()=>[...m[7]||(m[7]=[e.createElementVNode("div",{class:"f-data-table__logo-avatar fill-height"},null,-1)])]),_:1},8,["src"])):e.createCommentVNode("",!0)]),_:2},1024)):u.type==="money"?(e.openBlock(),e.createElementBlock("span",Q,e.toDisplayString(i(s(b,u.key))),1)):u.type==="status"?(e.openBlock(),e.createBlock(se,{key:3,color:s(b,u.key)?"green-darken-1":"red-darken-2",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s(b,u.key)?o.labelActive:o.labelPassive),1)]),_:2},1032,["color"])):u.type==="boolean"?(e.openBlock(),e.createBlock(B,{key:4,color:s(b,u.key)?"green-darken-1":"red-darken-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s(b,u.key)?"mdi-check":"mdi-close"),1)]),_:2},1032,["color"])):u.type==="gsmNo"?(e.openBlock(),e.createElementBlock("span",Z,e.toDisplayString(n(s(b,u.key))),1)):e.createCommentVNode("",!0)],!0)])})),S.value?{name:"item.actions",fn:e.withCtx(({item:u})=>[e.renderSlot(c.$slots,"item.actions",{item:u},()=>[e.createElementVNode("div",v,[o.canEditRecord||o.canReadRecord?(e.openBlock(),e.createBlock(q,{key:0,size:"small",variant:"text",icon:o.canEditRecord?"mdi-pencil-outline":"mdi-eye-outline",color:o.canEditRecord?"primary":"secondary",onClick:e.withModifiers(b=>d("show-record",u),["stop"])},null,8,["icon","color","onClick"])):e.createCommentVNode("",!0),o.canDeleteRecord?(e.openBlock(),e.createBlock(q,{key:1,icon:"mdi-trash-can-outline",variant:"text",size:"small",color:"red-darken-2",onClick:e.withModifiers(b=>F(u),["stop"])},null,8,["onClick"])):e.createCommentVNode("",!0)])],!0)]),key:"0"}:void 0,e.renderList(c.$slots,(u,b)=>({name:b,fn:e.withCtx(pe=>[e.renderSlot(c.$slots,b,e.normalizeProps(e.guardReactiveProps(pe??{})),void 0,!0)])}))]),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"])),e.createVNode(fe,{modelValue:p.value,"onUpdate:modelValue":m[4]||(m[4]=u=>p.value=u),"max-width":"400","hide-close":!0},{header:e.withCtx(()=>[e.createElementVNode("div",ee,e.toDisplayString(o.labelDeleteTitle),1)]),default:e.withCtx(()=>[e.createVNode(ce,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.deleteMessageFormatter&&g.value?o.deleteMessageFormatter(g.value):o.labelDeleteMessage),1)]),_:1}),e.createVNode(ue,null,{default:e.withCtx(()=>[e.createVNode(me),e.createVNode(G,{variant:"plain",color:"red-darken-2",text:o.labelDeleteCancel,onClick:m[3]||(m[3]=u=>p.value=!1)},null,8,["text"]),e.createVNode(G,{variant:"tonal",text:o.labelDeleteConfirm,loading:o.deleteLoading??!1,onClick:C},null,8,["text","loading"])]),_:1})]),_:1},8,["modelValue"])])}}}),$=(o,t)=>{const a=o.__vccOpts||o;for(const[d,l]of t)a[d]=l;return a},P=$(te,[["__scopeId","data-v-6a520706"]]);var T=(o=>(o.IMAGE="image",o.MONEY="money",o.STATUS="status",o.BOOLEAN="boolean",o.GSM_NO="gsmNo",o.LOGO="logo",o))(T||{});const R=e.defineComponent({name:"FTextarea",inheritAttrs:!1,__name:"FTextarea",props:{name:{},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},color:{default:"secondary"},label:{default:""},hideDetails:{type:[Boolean,String],default:"auto"},noResize:{type:Boolean,default:!0},rows:{default:""},modelValue:{default:""},rules:{type:[String,Function],default:""}},setup(o){const t=o,a=e.computed(()=>t.rules),{errorMessage:d,value:l}=x.useField(()=>t.name,a,{initialValue:t.modelValue,syncVModel:!0});return(f,r)=>(e.openBlock(),e.createBlock(e.unref(w.VTextarea),e.mergeProps(f.$attrs,{modelValue:e.unref(l),"onUpdate:modelValue":r[0]||(r[0]=p=>e.isRef(l)?l.value=p:null),name:t.name,rounded:t.rounded,variant:t.variant,rows:t.rows,density:t.density,color:t.color,label:t.label,"hide-details":t.hideDetails,"no-resize":t.noResize,"error-messages":e.unref(d)}),null,16,["modelValue","name","rounded","variant","rows","density","color","label","hide-details","no-resize","error-messages"]))}}),I=e.defineComponent({name:"FAutocomplete",inheritAttrs:!1,__name:"FAutocomplete",props:{name:{},items:{default:()=>[]},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},color:{default:"secondary"},clearable:{type:Boolean,default:!0},hideDetails:{type:[Boolean,String],default:"auto"},returnObject:{type:Boolean,default:!0},noDataText:{default:""},modelValue:{default:null},rules:{type:[String,Function],default:""}},emits:["change"],setup(o,{emit:t}){const a=t,d=o,l=e.computed(()=>d.rules),{errorMessage:f,value:r}=x.useField(()=>d.name,l,{initialValue:d.modelValue,syncVModel:!0});function p(g){a("change",g)}return(g,s)=>(e.openBlock(),e.createBlock(e.unref(w.VAutocomplete),e.mergeProps(g.$attrs,{modelValue:e.unref(r),"onUpdate:modelValue":[s[0]||(s[0]=i=>e.isRef(r)?r.value=i:null),s[1]||(s[1]=i=>p(e.unref(r)))],name:d.name,items:d.items,rounded:d.rounded,variant:d.variant,density:d.density,color:d.color,clearable:d.clearable,"hide-details":d.hideDetails,"return-object":d.returnObject,"no-data-text":d.noDataText,"error-messages":e.unref(f),"menu-props":{maxWidth:0}}),e.createSlots({_:2},[e.renderList(g.$slots,(i,n)=>({name:n,fn:e.withCtx(V=>[e.renderSlot(g.$slots,n,e.normalizeProps(e.guardReactiveProps(V??{})))])}))]),1040,["modelValue","name","items","rounded","variant","density","color","clearable","hide-details","return-object","no-data-text","error-messages"]))}}),E=e.defineComponent({name:"FCheckbox",inheritAttrs:!1,__name:"FCheckbox",props:{color:{default:"secondary"},hideDetails:{type:[Boolean,String],default:"auto"},indeterminate:{type:Boolean,default:!1},density:{default:"compact"}},setup(o){const t=o;return(a,d)=>(e.openBlock(),e.createBlock(e.unref(w.VCheckbox),e.mergeProps(a.$attrs,{color:t.color,"hide-details":t.hideDetails,indeterminate:t.indeterminate,density:t.density}),null,16,["color","hide-details","indeterminate","density"]))}}),A=e.defineComponent({name:"TestField",inheritAttrs:!1,__name:"FCurrencyField",props:{name:{},label:{default:""},readonly:{type:Boolean,default:!1},hideDetails:{type:[Boolean,String],default:"auto"},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},color:{default:"secondary"},locale:{default:"tr-TR"},currency:{default:"TRY"},precision:{default:2},modelValue:{default:null},rules:{type:[String,Function],default:""}},setup(o){const t=o,a=e.computed(()=>t.rules),{errorMessage:d,value:l}=x.useField(()=>t.name,a,{initialValue:t.modelValue,syncVModel:!0}),f=e.computed(()=>new Intl.NumberFormat(t.locale,{style:"currency",currency:t.currency,minimumFractionDigits:t.precision,maximumFractionDigits:t.precision})),r=e.ref(p(t.modelValue));function p(y){return y==null||isNaN(y)?"":f.value.format(y)}function g(y){const _=y.replace(/[^\d.,-]/g,"").replace(",",".");if(!/\d/.test(_))return null;const k=parseFloat(_);return isNaN(k)?null:Math.round(k*Math.pow(10,t.precision))/Math.pow(10,t.precision)}const s=e.ref(!1);function i(){r.value="",l.value=null}e.watch(r,y=>{y==null||y===""?l.value=null:s.value&&(l.value=g(y))});function n(){s.value=!1;const y=r.value;y==null||y===""?(l.value=null,r.value=""):r.value=p(l.value)}function V(y){s.value=!0;const _=y.target,k=l.value;k!=null?r.value=String(k):r.value="",setTimeout(()=>_.select(),0)}return e.watch(()=>t.modelValue,y=>{s.value||(l.value=y,r.value=p(y))}),(y,_)=>{const k=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(k,e.mergeProps(y.$attrs,{inputmode:"decimal",modelValue:r.value,"onUpdate:modelValue":_[0]||(_[0]=S=>r.value=S),name:t.name,label:t.label,readonly:t.readonly,"hide-details":t.hideDetails,rounded:t.rounded,variant:t.variant,density:t.density,color:t.color,"error-messages":e.unref(d),"onClick:clear":i,onBlur:n,onFocus:V}),null,16,["modelValue","name","label","readonly","hide-details","rounded","variant","density","color","error-messages"])}}}),U=e.defineComponent({name:"FSelect",inheritAttrs:!1,__name:"FSelect",props:{name:{},items:{default:()=>[]},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},color:{default:"secondary"},hideDetails:{type:[Boolean,String],default:"auto"},returnObject:{type:Boolean,default:!1},modelValue:{default:""},rules:{type:[String,Function],default:""}},setup(o){const t=o,a=e.computed(()=>t.rules),{errorMessage:d,value:l}=x.useField(()=>t.name,a,{initialValue:t.modelValue,syncVModel:!0});return(f,r)=>(e.openBlock(),e.createBlock(e.unref(w.VSelect),e.mergeProps(f.$attrs,{modelValue:e.unref(l),"onUpdate:modelValue":r[0]||(r[0]=p=>e.isRef(l)?l.value=p:null),name:t.name,items:t.items,rounded:t.rounded,variant:t.variant,density:t.density,color:t.color,"hide-details":t.hideDetails,"return-object":t.returnObject,"error-messages":e.unref(d)}),e.createSlots({_:2},[e.renderList(f.$slots,(p,g)=>({name:g,fn:e.withCtx(s=>[e.renderSlot(f.$slots,g,e.normalizeProps(e.guardReactiveProps(s??{})))])}))]),1040,["modelValue","name","items","rounded","variant","density","color","hide-details","return-object","error-messages"]))}}),L=e.defineComponent({name:"FNumberField",inheritAttrs:!1,__name:"FNumberField",props:{name:{},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},controlVariant:{default:"stacked"},color:{default:"secondary"},label:{default:""},placeholder:{default:""},prefix:{default:""},hideDetails:{type:[Boolean,String],default:"auto"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},min:{default:0},precision:{default:0},inset:{type:Boolean,default:!0},modelValue:{default:null},rules:{type:[String,Function],default:""}},setup(o){const t=o,a=e.computed(()=>t.rules),{errorMessage:d,value:l}=x.useField(()=>t.name,a,{initialValue:t.modelValue,syncVModel:!0});return(f,r)=>(e.openBlock(),e.createBlock(e.unref(w.VNumberInput),e.mergeProps(f.$attrs,{modelValue:e.unref(l),"onUpdate:modelValue":r[0]||(r[0]=p=>e.isRef(l)?l.value=p:null),name:t.name,color:t.color,density:t.density,rounded:t.rounded,variant:t.variant,"control-variant":t.controlVariant,"hide-details":t.hideDetails,placeholder:t.placeholder,label:t.label,prefix:t.prefix,disabled:t.disabled,readonly:t.readonly,min:t.min,precision:t.precision,inset:t.inset,"error-messages":e.unref(d)}),null,16,["modelValue","name","color","density","rounded","variant","control-variant","hide-details","placeholder","label","prefix","disabled","readonly","min","precision","inset","error-messages"]))}}),oe={key:0},le={key:1},O=e.defineComponent({name:"FSwitch",inheritAttrs:!1,__name:"FSwitch",props:e.mergeModels({color:{default:"secondary"},density:{default:"comfortable"},hideDetails:{type:[Boolean,String],default:"auto"},labelTrue:{default:""},labelFalse:{default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const t=o,a=e.useModel(o,"modelValue");return(d,l)=>(e.openBlock(),e.createBlock(e.unref(w.VSwitch),e.mergeProps(d.$attrs,{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=f=>a.value=f),color:t.color,"hide-details":t.hideDetails,density:t.density}),e.createSlots({_:2},[t.labelTrue||t.labelFalse?{name:"label",fn:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("span",oe,e.toDisplayString(t.labelTrue),1)):(e.openBlock(),e.createElementBlock("span",le,e.toDisplayString(t.labelFalse),1))]),key:"0"}:void 0]),1040,["modelValue","color","hide-details","density"]))}}),ne={class:"pa-4"},j=e.defineComponent({name:"FDialog",inheritAttrs:!1,__name:"FDialog",props:e.mergeModels({width:{default:750},persistent:{type:Boolean,default:!0},transition:{default:"slide-y-transition"},hideClose:{type:Boolean,default:!1}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["closeDialog"],["update:modelValue"]),setup(o){const t=o,a=e.useModel(o,"modelValue");return(d,l)=>{const f=e.resolveComponent("v-btn"),r=e.resolveComponent("v-card-title"),p=e.resolveComponent("v-divider"),g=e.resolveComponent("v-card-text"),s=e.resolveComponent("v-card"),i=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(i,e.mergeProps(d.$attrs,{modelValue:a.value,"onUpdate:modelValue":l[1]||(l[1]=n=>a.value=n),transition:t.transition,class:"f-dialog",width:t.width,persistent:t.persistent}),{default:e.withCtx(()=>[e.createVNode(s,{class:"f-dialog-card",density:"default",variant:"elevated",rounded:"lg"},{default:e.withCtx(()=>[e.createVNode(r,{class:"d-flex justify-space-between align-center"},{default:e.withCtx(()=>[e.createElementVNode("header",null,[e.renderSlot(d.$slots,"header")]),t.hideClose?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(f,{key:0,icon:"mdi-close",variant:"text",onClick:l[0]||(l[0]=n=>d.$emit("closeDialog"))}))]),_:3}),e.createVNode(p),e.createVNode(g,{class:"py-4 px-1 overflow-auto overflow-x-hidden"},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3}),d.$slots.footer?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(p),e.createElementVNode("div",ne,[e.renderSlot(d.$slots,"footer")])],64)):e.createCommentVNode("",!0)]),_:3})]),_:3},16,["modelValue","transition","width","persistent"])}}}),ae={class:"d-flex mt-5 mb-n6",style:{width:"100%"}},z=$(e.defineComponent({name:"FTimePicker",inheritAttrs:!1,__name:"FTimePicker",props:{name:{},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},color:{default:"secondary"},hideDetails:{type:[Boolean,String],default:"auto"},readonly:{type:Boolean,default:!1},modelValue:{default:""},rules:{type:[String,Function],default:""},title:{default:""},labelCancel:{default:"Cancel"},labelConfirm:{default:"Confirm"}},setup(o){const t=o,a=e.computed(()=>t.rules),{errorMessage:d,value:l}=x.useField(()=>t.name,a,{initialValue:t.modelValue||"",syncVModel:!0}),f=e.ref(!1),r=e.ref(l);function p(){l.value=r.value,f.value=!1}function g(s){r.value&&r.value.includes(":")&&(r.value=s.toString().padStart(2,"0")+r.value.substring(r.value.indexOf(":")))}return(s,i)=>{const n=e.resolveComponent("v-spacer"),V=e.resolveComponent("v-time-picker"),y=e.resolveComponent("v-menu"),_=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(_,e.mergeProps(s.$attrs,{modelValue:e.unref(l),"onUpdate:modelValue":i[4]||(i[4]=k=>e.isRef(l)?l.value=k:null),"prepend-inner-icon":"mdi-clock-time-four-outline",name:t.name,active:f.value,focus:f.value,density:t.density,rounded:t.rounded,variant:t.variant,"hide-details":t.hideDetails,readonly:t.readonly,"error-messages":e.unref(d)}),{default:e.withCtx(()=>[e.createVNode(y,{modelValue:f.value,"onUpdate:modelValue":i[3]||(i[3]=k=>f.value=k),activator:"parent",location:"center",disabled:t.readonly,"close-on-content-click":!1},{default:e.withCtx(()=>[f.value?(e.openBlock(),e.createBlock(V,{key:0,modelValue:r.value,"onUpdate:modelValue":i[1]||(i[1]=k=>r.value=k),"full-width":"",color:"secondary",format:"24hr",title:t.title,"onUpdate:hour":i[2]||(i[2]=k=>g(k))},{actions:e.withCtx(()=>[e.createElementVNode("div",ae,[e.createVNode(N,{variant:"plain",color:"red-darken-2",text:t.labelCancel,onClick:i[0]||(i[0]=k=>f.value=!1)},null,8,["text"]),e.createVNode(n),e.createVNode(N,{variant:"tonal",text:t.labelConfirm,onClick:p},null,8,["text"])])]),_:1},8,["modelValue","title"])):e.createCommentVNode("",!0)]),_:1},8,["modelValue","disabled"])]),_:1},16,["modelValue","name","active","focus","density","rounded","variant","hide-details","readonly","error-messages"])}}}),[["__scopeId","data-v-7639bf96"]]),re={class:"position-relative"},X=$(e.defineComponent({name:"TestPicker",inheritAttrs:!1,__name:"FDatePicker",props:{name:{},rounded:{default:"lg"},variant:{default:"outlined"},density:{default:"compact"},color:{default:"secondary"},hideDetails:{type:[Boolean,String],default:"auto"},disabled:{type:Boolean,default:!1},modelValue:{default:""},rules:{type:[String,Function],default:""},max:{default:void 0},min:{default:void 0},locale:{default:"en"},firstDayOfWeek:{default:1},dateFormat:{default:"DD/MM/YYYY"},header:{default:""}},setup(o){const t=o,a=e.computed(()=>t.rules);function d(i){if(!i)return"";let n;if(i instanceof Date)n=i;else{const k=i.split("/");k.length===3?n=new Date(Number(k[2]),Number(k[1])-1,Number(k[0])):n=new Date(i)}if(isNaN(n.getTime()))return"";const V=`0${n.getDate()}`.slice(-2),y=`0${n.getMonth()+1}`.slice(-2),_=n.getFullYear();return`${V}/${y}/${_}`}function l(i){if(!i)return null;const n=i.split("/");return n.length===3?new Date(Number(n[2]),Number(n[1])-1,Number(n[0])):null}const{errorMessage:f,value:r}=x.useField(()=>t.name,a,{initialValue:t.modelValue?d(t.modelValue):"",syncVModel:!0}),p=e.ref(null),g=e.ref(!1),s=i=>{r.value=d(i),g.value=!1};return e.onMounted(()=>{p.value=t.modelValue?l(t.modelValue):null}),(i,n)=>{const V=e.resolveComponent("v-text-field"),y=e.resolveComponent("v-date-picker"),_=e.resolveComponent("v-locale-provider"),k=e.resolveComponent("v-btn"),S=e.resolveComponent("v-menu");return e.openBlock(),e.createBlock(S,{modelValue:g.value,"onUpdate:modelValue":n[4]||(n[4]=F=>g.value=F),location:"center",disabled:t.disabled,"close-on-content-click":!1},{activator:e.withCtx(({props:F})=>[e.createVNode(V,e.mergeProps({...i.$attrs,...F},{modelValue:e.unref(r),"onUpdate:modelValue":n[0]||(n[0]=C=>e.isRef(r)?r.value=C:null),"prepend-inner-icon":"mdi-calendar-outline",name:t.name,density:t.density,rounded:t.rounded,variant:t.variant,"hide-details":t.hideDetails,color:t.color,readonly:"","error-messages":e.unref(f),"onClick:clear":n[1]||(n[1]=C=>r.value="")}),null,16,["modelValue","name","density","rounded","variant","hide-details","color","error-messages"])]),default:e.withCtx(()=>[e.createElementVNode("div",re,[e.createVNode(_,{locale:t.locale},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:p.value,"onUpdate:modelValue":[n[2]||(n[2]=F=>p.value=F),s],title:"",header:t.header,elevation:"10","first-day-of-week":t.firstDayOfWeek,min:t.min,max:t.max,color:t.color,"show-adjacent-months":"",rounded:t.rounded},null,8,["modelValue","header","first-day-of-week","min","max","color","rounded"])]),_:1},8,["locale"]),e.createVNode(k,{class:"position-absolute top-0 right-0",color:"white",icon:"mdi-close",size:"small",variant:"text",onClick:n[3]||(n[3]=F=>g.value=!1)})])]),_:1},8,["modelValue","disabled"])}}}),[["__scopeId","data-v-313419c1"]]),de={class:"d-flex"},H=e.defineComponent({name:"FTreeView",inheritAttrs:!1,__name:"FTreeView",props:{items:{default:()=>[]},selectedItems:{default:()=>[]},itemTitle:{default:"name"},label:{default:""},disabled:{type:Boolean,default:!1}},emits:["set-selected-items"],setup(o,{emit:t}){const a=o,d=t,l=e.ref(a.selectedItems),f=e.ref(!1),r=[];function p(s){s.isSelected?l.value.push(s):l.value.splice(l.value.indexOf(s),1);const i=a.items.find(n=>n.id===s.id);if(i)i.children.map(n=>n.isSelected=s.isSelected),s.isSelected&&i.children.forEach(n=>{const V=l.value.findIndex(y=>y.id===n.id);V!==-1&&l.value.splice(V,1)});else{const n=a.items.find(V=>V.id===s.parentId);n&&n.children.every(V=>V.isSelected)&&(n.isSelected=!0)}d("set-selected-items",[...l.value])}function g(s){const i=a.items.find(n=>n.id===s.id);return!i||i.children.every(n=>n.isSelected)?!1:!!i.children.find(n=>n.isSelected)}return(s,i)=>{const n=e.resolveComponent("v-chip"),V=e.resolveComponent("v-text-field"),y=e.resolveComponent("v-list-item"),_=e.resolveComponent("f-checkbox"),k=e.resolveComponent("v-list-group"),S=e.resolveComponent("v-list"),F=e.resolveComponent("v-menu");return e.openBlock(),e.createBlock(F,{modelValue:f.value,"onUpdate:modelValue":i[1]||(i[1]=C=>f.value=C),"max-height":"250px","close-on-content-click":!1,disabled:a.disabled},{activator:e.withCtx(({props:C})=>[e.createVNode(V,e.mergeProps({name:"selectedItems",readonly:""},C,{variant:"outlined",rounded:"lg",density:"compact",color:"secondary","hide-details":"",clearable:!1,label:a.label,active:l.value.length>0}),{"prepend-inner":e.withCtx(()=>[e.createElementVNode("div",de,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(c,m)=>(e.openBlock(),e.createBlock(n,{key:m,density:"compact",class:"ml-3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c[a.itemTitle]),1)]),_:2},1024))),128))])]),_:1},16,["label","active"])]),default:e.withCtx(()=>[e.createVNode(S,{density:"compact",nav:"","open-strategy":"single",width:"100%",opened:r,slim:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,C=>(e.openBlock(),e.createElementBlock("div",{key:C.id},[C.children?(e.openBlock(),e.createBlock(k,{key:1,value:C.id},{activator:e.withCtx(({props:c})=>[e.createVNode(y,e.mergeProps({ref_for:!0},c,{rounded:"lg",title:C[a.itemTitle]}),{prepend:e.withCtx(()=>[e.createVNode(_,{modelValue:C.isSelected,"onUpdate:modelValue":m=>C.isSelected=m,indeterminate:g(C),onClick:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),onChange:m=>p(C)},null,8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])]),_:2},1040,["title"])]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.children,c=>(e.openBlock(),e.createElementBlock("div",{key:c.id},[e.createVNode(y,{rounded:"lg",title:c[a.itemTitle],value:c.id},{prepend:e.withCtx(()=>[e.createVNode(_,{modelValue:c.isSelected,"onUpdate:modelValue":m=>c.isSelected=m,onChange:m=>p(c)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["title","value"])]))),128))]),_:2},1032,["value"])):(e.openBlock(),e.createBlock(y,{key:0,rounded:"lg",title:C[a.itemTitle],value:C.id},null,8,["title","value"]))]))),128))]),_:1})]),_:1},8,["modelValue","disabled"])}}}),ie={install(o){o.component("FButton",N),o.component("FTextField",M),o.component("FDataTable",P),o.component("FTextarea",R),o.component("FAutocomplete",I),o.component("FCheckbox",E),o.component("FCurrencyField",A),o.component("FSelect",U),o.component("FNumberField",L),o.component("FSwitch",O),o.component("FDialog",j),o.component("FTimePicker",z),o.component("FDatePicker",X),o.component("FTreeView",H)}};h.FAutocomplete=I,h.FButton=N,h.FCheckbox=E,h.FCurrencyField=A,h.FDataTable=P,h.FDataTableHeaderType=T,h.FDatePicker=X,h.FDialog=j,h.FNumberField=L,h.FSelect=U,h.FSwitch=O,h.FTextField=M,h.FTextarea=R,h.FTimePicker=z,h.FTreeView=H,h.default=ie,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "finso-vue-components",
3
- "version": "0.4.31",
3
+ "version": "0.4.32",
4
4
  "description": "Finso Vue 3 + Vuetify UI Component Library",
5
5
  "type": "module",
6
6
  "main": "./dist/finso-vue-components.umd.cjs",