vlite3 0.4.8 → 0.5.2

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 (268) hide show
  1. package/README.md +201 -100
  2. package/_virtual/Barcode.js +4 -0
  3. package/_virtual/CODE128.js +4 -0
  4. package/_virtual/CODE128A.js +4 -0
  5. package/_virtual/CODE128B.js +4 -0
  6. package/_virtual/CODE128C.js +4 -0
  7. package/_virtual/CODE128_AUTO.js +4 -0
  8. package/_virtual/CODE93.js +4 -0
  9. package/_virtual/CODE93FullASCII.js +4 -0
  10. package/_virtual/EAN.js +4 -0
  11. package/_virtual/EAN13.js +4 -0
  12. package/_virtual/EAN2.js +4 -0
  13. package/_virtual/EAN5.js +4 -0
  14. package/_virtual/EAN8.js +4 -0
  15. package/_virtual/ErrorHandler.js +4 -0
  16. package/_virtual/FileSaver.min.js +5 -0
  17. package/_virtual/FileSaver.min2.js +4 -0
  18. package/_virtual/ITF.js +4 -0
  19. package/_virtual/ITF14.js +4 -0
  20. package/_virtual/JsBarcode.js +7 -0
  21. package/_virtual/MSI.js +4 -0
  22. package/_virtual/MSI10.js +4 -0
  23. package/_virtual/MSI1010.js +4 -0
  24. package/_virtual/MSI11.js +4 -0
  25. package/_virtual/MSI1110.js +4 -0
  26. package/_virtual/UPC.js +4 -0
  27. package/_virtual/UPCE.js +4 -0
  28. package/_virtual/_commonjsHelpers.js +8 -0
  29. package/_virtual/alignment-pattern.js +4 -0
  30. package/_virtual/auto.js +4 -0
  31. package/_virtual/browser.js +7 -0
  32. package/_virtual/browser2.js +4 -0
  33. package/_virtual/canvas.js +4 -0
  34. package/_virtual/canvas2.js +4 -0
  35. package/_virtual/checksums.js +4 -0
  36. package/_virtual/constants.js +4 -0
  37. package/_virtual/constants2.js +4 -0
  38. package/_virtual/constants3.js +4 -0
  39. package/_virtual/constants4.js +4 -0
  40. package/_virtual/defaults.js +4 -0
  41. package/_virtual/dijkstra.js +4 -0
  42. package/_virtual/encoder.js +4 -0
  43. package/_virtual/error-correction-code.js +4 -0
  44. package/_virtual/error-correction-level.js +4 -0
  45. package/_virtual/exceptions.js +4 -0
  46. package/_virtual/finder-pattern.js +4 -0
  47. package/_virtual/fixOptions.js +4 -0
  48. package/_virtual/format-info.js +4 -0
  49. package/_virtual/galois-field.js +4 -0
  50. package/_virtual/getOptionsFromElement.js +4 -0
  51. package/_virtual/getRenderProperties.js +4 -0
  52. package/_virtual/index.js +4 -0
  53. package/_virtual/index10.js +4 -0
  54. package/_virtual/index11.js +4 -0
  55. package/_virtual/index2.js +4 -0
  56. package/_virtual/index3.js +4 -0
  57. package/_virtual/index4.js +4 -0
  58. package/_virtual/index5.js +4 -0
  59. package/_virtual/index6.js +4 -0
  60. package/_virtual/index7.js +4 -0
  61. package/_virtual/index8.js +4 -0
  62. package/_virtual/index9.js +4 -0
  63. package/_virtual/linearizeEncodings.js +4 -0
  64. package/_virtual/mask-pattern.js +4 -0
  65. package/_virtual/merge.js +4 -0
  66. package/_virtual/mode.js +4 -0
  67. package/_virtual/object.js +4 -0
  68. package/_virtual/optionsFromStrings.js +4 -0
  69. package/_virtual/papaparse.min.js +7 -0
  70. package/_virtual/papaparse.min2.js +4 -0
  71. package/_virtual/polynomial.js +4 -0
  72. package/_virtual/qrcode.js +4 -0
  73. package/_virtual/regex.js +4 -0
  74. package/_virtual/segments.js +4 -0
  75. package/_virtual/shared.js +4 -0
  76. package/_virtual/svg-tag.js +4 -0
  77. package/_virtual/svg.js +4 -0
  78. package/_virtual/utils.js +4 -0
  79. package/_virtual/utils2.js +4 -0
  80. package/_virtual/version-check.js +4 -0
  81. package/_virtual/version.js +4 -0
  82. package/components/Accordion/Accordion.vue.d.ts +7 -7
  83. package/components/Accordion/AccordionItem.vue.d.ts +4 -4
  84. package/components/Accordion/AccordionTrigger.vue.d.ts +2 -2
  85. package/components/Alert.vue.d.ts +1 -1
  86. package/components/Avatar.vue.d.ts +2 -2
  87. package/components/Avatar.vue.js +2 -2
  88. package/components/AvatarUploader/AvatarUploader.vue.d.ts +5 -5
  89. package/components/Badge.vue.d.ts +1 -1
  90. package/components/Barcode/Barcode.vue.d.ts +22 -0
  91. package/components/Barcode/Barcode.vue.js +58 -0
  92. package/components/Barcode/Barcode.vue2.js +4 -0
  93. package/components/Barcode/index.d.ts +2 -0
  94. package/components/Barcode/types.d.ts +5 -0
  95. package/components/Barcode/types.js +15 -0
  96. package/components/Breadcrumb/Breadcrumb.vue.d.ts +23 -0
  97. package/components/Breadcrumb/Breadcrumb.vue.js +7 -0
  98. package/components/Breadcrumb/Breadcrumb.vue2.js +84 -0
  99. package/components/Breadcrumb/BreadcrumbItem.vue.d.ts +27 -0
  100. package/components/Breadcrumb/BreadcrumbItem.vue.js +7 -0
  101. package/components/Breadcrumb/BreadcrumbItem.vue2.js +50 -0
  102. package/components/Breadcrumb/index.d.ts +3 -0
  103. package/components/Breadcrumb/types.d.ts +19 -0
  104. package/components/Button.vue.d.ts +4 -4
  105. package/components/Button.vue.js +32 -29
  106. package/components/ButtonGroup.vue.d.ts +1 -1
  107. package/components/Carousel/Carousel.vue.d.ts +58 -58
  108. package/components/CheckBox.vue.d.ts +2 -2
  109. package/components/Chip/Chip.vue.d.ts +3 -3
  110. package/components/ChoiceBox/ChoiceBox.vue.d.ts +4 -4
  111. package/components/ColorPicker/ColorPicker.vue.d.ts +3 -3
  112. package/components/ColorPicker/index.d.ts +1 -0
  113. package/components/CommandPaletteContent.vue.d.ts +15 -0
  114. package/components/CommandPaletteContent.vue.js +7 -0
  115. package/components/CommandPaletteContent.vue2.js +287 -0
  116. package/components/ConfirmationModal.vue.js +12 -10
  117. package/components/DataList/DataList.vue.d.ts +2 -2
  118. package/components/DataTable/DataTable.vue.d.ts +6 -6
  119. package/components/DataTable/DataTableRow.vue.d.ts +3 -3
  120. package/components/DatePicker.vue.d.ts +2 -2
  121. package/components/DatePicker.vue.js +7 -7
  122. package/components/DateRangePicker.vue.d.ts +29 -0
  123. package/components/DateRangePicker.vue.js +231 -0
  124. package/components/DateRangePicker.vue2.js +4 -0
  125. package/components/Dropdown/Dropdown.vue.d.ts +11 -6
  126. package/components/Dropdown/Dropdown.vue.js +147 -109
  127. package/components/Dropdown/DropdownBooleanItem.vue.js +9 -8
  128. package/components/Dropdown/DropdownGroupedLayout.vue.d.ts +1 -1
  129. package/components/Dropdown/DropdownGroupedLayout.vue.js +35 -34
  130. package/components/Dropdown/DropdownItem.vue.js +11 -10
  131. package/components/Dropdown/DropdownMenu.vue.d.ts +5 -3
  132. package/components/Dropdown/DropdownMenu.vue.js +114 -111
  133. package/components/Dropdown/DropdownTrigger.vue.d.ts +2 -0
  134. package/components/Dropdown/DropdownTrigger.vue.js +9 -7
  135. package/components/ExportData/ExportData.vue.d.ts +16 -0
  136. package/components/ExportData/ExportData.vue.js +135 -0
  137. package/components/ExportData/ExportData.vue2.js +4 -0
  138. package/components/ExportData/index.d.ts +2 -0
  139. package/components/ExportData/types.d.ts +17 -0
  140. package/components/FilePicker/FilePicker.vue.d.ts +5 -5
  141. package/components/Form/CustomFields.vue.d.ts +6 -6
  142. package/components/Form/CustomFields.vue.js +1 -1
  143. package/components/Form/Form.vue.d.ts +4 -5
  144. package/components/Form/Form.vue.js +2 -2
  145. package/components/Form/Form.vue2.js +221 -178
  146. package/components/Form/FormField.vue.d.ts +4 -3
  147. package/components/Form/FormField.vue.js +70 -62
  148. package/components/Form/FormFields.vue.d.ts +3 -1
  149. package/components/Form/FormFields.vue.js +2 -2
  150. package/components/Form/FormFields.vue2.js +105 -59
  151. package/components/GoogleLogin.vue.d.ts +2 -2
  152. package/components/Icon.vue.d.ts +2 -0
  153. package/components/Icon.vue.js +12 -11
  154. package/components/ImportData/ImportData.vue.d.ts +31 -0
  155. package/components/ImportData/ImportData.vue.js +242 -0
  156. package/components/ImportData/ImportData.vue2.js +4 -0
  157. package/components/ImportData/ImportStep1.vue.d.ts +23 -0
  158. package/components/ImportData/ImportStep1.vue.js +162 -0
  159. package/components/ImportData/ImportStep1.vue2.js +4 -0
  160. package/components/ImportData/ImportStep2.vue.d.ts +20 -0
  161. package/components/ImportData/ImportStep2.vue.js +98 -0
  162. package/components/ImportData/ImportStep2.vue2.js +4 -0
  163. package/components/ImportData/ImportStep3.vue.d.ts +6 -0
  164. package/components/ImportData/ImportStep3.vue.js +98 -0
  165. package/components/ImportData/ImportStep3.vue2.js +4 -0
  166. package/components/ImportData/ImportStep4.vue.d.ts +6 -0
  167. package/components/ImportData/ImportStep4.vue.js +139 -0
  168. package/components/ImportData/ImportStep4.vue2.js +4 -0
  169. package/components/ImportData/index.d.ts +2 -0
  170. package/components/ImportData/types.d.ts +51 -0
  171. package/components/Input.vue.d.ts +9 -9
  172. package/components/Input.vue.js +137 -120
  173. package/components/List/List.vue.d.ts +18 -0
  174. package/components/List/List.vue.js +189 -0
  175. package/components/List/List.vue2.js +4 -0
  176. package/components/List/ListFieldRow.vue.d.ts +35 -0
  177. package/components/List/ListFieldRow.vue.js +119 -0
  178. package/components/List/ListFieldRow.vue2.js +4 -0
  179. package/components/List/index.d.ts +4 -0
  180. package/components/List/types.d.ts +1 -0
  181. package/components/List/utils.d.ts +9 -0
  182. package/components/List/utils.js +64 -0
  183. package/components/Masonry/Masonry.vue.d.ts +2 -2
  184. package/components/Modal.vue.js +5 -122
  185. package/components/Modal.vue2.js +133 -2
  186. package/components/MultiSelect/MultiSelect.vue.d.ts +12 -9
  187. package/components/MultiSelect/MultiSelect.vue.js +101 -64
  188. package/components/Navbar/Navbar.vue.d.ts +48 -9
  189. package/components/Navbar/Navbar.vue.js +418 -146
  190. package/components/Navbar/NavbarItem.vue.d.ts +2 -2
  191. package/components/Navbar/NavbarTabs.vue.d.ts +21 -0
  192. package/components/Navbar/NavbarTabs.vue.js +179 -0
  193. package/components/Navbar/NavbarTabs.vue3.js +5 -0
  194. package/components/Navbar/index.d.ts +3 -0
  195. package/components/NavbarCommandPalette.vue.d.ts +48 -0
  196. package/components/NumberInput.vue.d.ts +8 -8
  197. package/components/OTPInput/OTPInput.vue.d.ts +7 -7
  198. package/components/Pagination/Pagination.vue.d.ts +1 -1
  199. package/components/PermissionMatrix/PermissionEditor.vue.d.ts +36 -0
  200. package/components/PermissionMatrix/PermissionEditor.vue.js +323 -0
  201. package/components/PermissionMatrix/PermissionEditor.vue2.js +4 -0
  202. package/components/PermissionMatrix/PermissionMatrix.vue.d.ts +15 -0
  203. package/components/PermissionMatrix/PermissionMatrix.vue.js +7 -0
  204. package/components/PermissionMatrix/PermissionMatrix.vue2.js +245 -0
  205. package/components/PermissionMatrix/index.d.ts +3 -0
  206. package/components/PermissionMatrix/types.d.ts +59 -0
  207. package/components/PricingPlan/PricingPlan.vue.d.ts +3 -3
  208. package/components/ProgressBar/ProgressBar.vue.d.ts +3 -3
  209. package/components/QRCode/QRCode.vue.d.ts +15 -0
  210. package/components/QRCode/QRCode.vue.js +38 -0
  211. package/components/QRCode/QRCode.vue2.js +4 -0
  212. package/components/QRCode/index.d.ts +1 -0
  213. package/components/Screen/Screen.vue.d.ts +232 -5
  214. package/components/Screen/Screen.vue.js +423 -271
  215. package/components/Screen/ScreenFilter.vue.d.ts +2 -2
  216. package/components/Screen/ScreenFilter.vue.js +9 -9
  217. package/components/Screen/types.d.ts +12 -0
  218. package/components/SidePanel.vue.d.ts +2 -2
  219. package/components/SidebarMenu/SidebarMenu.vue.d.ts +15 -2
  220. package/components/SidebarMenu/SidebarMenu.vue.js +117 -47
  221. package/components/SidebarMenu/SidebarMenuItem.vue.d.ts +2 -0
  222. package/components/SidebarMenu/SidebarMenuItem.vue.js +192 -175
  223. package/components/SidebarMenu/types.d.ts +32 -5
  224. package/components/Slider.vue.d.ts +2 -2
  225. package/components/Spinner/Spinner.vue.d.ts +2 -2
  226. package/components/Stats/Stats.vue.d.ts +14 -0
  227. package/components/Stats/Stats.vue.js +307 -0
  228. package/components/Stats/Stats.vue2.js +4 -0
  229. package/components/Stats/index.d.ts +2 -0
  230. package/components/Stats/types.d.ts +32 -0
  231. package/components/Switch.vue.d.ts +2 -1
  232. package/components/Switch.vue.js +4 -2
  233. package/components/Tabes/Tabes.vue.d.ts +3 -3
  234. package/components/Tabes/Tabes.vue.js +60 -57
  235. package/components/Tabes/types.d.ts +5 -0
  236. package/components/Textarea.vue.d.ts +3 -3
  237. package/components/{Timeline.vue.d.ts → Timeline/Timeline.vue.d.ts} +23 -2
  238. package/components/Timeline/Timeline.vue.js +92 -0
  239. package/components/Timeline/TimelineIndicator.vue.d.ts +9 -0
  240. package/components/Timeline/TimelineIndicator.vue.js +68 -0
  241. package/components/Timeline/TimelineIndicator.vue2.js +4 -0
  242. package/components/Timeline/TimelineItem.vue.d.ts +56 -0
  243. package/components/Timeline/TimelineItem.vue.js +173 -0
  244. package/components/Timeline/TimelineItem.vue2.js +4 -0
  245. package/components/Timeline/index.d.ts +3 -0
  246. package/components/Tooltip.vue.d.ts +2 -2
  247. package/components/Workbook/Sheet.vue.d.ts +2 -2
  248. package/components/Workbook/Workbook.vue.d.ts +3 -3
  249. package/components/index.d.ts +62 -0
  250. package/composables/useBreadcrumb.d.ts +17 -0
  251. package/composables/useBreadcrumb.js +27 -0
  252. package/core/config.d.ts +34 -0
  253. package/core/config.js +10 -7
  254. package/core/index.js +15 -8
  255. package/index.d.ts +55 -44
  256. package/index.js +243 -200
  257. package/package.json +12 -2
  258. package/router.d.ts +2 -0
  259. package/style.css +7 -5
  260. package/types/button.d.ts +1 -1
  261. package/types/config.type.d.ts +35 -0
  262. package/types/form.type.d.ts +3 -1
  263. package/types/index.d.ts +2 -1
  264. package/types/list.type.d.ts +57 -0
  265. package/types/navbar.type.d.ts +38 -1
  266. package/types/timeline.type.d.ts +14 -4
  267. package/components/Timeline.vue.js +0 -160
  268. /package/components/{Timeline.vue2.js → Timeline/Timeline.vue2.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { defineComponent as N, computed as n, markRaw as P, openBlock as r, createBlock as f, mergeProps as u, toHandlers as S, createSlots as B, unref as R, withCtx as o, createVNode as z, createTextVNode as m, toDisplayString as c, createCommentVNode as $, resolveDynamicComponent as I } from "vue";
1
+ import { defineComponent as U, computed as o, markRaw as I, openBlock as r, createBlock as f, mergeProps as u, toHandlers as S, createSlots as N, unref as R, withCtx as n, createVNode as z, createTextVNode as c, toDisplayString as m, createCommentVNode as L, resolveDynamicComponent as B } from "vue";
2
2
  import { isComponent as h, isAddonObject as p } from "./utils/form.utils.js";
3
3
  import O from "../NumberInput.vue.js";
4
4
  import v from "../Button.vue.js";
@@ -6,16 +6,15 @@ import { $t as T } from "../../utils/i18n.js";
6
6
  import g from "../Input.vue.js";
7
7
  import j from "../Switch.vue.js";
8
8
  import D from "../CheckBox.vue.js";
9
- import E from "../Textarea.vue.js";
10
- import H from "../FilePicker/FilePicker.vue.js";
11
- import q from "../AvatarUploader/AvatarUploader.vue.js";
9
+ import E from "../FilePicker/FilePicker.vue.js";
10
+ import H from "../AvatarUploader/AvatarUploader.vue.js";
12
11
  import y from "../Dropdown/Dropdown.vue.js";
13
- import G from "../MultiSelect/MultiSelect.vue.js";
14
- import J from "../DatePicker.vue.js";
15
- import K from "../ColorPicker/ColorPicker.vue.js";
16
- import M from "../IconPicker.vue.js";
17
- import Q from "./CustomFields.vue.js";
18
- const me = /* @__PURE__ */ N({
12
+ import q from "../MultiSelect/MultiSelect.vue.js";
13
+ import G from "../DatePicker.vue.js";
14
+ import J from "../ColorPicker/ColorPicker.vue.js";
15
+ import K from "../IconPicker.vue.js";
16
+ import M from "./CustomFields.vue.js";
17
+ const ue = /* @__PURE__ */ U({
19
18
  __name: "FormField",
20
19
  props: {
21
20
  field: {},
@@ -27,18 +26,19 @@ const me = /* @__PURE__ */ N({
27
26
  disabled: { type: Boolean, default: !1 },
28
27
  readonly: { type: Boolean, default: !1 },
29
28
  error: { default: "" },
30
- isUpdate: { type: Boolean, default: !1 }
29
+ isUpdate: { type: Boolean, default: !1 },
30
+ label: {}
31
31
  },
32
32
  emits: ["change", "addonChange", "addonAction"],
33
- setup(l, { emit: L }) {
34
- const e = l, s = L, d = (t, a) => {
33
+ setup(l, { emit: $ }) {
34
+ const e = l, s = $, d = (t, a) => {
35
35
  s("change", { value: t, data: a });
36
- }, C = (t) => {
36
+ }, w = (t) => {
37
37
  s("change", { value: t });
38
- }, F = n(() => {
38
+ }, C = o(() => {
39
39
  const t = e.field.type;
40
40
  if (h(t))
41
- return P(t);
41
+ return I(t);
42
42
  switch (t) {
43
43
  case "text":
44
44
  case "email":
@@ -46,11 +46,10 @@ const me = /* @__PURE__ */ N({
46
46
  case "tel":
47
47
  case "url":
48
48
  case "search":
49
+ case "textarea":
49
50
  return g;
50
51
  case "number":
51
52
  return O;
52
- case "textarea":
53
- return E;
54
53
  case "switch":
55
54
  return j;
56
55
  case "check":
@@ -58,34 +57,38 @@ const me = /* @__PURE__ */ N({
58
57
  case "select":
59
58
  return y;
60
59
  case "multiSelect":
61
- return G;
60
+ return q;
62
61
  case "date":
63
62
  case "time":
64
- return J;
63
+ return G;
65
64
  case "file":
66
65
  case "fileUploader":
67
- return H;
66
+ return E;
68
67
  case "avatarUpload":
69
- return q;
68
+ return H;
70
69
  case "color":
71
- return K;
70
+ return J;
72
71
  case "iconPicker":
73
- return M;
72
+ return K;
74
73
  case "customFields":
75
- return Q;
74
+ return M;
76
75
  default:
77
76
  return g;
78
77
  }
79
- }), x = n(() => {
78
+ }), x = o(() => {
80
79
  const t = e.field.type, a = {
81
80
  disabled: e.disabled || e.field.disabled === !0,
82
- ...e.field.props || {}
81
+ ...e?.field || {},
82
+ ...e.field.props || {},
83
+ label: e?.field?.label,
84
+ labelI18n: e?.field?.labelI18n
83
85
  }, i = e.field.placeholderI18n ? T(e.field.placeholderI18n) : e.field.placeholder;
84
- return t === "text" || t === "email" || t === "password" || t === "tel" || t === "url" || t === "search" || !t ? {
86
+ return t === "text" || t === "email" || t === "password" || t === "tel" || t === "url" || t === "search" || t === "textarea" || !t ? {
85
87
  ...a,
86
88
  modelValue: e.value ?? "",
87
89
  type: t || "text",
88
90
  placeholder: i,
91
+ label: e.label,
89
92
  icon: e.field.icon,
90
93
  iconRight: e.field.iconRight,
91
94
  // Only pass addon strings; object addons are rendered via slots
@@ -98,6 +101,7 @@ const me = /* @__PURE__ */ N({
98
101
  min: e.field.min,
99
102
  // kept for validation attributes if needed
100
103
  max: e.field.max,
104
+ rows: t === "textarea" ? e.field.props?.rows || 3 : void 0,
101
105
  class: `${e.field.className}`
102
106
  } : t === "number" ? {
103
107
  ...a,
@@ -111,12 +115,6 @@ const me = /* @__PURE__ */ N({
111
115
  rounded: e.rounded,
112
116
  placeholder: i,
113
117
  class: e.field.className
114
- } : t === "textarea" ? {
115
- ...a,
116
- modelValue: e.value ?? "",
117
- placeholder: i,
118
- rows: e.field.props?.rows || 3,
119
- class: e.field.className
120
118
  } : t === "switch" ? {
121
119
  ...a,
122
120
  modelValue: !!e.value,
@@ -133,17 +131,24 @@ const me = /* @__PURE__ */ N({
133
131
  options: e.field.options || [],
134
132
  placeholder: i,
135
133
  selectable: !0,
136
- closeOnSelect: !0
134
+ closeOnSelect: !0,
135
+ triggerProps: {
136
+ variant: e.variant === "floating" ? "outline-floating" : e.variant || "outline"
137
+ }
137
138
  } : t === "multiSelect" ? {
138
139
  ...a,
139
140
  modelValue: Array.isArray(e.value) ? e.value : [],
140
141
  options: e.field.options || [],
141
- placeholder: i
142
+ placeholder: i,
143
+ variant: e.variant
142
144
  } : t === "date" || t === "time" ? {
143
145
  ...a,
144
146
  modelValue: e.value,
145
147
  mode: t === "time" ? "time" : "date",
146
- placeholder: i
148
+ placeholder: i,
149
+ btnProps: {
150
+ variant: e.variant === "floating" ? "outline-floating" : e.variant || "outline"
151
+ }
147
152
  } : t === "fileUploader" || t === "file" ? {
148
153
  ...a,
149
154
  modelValue: e.value,
@@ -183,10 +188,10 @@ const me = /* @__PURE__ */ N({
183
188
  value: e.value,
184
189
  values: e.values
185
190
  } : a;
186
- }), V = n(() => {
191
+ }), b = o(() => {
187
192
  const t = e.field.type;
188
193
  return t === "text" || t === "email" || t === "password" || t === "tel" || t === "url" || t === "search" || t === "textarea" || t === "switch" || t === "check" || t === "number" || !t ? {
189
- "update:modelValue": C
194
+ "update:modelValue": w
190
195
  } : t === "select" ? {
191
196
  onSelect: (a) => {
192
197
  d(a.value, a.data);
@@ -220,32 +225,32 @@ const me = /* @__PURE__ */ N({
220
225
  d(a.value, a.data);
221
226
  }
222
227
  } : {};
223
- }), w = n(() => p(e.field.addonLeft) || p(e.field.addonRight)), A = n(() => {
228
+ }), F = o(() => p(e.field.addonLeft) || p(e.field.addonRight)), A = o(() => {
224
229
  const t = e.field.type;
225
230
  return t === "text" || t === "email" || t === "password" || t === "tel" || t === "url" || t === "search" || !t;
226
- }), U = n(() => w.value && A.value), b = (t, a) => {
231
+ }), P = o(() => F.value && A.value), V = (t, a) => {
227
232
  s("addonChange", t.name, { value: a.value });
228
233
  }, k = (t) => {
229
234
  t.action && s("addonAction", t.action);
230
235
  };
231
- return (t, a) => U.value ? (r(), f(g, u({ key: 0 }, {
236
+ return (t, a) => P.value ? (r(), f(g, u({ key: 0 }, {
232
237
  ...x.value,
233
238
  ...l.field?.props || {}
234
- }, S(V.value)), B({ _: 2 }, [
239
+ }, S(b.value)), N({ _: 2 }, [
235
240
  R(p)(l.field.addonLeft) ? {
236
241
  name: "addon-left",
237
- fn: o(() => [
242
+ fn: n(() => [
238
243
  l.field.addonLeft.type === "select" ? (r(), f(y, u({
239
244
  key: 0,
240
245
  modelValue: l.field.addonLeft.name ? l.values[l.field.addonLeft.name] : void 0,
241
246
  options: l.field.addonLeft.options || []
242
247
  }, l.field.addonLeft.props || {}, {
243
- onOnSelect: a[0] || (a[0] = (i) => b(l.field.addonLeft, i))
248
+ onOnSelect: a[0] || (a[0] = (i) => V(l.field.addonLeft, i))
244
249
  }), {
245
- trigger: o(({ selectedLabel: i }) => [
250
+ trigger: n(({ selectedLabel: i }) => [
246
251
  z(v, { variant: "outline" }, {
247
- default: o(() => [
248
- m(c(i), 1)
252
+ default: n(() => [
253
+ c(m(i), 1)
249
254
  ]),
250
255
  _: 2
251
256
  }, 1024)
@@ -257,28 +262,28 @@ const me = /* @__PURE__ */ N({
257
262
  }, l.field.addonLeft.props || {}, {
258
263
  onClick: a[1] || (a[1] = (i) => k(l.field.addonLeft))
259
264
  }), {
260
- default: o(() => [
261
- m(c(l.field.addonLeft.text), 1)
265
+ default: n(() => [
266
+ c(m(l.field.addonLeft.text), 1)
262
267
  ]),
263
268
  _: 1
264
- }, 16)) : $("", !0)
269
+ }, 16)) : L("", !0)
265
270
  ]),
266
271
  key: "0"
267
272
  } : void 0,
268
273
  R(p)(l.field.addonRight) ? {
269
274
  name: "addon-right",
270
- fn: o(() => [
275
+ fn: n(() => [
271
276
  l.field.addonRight.type === "select" ? (r(), f(y, u({
272
277
  key: 0,
273
278
  modelValue: l.field.addonRight.name ? l.values[l.field.addonRight.name] : void 0,
274
279
  options: l.field.addonRight.options || []
275
280
  }, l.field.addonRight.props || {}, {
276
- onOnSelect: a[2] || (a[2] = (i) => b(l.field.addonRight, i))
281
+ onOnSelect: a[2] || (a[2] = (i) => V(l.field.addonRight, i))
277
282
  }), {
278
- trigger: o(({ selectedLabel: i }) => [
283
+ trigger: n(({ selectedLabel: i }) => [
279
284
  z(v, { variant: "outline" }, {
280
- default: o(() => [
281
- m(c(i), 1)
285
+ default: n(() => [
286
+ c(m(i), 1)
282
287
  ]),
283
288
  _: 2
284
289
  }, 1024)
@@ -290,20 +295,23 @@ const me = /* @__PURE__ */ N({
290
295
  }, l.field.addonRight.props || {}, {
291
296
  onClick: a[3] || (a[3] = (i) => k(l.field.addonRight))
292
297
  }), {
293
- default: o(() => [
294
- m(c(l.field.addonRight.text), 1)
298
+ default: n(() => [
299
+ c(m(l.field.addonRight.text), 1)
295
300
  ]),
296
301
  _: 1
297
- }, 16)) : $("", !0)
302
+ }, 16)) : L("", !0)
298
303
  ]),
299
304
  key: "1"
300
305
  } : void 0
301
- ]), 1040)) : (r(), f(I(F.value), u({ key: 1 }, {
306
+ ]), 1040)) : (r(), f(B(C.value), u({
307
+ key: 1,
308
+ class: ["switch", "check"].includes(l.field?.type) ? "" : "w-full"
309
+ }, {
302
310
  ...x.value,
303
311
  ...l.field?.props || {}
304
- }, S(V.value)), null, 16));
312
+ }, S(b.value)), null, 16, ["class"]));
305
313
  }
306
314
  });
307
315
  export {
308
- me as default
316
+ ue as default
309
317
  };
@@ -9,6 +9,7 @@ interface Props {
9
9
  rounded?: InputRounded;
10
10
  className?: string;
11
11
  isUpdate?: boolean;
12
+ showRequiredAsterisk?: boolean;
12
13
  /** Function to check if field is visible */
13
14
  isFieldVisible?: (field: IForm) => boolean;
14
15
  /** Function to check if field is disabled */
@@ -23,9 +24,10 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
23
24
  onChange?: (name: string, payload: IFormFieldChangePayload) => any;
24
25
  onAddonAction?: (action: string) => any;
25
26
  }>, {
26
- size: InputSize;
27
27
  variant: InputVariant;
28
+ size: InputSize;
28
29
  rounded: InputRounded;
30
+ showRequiredAsterisk: boolean;
29
31
  isUpdate: boolean;
30
32
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
31
33
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import o from "./FormFields.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f01b3b3b"]]);
4
+ const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-03c267ac"]]);
5
5
  export {
6
- p as default
6
+ c as default
7
7
  };
@@ -1,18 +1,21 @@
1
- import { defineComponent as U, computed as f, openBlock as n, createElementBlock as s, normalizeClass as y, Fragment as u, renderList as w, createBlock as m, withCtx as p, unref as I, resolveDynamicComponent as L, createTextVNode as F, toDisplayString as h, createCommentVNode as i, createVNode as $ } from "vue";
2
- import { isComponent as v, getNestedValue as q } from "./utils/form.utils.js";
3
- import k from "../Label.vue.js";
4
- import E from "./FormField.vue.js";
5
- import { $t as S } from "../../utils/i18n.js";
6
- const T = {
1
+ import { defineComponent as H, computed as O, ref as j, openBlock as s, createElementBlock as r, normalizeClass as i, Fragment as l, renderList as G, createBlock as d, withCtx as A, unref as _, resolveDynamicComponent as w, createTextVNode as b, toDisplayString as m, createCommentVNode as u, createElementVNode as J, createVNode as K } from "vue";
2
+ import { isComponent as p, getNestedValue as M } from "./utils/form.utils.js";
3
+ import V from "../Label.vue.js";
4
+ import P from "./FormField.vue.js";
5
+ import { $t as Q } from "../../utils/i18n.js";
6
+ const W = {
7
7
  key: 0,
8
8
  class: "text-destructive ml-0.5"
9
- }, j = {
9
+ }, X = ["onFocusin", "onFocusout"], Y = ["for"], Z = {
10
10
  key: 0,
11
11
  class: "text-destructive ml-0.5"
12
- }, G = {
12
+ }, ee = {
13
+ key: 0,
14
+ class: "text-destructive ml-0.5"
15
+ }, te = {
13
16
  key: 2,
14
17
  class: "mt-1 text-sm text-destructive"
15
- }, P = /* @__PURE__ */ U({
18
+ }, ce = /* @__PURE__ */ H({
16
19
  __name: "FormFields",
17
20
  props: {
18
21
  schema: {},
@@ -23,80 +26,123 @@ const T = {
23
26
  rounded: { default: "md" },
24
27
  className: {},
25
28
  isUpdate: { type: Boolean, default: !1 },
29
+ showRequiredAsterisk: { type: Boolean, default: !0 },
26
30
  isFieldVisible: {},
27
31
  isFieldDisabled: {},
28
32
  isFieldReadonly: {}
29
33
  },
30
34
  emits: ["change", "addonAction"],
31
- setup(a, { emit: b }) {
32
- const r = a, d = b, g = f(() => {
33
- if (r.className) return r.className;
34
- }), C = (e) => q(r.values, e.name), l = (e) => r.errors[e.name] || "", x = (e) => r.isFieldVisible ? r.isFieldVisible(e) : !0, V = (e) => r.isFieldDisabled ? r.isFieldDisabled(e) : e.disabled === !0, A = (e) => r.isFieldReadonly ? r.isFieldReadonly(e) : e.readonly === !0, o = (e) => e.labelI18n ? S(e.labelI18n) : e.label, N = (e) => {
35
- if (e)
36
- return v(e), e;
37
- }, D = (e, c) => {
38
- d("change", e.name, c);
39
- }, _ = (e) => e.itemClass || "", z = (e, c) => {
40
- d("change", e, c);
41
- }, B = (e) => {
42
- d("addonAction", e);
35
+ setup(c, { emit: N }) {
36
+ const a = c, y = N, L = O(() => {
37
+ if (a.className) return a.className;
38
+ }), k = (t) => M(a.values, t.name), h = (t) => a.errors[t.name] || "", z = (t) => a.isFieldVisible ? a.isFieldVisible(t) : !0, D = (t) => a.isFieldDisabled ? a.isFieldDisabled(t) : t.disabled === !0, R = (t) => a.isFieldReadonly ? a.isFieldReadonly(t) : t.readonly === !0, o = (t) => t.labelI18n ? Q(t.labelI18n) : t.label, x = (t) => {
39
+ if (t)
40
+ return p(t), t;
41
+ }, $ = (t, n) => {
42
+ y("change", t.name, n);
43
+ }, q = (t) => t.itemClass || "", B = (t, n) => {
44
+ y("change", t, n);
45
+ }, I = (t) => {
46
+ y("addonAction", t);
47
+ }, v = j({}), U = (t) => {
48
+ v.value[t] = !0;
49
+ }, E = (t) => {
50
+ v.value[t] = !1;
51
+ }, f = (t) => {
52
+ const n = k(t), e = n != null && n !== "" && !(Array.isArray(n) && n.length === 0);
53
+ return v.value[t.name] || e;
54
+ }, T = (t) => {
55
+ const n = t.type || "text";
56
+ return ["text", "email", "password", "tel", "url", "search", "textarea"].includes(n);
57
+ }, S = (t) => t.type === "number" && t.props?.variant !== "stacked" ? "left-10" : t.type === "date" || t.type === "time" || t.type === "color" ? "left-9" : "left-3", g = (t) => {
58
+ if (a.variant !== "floating") return !1;
59
+ const n = t.type || "text";
60
+ return !["switch", "check", "customFields", "avatarUpload", "number"].includes(n);
61
+ }, C = (t) => {
62
+ const n = o(t);
63
+ if (!(!n || p(n)))
64
+ return n;
43
65
  };
44
- return (e, c) => (n(), s("div", {
45
- class: y(["grid gap-4", g.value])
66
+ return (t, n) => (s(), r("div", {
67
+ class: i(["grid", c.variant === "floating" ? "gap-6" : "gap-4", L.value])
46
68
  }, [
47
- (n(!0), s(u, null, w(a.schema, (t) => (n(), s(u, {
48
- key: t.name
69
+ (s(!0), r(l, null, G(c.schema, (e) => (s(), r(l, {
70
+ key: e.name
49
71
  }, [
50
- x(t) ? (n(), s("div", {
72
+ z(e) ? (s(), r("div", {
51
73
  key: 0,
52
- class: y(["form-field-item", _(t)])
74
+ class: i(["form-field-item", q(e)])
53
75
  }, [
54
- o(t) && t.type !== "switch" && t.type !== "check" && t.type !== "customFields" ? (n(), m(k, {
76
+ o(e) && e.type !== "switch" && e.type !== "check" && e.type !== "customFields" && !g(e) ? (s(), d(V, {
55
77
  key: 0,
56
- for: t.name,
78
+ for: e.name,
57
79
  class: "mb-2 block text-sm font-medium"
58
80
  }, {
59
- default: p(() => [
60
- I(v)(o(t)) ? (n(), m(L(N(o(t))), { key: 0 })) : (n(), s(u, { key: 1 }, [
61
- F(h(o(t)) + " ", 1),
62
- t.required ? (n(), s("span", T, "*")) : i("", !0)
81
+ default: A(() => [
82
+ _(p)(o(e)) ? (s(), d(w(x(o(e))), { key: 0 })) : (s(), r(l, { key: 1 }, [
83
+ b(m(o(e)) + " ", 1),
84
+ e.required && c.showRequiredAsterisk ? (s(), r("span", W, "*")) : u("", !0)
63
85
  ], 64))
64
86
  ]),
65
87
  _: 2
66
- }, 1032, ["for"])) : i("", !0),
67
- $(E, {
68
- field: t,
69
- value: C(t),
70
- label: t.type === "customFields" ? o(t) : void 0,
71
- values: a.values,
72
- variant: a.variant,
73
- size: a.size,
74
- rounded: a.rounded,
75
- disabled: V(t),
76
- readonly: A(t),
77
- error: l(t),
78
- isUpdate: a.isUpdate,
79
- onChange: (R) => D(t, R),
80
- onAddonChange: z,
81
- onAddonAction: B
82
- }, null, 8, ["field", "value", "label", "values", "variant", "size", "rounded", "disabled", "readonly", "error", "isUpdate", "onChange"]),
83
- o(t) && (t.type === "switch" || t.type === "check") ? (n(), m(k, {
88
+ }, 1032, ["for"])) : u("", !0),
89
+ J("div", {
90
+ class: i(["relative", ["switch", "check"].includes(e.type) ? "w-auto" : "w-full"]),
91
+ onFocusin: (F) => U(e.name),
92
+ onFocusout: (F) => E(e.name)
93
+ }, [
94
+ g(e) && C(e) && !T(e) ? (s(), r("label", {
95
+ key: 0,
96
+ for: e.name,
97
+ class: i([
98
+ "absolute transition-all duration-200 ease-in-out pointer-events-none z-20",
99
+ f(e) ? "-top-2.5 left-3 text-xs bg-background px-1 text-primary shadow-[0_4px_4px_-4px_bg-background]" : `top-2.5 text-sm text-muted-foreground/70 ${S(e)}`
100
+ ])
101
+ }, [
102
+ _(p)(o(e)) ? (s(), d(w(x(o(e))), { key: 0 })) : (s(), r(l, { key: 1 }, [
103
+ b(m(o(e)) + " ", 1),
104
+ e.required ? (s(), r("span", Z, "*")) : u("", !0)
105
+ ], 64))
106
+ ], 10, Y)) : u("", !0),
107
+ K(P, {
108
+ field: a.variant === "floating" ? {
109
+ ...e,
110
+ placeholder: void 0,
111
+ placeholderI18n: void 0,
112
+ props: { ...e.props || {}, id: e.name }
113
+ } : { ...e, props: { ...e.props || {}, id: e.name } },
114
+ value: k(e),
115
+ label: e.type === "customFields" ? void 0 : g(e) ? C(e) : void 0,
116
+ values: c.values,
117
+ variant: c.variant,
118
+ size: c.size,
119
+ rounded: c.rounded,
120
+ disabled: D(e),
121
+ readonly: R(e),
122
+ error: h(e),
123
+ isUpdate: c.isUpdate,
124
+ onChange: (F) => $(e, F),
125
+ onAddonChange: B,
126
+ onAddonAction: I
127
+ }, null, 8, ["field", "value", "label", "values", "variant", "size", "rounded", "disabled", "readonly", "error", "isUpdate", "onChange"])
128
+ ], 42, X),
129
+ o(e) && (e.type === "switch" || e.type === "check") ? (s(), d(V, {
84
130
  key: 1,
85
- for: t.name,
131
+ for: e.name,
86
132
  class: "ml-2 text-sm font-medium cursor-pointer"
87
133
  }, {
88
- default: p(() => [
89
- F(h(o(t)) + " ", 1),
90
- t.required ? (n(), s("span", j, "*")) : i("", !0)
134
+ default: A(() => [
135
+ b(m(o(e)) + " ", 1),
136
+ e.required ? (s(), r("span", ee, "*")) : u("", !0)
91
137
  ]),
92
138
  _: 2
93
- }, 1032, ["for"])) : i("", !0),
94
- l(t) ? (n(), s("p", G, h(l(t)), 1)) : i("", !0)
95
- ], 2)) : i("", !0)
139
+ }, 1032, ["for"])) : u("", !0),
140
+ h(e) ? (s(), r("p", te, m(h(e)), 1)) : u("", !0)
141
+ ], 2)) : u("", !0)
96
142
  ], 64))), 128))
97
143
  ], 2));
98
144
  }
99
145
  });
100
146
  export {
101
- P as default
147
+ ce as default
102
148
  };
@@ -27,10 +27,10 @@ declare const __VLS_component: import('vue').DefineComponent<GoogleLoginProps, {
27
27
  onSuccess?: (response: any) => any;
28
28
  onError?: (error: any) => any;
29
29
  }>, {
30
- disabled: boolean;
31
- size: any;
32
30
  variant: any;
31
+ size: any;
33
32
  rounded: any;
33
+ disabled: boolean;
34
34
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
35
35
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
36
  export default _default;
@@ -1,7 +1,9 @@
1
1
  type __VLS_Props = {
2
2
  icon?: string;
3
+ emoji?: string;
3
4
  };
4
5
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
5
6
  icon: string;
7
+ emoji: string;
6
8
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
7
9
  export default _default;
@@ -1,25 +1,26 @@
1
- import { defineComponent as c, computed as a, openBlock as i, createElementBlock as l, mergeProps as s, createBlock as u, unref as f } from "vue";
2
- import { Icon as m } from "@iconify/vue";
3
- const p = ["src"], h = /* @__PURE__ */ c({
1
+ import { defineComponent as a, computed as l, openBlock as i, createElementBlock as r, mergeProps as o, toDisplayString as m, createBlock as u, unref as f, createCommentVNode as d } from "vue";
2
+ import { Icon as g } from "@iconify/vue";
3
+ const h = ["src"], j = /* @__PURE__ */ a({
4
4
  inheritAttrs: !1,
5
5
  __name: "Icon",
6
6
  props: {
7
- icon: { default: "" }
7
+ icon: { default: "" },
8
+ emoji: { default: "" }
8
9
  },
9
10
  setup(e) {
10
- const t = e, r = a(() => t.icon ? t.icon.startsWith("http://") || t.icon.startsWith("https://") || t.icon.startsWith("data:image/") ? !0 : [".png", ".jpg", ".jpeg", ".gif", ".svg", ".webp", ".ico", ".avif"].some((o) => t.icon.toLowerCase().endsWith(o)) : !1);
11
- return (n, o) => e.icon && r.value ? (i(), l("img", s({
12
- key: 0,
11
+ const t = e, c = l(() => t.icon ? t.icon.startsWith("http://") || t.icon.startsWith("https://") || t.icon.startsWith("data:image/") ? !0 : [".png", ".jpg", ".jpeg", ".gif", ".svg", ".webp", ".ico", ".avif"].some((s) => t.icon.toLowerCase().endsWith(s)) : !1);
12
+ return (n, s) => e.emoji ? (i(), r("span", o({ key: 0 }, n.$attrs, { class: "inline-flex items-center justify-center font-normal" }), m(e.emoji), 17)) : e.icon && c.value ? (i(), r("img", o({
13
+ key: 1,
13
14
  src: e.icon
14
15
  }, n.$attrs, {
15
16
  alt: "icon",
16
17
  class: "rounded-full scale-105"
17
- }), null, 16, p)) : (i(), u(f(m), s({
18
- key: 1,
18
+ }), null, 16, h)) : e.icon ? (i(), u(f(g), o({
19
+ key: 2,
19
20
  icon: e.icon
20
- }, n.$attrs), null, 16, ["icon"]));
21
+ }, n.$attrs), null, 16, ["icon"])) : d("", !0);
21
22
  }
22
23
  });
23
24
  export {
24
- h as default
25
+ j as default
25
26
  };
@@ -0,0 +1,31 @@
1
+ import { ImportDataProps } from './types';
2
+ type __VLS_Props = ImportDataProps & {
3
+ show?: boolean;
4
+ };
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ trigger?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: any;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ "update:show": (value: boolean) => any;
16
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
17
+ "onUpdate:show"?: (value: boolean) => any;
18
+ }>, {
19
+ title: string;
20
+ batchSize: number;
21
+ show: boolean;
22
+ buttonText: string;
23
+ buttonIcon: string;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
+ export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };