@leaflink/stash 51.11.0 → 51.12.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 (343) hide show
  1. package/README.md +41 -12
  2. package/dist/Accordion.js.map +1 -1
  3. package/dist/Accordion.vue.d.ts +37 -6
  4. package/dist/ActionsDropdown.js +2 -2
  5. package/dist/ActionsDropdown.js.map +1 -1
  6. package/dist/ActionsDropdown.vue.d.ts +74 -0
  7. package/dist/AddressSelect.js +60 -56
  8. package/dist/AddressSelect.js.map +1 -1
  9. package/dist/AddressSelect.vue.d.ts +65 -8
  10. package/dist/Alert.js.map +1 -1
  11. package/dist/Alert.vue.d.ts +41 -4
  12. package/dist/AppNavigationItem.js.map +1 -1
  13. package/dist/AppNavigationItem.vue.d.ts +31 -4
  14. package/dist/AppSidebar.js.map +1 -1
  15. package/dist/AppSidebar.vue.d.ts +35 -8
  16. package/dist/AppTopbar.js +1 -1
  17. package/dist/AppTopbar.js.map +1 -1
  18. package/dist/AppTopbar.vue.d.ts +33 -4
  19. package/dist/Avatar.js.map +1 -1
  20. package/dist/Avatar.vue.d.ts +44 -5
  21. package/dist/Backdrop.js.map +1 -1
  22. package/dist/Backdrop.vue.d.ts +1 -1
  23. package/dist/Badge.js.map +1 -1
  24. package/dist/Badge.vue.d.ts +55 -6
  25. package/dist/Box.vue.d.ts +36 -3
  26. package/dist/Box.vue_vue_type_script_setup_true_lang-rFnvwLVY.js.map +1 -1
  27. package/dist/Button.js.map +1 -1
  28. package/dist/Button.vue.d.ts +50 -5
  29. package/dist/ButtonGroup.js +37 -33
  30. package/dist/ButtonGroup.js.map +1 -1
  31. package/dist/ButtonGroup.vue.d.ts +39 -6
  32. package/dist/Card.js.map +1 -1
  33. package/dist/Card.vue.d.ts +32 -5
  34. package/dist/CardContent.js.map +1 -1
  35. package/dist/CardContent.vue.d.ts +1 -1
  36. package/dist/CardFooter.js.map +1 -1
  37. package/dist/CardFooter.vue.d.ts +1 -1
  38. package/dist/CardHeader.js.map +1 -1
  39. package/dist/CardHeader.vue.d.ts +15 -2
  40. package/dist/CardMedia.js.map +1 -1
  41. package/dist/CardMedia.vue.d.ts +15 -2
  42. package/dist/Carousel.js +72 -66
  43. package/dist/Carousel.js.map +1 -1
  44. package/dist/Carousel.vue.d.ts +10 -10
  45. package/dist/Checkbox.js.map +1 -1
  46. package/dist/Checkbox.vue.d.ts +53 -8
  47. package/dist/ChevronToggle.vue.d.ts +34 -7
  48. package/dist/ChevronToggle.vue_vue_type_script_setup_true_lang-Ce_qOXfR.js.map +1 -1
  49. package/dist/Chip.js.map +1 -1
  50. package/dist/Chip.vue.d.ts +52 -10
  51. package/dist/ConfirmationCodeInput.js +44 -40
  52. package/dist/ConfirmationCodeInput.js.map +1 -1
  53. package/dist/ConfirmationCodeInput.vue.d.ts +43 -8
  54. package/dist/ContextSwitcher.js.map +1 -1
  55. package/dist/ContextSwitcher.vue.d.ts +41 -6
  56. package/dist/Copy.js.map +1 -1
  57. package/dist/Copy.vue.d.ts +34 -3
  58. package/dist/CurrencyInput.js +21 -20
  59. package/dist/CurrencyInput.js.map +1 -1
  60. package/dist/CurrencyInput.vue.d.ts +46 -125
  61. package/dist/DataView.js +96 -94
  62. package/dist/DataView.js.map +1 -1
  63. package/dist/DataView.vue.d.ts +57 -12
  64. package/dist/DataViewFilters.js +139 -127
  65. package/dist/DataViewFilters.js.map +1 -1
  66. package/dist/DataViewFilters.vue.d.ts +54 -9
  67. package/dist/DataViewSortButton.js +2 -2
  68. package/dist/DataViewSortButton.js.map +1 -1
  69. package/dist/DataViewSortButton.vue.d.ts +30 -3
  70. package/dist/DataViewToolbar.js +81 -148
  71. package/dist/DataViewToolbar.js.map +1 -1
  72. package/dist/DataViewToolbar.vue.d.ts +40 -106
  73. package/dist/DatePicker.js +4640 -4528
  74. package/dist/DatePicker.js.map +1 -1
  75. package/dist/DatePicker.vue.d.ts +79 -30
  76. package/dist/DescriptionList.js.map +1 -1
  77. package/dist/DescriptionList.vue.d.ts +32 -3
  78. package/dist/DescriptionListDetail.js.map +1 -1
  79. package/dist/DescriptionListDetail.vue.d.ts +1 -1
  80. package/dist/DescriptionListGroup.js.map +1 -1
  81. package/dist/DescriptionListGroup.vue.d.ts +1 -1
  82. package/dist/DescriptionListTerm.js.map +1 -1
  83. package/dist/DescriptionListTerm.vue.d.ts +1 -1
  84. package/dist/Dialog.js.map +1 -1
  85. package/dist/Dialog.vue.d.ts +53 -10
  86. package/dist/Divider.js.map +1 -1
  87. package/dist/Dropdown.js +95 -89
  88. package/dist/Dropdown.js.map +1 -1
  89. package/dist/Dropdown.vue.d.ts +48 -12
  90. package/dist/EmptyState.js +1 -1
  91. package/dist/EmptyState.js.map +1 -1
  92. package/dist/EmptyState.vue.d.ts +62 -5
  93. package/dist/Expand.vue.d.ts +40 -10
  94. package/dist/Expand.vue_vue_type_script_setup_true_lang-CiONJfAp.js.map +1 -1
  95. package/dist/Field.vue.d.ts +53 -4
  96. package/dist/Field.vue_vue_type_script_setup_true_lang-DI6z3AE9.js.map +1 -1
  97. package/dist/FileUpload.js +74 -72
  98. package/dist/FileUpload.js.map +1 -1
  99. package/dist/FileUpload.vue.d.ts +44 -10
  100. package/dist/FilterChip.js.map +1 -1
  101. package/dist/FilterChip.vue.d.ts +41 -6
  102. package/dist/FilterDrawerItem.js +21 -21
  103. package/dist/FilterDrawerItem.js.map +1 -1
  104. package/dist/FilterDrawerItem.vue.d.ts +23 -6
  105. package/dist/FilterDropdown.js +69 -63
  106. package/dist/FilterDropdown.js.map +1 -1
  107. package/dist/FilterDropdown.vue.d.ts +35 -122
  108. package/dist/FilterSelect.js.map +1 -1
  109. package/dist/FilterSelect.vue.d.ts +31 -4
  110. package/dist/Filters.js +164 -157
  111. package/dist/Filters.js.map +1 -1
  112. package/dist/Filters.vue.d.ts +2190 -0
  113. package/dist/HttpError.js +7 -7
  114. package/dist/HttpError.js.map +1 -1
  115. package/dist/HttpError.vue.d.ts +41 -4
  116. package/dist/Icon.js +17 -17
  117. package/dist/Icon.js.map +1 -1
  118. package/dist/Icon.vue.d.ts +36 -3
  119. package/dist/IconLabel.js.map +1 -1
  120. package/dist/IconLabel.vue.d.ts +40 -5
  121. package/dist/Illustration.js +2 -2
  122. package/dist/Illustration.vue.d.ts +42 -3
  123. package/dist/{Illustration.vue_vue_type_script_setup_true_lang-BVzzNsRt.js → Illustration.vue_vue_type_script_setup_true_lang-BrqEF8xe.js} +11 -11
  124. package/dist/{Illustration.vue_vue_type_script_setup_true_lang-BVzzNsRt.js.map → Illustration.vue_vue_type_script_setup_true_lang-BrqEF8xe.js.map} +1 -1
  125. package/dist/Image.js +2 -2
  126. package/dist/Image.vue.d.ts +40 -5
  127. package/dist/{Image.vue_vue_type_script_setup_true_lang-Dg2Zk2r2.js → Image.vue_vue_type_script_setup_true_lang-D5u4av0_.js} +41 -37
  128. package/dist/{Image.vue_vue_type_script_setup_true_lang-Dg2Zk2r2.js.map → Image.vue_vue_type_script_setup_true_lang-D5u4av0_.js.map} +1 -1
  129. package/dist/InlineEdit.js.map +1 -1
  130. package/dist/InlineEdit.vue.d.ts +47 -126
  131. package/dist/Input.js.map +1 -1
  132. package/dist/Input.vue.d.ts +45 -12
  133. package/dist/InputOptions.js +69 -66
  134. package/dist/InputOptions.js.map +1 -1
  135. package/dist/InputOptions.vue.d.ts +55 -10
  136. package/dist/IntegrationIcon.js +7 -7
  137. package/dist/IntegrationIcon.js.map +1 -1
  138. package/dist/IntegrationIcon.vue.d.ts +36 -3
  139. package/dist/Label.vue.d.ts +42 -3
  140. package/dist/Label.vue_vue_type_script_setup_true_lang-CNquF3AP.js.map +1 -1
  141. package/dist/LicenseChip.js.map +1 -1
  142. package/dist/LicenseChip.vue.d.ts +30 -3
  143. package/dist/ListItem.js.map +1 -1
  144. package/dist/ListItem.vue.d.ts +294 -0
  145. package/dist/ListItemCell.js.map +1 -1
  146. package/dist/ListItemCell.vue.d.ts +21 -0
  147. package/dist/ListView.js +7 -4
  148. package/dist/ListView.js.map +1 -1
  149. package/dist/ListView.types.d.ts +29 -0
  150. package/dist/ListView.vue.d.ts +5496 -0
  151. package/dist/Loading.js +2 -2
  152. package/dist/Loading.js.map +1 -1
  153. package/dist/Loading.vue.d.ts +1 -1
  154. package/dist/Logo.js +1 -1
  155. package/dist/Logo.vue.d.ts +41 -6
  156. package/dist/{Logo.vue_vue_type_script_setup_true_lang-Y3iE9utm.js → Logo.vue_vue_type_script_setup_true_lang-Dz8c98sc.js} +17 -17
  157. package/dist/Logo.vue_vue_type_script_setup_true_lang-Dz8c98sc.js.map +1 -0
  158. package/dist/Menu.js.map +1 -1
  159. package/dist/Menu.vue.d.ts +1 -1
  160. package/dist/MenuItem.js.map +1 -1
  161. package/dist/MenuItem.vue.d.ts +1 -1
  162. package/dist/MenusPlugin-Bk6UW6o9.js +12 -0
  163. package/dist/{MenusPlugin-B4jpNe7x.js.map → MenusPlugin-Bk6UW6o9.js.map} +1 -1
  164. package/dist/Metric.js.map +1 -1
  165. package/dist/Metric.vue.d.ts +34 -3
  166. package/dist/Modal.js +64 -62
  167. package/dist/Modal.js.map +1 -1
  168. package/dist/Modal.vue.d.ts +60 -13
  169. package/dist/Modals.js +18 -17
  170. package/dist/Modals.js.map +1 -1
  171. package/dist/ModalsPlugin.js +11 -11
  172. package/dist/ModalsPlugin.js.map +1 -1
  173. package/dist/Module.js.map +1 -1
  174. package/dist/Module.vue.d.ts +29 -2
  175. package/dist/ModuleContent.js.map +1 -1
  176. package/dist/ModuleContent.vue.d.ts +3 -3
  177. package/dist/ModuleFooter.js.map +1 -1
  178. package/dist/ModuleFooter.vue.d.ts +1 -1
  179. package/dist/ModuleHeader.js.map +1 -1
  180. package/dist/ModuleHeader.vue.d.ts +39 -5
  181. package/dist/MoreActions.js +125 -123
  182. package/dist/MoreActions.js.map +1 -1
  183. package/dist/MoreActions.vue.d.ts +46 -123
  184. package/dist/ObfuscateText.js.map +1 -1
  185. package/dist/ObfuscateText.vue.d.ts +40 -3
  186. package/dist/PageContent.js.map +1 -1
  187. package/dist/PageContent.vue.d.ts +30 -3
  188. package/dist/PageHeader.js.map +1 -1
  189. package/dist/PageHeader.vue.d.ts +35 -6
  190. package/dist/PageNavigation.js +50 -50
  191. package/dist/PageNavigation.js.map +1 -1
  192. package/dist/PageNavigation.vue.d.ts +36 -7
  193. package/dist/Paginate.js.map +1 -1
  194. package/dist/Paginate.vue.d.ts +40 -5
  195. package/dist/PlaidLink.js.map +1 -1
  196. package/dist/PlaidLink.vue.d.ts +49 -12
  197. package/dist/QuickAction.js.map +1 -1
  198. package/dist/QuickAction.vue.d.ts +15 -2
  199. package/dist/Radio.js.map +1 -1
  200. package/dist/Radio.vue.d.ts +93 -0
  201. package/dist/RadioGroup.js +101 -94
  202. package/dist/RadioGroup.js.map +1 -1
  203. package/dist/RadioGroup.vue.d.ts +42 -116
  204. package/dist/RadioNew.js +99 -96
  205. package/dist/RadioNew.js.map +1 -1
  206. package/dist/RadioNew.vue.d.ts +48 -7
  207. package/dist/RangeInput.js.map +1 -1
  208. package/dist/RangeInput.vue.d.ts +1 -1
  209. package/dist/SearchBar.js +39 -38
  210. package/dist/SearchBar.js.map +1 -1
  211. package/dist/SearchBar.vue.d.ts +44 -127
  212. package/dist/SectionHeader.js.map +1 -1
  213. package/dist/SectionHeader.vue.d.ts +36 -5
  214. package/dist/Select.js +183 -171
  215. package/dist/Select.js.map +1 -1
  216. package/dist/Select.vue.d.ts +102 -23
  217. package/dist/SelectStatus.js +38 -38
  218. package/dist/SelectStatus.js.map +1 -1
  219. package/dist/SelectStatus.vue.d.ts +46 -226
  220. package/dist/Skeleton.js.map +1 -1
  221. package/dist/Skeleton.vue.d.ts +34 -3
  222. package/dist/Step.js +44 -44
  223. package/dist/Step.js.map +1 -1
  224. package/dist/Step.vue.d.ts +43 -4
  225. package/dist/Stepper.js.map +1 -1
  226. package/dist/Stepper.vue.d.ts +44 -9
  227. package/dist/Switch.js.map +1 -1
  228. package/dist/Switch.vue.d.ts +47 -8
  229. package/dist/Tab.js +9 -9
  230. package/dist/Tab.js.map +1 -1
  231. package/dist/Tab.vue.d.ts +15 -2
  232. package/dist/TabPanel.js.map +1 -1
  233. package/dist/TabPanel.vue.d.ts +30 -3
  234. package/dist/Table.js +59 -53
  235. package/dist/Table.js.map +1 -1
  236. package/dist/Table.vue.d.ts +50 -3
  237. package/dist/TableCell.js +1 -1
  238. package/dist/TableCell.js.map +1 -1
  239. package/dist/TableCell.vue.d.ts +32 -3
  240. package/dist/TableHeaderCell.js +1 -1
  241. package/dist/TableHeaderCell.js.map +1 -1
  242. package/dist/TableHeaderCell.vue.d.ts +30 -3
  243. package/dist/TableHeaderRow.js +1 -1
  244. package/dist/TableHeaderRow.js.map +1 -1
  245. package/dist/TableHeaderRow.vue.d.ts +34 -5
  246. package/dist/TableRow.js +44 -43
  247. package/dist/TableRow.js.map +1 -1
  248. package/dist/TableRow.vue.d.ts +48 -7
  249. package/dist/Tabs.js +2 -2
  250. package/dist/Tabs.vue.d.ts +31 -4
  251. package/dist/Tabs.vue_vue_type_script_setup_true_lang-CmnBP4i1.js +159 -0
  252. package/dist/Tabs.vue_vue_type_script_setup_true_lang-CmnBP4i1.js.map +1 -0
  253. package/dist/TextEditor.js +2422 -2416
  254. package/dist/TextEditor.js.map +1 -1
  255. package/dist/TextEditor.vue.d.ts +39 -8
  256. package/dist/Textarea.js +32 -29
  257. package/dist/Textarea.js.map +1 -1
  258. package/dist/Textarea.vue.d.ts +44 -9
  259. package/dist/Thumbnail.js +1 -1
  260. package/dist/Thumbnail.js.map +1 -1
  261. package/dist/Thumbnail.vue.d.ts +4 -4
  262. package/dist/ThumbnailEmpty.js.map +1 -1
  263. package/dist/ThumbnailEmpty.vue.d.ts +1 -1
  264. package/dist/ThumbnailGroup.js.map +1 -1
  265. package/dist/ThumbnailGroup.vue.d.ts +22 -26
  266. package/dist/Timeline.js.map +1 -1
  267. package/dist/Timeline.vue.d.ts +32 -3
  268. package/dist/TimelineItem.js.map +1 -1
  269. package/dist/TimelineItem.vue.d.ts +1 -1
  270. package/dist/Toast.js.map +1 -1
  271. package/dist/Toast.vue.d.ts +30 -3
  272. package/dist/Toasts.js.map +1 -1
  273. package/dist/ToastsPlugin.js +11 -11
  274. package/dist/ToastsPlugin.js.map +1 -1
  275. package/dist/Tooltip.js +30 -29
  276. package/dist/Tooltip.js.map +1 -1
  277. package/dist/Tooltip.vue.d.ts +43 -11
  278. package/dist/components.css +1 -1
  279. package/dist/directives/observe.js +8 -8
  280. package/dist/directives/observe.js.map +1 -1
  281. package/dist/directives/tooltip.js +3 -3
  282. package/dist/directives/tooltip.js.map +1 -1
  283. package/dist/directives/viewable.js +44 -39
  284. package/dist/directives/viewable.js.map +1 -1
  285. package/dist/floating-ui.vue-DLFiymOf.js +1093 -0
  286. package/dist/floating-ui.vue-DLFiymOf.js.map +1 -0
  287. package/dist/formatDateTime-Dz8bXV0R.js +1418 -0
  288. package/dist/formatDateTime-Dz8bXV0R.js.map +1 -0
  289. package/dist/index-D6bxWkZ1.js.map +1 -1
  290. package/dist/{index-XZqpB2_R.js → index-DA_ft08e.js} +9 -9
  291. package/dist/index-DA_ft08e.js.map +1 -0
  292. package/dist/index.js +106 -101
  293. package/dist/index.js.map +1 -1
  294. package/dist/isValid-DN-HkCoi.js.map +1 -1
  295. package/dist/obfuscateText.d.ts +1 -1
  296. package/dist/parseISO-wlfIB_QJ.js.map +1 -1
  297. package/dist/searchFuzzy-B3TsUO-V.js +409 -0
  298. package/dist/searchFuzzy-B3TsUO-V.js.map +1 -0
  299. package/dist/toTimeZone-Coq1oPTt.js.map +1 -1
  300. package/dist/useDialog.d.ts +2 -2
  301. package/dist/useDialog.js +25 -21
  302. package/dist/useDialog.js.map +1 -1
  303. package/dist/useGoogleMaps.js +110 -108
  304. package/dist/useGoogleMaps.js.map +1 -1
  305. package/dist/useMediaQuery.d.ts +6 -0
  306. package/dist/useMediaQuery.js +15 -11
  307. package/dist/useMediaQuery.js.map +1 -1
  308. package/dist/useModals.d.ts +1 -1
  309. package/dist/usePlaidLink.js +27 -20
  310. package/dist/usePlaidLink.js.map +1 -1
  311. package/dist/useSearch.js +13 -13
  312. package/dist/useSearch.js.map +1 -1
  313. package/dist/useSelection.js +56 -56
  314. package/dist/useSelection.js.map +1 -1
  315. package/dist/useSortable.js +63 -54
  316. package/dist/useSortable.js.map +1 -1
  317. package/dist/useStepper.d.ts +2 -2
  318. package/dist/useStepper.js +40 -36
  319. package/dist/useStepper.js.map +1 -1
  320. package/dist/useToasts.js +23 -23
  321. package/dist/useToasts.js.map +1 -1
  322. package/dist/useValidation.js +100 -96
  323. package/dist/useValidation.js.map +1 -1
  324. package/dist/utils/calculateElementOverflow.js +4 -4
  325. package/dist/utils/calculateElementOverflow.js.map +1 -1
  326. package/dist/utils/formatDateTime.js +1 -1
  327. package/dist/utils/obfuscateText.js +6 -6
  328. package/dist/utils/obfuscateText.js.map +1 -1
  329. package/dist/utils/searchFuzzy.js +1 -1
  330. package/dist/utils/storage.js +23 -23
  331. package/dist/utils/storage.js.map +1 -1
  332. package/package.json +32 -19
  333. package/dist/Logo.vue_vue_type_script_setup_true_lang-Y3iE9utm.js.map +0 -1
  334. package/dist/MenusPlugin-B4jpNe7x.js +0 -12
  335. package/dist/Tabs.vue_vue_type_script_setup_true_lang-BlJVDr7o.js +0 -78
  336. package/dist/Tabs.vue_vue_type_script_setup_true_lang-BlJVDr7o.js.map +0 -1
  337. package/dist/floating-ui.vue-CL01Y9ER.js +0 -1075
  338. package/dist/floating-ui.vue-CL01Y9ER.js.map +0 -1
  339. package/dist/formatDateTime-DG7kBc2T.js +0 -1414
  340. package/dist/formatDateTime-DG7kBc2T.js.map +0 -1
  341. package/dist/index-XZqpB2_R.js.map +0 -1
  342. package/dist/searchFuzzy-DBDE6jkd.js +0 -408
  343. package/dist/searchFuzzy-DBDE6jkd.js.map +0 -1
package/dist/Select.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as $e, useAttrs as ze, useSlots as He, ref as i, computed as p, watch as M, nextTick as Y, onMounted as Pe, onUnmounted as Ne, createBlock as J, openBlock as o, mergeProps as Ae, unref as g, createSlots as De, withCtx as T, createElementVNode as d, toDisplayString as b, withDirectives as $, createElementBlock as u, Fragment as G, renderList as q, withKeys as ue, normalizeClass as z, createCommentVNode as H, renderSlot as P, createTextVNode as N, withModifiers as A, createVNode as B, Teleport as Ue, Transition as Le, normalizeStyle as Ve, vModelText as Ke, vShow as Q } from "vue";
2
- import { u as Ge, a as qe, f as je, o as We, s as Xe } from "./floating-ui.vue-CL01Y9ER.js";
1
+ import { defineComponent as $e, useAttrs as ze, useSlots as He, ref as c, computed as h, watch as M, nextTick as Y, onMounted as Pe, onUnmounted as Ne, createBlock as J, openBlock as r, mergeProps as Ae, unref as g, createSlots as De, withCtx as T, createElementVNode as f, toDisplayString as b, withDirectives as $, createElementBlock as d, Fragment as G, renderList as q, withKeys as ue, normalizeClass as z, createCommentVNode as H, renderSlot as P, createTextVNode as N, withModifiers as A, createVNode as B, Teleport as Ue, Transition as Le, normalizeStyle as Ve, vModelText as Ke, vShow as Q } from "vue";
2
+ import { u as Ge, a as qe, f as je, o as We, s as Xe } from "./floating-ui.vue-DLFiymOf.js";
3
3
  import Ye from "@leaflink/snitch";
4
4
  import Z from "lodash-es/debounce";
5
5
  import Je from "lodash-es/isEmpty";
@@ -9,7 +9,7 @@ import Ze from "lodash-es/uniqueId";
9
9
  import et from "./useSearch.js";
10
10
  import { DEBOUNCE as tt, KEY_CODES as x } from "./constants.js";
11
11
  import lt from "./directives/clickoutside.js";
12
- import { D as st } from "./MenusPlugin-B4jpNe7x.js";
12
+ import { D as st } from "./MenusPlugin-Bk6UW6o9.js";
13
13
  import fe from "./Chip.js";
14
14
  import { _ as at } from "./Field.vue_vue_type_script_setup_true_lang-DI6z3AE9.js";
15
15
  import D from "./Icon.js";
@@ -17,10 +17,10 @@ import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  const ot = { class: "tw-flex tw-h-input tw-items-center tw-text-sm" }, rt = ["id", "aria-labelledby"], it = ["id", "aria-errormessage", "aria-invalid", "disabled", "multiple", "name"], ct = ["selected", "value", "disabled"], ut = ["aria-controls", "aria-expanded", "aria-label", "aria-disabled"], dt = ["id"], ft = ["onKeypress", "onMousedown"], pt = {
18
18
  key: 0,
19
19
  class: "stash-select__total"
20
- }, vt = {
20
+ }, ht = {
21
21
  key: 0,
22
22
  class: "tw-flex tw-items-center tw-border-b tw-border-blue-500 tw-pr-1.5"
23
- }, ht = ["data-test", "placeholder"], mt = { class: "stash-select__options options tw-my-1.5 tw-w-full tw-border-white tw-bg-white" }, yt = ["data-test", "onClick", "onMouseenter"], _t = {
23
+ }, vt = ["data-test", "placeholder"], mt = { class: "stash-select__options options tw-my-1.5 tw-w-full tw-border-white tw-bg-white" }, yt = ["data-test", "onClick", "onMouseenter"], _t = {
24
24
  key: 0,
25
25
  class: "tw-ml-auto tw-pl-1.5"
26
26
  }, wt = { class: "tw-m-1.5 tw-cursor-default tw-p-1.5" }, gt = {
@@ -75,150 +75,162 @@ const ot = { class: "tw-flex tw-h-input tw-items-center tw-text-sm" }, rt = ["id
75
75
  disabled: { type: Boolean }
76
76
  },
77
77
  emits: ["update:model-value", "clear", "add", "remove", "opened", "closed"],
78
- setup(pe, { emit: ve }) {
79
- const e = pe, h = ve, U = ze(), he = He(), ee = i(null), m = i(null), C = i(null), O = i(null), te = i(null), I = i(0), R = i(0), a = i([]), le = i(() => []), y = i(""), f = i(-1), c = i(!1), j = i({}), se = i(!1), { floatingStyles: me, update: ye } = Ge(ee, C, {
78
+ setup(pe, { emit: he }) {
79
+ const t = pe, v = he, U = ze(), ve = He(), ee = c(null), m = c(null), C = c(null), O = c(null), te = c(null), I = c(0), R = c(0), n = c([]), le = c(() => []), y = c(""), p = c(-1), u = c(!1), j = c({}), se = c(!1), { floatingStyles: me, update: ye } = Ge(ee, C, {
80
80
  whileElementsMounted: qe,
81
- placement: e.menuPlacement,
81
+ placement: t.menuPlacement,
82
82
  middleware: [
83
83
  je(),
84
- We(({ rects: t, placement: l }) => l.split("-")[0] === "bottom" && I.value > R.value ? I.value - t.reference.height + 6 : 6),
84
+ We(({ rects: e, placement: l }) => l.split("-")[0] === "bottom" && I.value > R.value ? I.value - e.reference.height + 6 : 6),
85
85
  Xe({
86
- apply({ availableHeight: t, elements: l, rects: n }) {
87
- e.enableTeleport && Object.assign(l.floating.style, {
88
- maxWidth: `${n.reference.width}px`,
89
- maxHeight: `${Math.min(t, 300)}px`
86
+ apply({ availableHeight: e, elements: l, rects: a }) {
87
+ t.enableTeleport && Object.assign(l.floating.style, {
88
+ maxWidth: `${a.reference.width}px`,
89
+ maxHeight: `${Math.min(e, 300)}px`
90
90
  });
91
91
  }
92
92
  })
93
93
  ]
94
- }), ae = new ResizeObserver(() => k()), W = p(() => !e.hideSearch && e.searchable !== "false" && e.searchable !== !1), L = p(() => {
95
- let t = (se.value && e.lazy ? e.lazy() : e.options).filter(Boolean);
96
- return Qe(t[0]) || (t = t.map((l, n) => ({ name: l, id: n }))), t;
97
- }), _e = p(() => a.value.length ? a.value.map((t) => t[e.displayBy] || t).join(", ") : ""), ne = p(() => e.searchLoading || Object.keys(j.value).length > 0), F = p(() => e.disableFiltering || !(y.value || "").trim() ? L.value : le.value(y.value)), we = p(() => I.value <= R.value), ge = p(
98
- () => !c.value && !e.single && !we.value && a.value.length
99
- ), be = p(() => [a.value.length, e.selectItemType, "selected"].filter(Boolean).join(" ")), Be = p(() => e.preventEmpty || e.allowEmpty === "false" || e.allowEmpty === !1);
100
- M(y, (t, l) => l !== t && K(-1)), M(a, () => k(), { deep: !0 }), M(
101
- () => e.modelValue,
102
- (t) => {
103
- if (Array.isArray(t)) {
104
- const l = t.filter(Boolean);
105
- de(l, a.value) || (a.value = l);
94
+ }), ae = new ResizeObserver(() => k()), W = h(() => !t.hideSearch && t.searchable !== "false" && t.searchable !== !1), L = h(() => {
95
+ let e = (se.value && t.lazy ? t.lazy() : t.options).filter(Boolean);
96
+ return Qe(e[0]) || (e = e.map((l, a) => ({ name: l, id: a }))), e;
97
+ }), _e = h(() => n.value.length ? n.value.map((e) => e[t.displayBy] || e).join(", ") : ""), ne = h(() => t.searchLoading || Object.keys(j.value).length > 0), F = h(() => t.disableFiltering || !(y.value || "").trim() ? L.value : le.value(y.value)), we = h(() => I.value <= R.value), ge = h(
98
+ () => !u.value && !t.single && !we.value && n.value.length
99
+ ), be = h(() => [n.value.length, t.selectItemType, "selected"].filter(Boolean).join(" ")), Be = h(() => t.preventEmpty || t.allowEmpty === "false" || t.allowEmpty === !1);
100
+ M(y, (e, l) => l !== e && K(-1)), M(n, () => k(), { deep: !0 }), M(
101
+ () => t.modelValue,
102
+ (e) => {
103
+ if (Array.isArray(e)) {
104
+ const l = e.filter(Boolean);
105
+ de(l, n.value) || (n.value = l);
106
106
  return;
107
107
  }
108
- if (!Je(t)) {
109
- de(t, a.value[0]) || (a.value[0] = t);
108
+ if (!Je(e)) {
109
+ de(e, n.value[0]) || (n.value[0] = e);
110
110
  return;
111
111
  }
112
- a.value = [];
112
+ n.value = [];
113
113
  },
114
114
  { immediate: !0 }
115
115
  ), M(
116
- () => e.options,
116
+ () => t.options,
117
117
  () => {
118
- const { searchFor: t } = et({
119
- items: p(() => L.value),
120
- fieldNames: e.searchBy.length ? e.searchBy : [e.displayBy],
121
- trackBy: e.trackBy
118
+ const { searchFor: e } = et({
119
+ items: h(() => L.value),
120
+ fieldNames: t.searchBy.length ? t.searchBy : [t.displayBy],
121
+ trackBy: t.trackBy
122
122
  });
123
- le.value = (l) => t(l, { fuzzy: e.useFuzzySearch });
123
+ le.value = (l) => e(l, { fuzzy: t.useFuzzySearch });
124
124
  },
125
125
  { immediate: !0 }
126
126
  ), M(I, () => ke());
127
- const ke = Z(() => ye(), 50), k = Z(() => ce(), 50), X = (t) => t && typeof t == "object" && "disabled" in t && t?.disabled, Se = () => {
128
- a.value = [], h("update:model-value", e.single ? void 0 : a.value), h("clear");
129
- }, V = (t) => {
130
- e.disabled || !t || X(t) || (E(t) ? _(t) : (e.single && (a.value = []), a.value.push(t), h("update:model-value", e.single ? a.value[0] : a.value), h("add", t)), e.single && S());
131
- }, Ee = (t) => {
132
- if (e.single) {
133
- const n = L.value.find((r) => r[e.trackBy]?.toString() === t.target.value);
134
- V(n);
127
+ const ke = Z(() => ye(), 50), k = Z(() => ce(), 50), X = (e) => e && typeof e == "object" && "disabled" in e && (e == null ? void 0 : e.disabled), Se = () => {
128
+ n.value = [], v("update:model-value", t.single ? void 0 : n.value), v("clear");
129
+ }, V = (e) => {
130
+ t.disabled || !e || X(e) || (E(e) ? _(e) : (t.single && (n.value = []), n.value.push(e), v("update:model-value", t.single ? n.value[0] : n.value), v("add", e)), t.single && S());
131
+ }, Ee = (e) => {
132
+ if (t.single) {
133
+ const a = L.value.find((o) => {
134
+ var i;
135
+ return ((i = o[t.trackBy]) == null ? void 0 : i.toString()) === e.target.value;
136
+ });
137
+ V(a);
135
138
  return;
136
139
  }
137
- const l = [...t.target.selectedOptions];
138
- for (const n of [...a.value])
139
- l.find((v) => v.value === n[e.trackBy]?.toString()) || _(n);
140
- for (const n of l) {
141
- const r = L.value.find(
142
- (v) => v[e.trackBy]?.toString() === n.value
140
+ const l = [...e.target.selectedOptions];
141
+ for (const a of [...n.value])
142
+ l.find((i) => {
143
+ var s;
144
+ return i.value === ((s = a[t.trackBy]) == null ? void 0 : s.toString());
145
+ }) || _(a);
146
+ for (const a of l) {
147
+ const o = L.value.find(
148
+ (i) => {
149
+ var s;
150
+ return ((s = i[t.trackBy]) == null ? void 0 : s.toString()) === a.value;
151
+ }
143
152
  );
144
- E(r) || V(r);
153
+ E(o) || V(o);
145
154
  }
146
- }, _ = (t) => {
147
- if (e.disabled || Be.value && a.value.length === 1)
155
+ }, _ = (e) => {
156
+ if (t.disabled || Be.value && n.value.length === 1)
148
157
  return;
149
- const l = a.value.findIndex((n) => n[e.trackBy] === t[e.trackBy]);
158
+ const l = n.value.findIndex((a) => a[t.trackBy] === e[t.trackBy]);
150
159
  if (l === -1) {
151
- Ye.warn("ll-select: could not find option to remove", t);
160
+ Ye.warn("ll-select: could not find option to remove", e);
152
161
  return;
153
162
  }
154
- a.value.splice(l, 1), h("update:model-value", e.single ? a.value[0] : a.value), h("remove", t, l);
163
+ n.value.splice(l, 1), v("update:model-value", t.single ? n.value[0] : n.value), v("remove", e, l);
155
164
  }, oe = () => {
156
- c.value || (k(), c.value = !0, h("opened"), W.value && Y(() => {
157
- te.value?.focus({ preventScroll: !0 });
165
+ u.value || (k(), u.value = !0, v("opened"), W.value && Y(() => {
166
+ var e;
167
+ (e = te.value) == null || e.focus({ preventScroll: !0 });
158
168
  }));
159
169
  }, S = () => {
160
- c.value && h("closed", a.value), K(-1), c.value = !1, e.preserveSearchTerm || (y.value = ""), m.value?.blur();
161
- }, Te = async (t) => {
170
+ var e;
171
+ u.value && v("closed", n.value), K(-1), u.value = !1, t.preserveSearchTerm || (y.value = ""), (e = m.value) == null || e.blur();
172
+ }, Te = async (e) => {
162
173
  if (await Y(), !m.value)
163
174
  return;
164
- if (![x.ENTER, x.ESCAPE].includes(t.keyCode)) {
165
- const n = m.value.querySelector(".stash-select__option--highlighted"), r = n?.getBoundingClientRect(), v = m.value.getBoundingClientRect();
166
- if (!r || !v)
175
+ if (![x.ENTER, x.ESCAPE].includes(e.keyCode)) {
176
+ const a = m.value.querySelector(".stash-select__option--highlighted"), o = a == null ? void 0 : a.getBoundingClientRect(), i = m.value.getBoundingClientRect();
177
+ if (!o || !i)
167
178
  return;
168
- (r.bottom >= v.bottom || r.top <= v.top + r.height) && n?.scrollIntoView({ block: "nearest", inline: "nearest" });
179
+ (o.bottom >= i.bottom || o.top <= i.top + o.height) && (a == null || a.scrollIntoView({ block: "nearest", inline: "nearest" }));
169
180
  }
170
- }, K = (t) => {
171
- f.value = t;
172
- }, xe = (t) => {
173
- if (t.keyCode === x.ESCAPE)
181
+ }, K = (e) => {
182
+ p.value = e;
183
+ }, xe = (e) => {
184
+ if (e.keyCode === x.ESCAPE)
174
185
  S();
175
- else if (t.keyCode === x.DOWN && f.value < F.value.length - 1 && c.value)
176
- f.value++;
177
- else if (t.keyCode === x.UP && f.value > 0)
178
- c.value && f.value--, C.value && W.value && f.value === 0 && (C.value.scrollTop -= 100);
179
- else if (t.keyCode === x.ENTER && f.value !== -1 && c.value)
180
- V(F.value[f.value]);
186
+ else if (e.keyCode === x.DOWN && p.value < F.value.length - 1 && u.value)
187
+ p.value++;
188
+ else if (e.keyCode === x.UP && p.value > 0)
189
+ u.value && p.value--, C.value && W.value && p.value === 0 && (C.value.scrollTop -= 100);
190
+ else if (e.keyCode === x.ENTER && p.value !== -1 && u.value)
191
+ V(F.value[p.value]);
181
192
  else
182
193
  return;
183
- t.preventDefault(), Te(t);
194
+ e.preventDefault(), Te(e);
184
195
  }, re = Z(function() {
185
196
  Ce();
186
197
  }, tt.FAST), Ce = async function() {
187
- if (!e.onSearch)
198
+ if (!t.onSearch)
188
199
  return;
189
- const t = Ze("search-request-");
200
+ const e = Ze("search-request-");
190
201
  try {
191
- j.value[t] = !0, await e.onSearch(y.value);
202
+ j.value[e] = !0, await t.onSearch(y.value);
192
203
  } finally {
193
- delete j.value[t];
204
+ delete j.value[e];
194
205
  }
195
- }, Oe = (t, l) => [
206
+ }, Oe = (e, l) => [
196
207
  {
197
208
  "stash-select__option": !0,
198
- "stash-select__option--disabled": X(t),
199
- "stash-select__option--highlighted": f.value === l,
200
- "stash-select__option--selected": E(t)
209
+ "stash-select__option--disabled": X(e),
210
+ "stash-select__option--highlighted": p.value === l,
211
+ "stash-select__option--selected": E(e)
201
212
  },
202
213
  // @deprecated
203
214
  // backwards compatibility
204
215
  {
205
- "is-selected": f.value === l,
206
- "tw-bg-ice-200": f.value === l,
207
- "tw-bg-blue-100 tw-text-ice-700": E(t)
216
+ "is-selected": p.value === l,
217
+ "tw-bg-ice-200": p.value === l,
218
+ "tw-bg-blue-100 tw-text-ice-700": E(e)
208
219
  }
209
- ], E = (t) => t == null ? !1 : a.value.some((l) => l?.[e.trackBy] === t[e.trackBy]);
210
- function ie(t) {
211
- if (!t)
220
+ ], E = (e) => e == null ? !1 : n.value.some((l) => (l == null ? void 0 : l[t.trackBy]) === e[t.trackBy]);
221
+ function ie(e) {
222
+ var o, i;
223
+ if (!e)
212
224
  return !1;
213
- const l = m.value?.contains(t), n = C.value?.contains(t);
214
- return l || n;
225
+ const l = (o = m.value) == null ? void 0 : o.contains(e), a = (i = C.value) == null ? void 0 : i.contains(e);
226
+ return l || a;
215
227
  }
216
- function Ie(t) {
217
- const l = t.relatedTarget;
228
+ function Ie(e) {
229
+ const l = e.relatedTarget;
218
230
  !ie(l) && l && S();
219
231
  }
220
- function Re(t) {
221
- const l = t.target;
232
+ function Re(e) {
233
+ const l = e.target;
222
234
  ie(l) || S();
223
235
  }
224
236
  const Fe = () => {
@@ -232,19 +244,19 @@ const ot = { class: "tw-flex tw-h-input tw-items-center tw-text-sm" }, rt = ["id
232
244
  O.value && ae.observe(O.value), window.addEventListener("resize", k), k();
233
245
  }), Ne(() => {
234
246
  window.removeEventListener("resize", ce), ae.disconnect(), k.cancel();
235
- }), (t, l) => (o(), J(at, Ae(e, {
247
+ }), (e, l) => (r(), J(at, Ae(t, {
236
248
  class: ["input ll-select stash-select", g(U).class],
237
249
  "data-test": "stash-select",
238
- "error-text": e.errorText || e.error,
239
- "hint-text": e.hintText || e.hint
250
+ "error-text": t.errorText || t.error,
251
+ "hint-text": t.hintText || t.hint
240
252
  }), De({ _: 2 }, [
241
- e.isReadOnly ? {
253
+ t.isReadOnly ? {
242
254
  name: "default",
243
- fn: T(({ fieldId: n, labelId: r }) => [
244
- d("div", ot, [
245
- d("span", {
246
- id: n,
247
- "aria-labelledby": r,
255
+ fn: T(({ fieldId: a, labelId: o }) => [
256
+ f("div", ot, [
257
+ f("span", {
258
+ id: a,
259
+ "aria-labelledby": o,
248
260
  class: "show-empty tw-h-min"
249
261
  }, b(_e.value), 9, rt)
250
262
  ])
@@ -252,54 +264,54 @@ const ot = { class: "tw-flex tw-h-input tw-items-center tw-text-sm" }, rt = ["id
252
264
  key: "0"
253
265
  } : {
254
266
  name: "default",
255
- fn: T(({ fieldId: n, fieldErrorId: r, hasError: v }) => [
256
- d("select", {
257
- id: n,
258
- "aria-errormessage": r,
259
- "aria-invalid": v,
267
+ fn: T(({ fieldId: a, fieldErrorId: o, hasError: i }) => [
268
+ f("select", {
269
+ id: a,
270
+ "aria-errormessage": o,
271
+ "aria-invalid": i,
260
272
  class: "tw-sr-only",
261
- disabled: e.disabled,
262
- multiple: !e.single,
263
- name: e.name,
273
+ disabled: t.disabled,
274
+ multiple: !t.single,
275
+ name: t.name,
264
276
  onChange: Ee
265
277
  }, [
266
- (o(!0), u(G, null, q(F.value, (s, w) => (o(), u("option", {
278
+ (r(!0), d(G, null, q(F.value, (s, w) => (r(), d("option", {
267
279
  key: `srOnlyOption-${w}`,
268
280
  selected: E(s),
269
- value: s[e.trackBy],
281
+ value: s[t.trackBy],
270
282
  disabled: X(s)
271
- }, b(s[e.displayBy] || ""), 9, ct))), 128)),
272
- l[5] || (l[5] = d("option", { value: "" }, null, -1))
283
+ }, b(s[t.displayBy] || ""), 9, ct))), 128)),
284
+ l[5] || (l[5] = f("option", { value: "" }, null, -1))
273
285
  ], 40, it),
274
- $((o(), u("div", {
286
+ $((r(), d("div", {
275
287
  ref_key: "selectRef",
276
288
  ref: ee,
277
289
  role: "listbox",
278
290
  "aria-hidden": "true",
279
291
  class: z(["stash-select__content-wrapper", [
280
292
  {
281
- "stash-select--disabled": !!e.disabled,
282
- "stash-select--error": !!(e.errorText || e.error),
283
- "stash-select--active": c.value,
284
- "stash-select--single": e.single
293
+ "stash-select--disabled": !!t.disabled,
294
+ "stash-select--error": !!(t.errorText || t.error),
295
+ "stash-select--active": u.value,
296
+ "stash-select--single": t.single
285
297
  },
286
298
  // @deprecated
287
299
  // backwards compatibility
288
300
  {
289
- "is-active": c.value,
290
- "is-single": e.single,
291
- "is-disabled": e.disabled
301
+ "is-active": u.value,
302
+ "is-single": t.single,
303
+ "is-disabled": t.disabled
292
304
  }
293
305
  ]]),
294
- "aria-controls": "listbox-" + n,
295
- "aria-expanded": c.value,
296
- "aria-label": e.placeholder,
297
- "aria-disabled": e.disabled || void 0,
306
+ "aria-controls": "listbox-" + a,
307
+ "aria-expanded": u.value,
308
+ "aria-label": t.placeholder,
309
+ "aria-disabled": t.disabled || void 0,
298
310
  onKeydown: xe,
299
311
  onKeyup: ue(S, ["esc"])
300
312
  }, [
301
- d("div", {
302
- id: "listbox-" + n,
313
+ f("div", {
314
+ id: "listbox-" + a,
303
315
  ref_key: "contentRef",
304
316
  ref: m,
305
317
  class: "input-field stash-select__content",
@@ -311,26 +323,26 @@ const ot = { class: "tw-flex tw-h-input tw-items-center tw-text-sm" }, rt = ["id
311
323
  onKeydown: oe,
312
324
  onMouseleave: Fe
313
325
  }, [
314
- d("ul", {
326
+ f("ul", {
315
327
  ref_key: "chipsRef",
316
328
  ref: O,
317
329
  class: "stash-select__chips"
318
330
  }, [
319
- a.value.length ? H("", !0) : (o(), u("li", {
331
+ n.value.length ? H("", !0) : (r(), d("li", {
320
332
  key: 0,
321
- class: z(["stash-select__placeholder tw-mr-0 tw-pl-1.5", { "tw-truncate": !e.noTruncate }])
322
- }, b(e.placeholder), 3)),
323
- e.single ? (o(!0), u(G, { key: 1 }, q(a.value, (s) => (o(), u("li", {
324
- key: `chip-${s[e.trackBy]}`,
325
- class: z(["stash-select__selected tw-mr-0 tw-pl-1.5", { "tw-truncate": !e.noTruncate }])
333
+ class: z(["stash-select__placeholder tw-mr-0 tw-pl-1.5", { "tw-truncate": !t.noTruncate }])
334
+ }, b(t.placeholder), 3)),
335
+ t.single ? (r(!0), d(G, { key: 1 }, q(n.value, (s) => (r(), d("li", {
336
+ key: `chip-${s[t.trackBy]}`,
337
+ class: z(["stash-select__selected tw-mr-0 tw-pl-1.5", { "tw-truncate": !t.noTruncate }])
326
338
  }, [
327
- P(t.$slots, "selected", {
339
+ P(e.$slots, "selected", {
328
340
  option: s,
329
341
  onRemove: () => _(s),
330
342
  chipSelectedClass: "stash-select__chip"
331
343
  }, () => [
332
- N(b(s[e.displayBy] || s) + " ", 1),
333
- d("button", {
344
+ N(b(s[t.displayBy] || s) + " ", 1),
345
+ f("button", {
334
346
  tabindex: "-1",
335
347
  class: "stash-select__remove",
336
348
  onKeypress: ue(A((w) => _(s), ["prevent"]), ["enter"]),
@@ -343,11 +355,11 @@ const ot = { class: "tw-flex tw-h-input tw-items-center tw-text-sm" }, rt = ["id
343
355
  })
344
356
  ], 40, ft)
345
357
  ], !0)
346
- ], 2))), 128)) : (o(!0), u(G, { key: 2 }, q(a.value, (s) => (o(), u("li", {
347
- key: `chip-${s[e.trackBy]}`,
358
+ ], 2))), 128)) : (r(!0), d(G, { key: 2 }, q(n.value, (s) => (r(), d("li", {
359
+ key: `chip-${s[t.trackBy]}`,
348
360
  class: "tw-inline-block"
349
361
  }, [
350
- P(t.$slots, "selected", {
362
+ P(e.$slots, "selected", {
351
363
  option: s,
352
364
  onRemove: () => _(s),
353
365
  chipSelectedClass: "stash-select__chip"
@@ -360,14 +372,14 @@ const ot = { class: "tw-flex tw-h-input tw-items-center tw-text-sm" }, rt = ["id
360
372
  onRemove: (w) => _(s)
361
373
  }, {
362
374
  default: T(() => [
363
- N(b(s[e.displayBy] || s), 1)
375
+ N(b(s[t.displayBy] || s), 1)
364
376
  ]),
365
377
  _: 2
366
378
  }, 1032, ["onRemove"])
367
379
  ], !0)
368
380
  ]))), 128))
369
381
  ], 512),
370
- ge.value ? (o(), u("div", pt, [
382
+ ge.value ? (r(), d("div", pt, [
371
383
  B(fe, {
372
384
  "bg-color": "blue-500",
373
385
  "is-removable": "",
@@ -381,20 +393,20 @@ const ot = { class: "tw-flex tw-h-input tw-items-center tw-text-sm" }, rt = ["id
381
393
  _: 1
382
394
  })
383
395
  ])) : H("", !0),
384
- e.icon ? (o(), J(D, {
396
+ t.icon ? (r(), J(D, {
385
397
  key: 1,
386
- class: z(["stash-select__icon", { "tw-text-ice-500": e.disabled }]),
398
+ class: z(["stash-select__icon", { "tw-text-ice-500": t.disabled }]),
387
399
  "data-test": "stash-select|toggle-icon",
388
- name: e.icon,
389
- onMousedown: l[0] || (l[0] = A((s) => c.value && S(), ["prevent"]))
400
+ name: t.icon,
401
+ onMousedown: l[0] || (l[0] = A((s) => u.value && S(), ["prevent"]))
390
402
  }, null, 8, ["name", "class"])) : H("", !0),
391
- (o(), J(Ue, {
392
- to: e.teleportTo,
393
- disabled: !e.enableTeleport
403
+ (r(), J(Ue, {
404
+ to: t.teleportTo,
405
+ disabled: !t.enableTeleport
394
406
  }, [
395
407
  B(Le, { name: "fade" }, {
396
408
  default: T(() => [
397
- $(d("div", {
409
+ $(f("div", {
398
410
  ref_key: "optionsWrapperRef",
399
411
  ref: C,
400
412
  class: "stash-select__border-selector tw-w-full tw-shadow-2xl",
@@ -402,8 +414,8 @@ const ot = { class: "tw-flex tw-h-input tw-items-center tw-text-sm" }, rt = ["id
402
414
  onClick: l[3] || (l[3] = A(() => {
403
415
  }, ["stop"]))
404
416
  }, [
405
- W.value ? (o(), u("div", vt, [
406
- $(d("input", {
417
+ W.value ? (r(), d("div", ht, [
418
+ $(f("input", {
407
419
  ref_key: "searchRef",
408
420
  ref: te,
409
421
  "onUpdate:modelValue": l[1] || (l[1] = (s) => y.value = s),
@@ -411,11 +423,11 @@ const ot = { class: "tw-flex tw-h-input tw-items-center tw-text-sm" }, rt = ["id
411
423
  autocomplete: "off",
412
424
  class: "stash-select__search",
413
425
  "data-test": g(U)["data-test"] ? g(U)["data-test"] + "-search" : "stash-select|search",
414
- placeholder: e.searchPlaceholder,
426
+ placeholder: t.searchPlaceholder,
415
427
  spellcheck: !1,
416
428
  onInput: l[2] || (l[2] = //@ts-ignore
417
429
  (...s) => g(re) && g(re)(...s))
418
- }, null, 40, ht), [
430
+ }, null, 40, vt), [
419
431
  [Ke, y.value]
420
432
  ]),
421
433
  B(D, {
@@ -423,43 +435,43 @@ const ot = { class: "tw-flex tw-h-input tw-items-center tw-text-sm" }, rt = ["id
423
435
  class: "tw-text-ice-500"
424
436
  })
425
437
  ])) : H("", !0),
426
- d("ul", mt, [
427
- (o(!0), u(G, null, q(F.value, (s, w) => (o(), u("li", {
428
- key: `option-${s[e.trackBy]}`,
429
- "data-test": s[e.trackBy],
438
+ f("ul", mt, [
439
+ (r(!0), d(G, null, q(F.value, (s, w) => (r(), d("li", {
440
+ key: `option-${s[t.trackBy]}`,
441
+ "data-test": s[t.trackBy],
430
442
  class: z(Oe(s, w)),
431
443
  onClick: (Me) => V(s),
432
444
  onMouseenter: A((Me) => K(w), ["self"])
433
445
  }, [
434
- P(t.$slots, "option", { option: s }, () => [
435
- N(b(s[e.displayBy] || s), 1)
446
+ P(e.$slots, "option", { option: s }, () => [
447
+ N(b(s[t.displayBy] || s), 1)
436
448
  ], !0),
437
- E(s) && !e.hideCheck ? (o(), u("span", _t, [
449
+ E(s) && !t.hideCheck ? (r(), d("span", _t, [
438
450
  B(D, {
439
451
  class: "tw-text-blue-500",
440
452
  name: "check"
441
453
  })
442
454
  ])) : H("", !0)
443
455
  ], 42, yt))), 128)),
444
- $(d("li", wt, [
456
+ $(f("li", wt, [
445
457
  B(D, {
446
458
  "data-test": "stash-select|options-loading",
447
459
  name: "working",
448
460
  class: "tw-animate-spin tw-text-ice-500"
449
461
  })
450
462
  ], 512), [
451
- [Q, e.loading || ne.value]
463
+ [Q, t.loading || ne.value]
452
464
  ]),
453
- $(d("li", gt, [
454
- P(t.$slots, "no-options", {}, () => [
455
- l[6] || (l[6] = N(" No options ", -1))
465
+ $(f("li", gt, [
466
+ P(e.$slots, "no-options", {}, () => [
467
+ l[6] || (l[6] = N(" No options "))
456
468
  ], !0)
457
469
  ], 512), [
458
- [Q, !e.loading && !ne.value && !F.value.length]
470
+ [Q, !t.loading && !ne.value && !F.value.length]
459
471
  ])
460
472
  ])
461
473
  ], 4), [
462
- [Q, c.value && !e.disabled]
474
+ [Q, u.value && !t.disabled]
463
475
  ])
464
476
  ]),
465
477
  _: 3
@@ -472,10 +484,10 @@ const ot = { class: "tw-flex tw-h-input tw-items-center tw-text-sm" }, rt = ["id
472
484
  ]),
473
485
  key: "1"
474
486
  },
475
- he.hint ? {
487
+ ve.hint ? {
476
488
  name: "hint",
477
489
  fn: T(() => [
478
- P(t.$slots, "hint", {}, void 0, !0)
490
+ P(e.$slots, "hint", {}, void 0, !0)
479
491
  ]),
480
492
  key: "2"
481
493
  } : void 0