@wirecore/wirelayer-vue 0.6.0 → 0.8.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 (158) hide show
  1. package/dist/{Checkbox-D9f77jtl.js → Checkbox-DS2qfQK1.js} +28 -30
  2. package/dist/ContextMenu-B6agwyf_.js +2311 -0
  3. package/dist/{Field-B1EsNF84.js → Field-Cqe2BG_x.js} +1 -1
  4. package/dist/{Highlight-Cg8DvCfq.js → Highlight-uwptdaUw.js} +35 -32
  5. package/dist/Input-C5dyvZfJ.js +183 -0
  6. package/dist/{InputStatus-D7kBGlew.js → InputStatus-Cgarj-yu.js} +16 -3
  7. package/dist/{Select-DAuYpE1c.js → Select-CeZbSy6K.js} +137 -112
  8. package/dist/Slider-Cpv7Vj3B.js +143 -0
  9. package/dist/Tree-DgHt0P5P.js +807 -0
  10. package/dist/chart.js +1 -1
  11. package/dist/components/Alert/Alert.vue.d.ts +5 -3
  12. package/dist/components/Alert/Alert.vue.d.ts.map +1 -1
  13. package/dist/components/AngleSlider/AngleSlider.vue.d.ts +2 -0
  14. package/dist/components/AngleSlider/AngleSlider.vue.d.ts.map +1 -1
  15. package/dist/components/Autocomplete/Autocomplete.vue.d.ts +2 -0
  16. package/dist/components/Autocomplete/Autocomplete.vue.d.ts.map +1 -1
  17. package/dist/components/Carousel/Carousel.vue.d.ts +2 -0
  18. package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
  19. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +2 -0
  20. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
  21. package/dist/components/Checkbox/Checkbox.vue.d.ts +28 -23
  22. package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
  23. package/dist/components/ColorInput/ColorInput.vue.d.ts.map +1 -1
  24. package/dist/components/ColorPicker/ColorPicker.vue.d.ts +2 -0
  25. package/dist/components/ColorPicker/ColorPicker.vue.d.ts.map +1 -1
  26. package/dist/components/Combobox/Combobox.vue.d.ts +11 -1
  27. package/dist/components/Combobox/Combobox.vue.d.ts.map +1 -1
  28. package/dist/components/CommandPalette/CommandPalette.vue.d.ts +1 -1
  29. package/dist/components/Confirm/ConfirmDialog.vue.d.ts +5 -0
  30. package/dist/components/Confirm/ConfirmDialog.vue.d.ts.map +1 -1
  31. package/dist/components/Confirm/confirm.d.ts +7 -0
  32. package/dist/components/Confirm/confirm.d.ts.map +1 -1
  33. package/dist/components/ContextMenu/ContextMenu.vue.d.ts +17 -1
  34. package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
  35. package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
  36. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  37. package/dist/components/DatePicker/DatePickerBase.vue.d.ts +2 -0
  38. package/dist/components/DatePicker/DatePickerBase.vue.d.ts.map +1 -1
  39. package/dist/components/DateRangePicker/DateRangePicker.vue.d.ts +2 -0
  40. package/dist/components/DateRangePicker/DateRangePicker.vue.d.ts.map +1 -1
  41. package/dist/components/Dialog/Dialog.vue.d.ts +1 -1
  42. package/dist/components/Dialog/DialogContent.vue.d.ts +7 -0
  43. package/dist/components/Dialog/DialogContent.vue.d.ts.map +1 -1
  44. package/dist/components/Drawer/Drawer.vue.d.ts +1 -1
  45. package/dist/components/Drawer/DrawerContent.vue.d.ts +2 -0
  46. package/dist/components/Drawer/DrawerContent.vue.d.ts.map +1 -1
  47. package/dist/components/DurationInput/DurationInput.vue.d.ts +2 -0
  48. package/dist/components/DurationInput/DurationInput.vue.d.ts.map +1 -1
  49. package/dist/components/Fieldset/Fieldset.vue.d.ts +1 -1
  50. package/dist/components/FilterPanel/FilterPanel.vue.d.ts +1 -1
  51. package/dist/components/HoverCard/HoverCard.vue.d.ts +1 -1
  52. package/dist/components/IconButton/IconButton.vue.d.ts +2 -0
  53. package/dist/components/IconButton/IconButton.vue.d.ts.map +1 -1
  54. package/dist/components/Input/Input.vue.d.ts +3 -1
  55. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  56. package/dist/components/Knob/Knob.vue.d.ts +2 -0
  57. package/dist/components/Knob/Knob.vue.d.ts.map +1 -1
  58. package/dist/components/Listbox/Listbox.vue.d.ts +2 -0
  59. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  60. package/dist/components/MaskInput/MaskInput.vue.d.ts +2 -1
  61. package/dist/components/MaskInput/MaskInput.vue.d.ts.map +1 -1
  62. package/dist/components/Menu/Menu.vue.d.ts +9 -1
  63. package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
  64. package/dist/components/Menu/state.d.ts +22 -0
  65. package/dist/components/Menu/state.d.ts.map +1 -1
  66. package/dist/components/MonthPicker/MonthPicker.vue.d.ts +2 -0
  67. package/dist/components/MonthPicker/MonthPicker.vue.d.ts.map +1 -1
  68. package/dist/components/MultiSelect/MultiSelect.vue.d.ts +2 -0
  69. package/dist/components/MultiSelect/MultiSelect.vue.d.ts.map +1 -1
  70. package/dist/components/NativeSelect/NativeSelect.vue.d.ts +26 -17
  71. package/dist/components/NativeSelect/NativeSelect.vue.d.ts.map +1 -1
  72. package/dist/components/NumberInput/NumberInput.vue.d.ts +3 -1
  73. package/dist/components/NumberInput/NumberInput.vue.d.ts.map +1 -1
  74. package/dist/components/Panel/Panel.vue.d.ts +1 -1
  75. package/dist/components/PasswordInput/PasswordInput.vue.d.ts +11 -3
  76. package/dist/components/PasswordInput/PasswordInput.vue.d.ts.map +1 -1
  77. package/dist/components/PinInput/PinInput.vue.d.ts +2 -0
  78. package/dist/components/PinInput/PinInput.vue.d.ts.map +1 -1
  79. package/dist/components/Popover/Popover.vue.d.ts +1 -1
  80. package/dist/components/Progress/Progress.vue.d.ts +11 -0
  81. package/dist/components/Progress/Progress.vue.d.ts.map +1 -1
  82. package/dist/components/RadioGroup/RadioGroup.vue.d.ts +24 -25
  83. package/dist/components/RadioGroup/RadioGroup.vue.d.ts.map +1 -1
  84. package/dist/components/RadioGroup/RadioGroupItem.vue.d.ts +2 -1
  85. package/dist/components/RadioGroup/RadioGroupItem.vue.d.ts.map +1 -1
  86. package/dist/components/RadioGroup/context.d.ts +4 -0
  87. package/dist/components/RadioGroup/context.d.ts.map +1 -0
  88. package/dist/components/Rating/Rating.vue.d.ts +2 -0
  89. package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
  90. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +23 -22
  91. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts.map +1 -1
  92. package/dist/components/Select/Select.vue.d.ts +11 -1
  93. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  94. package/dist/components/SelectionCard/CheckboxCard.vue.d.ts +2 -0
  95. package/dist/components/SelectionCard/CheckboxCard.vue.d.ts.map +1 -1
  96. package/dist/components/Slider/Slider.vue.d.ts +2 -0
  97. package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
  98. package/dist/components/Switch/Switch.vue.d.ts +2 -0
  99. package/dist/components/Switch/Switch.vue.d.ts.map +1 -1
  100. package/dist/components/TagsInput/TagsInput.vue.d.ts +2 -0
  101. package/dist/components/TagsInput/TagsInput.vue.d.ts.map +1 -1
  102. package/dist/components/Textarea/Textarea.vue.d.ts +3 -1
  103. package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
  104. package/dist/components/TimePicker/TimePicker.vue.d.ts +2 -0
  105. package/dist/components/TimePicker/TimePicker.vue.d.ts.map +1 -1
  106. package/dist/components/TimeRangePicker/TimeRangePicker.vue.d.ts +2 -0
  107. package/dist/components/TimeRangePicker/TimeRangePicker.vue.d.ts.map +1 -1
  108. package/dist/components/Tooltip/Tooltip.vue.d.ts +3 -0
  109. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  110. package/dist/components/TreeSelect/TreeSelect.vue.d.ts +2 -0
  111. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  112. package/dist/components/YearPicker/YearPicker.vue.d.ts +2 -0
  113. package/dist/components/YearPicker/YearPicker.vue.d.ts.map +1 -1
  114. package/dist/data-table/DataTable.vue.d.ts +9 -1
  115. package/dist/data-table/DataTable.vue.d.ts.map +1 -1
  116. package/dist/data-table.js +1007 -994
  117. package/dist/editor.js +1 -1
  118. package/dist/form/FormField.vue.d.ts +3 -0
  119. package/dist/form/FormField.vue.d.ts.map +1 -1
  120. package/dist/form.js +8 -5
  121. package/dist/index.d.ts +2 -1
  122. package/dist/index.d.ts.map +1 -1
  123. package/dist/index.js +5834 -5626
  124. package/dist/label-for-eQvYjsM5.js +8 -0
  125. package/dist/pdf.js +3 -3
  126. package/dist/sources/ActionBar.css +1 -0
  127. package/dist/sources/AppShell.css +1 -0
  128. package/dist/sources/ChatPrompt.css +1 -0
  129. package/dist/sources/Gallery.css +1 -0
  130. package/dist/sources/IconButton.css +1 -0
  131. package/dist/sources/Image.css +1 -0
  132. package/dist/sources/ImageCropper.css +1 -0
  133. package/dist/sources/InlineEdit.css +1 -0
  134. package/dist/sources/Marquee.css +1 -0
  135. package/dist/sources/MegaMenu.css +1 -0
  136. package/dist/sources/Menubar.css +1 -0
  137. package/dist/sources/OrderList.css +1 -0
  138. package/dist/sources/PickList.css +1 -0
  139. package/dist/sources/ScrollTop.css +1 -0
  140. package/dist/{useTree-H8XsFHMk.js → useTree-UhG1TMeM.js} +1 -1
  141. package/dist/utils/label-for.d.ts +3 -0
  142. package/dist/utils/label-for.d.ts.map +1 -0
  143. package/dist/utils/list.d.ts +5 -0
  144. package/dist/utils/list.d.ts.map +1 -1
  145. package/dist/utils/text-field.d.ts +16 -0
  146. package/dist/utils/text-field.d.ts.map +1 -0
  147. package/dist/virtual/VirtualSelect.vue.d.ts +2 -0
  148. package/dist/virtual/VirtualSelect.vue.d.ts.map +1 -1
  149. package/dist/virtual.js +207 -197
  150. package/fonts.css +2 -0
  151. package/llms-full.txt +254 -23
  152. package/llms.txt +9 -5
  153. package/package.json +7 -3
  154. package/theme.css +14 -0
  155. package/dist/ContextMenu-C5JKyNlX.js +0 -2209
  156. package/dist/Input-BhnYMKjE.js +0 -168
  157. package/dist/Slider-CyoZc5A8.js +0 -135
  158. package/dist/Tree-DWxqSrO6.js +0 -789
@@ -0,0 +1,8 @@
1
+ import { onMounted as e } from "vue";
2
+ import { warnLabelFor as t } from "@wirecore/wirelayer-recipes";
3
+ //#region src/utils/label-for.ts
4
+ function n(n, r) {
5
+ e(() => t(n, r()));
6
+ }
7
+ //#endregion
8
+ export { n as t };
package/dist/pdf.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { a as e, i as t, n } from "./recipes-BlM9aKyt.js";
2
2
  import { t as r } from "./Button-BpMOPs8b.js";
3
- import { t as i } from "./Field-B1EsNF84.js";
4
- import { i as a, t as o } from "./Select-DAuYpE1c.js";
5
- import { c as s, i as c, l, n as u, o as d, r as ee, s as te, t as ne } from "./Tree-DWxqSrO6.js";
3
+ import { t as i } from "./Field-Cqe2BG_x.js";
4
+ import { i as a, t as o } from "./Select-CeZbSy6K.js";
5
+ import { c as s, i as c, l, n as u, o as d, r as ee, s as te, t as ne } from "./Tree-DgHt0P5P.js";
6
6
  import { Fragment as f, computed as p, createBlock as re, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, mergeProps as ie, nextTick as ae, normalizeClass as b, normalizeStyle as oe, onBeforeUnmount as se, onMounted as ce, openBlock as x, reactive as le, ref as S, renderList as ue, resolveDynamicComponent as de, toDisplayString as C, unref as w, useAttrs as fe, useId as pe, useTemplateRef as T, vModelText as me, watch as E, withCtx as D, withDirectives as he, withModifiers as ge } from "vue";
7
7
  import { CaseSensitive as _e, ChevronDown as ve, ChevronUp as ye, Download as be, FileWarning as xe, Maximize as Se, Minimize as Ce, PanelLeft as we, Printer as Te, RotateCw as Ee, Search as De, X as Oe, ZoomIn as ke, ZoomOut as Ae } from "@lucide/vue";
8
8
  import { PDF_ZOOM_MAX as je, PDF_ZOOM_MIN as Me, clampPdfPage as Ne, clampPdfZoom as Pe, downloadBytes as Fe, input as Ie, normalizePdfRotation as O, parsePdfPage as Le, pdfFileName as Re, pdfKeyAction as ze, pdfPrintDocument as k, pdfSearchText as Be, pdfThumbnailSize as Ve, pdfTools as A, pdfViewer as He, pdfZoomFromKey as Ue, pdfZoomKey as We, pdfZoomStep as Ge, pdfZoomSteps as j, pdfZoomSteps as Ke, resolvePdfTools as qe, setupToolbar as Je } from "@wirecore/wirelayer-recipes";
@@ -1,5 +1,6 @@
1
1
  /* Classes of ActionBar – generated by scripts/sources.ts, do not edit */
2
2
  @import '@wirecore/wirelayer-recipes/sources/actionBar.css';
3
3
  @import '@wirecore/wirelayer-recipes/sources/iconButton.css';
4
+ @import '@wirecore/wirelayer-recipes/sources/spinner.css';
4
5
  @import '@wirecore/wirelayer-recipes/sources/toolbar.css';
5
6
  @import '@wirecore/wirelayer-recipes/sources/toolbarRegion.css';
@@ -3,3 +3,4 @@
3
3
  @import '@wirecore/wirelayer-recipes/sources/drawer.css';
4
4
  @import '@wirecore/wirelayer-recipes/sources/iconButton.css';
5
5
  @import '@wirecore/wirelayer-recipes/sources/skipLinks.css';
6
+ @import '@wirecore/wirelayer-recipes/sources/spinner.css';
@@ -3,3 +3,4 @@
3
3
  @import '@wirecore/wirelayer-recipes/sources/chip.css';
4
4
  @import '@wirecore/wirelayer-recipes/sources/chipGroup.css';
5
5
  @import '@wirecore/wirelayer-recipes/sources/iconButton.css';
6
+ @import '@wirecore/wirelayer-recipes/sources/spinner.css';
@@ -3,3 +3,4 @@
3
3
  @import '@wirecore/wirelayer-recipes/sources/dialog.css';
4
4
  @import '@wirecore/wirelayer-recipes/sources/gallery.css';
5
5
  @import '@wirecore/wirelayer-recipes/sources/iconButton.css';
6
+ @import '@wirecore/wirelayer-recipes/sources/spinner.css';
@@ -1,2 +1,3 @@
1
1
  /* Classes of IconButton – generated by scripts/sources.ts, do not edit */
2
2
  @import '@wirecore/wirelayer-recipes/sources/iconButton.css';
3
+ @import '@wirecore/wirelayer-recipes/sources/spinner.css';
@@ -2,3 +2,4 @@
2
2
  @import '@wirecore/wirelayer-recipes/sources/dialog.css';
3
3
  @import '@wirecore/wirelayer-recipes/sources/iconButton.css';
4
4
  @import '@wirecore/wirelayer-recipes/sources/imagePreview.css';
5
+ @import '@wirecore/wirelayer-recipes/sources/spinner.css';
@@ -1,3 +1,4 @@
1
1
  /* Classes of ImageCropper – generated by scripts/sources.ts, do not edit */
2
2
  @import '@wirecore/wirelayer-recipes/sources/iconButton.css';
3
3
  @import '@wirecore/wirelayer-recipes/sources/imageCropper.css';
4
+ @import '@wirecore/wirelayer-recipes/sources/spinner.css';
@@ -3,3 +3,4 @@
3
3
  @import '@wirecore/wirelayer-recipes/sources/inlineEdit.css';
4
4
  @import '@wirecore/wirelayer-recipes/sources/input.css';
5
5
  @import '@wirecore/wirelayer-recipes/sources/popover.css';
6
+ @import '@wirecore/wirelayer-recipes/sources/spinner.css';
@@ -1,3 +1,4 @@
1
1
  /* Classes of Marquee – generated by scripts/sources.ts, do not edit */
2
2
  @import '@wirecore/wirelayer-recipes/sources/iconButton.css';
3
3
  @import '@wirecore/wirelayer-recipes/sources/marquee.css';
4
+ @import '@wirecore/wirelayer-recipes/sources/spinner.css';
@@ -4,3 +4,4 @@
4
4
  @import '@wirecore/wirelayer-recipes/sources/drawer.css';
5
5
  @import '@wirecore/wirelayer-recipes/sources/iconButton.css';
6
6
  @import '@wirecore/wirelayer-recipes/sources/megaMenu.css';
7
+ @import '@wirecore/wirelayer-recipes/sources/spinner.css';
@@ -2,3 +2,4 @@
2
2
  @import '@wirecore/wirelayer-recipes/sources/iconButton.css';
3
3
  @import '@wirecore/wirelayer-recipes/sources/menu.css';
4
4
  @import '@wirecore/wirelayer-recipes/sources/menubar.css';
5
+ @import '@wirecore/wirelayer-recipes/sources/spinner.css';
@@ -2,3 +2,4 @@
2
2
  @import '@wirecore/wirelayer-recipes/sources/iconButton.css';
3
3
  @import '@wirecore/wirelayer-recipes/sources/listbox.css';
4
4
  @import '@wirecore/wirelayer-recipes/sources/orderList.css';
5
+ @import '@wirecore/wirelayer-recipes/sources/spinner.css';
@@ -2,3 +2,4 @@
2
2
  @import '@wirecore/wirelayer-recipes/sources/iconButton.css';
3
3
  @import '@wirecore/wirelayer-recipes/sources/listbox.css';
4
4
  @import '@wirecore/wirelayer-recipes/sources/pickList.css';
5
+ @import '@wirecore/wirelayer-recipes/sources/spinner.css';
@@ -1,3 +1,4 @@
1
1
  /* Classes of ScrollTop – generated by scripts/sources.ts, do not edit */
2
2
  @import '@wirecore/wirelayer-recipes/sources/iconButton.css';
3
3
  @import '@wirecore/wirelayer-recipes/sources/scrollTop.css';
4
+ @import '@wirecore/wirelayer-recipes/sources/spinner.css';
@@ -1,6 +1,6 @@
1
1
  import { a as e, i as t, n } from "./recipes-BlM9aKyt.js";
2
2
  import { t as r } from "./Button-BpMOPs8b.js";
3
- import { t as i } from "./Highlight-Cg8DvCfq.js";
3
+ import { t as i } from "./Highlight-uwptdaUw.js";
4
4
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, guardReactiveProps as m, inject as h, mergeProps as g, nextTick as ee, normalizeClass as _, normalizeProps as v, onBeforeUnmount as y, onMounted as b, openBlock as x, ref as S, renderList as te, renderSlot as C, resolveComponent as ne, resolveDynamicComponent as re, shallowRef as ie, toDisplayString as w, unref as T, watch as E, withCtx as D, withModifiers as ae } from "vue";
5
5
  import { Check as O, ChevronRight as oe, LoaderCircle as se, Minus as k, RotateCw as A } from "@lucide/vue";
6
6
  import { ChildrenLoader as ce, filterTree as j, isLazyNode as M, locateTreeNode as N, moveTreeNode as P, pluralText as F, pruneTree as I, toggleTreeChecked as le, tree as L, treeBranchIds as R, treeCheckStates as ue, treeCheckedValue as de, treeDropMove as z, treeInsertPosition as fe, treeKeyboardMove as pe, treeMoveAnchor as me, treeRetryId as he, treeRetryParent as B, walkTree as ge, withLoadedChildren as _e } from "@wirecore/wirelayer-recipes";
@@ -0,0 +1,3 @@
1
+ /** Development warning when a `<label for>` points at this control, which a label element cannot name */
2
+ export declare function useLabelForWarning(component: string, id: () => unknown): void;
3
+ //# sourceMappingURL=label-for.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label-for.d.ts","sourceRoot":"","sources":["../../src/utils/label-for.ts"],"names":[],"mappings":"AAGA,yGAAyG;AACzG,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,QAEtE"}
@@ -22,6 +22,11 @@ export declare function useListSelection<T>(options: {
22
22
  accessors: () => ListItemAccessors<T>;
23
23
  items: Ref<ListOption<T>[]>;
24
24
  emit: (value: unknown) => void;
25
+ /** Development warning for values not among the items: the component's name, and whether its items are complete */
26
+ check?: {
27
+ component: string;
28
+ ready: () => boolean;
29
+ };
25
30
  }): {
26
31
  selected: import("vue").ComputedRef<ListOption<T>[]>;
27
32
  keys: import("vue").ComputedRef<string[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/utils/list.ts"],"names":[],"mappings":"AACA,OAAO,EAOH,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAiB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAE9C;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC5B,KAAK,EAAE,MAAM,SAAS,CAAC,EAAE,EACzB,SAAS,EAAE,MAAM,iBAAiB,CAAC,CAAC,CAAC,EACrC,KAAK,GAAE,MAAM,MAAiB;;;;;EASjC;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE;IACzC,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,MAAM,iBAAiB,CAAC,CAAC,CAAC,CAAC;IACtC,KAAK,EAAE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the text fields expose (Input, PasswordInput, NumberInput, Textarea, MaskInput): the native element and its
3
+ * focus and selection methods – the root of these components is a wrapper, not the input
4
+ */
5
+ export interface TextFieldHandle<E extends HTMLInputElement | HTMLTextAreaElement = HTMLInputElement> {
6
+ /** The native input (or textarea); null before mounting */
7
+ readonly element: E | null;
8
+ focus(options?: FocusOptions): void;
9
+ blur(): void;
10
+ /** Selects the whole text */
11
+ select(): void;
12
+ setSelectionRange(start: number | null, end: number | null, direction?: 'forward' | 'backward' | 'none'): void;
13
+ }
14
+ /** The handle for a component's defineExpose, reading the element when called */
15
+ export declare function textFieldHandle<E extends HTMLInputElement | HTMLTextAreaElement>(element: () => E | null | undefined): TextFieldHandle<E>;
16
+ //# sourceMappingURL=text-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../src/utils/text-field.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,gBAAgB,GAAG,mBAAmB,GAAG,gBAAgB;IAChG,2DAA2D;IAC3D,QAAQ,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC;IAC3B,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACpC,IAAI,IAAI,IAAI,CAAC;IACb,6BAA6B;IAC7B,MAAM,IAAI,IAAI,CAAC;IACf,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC;CAClH;AAED,iFAAiF;AACjF,wBAAgB,eAAe,CAAC,CAAC,SAAS,gBAAgB,GAAG,mBAAmB,EAC5E,OAAO,EAAE,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,GACpC,eAAe,CAAC,CAAC,CAAC,CAUpB"}
@@ -45,6 +45,8 @@ export interface VirtualSelectProps<T = SelectItem, V = ItemValueOf<T>> {
45
45
  pageSize?: number;
46
46
  /** Fewest characters the search needs before the data source is asked */
47
47
  minSearchLength?: number;
48
+ /** Id of the field (the trigger), e.g. for a `<label for>` */
49
+ id?: string;
48
50
  }
49
51
  declare const __VLS_export: <T = SelectItem, V = ItemValueOf<T>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
50
52
  props: import("vue").PublicProps & __VLS_PrettifyLocal<VirtualSelectProps<T, V> & {
@@ -1 +1 @@
1
- {"version":3,"file":"VirtualSelect.vue.d.ts","sourceRoot":"","sources":["../../src/virtual/VirtualSelect.vue"],"names":[],"mappings":"AA6XA,OAAO,EAGH,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,WAAW,EAEnB,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAO5E,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,UAAU,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC;IAClE,kEAAkE;IAClE,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;IACpB,oFAAoF;IACpF,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gGAAgG;IAChG,SAAS,CAAC,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;I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