@fusion.dev/helix-core 0.144.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 (262) hide show
  1. package/custom-elements.json +5724 -1404
  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 +4 -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/countdown-controller/countdown-controller.d.ts +55 -0
  9. package/dist/controllers/countdown-controller/countdown-controller.js +57 -0
  10. package/dist/controllers/keyboard-navigation-controller/keyboard-navigation-controller.d.ts +20 -57
  11. package/dist/controllers/keyboard-navigation-controller/keyboard-navigation-controller.js +11 -40
  12. package/dist/controllers/relative-clock-controller/relative-clock-controller.d.ts +44 -0
  13. package/dist/controllers/relative-clock-controller/relative-clock-controller.js +31 -0
  14. package/dist/controllers/source-controller/source-controller.d.ts +10 -3
  15. package/dist/controllers/source-controller/source-controller.js +7 -4
  16. package/dist/controllers/virtualize-controller/virtualize-controller.d.ts +116 -36
  17. package/dist/controllers/virtualize-controller/virtualize-controller.js +122 -12
  18. package/dist/events/action.d.ts +12 -0
  19. package/dist/events/action.js +6 -0
  20. package/dist/events/activate.d.ts +22 -0
  21. package/dist/events/activate.js +11 -0
  22. package/dist/events/aura-fallback.d.ts +12 -0
  23. package/dist/events/aura-fallback.js +11 -0
  24. package/dist/events/before-activate.d.ts +24 -0
  25. package/dist/events/before-activate.js +11 -0
  26. package/dist/events/before-change.d.ts +26 -0
  27. package/dist/events/before-change.js +11 -0
  28. package/dist/events/before-close.d.ts +6 -0
  29. package/dist/events/before-close.js +11 -0
  30. package/dist/events/before-collapse.d.ts +6 -0
  31. package/dist/events/before-collapse.js +11 -0
  32. package/dist/events/before-edit.d.ts +6 -0
  33. package/dist/events/before-edit.js +11 -0
  34. package/dist/events/before-move.d.ts +17 -0
  35. package/dist/events/before-move.js +11 -0
  36. package/dist/events/before-open.d.ts +17 -0
  37. package/dist/events/before-open.js +11 -0
  38. package/dist/events/before-panel-resize.d.ts +13 -0
  39. package/dist/events/before-panel-resize.js +11 -0
  40. package/dist/events/before-pin.d.ts +6 -0
  41. package/dist/events/before-pin.js +11 -0
  42. package/dist/events/before-reconnect.d.ts +14 -0
  43. package/dist/events/before-reconnect.js +11 -0
  44. package/dist/events/before-relabel.d.ts +15 -0
  45. package/dist/events/before-relabel.js +11 -0
  46. package/dist/events/before-resize.d.ts +6 -0
  47. package/dist/events/before-resize.js +11 -0
  48. package/dist/events/before-split.d.ts +12 -0
  49. package/dist/events/before-split.js +11 -0
  50. package/dist/events/before-toggle.d.ts +23 -0
  51. package/dist/events/before-toggle.js +11 -0
  52. package/dist/events/canvas-edit.d.ts +16 -0
  53. package/dist/events/canvas-edit.js +11 -0
  54. package/dist/events/canvas-pan.d.ts +13 -0
  55. package/dist/events/canvas-pan.js +11 -0
  56. package/dist/events/canvas-view.d.ts +14 -0
  57. package/dist/events/canvas-view.js +11 -0
  58. package/dist/events/canvas-zoom.d.ts +6 -0
  59. package/dist/events/canvas-zoom.js +11 -0
  60. package/dist/events/caret.d.ts +17 -0
  61. package/dist/events/caret.js +11 -0
  62. package/dist/events/clear.d.ts +11 -0
  63. package/dist/events/clear.js +6 -0
  64. package/dist/events/collapse.d.ts +12 -0
  65. package/dist/events/collapse.js +11 -0
  66. package/dist/events/complete.d.ts +26 -0
  67. package/dist/events/complete.js +11 -0
  68. package/dist/events/connect.d.ts +14 -0
  69. package/dist/events/connect.js +11 -0
  70. package/dist/events/console.d.ts +13 -0
  71. package/dist/events/console.js +11 -0
  72. package/dist/events/copy-error.d.ts +9 -0
  73. package/dist/events/copy-error.js +6 -0
  74. package/dist/events/copy.d.ts +12 -0
  75. package/dist/events/copy.js +10 -0
  76. package/dist/events/create.d.ts +18 -0
  77. package/dist/events/create.js +11 -0
  78. package/dist/events/details.d.ts +454 -0
  79. package/dist/events/details.js +1 -0
  80. package/dist/events/dismiss.d.ts +16 -0
  81. package/dist/events/dismiss.js +11 -0
  82. package/dist/events/edit.d.ts +12 -0
  83. package/dist/events/edit.js +11 -0
  84. package/dist/events/end.d.ts +9 -0
  85. package/dist/events/end.js +6 -0
  86. package/dist/events/events.d.ts +125 -1306
  87. package/dist/events/events.js +105 -739
  88. package/dist/events/expand.d.ts +10 -0
  89. package/dist/events/expand.js +11 -0
  90. package/dist/events/facet.d.ts +17 -0
  91. package/dist/events/facet.js +11 -0
  92. package/dist/events/filter.d.ts +12 -0
  93. package/dist/events/filter.js +11 -0
  94. package/dist/events/filtered.d.ts +12 -0
  95. package/dist/events/filtered.js +11 -0
  96. package/dist/events/graph-filter.d.ts +10 -0
  97. package/dist/events/graph-filter.js +11 -0
  98. package/dist/events/graph-layout.d.ts +10 -0
  99. package/dist/events/graph-layout.js +11 -0
  100. package/dist/events/graph-pan.d.ts +9 -0
  101. package/dist/events/graph-pan.js +11 -0
  102. package/dist/events/graph-part-change.d.ts +10 -0
  103. package/dist/events/graph-part-change.js +11 -0
  104. package/dist/events/graph-ready.d.ts +8 -0
  105. package/dist/events/graph-ready.js +6 -0
  106. package/dist/events/graph-signal.d.ts +11 -0
  107. package/dist/events/graph-signal.js +11 -0
  108. package/dist/events/graph-zoom.d.ts +6 -0
  109. package/dist/events/graph-zoom.js +11 -0
  110. package/dist/events/history.d.ts +16 -0
  111. package/dist/events/history.js +11 -0
  112. package/dist/events/load-more.d.ts +12 -0
  113. package/dist/events/load-more.js +6 -0
  114. package/dist/events/load.d.ts +12 -0
  115. package/dist/events/load.js +6 -0
  116. package/dist/events/map-cluster.d.ts +15 -0
  117. package/dist/events/map-cluster.js +11 -0
  118. package/dist/events/map-pan.d.ts +18 -0
  119. package/dist/events/map-pan.js +11 -0
  120. package/dist/events/map-part-change.d.ts +16 -0
  121. package/dist/events/map-part-change.js +11 -0
  122. package/dist/events/map-ready.d.ts +15 -0
  123. package/dist/events/map-ready.js +6 -0
  124. package/dist/events/map-rotate.d.ts +9 -0
  125. package/dist/events/map-rotate.js +11 -0
  126. package/dist/events/map-tilt.d.ts +9 -0
  127. package/dist/events/map-tilt.js +11 -0
  128. package/dist/events/map-zoom.d.ts +13 -0
  129. package/dist/events/map-zoom.js +11 -0
  130. package/dist/events/move.d.ts +11 -0
  131. package/dist/events/move.js +11 -0
  132. package/dist/events/names.d.ts +15 -0
  133. package/dist/events/names.js +88 -0
  134. package/dist/events/navigate.d.ts +13 -0
  135. package/dist/events/navigate.js +11 -0
  136. package/dist/events/next.d.ts +23 -0
  137. package/dist/events/next.js +11 -0
  138. package/dist/events/panel-resize.d.ts +12 -0
  139. package/dist/events/panel-resize.js +11 -0
  140. package/dist/events/pin.d.ts +12 -0
  141. package/dist/events/pin.js +11 -0
  142. package/dist/events/press.d.ts +19 -0
  143. package/dist/events/press.js +11 -0
  144. package/dist/events/preview.d.ts +14 -0
  145. package/dist/events/preview.js +11 -0
  146. package/dist/events/previous.d.ts +6 -0
  147. package/dist/events/previous.js +11 -0
  148. package/dist/events/range-change.d.ts +10 -0
  149. package/dist/events/range-change.js +11 -0
  150. package/dist/events/read.d.ts +19 -0
  151. package/dist/events/read.js +11 -0
  152. package/dist/events/reconnect.d.ts +6 -0
  153. package/dist/events/reconnect.js +11 -0
  154. package/dist/events/reject.d.ts +13 -0
  155. package/dist/events/reject.js +11 -0
  156. package/dist/events/relabel.d.ts +6 -0
  157. package/dist/events/relabel.js +11 -0
  158. package/dist/events/remove.d.ts +12 -0
  159. package/dist/events/remove.js +11 -0
  160. package/dist/events/reorder.d.ts +18 -0
  161. package/dist/events/reorder.js +11 -0
  162. package/dist/events/reordered.d.ts +12 -0
  163. package/dist/events/reordered.js +11 -0
  164. package/dist/events/resize.d.ts +19 -0
  165. package/dist/events/resize.js +11 -0
  166. package/dist/events/resized.d.ts +16 -0
  167. package/dist/events/resized.js +11 -0
  168. package/dist/events/sample-end.d.ts +5 -0
  169. package/dist/events/sample-end.js +6 -0
  170. package/dist/events/sample-start.d.ts +18 -0
  171. package/dist/events/sample-start.js +6 -0
  172. package/dist/events/scrolled.d.ts +32 -0
  173. package/dist/events/scrolled.js +11 -0
  174. package/dist/events/select.d.ts +12 -0
  175. package/dist/events/select.js +11 -0
  176. package/dist/events/selected.d.ts +12 -0
  177. package/dist/events/selected.js +11 -0
  178. package/dist/events/send.d.ts +18 -0
  179. package/dist/events/send.js +11 -0
  180. package/dist/events/shortcut.d.ts +13 -0
  181. package/dist/events/shortcut.js +11 -0
  182. package/dist/events/sort.d.ts +17 -0
  183. package/dist/events/sort.js +11 -0
  184. package/dist/events/sorted.d.ts +15 -0
  185. package/dist/events/sorted.js +11 -0
  186. package/dist/events/split.d.ts +12 -0
  187. package/dist/events/split.js +11 -0
  188. package/dist/events/toggle.d.ts +15 -0
  189. package/dist/events/toggle.js +11 -0
  190. package/dist/events/tour-ask.d.ts +16 -0
  191. package/dist/events/tour-ask.js +11 -0
  192. package/dist/events/tour-status.d.ts +14 -0
  193. package/dist/events/tour-status.js +11 -0
  194. package/dist/events/typing.d.ts +10 -0
  195. package/dist/events/typing.js +11 -0
  196. package/dist/helix-element/helix-element.js +14 -1
  197. package/dist/helix-element/react-bridge.d.ts +19 -4
  198. package/dist/helix-element/react-bridge.js +15 -2
  199. package/dist/helix-form-element/helix-form-element.d.ts +5 -20
  200. package/dist/helix-form-element/helix-form-element.js +4 -56
  201. package/dist/index.d.ts +17 -3
  202. package/dist/index.js +17 -3
  203. package/dist/mixins/mixin-chart-source/mixin-chart-source.d.ts +17 -2
  204. package/dist/mixins/mixin-chart-source/mixin-chart-source.js +22 -1
  205. package/dist/mixins/mixin-controller-active/mixin-controller-active.js +4 -3
  206. package/dist/mixins/mixin-controller-checked/mixin-controller-checked.d.ts +5 -2
  207. package/dist/mixins/mixin-controller-checked/mixin-controller-checked.js +2 -1
  208. package/dist/mixins/mixin-controller-value/mixin-controller-value.d.ts +4 -2
  209. package/dist/mixins/mixin-controller-value/mixin-controller-value.js +7 -2
  210. package/dist/mixins/mixin-dismissible/mixin-dismissible.js +20 -4
  211. package/dist/mixins/mixin-field/mixin-field.js +2 -2
  212. package/dist/mixins/mixin-picker-field/mixin-picker-field.d.ts +15 -3
  213. package/dist/mixins/mixin-picker-field/mixin-picker-field.js +11 -4
  214. package/dist/mixins/mixin-segmented-field/mixin-segmented-field.d.ts +1 -1
  215. package/dist/mixins/mixin-segmented-field/mixin-segmented-field.js +10 -4
  216. package/dist/utils/audit-name/audit-name-off.d.ts +10 -0
  217. package/dist/utils/audit-name/audit-name-off.js +1 -0
  218. package/dist/utils/audit-name/audit-name.d.ts +19 -6
  219. package/dist/utils/audit-name/audit-name.js +10 -27
  220. package/dist/utils/calendar/calendar.js +7 -7
  221. package/dist/utils/draw-icon/draw-icon.d.ts +7 -6
  222. package/dist/utils/draw-tooltip/draw-tooltip.d.ts +1 -1
  223. package/dist/utils/draw-tooltip/draw-tooltip.js +3 -1
  224. package/dist/utils/draw-tooltip/spoken-reading.d.ts +6 -2
  225. package/dist/utils/draw-tooltip/spoken-reading.js +5 -4
  226. package/dist/utils/heading-level/heading-level.d.ts +8 -0
  227. package/dist/utils/heading-level/heading-level.js +4 -0
  228. package/dist/utils/implicit-submit/implicit-submit.d.ts +25 -0
  229. package/dist/utils/implicit-submit/implicit-submit.js +52 -0
  230. package/dist/utils/name-text/name-text.d.ts +12 -0
  231. package/dist/utils/name-text/name-text.js +25 -0
  232. package/dist/utils/number-format/number-format.d.ts +2 -1
  233. package/dist/utils/number-format/number-format.js +13 -5
  234. package/dist/utils/plain-click/plain-click.d.ts +10 -0
  235. package/dist/utils/plain-click/plain-click.js +1 -0
  236. package/dist/utils/press-type/press-type.d.ts +20 -0
  237. package/dist/utils/press-type/press-type.js +15 -0
  238. package/dist/utils/range-add/range-add.d.ts +19 -0
  239. package/dist/utils/range-add/range-add.js +5 -0
  240. package/dist/utils/reflect-elements/reflect-elements.d.ts +3 -3
  241. package/dist/utils/report-runtime/report-runtime.d.ts +9 -4
  242. package/dist/utils/row-data/row-data.d.ts +15 -0
  243. package/dist/utils/row-data/row-data.js +17 -0
  244. package/dist/utils/row-order/row-order.d.ts +141 -0
  245. package/dist/utils/row-order/row-order.js +76 -0
  246. package/dist/utils/tell-disclosure/tell-disclosure.d.ts +4 -0
  247. package/dist/utils/tree-arrow/tree-arrow.d.ts +23 -0
  248. package/dist/utils/tree-arrow/tree-arrow.js +9 -0
  249. package/dist/utils/typeahead/typeahead.d.ts +67 -0
  250. package/dist/utils/typeahead/typeahead.js +36 -0
  251. package/dist/utils/value-as/value-as.d.ts +9 -0
  252. package/dist/utils/value-as/value-as.js +9 -1
  253. package/dist/utils/watch-labels/watch-labels.d.ts +16 -0
  254. package/dist/utils/watch-labels/watch-labels.js +34 -0
  255. package/dist/utils/words-converter/words-converter.d.ts +14 -0
  256. package/dist/utils/words-converter/words-converter.js +15 -0
  257. package/dist/utils/write-time/write-time.d.ts +4 -4
  258. package/dist/utils/written-list/written-list.d.ts +29 -0
  259. package/dist/utils/written-list/written-list.js +30 -0
  260. package/dist/version.d.ts +1 -1
  261. package/dist/version.js +1 -1
  262. package/package.json +18 -5
@@ -0,0 +1,6 @@
1
+ import type { ChangeDetail } from './details.js';
2
+ /** A pane is about to collapse or reopen, and can be refused. */
3
+ export declare class HelixBeforeCollapseEvent extends CustomEvent<ChangeDetail> {
4
+ static readonly eventName = "helix-before-collapse";
5
+ constructor(detail: ChangeDetail);
6
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixBeforeCollapseEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-before-collapse'; }
3
+ constructor(detail) {
4
+ super(HelixBeforeCollapseEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: true,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,6 @@
1
+ import type { ChangeDetail } from './details.js';
2
+ /** Source is about to be edited, and can be refused. */
3
+ export declare class HelixBeforeEditEvent extends CustomEvent<ChangeDetail> {
4
+ static readonly eventName = "helix-before-edit";
5
+ constructor(detail: ChangeDetail);
6
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixBeforeEditEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-before-edit'; }
3
+ constructor(detail) {
4
+ super(HelixBeforeEditEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: true,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,17 @@
1
+ import type { MoveDetail } from './details.js';
2
+ /**
3
+ * Cards are about to move, and can be refused.
4
+ *
5
+ * **This is the controlled half, the way `helix-before-open` is for a
6
+ * dialog.** A board moves its own cards by default, writing `x` and `y` onto
7
+ * each one the way an input writes its own value. A consumer who keeps the
8
+ * positions in their own state calls `preventDefault()` here, writes what the
9
+ * detail says into that state, and renders the cards where it puts them.
10
+ *
11
+ * Sent for every step of a drag, so a controlled board follows the pointer
12
+ * rather than jumping on the drop.
13
+ */
14
+ export declare class HelixBeforeMoveEvent extends CustomEvent<MoveDetail> {
15
+ static readonly eventName = "helix-before-move";
16
+ constructor(detail: MoveDetail);
17
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixBeforeMoveEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-before-move'; }
3
+ constructor(detail) {
4
+ super(HelixBeforeMoveEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: true,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,17 @@
1
+ import type { OpenDetail } from './details.js';
2
+ /**
3
+ * Fired when an element is about to open.
4
+ *
5
+ * Cancelable: `preventDefault()` refuses the change, and the element stays
6
+ * closed. Paired with `helix-before-close` rather than being one event carrying a
7
+ * boolean, so a listener that only cares about one direction says so by which
8
+ * event it listens for.
9
+ *
10
+ * Neither bubbles nor composed. A dialog inside a drawer inside a popover is
11
+ * three overlays, and an inner one opening must not read as the outer one
12
+ * opening.
13
+ */
14
+ export declare class HelixBeforeOpenEvent extends CustomEvent<OpenDetail> {
15
+ static readonly eventName = "helix-before-open";
16
+ constructor();
17
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixBeforeOpenEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-before-open'; }
3
+ constructor() {
4
+ super(HelixBeforeOpenEvent.eventName, {
5
+ bubbles: false,
6
+ cancelable: true,
7
+ composed: false,
8
+ detail: { open: true },
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,13 @@
1
+ import type { ChangeDetail } from './details.js';
2
+ /**
3
+ * A sandbox's panel is about to change height, and can be refused.
4
+ *
5
+ * The sibling of `helix-before-split`, and named for the divider rather than for
6
+ * the axis because a reader binding one of the two is choosing which divider they
7
+ * care about. `value` is pixels here and a percentage there, which is what each
8
+ * property already publishes.
9
+ */
10
+ export declare class HelixBeforePanelResizeEvent extends CustomEvent<ChangeDetail> {
11
+ static readonly eventName = "helix-before-panel-resize";
12
+ constructor(detail: ChangeDetail);
13
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixBeforePanelResizeEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-before-panel-resize'; }
3
+ constructor(detail) {
4
+ super(HelixBeforePanelResizeEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: true,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,6 @@
1
+ import type { ChangeDetail } from './details.js';
2
+ /** A message is about to be pinned or unpinned, and can be refused. */
3
+ export declare class HelixBeforePinEvent extends CustomEvent<ChangeDetail> {
4
+ static readonly eventName = "helix-before-pin";
5
+ constructor(detail: ChangeDetail);
6
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixBeforePinEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-before-pin'; }
3
+ constructor(detail) {
4
+ super(HelixBeforePinEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: true,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,14 @@
1
+ import type { ReconnectDetail } from './details.js';
2
+ /**
3
+ * A connection's end is about to move to another card or another side, and can
4
+ * be refused.
5
+ *
6
+ * **A move, not a request, and that is the difference from `helix-connect`.**
7
+ * The connection is already an element on the page, so the board rewrites its
8
+ * ends itself, the way it writes a card's position onto the card; a page that
9
+ * holds its connections in state refuses this and writes them there.
10
+ */
11
+ export declare class HelixBeforeReconnectEvent extends CustomEvent<ReconnectDetail> {
12
+ static readonly eventName = "helix-before-reconnect";
13
+ constructor(detail: ReconnectDetail);
14
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixBeforeReconnectEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-before-reconnect'; }
3
+ constructor(detail) {
4
+ super(HelixBeforeReconnectEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: true,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,15 @@
1
+ import type { RelabelDetail } from './details.js';
2
+ /**
3
+ * A label the board draws is about to change, and can be refused.
4
+ *
5
+ * **The board edits what it draws and asks for what it does not.** A
6
+ * connection's label and a group's name are drawn by the board from an
7
+ * attribute, so the board edits them in place and writes the attribute back,
8
+ * the way it writes a card's position; a page holding them in state refuses
9
+ * this and writes them there. A card's own content is the page's, which is why
10
+ * that is `helix-canvas-edit`, a request, rather than this.
11
+ */
12
+ export declare class HelixBeforeRelabelEvent extends CustomEvent<RelabelDetail> {
13
+ static readonly eventName = "helix-before-relabel";
14
+ constructor(detail: RelabelDetail);
15
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixBeforeRelabelEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-before-relabel'; }
3
+ constructor(detail) {
4
+ super(HelixBeforeRelabelEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: true,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,6 @@
1
+ import type { ChangeDetail } from './details.js';
2
+ /** A divider is about to move, and can be refused. */
3
+ export declare class HelixBeforeResizeEvent extends CustomEvent<ChangeDetail> {
4
+ static readonly eventName = "helix-before-resize";
5
+ constructor(detail: ChangeDetail);
6
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixBeforeResizeEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-before-resize'; }
3
+ constructor(detail) {
4
+ super(HelixBeforeResizeEvent.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 divider between a sandbox's panes is about to move, and can be refused.
4
+ *
5
+ * Its own verb rather than a `helix-before-resize` carrying which divider moved:
6
+ * a sandbox has two, and they were told apart by a field on a detail every other
7
+ * request in this file also carries.
8
+ */
9
+ export declare class HelixBeforeSplitEvent extends CustomEvent<ChangeDetail> {
10
+ static readonly eventName = "helix-before-split";
11
+ constructor(detail: ChangeDetail);
12
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixBeforeSplitEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-before-split'; }
3
+ constructor(detail) {
4
+ super(HelixBeforeSplitEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: true,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,23 @@
1
+ import type { ToggleDetail } from './details.js';
2
+ /**
3
+ * A checked state is about to change, and the change can be refused.
4
+ *
5
+ * **Its own event rather than a `helix-before-change` carrying a boolean.**
6
+ * Through the value event the state arrives as `String(checked)`, so a consumer
7
+ * receives the string `"false"`, which is truthy, and a test asserting the value
8
+ * passes on that bug. A control whose state is a boolean wants an event with a
9
+ * typed boolean in it.
10
+ *
11
+ * The notification is native, as it is for a value: the control relays `change`
12
+ * from the inner input and announces `input` beside it, so `onChange` reads
13
+ * `currentTarget.checked` and gets a boolean from the platform.
14
+ *
15
+ * It also ends a collision: Checkbox Group listened for its boxes' change and
16
+ * dispatched its own under the same name from the same host, so it needed
17
+ * `stopImmediatePropagation` to keep a consumer from receiving one box's boolean
18
+ * alongside the whole set. Two names, two facts.
19
+ */
20
+ export declare class HelixBeforeToggleEvent extends CustomEvent<ToggleDetail> {
21
+ static readonly eventName = "helix-before-toggle";
22
+ constructor(detail: ToggleDetail);
23
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixBeforeToggleEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-before-toggle'; }
3
+ constructor(detail) {
4
+ super(HelixBeforeToggleEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: true,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * A reader asked to edit a card: a double-click, or Enter or F2 on it.
3
+ *
4
+ * **A request, because what a card holds is the page's.** Text, a picture, a
5
+ * chart: the board cannot know what editing any of those means, so it says
6
+ * which card and the page opens its own editor, in place, in a dialog, or in a
7
+ * panel beside the board.
8
+ */
9
+ export declare class HelixCanvasEditEvent extends CustomEvent<{
10
+ name: string;
11
+ }> {
12
+ static readonly eventName = "helix-canvas-edit";
13
+ constructor(detail: {
14
+ name: string;
15
+ });
16
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixCanvasEditEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-canvas-edit'; }
3
+ constructor(detail) {
4
+ super(HelixCanvasEditEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,13 @@
1
+ import type { ViewportPanDetail } from './details.js';
2
+ /**
3
+ * The board moved, which on a canvas is a fact rather than a request.
4
+ *
5
+ * **`Map` asks and `Canvas` tells, and the difference is who draws.** A map is
6
+ * somebody else's, so the frame can only ask them to move it; a canvas is drawn
7
+ * here from a document, so the same press moves it and this says that it did.
8
+ * The detail is the same shape either way, being a direction and a distance.
9
+ */
10
+ export declare class HelixCanvasPanEvent extends CustomEvent<ViewportPanDetail> {
11
+ static readonly eventName = "helix-canvas-pan";
12
+ constructor(detail: ViewportPanDetail);
13
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixCanvasPanEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-canvas-pan'; }
3
+ constructor(detail) {
4
+ super(HelixCanvasPanEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,14 @@
1
+ import type { CanvasView } from './details.js';
2
+ /**
3
+ * The board's view changed, however it changed: a drag, the wheel, a press on
4
+ * a control, a card brought into view, or the board fitting itself.
5
+ *
6
+ * **One event for all of them**, because what a consumer keeping a minimap or a
7
+ * saved position in step needs is where the board is now, not which of six
8
+ * gestures put it there; `helix-canvas-pan` and `helix-canvas-zoom` still say
9
+ * which control was pressed. Sent for every step of a drag, the way `input` is.
10
+ */
11
+ export declare class HelixCanvasViewEvent extends CustomEvent<CanvasView> {
12
+ static readonly eventName = "helix-canvas-view";
13
+ constructor(detail: CanvasView);
14
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixCanvasViewEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-canvas-view'; }
3
+ constructor(detail) {
4
+ super(HelixCanvasViewEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,6 @@
1
+ import type { ViewportZoomDetail } from './details.js';
2
+ /** The board zoomed, and told, for the same reason. */
3
+ export declare class HelixCanvasZoomEvent extends CustomEvent<ViewportZoomDetail> {
4
+ static readonly eventName = "helix-canvas-zoom";
5
+ constructor(detail: ViewportZoomDetail);
6
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixCanvasZoomEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-canvas-zoom'; }
3
+ constructor(detail) {
4
+ super(HelixCanvasZoomEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,17 @@
1
+ import type { CaretDetail } from './details.js';
2
+ /**
3
+ * Fired when the cursor moves in a text editor.
4
+ *
5
+ * Not cancelable, unlike everything else here. The others announce something
6
+ * about to happen and a listener can refuse it; this one reports where the
7
+ * caret already is, and there is nothing left to refuse.
8
+ *
9
+ * It fires on every keystroke and every arrow press, which is why the status
10
+ * bar reads it from the DOM rather than through a framework's state: routing a
11
+ * caret position through React would re-render the workbench on every cursor
12
+ * move.
13
+ */
14
+ export declare class HelixCaretEvent extends CustomEvent<CaretDetail> {
15
+ static readonly eventName = "helix-caret";
16
+ constructor(detail: CaretDetail);
17
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixCaretEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-caret'; }
3
+ constructor(detail) {
4
+ super(HelixCaretEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * A reader cleared the value: an input's clear button emptied the field, or a
3
+ * clearable rating went back to unrated.
4
+ *
5
+ * Sent after the value is cleared, and after the `input` and `change` the
6
+ * clear sends. Carries nothing, because the value is the cleared one.
7
+ */
8
+ export declare class HelixClearEvent extends Event {
9
+ static readonly eventName = "helix-clear";
10
+ constructor();
11
+ }
@@ -0,0 +1,6 @@
1
+ export class HelixClearEvent extends Event {
2
+ static { this.eventName = 'helix-clear'; }
3
+ constructor() {
4
+ super(HelixClearEvent.eventName, { bubbles: true, cancelable: false, composed: true });
5
+ }
6
+ }
@@ -0,0 +1,12 @@
1
+ import type { ChangeDetail } from './details.js';
2
+ /**
3
+ * A pane shut or reopened.
4
+ *
5
+ * The notification half of `helix-before-collapse`, sent once `collapsed` has
6
+ * moved. `detail.value` is the side that is shut, or empty where both panes
7
+ * are open. Not cancelable: the decision was the request's.
8
+ */
9
+ export declare class HelixCollapseEvent extends CustomEvent<ChangeDetail> {
10
+ static readonly eventName = "helix-collapse";
11
+ constructor(detail: ChangeDetail);
12
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixCollapseEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-collapse'; }
3
+ constructor(detail) {
4
+ super(HelixCollapseEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,26 @@
1
+ import type { CompleteDetail } from './details.js';
2
+ /**
3
+ * Fired when a control that fills up has filled.
4
+ *
5
+ * The moment a code entry exists for: a six-character field is worth submitting
6
+ * the instant the sixth character lands, and a consumer watching `helix-change`
7
+ * has to know the length and compare it on every keystroke to find that moment
8
+ * themselves.
9
+ *
10
+ * Separate from `helix-change` rather than a flag on it, because they are
11
+ * answered by different code: one keeps a value in step and the other decides
12
+ * whether to send a form. A listener that only cares about the second says so by
13
+ * which event it listens for.
14
+ *
15
+ * `complete` is free as a verb. React's synthetic system claims `change`,
16
+ * `input`, `submit`, `reset`, `copy`, `paste`, `scroll`, `drag`, `focus` and
17
+ * `blur`, measured, and this is none of them.
18
+ *
19
+ * Not cancelable. It reports that something already happened, which is the same
20
+ * reason `helix-caret` is not: there is nothing left to refuse once the last
21
+ * character is in the box.
22
+ */
23
+ export declare class HelixCompleteEvent extends CustomEvent<CompleteDetail> {
24
+ static readonly eventName = "helix-complete";
25
+ constructor(detail: CompleteDetail);
26
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixCompleteEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-complete'; }
3
+ constructor(detail) {
4
+ super(HelixCompleteEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,14 @@
1
+ import type { ConnectDetail } from './details.js';
2
+ /**
3
+ * A reader asked for two cards to be joined.
4
+ *
5
+ * **A request with no default, which is the difference from a move.** A board
6
+ * writes a card's position onto the card, because the card is already there.
7
+ * A connection is a new element, and a board that added one to markup React
8
+ * renders would have it put back or thrown away on the next render. So the board
9
+ * asks and the page adds the `helix-canvas-edge`, the way `Map` asks to be panned.
10
+ */
11
+ export declare class HelixConnectEvent extends CustomEvent<ConnectDetail> {
12
+ static readonly eventName = "helix-connect";
13
+ constructor(detail: ConnectDetail);
14
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixConnectEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-connect'; }
3
+ constructor(detail) {
4
+ super(HelixConnectEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,13 @@
1
+ import type { ConsoleDetail } from './details.js';
2
+ /**
3
+ * Fired when something being previewed writes to the console.
4
+ *
5
+ * Carries text rather than the logged values. The preview is a separate
6
+ * document, so what arrives has crossed `postMessage` and been through
7
+ * structured clone: a DOM node or a function does not survive that, and half a
8
+ * value is worse than a string of it.
9
+ */
10
+ export declare class HelixConsoleEvent extends CustomEvent<ConsoleDetail> {
11
+ static readonly eventName = "helix-console";
12
+ constructor(detail: ConsoleDetail);
13
+ }
@@ -0,0 +1,11 @@
1
+ export class HelixConsoleEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-console'; }
3
+ constructor(detail) {
4
+ super(HelixConsoleEvent.eventName, {
5
+ bubbles: true,
6
+ cancelable: false,
7
+ composed: true,
8
+ detail,
9
+ });
10
+ }
11
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * A press put nothing on the clipboard: the browser did not allow the write,
3
+ * such as on a page without the clipboard permission, or there was nothing to
4
+ * copy.
5
+ */
6
+ export declare class HelixCopyErrorEvent extends Event {
7
+ static readonly eventName = "helix-copy-error";
8
+ constructor();
9
+ }
@@ -0,0 +1,6 @@
1
+ export class HelixCopyErrorEvent extends Event {
2
+ static { this.eventName = 'helix-copy-error'; }
3
+ constructor() {
4
+ super(HelixCopyErrorEvent.eventName, { bubbles: true, cancelable: false, composed: true });
5
+ }
6
+ }
@@ -0,0 +1,12 @@
1
+ import type { CopyDetail } from './details.js';
2
+ /**
3
+ * Something was copied to the clipboard.
4
+ *
5
+ * Not cancelable, and deliberately: it is announced after the write, because a
6
+ * clipboard write is a permission the platform may refuse and there is nothing
7
+ * useful to report until it has either happened or not.
8
+ */
9
+ export declare class HelixCopyEvent extends CustomEvent<CopyDetail> {
10
+ static readonly eventName = "helix-copy";
11
+ constructor(detail: CopyDetail);
12
+ }
@@ -0,0 +1,10 @@
1
+ export class HelixCopyEvent extends CustomEvent {
2
+ static { this.eventName = 'helix-copy'; }
3
+ constructor(detail) {
4
+ super(HelixCopyEvent.eventName, {
5
+ bubbles: true,
6
+ composed: true,
7
+ detail,
8
+ });
9
+ }
10
+ }
@@ -0,0 +1,18 @@
1
+ import type { CreateDetail } from './details.js';
2
+ /**
3
+ * The reader asked for something the list does not hold.
4
+ *
5
+ * Cancelable, and announced before anything is applied, because the options are
6
+ * the consumer's own light DOM and no component here writes into it. What the
7
+ * control can do is say what was asked for and take the value; putting an
8
+ * option in the list, or a row in a database, is the consumer's, and a consumer
9
+ * who validates first refuses this and adds nothing.
10
+ *
11
+ * The detail carries the text as typed, not a slug of it. Trimming or lowering
12
+ * it here would be this element deciding what a name means, and a consumer who
13
+ * wants an identifier can make one from what they were given.
14
+ */
15
+ export declare class HelixCreateEvent extends CustomEvent<CreateDetail> {
16
+ static readonly eventName = "helix-create";
17
+ constructor(detail: CreateDetail);
18
+ }