@fusion.dev/helix-core 0.145.0 → 0.146.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 (254) hide show
  1. package/custom-elements.json +5203 -1777
  2. package/dist/controllers/aria-forward-controller/aria-forward-controller.d.ts +3 -2
  3. package/dist/controllers/aria-forward-controller/aria-forward-controller.js +3 -14
  4. package/dist/controllers/chart-pointer-controller/chart-pointer-controller.d.ts +65 -3
  5. package/dist/controllers/chart-pointer-controller/chart-pointer-controller.js +37 -9
  6. package/dist/controllers/chart-pointer-controller/reading-step.d.ts +7 -1
  7. package/dist/controllers/chart-pointer-controller/reading-step.js +5 -0
  8. package/dist/controllers/keyboard-navigation-controller/keyboard-navigation-controller.d.ts +9 -55
  9. package/dist/controllers/keyboard-navigation-controller/keyboard-navigation-controller.js +7 -39
  10. package/dist/controllers/relative-clock-controller/relative-clock-controller.d.ts +44 -0
  11. package/dist/controllers/relative-clock-controller/relative-clock-controller.js +31 -0
  12. package/dist/controllers/source-controller/source-controller.d.ts +10 -3
  13. package/dist/controllers/source-controller/source-controller.js +7 -4
  14. package/dist/controllers/virtualize-controller/virtualize-controller.d.ts +48 -1
  15. package/dist/controllers/virtualize-controller/virtualize-controller.js +50 -7
  16. package/dist/events/action.d.ts +12 -0
  17. package/dist/events/action.js +6 -0
  18. package/dist/events/activate.d.ts +22 -0
  19. package/dist/events/activate.js +11 -0
  20. package/dist/events/aura-fallback.d.ts +12 -0
  21. package/dist/events/aura-fallback.js +11 -0
  22. package/dist/events/before-activate.d.ts +24 -0
  23. package/dist/events/before-activate.js +11 -0
  24. package/dist/events/before-change.d.ts +26 -0
  25. package/dist/events/before-change.js +11 -0
  26. package/dist/events/before-close.d.ts +6 -0
  27. package/dist/events/before-close.js +11 -0
  28. package/dist/events/before-collapse.d.ts +6 -0
  29. package/dist/events/before-collapse.js +11 -0
  30. package/dist/events/before-edit.d.ts +6 -0
  31. package/dist/events/before-edit.js +11 -0
  32. package/dist/events/before-move.d.ts +17 -0
  33. package/dist/events/before-move.js +11 -0
  34. package/dist/events/before-open.d.ts +17 -0
  35. package/dist/events/before-open.js +11 -0
  36. package/dist/events/before-panel-resize.d.ts +13 -0
  37. package/dist/events/before-panel-resize.js +11 -0
  38. package/dist/events/before-pin.d.ts +6 -0
  39. package/dist/events/before-pin.js +11 -0
  40. package/dist/events/before-reconnect.d.ts +14 -0
  41. package/dist/events/before-reconnect.js +11 -0
  42. package/dist/events/before-relabel.d.ts +15 -0
  43. package/dist/events/before-relabel.js +11 -0
  44. package/dist/events/before-resize.d.ts +6 -0
  45. package/dist/events/before-resize.js +11 -0
  46. package/dist/events/before-split.d.ts +12 -0
  47. package/dist/events/before-split.js +11 -0
  48. package/dist/events/before-toggle.d.ts +23 -0
  49. package/dist/events/before-toggle.js +11 -0
  50. package/dist/events/canvas-edit.d.ts +16 -0
  51. package/dist/events/canvas-edit.js +11 -0
  52. package/dist/events/canvas-pan.d.ts +13 -0
  53. package/dist/events/canvas-pan.js +11 -0
  54. package/dist/events/canvas-view.d.ts +14 -0
  55. package/dist/events/canvas-view.js +11 -0
  56. package/dist/events/canvas-zoom.d.ts +6 -0
  57. package/dist/events/canvas-zoom.js +11 -0
  58. package/dist/events/caret.d.ts +17 -0
  59. package/dist/events/caret.js +11 -0
  60. package/dist/events/clear.d.ts +11 -0
  61. package/dist/events/clear.js +6 -0
  62. package/dist/events/collapse.d.ts +12 -0
  63. package/dist/events/collapse.js +11 -0
  64. package/dist/events/complete.d.ts +26 -0
  65. package/dist/events/complete.js +11 -0
  66. package/dist/events/connect.d.ts +14 -0
  67. package/dist/events/connect.js +11 -0
  68. package/dist/events/console.d.ts +13 -0
  69. package/dist/events/console.js +11 -0
  70. package/dist/events/copy-error.d.ts +9 -0
  71. package/dist/events/copy-error.js +6 -0
  72. package/dist/events/copy.d.ts +12 -0
  73. package/dist/events/copy.js +10 -0
  74. package/dist/events/create.d.ts +18 -0
  75. package/dist/events/create.js +11 -0
  76. package/dist/events/details.d.ts +454 -0
  77. package/dist/events/details.js +1 -0
  78. package/dist/events/dismiss.d.ts +16 -0
  79. package/dist/events/dismiss.js +11 -0
  80. package/dist/events/edit.d.ts +12 -0
  81. package/dist/events/edit.js +11 -0
  82. package/dist/events/end.d.ts +9 -0
  83. package/dist/events/end.js +6 -0
  84. package/dist/events/events.d.ts +111 -1478
  85. package/dist/events/events.js +91 -863
  86. package/dist/events/expand.d.ts +10 -0
  87. package/dist/events/expand.js +11 -0
  88. package/dist/events/facet.d.ts +17 -0
  89. package/dist/events/facet.js +11 -0
  90. package/dist/events/filter.d.ts +12 -0
  91. package/dist/events/filter.js +11 -0
  92. package/dist/events/filtered.d.ts +12 -0
  93. package/dist/events/filtered.js +11 -0
  94. package/dist/events/graph-filter.d.ts +10 -0
  95. package/dist/events/graph-filter.js +11 -0
  96. package/dist/events/graph-layout.d.ts +10 -0
  97. package/dist/events/graph-layout.js +11 -0
  98. package/dist/events/graph-pan.d.ts +9 -0
  99. package/dist/events/graph-pan.js +11 -0
  100. package/dist/events/graph-part-change.d.ts +10 -0
  101. package/dist/events/graph-part-change.js +11 -0
  102. package/dist/events/graph-ready.d.ts +8 -0
  103. package/dist/events/graph-ready.js +6 -0
  104. package/dist/events/graph-signal.d.ts +11 -0
  105. package/dist/events/graph-signal.js +11 -0
  106. package/dist/events/graph-zoom.d.ts +6 -0
  107. package/dist/events/graph-zoom.js +11 -0
  108. package/dist/events/history.d.ts +16 -0
  109. package/dist/events/history.js +11 -0
  110. package/dist/events/load-more.d.ts +12 -0
  111. package/dist/events/load-more.js +6 -0
  112. package/dist/events/load.d.ts +12 -0
  113. package/dist/events/load.js +6 -0
  114. package/dist/events/map-cluster.d.ts +15 -0
  115. package/dist/events/map-cluster.js +11 -0
  116. package/dist/events/map-pan.d.ts +18 -0
  117. package/dist/events/map-pan.js +11 -0
  118. package/dist/events/map-part-change.d.ts +16 -0
  119. package/dist/events/map-part-change.js +11 -0
  120. package/dist/events/map-ready.d.ts +15 -0
  121. package/dist/events/map-ready.js +6 -0
  122. package/dist/events/map-rotate.d.ts +9 -0
  123. package/dist/events/map-rotate.js +11 -0
  124. package/dist/events/map-tilt.d.ts +9 -0
  125. package/dist/events/map-tilt.js +11 -0
  126. package/dist/events/map-zoom.d.ts +13 -0
  127. package/dist/events/map-zoom.js +11 -0
  128. package/dist/events/move.d.ts +11 -0
  129. package/dist/events/move.js +11 -0
  130. package/dist/events/names.d.ts +15 -0
  131. package/dist/events/names.js +88 -0
  132. package/dist/events/navigate.d.ts +13 -0
  133. package/dist/events/navigate.js +11 -0
  134. package/dist/events/next.d.ts +23 -0
  135. package/dist/events/next.js +11 -0
  136. package/dist/events/panel-resize.d.ts +12 -0
  137. package/dist/events/panel-resize.js +11 -0
  138. package/dist/events/pin.d.ts +12 -0
  139. package/dist/events/pin.js +11 -0
  140. package/dist/events/press.d.ts +19 -0
  141. package/dist/events/press.js +11 -0
  142. package/dist/events/preview.d.ts +14 -0
  143. package/dist/events/preview.js +11 -0
  144. package/dist/events/previous.d.ts +6 -0
  145. package/dist/events/previous.js +11 -0
  146. package/dist/events/range-change.d.ts +10 -0
  147. package/dist/events/range-change.js +11 -0
  148. package/dist/events/read.d.ts +19 -0
  149. package/dist/events/read.js +11 -0
  150. package/dist/events/reconnect.d.ts +6 -0
  151. package/dist/events/reconnect.js +11 -0
  152. package/dist/events/reject.d.ts +13 -0
  153. package/dist/events/reject.js +11 -0
  154. package/dist/events/relabel.d.ts +6 -0
  155. package/dist/events/relabel.js +11 -0
  156. package/dist/events/remove.d.ts +12 -0
  157. package/dist/events/remove.js +11 -0
  158. package/dist/events/reorder.d.ts +18 -0
  159. package/dist/events/reorder.js +11 -0
  160. package/dist/events/reordered.d.ts +12 -0
  161. package/dist/events/reordered.js +11 -0
  162. package/dist/events/resize.d.ts +19 -0
  163. package/dist/events/resize.js +11 -0
  164. package/dist/events/resized.d.ts +16 -0
  165. package/dist/events/resized.js +11 -0
  166. package/dist/events/sample-end.d.ts +5 -0
  167. package/dist/events/sample-end.js +6 -0
  168. package/dist/events/sample-start.d.ts +18 -0
  169. package/dist/events/sample-start.js +6 -0
  170. package/dist/events/scrolled.d.ts +32 -0
  171. package/dist/events/scrolled.js +11 -0
  172. package/dist/events/select.d.ts +12 -0
  173. package/dist/events/select.js +11 -0
  174. package/dist/events/selected.d.ts +12 -0
  175. package/dist/events/selected.js +11 -0
  176. package/dist/events/send.d.ts +18 -0
  177. package/dist/events/send.js +11 -0
  178. package/dist/events/shortcut.d.ts +13 -0
  179. package/dist/events/shortcut.js +11 -0
  180. package/dist/events/sort.d.ts +17 -0
  181. package/dist/events/sort.js +11 -0
  182. package/dist/events/sorted.d.ts +15 -0
  183. package/dist/events/sorted.js +11 -0
  184. package/dist/events/split.d.ts +12 -0
  185. package/dist/events/split.js +11 -0
  186. package/dist/events/toggle.d.ts +15 -0
  187. package/dist/events/toggle.js +11 -0
  188. package/dist/events/tour-ask.d.ts +16 -0
  189. package/dist/events/tour-ask.js +11 -0
  190. package/dist/events/tour-status.d.ts +14 -0
  191. package/dist/events/tour-status.js +11 -0
  192. package/dist/events/typing.d.ts +10 -0
  193. package/dist/events/typing.js +11 -0
  194. package/dist/helix-element/react-bridge.d.ts +10 -0
  195. package/dist/helix-element/react-bridge.js +1 -1
  196. package/dist/helix-form-element/helix-form-element.d.ts +5 -20
  197. package/dist/helix-form-element/helix-form-element.js +4 -56
  198. package/dist/index.d.ts +15 -3
  199. package/dist/index.js +15 -3
  200. package/dist/mixins/mixin-chart-source/mixin-chart-source.d.ts +17 -2
  201. package/dist/mixins/mixin-chart-source/mixin-chart-source.js +22 -1
  202. package/dist/mixins/mixin-controller-active/mixin-controller-active.js +4 -3
  203. package/dist/mixins/mixin-controller-checked/mixin-controller-checked.d.ts +5 -2
  204. package/dist/mixins/mixin-controller-checked/mixin-controller-checked.js +2 -1
  205. package/dist/mixins/mixin-controller-value/mixin-controller-value.d.ts +4 -2
  206. package/dist/mixins/mixin-controller-value/mixin-controller-value.js +7 -2
  207. package/dist/mixins/mixin-dismissible/mixin-dismissible.js +20 -4
  208. package/dist/mixins/mixin-field/mixin-field.js +2 -2
  209. package/dist/mixins/mixin-picker-field/mixin-picker-field.d.ts +15 -3
  210. package/dist/mixins/mixin-picker-field/mixin-picker-field.js +11 -4
  211. package/dist/mixins/mixin-segmented-field/mixin-segmented-field.d.ts +1 -1
  212. package/dist/mixins/mixin-segmented-field/mixin-segmented-field.js +10 -4
  213. package/dist/utils/audit-name/audit-name-off.d.ts +10 -0
  214. package/dist/utils/audit-name/audit-name-off.js +1 -0
  215. package/dist/utils/audit-name/audit-name.d.ts +19 -6
  216. package/dist/utils/audit-name/audit-name.js +10 -27
  217. package/dist/utils/calendar/calendar.js +7 -7
  218. package/dist/utils/draw-tooltip/draw-tooltip.d.ts +1 -1
  219. package/dist/utils/draw-tooltip/draw-tooltip.js +3 -1
  220. package/dist/utils/draw-tooltip/spoken-reading.d.ts +6 -2
  221. package/dist/utils/draw-tooltip/spoken-reading.js +5 -4
  222. package/dist/utils/heading-level/heading-level.d.ts +8 -0
  223. package/dist/utils/heading-level/heading-level.js +4 -0
  224. package/dist/utils/implicit-submit/implicit-submit.d.ts +25 -0
  225. package/dist/utils/implicit-submit/implicit-submit.js +52 -0
  226. package/dist/utils/name-text/name-text.d.ts +12 -0
  227. package/dist/utils/name-text/name-text.js +25 -0
  228. package/dist/utils/number-format/number-format.d.ts +2 -1
  229. package/dist/utils/number-format/number-format.js +13 -5
  230. package/dist/utils/plain-click/plain-click.d.ts +10 -0
  231. package/dist/utils/plain-click/plain-click.js +1 -0
  232. package/dist/utils/press-type/press-type.d.ts +20 -0
  233. package/dist/utils/press-type/press-type.js +15 -0
  234. package/dist/utils/report-runtime/report-runtime.d.ts +6 -3
  235. package/dist/utils/row-data/row-data.d.ts +15 -0
  236. package/dist/utils/row-data/row-data.js +17 -0
  237. package/dist/utils/row-order/row-order.d.ts +141 -0
  238. package/dist/utils/row-order/row-order.js +76 -0
  239. package/dist/utils/tell-disclosure/tell-disclosure.d.ts +4 -0
  240. package/dist/utils/tree-arrow/tree-arrow.d.ts +23 -0
  241. package/dist/utils/tree-arrow/tree-arrow.js +9 -0
  242. package/dist/utils/typeahead/typeahead.d.ts +67 -0
  243. package/dist/utils/typeahead/typeahead.js +36 -0
  244. package/dist/utils/value-as/value-as.d.ts +9 -0
  245. package/dist/utils/value-as/value-as.js +9 -1
  246. package/dist/utils/watch-labels/watch-labels.d.ts +16 -0
  247. package/dist/utils/watch-labels/watch-labels.js +34 -0
  248. package/dist/utils/words-converter/words-converter.d.ts +14 -0
  249. package/dist/utils/words-converter/words-converter.js +15 -0
  250. package/dist/utils/written-list/written-list.d.ts +29 -0
  251. package/dist/utils/written-list/written-list.js +30 -0
  252. package/dist/version.d.ts +1 -1
  253. package/dist/version.js +1 -1
  254. package/package.json +18 -5
@@ -0,0 +1,88 @@
1
+ export const helixEventNames = new Set([
2
+ 'helix-action',
3
+ 'helix-activate',
4
+ 'helix-aura-fallback',
5
+ 'helix-before-activate',
6
+ 'helix-before-change',
7
+ 'helix-before-close',
8
+ 'helix-before-collapse',
9
+ 'helix-before-edit',
10
+ 'helix-before-move',
11
+ 'helix-before-open',
12
+ 'helix-before-panel-resize',
13
+ 'helix-before-pin',
14
+ 'helix-before-reconnect',
15
+ 'helix-before-relabel',
16
+ 'helix-before-resize',
17
+ 'helix-before-split',
18
+ 'helix-before-toggle',
19
+ 'helix-canvas-edit',
20
+ 'helix-canvas-pan',
21
+ 'helix-canvas-view',
22
+ 'helix-canvas-zoom',
23
+ 'helix-caret',
24
+ 'helix-clear',
25
+ 'helix-collapse',
26
+ 'helix-complete',
27
+ 'helix-connect',
28
+ 'helix-console',
29
+ 'helix-copy',
30
+ 'helix-copy-error',
31
+ 'helix-create',
32
+ 'helix-dismiss',
33
+ 'helix-edit',
34
+ 'helix-end',
35
+ 'helix-expand',
36
+ 'helix-facet',
37
+ 'helix-filter',
38
+ 'helix-filtered',
39
+ 'helix-graph-filter',
40
+ 'helix-graph-layout',
41
+ 'helix-graph-pan',
42
+ 'helix-graph-part-change',
43
+ 'helix-graph-ready',
44
+ 'helix-graph-signal',
45
+ 'helix-graph-zoom',
46
+ 'helix-history',
47
+ 'helix-load',
48
+ 'helix-load-more',
49
+ 'helix-map-cluster',
50
+ 'helix-map-pan',
51
+ 'helix-map-part-change',
52
+ 'helix-map-ready',
53
+ 'helix-map-rotate',
54
+ 'helix-map-tilt',
55
+ 'helix-map-zoom',
56
+ 'helix-move',
57
+ 'helix-navigate',
58
+ 'helix-next',
59
+ 'helix-panel-resize',
60
+ 'helix-pin',
61
+ 'helix-press',
62
+ 'helix-preview',
63
+ 'helix-previous',
64
+ 'helix-range-change',
65
+ 'helix-read',
66
+ 'helix-reconnect',
67
+ 'helix-reject',
68
+ 'helix-relabel',
69
+ 'helix-remove',
70
+ 'helix-reorder',
71
+ 'helix-reordered',
72
+ 'helix-resize',
73
+ 'helix-resized',
74
+ 'helix-sample-end',
75
+ 'helix-sample-start',
76
+ 'helix-scrolled',
77
+ 'helix-select',
78
+ 'helix-selected',
79
+ 'helix-send',
80
+ 'helix-shortcut',
81
+ 'helix-sort',
82
+ 'helix-sorted',
83
+ 'helix-split',
84
+ 'helix-toggle',
85
+ 'helix-tour-ask',
86
+ 'helix-tour-status',
87
+ 'helix-typing',
88
+ ]);
@@ -0,0 +1,13 @@
1
+ import type { NavigateDetail } from './details.js';
2
+ /**
3
+ * Fired when a component moves the view it is showing, rather than its value.
4
+ *
5
+ * A calendar paging to another month is not choosing a date, and the two have
6
+ * to be separable: a consumer driving the view needs to hear that it moved
7
+ * without being told the answer changed. `helix-change` belongs to the value,
8
+ * and giving it both jobs would make either one unusable on its own.
9
+ */
10
+ export declare class HelixNavigateEvent extends CustomEvent<NavigateDetail> {
11
+ static readonly eventName = "helix-navigate";
12
+ constructor(detail: NavigateDetail);
13
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixNavigateEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-navigate'; }
3
+ constructor(detail) {
4
+ super(HelixNavigateEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: true,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,23 @@
1
+ import type { SkipDetail } from './details.js';
2
+ /**
3
+ * Fired when the reader asks for the next thing in a set.
4
+ *
5
+ * Paired with `helix-previous` rather than being one event carrying a
6
+ * direction, which is the reason `helix-before-open` gives for its own pair: a
7
+ * listener that only cares about one direction says so by which event it
8
+ * listens for. The detail carries the direction anyway, so a consumer who does
9
+ * want one handler can have one.
10
+ *
11
+ * Bubbles and is composed, because the thing that answers this is usually not
12
+ * the thing that asked. A video has no notion of a set: it plays one resource,
13
+ * and what comes next is a playlist's business or the consumer's, so the event
14
+ * has to reach a wrapper.
15
+ *
16
+ * Not cancelable. There is no default action to refuse: the component that
17
+ * fires this does nothing on its own, and an event whose `preventDefault` means
18
+ * nothing is an event that lies about what it offers.
19
+ */
20
+ export declare class HelixNextEvent extends CustomEvent<SkipDetail> {
21
+ static readonly eventName = "helix-next";
22
+ constructor();
23
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixNextEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-next'; }
3
+ constructor() {
4
+ super(HelixNextEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail: { to: 'next' },
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,12 @@
1
+ import type { ChangeDetail } from './details.js';
2
+ /**
3
+ * A sandbox's panel settled at a new height.
4
+ *
5
+ * The notification half of `helix-before-panel-resize`, sent once `panelSize`
6
+ * has moved, with the height in pixels. Not cancelable: the decision was the
7
+ * request's.
8
+ */
9
+ export declare class HelixPanelResizeEvent extends CustomEvent<ChangeDetail> {
10
+ static readonly eventName = "helix-panel-resize";
11
+ constructor(detail: ChangeDetail);
12
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixPanelResizeEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-panel-resize'; }
3
+ constructor(detail) {
4
+ super(HelixPanelResizeEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,12 @@
1
+ import type { ChangeDetail } from './details.js';
2
+ /**
3
+ * A transcript was pinned to the bottom, or let go of it.
4
+ *
5
+ * The notification half of `helix-before-pin`, sent once `pinned` has moved,
6
+ * so `currentTarget.pinned` is the new state and `detail.value` says it as
7
+ * `true` or `false`. Not cancelable: the decision was the request's.
8
+ */
9
+ export declare class HelixPinEvent extends CustomEvent<ChangeDetail> {
10
+ static readonly eventName = "helix-pin";
11
+ constructor(detail: ChangeDetail);
12
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixPinEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-pin'; }
3
+ constructor(detail) {
4
+ super(HelixPinEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,19 @@
1
+ import type { PressDetail } from './details.js';
2
+ /**
3
+ * A control was pressed and acted, whatever pressed it: a pointer, Enter or
4
+ * Space, or a screen reader. React Aria's `onPress`.
5
+ *
6
+ * **One event for every way in, with the way in on it.** `click` arrives for
7
+ * all of them and says which only in some engines: Chromium sends a keyboard
8
+ * press and a script's `click()` alike, with no pointer kind and a count of
9
+ * zero. `pointerType` here is worked out once, by `pressType`, for every
10
+ * listener.
11
+ *
12
+ * Sent after the press has acted, and only when it has: a disabled or pending
13
+ * control sends none. Not cancelable, since the action is done. Bubbles and is
14
+ * composed, as `click` does.
15
+ */
16
+ export declare class HelixPressEvent extends CustomEvent<PressDetail> {
17
+ static readonly eventName = "helix-press";
18
+ constructor(detail: PressDetail);
19
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixPressEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-press'; }
3
+ constructor(detail) {
4
+ super(HelixPressEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,14 @@
1
+ import type { ChangeDetail } from './details.js';
2
+ /**
3
+ * A control is showing what a press would choose, before anything is chosen:
4
+ * a rating lighting the marks under the pointer. Zag's `onHoverChange`.
5
+ *
6
+ * `value` is the value being previewed, and `''` once the preview ends and
7
+ * the control shows its own value again. Sent each time the preview changes,
8
+ * not on every pointer move. Not cancelable, since a preview changes nothing.
9
+ * Bubbles and is composed.
10
+ */
11
+ export declare class HelixPreviewEvent extends CustomEvent<ChangeDetail> {
12
+ static readonly eventName = "helix-preview";
13
+ constructor(detail: ChangeDetail);
14
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixPreviewEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-preview'; }
3
+ constructor(detail) {
4
+ super(HelixPreviewEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,6 @@
1
+ import type { SkipDetail } from './details.js';
2
+ /** Fired when the reader asks for the previous one. See `HelixNextEvent`. */
3
+ export declare class HelixPreviousEvent extends CustomEvent<SkipDetail> {
4
+ static readonly eventName = "helix-previous";
5
+ constructor();
6
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixPreviousEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-previous'; }
3
+ constructor() {
4
+ super(HelixPreviousEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail: { to: 'previous' },
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,10 @@
1
+ import type { RangeDetail } from './details.js';
2
+ /**
3
+ * The items on screen changed: a virtual list was scrolled or resized, or its
4
+ * items changed. Carries the new range, which the list's `range` also holds.
5
+ * Not cancelable: the list has already moved.
6
+ */
7
+ export declare class HelixRangeChangeEvent extends CustomEvent<RangeDetail> {
8
+ static readonly eventName = "helix-range-change";
9
+ constructor(detail: RangeDetail);
10
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixRangeChangeEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-range-change'; }
3
+ constructor(detail) {
4
+ super(HelixRangeChangeEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,19 @@
1
+ import type { ReadDetail } from './details.js';
2
+ /**
3
+ * Fired when something a user comes back to is marked read, or unread.
4
+ *
5
+ * **Read state is reported rather than owned.** Marking a notification read is
6
+ * usually a round trip, and a component that flips the state itself and then
7
+ * hears the request failed has already told the reader something untrue. So this
8
+ * is cancelable, and refusing it leaves the item alone; the component applies
9
+ * it once nobody has refused, which is the same contract every other axis in
10
+ * the library uses.
11
+ *
12
+ * Bubbles and is composed, so a feed hears its own items: one handler on the
13
+ * list serves every notification in it, which is what a consumer syncing to a
14
+ * server actually wants.
15
+ */
16
+ export declare class HelixReadEvent extends CustomEvent<ReadDetail> {
17
+ static readonly eventName = "helix-read";
18
+ constructor(detail: ReadDetail);
19
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixReadEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-read'; }
3
+ constructor(detail) {
4
+ super(HelixReadEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: true,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,6 @@
1
+ import type { ReconnectDetail } from './details.js';
2
+ /** A connection's end moved, and the move is finished. */
3
+ export declare class HelixReconnectEvent extends CustomEvent<ReconnectDetail> {
4
+ static readonly eventName = "helix-reconnect";
5
+ constructor(detail: ReconnectDetail);
6
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixReconnectEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-reconnect'; }
3
+ constructor(detail) {
4
+ super(HelixReconnectEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,13 @@
1
+ import type { RejectDetail } from './details.js';
2
+ /**
3
+ * Files arrived at a file field and some were refused: by `accept`, by
4
+ * `max-file-size`, by `max-files`, or by the field's own `validate`.
5
+ *
6
+ * A notification and not a request, because the files are already left out;
7
+ * the event is how a page tells the reader why. Bubbles and is composed, so a
8
+ * form around the field hears it.
9
+ */
10
+ export declare class HelixRejectEvent extends CustomEvent<RejectDetail> {
11
+ static readonly eventName = "helix-reject";
12
+ constructor(detail: RejectDetail);
13
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixRejectEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-reject'; }
3
+ constructor(detail) {
4
+ super(HelixRejectEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,6 @@
1
+ import type { RelabelDetail } from './details.js';
2
+ /** A label the board draws changed. */
3
+ export declare class HelixRelabelEvent extends CustomEvent<RelabelDetail> {
4
+ static readonly eventName = "helix-relabel";
5
+ constructor(detail: RelabelDetail);
6
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixRelabelEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-relabel'; }
3
+ constructor(detail) {
4
+ super(HelixRelabelEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,12 @@
1
+ import type { RemoveDetail } from './details.js';
2
+ /**
3
+ * A reader asked for cards or connections to be taken away.
4
+ *
5
+ * A request for the reason `helix-connect` is one: the elements are the page's,
6
+ * so the page removes them. Nothing to refuse, because nothing happens unless
7
+ * the page acts.
8
+ */
9
+ export declare class HelixRemoveEvent extends CustomEvent<RemoveDetail> {
10
+ static readonly eventName = "helix-remove";
11
+ constructor(detail: RemoveDetail);
12
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixRemoveEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-remove'; }
3
+ constructor(detail) {
4
+ super(HelixRemoveEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,18 @@
1
+ import type { ChangeDetail } from './details.js';
2
+ /**
3
+ * Fired when the reader asks for the columns in a different order.
4
+ *
5
+ * Cancelable, and refusing it leaves the columns where they were, so a consumer
6
+ * who stores the order, in a URL or a preference, can take the decision the way
7
+ * a server-side sort takes `helix-sort`. The detail is the whole order as
8
+ * space-separated fields rather than one move, because the order is the fact a
9
+ * consumer stores, and a move is only meaningful against an order they would
10
+ * then have to keep in step.
11
+ *
12
+ * Not `helix-sort`: that reorders the rows, this reorders the columns, and a
13
+ * consumer listening for one should not hear the other.
14
+ */
15
+ export declare class HelixReorderEvent extends CustomEvent<ChangeDetail> {
16
+ static readonly eventName = "helix-reorder";
17
+ constructor(detail: ChangeDetail);
18
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixReorderEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-reorder'; }
3
+ constructor(detail) {
4
+ super(HelixReorderEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: true,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,12 @@
1
+ import type { ChangeDetail } from './details.js';
2
+ /**
3
+ * The columns are in a different order.
4
+ *
5
+ * The notification after `helix-reorder`, sent once the order has moved, with
6
+ * every field in the new one. Not cancelable, and past tense for the reason
7
+ * `helix-sorted` is.
8
+ */
9
+ export declare class HelixReorderedEvent extends CustomEvent<ChangeDetail> {
10
+ static readonly eventName = "helix-reordered";
11
+ constructor(detail: ChangeDetail);
12
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixReorderedEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-reordered'; }
3
+ constructor(detail) {
4
+ super(HelixReorderedEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,19 @@
1
+ import type { ResizeDetail } from './details.js';
2
+ /**
3
+ * Fired when something reports how much room its content actually needs.
4
+ *
5
+ * **A measurement crossing a boundary the measurer is on the far side of.** A
6
+ * sandboxed preview is its own document: nothing outside it can read the height
7
+ * of what it drew, because the frame is opaque and a box sized from the outside
8
+ * only ever reports the box. So the document measures itself and says so, and
9
+ * this is what it says it with.
10
+ *
11
+ * A number rather than a box, because the width is the container's to decide and
12
+ * only the block size follows the content. A consumer that wants to act on it
13
+ * clamps it: what arrives is what was drawn, which for an empty example is
14
+ * nearly nothing and for a long one is more than a page.
15
+ */
16
+ export declare class HelixResizeEvent extends CustomEvent<ResizeDetail> {
17
+ static readonly eventName = "helix-resize";
18
+ constructor(detail: ResizeDetail);
19
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixResizeEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-resize'; }
3
+ constructor(detail) {
4
+ super(HelixResizeEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,16 @@
1
+ import type { ChangeDetail } from './details.js';
2
+ /**
3
+ * A divider settled somewhere new.
4
+ *
5
+ * The notification half of `helix-before-resize`, sent once `position` has
6
+ * moved, with the new position. Not cancelable: the decision was the
7
+ * request's.
8
+ *
9
+ * **Past tense, because `helix-resize` was already taken** by a measurement,
10
+ * the height a sandboxed preview reports for what it drew, and one name cannot
11
+ * carry both.
12
+ */
13
+ export declare class HelixResizedEvent extends CustomEvent<ChangeDetail> {
14
+ static readonly eventName = "helix-resized";
15
+ constructor(detail: ChangeDetail);
16
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixResizedEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-resized'; }
3
+ constructor(detail) {
4
+ super(HelixResizedEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,5 @@
1
+ /** The eyedropper closing, whether or not a color was taken. */
2
+ export declare class HelixSampleEndEvent extends Event {
3
+ static readonly eventName = "helix-sample-end";
4
+ constructor();
5
+ }
@@ -0,0 +1,6 @@
1
+ export class HelixSampleEndEvent extends Event {
2
+ static { this.eventName = 'helix-sample-end'; }
3
+ constructor() {
4
+ super(HelixSampleEndEvent.eventName, { bubbles: true, cancelable: false, composed: true });
5
+ }
6
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The eyedropper opening, and closing again.
3
+ *
4
+ * Two events rather than one carrying a flag, because what a consumer does with
5
+ * them is not symmetrical: the surface holding the picker has to get out of the
6
+ * way for the sample and come back afterwards, and those are two moments with
7
+ * different work in each.
8
+ *
9
+ * **A class rather than a bare `Event`.** The check that holds an event to being
10
+ * declared reads `new Event(` as well as `new HelixSomethingEvent(`, so a
11
+ * hand-rolled one is public API a consumer can hear and cannot find.
12
+ *
13
+ * No detail, because there is nothing to say beyond that it happened.
14
+ */
15
+ export declare class HelixSampleStartEvent extends Event {
16
+ static readonly eventName = "helix-sample-start";
17
+ constructor();
18
+ }
@@ -0,0 +1,6 @@
1
+ export class HelixSampleStartEvent extends Event {
2
+ static { this.eventName = 'helix-sample-start'; }
3
+ constructor() {
4
+ super(HelixSampleStartEvent.eventName, { bubbles: true, cancelable: false, composed: true });
5
+ }
6
+ }
@@ -0,0 +1,32 @@
1
+ import type { ScrolledDetail } from './details.js';
2
+ /**
3
+ * Fired when a header crosses the threshold between resting at the top of the
4
+ * page and floating over it.
5
+ *
6
+ * **The threshold lives in a custom state, and is announced rather than
7
+ * reflected.** A `data-scrolled` on the host is an attribute nobody rendered: a
8
+ * server sends the element without it and the element adds it on upgrade, so a
9
+ * framework hydrating the page finds markup that no longer matches what it sent.
10
+ * A custom state is deliberately not in the DOM and therefore not something a
11
+ * hydration pass can disagree with.
12
+ *
13
+ * That closes the observability an attribute would accidentally provide. A
14
+ * `MutationObserver` can watch an attribute and there is no equivalent for
15
+ * `ElementInternals.states`, so a component holding a boolean nothing can read
16
+ * is a component with a private opinion its consumers demonstrably need: the
17
+ * bar's own backdrop is drawn by the page around it, and the page has to know
18
+ * when to light it.
19
+ *
20
+ * Not cancelable. It reports where the page is rather than asking permission to
21
+ * be there, and refusing it would leave the state and the announcement
22
+ * disagreeing.
23
+ *
24
+ * The hysteresis stays inside the header, which is the point of announcing at
25
+ * all: a consumer listening to `scroll` itself would be a second opinion on
26
+ * when the page counts as scrolled, and the two would part company at the eight
27
+ * pixels of travel this waits for.
28
+ */
29
+ export declare class HelixScrolledEvent extends CustomEvent<ScrolledDetail> {
30
+ static readonly eventName = "helix-scrolled";
31
+ constructor(detail: ScrolledDetail);
32
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixScrolledEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-scrolled'; }
3
+ constructor(detail) {
4
+ super(HelixScrolledEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }