vlite3 1.5.27 → 1.5.29

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 (90) hide show
  1. package/components/Accordion/Accordion.vue.d.ts +8 -1
  2. package/components/Accordion/AccordionContent.vue.d.ts +8 -2
  3. package/components/Accordion/AccordionContent.vue.js +2 -2
  4. package/components/Accordion/AccordionContent2.vue.js +28 -40
  5. package/components/Accordion/AccordionItem.vue.d.ts +8 -1
  6. package/components/Accordion/AccordionItem.vue.js +86 -70
  7. package/components/Accordion/AccordionTrigger.vue.js +13 -12
  8. package/components/Badge.vue.d.ts +1 -1
  9. package/components/Beacon.vue.d.ts +1 -1
  10. package/components/Breadcrumb/Breadcrumb.vue.d.ts +1 -1
  11. package/components/Breadcrumb/BreadcrumbItem.vue.d.ts +1 -1
  12. package/components/Button.vue.d.ts +1 -1
  13. package/components/Button.vue.js +2 -2
  14. package/components/Button2.vue.js +1 -1
  15. package/components/Carousel/Carousel.vue.d.ts +4 -4
  16. package/components/Chart/CircleChart.vue.d.ts +1 -1
  17. package/components/Chart/GaugeChart.vue.d.ts +1 -1
  18. package/components/Chart/SpeedometerChart.vue.d.ts +1 -1
  19. package/components/Chip/Chip.vue.d.ts +1 -1
  20. package/components/ChoiceBox/ChoiceBox.vue.d.ts +1 -1
  21. package/components/Clipboard.vue.d.ts +1 -1
  22. package/components/ColorPicker/ColorPicker.vue.d.ts +1 -1
  23. package/components/DataList/DataList.vue.d.ts +1 -1
  24. package/components/DataTable/DataTable.vue.d.ts +1 -1
  25. package/components/DataTable/DataTable.vue.js +2 -2
  26. package/components/DataTable/DataTable2.vue.js +48 -50
  27. package/components/EditableTitle/EditableTitle.vue.d.ts +11 -11
  28. package/components/Empty/Empty.vue.d.ts +11 -2
  29. package/components/Empty/Empty.vue.js +57 -49
  30. package/components/Empty/index.d.ts +1 -1
  31. package/components/Empty/types.d.ts +13 -0
  32. package/components/Empty/types.js +8 -0
  33. package/components/Empty/variants/Variant1.vue.d.ts +4 -6
  34. package/components/Empty/variants/Variant1.vue.js +56 -20
  35. package/components/Empty/variants/Variant10.vue.d.ts +4 -6
  36. package/components/Empty/variants/Variant10.vue.js +68 -26
  37. package/components/Empty/variants/Variant11.vue.d.ts +4 -6
  38. package/components/Empty/variants/Variant11.vue.js +66 -18
  39. package/components/Empty/variants/Variant12.vue.d.ts +4 -6
  40. package/components/Empty/variants/Variant12.vue.js +67 -25
  41. package/components/Empty/variants/Variant2.vue.d.ts +4 -6
  42. package/components/Empty/variants/Variant2.vue.js +56 -20
  43. package/components/Empty/variants/Variant3.vue.d.ts +4 -6
  44. package/components/Empty/variants/Variant3.vue.js +41 -13
  45. package/components/Empty/variants/Variant4.vue.d.ts +4 -6
  46. package/components/Empty/variants/Variant4.vue.js +65 -21
  47. package/components/Empty/variants/Variant5.vue.d.ts +4 -6
  48. package/components/Empty/variants/Variant5.vue.js +55 -17
  49. package/components/Empty/variants/Variant6.vue.d.ts +4 -6
  50. package/components/Empty/variants/Variant6.vue.js +67 -23
  51. package/components/Empty/variants/Variant7.vue.d.ts +4 -6
  52. package/components/Empty/variants/Variant7.vue.js +81 -25
  53. package/components/Empty/variants/Variant8.vue.d.ts +4 -6
  54. package/components/Empty/variants/Variant8.vue.js +59 -23
  55. package/components/Empty/variants/Variant9.vue.d.ts +4 -6
  56. package/components/Empty/variants/Variant9.vue.js +64 -20
  57. package/components/FilePicker/index.vue.d.ts +1 -1
  58. package/components/FileTree/FileTree.vue.d.ts +2 -0
  59. package/components/FileTree/FileTree.vue.js +4 -4
  60. package/components/FileTree/FileTree2.vue.js +72 -66
  61. package/components/FileTree/FileTreeNode.vue.d.ts +9 -0
  62. package/components/FileTree/FileTreeNode.vue.js +100 -92
  63. package/components/FileTree/types.d.ts +12 -0
  64. package/components/Form/Form.vue.d.ts +1 -1
  65. package/components/Form/FormField.vue.d.ts +1 -1
  66. package/components/Form/FormFields.vue.d.ts +1 -1
  67. package/components/Form/TableView.vue.d.ts +1 -1
  68. package/components/Form/index.vue.d.ts +1 -1
  69. package/components/GoogleLogin.vue.d.ts +1 -1
  70. package/components/Input.vue.d.ts +1 -1
  71. package/components/Input.vue.js +2 -4
  72. package/components/MultiSelect/MultiSelect.vue.d.ts +1 -1
  73. package/components/Navbar/NavbarTabs.vue.d.ts +1 -1
  74. package/components/NumberInput.vue.d.ts +1 -1
  75. package/components/OTPInput/OTPInput.vue.d.ts +1 -1
  76. package/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
  77. package/components/Screen/components/ScreenEmptyState.vue.js +12 -12
  78. package/components/Slider.vue.d.ts +1 -1
  79. package/components/Spinner/Spinner.vue.d.ts +1 -1
  80. package/components/Switch.vue.d.ts +1 -1
  81. package/components/Tabes/Tabes.vue.d.ts +1 -1
  82. package/components/TagInput/TagInput.vue.d.ts +6 -6
  83. package/components/Tooltip.vue.d.ts +1 -1
  84. package/core/config.d.ts +2 -2
  85. package/docs/components/accordion.md +35 -0
  86. package/docs/components/empty.md +38 -4
  87. package/docs/components/file-tree.md +67 -16
  88. package/docs-manifest.json +5 -5
  89. package/package.json +2 -2
  90. package/style.css +1 -1
@@ -1,14 +1,14 @@
1
- import { defineComponent as D, computed as d, openBlock as i, createElementBlock as a, createElementVNode as c, normalizeClass as g, normalizeStyle as b, createCommentVNode as f, createVNode as v, unref as R, withModifiers as y, createBlock as m, Fragment as L, renderList as S, toDisplayString as k, renderSlot as A } from "vue";
2
- import r from "../Icon.vue.js";
3
- import O from "../CheckBox.vue.js";
4
- import Q from "../TreeConnectors/TreeConnectors.vue.js";
5
- import { EMPTY_ANCESTOR_LAST_FLAGS as V } from "../TreeConnectors/geometry.js";
6
- import { $t as j } from "../../utils/i18n.js";
7
- import { useRtl as q } from "../../composables/useRtl.js";
8
- const G = { class: "flex flex-col select-none" }, U = ["title"], Y = ["aria-expanded"], H = {
9
- key: 1,
1
+ import { defineComponent as R, computed as d, openBlock as s, createElementBlock as i, createElementVNode as c, normalizeClass as m, normalizeStyle as v, createCommentVNode as r, createBlock as h, unref as A, withModifiers as x, createVNode as w, Fragment as C, renderList as L, toDisplayString as y, renderSlot as D } from "vue";
2
+ import u from "../Icon.vue.js";
3
+ import G from "../CheckBox.vue.js";
4
+ import H from "../TreeConnectors/TreeConnectors.vue.js";
5
+ import { EMPTY_ANCESTOR_LAST_FLAGS as Q } from "../TreeConnectors/geometry.js";
6
+ import { $t as V } from "../../utils/i18n.js";
7
+ import { useRtl as K } from "../../composables/useRtl.js";
8
+ const W = { class: "flex flex-col select-none" }, X = ["title"], j = ["aria-expanded"], q = {
9
+ key: 2,
10
10
  class: "relative z-20 w-6 me-1 shrink-0"
11
- }, J = { class: "relative z-20 me-2 text-muted-foreground shrink-0" }, K = { class: "relative z-20 flex-1 truncate text-sm font-medium min-w-0" }, W = { class: "me-2 text-gray-400 select-none shrink-0" }, X = { class: "truncate" }, x = 20, ie = /* @__PURE__ */ D({
11
+ }, U = { class: "relative z-20 me-2 text-muted-foreground shrink-0" }, Y = { class: "relative z-20 flex-1 truncate text-sm font-medium min-w-0" }, Z = { class: "me-2 text-gray-400 select-none shrink-0" }, J = { class: "truncate" }, b = 20, _ = 28, ee = 16, te = 11, ce = /* @__PURE__ */ R({
12
12
  name: "FileTreeNode",
13
13
  __name: "FileTreeNode",
14
14
  props: {
@@ -25,164 +25,172 @@ const G = { class: "flex flex-col select-none" }, U = ["title"], Y = ["aria-expa
25
25
  variant: { default: "default" },
26
26
  maxLabelLength: { default: 35 },
27
27
  isLast: { type: Boolean, default: !0 },
28
- ancestorLastFlags: { default: () => V }
28
+ ancestorLastFlags: { default: () => Q },
29
+ showTreeLines: { type: Boolean, default: !0 },
30
+ selectOnRowClick: { type: Boolean, default: !0 }
29
31
  },
30
32
  emits: ["toggle-expand", "toggle-select", "click-node"],
31
- setup(e, { emit: C }) {
32
- const E = q(), s = e, h = C, u = d(
33
- () => !!(s.node.isFolder || s.node.children && s.node.children.length > 0)
34
- ), I = d(() => `${s.depth * x}px`), p = d(
35
- () => s.node.labelI18n ? j(s.node.labelI18n) : s.node.label
33
+ setup(e, { emit: S }) {
34
+ const E = K(), l = e, g = S, f = d(
35
+ () => !!(l.node.isFolder || l.node.children && l.node.children.length > 0)
36
+ ), I = d(() => `${l.depth * b}px`), B = d(() => {
37
+ const t = l.showCheckboxes && l.selectionMode !== "none" ? ee + te : 0;
38
+ return `${l.depth * b + _ + t}px`;
39
+ }), k = d(
40
+ () => l.node.labelI18n ? V(l.node.labelI18n) : l.node.label
36
41
  ), M = d(() => {
37
- const t = p.value, l = s.maxLabelLength;
38
- if (t.length <= l) return t;
42
+ const t = k.value, o = l.maxLabelLength;
43
+ if (t.length <= o) return t;
39
44
  const n = t.lastIndexOf(".");
40
45
  if (n === -1 || t.length - n > 10)
41
- return t.substring(0, l) + "...";
42
- const o = t.substring(n), $ = t.substring(0, n), P = Math.max(0, l - o.length - 3);
43
- return $.substring(0, P) + "..." + o;
44
- }), z = d(() => {
46
+ return t.substring(0, o) + "...";
47
+ const a = t.substring(n), $ = t.substring(0, n), P = Math.max(0, o - a.length - 3);
48
+ return $.substring(0, P) + "..." + a;
49
+ }), T = d(() => {
45
50
  const t = M.value;
46
- if (!s.highlightSearch || !s.searchQuery)
51
+ if (!l.highlightSearch || !l.searchQuery)
47
52
  return [{ text: t, highlight: !1 }];
48
- const l = s.searchQuery.toLowerCase(), n = t.toLowerCase().indexOf(l);
53
+ const o = l.searchQuery.toLowerCase(), n = t.toLowerCase().indexOf(o);
49
54
  return n === -1 ? [{ text: t, highlight: !1 }] : [
50
55
  { text: t.slice(0, n), highlight: !1 },
51
56
  {
52
- text: t.slice(n, n + l.length),
57
+ text: t.slice(n, n + o.length),
53
58
  highlight: !0
54
59
  },
55
- { text: t.slice(n + l.length), highlight: !1 }
60
+ { text: t.slice(n + o.length), highlight: !1 }
56
61
  ];
57
- }), B = d(() => {
58
- const t = s.node.searchMatch;
62
+ }), z = d(() => {
63
+ const t = l.node.searchMatch;
59
64
  if (!t) return [];
60
- const l = t.line_content, n = t.match_start, o = t.match_length;
61
- return n < 0 || n >= l.length ? [{ text: l, highlight: !1 }] : [
62
- { text: l.substring(0, n), highlight: !1 },
63
- { text: l.substring(n, n + o), highlight: !0 },
64
- { text: l.substring(n + o), highlight: !1 }
65
+ const o = t.line_content, n = t.match_start, a = t.match_length;
66
+ return n < 0 || n >= o.length ? [{ text: o, highlight: !1 }] : [
67
+ { text: o.substring(0, n), highlight: !1 },
68
+ { text: o.substring(n, n + a), highlight: !0 },
69
+ { text: o.substring(n + a), highlight: !1 }
65
70
  ];
66
- }), w = (t) => {
67
- t?.stopPropagation(), t?.preventDefault(), h("toggle-expand", s.node);
68
- }, F = d(
71
+ }), p = (t) => {
72
+ t?.stopPropagation(), t?.preventDefault(), g("toggle-expand", l.node);
73
+ }, N = d(
69
74
  () => E.value ? "lucide:chevron-left" : "lucide:chevron-right"
70
- ), N = () => {
71
- h("toggle-select", s.node);
72
- }, T = (t) => {
73
- t.stopPropagation(), u.value ? w() : s.selectionMode !== "none" && h("toggle-select", s.node), h("click-node", s.node);
75
+ ), F = () => {
76
+ g("toggle-select", l.node);
77
+ }, O = (t) => {
78
+ t.stopPropagation(), f.value ? p() : l.selectionMode !== "none" && g("toggle-select", l.node), g("click-node", l.node);
74
79
  };
75
- return (t, l) => (i(), a("div", G, [
80
+ return (t, o) => (s(), i("div", W, [
76
81
  c("div", {
77
- class: g(["group flex flex-col transition-colors cursor-pointer relative", {
82
+ class: m(["group flex flex-col transition-colors cursor-pointer relative", {
78
83
  "bg-accent/50 text-accent-foreground": e.isSelected && e.selectionMode === "single" && !e.showCheckboxes,
79
84
  "hover:bg-accent/50": !e.isSelected || e.selectionMode !== "single",
80
85
  "opacity-50 pointer-events-none": e.node.disabled,
81
86
  "rounded-none": e.variant === "bordered",
82
87
  "rounded-md": e.variant === "default"
83
88
  }]),
84
- title: p.value,
85
- onClick: T
89
+ title: k.value,
90
+ onClick: O
86
91
  }, [
87
- e.variant === "bordered" ? (i(), a("div", {
92
+ e.variant === "bordered" ? (s(), i("div", {
88
93
  key: 0,
89
94
  class: "absolute bottom-0 h-[1px] bg-border pointer-events-none",
90
- style: b({ insetInlineStart: e.depth * x + "px", insetInlineEnd: "0" })
91
- }, null, 4)) : f("", !0),
95
+ style: v({ insetInlineStart: e.depth * b + "px", insetInlineEnd: "0" })
96
+ }, null, 4)) : r("", !0),
92
97
  c("div", {
93
- class: g(["tree-row-content relative z-10 flex items-center pe-2", e.variant === "bordered" ? "py-2 min-h-[40px]" : "py-1 min-h-[32px]"]),
94
- style: b({ paddingInlineStart: I.value })
98
+ class: m(["tree-row-content relative z-10 flex items-center pe-2", e.variant === "bordered" ? "py-2 min-h-[40px]" : "py-1 min-h-[32px]"]),
99
+ style: v({ paddingInlineStart: I.value })
95
100
  }, [
96
- v(R(Q), {
101
+ e.showTreeLines ? (s(), h(A(H), {
102
+ key: 0,
97
103
  depth: e.depth,
98
104
  "is-last-sibling": e.isLast,
99
105
  "ancestor-last-flags": e.ancestorLastFlags,
100
- "has-toggle": u.value,
101
- indent: x,
106
+ "has-toggle": f.value,
107
+ indent: b,
102
108
  "line-class": "bg-border"
103
- }, null, 8, ["depth", "is-last-sibling", "ancestor-last-flags", "has-toggle"]),
104
- u.value ? (i(), a("button", {
105
- key: 0,
109
+ }, null, 8, ["depth", "is-last-sibling", "ancestor-last-flags", "has-toggle"])) : r("", !0),
110
+ f.value ? (s(), i("button", {
111
+ key: 1,
106
112
  type: "button",
107
113
  class: "tree-expand-toggle relative z-20 p-1 me-1 rounded-sm hover:bg-muted text-muted-foreground transition-colors focus:outline-none shrink-0",
108
114
  "aria-expanded": e.isExpanded,
109
- onClick: y(w, ["stop"])
115
+ onClick: x(p, ["stop"])
110
116
  }, [
111
- v(r, {
112
- icon: e.isExpanded ? "lucide:chevron-down" : F.value,
117
+ w(u, {
118
+ icon: e.isExpanded ? "lucide:chevron-down" : N.value,
113
119
  class: "w-4 h-4"
114
120
  }, null, 8, ["icon"])
115
- ], 8, Y)) : (i(), a("div", H)),
116
- e.showCheckboxes && e.selectionMode !== "none" ? (i(), a("div", {
117
- key: 2,
118
- class: "relative z-20 me-2 flex items-center justify-center bg-transparent shrink-0",
119
- onClick: l[0] || (l[0] = y(() => {
121
+ ], 8, j)) : (s(), i("div", q)),
122
+ e.showCheckboxes && e.selectionMode !== "none" ? (s(), i("div", {
123
+ key: 3,
124
+ class: "relative z-20 me-3 flex items-center justify-center bg-transparent shrink-0",
125
+ onClick: o[1] || (o[1] = x(() => {
120
126
  }, ["stop"]))
121
127
  }, [
122
- v(O, {
128
+ w(G, {
123
129
  checked: e.isSelected,
124
130
  indeterminate: e.isIndeterminate,
125
131
  disabled: e.node.disabled,
126
132
  rounded: "sm",
127
133
  size: "sm",
128
- "onUpdate:checked": N
134
+ onClick: o[0] || (o[0] = x(() => {
135
+ }, ["stop"])),
136
+ "onUpdate:checked": F
129
137
  }, null, 8, ["checked", "indeterminate", "disabled"])
130
- ])) : f("", !0),
131
- c("div", J, [
132
- e.isLoading ? (i(), m(r, {
138
+ ])) : r("", !0),
139
+ c("div", U, [
140
+ e.isLoading ? (s(), h(u, {
133
141
  key: 0,
134
142
  icon: "lucide:loader-2",
135
143
  class: "w-4 h-4 animate-spin"
136
- })) : e.node.icon ? (i(), m(r, {
144
+ })) : e.node.icon ? (s(), h(u, {
137
145
  key: 1,
138
146
  icon: e.node.icon,
139
147
  class: "w-4 h-4"
140
- }, null, 8, ["icon"])) : u.value ? (i(), m(r, {
148
+ }, null, 8, ["icon"])) : f.value ? (s(), h(u, {
141
149
  key: 2,
142
150
  icon: e.isExpanded ? "lucide:folder-open" : "lucide:folder",
143
151
  class: "w-4 h-4"
144
- }, null, 8, ["icon"])) : (i(), m(r, {
152
+ }, null, 8, ["icon"])) : (s(), h(u, {
145
153
  key: 3,
146
154
  icon: "lucide:file",
147
155
  class: "w-4 h-4"
148
156
  }))
149
157
  ]),
150
- c("div", K, [
151
- (i(!0), a(L, null, S(z.value, (n, o) => (i(), a("span", {
152
- key: o,
153
- class: g({
158
+ c("div", Y, [
159
+ (s(!0), i(C, null, L(T.value, (n, a) => (s(), i("span", {
160
+ key: a,
161
+ class: m({
154
162
  "bg-yellow-100 text-yellow-900 rounded-sm px-0.5": n.highlight
155
163
  })
156
- }, k(n.text), 3))), 128))
164
+ }, y(n.text), 3))), 128))
157
165
  ]),
158
- t.$slots.actions ? (i(), a("div", {
159
- key: 3,
166
+ t.$slots.actions ? (s(), i("div", {
167
+ key: 4,
160
168
  class: "relative z-20 ms-2 flex items-center shrink-0",
161
- onClick: l[1] || (l[1] = y(() => {
169
+ onClick: o[2] || (o[2] = x(() => {
162
170
  }, ["stop"]))
163
171
  }, [
164
- A(t.$slots, "actions", { node: e.node })
165
- ])) : f("", !0)
172
+ D(t.$slots, "actions", { node: e.node })
173
+ ])) : r("", !0)
166
174
  ], 6),
167
- e.node.searchMatch ? (i(), a("div", {
175
+ e.node.searchMatch ? (s(), i("div", {
168
176
  key: 1,
169
177
  class: "flex items-center text-[11px] text-gray-500 font-mono pe-2 pb-1.5 truncate",
170
- style: b({ paddingInlineStart: e.depth * x + 28 + "px" })
178
+ style: v({ paddingInlineStart: B.value })
171
179
  }, [
172
- c("span", W, "L" + k(e.node.searchMatch.line_number), 1),
173
- c("div", X, [
174
- (i(!0), a(L, null, S(B.value, (n, o) => (i(), a("span", {
175
- key: o,
176
- class: g({
180
+ c("span", Z, "L" + y(e.node.searchMatch.line_number), 1),
181
+ c("div", J, [
182
+ (s(!0), i(C, null, L(z.value, (n, a) => (s(), i("span", {
183
+ key: a,
184
+ class: m({
177
185
  "bg-yellow-500/20 text-gray-900 px-0.5 rounded-[1px] font-medium border border-yellow-600/30": n.highlight
178
186
  })
179
- }, k(n.text), 3))), 128))
187
+ }, y(n.text), 3))), 128))
180
188
  ])
181
- ], 4)) : f("", !0)
182
- ], 10, U)
189
+ ], 4)) : r("", !0)
190
+ ], 10, X)
183
191
  ]));
184
192
  }
185
193
  });
186
194
  export {
187
- ie as default
195
+ ce as default
188
196
  };
@@ -33,6 +33,18 @@ export interface FileTreeProps {
33
33
  emptyTextI18n?: string;
34
34
  variant?: FileTreeVariant;
35
35
  maxLabelLength?: number;
36
+ /**
37
+ * Whether to render parent-to-child tree connector (indent guide) lines.
38
+ * @default true
39
+ */
40
+ showTreeLines?: boolean;
41
+ /**
42
+ * When `false`, parent/folder row clicks only expand/collapse and never
43
+ * change selection. Leaf/file rows remain selectable by clicking the row.
44
+ * Checkboxes continue to select both folders and files.
45
+ * @default true
46
+ */
47
+ selectOnRowClick?: boolean;
36
48
  }
37
49
  export interface FileTreeEvents {
38
50
  (e: 'update:modelValue', keys: string[]): void;
@@ -96,11 +96,11 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
96
96
  values: Record<string, any>;
97
97
  footer: boolean;
98
98
  class: string;
99
+ className: string;
99
100
  loading: boolean;
100
101
  layout: "vertical" | "inline";
101
102
  isUpdate: boolean;
102
103
  folderId: string;
103
- className: string;
104
104
  headerClass: string;
105
105
  footerClass: string;
106
106
  cancelText: string;
@@ -27,8 +27,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
27
27
  onAddonAction?: (action: string) => any;
28
28
  onAddonChange?: (name: string, payload: IFormFieldChangePayload) => any;
29
29
  }>, {
30
- variant: InputVariant;
31
30
  size: InputSize;
31
+ variant: InputVariant;
32
32
  rounded: InputRounded;
33
33
  loading: boolean;
34
34
  error: string;
@@ -42,8 +42,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
42
42
  onChange?: (name: string, payload: IFormFieldChangePayload) => any;
43
43
  onAddonAction?: (action: string) => any;
44
44
  }>, {
45
- variant: InputVariant;
46
45
  size: InputSize;
46
+ variant: InputVariant;
47
47
  rounded: InputRounded;
48
48
  showRequiredAsterisk: boolean;
49
49
  layout: "vertical" | "inline";
@@ -25,8 +25,8 @@ interface Props {
25
25
  onDragUpdate: (rows: CustomFieldRow[]) => void;
26
26
  }
27
27
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
28
- variant: InputVariant;
29
28
  size: InputSize;
29
+ variant: InputVariant;
30
30
  rounded: InputRounded;
31
31
  rowTitleKey: string;
32
32
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -34,8 +34,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
34
34
  onChange?: (value: Record<string, any>[]) => any;
35
35
  "onUpdate:modelValue"?: (value: Record<string, any>[]) => any;
36
36
  }>, {
37
- variant: InputVariant;
38
37
  size: InputSize;
38
+ variant: InputVariant;
39
39
  rounded: InputRounded;
40
40
  readonly: boolean;
41
41
  draggable: boolean;
@@ -27,8 +27,8 @@ declare const __VLS_component: import('vue').DefineComponent<GoogleLoginProps, {
27
27
  onSuccess?: (response: any) => any;
28
28
  onError?: (error: any) => any;
29
29
  }>, {
30
- variant: any;
31
30
  size: any;
31
+ variant: any;
32
32
  rounded: any;
33
33
  disabled: boolean;
34
34
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -26,8 +26,8 @@ declare const __VLS_component: import('vue').DefineComponent<InputProps, {
26
26
  }>, {
27
27
  type: import('../types').InputType;
28
28
  class: string;
29
- variant: InputVariant;
30
29
  size: InputSize;
30
+ variant: InputVariant;
31
31
  rounded: InputRounded;
32
32
  loading: boolean;
33
33
  readonly: boolean;
@@ -40,9 +40,7 @@ const ie = ["dir"], ce = ["for"], fe = ["type", "value", "placeholder", "disable
40
40
  },
41
41
  emits: ["update:modelValue", "focus", "blur", "change", "click:icon", "click:icon-right"],
42
42
  setup(t, { expose: W, emit: q }) {
43
- const e = t, f = q, d = a(() => U(e.labelI18n, e.label)), I = a(
44
- () => U(e.placeholderI18n, e.placeholder)
45
- ), y = oe(), s = v(null), b = v(null), p = v(!1), G = se(), $ = a(() => G.value ? "rtl" : "ltr"), h = v(!1), J = a(() => e.type === "password" && p.value ? "text" : e.type), V = a(() => e.modelValue !== "" && e.modelValue !== null && e.modelValue !== void 0), z = a(() => g.value || V.value || h.value), w = a(() => !!e.addonLeft || !!y["addon-left"]), R = a(() => !!e.addonRight || !!y["addon-right"]), K = a(() => [
43
+ const e = t, f = q, d = a(() => U(e.labelI18n, e.label)), I = a(() => U(e.placeholderI18n, e.placeholder)), y = oe(), s = v(null), b = v(null), p = v(!1), G = se(), $ = a(() => G.value ? "rtl" : "ltr"), h = v(!1), J = a(() => e.type === "password" && p.value ? "text" : e.type), V = a(() => e.modelValue !== "" && e.modelValue !== null && e.modelValue !== void 0), z = a(() => g.value || V.value || h.value), w = a(() => !!e.addonLeft || !!y["addon-left"]), R = a(() => !!e.addonRight || !!y["addon-right"]), K = a(() => [
46
44
  "relative w-full",
47
45
  e.class,
48
46
  e.labelPosition === "left" ? "flex items-center gap-4" : "",
@@ -75,7 +73,7 @@ const ie = ["dir"], ce = ["for"], fe = ["type", "value", "placeholder", "disable
75
73
  const D = e.variant === "outline-b" || e.variant === "transparent", ne = {
76
74
  xs: "ps-6",
77
75
  sm: "ps-8",
78
- md: "ps-9",
76
+ md: "ps-8.5",
79
77
  lg: "ps-9",
80
78
  xl: "ps-9"
81
79
  };
@@ -49,8 +49,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
49
49
  "onUpdate:modelValue"?: (value: any[]) => any;
50
50
  "onLoad-more"?: () => any;
51
51
  }>, {
52
- variant: "default" | "outline" | "solid" | "floating" | string;
53
52
  size: "sm" | "md" | "lg";
53
+ variant: "default" | "outline" | "solid" | "floating" | string;
54
54
  rounded: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full" | string;
55
55
  loading: boolean;
56
56
  readonly: boolean;
@@ -11,8 +11,8 @@ interface Props {
11
11
  }
12
12
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
13
13
  class: string;
14
- variant: NavbarTabsVariant;
15
14
  size: NavbarTabsSize;
15
+ variant: NavbarTabsVariant;
16
16
  activeClass: string;
17
17
  inactiveClass: string;
18
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -25,8 +25,8 @@ declare const _default: import('vue').DefineComponent<NumberInputProps, {}, {},
25
25
  "onUpdate:modelValue"?: (value: number) => any;
26
26
  }>, {
27
27
  mode: "solid" | "outline" | "ghost";
28
- variant: "split" | "stacked";
29
28
  size: "xs" | "sm" | "md" | "lg" | "xl";
29
+ variant: "split" | "stacked";
30
30
  rounded: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
31
31
  readonly: boolean;
32
32
  disabled: boolean;
@@ -35,8 +35,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
35
35
  length: number;
36
36
  type: "text" | "number";
37
37
  mask: boolean;
38
- variant: "solid" | "outline" | "ghost";
39
38
  size: "sm" | "md" | "lg";
39
+ variant: "solid" | "outline" | "ghost";
40
40
  error: boolean;
41
41
  placeholder: string;
42
42
  disabled: boolean;
@@ -1,8 +1,8 @@
1
1
  import { ProgressBarProps, ProgressBarVariant, ProgressBarSize } from '../../types/progressbar';
2
2
  declare const _default: import('vue').DefineComponent<ProgressBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ProgressBarProps> & Readonly<{}>, {
3
3
  type: import('../../types/progressbar').ProgressBarType;
4
- variant: ProgressBarVariant;
5
4
  size: ProgressBarSize;
5
+ variant: ProgressBarVariant;
6
6
  rounded: string;
7
7
  striped: boolean;
8
8
  indeterminate: boolean;
@@ -1,9 +1,9 @@
1
- import { defineComponent as p, computed as m, markRaw as k, resolveComponent as C, openBlock as n, createBlock as a, unref as h, withCtx as d, createElementBlock as o, Fragment as u, resolveDynamicComponent as w, mergeProps as i, createVNode as y, createTextVNode as B, toDisplayString as f, createCommentVNode as l } from "vue";
2
- import x from "../../Empty/Empty.vue.js";
1
+ import { defineComponent as g, computed as m, markRaw as k, resolveComponent as C, openBlock as n, createBlock as a, unref as h, withCtx as d, createElementBlock as o, Fragment as u, resolveDynamicComponent as x, mergeProps as i, createVNode as y, createTextVNode as B, toDisplayString as f, createCommentVNode as l } from "vue";
2
+ import w from "../../Empty/Empty.vue.js";
3
3
  import s from "../../Button.vue.js";
4
- import A from "../../Modal.vue.js";
4
+ import N from "../../Modal.vue.js";
5
5
  import { $t as I } from "../../../utils/i18n.js";
6
- const D = ["href", "target"], E = /* @__PURE__ */ p({
6
+ const A = ["href", "target"], E = /* @__PURE__ */ g({
7
7
  __name: "ScreenEmptyState",
8
8
  props: {
9
9
  emptyTitle: {},
@@ -27,10 +27,10 @@ const D = ["href", "target"], E = /* @__PURE__ */ p({
27
27
  const r = I("vlite.screen.addNew");
28
28
  return r !== "vlite.screen.addNew" ? r : "Add New";
29
29
  });
30
- return (r, N) => {
31
- const g = C("router-link");
32
- return n(), a(h(x), {
33
- class: "py-2!",
30
+ return (r, D) => {
31
+ const p = C("router-link");
32
+ return n(), a(h(w), {
33
+ className: "py-2! min-h-[400px]",
34
34
  title: e.emptyTitle,
35
35
  titleI18n: e.emptyTitleI18n,
36
36
  description: e.emptyDescription,
@@ -39,9 +39,9 @@ const D = ["href", "target"], E = /* @__PURE__ */ p({
39
39
  }, {
40
40
  action: d(() => [
41
41
  e.isFiltered ? l("", !0) : (n(), o(u, { key: 0 }, [
42
- v.value ? (n(), a(w(v.value), { key: 0 })) : e.canAdd ? (n(), o(u, { key: 1 }, [
42
+ v.value ? (n(), a(x(v.value), { key: 0 })) : e.canAdd ? (n(), o(u, { key: 1 }, [
43
43
  e.addBtn ? (n(), o(u, { key: 0 }, [
44
- e.addBtn.modal ? (n(), a(A, i({
44
+ e.addBtn.modal ? (n(), a(N, i({
45
45
  key: 0,
46
46
  body: b.value
47
47
  }, e.addBtn.modalProps), {
@@ -59,7 +59,7 @@ const D = ["href", "target"], E = /* @__PURE__ */ p({
59
59
  }, 16, ["icon"])
60
60
  ]),
61
61
  _: 1
62
- }, 16, ["body"])) : e.addBtn.to ? (n(), a(g, {
62
+ }, 16, ["body"])) : e.addBtn.to ? (n(), a(p, {
63
63
  key: 1,
64
64
  to: e.addBtn.to,
65
65
  class: "inline-flex"
@@ -91,7 +91,7 @@ const D = ["href", "target"], E = /* @__PURE__ */ p({
91
91
  ]),
92
92
  _: 1
93
93
  }, 16, ["icon"])
94
- ], 8, D)) : l("", !0)
94
+ ], 8, A)) : l("", !0)
95
95
  ], 64)) : l("", !0)
96
96
  ], 64)) : l("", !0)
97
97
  ], 64))
@@ -25,8 +25,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
25
25
  "onUpdate:modelValue"?: (value: number) => any;
26
26
  onIconClick?: () => any;
27
27
  }>, {
28
- variant: "one" | "two";
29
28
  size: "xs" | "sm" | "md" | "lg";
29
+ variant: "one" | "two";
30
30
  orientation: "horizontal" | "vertical";
31
31
  modelValue: number;
32
32
  min: number;
@@ -2,7 +2,7 @@ import { SpinnerProps, SpinnerSize, SpinnerColor, SpinnerVariant } from './types
2
2
  declare const _default: import('vue').DefineComponent<SpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SpinnerProps> & Readonly<{}>, {
3
3
  class: string;
4
4
  color: SpinnerColor;
5
- variant: SpinnerVariant;
6
5
  size: SpinnerSize;
6
+ variant: SpinnerVariant;
7
7
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
8
8
  export default _default;
@@ -18,8 +18,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
18
18
  "onUpdate:modelValue"?: (value: boolean) => any;
19
19
  }>, {
20
20
  class: string;
21
- variant: SwitchVariant;
22
21
  size: InputSize;
22
+ variant: SwitchVariant;
23
23
  disabled: boolean;
24
24
  modelValue: boolean;
25
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -47,8 +47,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
47
47
  onReorder?: (payload: TabesReorderPayload) => any;
48
48
  "onUpdate:options"?: (options: TabesOption[]) => any;
49
49
  }>, {
50
- variant: TabesVariant;
51
50
  size: TabesSize;
51
+ variant: TabesVariant;
52
52
  block: boolean;
53
53
  direction: "ltr" | "rtl" | "auto";
54
54
  wrap: boolean;
@@ -18,8 +18,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
18
18
  "onUpdate:modelValue"?: (value: string[]) => any;
19
19
  }>, {
20
20
  class: string;
21
- variant: "outline" | "solid" | "transparent" | "outline-b" | "floating";
22
21
  size: "sm" | "md" | "lg";
22
+ variant: "outline" | "solid" | "transparent" | "outline-b" | "floating";
23
23
  rounded: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
24
24
  placeholder: string;
25
25
  disabled: boolean;
@@ -31,8 +31,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
31
31
  $props: Partial<{
32
32
  type: import('../..').InputType;
33
33
  class: string;
34
- variant: import('../..').InputVariant;
35
34
  size: import('../..').InputSize;
35
+ variant: import('../..').InputVariant;
36
36
  rounded: import('../..').InputRounded;
37
37
  loading: boolean;
38
38
  readonly: boolean;
@@ -83,7 +83,7 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
83
83
  readonly "onUpdate:modelValue"?: (value: string | number) => any;
84
84
  readonly "onClick:icon"?: (event: MouseEvent) => any;
85
85
  readonly "onClick:icon-right"?: (event: MouseEvent) => any;
86
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "class" | "variant" | "size" | "rounded" | "loading" | "readonly" | "disabled" | "modelValue" | "rows" | "showClearButton" | "autofocus" | "inputClass" | "lazy" | "labelPosition" | "addonLeftClass" | "addonRightClass">;
86
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "class" | "size" | "variant" | "rounded" | "loading" | "readonly" | "disabled" | "modelValue" | "rows" | "showClearButton" | "autofocus" | "inputClass" | "lazy" | "labelPosition" | "addonLeftClass" | "addonRightClass">;
87
87
  $attrs: import('vue').Attrs;
88
88
  $refs: any;
89
89
  $slots: Readonly<{
@@ -116,8 +116,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
116
116
  }, string, {
117
117
  type: import('../..').InputType;
118
118
  class: string;
119
- variant: import('../..').InputVariant;
120
119
  size: import('../..').InputSize;
120
+ variant: import('../..').InputVariant;
121
121
  rounded: import('../..').InputRounded;
122
122
  loading: boolean;
123
123
  readonly: boolean;
@@ -154,8 +154,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
154
154
  } & Readonly<{
155
155
  type: import('../..').InputType;
156
156
  class: string;
157
- variant: import('../..').InputVariant;
158
157
  size: import('../..').InputSize;
158
+ variant: import('../..').InputVariant;
159
159
  rounded: import('../..').InputRounded;
160
160
  loading: boolean;
161
161
  readonly: boolean;
@@ -176,7 +176,7 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
176
176
  "onUpdate:modelValue"?: (value: string | number) => any;
177
177
  "onClick:icon"?: (event: MouseEvent) => any;
178
178
  "onClick:icon-right"?: (event: MouseEvent) => any;
179
- }>, "select" | "el" | "blur" | "focus" | ("type" | "class" | "variant" | "size" | "rounded" | "loading" | "readonly" | "disabled" | "modelValue" | "rows" | "showClearButton" | "autofocus" | "inputClass" | "lazy" | "labelPosition" | "addonLeftClass" | "addonRightClass")> & {
179
+ }>, "select" | "el" | "blur" | "focus" | ("type" | "class" | "size" | "variant" | "rounded" | "loading" | "readonly" | "disabled" | "modelValue" | "rows" | "showClearButton" | "autofocus" | "inputClass" | "lazy" | "labelPosition" | "addonLeftClass" | "addonRightClass")> & {
180
180
  focus: (options?: FocusOptions) => void;
181
181
  select: () => void;
182
182
  blur: () => void;