finso-vue-components 0.4.4 → 0.4.6

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,100 @@
1
- export interface FDataTableHeader {
2
- title: string;
3
- key: string;
4
- align?: 'start' | 'center' | 'end';
5
- sortable?: boolean;
6
- width?: string | number;
7
- }
1
+ import type { FDataTableHeader } from './types';
8
2
  export interface FDataTableProps {
9
3
  headers: FDataTableHeader[];
10
4
  items: Record<string, unknown>[];
11
5
  loading?: boolean;
12
- search?: string;
13
- itemsPerPage?: number;
14
6
  hover?: boolean;
15
7
  density?: 'default' | 'comfortable' | 'compact';
8
+ maxHeight?: number;
9
+ showSelect?: boolean;
10
+ /** Server-side mode: uses v-data-table-server with external pagination */
11
+ serverSide?: boolean;
12
+ totalCount?: number;
13
+ /** Action column */
14
+ canEditRecord?: boolean;
15
+ canDeleteRecord?: boolean;
16
+ canReadRecord?: boolean;
17
+ showDeleteConfirm?: boolean;
18
+ /** Labels (i18n-free) */
19
+ labelActive?: string;
20
+ labelPassive?: string;
21
+ labelDeleteTitle?: string;
22
+ /** Static message or dynamic formatter: (item) => `${item.code} kodlu kaydı silmek istiyor musunuz?` */
23
+ deleteMessageFormatter?: (item: any) => string;
24
+ labelDeleteMessage?: string;
25
+ labelDeleteConfirm?: string;
26
+ labelDeleteCancel?: string;
27
+ labelItemsPerPage?: string;
28
+ labelNoData?: string;
29
+ /** Money formatting */
30
+ moneyLocale?: string;
31
+ moneyCurrency?: string;
32
+ /** GSM formatting */
33
+ gsmPattern?: string;
16
34
  }
17
- declare var __VLS_7: string | number, __VLS_8: any;
35
+ type __VLS_Props = FDataTableProps;
36
+ type __VLS_PublicProps = __VLS_Props & {
37
+ 'page'?: number;
38
+ 'itemsPerPage'?: number;
39
+ 'sortBy'?: {
40
+ key: string;
41
+ order: string;
42
+ }[];
43
+ };
44
+ declare var __VLS_6: `item.${string}`, __VLS_7: {
45
+ item: any;
46
+ value: any;
47
+ }, __VLS_25: {
48
+ item: any;
49
+ }, __VLS_44: string | number, __VLS_45: any;
18
50
  type __VLS_Slots = {} & {
19
- [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any;
51
+ [K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
52
+ } & {
53
+ [K in NonNullable<typeof __VLS_44>]?: (props: typeof __VLS_45) => any;
54
+ } & {
55
+ 'item.actions'?: (props: typeof __VLS_25) => any;
20
56
  };
21
- declare const __VLS_component: import("vue").DefineComponent<FDataTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FDataTableProps> & Readonly<{}>, {
57
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
58
+ "show-record": (item: any) => any;
59
+ "delete-record": (item: any) => any;
60
+ "update:page": (value: number) => any;
61
+ "update:itemsPerPage": (value: number) => any;
62
+ "update:sortBy": (value: {
63
+ key: string;
64
+ order: string;
65
+ }[]) => any;
66
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
67
+ "onShow-record"?: ((item: any) => any) | undefined;
68
+ "onDelete-record"?: ((item: any) => any) | undefined;
69
+ "onUpdate:page"?: ((value: number) => any) | undefined;
70
+ "onUpdate:itemsPerPage"?: ((value: number) => any) | undefined;
71
+ "onUpdate:sortBy"?: ((value: {
72
+ key: string;
73
+ order: string;
74
+ }[]) => any) | undefined;
75
+ }>, {
22
76
  density: "default" | "comfortable" | "compact";
77
+ maxHeight: number;
23
78
  loading: boolean;
24
- search: string;
25
- itemsPerPage: number;
26
79
  hover: boolean;
80
+ showSelect: boolean;
81
+ serverSide: boolean;
82
+ totalCount: number;
83
+ canEditRecord: boolean;
84
+ canDeleteRecord: boolean;
85
+ canReadRecord: boolean;
86
+ showDeleteConfirm: boolean;
87
+ labelActive: string;
88
+ labelPassive: string;
89
+ labelDeleteTitle: string;
90
+ labelDeleteMessage: string;
91
+ labelDeleteConfirm: string;
92
+ labelDeleteCancel: string;
93
+ labelItemsPerPage: string;
94
+ labelNoData: string;
95
+ moneyLocale: string;
96
+ moneyCurrency: string;
97
+ gsmPattern: string;
27
98
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
99
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
29
100
  export default _default;
@@ -1,2 +1,4 @@
1
1
  export { default as FDataTable } from './FDataTable.vue';
2
- export type { FDataTableProps, FDataTableHeader } from './FDataTable.vue';
2
+ export { FDataTableHeaderType } from './types';
3
+ export type { FDataTableHeader } from './types';
4
+ export type { FDataTableProps } from './FDataTable.vue';
@@ -0,0 +1,15 @@
1
+ export declare enum FDataTableHeaderType {
2
+ IMAGE = "image",
3
+ MONEY = "money",
4
+ STATUS = "status",
5
+ BOOLEAN = "boolean",
6
+ GSM_NO = "gsmNo"
7
+ }
8
+ export interface FDataTableHeader {
9
+ title: string;
10
+ key: string;
11
+ align?: 'start' | 'center' | 'end';
12
+ sortable?: boolean;
13
+ width?: string | number;
14
+ type?: FDataTableHeaderType;
15
+ }
@@ -0,0 +1 @@
1
+ .f-data-table__logo[data-v-ef0a08d5]{object-fit:contain}.f-data-table__actions[data-v-ef0a08d5]{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 T, createSlots as I, renderList as P, withCtx as y, renderSlot as x, normalizeProps as O, guardReactiveProps as j, useModel as X, ref as E, createElementBlock as N, resolveDynamicComponent as re, toHandlers as se, createVNode as B, toDisplayString as V, createTextVNode as w, createCommentVNode as H, createElementVNode as de, withModifiers as G, mergeModels as L, watch as ue } from "vue";
2
+ import { VTextField as Y, 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 R } 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 } = R(() => 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(Y), _(u.$attrs, {
45
+ modelValue: c(l),
46
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => T(l) ? l.value = d : null),
47
47
  name: e.name,
48
48
  color: e.color,
49
49
  density: e.density,
@@ -51,52 +51,246 @@ 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
+ P(u.$slots, (d, p) => ({
59
+ name: p,
60
+ fn: y((i) => [
61
+ x(u.$slots, p, O(j(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 = E(!1), p = E(null);
109
+ function i(s, m) {
110
+ return m.split(".").reduce((C, z) => C == null ? void 0 : C[z], 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 M(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 A = F(() => {
124
+ const C = n.items.length * 52 + 56;
125
+ return Math.min(C, 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
+ ), S = 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 C = h("v-img"), z = 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(), N("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: A.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
+ P(D.value, (o) => ({
161
+ name: `item.${o.key}`,
162
+ fn: y(({ item: b }) => [
163
+ x(s.$slots, `item.${o.key}`, {
164
+ item: b,
165
+ value: i(b, o.key)
166
+ }, () => [
167
+ o.type === "image" ? (f(), g(z, {
168
+ key: 0,
169
+ rounded: "lg",
170
+ variant: "elevated"
171
+ }, {
172
+ default: y(() => [
173
+ B(C, {
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(), N("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
+ w(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
+ w(V(i(b, o.key) ? "mdi-check" : "mdi-close"), 1)
194
+ ]),
195
+ _: 2
196
+ }, 1032, ["color"])) : o.type === "gsmNo" ? (f(), N("span", Fe, V(M(i(b, o.key))), 1)) : H("", !0)
197
+ ], !0)
198
+ ])
199
+ })),
200
+ S.value ? {
201
+ name: "item.actions",
202
+ fn: y(({ item: o }) => [
203
+ x(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: G((b) => a("show-record", o), ["stop"])
211
+ }, null, 8, ["onClick"])) : H("", !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: G((b) => W(o), ["stop"])
219
+ }, null, 8, ["onClick"])) : H("", !0)
220
+ ])
221
+ ], !0)
222
+ ]),
223
+ key: "0"
224
+ } : void 0,
225
+ P(s.$slots, (o, b) => ({
226
+ name: b,
227
+ fn: y((ne) => [
228
+ x(s.$slots, b, O(j(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
+ w(V(t.labelDeleteTitle), 1)
243
+ ]),
244
+ _: 1
245
+ }),
246
+ B(Z, null, {
247
+ default: y(() => [
248
+ w(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
+ w(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
+ w(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-ef0a08d5"]]);
292
+ var _e = /* @__PURE__ */ ((t) => (t.IMAGE = "image", t.MONEY = "money", t.STATUS = "status", t.BOOLEAN = "boolean", t.GSM_NO = "gsmNo", t))(_e || {});
293
+ const $e = /* @__PURE__ */ k({
100
294
  name: "FTextarea",
101
295
  inheritAttrs: !1,
102
296
  __name: "FTextarea",
@@ -114,13 +308,13 @@ const G = /* @__PURE__ */ p({
114
308
  rules: { type: [String, Function], default: "" }
115
309
  },
116
310
  setup(t) {
117
- const e = t, s = F(() => e.rules), { errorMessage: l, value: a } = v(() => e.name, s, {
311
+ const e = t, n = F(() => e.rules), { errorMessage: a, value: l } = R(() => e.name, n, {
118
312
  initialValue: e.modelValue,
119
313
  syncVModel: !0
120
314
  });
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),
315
+ return (u, r) => (f(), g(c(ie), _(u.$attrs, {
316
+ modelValue: c(l),
317
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => T(l) ? l.value = d : null),
124
318
  name: e.name,
125
319
  rounded: e.rounded,
126
320
  variant: e.variant,
@@ -130,10 +324,10 @@ const G = /* @__PURE__ */ p({
130
324
  label: e.label,
131
325
  "hide-details": e.hideDetails,
132
326
  "no-resize": e.noResize,
133
- "error-messages": o(l)
327
+ "error-messages": c(a)
134
328
  }), null, 16, ["modelValue", "name", "rounded", "variant", "rows", "density", "color", "label", "hide-details", "no-resize", "error-messages"]));
135
329
  }
136
- }), Q = /* @__PURE__ */ p({
330
+ }), Se = /* @__PURE__ */ k({
137
331
  name: "FAutocomplete",
138
332
  inheritAttrs: !1,
139
333
  __name: "FAutocomplete",
@@ -153,41 +347,41 @@ const G = /* @__PURE__ */ p({
153
347
  },
154
348
  emits: ["change"],
155
349
  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,
350
+ const n = e, a = t, l = F(() => a.rules), { errorMessage: u, value: r } = R(() => a.name, l, {
351
+ initialValue: a.modelValue,
158
352
  syncVModel: !0
159
353
  });
160
- function d(i) {
161
- s("change", i);
354
+ function d(p) {
355
+ n("change", p);
162
356
  }
163
- return (i, c) => (m(), f(o(O), y(i.$attrs, {
164
- modelValue: o(n),
357
+ return (p, i) => (f(), g(c(ce), _(p.$attrs, {
358
+ modelValue: c(r),
165
359
  "onUpdate:modelValue": [
166
- c[0] || (c[0] = (b) => V(n) ? n.value = b : null),
167
- c[1] || (c[1] = (b) => d(o(n)))
360
+ i[0] || (i[0] = ($) => T(r) ? r.value = $ : null),
361
+ i[1] || (i[1] = ($) => d(c(r)))
168
362
  ],
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),
363
+ name: a.name,
364
+ items: a.items,
365
+ rounded: a.rounded,
366
+ variant: a.variant,
367
+ density: a.density,
368
+ color: a.color,
369
+ clearable: a.clearable,
370
+ "hide-details": a.hideDetails,
371
+ "return-object": a.returnObject,
372
+ "no-data-text": a.noDataText,
373
+ "error-messages": c(u),
180
374
  "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 ?? {})))
375
+ }), I({ _: 2 }, [
376
+ P(p.$slots, ($, M) => ({
377
+ name: M,
378
+ fn: y((A) => [
379
+ x(p.$slots, M, O(j(A ?? {})))
186
380
  ])
187
381
  }))
188
382
  ]), 1040, ["modelValue", "name", "items", "rounded", "variant", "density", "color", "clearable", "hide-details", "return-object", "no-data-text", "error-messages"]));
189
383
  }
190
- }), X = /* @__PURE__ */ p({
384
+ }), Ce = /* @__PURE__ */ k({
191
385
  name: "FCheckbox",
192
386
  inheritAttrs: !1,
193
387
  __name: "FCheckbox",
@@ -199,14 +393,14 @@ const G = /* @__PURE__ */ p({
199
393
  },
200
394
  setup(t) {
201
395
  const e = t;
202
- return (s, l) => (m(), f(o(E), y(s.$attrs, {
396
+ return (n, a) => (f(), g(c(me), _(n.$attrs, {
203
397
  color: e.color,
204
398
  "hide-details": e.hideDetails,
205
399
  indeterminate: e.indeterminate,
206
400
  density: e.density
207
401
  }), null, 16, ["color", "hide-details", "indeterminate", "density"]));
208
402
  }
209
- }), Z = /* @__PURE__ */ p({
403
+ }), Me = /* @__PURE__ */ k({
210
404
  name: "FCurrencyField",
211
405
  inheritAttrs: !1,
212
406
  __name: "FCurrencyField",
@@ -226,41 +420,41 @@ const G = /* @__PURE__ */ p({
226
420
  rules: { type: [String, Function], default: "" }
227
421
  },
228
422
  setup(t) {
229
- const e = t, s = F(() => e.rules), { errorMessage: l, value: a } = v(() => e.name, s, {
423
+ const e = t, n = F(() => e.rules), { errorMessage: a, value: l } = R(() => e.name, n, {
230
424
  initialValue: e.modelValue,
231
425
  syncVModel: !0
232
- }), r = F(
426
+ }), u = F(
233
427
  () => new Intl.NumberFormat(e.locale, {
234
428
  style: "currency",
235
429
  currency: e.currency,
236
430
  minimumFractionDigits: e.precision,
237
431
  maximumFractionDigits: e.precision
238
432
  })
239
- ), n = k(d(e.modelValue));
240
- function d(u) {
241
- return u == null || isNaN(u) ? "" : r.value.format(u);
433
+ ), r = E(d(e.modelValue));
434
+ function d(v) {
435
+ return v == null || isNaN(v) ? "" : u.value.format(v);
242
436
  }
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);
437
+ function p(v) {
438
+ const D = v.replace(/[^\d,.-]/g, "").replace(/\./g, "").replace(",", "."), S = parseFloat(D);
439
+ return isNaN(S) ? null : Math.round(S * Math.pow(10, e.precision)) / Math.pow(10, e.precision);
246
440
  }
247
- const c = k(!1);
248
- function b(u) {
249
- const h = u.target;
250
- n.value = h.value, a.value = i(h.value);
441
+ const i = E(!1);
442
+ function $(v) {
443
+ const D = v.target;
444
+ r.value = D.value, l.value = p(D.value);
251
445
  }
252
- function S() {
253
- c.value = !1, n.value = d(a.value);
446
+ function M() {
447
+ i.value = !1, r.value = d(l.value);
254
448
  }
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);
449
+ function A(v) {
450
+ i.value = !0;
451
+ const D = v.target, S = l.value;
452
+ S != null ? r.value = S.toFixed(e.precision).replace(".", ",") : r.value = "", setTimeout(() => D.select(), 0);
259
453
  }
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,
454
+ return ue(() => e.modelValue, (v) => {
455
+ l.value = v, i.value || (r.value = d(v));
456
+ }), (v, D) => (f(), g(c(Y), _(v.$attrs, {
457
+ "model-value": r.value,
264
458
  name: e.name,
265
459
  label: e.label,
266
460
  readonly: e.readonly,
@@ -269,14 +463,14 @@ const G = /* @__PURE__ */ p({
269
463
  variant: e.variant,
270
464
  density: e.density,
271
465
  color: e.color,
272
- "error-messages": o(l),
466
+ "error-messages": c(a),
273
467
  inputmode: "decimal",
274
- onInput: b,
275
- onBlur: S,
276
- onFocus: M
468
+ onInput: $,
469
+ onBlur: M,
470
+ onFocus: A
277
471
  }), null, 16, ["model-value", "name", "label", "readonly", "hide-details", "rounded", "variant", "density", "color", "error-messages"]));
278
472
  }
279
- }), ee = /* @__PURE__ */ p({
473
+ }), we = /* @__PURE__ */ k({
280
474
  name: "FSelect",
281
475
  inheritAttrs: !1,
282
476
  __name: "FSelect",
@@ -293,13 +487,13 @@ const G = /* @__PURE__ */ p({
293
487
  rules: { type: [String, Function], default: "" }
294
488
  },
295
489
  setup(t) {
296
- const e = t, s = F(() => e.rules), { errorMessage: l, value: a } = v(() => e.name, s, {
490
+ const e = t, n = F(() => e.rules), { errorMessage: a, value: l } = R(() => e.name, n, {
297
491
  initialValue: e.modelValue,
298
492
  syncVModel: !0
299
493
  });
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),
494
+ return (u, r) => (f(), g(c(fe), _(u.$attrs, {
495
+ modelValue: c(l),
496
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => T(l) ? l.value = d : null),
303
497
  name: e.name,
304
498
  items: e.items,
305
499
  rounded: e.rounded,
@@ -308,17 +502,17 @@ const G = /* @__PURE__ */ p({
308
502
  color: e.color,
309
503
  "hide-details": e.hideDetails,
310
504
  "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 ?? {})))
505
+ "error-messages": c(a)
506
+ }), I({ _: 2 }, [
507
+ P(u.$slots, (d, p) => ({
508
+ name: p,
509
+ fn: y((i) => [
510
+ x(u.$slots, p, O(j(i ?? {})))
317
511
  ])
318
512
  }))
319
513
  ]), 1040, ["modelValue", "name", "items", "rounded", "variant", "density", "color", "hide-details", "return-object", "error-messages"]));
320
514
  }
321
- }), te = /* @__PURE__ */ p({
515
+ }), xe = /* @__PURE__ */ k({
322
516
  name: "FNumberField",
323
517
  inheritAttrs: !1,
324
518
  __name: "FNumberField",
@@ -342,13 +536,13 @@ const G = /* @__PURE__ */ p({
342
536
  rules: { type: [String, Function], default: "" }
343
537
  },
344
538
  setup(t) {
345
- const e = t, s = F(() => e.rules), { errorMessage: l, value: a } = v(() => e.name, s, {
539
+ const e = t, n = F(() => e.rules), { errorMessage: a, value: l } = R(() => e.name, n, {
346
540
  initialValue: e.modelValue,
347
541
  syncVModel: !0
348
542
  });
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),
543
+ return (u, r) => (f(), g(c(pe), _(u.$attrs, {
544
+ modelValue: c(l),
545
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => T(l) ? l.value = d : null),
352
546
  name: e.name,
353
547
  color: e.color,
354
548
  density: e.density,
@@ -364,14 +558,14 @@ const G = /* @__PURE__ */ p({
364
558
  min: e.min,
365
559
  precision: e.precision,
366
560
  inset: e.inset,
367
- "error-messages": o(l)
561
+ "error-messages": c(a)
368
562
  }), null, 16, ["modelValue", "name", "color", "density", "rounded", "variant", "control-variant", "hide-details", "placeholder", "label", "prefix", "disabled", "readonly", "min", "precision", "inset", "error-messages"]));
369
563
  }
370
- }), ae = { key: 0 }, le = { key: 1 }, ne = /* @__PURE__ */ p({
564
+ }), Re = { key: 0 }, Ae = { key: 1 }, Ne = /* @__PURE__ */ k({
371
565
  name: "FSwitch",
372
566
  inheritAttrs: !1,
373
567
  __name: "FSwitch",
374
- props: /* @__PURE__ */ P({
568
+ props: /* @__PURE__ */ L({
375
569
  color: { default: "secondary" },
376
570
  density: { default: "comfortable" },
377
571
  hideDetails: { type: [Boolean, String], default: "auto" },
@@ -383,38 +577,39 @@ const G = /* @__PURE__ */ p({
383
577
  }),
384
578
  emits: ["update:modelValue"],
385
579
  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),
580
+ const e = t, n = X(t, "modelValue");
581
+ return (a, l) => (f(), g(c(ye), _(a.$attrs, {
582
+ modelValue: n.value,
583
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => n.value = u),
390
584
  color: e.color,
391
585
  "hide-details": e.hideDetails,
392
586
  density: e.density
393
- }), B({ _: 2 }, [
587
+ }), I({ _: 2 }, [
394
588
  e.labelTrue || e.labelFalse ? {
395
589
  name: "label",
396
- fn: $(() => [
397
- s.value ? (m(), A("span", ae, w(e.labelTrue), 1)) : (m(), A("span", le, w(e.labelFalse), 1))
590
+ fn: y(() => [
591
+ n.value ? (f(), N("span", Re, V(e.labelTrue), 1)) : (f(), N("span", Ae, V(e.labelFalse), 1))
398
592
  ]),
399
593
  key: "0"
400
594
  } : void 0
401
595
  ]), 1040, ["modelValue", "color", "hide-details", "density"]));
402
596
  }
403
- }), ue = {
597
+ }), Xe = {
404
598
  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);
599
+ t.component("FButton", ge), t.component("FTextField", be), t.component("FDataTable", Be), t.component("FTextarea", $e), t.component("FAutocomplete", Se), t.component("FCheckbox", Ce), t.component("FCurrencyField", Me), t.component("FSelect", we), t.component("FNumberField", xe), t.component("FSwitch", Ne);
406
600
  }
407
601
  };
408
602
  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
603
+ Se as FAutocomplete,
604
+ ge as FButton,
605
+ Ce as FCheckbox,
606
+ Me as FCurrencyField,
607
+ Be as FDataTable,
608
+ _e as FDataTableHeaderType,
609
+ xe as FNumberField,
610
+ we as FSelect,
611
+ Ne as FSwitch,
612
+ be as FTextField,
613
+ $e as FTextarea,
614
+ Xe as default
420
615
  };
@@ -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(c,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):(c=typeof globalThis<"u"?globalThis:c||self,e(c.FinsoVueComponents={},c.Vue,c.VuetifyComponents,c.MaskaVue,c.VeeValidate))})(this,(function(c,e,k,U,F){"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,n)=>{const l=e.resolveComponent("v-btn");return e.openBlock(),e.createBlock(l,{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:n,value:l}=F.useField(()=>t.name,a,{initialValue:t.modelValue,syncVModel:!0});return(u,d)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(k.VTextField),e.mergeProps(u.$attrs,{modelValue:e.unref(l),"onUpdate:modelValue":d[0]||(d[0]=i=>e.isRef(l)?l.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(n),"append-inner-icon":t.appendInnerIcon,"onClick:appendInner":d[1]||(d[1]=i=>u.$emit("clickAppendInner"))}),e.createSlots({_:2},[e.renderList(u.$slots,(i,p)=>({name:p,fn:e.withCtx(m=>[e.renderSlot(u.$slots,p,e.normalizeProps(e.guardReactiveProps(m??{})))])}))]),1040,["modelValue","name","color","density","rounded","variant","clearable","hide-details","error-messages","append-inner-icon"])),[[e.unref(U.vMaska),t.mask]])}}),z={key:1},j={key:4},O={class:"f-data-table__actions"},M=((o,t)=>{const a=o.__vccOpts||o;for(const[n,l]of t)a[n]=l;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,n=t,l=e.useModel(o,"page"),u=e.useModel(o,"itemsPerPage"),d=e.useModel(o,"sortBy"),i=e.ref(!1),p=e.ref(null);function m(s,f){return f.split(".").reduce((B,w)=>B==null?void 0:B[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 B=a.items.length*52+56;return Math.min(B,a.maxHeight)}),y=e.computed(()=>!a.canEditRecord&&!a.canReadRecord?{}:{"click:row":(s,{item:f})=>{n("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 q(s){a.showDeleteConfirm?(p.value=s,i.value=!0):n("delete-record",s)}function G(){n("delete-record",p.value),i.value=!1,p.value=null}return(s,f)=>{const B=e.resolveComponent("v-img"),w=e.resolveComponent("v-avatar"),Y=e.resolveComponent("v-chip"),W=e.resolveComponent("v-icon"),S=e.resolveComponent("v-btn"),J=e.resolveComponent("v-card-title"),K=e.resolveComponent("v-card-text"),Q=e.resolveComponent("v-spacer"),Z=e.resolveComponent("v-card-actions"),v=e.resolveComponent("v-card"),ee=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:l.value,"onUpdate:page":f[0]||(f[0]=r=>l.value=r),"items-per-page":u.value,"onUpdate:itemsPerPage":f[1]||(f[1]=r=>u.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:m(g,r.key)},()=>[r.type==="image"?(e.openBlock(),e.createBlock(w,{key:0,rounded:"lg",variant:"elevated"},{default:e.withCtx(()=>[e.createVNode(B,{src:m(g,r.key),class:"f-data-table__logo"},null,8,["src"])]),_:2},1024)):r.type==="money"?(e.openBlock(),e.createElementBlock("span",z,e.toDisplayString(b(m(g,r.key))),1)):r.type==="status"?(e.openBlock(),e.createBlock(Y,{key:2,color:m(g,r.key)?"green-darken-1":"red-darken-2",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m(g,r.key)?o.labelActive:o.labelPassive),1)]),_:2},1032,["color"])):r.type==="boolean"?(e.openBlock(),e.createBlock(W,{key:3,color:m(g,r.key)?"green-darken-1":"red-darken-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m(g,r.key)?"mdi-check":"mdi-close"),1)]),_:2},1032,["color"])):r.type==="gsmNo"?(e.openBlock(),e.createElementBlock("span",j,e.toDisplayString(C(m(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",O,[o.canEditRecord||o.canReadRecord?(e.openBlock(),e.createBlock(S,{key:0,icon:"mdi-pencil",variant:"text",size:"small",onClick:e.withModifiers(g=>n("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=>q(r),["stop"])},null,8,["onClick"])):e.createCommentVNode("",!0)])],!0)]),key:"0"}:void 0,e.renderList(s.$slots,(r,g)=>({name:g,fn:e.withCtx(te=>[e.renderSlot(s.$slots,g,e.normalizeProps(e.guardReactiveProps(te??{})),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(ee,{modelValue:i.value,"onUpdate:modelValue":f[4]||(f[4]=r=>i.value=r),"max-width":"400"},{default:e.withCtx(()=>[e.createVNode(v,null,{default:e.withCtx(()=>[e.createVNode(J,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.labelDeleteTitle),1)]),_:1}),e.createVNode(K,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.deleteMessageFormatter&&p.value?o.deleteMessageFormatter(p.value):o.labelDeleteMessage),1)]),_:1}),e.createVNode(Z,null,{default:e.withCtx(()=>[e.createVNode(Q),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:G},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.labelDeleteConfirm),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-ef0a08d5"]]);var $=(o=>(o.IMAGE="image",o.MONEY="money",o.STATUS="status",o.BOOLEAN="boolean",o.GSM_NO="gsmNo",o))($||{});const N=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:n,value:l}=F.useField(()=>t.name,a,{initialValue:t.modelValue,syncVModel:!0});return(u,d)=>(e.openBlock(),e.createBlock(e.unref(k.VTextarea),e.mergeProps(u.$attrs,{modelValue:e.unref(l),"onUpdate:modelValue":d[0]||(d[0]=i=>e.isRef(l)?l.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(n)}),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,n=o,l=e.computed(()=>n.rules),{errorMessage:u,value:d}=F.useField(()=>n.name,l,{initialValue:n.modelValue,syncVModel:!0});function i(p){a("change",p)}return(p,m)=>(e.openBlock(),e.createBlock(e.unref(k.VAutocomplete),e.mergeProps(p.$attrs,{modelValue:e.unref(d),"onUpdate:modelValue":[m[0]||(m[0]=b=>e.isRef(d)?d.value=b:null),m[1]||(m[1]=b=>i(e.unref(d)))],name:n.name,items:n.items,rounded:n.rounded,variant:n.variant,density:n.density,color:n.color,clearable:n.clearable,"hide-details":n.hideDetails,"return-object":n.returnObject,"no-data-text":n.noDataText,"error-messages":e.unref(u),"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,n)=>(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"]))}}),R=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:n,value:l}=F.useField(()=>t.name,a,{initialValue:t.modelValue,syncVModel:!0}),u=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)?"":u.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 m=e.ref(!1);function b(y){const h=y.target;d.value=h.value,l.value=p(h.value)}function C(){m.value=!1,d.value=i(l.value)}function D(y){m.value=!0;const h=y.target,V=l.value;V!=null?d.value=V.toFixed(t.precision).replace(".",","):d.value="",setTimeout(()=>h.select(),0)}return e.watch(()=>t.modelValue,y=>{l.value=y,m.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(n),inputmode:"decimal",onInput:b,onBlur:C,onFocus:D}),null,16,["model-value","name","label","readonly","hide-details","rounded","variant","density","color","error-messages"]))}}),A=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:n,value:l}=F.useField(()=>t.name,a,{initialValue:t.modelValue,syncVModel:!0});return(u,d)=>(e.openBlock(),e.createBlock(e.unref(k.VSelect),e.mergeProps(u.$attrs,{modelValue:e.unref(l),"onUpdate:modelValue":d[0]||(d[0]=i=>e.isRef(l)?l.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(n)}),e.createSlots({_:2},[e.renderList(u.$slots,(i,p)=>({name:p,fn:e.withCtx(m=>[e.renderSlot(u.$slots,p,e.normalizeProps(e.guardReactiveProps(m??{})))])}))]),1040,["modelValue","name","items","rounded","variant","density","color","hide-details","return-object","error-messages"]))}}),I=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:n,value:l}=F.useField(()=>t.name,a,{initialValue:t.modelValue,syncVModel:!0});return(u,d)=>(e.openBlock(),e.createBlock(e.unref(k.VNumberInput),e.mergeProps(u.$attrs,{modelValue:e.unref(l),"onUpdate:modelValue":d[0]||(d[0]=i=>e.isRef(l)?l.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(n)}),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},L={key:1},E=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(n,l)=>(e.openBlock(),e.createBlock(e.unref(k.VSwitch),e.mergeProps(n.$attrs,{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=u=>a.value=u),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",L,e.toDisplayString(t.labelFalse),1))]),key:"0"}:void 0]),1040,["modelValue","color","hide-details","density"]))}}),H={install(o){o.component("FButton",_),o.component("FTextField",x),o.component("FDataTable",M),o.component("FTextarea",N),o.component("FAutocomplete",P),o.component("FCheckbox",T),o.component("FCurrencyField",R),o.component("FSelect",A),o.component("FNumberField",I),o.component("FSwitch",E)}};c.FAutocomplete=P,c.FButton=_,c.FCheckbox=T,c.FCurrencyField=R,c.FDataTable=M,c.FDataTableHeaderType=$,c.FNumberField=I,c.FSelect=A,c.FSwitch=E,c.FTextField=x,c.FTextarea=N,c.default=H,Object.defineProperties(c,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { Plugin } from 'vue';
2
2
  export { FButton } from './components/FButton';
3
3
  export { FTextField } from './components/FTextField';
4
- export { FDataTable } from './components/FDataTable';
4
+ export { FDataTable, FDataTableHeaderType } from './components/FDataTable';
5
5
  export { FTextarea } from './components/FTextarea';
6
6
  export { FAutocomplete } from './components/FAutocomplete';
7
7
  export { FCheckbox } 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.6",
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
+ }