efficient-shell 8.20.0 → 8.21.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 (357) hide show
  1. package/README.md +4 -3
  2. package/dist/{Browser-KK4DSPFA.js → Browser-WJ7YGO3M.js} +14 -14
  3. package/dist/Calculator-FHN36ZE3.js +29 -0
  4. package/dist/{CurrencyConverter-PD2CEL6V.js → CurrencyConverter-ONCRQNI4.js} +9 -9
  5. package/dist/{Documents-QRU3INP2.js → Documents-YEMIR4WQ.js} +5 -5
  6. package/dist/{Files-NQBM46JA.js → Files-QWSOYRD4.js} +25 -25
  7. package/dist/{Notepad-KU2VK5QB.js → Notepad-MFVUGAGD.js} +10 -10
  8. package/dist/PdfViewer-ZFZ4PEAV.js +1 -0
  9. package/dist/{PomodoroTimer-JEQTTMGA.js → PomodoroTimer-JVQ5K7B4.js} +68 -68
  10. package/dist/{Preview-C6VU5P3N.js → Preview-7G2WM7DN.js} +44 -44
  11. package/dist/Sidebar-OFRMBB5V.js +43 -0
  12. package/dist/{Spreadsheet-HLH3EHCX.js → Spreadsheet-VKOS3PUA.js} +13 -13
  13. package/dist/{Stock-VCMJMUCW.js → Stock-TWJNCTNT.js} +3 -3
  14. package/dist/{Weather-HF3E3N3M.js → Weather-RM7GPLAH.js} +16 -16
  15. package/dist/{WorldClock-PM5CJQSL.js → WorldClock-ITJ2MO75.js} +6 -6
  16. package/dist/ai/index.js +17 -17
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/media-host-check.js +1 -1
  19. package/dist/bin/ui-check.js +1 -1
  20. package/dist/charts/BoxPlotChart.js +1 -1
  21. package/dist/charts/CandlestickChart.js +1 -1
  22. package/dist/charts/CartesianPlot.js +1 -1
  23. package/dist/charts/ChartBrush.js +1 -1
  24. package/dist/charts/ChartFrame.js +1 -1
  25. package/dist/charts/ChartSkeleton.js +1 -1
  26. package/dist/charts/ChordChart.js +1 -1
  27. package/dist/charts/ColumnChart.js +1 -1
  28. package/dist/charts/FunnelChart.js +1 -1
  29. package/dist/charts/HeatmapChart.js +1 -1
  30. package/dist/charts/HistogramChart.js +1 -1
  31. package/dist/charts/Meter.js +1 -1
  32. package/dist/charts/PieChart.js +1 -1
  33. package/dist/charts/RadarChart.js +1 -1
  34. package/dist/charts/RadialBarChart.js +1 -1
  35. package/dist/charts/RangeChart.js +1 -1
  36. package/dist/charts/RankedBars.js +1 -1
  37. package/dist/charts/SankeyChart.js +1 -1
  38. package/dist/charts/ScatterChart.js +1 -1
  39. package/dist/charts/StatTile.js +1 -1
  40. package/dist/charts/SunburstChart.js +1 -1
  41. package/dist/charts/TimeSeriesChart.js +1 -1
  42. package/dist/charts/TreemapChart.js +1 -1
  43. package/dist/charts/WaterfallChart.js +1 -1
  44. package/dist/chunk-22S6LG6D.js +6 -0
  45. package/dist/{chunk-CQXKO5PB.js → chunk-24L7NLA3.js} +1 -1
  46. package/dist/{chunk-O3HXASSH.js → chunk-2BS74SYW.js} +1 -1
  47. package/dist/{chunk-THPTJGV5.js → chunk-2H6PDKTC.js} +7 -7
  48. package/dist/chunk-36MUTG34.js +1 -0
  49. package/dist/{chunk-VWVFKMU7.js → chunk-3HNK7IRJ.js} +3 -3
  50. package/dist/{chunk-KSSIZW3C.js → chunk-3PQHPFXP.js} +5 -5
  51. package/dist/{chunk-5TVF4BCM.js → chunk-3Z7LIHMB.js} +1 -1
  52. package/dist/chunk-4CANQ3B3.js +1 -0
  53. package/dist/{chunk-UEUCGC6G.js → chunk-4CWKK5HV.js} +4 -4
  54. package/dist/chunk-4IU5BSVE.js +2 -0
  55. package/dist/chunk-4PZN25MV.js +20 -0
  56. package/dist/{chunk-RC5SGXXR.js → chunk-4VK3GJZI.js} +1 -1
  57. package/dist/chunk-4XOTP5CB.js +2 -0
  58. package/dist/{chunk-PXCARPLZ.js → chunk-55WFJELE.js} +1 -1
  59. package/dist/{chunk-MRBC7GLE.js → chunk-5Z2WLSFM.js} +15 -15
  60. package/dist/{chunk-KB6BGPQK.js → chunk-6GVJ6IKD.js} +1 -1
  61. package/dist/{chunk-7T3COEQK.js → chunk-6KO5VTL7.js} +1 -1
  62. package/dist/{chunk-AZWEWGYG.js → chunk-6V753BUI.js} +3 -3
  63. package/dist/{chunk-FOSCSAJZ.js → chunk-735HKUTV.js} +1 -1
  64. package/dist/chunk-73DAZUJP.js +14 -0
  65. package/dist/{chunk-C6LV3HJW.js → chunk-7DKPJUGU.js} +1 -1
  66. package/dist/{chunk-IGH6DECG.js → chunk-7M7ESM5V.js} +12 -12
  67. package/dist/{chunk-UEMGH6EO.js → chunk-7S2I6ACG.js} +1 -1
  68. package/dist/{chunk-RZT7QES5.js → chunk-A4U4BTN3.js} +4 -4
  69. package/dist/{chunk-EQZAHIUG.js → chunk-ACZZXO5S.js} +2 -2
  70. package/dist/{chunk-5GMWOYTF.js → chunk-AH2AUQYM.js} +1 -1
  71. package/dist/{chunk-AILWMDWP.js → chunk-AJ42UE53.js} +1 -1
  72. package/dist/{chunk-XDG2RWUO.js → chunk-AX7KPMDV.js} +2 -2
  73. package/dist/{chunk-B36HEVMT.js → chunk-AXZEINMF.js} +19 -19
  74. package/dist/{chunk-OAYHU7YN.js → chunk-B4XPFCCQ.js} +2 -2
  75. package/dist/{chunk-JSOO4O5K.js → chunk-B55IXYDR.js} +2 -2
  76. package/dist/chunk-B5VOHZCD.js +1 -0
  77. package/dist/{chunk-MVCNSGM4.js → chunk-BIS5PHHV.js} +2 -2
  78. package/dist/{chunk-3V6UFR7M.js → chunk-BXM72C73.js} +1 -1
  79. package/dist/{chunk-X3II54HU.js → chunk-CDRXZBVR.js} +1 -1
  80. package/dist/{chunk-6SBPGUSR.js → chunk-CFLVEKSH.js} +1 -1
  81. package/dist/{chunk-FBSQABH2.js → chunk-CMYLTCPA.js} +1 -1
  82. package/dist/{chunk-YZCRHDOB.js → chunk-CU2B7G5A.js} +1 -1
  83. package/dist/{chunk-P5QRK7WD.js → chunk-CUT7PAXL.js} +1 -1
  84. package/dist/{chunk-5SULG7D5.js → chunk-D323R2FT.js} +1 -1
  85. package/dist/{chunk-AK632G3F.js → chunk-D5HHU5AO.js} +7 -7
  86. package/dist/{chunk-UELYZT4T.js → chunk-DIKOEJ2Y.js} +1 -1
  87. package/dist/{chunk-CVNM25BM.js → chunk-DLCIGDKC.js} +6 -6
  88. package/dist/chunk-DLS2VCBK.js +3 -0
  89. package/dist/{chunk-QSPW43OC.js → chunk-DMLJOBQS.js} +8 -8
  90. package/dist/chunk-DNKACLRF.js +11 -0
  91. package/dist/{chunk-D6FSZBJ5.js → chunk-DO6XTJ77.js} +1 -1
  92. package/dist/chunk-DZT2O3JD.js +11 -0
  93. package/dist/{chunk-KZ6P7WC6.js → chunk-EAEUSMYL.js} +1 -1
  94. package/dist/{chunk-XSFQR374.js → chunk-ECZT7SIE.js} +1 -1
  95. package/dist/{chunk-VYKITRFG.js → chunk-EDQBTPDF.js} +7 -7
  96. package/dist/{chunk-XBXEK6XP.js → chunk-EKWSGPJ4.js} +7 -7
  97. package/dist/{chunk-JJ6IUIYX.js → chunk-EL3O7ZFQ.js} +1 -1
  98. package/dist/chunk-ERFM5U3M.js +12 -0
  99. package/dist/{chunk-TLJCUUZU.js → chunk-ET32NQHX.js} +1 -1
  100. package/dist/chunk-ETSKG62F.js +1 -0
  101. package/dist/{chunk-XDAR2DSX.js → chunk-EXMFUK3A.js} +8 -8
  102. package/dist/chunk-F2Z6IXMM.js +2 -0
  103. package/dist/{chunk-KS3AQKHD.js → chunk-FPDKMCQH.js} +7 -7
  104. package/dist/{chunk-TF3E5J3Y.js → chunk-GI7FOLDX.js} +1 -1
  105. package/dist/{chunk-DCNXCFAD.js → chunk-H7ZXUGXX.js} +26 -26
  106. package/dist/{chunk-ZLHF5XRR.js → chunk-HJIBTA6V.js} +9 -9
  107. package/dist/{chunk-Z6V3EY6F.js → chunk-HVVPBAP5.js} +3 -3
  108. package/dist/chunk-HYFHCPNJ.js +15 -0
  109. package/dist/{chunk-DBLJIK5J.js → chunk-IAQC775L.js} +1 -1
  110. package/dist/{chunk-J67YIQEN.js → chunk-IGCXJHAK.js} +1 -1
  111. package/dist/{chunk-DBDJQVQM.js → chunk-IJA5ZAGL.js} +1 -1
  112. package/dist/{chunk-YUIWG2QT.js → chunk-IKNNHEVY.js} +1 -1
  113. package/dist/{chunk-EXVR3BWW.js → chunk-IMF537IJ.js} +9 -9
  114. package/dist/{chunk-TKBP5HRY.js → chunk-IPOSLLLU.js} +12 -12
  115. package/dist/{chunk-VXWCX65A.js → chunk-IURSUMDO.js} +8 -8
  116. package/dist/{chunk-7SPX7DLO.js → chunk-IY3CRZRH.js} +16 -16
  117. package/dist/chunk-JGE7S7RQ.js +29 -0
  118. package/dist/{chunk-H5GQWWPA.js → chunk-JYOI66DT.js} +1 -1
  119. package/dist/chunk-K4DZWCUP.js +8 -0
  120. package/dist/{chunk-42BBJJDP.js → chunk-KIBL6M3T.js} +10 -5
  121. package/dist/chunk-KPFOXLN4.js +5 -0
  122. package/dist/chunk-KZEQJVBO.js +3 -0
  123. package/dist/chunk-L2HZ7YXS.js +14 -0
  124. package/dist/chunk-L2YW3END.js +4 -0
  125. package/dist/{chunk-RYC3ZHXM.js → chunk-L65EQCZN.js} +5 -5
  126. package/dist/{chunk-KATRRQD5.js → chunk-L6FLPBU2.js} +5 -5
  127. package/dist/{chunk-3WM23XSR.js → chunk-LDFRVV5R.js} +8 -8
  128. package/dist/{chunk-3KDY6V6I.js → chunk-LMLM4KHQ.js} +8 -8
  129. package/dist/{chunk-LMOPRRQY.js → chunk-LQQMELJM.js} +12 -12
  130. package/dist/{chunk-CQAXN3HN.js → chunk-LVSPLCGG.js} +1 -1
  131. package/dist/{chunk-WGSIYW63.js → chunk-M5BFTFBK.js} +15 -15
  132. package/dist/{chunk-ZDJNTOUS.js → chunk-MEOICYR5.js} +1 -1
  133. package/dist/{chunk-CDBS47XI.js → chunk-MFEJ6TYE.js} +1 -1
  134. package/dist/{chunk-U62AWCZR.js → chunk-MHYOQMBV.js} +1 -1
  135. package/dist/{chunk-RHYMHVFS.js → chunk-MKITHLDU.js} +9 -9
  136. package/dist/chunk-MOOBUMON.js +9 -0
  137. package/dist/{chunk-R6L6PKQP.js → chunk-MTSZ66O4.js} +1 -1
  138. package/dist/{chunk-Q6YPDR7U.js → chunk-MWAYM46R.js} +12 -12
  139. package/dist/{chunk-CHNYSP6K.js → chunk-N6DTTOB6.js} +1 -1
  140. package/dist/{chunk-XXBGWT7L.js → chunk-N7VNKAXZ.js} +1 -1
  141. package/dist/{chunk-F5VXS5JO.js → chunk-NBVF2CXM.js} +1 -1
  142. package/dist/{chunk-VO3HT6IK.js → chunk-NDTMQRR2.js} +1 -1
  143. package/dist/{chunk-MQADQ4YF.js → chunk-NKJDOQVW.js} +1 -1
  144. package/dist/{chunk-QKHTL3FQ.js → chunk-NNKMEF3D.js} +1 -1
  145. package/dist/{chunk-3AVHOYQZ.js → chunk-NRDO5IHL.js} +1 -1
  146. package/dist/{chunk-Q2S76TZH.js → chunk-NSCLFAKK.js} +1 -1
  147. package/dist/{chunk-EVPOZQOI.js → chunk-OCCHDMEV.js} +1 -1
  148. package/dist/chunk-OF6TUQAL.js +7 -0
  149. package/dist/{chunk-DAV7SMCJ.js → chunk-OSSFYFXO.js} +1 -1
  150. package/dist/{chunk-F22KWATP.js → chunk-OSVN2UF7.js} +1 -1
  151. package/dist/{chunk-3RM3D2P3.js → chunk-OTU633XJ.js} +6 -6
  152. package/dist/{chunk-KE6NYTGF.js → chunk-OZF4QAJT.js} +3 -3
  153. package/dist/{chunk-HME2P5VX.js → chunk-OZPYTSPD.js} +23 -23
  154. package/dist/{chunk-MBXTOYMX.js → chunk-P7WUDHIP.js} +6 -6
  155. package/dist/{chunk-ZNZDV6SN.js → chunk-PG6AVBSR.js} +1 -1
  156. package/dist/{chunk-UPHXYWL6.js → chunk-PJCVNFWM.js} +11 -11
  157. package/dist/{chunk-J324R2BM.js → chunk-PTDLNTSK.js} +13 -13
  158. package/dist/{chunk-N7KL336H.js → chunk-PVSGQN5M.js} +6 -6
  159. package/dist/{chunk-47MFBFIX.js → chunk-PWOFYFMO.js} +6 -6
  160. package/dist/{chunk-RQ5RVKRO.js → chunk-QEVIQZIE.js} +2 -2
  161. package/dist/{chunk-4MTC6HA5.js → chunk-RAAUW5OZ.js} +2 -2
  162. package/dist/{chunk-E2YGQAFU.js → chunk-RAI3GTS6.js} +1 -1
  163. package/dist/chunk-RAQESAQZ.js +3 -0
  164. package/dist/{chunk-5JQCPUEO.js → chunk-RCRI6QZV.js} +1 -1
  165. package/dist/{chunk-G3IG4X4Z.js → chunk-RDPUVCXR.js} +1 -1
  166. package/dist/{chunk-4TER5BHR.js → chunk-RZBHO74V.js} +1 -1
  167. package/dist/{chunk-MKTO2FHK.js → chunk-SAKHGHF5.js} +1 -1
  168. package/dist/{chunk-4G5M752L.js → chunk-SXSMIMFY.js} +3 -3
  169. package/dist/{chunk-JSB5G2XQ.js → chunk-THDSOVEH.js} +2 -2
  170. package/dist/{chunk-CHOMUTLT.js → chunk-TT3S2XVQ.js} +1 -1
  171. package/dist/chunk-TW6WEYGO.js +8 -0
  172. package/dist/{chunk-XUK35DKG.js → chunk-U5I7IF72.js} +1 -1
  173. package/dist/{chunk-IM7QHAXT.js → chunk-UFVQ7ZBP.js} +5 -5
  174. package/dist/{chunk-QSW26NAH.js → chunk-UQBPKZUR.js} +1 -1
  175. package/dist/{chunk-F4PESM6A.js → chunk-UY47AKZU.js} +6 -6
  176. package/dist/{chunk-4TL3MRRE.js → chunk-VH6GB73Q.js} +1 -1
  177. package/dist/{chunk-2GPXC6JX.js → chunk-VHAM5TD2.js} +1 -1
  178. package/dist/{chunk-5VUVKP55.js → chunk-VOHZQVFK.js} +6 -6
  179. package/dist/chunk-VT62T6B3.js +19 -0
  180. package/dist/{chunk-IH4SVMXJ.js → chunk-VX4BNYH3.js} +2 -2
  181. package/dist/{chunk-O43QLNPL.js → chunk-VY7EPQEG.js} +1 -1
  182. package/dist/chunk-WBEMN4JG.js +9 -0
  183. package/dist/{chunk-TQP3L4OC.js → chunk-WDXJWC3Y.js} +5 -5
  184. package/dist/{chunk-E4O2ZMXF.js → chunk-WJEDIAG4.js} +1 -1
  185. package/dist/{chunk-7HTURXIA.js → chunk-WRJDHFLD.js} +3 -3
  186. package/dist/chunk-X4EBWJWO.js +1 -0
  187. package/dist/{chunk-4FOTTLL7.js → chunk-XVJCVYDI.js} +2 -2
  188. package/dist/{chunk-NGVODCMV.js → chunk-XWH6KVVB.js} +3 -3
  189. package/dist/chunk-Y5ZWPU4L.js +14 -0
  190. package/dist/{chunk-7RD623PT.js → chunk-YGEK2Z6P.js} +1 -1
  191. package/dist/{chunk-55DONELU.js → chunk-YSHS6QIY.js} +6 -6
  192. package/dist/{chunk-ABD5X73I.js → chunk-YTGWIMXB.js} +1 -1
  193. package/dist/{chunk-2SHDXTB6.js → chunk-YVBFFE4Z.js} +5 -5
  194. package/dist/{chunk-B5MOPSMW.js → chunk-ZBLNVAZ4.js} +3 -3
  195. package/dist/{chunk-BIEKHPZ5.js → chunk-ZDK2JYH5.js} +52 -52
  196. package/dist/{chunk-FFZ7KPIV.js → chunk-ZKOIGLRF.js} +7 -7
  197. package/dist/data/DataTable.js +1 -1
  198. package/dist/data/Kanban.js +1 -1
  199. package/dist/data/ListFooter.js +1 -1
  200. package/dist/data/ListLoadError.js +1 -1
  201. package/dist/data/Pagination.js +1 -1
  202. package/dist/file-intake/index.js +1 -1
  203. package/dist/format/index.js +1 -1
  204. package/dist/forms/AlignmentGrid.js +1 -1
  205. package/dist/forms/BorderInput.js +1 -1
  206. package/dist/forms/BrandAssetEditor.js +1 -1
  207. package/dist/forms/Button.js +1 -1
  208. package/dist/forms/Calendar.js +1 -1
  209. package/dist/forms/ColorPicker.js +1 -1
  210. package/dist/forms/ComposerAttachments.js +1 -1
  211. package/dist/forms/CornersInput.js +1 -1
  212. package/dist/forms/DatePicker.js +1 -1
  213. package/dist/forms/DateRangePicker.js +1 -1
  214. package/dist/forms/DateTimePicker.js +1 -1
  215. package/dist/forms/DisplayChips.js +1 -1
  216. package/dist/forms/FilePicker.js +1 -1
  217. package/dist/forms/FormErrorSummary.js +1 -1
  218. package/dist/forms/IconButton.js +1 -1
  219. package/dist/forms/IconPicker.js +1 -1
  220. package/dist/forms/ImageFocusPoint.js +1 -1
  221. package/dist/forms/InputNumber.js +1 -1
  222. package/dist/forms/LinkPicker.js +1 -1
  223. package/dist/forms/MediaLibrary.d.ts +157 -0
  224. package/dist/forms/MediaLibrary.js +2 -0
  225. package/dist/forms/MediaUploadField.js +1 -1
  226. package/dist/forms/MediaUploadGrid.d.ts +54 -3
  227. package/dist/forms/MediaUploadGrid.js +1 -1
  228. package/dist/forms/MediaUsedInList.js +1 -1
  229. package/dist/forms/NumericKeypad.js +1 -1
  230. package/dist/forms/PictureTiles.js +1 -1
  231. package/dist/forms/PositionInput.js +1 -1
  232. package/dist/forms/Segmented.js +1 -1
  233. package/dist/forms/Select.js +1 -1
  234. package/dist/forms/SidesInput.js +1 -1
  235. package/dist/forms/Slider.js +1 -1
  236. package/dist/forms/Snippet.js +1 -1
  237. package/dist/forms/SplitButton.js +1 -1
  238. package/dist/forms/TagInput.js +1 -1
  239. package/dist/forms/TextToolbar.js +1 -1
  240. package/dist/forms/TimePicker.js +1 -1
  241. package/dist/forms/WidthsBar.js +1 -1
  242. package/dist/forms/mediaLibraryMenu.d.ts +64 -0
  243. package/dist/forms/mediaLibraryMenu.js +2 -0
  244. package/dist/forms/mediaMoveItems.d.ts +42 -3
  245. package/dist/forms/mediaMoveItems.js +1 -1
  246. package/dist/forms/useFileIntake.js +1 -1
  247. package/dist/icons/efficient-glyphs.js +1 -1
  248. package/dist/icons/efficient-looks.js +1 -1
  249. package/dist/icons/efficient.js +1 -1
  250. package/dist/icons/index.js +1 -1
  251. package/dist/icons/looks/map.js +1 -1
  252. package/dist/icons/sets.js +1 -1
  253. package/dist/index.d.ts +4 -2
  254. package/dist/index.js +424 -424
  255. package/dist/locales/zh-Hans.js +1 -1
  256. package/dist/map/index.js +6 -6
  257. package/dist/markdown/index.js +1 -1
  258. package/dist/page-tabs/index.js +5 -5
  259. package/dist/pdf/index.js +1 -1
  260. package/dist/shell/Accordion.js +1 -1
  261. package/dist/shell/AppUpdateBanner.js +1 -1
  262. package/dist/shell/Avatar.js +1 -1
  263. package/dist/shell/Banner.js +1 -1
  264. package/dist/shell/Breadcrumbs.js +1 -1
  265. package/dist/shell/BudgetBar.js +1 -1
  266. package/dist/shell/Card.js +1 -1
  267. package/dist/shell/ColoredBadge.js +1 -1
  268. package/dist/shell/ConfirmDialog.js +1 -1
  269. package/dist/shell/ContainerFillChart.js +1 -1
  270. package/dist/shell/ContextMenu.js +1 -1
  271. package/dist/shell/CountBadge.js +1 -1
  272. package/dist/shell/Dialog.js +1 -1
  273. package/dist/shell/Drawer.js +1 -1
  274. package/dist/shell/DropdownMenu.js +1 -1
  275. package/dist/shell/EditableGrid.js +1 -1
  276. package/dist/shell/EmptyState.js +1 -1
  277. package/dist/shell/GlobalSearch.js +1 -1
  278. package/dist/shell/HelpCenter.js +1 -1
  279. package/dist/shell/IconRail.js +1 -1
  280. package/dist/shell/ImageLightbox.js +1 -1
  281. package/dist/shell/LanguageSelect.js +1 -1
  282. package/dist/shell/Markdown.js +1 -1
  283. package/dist/shell/MetricBar.js +1 -1
  284. package/dist/shell/MetricBarLegend.js +1 -1
  285. package/dist/shell/MilestoneTimeline.js +1 -1
  286. package/dist/shell/PageHeader.js +1 -1
  287. package/dist/shell/PopupMenu.js +1 -1
  288. package/dist/shell/ProductionTimeline.js +1 -1
  289. package/dist/shell/ResizeHandle.js +1 -1
  290. package/dist/shell/Result.js +1 -1
  291. package/dist/shell/SearchableSelect.js +1 -1
  292. package/dist/shell/SettingReset.js +1 -1
  293. package/dist/shell/SettingRow.js +1 -1
  294. package/dist/shell/SidebarLayout.js +1 -1
  295. package/dist/shell/SidebarNav.js +1 -1
  296. package/dist/shell/SortableList.js +1 -1
  297. package/dist/shell/Statistic.js +1 -1
  298. package/dist/shell/StatusBadge.js +1 -1
  299. package/dist/shell/StepChain.js +1 -1
  300. package/dist/shell/Stepper.js +1 -1
  301. package/dist/shell/Tabs.js +1 -1
  302. package/dist/shell/TimeAgo.js +1 -1
  303. package/dist/shell/TimelineTrack.js +1 -1
  304. package/dist/shell/Tooltip.d.ts +9 -1
  305. package/dist/shell/Tooltip.js +1 -1
  306. package/dist/shell/TopNav.js +1 -1
  307. package/dist/shell/TransferProgress.js +1 -1
  308. package/dist/shell/Tree.js +1 -1
  309. package/dist/shell/language.js +1 -1
  310. package/dist/shell/strings.d.ts +88 -0
  311. package/dist/shell/strings.js +1 -1
  312. package/dist/shell/toast.js +1 -1
  313. package/dist/telemetry/index.js +1 -1
  314. package/dist/templates/AuthScreen.js +1 -1
  315. package/dist/templates/ChatTemplate.js +1 -1
  316. package/dist/templates/CheckoutTemplate.js +1 -1
  317. package/dist/templates/DashboardTemplate.js +1 -1
  318. package/dist/templates/DataTablePage.js +1 -1
  319. package/dist/templates/EmailTemplate.js +1 -1
  320. package/dist/templates/ErrorBoundary.js +1 -1
  321. package/dist/templates/ErrorPage.js +1 -1
  322. package/dist/templates/FormLayoutPage.js +1 -1
  323. package/dist/templates/GalleryTemplate.js +1 -1
  324. package/dist/ui/index.d.ts +4 -2
  325. package/dist/ui/index.js +1 -1
  326. package/dist/version.js +1 -1
  327. package/package.json +1 -1
  328. package/dist/Calculator-PH6NVEEZ.js +0 -29
  329. package/dist/PdfViewer-GODDA4GG.js +0 -1
  330. package/dist/Sidebar-SJMMY2Y2.js +0 -43
  331. package/dist/chunk-2LXTJXWC.js +0 -6
  332. package/dist/chunk-36DYXGQI.js +0 -7
  333. package/dist/chunk-3NWCVZRK.js +0 -10
  334. package/dist/chunk-3P7SBAKK.js +0 -3
  335. package/dist/chunk-6UOMJ7E4.js +0 -2
  336. package/dist/chunk-ABDT4M5L.js +0 -19
  337. package/dist/chunk-BZWTFLQD.js +0 -15
  338. package/dist/chunk-CIGHIX6Z.js +0 -14
  339. package/dist/chunk-DAJTVAWO.js +0 -11
  340. package/dist/chunk-ENVCMR3M.js +0 -5
  341. package/dist/chunk-H5VGRHNT.js +0 -9
  342. package/dist/chunk-HLGE6TVE.js +0 -4
  343. package/dist/chunk-HMZLRXLA.js +0 -1
  344. package/dist/chunk-JH4W3R4Q.js +0 -11
  345. package/dist/chunk-KKZZAK76.js +0 -1
  346. package/dist/chunk-LYLEH25Y.js +0 -1
  347. package/dist/chunk-NI76QOA2.js +0 -2
  348. package/dist/chunk-NZ67C5OK.js +0 -12
  349. package/dist/chunk-OHSJWKNV.js +0 -14
  350. package/dist/chunk-Q75PSCZ5.js +0 -20
  351. package/dist/chunk-SIQSD3QT.js +0 -8
  352. package/dist/chunk-TCB2J3PS.js +0 -9
  353. package/dist/chunk-UDD7GB4F.js +0 -2
  354. package/dist/chunk-WMO2JQNL.js +0 -8
  355. package/dist/chunk-WOHOIJRZ.js +0 -3
  356. package/dist/chunk-X7ZBGXUU.js +0 -1
  357. /package/dist/{chunk-PCGZS6S4.js → chunk-276AUQNN.js} +0 -0
@@ -1,5 +1,5 @@
1
- import{ChartTooltip as e}from"./chunk-P5BOTIJU.js";import{CartesianPlot as l}from"./chunk-KS3AQKHD.js";import{STATUS_VARS as o}from"./chunk-TZFACUMR.js";import{useShellStrings as t,useShellLocale as a}from"./chunk-KKZZAK76.js";import{formatPlain as i,formatFixed as r}from"./chunk-C3QOHMR6.js";import{jsx as c,jsxs as n,Fragment as s}from"react/jsx-runtime";function h({candles:h,variant:m="candle",height:p=260,width:d,formatValue:u,yAxisLabel:b,label:y,className:x,emptyLabel:k}){const g=t().charts,f=a(),w=u??(e=>Number.isInteger(e)?i(e,f):r(e,2,f)),M=y??g.price,v=h.flatMap(e=>[e.low,e.high]).filter(Number.isFinite),j=Math.min(...v),A=Math.max(...v),K=.08*(A-j)||1;/* @__PURE__ */
2
- return c(l,{labels:h.map(e=>e.label),values:v,height:p,width:d,min:j-K,max:A+K,bandPadding:.42,formatValue:w,yAxisLabel:b,className:x,emptyLabel:k,ariaLabel:g.ohlc(M,h.length),tooltip:l=>{const t=h[l],a=t.close>=t.open,i=a?o.good:o.critical;/* @__PURE__ */
1
+ import{ChartTooltip as e}from"./chunk-P5BOTIJU.js";import{CartesianPlot as l}from"./chunk-FPDKMCQH.js";import{STATUS_VARS as o}from"./chunk-TZFACUMR.js";import{useShellStrings as t,useShellLocale as a}from"./chunk-ETSKG62F.js";import{formatPlain as i,formatFixed as r}from"./chunk-C3QOHMR6.js";import{jsx as c,jsxs as n,Fragment as s}from"react/jsx-runtime";function h({candles:h,variant:m="candle",height:p=260,width:d,formatValue:u,yAxisLabel:b,label:y,className:x,emptyLabel:k}){const g=t().charts,f=a(),w=u??(e=>Number.isInteger(e)?i(e,f):r(e,2,f)),M=y??g.price,v=h.flatMap(e=>[e.low,e.high]).filter(Number.isFinite),j=Math.min(...v),L=Math.max(...v),A=.08*(L-j)||1;/* @__PURE__ */
2
+ return c(l,{labels:h.map(e=>e.label),values:v,height:p,width:d,min:j-A,max:L+A,bandPadding:.42,formatValue:w,yAxisLabel:b,className:x,emptyLabel:k,ariaLabel:g.ohlc(M,h.length),tooltip:l=>{const t=h[l],a=t.close>=t.open,i=a?o.good:o.critical;/* @__PURE__ */
3
3
  return c(e,{title:t.label,rows:[{key:"open",label:g.open,color:i,value:w(t.open)},{key:"high",label:g.high,color:i,value:w(t.high)},{key:"low",label:g.low,color:i,value:w(t.low)},{key:"close",label:g.close,color:i,value:w(t.close)}],emphasisKey:"close",footnote:a?g.closedAbove:g.closedBelow})},children:({x:e,y:l,active:t})=>/* @__PURE__ */c("g",{children:h.map((a,i)=>{const r=a.close>=a.open,h=r?o.good:o.critical,p=e.center(i),d=Math.max(3,e.bandwidth),u=null!==t&&t!==i,b=l(Math.max(a.open,a.close)),y=Math.max(1,Math.abs(l(a.close)-l(a.open)));/* @__PURE__ */
4
4
  return n("g",{opacity:u?.45:1,children:[
5
5
  /* @__PURE__ */c("line",{x1:p,y1:l(a.high),x2:p,y2:l(a.low),stroke:h,strokeWidth:1.5}),"candle"===m?/* @__PURE__ */c("rect",{x:p-d/2,y:b,width:d,height:y,rx:1,fill:r?h:"transparent",fillOpacity:r?.85:1,stroke:h,strokeWidth:1.5}):/* @__PURE__ */n(s,{children:[
@@ -1,4 +1,4 @@
1
- import{Popover as e}from"./chunk-RNBM5JZI.js";import{IconButton_default as r}from"./chunk-HMZLRXLA.js";import{Icon as n}from"./chunk-42BBJJDP.js";import{Tooltip as a}from"./chunk-2LXTJXWC.js";import{useShellStrings as l}from"./chunk-KKZZAK76.js";import{useRef as t}from"react";import{jsx as i,jsxs as o}from"react/jsx-runtime";var s={ArrowLeft:[0,-1],ArrowRight:[0,1],ArrowUp:[-1,0],ArrowDown:[1,0]};function c({value:c,onChange:m,options:u,label:d,emptyValue:h,columns:p=5,disabled:f=!1,className:v=""}){const g=l(),b=g.iconPicker,x=g.iconNames,N=e=>e.label??x[e.value]??e.value,w=t([]),k=Math.max(0,u.findIndex(e=>e.value===c)),A=u[k],j=A?.value===h,C=t(null);/* @__PURE__ */
2
- return i(e,{className:v,disabled:f,triggerLabel:A?b.button(d,N(A)):d,"aria-label":d,initialFocus:C,panelClassName:"!p-2",trigger:/* @__PURE__ */o("span",{className:"inline-flex items-center gap-2",children:[/* @__PURE__ */i("span",j||!A?{className:"text-sm",children:A?N(A):""}:{"aria-hidden":"true",className:"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:A.icon}),
1
+ import{Popover as e}from"./chunk-RNBM5JZI.js";import{IconButton_default as r}from"./chunk-4CANQ3B3.js";import{Icon as n}from"./chunk-KIBL6M3T.js";import{Tooltip as a}from"./chunk-22S6LG6D.js";import{useShellStrings as l}from"./chunk-ETSKG62F.js";import{useRef as t}from"react";import{jsx as i,jsxs as o}from"react/jsx-runtime";var s={ArrowLeft:[0,-1],ArrowRight:[0,1],ArrowUp:[-1,0],ArrowDown:[1,0]};function c({value:c,onChange:m,options:u,label:d,emptyValue:h,columns:p=5,disabled:f=!1,className:v=""}){const g=l(),b=g.iconPicker,N=g.iconNames,x=e=>e.label??N[e.value]??e.value,w=t([]),k=Math.max(0,u.findIndex(e=>e.value===c)),j=u[k],A=j?.value===h,C=t(null);/* @__PURE__ */
2
+ return i(e,{className:v,disabled:f,triggerLabel:j?b.button(d,x(j)):d,"aria-label":d,initialFocus:C,panelClassName:"!p-2",trigger:/* @__PURE__ */o("span",{className:"inline-flex items-center gap-2",children:[/* @__PURE__ */i("span",A||!j?{className:"text-sm",children:j?x(j):""}:{"aria-hidden":"true",className:"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:j.icon}),
3
3
  /* @__PURE__ */i(n,{name:"chevron-down",className:"h-4 w-4"})]}),children:({close:e})=>/* @__PURE__ */i("div",{role:"listbox","aria-label":d,className:"grid gap-1",style:{gridTemplateColumns:`repeat(${p}, 2rem)`},children:u.map((n,l)=>{const t=n.value===c;/* @__PURE__ */
4
- return i(a,{content:N(n),children:/* @__PURE__ */i(r,{ref:e=>{w.current[l]=e,l===k&&(C.current=e)},role:"option","aria-selected":t,"aria-label":N(n),pressed:t,tabIndex:l===k?0:-1,onKeyDown:e=>((e,r)=>{const n=s[r.key];if(!n)return;r.preventDefault();const a=Math.floor(e/p)+n[0],l=e%p+n[1];if(a<0||l<0||l>=p)return;const t=a*p+l;if(!(t>=u.length)){for(const[e,r]of w.current.entries())r?.setAttribute("tabindex",e===t?"0":"-1");w.current[t]?.focus()}})(l,e),onClick:()=>{m(n.value),e()},children:/* @__PURE__ */i("span",{"aria-hidden":"true",className:"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:n.icon})})},n.value)})})})}export{c as IconPicker};
4
+ return i(a,{content:x(n),children:/* @__PURE__ */i(r,{ref:e=>{w.current[l]=e,l===k&&(C.current=e)},role:"option","aria-selected":t,"aria-label":x(n),pressed:t,tabIndex:l===k?0:-1,onKeyDown:e=>((e,r)=>{const n=s[r.key];if(!n)return;r.preventDefault();const a=Math.floor(e/p)+n[0],l=e%p+n[1];if(a<0||l<0||l>=p)return;const t=a*p+l;if(!(t>=u.length)){for(const[e,r]of w.current.entries())r?.setAttribute("tabindex",e===t?"0":"-1");w.current[t]?.focus()}})(l,e),onClick:()=>{m(n.value),e()},children:/* @__PURE__ */i("span",{"aria-hidden":"true",className:"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:n.icon})})},n.value)})})})}export{c as IconPicker};
@@ -0,0 +1,14 @@
1
+ import{FormField as e}from"./chunk-MVQBVPWP.js";import{zoneFocusClass as r,mediaPromptLine as t,UploadGlyph as a,dropzoneClass as n,BusyOverlay as l,isVideoUrl as i,mediaFileName as o,FilenameBadge as s}from"./chunk-6GVJ6IKD.js";import{useFileIntake as d,FileIntakeAlert as c}from"./chunk-PG6AVBSR.js";import{MENU_ON_MEDIA_ATTR as m}from"./chunk-5QFPTDQF.js";import{ColoredBadge as u}from"./chunk-MFEJ6TYE.js";import{Icon as p}from"./chunk-KIBL6M3T.js";import{Tooltip as h}from"./chunk-22S6LG6D.js";import{useShellStrings as f}from"./chunk-ETSKG62F.js";import{useId as g,useState as b,useRef as y}from"react";import{jsxs as v,jsx as x}from"react/jsx-runtime";var k=112,D=/* @__PURE__ */x(p,{name:"close",strokeWidth:2,strokeLinecap:"round","aria-hidden":"true",className:"h-3 w-3"});function w({items:p,onPick:k,onFiles:w,onRemove:N,onReorder:j,dragType:K,dropType:T,onDropData:C,label:F,hint:I,error:P,required:S,className:A,accept:L="image/*",maxSizeBytes:E,maxFiles:M,fit:z="cover",thumbSize:$=96,placeholder:O,cta:B,acceptHint:G,showCover:H=!1,coverLabel:R,busy:V=!1,busyLabel:Q,progress:W,disabled:q=!1,readOnly:J=!1,selected:U,onItemClick:Y,onItemDoubleClick:X,onItemContextMenu:Z,menuOnMedia:_=!1}){const ee=f().media,re=B??ee.cta,te=R??ee.cover,ae=Q??ee.uploading,ne=g(),[le,ie]=b(null),oe=q||V,se=!(!k&&!w||oe||J),de=!!N&&!oe&&!J,ce=!!j&&!oe&&!J,me=!!K&&!q&&!ce,ue=!(!T||!C||oe||J),pe=r(oe),he=O??t(L,ee),fe=d({accept:L,maxSizeBytes:E,maxFiles:M,acceptHint:G,multiple:!0,disabled:!se,currentCount:p.length,onAccept:e=>{if(w)w(e);else for(const r of e)k(r)}}),[ge,be]=b(!1),ye=y(0),ve=e=>ue&&Array.from(e.dataTransfer?.types??[]).includes(T),xe=fe.zoneProps,ke={onDragEnter:e=>{if(!ve(e))return xe.onDragEnter?.(e);e.preventDefault(),ye.current+=1,be(!0)},onDragOver:e=>{if(!ve(e))return xe.onDragOver?.(e);e.preventDefault(),e.dataTransfer.dropEffect="link",ge||be(!0)},onDragLeave:e=>{if(!ve(e))return xe.onDragLeave?.(e);ye.current=Math.max(0,ye.current-1),0===ye.current&&be(!1)},onDrop:e=>{if(!ve(e))return xe.onDrop?.(e);e.preventDefault(),ye.current=0,be(!1);const r=e.dataTransfer.getData(T);r&&C(r)}},De=fe.dragOver||ge,we=()=>{se&&(k?k():fe.open())},Ne={width:$,height:$},je=null==U?null:new Set(U),Ke=!!Y,Te=$<112,Ce=(e,r)=>{const t=e.kind?"video"===e.kind:i(e.url,L),a=e.name??o(e.url),n=H&&(e.cover??0===r);/* @__PURE__ */
2
+ return v("div",{...Ke?{"data-grid-item":"","data-grid-id":e.id,role:"option"}:{},..._?{[m]:""}:{},"aria-selected":je?je.has(e.id):void 0,onClick:Ke?r=>{r.target.closest?.("button")||Y(e.id,{ctrlKey:r.ctrlKey,metaKey:r.metaKey,shiftKey:r.shiftKey})}:void 0,onDoubleClick:X?()=>X(e.id):void 0,onContextMenu:Z?r=>Z(e.id,r):void 0,draggable:ce||me&&!!e.dragData||void 0,onDragStart:ce?e=>{e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",String(r)),ie(r)}:me&&e.dragData?r=>{r.dataTransfer.effectAllowed="link",r.dataTransfer.setData(K,e.dragData)}:void 0,onDragEnd:ce?()=>ie(null):void 0,onDragOver:ce?e=>{null!=le&&(e.preventDefault(),e.stopPropagation())}:void 0,onDrop:ce?e=>{null!=le&&(e.preventDefault(),e.stopPropagation(),le!==r&&j(le,r),ie(null))}:void 0,tabIndex:ce||Ke?0:void 0,"aria-label":ce?ee.reorder(a,r+1,p.length):Ke?a:void 0,onKeyDown:Ke&&!ce?r=>{r.target!==r.currentTarget||"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),Y(e.id,{ctrlKey:r.ctrlKey,metaKey:r.metaKey,shiftKey:r.shiftKey}))}:ce?e=>{"ArrowLeft"===e.key||"ArrowUp"===e.key?r>0&&(e.preventDefault(),j(r,r-1)):"ArrowRight"!==e.key&&"ArrowDown"!==e.key||r<p.length-1&&(e.preventDefault(),j(r,r+1))}:void 0,className:["relative shrink-0 overflow-hidden rounded-md border border-gray-200 bg-gray-100",pe,le===r?"opacity-50":"",je?.has(e.id)?"ring-2 ring-blue-500 ring-offset-1":"",Ke?"cursor-pointer":""].join(" "),style:{...Ne,cursor:ce?"move":void 0},children:[t?/* @__PURE__ */x("video",{src:e.url,muted:!0,playsInline:!0,preload:"metadata","aria-label":a,className:"h-full w-full",style:{objectFit:z}}):/* @__PURE__ */x("img",{src:e.url,alt:a,className:"h-full w-full",style:{objectFit:z}}),n&&/* @__PURE__ */x("span",{className:"absolute left-1 top-1 rounded bg-blue-600 px-2 py-0.5 text-xs font-medium text-white",children:te}),!n&&null!=e.mark&&/* @__PURE__ */x("span",{className:"absolute left-1 top-1 inline-flex items-center gap-1 rounded px-2 py-0.5 text-xs font-medium text-white",style:{background:"var(--rosh-media-scrim)"},children:e.mark}),!n&&null==e.mark&&!!e.badges?.length&&
3
+ /* @__PURE__ */x("span",{"data-tile-badges":"",className:"absolute left-1 top-1 flex flex-nowrap items-center gap-1 overflow-hidden rounded-md bg-white p-0.5 shadow-sm",style:{maxWidth:"calc(100% - 8px)"},children:e.badges.map(e=>/* @__PURE__ */x("span",{"data-tile-badge":"",className:"flex min-w-0",children:Te?
4
+ /* @__PURE__ */x(h,{content:e.label,children:/* @__PURE__ */x("span",{tabIndex:0,"aria-label":e.label,className:`flex rounded-full ${pe}`,children:/* @__PURE__ */x(u,{tone:e.tone,size:"xs",children:/* @__PURE__ */v("span",{"aria-hidden":"true",className:"inline-flex items-center gap-0.5",children:[
5
+ /* @__PURE__ */x("span",{className:"inline-flex h-3 w-3 shrink-0 items-center justify-center",children:e.icon}),null!=e.count&&/* @__PURE__ */x("span",{children:e.count})]})})})}):/* @__PURE__ */x(u,{tone:e.tone,size:"xs",children:e.label})},e.key))}),null!=e.caption&&/* @__PURE__ */x(s,{children:e.caption}),de&&/* @__PURE__ */x("button",{type:"button",onClick:()=>N(e.id),"aria-label":e.removeLabel??ee.removeItem(a),className:`absolute right-1 top-1 flex h-5 w-5 items-center justify-center rounded-full text-white ${pe}`,style:{background:"var(--rosh-media-scrim-button)"},children:D})]},e.id)},Fe=se&&/* @__PURE__ */v("button",{type:"button",onClick:()=>we(),"aria-label":ee.addMedia,className:`flex shrink-0 flex-col items-center justify-center gap-1 rounded-md border-2 border-dashed border-gray-300 bg-gray-50 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-500 ${pe}`,style:Ne,children:[
6
+ /* @__PURE__ */x(a,{className:"h-5 w-5"}),
7
+ /* @__PURE__ */x("span",{className:"text-xs font-medium text-gray-500",children:ee.add})]}),Ie=se?/* @__PURE__ */v("button",{type:"button",onClick:()=>we(),"aria-label":"string"==typeof he?he:ee.upload,className:n(De,!1,pe),style:{minHeight:$+32},children:[
8
+ /* @__PURE__ */x("span",{className:"text-gray-400",children:/* @__PURE__ */x(a,{})}),
9
+ /* @__PURE__ */x("span",{className:"px-3 text-xs text-gray-500",children:he}),
10
+ /* @__PURE__ */x("span",{className:"text-sm font-medium text-blue-600",children:re}),G&&/* @__PURE__ */x("span",{className:"text-xs text-gray-400",children:G})]}):/* @__PURE__ */x("div",{className:"flex w-full items-center justify-center rounded-lg border border-gray-200 bg-gray-50 px-3 text-xs text-gray-400",style:{minHeight:$+32},children:/* @__PURE__ */x("span",{className:V?"invisible":void 0,children:ee.empty})});/* @__PURE__ */
11
+ return v(e,{label:F,labelId:F?`${ne}-label`:void 0,htmlFor:ne,hint:I,error:P,required:S,className:A,children:[
12
+ /* @__PURE__ */v("div",{id:ne,role:"group","aria-labelledby":F?`${ne}-label`:void 0,"aria-describedby":P?`${ne}-error`:I?`${ne}-hint`:void 0,"aria-busy":V||void 0,...fe.zoneProps,...ue?ke:{},className:"relative rounded-lg transition-colors",style:{...oe?{opacity:.6}:{},...De?{boxShadow:"0 0 0 2px var(--rosh-drop-ring)"}:{}},children:[0===p.length?Ie:/* @__PURE__ */v("div",{className:"flex flex-wrap gap-2",children:[Ke?
13
+ /* @__PURE__ */x("div",{role:"listbox","aria-multiselectable":!!je||void 0,"aria-label":"string"==typeof F?F:ee.files,className:"contents",children:p.map(Ce)}):p.map(Ce),Fe]}),V&&/* @__PURE__ */x(l,{label:ae,progress:W})]}),!k&&w&&/* @__PURE__ */x("input",{...fe.inputProps}),
14
+ /* @__PURE__ */x(c,{rejections:fe.rejections})]})}export{k as FULL_BADGE_TILE_PX,w as MediaUploadGrid};
@@ -1 +1 @@
1
- import{useShellLocale as e}from"./chunk-KKZZAK76.js";import{formatPlain as t}from"./chunk-C3QOHMR6.js";import{jsx as r,jsxs as n}from"react/jsx-runtime";var i={danger:"bg-red-600 text-white",neutral:"bg-gray-600 text-white",accent:"bg-blue-600 text-white"};function a({count:a=0,max:l=99,dot:s=!1,tone:o="danger",showZero:c=!1,children:m,className:u=""}){const h=s||a>0||0===a&&c,d=e(),x=a>l?`${t(l,d)}+`:t(a,d),f=m?"":u,g=h?/* @__PURE__ */r("span",s?{className:`block h-2.5 w-2.5 rounded-full ring-2 ring-white ${i[o]} ${f}`.trim(),"aria-hidden":m?"true":void 0}:{className:`flex h-5 min-w-[1.25rem] items-center justify-center whitespace-nowrap rounded-full px-1 text-xs font-semibold tabular-nums ring-2 ring-white ${i[o]} ${f}`.trim(),children:x}):null;return m?/* @__PURE__ */n("span",{className:`relative inline-flex ${u}`.trim(),children:[m,g&&/* @__PURE__ */r("span",{className:"absolute -right-1.5 -top-1.5 flex",children:g})]}):g}export{a as CountBadge};
1
+ import{useShellLocale as e}from"./chunk-ETSKG62F.js";import{formatPlain as t}from"./chunk-C3QOHMR6.js";import{jsx as r,jsxs as n}from"react/jsx-runtime";var i={danger:"bg-red-600 text-white",neutral:"bg-gray-600 text-white",accent:"bg-blue-600 text-white"};function a({count:a=0,max:l=99,dot:s=!1,tone:o="danger",showZero:c=!1,children:m,className:u=""}){const h=s||a>0||0===a&&c,d=e(),x=a>l?`${t(l,d)}+`:t(a,d),f=m?"":u,g=h?/* @__PURE__ */r("span",s?{className:`block h-2.5 w-2.5 rounded-full ring-2 ring-white ${i[o]} ${f}`.trim(),"aria-hidden":m?"true":void 0}:{className:`flex h-5 min-w-[1.25rem] items-center justify-center whitespace-nowrap rounded-full px-1 text-xs font-semibold tabular-nums ring-2 ring-white ${i[o]} ${f}`.trim(),children:x}):null;return m?/* @__PURE__ */n("span",{className:`relative inline-flex ${u}`.trim(),children:[m,g&&/* @__PURE__ */r("span",{className:"absolute -right-1.5 -top-1.5 flex",children:g})]}):g}export{a as CountBadge};
@@ -1,4 +1,4 @@
1
- import{buildQuerySections as e,buildEmptySections as t,flattenRows as r,DEFAULT_MAGNIFIER as n,stepIndex as a,nextGroupIndex as s,SEE_ALL_ICON as l,resultTypeKey as o}from"./chunk-WGRS6QBT.js";import{useDismissPopupsOnOpen as i}from"./chunk-PKXQDCNR.js";import{SpinnerRing as c,LoadingSpinner as d}from"./chunk-Q5MD3VY6.js";import{Z_LAYERS as u}from"./chunk-62LW225J.js";import{glassStyle as p}from"./chunk-DTJRIWFR.js";import{useShellStrings as m}from"./chunk-KKZZAK76.js";import{useState as h,useRef as y,useEffect as f,useMemo as g,useId as x,useCallback as b}from"react";import{createPortal as v}from"react-dom";import{jsxs as k,jsx as w}from"react/jsx-runtime";function N(e){if(Array.isArray(e))return{results:e,truncatedTypes:[]};if(e&&"object"==typeof e&&Array.isArray(e.results)){const{results:t,truncatedTypes:r}=e;return{results:t,truncatedTypes:Array.isArray(r)?r:[]}}return{results:[],truncatedTypes:[]}}var A=[];function C(e,t,r){const[n,a]=h([]),[s,l]=h(A),[o,i]=h(!1),[c,d]=h("none"),u=y(function(){let e=0,t=null;const r=()=>{e+=1,t?.abort(),t=null};return{begin:()=>{r();const n=e,a=new AbortController;return t=a,{signal:a.signal,isCurrent:()=>n===e}},cancel:r}}());f(()=>{const n=u.current;if(e.length<r||!t||0===t.length)return n.cancel(),a(e=>0===e.length?e:[]),l(A),d("none"),void i(!1);i(!0);const s=setTimeout(async()=>{const r=n.begin(),s=await async function(e,t,r){const n=await Promise.all(e.map(async e=>{try{return{failed:!1,...N(await e(t,{signal:r}))}}catch(e){const t=r.aborted||function(e){if(!e||"object"!=typeof e)return!1;const{name:t,code:r}=e;return"AbortError"===t||"CanceledError"===t||"ERR_CANCELED"===r}(e);return{failed:!t,results:[],truncatedTypes:[]}}}));return{results:n.flatMap(e=>e.results),truncatedTypes:Array.from(new Set(n.flatMap(e=>e.truncatedTypes))),failed:n.filter(e=>e.failed).length}}(t,e,r.signal);r.isCurrent()&&(a(s.results),l(s.truncatedTypes),d(0===s.failed?"none":s.failed>=t.length?"all":"some"),i(!1))},250);return()=>{clearTimeout(s),n.cancel()}},[e,t,r]);return{results:n,truncatedTypes:s,loading:o,failure:c,reset:b(()=>{u.current.cancel(),a(e=>0===e.length?e:[]),l(A),d("none"),i(!1)},[])}}var L=(e,t)=>`${e}-opt-${t}`;function T(e,t){if("seeAll"===e.kind)return l;if("action"===e.kind)return e.icon??n;if(e.icon)return e.icon;const r=t?.[o(e.result)];return r||n}function E({sections:e,activeIdx:t,listId:r,label:n,typeIcons:a,groupCount:s,groupLabel:l,onHover:o,onPick:i}){let c=0;/* @__PURE__ */
1
+ import{buildQuerySections as e,buildEmptySections as t,flattenRows as r,DEFAULT_MAGNIFIER as n,stepIndex as a,nextGroupIndex as s,SEE_ALL_ICON as l,resultTypeKey as o}from"./chunk-WGRS6QBT.js";import{useDismissPopupsOnOpen as i}from"./chunk-PKXQDCNR.js";import{SpinnerRing as c,LoadingSpinner as d}from"./chunk-Q5MD3VY6.js";import{Z_LAYERS as u}from"./chunk-62LW225J.js";import{glassStyle as p}from"./chunk-DTJRIWFR.js";import{useShellStrings as m}from"./chunk-ETSKG62F.js";import{useState as h,useRef as y,useEffect as f,useMemo as g,useId as x,useCallback as b}from"react";import{createPortal as v}from"react-dom";import{jsxs as k,jsx as w}from"react/jsx-runtime";function N(e){if(Array.isArray(e))return{results:e,truncatedTypes:[]};if(e&&"object"==typeof e&&Array.isArray(e.results)){const{results:t,truncatedTypes:r}=e;return{results:t,truncatedTypes:Array.isArray(r)?r:[]}}return{results:[],truncatedTypes:[]}}var A=[];function C(e,t,r){const[n,a]=h([]),[s,l]=h(A),[o,i]=h(!1),[c,d]=h("none"),u=y(function(){let e=0,t=null;const r=()=>{e+=1,t?.abort(),t=null};return{begin:()=>{r();const n=e,a=new AbortController;return t=a,{signal:a.signal,isCurrent:()=>n===e}},cancel:r}}());f(()=>{const n=u.current;if(e.length<r||!t||0===t.length)return n.cancel(),a(e=>0===e.length?e:[]),l(A),d("none"),void i(!1);i(!0);const s=setTimeout(async()=>{const r=n.begin(),s=await async function(e,t,r){const n=await Promise.all(e.map(async e=>{try{return{failed:!1,...N(await e(t,{signal:r}))}}catch(e){const t=r.aborted||function(e){if(!e||"object"!=typeof e)return!1;const{name:t,code:r}=e;return"AbortError"===t||"CanceledError"===t||"ERR_CANCELED"===r}(e);return{failed:!t,results:[],truncatedTypes:[]}}}));return{results:n.flatMap(e=>e.results),truncatedTypes:Array.from(new Set(n.flatMap(e=>e.truncatedTypes))),failed:n.filter(e=>e.failed).length}}(t,e,r.signal);r.isCurrent()&&(a(s.results),l(s.truncatedTypes),d(0===s.failed?"none":s.failed>=t.length?"all":"some"),i(!1))},250);return()=>{clearTimeout(s),n.cancel()}},[e,t,r]);return{results:n,truncatedTypes:s,loading:o,failure:c,reset:b(()=>{u.current.cancel(),a(e=>0===e.length?e:[]),l(A),d("none"),i(!1)},[])}}var L=(e,t)=>`${e}-opt-${t}`;function T(e,t){if("seeAll"===e.kind)return l;if("action"===e.kind)return e.icon??n;if(e.icon)return e.icon;const r=t?.[o(e.result)];return r||n}function E({sections:e,activeIdx:t,listId:r,label:n,typeIcons:a,groupCount:s,groupLabel:l,onHover:o,onPick:i}){let c=0;/* @__PURE__ */
2
2
  return w("div",{id:r,role:"listbox","aria-label":n,className:"py-1",children:e.map(e=>/* @__PURE__ */k("div",{role:"group","aria-label":l(e.title,e.count,!!e.truncated),children:[
3
3
  /* @__PURE__ */k("div",{"aria-hidden":"true",className:"flex items-center justify-between px-4 pt-2 pb-1 text-2xs font-semibold uppercase tracking-wide text-gray-400",children:[
4
4
  /* @__PURE__ */w("span",{children:e.title}),
@@ -6,22 +6,22 @@ return w("div",{id:r,role:"listbox","aria-label":n,className:"py-1",children:e.m
6
6
  return k("div",{id:L(r,n),role:"option","aria-selected":s,className:"flex items-center gap-3 w-full px-4 py-3 text-left cursor-pointer transition-colors "+(s?"bg-blue-50":"hover:bg-gray-50"),onMouseDown:e=>e.preventDefault(),onClick:()=>i(e),onMouseEnter:()=>o(n),children:[
7
7
  /* @__PURE__ */w("svg",{className:"h-4 w-4 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:/* @__PURE__ */w("path",{strokeLinecap:"round",strokeLinejoin:"round",d:T(e,a)})}),
8
8
  /* @__PURE__ */k("div",{className:"flex-1 min-w-0",children:[
9
- /* @__PURE__ */w("p",{className:"text-sm font-medium truncate "+(u?"text-blue-600":"text-gray-900"),children:e.label}),d&&/* @__PURE__ */w("p",{className:"text-xs text-gray-400 truncate",children:d})]}),l&&/* @__PURE__ */w("span",{className:"shrink-0 rounded-full bg-gray-100 px-2 py-0.5 text-3xs font-medium text-gray-500",children:l})]},e.key)})]},e.key))})}var j="react-os-shell:open-global-search";function D(){"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(j))}function I({providers:l,typeIcons:o,typeLabels:N,listRoutes:A,placeholder:T,quickActions:D,onSelect:I,recent:K,onRecord:R,favorites:M,hotkey:P=!0}={}){const $=m().search,B=T??$.placeholder,[W,S]=h(!1),[z,F]=h(""),[Q,G]=h(0),H=y(null),{results:J,truncatedTypes:V,loading:Z,failure:q,reset:U}=C(z,l,2);f(()=>{const e=e=>{P&&!e.defaultPrevented&&(e.ctrlKey||e.metaKey)&&"k"===e.key&&(e.preventDefault(),S(e=>!e)),"Escape"===e.key&&W&&S(!1)},t=()=>S(!0);return window.addEventListener("keydown",e),window.addEventListener(j,t),()=>{window.removeEventListener("keydown",e),window.removeEventListener(j,t)}},[W,P]),i(W);const[X,Y]=h(!1);W!==X&&(Y(W),W&&(F(""),G(0),U())),f(()=>{W?setTimeout(()=>H.current?.focus(),50):F("")},[W]),f(()=>{G(0)},[J]);const _=z.length>=2,O=g(()=>_?e(J,D,z,$.actions,{truncatedTypes:V,listRoutes:A,typeLabels:N,seeAllLabel:$.seeAll}):t({recent:K,favorites:M,actions:D,typeLabels:N},$),[_,J,V,A,N,D,z,K,M,$]),ee=g(()=>r(O),[O]),te=Math.min(Q,Math.max(ee.length-1,0)),re=x(),ne=ee.length>0;f(()=>{W&&0!==ee.length&&document.getElementById(L(re,te))?.scrollIntoView?.({block:"nearest"})},[W,te,ee.length,re]);const ae=b(e=>{S(!1),"action"!==e.kind?("result"!==e.kind&&"recent"!==e.kind||R?.(e.result),I?.(e.result)):e.action.onSelect()},[I,R]);return W?v(
10
- /* @__PURE__ */k("div",{"data-global-search":"",className:"fixed inset-0 flex items-start justify-center pt-[15vh]",style:{zIndex:u.overlay},onClick:()=>S(!1),children:[
9
+ /* @__PURE__ */w("p",{className:"text-sm font-medium truncate "+(u?"text-blue-600":"text-gray-900"),children:e.label}),d&&/* @__PURE__ */w("p",{className:"text-xs text-gray-400 truncate",children:d})]}),l&&/* @__PURE__ */w("span",{className:"shrink-0 rounded-full bg-gray-100 px-2 py-0.5 text-3xs font-medium text-gray-500",children:l})]},e.key)})]},e.key))})}var j="react-os-shell:open-global-search";function D(){"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(j))}function I({providers:l,typeIcons:o,typeLabels:N,listRoutes:A,placeholder:T,quickActions:D,onSelect:I,recent:R,onRecord:K,favorites:M,hotkey:P=!0}={}){const $=m().search,B=T??$.placeholder,[S,W]=h(!1),[F,z]=h(""),[G,Q]=h(0),H=y(null),{results:J,truncatedTypes:V,loading:q,failure:U,reset:X}=C(F,l,2);f(()=>{const e=e=>{P&&!e.defaultPrevented&&(e.ctrlKey||e.metaKey)&&"k"===e.key&&(e.preventDefault(),W(e=>!e)),"Escape"===e.key&&S&&W(!1)},t=()=>W(!0);return window.addEventListener("keydown",e),window.addEventListener(j,t),()=>{window.removeEventListener("keydown",e),window.removeEventListener(j,t)}},[S,P]),i(S);const[Y,_]=h(!1);S!==Y&&(_(S),S&&(z(""),Q(0),X())),f(()=>{S?setTimeout(()=>H.current?.focus(),50):z("")},[S]),f(()=>{Q(0)},[J]);const O=F.length>=2,Z=g(()=>O?e(J,D,F,$.actions,{truncatedTypes:V,listRoutes:A,typeLabels:N,seeAllLabel:$.seeAll}):t({recent:R,favorites:M,actions:D,typeLabels:N},$),[O,J,V,A,N,D,F,R,M,$]),ee=g(()=>r(Z),[Z]),te=Math.min(G,Math.max(ee.length-1,0)),re=x(),ne=ee.length>0;f(()=>{S&&0!==ee.length&&document.getElementById(L(re,te))?.scrollIntoView?.({block:"nearest"})},[S,te,ee.length,re]);const ae=b(e=>{W(!1),"action"!==e.kind?("result"!==e.kind&&"recent"!==e.kind||K?.(e.result),I?.(e.result)):e.action.onSelect()},[I,K]);return S?v(
10
+ /* @__PURE__ */k("div",{"data-global-search":"",className:"fixed inset-0 flex items-start justify-center pt-[15vh]",style:{zIndex:u.overlay},onClick:()=>W(!1),children:[
11
11
  /* @__PURE__ */w("div",{"data-global-search-backdrop":"",className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),
12
12
  /* @__PURE__ */k("div",{className:"relative z-10 w-full max-w-xl rounded-(--radius-popup) overflow-hidden",onClick:e=>e.stopPropagation(),style:p(),children:[
13
13
  /* @__PURE__ */k("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-gray-200",children:[
14
14
  /* @__PURE__ */w("svg",{className:"h-5 w-5 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */w("path",{strokeLinecap:"round",strokeLinejoin:"round",d:n})}),
15
- /* @__PURE__ */w("input",{ref:H,type:"text",value:z,onChange:e=>{F(e.target.value),G(0)},onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),G(a(te,1,ee.length))):"ArrowUp"===e.key?(e.preventDefault(),G(a(te,-1,ee.length))):"Tab"===e.key&&ee.length>0?(e.preventDefault(),G(s(O.map(e=>e.rows.length),te,e.shiftKey?-1:1))):"Enter"===e.key&&ee[te]&&ae(ee[te])},placeholder:B,role:"combobox","aria-expanded":ne,"aria-controls":ne?re:void 0,"aria-activedescendant":ne?L(re,te):void 0,"aria-autocomplete":"list",className:"flex-1 text-sm bg-transparent border-0 rosh-focus-ring placeholder-gray-400"}),Z&&/* @__PURE__ */w("span",{"data-global-search-spinner":"",role:"status","aria-label":$.searching,className:"flex shrink-0",children:/* @__PURE__ */w(c,{className:"h-4 w-4",ink:"text-gray-500"})}),
15
+ /* @__PURE__ */w("input",{ref:H,type:"text",value:F,onChange:e=>{z(e.target.value),Q(0)},onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),Q(a(te,1,ee.length))):"ArrowUp"===e.key?(e.preventDefault(),Q(a(te,-1,ee.length))):"Tab"===e.key&&ee.length>0?(e.preventDefault(),Q(s(Z.map(e=>e.rows.length),te,e.shiftKey?-1:1))):"Enter"===e.key&&ee[te]&&ae(ee[te])},placeholder:B,role:"combobox","aria-expanded":ne,"aria-controls":ne?re:void 0,"aria-activedescendant":ne?L(re,te):void 0,"aria-autocomplete":"list",className:"flex-1 text-sm bg-transparent border-0 rosh-focus-ring placeholder-gray-400"}),q&&/* @__PURE__ */w("span",{"data-global-search-spinner":"",role:"status","aria-label":$.searching,className:"flex shrink-0",children:/* @__PURE__ */w(c,{className:"h-4 w-4",ink:"text-gray-500"})}),
16
16
  /* @__PURE__ */w("kbd",{className:"hidden sm:inline-flex items-center rounded border border-gray-300 px-2 py-0.5 text-2xs font-medium text-gray-400",children:$.escBadge})]}),
17
- /* @__PURE__ */k("div",{className:"max-h-[50vh] overflow-y-auto",children:[Z&&0===ee.length&&/* @__PURE__ */w(d,{size:"sm",padding:"py-6",label:$.searching}),!Z&&"all"===q&&_&&/* @__PURE__ */w("div",{role:"alert",className:"px-4 py-3 text-center text-sm text-red-600",children:$.searchFailed}),!Z&&_&&0===ee.length&&"all"!==q&&/* @__PURE__ */w("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:$.noResults}),ne&&/* @__PURE__ */w(E,{sections:O,activeIdx:te,listId:re,label:$.listLabel,typeIcons:o,groupCount:$.groupCount,groupLabel:$.groupLabel,onHover:G,onPick:ae}),!Z&&"some"===q&&_&&/* @__PURE__ */w("div",{role:"status",className:"px-4 py-2 text-xs text-amber-600",children:$.partialFailure}),!Z&&!_&&0===ee.length&&/* @__PURE__ */w("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:$.minChars(2)})]}),
17
+ /* @__PURE__ */k("div",{className:"max-h-[50vh] overflow-y-auto",children:[q&&0===ee.length&&/* @__PURE__ */w(d,{size:"sm",padding:"py-6",label:$.searching}),!q&&"all"===U&&O&&/* @__PURE__ */w("div",{role:"alert",className:"px-4 py-3 text-center text-sm text-red-600",children:$.searchFailed}),!q&&O&&0===ee.length&&"all"!==U&&/* @__PURE__ */w("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:$.noResults}),ne&&/* @__PURE__ */w(E,{sections:Z,activeIdx:te,listId:re,label:$.listLabel,typeIcons:o,groupCount:$.groupCount,groupLabel:$.groupLabel,onHover:Q,onPick:ae}),!q&&"some"===U&&O&&/* @__PURE__ */w("div",{role:"status",className:"px-4 py-2 text-xs text-amber-600",children:$.partialFailure}),!q&&!O&&0===ee.length&&/* @__PURE__ */w("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:$.minChars(2)})]}),
18
18
  /* @__PURE__ */k("div",{className:"flex items-center justify-between px-4 py-2 border-t border-gray-100 bg-gray-50 text-2xs text-gray-400",children:[
19
19
  /* @__PURE__ */k("div",{className:"flex items-center gap-3",children:[
20
20
  /* @__PURE__ */k("span",{className:"flex items-center gap-1",children:[
21
21
  /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:"↑"}),
22
22
  /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:"↓"}),` ${$.navigate}`]}),
23
23
  /* @__PURE__ */k("span",{className:"flex items-center gap-1",children:[
24
- /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:$.enterKey}),` ${$.open}`]}),O.length>1&&/* @__PURE__ */k("span",{className:"flex items-center gap-1",children:[
24
+ /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:$.enterKey}),` ${$.open}`]}),Z.length>1&&/* @__PURE__ */k("span",{className:"flex items-center gap-1",children:[
25
25
  /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:$.tabKey}),` ${$.nextGroup}`]})]}),
26
26
  /* @__PURE__ */k("span",{className:"flex items-center gap-1",children:[
27
27
  /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:$.escKey}),` ${$.close}`]})]})]})]}),document.body):null}export{I as GlobalSearch,D as openGlobalSearch};
@@ -1,4 +1,4 @@
1
- import{useShellStrings as t,useShellLocale as e}from"./chunk-KKZZAK76.js";import{formatPlain as a}from"./chunk-C3QOHMR6.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";var o="inline-flex h-8 min-w-8 items-center justify-center rounded-md px-2 text-sm transition-colors disabled:cursor-not-allowed disabled:opacity-40";function l({page:l,pageCount:i,onPageChange:s,siblingCount:c=1,showEdges:b=!1,className:u=""}){const d=t().pagination,g=e();if(i<=1)return null;const m=function(t,e,a){const n=/* @__PURE__ */new Set([1,e]);for(let r=t-a;r<=t+a;r++)r>=1&&r<=e&&n.add(r);const r=[...n].sort((t,e)=>t-e),o=[];let l=0;for(const t of r)l&&t-l>1&&o.push("…"),o.push(t),l=t;return o}(l,i,c),p=t=>{t>=1&&t<=i&&t!==l&&s(t)};/* @__PURE__ */
1
+ import{useShellStrings as t,useShellLocale as e}from"./chunk-ETSKG62F.js";import{formatPlain as a}from"./chunk-C3QOHMR6.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";var o="inline-flex h-8 min-w-8 items-center justify-center rounded-md px-2 text-sm transition-colors disabled:cursor-not-allowed disabled:opacity-40";function l({page:l,pageCount:i,onPageChange:s,siblingCount:c=1,showEdges:b=!1,className:u=""}){const d=t().pagination,g=e();if(i<=1)return null;const m=function(t,e,a){const n=/* @__PURE__ */new Set([1,e]);for(let r=t-a;r<=t+a;r++)r>=1&&r<=e&&n.add(r);const r=[...n].sort((t,e)=>t-e),o=[];let l=0;for(const t of r)l&&t-l>1&&o.push("…"),o.push(t),l=t;return o}(l,i,c),p=t=>{t>=1&&t<=i&&t!==l&&s(t)};/* @__PURE__ */
2
2
  return n("nav",{"aria-label":d.label,className:`flex items-center gap-1 ${u}`.trim(),children:[b&&/* @__PURE__ */r("button",{type:"button","aria-label":d.first,disabled:1===l,onClick:()=>p(1),className:`${o} text-gray-600 hover:bg-gray-100`,children:"«"}),
3
3
  /* @__PURE__ */r("button",{type:"button","aria-label":d.previous,disabled:1===l,onClick:()=>p(l-1),className:`${o} text-gray-600 hover:bg-gray-100`,children:"‹"}),m.map((t,e)=>"…"===t?/* @__PURE__ */r("span",{className:"px-1 text-gray-400",children:"…"},`gap-${e}`):/* @__PURE__ */r("button",{type:"button","aria-current":t===l?"page":void 0,onClick:()=>p(t),className:`${o} ${t===l?"bg-blue-600 font-medium text-white":"text-gray-700 hover:bg-gray-100"}`,children:a(t,g)},t)),
4
4
  /* @__PURE__ */r("button",{type:"button","aria-label":d.next,disabled:l===i,onClick:()=>p(l+1),className:`${o} text-gray-600 hover:bg-gray-100`,children:"›"}),b&&/* @__PURE__ */r("button",{type:"button","aria-label":d.last,disabled:l===i,onClick:()=>p(i),className:`${o} text-gray-600 hover:bg-gray-100`,children:"»"})]})}export{l as Pagination};
@@ -1,10 +1,10 @@
1
- import{LoadingSpinner as e}from"./chunk-Q5MD3VY6.js";import{useBrowserLayoutEffect as n}from"./chunk-D65T4H6J.js";import{useShellStrings as t,useShellLocale as r}from"./chunk-KKZZAK76.js";import{formatPlain as a}from"./chunk-C3QOHMR6.js";import{useState as o,useMemo as l,useRef as i,Fragment as s}from"react";import{jsx as d,Fragment as c,jsxs as u}from"react/jsx-runtime";function m({items:m,columns:f,columnOf:p,getId:g,onMove:h,renderCard:x,onCardClick:y,sortInColumn:b,isLoading:v=!1,loadingText:N,emptyState:w,showColumnsWhenEmpty:k=!1,columnEmptyText:C,onAddItem:D,addItemText:j}){const E=t().kanban,I=r(),T=N??E.loading,A=C??E.dropHere,M=j??E.addItem,[O,$]=o(null),[H,K]=o(null),S=l(()=>{const e={};for(const n of f)e[n.value]=[];for(const n of m)(e[p(n)]??=[]).push(n);if(b)for(const n of Object.keys(e))e[n].sort(b);return e},[m,f,p,b]),q=()=>{$(null),K(null)},z=i(null),F=i(/* @__PURE__ */new Map);n(()=>{if(null!==O)return;const e=z.current;if(!e)return;const n=/* @__PURE__ */new Map,t=[];if(e.querySelectorAll("[data-kanban-card]").forEach(e=>{const r=e.dataset.kanbanCard,a=e.getBoundingClientRect();n.set(r,a);const o=F.current.get(r);if(o){const n=o.left-a.left,r=o.top-a.top;(n||r)&&t.push([e,n,r])}}),F.current=n,t.length){for(const[e,n,r]of t)e.style.transition="none",e.style.transform=`translate(${n}px, ${r}px)`;requestAnimationFrame(()=>{for(const[e]of t)e.style.transition="transform 200ms cubic-bezier(0.2, 0, 0, 1)",e.style.transform="",e.addEventListener("transitionend",()=>{e.style.transition="",e.style.transform=""},{once:!0})})}},[S,O]);return v?/* @__PURE__ */d(e,{size:"sm",padding:"p-4",label:T}):0!==m.length||k?/* @__PURE__ */d("div",{ref:z,className:"flex-1 overflow-x-auto grid-scroll",children:/* @__PURE__ */d("div",{className:"flex gap-3 h-full min-w-max pb-2",children:f.map(e=>{const n=S[e.value]??[],t=null!==H&&H.col===e.value,r=null!==O?n.findIndex(e=>g(e)===O):-1,o=t&&(-1===r||H.index!==r&&H.index!==r+1)?H.index:-1;/* @__PURE__ */
2
- return u("div",{className:"group flex flex-col w-72 shrink-0 rounded-xl bg-gray-50 border transition-colors "+(t?"border-blue-400 ring-2 ring-blue-300/60":"border-gray-200"),onDragOver:e=>{e.preventDefault();try{e.dataTransfer.dropEffect="move"}catch{}},onDrop:n=>{n.preventDefault(),(e=>{if(O&&H&&H.col===e){const n=(S[e]??[]).findIndex(e=>g(e)===O),t=-1!==n;if(!t||H.index!==n&&H.index!==n+1){const r=t&&H.index>n?H.index-1:H.index;h(O,e,r)}}q()})(e.value)},children:[
1
+ import{LoadingSpinner as e}from"./chunk-Q5MD3VY6.js";import{useBrowserLayoutEffect as n}from"./chunk-D65T4H6J.js";import{useShellStrings as t,useShellLocale as r}from"./chunk-ETSKG62F.js";import{formatPlain as a}from"./chunk-C3QOHMR6.js";import{useState as o,useMemo as l,useRef as i,Fragment as s}from"react";import{jsx as d,Fragment as c,jsxs as u}from"react/jsx-runtime";function m({items:m,columns:f,columnOf:p,getId:g,onMove:h,renderCard:x,onCardClick:y,sortInColumn:b,isLoading:v=!1,loadingText:N,emptyState:w,showColumnsWhenEmpty:k=!1,columnEmptyText:C,onAddItem:D,addItemText:E}){const j=t().kanban,I=r(),T=N??j.loading,M=C??j.dropHere,A=E??j.addItem,[O,S]=o(null),[$,F]=o(null),H=l(()=>{const e={};for(const n of f)e[n.value]=[];for(const n of m)(e[p(n)]??=[]).push(n);if(b)for(const n of Object.keys(e))e[n].sort(b);return e},[m,f,p,b]),q=()=>{S(null),F(null)},z=i(null),L=i(/* @__PURE__ */new Map);n(()=>{if(null!==O)return;const e=z.current;if(!e)return;const n=/* @__PURE__ */new Map,t=[];if(e.querySelectorAll("[data-kanban-card]").forEach(e=>{const r=e.dataset.kanbanCard,a=e.getBoundingClientRect();n.set(r,a);const o=L.current.get(r);if(o){const n=o.left-a.left,r=o.top-a.top;(n||r)&&t.push([e,n,r])}}),L.current=n,t.length){for(const[e,n,r]of t)e.style.transition="none",e.style.transform=`translate(${n}px, ${r}px)`;requestAnimationFrame(()=>{for(const[e]of t)e.style.transition="transform 200ms cubic-bezier(0.2, 0, 0, 1)",e.style.transform="",e.addEventListener("transitionend",()=>{e.style.transition="",e.style.transform=""},{once:!0})})}},[H,O]);return v?/* @__PURE__ */d(e,{size:"sm",padding:"p-4",label:T}):0!==m.length||k?/* @__PURE__ */d("div",{ref:z,className:"flex-1 overflow-x-auto grid-scroll",children:/* @__PURE__ */d("div",{className:"flex gap-3 h-full min-w-max pb-2",children:f.map(e=>{const n=H[e.value]??[],t=null!==$&&$.col===e.value,r=null!==O?n.findIndex(e=>g(e)===O):-1,o=t&&(-1===r||$.index!==r&&$.index!==r+1)?$.index:-1;/* @__PURE__ */
2
+ return u("div",{className:"group flex flex-col w-72 shrink-0 rounded-xl bg-gray-50 border transition-colors "+(t?"border-blue-400 ring-2 ring-blue-300/60":"border-gray-200"),onDragOver:e=>{e.preventDefault();try{e.dataTransfer.dropEffect="move"}catch{}},onDrop:n=>{n.preventDefault(),(e=>{if(O&&$&&$.col===e){const n=(H[e]??[]).findIndex(e=>g(e)===O),t=-1!==n;if(!t||$.index!==n&&$.index!==n+1){const r=t&&$.index>n?$.index-1:$.index;h(O,e,r)}}q()})(e.value)},children:[
3
3
  /* @__PURE__ */u("div",{className:`flex items-center justify-between px-3 py-2 rounded-t-xl text-sm font-medium ${e.accent??"text-gray-700 bg-gray-100"}`,children:[
4
4
  /* @__PURE__ */u("span",{className:"flex items-center gap-2",children:[
5
5
  /* @__PURE__ */d("span",{className:`h-2 w-2 rounded-full ${e.dot??"bg-gray-400"}`}),e.label]}),
6
6
  /* @__PURE__ */d("span",{className:"text-xs opacity-70",children:a(n.length,I)})]}),
7
- /* @__PURE__ */u("div",{className:"flex-1 overflow-y-auto p-2 space-y-2 min-h-[120px]",onDragEnter:()=>K(t=>t&&t.col===e.value&&t.index===n.length?t:{col:e.value,index:n.length}),children:[n.map((t,r)=>{const a=g(t),l=a===O;/* @__PURE__ */
7
+ /* @__PURE__ */u("div",{className:"flex-1 overflow-y-auto p-2 space-y-2 min-h-[120px]",onDragEnter:()=>F(t=>t&&t.col===e.value&&t.index===n.length?t:{col:e.value,index:n.length}),children:[n.map((t,r)=>{const a=g(t),l=a===O;/* @__PURE__ */
8
8
  return u(s,{children:[o===r&&/* @__PURE__ */d("div",{className:"h-0.5 rounded-full bg-blue-500","aria-hidden":!0}),
9
- /* @__PURE__ */d("div",{"data-kanban-card":a,draggable:!0,onDragStart:e=>{$(a);try{e.dataTransfer.effectAllowed="move"}catch{}},onDragEnter:t=>{t.stopPropagation();const a=null!==O?n.findIndex(e=>g(e)===O):-1,o=-1!==a&&a<r?r+1:r;K(n=>n&&n.col===e.value&&n.index===o?n:{col:e.value,index:o})},onDragEnd:q,onClick:y?()=>y(t):void 0,style:null===O?void 0:{opacity:l?.4:1,transition:"opacity 120ms ease"},className:"rounded-lg bg-white border border-gray-200 p-3 shadow-sm hover:border-blue-400 hover:shadow transition "+(y?"cursor-pointer":""),children:x(t)})]},a)}),n.length>0&&o===n.length&&/* @__PURE__ */d("div",{className:"h-0.5 rounded-full bg-blue-500","aria-hidden":!0}),0===n.length&&/* @__PURE__ */d("div",{className:"text-2xs text-center rounded-lg transition-all duration-150 "+(t?"border-2 border-dashed border-blue-300 bg-blue-50/50 text-blue-400 py-8":"text-gray-400 py-6"),children:A})]}),D&&/* @__PURE__ */d("div",{className:"p-2 pt-0",children:/* @__PURE__ */u("button",{type:"button",onClick:()=>D(e.value),className:"flex w-full items-center justify-center gap-1 rounded-lg px-2 min-h-8 py-1 text-xs font-medium text-gray-500 opacity-0 transition hover:bg-gray-100 hover:text-gray-700 focus-visible:opacity-100 group-hover:opacity-100",children:[
10
- /* @__PURE__ */d("span",{"aria-hidden":!0,className:"text-sm leading-none",children:"+"}),M]})})]},e.value)})})}):/* @__PURE__ */d(c,{children:w??/* @__PURE__ */d("div",{className:"text-sm text-gray-500 p-4",children:E.empty})})}export{m as Kanban};
9
+ /* @__PURE__ */d("div",{"data-kanban-card":a,draggable:!0,onDragStart:e=>{S(a);try{e.dataTransfer.effectAllowed="move"}catch{}},onDragEnter:t=>{t.stopPropagation();const a=null!==O?n.findIndex(e=>g(e)===O):-1,o=-1!==a&&a<r?r+1:r;F(n=>n&&n.col===e.value&&n.index===o?n:{col:e.value,index:o})},onDragEnd:q,onClick:y?()=>y(t):void 0,style:null===O?void 0:{opacity:l?.4:1,transition:"opacity 120ms ease"},className:"rounded-lg bg-white border border-gray-200 p-3 shadow-sm hover:border-blue-400 hover:shadow transition "+(y?"cursor-pointer":""),children:x(t)})]},a)}),n.length>0&&o===n.length&&/* @__PURE__ */d("div",{className:"h-0.5 rounded-full bg-blue-500","aria-hidden":!0}),0===n.length&&/* @__PURE__ */d("div",{className:"text-2xs text-center rounded-lg transition-all duration-150 "+(t?"border-2 border-dashed border-blue-300 bg-blue-50/50 text-blue-400 py-8":"text-gray-400 py-6"),children:M})]}),D&&/* @__PURE__ */d("div",{className:"p-2 pt-0",children:/* @__PURE__ */u("button",{type:"button",onClick:()=>D(e.value),className:"flex w-full items-center justify-center gap-1 rounded-lg px-2 min-h-8 py-1 text-xs font-medium text-gray-500 opacity-0 transition hover:bg-gray-100 hover:text-gray-700 focus-visible:opacity-100 group-hover:opacity-100",children:[
10
+ /* @__PURE__ */d("span",{"aria-hidden":!0,className:"text-sm leading-none",children:"+"}),A]})})]},e.value)})})}):/* @__PURE__ */d(c,{children:w??/* @__PURE__ */d("div",{className:"text-sm text-gray-500 p-4",children:j.empty})})}export{m as Kanban};
@@ -1,6 +1,6 @@
1
- import{MOTION as e,stagger as a}from"./chunk-465RRWBY.js";import{autoHighlightIndex as t}from"./chunk-CNYAHYE6.js";import{seriesColor as s,STATUS_VARS as l,CHART_INK as n}from"./chunk-TZFACUMR.js";import{useShellStrings as i,useShellLocale as r}from"./chunk-KKZZAK76.js";import{formatPlain as m}from"./chunk-C3QOHMR6.js";import{jsx as o,jsxs as h}from"react/jsx-runtime";function c({rows:c,max:u,formatValue:d,emphasisKey:p,highlight:g="none",emphasisTone:x,barHeight:f=12,rowGap:y=30,animate:b=!0,labelFont:N="sans",className:k,emptyLabel:v}){const $=i().charts,j=r(),w=d??(e=>m(e,j)),M=v??$.nothingToRank;if(0===c.length)/* @__PURE__ */
2
- return o("p",{className:`text-sm text-gray-500 ${k??""}`,children:M});const F=t(c.map(e=>e.value),g),R=p??(null===F?void 0:c[F]?.key),C=u??Math.max(...c.map(e=>e.value).filter(Number.isFinite),0),K=s(0);/* @__PURE__ */
3
- return o("ol",{className:`m-0 list-none p-0 ${k??""}`,style:{display:"grid",rowGap:`${Math.max(4,y-f)}px`},children:c.map((t,i)=>{const r=t.key===R,m=r?x?l[x]:s(1):R?n.muted:K,c=Number.isFinite(t.value)?t.value:null,u=null!==c&&C>0?Math.max(0,Math.min(1,c/C)):0;/* @__PURE__ */
1
+ import{MOTION as e,stagger as a}from"./chunk-465RRWBY.js";import{autoHighlightIndex as t}from"./chunk-CNYAHYE6.js";import{seriesColor as s,STATUS_VARS as l,CHART_INK as n}from"./chunk-TZFACUMR.js";import{useShellStrings as i,useShellLocale as r}from"./chunk-ETSKG62F.js";import{formatPlain as m}from"./chunk-C3QOHMR6.js";import{jsx as o,jsxs as h}from"react/jsx-runtime";function c({rows:c,max:u,formatValue:d,emphasisKey:p,highlight:g="none",emphasisTone:x,barHeight:f=12,rowGap:y=30,animate:b=!0,labelFont:N="sans",className:k,emptyLabel:v}){const $=i().charts,j=r(),w=d??(e=>m(e,j)),F=v??$.nothingToRank;if(0===c.length)/* @__PURE__ */
2
+ return o("p",{className:`text-sm text-gray-500 ${k??""}`,children:F});const M=t(c.map(e=>e.value),g),R=p??(null===M?void 0:c[M]?.key),C=u??Math.max(...c.map(e=>e.value).filter(Number.isFinite),0),T=s(0);/* @__PURE__ */
3
+ return o("ol",{className:`m-0 list-none p-0 ${k??""}`,style:{display:"grid",rowGap:`${Math.max(4,y-f)}px`},children:c.map((t,i)=>{const r=t.key===R,m=r?x?l[x]:s(1):R?n.muted:T,c=Number.isFinite(t.value)?t.value:null,u=null!==c&&C>0?Math.max(0,Math.min(1,c/C)):0;/* @__PURE__ */
4
4
  return h("li",{className:"grid gap-1",children:[
5
5
  /* @__PURE__ */h("div",{className:"flex items-baseline justify-between gap-3",children:[
6
6
  /* @__PURE__ */h("span",{className:`truncate ${"mono"===N?"font-mono ":""}text-xs text-gray-600 ${r?"font-semibold":""}`,title:t.label,children:[t.label,r&&/* @__PURE__ */o("span",{className:"sr-only",children:` ${$.emphasised}`})]}),