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,13 +1,13 @@
1
- import { defineComponent as j, ref as E, computed as i, openBlock as s, createBlock as m, unref as v, withCtx as f, createVNode as h, createElementVNode as d, normalizeClass as w, createElementBlock as p, toDisplayString as b, Fragment as k, renderList as L, withModifiers as C, createCommentVNode as g, createTextVNode as A } from "vue";
2
- import x from "../Icon.vue.js";
3
- import D from "../Dropdown/Dropdown.vue.js";
4
- import F from "../Dropdown/DropdownMenu.vue.js";
5
- import { $t as y } from "../../utils/i18n.js";
6
- import $ from "../Badge.vue.js";
7
- const P = { class: "flex flex-wrap gap-1.5 items-center flex-1 min-w-0 py-0.5" }, T = {
1
+ import { defineComponent as P, ref as g, computed as r, watch as U, openBlock as s, createBlock as m, unref as y, withCtx as v, createVNode as x, createElementVNode as d, normalizeClass as M, createElementBlock as h, toDisplayString as w, Fragment as I, renderList as q, withModifiers as T, createCommentVNode as V, createTextVNode as G } from "vue";
2
+ import S from "../Icon.vue.js";
3
+ import J from "../Dropdown/Dropdown.vue.js";
4
+ import K from "../Dropdown/DropdownMenu.vue.js";
5
+ import { $t as k } from "../../utils/i18n.js";
6
+ import z from "../Badge.vue.js";
7
+ const Q = { class: "flex flex-wrap gap-1.5 items-center flex-1 min-w-0 py-0.5" }, R = {
8
8
  key: 0,
9
9
  class: "text-muted-foreground pl-1"
10
- }, U = { class: "truncate" }, q = ["onClick"], G = { class: "flex items-center gap-2 pl-2 shrink-0 text-muted-foreground" }, Y = /* @__PURE__ */ j({
10
+ }, W = { class: "truncate" }, X = ["onClick"], Y = { class: "flex items-center gap-2 pl-2 shrink-0 text-muted-foreground" }, ne = /* @__PURE__ */ P({
11
11
  __name: "MultiSelect",
12
12
  props: {
13
13
  modelValue: { default: () => [] },
@@ -22,113 +22,150 @@ const P = { class: "flex flex-wrap gap-1.5 items-center flex-1 min-w-0 py-0.5" }
22
22
  loading: { type: Boolean, default: !1 },
23
23
  hasMore: { type: Boolean, default: !1 },
24
24
  remote: { type: Boolean, default: !1 },
25
+ debounceTime: { default: 300 },
26
+ fetchSelected: {},
25
27
  layout: { default: "default" }
26
28
  },
27
29
  emits: ["update:modelValue", "change", "load-more", "search"],
28
- setup(o, { emit: S }) {
29
- const t = o, r = S, u = E(!1), B = i(() => {
30
- if (t.placeholderI18n) return y(t.placeholderI18n);
31
- if (t.placeholder) return t.placeholder;
32
- const a = y("vlite.multiSelect.placeholder");
33
- return a !== "vlite.multiSelect.placeholder" ? a : "Select items...";
34
- }), c = i(() => t.options.filter((a) => {
35
- const e = a.value ?? a.label;
36
- return t.modelValue.includes(e);
37
- })), O = i(() => c.value.slice(0, t.maxVisible)), V = i(() => c.value.length - t.maxVisible), M = (a) => {
38
- const e = a.value ?? a.label, l = [...t.modelValue], n = l.indexOf(e);
39
- n === -1 ? l.push(e) : l.splice(n, 1), r("update:modelValue", l), r("change", l);
40
- }, I = (a) => {
41
- const e = t.modelValue.filter((l) => l !== a);
42
- r("update:modelValue", e), r("change", e);
43
- }, N = () => {
44
- r("update:modelValue", []), r("change", []);
45
- }, z = i(() => [
30
+ setup(o, { emit: E }) {
31
+ const a = o, i = E, c = g(!1), N = r(() => {
32
+ if (a.placeholderI18n) return k(a.placeholderI18n);
33
+ if (a.placeholder) return a.placeholder;
34
+ const e = k("vlite.multiSelect.placeholder");
35
+ return e !== "vlite.multiSelect.placeholder" ? e : "Select items...";
36
+ }), p = r(() => a.options ? a.options.map((e) => typeof e == "string" || typeof e == "number" ? { label: String(e), value: String(e) } : e) : []), u = g(/* @__PURE__ */ new Map()), b = g(!1), j = async (e) => {
37
+ if (!a.fetchSelected || !e?.length) return;
38
+ const t = e.filter((l) => {
39
+ const n = u.value.has(l), C = p.value.some(($) => ($.value ?? $.label) === l);
40
+ return !n && !C;
41
+ });
42
+ if (t.length) {
43
+ b.value = !0;
44
+ try {
45
+ (await a.fetchSelected(t)).forEach((n) => {
46
+ u.value.set(n.value ?? n.label, n);
47
+ });
48
+ } catch (l) {
49
+ console.error("[MultiSelect] Hydration failed:", l);
50
+ } finally {
51
+ b.value = !1;
52
+ }
53
+ }
54
+ };
55
+ U(
56
+ () => a.modelValue,
57
+ (e) => {
58
+ j(e || []);
59
+ },
60
+ { immediate: !0, deep: !0 }
61
+ );
62
+ const O = r(() => {
63
+ const e = [...p.value], t = new Set(e.map((l) => l.value ?? l.label));
64
+ return u.value.forEach((l, n) => {
65
+ t.has(n) || (e.unshift(l), t.add(n));
66
+ }), e;
67
+ }), f = r(() => O.value.filter((e) => {
68
+ const t = e.value ?? e.label;
69
+ return a.modelValue.includes(t);
70
+ })), H = r(() => f.value.slice(0, a.maxVisible)), B = r(() => f.value.length - a.maxVisible), L = (e) => {
71
+ const t = e.value ?? e.label;
72
+ u.value.has(t) || u.value.set(t, e);
73
+ const l = [...a.modelValue], n = l.indexOf(t);
74
+ n === -1 ? l.push(t) : l.splice(n, 1), i("update:modelValue", l), i("change", l);
75
+ }, A = (e) => {
76
+ const t = a.modelValue.filter((l) => l !== e);
77
+ i("update:modelValue", t), i("change", t);
78
+ }, D = () => {
79
+ i("update:modelValue", []), i("change", []);
80
+ }, F = r(() => [
46
81
  "flex items-center justify-between w-full px-3 py-1.5 rounded-md border text-sm transition-colors cursor-pointer",
47
- t.disabled ? "opacity-50 cursor-not-allowed bg-muted" : "bg-background hover:bg-gray-50/70",
48
- t.variant === "outline" ? "border-input" : "border-transparent bg-muted",
49
- u.value ? "border-primary/20" : ""
82
+ a.disabled ? "opacity-50 cursor-not-allowed bg-muted" : a.variant === "floating" ? "bg-transparent text-foreground" : "bg-background hover:bg-gray-50/70",
83
+ a.variant === "outline" || a.variant === "floating" ? "border-input" : "border-transparent bg-muted",
84
+ c.value ? "border-primary/20" : ""
50
85
  ].join(" "));
51
- return i(() => t.size === "sm" ? "xs" : "sm"), (a, e) => (s(), m(v(D), {
52
- isOpen: u.value,
53
- "onUpdate:isOpen": e[3] || (e[3] = (l) => u.value = l),
86
+ return r(() => a.size === "sm" ? "xs" : "sm"), (e, t) => (s(), m(y(J), {
87
+ isOpen: c.value,
88
+ "onUpdate:isOpen": t[3] || (t[3] = (l) => c.value = l),
54
89
  "close-on-select": !1,
55
90
  selectable: !0,
56
91
  disabled: o.disabled
57
92
  }, {
58
- trigger: f(({ isOpen: l }) => [
93
+ trigger: v(({ isOpen: l }) => [
59
94
  d("div", {
60
- class: w(z.value)
95
+ class: M(F.value)
61
96
  }, [
62
- d("div", P, [
63
- c.value.length === 0 ? (s(), p("span", T, b(B.value), 1)) : (s(), p(k, { key: 1 }, [
64
- (s(!0), p(k, null, L(O.value, (n) => (s(), m($, {
97
+ d("div", Q, [
98
+ f.value.length === 0 ? (s(), h("span", R, w(N.value), 1)) : (s(), h(I, { key: 1 }, [
99
+ (s(!0), h(I, null, q(H.value, (n) => (s(), m(z, {
65
100
  key: n.value,
66
101
  variant: "secondary",
67
102
  class: "gap-1 pr-1 truncate max-w-[150px]"
68
103
  }, {
69
- default: f(() => [
70
- d("span", U, b(n.labelI18n ? v(y)(n.labelI18n) : n.label), 1),
71
- o.disabled ? g("", !0) : (s(), p("button", {
104
+ default: v(() => [
105
+ d("span", W, w(n.labelI18n ? y(k)(n.labelI18n) : n.label), 1),
106
+ o.disabled ? V("", !0) : (s(), h("button", {
72
107
  key: 0,
73
108
  type: "button",
74
- onClick: C((H) => I(n.value), ["stop"]),
109
+ onClick: T((C) => A(n.value), ["stop"]),
75
110
  class: "hover:bg-destructive/10 hover:text-destructive rounded-full p-0.5 transition-colors"
76
111
  }, [
77
- h(x, {
112
+ x(S, {
78
113
  icon: "lucide:x",
79
114
  class: "w-3 h-3"
80
115
  })
81
- ], 8, q))
116
+ ], 8, X))
82
117
  ]),
83
118
  _: 2
84
119
  }, 1024))), 128)),
85
- V.value > 0 ? (s(), m($, {
120
+ B.value > 0 ? (s(), m(z, {
86
121
  key: 0,
87
122
  variant: "secondary",
88
123
  class: "font-normal text-muted-foreground"
89
124
  }, {
90
- default: f(() => [
91
- A(" +" + b(V.value), 1)
125
+ default: v(() => [
126
+ G(" +" + w(B.value), 1)
92
127
  ]),
93
128
  _: 1
94
- })) : g("", !0)
129
+ })) : V("", !0)
95
130
  ], 64))
96
131
  ]),
97
- d("div", G, [
98
- c.value.length > 0 && !o.disabled ? (s(), m(x, {
132
+ d("div", Y, [
133
+ f.value.length > 0 && !o.disabled ? (s(), m(S, {
99
134
  key: 0,
100
135
  icon: "lucide:x",
101
136
  class: "w-4 h-4 hover:text-foreground transition-colors",
102
- onClick: C(N, ["stop"])
103
- })) : g("", !0),
104
- e[4] || (e[4] = d("div", { class: "w-px h-4 bg-border mx-0.5" }, null, -1)),
105
- h(x, {
137
+ onClick: T(D, ["stop"])
138
+ })) : V("", !0),
139
+ t[4] || (t[4] = d("div", { class: "w-px h-4 bg-border mx-0.5" }, null, -1)),
140
+ x(S, {
106
141
  icon: "lucide:chevron-down",
107
- class: w(["w-4 h-4 transition-transform duration-200", { "rotate-180": l }])
142
+ class: M(["w-4 h-4 transition-transform duration-200", { "rotate-180": l }])
108
143
  }, null, 8, ["class"])
109
144
  ])
110
145
  ], 2)
111
146
  ]),
112
- default: f(() => [
113
- h(v(F), {
114
- options: o.options,
147
+ default: v(() => [
148
+ x(y(K), {
149
+ options: p.value,
150
+ cachedOptions: O.value,
115
151
  selected: o.modelValue,
116
152
  class: "min-w-[300px]",
117
- loading: o.loading,
153
+ loading: o.loading || b.value,
118
154
  hasMore: o.hasMore,
119
155
  searchable: o.searchable,
120
156
  remote: o.remote,
157
+ debounceTime: o.debounceTime,
121
158
  layout: o.layout,
122
- onSelect: M,
123
- onClose: e[0] || (e[0] = (l) => u.value = !1),
124
- onLoadMore: e[1] || (e[1] = (l) => a.$emit("load-more")),
125
- onSearch: e[2] || (e[2] = (l) => a.$emit("search", l))
126
- }, null, 8, ["options", "selected", "loading", "hasMore", "searchable", "remote", "layout"])
159
+ onSelect: L,
160
+ onClose: t[0] || (t[0] = (l) => c.value = !1),
161
+ onLoadMore: t[1] || (t[1] = (l) => e.$emit("load-more")),
162
+ onSearch: t[2] || (t[2] = (l) => e.$emit("search", l))
163
+ }, null, 8, ["options", "cachedOptions", "selected", "loading", "hasMore", "searchable", "remote", "debounceTime", "layout"])
127
164
  ]),
128
165
  _: 1
129
166
  }, 8, ["isOpen", "disabled"]));
130
167
  }
131
168
  });
132
169
  export {
133
- Y as default
170
+ ne as default
134
171
  };
@@ -2,33 +2,64 @@ import { NavbarProps } from '../../types/navbar.type';
2
2
  declare function __VLS_template(): {
3
3
  attrs: Partial<{}>;
4
4
  slots: {
5
+ header?(_: any): any;
5
6
  'mobile-trigger'?(_: {
6
- isOpen: boolean;
7
+ isOpen: any;
7
8
  toggle: () => boolean;
8
9
  }): any;
9
10
  'mobile-trigger'?(_: {
10
- isOpen: boolean;
11
+ isOpen: any;
11
12
  toggle: () => boolean;
12
13
  }): any;
14
+ 'mobile-trigger'?(_: {
15
+ isOpen: any;
16
+ toggle: () => boolean;
17
+ }): any;
18
+ 'mobile-trigger'?(_: {
19
+ isOpen: any;
20
+ toggle: () => boolean;
21
+ }): any;
22
+ logo?(_: {}): any;
23
+ logo?(_: {}): any;
24
+ logo?(_: {}): any;
13
25
  logo?(_: {}): any;
14
26
  logo?(_: {}): any;
15
27
  logo?(_: {}): any;
16
28
  logo?(_: {}): any;
29
+ logo?(_: {}): any;
30
+ left?(_: {}): any;
31
+ left?(_: {}): any;
32
+ left?(_: {}): any;
33
+ left?(_: {}): any;
17
34
  left?(_: {}): any;
18
35
  left?(_: {}): any;
19
36
  left?(_: {}): any;
20
37
  left?(_: {}): any;
21
38
  left?(_: {}): any;
39
+ left?(_: {}): any;
40
+ center?(_: {}): any;
41
+ center?(_: {}): any;
42
+ center?(_: {}): any;
22
43
  center?(_: {}): any;
23
44
  center?(_: {}): any;
24
45
  center?(_: {}): any;
25
46
  center?(_: {}): any;
26
47
  center?(_: {}): any;
48
+ center?(_: {}): any;
49
+ center?(_: {}): any;
50
+ right?(_: {}): any;
51
+ right?(_: {}): any;
52
+ right?(_: {}): any;
27
53
  right?(_: {}): any;
28
54
  right?(_: {}): any;
29
55
  right?(_: {}): any;
30
56
  default?(_: {}): any;
31
57
  default?(_: {}): any;
58
+ default?(_: {}): any;
59
+ default?(_: {}): any;
60
+ main?(_: {}): any;
61
+ 'mobile-menu'?(_: {}): any;
62
+ 'mobile-menu'?(_: {}): any;
32
63
  'mobile-menu'?(_: {}): any;
33
64
  'mobile-menu'?(_: {}): any;
34
65
  };
@@ -36,7 +67,7 @@ declare function __VLS_template(): {
36
67
  mobileTriggerRef: HTMLButtonElement;
37
68
  mobileMenuRef: HTMLDivElement;
38
69
  };
39
- rootEl: HTMLElement;
70
+ rootEl: any;
40
71
  };
41
72
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
42
73
  declare const __VLS_component: import('vue').DefineComponent<NavbarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
@@ -44,27 +75,35 @@ declare const __VLS_component: import('vue').DefineComponent<NavbarProps, {}, {}
44
75
  }, string, import('vue').PublicProps, Readonly<NavbarProps> & Readonly<{
45
76
  "onToggle-mobile"?: () => any;
46
77
  }>, {
78
+ floating: boolean;
79
+ variant: import('../../types/navbar.type').NavbarVariant;
80
+ compact: boolean;
47
81
  class: string;
48
- width: string;
49
82
  height: string;
50
- variant: import('../../types/navbar.type').NavbarVariant;
51
- contentClass: string;
52
83
  border: boolean;
53
84
  position: import('../../types/navbar.type').NavbarPosition;
54
- compact: boolean;
85
+ contentClass: string;
86
+ breadcrumb: boolean;
55
87
  centerPosition: import('../../types/navbar.type').NavbarCenterPosition;
56
88
  glass: boolean;
57
- floating: boolean;
89
+ renderNestedTabs: boolean;
58
90
  mobileBreakpoint: "sm" | "md" | "lg" | "xl";
59
91
  logoClass: string;
60
92
  menuClass: string;
61
93
  rightClass: string;
62
94
  mobileTriggerClass: string;
63
95
  mobileMenuVariant: "sidepanel" | "dropdown";
96
+ sidebarToggle: boolean;
97
+ breadcrumbPosition: "header" | "main";
98
+ breadcrumbVariant: import('../Breadcrumb').BreadcrumbVariant;
99
+ breadcrumbSeparator: import('../Breadcrumb').BreadcrumbSeparator;
100
+ breadcrumbSize: import('../Breadcrumb').BreadcrumbSize;
101
+ breadcrumbHomeIcon: string;
102
+ breadcrumbClass: string;
64
103
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
65
104
  mobileTriggerRef: HTMLButtonElement;
66
105
  mobileMenuRef: HTMLDivElement;
67
- }, HTMLElement>;
106
+ }, any>;
68
107
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
69
108
  export default _default;
70
109
  type __VLS_WithTemplateSlots<T, S> = T & {