@fusion.dev/helix-core 0.223.0 → 0.224.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 (235) hide show
  1. package/custom-elements.json +1 -1
  2. package/dist/controllers/reorder-controller/reorder-controller.js +2 -3
  3. package/dist/events/before-activate.d.ts +3 -1
  4. package/dist/events/before-change.d.ts +2 -0
  5. package/dist/events/before-check.d.ts +31 -0
  6. package/dist/events/before-check.js +11 -0
  7. package/dist/events/before-close.d.ts +5 -1
  8. package/dist/events/before-filter.d.ts +17 -0
  9. package/dist/events/before-filter.js +11 -0
  10. package/dist/events/before-listen.d.ts +5 -1
  11. package/dist/events/before-navigate.d.ts +16 -0
  12. package/dist/events/before-navigate.js +11 -0
  13. package/dist/events/before-open.d.ts +2 -0
  14. package/dist/events/before-pin.d.ts +5 -1
  15. package/dist/events/before-reorder.d.ts +2 -0
  16. package/dist/events/before-resize.d.ts +5 -1
  17. package/dist/events/before-select.d.ts +19 -0
  18. package/dist/events/before-select.js +11 -0
  19. package/dist/events/before-sort.d.ts +19 -0
  20. package/dist/events/before-sort.js +11 -0
  21. package/dist/events/check.d.ts +15 -0
  22. package/dist/events/{caret.js → check.js} +3 -3
  23. package/dist/events/details.d.ts +11 -514
  24. package/dist/events/events.d.ts +27 -170
  25. package/dist/events/events.js +13 -165
  26. package/dist/events/expand.d.ts +2 -1
  27. package/dist/events/filter.d.ts +3 -4
  28. package/dist/events/filter.js +1 -1
  29. package/dist/events/found.d.ts +1 -1
  30. package/dist/events/names.d.ts +5 -16
  31. package/dist/events/names.js +11 -15
  32. package/dist/events/navigate.d.ts +3 -5
  33. package/dist/events/navigate.js +1 -1
  34. package/dist/events/reorder.d.ts +12 -13
  35. package/dist/events/reorder.js +1 -1
  36. package/dist/events/select.d.ts +4 -4
  37. package/dist/events/select.js +1 -1
  38. package/dist/events/sort.d.ts +3 -9
  39. package/dist/events/sort.js +1 -1
  40. package/dist/helix-element/helix-element.d.ts +31 -14
  41. package/dist/helix-element/helix-element.js +25 -3
  42. package/dist/helix-element/react-audit-off.d.ts +3 -1
  43. package/dist/helix-element/react-audit-off.js +1 -0
  44. package/dist/helix-element/react-audit.d.ts +22 -0
  45. package/dist/helix-element/react-audit.js +18 -0
  46. package/dist/helix-element/react-bridge.d.ts +34 -1
  47. package/dist/helix-element/react-bridge.js +33 -9
  48. package/dist/helix-element/react-root.d.ts +2 -0
  49. package/dist/helix-element/react-root.js +9 -0
  50. package/dist/helix-form-element/helix-form-element-base.js +12 -12
  51. package/dist/helix-form-element/helix-form-element.js +4 -3
  52. package/dist/index.d.ts +4 -2
  53. package/dist/index.js +4 -2
  54. package/dist/mixins/mixin-controller-checked/mixin-controller-checked.d.ts +3 -3
  55. package/dist/mixins/mixin-controller-checked/mixin-controller-checked.js +2 -2
  56. package/dist/mixins/mixin-field/mixin-field.js +9 -8
  57. package/dist/mixins/mixin-picker-feedback/mixin-picker-feedback.js +3 -2
  58. package/dist/mixins/mixin-picker-field/mixin-picker-field.js +4 -3
  59. package/dist/mixins/mixin-segmented-field/mixin-segmented-field.js +5 -4
  60. package/dist/mixins/mixin-selectable-item/mixin-selectable-item.d.ts +1 -1
  61. package/dist/mixins/mixin-selectable-item/mixin-selectable-item.js +2 -2
  62. package/dist/utils/audit-children/audit-children.d.ts +1 -1
  63. package/dist/utils/audit-name/audit-name.js +12 -1
  64. package/dist/utils/controls/controls.js +6 -1
  65. package/dist/utils/draw-icon/draw-icon.d.ts +1 -1
  66. package/dist/utils/follow-link/follow-link.d.ts +1 -1
  67. package/dist/utils/report-runtime/report-runtime.d.ts +5 -0
  68. package/dist/utils/tell-disclosure/tell-disclosure.d.ts +6 -3
  69. package/dist/utils/ticker/ticker.d.ts +5 -0
  70. package/dist/version.d.ts +4 -5
  71. package/dist/version.js +1 -1
  72. package/package.json +6 -6
  73. package/dist/events/action.d.ts +0 -12
  74. package/dist/events/action.js +0 -6
  75. package/dist/events/aura-fallback.d.ts +0 -12
  76. package/dist/events/aura-fallback.js +0 -11
  77. package/dist/events/band.d.ts +0 -13
  78. package/dist/events/band.js +0 -11
  79. package/dist/events/before-collapse.d.ts +0 -6
  80. package/dist/events/before-collapse.js +0 -11
  81. package/dist/events/before-edit.d.ts +0 -6
  82. package/dist/events/before-edit.js +0 -11
  83. package/dist/events/before-move.d.ts +0 -17
  84. package/dist/events/before-move.js +0 -11
  85. package/dist/events/before-panel-resize.d.ts +0 -13
  86. package/dist/events/before-panel-resize.js +0 -11
  87. package/dist/events/before-paste.d.ts +0 -13
  88. package/dist/events/before-paste.js +0 -11
  89. package/dist/events/before-reconnect.d.ts +0 -14
  90. package/dist/events/before-reconnect.js +0 -11
  91. package/dist/events/before-relabel.d.ts +0 -15
  92. package/dist/events/before-relabel.js +0 -11
  93. package/dist/events/before-split.d.ts +0 -12
  94. package/dist/events/before-split.js +0 -11
  95. package/dist/events/before-toggle.d.ts +0 -23
  96. package/dist/events/before-toggle.js +0 -11
  97. package/dist/events/canvas-edit.d.ts +0 -16
  98. package/dist/events/canvas-edit.js +0 -11
  99. package/dist/events/canvas-pan.d.ts +0 -13
  100. package/dist/events/canvas-pan.js +0 -11
  101. package/dist/events/canvas-view.d.ts +0 -14
  102. package/dist/events/canvas-view.js +0 -11
  103. package/dist/events/canvas-zoom.d.ts +0 -6
  104. package/dist/events/canvas-zoom.js +0 -11
  105. package/dist/events/caret.d.ts +0 -17
  106. package/dist/events/collapse.d.ts +0 -12
  107. package/dist/events/collapse.js +0 -11
  108. package/dist/events/connect.d.ts +0 -14
  109. package/dist/events/connect.js +0 -11
  110. package/dist/events/console.d.ts +0 -13
  111. package/dist/events/console.js +0 -11
  112. package/dist/events/create.d.ts +0 -18
  113. package/dist/events/create.js +0 -11
  114. package/dist/events/device-button.d.ts +0 -14
  115. package/dist/events/device-button.js +0 -11
  116. package/dist/events/device-key.d.ts +0 -16
  117. package/dist/events/device-key.js +0 -11
  118. package/dist/events/device-screenshot.d.ts +0 -13
  119. package/dist/events/device-screenshot.js +0 -10
  120. package/dist/events/device-scroll.d.ts +0 -14
  121. package/dist/events/device-scroll.js +0 -11
  122. package/dist/events/device-swipe.d.ts +0 -15
  123. package/dist/events/device-swipe.js +0 -11
  124. package/dist/events/device-tap.d.ts +0 -13
  125. package/dist/events/device-tap.js +0 -11
  126. package/dist/events/device-text.d.ts +0 -13
  127. package/dist/events/device-text.js +0 -11
  128. package/dist/events/device-touch.d.ts +0 -15
  129. package/dist/events/device-touch.js +0 -11
  130. package/dist/events/edit.d.ts +0 -12
  131. package/dist/events/edit.js +0 -11
  132. package/dist/events/end.d.ts +0 -9
  133. package/dist/events/end.js +0 -6
  134. package/dist/events/facet.d.ts +0 -17
  135. package/dist/events/facet.js +0 -11
  136. package/dist/events/filtered.d.ts +0 -12
  137. package/dist/events/filtered.js +0 -11
  138. package/dist/events/graph-filter.d.ts +0 -10
  139. package/dist/events/graph-filter.js +0 -11
  140. package/dist/events/graph-layout.d.ts +0 -10
  141. package/dist/events/graph-layout.js +0 -11
  142. package/dist/events/graph-pan.d.ts +0 -9
  143. package/dist/events/graph-pan.js +0 -11
  144. package/dist/events/graph-part-change.d.ts +0 -10
  145. package/dist/events/graph-part-change.js +0 -11
  146. package/dist/events/graph-ready.d.ts +0 -8
  147. package/dist/events/graph-ready.js +0 -6
  148. package/dist/events/graph-signal.d.ts +0 -11
  149. package/dist/events/graph-signal.js +0 -11
  150. package/dist/events/graph-zoom.d.ts +0 -6
  151. package/dist/events/graph-zoom.js +0 -11
  152. package/dist/events/history.d.ts +0 -16
  153. package/dist/events/history.js +0 -11
  154. package/dist/events/map-cluster.d.ts +0 -15
  155. package/dist/events/map-cluster.js +0 -11
  156. package/dist/events/map-pan.d.ts +0 -18
  157. package/dist/events/map-pan.js +0 -11
  158. package/dist/events/map-part-change.d.ts +0 -16
  159. package/dist/events/map-part-change.js +0 -11
  160. package/dist/events/map-ready.d.ts +0 -15
  161. package/dist/events/map-ready.js +0 -6
  162. package/dist/events/map-rotate.d.ts +0 -9
  163. package/dist/events/map-rotate.js +0 -11
  164. package/dist/events/map-tilt.d.ts +0 -9
  165. package/dist/events/map-tilt.js +0 -11
  166. package/dist/events/map-zoom.d.ts +0 -13
  167. package/dist/events/map-zoom.js +0 -11
  168. package/dist/events/move.d.ts +0 -11
  169. package/dist/events/move.js +0 -11
  170. package/dist/events/next.d.ts +0 -23
  171. package/dist/events/next.js +0 -11
  172. package/dist/events/panel-resize.d.ts +0 -12
  173. package/dist/events/panel-resize.js +0 -11
  174. package/dist/events/pasted.d.ts +0 -6
  175. package/dist/events/pasted.js +0 -11
  176. package/dist/events/press.d.ts +0 -19
  177. package/dist/events/press.js +0 -11
  178. package/dist/events/preview.d.ts +0 -14
  179. package/dist/events/preview.js +0 -11
  180. package/dist/events/previous.d.ts +0 -6
  181. package/dist/events/previous.js +0 -11
  182. package/dist/events/range-change.d.ts +0 -10
  183. package/dist/events/range-change.js +0 -11
  184. package/dist/events/read.d.ts +0 -19
  185. package/dist/events/read.js +0 -11
  186. package/dist/events/reconnect.d.ts +0 -6
  187. package/dist/events/reconnect.js +0 -11
  188. package/dist/events/reject.d.ts +0 -13
  189. package/dist/events/reject.js +0 -11
  190. package/dist/events/relabel.d.ts +0 -6
  191. package/dist/events/relabel.js +0 -11
  192. package/dist/events/remove.d.ts +0 -12
  193. package/dist/events/remove.js +0 -11
  194. package/dist/events/reordered.d.ts +0 -12
  195. package/dist/events/reordered.js +0 -11
  196. package/dist/events/sample-end.d.ts +0 -5
  197. package/dist/events/sample-end.js +0 -6
  198. package/dist/events/sample-start.d.ts +0 -18
  199. package/dist/events/sample-start.js +0 -6
  200. package/dist/events/scrolled.d.ts +0 -32
  201. package/dist/events/scrolled.js +0 -11
  202. package/dist/events/selected.d.ts +0 -12
  203. package/dist/events/selected.js +0 -11
  204. package/dist/events/send.d.ts +0 -18
  205. package/dist/events/send.js +0 -11
  206. package/dist/events/shortcut.d.ts +0 -13
  207. package/dist/events/shortcut.js +0 -11
  208. package/dist/events/sorted.d.ts +0 -15
  209. package/dist/events/sorted.js +0 -11
  210. package/dist/events/split.d.ts +0 -12
  211. package/dist/events/split.js +0 -11
  212. package/dist/events/stop.d.ts +0 -12
  213. package/dist/events/stop.js +0 -6
  214. package/dist/events/strands-fallback.d.ts +0 -13
  215. package/dist/events/strands-fallback.js +0 -11
  216. package/dist/events/terminal-bell.d.ts +0 -13
  217. package/dist/events/terminal-bell.js +0 -6
  218. package/dist/events/terminal-input.d.ts +0 -14
  219. package/dist/events/terminal-input.js +0 -11
  220. package/dist/events/terminal-link.d.ts +0 -15
  221. package/dist/events/terminal-link.js +0 -11
  222. package/dist/events/terminal-resize.d.ts +0 -13
  223. package/dist/events/terminal-resize.js +0 -11
  224. package/dist/events/terminal-restart.d.ts +0 -11
  225. package/dist/events/terminal-restart.js +0 -10
  226. package/dist/events/terminal-title.d.ts +0 -12
  227. package/dist/events/terminal-title.js +0 -11
  228. package/dist/events/toggle.d.ts +0 -15
  229. package/dist/events/toggle.js +0 -11
  230. package/dist/events/tour-ask.d.ts +0 -16
  231. package/dist/events/tour-ask.js +0 -11
  232. package/dist/events/tour-status.d.ts +0 -14
  233. package/dist/events/tour-status.js +0 -11
  234. package/dist/events/typing.d.ts +0 -10
  235. package/dist/events/typing.js +0 -11
@@ -1,14 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,23 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,16 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,13 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,14 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,6 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,17 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,14 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,13 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,18 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
1
- export class HelixCreateEvent extends CustomEvent {
2
- static { this.eventName = 'helix-create'; }
3
- constructor(detail) {
4
- super(HelixCreateEvent.eventName, {
5
- bubbles: true,
6
- cancelable: true,
7
- composed: true,
8
- detail,
9
- });
10
- }
11
- }
@@ -1,14 +0,0 @@
1
- import type { DeviceButtonDetail } from './details.js';
2
- /**
3
- * A hardware button on the device was pressed, from Device Screen's controls
4
- * or from `press()`. Press it on the device in response.
5
- *
6
- * **Sent once, as the button comes back up, with how long it was held.** A
7
- * source that presses a button for a length of time, such as holding the side
8
- * button for Siri, reads `duration`, and one that only presses reads nothing
9
- * else. Not cancelable: nothing in Helix acts on the press.
10
- */
11
- export declare class HelixDeviceButtonEvent extends CustomEvent<DeviceButtonDetail> {
12
- static readonly eventName = "helix-device-button";
13
- constructor(detail: DeviceButtonDetail);
14
- }
@@ -1,11 +0,0 @@
1
- export class HelixDeviceButtonEvent extends CustomEvent {
2
- static { this.eventName = 'helix-device-button'; }
3
- constructor(detail) {
4
- super(HelixDeviceButtonEvent.eventName, {
5
- bubbles: true,
6
- cancelable: false,
7
- composed: true,
8
- detail,
9
- });
10
- }
11
- }
@@ -1,16 +0,0 @@
1
- import type { DeviceKeyDetail } from './details.js';
2
- /**
3
- * A key went down or came up while Device Screen had focus. Press or release
4
- * it on the device in response.
5
- *
6
- * **Every key is sent twice, down and up, as a hardware keyboard sends it.**
7
- * The device's own input method turns the presses into text, so a language
8
- * that composes characters composes them on the device. `code` names the
9
- * physical key, for a source that injects key codes, and `key` names what the
10
- * press produced, for a source that types text. Not cancelable: the frame has
11
- * already kept the press from the page.
12
- */
13
- export declare class HelixDeviceKeyEvent extends CustomEvent<DeviceKeyDetail> {
14
- static readonly eventName = "helix-device-key";
15
- constructor(detail: DeviceKeyDetail);
16
- }
@@ -1,11 +0,0 @@
1
- export class HelixDeviceKeyEvent extends CustomEvent {
2
- static { this.eventName = 'helix-device-key'; }
3
- constructor(detail) {
4
- super(HelixDeviceKeyEvent.eventName, {
5
- bubbles: true,
6
- cancelable: false,
7
- composed: true,
8
- detail,
9
- });
10
- }
11
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * A screenshot of the device was asked for, from Device Screen's screenshot
3
- * button or from `screenshot()`. Take one in response.
4
- *
5
- * **A request with nothing attached.** The device's own screenshot is sharper
6
- * than any frame of a stream, so the page takes it the way its source allows.
7
- * `capture()` on the frame returns the picture on screen, for a page with no
8
- * better way. Not cancelable: nothing in Helix takes the screenshot.
9
- */
10
- export declare class HelixDeviceScreenshotEvent extends Event {
11
- static readonly eventName = "helix-device-screenshot";
12
- constructor();
13
- }
@@ -1,10 +0,0 @@
1
- export class HelixDeviceScreenshotEvent extends Event {
2
- static { this.eventName = 'helix-device-screenshot'; }
3
- constructor() {
4
- super(HelixDeviceScreenshotEvent.eventName, {
5
- bubbles: true,
6
- cancelable: false,
7
- composed: true,
8
- });
9
- }
10
- }
@@ -1,14 +0,0 @@
1
- import type { DeviceScrollDetail } from './details.js';
2
- /**
3
- * A wheel or a trackpad scrolled over Device Screen. Scroll the device in
4
- * response.
5
- *
6
- * The distance is in device units and keeps the wheel's sense, so a positive
7
- * `deltaY` asks for what is further down. A source that scrolls by swiping
8
- * moves a finger the other way. Not cancelable: the frame has already kept the
9
- * scroll from the page.
10
- */
11
- export declare class HelixDeviceScrollEvent extends CustomEvent<DeviceScrollDetail> {
12
- static readonly eventName = "helix-device-scroll";
13
- constructor(detail: DeviceScrollDetail);
14
- }
@@ -1,11 +0,0 @@
1
- export class HelixDeviceScrollEvent extends CustomEvent {
2
- static { this.eventName = 'helix-device-scroll'; }
3
- constructor(detail) {
4
- super(HelixDeviceScrollEvent.eventName, {
5
- bubbles: true,
6
- cancelable: false,
7
- composed: true,
8
- detail,
9
- });
10
- }
11
- }
@@ -1,15 +0,0 @@
1
- import type { DeviceSwipeDetail } from './details.js';
2
- /**
3
- * One finger moved across Device Screen and lifted. Swipe the device in
4
- * response.
5
- *
6
- * **For a source that takes whole gestures**, such as a command that swipes
7
- * from one point to another over a length of time. A source that takes each
8
- * touch as it happens listens for `helix-device-touch` instead, and a page
9
- * that listened for both would move the device twice. A touch with more than
10
- * one finger sends no swipe. Not cancelable: nothing in Helix acts on it.
11
- */
12
- export declare class HelixDeviceSwipeEvent extends CustomEvent<DeviceSwipeDetail> {
13
- static readonly eventName = "helix-device-swipe";
14
- constructor(detail: DeviceSwipeDetail);
15
- }
@@ -1,11 +0,0 @@
1
- export class HelixDeviceSwipeEvent extends CustomEvent {
2
- static { this.eventName = 'helix-device-swipe'; }
3
- constructor(detail) {
4
- super(HelixDeviceSwipeEvent.eventName, {
5
- bubbles: true,
6
- cancelable: false,
7
- composed: true,
8
- detail,
9
- });
10
- }
11
- }
@@ -1,13 +0,0 @@
1
- import type { DeviceTapDetail } from './details.js';
2
- /**
3
- * One finger touched Device Screen and lifted near where it landed. Tap the
4
- * device in response.
5
- *
6
- * **For a source that takes whole gestures**, as `helix-device-swipe` is. A
7
- * long press is a tap with a long `duration`, which a source holds for that
8
- * long. Not cancelable: nothing in Helix acts on it.
9
- */
10
- export declare class HelixDeviceTapEvent extends CustomEvent<DeviceTapDetail> {
11
- static readonly eventName = "helix-device-tap";
12
- constructor(detail: DeviceTapDetail);
13
- }
@@ -1,11 +0,0 @@
1
- export class HelixDeviceTapEvent extends CustomEvent {
2
- static { this.eventName = 'helix-device-tap'; }
3
- constructor(detail) {
4
- super(HelixDeviceTapEvent.eventName, {
5
- bubbles: true,
6
- cancelable: false,
7
- composed: true,
8
- detail,
9
- });
10
- }
11
- }
@@ -1,13 +0,0 @@
1
- import type { DeviceTextDetail } from './details.js';
2
- /**
3
- * Text was pasted into Device Screen. Type it on the device in response.
4
- *
5
- * **Pasted text has no key presses of its own**, so it arrives whole, in one
6
- * event. Command or Control with V pastes in every mode, `forward-shortcuts`
7
- * included. Not cancelable: the frame has
8
- * already kept the paste from the page.
9
- */
10
- export declare class HelixDeviceTextEvent extends CustomEvent<DeviceTextDetail> {
11
- static readonly eventName = "helix-device-text";
12
- constructor(detail: DeviceTextDetail);
13
- }
@@ -1,11 +0,0 @@
1
- export class HelixDeviceTextEvent extends CustomEvent {
2
- static { this.eventName = 'helix-device-text'; }
3
- constructor(detail) {
4
- super(HelixDeviceTextEvent.eventName, {
5
- bubbles: true,
6
- cancelable: false,
7
- composed: true,
8
- detail,
9
- });
10
- }
11
- }
@@ -1,15 +0,0 @@
1
- import type { DeviceTouchDetail } from './details.js';
2
- /**
3
- * A finger landed on Device Screen, moved, lifted, or was taken away. Touch
4
- * the device in response.
5
- *
6
- * **For a source that takes each touch as it happens**, which is what a drag,
7
- * a long press that turns into a drag, and a pinch need. One event per finger
8
- * per step, so a pinch sends two at a time with different `id`s. A source that
9
- * only taps and swipes listens for `helix-device-tap` and `helix-device-swipe`
10
- * instead. Not cancelable: nothing in Helix acts on it.
11
- */
12
- export declare class HelixDeviceTouchEvent extends CustomEvent<DeviceTouchDetail> {
13
- static readonly eventName = "helix-device-touch";
14
- constructor(detail: DeviceTouchDetail);
15
- }
@@ -1,11 +0,0 @@
1
- export class HelixDeviceTouchEvent extends CustomEvent {
2
- static { this.eventName = 'helix-device-touch'; }
3
- constructor(detail) {
4
- super(HelixDeviceTouchEvent.eventName, {
5
- bubbles: true,
6
- cancelable: false,
7
- composed: true,
8
- detail,
9
- });
10
- }
11
- }
@@ -1,12 +0,0 @@
1
- import type { ChangeDetail } from './details.js';
2
- /**
3
- * Source was edited.
4
- *
5
- * The notification half of `helix-before-edit`, sent once the pane holds the
6
- * new source, with that source. Not cancelable: the decision was the
7
- * request's.
8
- */
9
- export declare class HelixEditEvent extends CustomEvent<ChangeDetail> {
10
- static readonly eventName = "helix-edit";
11
- constructor(detail: ChangeDetail);
12
- }
@@ -1,11 +0,0 @@
1
- export class HelixEditEvent extends CustomEvent {
2
- static { this.eventName = 'helix-edit'; }
3
- constructor(detail) {
4
- super(HelixEditEvent.eventName, {
5
- bubbles: true,
6
- cancelable: false,
7
- composed: true,
8
- detail,
9
- });
10
- }
11
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * A sequence played to its last entry and stopped there: a video playlist
3
- * with no `repeat`. Carries nothing, because the playlist still holds the last
4
- * entry. Not cancelable: playback has already ended.
5
- */
6
- export declare class HelixEndEvent extends Event {
7
- static readonly eventName = "helix-end";
8
- constructor();
9
- }
@@ -1,6 +0,0 @@
1
- export class HelixEndEvent extends Event {
2
- static { this.eventName = 'helix-end'; }
3
- constructor() {
4
- super(HelixEndEvent.eventName, { bubbles: true, cancelable: false, composed: true });
5
- }
6
- }