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
@@ -0,0 +1,4 @@
1
+ import f from "./ImportStep3.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,6 @@
1
+ import { ImportProgress } from './types';
2
+ type __VLS_Props = {
3
+ progress: ImportProgress;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
6
+ export default _default;
@@ -0,0 +1,139 @@
1
+ import { defineComponent as $, computed as s, ref as B, openBlock as d, createElementBlock as c, createElementVNode as e, toDisplayString as t, createVNode as m, createTextVNode as j, Fragment as I, renderList as P, createCommentVNode as p } from "vue";
2
+ import f from "../Icon.vue.js";
3
+ import { $t as v } from "../../utils/i18n.js";
4
+ const T = { class: "space-y-6" }, F = {
5
+ key: 0,
6
+ class: "bg-card rounded-2xl p-8 border border-border shadow-sm"
7
+ }, H = { class: "relative flex justify-center items-center pt-8 pb-4" }, R = { class: "relative w-36 h-36" }, U = {
8
+ class: "w-full h-full absolute top-0 left-0 text-primary transition-all duration-300 ease-out",
9
+ viewBox: "0 0 100 100"
10
+ }, L = ["stroke-dasharray"], q = { class: "absolute inset-0 flex flex-col items-center justify-center" }, z = { class: "text-3xl font-bold text-foreground" }, A = { class: "text-xs text-muted-foreground mt-1" }, G = { class: "text-center mt-4 space-y-1" }, J = { class: "text-lg font-medium text-foreground" }, K = { class: "text-sm text-muted-foreground" }, M = {
11
+ key: 1,
12
+ class: "bg-card rounded-2xl p-8 border border-border shadow-sm"
13
+ }, O = { class: "text-center mb-8" }, Q = { class: "inline-flex items-center justify-center w-16 h-16 bg-success/10 rounded-full mb-4" }, W = { class: "text-xl font-bold text-foreground" }, X = { class: "text-muted-foreground mt-1" }, Y = { class: "grid grid-cols-2 md:grid-cols-4 gap-4 max-w-3xl mx-auto" }, Z = { class: "bg-background rounded-xl p-4 border border-border flex flex-col items-center text-center" }, ee = { class: "text-2xl font-bold text-foreground" }, te = { class: "text-xs font-medium text-muted-foreground uppercase tracking-wider mt-1" }, se = { class: "bg-background rounded-xl p-4 border border-border flex flex-col items-center text-center" }, oe = { class: "text-2xl font-bold text-success" }, re = { class: "text-xs font-medium text-muted-foreground uppercase tracking-wider mt-1" }, de = { class: "bg-background rounded-xl p-4 border border-border flex flex-col items-center text-center" }, ce = { class: "text-2xl font-bold text-primary" }, le = { class: "text-xs font-medium text-muted-foreground uppercase tracking-wider mt-1" }, ne = { class: "bg-background rounded-xl p-4 border border-border flex flex-col items-center text-center" }, ie = { class: "text-2xl font-bold text-warning" }, ae = { class: "text-xs font-medium text-muted-foreground uppercase tracking-wider mt-1" }, ue = {
14
+ key: 0,
15
+ class: "mt-6 text-center"
16
+ }, xe = { class: "inline-flex items-center gap-2 px-4 py-2 bg-destructive/10 text-destructive rounded-lg border border-destructive/20 font-medium" }, me = {
17
+ key: 0,
18
+ class: "mt-4 text-left"
19
+ }, pe = {
20
+ key: 0,
21
+ class: "mt-3 max-h-48 overflow-y-auto bg-destructive/5 rounded-lg border border-destructive/10 p-3 text-sm"
22
+ }, fe = { class: "space-y-2" }, ve = { class: "font-semibold shrink-0" }, be = /* @__PURE__ */ $({
23
+ __name: "ImportStep4",
24
+ props: {
25
+ progress: {}
26
+ },
27
+ setup(o) {
28
+ const i = o, r = (u, l, n) => {
29
+ const x = n ? v(u, n) : v(u);
30
+ return x !== u ? x : l;
31
+ }, g = s(() => i.progress.percentage >= 100), a = B(!1), h = s(() => r("vlite.importData.processing", "Processing Data...")), _ = s(() => r("vlite.importData.doNotClose", "Please do not close this window.")), b = s(() => r("vlite.importData.complete", "Import Complete")), w = s(() => r("vlite.importData.successCount", `Successfully processed ${i.progress.total} records.`, { total: i.progress.total })), k = s(() => r("vlite.importData.total", "Total")), y = s(() => r("vlite.importData.created", "Created")), D = s(() => r("vlite.importData.updated", "Updated")), C = s(() => r("vlite.importData.skipped", "Skipped")), E = s(() => r("vlite.importData.failedCount", `${i.progress.failed} records failed to import`, { count: i.progress.failed })), N = s(() => r("vlite.importData.hideErrors", "Hide Error Details")), S = s(() => r("vlite.importData.viewErrors", "View Error Details")), V = s(() => r("vlite.importData.row", "Row"));
32
+ return (u, l) => (d(), c("div", T, [
33
+ g.value ? (d(), c("div", M, [
34
+ e("div", O, [
35
+ e("div", Q, [
36
+ m(f, {
37
+ icon: "lucide:check",
38
+ class: "w-8 h-8 text-success"
39
+ })
40
+ ]),
41
+ e("h3", W, t(b.value), 1),
42
+ e("p", X, t(w.value), 1)
43
+ ]),
44
+ e("div", Y, [
45
+ e("div", Z, [
46
+ e("span", ee, t(o.progress.total), 1),
47
+ e("span", te, t(k.value), 1)
48
+ ]),
49
+ e("div", se, [
50
+ e("span", oe, t(o.progress.created), 1),
51
+ e("span", re, t(y.value), 1)
52
+ ]),
53
+ e("div", de, [
54
+ e("span", ce, t(o.progress.updated), 1),
55
+ e("span", le, t(D.value), 1)
56
+ ]),
57
+ e("div", ne, [
58
+ e("span", ie, t(o.progress.skipped), 1),
59
+ e("span", ae, t(C.value), 1)
60
+ ])
61
+ ]),
62
+ o.progress.failed > 0 ? (d(), c("div", ue, [
63
+ e("div", xe, [
64
+ m(f, {
65
+ icon: "lucide:alert-triangle",
66
+ class: "w-4 h-4"
67
+ }),
68
+ e("span", null, t(E.value), 1)
69
+ ]),
70
+ o.progress.errors?.length ? (d(), c("div", me, [
71
+ e("button", {
72
+ onClick: l[0] || (l[0] = (n) => a.value = !a.value),
73
+ class: "text-sm font-medium text-destructive hover:underline inline-flex items-center gap-1"
74
+ }, [
75
+ j(t(a.value ? N.value : S.value) + " ", 1),
76
+ m(f, {
77
+ icon: a.value ? "lucide:chevron-up" : "lucide:chevron-down",
78
+ class: "w-4 h-4"
79
+ }, null, 8, ["icon"])
80
+ ]),
81
+ a.value ? (d(), c("div", pe, [
82
+ e("ul", fe, [
83
+ (d(!0), c(I, null, P(o.progress.errors, (n, x) => (d(), c("li", {
84
+ key: x,
85
+ class: "text-destructive/80 flex items-start gap-2"
86
+ }, [
87
+ e("span", ve, t(V.value) + " " + t(n.record) + ":", 1),
88
+ e("span", null, t(n.message), 1)
89
+ ]))), 128))
90
+ ])
91
+ ])) : p("", !0)
92
+ ])) : p("", !0)
93
+ ])) : p("", !0)
94
+ ])) : (d(), c("div", F, [
95
+ e("div", H, [
96
+ e("div", R, [
97
+ l[1] || (l[1] = e("svg", {
98
+ class: "w-full h-full text-muted",
99
+ viewBox: "0 0 100 100"
100
+ }, [
101
+ e("circle", {
102
+ "stroke-width": "6",
103
+ stroke: "currentColor",
104
+ fill: "transparent",
105
+ r: "42",
106
+ cx: "50",
107
+ cy: "50"
108
+ })
109
+ ], -1)),
110
+ (d(), c("svg", U, [
111
+ e("circle", {
112
+ "stroke-width": "6",
113
+ stroke: "currentColor",
114
+ "stroke-linecap": "round",
115
+ fill: "transparent",
116
+ r: "42",
117
+ cx: "50",
118
+ cy: "50",
119
+ "stroke-dasharray": `${o.progress.percentage * 263 / 100} 263`,
120
+ transform: "rotate(-90 50 50)"
121
+ }, null, 8, L)
122
+ ])),
123
+ e("div", q, [
124
+ e("div", z, t(o.progress.percentage) + "%", 1),
125
+ e("div", A, t(o.progress.processed) + " / " + t(o.progress.total), 1)
126
+ ])
127
+ ])
128
+ ]),
129
+ e("div", G, [
130
+ e("h3", J, t(h.value), 1),
131
+ e("p", K, t(_.value), 1)
132
+ ])
133
+ ]))
134
+ ]));
135
+ }
136
+ });
137
+ export {
138
+ be as default
139
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ImportStep4.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,2 @@
1
+ export { default as ImportData } from './ImportData.vue';
2
+ export * from './types';
@@ -0,0 +1,51 @@
1
+ export interface ImportField {
2
+ field: string;
3
+ title: string;
4
+ required?: boolean;
5
+ matchings?: string[];
6
+ expectedType?: 'string' | 'number' | 'boolean' | 'array' | 'object';
7
+ defaultValue?: any;
8
+ onMatch?: (value: any) => any;
9
+ }
10
+ export interface ImportProgress {
11
+ total: number;
12
+ processed: number;
13
+ created: number;
14
+ updated: number;
15
+ skipped: number;
16
+ failed: number;
17
+ percentage: number;
18
+ errors: {
19
+ record: string;
20
+ message: string;
21
+ }[];
22
+ }
23
+ export interface ImportOptions {
24
+ existing: 'add' | 'replace' | 'skip';
25
+ new: 'create' | 'skip';
26
+ }
27
+ export interface ImportBatchPayload {
28
+ data: any[];
29
+ options: ImportOptions;
30
+ }
31
+ export interface ImportBatchResult {
32
+ processed: number;
33
+ created: number;
34
+ updated: number;
35
+ skipped: number;
36
+ failed: number;
37
+ errors: {
38
+ record: string;
39
+ message: string;
40
+ }[];
41
+ }
42
+ export interface ImportDataProps {
43
+ title?: string;
44
+ titleI18n?: string;
45
+ buttonText?: string;
46
+ buttonIcon?: string;
47
+ fields: ImportField[];
48
+ batchSize?: number;
49
+ processBatch: (payload: ImportBatchPayload) => Promise<ImportBatchResult>;
50
+ onComplete?: () => void;
51
+ }
@@ -12,28 +12,28 @@ declare function __VLS_template(): {
12
12
  };
13
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
14
  declare const __VLS_component: import('vue').DefineComponent<InputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
- "update:modelValue": (value: string | number) => any;
16
- change: (value: string | number) => any;
17
15
  blur: (event: FocusEvent) => any;
16
+ change: (value: string | number) => any;
18
17
  focus: (event: FocusEvent) => any;
18
+ "update:modelValue": (value: string | number) => any;
19
19
  "click:icon": (event: MouseEvent) => any;
20
20
  "click:icon-right": (event: MouseEvent) => any;
21
21
  }, string, import('vue').PublicProps, Readonly<InputProps> & Readonly<{
22
- "onUpdate:modelValue"?: (value: string | number) => any;
23
- onChange?: (value: string | number) => any;
24
22
  onBlur?: (event: FocusEvent) => any;
23
+ onChange?: (value: string | number) => any;
25
24
  onFocus?: (event: FocusEvent) => any;
25
+ "onUpdate:modelValue"?: (value: string | number) => any;
26
26
  "onClick:icon"?: (event: MouseEvent) => any;
27
27
  "onClick:icon-right"?: (event: MouseEvent) => any;
28
28
  }>, {
29
- disabled: boolean;
30
- type: import('../types').InputType;
31
- class: string;
32
- size: InputSize;
33
29
  variant: InputVariant;
34
- modelValue: string | number;
30
+ size: InputSize;
35
31
  rounded: InputRounded;
32
+ type: import('../types').InputType;
33
+ class: string;
34
+ disabled: boolean;
36
35
  loading: boolean;
36
+ modelValue: string | number;
37
37
  rows: number;
38
38
  showClearButton: boolean;
39
39
  autofocus: boolean;