vlite3 0.5.3 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/README.md +4 -0
  2. package/components/Barcode/Barcode.vue.js +1 -1
  3. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  4. package/components/ColorPicker/ColorPicker.vue.js +11 -10
  5. package/components/DataTable/DataTableToolbar.vue.js +3 -2
  6. package/components/DatePicker.vue.js +3 -2
  7. package/components/DateRangePicker.vue.js +3 -2
  8. package/components/Dropdown/DropdownMenu.vue.js +3 -2
  9. package/components/ExportData/ExportData.vue.js +42 -42
  10. package/components/Form/FormField.vue.js +13 -10
  11. package/components/IconPicker.vue.js +10 -9
  12. package/components/ImportData/ImportStep1.vue.js +1 -1
  13. package/components/ImportData/ImportStep2.vue.js +3 -2
  14. package/components/Input.vue.js +119 -114
  15. package/components/Input.vue3.js +5 -0
  16. package/components/PermissionMatrix/PermissionEditor.vue.js +3 -2
  17. package/components/PermissionMatrix/PermissionMatrix.vue2.js +35 -34
  18. package/components/QRCode/QRCode.vue.js +4 -4
  19. package/components/Screen/Screen.vue.js +3 -2
  20. package/components/Screen/ScreenFilter.vue.js +4 -3
  21. package/components/SidebarMenu/SidebarMenuItem.vue.js +3 -2
  22. package/components/Workbook/Sheet.vue.js +3 -2
  23. package/index.js +241 -240
  24. package/package.json +1 -1
  25. package/style.css +1 -1
  26. package/_virtual/Barcode.js +0 -4
  27. package/_virtual/CODE128.js +0 -4
  28. package/_virtual/CODE128A.js +0 -4
  29. package/_virtual/CODE128B.js +0 -4
  30. package/_virtual/CODE128C.js +0 -4
  31. package/_virtual/CODE128_AUTO.js +0 -4
  32. package/_virtual/CODE93.js +0 -4
  33. package/_virtual/CODE93FullASCII.js +0 -4
  34. package/_virtual/EAN.js +0 -4
  35. package/_virtual/EAN13.js +0 -4
  36. package/_virtual/EAN2.js +0 -4
  37. package/_virtual/EAN5.js +0 -4
  38. package/_virtual/EAN8.js +0 -4
  39. package/_virtual/ErrorHandler.js +0 -4
  40. package/_virtual/FileSaver.min.js +0 -5
  41. package/_virtual/FileSaver.min2.js +0 -4
  42. package/_virtual/ITF.js +0 -4
  43. package/_virtual/ITF14.js +0 -4
  44. package/_virtual/JsBarcode.js +0 -7
  45. package/_virtual/MSI.js +0 -4
  46. package/_virtual/MSI10.js +0 -4
  47. package/_virtual/MSI1010.js +0 -4
  48. package/_virtual/MSI11.js +0 -4
  49. package/_virtual/MSI1110.js +0 -4
  50. package/_virtual/UPC.js +0 -4
  51. package/_virtual/UPCE.js +0 -4
  52. package/_virtual/_commonjsHelpers.js +0 -8
  53. package/_virtual/alignment-pattern.js +0 -4
  54. package/_virtual/auto.js +0 -4
  55. package/_virtual/browser.js +0 -7
  56. package/_virtual/browser2.js +0 -4
  57. package/_virtual/canvas.js +0 -4
  58. package/_virtual/canvas2.js +0 -4
  59. package/_virtual/checksums.js +0 -4
  60. package/_virtual/constants.js +0 -4
  61. package/_virtual/constants2.js +0 -4
  62. package/_virtual/constants3.js +0 -4
  63. package/_virtual/constants4.js +0 -4
  64. package/_virtual/defaults.js +0 -4
  65. package/_virtual/dijkstra.js +0 -4
  66. package/_virtual/encoder.js +0 -4
  67. package/_virtual/error-correction-code.js +0 -4
  68. package/_virtual/error-correction-level.js +0 -4
  69. package/_virtual/exceptions.js +0 -4
  70. package/_virtual/finder-pattern.js +0 -4
  71. package/_virtual/fixOptions.js +0 -4
  72. package/_virtual/format-info.js +0 -4
  73. package/_virtual/galois-field.js +0 -4
  74. package/_virtual/getOptionsFromElement.js +0 -4
  75. package/_virtual/getRenderProperties.js +0 -4
  76. package/_virtual/index.js +0 -4
  77. package/_virtual/index10.js +0 -4
  78. package/_virtual/index11.js +0 -4
  79. package/_virtual/index2.js +0 -4
  80. package/_virtual/index3.js +0 -4
  81. package/_virtual/index4.js +0 -4
  82. package/_virtual/index5.js +0 -4
  83. package/_virtual/index6.js +0 -4
  84. package/_virtual/index7.js +0 -4
  85. package/_virtual/index8.js +0 -4
  86. package/_virtual/index9.js +0 -4
  87. package/_virtual/linearizeEncodings.js +0 -4
  88. package/_virtual/mask-pattern.js +0 -4
  89. package/_virtual/merge.js +0 -4
  90. package/_virtual/mode.js +0 -4
  91. package/_virtual/object.js +0 -4
  92. package/_virtual/optionsFromStrings.js +0 -4
  93. package/_virtual/papaparse.min.js +0 -7
  94. package/_virtual/papaparse.min2.js +0 -4
  95. package/_virtual/polynomial.js +0 -4
  96. package/_virtual/qrcode.js +0 -4
  97. package/_virtual/regex.js +0 -4
  98. package/_virtual/segments.js +0 -4
  99. package/_virtual/shared.js +0 -4
  100. package/_virtual/svg-tag.js +0 -4
  101. package/_virtual/svg.js +0 -4
  102. package/_virtual/utils.js +0 -4
  103. package/_virtual/utils2.js +0 -4
  104. package/_virtual/version-check.js +0 -4
  105. package/_virtual/version.js +0 -4
  106. package/components/Input.vue2.js +0 -4
  107. /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
package/README.md CHANGED
@@ -14,6 +14,10 @@ yarn add vlite3
14
14
 
15
15
  ```
16
16
 
17
+ ## Demo
18
+
19
+ [Live Demo](https://vlite3.vercel.app/)
20
+
17
21
  ## 2. Tailwind CSS Setup (Tailwind v4)
18
22
 
19
23
  `vite.config.ts`
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, ref as i, onMounted as f, watch as m, openBlock as r, createElementBlock as l, toDisplayString as p, createCommentVNode as v, withDirectives as h, vShow as g } from "vue";
2
- import w from "../../_virtual/JsBarcode.js";
2
+ import w from "jsbarcode";
3
3
  import { barcodesConstants as b } from "./types.js";
4
4
  const y = { class: "inline-flex justify-center items-center max-w-full flex-col gap-2" }, x = {
5
5
  key: 0,
@@ -1,5 +1,5 @@
1
- import o from "./ColorIro.vue.js";
2
- /* empty css */
1
+ import o from "./ColorIro.vue2.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -1,11 +1,12 @@
1
- import { defineComponent as z, ref as p, watch as i, openBlock as a, createBlock as f, unref as v, withCtx as u, createElementBlock as h, createVNode as c, createCommentVNode as d, createElementVNode as $, mergeProps as w } from "vue";
1
+ import { defineComponent as z, ref as p, watch as i, openBlock as a, createBlock as f, unref as v, withCtx as u, createElementBlock as h, createVNode as c, createCommentVNode as m, createElementVNode as $, mergeProps as w } from "vue";
2
2
  import B from "../Dropdown/Dropdown.vue.js";
3
3
  import "@iconify/vue";
4
4
  import O from "../Input.vue.js";
5
+ /* empty css */
5
6
  import "../../core/config.js";
6
7
  import y from "../Button.vue.js";
7
- import E from "./ColorIro.vue.js";
8
- /* empty css */
8
+ import E from "./ColorIro.vue2.js";
9
+ /* empty css */
9
10
  import { useEyeDropper as P } from "@vueuse/core";
10
11
  const I = {
11
12
  key: 0,
@@ -13,7 +14,7 @@ const I = {
13
14
  }, N = {
14
15
  key: 0,
15
16
  class: "flex items-center gap-1.5 w-full"
16
- }, D = { class: "w-32" }, J = /* @__PURE__ */ z({
17
+ }, D = { class: "w-32" }, K = /* @__PURE__ */ z({
17
18
  __name: "ColorPicker",
18
19
  props: {
19
20
  modelValue: { default: "#000000" },
@@ -25,7 +26,7 @@ const I = {
25
26
  },
26
27
  emits: ["update:modelValue", "change"],
27
28
  setup(o, { emit: V }) {
28
- const n = o, m = V, r = p(!1), t = p(n.modelValue || "#000000"), { isSupported: b, open: g, sRGBHex: k } = P();
29
+ const n = o, d = V, r = p(!1), t = p(n.modelValue || "#000000"), { isSupported: b, open: g, sRGBHex: k } = P();
29
30
  i(k, (e) => {
30
31
  e && (t.value = e);
31
32
  });
@@ -42,7 +43,7 @@ const I = {
42
43
  e && e !== t.value && (t.value = e);
43
44
  }
44
45
  ), i(t, (e) => {
45
- /^#([0-9A-F]{3,8})$/i.test(e) && e !== n.modelValue && (m("update:modelValue", e), m("change", e));
46
+ /^#([0-9A-F]{3,8})$/i.test(e) && e !== n.modelValue && (d("update:modelValue", e), d("change", e));
46
47
  });
47
48
  const C = (e) => {
48
49
  t.value = e;
@@ -85,7 +86,7 @@ const I = {
85
86
  variant: "outline",
86
87
  size: "sm",
87
88
  class: "px-2 shrink-0"
88
- })) : d("", !0),
89
+ })) : m("", !0),
89
90
  $("div", D, [
90
91
  c(O, {
91
92
  modelValue: t.value,
@@ -97,16 +98,16 @@ const I = {
97
98
  "input-class": "font-mono text-xs uppercase "
98
99
  }, null, 8, ["modelValue"])
99
100
  ])
100
- ])) : d("", !0)
101
+ ])) : m("", !0)
101
102
  ]),
102
103
  _: 1
103
104
  }, 8, ["color", "size"])
104
- ])) : d("", !0)
105
+ ])) : m("", !0)
105
106
  ]),
106
107
  _: 1
107
108
  }, 8, ["disabled", "position"]));
108
109
  }
109
110
  });
110
111
  export {
111
- J as default
112
+ K as default
112
113
  };
@@ -1,10 +1,11 @@
1
1
  import { defineComponent as V, computed as d, openBlock as t, createElementBlock as o, normalizeClass as n, renderSlot as s, createCommentVNode as u, createElementVNode as m, createVNode as b } from "vue";
2
2
  import g from "../Input.vue.js";
3
+ /* empty css */
3
4
  import { $t as i } from "../../utils/i18n.js";
4
5
  const w = {
5
6
  key: 0,
6
7
  class: "flex items-center gap-3 mr-auto"
7
- }, $ = { class: "ml-auto" }, k = { class: "flex items-center gap-3" }, T = /* @__PURE__ */ V({
8
+ }, $ = { class: "ml-auto" }, k = { class: "flex items-center gap-3" }, _ = /* @__PURE__ */ V({
8
9
  __name: "DataTableToolbar",
9
10
  props: {
10
11
  modelValue: { default: "" },
@@ -55,5 +56,5 @@ const w = {
55
56
  }
56
57
  });
57
58
  export {
58
- T as default
59
+ _ as default
59
60
  };
@@ -3,9 +3,10 @@ import b from "./Button.vue.js";
3
3
  import w from "./Dropdown/Dropdown.vue.js";
4
4
  import "@iconify/vue";
5
5
  import { $t as y } from "../utils/i18n.js";
6
+ /* empty css */
6
7
  import I, { TimePicker as z } from "v-datepicker-lite";
7
8
  import "v-datepicker-lite/style.css";
8
- const S = { class: "overflow-hidden min-w-[300px]" }, H = /* @__PURE__ */ P({
9
+ const S = { class: "overflow-hidden min-w-[300px]" }, U = /* @__PURE__ */ P({
9
10
  __name: "DatePicker",
10
11
  props: {
11
12
  placeholder: {},
@@ -128,5 +129,5 @@ const S = { class: "overflow-hidden min-w-[300px]" }, H = /* @__PURE__ */ P({
128
129
  }
129
130
  });
130
131
  export {
131
- H as default
132
+ U as default
132
133
  };
@@ -2,13 +2,14 @@ import { defineComponent as V, ref as w, watch as L, computed as u, openBlock as
2
2
  import T from "./Dropdown/Dropdown.vue.js";
3
3
  import f from "./Icon.vue.js";
4
4
  import { $t as l } from "../utils/i18n.js";
5
+ /* empty css */
5
6
  import P from "./Button.vue.js";
6
7
  import p from "v-datepicker-lite";
7
8
  import "v-datepicker-lite/style.css";
8
9
  const $ = { class: "flex items-center gap-2" }, H = { class: "flex flex-col sm:flex-row bg-background rounded-md" }, Q = {
9
10
  key: 0,
10
11
  class: "flex flex-col gap-1 sm:pr-3 py-2 sm:border-r border-border max-h-[280px]"
11
- }, j = { class: "flex flex-col sm:flex-row items-center gap-4 py-2 p-3" }, O = { class: "border border-border rounded-md overflow-hidden bg-background" }, I = { class: "flex items-center justify-center shrink-0" }, U = { class: "border border-border rounded-md overflow-hidden bg-background" }, Z = /* @__PURE__ */ V({
12
+ }, j = { class: "flex flex-col sm:flex-row items-center gap-4 py-2 p-3" }, O = { class: "border border-border rounded-md overflow-hidden bg-background" }, I = { class: "flex items-center justify-center shrink-0" }, U = { class: "border border-border rounded-md overflow-hidden bg-background" }, ee = /* @__PURE__ */ V({
12
13
  __name: "DateRangePicker",
13
14
  props: {
14
15
  modelValue: {},
@@ -227,5 +228,5 @@ const $ = { class: "flex items-center gap-2" }, H = { class: "flex flex-col sm:f
227
228
  }
228
229
  });
229
230
  export {
230
- Z as default
231
+ ee as default
231
232
  };
@@ -1,6 +1,7 @@
1
1
  import { defineComponent as Z, defineAsyncComponent as ee, ref as j, computed as h, watch as T, onMounted as te, onBeforeUnmount as le, openBlock as n, createElementBlock as c, createVNode as S, createCommentVNode as u, renderSlot as b, unref as o, normalizeStyle as se, normalizeClass as _, toDisplayString as D, createBlock as v, Fragment as E, renderList as ne, withCtx as N, createElementVNode as $, createSlots as oe, mergeProps as re, nextTick as ae } from "vue";
2
2
  import I from "../Icon.vue.js";
3
3
  import ce from "../Input.vue.js";
4
+ /* empty css */
4
5
  import de from "./DropdownItem.vue.js";
5
6
  import ie from "./DropdownBooleanItem.vue.js";
6
7
  import ue from "./DropdownGroupedLayout.vue.js";
@@ -25,7 +26,7 @@ const he = ["dir"], ve = {
25
26
  }, Se = {
26
27
  key: 3,
27
28
  class: "shrink-0"
28
- }, De = /* @__PURE__ */ Z({
29
+ }, Ee = /* @__PURE__ */ Z({
29
30
  __name: "DropdownMenu",
30
31
  props: {
31
32
  options: { default: () => [] },
@@ -245,5 +246,5 @@ const he = ["dir"], ve = {
245
246
  }
246
247
  });
247
248
  export {
248
- De as default
249
+ Ee as default
249
250
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as C, computed as k, openBlock as i, createElementBlock as g, createBlock as m, withCtx as f, createElementVNode as u, toDisplayString as y, Fragment as j, renderList as T, createVNode as F } from "vue";
2
- import { utils as v, write as N } from "../../node_modules/xlsx/xlsx.js";
3
- import A from "../../_virtual/papaparse.min.js";
4
- import { F as b } from "../../_virtual/FileSaver.min.js";
1
+ import { defineComponent as _, computed as k, openBlock as i, createElementBlock as g, createBlock as f, withCtx as v, createElementVNode as u, toDisplayString as y, Fragment as j, renderList as T, createVNode as D } from "vue";
2
+ import * as d from "xlsx";
3
+ import N from "papaparse";
4
+ import { saveAs as b } from "file-saver";
5
5
  import w from "../Button.vue.js";
6
6
  import I from "../Modal.vue.js";
7
7
  import O from "../Icon.vue.js";
8
- import { showToast as d } from "../../composables/useNotifications.js";
8
+ import { showToast as p } from "../../composables/useNotifications.js";
9
9
  import { $t as E } from "../../utils/i18n.js";
10
- const V = { class: "px-1 py-1 text-sm" }, U = { class: "font-medium mb-3 text-muted-foreground" }, M = { class: "space-y-3" }, R = /* @__PURE__ */ C({
10
+ const V = { class: "px-1 py-1 text-sm" }, U = { class: "font-medium mb-3 text-muted-foreground" }, A = { class: "space-y-3" }, H = /* @__PURE__ */ _({
11
11
  __name: "ExportData",
12
12
  props: {
13
13
  data: {},
@@ -20,101 +20,101 @@ const V = { class: "px-1 py-1 text-sm" }, U = { class: "font-medium mb-3 text-mu
20
20
  mode: { default: "frontend" },
21
21
  onExport: {}
22
22
  },
23
- setup(n, { expose: D }) {
24
- const a = n, l = (r, e, t) => {
23
+ setup(n, { expose: F }) {
24
+ const a = n, s = (r, e, t) => {
25
25
  const o = t ? E(r, t) : E(r);
26
26
  return o !== r ? o : e;
27
- }, S = (r, e) => {
27
+ }, $ = (r, e) => {
28
28
  if (!(!r || !e))
29
29
  return e.includes(".") ? e.split(".").reduce((t, o) => t?.[o], r) : r[e];
30
30
  }, h = k(() => [
31
31
  { label: "Excel (.xlsx)", value: "excel", icon: "lucide:file-spreadsheet" },
32
32
  { label: "CSV (.csv)", value: "csv", icon: "lucide:file-text" },
33
33
  { label: "JSON (.json)", value: "json", icon: "lucide:file-json" }
34
- ].filter((e) => a.formats.includes(e.value))), $ = () => a.data.map((r) => {
34
+ ].filter((e) => a.formats.includes(e.value))), B = () => a.data.map((r) => {
35
35
  const e = {};
36
36
  return a.fields.forEach((t) => {
37
- const o = S(r, t.field);
37
+ const o = $(r, t.field);
38
38
  t.format ? e[t.title] = t.format(o, r) : e[t.title] = o ?? "";
39
39
  }), e;
40
- }), p = async (r, e) => {
40
+ }), x = async (r, e) => {
41
41
  if (a.mode === "backend" && a.onExport)
42
42
  try {
43
43
  await a.onExport(r), e && e();
44
44
  return;
45
45
  } catch (t) {
46
- console.error("Backend export error:", t), d(l("vlite.exportData.error", "An error occurred while exporting data."), "error");
46
+ console.error("Backend export error:", t), p(s("vlite.exportData.error", "An error occurred while exporting data."), "error");
47
47
  return;
48
48
  }
49
49
  if (!a.data || a.data.length === 0) {
50
- d(l("vlite.exportData.noData", "No data available to export."), "warning");
50
+ p(s("vlite.exportData.noData", "No data available to export."), "warning");
51
51
  return;
52
52
  }
53
53
  try {
54
- const t = a.filename ? a.filename : `${a.title.toLowerCase().replace(/\s+/g, "-")}-${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}`, o = $();
54
+ const t = a.filename ? a.filename : `${a.title.toLowerCase().replace(/\s+/g, "-")}-${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}`, o = B();
55
55
  switch (r) {
56
56
  case "excel": {
57
- const s = v.book_new(), c = v.json_to_sheet(o);
58
- v.book_append_sheet(s, c, a.title.substring(0, 31));
59
- const x = N(s, { bookType: "xlsx", type: "array" }), _ = new Blob([x], { type: "application/octet-stream" });
60
- b.saveAs(_, `${t}.xlsx`);
57
+ const l = d.utils.book_new(), c = d.utils.json_to_sheet(o);
58
+ d.utils.book_append_sheet(l, c, a.title.substring(0, 31));
59
+ const m = d.write(l, { bookType: "xlsx", type: "array" }), C = new Blob([m], { type: "application/octet-stream" });
60
+ b(C, `${t}.xlsx`);
61
61
  break;
62
62
  }
63
63
  case "csv": {
64
- const c = A.unparse(o), x = new Blob(["\uFEFF" + c], { type: "text/csv;charset=utf-8;" });
65
- b.saveAs(x, `${t}.csv`);
64
+ const c = N.unparse(o), m = new Blob(["\uFEFF" + c], { type: "text/csv;charset=utf-8;" });
65
+ b(m, `${t}.csv`);
66
66
  break;
67
67
  }
68
68
  case "json": {
69
- const s = JSON.stringify(o, null, 2), c = new Blob([s], { type: "application/json" });
70
- b.saveAs(c, `${t}.json`);
69
+ const l = JSON.stringify(o, null, 2), c = new Blob([l], { type: "application/json" });
70
+ b(c, `${t}.json`);
71
71
  break;
72
72
  }
73
73
  }
74
- d(
75
- l("vlite.exportData.success", `Data exported successfully as ${r.toUpperCase()}`, {
74
+ p(
75
+ s("vlite.exportData.success", `Data exported successfully as ${r.toUpperCase()}`, {
76
76
  format: r.toUpperCase()
77
77
  }),
78
78
  "success"
79
79
  ), e && e();
80
80
  } catch (t) {
81
- console.error("Export error:", t), d(l("vlite.exportData.error", "An error occurred while exporting data."), "error");
81
+ console.error("Export error:", t), p(s("vlite.exportData.error", "An error occurred while exporting data."), "error");
82
82
  }
83
- }, B = k(() => l("vlite.exportData.selectFormat", "Select Export Format"));
84
- return D({
85
- exportData: p,
83
+ }, S = k(() => s("vlite.exportData.selectFormat", "Select Export Format"));
84
+ return F({
85
+ exportData: x,
86
86
  availableFormats: h
87
87
  }), (r, e) => (i(), g("div", null, [
88
- n.formats.length === 1 ? (i(), m(w, {
88
+ n.formats.length === 1 ? (i(), f(w, {
89
89
  key: 0,
90
90
  text: n.buttonText,
91
91
  icon: n.buttonIcon,
92
92
  variant: "outline",
93
- onClick: e[0] || (e[0] = (t) => p(n.formats[0]))
94
- }, null, 8, ["text", "icon"])) : (i(), m(I, {
93
+ onClick: e[0] || (e[0] = (t) => x(n.formats[0]))
94
+ }, null, 8, ["text", "icon"])) : (i(), f(I, {
95
95
  key: 1,
96
96
  title: n.title,
97
97
  "max-width": "sm:max-w-[400px]"
98
98
  }, {
99
- trigger: f(() => [
100
- F(w, {
99
+ trigger: v(() => [
100
+ D(w, {
101
101
  text: n.buttonText,
102
102
  icon: n.buttonIcon,
103
103
  variant: "outline"
104
104
  }, null, 8, ["text", "icon"])
105
105
  ]),
106
- default: f(({ close: t }) => [
106
+ default: v(({ close: t }) => [
107
107
  u("div", V, [
108
- u("h6", U, y(B.value), 1),
109
- u("div", M, [
110
- (i(!0), g(j, null, T(h.value, (o) => (i(), m(w, {
108
+ u("h6", U, y(S.value), 1),
109
+ u("div", A, [
110
+ (i(!0), g(j, null, T(h.value, (o) => (i(), f(w, {
111
111
  key: o.value,
112
112
  variant: "outline",
113
113
  class: "w-full flex items-center justify-start gap-3 h-12",
114
- onClick: (s) => p(o.value, t)
114
+ onClick: (l) => x(o.value, t)
115
115
  }, {
116
- default: f(() => [
117
- F(O, {
116
+ default: v(() => [
117
+ D(O, {
118
118
  icon: o.icon,
119
119
  class: "text-muted-foreground h-5 w-5"
120
120
  }, null, 8, ["icon"]),
@@ -131,5 +131,5 @@ const V = { class: "px-1 py-1 text-sm" }, U = { class: "font-medium mb-3 text-mu
131
131
  }
132
132
  });
133
133
  export {
134
- R as default
134
+ H as default
135
135
  };
@@ -4,6 +4,7 @@ import O from "../NumberInput.vue.js";
4
4
  import v from "../Button.vue.js";
5
5
  import { $t as T } from "../../utils/i18n.js";
6
6
  import g from "../Input.vue.js";
7
+ /* empty css */
7
8
  import j from "../Switch.vue.js";
8
9
  import D from "../CheckBox.vue.js";
9
10
  import E from "../FilePicker/FilePicker.vue.js";
@@ -14,7 +15,7 @@ import G from "../DatePicker.vue.js";
14
15
  import J from "../ColorPicker/ColorPicker.vue.js";
15
16
  import K from "../IconPicker.vue.js";
16
17
  import M from "./CustomFields.vue.js";
17
- const ue = /* @__PURE__ */ U({
18
+ const se = /* @__PURE__ */ U({
18
19
  __name: "FormField",
19
20
  props: {
20
21
  field: {},
@@ -75,13 +76,13 @@ const ue = /* @__PURE__ */ U({
75
76
  default:
76
77
  return g;
77
78
  }
78
- }), x = o(() => {
79
+ }), b = o(() => {
79
80
  const t = e.field.type, a = {
80
81
  disabled: e.disabled || e.field.disabled === !0,
81
82
  ...e?.field || {},
82
83
  ...e.field.props || {},
83
- label: e?.field?.label,
84
- labelI18n: e?.field?.labelI18n
84
+ label: "",
85
+ labelI18n: ""
85
86
  }, i = e.field.placeholderI18n ? T(e.field.placeholderI18n) : e.field.placeholder;
86
87
  return t === "text" || t === "email" || t === "password" || t === "tel" || t === "url" || t === "search" || t === "textarea" || !t ? {
87
88
  ...a,
@@ -175,6 +176,8 @@ const ue = /* @__PURE__ */ U({
175
176
  value: e.value || "lucide:smile"
176
177
  } : t === "customFields" ? {
177
178
  ...a,
179
+ label: e?.field?.label,
180
+ labelI18n: e?.field?.labelI18n,
178
181
  modelValue: Array.isArray(e.value) ? e.value : [],
179
182
  schema: e.field.props?.schema || [],
180
183
  headers: e.field.props?.headers || [],
@@ -188,7 +191,7 @@ const ue = /* @__PURE__ */ U({
188
191
  value: e.value,
189
192
  values: e.values
190
193
  } : a;
191
- }), b = o(() => {
194
+ }), x = o(() => {
192
195
  const t = e.field.type;
193
196
  return t === "text" || t === "email" || t === "password" || t === "tel" || t === "url" || t === "search" || t === "textarea" || t === "switch" || t === "check" || t === "number" || !t ? {
194
197
  "update:modelValue": w
@@ -234,9 +237,9 @@ const ue = /* @__PURE__ */ U({
234
237
  t.action && s("addonAction", t.action);
235
238
  };
236
239
  return (t, a) => P.value ? (r(), f(g, u({ key: 0 }, {
237
- ...x.value,
240
+ ...b.value,
238
241
  ...l.field?.props || {}
239
- }, S(b.value)), N({ _: 2 }, [
242
+ }, S(x.value)), N({ _: 2 }, [
240
243
  R(p)(l.field.addonLeft) ? {
241
244
  name: "addon-left",
242
245
  fn: n(() => [
@@ -307,11 +310,11 @@ const ue = /* @__PURE__ */ U({
307
310
  key: 1,
308
311
  class: ["switch", "check"].includes(l.field?.type) ? "" : "w-full"
309
312
  }, {
310
- ...x.value,
313
+ ...b.value,
311
314
  ...l.field?.props || {}
312
- }, S(b.value)), null, 16, ["class"]));
315
+ }, S(x.value)), null, 16, ["class"]));
313
316
  }
314
317
  });
315
318
  export {
316
- ue as default
319
+ se as default
317
320
  };
@@ -2,10 +2,11 @@ import { defineComponent as g, ref as v, computed as w, openBlock as k, createBl
2
2
  import $ from "./Dropdown/Dropdown.vue.js";
3
3
  import "@iconify/vue";
4
4
  import { $t as d } from "../utils/i18n.js";
5
+ /* empty css */
5
6
  import C from "./Button.vue.js";
6
7
  import I from "iconify-icon-picker";
7
8
  import "iconify-icon-picker/style.css";
8
- const z = /* @__PURE__ */ g({
9
+ const V = /* @__PURE__ */ g({
9
10
  __name: "IconPicker",
10
11
  props: {
11
12
  btnProps: {},
@@ -15,12 +16,12 @@ const z = /* @__PURE__ */ g({
15
16
  placeholderI18n: {}
16
17
  },
17
18
  emits: ["onSelect", "onTrigger", "onClose"],
18
- setup(o, { emit: u }) {
19
- const t = o, i = u, m = v(!1), l = () => {
20
- m.value = !1;
21
- }, h = (e, r) => {
19
+ setup(o, { emit: m }) {
20
+ const t = o, i = m, u = v(!1), l = () => {
21
+ u.value = !1;
22
+ }, p = (e, r) => {
22
23
  i("onSelect", e, r), l();
23
- }, p = w(() => {
24
+ }, h = w(() => {
24
25
  if (t.placeholderI18n) return d(t.placeholderI18n);
25
26
  if (t.placeholder) return t.placeholder;
26
27
  const e = d("vlite.iconPicker.search");
@@ -116,10 +117,10 @@ const z = /* @__PURE__ */ g({
116
117
  c(e.$slots, "menu-top", { close: l }),
117
118
  s(a(I), {
118
119
  id: "icon-picker",
119
- placeholder: p.value,
120
+ placeholder: h.value,
120
121
  "items-per-page": 35,
121
122
  value: o.value,
122
- onOnSelect: h,
123
+ onOnSelect: p,
123
124
  defaultIcons: f
124
125
  }, null, 8, ["placeholder", "value"])
125
126
  ]),
@@ -128,5 +129,5 @@ const z = /* @__PURE__ */ g({
128
129
  }
129
130
  });
130
131
  export {
131
- z as default
132
+ V as default
132
133
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as A, ref as b, computed as d, openBlock as w, createElementBlock as V, createElementVNode as a, toDisplayString as l, withModifiers as F, normalizeClass as E, createVNode as h, createCommentVNode as J, withCtx as K, createTextVNode as L } from "vue";
2
- import R from "../../_virtual/papaparse.min.js";
2
+ import R from "papaparse";
3
3
  import M from "../Icon.vue.js";
4
4
  import W from "../Button.vue.js";
5
5
  import q from "../Textarea.vue.js";
@@ -2,6 +2,7 @@ import { defineComponent as H, ref as M, computed as c, openBlock as o, createEl
2
2
  import A from "../Dropdown/Dropdown.vue.js";
3
3
  import "@iconify/vue";
4
4
  import { $t as B } from "../../utils/i18n.js";
5
+ /* empty css */
5
6
  import I from "../CheckBox.vue.js";
6
7
  const O = { class: "space-y-6" }, j = { class: "font-medium text-lg mb-1" }, E = { class: "text-sm text-muted-foreground" }, P = { class: "border border-border rounded-xl overflow-hidden" }, R = { class: "overflow-x-auto max-h-[400px]" }, U = { class: "w-full text-sm text-left" }, q = { class: "text-xs text-muted-foreground uppercase bg-muted sticky top-0 z-10" }, L = { class: "px-4 py-3 font-medium" }, W = { class: "px-4 py-3 font-medium" }, G = { class: "px-4 py-3 font-medium" }, J = { class: "divide-y divide-border" }, K = { class: "px-4 py-3 font-medium text-foreground whitespace-nowrap" }, Q = { class: "px-4 py-2 min-w-[200px]" }, T = {
7
8
  key: 1,
@@ -12,7 +13,7 @@ const O = { class: "space-y-6" }, j = { class: "font-medium text-lg mb-1" }, E =
12
13
  }, Z = { class: "px-4 py-3 text-center align-middle" }, ee = { class: "flex justify-center items-center h-full" }, te = {
13
14
  key: 0,
14
15
  class: "text-center text-sm text-warning font-medium p-4 bg-warning/10 rounded-lg border border-warning/20"
15
- }, ae = /* @__PURE__ */ H({
16
+ }, ce = /* @__PURE__ */ H({
16
17
  __name: "ImportStep2",
17
18
  props: {
18
19
  headers: {},
@@ -94,5 +95,5 @@ const O = { class: "space-y-6" }, j = { class: "font-medium text-lg mb-1" }, E =
94
95
  }
95
96
  });
96
97
  export {
97
- ae as default
98
+ ce as default
98
99
  };