@wirecore/wirelayer-vue 0.1.1 → 0.3.0

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 (293) hide show
  1. package/README.md +2 -0
  2. package/dist/{Button-B387XkrN.js → Button-DZ_ZGl7X.js} +1 -1
  3. package/dist/{Checkbox-Dyr5o6oP.js → Checkbox-D9f77jtl.js} +1 -1
  4. package/dist/{ContextMenu-dbn6-cy6.js → ContextMenu-DaBQXlQb.js} +4 -4
  5. package/dist/{CopyButton-DgBx4S3K.js → CopyButton-GmqpUNLf.js} +1 -1
  6. package/dist/{Field-vXBiiUPp.js → Field-BdIPugFP.js} +1 -1
  7. package/dist/{Highlight-D9NePuM4.js → Highlight-DvGcm2QR.js} +1 -1
  8. package/dist/{Input-CL58Z06T.js → Input-C59NJK4m.js} +1 -1
  9. package/dist/{Select-CORKKGPY.js → Select-BlEjQWBP.js} +2 -2
  10. package/dist/{Slider-CM1x_dlq.js → Slider-CyoZc5A8.js} +1 -1
  11. package/dist/{Tree-Cwh7NNf3.js → Tree-B39xwNbU.js} +2 -2
  12. package/dist/chart/Chart.vue.d.ts.map +1 -1
  13. package/dist/chart/ChartCanvas.vue.d.ts.map +1 -1
  14. package/dist/chart/Sparkline.vue.d.ts.map +1 -1
  15. package/dist/chart.js +30 -30
  16. package/dist/code.js +3 -3
  17. package/dist/components/EmojiPicker/EmojiPicker.vue.d.ts.map +1 -1
  18. package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts.map +1 -1
  19. package/dist/data-table/DataTable.vue.d.ts +11 -2
  20. package/dist/data-table/DataTable.vue.d.ts.map +1 -1
  21. package/dist/data-table/ValueInput.vue.d.ts.map +1 -1
  22. package/dist/data-table/features.d.ts +4 -0
  23. package/dist/data-table/features.d.ts.map +1 -1
  24. package/dist/data-table/index.d.ts +4 -1
  25. package/dist/data-table/index.d.ts.map +1 -1
  26. package/dist/data-table/inputs.d.ts +6 -0
  27. package/dist/data-table/inputs.d.ts.map +1 -0
  28. package/dist/data-table/types.d.ts +39 -1
  29. package/dist/data-table/types.d.ts.map +1 -1
  30. package/dist/data-table.js +1576 -1546
  31. package/dist/editor.js +3 -3
  32. package/dist/form/bind.d.ts +1 -1
  33. package/dist/form/bind.d.ts.map +1 -1
  34. package/dist/form.js +6 -6
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +12 -12
  38. package/dist/locale.d.ts +1 -1
  39. package/dist/locale.d.ts.map +1 -1
  40. package/dist/locales/de.d.ts +2 -0
  41. package/dist/locales/de.d.ts.map +1 -0
  42. package/dist/locales/de.js +1 -0
  43. package/dist/pdf.js +5 -5
  44. package/dist/recipes-BlM9aKyt.js +39 -0
  45. package/dist/recipes.d.ts.map +1 -1
  46. package/dist/sources/Accordion.css +2 -0
  47. package/dist/sources/AccordionItem.css +2 -0
  48. package/dist/sources/ActionBar.css +5 -0
  49. package/dist/sources/Affix.css +2 -0
  50. package/dist/sources/AiLabel.css +3 -0
  51. package/dist/sources/Alert.css +2 -0
  52. package/dist/sources/AngleSlider.css +2 -0
  53. package/dist/sources/AppShell.css +5 -0
  54. package/dist/sources/AspectRatio.css +2 -0
  55. package/dist/sources/Autocomplete.css +3 -0
  56. package/dist/sources/Avatar.css +2 -0
  57. package/dist/sources/AvatarGroup.css +2 -0
  58. package/dist/sources/Badge.css +2 -0
  59. package/dist/sources/Banner.css +2 -0
  60. package/dist/sources/BarChart.css +4 -0
  61. package/dist/sources/BarsList.css +2 -0
  62. package/dist/sources/BlockUi.css +3 -0
  63. package/dist/sources/BottomNavigation.css +2 -0
  64. package/dist/sources/Breadcrumb.css +3 -0
  65. package/dist/sources/BreadcrumbItem.css +2 -0
  66. package/dist/sources/BulletChart.css +2 -0
  67. package/dist/sources/Button.css +3 -0
  68. package/dist/sources/ButtonGroup.css +2 -0
  69. package/dist/sources/Calendar.css +2 -0
  70. package/dist/sources/Card.css +3 -0
  71. package/dist/sources/Carousel.css +3 -0
  72. package/dist/sources/CascadeSelect.css +3 -0
  73. package/dist/sources/Center.css +2 -0
  74. package/dist/sources/Chart.css +2 -0
  75. package/dist/sources/ChatMessage.css +4 -0
  76. package/dist/sources/ChatMessages.css +7 -0
  77. package/dist/sources/ChatPrompt.css +5 -0
  78. package/dist/sources/ChatSources.css +2 -0
  79. package/dist/sources/ChatThinking.css +2 -0
  80. package/dist/sources/ChatToolCall.css +2 -0
  81. package/dist/sources/Checkbox.css +2 -0
  82. package/dist/sources/CheckboxCard.css +2 -0
  83. package/dist/sources/CheckboxGroup.css +3 -0
  84. package/dist/sources/Chip.css +3 -0
  85. package/dist/sources/ChipGroup.css +2 -0
  86. package/dist/sources/CodeHighlight.css +7 -0
  87. package/dist/sources/CodeHighlightTabs.css +8 -0
  88. package/dist/sources/Collapse.css +2 -0
  89. package/dist/sources/ColorInput.css +2 -0
  90. package/dist/sources/ColorPicker.css +2 -0
  91. package/dist/sources/ColorSwatchPicker.css +2 -0
  92. package/dist/sources/Combobox.css +2 -0
  93. package/dist/sources/CommandPalette.css +5 -0
  94. package/dist/sources/Compare.css +2 -0
  95. package/dist/sources/CompositeChart.css +4 -0
  96. package/dist/sources/ConfigProvider.css +2 -0
  97. package/dist/sources/ConfirmDialog.css +7 -0
  98. package/dist/sources/ConfirmPopup.css +4 -0
  99. package/dist/sources/Container.css +2 -0
  100. package/dist/sources/ContextMenu.css +2 -0
  101. package/dist/sources/CopyButton.css +3 -0
  102. package/dist/sources/Countdown.css +2 -0
  103. package/dist/sources/DataList.css +2 -0
  104. package/dist/sources/DataListItem.css +2 -0
  105. package/dist/sources/DataTable.css +16 -0
  106. package/dist/sources/DataView.css +9 -0
  107. package/dist/sources/DatePicker.css +2 -0
  108. package/dist/sources/DateRangePicker.css +2 -0
  109. package/dist/sources/Descriptions.css +2 -0
  110. package/dist/sources/Dialog.css +2 -0
  111. package/dist/sources/DialogClose.css +2 -0
  112. package/dist/sources/DialogContent.css +2 -0
  113. package/dist/sources/DialogHost.css +2 -0
  114. package/dist/sources/DialogTrigger.css +2 -0
  115. package/dist/sources/Divider.css +2 -0
  116. package/dist/sources/DownloadTrigger.css +3 -0
  117. package/dist/sources/Drawer.css +2 -0
  118. package/dist/sources/DrawerClose.css +2 -0
  119. package/dist/sources/DrawerContent.css +2 -0
  120. package/dist/sources/DrawerTrigger.css +2 -0
  121. package/dist/sources/DurationInput.css +2 -0
  122. package/dist/sources/Editor.css +7 -0
  123. package/dist/sources/EmojiPicker.css +3 -0
  124. package/dist/sources/EmptyState.css +2 -0
  125. package/dist/sources/Field.css +3 -0
  126. package/dist/sources/FieldArray.css +6 -0
  127. package/dist/sources/Fieldset.css +2 -0
  128. package/dist/sources/FileTypes.css +2 -0
  129. package/dist/sources/FileUpload.css +5 -0
  130. package/dist/sources/FilterChips.css +4 -0
  131. package/dist/sources/FilterPanel.css +8 -0
  132. package/dist/sources/FloatingPanel.css +2 -0
  133. package/dist/sources/FormErrorSummary.css +2 -0
  134. package/dist/sources/FormField.css +3 -0
  135. package/dist/sources/FormList.css +6 -0
  136. package/dist/sources/FormatBytes.css +2 -0
  137. package/dist/sources/FormatDate.css +2 -0
  138. package/dist/sources/FormatDateTime.css +2 -0
  139. package/dist/sources/FormatList.css +2 -0
  140. package/dist/sources/FormatNumber.css +2 -0
  141. package/dist/sources/FormatRelativeTime.css +2 -0
  142. package/dist/sources/Funnel.css +3 -0
  143. package/dist/sources/Gallery.css +5 -0
  144. package/dist/sources/Gantt.css +9 -0
  145. package/dist/sources/Gauge.css +2 -0
  146. package/dist/sources/Group.css +2 -0
  147. package/dist/sources/Heatmap.css +2 -0
  148. package/dist/sources/Highlight.css +2 -0
  149. package/dist/sources/HotkeysDialog.css +5 -0
  150. package/dist/sources/HoverCard.css +2 -0
  151. package/dist/sources/IconButton.css +2 -0
  152. package/dist/sources/Image.css +4 -0
  153. package/dist/sources/ImageCropper.css +3 -0
  154. package/dist/sources/InlineCode.css +2 -0
  155. package/dist/sources/InlineEdit.css +5 -0
  156. package/dist/sources/Inplace.css +2 -0
  157. package/dist/sources/Input.css +2 -0
  158. package/dist/sources/InputGroup.css +2 -0
  159. package/dist/sources/InputGroupAddon.css +2 -0
  160. package/dist/sources/JsonInput.css +6 -0
  161. package/dist/sources/JsonViewer.css +4 -0
  162. package/dist/sources/Kanban.css +5 -0
  163. package/dist/sources/Kbd.css +3 -0
  164. package/dist/sources/KeyValueEditor.css +8 -0
  165. package/dist/sources/Knob.css +2 -0
  166. package/dist/sources/LandmarkNavigation.css +2 -0
  167. package/dist/sources/LineChart.css +4 -0
  168. package/dist/sources/Listbox.css +2 -0
  169. package/dist/sources/LiveAnnouncer.css +2 -0
  170. package/dist/sources/LocaleProvider.css +2 -0
  171. package/dist/sources/LogViewer.css +7 -0
  172. package/dist/sources/Markdown.css +2 -0
  173. package/dist/sources/Marquee.css +3 -0
  174. package/dist/sources/MaskInput.css +2 -0
  175. package/dist/sources/Masonry.css +2 -0
  176. package/dist/sources/MegaMenu.css +6 -0
  177. package/dist/sources/Mentions.css +2 -0
  178. package/dist/sources/Menu.css +2 -0
  179. package/dist/sources/Menubar.css +4 -0
  180. package/dist/sources/MeterGroup.css +2 -0
  181. package/dist/sources/MiniCalendar.css +2 -0
  182. package/dist/sources/MonthPicker.css +2 -0
  183. package/dist/sources/MultiSelect.css +2 -0
  184. package/dist/sources/NativeSelect.css +2 -0
  185. package/dist/sources/NavigationMenu.css +2 -0
  186. package/dist/sources/NavigationProgress.css +2 -0
  187. package/dist/sources/NotificationCenter.css +7 -0
  188. package/dist/sources/NumberFormatter.css +2 -0
  189. package/dist/sources/NumberInput.css +2 -0
  190. package/dist/sources/OrderList.css +4 -0
  191. package/dist/sources/OrgChart.css +2 -0
  192. package/dist/sources/OverflowList.css +4 -0
  193. package/dist/sources/OverlayBadge.css +2 -0
  194. package/dist/sources/PageHeader.css +3 -0
  195. package/dist/sources/Pagination.css +4 -0
  196. package/dist/sources/Panel.css +2 -0
  197. package/dist/sources/PasswordInput.css +2 -0
  198. package/dist/sources/PdfViewer.css +13 -0
  199. package/dist/sources/Persona.css +4 -0
  200. package/dist/sources/PhoneInput.css +4 -0
  201. package/dist/sources/PickList.css +4 -0
  202. package/dist/sources/PieChart.css +3 -0
  203. package/dist/sources/PinInput.css +2 -0
  204. package/dist/sources/Popover.css +2 -0
  205. package/dist/sources/PopoverClose.css +2 -0
  206. package/dist/sources/PopoverContent.css +2 -0
  207. package/dist/sources/PopoverTrigger.css +2 -0
  208. package/dist/sources/Progress.css +2 -0
  209. package/dist/sources/ProgressCircle.css +2 -0
  210. package/dist/sources/QrCode.css +4 -0
  211. package/dist/sources/QuarterPicker.css +2 -0
  212. package/dist/sources/RadialBar.css +2 -0
  213. package/dist/sources/RadioCard.css +2 -0
  214. package/dist/sources/RadioGroup.css +2 -0
  215. package/dist/sources/RadioGroupItem.css +2 -0
  216. package/dist/sources/Rating.css +2 -0
  217. package/dist/sources/RecipesProvider.css +2 -0
  218. package/dist/sources/Result.css +2 -0
  219. package/dist/sources/RingProgress.css +2 -0
  220. package/dist/sources/SCHEDULER_DRAG_TYPE.css +2 -0
  221. package/dist/sources/Sankey.css +3 -0
  222. package/dist/sources/SaveStatus.css +2 -0
  223. package/dist/sources/Scheduler.css +10 -0
  224. package/dist/sources/ScrollPanel.css +2 -0
  225. package/dist/sources/ScrollTop.css +3 -0
  226. package/dist/sources/Scroller.css +2 -0
  227. package/dist/sources/SearchField.css +6 -0
  228. package/dist/sources/SegmentedControl.css +2 -0
  229. package/dist/sources/SegmentedControlItem.css +2 -0
  230. package/dist/sources/Select.css +2 -0
  231. package/dist/sources/SessionTimeout.css +5 -0
  232. package/dist/sources/SidebarNav.css +3 -0
  233. package/dist/sources/SignaturePad.css +5 -0
  234. package/dist/sources/SimpleGrid.css +2 -0
  235. package/dist/sources/Skeleton.css +2 -0
  236. package/dist/sources/SkipLinks.css +2 -0
  237. package/dist/sources/Slider.css +2 -0
  238. package/dist/sources/Sortable.css +2 -0
  239. package/dist/sources/Sparkline.css +2 -0
  240. package/dist/sources/SpeedDial.css +2 -0
  241. package/dist/sources/Spinner.css +2 -0
  242. package/dist/sources/SplitButton.css +4 -0
  243. package/dist/sources/Splitter.css +2 -0
  244. package/dist/sources/Spoiler.css +2 -0
  245. package/dist/sources/Stack.css +2 -0
  246. package/dist/sources/Statistic.css +3 -0
  247. package/dist/sources/StatusDot.css +2 -0
  248. package/dist/sources/Stepper.css +4 -0
  249. package/dist/sources/Steps.css +2 -0
  250. package/dist/sources/Sticky.css +2 -0
  251. package/dist/sources/Switch.css +2 -0
  252. package/dist/sources/SwitchGroup.css +3 -0
  253. package/dist/sources/TableOfContents.css +2 -0
  254. package/dist/sources/Tabs.css +2 -0
  255. package/dist/sources/TabsContent.css +2 -0
  256. package/dist/sources/TabsList.css +2 -0
  257. package/dist/sources/TabsTrigger.css +2 -0
  258. package/dist/sources/TagsInput.css +2 -0
  259. package/dist/sources/Textarea.css +3 -0
  260. package/dist/sources/TimeGrid.css +2 -0
  261. package/dist/sources/TimePicker.css +3 -0
  262. package/dist/sources/TimeRangePicker.css +2 -0
  263. package/dist/sources/Timeline.css +4 -0
  264. package/dist/sources/Toaster.css +2 -0
  265. package/dist/sources/ToggleButton.css +3 -0
  266. package/dist/sources/Toggletip.css +2 -0
  267. package/dist/sources/Toolbar.css +3 -0
  268. package/dist/sources/Tooltip.css +2 -0
  269. package/dist/sources/TooltipGroup.css +2 -0
  270. package/dist/sources/Tour.css +5 -0
  271. package/dist/sources/Tree.css +5 -0
  272. package/dist/sources/TreeSelect.css +6 -0
  273. package/dist/sources/Treemap.css +2 -0
  274. package/dist/sources/Truncate.css +3 -0
  275. package/dist/sources/VirtualList.css +2 -0
  276. package/dist/sources/VirtualSelect.css +3 -0
  277. package/dist/sources/VirtualTree.css +5 -0
  278. package/dist/sources/VisuallyHidden.css +2 -0
  279. package/dist/sources/WaterfallChart.css +2 -0
  280. package/dist/sources/Watermark.css +2 -0
  281. package/dist/sources/Wizard.css +5 -0
  282. package/dist/sources/YearPicker.css +2 -0
  283. package/dist/sources/dateInput.css +3 -0
  284. package/dist/sources/numberInput.css +3 -0
  285. package/dist/{useTree-DO_-mY9G.js → useTree-Dt7NO7cp.js} +3 -3
  286. package/dist/virtual/index.d.ts +3 -0
  287. package/dist/virtual/index.d.ts.map +1 -1
  288. package/dist/virtual/virtual-rows.d.ts +4 -0
  289. package/dist/virtual/virtual-rows.d.ts.map +1 -0
  290. package/dist/virtual.js +282 -282
  291. package/package.json +9 -6
  292. package/styles-core.css +15 -0
  293. package/dist/recipes-CcZk3fPU.js +0 -39
package/dist/virtual.js CHANGED
@@ -1,14 +1,14 @@
1
- import { a as e, n as t } from "./recipes-CcZk3fPU.js";
1
+ import { a as e, n as t } from "./recipes-BlM9aKyt.js";
2
2
  import { t as n } from "./attrs-KNjeRUCf.js";
3
- import { a as r, i, n as a, r as o } from "./Highlight-D9NePuM4.js";
4
- import { a as s, i as c, n as l, r as ee, t as u } from "./useTree-DO_-mY9G.js";
5
- import { Fragment as d, Teleport as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as v, createTextVNode as y, createVNode as b, defineComponent as x, guardReactiveProps as S, mergeProps as te, nextTick as C, normalizeClass as w, normalizeProps as T, normalizeStyle as E, onMounted as D, openBlock as O, provide as k, ref as A, renderList as j, renderSlot as M, resolveDynamicComponent as N, toDisplayString as P, unref as F, useAttrs as ne, useId as I, useSlots as L, watch as R, withCtx as z } from "vue";
6
- import { Check as B, ChevronDown as V, LoaderCircle as H, X as re } from "@lucide/vue";
7
- import { flattenTree as U, select as ie, tree as ae, virtualList as oe, virtualListBox as W } from "@wirecore/wirelayer-recipes";
8
- import { createListCollection as se } from "@ark-ui/vue/collection";
9
- import { Select as G } from "@ark-ui/vue/select";
10
- import { TreeView as K, useTreeView as q } from "@ark-ui/vue/tree-view";
11
- import { defaultRangeExtractor as ce, useVirtualizer as le } from "@tanstack/vue-virtual";
3
+ import { a as r, i, n as a, r as o } from "./Highlight-DvGcm2QR.js";
4
+ import { a as ee, i as s, n as c, r as te, t as l } from "./useTree-Dt7NO7cp.js";
5
+ import { Fragment as u, Teleport as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as _, createTextVNode as v, createVNode as y, defineComponent as b, guardReactiveProps as x, mergeProps as ne, nextTick as S, normalizeClass as C, normalizeProps as w, normalizeStyle as T, onMounted as E, openBlock as D, provide as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as M, toDisplayString as N, unref as P, useAttrs as re, useId as F, useSlots as I, watch as L, withCtx as R } from "vue";
6
+ import { Check as z, ChevronDown as B, LoaderCircle as V, X as ie } from "@lucide/vue";
7
+ import { flattenTree as H, select as ae, tree as oe, virtualList as se, virtualListBox as U } from "@wirecore/wirelayer-recipes";
8
+ import { createListCollection as ce } from "@ark-ui/vue/collection";
9
+ import { Select as W } from "@ark-ui/vue/select";
10
+ import { TreeView as G, useTreeView as K } from "@ark-ui/vue/tree-view";
11
+ import { defaultRangeExtractor as le, useVirtualizer as q } from "@tanstack/vue-virtual";
12
12
  //#region src/virtual/VirtualSelect.vue?vue&type=script&setup=true&lang.ts
13
13
  var ue = ["aria-label", "onClick"], de = [
14
14
  "aria-controls",
@@ -17,7 +17,7 @@ var ue = ["aria-label", "onClick"], de = [
17
17
  "placeholder",
18
18
  "value",
19
19
  "onInput"
20
- ], J = /* @__PURE__ */ x({
20
+ ], J = /* @__PURE__ */ b({
21
21
  inheritAttrs: !1,
22
22
  __name: "VirtualSelect",
23
23
  props: {
@@ -59,37 +59,37 @@ var ue = ["aria-label", "onClick"], de = [
59
59
  "filterChange",
60
60
  "loadMore"
61
61
  ],
62
- setup(i, { emit: s }) {
63
- let c = e(), l = i, ee = t("select", ie), u = t("virtualList", oe), x = s, k = ne(), M = p(() => n(k)), L = p(() => ee({
64
- size: l.size,
65
- clearable: l.clearable
66
- })), U = u(), ae = c.select, W = p(() => ({
67
- itemValue: l.itemValue,
68
- itemLabel: l.itemLabel,
69
- itemDisabled: l.itemDisabled,
62
+ setup(i, { emit: ee }) {
63
+ let s = e(), c = i, te = t("select", ae), l = t("virtualList", se), b = ee, O = re(), j = f(() => n(O)), I = f(() => te({
64
+ size: c.size,
65
+ clearable: c.clearable
66
+ })), H = l(), oe = s.select, U = f(() => ({
67
+ itemValue: c.itemValue,
68
+ itemLabel: c.itemLabel,
69
+ itemDisabled: c.itemDisabled,
70
70
  itemGroup: () => void 0,
71
- valueKey: l.valueKey
72
- })), K = A(""), q = r({
73
- items: () => l.items,
74
- source: () => l.dataSource,
75
- accessors: () => W.value,
76
- pageSize: () => l.pageSize,
77
- minSearchLength: () => l.minSearchLength
78
- }), { options: ce, visible: J } = a(() => q.items.value, () => W.value, () => l.filter && !l.manualFilter && !l.dataSource ? K.value : ""), Y = p(() => [...ce.value, ...q.resolvedOptions.value]), { selected: fe, keys: X, commit: pe, commitKeys: me } = o({
71
+ valueKey: c.valueKey
72
+ })), G = k(""), K = r({
73
+ items: () => c.items,
74
+ source: () => c.dataSource,
75
+ accessors: () => U.value,
76
+ pageSize: () => c.pageSize,
77
+ minSearchLength: () => c.minSearchLength
78
+ }), { options: le, visible: J } = a(() => K.items.value, () => U.value, () => c.filter && !c.manualFilter && !c.dataSource ? G.value : ""), Y = f(() => [...le.value, ...K.resolvedOptions.value]), { selected: fe, keys: X, commit: pe, commitKeys: me } = o({
79
79
  multiple: !1,
80
- model: () => l.modelValue,
81
- defaultValue: l.defaultValue,
82
- accessors: () => W.value,
80
+ model: () => c.modelValue,
81
+ defaultValue: c.defaultValue,
82
+ accessors: () => U.value,
83
83
  items: Y,
84
- emit: (e) => x("update:modelValue", e)
85
- }), Z = p(() => fe.value[0]), he = p(() => se({
84
+ emit: (e) => b("update:modelValue", e)
85
+ }), Z = f(() => fe.value[0]), he = f(() => ce({
86
86
  items: J.value,
87
87
  itemToString: (e) => e.label,
88
88
  itemToValue: (e) => e.key,
89
89
  isItemDisabled: (e) => e.disabled
90
- })), ge = I(), _e = A(null), ve = A(null), ye = (e) => e ? "$el" in e ? e.$el ?? null : e : null, Q = le(p(() => ({
90
+ })), ge = F(), _e = k(null), ve = k(null), ye = (e) => e ? "$el" in e ? e.$el ?? null : e : null, Q = q(f(() => ({
91
91
  count: J.value.length,
92
- getScrollElement: () => ye(l.filter ? ve.value : _e.value),
92
+ getScrollElement: () => ye(c.filter ? ve.value : _e.value),
93
93
  estimateSize: () => 36,
94
94
  overscan: 8,
95
95
  initialRect: {
@@ -97,21 +97,21 @@ var ue = ["aria-label", "onClick"], de = [
97
97
  height: 288
98
98
  }
99
99
  })));
100
- D(() => q.resolve(X.value, Y.value)), R(X, (e) => q.resolve(e, Y.value));
101
- let $ = p(() => l.loading || q.loading.value), be = p(() => l.hasMore || q.hasMore.value), xe = p(() => Q.value.getVirtualItems().at(-1)?.index ?? -1);
102
- R([
100
+ E(() => K.resolve(X.value, Y.value)), L(X, (e) => K.resolve(e, Y.value));
101
+ let $ = f(() => c.loading || K.loading.value), be = f(() => c.hasMore || K.hasMore.value), xe = f(() => Q.value.getVirtualItems().at(-1)?.index ?? -1);
102
+ L([
103
103
  xe,
104
104
  () => J.value.length,
105
105
  $,
106
106
  be
107
107
  ], () => {
108
- !be.value || $.value || !J.value.length || xe.value < J.value.length - 1 || (l.dataSource ? q.loadMore() : x("loadMore"));
108
+ !be.value || $.value || !J.value.length || xe.value < J.value.length - 1 || (c.dataSource ? K.loadMore() : b("loadMore"));
109
109
  });
110
110
  function Se(e) {
111
- l.clearable && fe.value.length && (e.key === "Backspace" || e.key === "Delete") && (e.preventDefault(), pe([]));
111
+ c.clearable && fe.value.length && (e.key === "Backspace" || e.key === "Delete") && (e.preventDefault(), pe([]));
112
112
  }
113
113
  function Ce(e, t) {
114
- K.value = t.target.value, x("filterChange", K.value), l.dataSource && q.search(K.value), !(l.manualFilter || l.dataSource) && C(() => {
114
+ G.value = t.target.value, b("filterChange", G.value), c.dataSource && K.search(G.value), !(c.manualFilter || c.dataSource) && S(() => {
115
115
  let t = J.value.find((e) => !e.disabled);
116
116
  t && e.setHighlightValue(t.key);
117
117
  });
@@ -120,134 +120,134 @@ var ue = ["aria-label", "onClick"], de = [
120
120
  (e.key === " " || e.key === "Home" || e.key === "End") && e.stopPropagation();
121
121
  }
122
122
  function Te(e) {
123
- e && q.open(), !e && K.value && (K.value = "", x("filterChange", ""), l.dataSource && q.search(""));
123
+ e && K.open(), !e && G.value && (G.value = "", b("filterChange", ""), c.dataSource && K.search(""));
124
124
  }
125
125
  let Ee = (e) => e.highlightedItem ? e.getItemProps({ item: e.highlightedItem }).id : void 0, De = {
126
126
  sameWidth: !0,
127
127
  gutter: 4
128
128
  };
129
- return (e, t) => (O(), m(F(G).Root, {
130
- class: w(L.value.base({ class: M.value.className })),
131
- style: E(M.value.style),
129
+ return (e, t) => (D(), p(P(W).Root, {
130
+ class: C(I.value.base({ class: j.value.className })),
131
+ style: T(j.value.style),
132
132
  collection: he.value,
133
- "model-value": F(X),
133
+ "model-value": P(X),
134
134
  disabled: i.disabled,
135
135
  invalid: i.invalid,
136
136
  required: i.required,
137
137
  name: i.name,
138
138
  positioning: De,
139
139
  composite: !i.filter,
140
- "scroll-to-index-fn": (e) => F(Q).scrollToIndex(e.index, { align: "auto" }),
141
- onValueChange: t[0] ||= (e) => F(me)(e.value, e.items),
140
+ "scroll-to-index-fn": (e) => P(Q).scrollToIndex(e.index, { align: "auto" }),
141
+ onValueChange: t[0] ||= (e) => P(me)(e.value, e.items),
142
142
  onOpenChange: t[1] ||= (e) => Te(e.open)
143
143
  }, {
144
- default: z(() => [
145
- b(F(G).Control, T(S(i.clearable ? { class: L.value.control() } : {})), {
146
- default: z(() => [b(F(G).Trigger, te(M.value.rest, {
147
- class: L.value.trigger(),
144
+ default: R(() => [
145
+ y(P(W).Control, w(x(i.clearable ? { class: I.value.control() } : {})), {
146
+ default: R(() => [y(P(W).Trigger, ne(j.value.rest, {
147
+ class: I.value.trigger(),
148
148
  "aria-busy": $.value || void 0,
149
149
  onKeydown: Se
150
150
  }), {
151
- default: z(() => [_("span", { class: w(L.value.value()) }, [Z.value?.icon ? (O(), m(N(Z.value.icon), {
151
+ default: R(() => [g("span", { class: C(I.value.value()) }, [Z.value?.icon ? (D(), p(M(Z.value.icon), {
152
152
  key: 0,
153
- class: w(L.value.icon()),
153
+ class: C(I.value.icon()),
154
154
  "aria-hidden": "true"
155
- }, null, 8, ["class"])) : h("", !0), b(F(G).ValueText, { placeholder: i.placeholder ?? F(c).common.placeholder }, v({ _: 2 }, [Z.value ? {
155
+ }, null, 8, ["class"])) : m("", !0), y(P(W).ValueText, { placeholder: i.placeholder ?? P(s).common.placeholder }, _({ _: 2 }, [Z.value ? {
156
156
  name: "default",
157
- fn: z(() => [y(P(Z.value.label), 1)]),
157
+ fn: R(() => [v(N(Z.value.label), 1)]),
158
158
  key: "0"
159
- } : void 0]), 1032, ["placeholder"])], 2), b(F(G).Indicator, { class: w(L.value.indicator()) }, {
160
- default: z(() => [$.value ? (O(), m(F(H), {
159
+ } : void 0]), 1032, ["placeholder"])], 2), y(P(W).Indicator, { class: C(I.value.indicator()) }, {
160
+ default: R(() => [$.value ? (D(), p(P(V), {
161
161
  key: 0,
162
- class: w(L.value.spinner()),
162
+ class: C(I.value.spinner()),
163
163
  "aria-hidden": "true"
164
- }, null, 8, ["class"])) : (O(), m(F(V), {
164
+ }, null, 8, ["class"])) : (D(), p(P(B), {
165
165
  key: 1,
166
- class: w(L.value.indicatorIcon()),
166
+ class: C(I.value.indicatorIcon()),
167
167
  "aria-hidden": "true"
168
168
  }, null, 8, ["class"]))]),
169
169
  _: 1
170
170
  }, 8, ["class"])]),
171
171
  _: 1
172
- }, 16, ["class", "aria-busy"]), i.clearable ? (O(), m(F(G).Context, { key: 0 }, {
173
- default: z((e) => [Z.value && !e.disabled ? (O(), g("button", {
172
+ }, 16, ["class", "aria-busy"]), i.clearable ? (D(), p(P(W).Context, { key: 0 }, {
173
+ default: R((e) => [Z.value && !e.disabled ? (D(), h("button", {
174
174
  key: 0,
175
175
  type: "button",
176
176
  tabindex: "-1",
177
- class: w(L.value.clear()),
178
- "aria-label": F(ae).clear,
177
+ class: C(I.value.clear()),
178
+ "aria-label": P(oe).clear,
179
179
  onClick: (t) => {
180
- F(pe)([]), e.focus();
180
+ P(pe)([]), e.focus();
181
181
  }
182
- }, [b(F(re), {
183
- class: w(L.value.clearIcon()),
182
+ }, [y(P(ie), {
183
+ class: C(I.value.clearIcon()),
184
184
  "aria-hidden": "true"
185
- }, null, 8, ["class"])], 10, ue)) : h("", !0)]),
185
+ }, null, 8, ["class"])], 10, ue)) : m("", !0)]),
186
186
  _: 1
187
- })) : h("", !0)]),
187
+ })) : m("", !0)]),
188
188
  _: 1
189
189
  }, 16),
190
- (O(), m(f, { to: "body" }, [b(F(G).Positioner, null, {
191
- default: z(() => [b(F(G).Content, {
190
+ (D(), p(d, { to: "body" }, [y(P(W).Positioner, null, {
191
+ default: R(() => [y(P(W).Content, {
192
192
  ref_key: "content",
193
193
  ref: _e,
194
- class: w(L.value.content()),
194
+ class: C(I.value.content()),
195
195
  "aria-busy": $.value || void 0,
196
- "aria-label": i.filter ? M.value.rest["aria-label"] : void 0
196
+ "aria-label": i.filter ? j.value.rest["aria-label"] : void 0
197
197
  }, {
198
- default: z(() => [i.filter ? (O(), g("div", {
198
+ default: R(() => [i.filter ? (D(), h("div", {
199
199
  key: 0,
200
- class: w(L.value.header())
201
- }, [b(F(G).Context, null, {
202
- default: z((e) => [_("input", {
200
+ class: C(I.value.header())
201
+ }, [y(P(W).Context, null, {
202
+ default: R((e) => [g("input", {
203
203
  type: "text",
204
204
  role: "combobox",
205
205
  autocomplete: "off",
206
206
  "aria-autocomplete": "list",
207
207
  "aria-expanded": "true",
208
208
  "data-autofocus": "",
209
- "aria-controls": F(ge),
209
+ "aria-controls": P(ge),
210
210
  "aria-activedescendant": Ee(e),
211
- "aria-label": F(ae).filter,
212
- placeholder: F(c).combobox.search,
213
- value: K.value,
214
- class: w(L.value.search()),
211
+ "aria-label": P(oe).filter,
212
+ placeholder: P(s).combobox.search,
213
+ value: G.value,
214
+ class: C(I.value.search()),
215
215
  onInput: (t) => Ce(e, t),
216
216
  onKeydown: we
217
217
  }, null, 42, de)]),
218
218
  _: 1
219
- })], 2)) : h("", !0), i.filter ? (O(), m(F(G).List, {
219
+ })], 2)) : m("", !0), i.filter ? (D(), p(P(W).List, {
220
220
  key: 1,
221
- id: F(ge),
221
+ id: P(ge),
222
222
  ref_key: "scroller",
223
223
  ref: ve,
224
- class: w(L.value.list({ class: F(U).scroll() }))
224
+ class: C(I.value.list({ class: P(H).scroll() }))
225
225
  }, {
226
- default: z(() => [
227
- _("div", {
228
- class: w(F(U).spacer()),
229
- style: E({ height: `${F(Q).getTotalSize()}px` })
230
- }, [(O(!0), g(d, null, j(F(Q).getVirtualItems(), (e) => (O(), m(F(G).Item, {
226
+ default: R(() => [
227
+ g("div", {
228
+ class: C(P(H).spacer()),
229
+ style: T({ height: `${P(Q).getTotalSize()}px` })
230
+ }, [(D(!0), h(u, null, A(P(Q).getVirtualItems(), (e) => (D(), p(P(W).Item, {
231
231
  key: String(e.key),
232
- item: F(J)[e.index],
233
- class: w(L.value.item({ class: F(U).item() })),
234
- style: E({ transform: `translateY(${e.start}px)` }),
235
- "aria-setsize": F(J).length,
232
+ item: P(J)[e.index],
233
+ class: C(I.value.item({ class: P(H).item() })),
234
+ style: T({ transform: `translateY(${e.start}px)` }),
235
+ "aria-setsize": P(J).length,
236
236
  "aria-posinset": e.index + 1
237
237
  }, {
238
- default: z(() => [
239
- F(J)[e.index].icon ? (O(), m(N(F(J)[e.index].icon), {
238
+ default: R(() => [
239
+ P(J)[e.index].icon ? (D(), p(M(P(J)[e.index].icon), {
240
240
  key: 0,
241
- class: w(L.value.icon()),
241
+ class: C(I.value.icon()),
242
242
  "aria-hidden": "true"
243
- }, null, 8, ["class"])) : h("", !0),
244
- b(F(G).ItemText, { class: w(L.value.itemText()) }, {
245
- default: z(() => [y(P(F(J)[e.index].label), 1)]),
243
+ }, null, 8, ["class"])) : m("", !0),
244
+ y(P(W).ItemText, { class: C(I.value.itemText()) }, {
245
+ default: R(() => [v(N(P(J)[e.index].label), 1)]),
246
246
  _: 2
247
247
  }, 1032, ["class"]),
248
- b(F(G).ItemIndicator, null, {
249
- default: z(() => [b(F(B), {
250
- class: w(L.value.itemIndicator()),
248
+ y(P(W).ItemIndicator, null, {
249
+ default: R(() => [y(P(z), {
250
+ class: C(I.value.itemIndicator()),
251
251
  "aria-hidden": "true"
252
252
  }, null, 8, ["class"])]),
253
253
  _: 1
@@ -261,46 +261,46 @@ var ue = ["aria-label", "onClick"], de = [
261
261
  "aria-setsize",
262
262
  "aria-posinset"
263
263
  ]))), 128))], 6),
264
- $.value ? (O(), g("div", {
264
+ $.value ? (D(), h("div", {
265
265
  key: 0,
266
- class: w(L.value.loading())
267
- }, [b(F(H), {
268
- class: w(L.value.loadingIcon()),
266
+ class: C(I.value.loading())
267
+ }, [y(P(V), {
268
+ class: C(I.value.loadingIcon()),
269
269
  "aria-hidden": "true"
270
- }, null, 8, ["class"]), y(" " + P(i.loadingText ?? F(c).common.loading), 1)], 2)) : h("", !0),
271
- !F(J).length && !$.value ? (O(), g("div", {
270
+ }, null, 8, ["class"]), v(" " + N(i.loadingText ?? P(s).common.loading), 1)], 2)) : m("", !0),
271
+ !P(J).length && !$.value ? (D(), h("div", {
272
272
  key: 1,
273
273
  role: "option",
274
274
  "aria-disabled": "true",
275
- class: w(L.value.empty())
276
- }, P(i.emptyText ?? F(q).emptyText.value ?? (K.value ? F(c).common.noResults : F(c).common.empty)), 3)) : h("", !0)
275
+ class: C(I.value.empty())
276
+ }, N(i.emptyText ?? P(K).emptyText.value ?? (G.value ? P(s).common.noResults : P(s).common.empty)), 3)) : m("", !0)
277
277
  ]),
278
278
  _: 1
279
- }, 8, ["id", "class"])) : (O(), g(d, { key: 2 }, [
280
- _("div", {
281
- class: w(F(U).spacer()),
282
- style: E({ height: `${F(Q).getTotalSize()}px` })
283
- }, [(O(!0), g(d, null, j(F(Q).getVirtualItems(), (e) => (O(), m(F(G).Item, {
279
+ }, 8, ["id", "class"])) : (D(), h(u, { key: 2 }, [
280
+ g("div", {
281
+ class: C(P(H).spacer()),
282
+ style: T({ height: `${P(Q).getTotalSize()}px` })
283
+ }, [(D(!0), h(u, null, A(P(Q).getVirtualItems(), (e) => (D(), p(P(W).Item, {
284
284
  key: String(e.key),
285
- item: F(J)[e.index],
286
- class: w(L.value.item({ class: F(U).item() })),
287
- style: E({ transform: `translateY(${e.start}px)` }),
288
- "aria-setsize": F(J).length,
285
+ item: P(J)[e.index],
286
+ class: C(I.value.item({ class: P(H).item() })),
287
+ style: T({ transform: `translateY(${e.start}px)` }),
288
+ "aria-setsize": P(J).length,
289
289
  "aria-posinset": e.index + 1
290
290
  }, {
291
- default: z(() => [
292
- F(J)[e.index].icon ? (O(), m(N(F(J)[e.index].icon), {
291
+ default: R(() => [
292
+ P(J)[e.index].icon ? (D(), p(M(P(J)[e.index].icon), {
293
293
  key: 0,
294
- class: w(L.value.icon()),
294
+ class: C(I.value.icon()),
295
295
  "aria-hidden": "true"
296
- }, null, 8, ["class"])) : h("", !0),
297
- b(F(G).ItemText, { class: w(L.value.itemText()) }, {
298
- default: z(() => [y(P(F(J)[e.index].label), 1)]),
296
+ }, null, 8, ["class"])) : m("", !0),
297
+ y(P(W).ItemText, { class: C(I.value.itemText()) }, {
298
+ default: R(() => [v(N(P(J)[e.index].label), 1)]),
299
299
  _: 2
300
300
  }, 1032, ["class"]),
301
- b(F(G).ItemIndicator, null, {
302
- default: z(() => [b(F(B), {
303
- class: w(L.value.itemIndicator()),
301
+ y(P(W).ItemIndicator, null, {
302
+ default: R(() => [y(P(z), {
303
+ class: C(I.value.itemIndicator()),
304
304
  "aria-hidden": "true"
305
305
  }, null, 8, ["class"])]),
306
306
  _: 1
@@ -314,19 +314,19 @@ var ue = ["aria-label", "onClick"], de = [
314
314
  "aria-setsize",
315
315
  "aria-posinset"
316
316
  ]))), 128))], 6),
317
- $.value ? (O(), g("div", {
317
+ $.value ? (D(), h("div", {
318
318
  key: 0,
319
- class: w(L.value.loading())
320
- }, [b(F(H), {
321
- class: w(L.value.loadingIcon()),
319
+ class: C(I.value.loading())
320
+ }, [y(P(V), {
321
+ class: C(I.value.loadingIcon()),
322
322
  "aria-hidden": "true"
323
- }, null, 8, ["class"]), y(" " + P(i.loadingText ?? F(c).common.loading), 1)], 2)) : h("", !0),
324
- !F(J).length && !$.value ? (O(), g("div", {
323
+ }, null, 8, ["class"]), v(" " + N(i.loadingText ?? P(s).common.loading), 1)], 2)) : m("", !0),
324
+ !P(J).length && !$.value ? (D(), h("div", {
325
325
  key: 1,
326
326
  role: "option",
327
327
  "aria-disabled": "true",
328
- class: w(L.value.empty())
329
- }, P(i.emptyText ?? F(q).emptyText.value ?? (K.value ? F(c).common.noResults : F(c).common.empty)), 3)) : h("", !0)
328
+ class: C(I.value.empty())
329
+ }, N(i.emptyText ?? P(K).emptyText.value ?? (G.value ? P(s).common.noResults : P(s).common.empty)), 3)) : m("", !0)
330
330
  ], 64))]),
331
331
  _: 1
332
332
  }, 8, [
@@ -336,12 +336,12 @@ var ue = ["aria-label", "onClick"], de = [
336
336
  ])]),
337
337
  _: 1
338
338
  })])),
339
- b(F(G).HiddenSelect),
340
- i.dataSource ? (O(), g("span", {
339
+ y(P(W).HiddenSelect),
340
+ i.dataSource ? (D(), h("span", {
341
341
  key: 0,
342
342
  role: "status",
343
- class: w(L.value.status())
344
- }, P(F(q).announcement.value), 3)) : h("", !0)
343
+ class: C(I.value.status())
344
+ }, N(P(K).announcement.value), 3)) : m("", !0)
345
345
  ]),
346
346
  _: 1
347
347
  }, 8, [
@@ -361,7 +361,7 @@ var ue = ["aria-label", "onClick"], de = [
361
361
  "aria-posinset",
362
362
  "aria-setsize",
363
363
  "data-index"
364
- ], pe = /* @__PURE__ */ x({
364
+ ], pe = /* @__PURE__ */ b({
365
365
  inheritAttrs: !1,
366
366
  __name: "VirtualList",
367
367
  props: {
@@ -390,7 +390,7 @@ var ue = ["aria-label", "onClick"], de = [
390
390
  },
391
391
  emits: ["loadMore", "endReached"],
392
392
  setup(n, { expose: r, emit: a }) {
393
- let o = n, s = a, c = t("virtualListBox", W), l = ne(), ee = e(), u = c(), f = A(null), m = i({
393
+ let o = n, ee = a, s = t("virtualListBox", U), c = re(), te = e(), l = s(), d = k(null), p = i({
394
394
  source: () => o.dataSource,
395
395
  pageSize: () => o.pageSize,
396
396
  query: () => {
@@ -399,23 +399,23 @@ var ue = ["aria-label", "onClick"], de = [
399
399
  return delete e.search, e;
400
400
  }
401
401
  });
402
- D(() => {
403
- o.dataSource && m.search(o.query?.search ?? "", !1);
404
- }), R(() => o.query?.search, (e) => {
405
- o.dataSource && m.search(e ?? "");
402
+ E(() => {
403
+ o.dataSource && p.search(o.query?.search ?? "", !1);
404
+ }), L(() => o.query?.search, (e) => {
405
+ o.dataSource && p.search(e ?? "");
406
406
  });
407
- let v = p(() => o.dataSource ? m.state.value.items : o.items), x = p(() => o.dataSource ? m.state.value.hasMore : o.hasMore), S = p(() => o.dataSource ? m.state.value.status === "loading" : o.loading || o.loadingMore), te = (e) => {
407
+ let _ = f(() => o.dataSource ? p.state.value.items : o.items), b = f(() => o.dataSource ? p.state.value.hasMore : o.hasMore), x = f(() => o.dataSource ? p.state.value.status === "loading" : o.loading || o.loadingMore), ne = (e) => {
408
408
  let t = o.itemGroup, n = typeof t == "function" ? t(e) : e?.[t];
409
409
  return n == null || n === "" ? void 0 : String(n);
410
- }, C = p(() => {
411
- if (!o.itemGroup) return v.value.map((e, t) => ({
410
+ }, S = f(() => {
411
+ if (!o.itemGroup) return _.value.map((e, t) => ({
412
412
  kind: "item",
413
413
  item: e,
414
414
  index: t
415
415
  }));
416
416
  let e = [], t;
417
- return v.value.forEach((n, r) => {
418
- let i = te(n);
417
+ return _.value.forEach((n, r) => {
418
+ let i = ne(n);
419
419
  i !== void 0 && i !== t && e.push({
420
420
  kind: "header",
421
421
  label: i
@@ -425,88 +425,88 @@ var ue = ["aria-label", "onClick"], de = [
425
425
  index: r
426
426
  });
427
427
  }), e;
428
- }), T = p(() => C.value.flatMap((e, t) => e.kind === "header" ? [t] : [])), k = (e) => [...T.value].reverse().find((t) => e >= t) ?? -1, N = le(p(() => ({
429
- count: C.value.length,
430
- getScrollElement: () => f.value,
428
+ }), w = f(() => S.value.flatMap((e, t) => e.kind === "header" ? [t] : [])), O = (e) => [...w.value].reverse().find((t) => e >= t) ?? -1, M = q(f(() => ({
429
+ count: S.value.length,
430
+ getScrollElement: () => d.value,
431
431
  estimateSize: (e) => {
432
- let t = C.value[e];
432
+ let t = S.value[e];
433
433
  return t?.kind === "item" && o.estimateSize ? o.estimateSize(t.item, t.index) : o.itemHeight;
434
434
  },
435
435
  measureElement: (e) => e.getBoundingClientRect().height || o.itemHeight,
436
436
  overscan: 6,
437
- rangeExtractor: T.value.length ? (e) => {
438
- let t = k(e.startIndex), n = new Set(ce(e));
437
+ rangeExtractor: w.value.length ? (e) => {
438
+ let t = O(e.startIndex), n = new Set(le(e));
439
439
  return t >= 0 && n.add(t), [...n].sort((e, t) => e - t);
440
- } : ce,
440
+ } : le,
441
441
  initialRect: {
442
442
  width: 0,
443
443
  height: 320
444
444
  }
445
- }))), I = p(() => N.value.getVirtualItems()), L = p(() => {
446
- let e = I.value.length ? N.value.range : null;
447
- return T.value.length ? k(e?.startIndex ?? 0) : -1;
448
- }), z = -1;
449
- function B() {
450
- let e = I.value.at(-1)?.index, t = C.value.length;
451
- e !== void 0 && x.value && !S.value && z !== t && (e < t - 1 - o.endThreshold || (z = t, o.dataSource ? m.loadMore() : (s("loadMore"), s("endReached"))));
445
+ }))), F = f(() => M.value.getVirtualItems()), I = f(() => {
446
+ let e = F.value.length ? M.value.range : null;
447
+ return w.value.length ? O(e?.startIndex ?? 0) : -1;
448
+ }), R = -1;
449
+ function z() {
450
+ let e = F.value.at(-1)?.index, t = S.value.length;
451
+ e !== void 0 && b.value && !x.value && R !== t && (e < t - 1 - o.endThreshold || (R = t, o.dataSource ? p.loadMore() : (ee("loadMore"), ee("endReached"))));
452
452
  }
453
- D(B), R(() => [
454
- I.value.at(-1)?.index,
455
- C.value.length,
456
- x.value,
457
- S.value
458
- ], B);
459
- let V = p(() => !!o.dataSource || o.hasMore || o.loading || o.loadingMore);
453
+ E(z), L(() => [
454
+ F.value.at(-1)?.index,
455
+ S.value.length,
456
+ b.value,
457
+ x.value
458
+ ], z);
459
+ let B = f(() => !!o.dataSource || o.hasMore || o.loading || o.loadingMore);
460
460
  return r({
461
461
  scrollToIndex(e, t = {}) {
462
- let n = C.value.findIndex((t) => t.kind === "item" && t.index === e);
463
- n >= 0 && N.value.scrollToIndex(n, { align: t.align ?? "auto" });
462
+ let n = S.value.findIndex((t) => t.kind === "item" && t.index === e);
463
+ n >= 0 && M.value.scrollToIndex(n, { align: t.align ?? "auto" });
464
464
  },
465
- refresh: () => m.refresh()
466
- }), (e, t) => (O(), g(d, null, [_("div", {
465
+ refresh: () => p.refresh()
466
+ }), (e, t) => (D(), h(u, null, [g("div", {
467
467
  ref_key: "scrollElement",
468
- ref: f,
468
+ ref: d,
469
469
  role: "list",
470
470
  "aria-label": n.label,
471
- "aria-busy": V.value && S.value || void 0,
471
+ "aria-busy": B.value && x.value || void 0,
472
472
  tabindex: "0",
473
- class: w(F(u).base({ class: w(F(l).class) })),
474
- style: E([{ height: n.height }, F(l).style])
475
- }, [_("div", {
476
- class: w(F(u).spacer()),
477
- style: E({ height: `${F(N).getTotalSize()}px` })
478
- }, [(O(!0), g(d, null, j(I.value, (t) => (O(), g(d, { key: String(t.key) }, [C.value[t.index]?.kind === "header" ? (O(), g("div", {
473
+ class: C(P(l).base({ class: C(P(c).class) })),
474
+ style: T([{ height: n.height }, P(c).style])
475
+ }, [g("div", {
476
+ class: C(P(l).spacer()),
477
+ style: T({ height: `${P(M).getTotalSize()}px` })
478
+ }, [(D(!0), h(u, null, A(F.value, (t) => (D(), h(u, { key: String(t.key) }, [S.value[t.index]?.kind === "header" ? (D(), h("div", {
479
479
  key: 0,
480
480
  ref_for: !0,
481
- ref: (e) => e && F(N).measureElement(e),
481
+ ref: (e) => e && P(M).measureElement(e),
482
482
  role: "presentation",
483
483
  "data-index": t.index,
484
- class: w(t.index === L.value ? F(u).groupHeader({ class: F(u).sticky() }) : F(u).item({ class: F(u).groupHeader() })),
485
- style: E(t.index === L.value ? void 0 : { transform: `translateY(${t.start}px)` })
486
- }, P(C.value[t.index].label), 15, fe)) : C.value[t.index] ? (O(), g("div", {
484
+ class: C(t.index === I.value ? P(l).groupHeader({ class: P(l).sticky() }) : P(l).item({ class: P(l).groupHeader() })),
485
+ style: T(t.index === I.value ? void 0 : { transform: `translateY(${t.start}px)` })
486
+ }, N(S.value[t.index].label), 15, fe)) : S.value[t.index] ? (D(), h("div", {
487
487
  key: 1,
488
488
  ref_for: !0,
489
- ref: (e) => e && F(N).measureElement(e),
489
+ ref: (e) => e && P(M).measureElement(e),
490
490
  role: "listitem",
491
- "aria-posinset": C.value[t.index].index + 1,
492
- "aria-setsize": v.value.length,
491
+ "aria-posinset": S.value[t.index].index + 1,
492
+ "aria-setsize": _.value.length,
493
493
  "data-index": t.index,
494
- class: w(F(u).item()),
495
- style: E({ transform: `translateY(${t.start}px)` })
496
- }, [M(e.$slots, "default", {
497
- item: C.value[t.index].item,
498
- index: C.value[t.index].index
499
- })], 14, X)) : h("", !0)], 64))), 128))], 6), V.value && S.value && v.value.length ? (O(), g("div", {
494
+ class: C(P(l).item()),
495
+ style: T({ transform: `translateY(${t.start}px)` })
496
+ }, [j(e.$slots, "default", {
497
+ item: S.value[t.index].item,
498
+ index: S.value[t.index].index
499
+ })], 14, X)) : m("", !0)], 64))), 128))], 6), B.value && x.value && _.value.length ? (D(), h("div", {
500
500
  key: 0,
501
- class: w(F(u).loading()),
501
+ class: C(P(l).loading()),
502
502
  "aria-hidden": "true"
503
- }, [b(F(H), { class: w(F(u).loadingIcon()) }, null, 8, ["class"]), y(" " + P(F(ee).dataSource.loadingMore), 1)], 2)) : h("", !0)], 14, Y), n.dataSource ? (O(), g("p", {
503
+ }, [y(P(V), { class: C(P(l).loadingIcon()) }, null, 8, ["class"]), v(" " + N(P(te).dataSource.loadingMore), 1)], 2)) : m("", !0)], 14, Y), n.dataSource ? (D(), h("p", {
504
504
  key: 0,
505
505
  role: "status",
506
- class: w(F(u).status())
507
- }, P(F(m).announcement.value), 3)) : h("", !0)], 64));
506
+ class: C(P(l).status())
507
+ }, N(P(p).announcement.value), 3)) : m("", !0)], 64));
508
508
  }
509
- }), me = ["data-index"], Z = /* @__PURE__ */ x({
509
+ }), me = ["data-index"], Z = /* @__PURE__ */ b({
510
510
  inheritAttrs: !1,
511
511
  __name: "VirtualTree",
512
512
  props: {
@@ -562,88 +562,88 @@ var ue = ["aria-label", "onClick"], de = [
562
562
  "loadChildren"
563
563
  ],
564
564
  setup(n, { expose: r, emit: i }) {
565
- let a = n, o = i, f = L(), x = t("tree", ae, () => a.classes)(), S = ne(), C = e(), T = C.tree, D = A(null), N = u(a, o, p(() => D.value?.$el ?? null));
566
- k(c, N.drag), k(s, {
567
- ...N,
568
- showLines: p(() => !1)
565
+ let a = n, o = i, d = I(), b = t("tree", oe, () => a.classes)(), x = re(), S = e(), w = S.tree, E = k(null), M = l(a, o, f(() => E.value?.$el ?? null));
566
+ O(s, M.drag), O(ee, {
567
+ ...M,
568
+ showLines: f(() => !1)
569
569
  });
570
- let I = p(() => {
570
+ let F = f(() => {
571
571
  let e = [];
572
- for (let t of U(N.view.value, N.expanded.value)) e.push({
572
+ for (let t of H(M.view.value, M.expanded.value)) e.push({
573
573
  ...t,
574
574
  kind: "node"
575
- }), t.expanded && N.loadingOf(t.node) && e.push({
575
+ }), t.expanded && M.loadingOf(t.node) && e.push({
576
576
  kind: "loading",
577
577
  parentId: t.node.id,
578
578
  level: t.level
579
579
  });
580
580
  return e;
581
- }), R = A(null), B = le(p(() => ({
582
- count: I.value.length,
583
- getScrollElement: () => R.value?.$el ?? null,
581
+ }), L = k(null), z = q(f(() => ({
582
+ count: F.value.length,
583
+ getScrollElement: () => L.value?.$el ?? null,
584
584
  estimateSize: () => a.itemHeight,
585
585
  measureElement: (e) => e.getBoundingClientRect().height || a.itemHeight,
586
586
  overscan: 8,
587
587
  getItemKey: (e) => {
588
- let t = I.value[e];
588
+ let t = F.value[e];
589
589
  return t.kind === "node" ? t.node.id : `${t.parentId}\u0000loading`;
590
590
  },
591
591
  initialRect: {
592
592
  width: 0,
593
593
  height: 320
594
594
  }
595
- }))), V = (e) => I.value.findIndex((t) => t.kind === "node" && t.node.id === e);
596
- function re(e, t = 6) {
595
+ }))), B = (e) => F.value.findIndex((t) => t.kind === "node" && t.node.id === e);
596
+ function ie(e, t = 6) {
597
597
  requestAnimationFrame(() => {
598
598
  let n = e();
599
- n ? n.ownerDocument.activeElement !== n && n.focus() : t > 0 && re(e, t - 1);
599
+ n ? n.ownerDocument.activeElement !== n && n.focus() : t > 0 && ie(e, t - 1);
600
600
  });
601
601
  }
602
- function ie(e) {
603
- let t = V(e.node.id);
604
- t < 0 || (B.value.scrollToIndex(t, { align: "auto" }), re(e.getElement));
602
+ function ae(e) {
603
+ let t = B(e.node.id);
604
+ t < 0 || (z.value.scrollToIndex(t, { align: "auto" }), ie(e.getElement));
605
605
  }
606
- let oe = p(() => a.label ?? S["aria-label"] ?? C.tree.treeLabel), W = q(p(() => ({
607
- collection: N.collection.value,
606
+ let se = f(() => a.label ?? x["aria-label"] ?? S.tree.treeLabel), U = K(f(() => ({
607
+ collection: M.collection.value,
608
608
  selectionMode: a.selectionMode,
609
- selectedValue: N.selected.value,
610
- expandedValue: N.expanded.value,
611
- ...N.ownChecks.value ? {} : {
609
+ selectedValue: M.selected.value,
610
+ expandedValue: M.expanded.value,
611
+ ...M.ownChecks.value ? {} : {
612
612
  checkedValue: a.checkedValue,
613
613
  defaultCheckedValue: a.defaultCheckedValue
614
614
  },
615
- translations: { treeLabel: oe.value },
616
- scrollToIndexFn: ie,
617
- onSelectionChange: (e) => N.onSelectionChange(e.selectedValue),
618
- onExpandedChange: (e) => N.setExpanded(e.expandedValue),
619
- onCheckedChange: (e) => N.ownChecks.value || N.onArkCheckedChange(e.checkedValue)
620
- }))), se = p(() => a.emptyText ?? (N.query.value.trim() ? T.noMatches : a.group === void 0 ? void 0 : C.common.empty)), G = p(() => !N.view.value.length && (se.value !== void 0 || !!f.empty || a.group !== void 0));
615
+ translations: { treeLabel: se.value },
616
+ scrollToIndexFn: ae,
617
+ onSelectionChange: (e) => M.onSelectionChange(e.selectedValue),
618
+ onExpandedChange: (e) => M.setExpanded(e.expandedValue),
619
+ onCheckedChange: (e) => M.ownChecks.value || M.onArkCheckedChange(e.checkedValue)
620
+ }))), ce = f(() => a.emptyText ?? (M.query.value.trim() ? w.noMatches : a.group === void 0 ? void 0 : S.common.empty)), W = f(() => !M.view.value.length && (ce.value !== void 0 || !!d.empty || a.group !== void 0));
621
621
  return r({
622
- expandAll: N.expandAll,
623
- collapseAll: N.collapseAll,
624
- invalidate: N.invalidate,
622
+ expandAll: M.expandAll,
623
+ collapseAll: M.collapseAll,
624
+ invalidate: M.invalidate,
625
625
  focusNode(e) {
626
- let t = V(e);
627
- t >= 0 && B.value.scrollToIndex(t, { align: "auto" }), requestAnimationFrame(() => N.focusNode(e));
626
+ let t = B(e);
627
+ t >= 0 && z.value.scrollToIndex(t, { align: "auto" }), requestAnimationFrame(() => M.focusNode(e));
628
628
  }
629
- }), (e, t) => (O(), m(F(K).RootProvider, {
629
+ }), (e, t) => (D(), p(P(G).RootProvider, {
630
630
  ref_key: "root",
631
- ref: D,
632
- value: F(W),
633
- class: w(F(x).base({ class: w(F(S).class) })),
634
- style: E(F(S).style),
635
- onKeydownCapture: F(N).onKeydown
631
+ ref: E,
632
+ value: P(U),
633
+ class: C(P(b).base({ class: C(P(x).class) })),
634
+ style: T(P(x).style),
635
+ onKeydownCapture: P(M).onKeydown
636
636
  }, {
637
- default: z(() => [
638
- n.label ? (O(), m(F(K).Label, {
637
+ default: R(() => [
638
+ n.label ? (D(), p(P(G).Label, {
639
639
  key: 0,
640
- class: w(F(x).label())
640
+ class: C(P(b).label())
641
641
  }, {
642
- default: z(() => [y(P(n.label), 1)]),
642
+ default: R(() => [v(N(n.label), 1)]),
643
643
  _: 1
644
- }, 8, ["class"])) : h("", !0),
645
- b(l, {
646
- model: F(N),
644
+ }, 8, ["class"])) : m("", !0),
645
+ y(c, {
646
+ model: P(M),
647
647
  filter: n.filter,
648
648
  "filter-mode": n.filterMode,
649
649
  "expand-controls": n.expandControls,
@@ -655,34 +655,34 @@ var ue = ["aria-label", "onClick"], de = [
655
655
  "expand-controls",
656
656
  "classes"
657
657
  ]),
658
- b(F(K).Tree, {
658
+ y(P(G).Tree, {
659
659
  ref_key: "viewport",
660
- ref: R,
661
- class: w(F(x).tree({ class: F(x).viewport() })),
662
- style: E({ height: n.height }),
663
- hidden: G.value || void 0
660
+ ref: L,
661
+ class: C(P(b).tree({ class: P(b).viewport() })),
662
+ style: T({ height: n.height }),
663
+ hidden: W.value || void 0
664
664
  }, {
665
- default: z(() => [_("div", {
666
- class: w(F(x).spacer()),
667
- style: E({ height: `${F(B).getTotalSize()}px` })
668
- }, [(O(!0), g(d, null, j(F(B).getVirtualItems(), (t) => (O(), g("div", {
665
+ default: R(() => [g("div", {
666
+ class: C(P(b).spacer()),
667
+ style: T({ height: `${P(z).getTotalSize()}px` })
668
+ }, [(D(!0), h(u, null, A(P(z).getVirtualItems(), (t) => (D(), h("div", {
669
669
  key: String(t.key),
670
670
  ref_for: !0,
671
- ref: (e) => e && F(B).measureElement(e),
671
+ ref: (e) => e && P(z).measureElement(e),
672
672
  "data-index": t.index,
673
- class: w(F(x).row()),
674
- style: E({ transform: `translateY(${t.start}px)` })
675
- }, [I.value[t.index].kind === "node" ? (O(), m(ee, {
673
+ class: C(P(b).row()),
674
+ style: T({ transform: `translateY(${t.start}px)` })
675
+ }, [F.value[t.index].kind === "node" ? (D(), p(te, {
676
676
  key: 0,
677
- node: I.value[t.index].node,
678
- "index-path": I.value[t.index].indexPath,
677
+ node: F.value[t.index].node,
678
+ "index-path": F.value[t.index].indexPath,
679
679
  checkable: n.checkable,
680
680
  flat: "",
681
- posinset: I.value[t.index].posinset,
682
- setsize: I.value[t.index].setsize
683
- }, v({ _: 2 }, [e.$slots.node ? {
681
+ posinset: F.value[t.index].posinset,
682
+ setsize: F.value[t.index].setsize
683
+ }, _({ _: 2 }, [e.$slots.node ? {
684
684
  name: "node",
685
- fn: z((t) => [M(e.$slots, "node", te({ ref_for: !0 }, t))]),
685
+ fn: R((t) => [j(e.$slots, "node", ne({ ref_for: !0 }, t))]),
686
686
  key: "0"
687
687
  } : void 0]), 1032, [
688
688
  "node",
@@ -690,28 +690,28 @@ var ue = ["aria-label", "onClick"], de = [
690
690
  "checkable",
691
691
  "posinset",
692
692
  "setsize"
693
- ])) : (O(), g("div", {
693
+ ])) : (D(), h("div", {
694
694
  key: 1,
695
- class: w(F(x).loadingRow()),
696
- style: E({ "--depth": I.value[t.index].level }),
695
+ class: C(P(b).loadingRow()),
696
+ style: T({ "--depth": F.value[t.index].level }),
697
697
  "aria-hidden": "true"
698
- }, [b(F(H), { class: w(F(x).loadingIcon()) }, null, 8, ["class"]), y(" " + P(F(T).loadingRow), 1)], 6))], 14, me))), 128))], 6)]),
698
+ }, [y(P(V), { class: C(P(b).loadingIcon()) }, null, 8, ["class"]), v(" " + N(P(w).loadingRow), 1)], 6))], 14, me))), 128))], 6)]),
699
699
  _: 3
700
700
  }, 8, [
701
701
  "class",
702
702
  "style",
703
703
  "hidden"
704
704
  ]),
705
- G.value ? (O(), g("div", {
705
+ W.value ? (D(), h("div", {
706
706
  key: 1,
707
- class: w(F(x).empty()),
708
- onDragover: t[0] ||= (...e) => F(N).onEmptyDragOver && F(N).onEmptyDragOver(...e),
709
- onDrop: t[1] ||= (...e) => F(N).onEmptyDrop && F(N).onEmptyDrop(...e)
710
- }, [M(e.$slots, "empty", {}, () => [y(P(se.value), 1)])], 34)) : h("", !0),
711
- _("p", {
707
+ class: C(P(b).empty()),
708
+ onDragover: t[0] ||= (...e) => P(M).onEmptyDragOver && P(M).onEmptyDragOver(...e),
709
+ onDrop: t[1] ||= (...e) => P(M).onEmptyDrop && P(M).onEmptyDrop(...e)
710
+ }, [j(e.$slots, "empty", {}, () => [v(N(ce.value), 1)])], 34)) : m("", !0),
711
+ g("p", {
712
712
  role: "status",
713
- class: w(F(x).status())
714
- }, P(F(N).status.value), 3)
713
+ class: C(P(b).status())
714
+ }, N(P(M).status.value), 3)
715
715
  ]),
716
716
  _: 3
717
717
  }, 8, [
@@ -721,6 +721,6 @@ var ue = ["aria-label", "onClick"], de = [
721
721
  "onKeydownCapture"
722
722
  ]));
723
723
  }
724
- });
724
+ }), he = { useVirtualizer: q };
725
725
  //#endregion
726
- export { pe as VirtualList, J as VirtualSelect, Z as VirtualTree };
726
+ export { pe as VirtualList, J as VirtualSelect, Z as VirtualTree, he as virtualRows };