@fusion.dev/helix-core 0.145.0 → 0.147.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.
- package/custom-elements.json +6585 -1920
- package/dist/controllers/aria-forward-controller/aria-forward-controller.d.ts +3 -2
- package/dist/controllers/aria-forward-controller/aria-forward-controller.js +8 -17
- package/dist/controllers/chart-pointer-controller/chart-pointer-controller.d.ts +71 -3
- package/dist/controllers/chart-pointer-controller/chart-pointer-controller.js +50 -9
- package/dist/controllers/chart-pointer-controller/reading-step.d.ts +7 -1
- package/dist/controllers/chart-pointer-controller/reading-step.js +5 -0
- package/dist/controllers/copy-controller/copy-controller.d.ts +4 -1
- package/dist/controllers/copy-controller/copy-controller.js +2 -1
- package/dist/controllers/countdown-controller/countdown-controller.d.ts +4 -1
- package/dist/controllers/countdown-controller/countdown-controller.js +3 -1
- package/dist/controllers/keyboard-navigation-controller/keyboard-navigation-controller.d.ts +14 -55
- package/dist/controllers/keyboard-navigation-controller/keyboard-navigation-controller.js +7 -39
- package/dist/controllers/relative-clock-controller/relative-clock-controller.d.ts +44 -0
- package/dist/controllers/relative-clock-controller/relative-clock-controller.js +31 -0
- package/dist/controllers/source-controller/source-controller.d.ts +10 -3
- package/dist/controllers/source-controller/source-controller.js +9 -4
- package/dist/controllers/swipe-controller/swipe-controller.d.ts +10 -1
- package/dist/controllers/swipe-controller/swipe-controller.js +1 -1
- package/dist/controllers/virtualize-controller/virtualize-controller.d.ts +48 -1
- package/dist/controllers/virtualize-controller/virtualize-controller.js +52 -7
- package/dist/events/action.d.ts +12 -0
- package/dist/events/action.js +6 -0
- package/dist/events/activate.d.ts +22 -0
- package/dist/events/activate.js +11 -0
- package/dist/events/aura-fallback.d.ts +12 -0
- package/dist/events/aura-fallback.js +11 -0
- package/dist/events/band.d.ts +13 -0
- package/dist/events/band.js +11 -0
- package/dist/events/before-activate.d.ts +24 -0
- package/dist/events/before-activate.js +11 -0
- package/dist/events/before-change.d.ts +26 -0
- package/dist/events/before-change.js +11 -0
- package/dist/events/before-close.d.ts +6 -0
- package/dist/events/before-close.js +11 -0
- package/dist/events/before-collapse.d.ts +6 -0
- package/dist/events/before-collapse.js +11 -0
- package/dist/events/before-edit.d.ts +6 -0
- package/dist/events/before-edit.js +11 -0
- package/dist/events/before-move.d.ts +17 -0
- package/dist/events/before-move.js +11 -0
- package/dist/events/before-open.d.ts +17 -0
- package/dist/events/before-open.js +11 -0
- package/dist/events/before-panel-resize.d.ts +13 -0
- package/dist/events/before-panel-resize.js +11 -0
- package/dist/events/before-pin.d.ts +6 -0
- package/dist/events/before-pin.js +11 -0
- package/dist/events/before-reconnect.d.ts +14 -0
- package/dist/events/before-reconnect.js +11 -0
- package/dist/events/before-relabel.d.ts +15 -0
- package/dist/events/before-relabel.js +11 -0
- package/dist/events/before-resize.d.ts +6 -0
- package/dist/events/before-resize.js +11 -0
- package/dist/events/before-split.d.ts +12 -0
- package/dist/events/before-split.js +11 -0
- package/dist/events/before-toggle.d.ts +23 -0
- package/dist/events/before-toggle.js +11 -0
- package/dist/events/canvas-edit.d.ts +16 -0
- package/dist/events/canvas-edit.js +11 -0
- package/dist/events/canvas-pan.d.ts +13 -0
- package/dist/events/canvas-pan.js +11 -0
- package/dist/events/canvas-view.d.ts +14 -0
- package/dist/events/canvas-view.js +11 -0
- package/dist/events/canvas-zoom.d.ts +6 -0
- package/dist/events/canvas-zoom.js +11 -0
- package/dist/events/caret.d.ts +17 -0
- package/dist/events/caret.js +11 -0
- package/dist/events/clear.d.ts +11 -0
- package/dist/events/clear.js +6 -0
- package/dist/events/collapse.d.ts +12 -0
- package/dist/events/collapse.js +11 -0
- package/dist/events/complete.d.ts +26 -0
- package/dist/events/complete.js +11 -0
- package/dist/events/connect.d.ts +14 -0
- package/dist/events/connect.js +11 -0
- package/dist/events/console.d.ts +13 -0
- package/dist/events/console.js +11 -0
- package/dist/events/copy-error.d.ts +9 -0
- package/dist/events/copy-error.js +6 -0
- package/dist/events/copy.d.ts +12 -0
- package/dist/events/copy.js +10 -0
- package/dist/events/create.d.ts +18 -0
- package/dist/events/create.js +11 -0
- package/dist/events/details.d.ts +459 -0
- package/dist/events/details.js +1 -0
- package/dist/events/dismiss.d.ts +16 -0
- package/dist/events/dismiss.js +11 -0
- package/dist/events/edit.d.ts +12 -0
- package/dist/events/edit.js +11 -0
- package/dist/events/end.d.ts +9 -0
- package/dist/events/end.js +6 -0
- package/dist/events/events.d.ts +113 -1478
- package/dist/events/events.js +93 -863
- package/dist/events/expand.d.ts +10 -0
- package/dist/events/expand.js +11 -0
- package/dist/events/facet.d.ts +17 -0
- package/dist/events/facet.js +11 -0
- package/dist/events/filter.d.ts +12 -0
- package/dist/events/filter.js +11 -0
- package/dist/events/filtered.d.ts +12 -0
- package/dist/events/filtered.js +11 -0
- package/dist/events/graph-filter.d.ts +10 -0
- package/dist/events/graph-filter.js +11 -0
- package/dist/events/graph-layout.d.ts +10 -0
- package/dist/events/graph-layout.js +11 -0
- package/dist/events/graph-pan.d.ts +9 -0
- package/dist/events/graph-pan.js +11 -0
- package/dist/events/graph-part-change.d.ts +10 -0
- package/dist/events/graph-part-change.js +11 -0
- package/dist/events/graph-ready.d.ts +8 -0
- package/dist/events/graph-ready.js +6 -0
- package/dist/events/graph-signal.d.ts +11 -0
- package/dist/events/graph-signal.js +11 -0
- package/dist/events/graph-zoom.d.ts +6 -0
- package/dist/events/graph-zoom.js +11 -0
- package/dist/events/history.d.ts +16 -0
- package/dist/events/history.js +11 -0
- package/dist/events/load-more.d.ts +12 -0
- package/dist/events/load-more.js +6 -0
- package/dist/events/load.d.ts +12 -0
- package/dist/events/load.js +6 -0
- package/dist/events/map-cluster.d.ts +15 -0
- package/dist/events/map-cluster.js +11 -0
- package/dist/events/map-pan.d.ts +18 -0
- package/dist/events/map-pan.js +11 -0
- package/dist/events/map-part-change.d.ts +16 -0
- package/dist/events/map-part-change.js +11 -0
- package/dist/events/map-ready.d.ts +15 -0
- package/dist/events/map-ready.js +6 -0
- package/dist/events/map-rotate.d.ts +9 -0
- package/dist/events/map-rotate.js +11 -0
- package/dist/events/map-tilt.d.ts +9 -0
- package/dist/events/map-tilt.js +11 -0
- package/dist/events/map-zoom.d.ts +13 -0
- package/dist/events/map-zoom.js +11 -0
- package/dist/events/move.d.ts +11 -0
- package/dist/events/move.js +11 -0
- package/dist/events/names.d.ts +18 -0
- package/dist/events/names.js +13 -0
- package/dist/events/navigate.d.ts +13 -0
- package/dist/events/navigate.js +11 -0
- package/dist/events/next.d.ts +23 -0
- package/dist/events/next.js +11 -0
- package/dist/events/panel-resize.d.ts +12 -0
- package/dist/events/panel-resize.js +11 -0
- package/dist/events/pin.d.ts +12 -0
- package/dist/events/pin.js +11 -0
- package/dist/events/press.d.ts +19 -0
- package/dist/events/press.js +11 -0
- package/dist/events/preview.d.ts +14 -0
- package/dist/events/preview.js +11 -0
- package/dist/events/previous.d.ts +6 -0
- package/dist/events/previous.js +11 -0
- package/dist/events/range-change.d.ts +10 -0
- package/dist/events/range-change.js +11 -0
- package/dist/events/read.d.ts +19 -0
- package/dist/events/read.js +11 -0
- package/dist/events/reconnect.d.ts +6 -0
- package/dist/events/reconnect.js +11 -0
- package/dist/events/reject.d.ts +13 -0
- package/dist/events/reject.js +11 -0
- package/dist/events/relabel.d.ts +6 -0
- package/dist/events/relabel.js +11 -0
- package/dist/events/remove.d.ts +12 -0
- package/dist/events/remove.js +11 -0
- package/dist/events/reorder.d.ts +18 -0
- package/dist/events/reorder.js +11 -0
- package/dist/events/reordered.d.ts +12 -0
- package/dist/events/reordered.js +11 -0
- package/dist/events/resize.d.ts +19 -0
- package/dist/events/resize.js +11 -0
- package/dist/events/resized.d.ts +16 -0
- package/dist/events/resized.js +11 -0
- package/dist/events/sample-end.d.ts +5 -0
- package/dist/events/sample-end.js +6 -0
- package/dist/events/sample-start.d.ts +18 -0
- package/dist/events/sample-start.js +6 -0
- package/dist/events/scrolled.d.ts +32 -0
- package/dist/events/scrolled.js +11 -0
- package/dist/events/select.d.ts +12 -0
- package/dist/events/select.js +11 -0
- package/dist/events/selected.d.ts +12 -0
- package/dist/events/selected.js +11 -0
- package/dist/events/send.d.ts +18 -0
- package/dist/events/send.js +11 -0
- package/dist/events/shortcut.d.ts +13 -0
- package/dist/events/shortcut.js +11 -0
- package/dist/events/sort.d.ts +17 -0
- package/dist/events/sort.js +11 -0
- package/dist/events/sorted.d.ts +15 -0
- package/dist/events/sorted.js +11 -0
- package/dist/events/split.d.ts +12 -0
- package/dist/events/split.js +11 -0
- package/dist/events/toggle.d.ts +15 -0
- package/dist/events/toggle.js +11 -0
- package/dist/events/tour-ask.d.ts +16 -0
- package/dist/events/tour-ask.js +11 -0
- package/dist/events/tour-status.d.ts +14 -0
- package/dist/events/tour-status.js +11 -0
- package/dist/events/typing.d.ts +10 -0
- package/dist/events/typing.js +11 -0
- package/dist/helix-element/helix-element.js +9 -43
- package/dist/helix-element/react-bridge.d.ts +23 -0
- package/dist/helix-element/react-bridge.js +2 -2
- package/dist/helix-form-element/helix-form-element.d.ts +5 -20
- package/dist/helix-form-element/helix-form-element.js +4 -56
- package/dist/index.d.ts +30 -9
- package/dist/index.js +30 -9
- package/dist/mixins/mixin-chart-source/mixin-chart-source.d.ts +24 -2
- package/dist/mixins/mixin-chart-source/mixin-chart-source.js +23 -1
- package/dist/mixins/mixin-controller-active/mixin-controller-active.js +4 -3
- package/dist/mixins/mixin-controller-checked/mixin-controller-checked.d.ts +5 -2
- package/dist/mixins/mixin-controller-checked/mixin-controller-checked.js +2 -1
- package/dist/mixins/mixin-controller-value/mixin-controller-value.d.ts +4 -2
- package/dist/mixins/mixin-controller-value/mixin-controller-value.js +7 -2
- package/dist/mixins/mixin-dismissible/mixin-dismissible.js +44 -7
- package/dist/mixins/mixin-field/mixin-field.js +2 -2
- package/dist/mixins/mixin-picker-feedback/mixin-picker-feedback.d.ts +42 -0
- package/dist/mixins/mixin-picker-feedback/mixin-picker-feedback.js +46 -0
- package/dist/mixins/mixin-picker-field/mixin-picker-field.d.ts +7 -4
- package/dist/mixins/mixin-picker-field/mixin-picker-field.js +6 -4
- package/dist/mixins/mixin-segmented-field/mixin-segmented-field.js +19 -9
- package/dist/utils/audit-name/audit-name-off.d.ts +10 -0
- package/dist/utils/audit-name/audit-name-off.js +1 -0
- package/dist/utils/audit-name/audit-name.d.ts +26 -8
- package/dist/utils/audit-name/audit-name.js +22 -30
- package/dist/utils/audit-source/audit-source-off.d.ts +10 -0
- package/dist/utils/audit-source/audit-source-off.js +1 -0
- package/dist/utils/audit-source/audit-source.d.ts +19 -0
- package/dist/utils/audit-source/audit-source.js +27 -0
- package/dist/utils/calendar/calendar.js +7 -7
- package/dist/utils/call-listener/call-listener.d.ts +16 -0
- package/dist/utils/call-listener/call-listener.js +17 -0
- package/dist/utils/chord/chord.d.ts +14 -0
- package/dist/utils/chord/chord.js +1 -0
- package/dist/utils/clamp/clamp.d.ts +7 -0
- package/dist/utils/clamp/clamp.js +1 -0
- package/dist/utils/css-color/css-color.js +1 -1
- package/dist/utils/draw-tooltip/draw-tooltip.d.ts +1 -1
- package/dist/utils/draw-tooltip/draw-tooltip.js +3 -1
- package/dist/utils/draw-tooltip/spoken-reading.d.ts +6 -2
- package/dist/utils/draw-tooltip/spoken-reading.js +5 -4
- package/dist/utils/elapsed-time/elapsed-time.d.ts +1 -1
- package/dist/utils/elapsed-time/elapsed-time.js +2 -5
- package/dist/utils/heading-level/heading-level.d.ts +8 -0
- package/dist/utils/heading-level/heading-level.js +4 -0
- package/dist/utils/host-words/host-words.d.ts +16 -0
- package/dist/utils/host-words/host-words.js +13 -0
- package/dist/utils/implicit-submit/implicit-submit.d.ts +25 -0
- package/dist/utils/implicit-submit/implicit-submit.js +52 -0
- package/dist/utils/load-more/load-more.d.ts +25 -0
- package/dist/utils/load-more/load-more.js +1 -0
- package/dist/utils/locale-of/locale-of.d.ts +18 -0
- package/dist/utils/locale-of/locale-of.js +26 -0
- package/dist/utils/name-text/name-text.d.ts +12 -0
- package/dist/utils/name-text/name-text.js +25 -0
- package/dist/utils/nearest/nearest.d.ts +9 -0
- package/dist/utils/nearest/nearest.js +9 -0
- package/dist/utils/number-format/number-format.d.ts +11 -1
- package/dist/utils/number-format/number-format.js +17 -5
- package/dist/utils/own-rule/own-rule.d.ts +16 -0
- package/dist/utils/own-rule/own-rule.js +7 -0
- package/dist/utils/plain-click/plain-click.d.ts +10 -0
- package/dist/utils/plain-click/plain-click.js +1 -0
- package/dist/utils/platform/platform.d.ts +8 -0
- package/dist/utils/platform/platform.js +1 -0
- package/dist/utils/press-type/press-type.d.ts +20 -0
- package/dist/utils/press-type/press-type.js +15 -0
- package/dist/utils/read-series/read-series.d.ts +14 -0
- package/dist/utils/read-series/read-series.js +15 -0
- package/dist/utils/relative-time/relative-time.d.ts +8 -0
- package/dist/utils/relative-time/relative-time.js +5 -2
- package/dist/utils/report-render/report-render.js +2 -14
- package/dist/utils/report-runtime/report-runtime.d.ts +11 -4
- package/dist/utils/report-runtime/report-runtime.js +2 -14
- package/dist/utils/report-usage/report-usage.js +2 -14
- package/dist/utils/row-data/row-data.d.ts +15 -0
- package/dist/utils/row-data/row-data.js +17 -0
- package/dist/utils/row-order/row-order.d.ts +141 -0
- package/dist/utils/row-order/row-order.js +76 -0
- package/dist/utils/scroll-item-into-view/scroll-item-into-view.d.ts +33 -0
- package/dist/utils/scroll-item-into-view/scroll-item-into-view.js +13 -3
- package/dist/utils/slotted-glyph/slotted-glyph.d.ts +33 -0
- package/dist/utils/slotted-glyph/slotted-glyph.js +27 -0
- package/dist/utils/tell-disclosure/tell-disclosure.d.ts +4 -0
- package/dist/utils/tree-arrow/tree-arrow.d.ts +23 -0
- package/dist/utils/tree-arrow/tree-arrow.js +9 -0
- package/dist/utils/typeahead/typeahead.d.ts +75 -0
- package/dist/utils/typeahead/typeahead.js +37 -0
- package/dist/utils/value-as/value-as.d.ts +9 -0
- package/dist/utils/value-as/value-as.js +9 -1
- package/dist/utils/verdict-flags/verdict-flags.d.ts +13 -0
- package/dist/utils/verdict-flags/verdict-flags.js +6 -0
- package/dist/utils/watch-labels/watch-labels.d.ts +16 -0
- package/dist/utils/watch-labels/watch-labels.js +34 -0
- package/dist/utils/words-converter/words-converter.d.ts +14 -0
- package/dist/utils/words-converter/words-converter.js +15 -0
- package/dist/utils/written-list/written-list.d.ts +60 -0
- package/dist/utils/written-list/written-list.js +46 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +29 -5
|
@@ -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,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,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,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,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,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
|
+
/**
|
|
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,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,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,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,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,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,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,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
|
+
}
|