vlite3 1.4.35 → 1.4.39

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 (50) hide show
  1. package/components/Badge.vue.js +5 -5
  2. package/components/Badge.vue3.js +5 -0
  3. package/components/CategoryManager/CategoryManager.vue2.js +6 -5
  4. package/components/Chip/Chip.vue.js +21 -21
  5. package/components/Chip/Chip.vue3.js +5 -0
  6. package/components/Comment/CommentItem.vue2.js +3 -2
  7. package/components/DataTable/DataTable.vue.d.ts +4 -1
  8. package/components/DataTable/DataTable.vue.js +317 -203
  9. package/components/DataTable/DataTableRow.vue.d.ts +21 -0
  10. package/components/DataTable/DataTableRow.vue.js +140 -73
  11. package/components/DataTable/types.d.ts +30 -0
  12. package/components/DataTable/useDataTableTree.d.ts +25 -0
  13. package/components/DataTable/useDataTableTree.js +147 -0
  14. package/components/FileTree/FileTree.vue.d.ts +3 -1
  15. package/components/FileTree/FileTree.vue.js +1 -1
  16. package/components/FileTree/FileTree.vue2.js +148 -105
  17. package/components/FileTree/FileTreeNode.vue.d.ts +15 -5
  18. package/components/FileTree/FileTreeNode.vue.js +149 -182
  19. package/components/Form/{AccordionView.vue.js → AccordionView.vue2.js} +1 -1
  20. package/components/Form/Form.vue2.js +45 -43
  21. package/components/Form/index.vue2.js +1 -1
  22. package/components/ImportData/ImportData.vue.js +4 -2
  23. package/components/Invoice/InvoiceVariant1.vue.js +3 -2
  24. package/components/Invoice/InvoiceVariant2.vue.js +3 -2
  25. package/components/Invoice/InvoiceVariant3.vue.js +3 -2
  26. package/components/Invoice/InvoiceVariant4.vue.js +3 -2
  27. package/components/MultiSelect/MultiSelect.vue.js +3 -2
  28. package/components/PricingPlan/PricingPlanItem.vue.js +10 -9
  29. package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
  30. package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
  31. package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
  32. package/components/Screen/ScreenFilter.vue.js +21 -20
  33. package/components/StatusChip/StatusChip.vue.js +8 -7
  34. package/components/StatusChip/StatusChip.vue3.js +5 -0
  35. package/components/Timeline/TimelineItem.vue.js +3 -2
  36. package/components/TreeConnectors/TreeConnectors.vue.d.ts +27 -0
  37. package/components/TreeConnectors/TreeConnectors.vue.js +53 -0
  38. package/components/TreeConnectors/TreeConnectors.vue2.js +4 -0
  39. package/components/TreeConnectors/geometry.d.ts +90 -0
  40. package/components/TreeConnectors/geometry.js +137 -0
  41. package/components/TreeConnectors/index.d.ts +3 -0
  42. package/components/index.d.ts +1 -0
  43. package/index.js +473 -470
  44. package/package.json +1 -1
  45. package/style.css +15 -1
  46. package/components/Badge.vue2.js +0 -4
  47. package/components/Chip/Chip.vue2.js +0 -4
  48. package/components/StatusChip/StatusChip.vue2.js +0 -4
  49. /package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover.vue2.js} +0 -0
  50. /package/components/RichTextEditor/{RichTextToolbar.vue.js → RichTextToolbar.vue2.js} +0 -0
@@ -1,5 +1,5 @@
1
- import { defineComponent as b, computed as d, openBlock as a, createElementBlock as u, normalizeClass as i, renderSlot as c } from "vue";
2
- const p = /* @__PURE__ */ b({
1
+ import { defineComponent as l, computed as d, openBlock as b, createElementBlock as u, normalizeClass as i, renderSlot as c } from "vue";
2
+ const p = /* @__PURE__ */ l({
3
3
  __name: "Badge",
4
4
  props: {
5
5
  variant: { default: "default" },
@@ -14,7 +14,7 @@ const p = /* @__PURE__ */ b({
14
14
  sm: "px-2 h-5 text-xs font-medium",
15
15
  md: "px-2.5 h-6 text-xs font-semibold",
16
16
  lg: "px-2.5 h-7 text-sm font-semibold"
17
- }, l = `inline-flex items-center ${e.rounded === "none" ? "rounded-none" : `rounded-${e.rounded}`} border ${r[e.size] || r.md} focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`, t = {
17
+ }, a = `badge scrollbar-hide inline-flex w-max max-w-none shrink-0 items-center overflow-x-auto overflow-y-hidden whitespace-nowrap ${e.rounded === "none" ? "rounded-none" : `rounded-${e.rounded}`} border ${r[e.size] || r.md} focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`, t = {
18
18
  default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
19
19
  outline: "text-foreground border-border",
20
20
  /* Base Semantics */
@@ -31,9 +31,9 @@ const p = /* @__PURE__ */ b({
31
31
  pink: "border-pink-subtle-border bg-pink-subtle text-pink-subtle-fg hover:opacity-80",
32
32
  cyan: "border-cyan-subtle-border bg-cyan-subtle text-cyan-subtle-fg hover:opacity-80"
33
33
  };
34
- return [l, t[e.variant] || t.default, e.class].join(" ");
34
+ return [a, t[e.variant] || t.default, e.class].join(" ");
35
35
  });
36
- return (r, n) => (a(), u("div", {
36
+ return (r, n) => (b(), u("div", {
37
37
  class: i(s.value)
38
38
  }, [
39
39
  c(r.$slots, "default")
@@ -0,0 +1,5 @@
1
+ import o from "./Badge.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -13,6 +13,7 @@ import "v-tooltip-lite";
13
13
  import "v-tooltip-lite/style.css";
14
14
  /* empty css */
15
15
  /* empty css */
16
+ /* empty css */
16
17
  import "v-datepicker-lite";
17
18
  import "v-datepicker-lite/style.css";
18
19
  /* empty css */
@@ -21,11 +22,11 @@ import "@vueuse/core";
21
22
  /* empty css */
22
23
  import qe from "../IconPicker.vue.js";
23
24
  /* empty css */
24
- /* empty css */
25
+ /* empty css */
25
26
  /* empty css */
26
27
  /* empty css */
27
- /* empty css */
28
- /* empty css */
28
+ /* empty css */
29
+ /* empty css */
29
30
  import "../../core/config.js";
30
31
  /* empty css */
31
32
  /* empty css */
@@ -47,7 +48,7 @@ const Ue = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
47
48
  }, Le = {
48
49
  key: 0,
49
50
  class: "absolute inset-0 z-10 flex items-center justify-center rounded-xl bg-background/60 backdrop-blur-[1px] transition-opacity"
50
- }, We = { class: "flex items-center gap-2 text-sm text-muted-foreground" }, Pt = /* @__PURE__ */ Me({
51
+ }, We = { class: "flex items-center gap-2 text-sm text-muted-foreground" }, Et = /* @__PURE__ */ Me({
51
52
  __name: "CategoryManager",
52
53
  props: {
53
54
  modelValue: { default: () => [] },
@@ -496,5 +497,5 @@ const Ue = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
496
497
  }
497
498
  });
498
499
  export {
499
- Pt as default
500
+ Et as default
500
501
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as C, computed as l, openBlock as n, createElementBlock as d, normalizeClass as u, renderSlot as b, createBlock as f, createCommentVNode as c, createTextVNode as z, toDisplayString as B, withCtx as D, createVNode as I } from "vue";
1
+ import { defineComponent as C, computed as l, openBlock as n, createElementBlock as d, normalizeClass as i, renderSlot as b, createBlock as f, createCommentVNode as c, createTextVNode as z, toDisplayString as B, withCtx as D, createVNode as I } from "vue";
2
2
  import g from "../Icon.vue.js";
3
3
  import S from "../Button.vue.js";
4
4
  import { $t as N } from "../../utils/i18n.js";
5
5
  const V = ["role", "tabindex"], j = {
6
6
  key: 0,
7
- class: "truncate"
8
- }, E = "inline-flex items-center justify-center font-medium rounded-full transition-all duration-200 border box-border whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary", q = /* @__PURE__ */ C({
7
+ class: "whitespace-nowrap"
8
+ }, E = "chip scrollbar-hide inline-flex w-max max-w-none shrink-0 items-center justify-center overflow-x-auto overflow-y-hidden font-medium rounded-full transition-all duration-200 border box-border whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary", q = /* @__PURE__ */ C({
9
9
  __name: "Chip",
10
10
  props: {
11
11
  variant: { default: "subtle" },
@@ -20,12 +20,12 @@ const V = ["role", "tabindex"], j = {
20
20
  },
21
21
  emits: ["click", "delete"],
22
22
  setup(a, { emit: v }) {
23
- const e = a, s = v, o = l(() => e.textI18n ? N(e.textI18n) : e.text), r = l(() => e.clickable && !e.disabled), p = (t) => {
24
- e.disabled || e.clickable && s("click", t);
25
- }, m = (t) => {
26
- e.disabled || (t.stopPropagation(), s("delete", t));
23
+ const e = a, o = v, s = l(() => e.textI18n ? N(e.textI18n) : e.text), r = l(() => e.clickable && !e.disabled), p = (t) => {
24
+ e.disabled || e.clickable && o("click", t);
27
25
  }, h = (t) => {
28
- e.disabled || !e.clickable && !e.deletable || ((t.key === "Enter" || t.key === " ") && (t.preventDefault(), e.clickable && s("click", t)), (t.key === "Backspace" || t.key === "Delete") && e.deletable && (t.preventDefault(), s("delete", t)));
26
+ e.disabled || (t.stopPropagation(), o("delete", t));
27
+ }, m = (t) => {
28
+ e.disabled || !e.clickable && !e.deletable || ((t.key === "Enter" || t.key === " ") && (t.preventDefault(), e.clickable && o("click", t)), (t.key === "Backspace" || t.key === "Delete") && e.deletable && (t.preventDefault(), o("delete", t)));
29
29
  }, x = l(() => {
30
30
  switch (e.size) {
31
31
  case "small":
@@ -38,7 +38,7 @@ const V = ["role", "tabindex"], j = {
38
38
  }), y = l(() => {
39
39
  if (e.disabled)
40
40
  return "bg-muted text-muted-foreground border-transparent opacity-50 cursor-not-allowed";
41
- const t = r.value ? "cursor-pointer hover:shadow-sm active:scale-[0.98]" : "cursor-default", i = {
41
+ const t = r.value ? "cursor-pointer hover:shadow-sm active:scale-[0.98]" : "cursor-default", u = {
42
42
  solid: `bg-primary text-primary-fg border-transparent ${r.value ? "hover:bg-primary/90" : ""}`,
43
43
  outline: `bg-transparent border-input text-foreground ${r.value ? "hover:bg-accent hover:text-accent-foreground" : ""}`,
44
44
  ghost: `bg-transparent border-transparent text-muted-foreground ${r.value ? "hover:bg-accent hover:text-accent-foreground" : ""}`,
@@ -58,8 +58,8 @@ const V = ["role", "tabindex"], j = {
58
58
  cyan: `bg-cyan-subtle text-cyan-subtle-fg border-cyan-subtle-border ${r.value ? "hover:opacity-80" : ""}`,
59
59
  blue: `bg-blue-200/40 text-blue-600 dark:text-blue-700 border-blue-200 ${r.value ? "hover:opacity-80" : ""}`
60
60
  };
61
- return `${i[e.variant] || i.subtle} ${t}`;
62
- }), k = l(() => [E, x.value, y.value, e.class].join(" ")), $ = l(() => {
61
+ return `${u[e.variant] || u.subtle} ${t}`;
62
+ }), k = l(() => [E, x.value, y.value, e.class].join(" ")), w = l(() => {
63
63
  switch (e.size) {
64
64
  case "small":
65
65
  return "h-3 w-3";
@@ -68,7 +68,7 @@ const V = ["role", "tabindex"], j = {
68
68
  default:
69
69
  return "h-3.5 w-3.5";
70
70
  }
71
- }), w = l(() => {
71
+ }), $ = l(() => {
72
72
  switch (e.size) {
73
73
  case "small":
74
74
  return "h-2.5 w-2.5";
@@ -78,23 +78,23 @@ const V = ["role", "tabindex"], j = {
78
78
  return "h-3 w-3";
79
79
  }
80
80
  });
81
- return (t, i) => (n(), d("div", {
82
- class: u(k.value),
81
+ return (t, u) => (n(), d("div", {
82
+ class: i(k.value),
83
83
  role: a.clickable ? "button" : "status",
84
84
  tabindex: r.value || a.deletable ? 0 : void 0,
85
85
  onClick: p,
86
- onKeydown: h
86
+ onKeydown: m
87
87
  }, [
88
88
  b(t.$slots, "icon", {}, () => [
89
89
  a.icon ? (n(), f(g, {
90
90
  key: 0,
91
91
  icon: a.icon,
92
- class: u([$.value, "shrink-0", o.value ? "-ml-0.5" : ""])
92
+ class: i([w.value, "shrink-0", s.value ? "-ml-0.5" : ""])
93
93
  }, null, 8, ["icon", "class"])) : c("", !0)
94
94
  ]),
95
- o.value || t.$slots.default ? (n(), d("span", j, [
95
+ s.value || t.$slots.default ? (n(), d("span", j, [
96
96
  b(t.$slots, "default", {}, () => [
97
- z(B(o.value), 1)
97
+ z(B(s.value), 1)
98
98
  ])
99
99
  ])) : c("", !0),
100
100
  a.deletable ? (n(), f(S, {
@@ -103,13 +103,13 @@ const V = ["role", "tabindex"], j = {
103
103
  size: "xs",
104
104
  rounded: "full",
105
105
  disabled: a.disabled,
106
- class: u(["ml-auto p-0.5! h-auto! w-auto! hover:bg-[#8282823c]", [o.value ? a.size === "small" ? "-mr-0.5" : "-mr-1" : ""]]),
107
- onClick: m
106
+ class: i(["ml-auto p-0.5! h-auto! w-auto! hover:bg-[#8282823c]", [s.value ? a.size === "small" ? "-mr-0.5" : "-mr-1" : ""]]),
107
+ onClick: h
108
108
  }, {
109
109
  default: D(() => [
110
110
  I(g, {
111
111
  icon: "lucide:x",
112
- class: u(w.value)
112
+ class: i($.value)
113
113
  }, null, 8, ["class"])
114
114
  ]),
115
115
  _: 1
@@ -0,0 +1,5 @@
1
+ import o from "./Chip.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -3,6 +3,7 @@ import { $t as k } from "../../utils/i18n.js";
3
3
  import O from "../Avatar.vue.js";
4
4
  import T from "../Button.vue.js";
5
5
  import Q from "../Badge.vue.js";
6
+ /* empty css */
6
7
  import W from "../AttachmentsList/AttachmentsList.vue.js";
7
8
  import E from "./CommentEditor.vue.js";
8
9
  const X = { class: "vl-comment flex w-full relative" }, Y = { class: "flex flex-col items-center mr-4 shrink-0" }, Z = {
@@ -35,7 +36,7 @@ const X = { class: "vl-comment flex w-full relative" }, Y = { class: "flex flex-
35
36
  }, se = ["disabled"], ue = { key: 0 }, fe = {
36
37
  key: 1,
37
38
  class: "flex items-center gap-2"
38
- }, ke = /* @__PURE__ */ F({
39
+ }, Te = /* @__PURE__ */ F({
39
40
  __name: "CommentItem",
40
41
  props: {
41
42
  comment: {},
@@ -318,5 +319,5 @@ const X = { class: "vl-comment flex w-full relative" }, Y = { class: "flex flex-
318
319
  }
319
320
  });
320
321
  export {
321
- ke as default
322
+ Te as default
322
323
  };
@@ -1,4 +1,4 @@
1
- import { DataTableProps, SelectionState, RowClickPayload, TableState, TableHeader } from './types';
1
+ import { DataTableProps, SelectionState, RowClickPayload, TableState, TableHeader, ExpandPayload } from './types';
2
2
  declare function __VLS_template(): {
3
3
  attrs: Partial<{}>;
4
4
  slots: Partial<Record<string, (_: {
@@ -19,6 +19,7 @@ declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {},
19
19
  delete: (rows: any[]) => any;
20
20
  change: (state: TableState) => any;
21
21
  "update:itemsPerPage": (value: number) => any;
22
+ expand: (payload: ExpandPayload) => any;
22
23
  rowClick: (payload: RowClickPayload) => any;
23
24
  "update:selectedRows": (value: any[]) => any;
24
25
  }, string, import('vue').PublicProps, Readonly<DataTableProps> & Readonly<{
@@ -26,6 +27,7 @@ declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {},
26
27
  onDelete?: (rows: any[]) => any;
27
28
  onChange?: (state: TableState) => any;
28
29
  "onUpdate:itemsPerPage"?: (value: number) => any;
30
+ onExpand?: (payload: ExpandPayload) => any;
29
31
  onRowClick?: (payload: RowClickPayload) => any;
30
32
  "onUpdate:selectedRows"?: (value: any[]) => any;
31
33
  }>, {
@@ -45,6 +47,7 @@ declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {},
45
47
  cellBordered: boolean;
46
48
  keyField: string;
47
49
  hoverable: boolean;
50
+ treeIndent: number;
48
51
  sortable: boolean;
49
52
  headerVariant: "default" | "minimal";
50
53
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;