finso-vue-components 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,8 +31,8 @@ declare const __VLS_component: import("vue").DefineComponent<FAutocompleteProps,
31
31
  modelValue: any;
32
32
  rules: string | GenericValidateFunction<any>;
33
33
  items: any[];
34
- returnObject: boolean;
35
34
  noDataText: string;
35
+ returnObject: boolean;
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
37
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
38
38
  export default _default;
@@ -24,8 +24,8 @@ declare const _default: import("vue").DefineComponent<FCurrencyFieldProps, {}, {
24
24
  modelValue: number | null;
25
25
  rules: string | GenericValidateFunction<number | null>;
26
26
  label: string;
27
- locale: string;
28
27
  currency: string;
28
+ locale: string;
29
29
  precision: number;
30
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
31
  export default _default;
@@ -1,29 +1,108 @@
1
+ export type FDataTableHeaderType = 'image' | 'money' | 'status' | 'boolean' | 'gsmNo';
1
2
  export interface FDataTableHeader {
2
3
  title: string;
3
4
  key: string;
4
5
  align?: 'start' | 'center' | 'end';
5
6
  sortable?: boolean;
6
7
  width?: string | number;
8
+ type?: FDataTableHeaderType;
7
9
  }
8
10
  export interface FDataTableProps {
9
11
  headers: FDataTableHeader[];
10
12
  items: Record<string, unknown>[];
11
13
  loading?: boolean;
12
- search?: string;
13
- itemsPerPage?: number;
14
14
  hover?: boolean;
15
15
  density?: 'default' | 'comfortable' | 'compact';
16
+ maxHeight?: number;
17
+ showSelect?: boolean;
18
+ /** Server-side mode: uses v-data-table-server with external pagination */
19
+ serverSide?: boolean;
20
+ totalCount?: number;
21
+ /** Action column */
22
+ canEditRecord?: boolean;
23
+ canDeleteRecord?: boolean;
24
+ canReadRecord?: boolean;
25
+ showDeleteConfirm?: boolean;
26
+ /** Labels (i18n-free) */
27
+ labelActive?: string;
28
+ labelPassive?: string;
29
+ labelDeleteTitle?: string;
30
+ /** Static message or dynamic formatter: (item) => `${item.code} kodlu kaydı silmek istiyor musunuz?` */
31
+ deleteMessageFormatter?: (item: any) => string;
32
+ labelDeleteMessage?: string;
33
+ labelDeleteConfirm?: string;
34
+ labelDeleteCancel?: string;
35
+ labelItemsPerPage?: string;
36
+ labelNoData?: string;
37
+ /** Money formatting */
38
+ moneyLocale?: string;
39
+ moneyCurrency?: string;
40
+ /** GSM formatting */
41
+ gsmPattern?: string;
16
42
  }
17
- declare var __VLS_7: string | number, __VLS_8: any;
43
+ type __VLS_Props = FDataTableProps;
44
+ type __VLS_PublicProps = __VLS_Props & {
45
+ 'page'?: number;
46
+ 'itemsPerPage'?: number;
47
+ 'sortBy'?: {
48
+ key: string;
49
+ order: string;
50
+ }[];
51
+ };
52
+ declare var __VLS_6: `item.${string}`, __VLS_7: {
53
+ item: any;
54
+ value: any;
55
+ }, __VLS_25: {
56
+ item: any;
57
+ }, __VLS_44: string | number, __VLS_45: any;
18
58
  type __VLS_Slots = {} & {
19
- [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any;
59
+ [K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
60
+ } & {
61
+ [K in NonNullable<typeof __VLS_44>]?: (props: typeof __VLS_45) => any;
62
+ } & {
63
+ 'item.actions'?: (props: typeof __VLS_25) => any;
20
64
  };
21
- declare const __VLS_component: import("vue").DefineComponent<FDataTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FDataTableProps> & Readonly<{}>, {
65
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
66
+ "show-record": (item: any) => any;
67
+ "delete-record": (item: any) => any;
68
+ "update:page": (value: number) => any;
69
+ "update:itemsPerPage": (value: number) => any;
70
+ "update:sortBy": (value: {
71
+ key: string;
72
+ order: string;
73
+ }[]) => any;
74
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
75
+ "onShow-record"?: ((item: any) => any) | undefined;
76
+ "onDelete-record"?: ((item: any) => any) | undefined;
77
+ "onUpdate:page"?: ((value: number) => any) | undefined;
78
+ "onUpdate:itemsPerPage"?: ((value: number) => any) | undefined;
79
+ "onUpdate:sortBy"?: ((value: {
80
+ key: string;
81
+ order: string;
82
+ }[]) => any) | undefined;
83
+ }>, {
22
84
  density: "default" | "comfortable" | "compact";
85
+ maxHeight: number;
23
86
  loading: boolean;
24
- search: string;
25
- itemsPerPage: number;
26
87
  hover: boolean;
88
+ showSelect: boolean;
89
+ serverSide: boolean;
90
+ totalCount: number;
91
+ canEditRecord: boolean;
92
+ canDeleteRecord: boolean;
93
+ canReadRecord: boolean;
94
+ showDeleteConfirm: boolean;
95
+ labelActive: string;
96
+ labelPassive: string;
97
+ labelDeleteTitle: string;
98
+ labelDeleteMessage: string;
99
+ labelDeleteConfirm: string;
100
+ labelDeleteCancel: string;
101
+ labelItemsPerPage: string;
102
+ labelNoData: string;
103
+ moneyLocale: string;
104
+ moneyCurrency: string;
105
+ gsmPattern: string;
27
106
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
107
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
29
108
  export default _default;
@@ -1,2 +1,2 @@
1
1
  export { default as FDataTable } from './FDataTable.vue';
2
- export type { FDataTableProps, FDataTableHeader } from './FDataTable.vue';
2
+ export type { FDataTableProps, FDataTableHeader, FDataTableHeaderType } from './FDataTable.vue';
@@ -0,0 +1 @@
1
+ .f-data-table__logo[data-v-18a58608]{object-fit:contain}.f-data-table__actions[data-v-18a58608]{display:flex;gap:4px;align-items:center}
@@ -1,8 +1,8 @@
1
- import { defineComponent as p, resolveComponent as R, openBlock as m, createBlock as f, computed as F, withDirectives as I, unref as o, mergeProps as y, isRef as V, createSlots as B, renderList as _, withCtx as $, renderSlot as D, normalizeProps as T, guardReactiveProps as x, ref as k, watch as N, useModel as j, createElementBlock as A, toDisplayString as w, mergeModels as P } from "vue";
2
- import { VTextField as C, VDataTable as U, VTextarea as z, VAutocomplete as O, VCheckbox as E, VSelect as L, VNumberInput as W, VSwitch as Y } from "vuetify/components";
3
- import { vMaska as q } from "maska/vue";
4
- import { useField as v } from "vee-validate";
5
- const G = /* @__PURE__ */ p({
1
+ import { defineComponent as k, resolveComponent as h, openBlock as f, createBlock as g, computed as F, withDirectives as oe, unref as c, mergeProps as _, isRef as N, createSlots as I, renderList as A, withCtx as y, renderSlot as M, normalizeProps as j, guardReactiveProps as z, useModel as X, ref as H, createElementBlock as P, resolveDynamicComponent as re, toHandlers as se, createVNode as B, toDisplayString as V, createTextVNode as x, createCommentVNode as O, createElementVNode as de, withModifiers as Y, mergeModels as L, watch as ue } from "vue";
2
+ import { VTextField as G, VTextarea as ie, VAutocomplete as ce, VCheckbox as me, VSelect as fe, VNumberInput as pe, VSwitch as ye } from "vuetify/components";
3
+ import { vMaska as ve } from "maska/vue";
4
+ import { useField as T } from "vee-validate";
5
+ const ge = /* @__PURE__ */ k({
6
6
  __name: "FButton",
7
7
  props: {
8
8
  color: { default: "primary" },
@@ -10,15 +10,15 @@ const G = /* @__PURE__ */ p({
10
10
  },
11
11
  setup(t) {
12
12
  const e = t;
13
- return (s, l) => {
14
- const a = R("v-btn");
15
- return m(), f(a, {
13
+ return (n, a) => {
14
+ const l = h("v-btn");
15
+ return f(), g(l, {
16
16
  color: e.color,
17
17
  rounded: e.rounded
18
18
  }, null, 8, ["color", "rounded"]);
19
19
  };
20
20
  }
21
- }), H = /* @__PURE__ */ p({
21
+ }), be = /* @__PURE__ */ k({
22
22
  name: "FTextField",
23
23
  inheritAttrs: !1,
24
24
  __name: "FTextField",
@@ -37,13 +37,13 @@ const G = /* @__PURE__ */ p({
37
37
  },
38
38
  emits: ["clickAppendInner"],
39
39
  setup(t) {
40
- const e = t, s = F(() => e.rules), { errorMessage: l, value: a } = v(() => e.name, s, {
40
+ const e = t, n = F(() => e.rules), { errorMessage: a, value: l } = T(() => e.name, n, {
41
41
  initialValue: e.modelValue,
42
42
  syncVModel: !0
43
43
  });
44
- return (r, n) => I((m(), f(o(C), y(r.$attrs, {
45
- modelValue: o(a),
46
- "onUpdate:modelValue": n[0] || (n[0] = (d) => V(a) ? a.value = d : null),
44
+ return (u, r) => oe((f(), g(c(G), _(u.$attrs, {
45
+ modelValue: c(l),
46
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => N(l) ? l.value = d : null),
47
47
  name: e.name,
48
48
  color: e.color,
49
49
  density: e.density,
@@ -51,52 +51,244 @@ const G = /* @__PURE__ */ p({
51
51
  variant: e.variant,
52
52
  clearable: e.clearable,
53
53
  "hide-details": e.hideDetails,
54
- "error-messages": o(l),
54
+ "error-messages": c(a),
55
55
  "append-inner-icon": e.appendInnerIcon,
56
- "onClick:appendInner": n[1] || (n[1] = (d) => r.$emit("clickAppendInner"))
57
- }), B({ _: 2 }, [
58
- _(r.$slots, (d, i) => ({
59
- name: i,
60
- fn: $((c) => [
61
- D(r.$slots, i, T(x(c ?? {})))
56
+ "onClick:appendInner": r[1] || (r[1] = (d) => u.$emit("clickAppendInner"))
57
+ }), I({ _: 2 }, [
58
+ A(u.$slots, (d, p) => ({
59
+ name: p,
60
+ fn: y((i) => [
61
+ M(u.$slots, p, j(z(i ?? {})))
62
62
  ])
63
63
  }))
64
64
  ]), 1040, ["modelValue", "name", "color", "density", "rounded", "variant", "clearable", "hide-details", "error-messages", "append-inner-icon"])), [
65
- [o(q), e.mask]
65
+ [c(ve), e.mask]
66
66
  ]);
67
67
  }
68
- }), J = /* @__PURE__ */ p({
68
+ }), he = { key: 1 }, Fe = { key: 4 }, Ve = { class: "f-data-table__actions" }, ke = /* @__PURE__ */ k({
69
69
  name: "FDataTable",
70
70
  inheritAttrs: !1,
71
71
  __name: "FDataTable",
72
- props: {
72
+ props: /* @__PURE__ */ L({
73
73
  headers: {},
74
74
  items: {},
75
75
  loading: { type: Boolean, default: !1 },
76
- search: { default: "" },
77
- itemsPerPage: { default: 10 },
78
76
  hover: { type: Boolean, default: !0 },
79
- density: { default: "default" }
80
- },
81
- setup(t) {
82
- return (e, s) => (m(), f(o(U), y(e.$attrs, {
83
- headers: t.headers,
84
- items: t.items,
85
- loading: t.loading,
86
- search: t.search,
87
- "items-per-page": t.itemsPerPage,
88
- hover: t.hover,
89
- density: t.density
90
- }), B({ _: 2 }, [
91
- _(e.$slots, (l, a) => ({
92
- name: a,
93
- fn: $((r) => [
94
- D(e.$slots, a, T(x(r ?? {})))
95
- ])
96
- }))
97
- ]), 1040, ["headers", "items", "loading", "search", "items-per-page", "hover", "density"]));
77
+ density: { default: "default" },
78
+ maxHeight: { default: 576 },
79
+ showSelect: { type: Boolean, default: !1 },
80
+ serverSide: { type: Boolean, default: !1 },
81
+ totalCount: { default: 0 },
82
+ canEditRecord: { type: Boolean, default: !0 },
83
+ canDeleteRecord: { type: Boolean, default: !0 },
84
+ canReadRecord: { type: Boolean, default: !0 },
85
+ showDeleteConfirm: { type: Boolean, default: !0 },
86
+ labelActive: { default: "Active" },
87
+ labelPassive: { default: "Passive" },
88
+ labelDeleteTitle: { default: "Delete" },
89
+ deleteMessageFormatter: {},
90
+ labelDeleteMessage: { default: "Are you sure you want to delete this record?" },
91
+ labelDeleteConfirm: { default: "Delete" },
92
+ labelDeleteCancel: { default: "Cancel" },
93
+ labelItemsPerPage: { default: "Items per page" },
94
+ labelNoData: { default: "No data available" },
95
+ moneyLocale: { default: "tr-TR" },
96
+ moneyCurrency: { default: "TRY" },
97
+ gsmPattern: { default: "(XXX) XXX XXXX" }
98
+ }, {
99
+ page: { default: 1 },
100
+ pageModifiers: {},
101
+ itemsPerPage: { default: 10 },
102
+ itemsPerPageModifiers: {},
103
+ sortBy: { default: () => [] },
104
+ sortByModifiers: {}
105
+ }),
106
+ emits: /* @__PURE__ */ L(["show-record", "delete-record"], ["update:page", "update:itemsPerPage", "update:sortBy"]),
107
+ setup(t, { emit: e }) {
108
+ const n = t, a = e, l = X(t, "page"), u = X(t, "itemsPerPage"), r = X(t, "sortBy"), d = H(!1), p = H(null);
109
+ function i(s, m) {
110
+ return m.split(".").reduce((S, E) => S == null ? void 0 : S[E], s);
111
+ }
112
+ function $(s) {
113
+ return s == null ? "" : new Intl.NumberFormat(n.moneyLocale, {
114
+ style: "currency",
115
+ currency: n.moneyCurrency
116
+ }).format(s);
117
+ }
118
+ function w(s) {
119
+ if (!s) return "";
120
+ const m = s.replace(/\D/g, "");
121
+ return m.length < 10 ? s : `(${m.substring(0, 3)}) ${m.substring(3, 6)} ${m.substring(6, 10)}`;
122
+ }
123
+ const R = F(() => {
124
+ const S = n.items.length * 52 + 56;
125
+ return Math.min(S, n.maxHeight);
126
+ }), v = F(() => !n.canEditRecord && !n.canReadRecord ? {} : {
127
+ "click:row": (s, { item: m }) => {
128
+ a("show-record", m);
129
+ }
130
+ }), D = F(
131
+ () => n.headers.filter((s) => s.type && s.key !== "actions")
132
+ ), C = F(() => n.headers.some((s) => s.key === "actions"));
133
+ function W(s) {
134
+ n.showDeleteConfirm ? (p.value = s, d.value = !0) : a("delete-record", s);
135
+ }
136
+ function q() {
137
+ a("delete-record", p.value), d.value = !1, p.value = null;
138
+ }
139
+ return (s, m) => {
140
+ const S = h("v-img"), E = h("v-avatar"), J = h("v-chip"), K = h("v-icon"), U = h("v-btn"), Q = h("v-card-title"), Z = h("v-card-text"), ee = h("v-spacer"), te = h("v-card-actions"), ae = h("v-card"), le = h("v-dialog");
141
+ return f(), P("div", null, [
142
+ (f(), g(re(t.serverSide ? "v-data-table-server" : "v-data-table"), _(s.$attrs, {
143
+ page: l.value,
144
+ "onUpdate:page": m[0] || (m[0] = (o) => l.value = o),
145
+ "items-per-page": u.value,
146
+ "onUpdate:itemsPerPage": m[1] || (m[1] = (o) => u.value = o),
147
+ "sort-by": r.value,
148
+ "onUpdate:sortBy": m[2] || (m[2] = (o) => r.value = o),
149
+ headers: t.headers,
150
+ items: t.items,
151
+ "items-length": t.serverSide ? t.totalCount : void 0,
152
+ loading: t.loading,
153
+ hover: t.hover,
154
+ density: t.density,
155
+ height: R.value,
156
+ "show-select": t.showSelect,
157
+ "items-per-page-text": t.labelItemsPerPage,
158
+ "no-data-text": t.labelNoData
159
+ }, se(v.value)), I({ _: 2 }, [
160
+ A(D.value, (o) => ({
161
+ name: `item.${o.key}`,
162
+ fn: y(({ item: b }) => [
163
+ M(s.$slots, `item.${o.key}`, {
164
+ item: b,
165
+ value: i(b, o.key)
166
+ }, () => [
167
+ o.type === "image" ? (f(), g(E, {
168
+ key: 0,
169
+ rounded: "lg",
170
+ variant: "elevated"
171
+ }, {
172
+ default: y(() => [
173
+ B(S, {
174
+ src: i(b, o.key),
175
+ class: "f-data-table__logo"
176
+ }, null, 8, ["src"])
177
+ ]),
178
+ _: 2
179
+ }, 1024)) : o.type === "money" ? (f(), P("span", he, V($(i(b, o.key))), 1)) : o.type === "status" ? (f(), g(J, {
180
+ key: 2,
181
+ color: i(b, o.key) ? "green-darken-1" : "red-darken-2",
182
+ size: "small"
183
+ }, {
184
+ default: y(() => [
185
+ x(V(i(b, o.key) ? t.labelActive : t.labelPassive), 1)
186
+ ]),
187
+ _: 2
188
+ }, 1032, ["color"])) : o.type === "boolean" ? (f(), g(K, {
189
+ key: 3,
190
+ color: i(b, o.key) ? "green-darken-1" : "red-darken-2"
191
+ }, {
192
+ default: y(() => [
193
+ x(V(i(b, o.key) ? "mdi-check" : "mdi-close"), 1)
194
+ ]),
195
+ _: 2
196
+ }, 1032, ["color"])) : o.type === "gsmNo" ? (f(), P("span", Fe, V(w(i(b, o.key))), 1)) : O("", !0)
197
+ ], !0)
198
+ ])
199
+ })),
200
+ C.value ? {
201
+ name: "item.actions",
202
+ fn: y(({ item: o }) => [
203
+ M(s.$slots, "item.actions", { item: o }, () => [
204
+ de("div", Ve, [
205
+ t.canEditRecord || t.canReadRecord ? (f(), g(U, {
206
+ key: 0,
207
+ icon: "mdi-pencil",
208
+ variant: "text",
209
+ size: "small",
210
+ onClick: Y((b) => a("show-record", o), ["stop"])
211
+ }, null, 8, ["onClick"])) : O("", !0),
212
+ t.canDeleteRecord ? (f(), g(U, {
213
+ key: 1,
214
+ icon: "mdi-delete",
215
+ variant: "text",
216
+ size: "small",
217
+ color: "red-darken-2",
218
+ onClick: Y((b) => W(o), ["stop"])
219
+ }, null, 8, ["onClick"])) : O("", !0)
220
+ ])
221
+ ], !0)
222
+ ]),
223
+ key: "0"
224
+ } : void 0,
225
+ A(s.$slots, (o, b) => ({
226
+ name: b,
227
+ fn: y((ne) => [
228
+ M(s.$slots, b, j(z(ne ?? {})), void 0, !0)
229
+ ])
230
+ }))
231
+ ]), 1040, ["page", "items-per-page", "sort-by", "headers", "items", "items-length", "loading", "hover", "density", "height", "show-select", "items-per-page-text", "no-data-text"])),
232
+ B(le, {
233
+ modelValue: d.value,
234
+ "onUpdate:modelValue": m[4] || (m[4] = (o) => d.value = o),
235
+ "max-width": "400"
236
+ }, {
237
+ default: y(() => [
238
+ B(ae, null, {
239
+ default: y(() => [
240
+ B(Q, null, {
241
+ default: y(() => [
242
+ x(V(t.labelDeleteTitle), 1)
243
+ ]),
244
+ _: 1
245
+ }),
246
+ B(Z, null, {
247
+ default: y(() => [
248
+ x(V(t.deleteMessageFormatter && p.value ? t.deleteMessageFormatter(p.value) : t.labelDeleteMessage), 1)
249
+ ]),
250
+ _: 1
251
+ }),
252
+ B(te, null, {
253
+ default: y(() => [
254
+ B(ee),
255
+ B(U, {
256
+ variant: "text",
257
+ onClick: m[3] || (m[3] = (o) => d.value = !1)
258
+ }, {
259
+ default: y(() => [
260
+ x(V(t.labelDeleteCancel), 1)
261
+ ]),
262
+ _: 1
263
+ }),
264
+ B(U, {
265
+ color: "red-darken-2",
266
+ variant: "flat",
267
+ onClick: q
268
+ }, {
269
+ default: y(() => [
270
+ x(V(t.labelDeleteConfirm), 1)
271
+ ]),
272
+ _: 1
273
+ })
274
+ ]),
275
+ _: 1
276
+ })
277
+ ]),
278
+ _: 1
279
+ })
280
+ ]),
281
+ _: 1
282
+ }, 8, ["modelValue"])
283
+ ]);
284
+ };
98
285
  }
99
- }), K = /* @__PURE__ */ p({
286
+ }), De = (t, e) => {
287
+ const n = t.__vccOpts || t;
288
+ for (const [a, l] of e)
289
+ n[a] = l;
290
+ return n;
291
+ }, Be = /* @__PURE__ */ De(ke, [["__scopeId", "data-v-18a58608"]]), _e = /* @__PURE__ */ k({
100
292
  name: "FTextarea",
101
293
  inheritAttrs: !1,
102
294
  __name: "FTextarea",
@@ -114,13 +306,13 @@ const G = /* @__PURE__ */ p({
114
306
  rules: { type: [String, Function], default: "" }
115
307
  },
116
308
  setup(t) {
117
- const e = t, s = F(() => e.rules), { errorMessage: l, value: a } = v(() => e.name, s, {
309
+ const e = t, n = F(() => e.rules), { errorMessage: a, value: l } = T(() => e.name, n, {
118
310
  initialValue: e.modelValue,
119
311
  syncVModel: !0
120
312
  });
121
- return (r, n) => (m(), f(o(z), y(r.$attrs, {
122
- modelValue: o(a),
123
- "onUpdate:modelValue": n[0] || (n[0] = (d) => V(a) ? a.value = d : null),
313
+ return (u, r) => (f(), g(c(ie), _(u.$attrs, {
314
+ modelValue: c(l),
315
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => N(l) ? l.value = d : null),
124
316
  name: e.name,
125
317
  rounded: e.rounded,
126
318
  variant: e.variant,
@@ -130,10 +322,10 @@ const G = /* @__PURE__ */ p({
130
322
  label: e.label,
131
323
  "hide-details": e.hideDetails,
132
324
  "no-resize": e.noResize,
133
- "error-messages": o(l)
325
+ "error-messages": c(a)
134
326
  }), null, 16, ["modelValue", "name", "rounded", "variant", "rows", "density", "color", "label", "hide-details", "no-resize", "error-messages"]));
135
327
  }
136
- }), Q = /* @__PURE__ */ p({
328
+ }), $e = /* @__PURE__ */ k({
137
329
  name: "FAutocomplete",
138
330
  inheritAttrs: !1,
139
331
  __name: "FAutocomplete",
@@ -153,41 +345,41 @@ const G = /* @__PURE__ */ p({
153
345
  },
154
346
  emits: ["change"],
155
347
  setup(t, { emit: e }) {
156
- const s = e, l = t, a = F(() => l.rules), { errorMessage: r, value: n } = v(() => l.name, a, {
157
- initialValue: l.modelValue,
348
+ const n = e, a = t, l = F(() => a.rules), { errorMessage: u, value: r } = T(() => a.name, l, {
349
+ initialValue: a.modelValue,
158
350
  syncVModel: !0
159
351
  });
160
- function d(i) {
161
- s("change", i);
352
+ function d(p) {
353
+ n("change", p);
162
354
  }
163
- return (i, c) => (m(), f(o(O), y(i.$attrs, {
164
- modelValue: o(n),
355
+ return (p, i) => (f(), g(c(ce), _(p.$attrs, {
356
+ modelValue: c(r),
165
357
  "onUpdate:modelValue": [
166
- c[0] || (c[0] = (b) => V(n) ? n.value = b : null),
167
- c[1] || (c[1] = (b) => d(o(n)))
358
+ i[0] || (i[0] = ($) => N(r) ? r.value = $ : null),
359
+ i[1] || (i[1] = ($) => d(c(r)))
168
360
  ],
169
- name: l.name,
170
- items: l.items,
171
- rounded: l.rounded,
172
- variant: l.variant,
173
- density: l.density,
174
- color: l.color,
175
- clearable: l.clearable,
176
- "hide-details": l.hideDetails,
177
- "return-object": l.returnObject,
178
- "no-data-text": l.noDataText,
179
- "error-messages": o(r),
361
+ name: a.name,
362
+ items: a.items,
363
+ rounded: a.rounded,
364
+ variant: a.variant,
365
+ density: a.density,
366
+ color: a.color,
367
+ clearable: a.clearable,
368
+ "hide-details": a.hideDetails,
369
+ "return-object": a.returnObject,
370
+ "no-data-text": a.noDataText,
371
+ "error-messages": c(u),
180
372
  "menu-props": { maxWidth: 0 }
181
- }), B({ _: 2 }, [
182
- _(i.$slots, (b, S) => ({
183
- name: S,
184
- fn: $((M) => [
185
- D(i.$slots, S, T(x(M ?? {})))
373
+ }), I({ _: 2 }, [
374
+ A(p.$slots, ($, w) => ({
375
+ name: w,
376
+ fn: y((R) => [
377
+ M(p.$slots, w, j(z(R ?? {})))
186
378
  ])
187
379
  }))
188
380
  ]), 1040, ["modelValue", "name", "items", "rounded", "variant", "density", "color", "clearable", "hide-details", "return-object", "no-data-text", "error-messages"]));
189
381
  }
190
- }), X = /* @__PURE__ */ p({
382
+ }), Ce = /* @__PURE__ */ k({
191
383
  name: "FCheckbox",
192
384
  inheritAttrs: !1,
193
385
  __name: "FCheckbox",
@@ -199,14 +391,14 @@ const G = /* @__PURE__ */ p({
199
391
  },
200
392
  setup(t) {
201
393
  const e = t;
202
- return (s, l) => (m(), f(o(E), y(s.$attrs, {
394
+ return (n, a) => (f(), g(c(me), _(n.$attrs, {
203
395
  color: e.color,
204
396
  "hide-details": e.hideDetails,
205
397
  indeterminate: e.indeterminate,
206
398
  density: e.density
207
399
  }), null, 16, ["color", "hide-details", "indeterminate", "density"]));
208
400
  }
209
- }), Z = /* @__PURE__ */ p({
401
+ }), Se = /* @__PURE__ */ k({
210
402
  name: "FCurrencyField",
211
403
  inheritAttrs: !1,
212
404
  __name: "FCurrencyField",
@@ -226,41 +418,41 @@ const G = /* @__PURE__ */ p({
226
418
  rules: { type: [String, Function], default: "" }
227
419
  },
228
420
  setup(t) {
229
- const e = t, s = F(() => e.rules), { errorMessage: l, value: a } = v(() => e.name, s, {
421
+ const e = t, n = F(() => e.rules), { errorMessage: a, value: l } = T(() => e.name, n, {
230
422
  initialValue: e.modelValue,
231
423
  syncVModel: !0
232
- }), r = F(
424
+ }), u = F(
233
425
  () => new Intl.NumberFormat(e.locale, {
234
426
  style: "currency",
235
427
  currency: e.currency,
236
428
  minimumFractionDigits: e.precision,
237
429
  maximumFractionDigits: e.precision
238
430
  })
239
- ), n = k(d(e.modelValue));
240
- function d(u) {
241
- return u == null || isNaN(u) ? "" : r.value.format(u);
431
+ ), r = H(d(e.modelValue));
432
+ function d(v) {
433
+ return v == null || isNaN(v) ? "" : u.value.format(v);
242
434
  }
243
- function i(u) {
244
- const h = u.replace(/[^\d,.-]/g, "").replace(/\./g, "").replace(",", "."), g = parseFloat(h);
245
- return isNaN(g) ? null : Math.round(g * Math.pow(10, e.precision)) / Math.pow(10, e.precision);
435
+ function p(v) {
436
+ const D = v.replace(/[^\d,.-]/g, "").replace(/\./g, "").replace(",", "."), C = parseFloat(D);
437
+ return isNaN(C) ? null : Math.round(C * Math.pow(10, e.precision)) / Math.pow(10, e.precision);
246
438
  }
247
- const c = k(!1);
248
- function b(u) {
249
- const h = u.target;
250
- n.value = h.value, a.value = i(h.value);
439
+ const i = H(!1);
440
+ function $(v) {
441
+ const D = v.target;
442
+ r.value = D.value, l.value = p(D.value);
251
443
  }
252
- function S() {
253
- c.value = !1, n.value = d(a.value);
444
+ function w() {
445
+ i.value = !1, r.value = d(l.value);
254
446
  }
255
- function M(u) {
256
- c.value = !0;
257
- const h = u.target, g = a.value;
258
- g != null ? n.value = g.toFixed(e.precision).replace(".", ",") : n.value = "", setTimeout(() => h.select(), 0);
447
+ function R(v) {
448
+ i.value = !0;
449
+ const D = v.target, C = l.value;
450
+ C != null ? r.value = C.toFixed(e.precision).replace(".", ",") : r.value = "", setTimeout(() => D.select(), 0);
259
451
  }
260
- return N(() => e.modelValue, (u) => {
261
- a.value = u, c.value || (n.value = d(u));
262
- }), (u, h) => (m(), f(o(C), y(u.$attrs, {
263
- "model-value": n.value,
452
+ return ue(() => e.modelValue, (v) => {
453
+ l.value = v, i.value || (r.value = d(v));
454
+ }), (v, D) => (f(), g(c(G), _(v.$attrs, {
455
+ "model-value": r.value,
264
456
  name: e.name,
265
457
  label: e.label,
266
458
  readonly: e.readonly,
@@ -269,14 +461,14 @@ const G = /* @__PURE__ */ p({
269
461
  variant: e.variant,
270
462
  density: e.density,
271
463
  color: e.color,
272
- "error-messages": o(l),
464
+ "error-messages": c(a),
273
465
  inputmode: "decimal",
274
- onInput: b,
275
- onBlur: S,
276
- onFocus: M
466
+ onInput: $,
467
+ onBlur: w,
468
+ onFocus: R
277
469
  }), null, 16, ["model-value", "name", "label", "readonly", "hide-details", "rounded", "variant", "density", "color", "error-messages"]));
278
470
  }
279
- }), ee = /* @__PURE__ */ p({
471
+ }), we = /* @__PURE__ */ k({
280
472
  name: "FSelect",
281
473
  inheritAttrs: !1,
282
474
  __name: "FSelect",
@@ -293,13 +485,13 @@ const G = /* @__PURE__ */ p({
293
485
  rules: { type: [String, Function], default: "" }
294
486
  },
295
487
  setup(t) {
296
- const e = t, s = F(() => e.rules), { errorMessage: l, value: a } = v(() => e.name, s, {
488
+ const e = t, n = F(() => e.rules), { errorMessage: a, value: l } = T(() => e.name, n, {
297
489
  initialValue: e.modelValue,
298
490
  syncVModel: !0
299
491
  });
300
- return (r, n) => (m(), f(o(L), y(r.$attrs, {
301
- modelValue: o(a),
302
- "onUpdate:modelValue": n[0] || (n[0] = (d) => V(a) ? a.value = d : null),
492
+ return (u, r) => (f(), g(c(fe), _(u.$attrs, {
493
+ modelValue: c(l),
494
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => N(l) ? l.value = d : null),
303
495
  name: e.name,
304
496
  items: e.items,
305
497
  rounded: e.rounded,
@@ -308,17 +500,17 @@ const G = /* @__PURE__ */ p({
308
500
  color: e.color,
309
501
  "hide-details": e.hideDetails,
310
502
  "return-object": e.returnObject,
311
- "error-messages": o(l)
312
- }), B({ _: 2 }, [
313
- _(r.$slots, (d, i) => ({
314
- name: i,
315
- fn: $((c) => [
316
- D(r.$slots, i, T(x(c ?? {})))
503
+ "error-messages": c(a)
504
+ }), I({ _: 2 }, [
505
+ A(u.$slots, (d, p) => ({
506
+ name: p,
507
+ fn: y((i) => [
508
+ M(u.$slots, p, j(z(i ?? {})))
317
509
  ])
318
510
  }))
319
511
  ]), 1040, ["modelValue", "name", "items", "rounded", "variant", "density", "color", "hide-details", "return-object", "error-messages"]));
320
512
  }
321
- }), te = /* @__PURE__ */ p({
513
+ }), xe = /* @__PURE__ */ k({
322
514
  name: "FNumberField",
323
515
  inheritAttrs: !1,
324
516
  __name: "FNumberField",
@@ -342,13 +534,13 @@ const G = /* @__PURE__ */ p({
342
534
  rules: { type: [String, Function], default: "" }
343
535
  },
344
536
  setup(t) {
345
- const e = t, s = F(() => e.rules), { errorMessage: l, value: a } = v(() => e.name, s, {
537
+ const e = t, n = F(() => e.rules), { errorMessage: a, value: l } = T(() => e.name, n, {
346
538
  initialValue: e.modelValue,
347
539
  syncVModel: !0
348
540
  });
349
- return (r, n) => (m(), f(o(W), y(r.$attrs, {
350
- modelValue: o(a),
351
- "onUpdate:modelValue": n[0] || (n[0] = (d) => V(a) ? a.value = d : null),
541
+ return (u, r) => (f(), g(c(pe), _(u.$attrs, {
542
+ modelValue: c(l),
543
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => N(l) ? l.value = d : null),
352
544
  name: e.name,
353
545
  color: e.color,
354
546
  density: e.density,
@@ -364,14 +556,14 @@ const G = /* @__PURE__ */ p({
364
556
  min: e.min,
365
557
  precision: e.precision,
366
558
  inset: e.inset,
367
- "error-messages": o(l)
559
+ "error-messages": c(a)
368
560
  }), null, 16, ["modelValue", "name", "color", "density", "rounded", "variant", "control-variant", "hide-details", "placeholder", "label", "prefix", "disabled", "readonly", "min", "precision", "inset", "error-messages"]));
369
561
  }
370
- }), ae = { key: 0 }, le = { key: 1 }, ne = /* @__PURE__ */ p({
562
+ }), Me = { key: 0 }, Te = { key: 1 }, Re = /* @__PURE__ */ k({
371
563
  name: "FSwitch",
372
564
  inheritAttrs: !1,
373
565
  __name: "FSwitch",
374
- props: /* @__PURE__ */ P({
566
+ props: /* @__PURE__ */ L({
375
567
  color: { default: "secondary" },
376
568
  density: { default: "comfortable" },
377
569
  hideDetails: { type: [Boolean, String], default: "auto" },
@@ -383,38 +575,38 @@ const G = /* @__PURE__ */ p({
383
575
  }),
384
576
  emits: ["update:modelValue"],
385
577
  setup(t) {
386
- const e = t, s = j(t, "modelValue");
387
- return (l, a) => (m(), f(o(Y), y(l.$attrs, {
388
- modelValue: s.value,
389
- "onUpdate:modelValue": a[0] || (a[0] = (r) => s.value = r),
578
+ const e = t, n = X(t, "modelValue");
579
+ return (a, l) => (f(), g(c(ye), _(a.$attrs, {
580
+ modelValue: n.value,
581
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => n.value = u),
390
582
  color: e.color,
391
583
  "hide-details": e.hideDetails,
392
584
  density: e.density
393
- }), B({ _: 2 }, [
585
+ }), I({ _: 2 }, [
394
586
  e.labelTrue || e.labelFalse ? {
395
587
  name: "label",
396
- fn: $(() => [
397
- s.value ? (m(), A("span", ae, w(e.labelTrue), 1)) : (m(), A("span", le, w(e.labelFalse), 1))
588
+ fn: y(() => [
589
+ n.value ? (f(), P("span", Me, V(e.labelTrue), 1)) : (f(), P("span", Te, V(e.labelFalse), 1))
398
590
  ]),
399
591
  key: "0"
400
592
  } : void 0
401
593
  ]), 1040, ["modelValue", "color", "hide-details", "density"]));
402
594
  }
403
- }), ue = {
595
+ }), Ue = {
404
596
  install(t) {
405
- t.component("FButton", G), t.component("FTextField", H), t.component("FDataTable", J), t.component("FTextarea", K), t.component("FAutocomplete", Q), t.component("FCheckbox", X), t.component("FCurrencyField", Z), t.component("FSelect", ee), t.component("FNumberField", te), t.component("FSwitch", ne);
597
+ t.component("FButton", ge), t.component("FTextField", be), t.component("FDataTable", Be), t.component("FTextarea", _e), t.component("FAutocomplete", $e), t.component("FCheckbox", Ce), t.component("FCurrencyField", Se), t.component("FSelect", we), t.component("FNumberField", xe), t.component("FSwitch", Re);
406
598
  }
407
599
  };
408
600
  export {
409
- Q as FAutocomplete,
410
- G as FButton,
411
- X as FCheckbox,
412
- Z as FCurrencyField,
413
- J as FDataTable,
414
- te as FNumberField,
415
- ee as FSelect,
416
- ne as FSwitch,
417
- H as FTextField,
418
- K as FTextarea,
419
- ue as default
601
+ $e as FAutocomplete,
602
+ ge as FButton,
603
+ Ce as FCheckbox,
604
+ Se as FCurrencyField,
605
+ Be as FDataTable,
606
+ xe as FNumberField,
607
+ we as FSelect,
608
+ Re as FSwitch,
609
+ be as FTextField,
610
+ _e as FTextarea,
611
+ Ue as default
420
612
  };
@@ -1 +1 @@
1
- (function(r,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):(r=typeof globalThis<"u"?globalThis:r||self,e(r.FinsoVueComponents={},r.Vue,r.VuetifyComponents,r.MaskaVue,r.VeeValidate))})(this,(function(r,e,f,P,y){"use strict";const b=e.defineComponent({__name:"FButton",props:{color:{default:"primary"},rounded:{type:[String,Number,Boolean],default:"lg"}},setup(n){const t=n;return(i,l)=>{const a=e.resolveComponent("v-btn");return e.openBlock(),e.createBlock(a,{color:t.color,rounded:t.rounded},null,8,["color","rounded"])}}}),B=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(n){const t=n,i=e.computed(()=>t.rules),{errorMessage:l,value:a}=y.useField(()=>t.name,i,{initialValue:t.modelValue,syncVModel:!0});return(d,o)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(f.VTextField),e.mergeProps(d.$attrs,{modelValue:e.unref(a),"onUpdate:modelValue":o[0]||(o[0]=s=>e.isRef(a)?a.value=s: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(l),"append-inner-icon":t.appendInnerIcon,"onClick:appendInner":o[1]||(o[1]=s=>d.$emit("clickAppendInner"))}),e.createSlots({_:2},[e.renderList(d.$slots,(s,c)=>({name:c,fn:e.withCtx(m=>[e.renderSlot(d.$slots,c,e.normalizeProps(e.guardReactiveProps(m??{})))])}))]),1040,["modelValue","name","color","density","rounded","variant","clearable","hide-details","error-messages","append-inner-icon"])),[[e.unref(P.vMaska),t.mask]])}}),k=e.defineComponent({name:"FDataTable",inheritAttrs:!1,__name:"FDataTable",props:{headers:{},items:{},loading:{type:Boolean,default:!1},search:{default:""},itemsPerPage:{default:10},hover:{type:Boolean,default:!0},density:{default:"default"}},setup(n){return(t,i)=>(e.openBlock(),e.createBlock(e.unref(f.VDataTable),e.mergeProps(t.$attrs,{headers:n.headers,items:n.items,loading:n.loading,search:n.search,"items-per-page":n.itemsPerPage,hover:n.hover,density:n.density}),e.createSlots({_:2},[e.renderList(t.$slots,(l,a)=>({name:a,fn:e.withCtx(d=>[e.renderSlot(t.$slots,a,e.normalizeProps(e.guardReactiveProps(d??{})))])}))]),1040,["headers","items","loading","search","items-per-page","hover","density"]))}}),S=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(n){const t=n,i=e.computed(()=>t.rules),{errorMessage:l,value:a}=y.useField(()=>t.name,i,{initialValue:t.modelValue,syncVModel:!0});return(d,o)=>(e.openBlock(),e.createBlock(e.unref(f.VTextarea),e.mergeProps(d.$attrs,{modelValue:e.unref(a),"onUpdate:modelValue":o[0]||(o[0]=s=>e.isRef(a)?a.value=s: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(l)}),null,16,["modelValue","name","rounded","variant","rows","density","color","label","hide-details","no-resize","error-messages"]))}}),_=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(n,{emit:t}){const i=t,l=n,a=e.computed(()=>l.rules),{errorMessage:d,value:o}=y.useField(()=>l.name,a,{initialValue:l.modelValue,syncVModel:!0});function s(c){i("change",c)}return(c,m)=>(e.openBlock(),e.createBlock(e.unref(f.VAutocomplete),e.mergeProps(c.$attrs,{modelValue:e.unref(o),"onUpdate:modelValue":[m[0]||(m[0]=h=>e.isRef(o)?o.value=h:null),m[1]||(m[1]=h=>s(e.unref(o)))],name:l.name,items:l.items,rounded:l.rounded,variant:l.variant,density:l.density,color:l.color,clearable:l.clearable,"hide-details":l.hideDetails,"return-object":l.returnObject,"no-data-text":l.noDataText,"error-messages":e.unref(d),"menu-props":{maxWidth:0}}),e.createSlots({_:2},[e.renderList(c.$slots,(h,g)=>({name:g,fn:e.withCtx(V=>[e.renderSlot(c.$slots,g,e.normalizeProps(e.guardReactiveProps(V??{})))])}))]),1040,["modelValue","name","items","rounded","variant","density","color","clearable","hide-details","return-object","no-data-text","error-messages"]))}}),C=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(n){const t=n;return(i,l)=>(e.openBlock(),e.createBlock(e.unref(f.VCheckbox),e.mergeProps(i.$attrs,{color:t.color,"hide-details":t.hideDetails,indeterminate:t.indeterminate,density:t.density}),null,16,["color","hide-details","indeterminate","density"]))}}),$=e.defineComponent({name:"FCurrencyField",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(n){const t=n,i=e.computed(()=>t.rules),{errorMessage:l,value:a}=y.useField(()=>t.name,i,{initialValue:t.modelValue,syncVModel:!0}),d=e.computed(()=>new Intl.NumberFormat(t.locale,{style:"currency",currency:t.currency,minimumFractionDigits:t.precision,maximumFractionDigits:t.precision})),o=e.ref(s(t.modelValue));function s(u){return u==null||isNaN(u)?"":d.value.format(u)}function c(u){const p=u.replace(/[^\d,.-]/g,"").replace(/\./g,"").replace(",","."),F=parseFloat(p);return isNaN(F)?null:Math.round(F*Math.pow(10,t.precision))/Math.pow(10,t.precision)}const m=e.ref(!1);function h(u){const p=u.target;o.value=p.value,a.value=c(p.value)}function g(){m.value=!1,o.value=s(a.value)}function V(u){m.value=!0;const p=u.target,F=a.value;F!=null?o.value=F.toFixed(t.precision).replace(".",","):o.value="",setTimeout(()=>p.select(),0)}return e.watch(()=>t.modelValue,u=>{a.value=u,m.value||(o.value=s(u))}),(u,p)=>(e.openBlock(),e.createBlock(e.unref(f.VTextField),e.mergeProps(u.$attrs,{"model-value":o.value,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(l),inputmode:"decimal",onInput:h,onBlur:g,onFocus:V}),null,16,["model-value","name","label","readonly","hide-details","rounded","variant","density","color","error-messages"]))}}),D=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(n){const t=n,i=e.computed(()=>t.rules),{errorMessage:l,value:a}=y.useField(()=>t.name,i,{initialValue:t.modelValue,syncVModel:!0});return(d,o)=>(e.openBlock(),e.createBlock(e.unref(f.VSelect),e.mergeProps(d.$attrs,{modelValue:e.unref(a),"onUpdate:modelValue":o[0]||(o[0]=s=>e.isRef(a)?a.value=s: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(l)}),e.createSlots({_:2},[e.renderList(d.$slots,(s,c)=>({name:c,fn:e.withCtx(m=>[e.renderSlot(d.$slots,c,e.normalizeProps(e.guardReactiveProps(m??{})))])}))]),1040,["modelValue","name","items","rounded","variant","density","color","hide-details","return-object","error-messages"]))}}),T=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:-1},rules:{type:[String,Function],default:""}},setup(n){const t=n,i=e.computed(()=>t.rules),{errorMessage:l,value:a}=y.useField(()=>t.name,i,{initialValue:t.modelValue,syncVModel:!0});return(d,o)=>(e.openBlock(),e.createBlock(e.unref(f.VNumberInput),e.mergeProps(d.$attrs,{modelValue:e.unref(a),"onUpdate:modelValue":o[0]||(o[0]=s=>e.isRef(a)?a.value=s: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(l)}),null,16,["modelValue","name","color","density","rounded","variant","control-variant","hide-details","placeholder","label","prefix","disabled","readonly","min","precision","inset","error-messages"]))}}),w={key:0},R={key:1},M=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(n){const t=n,i=e.useModel(n,"modelValue");return(l,a)=>(e.openBlock(),e.createBlock(e.unref(f.VSwitch),e.mergeProps(l.$attrs,{modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=d=>i.value=d),color:t.color,"hide-details":t.hideDetails,density:t.density}),e.createSlots({_:2},[t.labelTrue||t.labelFalse?{name:"label",fn:e.withCtx(()=>[i.value?(e.openBlock(),e.createElementBlock("span",w,e.toDisplayString(t.labelTrue),1)):(e.openBlock(),e.createElementBlock("span",R,e.toDisplayString(t.labelFalse),1))]),key:"0"}:void 0]),1040,["modelValue","color","hide-details","density"]))}}),x={install(n){n.component("FButton",b),n.component("FTextField",B),n.component("FDataTable",k),n.component("FTextarea",S),n.component("FAutocomplete",_),n.component("FCheckbox",C),n.component("FCurrencyField",$),n.component("FSelect",D),n.component("FNumberField",T),n.component("FSwitch",M)}};r.FAutocomplete=_,r.FButton=b,r.FCheckbox=C,r.FCurrencyField=$,r.FDataTable=k,r.FNumberField=T,r.FSelect=D,r.FSwitch=M,r.FTextField=B,r.FTextarea=S,r.default=x,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
1
+ (function(m,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):(m=typeof globalThis<"u"?globalThis:m||self,e(m.FinsoVueComponents={},m.Vue,m.VuetifyComponents,m.MaskaVue,m.VeeValidate))})(this,(function(m,e,k,z,B){"use strict";const _=e.defineComponent({__name:"FButton",props:{color:{default:"primary"},rounded:{type:[String,Number,Boolean],default:"lg"}},setup(o){const t=o;return(a,l)=>{const n=e.resolveComponent("v-btn");return e.openBlock(),e.createBlock(n,{color:t.color,rounded:t.rounded},null,8,["color","rounded"])}}}),x=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:l,value:n}=B.useField(()=>t.name,a,{initialValue:t.modelValue,syncVModel:!0});return(c,d)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(k.VTextField),e.mergeProps(c.$attrs,{modelValue:e.unref(n),"onUpdate:modelValue":d[0]||(d[0]=i=>e.isRef(n)?n.value=i: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(l),"append-inner-icon":t.appendInnerIcon,"onClick:appendInner":d[1]||(d[1]=i=>c.$emit("clickAppendInner"))}),e.createSlots({_:2},[e.renderList(c.$slots,(i,p)=>({name:p,fn:e.withCtx(u=>[e.renderSlot(c.$slots,p,e.normalizeProps(e.guardReactiveProps(u??{})))])}))]),1040,["modelValue","name","color","density","rounded","variant","clearable","hide-details","error-messages","append-inner-icon"])),[[e.unref(z.vMaska),t.mask]])}}),U={key:1},j={key:4},E={class:"f-data-table__actions"},$=((o,t)=>{const a=o.__vccOpts||o;for(const[l,n]of t)a[l]=n;return a})(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},serverSide:{type:Boolean,default:!1},totalCount:{default:0},canEditRecord:{type:Boolean,default:!0},canDeleteRecord:{type:Boolean,default:!0},canReadRecord:{type:Boolean,default:!0},showDeleteConfirm:{type:Boolean,default:!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,l=t,n=e.useModel(o,"page"),c=e.useModel(o,"itemsPerPage"),d=e.useModel(o,"sortBy"),i=e.ref(!1),p=e.ref(null);function u(s,f){return f.split(".").reduce((F,w)=>F==null?void 0:F[w],s)}function b(s){return s==null?"":new Intl.NumberFormat(a.moneyLocale,{style:"currency",currency:a.moneyCurrency}).format(s)}function C(s){if(!s)return"";const f=s.replace(/\D/g,"");return f.length<10?s:`(${f.substring(0,3)}) ${f.substring(3,6)} ${f.substring(6,10)}`}const D=e.computed(()=>{const F=a.items.length*52+56;return Math.min(F,a.maxHeight)}),y=e.computed(()=>!a.canEditRecord&&!a.canReadRecord?{}:{"click:row":(s,{item:f})=>{l("show-record",f)}}),h=e.computed(()=>a.headers.filter(s=>s.type&&s.key!=="actions")),V=e.computed(()=>a.headers.some(s=>s.key==="actions"));function O(s){a.showDeleteConfirm?(p.value=s,i.value=!0):l("delete-record",s)}function q(){l("delete-record",p.value),i.value=!1,p.value=null}return(s,f)=>{const F=e.resolveComponent("v-img"),w=e.resolveComponent("v-avatar"),Y=e.resolveComponent("v-chip"),G=e.resolveComponent("v-icon"),S=e.resolveComponent("v-btn"),W=e.resolveComponent("v-card-title"),J=e.resolveComponent("v-card-text"),K=e.resolveComponent("v-spacer"),Q=e.resolveComponent("v-card-actions"),Z=e.resolveComponent("v-card"),v=e.resolveComponent("v-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(s.$attrs,{page:n.value,"onUpdate:page":f[0]||(f[0]=r=>n.value=r),"items-per-page":c.value,"onUpdate:itemsPerPage":f[1]||(f[1]=r=>c.value=r),"sort-by":d.value,"onUpdate:sortBy":f[2]||(f[2]=r=>d.value=r),headers:o.headers,items:o.items,"items-length":o.serverSide?o.totalCount:void 0,loading:o.loading,hover:o.hover,density:o.density,height:D.value,"show-select":o.showSelect,"items-per-page-text":o.labelItemsPerPage,"no-data-text":o.labelNoData},e.toHandlers(y.value)),e.createSlots({_:2},[e.renderList(h.value,r=>({name:`item.${r.key}`,fn:e.withCtx(({item:g})=>[e.renderSlot(s.$slots,`item.${r.key}`,{item:g,value:u(g,r.key)},()=>[r.type==="image"?(e.openBlock(),e.createBlock(w,{key:0,rounded:"lg",variant:"elevated"},{default:e.withCtx(()=>[e.createVNode(F,{src:u(g,r.key),class:"f-data-table__logo"},null,8,["src"])]),_:2},1024)):r.type==="money"?(e.openBlock(),e.createElementBlock("span",U,e.toDisplayString(b(u(g,r.key))),1)):r.type==="status"?(e.openBlock(),e.createBlock(Y,{key:2,color:u(g,r.key)?"green-darken-1":"red-darken-2",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u(g,r.key)?o.labelActive:o.labelPassive),1)]),_:2},1032,["color"])):r.type==="boolean"?(e.openBlock(),e.createBlock(G,{key:3,color:u(g,r.key)?"green-darken-1":"red-darken-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u(g,r.key)?"mdi-check":"mdi-close"),1)]),_:2},1032,["color"])):r.type==="gsmNo"?(e.openBlock(),e.createElementBlock("span",j,e.toDisplayString(C(u(g,r.key))),1)):e.createCommentVNode("",!0)],!0)])})),V.value?{name:"item.actions",fn:e.withCtx(({item:r})=>[e.renderSlot(s.$slots,"item.actions",{item:r},()=>[e.createElementVNode("div",E,[o.canEditRecord||o.canReadRecord?(e.openBlock(),e.createBlock(S,{key:0,icon:"mdi-pencil",variant:"text",size:"small",onClick:e.withModifiers(g=>l("show-record",r),["stop"])},null,8,["onClick"])):e.createCommentVNode("",!0),o.canDeleteRecord?(e.openBlock(),e.createBlock(S,{key:1,icon:"mdi-delete",variant:"text",size:"small",color:"red-darken-2",onClick:e.withModifiers(g=>O(r),["stop"])},null,8,["onClick"])):e.createCommentVNode("",!0)])],!0)]),key:"0"}:void 0,e.renderList(s.$slots,(r,g)=>({name:g,fn:e.withCtx(ee=>[e.renderSlot(s.$slots,g,e.normalizeProps(e.guardReactiveProps(ee??{})),void 0,!0)])}))]),1040,["page","items-per-page","sort-by","headers","items","items-length","loading","hover","density","height","show-select","items-per-page-text","no-data-text"])),e.createVNode(v,{modelValue:i.value,"onUpdate:modelValue":f[4]||(f[4]=r=>i.value=r),"max-width":"400"},{default:e.withCtx(()=>[e.createVNode(Z,null,{default:e.withCtx(()=>[e.createVNode(W,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.labelDeleteTitle),1)]),_:1}),e.createVNode(J,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.deleteMessageFormatter&&p.value?o.deleteMessageFormatter(p.value):o.labelDeleteMessage),1)]),_:1}),e.createVNode(Q,null,{default:e.withCtx(()=>[e.createVNode(K),e.createVNode(S,{variant:"text",onClick:f[3]||(f[3]=r=>i.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.labelDeleteCancel),1)]),_:1}),e.createVNode(S,{color:"red-darken-2",variant:"flat",onClick:q},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.labelDeleteConfirm),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-18a58608"]]),M=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:l,value:n}=B.useField(()=>t.name,a,{initialValue:t.modelValue,syncVModel:!0});return(c,d)=>(e.openBlock(),e.createBlock(e.unref(k.VTextarea),e.mergeProps(c.$attrs,{modelValue:e.unref(n),"onUpdate:modelValue":d[0]||(d[0]=i=>e.isRef(n)?n.value=i: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(l)}),null,16,["modelValue","name","rounded","variant","rows","density","color","label","hide-details","no-resize","error-messages"]))}}),P=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,l=o,n=e.computed(()=>l.rules),{errorMessage:c,value:d}=B.useField(()=>l.name,n,{initialValue:l.modelValue,syncVModel:!0});function i(p){a("change",p)}return(p,u)=>(e.openBlock(),e.createBlock(e.unref(k.VAutocomplete),e.mergeProps(p.$attrs,{modelValue:e.unref(d),"onUpdate:modelValue":[u[0]||(u[0]=b=>e.isRef(d)?d.value=b:null),u[1]||(u[1]=b=>i(e.unref(d)))],name:l.name,items:l.items,rounded:l.rounded,variant:l.variant,density:l.density,color:l.color,clearable:l.clearable,"hide-details":l.hideDetails,"return-object":l.returnObject,"no-data-text":l.noDataText,"error-messages":e.unref(c),"menu-props":{maxWidth:0}}),e.createSlots({_:2},[e.renderList(p.$slots,(b,C)=>({name:C,fn:e.withCtx(D=>[e.renderSlot(p.$slots,C,e.normalizeProps(e.guardReactiveProps(D??{})))])}))]),1040,["modelValue","name","items","rounded","variant","density","color","clearable","hide-details","return-object","no-data-text","error-messages"]))}}),T=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,l)=>(e.openBlock(),e.createBlock(e.unref(k.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"]))}}),N=e.defineComponent({name:"FCurrencyField",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:l,value:n}=B.useField(()=>t.name,a,{initialValue:t.modelValue,syncVModel:!0}),c=e.computed(()=>new Intl.NumberFormat(t.locale,{style:"currency",currency:t.currency,minimumFractionDigits:t.precision,maximumFractionDigits:t.precision})),d=e.ref(i(t.modelValue));function i(y){return y==null||isNaN(y)?"":c.value.format(y)}function p(y){const h=y.replace(/[^\d,.-]/g,"").replace(/\./g,"").replace(",","."),V=parseFloat(h);return isNaN(V)?null:Math.round(V*Math.pow(10,t.precision))/Math.pow(10,t.precision)}const u=e.ref(!1);function b(y){const h=y.target;d.value=h.value,n.value=p(h.value)}function C(){u.value=!1,d.value=i(n.value)}function D(y){u.value=!0;const h=y.target,V=n.value;V!=null?d.value=V.toFixed(t.precision).replace(".",","):d.value="",setTimeout(()=>h.select(),0)}return e.watch(()=>t.modelValue,y=>{n.value=y,u.value||(d.value=i(y))}),(y,h)=>(e.openBlock(),e.createBlock(e.unref(k.VTextField),e.mergeProps(y.$attrs,{"model-value":d.value,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(l),inputmode:"decimal",onInput:b,onBlur:C,onFocus:D}),null,16,["model-value","name","label","readonly","hide-details","rounded","variant","density","color","error-messages"]))}}),R=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:l,value:n}=B.useField(()=>t.name,a,{initialValue:t.modelValue,syncVModel:!0});return(c,d)=>(e.openBlock(),e.createBlock(e.unref(k.VSelect),e.mergeProps(c.$attrs,{modelValue:e.unref(n),"onUpdate:modelValue":d[0]||(d[0]=i=>e.isRef(n)?n.value=i: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(l)}),e.createSlots({_:2},[e.renderList(c.$slots,(i,p)=>({name:p,fn:e.withCtx(u=>[e.renderSlot(c.$slots,p,e.normalizeProps(e.guardReactiveProps(u??{})))])}))]),1040,["modelValue","name","items","rounded","variant","density","color","hide-details","return-object","error-messages"]))}}),A=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:-1},rules:{type:[String,Function],default:""}},setup(o){const t=o,a=e.computed(()=>t.rules),{errorMessage:l,value:n}=B.useField(()=>t.name,a,{initialValue:t.modelValue,syncVModel:!0});return(c,d)=>(e.openBlock(),e.createBlock(e.unref(k.VNumberInput),e.mergeProps(c.$attrs,{modelValue:e.unref(n),"onUpdate:modelValue":d[0]||(d[0]=i=>e.isRef(n)?n.value=i: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(l)}),null,16,["modelValue","name","color","density","rounded","variant","control-variant","hide-details","placeholder","label","prefix","disabled","readonly","min","precision","inset","error-messages"]))}}),X={key:0},H={key:1},I=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(l,n)=>(e.openBlock(),e.createBlock(e.unref(k.VSwitch),e.mergeProps(l.$attrs,{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=c=>a.value=c),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",X,e.toDisplayString(t.labelTrue),1)):(e.openBlock(),e.createElementBlock("span",H,e.toDisplayString(t.labelFalse),1))]),key:"0"}:void 0]),1040,["modelValue","color","hide-details","density"]))}}),L={install(o){o.component("FButton",_),o.component("FTextField",x),o.component("FDataTable",$),o.component("FTextarea",M),o.component("FAutocomplete",P),o.component("FCheckbox",T),o.component("FCurrencyField",N),o.component("FSelect",R),o.component("FNumberField",A),o.component("FSwitch",I)}};m.FAutocomplete=P,m.FButton=_,m.FCheckbox=T,m.FCurrencyField=N,m.FDataTable=$,m.FNumberField=A,m.FSelect=R,m.FSwitch=I,m.FTextField=x,m.FTextarea=M,m.default=L,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export { FNumberField } from './components/FNumberField';
11
11
  export { FSwitch } from './components/FSwitch';
12
12
  export type { FButtonProps } from './components/FButton';
13
13
  export type { FTextFieldProps } from './components/FTextField';
14
- export type { FDataTableProps, FDataTableHeader } from './components/FDataTable';
14
+ export type { FDataTableProps, FDataTableHeader, FDataTableHeaderType } from './components/FDataTable';
15
15
  export type { FTextareaProps } from './components/FTextarea';
16
16
  export type { FAutocompleteProps } from './components/FAutocomplete';
17
17
  export type { FCheckboxProps } from './components/FCheckbox';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "finso-vue-components",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Finso Vue 3 + Vuetify UI Component Library",
5
5
  "type": "module",
6
6
  "main": "./dist/finso-vue-components.umd.cjs",
@@ -17,13 +17,6 @@
17
17
  "files": [
18
18
  "dist"
19
19
  ],
20
- "scripts": {
21
- "build": "vite build && vue-tsc --emitDeclarationOnly",
22
- "storybook": "storybook dev -p 6006",
23
- "build-storybook": "storybook build",
24
- "lint": "eslint src/",
25
- "prepublishOnly": "pnpm build"
26
- },
27
20
  "peerDependencies": {
28
21
  "maska": "^3.0.0",
29
22
  "vee-validate": "^4.12.0",
@@ -63,5 +56,10 @@
63
56
  "publishConfig": {
64
57
  "access": "public"
65
58
  },
66
- "packageManager": "pnpm@10.29.3+sha512.498e1fb4cca5aa06c1dcf2611e6fafc50972ffe7189998c409e90de74566444298ffe43e6cd2acdc775ba1aa7cc5e092a8b7054c811ba8c5770f84693d33d2dc"
67
- }
59
+ "scripts": {
60
+ "build": "vite build && vue-tsc --emitDeclarationOnly",
61
+ "storybook": "storybook dev -p 6006",
62
+ "build-storybook": "storybook build",
63
+ "lint": "eslint src/"
64
+ }
65
+ }