vlite3 1.1.2 → 1.1.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 (149) hide show
  1. package/README.md +5 -0
  2. package/components/AttachmentsList/AttachmentsList.vue.d.ts +1 -1
  3. package/components/AttachmentsList/AttachmentsList.vue.js +237 -163
  4. package/components/Avatar.vue.js +1 -1
  5. package/components/AvatarUploader/AvatarUploader.vue.js +40 -37
  6. package/components/Button.vue.js +30 -28
  7. package/components/Carousel/Carousel.vue.d.ts +2 -2
  8. package/components/CategoryManager/CategoryManager.vue.d.ts +10 -2
  9. package/components/CategoryManager/CategoryManager.vue.js +138 -119
  10. package/components/CategoryManager/CategoryNode.vue.d.ts +2 -0
  11. package/components/CategoryManager/CategoryNode.vue.js +93 -88
  12. package/components/Chart/BarChart.vue.d.ts +48 -0
  13. package/components/Chart/CircleChart.vue.d.ts +47 -0
  14. package/components/Chart/LineChart.vue.d.ts +55 -0
  15. package/components/Chart/PieChart.vue.d.ts +49 -0
  16. package/components/Chart/index.d.ts +5 -0
  17. package/components/Chart/types.d.ts +135 -0
  18. package/components/Chart/utils.d.ts +40 -0
  19. package/components/Chat/ChatBubble.vue.js +22 -22
  20. package/components/CheckBox.vue.js +29 -28
  21. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  22. package/components/ColorPicker/ColorPicker.vue.js +2 -2
  23. package/components/Comment/CommentEditor.vue.d.ts +41 -0
  24. package/components/Comment/CommentEditor.vue.js +221 -0
  25. package/components/Comment/CommentEditor.vue2.js +4 -0
  26. package/components/Comment/CommentItem.vue.d.ts +70 -0
  27. package/components/Comment/CommentItem.vue.js +7 -0
  28. package/components/Comment/CommentItem.vue2.js +322 -0
  29. package/components/Comment/CommentThread.vue.d.ts +64 -0
  30. package/components/Comment/CommentThread.vue.js +185 -0
  31. package/components/Comment/CommentThread.vue2.js +4 -0
  32. package/components/Comment/index.d.ts +4 -0
  33. package/components/Comment/types.d.ts +34 -0
  34. package/components/ConfirmationModal.vue.js +30 -28
  35. package/components/CopyButton.vue.d.ts +50 -0
  36. package/components/CopyButton.vue.js +69 -0
  37. package/components/CopyButton.vue2.js +4 -0
  38. package/components/DataTable/DataTable.vue.d.ts +2 -4
  39. package/components/DataTable/DataTable.vue.js +184 -235
  40. package/components/DataTable/DataTableHeader.vue.d.ts +2 -0
  41. package/components/DataTable/DataTableHeader.vue.js +24 -23
  42. package/components/DataTable/DataTableRow.vue.d.ts +2 -0
  43. package/components/DataTable/DataTableRow.vue.js +32 -31
  44. package/components/DataTable/types.d.ts +2 -9
  45. package/components/DatePicker.vue.js +41 -35
  46. package/components/DateRangePicker.vue.js +18 -17
  47. package/components/Dropdown/Dropdown.vue.d.ts +5 -0
  48. package/components/Dropdown/Dropdown.vue.js +141 -137
  49. package/components/Dropdown/DropdownBooleanItem.vue.js +16 -15
  50. package/components/Dropdown/DropdownItem.vue.js +21 -20
  51. package/components/Dropdown/DropdownMenu.vue.js +1 -1
  52. package/components/Dropdown/DropdownMenu.vue2.js +13 -12
  53. package/components/Dropdown/DropdownTrigger.vue.d.ts +4 -0
  54. package/components/Dropdown/DropdownTrigger.vue.js +12 -7
  55. package/components/Dropdown/composables/useDropdownHydration.d.ts +2 -0
  56. package/components/Dropdown/composables/useDropdownSelection.d.ts +1 -0
  57. package/components/Dropdown/composables/useDropdownSelection.js +46 -31
  58. package/components/Empty/Empty.vue.js +7 -5
  59. package/components/Empty/index.d.ts +1 -1
  60. package/components/Empty/variants/Variant12.vue.d.ts +22 -0
  61. package/components/Empty/variants/Variant12.vue.js +35 -0
  62. package/components/Empty/variants/Variant12.vue2.js +4 -0
  63. package/components/FilePicker/FilePicker.vue.js +93 -90
  64. package/components/Footer/Footer.vue.d.ts +3 -0
  65. package/components/Footer/Variant1.vue.d.ts +20 -0
  66. package/components/Footer/Variant2.vue.d.ts +20 -0
  67. package/components/Footer/Variant3.vue.d.ts +12 -0
  68. package/components/Footer/index.d.ts +2 -0
  69. package/components/Footer/types.d.ts +73 -0
  70. package/components/Form/CustomFields.vue.d.ts +2 -0
  71. package/components/Form/CustomFields.vue.js +1 -1
  72. package/components/Form/CustomFields.vue2.js +125 -122
  73. package/components/Form/Form.vue.js +2 -2
  74. package/components/Form/Form.vue2.js +68 -64
  75. package/components/Form/FormField.vue.js +205 -149
  76. package/components/Form/FormFields.vue.js +2 -2
  77. package/components/Form/FormFields.vue2.js +28 -27
  78. package/components/Form/types.d.ts +2 -2
  79. package/components/Form/utils/form.utils.d.ts +3 -3
  80. package/components/Form/utils/form.utils.js +37 -37
  81. package/components/Input.vue.js +64 -62
  82. package/components/Invoice/Invoice.vue.js +9 -7
  83. package/components/Invoice/InvoiceTotals.vue.d.ts +14 -0
  84. package/components/Invoice/InvoiceTotals.vue.js +86 -0
  85. package/components/Invoice/InvoiceTotals.vue2.js +4 -0
  86. package/components/Invoice/InvoiceVariant1.vue.d.ts +3 -1
  87. package/components/Invoice/InvoiceVariant1.vue.js +194 -207
  88. package/components/Invoice/InvoiceVariant2.vue.d.ts +3 -1
  89. package/components/Invoice/InvoiceVariant2.vue.js +109 -118
  90. package/components/Invoice/InvoiceVariant3.vue.d.ts +3 -1
  91. package/components/Invoice/InvoiceVariant3.vue.js +157 -167
  92. package/components/Invoice/InvoiceVariant4.vue.d.ts +3 -1
  93. package/components/Invoice/InvoiceVariant4.vue.js +192 -202
  94. package/components/Invoice/index.d.ts +1 -0
  95. package/components/Invoice/types.d.ts +22 -0
  96. package/components/Masonry/Masonry.vue.d.ts +1 -1
  97. package/components/Modal.vue.js +1 -1
  98. package/components/Modal.vue2.js +60 -54
  99. package/components/MultiSelect/MultiSelect.vue.d.ts +2 -0
  100. package/components/MultiSelect/MultiSelect.vue.js +92 -90
  101. package/components/MultiSelect/composables/useMultiSelectHydration.d.ts +2 -0
  102. package/components/NumberInput.vue.js +2 -2
  103. package/components/NumberInput.vue2.js +127 -121
  104. package/components/PricingPlan/PricingPlan.vue.d.ts +1 -1
  105. package/components/RichTextEditor/RichTextLinkPopover.vue.d.ts +26 -0
  106. package/components/RichTextEditor/RichTextReader.vue.d.ts +7 -0
  107. package/components/RichTextEditor/RichTextToolbar.vue.d.ts +24 -0
  108. package/components/RichTextEditor/composables/useRichTextImageUpload.d.ts +14 -0
  109. package/components/RichTextEditor/composables/useRichTextLinks.d.ts +32 -0
  110. package/components/RichTextEditor/index.d.ts +2 -0
  111. package/components/Screen/Screen.vue.js +45 -46
  112. package/components/Screen/ScreenFilter.vue.js +1 -1
  113. package/components/SidePanel.vue.js +2 -2
  114. package/components/SidePanel.vue2.js +58 -52
  115. package/components/SidebarMenu/SidebarMenu.vue.d.ts +1 -1
  116. package/components/SidebarMenu/SidebarMenu.vue.js +192 -91
  117. package/components/SidebarMenu/SidebarMenu.vue3.js +5 -0
  118. package/components/SidebarMenu/SidebarMenuItem.vue.js +170 -157
  119. package/components/SidebarMenu/types.d.ts +12 -3
  120. package/components/{DataTable/DataTableToolbar.vue.d.ts → Splitter/Splitter.vue.d.ts} +18 -15
  121. package/components/Splitter/Splitter.vue.js +64 -0
  122. package/components/Splitter/Splitter.vue2.js +4 -0
  123. package/components/Splitter/index.d.ts +1 -0
  124. package/components/Stats/StatItem.vue.js +96 -91
  125. package/components/Stats/types.d.ts +1 -0
  126. package/components/StatusChip/status-map.js +34 -2
  127. package/components/Switch.vue.d.ts +6 -1
  128. package/components/Switch.vue.js +61 -24
  129. package/components/TagInput/TagInput.vue.d.ts +187 -0
  130. package/components/TagInput/TagInput.vue.js +113 -0
  131. package/components/TagInput/TagInput.vue2.js +4 -0
  132. package/components/TagInput/index.d.ts +1 -0
  133. package/components/Textarea.vue.js +19 -18
  134. package/components/ThumbnailSelector/ThumbnailSelector.vue.js +2 -2
  135. package/components/ThumbnailSelector/ThumbnailSelector.vue2.js +19 -16
  136. package/components/index.d.ts +4 -0
  137. package/core/config.d.ts +54 -0
  138. package/index.d.ts +4 -0
  139. package/index.js +300 -285
  140. package/package.json +1 -1
  141. package/style.css +657 -6
  142. package/types/button.d.ts +1 -1
  143. package/types/config.type.d.ts +2 -0
  144. package/types/styles.d.ts +1 -0
  145. package/utils/functions.js +9 -9
  146. package/components/DataTable/DataTableToolbar.vue.js +0 -60
  147. package/components/DataTable/DataTableToolbar.vue2.js +0 -4
  148. package/components/SidebarMenu/SidebarMenu.vue2.js +0 -4
  149. /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
package/types/button.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type ButtonVariant = 'primary' | 'primary-light' | 'secondary' | 'danger' | 'danger-light' | 'warning' | 'warning-light' | 'info' | 'info-light' | 'success' | 'success-light' | 'outline' | 'outline-floating' | 'outline-primary' | 'outline-danger' | 'outline-warning' | 'outline-info' | 'outline-success' | 'ghost' | 'link';
1
+ export type ButtonVariant = 'primary' | 'primary-light' | 'secondary' | 'danger' | 'danger-light' | 'warning' | 'warning-light' | 'info' | 'info-light' | 'success' | 'success-light' | 'outline' | 'outline-floating' | 'outline-primary' | 'outline-danger' | 'outline-warning' | 'outline-info' | 'outline-success' | 'ghost' | 'transparent' | 'link';
2
2
  export type ButtonSize = 'xs' | 'sm' | 'sm2' | 'md' | 'lg' | 'xl';
3
3
  export type ButtonRounded = 'none' | 'sm' | 'sm2' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
4
4
  export interface ButtonProps {
@@ -4,6 +4,7 @@ import { ChipVariant } from '../components/Chip/types';
4
4
  import { AttachmentsListProps } from '../components/AttachmentsList/types';
5
5
  import { ListProps } from './list.type';
6
6
  import { InvoiceProps } from '../components/Invoice/types';
7
+ import { FooterProps } from '../components/Footer/types';
7
8
  /**
8
9
  * Interface for the file upload handler function.
9
10
  * This allows users to replace the default upload logic with their own API.
@@ -100,5 +101,6 @@ export interface VLiteConfig {
100
101
  attachmentsList?: Omit<AttachmentsListProps, 'attachments'>;
101
102
  list?: Omit<ListProps, 'fields' | 'data'>;
102
103
  invoice?: Omit<InvoiceProps, 'data'>;
104
+ footer?: Omit<FooterProps, 'data'>;
103
105
  };
104
106
  }
package/types/styles.d.ts CHANGED
@@ -9,6 +9,7 @@ export type IDropdownOption = {
9
9
  description?: string;
10
10
  descriptionI18n?: string;
11
11
  icon?: string;
12
+ badge?: string;
12
13
  emoji?: string;
13
14
  disabled?: Boolean;
14
15
  iconClass?: string;
@@ -59,9 +59,9 @@ const P = (t) => typeof t != "string" ? "" : t.normalize("NFD").replace(/[\u0300
59
59
  const o = t.slice(0, n), s = o.lastIndexOf(" ");
60
60
  return (s > 0 ? o.slice(0, s) : o) + r;
61
61
  }, E = (t, e = "en-US", r) => {
62
- if (!Number.isFinite(t)) return "";
62
+ if (console.log("amount", t), !Number.isFinite(t)) return "";
63
63
  const n = r || m?.components?.price?.currency || "USD";
64
- return new Intl.NumberFormat(e, {
64
+ return console.log("resolvedCurrency", n), new Intl.NumberFormat(e, {
65
65
  style: "currency",
66
66
  currency: n
67
67
  }).format(t);
@@ -80,7 +80,7 @@ const P = (t) => typeof t != "string" ? "" : t.normalize("NFD").replace(/[\u0300
80
80
  } catch {
81
81
  return !1;
82
82
  }
83
- }, R = (t = "month", e, r = i()) => {
83
+ }, v = (t = "month", e, r = i()) => {
84
84
  let n = r, o, s = r;
85
85
  switch (["week", "month", "3-months", "6-months", "year"].includes(t) && r.date() <= 7 && (s = r.subtract(1, "month")), t) {
86
86
  case "last-week":
@@ -119,7 +119,7 @@ const P = (t) => typeof t != "string" ? "" : t.normalize("NFD").replace(/[\u0300
119
119
  if (!e || !r) return t;
120
120
  const n = i().hour(Number(e)).minute(Number(r));
121
121
  return n.isValid() ? n.format("hh:mm A") : t;
122
- }, U = (t, e, r) => {
122
+ }, R = (t, e, r) => {
123
123
  const n = m?.components?.datetime?.format || "MMM DD, YYYY", o = t ? i(t).format(n) : "";
124
124
  let s = e;
125
125
  if (e) {
@@ -131,7 +131,7 @@ const P = (t) => typeof t != "string" ? "" : t.normalize("NFD").replace(/[\u0300
131
131
  }
132
132
  let a = r;
133
133
  return r && (a = S(r)), !e && !r ? o : o ? `${o} • ${s} - ${a}` : `${s} - ${a}`;
134
- }, V = (t) => i(t || void 0).toISOString(), v = (t) => i(t || void 0).format("YYYY-MM-DDTHH:mm:ss.SSSZ"), L = () => i().toISOString(), x = () => i().subtract(1, "day").toISOString(), T = () => i().add(1, "day").toISOString(), z = (t = 7) => i().add(t, "day").toISOString(), H = () => i().add(1, "month").toISOString(), B = () => i().subtract(1, "month").toISOString(), G = () => i().toISOString(), X = () => i().add(1, "year").toISOString(), _ = () => i().subtract(1, "year").toISOString(), h = /^([01]?\d|2[0-3]):([0-5]\d)(:([0-5]\d))?$/, g = /^(0?[1-9]|1[0-2]):([0-5]\d)(:([0-5]\d))?\s*(AM|PM|am|pm)$/, f = (t) => {
134
+ }, U = (t) => i(t || void 0).toISOString(), V = (t) => i(t || void 0).format("YYYY-MM-DDTHH:mm:ss.SSSZ"), L = () => i().toISOString(), x = () => i().subtract(1, "day").toISOString(), T = () => i().add(1, "day").toISOString(), z = (t = 7) => i().add(t, "day").toISOString(), H = () => i().add(1, "month").toISOString(), B = () => i().subtract(1, "month").toISOString(), G = () => i().toISOString(), X = () => i().add(1, "year").toISOString(), _ = () => i().subtract(1, "year").toISOString(), h = /^([01]?\d|2[0-3]):([0-5]\d)(:([0-5]\d))?$/, g = /^(0?[1-9]|1[0-2]):([0-5]\d)(:([0-5]\d))?\s*(AM|PM|am|pm)$/, f = (t) => {
135
135
  const e = t.trim();
136
136
  return h.test(e) || g.test(e);
137
137
  }, q = (t, e, r) => {
@@ -184,8 +184,8 @@ export {
184
184
  S as formatAmPm,
185
185
  E as formatCurrency,
186
186
  q as formatDate,
187
- U as formatSchedule,
188
- R as getDefaultDateRange,
187
+ R as formatSchedule,
188
+ v as getDefaultDateRange,
189
189
  H as getNextMonth,
190
190
  X as getNextYear,
191
191
  B as getPrevMonth,
@@ -205,7 +205,7 @@ export {
205
205
  p as removeExtraProperties,
206
206
  P as slugify,
207
207
  N as throttle,
208
- V as toISO,
209
- v as toLocalISO,
208
+ U as toISO,
209
+ V as toLocalISO,
210
210
  C as truncate
211
211
  };
@@ -1,60 +0,0 @@
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
- import g from "../Input.vue.js";
3
- /* empty css */
4
- import { $t as i } from "../../utils/i18n.js";
5
- const w = {
6
- key: 0,
7
- class: "flex items-center gap-3 mr-auto"
8
- }, $ = { class: "ml-auto" }, k = { class: "flex items-center gap-3" }, _ = /* @__PURE__ */ V({
9
- __name: "DataTableToolbar",
10
- props: {
11
- modelValue: { default: "" },
12
- showSearch: { type: Boolean, default: !0 },
13
- placeholder: {},
14
- placeholderI18n: {},
15
- class: { default: "" },
16
- searchClass: { default: "" }
17
- },
18
- emits: ["update:modelValue"],
19
- setup(a, { emit: h }) {
20
- const l = a, p = h, r = d({
21
- get: () => l.modelValue,
22
- set: (e) => p("update:modelValue", e)
23
- }), f = d(() => {
24
- if (l.placeholderI18n) return i(l.placeholderI18n);
25
- if (l.placeholder) return l.placeholder;
26
- const e = i("vlite.dataTable.searchPlaceholder");
27
- return e !== "vlite.dataTable.searchPlaceholder" ? e : "Search...";
28
- });
29
- return (e, c) => (t(), o("div", {
30
- class: n(["flex flex-col sm:flex-row items-center gap-4 p-1", l.class])
31
- }, [
32
- e.$slots?.left ? (t(), o("div", w, [
33
- s(e.$slots, "left")
34
- ])) : u("", !0),
35
- m("div", $, [
36
- s(e.$slots, "delete")
37
- ]),
38
- a.showSearch ? (t(), o("div", {
39
- key: 1,
40
- class: n(["w-full sm:w-72!", a.searchClass])
41
- }, [
42
- b(g, {
43
- modelValue: r.value,
44
- "onUpdate:modelValue": c[0] || (c[0] = (v) => r.value = v),
45
- placeholder: f.value,
46
- icon: "lucide:search",
47
- variant: "outline",
48
- class: "bg-background",
49
- "show-clear-button": !0
50
- }, null, 8, ["modelValue", "placeholder"])
51
- ], 2)) : u("", !0),
52
- m("div", k, [
53
- s(e.$slots, "right")
54
- ])
55
- ], 2));
56
- }
57
- });
58
- export {
59
- _ as default
60
- };
@@ -1,4 +0,0 @@
1
- import f from "./DataTableToolbar.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import f from "./SidebarMenu.vue.js";
2
- export {
3
- f as default
4
- };