@vokril/ui-solid 0.29.0 → 0.31.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 (253) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/README.md +27 -0
  3. package/dist/{AttributeGrid-eND8YDby.cjs → AttributeGrid-Ch1k9v5j.cjs} +1 -1
  4. package/dist/{AttributeGrid-CASILa4u.js → AttributeGrid-DqFd4gBm.js} +3 -3
  5. package/dist/Button-4meERfnv.js +300 -0
  6. package/dist/Button-OyZHrl-t.cjs +1 -0
  7. package/dist/CommandPalette-CxYZUJtN.cjs +2 -0
  8. package/dist/{CommandPalette-Cj618AOz.js → CommandPalette-DwOp8y1-.js} +1467 -1466
  9. package/dist/{CopyButton-B5gS2ft3.cjs → CopyButton-16QNPgz6.cjs} +1 -1
  10. package/dist/{CopyButton-g-WSiBDZ.js → CopyButton-BVS49lMS.js} +1 -1
  11. package/dist/{DateRangePicker-CJD9ADgB.js → DateRangePicker-8QvydugY.js} +4 -4
  12. package/dist/{DateRangePicker-Frc0HVxp.cjs → DateRangePicker-DI-06xWY.cjs} +1 -1
  13. package/dist/{GuidedTour-B6q7lYhn.cjs → GuidedTour-DUQwdW8n.cjs} +1 -1
  14. package/dist/{GuidedTour-CFCvRJN4.js → GuidedTour-DXMmHn0o.js} +2 -2
  15. package/dist/{HostPortal-CXGUUhP8.js → HostPortal-Ba3MD9CG.js} +1 -1
  16. package/dist/HostPortal-CpWsArs6.cjs +1 -0
  17. package/dist/{IconPicker-DYqNi5ud.js → IconPicker-D1G8HK92.js} +3 -3
  18. package/dist/{IconPicker-CIbJb1ei.cjs → IconPicker-Q-ZDtNkd.cjs} +1 -1
  19. package/dist/Input-Brp5EDhg.cjs +1 -0
  20. package/dist/Input-CZi8KEfm.js +374 -0
  21. package/dist/Modal-CBi7Wd2V.cjs +1 -0
  22. package/dist/Modal-iyY1HUtr.js +588 -0
  23. package/dist/{PageSkeleton-BPbb28-H.cjs → PageSkeleton-B_-4fz1q.cjs} +1 -1
  24. package/dist/{PageSkeleton-CLnJO6uD.js → PageSkeleton-zNyjLPlk.js} +3 -3
  25. package/dist/{Popover-Cttb6NYT.js → Popover-DVi179wu.js} +4 -3
  26. package/dist/Popover-DXrczbt9.cjs +1 -0
  27. package/dist/{SearchableSelect-BvCm4enQ.js → SearchableSelect-DtHbWJhR.js} +34 -33
  28. package/dist/SearchableSelect-yLVqCGFo.cjs +1 -0
  29. package/dist/StatusBarNotificationBell-DQs5g1K6.cjs +50 -0
  30. package/dist/{StatusBarNotificationBell-7Izs_msz.js → StatusBarNotificationBell-ZTEhZFmJ.js} +4279 -4002
  31. package/dist/{Stepper-D9i1Xclm.js → Stepper-CyRgzWlR.js} +1 -1
  32. package/dist/{Stepper-Ci5JpLbS.cjs → Stepper-u2ZsE5oP.cjs} +1 -1
  33. package/dist/{Textarea-CeAGf08O.cjs → Textarea-DASNQNoi.cjs} +1 -1
  34. package/dist/{Textarea-B5QqqKnI.js → Textarea-szHXQahi.js} +1 -1
  35. package/dist/{TimeSeriesChart-DOwi2lJs.js → TimeSeriesChart-D7lIqolp.js} +1 -1
  36. package/dist/{TimeSeriesChart-huvheefm.cjs → TimeSeriesChart-DGzM9B--.cjs} +1 -1
  37. package/dist/{ToggleButton-CFM8P3JY.js → ToggleButton-B22PsCqo.js} +61 -60
  38. package/dist/ToggleButton-DWslrIBN.cjs +1 -0
  39. package/dist/_internal/contract/notification.d.cts +9 -0
  40. package/dist/_internal/contract/notification.d.ts +9 -0
  41. package/dist/_internal/contract/notificationCatalog.d.cts +2 -0
  42. package/dist/_internal/contract/notificationCatalog.d.ts +2 -0
  43. package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -8
  44. package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -8
  45. package/dist/anchoredLayout-CBjQ1etD.cjs +1 -0
  46. package/dist/anchoredLayout-E0mqCWxk.js +233 -0
  47. package/dist/appThemeDerivation-BylmT80v.cjs +1 -0
  48. package/dist/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation-DBAOkGl7.js} +260 -231
  49. package/dist/base.css +2 -2
  50. package/dist/charts/index.cjs +1 -1
  51. package/dist/charts/index.js +1 -1
  52. package/dist/context/DesktopContextMenuContext.d.cts +8 -1
  53. package/dist/context/DesktopContextMenuContext.d.ts +8 -1
  54. package/dist/createDialogShellFocus-CQ0VNC2g.cjs +1 -0
  55. package/dist/{createDialogShellFocus-B4piXDU4.js → createDialogShellFocus-DbiQmLgb.js} +9 -9
  56. package/dist/createResizableSidebar-COlpGQ7H.cjs +1 -0
  57. package/dist/createResizableSidebar-cmCKTIg_.js +504 -0
  58. package/dist/desktop/index.cjs +1 -1
  59. package/dist/desktop/index.js +3 -3
  60. package/dist/dialogFocusRestore-BhxVTSiP.js +10 -0
  61. package/dist/dialogFocusRestore-DP5b1bDo.cjs +1 -0
  62. package/dist/feedback/index.cjs +1 -1
  63. package/dist/feedback/index.js +3 -3
  64. package/dist/forms/Input.d.cts +20 -0
  65. package/dist/forms/Input.d.ts +20 -0
  66. package/dist/forms/InputMessage.d.cts +19 -0
  67. package/dist/forms/InputMessage.d.ts +19 -0
  68. package/dist/forms/index.cjs +1 -1
  69. package/dist/forms/index.js +9 -9
  70. package/dist/grid/index.cjs +1 -1
  71. package/dist/grid/index.js +1 -1
  72. package/dist/index.cjs +1 -1
  73. package/dist/index.js +547 -541
  74. package/dist/layout/index.cjs +1 -1
  75. package/dist/layout/index.js +2 -2
  76. package/dist/layout/resizeCarry.d.cts +17 -0
  77. package/dist/layout/resizeCarry.d.ts +17 -0
  78. package/dist/mainRealmDom-B215swW-.js +166 -0
  79. package/dist/mainRealmDom-BYGSE-fo.cjs +1 -0
  80. package/dist/nativeTitleHold-A9jUISgQ.js +170 -0
  81. package/dist/nativeTitleHold-B7Ou-W9b.cjs +1 -0
  82. package/dist/navigation/index.cjs +1 -1
  83. package/dist/navigation/index.js +1 -1
  84. package/dist/notifications/NotificationItem.d.cts +9 -0
  85. package/dist/notifications/NotificationItem.d.ts +9 -0
  86. package/dist/notifications/NotificationsCenter.d.cts +18 -0
  87. package/dist/notifications/NotificationsCenter.d.ts +18 -0
  88. package/dist/notifications/RunningProgressCards.d.cts +3 -0
  89. package/dist/notifications/RunningProgressCards.d.ts +3 -0
  90. package/dist/notifications/fireNotification.d.cts +35 -16
  91. package/dist/notifications/fireNotification.d.ts +35 -16
  92. package/dist/notifications/index.cjs +1 -1
  93. package/dist/notifications/index.d.cts +1 -0
  94. package/dist/notifications/index.d.ts +1 -0
  95. package/dist/notifications/index.js +55 -52
  96. package/dist/notifications/nativeEngine.d.cts +4 -3
  97. package/dist/notifications/nativeEngine.d.ts +4 -3
  98. package/dist/notifications/notificationEntryList.d.cts +91 -0
  99. package/dist/notifications/notificationEntryList.d.ts +91 -0
  100. package/dist/notifications/notificationService.d.cts +23 -2
  101. package/dist/notifications/notificationService.d.ts +23 -2
  102. package/dist/notifications/toast.d.cts +3 -0
  103. package/dist/notifications/toast.d.ts +3 -0
  104. package/dist/notifications/toastCorner.d.cts +8 -0
  105. package/dist/notifications/toastCorner.d.ts +8 -0
  106. package/dist/notifications/toastFilterPolicy.d.cts +33 -1
  107. package/dist/notifications/toastFilterPolicy.d.ts +33 -1
  108. package/dist/overlay/Modal.d.cts +6 -0
  109. package/dist/overlay/Modal.d.ts +6 -0
  110. package/dist/overlay/backgroundInert.d.cts +6 -2
  111. package/dist/overlay/backgroundInert.d.ts +6 -2
  112. package/dist/overlay/command-palette/CommandPalette.d.cts +12 -0
  113. package/dist/overlay/command-palette/CommandPalette.d.ts +12 -0
  114. package/dist/overlay/index.cjs +1 -1
  115. package/dist/overlay/index.js +70 -68
  116. package/dist/overlay/nativeTitleHold.d.cts +24 -0
  117. package/dist/overlay/nativeTitleHold.d.ts +24 -0
  118. package/dist/ownerAnimationFrame-DzFcMSmn.js +19 -0
  119. package/dist/ownerAnimationFrame-T6jf6qYC.cjs +1 -0
  120. package/dist/server/{AttributeGrid-CMi-UtWb.js → AttributeGrid-Bpjlauuz.js} +2 -2
  121. package/dist/server/{AttributeGrid-B7sb3btp.cjs → AttributeGrid-DNYdKb8J.cjs} +1 -1
  122. package/dist/server/CommandPalette-BuVxnqBG.cjs +1 -0
  123. package/dist/server/{CommandPalette-CozogFlk.js → CommandPalette-Dn3NKXPM.js} +1095 -1069
  124. package/dist/server/{DateRangePicker-KLZzyuPJ.cjs → DateRangePicker-BFzNjaME.cjs} +1 -1
  125. package/dist/server/{DateRangePicker-C35q8BTw.js → DateRangePicker-CnYkTgXX.js} +3 -3
  126. package/dist/server/{GuidedTour-DmLbBttx.js → GuidedTour-BZardPYW.js} +1 -1
  127. package/dist/server/{GuidedTour-DfV0yzqh.cjs → GuidedTour-yhdZk2SU.cjs} +1 -1
  128. package/dist/server/{HostPortal-CXGUUhP8.js → HostPortal-C4IrAeWN.js} +1 -1
  129. package/dist/server/HostPortal-D5ECrJvn.cjs +1 -0
  130. package/dist/server/{IconPicker-B1soopAp.cjs → IconPicker-C5lAN9pX.cjs} +1 -1
  131. package/dist/server/{IconPicker-B4aXspLw.js → IconPicker-DDWgB7sm.js} +3 -3
  132. package/dist/server/Input-AdF-i0O8.js +245 -0
  133. package/dist/server/Input-XF9Jr0G9.cjs +1 -0
  134. package/dist/server/{Modal-BheFQLs1.js → Modal-C5dzgcRW.js} +102 -97
  135. package/dist/server/{Modal-BswxV8Pn.cjs → Modal-nAhBS1L9.cjs} +1 -1
  136. package/dist/server/Popover-C5avmGWz.cjs +1 -0
  137. package/dist/server/{Popover-Cg28aPUZ.js → Popover-H3AAYZI0.js} +57 -57
  138. package/dist/server/{SearchableSelect-09ECcDlB.cjs → SearchableSelect-CZrXDKfC.cjs} +1 -1
  139. package/dist/server/{SearchableSelect-vjhS4c-H.js → SearchableSelect-DMqed5Er.js} +1 -1
  140. package/dist/server/StatusBarNotificationBell-CGcMdT4h.cjs +49 -0
  141. package/dist/server/{StatusBarNotificationBell-D8Jt3PXI.js → StatusBarNotificationBell-DW2l5O9B.js} +4216 -3949
  142. package/dist/server/{Stepper-DxNrskdq.cjs → Stepper-CpapA_WH.cjs} +1 -1
  143. package/dist/server/{Stepper-n5f9r-ye.js → Stepper-gGA7JwjV.js} +1 -1
  144. package/dist/server/{Textarea-BQf2lL59.cjs → Textarea-Bh5LVrBn.cjs} +1 -1
  145. package/dist/server/{Textarea-BTH48NET.js → Textarea-DVkfGkP0.js} +1 -1
  146. package/dist/server/{ToggleButton-TE3Xf2yD.cjs → ToggleButton-CA9T-OsI.cjs} +1 -1
  147. package/dist/server/{ToggleButton-FywO2CCI.js → ToggleButton-CBNKajZa.js} +4 -4
  148. package/dist/server/{VpTrash-Dlq8o6Uv.js → VpTrash-CZMWCIpF.js} +84 -70
  149. package/dist/server/VpTrash-DiczWhwm.cjs +1 -0
  150. package/dist/server/appThemeDerivation-BylmT80v.cjs +1 -0
  151. package/dist/server/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation-DBAOkGl7.js} +260 -231
  152. package/dist/server/{createDialogShellFocus-BiBAZOCI.cjs → createDialogShellFocus-CDaLuPg8.cjs} +1 -1
  153. package/dist/server/{createDialogShellFocus-BFo8awdj.js → createDialogShellFocus-LGDBOVnr.js} +6 -6
  154. package/dist/server/{createResizableSidebar-BImbKlLe.js → createResizableSidebar-Dvu7iEk1.js} +1 -1
  155. package/dist/server/{createResizableSidebar-GFgZIj-5.cjs → createResizableSidebar-v40ZOb-Q.cjs} +1 -1
  156. package/dist/server/desktop/index.cjs +1 -1
  157. package/dist/server/desktop/index.js +3 -3
  158. package/dist/server/dialogFocusRestore-BhxVTSiP.js +10 -0
  159. package/dist/server/dialogFocusRestore-DP5b1bDo.cjs +1 -0
  160. package/dist/server/forms/index.cjs +1 -1
  161. package/dist/server/forms/index.js +7 -7
  162. package/dist/server/grid/index.cjs +1 -1
  163. package/dist/server/grid/index.js +1 -1
  164. package/dist/server/{index-UIjsx3oJ.js → index-BEARfm54.js} +3604 -3617
  165. package/dist/server/index-C6rYfWCJ.cjs +1 -0
  166. package/dist/server/index.cjs +1 -1
  167. package/dist/server/index.js +502 -497
  168. package/dist/server/layout/index.cjs +1 -1
  169. package/dist/server/layout/index.js +2 -2
  170. package/dist/server/navigation/index.cjs +1 -1
  171. package/dist/server/navigation/index.js +1 -1
  172. package/dist/server/notifications/index.cjs +1 -1
  173. package/dist/server/notifications/index.js +55 -52
  174. package/dist/server/overlay/index.cjs +1 -1
  175. package/dist/server/overlay/index.js +54 -53
  176. package/dist/server/tokens/index.cjs +1 -1
  177. package/dist/server/tokens/index.js +30 -28
  178. package/dist/solid/feedback/Badge.jsx +3 -14
  179. package/dist/solid/forms/Button.jsx +3 -14
  180. package/dist/solid/forms/Input.jsx +31 -5
  181. package/dist/solid/forms/Input.module.css.js +1 -0
  182. package/dist/solid/forms/InputMessage.jsx +86 -0
  183. package/dist/solid/forms/PressableSurface.jsx +3 -14
  184. package/dist/solid/layout/ResizeHandle.jsx +11 -1
  185. package/dist/solid/layout/resizeCarry.js +31 -0
  186. package/dist/solid/notifications/NotificationHost.jsx +5 -18
  187. package/dist/solid/notifications/NotificationItem.jsx +5 -5
  188. package/dist/solid/notifications/NotificationPanel.jsx +14 -4
  189. package/dist/solid/notifications/NotificationsCenter.jsx +70 -12
  190. package/dist/solid/notifications/RunningProgressCards.jsx +1 -1
  191. package/dist/solid/notifications/StatusBarNotificationBell.jsx +8 -3
  192. package/dist/solid/notifications/catalogAdapter.js +1 -0
  193. package/dist/solid/notifications/fireNotification.js +21 -16
  194. package/dist/solid/notifications/index.js +1 -0
  195. package/dist/solid/notifications/notificationEntryList.js +168 -0
  196. package/dist/solid/notifications/notificationService.js +20 -4
  197. package/dist/solid/notifications/toast.js +54 -7
  198. package/dist/solid/notifications/toastCorner.js +3 -0
  199. package/dist/solid/notifications/toastFilterPolicy.js +12 -0
  200. package/dist/solid/overlay/Drawer.jsx +2 -1
  201. package/dist/solid/overlay/Modal.jsx +42 -4
  202. package/dist/solid/overlay/command-palette/CommandPalette.jsx +4 -4
  203. package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +8 -7
  204. package/dist/solid/overlay/nativeTitleHold.js +33 -0
  205. package/dist/solid/overlay/tooltipDirective.js +3 -11
  206. package/dist/solid/tokens/index.js +1 -0
  207. package/dist/solid/tokens/palette/paletteContract.js +27 -0
  208. package/dist/style.css +2 -2
  209. package/dist/theme.css +1 -1
  210. package/dist/tokens/index.cjs +1 -1
  211. package/dist/tokens/index.d.cts +1 -0
  212. package/dist/tokens/index.d.ts +1 -0
  213. package/dist/tokens/index.js +30 -28
  214. package/dist/tokens/palette/paletteContract.d.cts +17 -0
  215. package/dist/tokens/palette/paletteContract.d.ts +17 -0
  216. package/dist/tokens/tokens.css +1 -1
  217. package/dist/ui.css +1 -1
  218. package/package.json +1 -1
  219. package/dist/Button-Bb68ymNP.cjs +0 -1
  220. package/dist/Button-D-T0tyGF.js +0 -305
  221. package/dist/CommandPalette-5FQRgPG9.cjs +0 -2
  222. package/dist/HostPortal-CgJwxt-f.cjs +0 -1
  223. package/dist/Input-CZruORyy.cjs +0 -1
  224. package/dist/Input-DkPhsdfk.js +0 -227
  225. package/dist/Modal-CY6ePolt.cjs +0 -1
  226. package/dist/Modal-NzZzHSwb.js +0 -559
  227. package/dist/Popover-CWrR51eG.cjs +0 -1
  228. package/dist/SearchableSelect-CVqdVMOC.cjs +0 -1
  229. package/dist/StatusBarNotificationBell-BJiORN4s.cjs +0 -50
  230. package/dist/ToggleButton-BFWh1_o5.cjs +0 -1
  231. package/dist/anchoredLayout-Dstwa5OH.cjs +0 -1
  232. package/dist/anchoredLayout-FC-qv8xm.js +0 -250
  233. package/dist/appThemeDerivation-Be_oKljl.cjs +0 -1
  234. package/dist/createDialogShellFocus-CJaw9-B9.cjs +0 -1
  235. package/dist/createResizableSidebar-BDUlX9-G.js +0 -472
  236. package/dist/createResizableSidebar-BVJBU2kP.cjs +0 -1
  237. package/dist/dialogFocusRestore--dH59ER2.js +0 -35
  238. package/dist/dialogFocusRestore-CL-ExfAA.cjs +0 -1
  239. package/dist/mainRealmDom-C12lr9lm.js +0 -171
  240. package/dist/mainRealmDom-S6teqEr4.cjs +0 -1
  241. package/dist/server/CommandPalette-DQK6N98N.cjs +0 -1
  242. package/dist/server/HostPortal-CgJwxt-f.cjs +0 -1
  243. package/dist/server/Input-CjvD8w18.cjs +0 -1
  244. package/dist/server/Input-DaEN2JJd.js +0 -127
  245. package/dist/server/Popover-BsxIKBbl.cjs +0 -1
  246. package/dist/server/StatusBarNotificationBell-LJHLMT9F.cjs +0 -49
  247. package/dist/server/VpTrash-D49oUUJh.cjs +0 -1
  248. package/dist/server/appThemeDerivation-Be_oKljl.cjs +0 -1
  249. package/dist/server/dialogFocusRestore--dH59ER2.js +0 -35
  250. package/dist/server/dialogFocusRestore-CL-ExfAA.cjs +0 -1
  251. package/dist/server/index-2mQPVEDR.cjs +0 -1
  252. package/dist/tooltipCoordinator-BzxEyKhA.js +0 -144
  253. package/dist/tooltipCoordinator-DslqMlsI.cjs +0 -1
@@ -0,0 +1,8 @@
1
+ import type { ToastPosition } from '../_internal/platform/settings/settingsTypes.js';
2
+ /**
3
+ * The window edge a notifications corner is on — the edge the toast stack and the center grow away from, which
4
+ * turns the icons that point along them, as the reference turns its center's hide icon and its cards' expand and
5
+ * collapse icons with the notifications' position (`workbench/browser/parts/notifications/notificationsCenter.ts:
6
+ * 104-111`; `notificationsActions.ts:19-24`, `:29-35`).
7
+ */
8
+ export declare function toastCornerEdge(corner: ToastPosition): 'top' | 'bottom';
@@ -22,7 +22,23 @@
22
22
  * cannot import from the app anyway, so this is not a stylistic choice but a structural
23
23
  * necessity.
24
24
  */
25
- import type { NotificationPriority } from '../_internal/contract/notification.cjs';
25
+ import type { NotificationPriority, NotificationSeverity } from '../_internal/contract/notification.cjs';
26
+ /**
27
+ * A run-time notification filter — not a setting: a host sets it while a state of its own lasts and turns it off
28
+ * after, and nothing of it is stored (the reference's `NotificationsFilter`).
29
+ * - `'off'`: every notification is decided by the settings alone.
30
+ * - `'errors-only'`: the reference's error filter, the one its Zen mode sets while `zenMode.silentNotifications` is on
31
+ * (`workbench/browser/layout.ts:1485`, `:1513-1515`, `:1549-1555`, `:1592-1594`): a notification of the default or
32
+ * the optional priority that is not an error is silent — recorded, no toast (`workbench/common/notifications.ts:
33
+ * 494-502`). Errors, urgent notifications and acknowledgments still toast.
34
+ */
35
+ export type NotificationFilter = 'off' | 'errors-only';
36
+ /**
37
+ * The priority an issue is decided under the run-time filter: the reference's error filter makes a default or optional
38
+ * notification that is not an error silent, the priority the decision already knows — one rule, no second silencing
39
+ * path. The notification keeps the priority it was issued with everywhere else (its record, its card).
40
+ */
41
+ export declare function filteredPriority(priority: NotificationPriority, severity: NotificationSeverity, filter: NotificationFilter): NotificationPriority;
26
42
  export interface FilterDecision {
27
43
  showToast: boolean;
28
44
  recordTimeline: boolean;
@@ -60,4 +76,20 @@ export interface ToastFilterInput {
60
76
  * apart, "remind me later" would silently silence nothing.
61
77
  */
62
78
  export declare function deriveImplicitRemindKey(source: string, title: string): string;
79
+ /** What a card's "remind me later" keys on — its fields that name the notification. */
80
+ export interface RemindKeySource {
81
+ /** The key the card carries: its issuer's (`ToastCommonOptions.remindKey`), or the one a progress was issued with. */
82
+ readonly remindKey?: string | undefined;
83
+ readonly neverShowAgainKey?: string | undefined;
84
+ readonly source?: string | undefined;
85
+ readonly title: string;
86
+ }
87
+ /**
88
+ * The key "remind me later" on a card silences: the key the card carries, else its "don't show again" key, else the
89
+ * key derived from its source and title.
90
+ *
91
+ * ⚠ SINGLE HOME: the card's gear menu writes this key and the check that a running card was turned down reads it; two
92
+ * copies drifting apart would silence nothing.
93
+ */
94
+ export declare function cardRemindKey(card: RemindKeySource): string;
63
95
  export declare function decideFilter(input: ToastFilterInput, settings: ToastFilterSettings, gates: ToastFilterGates): FilterDecision;
@@ -22,7 +22,23 @@
22
22
  * cannot import from the app anyway, so this is not a stylistic choice but a structural
23
23
  * necessity.
24
24
  */
25
- import type { NotificationPriority } from '../_internal/contract/notification.js';
25
+ import type { NotificationPriority, NotificationSeverity } from '../_internal/contract/notification.js';
26
+ /**
27
+ * A run-time notification filter — not a setting: a host sets it while a state of its own lasts and turns it off
28
+ * after, and nothing of it is stored (the reference's `NotificationsFilter`).
29
+ * - `'off'`: every notification is decided by the settings alone.
30
+ * - `'errors-only'`: the reference's error filter, the one its Zen mode sets while `zenMode.silentNotifications` is on
31
+ * (`workbench/browser/layout.ts:1485`, `:1513-1515`, `:1549-1555`, `:1592-1594`): a notification of the default or
32
+ * the optional priority that is not an error is silent — recorded, no toast (`workbench/common/notifications.ts:
33
+ * 494-502`). Errors, urgent notifications and acknowledgments still toast.
34
+ */
35
+ export type NotificationFilter = 'off' | 'errors-only';
36
+ /**
37
+ * The priority an issue is decided under the run-time filter: the reference's error filter makes a default or optional
38
+ * notification that is not an error silent, the priority the decision already knows — one rule, no second silencing
39
+ * path. The notification keeps the priority it was issued with everywhere else (its record, its card).
40
+ */
41
+ export declare function filteredPriority(priority: NotificationPriority, severity: NotificationSeverity, filter: NotificationFilter): NotificationPriority;
26
42
  export interface FilterDecision {
27
43
  showToast: boolean;
28
44
  recordTimeline: boolean;
@@ -60,4 +76,20 @@ export interface ToastFilterInput {
60
76
  * apart, "remind me later" would silently silence nothing.
61
77
  */
62
78
  export declare function deriveImplicitRemindKey(source: string, title: string): string;
79
+ /** What a card's "remind me later" keys on — its fields that name the notification. */
80
+ export interface RemindKeySource {
81
+ /** The key the card carries: its issuer's (`ToastCommonOptions.remindKey`), or the one a progress was issued with. */
82
+ readonly remindKey?: string | undefined;
83
+ readonly neverShowAgainKey?: string | undefined;
84
+ readonly source?: string | undefined;
85
+ readonly title: string;
86
+ }
87
+ /**
88
+ * The key "remind me later" on a card silences: the key the card carries, else its "don't show again" key, else the
89
+ * key derived from its source and title.
90
+ *
91
+ * ⚠ SINGLE HOME: the card's gear menu writes this key and the check that a running card was turned down reads it; two
92
+ * copies drifting apart would silence nothing.
93
+ */
94
+ export declare function cardRemindKey(card: RemindKeySource): string;
63
95
  export declare function decideFilter(input: ToastFilterInput, settings: ToastFilterSettings, gates: ToastFilterGates): FilterDecision;
@@ -22,6 +22,12 @@ export interface ModalProps {
22
22
  * Defaults to true (unless embedded is true).
23
23
  */
24
24
  allowMaximize?: boolean;
25
+ /**
26
+ * Gap kept above the modal when it is maximized (any CSS length). The default leaves room for a
27
+ * window title bar drawn by the host; pass `'0px'` for a page that has none, so the modal covers
28
+ * the whole viewport.
29
+ */
30
+ maximizeInset?: string | undefined;
25
31
  /**
26
32
  * Allow dragging the modal by its header using pointer events.
27
33
  * Defaults to true (unless embedded is true or allowDrag is false).
@@ -22,6 +22,12 @@ export interface ModalProps {
22
22
  * Defaults to true (unless embedded is true).
23
23
  */
24
24
  allowMaximize?: boolean;
25
+ /**
26
+ * Gap kept above the modal when it is maximized (any CSS length). The default leaves room for a
27
+ * window title bar drawn by the host; pass `'0px'` for a page that has none, so the modal covers
28
+ * the whole viewport.
29
+ */
30
+ maximizeInset?: string | undefined;
25
31
  /**
26
32
  * Allow dragging the modal by its header using pointer events.
27
33
  * Defaults to true (unless embedded is true or allowDrag is false).
@@ -28,8 +28,12 @@
28
28
  * closing the inner restores exactly that and nothing else. An element the page
29
29
  * had already marked inert for its own reasons is never un-marked.
30
30
  */
31
- /** Surfaces that stay live above every modal: the notification stack and the app live region. */
32
- export type ModalBackgroundExemption = 'notifications' | 'live-region';
31
+ /**
32
+ * Surfaces that stay live above every modal: the notification stack and the app live region. A
33
+ * `dialog-backdrop` is the click-away layer a dialog draws beside itself (a drawer's): it is not
34
+ * background, it is part of the dialog, and inerting it would make clicking outside do nothing.
35
+ */
36
+ export type ModalBackgroundExemption = 'notifications' | 'live-region' | 'dialog-backdrop';
33
37
  declare const EXEMPTION_ATTRIBUTE = "data-modal-background-exempt";
34
38
  /**
35
39
  * Spread onto the root element of a surface that must stay live while a modal is
@@ -28,8 +28,12 @@
28
28
  * closing the inner restores exactly that and nothing else. An element the page
29
29
  * had already marked inert for its own reasons is never un-marked.
30
30
  */
31
- /** Surfaces that stay live above every modal: the notification stack and the app live region. */
32
- export type ModalBackgroundExemption = 'notifications' | 'live-region';
31
+ /**
32
+ * Surfaces that stay live above every modal: the notification stack and the app live region. A
33
+ * `dialog-backdrop` is the click-away layer a dialog draws beside itself (a drawer's): it is not
34
+ * background, it is part of the dialog, and inerting it would make clicking outside do nothing.
35
+ */
36
+ export type ModalBackgroundExemption = 'notifications' | 'live-region' | 'dialog-backdrop';
33
37
  declare const EXEMPTION_ATTRIBUTE = "data-modal-background-exempt";
34
38
  /**
35
39
  * Spread onto the root element of a surface that must stay live while a modal is
@@ -51,7 +51,19 @@ interface CommandPaletteProps {
51
51
  commands: CommandPaletteCommand[];
52
52
  recentCommandIds: string[];
53
53
  style: CommandPaletteStyle;
54
+ /**
55
+ * Closes the palette: the host turns `open` false — and must do it before `onClose` returns. The palette calls it
56
+ * BEFORE it runs a pick (a command, a submenu row, the "Configure Keybinding" gear), and its close — the focus
57
+ * handed back, the background's inertness lifted — runs as `open` turns false; the pick runs right after and may
58
+ * move the focus. A close that lands later — deferred to a microtask, a timer or a transition, or written inside a
59
+ * `batch` that is still open — lets the pick run under the open palette, and the late close takes the focus back
60
+ * from it.
61
+ */
54
62
  onClose: () => void;
63
+ /**
64
+ * Called with the id of the command a pick runs — for a submenu's row, the command that opened the submenu —, after
65
+ * `onClose` and before the pick runs.
66
+ */
55
67
  onCommandExecuted: (commandId: string) => void;
56
68
  /**
57
69
  * When the palette opens, returns an action id whose submenu should be
@@ -51,7 +51,19 @@ interface CommandPaletteProps {
51
51
  commands: CommandPaletteCommand[];
52
52
  recentCommandIds: string[];
53
53
  style: CommandPaletteStyle;
54
+ /**
55
+ * Closes the palette: the host turns `open` false — and must do it before `onClose` returns. The palette calls it
56
+ * BEFORE it runs a pick (a command, a submenu row, the "Configure Keybinding" gear), and its close — the focus
57
+ * handed back, the background's inertness lifted — runs as `open` turns false; the pick runs right after and may
58
+ * move the focus. A close that lands later — deferred to a microtask, a timer or a transition, or written inside a
59
+ * `batch` that is still open — lets the pick run under the open palette, and the late close takes the focus back
60
+ * from it.
61
+ */
54
62
  onClose: () => void;
63
+ /**
64
+ * Called with the id of the command a pick runs — for a submenu's row, the command that opened the submenu —, after
65
+ * `onClose` and before the pick runs.
66
+ */
55
67
  onCommandExecuted: (commandId: string) => void;
56
68
  /**
57
69
  * When the palette opens, returns an action id whose submenu should be
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../CommandPalette-5FQRgPG9.cjs"),r=require("../Modal-CY6ePolt.cjs"),O=require("../OverlayScrollArea-BSlaXG1h.cjs"),a=require("../GuidedTour-B6q7lYhn.cjs"),i=require("../createDialogShellFocus-CJaw9-B9.cjs"),n=require("../tooltipCoordinator-DslqMlsI.cjs"),s=require("../dialogFocusRestore-CL-ExfAA.cjs"),t=require("../anchoredLayout-Dstwa5OH.cjs"),o=require("../overlayStack-eD8AmuwY.cjs"),p=require("../useFloatingDropdown-D5UayoN6.cjs"),M=require("../ownerWindow-BCmJFMbR.cjs"),u=require("../prefersReducedMotion-BQp-Q4UR.cjs"),c=require("../DesktopContextMenuContext-DMGNVjaR.cjs"),l=require("../Popover-CWrR51eG.cjs");exports.CommandPalette=e.CommandPalette;exports.ConfirmDialog=e.ConfirmDialog;exports.ConsequenceLine=e.ConsequenceLine;exports.ContextMenu=e.ContextMenu;exports.DesktopContextMenu=e.DesktopContextMenu;exports.Drawer=e.Drawer;exports.DropdownMenu=e.DropdownMenu;exports.FloatingWindow=e.FloatingWindow;exports.InputDialog=e.InputDialog;exports.MenuDisclosure=e.MenuDisclosure;exports.MenuEmpty=e.MenuEmpty;exports.MenuItem=e.MenuItem;exports.MenuList=e.MenuList;exports.MenuSearch=e.MenuSearch;exports.MenuSection=e.MenuSection;exports.MenuSeparator=e.MenuSeparator;exports.NameStep=e.NameStep;exports.OptionList=e.OptionList;exports.PopoverPanel=e.PopoverPanel;exports.SUBMENU_ANCHOR_OVERLAP=e.SUBMENU_ANCHOR_OVERLAP;exports.SUBMENU_ESTIMATED_ROW_HEIGHT=e.SUBMENU_ESTIMATED_ROW_HEIGHT;exports.SUBMENU_ESTIMATED_WIDTH=e.SUBMENU_ESTIMATED_WIDTH;exports.SUBMENU_MIN_ESTIMATED_HEIGHT=e.SUBMENU_MIN_ESTIMATED_HEIGHT;exports.SUBMENU_VIEWPORT_MARGIN=e.SUBMENU_VIEWPORT_MARGIN;exports.SaveDiscardDialog=e.SaveDiscardDialog;exports.SelectedOptions=e.SelectedOptions;exports.StatementPreview=e.StatementPreview;exports.StepFooter=e.StepFooter;exports.Tooltip=e.Tooltip;exports.TooltipHost=e.TooltipHost;exports.closeContextMenu=e.closeContextMenu;exports.computeSubmenuPlacement=e.computeSubmenuPlacement;exports.confirmationLevelOf=e.confirmationLevelOf;exports.createDangerousActionDialog=e.createDangerousActionDialog;exports.createDesktopContextMenuApi=e.createDesktopContextMenuApi;exports.createDialogFocusScope=e.createDialogFocusScope;exports.createOverlayCloseGuard=e.createOverlayCloseGuard;exports.describeConsequence=e.describeConsequence;exports.estimateSubmenuHeight=e.estimateSubmenuHeight;exports.firstFocusableMenuIndex=e.firstFocusableMenuIndex;exports.isDesktopMenuNavigationKey=e.isDesktopMenuNavigationKey;exports.isIrreversible=e.isIrreversible;exports.lastFocusableMenuIndex=e.lastFocusableMenuIndex;exports.menuSurfaceClasses=e.menuSurfaceClasses;exports.nextFocusableMenuIndex=e.nextFocusableMenuIndex;exports.openContextMenu=e.openContextMenu;exports.panelClasses=e.panelClasses;exports.resolveDangerousActionDialogKeyIntent=e.resolveDangerousActionDialogKeyIntent;exports.resolveMenuFocusForKey=e.resolveMenuFocusForKey;exports.tooltip=e.tooltip;exports.ActionPlaceRow=r.ActionPlaceRow;exports.Modal=r.Modal;exports.collectFocusableElements=r.collectFocusableElements;exports.modalTitlebarHeight=r.modalTitlebarHeight;exports.resolveDialogShellKeyIntent=r.resolveDialogShellKeyIntent;exports.resolveModalFocusTrapTarget=r.resolveModalFocusTrapTarget;exports.trapTabFocusWithin=r.trapTabFocusWithin;exports.OverlayScrollArea=O.OverlayScrollArea;exports.Disclosure=a.Disclosure;exports.GuidedTour=a.GuidedTour;exports.Panel=a.Panel;exports.PanelSeparator=a.PanelSeparator;exports.positionTourCard=a.positionTourCard;exports.HoverTooltip=i.HoverTooltip;exports.TOOLTIP_CURSOR_OFFSET_X=i.TOOLTIP_CURSOR_OFFSET_X;exports.TOOLTIP_CURSOR_OFFSET_Y=i.TOOLTIP_CURSOR_OFFSET_Y;exports.TOOLTIP_MAX_FOOTPRINT_X=i.TOOLTIP_MAX_FOOTPRINT_X;exports.TOOLTIP_VIEWPORT_MARGIN=i.TOOLTIP_VIEWPORT_MARGIN;exports.computeTooltipPointerPosition=i.computeTooltipPointerPosition;exports.createDialogShellFocus=i.createDialogShellFocus;exports.COLD_DELAY_MS=n.COLD_DELAY_MS;exports.COOLDOWN_MS=n.COOLDOWN_MS;exports.DEFAULT_MARGIN=n.DEFAULT_MARGIN;exports.DEFAULT_OFFSET=n.DEFAULT_OFFSET;exports.WARM_DELAY_MS=n.WARM_DELAY_MS;exports.computeAnchoredTooltipPosition=n.computeAnchoredTooltipPosition;exports.createTooltipCoordinator=n.createTooltipCoordinator;exports.tooltipCoordinator=n.tooltipCoordinator;exports.OverlayPortal=s.OverlayPortal;exports.restoreFocusTo=s.restoreFocusTo;exports.shouldRestoreFocusOnDialogClose=s.shouldRestoreFocusOnDialogClose;exports.AnchorAlignment=t.AnchorAlignment;exports.AnchorAxisAlignment=t.AnchorAxisAlignment;exports.AnchorPosition=t.AnchorPosition;exports.OVERLAY_DEFAULT_GAP=t.OVERLAY_DEFAULT_GAP;exports.OVERLAY_DEFAULT_MARGIN=t.OVERLAY_DEFAULT_MARGIN;exports.POPOVER_DEFAULT_GAP=t.POPOVER_DEFAULT_GAP;exports.POPOVER_VIEWPORT_MARGIN=t.POPOVER_VIEWPORT_MARGIN;exports.calcFixedWidthDropdownLeft=t.calcFixedWidthDropdownLeft;exports.computeAnchoredPosition=t.computeAnchoredPosition;exports.computeDropdownPosition=t.computeDropdownPosition;exports.computePopoverPosition=t.computePopoverPosition;exports.layout2d=t.layout2d;exports.requestOwnerAnimationFrame=t.requestOwnerAnimationFrame;exports.resolvePopoverSide=t.resolvePopoverSide;exports.getOverlayDiagnostics=o.getOverlayDiagnostics;exports.hasOpenLayerIn=o.hasOpenLayerIn;exports.isAnyOverlayOpen=o.isAnyOverlayOpen;exports.isModalOccluded=o.isModalOccluded;exports.isOverlayOverlapping=o.isOverlayOverlapping;exports.notifyOverlayChanged=o.notifyOverlayChanged;exports.notifyOverlayMotionEnd=o.notifyOverlayMotionEnd;exports.notifyOverlayMotionStart=o.notifyOverlayMotionStart;exports.onOverlayMotion=o.onOverlayMotion;exports.overlayDepth=o.overlayDepth;exports.readOverlayMutationRevision=o.readOverlayMutationRevision;exports.registerOverlayClose=o.registerOverlayClose;exports.registerOverlayCondition=o.registerOverlayCondition;exports.registerOverlayOpen=o.registerOverlayOpen;exports.useOverlayRegistration=o.useOverlayRegistration;exports.useFloatingDropdown=p.useFloatingDropdown;exports.ownerWindow=M.ownerWindow;exports.modalBackgroundExemption=u.modalBackgroundExemption;exports.neutralizeBackground=u.neutralizeBackground;exports.DesktopContextMenuContext=c.DesktopContextMenuContext;exports.useDesktopContextMenu=c.useDesktopContextMenu;exports.LISTBOX_OPTION_SELECTOR=l.LISTBOX_OPTION_SELECTOR;exports.MENU_ITEM_SELECTOR=l.MENU_ITEM_SELECTOR;exports.Popover=l.Popover;exports.isPopoverNavigationKey=l.isPopoverNavigationKey;exports.resolvePopoverFocusForKey=l.resolvePopoverFocusForKey;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../CommandPalette-CxYZUJtN.cjs"),r=require("../Modal-CBi7Wd2V.cjs"),O=require("../OverlayScrollArea-BSlaXG1h.cjs"),a=require("../GuidedTour-DUQwdW8n.cjs"),i=require("../createDialogShellFocus-CQ0VNC2g.cjs"),n=require("../nativeTitleHold-B7Ou-W9b.cjs"),p=require("../Input-Brp5EDhg.cjs"),t=require("../anchoredLayout-CBjQ1etD.cjs"),o=require("../overlayStack-eD8AmuwY.cjs"),M=require("../useFloatingDropdown-D5UayoN6.cjs"),T=require("../ownerWindow-BCmJFMbR.cjs"),d=require("../ownerAnimationFrame-T6jf6qYC.cjs"),s=require("../prefersReducedMotion-BQp-Q4UR.cjs"),u=require("../dialogFocusRestore-DP5b1bDo.cjs"),c=require("../DesktopContextMenuContext-DMGNVjaR.cjs"),l=require("../Popover-DXrczbt9.cjs");exports.CommandPalette=e.CommandPalette;exports.ConfirmDialog=e.ConfirmDialog;exports.ConsequenceLine=e.ConsequenceLine;exports.ContextMenu=e.ContextMenu;exports.DesktopContextMenu=e.DesktopContextMenu;exports.Drawer=e.Drawer;exports.DropdownMenu=e.DropdownMenu;exports.FloatingWindow=e.FloatingWindow;exports.InputDialog=e.InputDialog;exports.MenuDisclosure=e.MenuDisclosure;exports.MenuEmpty=e.MenuEmpty;exports.MenuItem=e.MenuItem;exports.MenuList=e.MenuList;exports.MenuSearch=e.MenuSearch;exports.MenuSection=e.MenuSection;exports.MenuSeparator=e.MenuSeparator;exports.NameStep=e.NameStep;exports.OptionList=e.OptionList;exports.PopoverPanel=e.PopoverPanel;exports.SUBMENU_ANCHOR_OVERLAP=e.SUBMENU_ANCHOR_OVERLAP;exports.SUBMENU_ESTIMATED_ROW_HEIGHT=e.SUBMENU_ESTIMATED_ROW_HEIGHT;exports.SUBMENU_ESTIMATED_WIDTH=e.SUBMENU_ESTIMATED_WIDTH;exports.SUBMENU_MIN_ESTIMATED_HEIGHT=e.SUBMENU_MIN_ESTIMATED_HEIGHT;exports.SUBMENU_VIEWPORT_MARGIN=e.SUBMENU_VIEWPORT_MARGIN;exports.SaveDiscardDialog=e.SaveDiscardDialog;exports.SelectedOptions=e.SelectedOptions;exports.StatementPreview=e.StatementPreview;exports.StepFooter=e.StepFooter;exports.Tooltip=e.Tooltip;exports.TooltipHost=e.TooltipHost;exports.closeContextMenu=e.closeContextMenu;exports.computeSubmenuPlacement=e.computeSubmenuPlacement;exports.confirmationLevelOf=e.confirmationLevelOf;exports.createDangerousActionDialog=e.createDangerousActionDialog;exports.createDesktopContextMenuApi=e.createDesktopContextMenuApi;exports.createDialogFocusScope=e.createDialogFocusScope;exports.createOverlayCloseGuard=e.createOverlayCloseGuard;exports.describeConsequence=e.describeConsequence;exports.estimateSubmenuHeight=e.estimateSubmenuHeight;exports.firstFocusableMenuIndex=e.firstFocusableMenuIndex;exports.isDesktopMenuNavigationKey=e.isDesktopMenuNavigationKey;exports.isIrreversible=e.isIrreversible;exports.lastFocusableMenuIndex=e.lastFocusableMenuIndex;exports.menuSurfaceClasses=e.menuSurfaceClasses;exports.nextFocusableMenuIndex=e.nextFocusableMenuIndex;exports.openContextMenu=e.openContextMenu;exports.panelClasses=e.panelClasses;exports.resolveDangerousActionDialogKeyIntent=e.resolveDangerousActionDialogKeyIntent;exports.resolveMenuFocusForKey=e.resolveMenuFocusForKey;exports.tooltip=e.tooltip;exports.ActionPlaceRow=r.ActionPlaceRow;exports.Modal=r.Modal;exports.collectFocusableElements=r.collectFocusableElements;exports.modalTitlebarHeight=r.modalTitlebarHeight;exports.resolveDialogShellKeyIntent=r.resolveDialogShellKeyIntent;exports.resolveModalFocusTrapTarget=r.resolveModalFocusTrapTarget;exports.trapTabFocusWithin=r.trapTabFocusWithin;exports.OverlayScrollArea=O.OverlayScrollArea;exports.Disclosure=a.Disclosure;exports.GuidedTour=a.GuidedTour;exports.Panel=a.Panel;exports.PanelSeparator=a.PanelSeparator;exports.positionTourCard=a.positionTourCard;exports.HoverTooltip=i.HoverTooltip;exports.TOOLTIP_CURSOR_OFFSET_X=i.TOOLTIP_CURSOR_OFFSET_X;exports.TOOLTIP_CURSOR_OFFSET_Y=i.TOOLTIP_CURSOR_OFFSET_Y;exports.TOOLTIP_MAX_FOOTPRINT_X=i.TOOLTIP_MAX_FOOTPRINT_X;exports.TOOLTIP_VIEWPORT_MARGIN=i.TOOLTIP_VIEWPORT_MARGIN;exports.computeTooltipPointerPosition=i.computeTooltipPointerPosition;exports.createDialogShellFocus=i.createDialogShellFocus;exports.COLD_DELAY_MS=n.COLD_DELAY_MS;exports.COOLDOWN_MS=n.COOLDOWN_MS;exports.DEFAULT_MARGIN=n.DEFAULT_MARGIN;exports.DEFAULT_OFFSET=n.DEFAULT_OFFSET;exports.WARM_DELAY_MS=n.WARM_DELAY_MS;exports.computeAnchoredTooltipPosition=n.computeAnchoredTooltipPosition;exports.createTooltipCoordinator=n.createTooltipCoordinator;exports.tooltipCoordinator=n.tooltipCoordinator;exports.OverlayPortal=p.OverlayPortal;exports.AnchorAlignment=t.AnchorAlignment;exports.AnchorAxisAlignment=t.AnchorAxisAlignment;exports.AnchorPosition=t.AnchorPosition;exports.OVERLAY_DEFAULT_GAP=t.OVERLAY_DEFAULT_GAP;exports.OVERLAY_DEFAULT_MARGIN=t.OVERLAY_DEFAULT_MARGIN;exports.POPOVER_DEFAULT_GAP=t.POPOVER_DEFAULT_GAP;exports.POPOVER_VIEWPORT_MARGIN=t.POPOVER_VIEWPORT_MARGIN;exports.calcFixedWidthDropdownLeft=t.calcFixedWidthDropdownLeft;exports.computeAnchoredPosition=t.computeAnchoredPosition;exports.computeDropdownPosition=t.computeDropdownPosition;exports.computePopoverPosition=t.computePopoverPosition;exports.layout2d=t.layout2d;exports.resolvePopoverSide=t.resolvePopoverSide;exports.getOverlayDiagnostics=o.getOverlayDiagnostics;exports.hasOpenLayerIn=o.hasOpenLayerIn;exports.isAnyOverlayOpen=o.isAnyOverlayOpen;exports.isModalOccluded=o.isModalOccluded;exports.isOverlayOverlapping=o.isOverlayOverlapping;exports.notifyOverlayChanged=o.notifyOverlayChanged;exports.notifyOverlayMotionEnd=o.notifyOverlayMotionEnd;exports.notifyOverlayMotionStart=o.notifyOverlayMotionStart;exports.onOverlayMotion=o.onOverlayMotion;exports.overlayDepth=o.overlayDepth;exports.readOverlayMutationRevision=o.readOverlayMutationRevision;exports.registerOverlayClose=o.registerOverlayClose;exports.registerOverlayCondition=o.registerOverlayCondition;exports.registerOverlayOpen=o.registerOverlayOpen;exports.useOverlayRegistration=o.useOverlayRegistration;exports.useFloatingDropdown=M.useFloatingDropdown;exports.ownerWindow=T.ownerWindow;exports.requestOwnerAnimationFrame=d.requestOwnerAnimationFrame;exports.modalBackgroundExemption=s.modalBackgroundExemption;exports.neutralizeBackground=s.neutralizeBackground;exports.restoreFocusTo=u.restoreFocusTo;exports.shouldRestoreFocusOnDialogClose=u.shouldRestoreFocusOnDialogClose;exports.DesktopContextMenuContext=c.DesktopContextMenuContext;exports.useDesktopContextMenu=c.useDesktopContextMenu;exports.LISTBOX_OPTION_SELECTOR=l.LISTBOX_OPTION_SELECTOR;exports.MENU_ITEM_SELECTOR=l.MENU_ITEM_SELECTOR;exports.Popover=l.Popover;exports.isPopoverNavigationKey=l.isPopoverNavigationKey;exports.resolvePopoverFocusForKey=l.resolvePopoverFocusForKey;
@@ -1,22 +1,24 @@
1
- import { C as o, a as s, b as t, c as r, D as n, d as i, e as l, F as u, I as p, M as O, f as c, g as M, h as T, i as d, j as m, k as D, N as E, O as _, P as A, S as P, l as v, m as S, n as g, o as I, p as F, q as C, r as x, s as y, T as R, t as f, u as L, v as N, w as h, x as U, y as b, z as G, A as W, B as w, E as H, G as k, H as B, J as V, K, L as X, Q as Y, R as q, U as j, V as z, W as J, X as Q } from "../CommandPalette-Cj618AOz.js";
2
- import { A as $, M as ee, c as ae, m as oe, r as se, a as te, t as re } from "../Modal-NzZzHSwb.js";
1
+ import { C as o, a as s, b as t, c as r, D as n, d as i, e as l, F as u, I as p, M as O, f as c, g as M, h as T, i as m, j as d, k as D, N as E, O as _, P as A, S as P, l as v, m as S, n as g, o as I, p as x, q as F, r as C, s as y, T as f, t as R, u as L, v as N, w as h, x as U, y as b, z as G, A as W, B as w, E as H, G as k, H as B, J as V, K, L as X, Q as Y, R as q, U as j, V as z, W as J, X as Q } from "../CommandPalette-DwOp8y1-.js";
2
+ import { A as $, M as ee, c as ae, m as oe, r as se, a as te, t as re } from "../Modal-iyY1HUtr.js";
3
3
  import { O as ie } from "../OverlayScrollArea-c8Za77qs.js";
4
- import { D as ue, G as pe, P as Oe, a as ce, p as Me } from "../GuidedTour-CFCvRJN4.js";
5
- import { H as de, T as me, a as De, c as Ee, d as _e, e as Ae, f as Pe } from "../createDialogShellFocus-B4piXDU4.js";
6
- import { C as Se, a as ge, D as Ie, b as Fe, W as Ce, c as xe, d as ye, t as Re } from "../tooltipCoordinator-BzxEyKhA.js";
7
- import { O as Le, r as Ne, s as he } from "../dialogFocusRestore--dH59ER2.js";
8
- import { A as be, a as Ge, b as We, O as we, c as He, P as ke, d as Be, e as Ve, f as Ke, g as Xe, h as Ye, l as qe, r as je, i as ze } from "../anchoredLayout-FC-qv8xm.js";
9
- import { g as Qe, h as Ze, i as $e, a as ea, b as aa, n as oa, c as sa, d as ta, o as ra, e as na, r as ia, f as la, j as ua, k as pa, u as Oa } from "../overlayStack-Bj6Lg1Rm.js";
10
- import { u as Ma } from "../useFloatingDropdown-2Tz_es0W.js";
11
- import { o as da } from "../ownerWindow-9mx_LD47.js";
12
- import { m as Da, n as Ea } from "../prefersReducedMotion-B2mMn01s.js";
13
- import { D as Aa, u as Pa } from "../DesktopContextMenuContext-DJ3PnqAv.js";
14
- import { L as Sa, M as ga, P as Ia, i as Fa, r as Ca } from "../Popover-Cttb6NYT.js";
4
+ import { D as ue, G as pe, P as Oe, a as ce, p as Me } from "../GuidedTour-DXMmHn0o.js";
5
+ import { H as me, T as de, a as De, c as Ee, d as _e, e as Ae, f as Pe } from "../createDialogShellFocus-DbiQmLgb.js";
6
+ import { C as Se, a as ge, D as Ie, b as xe, W as Fe, c as Ce, d as ye, t as fe } from "../nativeTitleHold-A9jUISgQ.js";
7
+ import { O as Le } from "../Input-CZi8KEfm.js";
8
+ import { A as he, a as Ue, b as be, O as Ge, c as We, P as we, d as He, e as ke, f as Be, g as Ve, h as Ke, l as Xe, r as Ye } from "../anchoredLayout-E0mqCWxk.js";
9
+ import { g as je, h as ze, i as Je, a as Qe, b as Ze, n as $e, c as ea, d as aa, o as oa, e as sa, r as ta, f as ra, j as na, k as ia, u as la } from "../overlayStack-Bj6Lg1Rm.js";
10
+ import { u as pa } from "../useFloatingDropdown-2Tz_es0W.js";
11
+ import { o as ca } from "../ownerWindow-9mx_LD47.js";
12
+ import { r as Ta } from "../ownerAnimationFrame-DzFcMSmn.js";
13
+ import { m as da, n as Da } from "../prefersReducedMotion-B2mMn01s.js";
14
+ import { r as _a, s as Aa } from "../dialogFocusRestore-BhxVTSiP.js";
15
+ import { D as va, u as Sa } from "../DesktopContextMenuContext-DJ3PnqAv.js";
16
+ import { L as Ia, M as xa, P as Fa, i as Ca, r as ya } from "../Popover-DVi179wu.js";
15
17
  export {
16
18
  $ as ActionPlaceRow,
17
- be as AnchorAlignment,
18
- Ge as AnchorAxisAlignment,
19
- We as AnchorPosition,
19
+ he as AnchorAlignment,
20
+ Ue as AnchorAxisAlignment,
21
+ be as AnchorPosition,
20
22
  Se as COLD_DELAY_MS,
21
23
  ge as COOLDOWN_MS,
22
24
  o as CommandPalette,
@@ -24,61 +26,61 @@ export {
24
26
  t as ConsequenceLine,
25
27
  r as ContextMenu,
26
28
  Ie as DEFAULT_MARGIN,
27
- Fe as DEFAULT_OFFSET,
29
+ xe as DEFAULT_OFFSET,
28
30
  n as DesktopContextMenu,
29
- Aa as DesktopContextMenuContext,
31
+ va as DesktopContextMenuContext,
30
32
  ue as Disclosure,
31
33
  i as Drawer,
32
34
  l as DropdownMenu,
33
35
  u as FloatingWindow,
34
36
  pe as GuidedTour,
35
- de as HoverTooltip,
37
+ me as HoverTooltip,
36
38
  p as InputDialog,
37
- Sa as LISTBOX_OPTION_SELECTOR,
38
- ga as MENU_ITEM_SELECTOR,
39
+ Ia as LISTBOX_OPTION_SELECTOR,
40
+ xa as MENU_ITEM_SELECTOR,
39
41
  O as MenuDisclosure,
40
42
  c as MenuEmpty,
41
43
  M as MenuItem,
42
44
  T as MenuList,
43
- d as MenuSearch,
44
- m as MenuSection,
45
+ m as MenuSearch,
46
+ d as MenuSection,
45
47
  D as MenuSeparator,
46
48
  ee as Modal,
47
49
  E as NameStep,
48
- we as OVERLAY_DEFAULT_GAP,
49
- He as OVERLAY_DEFAULT_MARGIN,
50
+ Ge as OVERLAY_DEFAULT_GAP,
51
+ We as OVERLAY_DEFAULT_MARGIN,
50
52
  _ as OptionList,
51
53
  Le as OverlayPortal,
52
54
  ie as OverlayScrollArea,
53
- ke as POPOVER_DEFAULT_GAP,
54
- Be as POPOVER_VIEWPORT_MARGIN,
55
+ we as POPOVER_DEFAULT_GAP,
56
+ He as POPOVER_VIEWPORT_MARGIN,
55
57
  Oe as Panel,
56
58
  ce as PanelSeparator,
57
- Ia as Popover,
59
+ Fa as Popover,
58
60
  A as PopoverPanel,
59
61
  P as SUBMENU_ANCHOR_OVERLAP,
60
62
  v as SUBMENU_ESTIMATED_ROW_HEIGHT,
61
63
  S as SUBMENU_ESTIMATED_WIDTH,
62
64
  g as SUBMENU_MIN_ESTIMATED_HEIGHT,
63
65
  I as SUBMENU_VIEWPORT_MARGIN,
64
- F as SaveDiscardDialog,
65
- C as SelectedOptions,
66
- x as StatementPreview,
66
+ x as SaveDiscardDialog,
67
+ F as SelectedOptions,
68
+ C as StatementPreview,
67
69
  y as StepFooter,
68
- me as TOOLTIP_CURSOR_OFFSET_X,
70
+ de as TOOLTIP_CURSOR_OFFSET_X,
69
71
  De as TOOLTIP_CURSOR_OFFSET_Y,
70
72
  Ee as TOOLTIP_MAX_FOOTPRINT_X,
71
73
  _e as TOOLTIP_VIEWPORT_MARGIN,
72
- R as Tooltip,
73
- f as TooltipHost,
74
- Ce as WARM_DELAY_MS,
75
- Ve as calcFixedWidthDropdownLeft,
74
+ f as Tooltip,
75
+ R as TooltipHost,
76
+ Fe as WARM_DELAY_MS,
77
+ ke as calcFixedWidthDropdownLeft,
76
78
  L as closeContextMenu,
77
79
  ae as collectFocusableElements,
78
- Ke as computeAnchoredPosition,
79
- xe as computeAnchoredTooltipPosition,
80
- Xe as computeDropdownPosition,
81
- Ye as computePopoverPosition,
80
+ Be as computeAnchoredPosition,
81
+ Ce as computeAnchoredTooltipPosition,
82
+ Ve as computeDropdownPosition,
83
+ Ke as computePopoverPosition,
82
84
  N as computeSubmenuPlacement,
83
85
  Ae as computeTooltipPointerPosition,
84
86
  h as confirmationLevelOf,
@@ -91,47 +93,47 @@ export {
91
93
  w as describeConsequence,
92
94
  H as estimateSubmenuHeight,
93
95
  k as firstFocusableMenuIndex,
94
- Qe as getOverlayDiagnostics,
95
- Ze as hasOpenLayerIn,
96
- $e as isAnyOverlayOpen,
96
+ je as getOverlayDiagnostics,
97
+ ze as hasOpenLayerIn,
98
+ Je as isAnyOverlayOpen,
97
99
  B as isDesktopMenuNavigationKey,
98
100
  V as isIrreversible,
99
- ea as isModalOccluded,
100
- aa as isOverlayOverlapping,
101
- Fa as isPopoverNavigationKey,
101
+ Qe as isModalOccluded,
102
+ Ze as isOverlayOverlapping,
103
+ Ca as isPopoverNavigationKey,
102
104
  K as lastFocusableMenuIndex,
103
- qe as layout2d,
105
+ Xe as layout2d,
104
106
  X as menuSurfaceClasses,
105
- Da as modalBackgroundExemption,
107
+ da as modalBackgroundExemption,
106
108
  oe as modalTitlebarHeight,
107
- Ea as neutralizeBackground,
109
+ Da as neutralizeBackground,
108
110
  Y as nextFocusableMenuIndex,
109
- oa as notifyOverlayChanged,
110
- sa as notifyOverlayMotionEnd,
111
- ta as notifyOverlayMotionStart,
112
- ra as onOverlayMotion,
111
+ $e as notifyOverlayChanged,
112
+ ea as notifyOverlayMotionEnd,
113
+ aa as notifyOverlayMotionStart,
114
+ oa as onOverlayMotion,
113
115
  q as openContextMenu,
114
- na as overlayDepth,
115
- da as ownerWindow,
116
+ sa as overlayDepth,
117
+ ca as ownerWindow,
116
118
  j as panelClasses,
117
119
  Me as positionTourCard,
118
- ia as readOverlayMutationRevision,
119
- la as registerOverlayClose,
120
- ua as registerOverlayCondition,
121
- pa as registerOverlayOpen,
122
- je as requestOwnerAnimationFrame,
120
+ ta as readOverlayMutationRevision,
121
+ ra as registerOverlayClose,
122
+ na as registerOverlayCondition,
123
+ ia as registerOverlayOpen,
124
+ Ta as requestOwnerAnimationFrame,
123
125
  z as resolveDangerousActionDialogKeyIntent,
124
126
  se as resolveDialogShellKeyIntent,
125
127
  J as resolveMenuFocusForKey,
126
128
  te as resolveModalFocusTrapTarget,
127
- Ca as resolvePopoverFocusForKey,
128
- ze as resolvePopoverSide,
129
- Ne as restoreFocusTo,
130
- he as shouldRestoreFocusOnDialogClose,
129
+ ya as resolvePopoverFocusForKey,
130
+ Ye as resolvePopoverSide,
131
+ _a as restoreFocusTo,
132
+ Aa as shouldRestoreFocusOnDialogClose,
131
133
  Q as tooltip,
132
- Re as tooltipCoordinator,
134
+ fe as tooltipCoordinator,
133
135
  re as trapTabFocusWithin,
134
- Pa as useDesktopContextMenu,
135
- Ma as useFloatingDropdown,
136
- Oa as useOverlayRegistration
136
+ Sa as useDesktopContextMenu,
137
+ pa as useFloatingDropdown,
138
+ la as useOverlayRegistration
137
139
  };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * THE NATIVE TITLE WHILE THE KIT'S TOOLTIP SHOWS — one home for the surfaces that draw their own tooltip over an
3
+ * element that also carries a `title` (`Button`, `PressableSurface`, `Badge`, the `tooltip` directive).
4
+ *
5
+ * While the kit's tooltip shows, the element's `title` is held back, so the browser does not draw a second, native
6
+ * tooltip over it; when the kit's tooltip hides, the title comes back. What the element's owner writes to the title
7
+ * while it is held is the newer state and stays: a new value — a reactive `title` whose value changed, such as a
8
+ * toggle named after what a click does (giving the held copy back put the element's old name over the new one: a
9
+ * bell whose center opened while it showed its tooltip went on calling itself "Show notifications") — and no title,
10
+ * when the owner's `title` became `undefined`.
11
+ *
12
+ * The hold is the one home of that rule because it is the one place that sees every owner: the `tooltip` directive
13
+ * sits on any element and knows nothing of the props that write its title, so writing "the current prop" on release
14
+ * could live only in some of the surfaces. Held, the title is left empty rather than removed — the browser draws no
15
+ * tooltip for an empty title, and the owner removing the title is then a change the hold sees —, and the hold watches
16
+ * the attribute for the owner's writes until it is released.
17
+ */
18
+ /**
19
+ * Holds the element's `title` back while the kit's tooltip shows. An element without a title, with an empty one, or
20
+ * not in a window is left as it is; one already held stays held as it was.
21
+ */
22
+ export declare function holdNativeTitle(element: Element): void;
23
+ /** Gives the held `title` back when the kit's tooltip hides — unless its owner wrote the title meanwhile. */
24
+ export declare function releaseNativeTitle(element: Element): void;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * THE NATIVE TITLE WHILE THE KIT'S TOOLTIP SHOWS — one home for the surfaces that draw their own tooltip over an
3
+ * element that also carries a `title` (`Button`, `PressableSurface`, `Badge`, the `tooltip` directive).
4
+ *
5
+ * While the kit's tooltip shows, the element's `title` is held back, so the browser does not draw a second, native
6
+ * tooltip over it; when the kit's tooltip hides, the title comes back. What the element's owner writes to the title
7
+ * while it is held is the newer state and stays: a new value — a reactive `title` whose value changed, such as a
8
+ * toggle named after what a click does (giving the held copy back put the element's old name over the new one: a
9
+ * bell whose center opened while it showed its tooltip went on calling itself "Show notifications") — and no title,
10
+ * when the owner's `title` became `undefined`.
11
+ *
12
+ * The hold is the one home of that rule because it is the one place that sees every owner: the `tooltip` directive
13
+ * sits on any element and knows nothing of the props that write its title, so writing "the current prop" on release
14
+ * could live only in some of the surfaces. Held, the title is left empty rather than removed — the browser draws no
15
+ * tooltip for an empty title, and the owner removing the title is then a change the hold sees —, and the hold watches
16
+ * the attribute for the owner's writes until it is released.
17
+ */
18
+ /**
19
+ * Holds the element's `title` back while the kit's tooltip shows. An element without a title, with an empty one, or
20
+ * not in a window is left as it is; one already held stays held as it was.
21
+ */
22
+ export declare function holdNativeTitle(element: Element): void;
23
+ /** Gives the held `title` back when the kit's tooltip hides — unless its owner wrote the title meanwhile. */
24
+ export declare function releaseNativeTitle(element: Element): void;
@@ -0,0 +1,19 @@
1
+ import { o as l } from "./ownerWindow-9mx_LD47.js";
2
+ function a(n, o) {
3
+ let t = !1, e = null;
4
+ const i = () => {
5
+ if (t) return;
6
+ const r = l(n);
7
+ if (r === null || !n.isConnected) return;
8
+ const s = r.requestAnimationFrame(() => {
9
+ t || o();
10
+ });
11
+ e = () => r.cancelAnimationFrame(s);
12
+ };
13
+ return n.isConnected ? i() : queueMicrotask(i), () => {
14
+ t = !0, e == null || e();
15
+ };
16
+ }
17
+ export {
18
+ a as r
19
+ };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./ownerWindow-BCmJFMbR.cjs");function c(n,s){let t=!1,e=null;const r=()=>{if(t)return;const i=o.ownerWindow(n);if(i===null||!n.isConnected)return;const u=i.requestAnimationFrame(()=>{t||s()});e=()=>i.cancelAnimationFrame(u)};return n.isConnected?r():queueMicrotask(r),()=>{t=!0,e==null||e()}}exports.requestOwnerAnimationFrame=c;
@@ -1,9 +1,9 @@
1
1
  import { ssr as s, ssrAttribute as n, escape as a, createComponent as r, mergeProps as p } from "solid-js/web";
2
2
  import { createMemo as k, onMount as f, Show as d, For as h } from "solid-js";
3
- import { S as m } from "./SearchableSelect-vjhS4c-H.js";
3
+ import { S as m } from "./SearchableSelect-DMqed5Er.js";
4
4
  import { B as _ } from "./Button-3yNrnn4P.js";
5
5
  import { t as l } from "./i18n-CBlUGOyu.js";
6
- import { I, P as B } from "./Input-DaEN2JJd.js";
6
+ import { I, P as B } from "./Input-AdF-i0O8.js";
7
7
  import { i as S } from "./iconScale.module-C3O0bxfp.js";
8
8
  import { i as C } from "./keys-B2nlkpqc.js";
9
9
  import { V } from "./VpClose-1RAQ20H9.js";
@@ -1 +1 @@
1
- "use strict";const t=require("solid-js/web"),s=require("solid-js"),v=require("./SearchableSelect-09ECcDlB.cjs"),g=require("./Button-0AXWRw9Q.cjs"),r=require("./i18n-D3s-a2a0.cjs"),b=require("./Input-CjvD8w18.cjs"),_=require("./iconScale.module-CzmKG1rf.cjs"),B=require("./keys-GMxY2wcl.cjs"),S=require("./VpClose-O8jHAcCB.cjs"),k=require("./VpSearch-BqIXmlaU.cjs"),h=require("./bugIndicatingError-D2X5Hfgg.cjs"),C=require("./VpCheck-CGTZXiSk.cjs");function d(e,a){return e<=0?a:String(e)}const f="vk_paginationRow_hg8fj",I="vk_paginationMeta_rPi8N",m="vk_paginationActions_gD2Fz",V="vk_paginationLabel_9x9Ah",w="vk_paginationSelect_h5BcT",T="vk_paginationPage_CYJRF",c={paginationRow:f,paginationMeta:I,paginationActions:m,paginationLabel:V,paginationSelect:w,paginationPage:T};var z=["<div","><span",">","</span><div","><label",">","","</label>","<span",">"," / ","</span>","</div></div>"];function R(e){const a=s.createMemo(()=>{const l=r.t("Unlimited");return e.pageSizeOptions.map(u=>({value:String(u),label:d(u,l)}))});return t.ssr(z,t.ssrAttribute("class",t.escape(c.paginationRow,!0),!1),t.ssrAttribute("class",t.escape(c.paginationMeta,!0),!1),t.escape(r.t("Showing {shown} of {total} items",{shown:e.shownCount(),total:e.totalCount()})),t.ssrAttribute("class",t.escape(c.paginationActions,!0),!1),t.ssrAttribute("class",t.escape(c.paginationLabel,!0),!1),t.escape(r.t("Page size")),t.escape(t.createComponent(v.SearchableSelect,{size:"sm",get class(){return c.paginationSelect},get value(){return String(e.pageSize())},get options(){return a()},onChange:l=>{e.onPageSizeChange(Number(l))},searchable:!1,get ariaLabel(){return r.t("Page size")}})),t.escape(t.createComponent(g.Button,{size:"sm",variant:"secondary",get disabled(){return e.page()<=1},onClick:()=>e.onPageChange(Math.max(1,e.page()-1)),get children(){return r.t("Previous")}})),t.ssrAttribute("class",t.escape(c.paginationPage,!0),!1),t.escape(e.page()),t.escape(e.totalPages()),t.escape(t.createComponent(g.Button,{size:"sm",variant:"secondary",get disabled(){return e.page()>=e.totalPages()},onClick:()=>e.onPageChange(Math.min(e.totalPages(),e.page()+1)),get children(){return r.t("Next")}})))}const P="vk_toolbar_LSRmU",A="vk_toolbarHorizontal_qHM-8",L="vk_toolbarViewClip_Q893H",O="vk_toolbarScrollRoot_aYbLg",y="vk_toolbarScrollViewport_qBzjd",$="vk_toolbarScrollTrack_Tp8TN",q="vk_segmentedCapsule_k9EBy",M="vk_toolbarBtn_CcyXF",H="vk_toolbarBtnActive_UgTBV",F="vk_toolbarBtnIconOnly_BlE-b",x="vk_toolbarHorizontalBottom_qLzhJ",E="vk_toolbarVertical_EjHi2",N="vk_toolbarVerticalRight_DBgEa",J="vk_toolbarScrollRootVertical_VGLRy",X="vk_toolbarScrollViewportVertical_RLF5g",K="vk_toolbarScrollTrackVertical_c1rBF",U="vk_toolbarSettingsBtn_XXfMz",j="vk_toolbarIcon_0FvlL",D="vk_toolbarSpacer_N3TbQ",G="vk_sortBadgePill_nVrIk",Q="vk_sortBadgeBtn_Is9PS",Y="vk_sortBadgeIcon_kw8oa",Z="vk_sortBadgeLabel_l-p33",W="vk_sortBadgeClearBtn_ioOaP",tt="vk_sortBadgeClearIcon_0e6Kd",et="vk_filterInputContainer_kegUv",ot="vk_filterSearchIcon_gI0m2",at="vk_filterInput_bX9xM",rt="vk_filterClearBtn_WerJL",lt="vk_filterClearIcon_7fuAJ",o={toolbar:P,toolbarHorizontal:A,toolbarViewClip:L,toolbarScrollRoot:O,toolbarScrollViewport:y,toolbarScrollTrack:$,segmentedCapsule:q,toolbarBtn:M,toolbarBtnActive:H,toolbarBtnIconOnly:F,toolbarHorizontalBottom:x,toolbarVertical:E,toolbarVerticalRight:N,toolbarScrollRootVertical:J,toolbarScrollViewportVertical:X,toolbarScrollTrackVertical:K,toolbarSettingsBtn:U,toolbarIcon:j,toolbarSpacer:D,sortBadgePill:G,sortBadgeBtn:Q,sortBadgeIcon:Y,sortBadgeLabel:Z,sortBadgeClearBtn:W,sortBadgeClearIcon:tt,filterInputContainer:et,filterSearchIcon:ot,filterInput:at,filterClearBtn:rt,filterClearIcon:lt},nt="vk_searchRow_2pwXX",ct="vk_searchInput_PbDtG",st="vk_clearBtn_upa-E",i={searchRow:nt,searchInput:ct,clearBtn:st};var it=["<div",">","","</div>"];function bt(e){return t.createComponent(b.PressableSurface,{type:"button",get class(){return`${o.toolbarSettingsBtn} ${e.active?o.toolbarBtnActive:""}`},get onClick(){return e.onToggle},get"aria-pressed"(){return e.active},get"aria-label"(){return r.t("Search")},get title(){return r.t("Search")},get children(){return t.createComponent(k.VpSearch,{get class(){return o.toolbarIcon},"aria-hidden":"true"})}})}function ut(e){let a;return s.onMount(()=>a==null?void 0:a.focus()),t.ssr(it,t.ssrAttribute("class",t.escape(i.searchRow,!0),!1),t.escape(t.createComponent(b.Input,t.mergeProps({get class(){return i.searchInput},type:"search",size:"sm",get value(){return e.value},onInput:l=>e.onInput(l.currentTarget.value),onKeyDown:l=>{B.isKey(l,"Escape")&&e.onClose()},get placeholder(){return e.placeholder??r.t("Search…")}},()=>e.disabled!==void 0?{disabled:e.disabled}:{}))),t.escape(t.createComponent(s.Show,{get when(){return e.value.length>0},get children(){return t.createComponent(b.PressableSurface,{type:"button",get class(){return i.clearBtn},onClick:()=>e.onInput(""),get"aria-label"(){return r.t("Clear search")},get title(){return r.t("Clear search")},get children(){return t.createComponent(S.VpClose,{get class(){return _.iconScale.iconSm},"aria-hidden":"true"})}})}})))}const gt=Object.freeze({toolbar:o.toolbar,toolbarHorizontal:o.toolbarHorizontal,toolbarHorizontalBottom:o.toolbarHorizontalBottom,toolbarVertical:o.toolbarVertical,toolbarVerticalRight:o.toolbarVerticalRight,toolbarViewClip:o.toolbarViewClip,toolbarScrollRoot:o.toolbarScrollRoot,toolbarScrollViewport:o.toolbarScrollViewport,toolbarScrollTrack:o.toolbarScrollTrack,toolbarScrollRootVertical:o.toolbarScrollRootVertical,toolbarScrollViewportVertical:o.toolbarScrollViewportVertical,toolbarScrollTrackVertical:o.toolbarScrollTrackVertical,segmentedCapsule:o.segmentedCapsule,toolbarBtn:o.toolbarBtn,toolbarBtnActive:o.toolbarBtnActive,toolbarBtnIconOnly:o.toolbarBtnIconOnly,toolbarIcon:o.toolbarIcon,toolbarSpacer:o.toolbarSpacer,toolbarSettingsBtn:o.toolbarSettingsBtn,sortBadgePill:o.sortBadgePill,sortBadgeBtn:o.sortBadgeBtn,sortBadgeIcon:o.sortBadgeIcon,sortBadgeLabel:o.sortBadgeLabel,sortBadgeClearBtn:o.sortBadgeClearBtn,sortBadgeClearIcon:o.sortBadgeClearIcon,filterInputContainer:o.filterInputContainer,filterSearchIcon:o.filterSearchIcon,filterInput:o.filterInput,filterClearBtn:o.filterClearBtn,filterClearIcon:o.filterClearIcon});function pt(e,a){const l=`${a}: `;throw new h.BugIndicatingError(`${l}Non-exhaustive switch: unexpected value ${JSON.stringify(e)}`)}const _t="vk_grid_uK6pm",dt="vk_card_33OV3",vt="vk_item_UeZrE",Bt="vk_label_a-LFz",St="vk_value_9ZQBt",kt="vk_valueMono_knknq",ht="vk_boolOn_5zd-H",Ct="vk_boolOff_-6I4K",ft="vk_stacked_2T--a",n={grid:_t,card:dt,item:vt,label:Bt,value:St,valueMono:kt,boolOn:ht,boolOff:Ct,stacked:ft};var p=["<span",">","</span>"],It=['<span class="','">',"</span>"],mt=['<div class="','">',"</div>"],Vt=["<div","><span",">","</span>","</div>"];function wt(e,a){switch(e.kind){case"text":return t.ssr(p,t.ssrAttribute("class",t.escape(n.value,!0),!1),t.escape(e.value(a)));case"mono":return t.ssr(p,t.ssrAttribute("class",t.escape(n.valueMono,!0),!1),t.escape(e.value(a)));case"bool":return t.ssr(It,`${t.escape(n.value,!0)} ${e.on(a)?t.escape(n.boolOn,!0):t.escape(n.boolOff,!0)}`,e.on(a)?t.escape(t.createComponent(C.VpCheck,{get class(){return _.iconScale.iconSm},"aria-hidden":"true"})):"—");case"custom":return e.render(a);default:return pt(e,"AttributeField.kind")}}function Tt(e){return t.createComponent(s.Show,{get when(){return e.row()!=null},get children(){return t.ssr(mt,`${t.escape(n.grid,!0)} ${t.escape(n[e.variant]??"",!0)}`,t.escape(t.createComponent(s.For,{get each(){return e.fields},children:a=>t.ssr(Vt,t.ssrAttribute("class",t.escape(n.item,!0),!1),t.ssrAttribute("class",t.escape(n.label,!0),!1),t.escape(a.label),t.escape(wt(a,e.row())))})))}})}exports.AttributeGrid=Tt;exports.Pagination=R;exports.ToolbarSearchRow=ut;exports.ToolbarSearchToggle=bt;exports.pageSizeOptionLabel=d;exports.resultTabToolbarClasses=gt;
1
+ "use strict";const t=require("solid-js/web"),s=require("solid-js"),v=require("./SearchableSelect-CZrXDKfC.cjs"),g=require("./Button-0AXWRw9Q.cjs"),r=require("./i18n-D3s-a2a0.cjs"),b=require("./Input-XF9Jr0G9.cjs"),_=require("./iconScale.module-CzmKG1rf.cjs"),B=require("./keys-GMxY2wcl.cjs"),S=require("./VpClose-O8jHAcCB.cjs"),k=require("./VpSearch-BqIXmlaU.cjs"),h=require("./bugIndicatingError-D2X5Hfgg.cjs"),C=require("./VpCheck-CGTZXiSk.cjs");function d(e,a){return e<=0?a:String(e)}const f="vk_paginationRow_hg8fj",I="vk_paginationMeta_rPi8N",m="vk_paginationActions_gD2Fz",V="vk_paginationLabel_9x9Ah",w="vk_paginationSelect_h5BcT",T="vk_paginationPage_CYJRF",c={paginationRow:f,paginationMeta:I,paginationActions:m,paginationLabel:V,paginationSelect:w,paginationPage:T};var z=["<div","><span",">","</span><div","><label",">","","</label>","<span",">"," / ","</span>","</div></div>"];function R(e){const a=s.createMemo(()=>{const l=r.t("Unlimited");return e.pageSizeOptions.map(u=>({value:String(u),label:d(u,l)}))});return t.ssr(z,t.ssrAttribute("class",t.escape(c.paginationRow,!0),!1),t.ssrAttribute("class",t.escape(c.paginationMeta,!0),!1),t.escape(r.t("Showing {shown} of {total} items",{shown:e.shownCount(),total:e.totalCount()})),t.ssrAttribute("class",t.escape(c.paginationActions,!0),!1),t.ssrAttribute("class",t.escape(c.paginationLabel,!0),!1),t.escape(r.t("Page size")),t.escape(t.createComponent(v.SearchableSelect,{size:"sm",get class(){return c.paginationSelect},get value(){return String(e.pageSize())},get options(){return a()},onChange:l=>{e.onPageSizeChange(Number(l))},searchable:!1,get ariaLabel(){return r.t("Page size")}})),t.escape(t.createComponent(g.Button,{size:"sm",variant:"secondary",get disabled(){return e.page()<=1},onClick:()=>e.onPageChange(Math.max(1,e.page()-1)),get children(){return r.t("Previous")}})),t.ssrAttribute("class",t.escape(c.paginationPage,!0),!1),t.escape(e.page()),t.escape(e.totalPages()),t.escape(t.createComponent(g.Button,{size:"sm",variant:"secondary",get disabled(){return e.page()>=e.totalPages()},onClick:()=>e.onPageChange(Math.min(e.totalPages(),e.page()+1)),get children(){return r.t("Next")}})))}const P="vk_toolbar_LSRmU",A="vk_toolbarHorizontal_qHM-8",L="vk_toolbarViewClip_Q893H",O="vk_toolbarScrollRoot_aYbLg",y="vk_toolbarScrollViewport_qBzjd",$="vk_toolbarScrollTrack_Tp8TN",q="vk_segmentedCapsule_k9EBy",M="vk_toolbarBtn_CcyXF",H="vk_toolbarBtnActive_UgTBV",F="vk_toolbarBtnIconOnly_BlE-b",x="vk_toolbarHorizontalBottom_qLzhJ",E="vk_toolbarVertical_EjHi2",N="vk_toolbarVerticalRight_DBgEa",J="vk_toolbarScrollRootVertical_VGLRy",X="vk_toolbarScrollViewportVertical_RLF5g",K="vk_toolbarScrollTrackVertical_c1rBF",U="vk_toolbarSettingsBtn_XXfMz",j="vk_toolbarIcon_0FvlL",D="vk_toolbarSpacer_N3TbQ",G="vk_sortBadgePill_nVrIk",Q="vk_sortBadgeBtn_Is9PS",Y="vk_sortBadgeIcon_kw8oa",Z="vk_sortBadgeLabel_l-p33",W="vk_sortBadgeClearBtn_ioOaP",tt="vk_sortBadgeClearIcon_0e6Kd",et="vk_filterInputContainer_kegUv",ot="vk_filterSearchIcon_gI0m2",at="vk_filterInput_bX9xM",rt="vk_filterClearBtn_WerJL",lt="vk_filterClearIcon_7fuAJ",o={toolbar:P,toolbarHorizontal:A,toolbarViewClip:L,toolbarScrollRoot:O,toolbarScrollViewport:y,toolbarScrollTrack:$,segmentedCapsule:q,toolbarBtn:M,toolbarBtnActive:H,toolbarBtnIconOnly:F,toolbarHorizontalBottom:x,toolbarVertical:E,toolbarVerticalRight:N,toolbarScrollRootVertical:J,toolbarScrollViewportVertical:X,toolbarScrollTrackVertical:K,toolbarSettingsBtn:U,toolbarIcon:j,toolbarSpacer:D,sortBadgePill:G,sortBadgeBtn:Q,sortBadgeIcon:Y,sortBadgeLabel:Z,sortBadgeClearBtn:W,sortBadgeClearIcon:tt,filterInputContainer:et,filterSearchIcon:ot,filterInput:at,filterClearBtn:rt,filterClearIcon:lt},nt="vk_searchRow_2pwXX",ct="vk_searchInput_PbDtG",st="vk_clearBtn_upa-E",i={searchRow:nt,searchInput:ct,clearBtn:st};var it=["<div",">","","</div>"];function bt(e){return t.createComponent(b.PressableSurface,{type:"button",get class(){return`${o.toolbarSettingsBtn} ${e.active?o.toolbarBtnActive:""}`},get onClick(){return e.onToggle},get"aria-pressed"(){return e.active},get"aria-label"(){return r.t("Search")},get title(){return r.t("Search")},get children(){return t.createComponent(k.VpSearch,{get class(){return o.toolbarIcon},"aria-hidden":"true"})}})}function ut(e){let a;return s.onMount(()=>a==null?void 0:a.focus()),t.ssr(it,t.ssrAttribute("class",t.escape(i.searchRow,!0),!1),t.escape(t.createComponent(b.Input,t.mergeProps({get class(){return i.searchInput},type:"search",size:"sm",get value(){return e.value},onInput:l=>e.onInput(l.currentTarget.value),onKeyDown:l=>{B.isKey(l,"Escape")&&e.onClose()},get placeholder(){return e.placeholder??r.t("Search…")}},()=>e.disabled!==void 0?{disabled:e.disabled}:{}))),t.escape(t.createComponent(s.Show,{get when(){return e.value.length>0},get children(){return t.createComponent(b.PressableSurface,{type:"button",get class(){return i.clearBtn},onClick:()=>e.onInput(""),get"aria-label"(){return r.t("Clear search")},get title(){return r.t("Clear search")},get children(){return t.createComponent(S.VpClose,{get class(){return _.iconScale.iconSm},"aria-hidden":"true"})}})}})))}const gt=Object.freeze({toolbar:o.toolbar,toolbarHorizontal:o.toolbarHorizontal,toolbarHorizontalBottom:o.toolbarHorizontalBottom,toolbarVertical:o.toolbarVertical,toolbarVerticalRight:o.toolbarVerticalRight,toolbarViewClip:o.toolbarViewClip,toolbarScrollRoot:o.toolbarScrollRoot,toolbarScrollViewport:o.toolbarScrollViewport,toolbarScrollTrack:o.toolbarScrollTrack,toolbarScrollRootVertical:o.toolbarScrollRootVertical,toolbarScrollViewportVertical:o.toolbarScrollViewportVertical,toolbarScrollTrackVertical:o.toolbarScrollTrackVertical,segmentedCapsule:o.segmentedCapsule,toolbarBtn:o.toolbarBtn,toolbarBtnActive:o.toolbarBtnActive,toolbarBtnIconOnly:o.toolbarBtnIconOnly,toolbarIcon:o.toolbarIcon,toolbarSpacer:o.toolbarSpacer,toolbarSettingsBtn:o.toolbarSettingsBtn,sortBadgePill:o.sortBadgePill,sortBadgeBtn:o.sortBadgeBtn,sortBadgeIcon:o.sortBadgeIcon,sortBadgeLabel:o.sortBadgeLabel,sortBadgeClearBtn:o.sortBadgeClearBtn,sortBadgeClearIcon:o.sortBadgeClearIcon,filterInputContainer:o.filterInputContainer,filterSearchIcon:o.filterSearchIcon,filterInput:o.filterInput,filterClearBtn:o.filterClearBtn,filterClearIcon:o.filterClearIcon});function pt(e,a){const l=`${a}: `;throw new h.BugIndicatingError(`${l}Non-exhaustive switch: unexpected value ${JSON.stringify(e)}`)}const _t="vk_grid_uK6pm",dt="vk_card_33OV3",vt="vk_item_UeZrE",Bt="vk_label_a-LFz",St="vk_value_9ZQBt",kt="vk_valueMono_knknq",ht="vk_boolOn_5zd-H",Ct="vk_boolOff_-6I4K",ft="vk_stacked_2T--a",n={grid:_t,card:dt,item:vt,label:Bt,value:St,valueMono:kt,boolOn:ht,boolOff:Ct,stacked:ft};var p=["<span",">","</span>"],It=['<span class="','">',"</span>"],mt=['<div class="','">',"</div>"],Vt=["<div","><span",">","</span>","</div>"];function wt(e,a){switch(e.kind){case"text":return t.ssr(p,t.ssrAttribute("class",t.escape(n.value,!0),!1),t.escape(e.value(a)));case"mono":return t.ssr(p,t.ssrAttribute("class",t.escape(n.valueMono,!0),!1),t.escape(e.value(a)));case"bool":return t.ssr(It,`${t.escape(n.value,!0)} ${e.on(a)?t.escape(n.boolOn,!0):t.escape(n.boolOff,!0)}`,e.on(a)?t.escape(t.createComponent(C.VpCheck,{get class(){return _.iconScale.iconSm},"aria-hidden":"true"})):"—");case"custom":return e.render(a);default:return pt(e,"AttributeField.kind")}}function Tt(e){return t.createComponent(s.Show,{get when(){return e.row()!=null},get children(){return t.ssr(mt,`${t.escape(n.grid,!0)} ${t.escape(n[e.variant]??"",!0)}`,t.escape(t.createComponent(s.For,{get each(){return e.fields},children:a=>t.ssr(Vt,t.ssrAttribute("class",t.escape(n.item,!0),!1),t.ssrAttribute("class",t.escape(n.label,!0),!1),t.escape(a.label),t.escape(wt(a,e.row())))})))}})}exports.AttributeGrid=Tt;exports.Pagination=R;exports.ToolbarSearchRow=ut;exports.ToolbarSearchToggle=bt;exports.pageSizeOptionLabel=d;exports.resultTabToolbarClasses=gt;