finso-vue-components 0.3.0 → 0.4.1

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.
@@ -0,0 +1,39 @@
1
+ import { type GenericValidateFunction } from 'vee-validate';
2
+ export interface FNumberFieldProps {
3
+ name: string;
4
+ rounded?: string;
5
+ variant?: 'outlined' | 'plain' | 'underlined' | 'filled';
6
+ density?: 'default' | 'comfortable' | 'compact';
7
+ controlVariant?: 'default' | 'stacked' | 'split';
8
+ color?: string;
9
+ label?: string;
10
+ placeholder?: string;
11
+ prefix?: string;
12
+ hideDetails?: boolean | 'auto';
13
+ disabled?: boolean;
14
+ readonly?: boolean;
15
+ min?: number;
16
+ precision?: number;
17
+ inset?: boolean;
18
+ modelValue?: number;
19
+ rules?: string | GenericValidateFunction<any>;
20
+ }
21
+ declare const _default: import("vue").DefineComponent<FNumberFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FNumberFieldProps> & Readonly<{}>, {
22
+ color: string;
23
+ rounded: string;
24
+ density: "default" | "comfortable" | "compact";
25
+ variant: "outlined" | "plain" | "underlined" | "filled";
26
+ disabled: boolean;
27
+ readonly: boolean;
28
+ placeholder: string;
29
+ hideDetails: boolean | "auto";
30
+ modelValue: number;
31
+ rules: string | GenericValidateFunction<any>;
32
+ label: string;
33
+ prefix: string;
34
+ min: number;
35
+ precision: number;
36
+ controlVariant: "default" | "stacked" | "split";
37
+ inset: boolean;
38
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as FNumberField } from './FNumberField.vue';
2
+ export type { FNumberFieldProps } from './FNumberField.vue';
@@ -0,0 +1,23 @@
1
+ export interface FSwitchProps {
2
+ color?: string;
3
+ density?: 'default' | 'comfortable' | 'compact';
4
+ hideDetails?: boolean | 'auto';
5
+ labelTrue?: string;
6
+ labelFalse?: string;
7
+ }
8
+ type __VLS_Props = FSwitchProps;
9
+ type __VLS_PublicProps = __VLS_Props & {
10
+ modelValue?: boolean;
11
+ };
12
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ "update:modelValue": (value: boolean | undefined) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
+ "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
16
+ }>, {
17
+ color: string;
18
+ density: "default" | "comfortable" | "compact";
19
+ hideDetails: boolean | "auto";
20
+ labelTrue: string;
21
+ labelFalse: string;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as FSwitch } from './FSwitch.vue';
2
+ export type { FSwitchProps } from './FSwitch.vue';
@@ -1,8 +1,8 @@
1
- import { defineComponent as i, resolveComponent as T, openBlock as c, createBlock as m, computed as h, withDirectives as S, unref as o, mergeProps as f, isRef as b, createSlots as _, renderList as $, withCtx as A, renderSlot as C, normalizeProps as M, guardReactiveProps as k, ref as R, watch as B } from "vue";
2
- import { VTextField as D, VDataTable as w, VTextarea as I, VAutocomplete as j, VCheckbox as N, VSelect as P } from "vuetify/components";
3
- import { vMaska as z } from "maska/vue";
4
- import { useField as v } from "vee-validate";
5
- const U = /* @__PURE__ */ i({
1
+ import { defineComponent as c, resolveComponent as k, openBlock as i, createBlock as m, computed as h, withDirectives as A, unref as o, mergeProps as p, isRef as g, createSlots as D, renderList as w, withCtx as x, renderSlot as C, normalizeProps as N, guardReactiveProps as R, ref as B, watch as I, useModel as j, createElementBlock as S, toDisplayString as _, mergeModels as P } from "vue";
2
+ import { VTextField as T, VDataTable as U, VTextarea as z, VAutocomplete as O, VCheckbox as E, VSelect as L, VNumberInput as Y, VSwitch as q } from "vuetify/components";
3
+ import { vMaska as G } from "maska/vue";
4
+ import { useField as F } from "vee-validate";
5
+ const H = /* @__PURE__ */ c({
6
6
  __name: "FButton",
7
7
  props: {
8
8
  color: { default: "primary" },
@@ -10,15 +10,15 @@ const U = /* @__PURE__ */ i({
10
10
  },
11
11
  setup(t) {
12
12
  const e = t;
13
- return (s, a) => {
14
- const n = T("v-btn");
15
- return c(), m(n, {
13
+ return (r, l) => {
14
+ const a = k("v-btn");
15
+ return i(), m(a, {
16
16
  color: e.color,
17
17
  rounded: e.rounded
18
18
  }, null, 8, ["color", "rounded"]);
19
19
  };
20
20
  }
21
- }), O = /* @__PURE__ */ i({
21
+ }), J = /* @__PURE__ */ c({
22
22
  name: "FTextField",
23
23
  inheritAttrs: !1,
24
24
  __name: "FTextField",
@@ -37,13 +37,13 @@ const U = /* @__PURE__ */ i({
37
37
  },
38
38
  emits: ["clickAppendInner"],
39
39
  setup(t) {
40
- const e = t, s = h(() => e.rules), { errorMessage: a, value: n } = v(() => e.name, s, {
40
+ const e = t, r = h(() => e.rules), { errorMessage: l, value: a } = F(() => e.name, r, {
41
41
  initialValue: e.modelValue,
42
42
  syncVModel: !0
43
43
  });
44
- return (d, l) => S((c(), m(o(D), f(d.$attrs, {
45
- modelValue: o(n),
46
- "onUpdate:modelValue": l[0] || (l[0] = (u) => b(n) ? n.value = u : null),
44
+ return (d, n) => A((i(), m(o(T), p(d.$attrs, {
45
+ modelValue: o(a),
46
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => g(a) ? a.value = s : null),
47
47
  name: e.name,
48
48
  color: e.color,
49
49
  density: e.density,
@@ -51,14 +51,14 @@ const U = /* @__PURE__ */ i({
51
51
  variant: e.variant,
52
52
  clearable: e.clearable,
53
53
  "hide-details": e.hideDetails,
54
- "error-messages": o(a),
54
+ "error-messages": o(l),
55
55
  "append-inner-icon": e.appendInnerIcon,
56
- "onClick:appendInner": l[1] || (l[1] = (u) => d.$emit("clickAppendInner"))
56
+ "onClick:appendInner": n[1] || (n[1] = (s) => d.$emit("clickAppendInner"))
57
57
  }), null, 16, ["modelValue", "name", "color", "density", "rounded", "variant", "clearable", "hide-details", "error-messages", "append-inner-icon"])), [
58
- [o(z), e.mask]
58
+ [o(G), e.mask]
59
59
  ]);
60
60
  }
61
- }), L = /* @__PURE__ */ i({
61
+ }), K = /* @__PURE__ */ c({
62
62
  name: "FDataTable",
63
63
  inheritAttrs: !1,
64
64
  __name: "FDataTable",
@@ -72,7 +72,7 @@ const U = /* @__PURE__ */ i({
72
72
  density: { default: "default" }
73
73
  },
74
74
  setup(t) {
75
- return (e, s) => (c(), m(o(w), f(e.$attrs, {
75
+ return (e, r) => (i(), m(o(U), p(e.$attrs, {
76
76
  headers: t.headers,
77
77
  items: t.items,
78
78
  loading: t.loading,
@@ -80,16 +80,16 @@ const U = /* @__PURE__ */ i({
80
80
  "items-per-page": t.itemsPerPage,
81
81
  hover: t.hover,
82
82
  density: t.density
83
- }), _({ _: 2 }, [
84
- $(e.$slots, (a, n) => ({
85
- name: n,
86
- fn: A((d) => [
87
- C(e.$slots, n, M(k(d ?? {})))
83
+ }), D({ _: 2 }, [
84
+ w(e.$slots, (l, a) => ({
85
+ name: a,
86
+ fn: x((d) => [
87
+ C(e.$slots, a, N(R(d ?? {})))
88
88
  ])
89
89
  }))
90
90
  ]), 1040, ["headers", "items", "loading", "search", "items-per-page", "hover", "density"]));
91
91
  }
92
- }), Y = /* @__PURE__ */ i({
92
+ }), Q = /* @__PURE__ */ c({
93
93
  name: "FTextarea",
94
94
  inheritAttrs: !1,
95
95
  __name: "FTextarea",
@@ -107,13 +107,13 @@ const U = /* @__PURE__ */ i({
107
107
  rules: { type: [String, Function], default: "" }
108
108
  },
109
109
  setup(t) {
110
- const e = t, s = h(() => e.rules), { errorMessage: a, value: n } = v(() => e.name, s, {
110
+ const e = t, r = h(() => e.rules), { errorMessage: l, value: a } = F(() => e.name, r, {
111
111
  initialValue: e.modelValue,
112
112
  syncVModel: !0
113
113
  });
114
- return (d, l) => (c(), m(o(I), f(d.$attrs, {
115
- modelValue: o(n),
116
- "onUpdate:modelValue": l[0] || (l[0] = (u) => b(n) ? n.value = u : null),
114
+ return (d, n) => (i(), m(o(z), p(d.$attrs, {
115
+ modelValue: o(a),
116
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => g(a) ? a.value = s : null),
117
117
  name: e.name,
118
118
  rounded: e.rounded,
119
119
  variant: e.variant,
@@ -123,10 +123,10 @@ const U = /* @__PURE__ */ i({
123
123
  label: e.label,
124
124
  "hide-details": e.hideDetails,
125
125
  "no-resize": e.noResize,
126
- "error-messages": o(a)
126
+ "error-messages": o(l)
127
127
  }), null, 16, ["modelValue", "name", "rounded", "variant", "rows", "density", "color", "label", "hide-details", "no-resize", "error-messages"]));
128
128
  }
129
- }), q = /* @__PURE__ */ i({
129
+ }), W = /* @__PURE__ */ c({
130
130
  name: "FAutocomplete",
131
131
  inheritAttrs: !1,
132
132
  __name: "FAutocomplete",
@@ -146,33 +146,33 @@ const U = /* @__PURE__ */ i({
146
146
  },
147
147
  emits: ["change"],
148
148
  setup(t, { emit: e }) {
149
- const s = e, a = t, n = h(() => a.rules), { errorMessage: d, value: l } = v(() => a.name, n, {
150
- initialValue: a.modelValue,
149
+ const r = e, l = t, a = h(() => l.rules), { errorMessage: d, value: n } = F(() => l.name, a, {
150
+ initialValue: l.modelValue,
151
151
  syncVModel: !0
152
152
  });
153
- function u(g) {
154
- s("change", g);
153
+ function s(v) {
154
+ r("change", v);
155
155
  }
156
- return (g, y) => (c(), m(o(j), f(g.$attrs, {
157
- modelValue: o(l),
156
+ return (v, f) => (i(), m(o(O), p(v.$attrs, {
157
+ modelValue: o(n),
158
158
  "onUpdate:modelValue": [
159
- y[0] || (y[0] = (V) => b(l) ? l.value = V : null),
160
- y[1] || (y[1] = (V) => u(o(l)))
159
+ f[0] || (f[0] = (V) => g(n) ? n.value = V : null),
160
+ f[1] || (f[1] = (V) => s(o(n)))
161
161
  ],
162
- name: a.name,
163
- items: a.items,
164
- rounded: a.rounded,
165
- variant: a.variant,
166
- density: a.density,
167
- color: a.color,
168
- clearable: a.clearable,
169
- "hide-details": a.hideDetails,
170
- "return-object": a.returnObject,
171
- "no-data-text": a.noDataText,
162
+ name: l.name,
163
+ items: l.items,
164
+ rounded: l.rounded,
165
+ variant: l.variant,
166
+ density: l.density,
167
+ color: l.color,
168
+ clearable: l.clearable,
169
+ "hide-details": l.hideDetails,
170
+ "return-object": l.returnObject,
171
+ "no-data-text": l.noDataText,
172
172
  "error-messages": o(d)
173
173
  }), null, 16, ["modelValue", "name", "items", "rounded", "variant", "density", "color", "clearable", "hide-details", "return-object", "no-data-text", "error-messages"]));
174
174
  }
175
- }), E = /* @__PURE__ */ i({
175
+ }), X = /* @__PURE__ */ c({
176
176
  name: "FCheckbox",
177
177
  inheritAttrs: !1,
178
178
  __name: "FCheckbox",
@@ -184,14 +184,14 @@ const U = /* @__PURE__ */ i({
184
184
  },
185
185
  setup(t) {
186
186
  const e = t;
187
- return (s, a) => (c(), m(o(N), f(s.$attrs, {
187
+ return (r, l) => (i(), m(o(E), p(r.$attrs, {
188
188
  color: e.color,
189
189
  "hide-details": e.hideDetails,
190
190
  indeterminate: e.indeterminate,
191
191
  density: e.density
192
192
  }), null, 16, ["color", "hide-details", "indeterminate", "density"]));
193
193
  }
194
- }), G = /* @__PURE__ */ i({
194
+ }), Z = /* @__PURE__ */ c({
195
195
  name: "FCurrencyField",
196
196
  inheritAttrs: !1,
197
197
  __name: "FCurrencyField",
@@ -211,7 +211,7 @@ const U = /* @__PURE__ */ i({
211
211
  rules: { type: [String, Function], default: "" }
212
212
  },
213
213
  setup(t) {
214
- const e = t, s = h(() => e.rules), { errorMessage: a, value: n } = v(() => e.name, s, {
214
+ const e = t, r = h(() => e.rules), { errorMessage: l, value: a } = F(() => e.name, r, {
215
215
  initialValue: e.modelValue,
216
216
  syncVModel: !0
217
217
  }), d = h(
@@ -221,31 +221,31 @@ const U = /* @__PURE__ */ i({
221
221
  minimumFractionDigits: e.precision,
222
222
  maximumFractionDigits: e.precision
223
223
  })
224
- ), l = R(u(e.modelValue));
225
- function u(r) {
226
- return r == null || isNaN(r) ? "" : d.value.format(r);
224
+ ), n = B(s(e.modelValue));
225
+ function s(u) {
226
+ return u == null || isNaN(u) ? "" : d.value.format(u);
227
227
  }
228
- function g(r) {
229
- const F = r.replace(/[^\d,.-]/g, "").replace(/\./g, "").replace(",", "."), p = parseFloat(F);
230
- return isNaN(p) ? null : Math.round(p * Math.pow(10, e.precision)) / Math.pow(10, e.precision);
228
+ function v(u) {
229
+ const y = u.replace(/[^\d,.-]/g, "").replace(/\./g, "").replace(",", "."), b = parseFloat(y);
230
+ return isNaN(b) ? null : Math.round(b * Math.pow(10, e.precision)) / Math.pow(10, e.precision);
231
231
  }
232
- function y(r) {
233
- const F = r.target, p = g(F.value);
234
- n.value = p;
232
+ const f = B(!1);
233
+ function V(u) {
234
+ const y = u.target;
235
+ n.value = y.value, a.value = v(y.value);
235
236
  }
236
- function V() {
237
- l.value = u(n.value);
237
+ function $() {
238
+ f.value = !1, n.value = s(a.value);
238
239
  }
239
- function x(r) {
240
- const F = r.target, p = n.value;
241
- p != null && (l.value = p.toFixed(e.precision).replace(".", ",")), setTimeout(() => F.select(), 0);
240
+ function M(u) {
241
+ f.value = !0;
242
+ const y = u.target, b = a.value;
243
+ b != null ? n.value = b.toFixed(e.precision).replace(".", ",") : n.value = "", setTimeout(() => y.select(), 0);
242
244
  }
243
- return B(() => e.modelValue, (r) => {
244
- n.value = r, l.value = u(r);
245
- }), B(n, (r) => {
246
- l.value = u(r);
247
- }), (r, F) => (c(), m(o(D), f(r.$attrs, {
248
- "model-value": l.value,
245
+ return I(() => e.modelValue, (u) => {
246
+ a.value = u, f.value || (n.value = s(u));
247
+ }), (u, y) => (i(), m(o(T), p(u.$attrs, {
248
+ "model-value": n.value,
249
249
  name: e.name,
250
250
  label: e.label,
251
251
  readonly: e.readonly,
@@ -254,14 +254,14 @@ const U = /* @__PURE__ */ i({
254
254
  variant: e.variant,
255
255
  density: e.density,
256
256
  color: e.color,
257
- "error-messages": o(a),
257
+ "error-messages": o(l),
258
258
  inputmode: "decimal",
259
- onInput: y,
260
- onBlur: V,
261
- onFocus: x
259
+ onInput: V,
260
+ onBlur: $,
261
+ onFocus: M
262
262
  }), null, 16, ["model-value", "name", "label", "readonly", "hide-details", "rounded", "variant", "density", "color", "error-messages"]));
263
263
  }
264
- }), H = /* @__PURE__ */ i({
264
+ }), ee = /* @__PURE__ */ c({
265
265
  name: "FSelect",
266
266
  inheritAttrs: !1,
267
267
  __name: "FSelect",
@@ -278,13 +278,13 @@ const U = /* @__PURE__ */ i({
278
278
  rules: { type: [String, Function], default: "" }
279
279
  },
280
280
  setup(t) {
281
- const e = t, s = h(() => e.rules), { errorMessage: a, value: n } = v(() => e.name, s, {
281
+ const e = t, r = h(() => e.rules), { errorMessage: l, value: a } = F(() => e.name, r, {
282
282
  initialValue: e.modelValue,
283
283
  syncVModel: !0
284
284
  });
285
- return (d, l) => (c(), m(o(P), f(d.$attrs, {
286
- modelValue: o(n),
287
- "onUpdate:modelValue": l[0] || (l[0] = (u) => b(n) ? n.value = u : null),
285
+ return (d, n) => (i(), m(o(L), p(d.$attrs, {
286
+ modelValue: o(a),
287
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => g(a) ? a.value = s : null),
288
288
  name: e.name,
289
289
  items: e.items,
290
290
  rounded: e.rounded,
@@ -293,22 +293,106 @@ const U = /* @__PURE__ */ i({
293
293
  color: e.color,
294
294
  "hide-details": e.hideDetails,
295
295
  "return-object": e.returnObject,
296
- "error-messages": o(a)
296
+ "error-messages": o(l)
297
297
  }), null, 16, ["modelValue", "name", "items", "rounded", "variant", "density", "color", "hide-details", "return-object", "error-messages"]));
298
298
  }
299
- }), X = {
299
+ }), te = /* @__PURE__ */ c({
300
+ name: "FNumberField",
301
+ inheritAttrs: !1,
302
+ __name: "FNumberField",
303
+ props: {
304
+ name: {},
305
+ rounded: { default: "lg" },
306
+ variant: { default: "outlined" },
307
+ density: { default: "compact" },
308
+ controlVariant: { default: "stacked" },
309
+ color: { default: "secondary" },
310
+ label: { default: "" },
311
+ placeholder: { default: "" },
312
+ prefix: { default: "" },
313
+ hideDetails: { type: [Boolean, String], default: "auto" },
314
+ disabled: { type: Boolean, default: !1 },
315
+ readonly: { type: Boolean, default: !1 },
316
+ min: { default: 0 },
317
+ precision: { default: 0 },
318
+ inset: { type: Boolean, default: !0 },
319
+ modelValue: { default: -1 },
320
+ rules: { type: [String, Function], default: "" }
321
+ },
322
+ setup(t) {
323
+ const e = t, r = h(() => e.rules), { errorMessage: l, value: a } = F(() => e.name, r, {
324
+ initialValue: e.modelValue,
325
+ syncVModel: !0
326
+ });
327
+ return (d, n) => (i(), m(o(Y), p(d.$attrs, {
328
+ modelValue: o(a),
329
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => g(a) ? a.value = s : null),
330
+ name: e.name,
331
+ color: e.color,
332
+ density: e.density,
333
+ rounded: e.rounded,
334
+ variant: e.variant,
335
+ "control-variant": e.controlVariant,
336
+ "hide-details": e.hideDetails,
337
+ placeholder: e.placeholder,
338
+ label: e.label,
339
+ prefix: e.prefix,
340
+ disabled: e.disabled,
341
+ readonly: e.readonly,
342
+ min: e.min,
343
+ precision: e.precision,
344
+ inset: e.inset,
345
+ "error-messages": o(l)
346
+ }), null, 16, ["modelValue", "name", "color", "density", "rounded", "variant", "control-variant", "hide-details", "placeholder", "label", "prefix", "disabled", "readonly", "min", "precision", "inset", "error-messages"]));
347
+ }
348
+ }), ae = { key: 0 }, le = { key: 1 }, ne = /* @__PURE__ */ c({
349
+ name: "FSwitch",
350
+ inheritAttrs: !1,
351
+ __name: "FSwitch",
352
+ props: /* @__PURE__ */ P({
353
+ color: { default: "secondary" },
354
+ density: { default: "comfortable" },
355
+ hideDetails: { type: [Boolean, String], default: "auto" },
356
+ labelTrue: { default: "" },
357
+ labelFalse: { default: "" }
358
+ }, {
359
+ modelValue: { type: Boolean },
360
+ modelModifiers: {}
361
+ }),
362
+ emits: ["update:modelValue"],
363
+ setup(t) {
364
+ const e = t, r = j(t, "modelValue");
365
+ return (l, a) => (i(), m(o(q), p(l.$attrs, {
366
+ modelValue: r.value,
367
+ "onUpdate:modelValue": a[0] || (a[0] = (d) => r.value = d),
368
+ color: e.color,
369
+ "hide-details": e.hideDetails,
370
+ density: e.density
371
+ }), D({ _: 2 }, [
372
+ e.labelTrue || e.labelFalse ? {
373
+ name: "label",
374
+ fn: x(() => [
375
+ r.value ? (i(), S("span", ae, _(e.labelTrue), 1)) : (i(), S("span", le, _(e.labelFalse), 1))
376
+ ]),
377
+ key: "0"
378
+ } : void 0
379
+ ]), 1040, ["modelValue", "color", "hide-details", "density"]));
380
+ }
381
+ }), ue = {
300
382
  install(t) {
301
- t.component("FButton", U), t.component("FTextField", O), t.component("FDataTable", L), t.component("FTextarea", Y), t.component("FAutocomplete", q), t.component("FCheckbox", E), t.component("FCurrencyField", G), t.component("FSelect", H);
383
+ t.component("FButton", H), t.component("FTextField", J), t.component("FDataTable", K), t.component("FTextarea", Q), t.component("FAutocomplete", W), t.component("FCheckbox", X), t.component("FCurrencyField", Z), t.component("FSelect", ee), t.component("FNumberField", te), t.component("FSwitch", ne);
302
384
  }
303
385
  };
304
386
  export {
305
- q as FAutocomplete,
306
- U as FButton,
307
- E as FCheckbox,
308
- G as FCurrencyField,
309
- L as FDataTable,
310
- H as FSelect,
311
- O as FTextField,
312
- Y as FTextarea,
313
- X as default
387
+ W as FAutocomplete,
388
+ H as FButton,
389
+ X as FCheckbox,
390
+ Z as FCurrencyField,
391
+ K as FDataTable,
392
+ te as FNumberField,
393
+ ee as FSelect,
394
+ ne as FSwitch,
395
+ J as FTextField,
396
+ Q as FTextarea,
397
+ ue as default
314
398
  };
@@ -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,c,S,y){"use strict";const g=e.defineComponent({__name:"FButton",props:{color:{default:"primary"},rounded:{type:[String,Number,Boolean],default:"lg"}},setup(n){const t=n;return(i,a)=>{const o=e.resolveComponent("v-btn");return e.openBlock(),e.createBlock(o,{color:t.color,rounded:t.rounded},null,8,["color","rounded"])}}}),V=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:a,value:o}=y.useField(()=>t.name,i,{initialValue:t.modelValue,syncVModel:!0});return(u,l)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(c.VTextField),e.mergeProps(u.$attrs,{modelValue:e.unref(o),"onUpdate:modelValue":l[0]||(l[0]=s=>e.isRef(o)?o.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(a),"append-inner-icon":t.appendInnerIcon,"onClick:appendInner":l[1]||(l[1]=s=>u.$emit("clickAppendInner"))}),null,16,["modelValue","name","color","density","rounded","variant","clearable","hide-details","error-messages","append-inner-icon"])),[[e.unref(S.vMaska),t.mask]])}}),b=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(c.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,(a,o)=>({name:o,fn:e.withCtx(u=>[e.renderSlot(t.$slots,o,e.normalizeProps(e.guardReactiveProps(u??{})))])}))]),1040,["headers","items","loading","search","items-per-page","hover","density"]))}}),B=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:a,value:o}=y.useField(()=>t.name,i,{initialValue:t.modelValue,syncVModel:!0});return(u,l)=>(e.openBlock(),e.createBlock(e.unref(c.VTextarea),e.mergeProps(u.$attrs,{modelValue:e.unref(o),"onUpdate:modelValue":l[0]||(l[0]=s=>e.isRef(o)?o.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(a)}),null,16,["modelValue","name","rounded","variant","rows","density","color","label","hide-details","no-resize","error-messages"]))}}),k=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,a=n,o=e.computed(()=>a.rules),{errorMessage:u,value:l}=y.useField(()=>a.name,o,{initialValue:a.modelValue,syncVModel:!0});function s(F){i("change",F)}return(F,f)=>(e.openBlock(),e.createBlock(e.unref(c.VAutocomplete),e.mergeProps(F.$attrs,{modelValue:e.unref(l),"onUpdate:modelValue":[f[0]||(f[0]=h=>e.isRef(l)?l.value=h:null),f[1]||(f[1]=h=>s(e.unref(l)))],name:a.name,items:a.items,rounded:a.rounded,variant:a.variant,density:a.density,color:a.color,clearable:a.clearable,"hide-details":a.hideDetails,"return-object":a.returnObject,"no-data-text":a.noDataText,"error-messages":e.unref(u)}),null,16,["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(n){const t=n;return(i,a)=>(e.openBlock(),e.createBlock(e.unref(c.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"]))}}),C=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:a,value:o}=y.useField(()=>t.name,i,{initialValue:t.modelValue,syncVModel:!0}),u=e.computed(()=>new Intl.NumberFormat(t.locale,{style:"currency",currency:t.currency,minimumFractionDigits:t.precision,maximumFractionDigits:t.precision})),l=e.ref(s(t.modelValue));function s(d){return d==null||isNaN(d)?"":u.value.format(d)}function F(d){const p=d.replace(/[^\d,.-]/g,"").replace(/\./g,"").replace(",","."),m=parseFloat(p);return isNaN(m)?null:Math.round(m*Math.pow(10,t.precision))/Math.pow(10,t.precision)}function f(d){const p=d.target,m=F(p.value);o.value=m}function h(){l.value=s(o.value)}function $(d){const p=d.target,m=o.value;m!=null&&(l.value=m.toFixed(t.precision).replace(".",",")),setTimeout(()=>p.select(),0)}return e.watch(()=>t.modelValue,d=>{o.value=d,l.value=s(d)}),e.watch(o,d=>{l.value=s(d)}),(d,p)=>(e.openBlock(),e.createBlock(e.unref(c.VTextField),e.mergeProps(d.$attrs,{"model-value":l.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(a),inputmode:"decimal",onInput:f,onBlur:h,onFocus:$}),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:a,value:o}=y.useField(()=>t.name,i,{initialValue:t.modelValue,syncVModel:!0});return(u,l)=>(e.openBlock(),e.createBlock(e.unref(c.VSelect),e.mergeProps(u.$attrs,{modelValue:e.unref(o),"onUpdate:modelValue":l[0]||(l[0]=s=>e.isRef(o)?o.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(a)}),null,16,["modelValue","name","items","rounded","variant","density","color","hide-details","return-object","error-messages"]))}}),_={install(n){n.component("FButton",g),n.component("FTextField",V),n.component("FDataTable",b),n.component("FTextarea",B),n.component("FAutocomplete",k),n.component("FCheckbox",T),n.component("FCurrencyField",C),n.component("FSelect",D)}};r.FAutocomplete=k,r.FButton=g,r.FCheckbox=T,r.FCurrencyField=C,r.FDataTable=b,r.FSelect=D,r.FTextField=V,r.FTextarea=B,r.default=_,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
1
+ (function(r,t){typeof exports=="object"&&typeof module<"u"?t(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"],t):(r=typeof globalThis<"u"?globalThis:r||self,t(r.FinsoVueComponents={},r.Vue,r.VuetifyComponents,r.MaskaVue,r.VeeValidate))})(this,(function(r,t,c,$,p){"use strict";const g=t.defineComponent({__name:"FButton",props:{color:{default:"primary"},rounded:{type:[String,Number,Boolean],default:"lg"}},setup(n){const e=n;return(d,l)=>{const a=t.resolveComponent("v-btn");return t.openBlock(),t.createBlock(a,{color:e.color,rounded:e.rounded},null,8,["color","rounded"])}}}),V=t.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 e=n,d=t.computed(()=>e.rules),{errorMessage:l,value:a}=p.useField(()=>e.name,d,{initialValue:e.modelValue,syncVModel:!0});return(i,o)=>t.withDirectives((t.openBlock(),t.createBlock(t.unref(c.VTextField),t.mergeProps(i.$attrs,{modelValue:t.unref(a),"onUpdate:modelValue":o[0]||(o[0]=s=>t.isRef(a)?a.value=s:null),name:e.name,color:e.color,density:e.density,rounded:e.rounded,variant:e.variant,clearable:e.clearable,"hide-details":e.hideDetails,"error-messages":t.unref(l),"append-inner-icon":e.appendInnerIcon,"onClick:appendInner":o[1]||(o[1]=s=>i.$emit("clickAppendInner"))}),null,16,["modelValue","name","color","density","rounded","variant","clearable","hide-details","error-messages","append-inner-icon"])),[[t.unref($.vMaska),e.mask]])}}),b=t.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(e,d)=>(t.openBlock(),t.createBlock(t.unref(c.VDataTable),t.mergeProps(e.$attrs,{headers:n.headers,items:n.items,loading:n.loading,search:n.search,"items-per-page":n.itemsPerPage,hover:n.hover,density:n.density}),t.createSlots({_:2},[t.renderList(e.$slots,(l,a)=>({name:a,fn:t.withCtx(i=>[t.renderSlot(e.$slots,a,t.normalizeProps(t.guardReactiveProps(i??{})))])}))]),1040,["headers","items","loading","search","items-per-page","hover","density"]))}}),B=t.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 e=n,d=t.computed(()=>e.rules),{errorMessage:l,value:a}=p.useField(()=>e.name,d,{initialValue:e.modelValue,syncVModel:!0});return(i,o)=>(t.openBlock(),t.createBlock(t.unref(c.VTextarea),t.mergeProps(i.$attrs,{modelValue:t.unref(a),"onUpdate:modelValue":o[0]||(o[0]=s=>t.isRef(a)?a.value=s:null),name:e.name,rounded:e.rounded,variant:e.variant,rows:e.rows,density:e.density,color:e.color,label:e.label,"hide-details":e.hideDetails,"no-resize":e.noResize,"error-messages":t.unref(l)}),null,16,["modelValue","name","rounded","variant","rows","density","color","label","hide-details","no-resize","error-messages"]))}}),k=t.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:e}){const d=e,l=n,a=t.computed(()=>l.rules),{errorMessage:i,value:o}=p.useField(()=>l.name,a,{initialValue:l.modelValue,syncVModel:!0});function s(y){d("change",y)}return(y,m)=>(t.openBlock(),t.createBlock(t.unref(c.VAutocomplete),t.mergeProps(y.$attrs,{modelValue:t.unref(o),"onUpdate:modelValue":[m[0]||(m[0]=h=>t.isRef(o)?o.value=h:null),m[1]||(m[1]=h=>s(t.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":t.unref(i)}),null,16,["modelValue","name","items","rounded","variant","density","color","clearable","hide-details","return-object","no-data-text","error-messages"]))}}),S=t.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 e=n;return(d,l)=>(t.openBlock(),t.createBlock(t.unref(c.VCheckbox),t.mergeProps(d.$attrs,{color:e.color,"hide-details":e.hideDetails,indeterminate:e.indeterminate,density:e.density}),null,16,["color","hide-details","indeterminate","density"]))}}),_=t.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 e=n,d=t.computed(()=>e.rules),{errorMessage:l,value:a}=p.useField(()=>e.name,d,{initialValue:e.modelValue,syncVModel:!0}),i=t.computed(()=>new Intl.NumberFormat(e.locale,{style:"currency",currency:e.currency,minimumFractionDigits:e.precision,maximumFractionDigits:e.precision})),o=t.ref(s(e.modelValue));function s(u){return u==null||isNaN(u)?"":i.value.format(u)}function y(u){const f=u.replace(/[^\d,.-]/g,"").replace(/\./g,"").replace(",","."),F=parseFloat(f);return isNaN(F)?null:Math.round(F*Math.pow(10,e.precision))/Math.pow(10,e.precision)}const m=t.ref(!1);function h(u){const f=u.target;o.value=f.value,a.value=y(f.value)}function A(){m.value=!1,o.value=s(a.value)}function P(u){m.value=!0;const f=u.target,F=a.value;F!=null?o.value=F.toFixed(e.precision).replace(".",","):o.value="",setTimeout(()=>f.select(),0)}return t.watch(()=>e.modelValue,u=>{a.value=u,m.value||(o.value=s(u))}),(u,f)=>(t.openBlock(),t.createBlock(t.unref(c.VTextField),t.mergeProps(u.$attrs,{"model-value":o.value,name:e.name,label:e.label,readonly:e.readonly,"hide-details":e.hideDetails,rounded:e.rounded,variant:e.variant,density:e.density,color:e.color,"error-messages":t.unref(l),inputmode:"decimal",onInput:h,onBlur:A,onFocus:P}),null,16,["model-value","name","label","readonly","hide-details","rounded","variant","density","color","error-messages"]))}}),D=t.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 e=n,d=t.computed(()=>e.rules),{errorMessage:l,value:a}=p.useField(()=>e.name,d,{initialValue:e.modelValue,syncVModel:!0});return(i,o)=>(t.openBlock(),t.createBlock(t.unref(c.VSelect),t.mergeProps(i.$attrs,{modelValue:t.unref(a),"onUpdate:modelValue":o[0]||(o[0]=s=>t.isRef(a)?a.value=s:null),name:e.name,items:e.items,rounded:e.rounded,variant:e.variant,density:e.density,color:e.color,"hide-details":e.hideDetails,"return-object":e.returnObject,"error-messages":t.unref(l)}),null,16,["modelValue","name","items","rounded","variant","density","color","hide-details","return-object","error-messages"]))}}),T=t.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 e=n,d=t.computed(()=>e.rules),{errorMessage:l,value:a}=p.useField(()=>e.name,d,{initialValue:e.modelValue,syncVModel:!0});return(i,o)=>(t.openBlock(),t.createBlock(t.unref(c.VNumberInput),t.mergeProps(i.$attrs,{modelValue:t.unref(a),"onUpdate:modelValue":o[0]||(o[0]=s=>t.isRef(a)?a.value=s:null),name:e.name,color:e.color,density:e.density,rounded:e.rounded,variant:e.variant,"control-variant":e.controlVariant,"hide-details":e.hideDetails,placeholder:e.placeholder,label:e.label,prefix:e.prefix,disabled:e.disabled,readonly:e.readonly,min:e.min,precision:e.precision,inset:e.inset,"error-messages":t.unref(l)}),null,16,["modelValue","name","color","density","rounded","variant","control-variant","hide-details","placeholder","label","prefix","disabled","readonly","min","precision","inset","error-messages"]))}}),M={key:0},x={key:1},C=t.defineComponent({name:"FSwitch",inheritAttrs:!1,__name:"FSwitch",props:t.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 e=n,d=t.useModel(n,"modelValue");return(l,a)=>(t.openBlock(),t.createBlock(t.unref(c.VSwitch),t.mergeProps(l.$attrs,{modelValue:d.value,"onUpdate:modelValue":a[0]||(a[0]=i=>d.value=i),color:e.color,"hide-details":e.hideDetails,density:e.density}),t.createSlots({_:2},[e.labelTrue||e.labelFalse?{name:"label",fn:t.withCtx(()=>[d.value?(t.openBlock(),t.createElementBlock("span",M,t.toDisplayString(e.labelTrue),1)):(t.openBlock(),t.createElementBlock("span",x,t.toDisplayString(e.labelFalse),1))]),key:"0"}:void 0]),1040,["modelValue","color","hide-details","density"]))}}),w={install(n){n.component("FButton",g),n.component("FTextField",V),n.component("FDataTable",b),n.component("FTextarea",B),n.component("FAutocomplete",k),n.component("FCheckbox",S),n.component("FCurrencyField",_),n.component("FSelect",D),n.component("FNumberField",T),n.component("FSwitch",C)}};r.FAutocomplete=k,r.FButton=g,r.FCheckbox=S,r.FCurrencyField=_,r.FDataTable=b,r.FNumberField=T,r.FSelect=D,r.FSwitch=C,r.FTextField=V,r.FTextarea=B,r.default=w,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/dist/index.d.ts CHANGED
@@ -7,6 +7,8 @@ export { FAutocomplete } from './components/FAutocomplete';
7
7
  export { FCheckbox } from './components/FCheckbox';
8
8
  export { FCurrencyField } from './components/FCurrencyField';
9
9
  export { FSelect } from './components/FSelect';
10
+ export { FNumberField } from './components/FNumberField';
11
+ export { FSwitch } from './components/FSwitch';
10
12
  export type { FButtonProps } from './components/FButton';
11
13
  export type { FTextFieldProps } from './components/FTextField';
12
14
  export type { FDataTableProps, FDataTableHeader } from './components/FDataTable';
@@ -15,6 +17,8 @@ export type { FAutocompleteProps } from './components/FAutocomplete';
15
17
  export type { FCheckboxProps } from './components/FCheckbox';
16
18
  export type { FCurrencyFieldProps } from './components/FCurrencyField';
17
19
  export type { FSelectProps } from './components/FSelect';
20
+ export type { FNumberFieldProps } from './components/FNumberField';
21
+ export type { FSwitchProps } from './components/FSwitch';
18
22
  import { FButton } from './components/FButton';
19
23
  import { FTextField } from './components/FTextField';
20
24
  import { FDataTable } from './components/FDataTable';
@@ -23,6 +27,8 @@ import { FAutocomplete } from './components/FAutocomplete';
23
27
  import { FCheckbox } from './components/FCheckbox';
24
28
  import { FCurrencyField } from './components/FCurrencyField';
25
29
  import { FSelect } from './components/FSelect';
30
+ import { FNumberField } from './components/FNumberField';
31
+ import { FSwitch } from './components/FSwitch';
26
32
  declare const FinsoComponents: Plugin;
27
33
  export default FinsoComponents;
28
34
  declare module 'vue' {
@@ -35,5 +41,7 @@ declare module 'vue' {
35
41
  FCheckbox: typeof FCheckbox;
36
42
  FCurrencyField: typeof FCurrencyField;
37
43
  FSelect: typeof FSelect;
44
+ FNumberField: typeof FNumberField;
45
+ FSwitch: typeof FSwitch;
38
46
  }
39
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "finso-vue-components",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "Finso Vue 3 + Vuetify UI Component Library",
5
5
  "type": "module",
6
6
  "main": "./dist/finso-vue-components.umd.cjs",