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,6 +1,6 @@
1
- import { defineComponent as a, openBlock as l, createBlock as t, normalizeClass as o } from "vue";
1
+ import { defineComponent as t, openBlock as a, createBlock as l, mergeProps as o } from "vue";
2
2
  import n from "../Button.vue.js";
3
- const s = /* @__PURE__ */ a({
3
+ const s = /* @__PURE__ */ t({
4
4
  __name: "DropdownTrigger",
5
5
  props: {
6
6
  selectedLabel: { default: "" },
@@ -8,17 +8,19 @@ const s = /* @__PURE__ */ a({
8
8
  isOpen: { type: Boolean },
9
9
  disabled: { type: Boolean, default: !1 },
10
10
  className: {},
11
- direction: { default: "ltr" }
11
+ direction: { default: "ltr" },
12
+ triggerProps: {}
12
13
  },
13
14
  setup(e) {
14
- return (i, d) => (l(), t(n, {
15
+ return (r, i) => (a(), l(n, o({
15
16
  text: e.selectedLabel || e.placeholder,
16
17
  iconRight: "iconamoon:arrow-down-2",
17
18
  variant: "outline",
18
19
  disabled: e.disabled,
19
- dir: e.direction,
20
- class: o(["w-full justify-between! font-normal", e.className])
21
- }, null, 8, ["text", "disabled", "dir", "class"]));
20
+ dir: e.direction
21
+ }, e.triggerProps, {
22
+ class: ["w-full justify-between! font-normal", e.className]
23
+ }), null, 16, ["text", "disabled", "dir", "class"]));
22
24
  }
23
25
  });
24
26
  export {
@@ -0,0 +1,16 @@
1
+ import { ExportDataProps, ExportFormat } from './types';
2
+ declare const _default: import('vue').DefineComponent<ExportDataProps, {
3
+ exportData: (format: ExportFormat, close?: () => void) => Promise<void>;
4
+ availableFormats: import('vue').ComputedRef<{
5
+ label: string;
6
+ value: ExportFormat;
7
+ icon: string;
8
+ }[]>;
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExportDataProps> & Readonly<{}>, {
10
+ title: string;
11
+ mode: "frontend" | "backend";
12
+ formats: ExportFormat[];
13
+ buttonText: string;
14
+ buttonIcon: string;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ export default _default;
@@ -0,0 +1,135 @@
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";
5
+ import w from "../Button.vue.js";
6
+ import I from "../Modal.vue.js";
7
+ import O from "../Icon.vue.js";
8
+ import { showToast as d } from "../../composables/useNotifications.js";
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({
11
+ __name: "ExportData",
12
+ props: {
13
+ data: {},
14
+ title: { default: "Export Data" },
15
+ fields: {},
16
+ formats: { default: () => ["excel", "csv", "json"] },
17
+ filename: {},
18
+ buttonText: { default: "Export" },
19
+ buttonIcon: { default: "lucide:download" },
20
+ mode: { default: "frontend" },
21
+ onExport: {}
22
+ },
23
+ setup(n, { expose: D }) {
24
+ const a = n, l = (r, e, t) => {
25
+ const o = t ? E(r, t) : E(r);
26
+ return o !== r ? o : e;
27
+ }, S = (r, e) => {
28
+ if (!(!r || !e))
29
+ return e.includes(".") ? e.split(".").reduce((t, o) => t?.[o], r) : r[e];
30
+ }, h = k(() => [
31
+ { label: "Excel (.xlsx)", value: "excel", icon: "lucide:file-spreadsheet" },
32
+ { label: "CSV (.csv)", value: "csv", icon: "lucide:file-text" },
33
+ { label: "JSON (.json)", value: "json", icon: "lucide:file-json" }
34
+ ].filter((e) => a.formats.includes(e.value))), $ = () => a.data.map((r) => {
35
+ const e = {};
36
+ return a.fields.forEach((t) => {
37
+ const o = S(r, t.field);
38
+ t.format ? e[t.title] = t.format(o, r) : e[t.title] = o ?? "";
39
+ }), e;
40
+ }), p = async (r, e) => {
41
+ if (a.mode === "backend" && a.onExport)
42
+ try {
43
+ await a.onExport(r), e && e();
44
+ return;
45
+ } catch (t) {
46
+ console.error("Backend export error:", t), d(l("vlite.exportData.error", "An error occurred while exporting data."), "error");
47
+ return;
48
+ }
49
+ if (!a.data || a.data.length === 0) {
50
+ d(l("vlite.exportData.noData", "No data available to export."), "warning");
51
+ return;
52
+ }
53
+ try {
54
+ const t = a.filename ? a.filename : `${a.title.toLowerCase().replace(/\s+/g, "-")}-${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}`, o = $();
55
+ switch (r) {
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`);
61
+ break;
62
+ }
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`);
66
+ break;
67
+ }
68
+ case "json": {
69
+ const s = JSON.stringify(o, null, 2), c = new Blob([s], { type: "application/json" });
70
+ b.saveAs(c, `${t}.json`);
71
+ break;
72
+ }
73
+ }
74
+ d(
75
+ l("vlite.exportData.success", `Data exported successfully as ${r.toUpperCase()}`, {
76
+ format: r.toUpperCase()
77
+ }),
78
+ "success"
79
+ ), e && e();
80
+ } catch (t) {
81
+ console.error("Export error:", t), d(l("vlite.exportData.error", "An error occurred while exporting data."), "error");
82
+ }
83
+ }, B = k(() => l("vlite.exportData.selectFormat", "Select Export Format"));
84
+ return D({
85
+ exportData: p,
86
+ availableFormats: h
87
+ }), (r, e) => (i(), g("div", null, [
88
+ n.formats.length === 1 ? (i(), m(w, {
89
+ key: 0,
90
+ text: n.buttonText,
91
+ icon: n.buttonIcon,
92
+ variant: "outline",
93
+ onClick: e[0] || (e[0] = (t) => p(n.formats[0]))
94
+ }, null, 8, ["text", "icon"])) : (i(), m(I, {
95
+ key: 1,
96
+ title: n.title,
97
+ "max-width": "sm:max-w-[400px]"
98
+ }, {
99
+ trigger: f(() => [
100
+ F(w, {
101
+ text: n.buttonText,
102
+ icon: n.buttonIcon,
103
+ variant: "outline"
104
+ }, null, 8, ["text", "icon"])
105
+ ]),
106
+ default: f(({ close: t }) => [
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, {
111
+ key: o.value,
112
+ variant: "outline",
113
+ class: "w-full flex items-center justify-start gap-3 h-12",
114
+ onClick: (s) => p(o.value, t)
115
+ }, {
116
+ default: f(() => [
117
+ F(O, {
118
+ icon: o.icon,
119
+ class: "text-muted-foreground h-5 w-5"
120
+ }, null, 8, ["icon"]),
121
+ u("span", null, y(o.label), 1)
122
+ ]),
123
+ _: 2
124
+ }, 1032, ["onClick"]))), 128))
125
+ ])
126
+ ])
127
+ ]),
128
+ _: 1
129
+ }, 8, ["title"]))
130
+ ]));
131
+ }
132
+ });
133
+ export {
134
+ R as default
135
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ExportData.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,2 @@
1
+ export { default as ExportData } from './ExportData.vue';
2
+ export * from './types';
@@ -0,0 +1,17 @@
1
+ export interface ExportField {
2
+ field: string;
3
+ title: string;
4
+ format?: (value: any, row: any) => any;
5
+ }
6
+ export type ExportFormat = 'excel' | 'csv' | 'json';
7
+ export interface ExportDataProps {
8
+ data: any[];
9
+ title?: string;
10
+ fields: ExportField[];
11
+ formats?: ExportFormat[];
12
+ filename?: string;
13
+ buttonText?: string;
14
+ buttonIcon?: string;
15
+ mode?: 'frontend' | 'backend';
16
+ onExport?: (format: ExportFormat) => Promise<void> | void;
17
+ }
@@ -39,21 +39,21 @@ declare function __VLS_template(): {
39
39
  };
40
40
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
41
41
  declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
42
- "update:modelValue": (value: FilePickerValue | FilePickerValue[]) => any;
43
42
  change: (value: FilePickerValue | FilePickerValue[]) => any;
44
43
  error: (error: string) => any;
44
+ "update:modelValue": (value: FilePickerValue | FilePickerValue[]) => any;
45
45
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
46
- "onUpdate:modelValue"?: (value: FilePickerValue | FilePickerValue[]) => any;
47
46
  onChange?: (value: FilePickerValue | FilePickerValue[]) => any;
48
47
  onError?: (error: string) => any;
48
+ "onUpdate:modelValue"?: (value: FilePickerValue | FilePickerValue[]) => any;
49
49
  }>, {
50
- disabled: boolean;
51
- size: InputSize;
52
50
  variant: "dropzone" | "input";
53
- modelValue: FilePickerValue | FilePickerValue[] | null;
51
+ size: InputSize;
54
52
  rounded: InputRounded;
53
+ disabled: boolean;
55
54
  loading: boolean;
56
55
  multiSelect: boolean;
56
+ modelValue: FilePickerValue | FilePickerValue[] | null;
57
57
  fileTypes: string[];
58
58
  returnFormat: "file" | "base64";
59
59
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
@@ -20,19 +20,19 @@ interface Props {
20
20
  isUpdate?: boolean;
21
21
  }
22
22
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
23
- "update:modelValue": (value: Record<string, any>[]) => any;
24
23
  change: (value: Record<string, any>[]) => any;
24
+ "update:modelValue": (value: Record<string, any>[]) => any;
25
25
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
26
- "onUpdate:modelValue"?: (value: Record<string, any>[]) => any;
27
26
  onChange?: (value: Record<string, any>[]) => any;
27
+ "onUpdate:modelValue"?: (value: Record<string, any>[]) => any;
28
28
  }>, {
29
- disabled: boolean;
30
- size: InputSize;
31
29
  variant: InputVariant;
32
- modelValue: Record<string, any>[];
30
+ size: InputSize;
33
31
  rounded: InputRounded;
34
- headers: string[];
32
+ disabled: boolean;
35
33
  isUpdate: boolean;
34
+ modelValue: Record<string, any>[];
35
+ headers: string[];
36
36
  minRows: number;
37
37
  addButtonText: string;
38
38
  showRowNumbers: boolean;
@@ -1,7 +1,7 @@
1
1
  import o from "./CustomFields.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2969f70d"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c9831df1"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -46,6 +46,8 @@ interface Props {
46
46
  timelineTextPosition?: TimelineTextPosition;
47
47
  /** Fields to explicitly include in the submit payload */
48
48
  emitFields?: string[];
49
+ /** Show asterisk for required fields */
50
+ showRequiredAsterisk?: boolean;
49
51
  }
50
52
  declare function __VLS_template(): {
51
53
  attrs: Partial<{}>;
@@ -75,16 +77,13 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
75
77
  values: Record<string, any>;
76
78
  footer: boolean;
77
79
  class: string;
78
- size: InputSize;
79
- variant: InputVariant;
80
- rounded: InputRounded;
81
80
  loading: boolean;
81
+ isUpdate: boolean;
82
+ folderId: string;
82
83
  className: string;
83
84
  headerClass: string;
84
85
  footerClass: string;
85
86
  cancelText: string;
86
- isUpdate: boolean;
87
- folderId: string;
88
87
  groupsHeadings: string[];
89
88
  groupHeadingsDescription: string[];
90
89
  submitText: string;
@@ -1,7 +1,7 @@
1
1
  import o from "./Form.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a67bf34e"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-655cd96c"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };