@leaflink/stash 49.5.0 → 50.0.1

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 (418) hide show
  1. package/assets/icons/circle-empty.svg +1 -0
  2. package/assets/spritesheet.svg +1 -1
  3. package/dist/Accordion.js +25 -28
  4. package/dist/Accordion.js.map +1 -1
  5. package/dist/Accordion.vue.d.ts +16 -16
  6. package/dist/ActionsDropdown.js +14 -26
  7. package/dist/ActionsDropdown.js.map +1 -1
  8. package/dist/ActionsDropdown.vue.d.ts +12 -12
  9. package/dist/AddressSelect.js +22 -47
  10. package/dist/AddressSelect.js.map +1 -1
  11. package/dist/AddressSelect.vue.d.ts +45 -45
  12. package/dist/Alert.js +4 -6
  13. package/dist/Alert.js.map +1 -1
  14. package/dist/Alert.vue.d.ts +18 -18
  15. package/dist/AppNavigationItem.js +16 -19
  16. package/dist/AppNavigationItem.js.map +1 -1
  17. package/dist/AppNavigationItem.vue.d.ts +4 -4
  18. package/dist/AppSidebar.js +27 -28
  19. package/dist/AppSidebar.js.map +1 -1
  20. package/dist/AppSidebar.vue.d.ts +7 -7
  21. package/dist/AppTopbar.js +12 -17
  22. package/dist/AppTopbar.js.map +1 -1
  23. package/dist/AppTopbar.vue.d.ts +8 -8
  24. package/dist/Avatar.js +1 -1
  25. package/dist/Avatar.vue.d.ts +22 -22
  26. package/dist/Backdrop.js +1 -1
  27. package/dist/Backdrop.vue.d.ts +1 -1
  28. package/dist/Badge.js +1 -1
  29. package/dist/Badge.js.map +1 -1
  30. package/dist/Badge.vue.d.ts +36 -36
  31. package/dist/Box.js +2 -3
  32. package/dist/Box.js.map +1 -1
  33. package/dist/Box.vue.d.ts +12 -12
  34. package/dist/{Box.vue_vue_type_script_setup_true_lang-69e5176b.js → Box.vue_vue_type_script_setup_true_lang-DgJHq-09.js} +1 -1
  35. package/dist/{Box.vue_vue_type_script_setup_true_lang-69e5176b.js.map → Box.vue_vue_type_script_setup_true_lang-DgJHq-09.js.map} +1 -1
  36. package/dist/Button.js +40 -27
  37. package/dist/Button.js.map +1 -1
  38. package/dist/Button.vue.d.ts +34 -27
  39. package/dist/ButtonGroup.js +1 -1
  40. package/dist/ButtonGroup.vue.d.ts +14 -14
  41. package/dist/Card.vue.d.ts +3 -3
  42. package/dist/CardContent.js +1 -1
  43. package/dist/CardContent.vue.d.ts +1 -1
  44. package/dist/CardFooter.js +1 -1
  45. package/dist/CardFooter.vue.d.ts +1 -1
  46. package/dist/CardMedia.js +11 -14
  47. package/dist/CardMedia.js.map +1 -1
  48. package/dist/Carousel.js +179 -180
  49. package/dist/Carousel.js.map +1 -1
  50. package/dist/Carousel.vue.d.ts +33 -11
  51. package/dist/Checkbox.js +38 -35
  52. package/dist/Checkbox.js.map +1 -1
  53. package/dist/Checkbox.vue.d.ts +31 -31
  54. package/dist/ChevronToggle.js +2 -10
  55. package/dist/ChevronToggle.js.map +1 -1
  56. package/dist/ChevronToggle.vue.d.ts +5 -5
  57. package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-fcdf0c19.js → ChevronToggle.vue_vue_type_script_setup_true_lang-DuvluoTi.js} +1 -1
  58. package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-fcdf0c19.js.map → ChevronToggle.vue_vue_type_script_setup_true_lang-DuvluoTi.js.map} +1 -1
  59. package/dist/Chip.js +17 -20
  60. package/dist/Chip.js.map +1 -1
  61. package/dist/Chip.vue.d.ts +32 -32
  62. package/dist/ConfirmationCodeInput.js +1 -1
  63. package/dist/ConfirmationCodeInput.js.map +1 -1
  64. package/dist/ConfirmationCodeInput.vue.d.ts +29 -29
  65. package/dist/ContextSwitcher.js +8 -14
  66. package/dist/ContextSwitcher.js.map +1 -1
  67. package/dist/ContextSwitcher.vue.d.ts +32 -32
  68. package/dist/Copy.js +23 -34
  69. package/dist/Copy.js.map +1 -1
  70. package/dist/Copy.vue.d.ts +9 -9
  71. package/dist/CurrencyInput.js +117 -128
  72. package/dist/CurrencyInput.js.map +1 -1
  73. package/dist/CurrencyInput.vue.d.ts +26 -21
  74. package/dist/CustomRender.vue.d.ts +12 -1
  75. package/dist/DataView.js +70 -73
  76. package/dist/DataView.js.map +1 -1
  77. package/dist/{DataView.vue_used_vue_type_style_index_0_lang.module-5c180dba.js → DataView.keys-C7eaZg2G.js} +5 -8
  78. package/dist/DataView.keys-C7eaZg2G.js.map +1 -0
  79. package/dist/DataView.vue.d.ts +51 -51
  80. package/dist/DataViewFilters.js +76 -90
  81. package/dist/DataViewFilters.js.map +1 -1
  82. package/dist/{DataViewFilters.keys-c80ffabe.js → DataViewFilters.keys-BLu07FiP.js} +1 -1
  83. package/dist/{DataViewFilters.keys-c80ffabe.js.map → DataViewFilters.keys-BLu07FiP.js.map} +1 -1
  84. package/dist/DataViewFilters.vue.d.ts +39 -39
  85. package/dist/DataViewSortButton.js +30 -43
  86. package/dist/DataViewSortButton.js.map +1 -1
  87. package/dist/DataViewSortButton.vue.d.ts +3 -3
  88. package/dist/DataViewToolbar.js +27 -36
  89. package/dist/DataViewToolbar.js.map +1 -1
  90. package/dist/DataViewToolbar.vue.d.ts +17 -17
  91. package/dist/DatePicker.js +649 -662
  92. package/dist/DatePicker.js.map +1 -1
  93. package/dist/DatePicker.vue.d.ts +73 -73
  94. package/dist/DescriptionList.js +1 -1
  95. package/dist/{DescriptionList.keys-c906ce05.js → DescriptionList.keys-BHlHYV6b.js} +1 -1
  96. package/dist/{DescriptionList.keys-c906ce05.js.map → DescriptionList.keys-BHlHYV6b.js.map} +1 -1
  97. package/dist/DescriptionList.vue.d.ts +6 -6
  98. package/dist/DescriptionListDetail.js +1 -1
  99. package/dist/DescriptionListDetail.vue.d.ts +1 -1
  100. package/dist/DescriptionListGroup.js +1 -1
  101. package/dist/DescriptionListGroup.vue.d.ts +1 -1
  102. package/dist/DescriptionListTerm.js +1 -1
  103. package/dist/DescriptionListTerm.vue.d.ts +1 -1
  104. package/dist/Dialog.js +26 -30
  105. package/dist/Dialog.js.map +1 -1
  106. package/dist/Dialog.vue.d.ts +34 -34
  107. package/dist/Divider.js +1 -1
  108. package/dist/Divider.js.map +1 -1
  109. package/dist/Divider.vue.d.ts +1 -1
  110. package/dist/Dropdown.js +21 -28
  111. package/dist/Dropdown.js.map +1 -1
  112. package/dist/Dropdown.vue.d.ts +28 -28
  113. package/dist/EmptyState.js +32 -33
  114. package/dist/EmptyState.js.map +1 -1
  115. package/dist/EmptyState.vue.d.ts +36 -36
  116. package/dist/Expand.js +2 -3
  117. package/dist/Expand.js.map +1 -1
  118. package/dist/Expand.vue.d.ts +14 -14
  119. package/dist/{Expand.vue_vue_type_script_setup_true_lang-0f236267.js → Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js} +1 -1
  120. package/dist/{Expand.vue_vue_type_script_setup_true_lang-0f236267.js.map → Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js.map} +1 -1
  121. package/dist/Field.js +2 -7
  122. package/dist/Field.js.map +1 -1
  123. package/dist/Field.vue.d.ts +30 -30
  124. package/dist/{Field.vue_vue_type_script_setup_true_lang-fded4f75.js → Field.vue_vue_type_script_setup_true_lang-DjxUvSRF.js} +2 -2
  125. package/dist/{Field.vue_vue_type_script_setup_true_lang-fded4f75.js.map → Field.vue_vue_type_script_setup_true_lang-DjxUvSRF.js.map} +1 -1
  126. package/dist/FileUpload.js +58 -57
  127. package/dist/FileUpload.js.map +1 -1
  128. package/dist/FileUpload.vue.d.ts +28 -28
  129. package/dist/FilterChip.js +12 -17
  130. package/dist/FilterChip.js.map +1 -1
  131. package/dist/FilterChip.vue.d.ts +19 -19
  132. package/dist/FilterDrawerItem.js +24 -30
  133. package/dist/FilterDrawerItem.js.map +1 -1
  134. package/dist/FilterDrawerItem.vue.d.ts +2 -2
  135. package/dist/FilterDropdown.js +41 -57
  136. package/dist/FilterDropdown.js.map +1 -1
  137. package/dist/FilterDropdown.vue.d.ts +9 -9
  138. package/dist/FilterSelect.js +36 -45
  139. package/dist/FilterSelect.js.map +1 -1
  140. package/dist/FilterSelect.vue.d.ts +5 -5
  141. package/dist/Filters.js +60 -96
  142. package/dist/Filters.js.map +1 -1
  143. package/dist/Filters.vue.d.ts +2005 -2294
  144. package/dist/HttpError.js +16 -23
  145. package/dist/HttpError.js.map +1 -1
  146. package/dist/HttpError.vue.d.ts +18 -18
  147. package/dist/Icon.js +28 -22
  148. package/dist/Icon.js.map +1 -1
  149. package/dist/Icon.vue.d.ts +13 -13
  150. package/dist/IconLabel.js +9 -12
  151. package/dist/IconLabel.js.map +1 -1
  152. package/dist/IconLabel.vue.d.ts +17 -17
  153. package/dist/Illustration.js +8 -11
  154. package/dist/Illustration.js.map +1 -1
  155. package/dist/Illustration.vue.d.ts +21 -21
  156. package/dist/{Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js → Illustration.vue_vue_type_script_setup_true_lang-C3qG3Ty6.js} +2 -2
  157. package/dist/{Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js.map → Illustration.vue_vue_type_script_setup_true_lang-C3qG3Ty6.js.map} +1 -1
  158. package/dist/Image.js.map +1 -1
  159. package/dist/Image.vue.d.ts +18 -18
  160. package/dist/InlineEdit.js +19 -30
  161. package/dist/InlineEdit.js.map +1 -1
  162. package/dist/InlineEdit.vue.d.ts +26 -26
  163. package/dist/Input.js +58 -64
  164. package/dist/Input.js.map +1 -1
  165. package/dist/Input.vue.d.ts +44 -36
  166. package/dist/InputOptions.js +66 -93
  167. package/dist/InputOptions.js.map +1 -1
  168. package/dist/InputOptions.vue.d.ts +66 -58
  169. package/dist/IntegrationIcon.js +2 -2
  170. package/dist/IntegrationIcon.js.map +1 -1
  171. package/dist/IntegrationIcon.vue.d.ts +12 -12
  172. package/dist/Label.js +2 -5
  173. package/dist/Label.js.map +1 -1
  174. package/dist/Label.vue.d.ts +17 -17
  175. package/dist/{Label.vue_vue_type_script_setup_true_lang-b6ba2f02.js → Label.vue_vue_type_script_setup_true_lang-C4JKdqvC.js} +1 -1
  176. package/dist/{Label.vue_vue_type_script_setup_true_lang-b6ba2f02.js.map → Label.vue_vue_type_script_setup_true_lang-C4JKdqvC.js.map} +1 -1
  177. package/dist/LicenseChip.js +10 -16
  178. package/dist/LicenseChip.js.map +1 -1
  179. package/dist/LicenseChip.vue.d.ts +3 -3
  180. package/dist/ListItem.js +5 -8
  181. package/dist/ListItem.js.map +1 -1
  182. package/dist/ListItem.vue.d.ts +275 -225
  183. package/dist/ListItemCell.js +1 -1
  184. package/dist/ListItemCell.js.map +1 -1
  185. package/dist/ListItemCell.vue.d.ts +13 -2
  186. package/dist/ListView.js +57 -101
  187. package/dist/ListView.js.map +1 -1
  188. package/dist/ListView.vue.d.ts +5185 -5430
  189. package/dist/Loading.js +12 -10
  190. package/dist/Loading.js.map +1 -1
  191. package/dist/Loading.vue.d.ts +1 -1
  192. package/dist/Logo.js +2 -4
  193. package/dist/Logo.js.map +1 -1
  194. package/dist/Logo.vue.d.ts +17 -17
  195. package/dist/{Logo.vue_vue_type_script_setup_true_lang-2a2597cb.js → Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js} +1 -1
  196. package/dist/{Logo.vue_vue_type_script_setup_true_lang-2a2597cb.js.map → Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js.map} +1 -1
  197. package/dist/Menu.js +1 -1
  198. package/dist/Menu.vue.d.ts +1 -1
  199. package/dist/MenuItem.js +1 -1
  200. package/dist/MenuItem.vue.d.ts +1 -1
  201. package/dist/{MenusPlugin-9288029a.js → MenusPlugin-Bk6UW6o9.js} +1 -1
  202. package/dist/{MenusPlugin-9288029a.js.map → MenusPlugin-Bk6UW6o9.js.map} +1 -1
  203. package/dist/Metric.vue.d.ts +10 -10
  204. package/dist/Modal.js +27 -32
  205. package/dist/Modal.js.map +1 -1
  206. package/dist/Modal.vue.d.ts +42 -42
  207. package/dist/Modals.js +14 -16
  208. package/dist/Modals.js.map +1 -1
  209. package/dist/Modals.vue.d.ts +1 -1
  210. package/dist/ModalsPlugin.js +9 -12
  211. package/dist/ModalsPlugin.js.map +1 -1
  212. package/dist/Module.js +3 -3
  213. package/dist/{Module.keys-2cc7d830.js → Module.keys-CEsrW2f0.js} +1 -1
  214. package/dist/{Module.keys-2cc7d830.js.map → Module.keys-CEsrW2f0.js.map} +1 -1
  215. package/dist/{Module.types-3f78f2a0.js → Module.types-B1FfGGac.js} +1 -1
  216. package/dist/{Module.types-3f78f2a0.js.map → Module.types-B1FfGGac.js.map} +1 -1
  217. package/dist/Module.vue.d.ts +3 -3
  218. package/dist/ModuleContent.js +2 -2
  219. package/dist/ModuleContent.vue.d.ts +1 -1
  220. package/dist/ModuleFooter.js +2 -2
  221. package/dist/ModuleFooter.vue.d.ts +1 -1
  222. package/dist/ModuleHeader.js +3 -3
  223. package/dist/ModuleHeader.vue.d.ts +15 -15
  224. package/dist/ObfuscateText.js +8 -13
  225. package/dist/ObfuscateText.js.map +1 -1
  226. package/dist/ObfuscateText.vue.d.ts +18 -18
  227. package/dist/PageContent.js +1 -1
  228. package/dist/PageContent.vue.d.ts +1 -1
  229. package/dist/PageHeader.js +26 -23
  230. package/dist/PageHeader.js.map +1 -1
  231. package/dist/PageHeader.vue.d.ts +7 -4
  232. package/dist/PageNavigation.js +41 -64
  233. package/dist/PageNavigation.js.map +1 -1
  234. package/dist/PageNavigation.vue.d.ts +10 -10
  235. package/dist/Paginate.js +36 -34
  236. package/dist/Paginate.js.map +1 -1
  237. package/dist/Paginate.vue.d.ts +11 -11
  238. package/dist/PlaidLink.js +3 -5
  239. package/dist/PlaidLink.js.map +1 -1
  240. package/dist/PlaidLink.vue.d.ts +29 -29
  241. package/dist/QuickAction.js +12 -15
  242. package/dist/QuickAction.js.map +1 -1
  243. package/dist/QuickAction.vue.d.ts +1 -1
  244. package/dist/Radio.js +1 -1
  245. package/dist/Radio.js.map +1 -1
  246. package/dist/Radio.vue.d.ts +83 -12
  247. package/dist/RadioGroup.js +41 -45
  248. package/dist/RadioGroup.js.map +1 -1
  249. package/dist/{RadioGroup.keys-974818d6.js → RadioGroup.keys-CqfiKkNz.js} +1 -1
  250. package/dist/{RadioGroup.keys-974818d6.js.map → RadioGroup.keys-CqfiKkNz.js.map} +1 -1
  251. package/dist/RadioGroup.vue.d.ts +30 -30
  252. package/dist/RadioNew.js +2 -2
  253. package/dist/RadioNew.js.map +1 -1
  254. package/dist/RadioNew.vue.d.ts +26 -26
  255. package/dist/RangeInput.js +10 -14
  256. package/dist/RangeInput.js.map +1 -1
  257. package/dist/RangeInput.vue.d.ts +1 -1
  258. package/dist/SearchBar.js +31 -41
  259. package/dist/SearchBar.js.map +1 -1
  260. package/dist/SearchBar.vue.d.ts +22 -22
  261. package/dist/Select.js +66 -78
  262. package/dist/Select.js.map +1 -1
  263. package/dist/Select.vue.d.ts +123 -123
  264. package/dist/SelectStatus.js +47 -69
  265. package/dist/SelectStatus.js.map +1 -1
  266. package/dist/SelectStatus.vue.d.ts +33 -26
  267. package/dist/Skeleton.js +1 -1
  268. package/dist/Skeleton.js.map +1 -1
  269. package/dist/Skeleton.vue.d.ts +9 -9
  270. package/dist/Step.js +10 -14
  271. package/dist/Step.js.map +1 -1
  272. package/dist/Step.vue.d.ts +21 -21
  273. package/dist/Stepper.js +37 -40
  274. package/dist/Stepper.js.map +1 -1
  275. package/dist/Stepper.vue.d.ts +34 -29
  276. package/dist/Switch.js +1 -1
  277. package/dist/Switch.vue.d.ts +23 -23
  278. package/dist/Tab.js +21 -36
  279. package/dist/Tab.js.map +1 -1
  280. package/dist/Table.js +38 -55
  281. package/dist/Table.js.map +1 -1
  282. package/dist/Table.keys-LHQf6FEH.js +7 -0
  283. package/dist/{Table.keys-83e4f09b.js.map → Table.keys-LHQf6FEH.js.map} +1 -1
  284. package/dist/Table.vue.d.ts +36 -36
  285. package/dist/TableCell.js +26 -26
  286. package/dist/TableCell.js.map +1 -1
  287. package/dist/TableCell.vue.d.ts +6 -6
  288. package/dist/TableHeaderCell.js +6 -13
  289. package/dist/TableHeaderCell.js.map +1 -1
  290. package/dist/TableHeaderCell.vue.d.ts +3 -3
  291. package/dist/TableHeaderRow.js +22 -32
  292. package/dist/TableHeaderRow.js.map +1 -1
  293. package/dist/TableHeaderRow.vue.d.ts +8 -8
  294. package/dist/TableRow.js +59 -59
  295. package/dist/TableRow.js.map +1 -1
  296. package/dist/TableRow.vue.d.ts +26 -26
  297. package/dist/Tabs.js +10 -24
  298. package/dist/Tabs.js.map +1 -1
  299. package/dist/Tabs.vue.d.ts +5 -5
  300. package/dist/{Tabs.vue_used_vue_type_style_index_0_lang.module-d7530989.js → Tabs.vue_vue_type_script_setup_true_lang-l41hWkV4.js} +31 -34
  301. package/dist/Tabs.vue_vue_type_script_setup_true_lang-l41hWkV4.js.map +1 -0
  302. package/dist/TextEditor.js +1269 -1364
  303. package/dist/TextEditor.js.map +1 -1
  304. package/dist/TextEditor.vue.d.ts +46 -46
  305. package/dist/Textarea.js +30 -31
  306. package/dist/Textarea.js.map +1 -1
  307. package/dist/Textarea.vue.d.ts +34 -26
  308. package/dist/Timeline.js +9 -10
  309. package/dist/Timeline.js.map +1 -1
  310. package/dist/Timeline.vue.d.ts +6 -6
  311. package/dist/TimelineItem.js +1 -1
  312. package/dist/TimelineItem.vue.d.ts +1 -1
  313. package/dist/Toast.js +5 -9
  314. package/dist/Toast.js.map +1 -1
  315. package/dist/Toast.vue.d.ts +3 -3
  316. package/dist/Toasts.js +15 -25
  317. package/dist/Toasts.js.map +1 -1
  318. package/dist/Toasts.vue.d.ts +1 -1
  319. package/dist/ToastsPlugin.js +11 -23
  320. package/dist/ToastsPlugin.js.map +1 -1
  321. package/dist/Tooltip.js +1 -1
  322. package/dist/Tooltip.js.map +1 -1
  323. package/dist/Tooltip.vue.d.ts +15 -15
  324. package/dist/{_commonjsHelpers-10dfc225.js → _commonjsHelpers-DaMA6jEr.js} +1 -1
  325. package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
  326. package/dist/{_plugin-vue_export-helper-dad06003.js → _plugin-vue_export-helper-CHgC5LLL.js} +1 -1
  327. package/dist/_plugin-vue_export-helper-CHgC5LLL.js.map +1 -0
  328. package/dist/{colors-8d9b9429.js → colors-DDDVvqfQ.js} +1 -1
  329. package/dist/{colors-8d9b9429.js.map → colors-DDDVvqfQ.js.map} +1 -1
  330. package/dist/components.css +2 -2
  331. package/dist/directives/observe.js.map +1 -1
  332. package/dist/directives/sticky.js.map +1 -1
  333. package/dist/directives/tooltip.js +21 -27
  334. package/dist/directives/tooltip.js.map +1 -1
  335. package/dist/directives/viewable.js +1 -1
  336. package/dist/directives/viewable.js.map +1 -1
  337. package/dist/{floating-ui.vue-8d7f7932.js → floating-ui.vue-BmfQDqE-.js} +2 -3
  338. package/dist/{floating-ui.vue-8d7f7932.js.map → floating-ui.vue-BmfQDqE-.js.map} +1 -1
  339. package/dist/{formatDateTime-a5e70901.js → formatDateTime-C8CYECpd.js} +8 -12
  340. package/dist/{formatDateTime-a5e70901.js.map → formatDateTime-C8CYECpd.js.map} +1 -1
  341. package/dist/{index-9e1095ef.js → index-D6bxWkZ1.js} +2 -3
  342. package/dist/{index-9e1095ef.js.map → index-D6bxWkZ1.js.map} +1 -1
  343. package/dist/index.d.ts +1 -1
  344. package/dist/index.js +90 -112
  345. package/dist/index.js.map +1 -1
  346. package/dist/{isDefined-2ce6cde4.js → isDefined-DzVx0B6k.js} +1 -1
  347. package/dist/{isDefined-2ce6cde4.js.map → isDefined-DzVx0B6k.js.map} +1 -1
  348. package/dist/{isValid-4b2b7a54.js → isValid-DN-HkCoi.js} +1 -1
  349. package/dist/{isValid-4b2b7a54.js.map → isValid-DN-HkCoi.js.map} +1 -1
  350. package/dist/{keys-241d03b7.js → keys-BEdEsanp.js} +1 -1
  351. package/dist/{keys-241d03b7.js.map → keys-BEdEsanp.js.map} +1 -1
  352. package/dist/{keys-7ecef029.js → keys-C8Zfr_By.js} +1 -1
  353. package/dist/{keys-7ecef029.js.map → keys-C8Zfr_By.js.map} +1 -1
  354. package/dist/{misc-76697f61.js → misc-CHQs-G03.js} +1 -1
  355. package/dist/{misc-76697f61.js.map → misc-CHQs-G03.js.map} +1 -1
  356. package/dist/{parseISO-ed4094c1.js → parseISO-wlfIB_QJ.js} +12 -18
  357. package/dist/{parseISO-ed4094c1.js.map → parseISO-wlfIB_QJ.js.map} +1 -1
  358. package/dist/{searchFuzzy-9b74ec4e.js → searchFuzzy-DKooyZM8.js} +110 -149
  359. package/dist/{searchFuzzy-9b74ec4e.js.map → searchFuzzy-DKooyZM8.js.map} +1 -1
  360. package/dist/{statusLevels-a8b041f4.js → statusLevels-D8EgtE_L.js} +1 -1
  361. package/dist/{statusLevels-a8b041f4.js.map → statusLevels-D8EgtE_L.js.map} +1 -1
  362. package/dist/storage.js +8 -15
  363. package/dist/storage.js.map +1 -1
  364. package/dist/tailwind-base.js.map +1 -1
  365. package/dist/{toTimeZone-a2ed6470.js → toTimeZone-CVE1ZmsS.js} +1 -1
  366. package/dist/{toTimeZone-a2ed6470.js.map → toTimeZone-CVE1ZmsS.js.map} +1 -1
  367. package/dist/useDialog.js +7 -7
  368. package/dist/useGoogleMaps.js +18 -28
  369. package/dist/useGoogleMaps.js.map +1 -1
  370. package/dist/useModals.js +1 -2
  371. package/dist/useModals.js.map +1 -1
  372. package/dist/useScriptTag.js.map +1 -1
  373. package/dist/useSearch.js +14 -19
  374. package/dist/useSearch.js.map +1 -1
  375. package/dist/useStepper.js.map +1 -1
  376. package/dist/useValidation.js +1 -1
  377. package/dist/useValidation.js.map +1 -1
  378. package/dist/utils/calculateElementOverflow.js +9 -13
  379. package/dist/utils/calculateElementOverflow.js.map +1 -1
  380. package/dist/utils/colorScheme.js.map +1 -1
  381. package/dist/utils/createQueryString.js +4 -5
  382. package/dist/utils/createQueryString.js.map +1 -1
  383. package/dist/utils/createValidDate.js +2 -2
  384. package/dist/utils/formatDateTime.js +4 -5
  385. package/dist/utils/formatDateTime.js.map +1 -1
  386. package/dist/utils/getContrastingTextColor.js +1 -1
  387. package/dist/utils/getContrastingTextColor.js.map +1 -1
  388. package/dist/utils/helpers.js.map +1 -1
  389. package/dist/utils/i18n.js +25 -26
  390. package/dist/utils/i18n.js.map +1 -1
  391. package/dist/utils/normalizeDate.js +1 -1
  392. package/dist/utils/searchFuzzy.js +3 -10
  393. package/dist/utils/searchFuzzy.js.map +1 -1
  394. package/dist/utils/storage.js +6 -11
  395. package/dist/utils/storage.js.map +1 -1
  396. package/dist/utils/toTimeZone.js +2 -3
  397. package/dist/utils/toTimeZone.js.map +1 -1
  398. package/package.json +13 -14
  399. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-4dabc2a9.js +0 -17
  400. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-4dabc2a9.js.map +0 -1
  401. package/dist/Carousel.types.d.ts +0 -33
  402. package/dist/Carousel.types.js +0 -2
  403. package/dist/Carousel.types.js.map +0 -1
  404. package/dist/Checkbox.vue_used_vue_type_style_index_0_lang.module-fa8d9c06.js +0 -9
  405. package/dist/Checkbox.vue_used_vue_type_style_index_0_lang.module-fa8d9c06.js.map +0 -1
  406. package/dist/DataView.vue_used_vue_type_style_index_0_lang.module-5c180dba.js.map +0 -1
  407. package/dist/EmptyState.vue_used_vue_type_style_index_0_lang.module-f5d89366.js +0 -8
  408. package/dist/EmptyState.vue_used_vue_type_style_index_0_lang.module-f5d89366.js.map +0 -1
  409. package/dist/Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js +0 -11
  410. package/dist/Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js.map +0 -1
  411. package/dist/Loading.vue_used_vue_type_style_index_0_lang.module-ef5a3bc6.js +0 -8
  412. package/dist/Loading.vue_used_vue_type_style_index_0_lang.module-ef5a3bc6.js.map +0 -1
  413. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-18343da7.js +0 -11
  414. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-18343da7.js.map +0 -1
  415. package/dist/Table.keys-83e4f09b.js +0 -27
  416. package/dist/Tabs.vue_used_vue_type_style_index_0_lang.module-d7530989.js.map +0 -1
  417. package/dist/_commonjsHelpers-10dfc225.js.map +0 -1
  418. package/dist/_plugin-vue_export-helper-dad06003.js.map +0 -1
package/dist/Dropdown.js CHANGED
@@ -1,17 +1,10 @@
1
- import { defineComponent as I, ref as u, useCssModule as q, watch as C, onMounted as K, onBeforeUnmount as R, computed as U, withDirectives as _, openBlock as p, createElementBlock as k, renderSlot as x, createElementVNode as E, normalizeClass as b, createTextVNode as V, toDisplayString as W, createVNode as S, createBlock as Y, Transition as F, withCtx as j, unref as M, normalizeStyle as G, vShow as H, nextTick as A } from "vue";
1
+ import { defineComponent as I, ref as r, useCssModule as q, watch as C, onMounted as K, onBeforeUnmount as R, computed as U, withDirectives as _, openBlock as m, createElementBlock as k, renderSlot as x, createElementVNode as E, normalizeClass as b, createTextVNode as V, toDisplayString as W, createVNode as S, createBlock as Y, Transition as F, withCtx as j, unref as M, normalizeStyle as G, vShow as H, nextTick as A } from "vue";
2
2
  import { KEY_CODES as d } from "./constants.js";
3
3
  import J from "./directives/clickoutside.js";
4
4
  import Q from "./utils/calculateElementOverflow.js";
5
5
  import { getMountPoint as X } from "./utils/helpers.js";
6
6
  import B from "./Icon.js";
7
- import { _ as Z } from "./_plugin-vue_export-helper-dad06003.js";
8
- import "lodash-es/camelCase";
9
- import "lodash-es/get";
10
- import "lodash-es/isFinite";
11
- import "lodash-es/isPlainObject";
12
- import "lodash-es/uniqueId";
13
- import "./index-9e1095ef.js";
14
- import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
7
+ import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
8
  const ee = ["aria-expanded"], te = {
16
9
  key: 0,
17
10
  class: "tw-flex tw-items-center tw-font-medium tw-text-blue-500 hover:tw-text-blue-700"
@@ -29,9 +22,9 @@ const ee = ["aria-expanded"], te = {
29
22
  },
30
23
  emits: ["toggle", "dismiss"],
31
24
  setup(D, { expose: $, emit: L }) {
32
- const a = D, v = L, t = u(null), w = u(null), f = [], s = u(f), i = u(-1), l = u(!1), g = u({}), T = q();
25
+ const a = D, p = L, t = r(null), w = r(null), f = [], s = r(f), i = r(-1), l = r(!1), g = r({}), T = q();
33
26
  C(l, (e) => {
34
- e || (i.value = -1), v("toggle", e);
27
+ e || (i.value = -1), p("toggle", e);
35
28
  }), C(i, (e, o) => {
36
29
  e in s.value && s.value[e].classList.add("tw-bg-ice-200"), o in s.value && s.value[o].classList.remove("tw-bg-ice-200");
37
30
  }), K(() => {
@@ -40,25 +33,25 @@ const ee = ["aria-expanded"], te = {
40
33
  const c = X();
41
34
  t.value && c.appendChild(t.value);
42
35
  }
43
- (e = t.value) != null && e.querySelector(".stash-menu") ? s.value = ((o = t.value) == null ? void 0 : o.querySelectorAll(".stash-menu-item")) ?? f : s.value = ((n = t.value) == null ? void 0 : n.querySelectorAll(".dropdown__item")) ?? f, window.addEventListener("resize", () => r());
36
+ (e = t.value) != null && e.querySelector(".stash-menu") ? s.value = ((o = t.value) == null ? void 0 : o.querySelectorAll(".stash-menu-item")) ?? f : s.value = ((n = t.value) == null ? void 0 : n.querySelectorAll(".dropdown__item")) ?? f, window.addEventListener("resize", () => u());
44
37
  }), R(() => {
45
38
  var e, o;
46
- window.removeEventListener("resize", () => r()), (o = (e = t == null ? void 0 : t.value) == null ? void 0 : e.parentNode) == null || o.removeChild(t.value);
39
+ window.removeEventListener("resize", () => u()), (o = (e = t == null ? void 0 : t.value) == null ? void 0 : e.parentNode) == null || o.removeChild(t.value);
47
40
  });
48
- function r(e) {
41
+ function u(e) {
49
42
  var n;
50
43
  if (a.closeManually && ((n = t.value) != null && n.contains(e == null ? void 0 : e.target) || t.value === (e == null ? void 0 : e.target)))
51
44
  return;
52
45
  const o = l.value;
53
- l.value = !1, o && v("dismiss");
46
+ l.value = !1, o && p("dismiss");
54
47
  }
55
- async function m() {
48
+ async function v() {
56
49
  var e;
57
50
  l.value ? l.value = !1 : (l.value = !0, await z(), (e = t.value) == null || e.focus());
58
51
  }
59
52
  function N(e) {
60
53
  if (e.keyCode === d.ESCAPE)
61
- r();
54
+ u();
62
55
  else if (e.keyCode === d.DOWN && i.value < s.value.length - 1)
63
56
  l.value && i.value++;
64
57
  else if (e.keyCode === d.UP && i.value > -1)
@@ -94,9 +87,9 @@ const ee = ["aria-expanded"], te = {
94
87
  }
95
88
  return $({
96
89
  isActive: U(() => l.value),
97
- toggle: m,
98
- dismiss: r
99
- }), (e, o) => _((p(), k("div", {
90
+ toggle: v,
91
+ dismiss: u
92
+ }), (e, o) => _((m(), k("div", {
100
93
  ref_key: "dropdownRef",
101
94
  ref: w,
102
95
  class: "tw-relative tw-inline-block",
@@ -105,18 +98,18 @@ const ee = ["aria-expanded"], te = {
105
98
  }, [
106
99
  x(e.$slots, "toggle", {
107
100
  isActive: l.value,
108
- toggle: m
101
+ toggle: v
109
102
  }, () => [
110
103
  E("button", {
111
104
  "data-test": "button|toggle",
112
105
  "aria-expanded": l.value,
113
106
  class: b([e.label ? "tw-min-w-auto tw-outline-none" : "tw-rounded tw-p-3"]),
114
- onClick: m
107
+ onClick: v
115
108
  }, [
116
- e.label ? (p(), k("span", te, [
109
+ e.label ? (m(), k("span", te, [
117
110
  V(W(e.label) + " ", 1),
118
111
  S(B, { name: "caret-down" })
119
- ])) : (p(), Y(B, {
112
+ ])) : (m(), Y(B, {
120
113
  key: 1,
121
114
  name: "ellipsis"
122
115
  }))
@@ -143,7 +136,7 @@ const ee = ["aria-expanded"], te = {
143
136
  style: G(g.value)
144
137
  }, [
145
138
  x(e.$slots, "default", {
146
- dismiss: r,
139
+ dismiss: u,
147
140
  isActive: l.value
148
141
  })
149
142
  ], 6), [
@@ -153,15 +146,15 @@ const ee = ["aria-expanded"], te = {
153
146
  _: 3
154
147
  })
155
148
  ], 32)), [
156
- [M(J), r]
149
+ [M(J), u]
157
150
  ]);
158
151
  }
159
152
  }), oe = "_content_zbxyu_2", ae = {
160
153
  content: oe
161
154
  }, ne = {
162
155
  $style: ae
163
- }, Ce = /* @__PURE__ */ Z(le, [["__cssModules", ne]]);
156
+ }, ve = /* @__PURE__ */ Z(le, [["__cssModules", ne]]);
164
157
  export {
165
- Ce as default
158
+ ve as default
166
159
  };
167
160
  //# sourceMappingURL=Dropdown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.js","sources":["../src/components/Dropdown/Dropdown.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed, nextTick, onBeforeUnmount, onMounted, ref, useCssModule, watch } from 'vue';\n\n import { KEY_CODES } from '../../constants';\n import vClickoutside from '../../directives/clickoutside/clickoutside';\n import calculateElementOverflow from '../../utils/calculateElementOverflow';\n import { getMountPoint } from '../../utils/helpers';\n import Icon from '../Icon/Icon.vue';\n\n export type DropdownOffset = {\n x?: number;\n y?: number;\n };\n\n export interface DropdownProps {\n /**\n * Used to position the dropdown relative to target\n * Options: left, right\n */\n align?: 'left' | 'right';\n /**\n * When passed, text with caret is displayed instead of default kebab menu.\n */\n label?: string;\n /**\n * If true, dropdown will remain open when clicking on its content. Otherwise, it'll close automatically on click.\n */\n closeManually?: boolean;\n /**\n * Used to horizontally and vertically offset the dropdown in pixels\n * Keep in mind, `x` value is relative to `align` value.\n */\n offset?: DropdownOffset;\n /**\n * If `reattach` is true, the contents will be mounted in the mount point container,\n * so as to circumvent clipping issues from a parent's overflow property.\n */\n reattach?: boolean;\n /**\n * Custom class to apply to the default dropdown content element\n */\n contentClass?: string | string[];\n /**\n * Removes content container's max width\n */\n fluidContent?: boolean;\n }\n\n type DropdownStyles = {\n left?: string;\n right?: string;\n top?: string;\n };\n\n defineOptions({\n name: 'll-dropdown',\n });\n\n const props = withDefaults(defineProps<DropdownProps>(), {\n align: 'right',\n label: '',\n closeManually: false,\n offset: () => ({}),\n reattach: true,\n contentClass: '',\n fluidContent: false,\n });\n\n const emit = defineEmits<{\n toggle: [isActive: boolean];\n dismiss: [];\n }>();\n\n const contentRef = ref<HTMLElement | null>(null);\n const dropdownRef = ref<HTMLDivElement | null>(null);\n\n const DEFAULT_ITEMS_LIST = [] as unknown as NodeListOf<Element>;\n\n const items = ref<NodeListOf<Element>>(DEFAULT_ITEMS_LIST);\n const itemIndex = ref(-1);\n const isActive = ref(false);\n\n const styles = ref<DropdownStyles>({});\n const classes = useCssModule();\n\n watch(isActive, (val) => {\n if (!val) {\n itemIndex.value = -1;\n }\n\n emit('toggle', val);\n });\n\n watch(itemIndex, (next, prev) => {\n next in items.value && items.value[next].classList.add('tw-bg-ice-200');\n prev in items.value && items.value[prev].classList.remove('tw-bg-ice-200');\n });\n\n onMounted(() => {\n if (props.reattach) {\n const target = getMountPoint();\n\n contentRef.value && target.appendChild(contentRef.value);\n }\n\n // if stash-menu exists, use it's items\n if (contentRef.value?.querySelector('.stash-menu')) {\n items.value = contentRef.value?.querySelectorAll('.stash-menu-item') ?? DEFAULT_ITEMS_LIST;\n } else {\n items.value = contentRef.value?.querySelectorAll('.dropdown__item') ?? DEFAULT_ITEMS_LIST;\n }\n\n // avoid calling dismiss with ResizeEvent because it's target is the Window element and it's not a valid Node element to be passed to dismiss\n window.addEventListener('resize', () => dismiss());\n });\n\n onBeforeUnmount(() => {\n window.removeEventListener('resize', () => dismiss());\n contentRef?.value?.parentNode?.removeChild(contentRef.value);\n });\n\n /**\n * Dismisses the Dropdown.\n */\n function dismiss(event?: Event) {\n if (\n props.closeManually &&\n (contentRef.value?.contains(event?.target as HTMLElement) || contentRef.value === event?.target)\n ) {\n return;\n }\n\n const wasOpen = isActive.value;\n\n isActive.value = false;\n\n if (wasOpen) {\n emit('dismiss');\n }\n }\n\n /**\n * Opens or closes the Dropdown. If opening, positions and focuses its content.\n */\n async function toggle() {\n if (isActive.value) {\n isActive.value = false;\n } else {\n isActive.value = true;\n await calculateOffset();\n contentRef.value?.focus();\n }\n }\n\n /**\n * Handles all user keyboard input on the Dropdown.\n * @param {KeyboardEvent} e The native keydown event.\n */\n function onKeyDown(e: KeyboardEvent) {\n if (e.keyCode === KEY_CODES.ESCAPE) {\n dismiss();\n } else if (e.keyCode === KEY_CODES.DOWN && itemIndex.value < items.value.length - 1) {\n isActive.value && itemIndex.value++;\n } else if (e.keyCode === KEY_CODES.UP && itemIndex.value > -1) {\n isActive.value && itemIndex.value--;\n } else if (e.keyCode === KEY_CODES.ENTER && itemIndex.value !== -1) {\n isActive.value && items[itemIndex.value].click();\n } else {\n return;\n }\n\n e.preventDefault(); // if keyDown did something / we didn't return\n }\n\n /**\n * Reset any page overflow offset\n */\n function resetOffset() {\n contentRef.value?.style.setProperty('--offset', '0');\n }\n\n /**\n * Calculate the position for the Dropdown content element,\n * relative to the viewport.\n * Repositions the dropdown content element (& arrow)\n * if it overflows the page (including gutter).\n */\n async function calculateOffset() {\n await nextTick();\n\n const toggleBCR = dropdownRef.value?.getBoundingClientRect() || ({} as DOMRect);\n const top = toggleBCR.top + toggleBCR.height;\n const offset = {\n x: 0,\n y: 0,\n ...props.offset,\n };\n\n if (props.reattach) {\n styles.value = {\n left: props.align === 'left' ? `${Math.round(toggleBCR.left) + offset.x}px` : undefined,\n right:\n props.align === 'right'\n ? `${document.documentElement.clientWidth - Math.round(toggleBCR.right) + offset.x}px`\n : undefined,\n top: `${window.scrollY + top + offset.y}px`,\n };\n await nextTick(); // wait for style updates to sync in the DOM\n }\n\n const overflow = calculateElementOverflow(contentRef?.value);\n\n if (overflow) {\n const direction = props.align === 'left' ? '-' : '';\n contentRef.value?.style.setProperty('--offset', `${direction}${overflow.value}`);\n }\n }\n\n defineExpose({\n isActive: computed(() => isActive.value),\n toggle,\n dismiss,\n });\n</script>\n\n<template>\n <div\n ref=\"dropdownRef\"\n v-clickoutside=\"dismiss\"\n class=\"tw-relative tw-inline-block\"\n data-test=\"ll-dropdown\"\n @keydown=\"onKeyDown\"\n >\n <!-- @slot Toggle component slot, receives `toggle` method to trigger Dropdown display -->\n <slot name=\"toggle\" :is-active=\"isActive\" :toggle=\"toggle\">\n <button\n data-test=\"button|toggle\"\n :aria-expanded=\"isActive\"\n :class=\"[label ? 'tw-min-w-auto tw-outline-none' : 'tw-rounded tw-p-3']\"\n @click=\"toggle\"\n >\n <span v-if=\"label\" class=\"tw-flex tw-items-center tw-font-medium tw-text-blue-500 hover:tw-text-blue-700\">\n {{ label }}\n <Icon name=\"caret-down\" />\n </span>\n <Icon v-else name=\"ellipsis\" />\n </button>\n </slot>\n\n <transition name=\"fade\" @after-leave=\"resetOffset\">\n <div\n v-show=\"isActive\"\n ref=\"contentRef\"\n data-test=\"ll-dropdown-content\"\n :class=\"[\n classes.content,\n contentClass,\n {\n 'tw-left-0 after:tw-left-6': props.align === 'left',\n 'tw-right-0': props.align === 'right',\n 'tw-max-w-[360px]': !props.fluidContent,\n },\n ]\"\n :style=\"styles\"\n >\n <!-- @slot Dropdown content slot. Receives `dismiss` method, to trigger manual close. You must call dismiss with parentheses. Receives `is-active` prop. -->\n <slot :dismiss=\"dismiss\" :is-active=\"isActive\"></slot>\n </div>\n </transition>\n </div>\n</template>\n\n<style module>\n .content {\n --offset: 0;\n\n @apply tw-shadow-2xl\n tw-bg-white\n tw-border\n tw-border-solid\n tw-border-blue-500\n tw-rounded\n tw-absolute\n tw-z-[301]\n tw-min-w-[200px];\n\n transform: translateX(calc(var(--offset) * 1px));\n }\n\n /**\n * TODO: these global styles should be componentized in https://leaflink.atlassian.net/browse/STASH-566\n */\n :global(.dropdown__list) {\n @apply tw-bg-white tw-list-none tw-m-1.5 tw-p-0;\n }\n\n :global(.dropdown__item) {\n @apply tw-block tw-mx-0 tw-mt-0 tw-mb-1.5 tw-w-full first:tw-mt-0 last:tw-mb-0;\n }\n\n :global(.dropdown__item) button {\n @apply tw-border-none tw-text-left tw-p-1.5;\n }\n\n :global(.dropdown__item) :where(a, button) {\n @apply tw-rounded\n tw-text-ice-700\n tw-block\n tw-py-[10px]\n tw-px-1.5\n tw-w-full\n disabled:tw-text-ice-500\n disabled:tw-cursor-default\n hover:tw-bg-ice-200\n hover:tw-text-ice-700\n hover:tw-no-underline\n tw-transition-all\n tw-duration-fast\n tw-ease-swing;\n }\n</style>\n"],"names":["props","__props","emit","__emit","contentRef","ref","dropdownRef","DEFAULT_ITEMS_LIST","items","itemIndex","isActive","styles","classes","useCssModule","watch","val","next","prev","onMounted","target","getMountPoint","_a","_b","_c","dismiss","onBeforeUnmount","event","wasOpen","toggle","calculateOffset","onKeyDown","KEY_CODES","resetOffset","nextTick","toggleBCR","top","offset","overflow","calculateElementOverflow","direction","__expose","computed"],"mappings":"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"}
1
+ {"version":3,"file":"Dropdown.js","sources":["../src/components/Dropdown/Dropdown.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed, nextTick, onBeforeUnmount, onMounted, ref, useCssModule, watch } from 'vue';\n\n import { KEY_CODES } from '../../constants';\n import vClickoutside from '../../directives/clickoutside/clickoutside';\n import calculateElementOverflow from '../../utils/calculateElementOverflow';\n import { getMountPoint } from '../../utils/helpers';\n import Icon from '../Icon/Icon.vue';\n\n export type DropdownOffset = {\n x?: number;\n y?: number;\n };\n\n export interface DropdownProps {\n /**\n * Used to position the dropdown relative to target\n * Options: left, right\n */\n align?: 'left' | 'right';\n /**\n * When passed, text with caret is displayed instead of default kebab menu.\n */\n label?: string;\n /**\n * If true, dropdown will remain open when clicking on its content. Otherwise, it'll close automatically on click.\n */\n closeManually?: boolean;\n /**\n * Used to horizontally and vertically offset the dropdown in pixels\n * Keep in mind, `x` value is relative to `align` value.\n */\n offset?: DropdownOffset;\n /**\n * If `reattach` is true, the contents will be mounted in the mount point container,\n * so as to circumvent clipping issues from a parent's overflow property.\n */\n reattach?: boolean;\n /**\n * Custom class to apply to the default dropdown content element\n */\n contentClass?: string | string[];\n /**\n * Removes content container's max width\n */\n fluidContent?: boolean;\n }\n\n type DropdownStyles = {\n left?: string;\n right?: string;\n top?: string;\n };\n\n defineOptions({\n name: 'll-dropdown',\n });\n\n const props = withDefaults(defineProps<DropdownProps>(), {\n align: 'right',\n label: '',\n closeManually: false,\n offset: () => ({}),\n reattach: true,\n contentClass: '',\n fluidContent: false,\n });\n\n const emit = defineEmits<{\n toggle: [isActive: boolean];\n dismiss: [];\n }>();\n\n const contentRef = ref<HTMLElement | null>(null);\n const dropdownRef = ref<HTMLDivElement | null>(null);\n\n const DEFAULT_ITEMS_LIST = [] as unknown as NodeListOf<Element>;\n\n const items = ref<NodeListOf<Element>>(DEFAULT_ITEMS_LIST);\n const itemIndex = ref(-1);\n const isActive = ref(false);\n\n const styles = ref<DropdownStyles>({});\n const classes = useCssModule();\n\n watch(isActive, (val) => {\n if (!val) {\n itemIndex.value = -1;\n }\n\n emit('toggle', val);\n });\n\n watch(itemIndex, (next, prev) => {\n next in items.value && items.value[next].classList.add('tw-bg-ice-200');\n prev in items.value && items.value[prev].classList.remove('tw-bg-ice-200');\n });\n\n onMounted(() => {\n if (props.reattach) {\n const target = getMountPoint();\n\n contentRef.value && target.appendChild(contentRef.value);\n }\n\n // if stash-menu exists, use it's items\n if (contentRef.value?.querySelector('.stash-menu')) {\n items.value = contentRef.value?.querySelectorAll('.stash-menu-item') ?? DEFAULT_ITEMS_LIST;\n } else {\n items.value = contentRef.value?.querySelectorAll('.dropdown__item') ?? DEFAULT_ITEMS_LIST;\n }\n\n // avoid calling dismiss with ResizeEvent because it's target is the Window element and it's not a valid Node element to be passed to dismiss\n window.addEventListener('resize', () => dismiss());\n });\n\n onBeforeUnmount(() => {\n window.removeEventListener('resize', () => dismiss());\n contentRef?.value?.parentNode?.removeChild(contentRef.value);\n });\n\n /**\n * Dismisses the Dropdown.\n */\n function dismiss(event?: Event) {\n if (\n props.closeManually &&\n (contentRef.value?.contains(event?.target as HTMLElement) || contentRef.value === event?.target)\n ) {\n return;\n }\n\n const wasOpen = isActive.value;\n\n isActive.value = false;\n\n if (wasOpen) {\n emit('dismiss');\n }\n }\n\n /**\n * Opens or closes the Dropdown. If opening, positions and focuses its content.\n */\n async function toggle() {\n if (isActive.value) {\n isActive.value = false;\n } else {\n isActive.value = true;\n await calculateOffset();\n contentRef.value?.focus();\n }\n }\n\n /**\n * Handles all user keyboard input on the Dropdown.\n * @param {KeyboardEvent} e The native keydown event.\n */\n function onKeyDown(e: KeyboardEvent) {\n if (e.keyCode === KEY_CODES.ESCAPE) {\n dismiss();\n } else if (e.keyCode === KEY_CODES.DOWN && itemIndex.value < items.value.length - 1) {\n isActive.value && itemIndex.value++;\n } else if (e.keyCode === KEY_CODES.UP && itemIndex.value > -1) {\n isActive.value && itemIndex.value--;\n } else if (e.keyCode === KEY_CODES.ENTER && itemIndex.value !== -1) {\n isActive.value && items[itemIndex.value].click();\n } else {\n return;\n }\n\n e.preventDefault(); // if keyDown did something / we didn't return\n }\n\n /**\n * Reset any page overflow offset\n */\n function resetOffset() {\n contentRef.value?.style.setProperty('--offset', '0');\n }\n\n /**\n * Calculate the position for the Dropdown content element,\n * relative to the viewport.\n * Repositions the dropdown content element (& arrow)\n * if it overflows the page (including gutter).\n */\n async function calculateOffset() {\n await nextTick();\n\n const toggleBCR = dropdownRef.value?.getBoundingClientRect() || ({} as DOMRect);\n const top = toggleBCR.top + toggleBCR.height;\n const offset = {\n x: 0,\n y: 0,\n ...props.offset,\n };\n\n if (props.reattach) {\n styles.value = {\n left: props.align === 'left' ? `${Math.round(toggleBCR.left) + offset.x}px` : undefined,\n right:\n props.align === 'right'\n ? `${document.documentElement.clientWidth - Math.round(toggleBCR.right) + offset.x}px`\n : undefined,\n top: `${window.scrollY + top + offset.y}px`,\n };\n await nextTick(); // wait for style updates to sync in the DOM\n }\n\n const overflow = calculateElementOverflow(contentRef?.value);\n\n if (overflow) {\n const direction = props.align === 'left' ? '-' : '';\n contentRef.value?.style.setProperty('--offset', `${direction}${overflow.value}`);\n }\n }\n\n defineExpose({\n isActive: computed(() => isActive.value),\n toggle,\n dismiss,\n });\n</script>\n\n<template>\n <div\n ref=\"dropdownRef\"\n v-clickoutside=\"dismiss\"\n class=\"tw-relative tw-inline-block\"\n data-test=\"ll-dropdown\"\n @keydown=\"onKeyDown\"\n >\n <!-- @slot Toggle component slot, receives `toggle` method to trigger Dropdown display -->\n <slot name=\"toggle\" :is-active=\"isActive\" :toggle=\"toggle\">\n <button\n data-test=\"button|toggle\"\n :aria-expanded=\"isActive\"\n :class=\"[label ? 'tw-min-w-auto tw-outline-none' : 'tw-rounded tw-p-3']\"\n @click=\"toggle\"\n >\n <span v-if=\"label\" class=\"tw-flex tw-items-center tw-font-medium tw-text-blue-500 hover:tw-text-blue-700\">\n {{ label }}\n <Icon name=\"caret-down\" />\n </span>\n <Icon v-else name=\"ellipsis\" />\n </button>\n </slot>\n\n <transition name=\"fade\" @after-leave=\"resetOffset\">\n <div\n v-show=\"isActive\"\n ref=\"contentRef\"\n data-test=\"ll-dropdown-content\"\n :class=\"[\n classes.content,\n contentClass,\n {\n 'tw-left-0 after:tw-left-6': props.align === 'left',\n 'tw-right-0': props.align === 'right',\n 'tw-max-w-[360px]': !props.fluidContent,\n },\n ]\"\n :style=\"styles\"\n >\n <!-- @slot Dropdown content slot. Receives `dismiss` method, to trigger manual close. You must call dismiss with parentheses. Receives `is-active` prop. -->\n <slot :dismiss=\"dismiss\" :is-active=\"isActive\"></slot>\n </div>\n </transition>\n </div>\n</template>\n\n<style module>\n .content {\n --offset: 0;\n\n @apply tw-shadow-2xl\n tw-bg-white\n tw-border\n tw-border-solid\n tw-border-blue-500\n tw-rounded\n tw-absolute\n tw-z-[301]\n tw-min-w-[200px];\n\n transform: translateX(calc(var(--offset) * 1px));\n }\n\n /**\n * TODO: these global styles should be componentized in https://leaflink.atlassian.net/browse/STASH-566\n */\n :global(.dropdown__list) {\n @apply tw-bg-white tw-list-none tw-m-1.5 tw-p-0;\n }\n\n :global(.dropdown__item) {\n @apply tw-block tw-mx-0 tw-mt-0 tw-mb-1.5 tw-w-full first:tw-mt-0 last:tw-mb-0;\n }\n\n :global(.dropdown__item) button {\n @apply tw-border-none tw-text-left tw-p-1.5;\n }\n\n :global(.dropdown__item) :where(a, button) {\n @apply tw-rounded\n tw-text-ice-700\n tw-block\n tw-py-[10px]\n tw-px-1.5\n tw-w-full\n disabled:tw-text-ice-500\n disabled:tw-cursor-default\n hover:tw-bg-ice-200\n hover:tw-text-ice-700\n hover:tw-no-underline\n tw-transition-all\n tw-duration-fast\n tw-ease-swing;\n }\n</style>\n"],"names":["props","__props","emit","__emit","contentRef","ref","dropdownRef","DEFAULT_ITEMS_LIST","items","itemIndex","isActive","styles","classes","useCssModule","watch","val","next","prev","onMounted","target","getMountPoint","_a","_b","_c","dismiss","onBeforeUnmount","event","wasOpen","toggle","calculateOffset","onKeyDown","KEY_CODES","resetOffset","nextTick","toggleBCR","top","offset","overflow","calculateElementOverflow","direction","__expose","computed"],"mappings":"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"}
@@ -34,39 +34,39 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
34
34
  };
35
35
 
36
36
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DropdownProps>, {
37
- align: string;
38
- label: string;
39
- closeManually: boolean;
40
- offset: () => {};
41
- reattach: boolean;
42
- contentClass: string;
43
- fluidContent: boolean;
37
+ align: string;
38
+ label: string;
39
+ closeManually: boolean;
40
+ offset: () => {};
41
+ reattach: boolean;
42
+ contentClass: string;
43
+ fluidContent: boolean;
44
44
  }>>, {
45
- isActive: ComputedRef<boolean>;
46
- toggle: typeof toggle;
47
- dismiss: typeof dismiss;
45
+ isActive: ComputedRef<boolean>;
46
+ toggle: typeof toggle;
47
+ dismiss: typeof dismiss;
48
48
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
49
- toggle: (isActive: boolean) => void;
50
- dismiss: () => void;
49
+ toggle: (isActive: boolean) => void;
50
+ dismiss: () => void;
51
51
  }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DropdownProps>, {
52
- align: string;
53
- label: string;
54
- closeManually: boolean;
55
- offset: () => {};
56
- reattach: boolean;
57
- contentClass: string;
58
- fluidContent: boolean;
52
+ align: string;
53
+ label: string;
54
+ closeManually: boolean;
55
+ offset: () => {};
56
+ reattach: boolean;
57
+ contentClass: string;
58
+ fluidContent: boolean;
59
59
  }>>> & Readonly<{
60
- onToggle?: ((isActive: boolean) => any) | undefined;
61
- onDismiss?: (() => any) | undefined;
60
+ onToggle?: ((isActive: boolean) => any) | undefined;
61
+ onDismiss?: (() => any) | undefined;
62
62
  }>, {
63
- label: string;
64
- align: "left" | "right";
65
- closeManually: boolean;
66
- offset: DropdownOffset;
67
- reattach: boolean;
68
- contentClass: string | string[];
69
- fluidContent: boolean;
63
+ label: string;
64
+ align: "left" | "right";
65
+ closeManually: boolean;
66
+ offset: DropdownOffset;
67
+ reattach: boolean;
68
+ contentClass: string | string[];
69
+ fluidContent: boolean;
70
70
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
71
71
  toggle?(_: {
72
72
  isActive: boolean;
@@ -1,19 +1,15 @@
1
- import { defineComponent as d, useCssModule as f, useSlots as y, openBlock as s, createElementBlock as l, createBlock as _, createCommentVNode as i, createElementVNode as u, renderSlot as o, toDisplayString as m, normalizeClass as r, unref as n, createTextVNode as w } from "vue";
2
- import { t as g } from "./locale.js";
3
- import { _ as b } from "./Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js";
4
- import { s as x } from "./EmptyState.vue_used_vue_type_style_index_0_lang.module-f5d89366.js";
5
- import { _ as h } from "./_plugin-vue_export-helper-dad06003.js";
6
- import "lodash-es/get";
7
- import "lodash-es/uniqueId";
8
- import "./index-9e1095ef.js";
9
- const k = {
1
+ import { defineComponent as p, useCssModule as _, useSlots as g, openBlock as s, createElementBlock as a, createBlock as y, createCommentVNode as i, createElementVNode as u, renderSlot as o, toDisplayString as m, normalizeClass as n, unref as r, createTextVNode as f } from "vue";
2
+ import { t as w } from "./locale.js";
3
+ import { _ as b } from "./Illustration.vue_vue_type_script_setup_true_lang-C3qG3Ty6.js";
4
+ import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const x = {
10
6
  key: "empty",
11
7
  class: "stash-empty-state",
12
8
  "data-test": "stash-empty-state"
13
- }, v = {
9
+ }, k = {
14
10
  key: 0,
15
11
  class: "tw-flex tw-flex-col tw-items-center tw-text-center md:tw-flex-row md:tw-text-left"
16
- }, S = { class: "tw-mb-1.5" }, $ = ["alt", "src"], C = /* @__PURE__ */ d({
12
+ }, v = { class: "tw-mb-1.5" }, S = ["alt", "src"], $ = /* @__PURE__ */ p({
17
13
  name: "ll-empty-state",
18
14
  __name: "EmptyState",
19
15
  props: {
@@ -26,11 +22,11 @@ const k = {
26
22
  subtitle: { default: "" },
27
23
  vignette: { default: void 0 }
28
24
  },
29
- setup(p) {
30
- const t = p, c = f(), e = y();
31
- return (a, B) => (s(), l("div", k, [
32
- t.title || e.title || t.subtitle || e.subtitle || t.vignette ? (s(), l("div", v, [
33
- t.vignette ? (s(), _(b, {
25
+ setup(d) {
26
+ const t = d, c = _(), e = g();
27
+ return (l, N) => (s(), a("div", x, [
28
+ t.title || e.title || t.subtitle || e.subtitle || t.vignette ? (s(), a("div", k, [
29
+ t.vignette ? (s(), y(b, {
34
30
  key: 0,
35
31
  "data-test": "stash-empty-state|illustration",
36
32
  type: "vignette",
@@ -39,38 +35,41 @@ const k = {
39
35
  size: 300
40
36
  }, null, 8, ["name"])) : i("", !0),
41
37
  u("section", null, [
42
- o(a.$slots, "title", {}, () => [
43
- u("h3", S, m(t.title), 1)
38
+ o(l.$slots, "title", {}, () => [
39
+ u("h3", v, m(t.title), 1)
44
40
  ]),
45
- o(a.$slots, "subtitle", {}, () => [
46
- t.subtitle || e.subtitle ? (s(), l("p", {
41
+ o(l.$slots, "subtitle", {}, () => [
42
+ t.subtitle || e.subtitle ? (s(), a("p", {
47
43
  key: 0,
48
- class: r({ " tw-mb-8": e.button, "tw-mb-0": !e.button })
44
+ class: n({ " tw-mb-8": e.button, "tw-mb-0": !e.button })
49
45
  }, m(t.subtitle), 3)) : i("", !0)
50
46
  ]),
51
- o(a.$slots, "button")
47
+ o(l.$slots, "button")
52
48
  ])
53
- ])) : (s(), l("div", {
49
+ ])) : (s(), a("div", {
54
50
  key: 1,
55
- class: r(["tw-mx-auto tw-my-0 tw-flex tw-items-center tw-justify-center tw-py-12", [n(c).root, { "tw-text-center": !t.image.src && !e.image }]])
51
+ class: n(["tw-mx-auto tw-my-0 tw-flex tw-items-center tw-justify-center tw-py-12", [r(c).root, { "tw-text-center": !t.image.src && !e.image }]])
56
52
  }, [
57
- o(a.$slots, "image", {}, () => [
58
- t.image.src ? (s(), l("img", {
53
+ o(l.$slots, "image", {}, () => [
54
+ t.image.src ? (s(), a("img", {
59
55
  key: 0,
60
- class: r(["tw-mr-6", n(c).image]),
56
+ class: n(["tw-mr-6", r(c).image]),
61
57
  alt: t.image.alt,
62
58
  src: t.image.src,
63
59
  "data-test": "stash-empty-state__img"
64
- }, null, 10, $)) : i("", !0)
60
+ }, null, 10, S)) : i("", !0)
65
61
  ]),
66
- w(" " + m(t.text || n(g)("ll.emptyState.noResults")), 1)
62
+ f(" " + m(t.text || r(w)("ll.emptyState.noResults")), 1)
67
63
  ], 2))
68
64
  ]));
69
65
  }
70
- }), E = {
71
- $style: x
72
- }, q = /* @__PURE__ */ h(C, [["__cssModules", E]]);
66
+ }), C = "_root_hagg9_2", E = "_image_hagg9_6", B = {
67
+ root: C,
68
+ image: E
69
+ }, M = {
70
+ $style: B
71
+ }, R = /* @__PURE__ */ h($, [["__cssModules", M]]);
73
72
  export {
74
- q as default
73
+ R as default
75
74
  };
76
75
  //# sourceMappingURL=EmptyState.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyState.js","sources":["../src/components/EmptyState/EmptyState.vue"],"sourcesContent":["<script lang=\"ts\" setup>\n import { useCssModule } from 'vue';\n\n import { t } from '../../locale';\n import { VignetteNames } from '../Illustration/Illustration.models';\n import Illustration from '../Illustration/Illustration.vue';\n\n export interface EmptyStateProps {\n /**\n * @deprecated Use illustration instead.\n */\n image?: {\n alt?: string;\n src: string;\n };\n\n /**\n * @deprecated Use title instead.\n */\n text?: string;\n\n /**\n * the title text of the empty state\n */\n title?: string;\n\n /**\n * the subtitle text of the empty state\n */\n subtitle?: string;\n\n /**\n * The name of the vignette illustration to render\n */\n vignette?: VignetteNames;\n }\n\n export interface EmptyStateSlots {\n title?: void;\n subtitle?: void;\n button?: void;\n image?: void;\n }\n\n defineOptions({\n name: 'll-empty-state',\n });\n\n const props = withDefaults(defineProps<EmptyStateProps>(), {\n /**\n * An optional image to render\n */\n image: () => ({\n alt: '',\n src: '',\n }),\n\n /**\n * The custom message to render\n */\n text: '',\n\n title: '',\n subtitle: '',\n vignette: undefined,\n });\n\n const classes = useCssModule();\n const slots = defineSlots<EmptyStateSlots>();\n</script>\n\n<template>\n <div key=\"empty\" class=\"stash-empty-state\" data-test=\"stash-empty-state\">\n <template v-if=\"props.title || slots.title || props.subtitle || slots.subtitle || props.vignette\">\n <div class=\"tw-flex tw-flex-col tw-items-center tw-text-center md:tw-flex-row md:tw-text-left\">\n <Illustration\n v-if=\"props.vignette\"\n data-test=\"stash-empty-state|illustration\"\n type=\"vignette\"\n class=\"tw-mx-3\"\n :name=\"props.vignette\"\n :size=\"300\"\n />\n <section>\n <slot name=\"title\">\n <h3 class=\"tw-mb-1.5\">\n {{ props.title }}\n </h3>\n </slot>\n\n <slot name=\"subtitle\">\n <p v-if=\"props.subtitle || slots.subtitle\" :class=\"{ ' tw-mb-8': slots.button, 'tw-mb-0': !slots.button }\">\n {{ props.subtitle }}\n </p>\n </slot>\n\n <slot name=\"button\"></slot>\n </section>\n </div>\n </template>\n\n <template v-else>\n <div\n class=\"tw-mx-auto tw-my-0 tw-flex tw-items-center tw-justify-center tw-py-12\"\n :class=\"[classes.root, { 'tw-text-center': !props.image.src && !slots.image }]\"\n >\n <slot name=\"image\">\n <img\n v-if=\"props.image.src\"\n class=\"tw-mr-6\"\n :alt=\"props.image.alt\"\n :class=\"classes.image\"\n :src=\"props.image.src\"\n data-test=\"stash-empty-state__img\"\n />\n </slot>\n\n {{ props.text || t('ll.emptyState.noResults') }}\n </div>\n </template>\n </div>\n</template>\n\n<style module>\n .root {\n max-width: 600px;\n }\n\n .image {\n max-width: 60px;\n }\n</style>\n"],"names":["props","__props","classes","useCssModule","slots","_useSlots"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDE,UAAMA,IAAQC,GAmBRC,IAAUC,KACVC,IAAQC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"EmptyState.js","sources":["../src/components/EmptyState/EmptyState.vue"],"sourcesContent":["<script lang=\"ts\" setup>\n import { useCssModule } from 'vue';\n\n import { t } from '../../locale';\n import { VignetteNames } from '../Illustration/Illustration.models';\n import Illustration from '../Illustration/Illustration.vue';\n\n export interface EmptyStateProps {\n /**\n * @deprecated Use illustration instead.\n */\n image?: {\n alt?: string;\n src: string;\n };\n\n /**\n * @deprecated Use title instead.\n */\n text?: string;\n\n /**\n * the title text of the empty state\n */\n title?: string;\n\n /**\n * the subtitle text of the empty state\n */\n subtitle?: string;\n\n /**\n * The name of the vignette illustration to render\n */\n vignette?: VignetteNames;\n }\n\n export interface EmptyStateSlots {\n title?: void;\n subtitle?: void;\n button?: void;\n image?: void;\n }\n\n defineOptions({\n name: 'll-empty-state',\n });\n\n const props = withDefaults(defineProps<EmptyStateProps>(), {\n /**\n * An optional image to render\n */\n image: () => ({\n alt: '',\n src: '',\n }),\n\n /**\n * The custom message to render\n */\n text: '',\n\n title: '',\n subtitle: '',\n vignette: undefined,\n });\n\n const classes = useCssModule();\n const slots = defineSlots<EmptyStateSlots>();\n</script>\n\n<template>\n <div key=\"empty\" class=\"stash-empty-state\" data-test=\"stash-empty-state\">\n <template v-if=\"props.title || slots.title || props.subtitle || slots.subtitle || props.vignette\">\n <div class=\"tw-flex tw-flex-col tw-items-center tw-text-center md:tw-flex-row md:tw-text-left\">\n <Illustration\n v-if=\"props.vignette\"\n data-test=\"stash-empty-state|illustration\"\n type=\"vignette\"\n class=\"tw-mx-3\"\n :name=\"props.vignette\"\n :size=\"300\"\n />\n <section>\n <slot name=\"title\">\n <h3 class=\"tw-mb-1.5\">\n {{ props.title }}\n </h3>\n </slot>\n\n <slot name=\"subtitle\">\n <p v-if=\"props.subtitle || slots.subtitle\" :class=\"{ ' tw-mb-8': slots.button, 'tw-mb-0': !slots.button }\">\n {{ props.subtitle }}\n </p>\n </slot>\n\n <slot name=\"button\"></slot>\n </section>\n </div>\n </template>\n\n <template v-else>\n <div\n class=\"tw-mx-auto tw-my-0 tw-flex tw-items-center tw-justify-center tw-py-12\"\n :class=\"[classes.root, { 'tw-text-center': !props.image.src && !slots.image }]\"\n >\n <slot name=\"image\">\n <img\n v-if=\"props.image.src\"\n class=\"tw-mr-6\"\n :alt=\"props.image.alt\"\n :class=\"classes.image\"\n :src=\"props.image.src\"\n data-test=\"stash-empty-state__img\"\n />\n </slot>\n\n {{ props.text || t('ll.emptyState.noResults') }}\n </div>\n </template>\n </div>\n</template>\n\n<style module>\n .root {\n max-width: 600px;\n }\n\n .image {\n max-width: 60px;\n }\n</style>\n"],"names":["props","__props","classes","useCssModule","slots","_useSlots"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAgDE,UAAMA,IAAQC,GAmBRC,IAAUC,KACVC,IAAQC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -33,44 +33,44 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
33
33
  };
34
34
 
35
35
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EmptyStateProps>, {
36
- /**
37
- * An optional image to render
38
- */
39
- image: () => {
40
- alt: string;
41
- src: string;
42
- };
43
- /**
44
- * The custom message to render
45
- */
46
- text: string;
47
- title: string;
48
- subtitle: string;
49
- vignette: undefined;
36
+ /**
37
+ * An optional image to render
38
+ */
39
+ image: () => {
40
+ alt: string;
41
+ src: string;
42
+ };
43
+ /**
44
+ * The custom message to render
45
+ */
46
+ text: string;
47
+ title: string;
48
+ subtitle: string;
49
+ vignette: undefined;
50
50
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EmptyStateProps>, {
51
- /**
52
- * An optional image to render
53
- */
54
- image: () => {
55
- alt: string;
56
- src: string;
57
- };
58
- /**
59
- * The custom message to render
60
- */
61
- text: string;
62
- title: string;
63
- subtitle: string;
64
- vignette: undefined;
51
+ /**
52
+ * An optional image to render
53
+ */
54
+ image: () => {
55
+ alt: string;
56
+ src: string;
57
+ };
58
+ /**
59
+ * The custom message to render
60
+ */
61
+ text: string;
62
+ title: string;
63
+ subtitle: string;
64
+ vignette: undefined;
65
65
  }>>> & Readonly<{}>, {
66
- title: string;
67
- image: {
68
- alt?: string | undefined;
69
- src: string;
70
- };
71
- text: string;
72
- subtitle: string;
73
- vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "messages" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
66
+ title: string;
67
+ image: {
68
+ alt?: string | undefined;
69
+ src: string;
70
+ };
71
+ text: string;
72
+ subtitle: string;
73
+ vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "messages" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
74
74
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Readonly<EmptyStateSlots> & EmptyStateSlots>;
75
75
  export default _default;
76
76
 
package/dist/Expand.js CHANGED
@@ -1,6 +1,5 @@
1
- import { _ as m } from "./Expand.vue_vue_type_script_setup_true_lang-0f236267.js";
2
- import "vue";
1
+ import { _ as f } from "./Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js";
3
2
  export {
4
- m as default
3
+ f as default
5
4
  };
6
5
  //# sourceMappingURL=Expand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Expand.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"Expand.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -33,24 +33,24 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
33
33
  };
34
34
 
35
35
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ExpandProps>, {
36
- is: string;
37
- isExpanded: boolean;
38
- isLazy: boolean;
39
- transitionName: string;
36
+ is: string;
37
+ isExpanded: boolean;
38
+ isLazy: boolean;
39
+ transitionName: string;
40
40
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
41
- "after-expand": () => void;
41
+ "after-expand": () => void;
42
42
  }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ExpandProps>, {
43
- is: string;
44
- isExpanded: boolean;
45
- isLazy: boolean;
46
- transitionName: string;
43
+ is: string;
44
+ isExpanded: boolean;
45
+ isLazy: boolean;
46
+ transitionName: string;
47
47
  }>>> & Readonly<{
48
- "onAfter-expand"?: (() => any) | undefined;
48
+ "onAfter-expand"?: (() => any) | undefined;
49
49
  }>, {
50
- is: ExpandOuterElement;
51
- isExpanded: boolean;
52
- isLazy: boolean;
53
- transitionName: string;
50
+ is: ExpandOuterElement;
51
+ isExpanded: boolean;
52
+ isLazy: boolean;
53
+ transitionName: string;
54
54
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
55
55
  default?(_: {}): any;
56
56
  }>;
@@ -71,4 +71,4 @@ const z = /* @__PURE__ */ c({
71
71
  export {
72
72
  z as _
73
73
  };
74
- //# sourceMappingURL=Expand.vue_vue_type_script_setup_true_lang-0f236267.js.map
74
+ //# sourceMappingURL=Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Expand.vue_vue_type_script_setup_true_lang-0f236267.js","sources":["../src/components/Expand/Expand.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { onMounted, ref } from 'vue';\n\n defineOptions({\n name: 'll-expand',\n });\n\n export type ExpandOuterElement = 'div' | 'td' | 'li';\n\n export interface ExpandProps {\n /**\n * The root element to use as the root element the expand transition gets applied to\n */\n is?: ExpandOuterElement;\n\n /**\n * Dictates whether the content is expanded or collapsed\n */\n isExpanded?: boolean;\n\n /**\n * Whether to only render content on expand\n */\n isLazy?: boolean;\n\n /**\n * The name of the transition to pass to the transition component\n * @see: https://vuejs.org/guide/built-ins/transition.html#css-based-transitions\n */\n transitionName?: string;\n }\n\n const props = withDefaults(defineProps<ExpandProps>(), {\n is: 'div',\n isExpanded: false,\n isLazy: false,\n transitionName: 'expand',\n });\n\n const emit = defineEmits<{\n (e: 'after-expand'): void;\n }>();\n\n const contentRef = ref<HTMLElement | null>(null);\n\n onMounted(() => {\n if (!props.isExpanded && contentRef.value) {\n contentRef.value.style.overflow = 'hidden';\n }\n });\n\n /**\n * Expands the element\n * @param {object} element - the element being expanded\n * @returns {void}\n */\n const onExpand = (element) => {\n // Trick to calculate the height of the hidden element\n element.style.visibility = 'hidden';\n element.style.height = 'auto';\n\n const height = element.offsetHeight;\n\n // Restore default styling\n element.style.visibility = '';\n element.style.display = '';\n\n // Set height on the element to zero\n element.style.height = 0;\n\n // Set expanded height after the other height change takes affect\n requestAnimationFrame(() => {\n element.style.height = `${height}px`;\n });\n };\n\n /**\n * Resores default styling after the expand animation is completed\n * @param {object} element - the element being expanded\n * @returns {void}\n */\n const afterExpand = (element) => {\n element.style.height = '';\n element.style.overflow = '';\n emit('after-expand');\n };\n\n /**\n * Collapses the element\n * @param {object} element - the element being expanded\n * @returns {void}\n */\n const onCollapse = (element) => {\n const height = element.offsetHeight;\n\n // Set height to the expanded height\n element.style.height = `${height}px`;\n element.style.overflow = 'hidden';\n\n // Set height to zero after the other height change takes affect\n requestAnimationFrame(() => {\n element.style.height = 0;\n });\n };\n</script>\n\n<template>\n <component\n :is=\"props.is\"\n class=\"stash-expand\"\n data-test=\"stash-expand\"\n :class=\"{\n 'stash-expand--expanded': isExpanded,\n 'stash-expand--collapsed': !isExpanded,\n }\"\n >\n <transition :name=\"transitionName\" @after-enter=\"afterExpand\" @enter=\"onExpand\" @leave=\"onCollapse\">\n <template v-if=\"isLazy\">\n <div v-if=\"isExpanded\" ref=\"contentRef\">\n <slot></slot>\n </div>\n </template>\n <template v-else>\n <div v-show=\"isExpanded\" ref=\"contentRef\">\n <slot></slot>\n </div>\n </template>\n </transition>\n </component>\n</template>\n"],"names":["props","__props","emit","__emit","contentRef","ref","onMounted","onExpand","element","height","afterExpand","onCollapse"],"mappings":";;;;;;;;;;;;AAgCE,UAAMA,IAAQC,GAORC,IAAOC,GAIPC,IAAaC,EAAwB,IAAI;AAE/C,IAAAC,EAAU,MAAM;AACd,MAAI,CAACN,EAAM,cAAcI,EAAW,UACvBA,EAAA,MAAM,MAAM,WAAW;AAAA,IACpC,CACD;AAOK,UAAAG,IAAW,CAACC,MAAY;AAE5B,MAAAA,EAAQ,MAAM,aAAa,UAC3BA,EAAQ,MAAM,SAAS;AAEvB,YAAMC,IAASD,EAAQ;AAGvB,MAAAA,EAAQ,MAAM,aAAa,IAC3BA,EAAQ,MAAM,UAAU,IAGxBA,EAAQ,MAAM,SAAS,GAGvB,sBAAsB,MAAM;AAClB,QAAAA,EAAA,MAAM,SAAS,GAAGC;AAAA,MAAA,CAC3B;AAAA,IAAA,GAQGC,IAAc,CAACF,MAAY;AAC/B,MAAAA,EAAQ,MAAM,SAAS,IACvBA,EAAQ,MAAM,WAAW,IACzBN,EAAK,cAAc;AAAA,IAAA,GAQfS,IAAa,CAACH,MAAY;AAC9B,YAAMC,IAASD,EAAQ;AAGf,MAAAA,EAAA,MAAM,SAAS,GAAGC,OAC1BD,EAAQ,MAAM,WAAW,UAGzB,sBAAsB,MAAM;AAC1B,QAAAA,EAAQ,MAAM,SAAS;AAAA,MAAA,CACxB;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js","sources":["../src/components/Expand/Expand.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { onMounted, ref } from 'vue';\n\n defineOptions({\n name: 'll-expand',\n });\n\n export type ExpandOuterElement = 'div' | 'td' | 'li';\n\n export interface ExpandProps {\n /**\n * The root element to use as the root element the expand transition gets applied to\n */\n is?: ExpandOuterElement;\n\n /**\n * Dictates whether the content is expanded or collapsed\n */\n isExpanded?: boolean;\n\n /**\n * Whether to only render content on expand\n */\n isLazy?: boolean;\n\n /**\n * The name of the transition to pass to the transition component\n * @see: https://vuejs.org/guide/built-ins/transition.html#css-based-transitions\n */\n transitionName?: string;\n }\n\n const props = withDefaults(defineProps<ExpandProps>(), {\n is: 'div',\n isExpanded: false,\n isLazy: false,\n transitionName: 'expand',\n });\n\n const emit = defineEmits<{\n (e: 'after-expand'): void;\n }>();\n\n const contentRef = ref<HTMLElement | null>(null);\n\n onMounted(() => {\n if (!props.isExpanded && contentRef.value) {\n contentRef.value.style.overflow = 'hidden';\n }\n });\n\n /**\n * Expands the element\n * @param {object} element - the element being expanded\n * @returns {void}\n */\n const onExpand = (element) => {\n // Trick to calculate the height of the hidden element\n element.style.visibility = 'hidden';\n element.style.height = 'auto';\n\n const height = element.offsetHeight;\n\n // Restore default styling\n element.style.visibility = '';\n element.style.display = '';\n\n // Set height on the element to zero\n element.style.height = 0;\n\n // Set expanded height after the other height change takes affect\n requestAnimationFrame(() => {\n element.style.height = `${height}px`;\n });\n };\n\n /**\n * Resores default styling after the expand animation is completed\n * @param {object} element - the element being expanded\n * @returns {void}\n */\n const afterExpand = (element) => {\n element.style.height = '';\n element.style.overflow = '';\n emit('after-expand');\n };\n\n /**\n * Collapses the element\n * @param {object} element - the element being expanded\n * @returns {void}\n */\n const onCollapse = (element) => {\n const height = element.offsetHeight;\n\n // Set height to the expanded height\n element.style.height = `${height}px`;\n element.style.overflow = 'hidden';\n\n // Set height to zero after the other height change takes affect\n requestAnimationFrame(() => {\n element.style.height = 0;\n });\n };\n</script>\n\n<template>\n <component\n :is=\"props.is\"\n class=\"stash-expand\"\n data-test=\"stash-expand\"\n :class=\"{\n 'stash-expand--expanded': isExpanded,\n 'stash-expand--collapsed': !isExpanded,\n }\"\n >\n <transition :name=\"transitionName\" @after-enter=\"afterExpand\" @enter=\"onExpand\" @leave=\"onCollapse\">\n <template v-if=\"isLazy\">\n <div v-if=\"isExpanded\" ref=\"contentRef\">\n <slot></slot>\n </div>\n </template>\n <template v-else>\n <div v-show=\"isExpanded\" ref=\"contentRef\">\n <slot></slot>\n </div>\n </template>\n </transition>\n </component>\n</template>\n"],"names":["props","__props","emit","__emit","contentRef","ref","onMounted","onExpand","element","height","afterExpand","onCollapse"],"mappings":";;;;;;;;;;;;AAgCE,UAAMA,IAAQC,GAORC,IAAOC,GAIPC,IAAaC,EAAwB,IAAI;AAE/C,IAAAC,EAAU,MAAM;AACd,MAAI,CAACN,EAAM,cAAcI,EAAW,UACvBA,EAAA,MAAM,MAAM,WAAW;AAAA,IACpC,CACD;AAOK,UAAAG,IAAW,CAACC,MAAY;AAE5B,MAAAA,EAAQ,MAAM,aAAa,UAC3BA,EAAQ,MAAM,SAAS;AAEvB,YAAMC,IAASD,EAAQ;AAGvB,MAAAA,EAAQ,MAAM,aAAa,IAC3BA,EAAQ,MAAM,UAAU,IAGxBA,EAAQ,MAAM,SAAS,GAGvB,sBAAsB,MAAM;AAClB,QAAAA,EAAA,MAAM,SAAS,GAAGC,CAAM;AAAA,MAAA,CACjC;AAAA,IAAA,GAQGC,IAAc,CAACF,MAAY;AAC/B,MAAAA,EAAQ,MAAM,SAAS,IACvBA,EAAQ,MAAM,WAAW,IACzBN,EAAK,cAAc;AAAA,IAAA,GAQfS,IAAa,CAACH,MAAY;AAC9B,YAAMC,IAASD,EAAQ;AAGf,MAAAA,EAAA,MAAM,SAAS,GAAGC,CAAM,MAChCD,EAAQ,MAAM,WAAW,UAGzB,sBAAsB,MAAM;AAC1B,QAAAA,EAAQ,MAAM,SAAS;AAAA,MAAA,CACxB;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/Field.js CHANGED
@@ -1,10 +1,5 @@
1
- import { _ as o } from "./Field.vue_vue_type_script_setup_true_lang-fded4f75.js";
2
- import "vue";
3
- import "lodash-es/uniqueId";
4
- import "./Label.vue_vue_type_script_setup_true_lang-b6ba2f02.js";
5
- import "./locale.js";
6
- import "lodash-es/get";
1
+ import { _ as f } from "./Field.vue_vue_type_script_setup_true_lang-DjxUvSRF.js";
7
2
  export {
8
- o as default
3
+ f as default
9
4
  };
10
5
  //# sourceMappingURL=Field.js.map
package/dist/Field.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Field.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"Field.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}