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