@astryx-vue/core 0.26.0 → 0.27.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 (278) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-Sku86l_R.js → AlertDialog-CGGkPG4T.js} +4 -4
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/AppShell/index.js +1 -1
  5. package/dist/{AppShell-CJWvaqgZ.js → AppShell-DGJgCvS6.js} +2 -2
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-C5KaulzE.js → Avatar-DpFHPRlE.js} +1 -1
  8. package/dist/AvatarGroup/index.d.ts +1 -1
  9. package/dist/Banner/index.d.ts +1 -1
  10. package/dist/Banner/index.js +1 -1
  11. package/dist/{Banner-cg2nXT_4.js → Banner-DVU5-fWC.js} +1 -1
  12. package/dist/BottomSheet/index.d.ts +1 -1
  13. package/dist/BottomSheet/index.js +2 -2
  14. package/dist/{BottomSheet-BtuF3uH6.js → BottomSheet-Dn8gpT4m.js} +3 -3
  15. package/dist/{BottomSheet-DKrJyrhw.js → BottomSheet-gctYQ3sV.js} +2 -2
  16. package/dist/Breadcrumbs/index.js +1 -1
  17. package/dist/{Breadcrumbs-Cvzwy6sZ.js → Breadcrumbs-Bt6Pp3gV.js} +1 -1
  18. package/dist/Button/index.d.ts +1 -1
  19. package/dist/Button/index.js +1 -1
  20. package/dist/{Button-D8AGK5oT.js → Button-yJiHoWps.js} +1 -1
  21. package/dist/ButtonGroup/index.d.ts +1 -1
  22. package/dist/Calendar/index.d.ts +1 -1
  23. package/dist/Card/index.d.ts +1 -1
  24. package/dist/Carousel/index.d.ts +1 -1
  25. package/dist/Carousel/index.js +1 -1
  26. package/dist/{Carousel-DrCG9wbP.js → Carousel-DPhwOTjx.js} +1 -1
  27. package/dist/Chat/index.d.ts +1 -1
  28. package/dist/Chat/index.js +1 -1
  29. package/dist/{Chat-BIHEfSec.js → Chat-RE_6Ez79.js} +4 -4
  30. package/dist/CheckboxInput/index.d.ts +1 -1
  31. package/dist/CheckboxInput/index.js +1 -1
  32. package/dist/{CheckboxInput-wmX3Ekj-.js → CheckboxInput-C-UseBJo.js} +1 -1
  33. package/dist/CheckboxList/index.d.ts +1 -1
  34. package/dist/CheckboxList/index.js +1 -1
  35. package/dist/{CheckboxList-JWXHHU-u.js → CheckboxList-CWHlG8Jq.js} +3 -3
  36. package/dist/ClickableCard/index.d.ts +1 -1
  37. package/dist/Code/index.d.ts +1 -1
  38. package/dist/Code/index.js +1 -1
  39. package/dist/{CodeBlock-PMZd9dQ9.js → CodeBlock-3QLhu3jZ.js} +1 -1
  40. package/dist/Collapsible/index.d.ts +1 -1
  41. package/dist/Collapsible/index.js +1 -1
  42. package/dist/{Collapsible-BDCJRfFN.js → Collapsible-BSRdsb6w.js} +1 -1
  43. package/dist/CommandPalette/index.d.ts +1 -1
  44. package/dist/CommandPalette/index.js +1 -1
  45. package/dist/{CommandPalette-CJyQd7P-.js → CommandPalette-CtY5ZCR7.js} +50 -20
  46. package/dist/ComplexSelector/index.d.ts +1 -1
  47. package/dist/ComplexSelector/index.js +1 -1
  48. package/dist/{ComplexSelector-DIb8LjYJ.js → ComplexSelector-DI3J30Ho.js} +2 -2
  49. package/dist/ContextMenu/index.d.ts +1 -1
  50. package/dist/ContextMenu/index.js +1 -1
  51. package/dist/{ContextMenu-HLvsROcS.js → ContextMenu-CVf4OqJP.js} +2 -2
  52. package/dist/DateInput/index.d.ts +1 -1
  53. package/dist/DateInput/index.js +1 -1
  54. package/dist/{DateInput-D5YBijbb.js → DateInput-DK-FI37x.js} +3 -3
  55. package/dist/DateRangeInput/index.d.ts +1 -1
  56. package/dist/DateRangeInput/index.js +1 -1
  57. package/dist/{DateRangeInput-BlcHsqgx.js → DateRangeInput-ClriBc4F.js} +3 -3
  58. package/dist/DateTimeInput/index.d.ts +1 -1
  59. package/dist/DateTimeInput/index.js +1 -1
  60. package/dist/{DateTimeInput-Bx3LWb9Y.js → DateTimeInput-BdXkBBYi.js} +5 -5
  61. package/dist/Dialog/index.d.ts +1 -1
  62. package/dist/Dialog/index.js +3 -3
  63. package/dist/{Dialog-CNLEL4Mf.js → Dialog-CKDlXonX.js} +1 -1
  64. package/dist/{Dialog-CxeXQTqH.js → Dialog-DjhG_vpE.js} +2 -2
  65. package/dist/{DialogHeader-CjXS_wba.js → DialogHeader-C1Bz4Knk.js} +2 -2
  66. package/dist/Divider/index.d.ts +1 -1
  67. package/dist/Drawer/index.d.ts +1 -1
  68. package/dist/Drawer/index.js +1 -1
  69. package/dist/{Drawer-B_4HN6v5.js → Drawer-BqcPP0z7.js} +2 -2
  70. package/dist/DropdownMenu/index.js +2 -2
  71. package/dist/{DropdownMenu-CvdeExRQ.js → DropdownMenu-CmbnIRug.js} +2 -2
  72. package/dist/{DropdownMenu-D_fBzKvf.js → DropdownMenu-NIGjTT7o.js} +5 -35
  73. package/dist/EmptyState/index.js +1 -1
  74. package/dist/{EmptyState-DUaFClsX.js → EmptyState-DNjqNAT3.js} +2 -2
  75. package/dist/Field/index.js +3 -3
  76. package/dist/{Field-Btyrw1hd.js → Field-DrUMz0oj.js} +1 -1
  77. package/dist/{FieldInfoTip-Dwl9HNp1.js → FieldInfoTip-DmDOcxU1.js} +1 -1
  78. package/dist/{FieldLabel-B4l3sS4O.js → FieldLabel-DsFZnW1l.js} +1 -1
  79. package/dist/FileInput/index.js +1 -1
  80. package/dist/{FileInput-BUwV9fQa.js → FileInput-0u4zjJfx.js} +3 -3
  81. package/dist/Heading/index.d.ts +1 -1
  82. package/dist/Heading/index.js +1 -1
  83. package/dist/{Heading-BuZaxfIK.js → Heading-BG1PBVkf.js} +1 -1
  84. package/dist/HoverCard/index.d.ts +1 -1
  85. package/dist/HoverCard/index.js +1 -1
  86. package/dist/{HoverCard-CZhfsvP4.js → HoverCard-Fr6RLRR8.js} +2 -2
  87. package/dist/IconButton/index.js +1 -1
  88. package/dist/{IconButton-D9ZRJ7vD.js → IconButton-CEjiXpUg.js} +1 -1
  89. package/dist/InfoTip/index.d.ts +1 -1
  90. package/dist/InfoTip/index.js +1 -1
  91. package/dist/{InfoTip-BDo2xI8h.js → InfoTip-CKRaCO6I.js} +1 -1
  92. package/dist/{InputClearButton-C-j9Nf1s.js → InputClearButton-ByUJXRmY.js} +1 -1
  93. package/dist/InputGroup/index.js +1 -1
  94. package/dist/{InputGroup-1Ukiu-dg.js → InputGroup-H8DP0TAG.js} +1 -1
  95. package/dist/InternationalizationProvider/index.d.ts +1 -1
  96. package/dist/InternationalizationProvider/index.js +1 -1
  97. package/dist/{InternationalizationProvider-B2Gv5yAm.js → InternationalizationProvider-CEmlN48L.js} +1 -1
  98. package/dist/Layout/index.js +2 -2
  99. package/dist/{Layout-DOIeCgs4.js → Layout-094k14rN.js} +1 -1
  100. package/dist/{LayoutPanel-C7Wsid2W.js → LayoutPanel-BPboQAJj.js} +1 -1
  101. package/dist/Lightbox/index.js +1 -1
  102. package/dist/{Lightbox-BOWTHnTb.js → Lightbox-LI6h7LFn.js} +3 -3
  103. package/dist/Link/index.d.ts +1 -1
  104. package/dist/Link/index.js +1 -1
  105. package/dist/{Link-ruNSnGtC.js → Link-Dx2ql41g.js} +1 -1
  106. package/dist/List/index.d.ts +1 -1
  107. package/dist/Markdown/index.d.ts +1 -1
  108. package/dist/Markdown/index.js +1 -1
  109. package/dist/{Markdown-C-KT_riK.js → Markdown-BHWf2IOO.js} +3 -3
  110. package/dist/MobileNav/index.js +1 -1
  111. package/dist/{MobileNavToggle-BGNYwwfI.js → MobileNavToggle-Dx7rmb-V.js} +2 -2
  112. package/dist/MoreMenu/index.d.ts +1 -1
  113. package/dist/MoreMenu/index.js +1 -1
  114. package/dist/{MoreMenu-DnwzVBEE.js → MoreMenu-vavlbJ-p.js} +4 -2
  115. package/dist/MultiSelector/index.d.ts +1 -1
  116. package/dist/MultiSelector/index.js +1 -1
  117. package/dist/{MultiSelector-Cl_HzKvn.js → MultiSelector-BUXFzIla.js} +5 -5
  118. package/dist/NavItem/index.d.ts +1 -1
  119. package/dist/NavMenu/index.js +2 -2
  120. package/dist/{NavMenu-pCZjhMHe.js → NavMenu-BoKuJq-K.js} +1 -1
  121. package/dist/{NavMenuItem-BIqpJmH6.js → NavMenuItem-Ez3_K8iI.js} +1 -1
  122. package/dist/NumberInput/index.d.ts +1 -1
  123. package/dist/NumberInput/index.js +1 -1
  124. package/dist/{NumberInput-Dz0H_XPw.js → NumberInput-lqUmTsqB.js} +3 -3
  125. package/dist/OverflowList/index.d.ts +1 -1
  126. package/dist/OverflowList/index.js +1 -1
  127. package/dist/{OverflowList-MCN1PhBB.js → OverflowList-B6En7wIj.js} +1 -1
  128. package/dist/Pagination/index.d.ts +1 -1
  129. package/dist/Pagination/index.js +1 -1
  130. package/dist/{Pagination-Cq9BIzPe.js → Pagination-CRrou1P-.js} +3 -3
  131. package/dist/Popover/index.d.ts +1 -1
  132. package/dist/Popover/index.js +1 -1
  133. package/dist/{Popover-BJAyg1Qh.js → Popover-sERt08TR.js} +4 -4
  134. package/dist/PowerSearch/index.d.ts +1 -1
  135. package/dist/PowerSearch/index.js +1 -1
  136. package/dist/{PowerSearch-wXnusKnz.js → PowerSearch-CUY0iULe.js} +232 -143
  137. package/dist/ProgressBar/index.d.ts +1 -1
  138. package/dist/ProgressBar/index.js +1 -1
  139. package/dist/{ProgressBar-C6x0E-BF.js → ProgressBar-yw2BCtB_.js} +1 -1
  140. package/dist/Radio/index.d.ts +1 -1
  141. package/dist/Radio/index.js +1 -1
  142. package/dist/{RadioGroup-LUDji_LA.js → RadioGroup-B8QoJyJu.js} +2 -2
  143. package/dist/RadioList/index.d.ts +1 -1
  144. package/dist/RadioList/index.js +1 -1
  145. package/dist/{RadioList-CmeUUgn-.js → RadioList-BEv82wbs.js} +1 -1
  146. package/dist/Resizable/index.d.ts +1 -1
  147. package/dist/ScrollableArea/index.d.ts +1 -1
  148. package/dist/SelectableCard/index.d.ts +1 -1
  149. package/dist/Selector/index.d.ts +1 -1
  150. package/dist/Selector/index.js +1 -1
  151. package/dist/{Selector-BL_JH51H.js → Selector-Bj4q6aT5.js} +3 -3
  152. package/dist/SideNav/index.d.ts +1 -1
  153. package/dist/SideNav/index.js +1 -1
  154. package/dist/{SideNav-DtAQA-o-.js → SideNav-CHSwzwTt.js} +3 -3
  155. package/dist/Slider/index.js +1 -1
  156. package/dist/{Slider-DEMdW9An.js → Slider-Bmksx8ng.js} +2 -2
  157. package/dist/Stack/index.d.ts +1 -1
  158. package/dist/StatusDot/index.js +1 -1
  159. package/dist/{StatusDot-_rucEf3d.js → StatusDot-Bz4l43St.js} +1 -1
  160. package/dist/Stepper/index.d.ts +1 -1
  161. package/dist/Switch/index.d.ts +1 -1
  162. package/dist/Switch/index.js +1 -1
  163. package/dist/{Switch-BxRYZTQV.js → Switch-CeNEvvTn.js} +1 -1
  164. package/dist/TabList/index.d.ts +1 -1
  165. package/dist/TabList/index.js +1 -1
  166. package/dist/{TabList-D8KzfcGB.js → TabList-BLLxHXwu.js} +1 -1
  167. package/dist/Table/index.d.ts +1 -1
  168. package/dist/Table/index.js +1 -1
  169. package/dist/{Table-DYDBgr3y.js → Table-B7MHrvdy.js} +13 -13
  170. package/dist/Text/index.d.ts +1 -1
  171. package/dist/Text/index.js +1 -1
  172. package/dist/{Text-CHauN5So.js → Text-DkSHitKh.js} +1 -1
  173. package/dist/TextArea/index.d.ts +1 -1
  174. package/dist/TextArea/index.js +1 -1
  175. package/dist/{TextArea-BJl6YH4p.js → TextArea-CAcjMvls.js} +4 -4
  176. package/dist/TextInput/index.d.ts +1 -1
  177. package/dist/TextInput/index.js +1 -1
  178. package/dist/{TextInput-CGOVY0Zk.js → TextInput-BvQQTG75.js} +4 -4
  179. package/dist/Thumbnail/index.js +1 -1
  180. package/dist/{Thumbnail-C3MvJ67s.js → Thumbnail-Bv-M13fy.js} +2 -2
  181. package/dist/{TimeField-C2of7Ok5.js → TimeField-hB88chlQ.js} +2 -2
  182. package/dist/TimeInput/index.d.ts +1 -1
  183. package/dist/TimeInput/index.js +1 -1
  184. package/dist/{TimeInput-B_YY-IHW.js → TimeInput-JrTs9r66.js} +2 -2
  185. package/dist/Timer/index.d.ts +1 -1
  186. package/dist/Timer/index.js +1 -1
  187. package/dist/{Timer-OULaFQFf.js → Timer-qjI_QrCz.js} +1 -1
  188. package/dist/Timestamp/index.d.ts +1 -1
  189. package/dist/Timestamp/index.js +1 -1
  190. package/dist/{Timestamp-B6J0nfYH.js → Timestamp-CJ_HUcek.js} +3 -3
  191. package/dist/Toast/index.js +1 -1
  192. package/dist/{Toast-BKPl8iIr.js → Toast-CFpOSuAr.js} +1 -1
  193. package/dist/ToggleButton/index.d.ts +1 -1
  194. package/dist/ToggleButton/index.js +1 -1
  195. package/dist/{ToggleButton-DfpsuhMa.js → ToggleButton-BtXMvoOA.js} +1 -1
  196. package/dist/Tokenizer/index.d.ts +2 -2
  197. package/dist/Tokenizer/index.js +1 -1
  198. package/dist/Tokenizer-iJb-WZ55.js +2067 -0
  199. package/dist/Toolbar/index.d.ts +1 -1
  200. package/dist/Tooltip/index.d.ts +1 -1
  201. package/dist/Tooltip/index.js +2 -2
  202. package/dist/{Tooltip-gT9_hIEv.js → Tooltip-ByLqPCP7.js} +1 -1
  203. package/dist/TopNav/index.d.ts +1 -1
  204. package/dist/TopNav/index.js +1 -1
  205. package/dist/{TopNav-BsrhSbkn.js → TopNav-Ce79A3zT.js} +3 -3
  206. package/dist/TreeList/index.d.ts +1 -1
  207. package/dist/Typeahead/index.d.ts +1 -1
  208. package/dist/Typeahead/index.js +2 -2
  209. package/dist/{Typeahead-CdLc7S2v.js → Typeahead-D2O3n477.js} +3 -3
  210. package/dist/{assertOptions-CFn7Gdcr.js → assertOptions-CJgNig1l.js} +1 -1
  211. package/dist/composables/index.js +6 -6
  212. package/dist/{composables-D9DVeNnL.js → composables-BtqijTIO.js} +1 -1
  213. package/dist/{focusLeaving-Dqm8Yj4T.js → focusLeaving-DMkbxFkF.js} +1 -1
  214. package/dist/{focusReturn-C1cFL3WM.js → focusReturn-DfZS7TCp.js} +1 -1
  215. package/dist/{index-DHsYyqMP.d.ts → index-B-oy8Ko6.d.ts} +7 -7
  216. package/dist/{index--kbwaSXW.d.ts → index-BD-Pxni9.d.ts} +2 -2
  217. package/dist/{index-DSEEgvak.d.ts → index-BO8V3n98.d.ts} +698 -254
  218. package/dist/{index-DFLPv9io.d.ts → index-BO9TY87G.d.ts} +1 -1
  219. package/dist/{index-BgT6mH3U.d.ts → index-BR3MOBYd.d.ts} +2 -2
  220. package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
  221. package/dist/{index-Qdbssopn.d.ts → index-BjqoHLMq.d.ts} +4 -1
  222. package/dist/{index-XY0rleGM.d.ts → index-Bu4R0WZA.d.ts} +21 -5
  223. package/dist/{index-ChqMaV6N.d.ts → index-Bzi3A980.d.ts} +1 -1
  224. package/dist/{index-BCW6qCcS.d.ts → index-C0nKJSA2.d.ts} +1 -2
  225. package/dist/{index-ClJINYPl.d.ts → index-C4EuWBql.d.ts} +3 -3
  226. package/dist/{index-7Q-wnbe7.d.ts → index-CBH9Gyte.d.ts} +1 -2
  227. package/dist/{index-C4S65SAW.d.ts → index-CKnr0JlT.d.ts} +1 -1
  228. package/dist/{index-BcRvRqWU.d.ts → index-CVNtRsJb.d.ts} +3 -3
  229. package/dist/{index-BfFpUr1B.d.ts → index-CfPgindd.d.ts} +2 -2
  230. package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
  231. package/dist/{index-C3JmGujU.d.ts → index-Cm36VS1A.d.ts} +3 -3
  232. package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
  233. package/dist/{index-BFGtLIp8.d.ts → index-D14kSf-g.d.ts} +2 -2
  234. package/dist/{index-DPhQZXYw.d.ts → index-DYabo8TI.d.ts} +1 -1
  235. package/dist/{index-BtqvPjAf.d.ts → index-DofC9Rll.d.ts} +1 -1
  236. package/dist/{index-ZXrvTM3A.d.ts → index-DogWVRJi.d.ts} +2 -2
  237. package/dist/{index-aHC2C89h.d.ts → index-Ea2V_FSK.d.ts} +4 -4
  238. package/dist/{index-CBOv5j3c.d.ts → index-FeZXsFO-.d.ts} +3 -3
  239. package/dist/{index-B-3EGjfQ.d.ts → index-Q1oG9yIT.d.ts} +2 -2
  240. package/dist/{index-B3uBbehw.d.ts → index-SI2AkpMU.d.ts} +8 -8
  241. package/dist/{index-DCyYldjP.d.ts → index-T5bzxQ30.d.ts} +1 -1
  242. package/dist/{index-BA8exXNP.d.ts → index-X4S7_dmq.d.ts} +1 -1
  243. package/dist/{index-CdvmnNMH.d.ts → index-YKCx03zD.d.ts} +1 -1
  244. package/dist/{index-NOxH5oYj.d.ts → index-etx25Eq-.d.ts} +1 -1
  245. package/dist/{index-yQc-te9a.d.ts → index-ql9ApSTF.d.ts} +2 -2
  246. package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
  247. package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
  248. package/dist/index.d.ts +35 -37
  249. package/dist/index.js +87 -86
  250. package/dist/{interactionModality-CedLz5PC.js → interactionModality-4Km2ibsq.js} +4 -3
  251. package/dist/{layerFocusReturn-KvH6DMFT.js → layerFocusReturn-CEvrMbxH.js} +1 -1
  252. package/dist/{lazyBottomSheet-CL_PrTxb.js → lazyBottomSheet-CxEu25bK.js} +1 -1
  253. package/dist/{loadCatalog-umh_C97k.js → loadCatalog-Blm5sm1o.js} +58 -8
  254. package/dist/{loadCatalog-2Hu-xisJ.d.ts → loadCatalog-DDLjLKYA.d.ts} +119 -2
  255. package/dist/locale/index.d.ts +2 -3
  256. package/dist/locale/index.js +3 -3
  257. package/dist/{locale-BDPlcO62.js → locale-Y7dHbjs4.js} +1 -1
  258. package/dist/tokenizer-C1y-55Ft.js +72 -0
  259. package/dist/{tooltipFocusRules-CFNKWzYn.js → tooltipFocusRules-DvVDuqZI.js} +1 -1
  260. package/dist/{useFocusTrap-DTz_d7IP.js → useFocusTrap-BD9POtMp.js} +2 -2
  261. package/dist/{useInputStatusIcon-BFw-EXjJ.js → useInputStatusIcon-CGj9gMj8.js} +1 -1
  262. package/dist/useMenuEntranceHold-buV5S9yk.js +33 -0
  263. package/dist/{useMenuPress-Di_3jhOx.js → useMenuPress-DU6pAIHy.js} +1 -1
  264. package/dist/{useRestoreFocus-BxooFhas.js → useRestoreFocus-AeZABFZN.js} +2 -2
  265. package/dist/{useTooltip-BpBMQ815.js → useTooltip-Bsm43vbi.js} +3 -3
  266. package/dist/{useTouchTriggerInternal-Bdm_M4aa.js → useTouchTriggerInternal-Bl602PtA.js} +1 -1
  267. package/dist/{useTruncationTooltip-t5G978XB.js → useTruncationTooltip-wc6Lzz34.js} +3 -3
  268. package/dist/{useTypeaheadMenuConfig-DeDGVR8S.js → useTypeaheadMenuConfig-Do0jOyEm.js} +35 -35
  269. package/package.json +1 -1
  270. package/styles/command-palette.css +9 -6
  271. package/styles/more-menu.css +42 -35
  272. package/styles/sheet-confirmation.css +8 -0
  273. package/styles/tokenizer-sheet.css +203 -0
  274. package/styles.css +2 -0
  275. package/dist/Tokenizer-CSmIMDc4.js +0 -888
  276. package/dist/index-C2HVLdNb.d.ts +0 -446
  277. package/dist/power-search-CuMzfLwW.d.ts +0 -87
  278. package/dist/tokenizer-ChiAuPN-.js +0 -34
@@ -1,35 +1,37 @@
1
1
  import { t as _sfc_main$5 } from "./Icon-Dk0jccgU.js";
2
2
  import { i as useSize } from "./SizeContext-BbaF-SEx.js";
3
- import { t as _sfc_main$6 } from "./Button-D8AGK5oT.js";
3
+ import { t as _sfc_main$6 } from "./Button-yJiHoWps.js";
4
4
  import { i as useLayerGutter } from "./context-M-er0-Rk.js";
5
5
  import { t as useDismiss } from "./useDismiss-C7_S7qUA.js";
6
6
  import { r as truncateCharacters, t as characterCount } from "./characters-wTnzjkkR.js";
7
+ import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
7
8
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
8
9
  import { t as createStaticSource } from "./useAsyncSource-7GTcK8ep.js";
10
+ import { t as useInputStatusIcon } from "./useInputStatusIcon-CGj9gMj8.js";
9
11
  import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
10
12
  import { t as useOverflow } from "./useOverflow-GU0pxGaU.js";
11
13
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
12
- import { t as _sfc_main$7 } from "./Tooltip-gT9_hIEv.js";
14
+ import { t as _sfc_main$7 } from "./Tooltip-ByLqPCP7.js";
13
15
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
14
16
  import { r as useCalendarSystem } from "./calendar-C7py_wtb.js";
15
17
  import { r as formatCalendarInstant } from "./calendarFormat-_CEZIMZG.js";
16
- import { t as _sfc_main$8 } from "./Field-Btyrw1hd.js";
18
+ import { t as _sfc_main$8 } from "./Field-DrUMz0oj.js";
17
19
  import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
18
- import { t as _sfc_main$9 } from "./DateInput-D5YBijbb.js";
19
- import { l as powerSearchMessages } from "./loadCatalog-umh_C97k.js";
20
- import { t as _sfc_main$10 } from "./DateRangeInput-BlcHsqgx.js";
21
- import { t as _sfc_main$11 } from "./DateTimeInput-Bx3LWb9Y.js";
20
+ import { t as _sfc_main$9 } from "./DateInput-DK-FI37x.js";
21
+ import { l as powerSearchMessages } from "./loadCatalog-Blm5sm1o.js";
22
+ import { t as _sfc_main$10 } from "./DateRangeInput-ClriBc4F.js";
23
+ import { t as _sfc_main$11 } from "./DateTimeInput-BdXkBBYi.js";
22
24
  import { n as tokenNamingKey, t as _sfc_main$12 } from "./Token-C7Dt5ygK.js";
23
25
  import { n as scrollOptionIntoView, r as useAnchoredListbox } from "./stillPointerGate-D3loXLh7.js";
24
- import { t as _sfc_main$13 } from "./MultiSelector-Cl_HzKvn.js";
25
- import { n as resolveNumberInputCommit, t as _sfc_main$14 } from "./NumberInput-Dz0H_XPw.js";
26
- import { t as _sfc_main$15 } from "./Selector-BL_JH51H.js";
27
- import { o as useTypeaheadMenu } from "./useTypeaheadMenuConfig-DeDGVR8S.js";
28
- import { n as useTokenRemoveTap, t as _sfc_main$16 } from "./Tokenizer-CSmIMDc4.js";
29
- import { t as _sfc_main$17 } from "./TextInput-CGOVY0Zk.js";
30
- import { t as _sfc_main$18 } from "./TimeInput-B_YY-IHW.js";
31
- import { t as _sfc_main$19 } from "./Typeahead-CdLc7S2v.js";
32
- import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
26
+ import { t as _sfc_main$13 } from "./MultiSelector-BUXFzIla.js";
27
+ import { n as resolveNumberInputCommit, t as _sfc_main$14 } from "./NumberInput-lqUmTsqB.js";
28
+ import { t as _sfc_main$15 } from "./Selector-Bj4q6aT5.js";
29
+ import { o as useTypeaheadMenu } from "./useTypeaheadMenuConfig-Do0jOyEm.js";
30
+ import { n as useTokenRemoveTap, t as _sfc_main$16 } from "./Tokenizer-iJb-WZ55.js";
31
+ import { t as _sfc_main$17 } from "./TextInput-BvQQTG75.js";
32
+ import { t as _sfc_main$18 } from "./TimeInput-JrTs9r66.js";
33
+ import { t as _sfc_main$19 } from "./Typeahead-D2O3n477.js";
34
+ import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
33
35
  import "../styles/layer.css";
34
36
  import "../styles/visually-hidden-utility.css";
35
37
  import "../styles/typeahead.css";
@@ -126,6 +128,138 @@ function createPowerSearchLookup(config) {
126
128
  };
127
129
  }
128
130
  //#endregion
131
+ //#region src/PowerSearch/range.ts
132
+ const SECONDS_BY_UNIT = {
133
+ second: 1,
134
+ minute: 60,
135
+ hour: 3600,
136
+ day: 86400,
137
+ week: 604800,
138
+ month: 2592e3,
139
+ year: 31536e3
140
+ };
141
+ /** 把绝对、当前和相对的区间端点折成同一时刻上的 Unix 秒。 */
142
+ function resolveDateTimeRangePart(part, nowSeconds = Date.now() / 1e3) {
143
+ switch (part.type) {
144
+ case "NOW": return Math.floor(nowSeconds);
145
+ case "ABSOLUTE": return part.unixSeconds;
146
+ case "RELATIVE": return Math.floor(nowSeconds - part.backValue * SECONDS_BY_UNIT[part.unit]);
147
+ }
148
+ }
149
+ //#endregion
150
+ //#region src/PowerSearch/dates.ts
151
+ function pad$1(value) {
152
+ return String(value).padStart(2, "0");
153
+ }
154
+ function unixToIsoDate(unixSeconds, timeZone) {
155
+ const date = /* @__PURE__ */ new Date(unixSeconds * 1e3);
156
+ if (!timeZone) return `${date.getFullYear()}-${pad$1(date.getMonth() + 1)}-${pad$1(date.getDate())}`;
157
+ const parts = new Intl.DateTimeFormat("en-US", {
158
+ timeZone,
159
+ year: "numeric",
160
+ month: "2-digit",
161
+ day: "2-digit"
162
+ }).formatToParts(date);
163
+ return `${parts.find((part) => part.type === "year")?.value ?? "1970"}-${parts.find((part) => part.type === "month")?.value ?? "01"}-${parts.find((part) => part.type === "day")?.value ?? "01"}`;
164
+ }
165
+ function unixToDateTimeLocal(unixSeconds, timeZone) {
166
+ const date = /* @__PURE__ */ new Date(unixSeconds * 1e3);
167
+ if (!timeZone) return `${date.getFullYear()}-${pad$1(date.getMonth() + 1)}-${pad$1(date.getDate())}T${pad$1(date.getHours())}:${pad$1(date.getMinutes())}`;
168
+ const parts = new Intl.DateTimeFormat("en-US", {
169
+ timeZone,
170
+ year: "numeric",
171
+ month: "2-digit",
172
+ day: "2-digit",
173
+ hour: "2-digit",
174
+ minute: "2-digit",
175
+ hourCycle: "h23"
176
+ }).formatToParts(date);
177
+ const read = (type) => parts.find((part) => part.type === type)?.value ?? "00";
178
+ return `${read("year")}-${read("month")}-${read("day")}T${read("hour")}:${read("minute")}`;
179
+ }
180
+ function dateTimeLocalToUnix(value, timeZone) {
181
+ if (!timeZone) return Math.floor(new Date(value).getTime() / 1e3);
182
+ const [datePart, timePart] = value.split("T");
183
+ const [year, month, day] = (datePart ?? "").split("-").map(Number);
184
+ const [hour, minute] = (timePart ?? "00:00").split(":").map(Number);
185
+ const utcGuess = Date.UTC(year ?? 1970, (month ?? 1) - 1, day ?? 1, hour ?? 0, minute ?? 0);
186
+ const offset = timeZoneOffset(new Date(utcGuess), timeZone);
187
+ return Math.floor((utcGuess - offset) / 1e3);
188
+ }
189
+ function timeZoneOffset(date, timeZone) {
190
+ const parts = new Intl.DateTimeFormat("en-US", {
191
+ timeZone,
192
+ year: "numeric",
193
+ month: "2-digit",
194
+ day: "2-digit",
195
+ hour: "2-digit",
196
+ minute: "2-digit",
197
+ second: "2-digit",
198
+ hourCycle: "h23"
199
+ }).formatToParts(date);
200
+ const read = (type) => Number(parts.find((part) => part.type === type)?.value ?? 0);
201
+ return Date.UTC(read("year"), read("month") - 1, read("day"), read("hour"), read("minute"), read("second")) - date.getTime();
202
+ }
203
+ function rangePartToIso(part, timeZone, nowSeconds = Date.now() / 1e3) {
204
+ return unixToIsoDate(resolveDateTimeRangePart(part, nowSeconds), timeZone);
205
+ }
206
+ //#endregion
207
+ //#region src/PowerSearch/dateZone.ts
208
+ /**
209
+ * 日期值读写用的时区。
210
+ *
211
+ * 只有一个日历日(`isDateOnly` 没写或为 true)的值,按 `timeZone` 里的那一天读和写,
212
+ * 以那一天的零点存;没给 `timeZone` 就是 UTC 的那一天,早先没带时区写入的值日子不变。
213
+ * 带时刻的值(`isDateOnly: false`)在 `timeZone` 里读写,没给就用查看者所在的时区,
214
+ * 这时返回 `undefined`(`Intl` 和 `Date` 默认就是查看者的时区)。
215
+ */
216
+ function resolveDateZone(timeZone, isDateOnly) {
217
+ if (timeZone) return timeZone;
218
+ return isDateOnly ? "UTC" : void 0;
219
+ }
220
+ /** 这个运算符的绝对日期值是不是一个日历日(没写 `isDateOnly` 也算)。 */
221
+ function isDateOnlyOperator(operatorValue) {
222
+ return operatorValue.type === "date_absolute" && operatorValue.isDateOnly !== false;
223
+ }
224
+ /** 一个时刻在 `zone` 里是哪一天,写成选择框用的本地零点 `Date`。 */
225
+ function unixToPickerDate(unixSeconds, zone) {
226
+ const [year, month, day] = unixToIsoDate(unixSeconds, zone).split("-").map(Number);
227
+ return new Date(year ?? 1970, (month ?? 1) - 1, day ?? 1);
228
+ }
229
+ function pad(value) {
230
+ return String(value).padStart(2, "0");
231
+ }
232
+ function localIsoDate(date) {
233
+ return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;
234
+ }
235
+ /** 选择框选中的那一天,在 `zone` 里零点的时刻。 */
236
+ function pickerDateToUnix(date, zone) {
237
+ return dateTimeLocalToUnix(`${localIsoDate(date)}T00:00`, zone);
238
+ }
239
+ /** `YYYY-MM-DD` 这一天在 `zone` 里零点的时刻。 */
240
+ function isoDateToZonedUnix(iso, zone) {
241
+ return dateTimeLocalToUnix(`${iso}T00:00`, zone);
242
+ }
243
+ /** `YYYY-MM-DD` 这一天在 `zone` 里的最后一秒(夏令时的 23 或 25 小时也对)。 */
244
+ function isoDateEndToZonedUnix(iso, zone) {
245
+ const [year, month, day] = iso.split("-").map(Number);
246
+ const next = new Date(Date.UTC(year ?? 1970, (month ?? 1) - 1, (day ?? 1) + 1));
247
+ return isoDateToZonedUnix(`${next.getUTCFullYear()}-${pad(next.getUTCMonth() + 1)}-${pad(next.getUTCDate())}`, zone) - 1;
248
+ }
249
+ /** 两个 `YYYY-MM-DD` 之间的绝对区间:开始那天 `zone` 里的零点,到结束那天的最后一秒。 */
250
+ function absoluteRange(start, end, zone) {
251
+ return {
252
+ start: {
253
+ type: "ABSOLUTE",
254
+ unixSeconds: isoDateToZonedUnix(start, zone)
255
+ },
256
+ end: {
257
+ type: "ABSOLUTE",
258
+ unixSeconds: isoDateEndToZonedUnix(end, zone)
259
+ }
260
+ };
261
+ }
262
+ //#endregion
129
263
  //#region src/PowerSearch/format.ts
130
264
  function truncate(value, maxLength) {
131
265
  return truncateCharacters(value, maxLength);
@@ -173,7 +307,7 @@ function formatFilterValue(operatorValue, filterValue, maxLength, messages, loca
173
307
  case "enum_list": return joinOrCount(operatorValue.type === "enum_list" ? filterValue.value.map((value) => enumLabel(value, operatorValue.values)) : filterValue.value, maxLength, messages.itemsCount);
174
308
  case "entity_list": return joinOrCount(filterValue.value.map((entity) => entity.label), maxLength, messages.entitiesCount);
175
309
  case "time": return filterValue.value;
176
- case "date_absolute": return truncate(operatorValue.type === "date_absolute" && operatorValue.isDateOnly ? formatDateAbsoluteCompact(filterValue.unixSeconds, locale, timeZone, calendar) : formatDateAbsolute(filterValue.unixSeconds, locale, timeZone, calendar), maxLength);
310
+ case "date_absolute": return truncate(isDateOnlyOperator(operatorValue) ? formatDateAbsoluteCompact(filterValue.unixSeconds, locale, resolveDateZone(timeZone, true), calendar) : formatDateAbsolute(filterValue.unixSeconds, locale, timeZone, calendar), maxLength);
177
311
  case "date_relative": return filterValue.value;
178
312
  case "date_range": return messages.dateRange;
179
313
  case "custom": return truncate(operatorValue.type === "custom" ? operatorValue.getString(filterValue.value) : filterValue.value, maxLength);
@@ -302,6 +436,25 @@ function menuStyleWithWidth(base, menuWidth) {
302
436
  };
303
437
  }
304
438
  //#endregion
439
+ //#region src/PowerSearch/formatTokenText.ts
440
+ /** 筛选标签的文字:字段和运算符由一条文案拼成,语言可以调换顺序和标点。没有运算符文字时只显示字段。 */
441
+ function formatTokenLabel(messages, fieldLabel, operatorLabel) {
442
+ return operatorLabel === "" ? fieldLabel : messages.token.fieldOperator(fieldLabel, operatorLabel);
443
+ }
444
+ /** 筛选标签的全文:「字段: 运算符」和值,由一条文案拼成。 */
445
+ function formatTokenText(messages, label, value) {
446
+ return messages.token.labelValue(label, value);
447
+ }
448
+ const LABEL_MARK = "";
449
+ const VALUE_MARK = "";
450
+ /**
451
+ * 语言是不是把全文写成「标签、空格、值」。只有这样,标签才能把标签和加粗的值分成两段显示,
452
+ * 读起来仍是给它命名的那句全文。
453
+ */
454
+ function tokenTextKeepsParts(messages) {
455
+ return new RegExp(`^${LABEL_MARK}\\s+${VALUE_MARK}$`).test(formatTokenText(messages, LABEL_MARK, VALUE_MARK));
456
+ }
457
+ //#endregion
305
458
  //#region src/PowerSearch/PowerSearchToken.vue
306
459
  const _hoisted_1$4 = {
307
460
  key: 0,
@@ -332,20 +485,22 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
332
485
  const emit = __emit;
333
486
  const calendar = useCalendarSystem(void 0, "PowerSearch");
334
487
  const operatorLabel = computed(() => resolveOperatorLabel(props.operator, props.messages));
335
- const tokenLabel = computed(() => `${props.fieldLabel}: ${operatorLabel.value}`);
488
+ const tokenLabel = computed(() => formatTokenLabel(props.messages, props.fieldLabel, operatorLabel.value));
336
489
  const valueText = computed(() => {
337
490
  const room = Math.max(props.maxLength - characterCount(props.fieldLabel) - characterCount(operatorLabel.value), 10);
338
491
  return formatFilterValue(props.operator.value, props.filter.value, room, props.messages, props.locale, props.timeZone, calendar.value);
339
492
  });
340
493
  /** 标签的全部可见文字:字段、运算符和值。按钮、删除按钮和编辑器都按它命名,同一字段的两个条件读出来不再一样。 */
341
- const visibleText = computed(() => valueText.value ? `${tokenLabel.value} ${valueText.value}` : tokenLabel.value);
494
+ const visibleText = computed(() => valueText.value ? formatTokenText(props.messages, tokenLabel.value, valueText.value) : tokenLabel.value);
495
+ /** 语言把全文写成「标签 值」以外的形状时,标签上不再把值单独加粗,整句作为一段文字显示。 */
496
+ const showsParts = computed(() => !valueText.value || tokenTextKeepsParts(props.messages));
342
497
  provide(tokenNamingKey, computed(() => ({
343
498
  actionName: visibleText.value,
344
499
  removeName: visibleText.value
345
500
  })));
346
501
  return (_ctx, _cache) => {
347
502
  return openBlock(), createBlock(_sfc_main$12, {
348
- label: tokenLabel.value,
503
+ label: showsParts.value ? tokenLabel.value : visibleText.value,
349
504
  size: __props.size,
350
505
  disabled: __props.disabled,
351
506
  removable: __props.removable,
@@ -353,9 +508,9 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
353
508
  "aria-expanded": __props.opensEditor ? Boolean(__props.expanded) : void 0,
354
509
  onClick: _cache[0] || (_cache[0] = ($event) => emit("activate")),
355
510
  onRemove: _cache[1] || (_cache[1] = ($event) => emit("remove"))
356
- }, createSlots({ _: 2 }, [valueText.value || __props.nameId ? {
511
+ }, createSlots({ _: 2 }, [showsParts.value && valueText.value || __props.nameId ? {
357
512
  name: "end",
358
- fn: withCtx(() => [valueText.value ? (openBlock(), createElementBlock("span", _hoisted_1$4, toDisplayString(valueText.value), 1)) : createCommentVNode("v-if", true), __props.nameId ? (openBlock(), createElementBlock("span", {
513
+ fn: withCtx(() => [showsParts.value && valueText.value ? (openBlock(), createElementBlock("span", _hoisted_1$4, toDisplayString(valueText.value), 1)) : createCommentVNode("v-if", true), __props.nameId ? (openBlock(), createElementBlock("span", {
359
514
  key: 1,
360
515
  id: __props.nameId,
361
516
  hidden: ""
@@ -577,98 +732,6 @@ function useFilterTokenNaming(options) {
577
732
  };
578
733
  }
579
734
  //#endregion
580
- //#region src/PowerSearch/range.ts
581
- const SECONDS_BY_UNIT = {
582
- second: 1,
583
- minute: 60,
584
- hour: 3600,
585
- day: 86400,
586
- week: 604800,
587
- month: 2592e3,
588
- year: 31536e3
589
- };
590
- /** 把绝对、当前和相对的区间端点折成同一时刻上的 Unix 秒。 */
591
- function resolveDateTimeRangePart(part, nowSeconds = Date.now() / 1e3) {
592
- switch (part.type) {
593
- case "NOW": return Math.floor(nowSeconds);
594
- case "ABSOLUTE": return part.unixSeconds;
595
- case "RELATIVE": return Math.floor(nowSeconds - part.backValue * SECONDS_BY_UNIT[part.unit]);
596
- }
597
- }
598
- //#endregion
599
- //#region src/PowerSearch/dates.ts
600
- function pad(value) {
601
- return String(value).padStart(2, "0");
602
- }
603
- function unixToIsoDate(unixSeconds, timeZone) {
604
- const date = /* @__PURE__ */ new Date(unixSeconds * 1e3);
605
- if (!timeZone) return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;
606
- const parts = new Intl.DateTimeFormat("en-US", {
607
- timeZone,
608
- year: "numeric",
609
- month: "2-digit",
610
- day: "2-digit"
611
- }).formatToParts(date);
612
- return `${parts.find((part) => part.type === "year")?.value ?? "1970"}-${parts.find((part) => part.type === "month")?.value ?? "01"}-${parts.find((part) => part.type === "day")?.value ?? "01"}`;
613
- }
614
- function unixToDateTimeLocal(unixSeconds, timeZone) {
615
- const date = /* @__PURE__ */ new Date(unixSeconds * 1e3);
616
- if (!timeZone) return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}T${pad(date.getHours())}:${pad(date.getMinutes())}`;
617
- const parts = new Intl.DateTimeFormat("en-US", {
618
- timeZone,
619
- year: "numeric",
620
- month: "2-digit",
621
- day: "2-digit",
622
- hour: "2-digit",
623
- minute: "2-digit",
624
- hourCycle: "h23"
625
- }).formatToParts(date);
626
- const read = (type) => parts.find((part) => part.type === type)?.value ?? "00";
627
- return `${read("year")}-${read("month")}-${read("day")}T${read("hour")}:${read("minute")}`;
628
- }
629
- function isoDateToUnix(value) {
630
- const [year, month, day] = value.split("-").map(Number);
631
- return Math.floor(Date.UTC(year ?? 1970, (month ?? 1) - 1, day ?? 1) / 1e3);
632
- }
633
- function dateTimeLocalToUnix(value, timeZone) {
634
- if (!timeZone) return Math.floor(new Date(value).getTime() / 1e3);
635
- const [datePart, timePart] = value.split("T");
636
- const [year, month, day] = (datePart ?? "").split("-").map(Number);
637
- const [hour, minute] = (timePart ?? "00:00").split(":").map(Number);
638
- const utcGuess = Date.UTC(year ?? 1970, (month ?? 1) - 1, day ?? 1, hour ?? 0, minute ?? 0);
639
- const offset = timeZoneOffset(new Date(utcGuess), timeZone);
640
- return Math.floor((utcGuess - offset) / 1e3);
641
- }
642
- function timeZoneOffset(date, timeZone) {
643
- const parts = new Intl.DateTimeFormat("en-US", {
644
- timeZone,
645
- year: "numeric",
646
- month: "2-digit",
647
- day: "2-digit",
648
- hour: "2-digit",
649
- minute: "2-digit",
650
- second: "2-digit",
651
- hourCycle: "h23"
652
- }).formatToParts(date);
653
- const read = (type) => Number(parts.find((part) => part.type === type)?.value ?? 0);
654
- return Date.UTC(read("year"), read("month") - 1, read("day"), read("hour"), read("minute"), read("second")) - date.getTime();
655
- }
656
- function rangePartToIso(part, timeZone, nowSeconds = Date.now() / 1e3) {
657
- return unixToIsoDate(resolveDateTimeRangePart(part, nowSeconds), timeZone);
658
- }
659
- function absoluteRange(start, end) {
660
- return {
661
- start: {
662
- type: "ABSOLUTE",
663
- unixSeconds: isoDateToUnix(start)
664
- },
665
- end: {
666
- type: "ABSOLUTE",
667
- unixSeconds: isoDateToUnix(end) + 86399
668
- }
669
- };
670
- }
671
- //#endregion
672
735
  //#region src/PowerSearch/PowerSearchValueField.vue
673
736
  const _hoisted_1$3 = {
674
737
  key: 7,
@@ -756,17 +819,19 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
756
819
  value: preset.value,
757
820
  label: preset.label
758
821
  })) : []);
759
- const dateOnly = computed(() => props.operatorValue.type === "date_absolute" && props.operatorValue.isDateOnly === true);
822
+ const dateOnly = computed(() => isDateOnlyOperator(props.operatorValue));
823
+ /** 日历日按 `timeZone` 里的那一天读写;没给时区就是 UTC 的那一天。 */
824
+ const dayZone = computed(() => resolveDateZone(props.timeZone, true));
760
825
  const absoluteDate = computed(() => {
761
826
  if (props.filterValue?.type !== "date_absolute") return null;
762
- return /* @__PURE__ */ new Date(props.filterValue.unixSeconds * 1e3);
827
+ return unixToPickerDate(props.filterValue.unixSeconds, dayZone.value);
763
828
  });
764
829
  const absoluteLocal = computed(() => props.filterValue?.type === "date_absolute" ? unixToDateTimeLocal(props.filterValue.unixSeconds, props.timeZone) : null);
765
830
  const rangeModel = computed(() => {
766
831
  if (props.filterValue?.type !== "date_range") return null;
767
832
  return {
768
- start: rangePartToIso(props.filterValue.value.start, props.timeZone),
769
- end: rangePartToIso(props.filterValue.value.end, props.timeZone)
833
+ start: rangePartToIso(props.filterValue.value.start, dayZone.value),
834
+ end: rangePartToIso(props.filterValue.value.end, dayZone.value)
770
835
  };
771
836
  });
772
837
  const stringSource = computed(() => props.operatorValue.type === "string" || props.operatorValue.type === "string_list" ? props.operatorValue.searchSource ?? createStaticSource([]) : createStaticSource([]));
@@ -836,7 +901,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
836
901
  if (typeof start !== "string" || typeof end !== "string") return;
837
902
  emit("change", {
838
903
  type: "date_range",
839
- value: absoluteRange(start, end)
904
+ value: absoluteRange(start, end, dayZone.value)
840
905
  });
841
906
  }
842
907
  function onTime(value) {
@@ -849,7 +914,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
849
914
  if (!(value instanceof Date)) return;
850
915
  emit("change", {
851
916
  type: "date_absolute",
852
- unixSeconds: isoDateToUnix(unixToIsoDate(Math.floor(value.getTime() / 1e3), props.timeZone))
917
+ unixSeconds: pickerDateToUnix(value, dayZone.value)
853
918
  });
854
919
  }
855
920
  function onAbsoluteDateTime(value) {
@@ -913,6 +978,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
913
978
  "disabled"
914
979
  ])) : __props.operatorValue.type === "string_list" ? (openBlock(), createBlock(_sfc_main$16, {
915
980
  key: 2,
981
+ presentation: "popover",
916
982
  label: text.value.values,
917
983
  "label-hidden": "",
918
984
  "search-source": stringSource.value,
@@ -966,6 +1032,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
966
1032
  min: __props.operatorValue.minValue,
967
1033
  max: __props.operatorValue.maxValue,
968
1034
  "is-disabled": __props.disabled,
1035
+ "entry-error-behavior": "complete",
969
1036
  "onUpdate:modelValue": onTime
970
1037
  }, null, 8, [
971
1038
  "label",
@@ -979,6 +1046,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
979
1046
  "is-label-hidden": "",
980
1047
  "model-value": absoluteDate.value,
981
1048
  "is-disabled": __props.disabled,
1049
+ "entry-error-behavior": "complete",
982
1050
  "onUpdate:modelValue": onAbsoluteDate
983
1051
  }, null, 8, [
984
1052
  "label",
@@ -990,6 +1058,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
990
1058
  "is-label-hidden": "",
991
1059
  "model-value": absoluteLocal.value,
992
1060
  "is-disabled": __props.disabled,
1061
+ "entry-error-behavior": "complete",
993
1062
  "onUpdate:modelValue": onAbsoluteDateTime
994
1063
  }, null, 8, [
995
1064
  "label",
@@ -1089,6 +1158,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
1089
1158
  "disabled"
1090
1159
  ])) : __props.operatorValue.type === "entity_list" ? (openBlock(), createBlock(_sfc_main$16, {
1091
1160
  key: 11,
1161
+ presentation: "popover",
1092
1162
  label: text.value.entities,
1093
1163
  "label-hidden": "",
1094
1164
  "search-source": entitySource.value,
@@ -1341,6 +1411,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
1341
1411
  },
1342
1412
  setup(__props) {
1343
1413
  const props = __props;
1414
+ if (isDevBuild() && props.config == null) throw devPropError("PowerSearchEditor", "config", "is required: the same config as the PowerSearch it edits.");
1344
1415
  const messages = useComponentMessages({ powerSearch: powerSearchMessages });
1345
1416
  const lookup = computed(() => createPowerSearchLookup(props.config));
1346
1417
  const text = computed(() => messages.value.powerSearch);
@@ -1718,9 +1789,12 @@ function usePowerSearchActions(options) {
1718
1789
  }
1719
1790
  function clearAll(event) {
1720
1791
  event?.stopPropagation();
1721
- if (props.disabled || filters.value.length === 0) return;
1722
- commit([], "remove", 0);
1723
- announce(text.value.clear);
1792
+ if (props.disabled || props.readOnly) return;
1793
+ const firstRemoved = filters.value.findIndex((filter) => filter.isReadOnly !== true);
1794
+ if (firstRemoved < 0) return;
1795
+ const kept = filters.value.filter((filter) => filter.isReadOnly === true);
1796
+ commit(kept, "remove", firstRemoved);
1797
+ announce(kept.length > 0 ? text.value.editableFiltersRemoved : text.value.allFiltersRemoved);
1724
1798
  menu.close();
1725
1799
  options.inputRef.value?.focus();
1726
1800
  }
@@ -1810,6 +1884,25 @@ function usePowerSearchActions(options) {
1810
1884
  };
1811
1885
  }
1812
1886
  //#endregion
1887
+ //#region src/PowerSearch/useResultCountAnnouncement.ts
1888
+ /**
1889
+ * 结果数变化时给读屏的播报文字。挂载时已经有的数不念,只念之后的变化:
1890
+ * 数字交给 `format` 写成句子,字符串原样念。
1891
+ */
1892
+ function useResultCountAnnouncement(count, format) {
1893
+ const liveText = ref("");
1894
+ let sawCount = false;
1895
+ watch(count, (value) => {
1896
+ if (!sawCount) {
1897
+ sawCount = true;
1898
+ return;
1899
+ }
1900
+ if (typeof value === "number") liveText.value = format(value);
1901
+ else if (typeof value === "string") liveText.value = value;
1902
+ }, { immediate: true });
1903
+ return liveText;
1904
+ }
1905
+ //#endregion
1813
1906
  //#region src/PowerSearch/PowerSearch.vue
1814
1907
  const _hoisted_1 = {
1815
1908
  key: 0,
@@ -1974,6 +2067,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1974
2067
  const props = __props;
1975
2068
  const emit = __emit;
1976
2069
  const slots = useSlots();
2070
+ if (isDevBuild() && props.config == null) throw devPropError("PowerSearch", "config", "is required: the fields people can filter by, for example :config=\"{ fields: [...] }\".");
1977
2071
  const size = useSize(() => props.size, "md");
1978
2072
  const attrs = useAttrs();
1979
2073
  const parts = useFieldPartStyling({
@@ -2014,10 +2108,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2014
2108
  useScrollbars(listboxRef);
2015
2109
  const inputRef = useTemplateRef("inputRef");
2016
2110
  const editorRef = useTemplateRef("editorRef");
2017
- const sawCount = ref(false);
2018
- const liveText = ref("");
2019
2111
  const visibleCountOf = { current: () => 0 };
2020
2112
  const text = computed(() => messages.value.powerSearch);
2113
+ const liveText = useResultCountAnnouncement(() => props.resultCount, (count) => text.value.resultCount(count));
2021
2114
  const label = computed(() => props.label ?? text.value.label);
2022
2115
  const placeholder = computed(() => props.placeholder ?? text.value.placeholder);
2023
2116
  const disabledMessage = computed(() => (props.disabledMessage ?? props.disabledReason)?.trim() || void 0);
@@ -2028,12 +2121,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2028
2121
  const collapsed = computed(() => props.overflow !== "none" && !focused.value);
2029
2122
  const floating = computed(() => props.overflow === "unfocused-layer" && focused.value);
2030
2123
  const lookup = computed(() => createPowerSearchLookup(props.config));
2031
- const fieldStatus = computed(() => {
2032
- if (!props.statusMessage || props.status === "default") return void 0;
2033
- return {
2034
- type: props.status,
2035
- message: props.statusMessage
2036
- };
2124
+ const fieldStatus = computed(() => !props.statusMessage || props.status === "default" ? void 0 : {
2125
+ type: props.status,
2126
+ message: props.statusMessage
2127
+ });
2128
+ const { statusIcon, statusIconProps } = useInputStatusIcon({
2129
+ status: () => fieldStatus.value,
2130
+ statusVariant: () => props.statusVariant
2037
2131
  });
2038
2132
  const externalDescribedBy = computed(() => typeof attrs["aria-describedby"] === "string" ? attrs["aria-describedby"] : void 0);
2039
2133
  const describedBy = computed(() => [
@@ -2115,16 +2209,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2115
2209
  if (!menu.combobox.isOpen.value || index < 0) return;
2116
2210
  nextTick(() => scrollOptionIntoView(listboxRef.value, menu.entries.value[index]?.id));
2117
2211
  });
2118
- watch(() => props.resultCount, (value) => {
2119
- if (!sawCount.value) {
2120
- sawCount.value = true;
2121
- return;
2122
- }
2123
- if (typeof value === "number") liveText.value = text.value.resultCount(value);
2124
- else if (typeof value === "string") liveText.value = value;
2125
- }, { immediate: true });
2126
2212
  const visibleFilters = computed(() => filters.value.slice(0, visibleCount.value));
2127
- const hasClearButton = computed(() => showsClear.value && filters.value.length > 0 && !props.disabled && !props.readOnly);
2213
+ const hasClearButton = computed(() => showsClear.value && filters.value.some((filter) => filter.isReadOnly !== true) && !props.disabled && !props.readOnly);
2128
2214
  const displayCount = computed(() => resultCountText(props.resultCount, text.value.resultCount));
2129
2215
  const menuStyle = computed(() => menuStyleWithWidth(anchored.style.value, props.menuWidth));
2130
2216
  function onInputFocus(event) {
@@ -2314,6 +2400,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2314
2400
  role: "combobox",
2315
2401
  autocomplete: "off",
2316
2402
  autocapitalize: "off",
2403
+ autocorrect: "off",
2404
+ enterkeyhint: "search",
2317
2405
  placeholder: unref(filters).length === 0 ? placeholder.value : void 0,
2318
2406
  value: unref(menu).query.value,
2319
2407
  disabled: __props.disabled && !focusableDisabled.value,
@@ -2330,7 +2418,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2330
2418
  onBlur: _cache[2] || (_cache[2] = ($event) => emit("blur", $event))
2331
2419
  }), null, 16, _hoisted_5),
2332
2420
  createCommentVNode(" 同上游 Tokenizer 的 endSection:计数、endContent、清除按钮并成一组,距边框 8px、间距 8px。 "),
2333
- displayCount.value || slots.endContent || slots.end || hasClearButton.value ? (openBlock(), createElementBlock("span", _hoisted_6, [
2421
+ displayCount.value || slots.endContent || slots.end || hasClearButton.value || unref(statusIcon) ? (openBlock(), createElementBlock("span", _hoisted_6, [
2334
2422
  displayCount.value ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(displayCount.value), 1)) : createCommentVNode("v-if", true),
2335
2423
  slots.endContent ? renderSlot(_ctx.$slots, "endContent", {}, void 0, void 0, 1) : renderSlot(_ctx.$slots, "end", {}, void 0, void 0, 2),
2336
2424
  hasClearButton.value ? (openBlock(), createElementBlock("button", {
@@ -2342,7 +2430,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2342
2430
  }, [createVNode(_sfc_main$5, {
2343
2431
  icon: "close",
2344
2432
  size: "sm"
2345
- })], 8, _hoisted_8)) : createCommentVNode("v-if", true)
2433
+ })], 8, _hoisted_8)) : createCommentVNode("v-if", true),
2434
+ unref(statusIcon) ? (openBlock(), createBlock(resolveDynamicComponent(unref(statusIcon)), normalizeProps(mergeProps({ key: 4 }, unref(statusIconProps))), null, 16)) : createCommentVNode("v-if", true)
2346
2435
  ])) : createCommentVNode("v-if", true),
2347
2436
  focusableDisabled.value ? (openBlock(), createElementBlock("span", {
2348
2437
  key: 2,
@@ -2352,7 +2441,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2352
2441
  ], 38)]),
2353
2442
  _: 3
2354
2443
  }, 8, ["content", "is-enabled"]),
2355
- createElementVNode("span", _hoisted_10, toDisplayString(liveText.value), 1)
2444
+ createElementVNode("span", _hoisted_10, toDisplayString(unref(liveText)), 1)
2356
2445
  ]),
2357
2446
  _: 3
2358
2447
  }, 8, [
@@ -1,2 +1,2 @@
1
- import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-CdvmnNMH.js";
1
+ import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-YKCx03zD.js";
2
2
  export { _default as ProgressBar, type ProgressBarMark, type ProgressBarProps, type ProgressBarSize, type ProgressBarVariant };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../ProgressBar-C6x0E-BF.js";
1
+ import { t as _sfc_main } from "../ProgressBar-yw2BCtB_.js";
2
2
  export { _sfc_main as ProgressBar };
@@ -1,4 +1,4 @@
1
- import { t as _sfc_main$1 } from "./Tooltip-gT9_hIEv.js";
1
+ import { t as _sfc_main$1 } from "./Tooltip-ByLqPCP7.js";
2
2
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderList, toDisplayString, unref, useAttrs, useId, withCtx } from "vue";
3
3
  import "../styles/visually-hidden.css";
4
4
  import "../styles/progress-bar.css";
@@ -1,2 +1,2 @@
1
- import { Br as RadioGroupEmits, Gr as RadioOrientation, Hr as RadioGroupSlots, Jr as RadioSlots, Kr as RadioProps, Lr as _default$1, Rr as _default, Vr as RadioGroupProps, Wr as RadioOption, Xr as RadioStatusType, Yr as RadioStatus, Zr as RadioValue, qr as RadioSize, zr as RadioChangeEvent } from "../index-DSEEgvak.js";
1
+ import { Br as RadioGroupEmits, Gr as RadioOrientation, Hr as RadioGroupSlots, Jr as RadioSlots, Kr as RadioProps, Lr as _default$1, Rr as _default, Vr as RadioGroupProps, Wr as RadioOption, Xr as RadioStatusType, Yr as RadioStatus, Zr as RadioValue, qr as RadioSize, zr as RadioChangeEvent } from "../index-BO8V3n98.js";
2
2
  export { _default as Radio, type RadioChangeEvent, _default$1 as RadioGroup, type RadioGroupEmits, type RadioGroupProps, type RadioGroupSlots, type RadioOption, type RadioOrientation, type RadioProps, type RadioSize, type RadioSlots, type RadioStatus, type RadioStatusType, type RadioValue };
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as _sfc_main$1 } from "../RadioGroup-LUDji_LA.js";
1
+ import { n as _sfc_main, t as _sfc_main$1 } from "../RadioGroup-B8QoJyJu.js";
2
2
  export { _sfc_main as Radio, _sfc_main$1 as RadioGroup };
@@ -2,11 +2,11 @@ import { n as useTouchHitArea } from "./useTouchHitArea-CNZyA18Y.js";
2
2
  import { t as usePressFeedback } from "./usePressFeedback-BhNcuxQv.js";
3
3
  import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
4
4
  import { t as _sfc_main$2 } from "./VisuallyHidden-cpmsV-0M.js";
5
- import { t as _sfc_main$3 } from "./Tooltip-gT9_hIEv.js";
5
+ import { t as _sfc_main$3 } from "./Tooltip-ByLqPCP7.js";
6
6
  import { r as withholdCallerHandlers } from "./disabledInteraction-Bqoyhoss.js";
7
7
  import { a as useAriaRequired } from "./context-CrVCeUUK.js";
8
8
  import { t as useIndicator } from "./useIndicator-PFDBNOvX.js";
9
- import { t as _sfc_main$4 } from "./Field-Btyrw1hd.js";
9
+ import { t as _sfc_main$4 } from "./Field-DrUMz0oj.js";
10
10
  import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
11
11
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, withCtx } from "vue";
12
12
  import "../styles/radio.css";
@@ -1,2 +1,2 @@
1
- import { Fr as RadioListItemProps, Ir as _default, Pr as _default$1, Ur as RadioListProps } from "../index-DSEEgvak.js";
1
+ import { Fr as RadioListItemProps, Ir as _default, Pr as _default$1, Ur as RadioListProps } from "../index-BO8V3n98.js";
2
2
  export { _default as RadioList, _default$1 as RadioListItem, type RadioListItemProps, type RadioListProps };
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as _sfc_main$1 } from "../RadioList-CmeUUgn-.js";
1
+ import { n as _sfc_main, t as _sfc_main$1 } from "../RadioList-BEv82wbs.js";
2
2
  export { _sfc_main as RadioList, _sfc_main$1 as RadioListItem };
@@ -1,4 +1,4 @@
1
- import { n as _sfc_main$3, t as _sfc_main$2 } from "./RadioGroup-LUDji_LA.js";
1
+ import { n as _sfc_main$3, t as _sfc_main$2 } from "./RadioGroup-B8QoJyJu.js";
2
2
  import { createBlock, createSlots, defineComponent, mergeModels, openBlock, renderSlot, useModel, withCtx } from "vue";
3
3
  //#region src/Radio/RadioList.vue
4
4
  const _sfc_main$1 = /*@__PURE__*/ defineComponent({
@@ -1,2 +1,2 @@
1
- import { a as ResizePillPlacement, i as ResizeHandleSlots, n as ResizeDirection, o as ResizePosition, r as ResizeHandleProps, t as _default } from "../index-NOxH5oYj.js";
1
+ import { a as ResizePillPlacement, i as ResizeHandleSlots, n as ResizeDirection, o as ResizePosition, r as ResizeHandleProps, t as _default } from "../index-etx25Eq-.js";
2
2
  export { type ResizeDirection, _default as ResizeHandle, type ResizeHandleProps, type ResizeHandleSlots, type ResizePillPlacement, type ResizePosition };