@elaraai/east-ui 1.0.83 → 1.0.85
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/dist/src/charts/chart/index.d.ts +7 -4
- package/dist/src/charts/chart/index.d.ts.map +1 -1
- package/dist/src/charts/chart/index.js +3 -1
- package/dist/src/charts/chart/index.js.map +1 -1
- package/dist/src/collections/library/index.d.ts +1182 -37
- package/dist/src/collections/library/index.d.ts.map +1 -1
- package/dist/src/collections/library/index.js +191 -13
- package/dist/src/collections/library/index.js.map +1 -1
- package/dist/src/collections/library/types.d.ts +376 -180
- package/dist/src/collections/library/types.d.ts.map +1 -1
- package/dist/src/collections/library/types.js +188 -91
- package/dist/src/collections/library/types.js.map +1 -1
- package/dist/src/collections/plan/root.d.ts.map +1 -1
- package/dist/src/collections/plan/root.js +10 -37
- package/dist/src/collections/plan/root.js.map +1 -1
- package/dist/src/collections/plan/types.d.ts +1 -1
- package/dist/src/collections/plan/types.js +1 -1
- package/dist/src/collections/sheet/editing-bridge.js +1 -1
- package/dist/src/collections/sheet/editing-bridge.js.map +1 -1
- package/dist/src/collections/sheet/root.d.ts +1 -1
- package/dist/src/collections/sheet/root.js +1 -1
- package/dist/src/collections/sheet/root.js.map +1 -1
- package/dist/src/component.d.ts +490 -11
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +17 -3
- package/dist/src/component.js.map +1 -1
- package/dist/src/contracts/drag.d.ts.map +1 -1
- package/dist/src/contracts/drag.js +1 -0
- package/dist/src/contracts/drag.js.map +1 -1
- package/dist/src/contracts/editing.d.ts +19 -0
- package/dist/src/contracts/editing.d.ts.map +1 -1
- package/dist/src/contracts/editing.js +31 -1
- package/dist/src/contracts/editing.js.map +1 -1
- package/dist/src/contracts/index.d.ts +1 -1
- package/dist/src/contracts/index.d.ts.map +1 -1
- package/dist/src/contracts/pick.js +4 -4
- package/dist/src/contracts/pick.js.map +1 -1
- package/dist/src/contracts/source.d.ts +87 -131
- package/dist/src/contracts/source.d.ts.map +1 -1
- package/dist/src/contracts/source.js +153 -368
- package/dist/src/contracts/source.js.map +1 -1
- package/dist/src/display/bar-strip/index.d.ts +39 -6
- package/dist/src/display/bar-strip/index.d.ts.map +1 -1
- package/dist/src/display/bar-strip/index.js +16 -38
- package/dist/src/display/bar-strip/index.js.map +1 -1
- package/dist/src/display/bar-strip/types.d.ts +17 -1
- package/dist/src/display/bar-strip/types.d.ts.map +1 -1
- package/dist/src/display/bar-strip/types.js.map +1 -1
- package/dist/src/feedback/status/index.d.ts +10 -2
- package/dist/src/feedback/status/index.d.ts.map +1 -1
- package/dist/src/feedback/status/index.js +8 -3
- package/dist/src/feedback/status/index.js.map +1 -1
- package/dist/src/index.d.ts +3 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +2 -1
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +3 -2
- package/dist/src/internal.js.map +1 -1
- package/dist/src/layout/dock/index.d.ts +58 -16
- package/dist/src/layout/dock/index.d.ts.map +1 -1
- package/dist/src/layout/dock/index.js +48 -13
- package/dist/src/layout/dock/index.js.map +1 -1
- package/dist/src/layout/dock/types.d.ts +62 -10
- package/dist/src/layout/dock/types.d.ts.map +1 -1
- package/dist/src/layout/dock/types.js +21 -4
- package/dist/src/layout/dock/types.js.map +1 -1
- package/dist/src/layout/index.d.ts +1 -0
- package/dist/src/layout/index.d.ts.map +1 -1
- package/dist/src/layout/index.js +1 -0
- package/dist/src/layout/index.js.map +1 -1
- package/dist/src/layout/snap-grid/index.d.ts +1291 -0
- package/dist/src/layout/snap-grid/index.d.ts.map +1 -0
- package/dist/src/layout/snap-grid/index.js +510 -0
- package/dist/src/layout/snap-grid/index.js.map +1 -0
- package/dist/src/layout/snap-grid/types.d.ts +1046 -0
- package/dist/src/layout/snap-grid/types.d.ts.map +1 -0
- package/dist/src/layout/snap-grid/types.js +371 -0
- package/dist/src/layout/snap-grid/types.js.map +1 -0
- package/dist/src/navigation/app/index.d.ts +15 -0
- package/dist/src/navigation/app/index.d.ts.map +1 -1
- package/dist/src/navigation/app/index.js +2 -2
- package/dist/src/navigation/app/index.js.map +1 -1
- package/dist/src/navigation/nav-list/index.d.ts +5 -3
- package/dist/src/navigation/nav-list/index.d.ts.map +1 -1
- package/dist/src/navigation/nav-list/index.js +5 -3
- package/dist/src/navigation/nav-list/index.js.map +1 -1
- package/dist/src/overlays/action-bar/index.d.ts +9 -0
- package/dist/src/overlays/action-bar/index.d.ts.map +1 -1
- package/dist/src/overlays/action-bar/index.js +11 -1
- package/dist/src/overlays/action-bar/index.js.map +1 -1
- package/dist/src/overlays/action-bar/types.d.ts +11 -7
- package/dist/src/overlays/action-bar/types.d.ts.map +1 -1
- package/dist/src/overlays/action-bar/types.js +8 -1
- package/dist/src/overlays/action-bar/types.js.map +1 -1
- package/dist/src/overlays/dialog/index.d.ts +16 -0
- package/dist/src/overlays/dialog/index.d.ts.map +1 -1
- package/dist/src/overlays/dialog/index.js +18 -0
- package/dist/src/overlays/dialog/index.js.map +1 -1
- package/dist/src/overlays/dialog/types.d.ts +18 -11
- package/dist/src/overlays/dialog/types.d.ts.map +1 -1
- package/dist/src/overlays/dialog/types.js +12 -0
- package/dist/src/overlays/dialog/types.js.map +1 -1
- package/dist/src/overlays/drawer/index.d.ts +12 -0
- package/dist/src/overlays/drawer/index.d.ts.map +1 -1
- package/dist/src/overlays/drawer/index.js +14 -0
- package/dist/src/overlays/drawer/index.js.map +1 -1
- package/dist/src/overlays/drawer/types.d.ts +13 -1
- package/dist/src/overlays/drawer/types.d.ts.map +1 -1
- package/dist/src/overlays/drawer/types.js +12 -0
- package/dist/src/overlays/drawer/types.js.map +1 -1
- package/dist/src/overlays/hover-card/index.d.ts +9 -0
- package/dist/src/overlays/hover-card/index.d.ts.map +1 -1
- package/dist/src/overlays/hover-card/index.js +12 -1
- package/dist/src/overlays/hover-card/index.js.map +1 -1
- package/dist/src/overlays/hover-card/types.d.ts +9 -1
- package/dist/src/overlays/hover-card/types.d.ts.map +1 -1
- package/dist/src/overlays/hover-card/types.js +8 -0
- package/dist/src/overlays/hover-card/types.js.map +1 -1
- package/dist/src/overlays/popover/index.d.ts +15 -0
- package/dist/src/overlays/popover/index.d.ts.map +1 -1
- package/dist/src/overlays/popover/index.js +19 -1
- package/dist/src/overlays/popover/index.js.map +1 -1
- package/dist/src/overlays/popover/types.d.ts +19 -5
- package/dist/src/overlays/popover/types.d.ts.map +1 -1
- package/dist/src/overlays/popover/types.js +14 -0
- package/dist/src/overlays/popover/types.js.map +1 -1
- package/dist/src/overlays/toggle-tip/index.d.ts +9 -0
- package/dist/src/overlays/toggle-tip/index.d.ts.map +1 -1
- package/dist/src/overlays/toggle-tip/index.js +12 -1
- package/dist/src/overlays/toggle-tip/index.js.map +1 -1
- package/dist/src/overlays/toggle-tip/types.d.ts +9 -1
- package/dist/src/overlays/toggle-tip/types.d.ts.map +1 -1
- package/dist/src/overlays/toggle-tip/types.js +8 -0
- package/dist/src/overlays/toggle-tip/types.js.map +1 -1
- package/dist/src/runtime/collections/library.d.ts +10 -6
- package/dist/src/runtime/collections/library.d.ts.map +1 -1
- package/dist/src/runtime/collections/library.js +10 -6
- package/dist/src/runtime/collections/library.js.map +1 -1
- package/dist/src/runtime/display/bar-strip.d.ts +38 -10
- package/dist/src/runtime/display/bar-strip.d.ts.map +1 -1
- package/dist/src/runtime/display/bar-strip.js +12 -34
- package/dist/src/runtime/display/bar-strip.js.map +1 -1
- package/dist/src/runtime/feedback/status.d.ts +4 -2
- package/dist/src/runtime/feedback/status.d.ts.map +1 -1
- package/dist/src/runtime/feedback/status.js +4 -2
- package/dist/src/runtime/feedback/status.js.map +1 -1
- package/dist/src/runtime/layout/dock.d.ts +13 -8
- package/dist/src/runtime/layout/dock.d.ts.map +1 -1
- package/dist/src/runtime/layout/dock.js +13 -8
- package/dist/src/runtime/layout/dock.js.map +1 -1
- package/dist/src/runtime/layout/index.d.ts +1 -0
- package/dist/src/runtime/layout/index.d.ts.map +1 -1
- package/dist/src/runtime/layout/index.js +1 -0
- package/dist/src/runtime/layout/index.js.map +1 -1
- package/dist/src/runtime/layout/snap-grid.d.ts +68 -0
- package/dist/src/runtime/layout/snap-grid.d.ts.map +1 -0
- package/dist/src/runtime/layout/snap-grid.js +44 -0
- package/dist/src/runtime/layout/snap-grid.js.map +1 -0
- package/dist/src/runtime/navigation/app.d.ts +3 -1
- package/dist/src/runtime/navigation/app.d.ts.map +1 -1
- package/dist/src/runtime/navigation/app.js +3 -1
- package/dist/src/runtime/navigation/app.js.map +1 -1
- package/dist/src/style/typography.d.ts +18 -18
- package/dist/src/style/typography.js +18 -18
- package/dist/test/collections/index.d.ts +0 -1
- package/dist/test/collections/index.d.ts.map +1 -1
- package/dist/test/collections/index.js +0 -1
- package/dist/test/collections/index.js.map +1 -1
- package/dist/test/collections/library.examples.d.ts +28 -0
- package/dist/test/collections/library.examples.d.ts.map +1 -1
- package/dist/test/collections/library.examples.js +183 -3
- package/dist/test/collections/library.examples.js.map +1 -1
- package/dist/test/collections/sheet.examples.d.ts +0 -7
- package/dist/test/collections/sheet.examples.d.ts.map +1 -1
- package/dist/test/collections/sheet.examples.js +4 -31
- package/dist/test/collections/sheet.examples.js.map +1 -1
- package/dist/test/collections/table.examples.d.ts +0 -7
- package/dist/test/collections/table.examples.d.ts.map +1 -1
- package/dist/test/collections/table.examples.js +1 -22
- package/dist/test/collections/table.examples.js.map +1 -1
- package/dist/test/display/bar-strip.examples.d.ts +6 -0
- package/dist/test/display/bar-strip.examples.d.ts.map +1 -1
- package/dist/test/display/bar-strip.examples.js +24 -1
- package/dist/test/display/bar-strip.examples.js.map +1 -1
- package/dist/test/feedback/status.examples.d.ts +1 -0
- package/dist/test/feedback/status.examples.d.ts.map +1 -1
- package/dist/test/feedback/status.examples.js +8 -0
- package/dist/test/feedback/status.examples.js.map +1 -1
- package/dist/test/layout/dock.examples.d.ts +14 -0
- package/dist/test/layout/dock.examples.d.ts.map +1 -1
- package/dist/test/layout/dock.examples.js +35 -0
- package/dist/test/layout/dock.examples.js.map +1 -1
- package/dist/test/layout/snap-grid.examples.d.ts +4 -0
- package/dist/test/layout/snap-grid.examples.d.ts.map +1 -0
- package/dist/test/layout/snap-grid.examples.js +252 -0
- package/dist/test/layout/snap-grid.examples.js.map +1 -0
- package/dist/test/navigation/app.examples.d.ts +6 -0
- package/dist/test/navigation/app.examples.d.ts.map +1 -1
- package/dist/test/navigation/app.examples.js +37 -2
- package/dist/test/navigation/app.examples.js.map +1 -1
- package/dist/test/navigation/nav-list.examples.d.ts +1 -0
- package/dist/test/navigation/nav-list.examples.d.ts.map +1 -1
- package/dist/test/navigation/nav-list.examples.js +21 -1
- package/dist/test/navigation/nav-list.examples.js.map +1 -1
- package/dist/test/overlays/dialog.examples.d.ts +1 -0
- package/dist/test/overlays/dialog.examples.d.ts.map +1 -1
- package/dist/test/overlays/dialog.examples.js +11 -0
- package/dist/test/overlays/dialog.examples.js.map +1 -1
- package/dist/test/overlays/drawer.examples.d.ts +1 -0
- package/dist/test/overlays/drawer.examples.d.ts.map +1 -1
- package/dist/test/overlays/drawer.examples.js +12 -0
- package/dist/test/overlays/drawer.examples.js.map +1 -1
- package/dist/test/overlays/hover-card.examples.d.ts +1 -0
- package/dist/test/overlays/hover-card.examples.d.ts.map +1 -1
- package/dist/test/overlays/hover-card.examples.js +10 -0
- package/dist/test/overlays/hover-card.examples.js.map +1 -1
- package/dist/test/overlays/popover.examples.d.ts +1 -0
- package/dist/test/overlays/popover.examples.d.ts.map +1 -1
- package/dist/test/overlays/popover.examples.js +12 -2
- package/dist/test/overlays/popover.examples.js.map +1 -1
- package/dist/test/overlays/toggle-tip.examples.d.ts +1 -0
- package/dist/test/overlays/toggle-tip.examples.d.ts.map +1 -1
- package/dist/test/overlays/toggle-tip.examples.js +11 -1
- package/dist/test/overlays/toggle-tip.examples.js.map +1 -1
- package/package.json +5 -9
- package/dist/test/collections/paged-source.examples.d.ts +0 -14
- package/dist/test/collections/paged-source.examples.d.ts.map +0 -1
- package/dist/test/collections/paged-source.examples.js +0 -252
- package/dist/test/collections/paged-source.examples.js.map +0 -1
|
@@ -0,0 +1,1046 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* SnapGrid types — the 12-column snap grid of tiles (#989, #990), the editing
|
|
7
|
+
* canvas's chrome (#995), and the changes (#996) and the Apply (#998) a host
|
|
8
|
+
* asks of it.
|
|
9
|
+
*
|
|
10
|
+
* A cell carries its content — and the editing canvas its toolbar items and
|
|
11
|
+
* panes — and the inline `SnapGrid` arm of `UIComponentType` spells those with
|
|
12
|
+
* the recursion `node` while `SnapGrid.Types.Root` spells them
|
|
13
|
+
* `UIComponentType`. Both are built here, over the content's type
|
|
14
|
+
* ({@link SnapGridRootOf}), so the two are one East type by construction. This
|
|
15
|
+
* file imports no `UIComponentType`, so `component.ts` can import it.
|
|
16
|
+
*/
|
|
17
|
+
import { ArrayType, BlobType, BooleanType, FloatType, FunctionType, IntegerType, NullType, OptionType, StringType, StructType, VariantType } from "@elaraai/east";
|
|
18
|
+
/**
|
|
19
|
+
* Where a cell shorter than its row sits in it.
|
|
20
|
+
*
|
|
21
|
+
* @property top - At the row's top
|
|
22
|
+
* @property center - Centred in the row
|
|
23
|
+
* @property stretch - As tall as the row
|
|
24
|
+
*/
|
|
25
|
+
export declare const SnapGridAlignType: VariantType<{
|
|
26
|
+
readonly top: NullType;
|
|
27
|
+
readonly center: NullType;
|
|
28
|
+
readonly stretch: NullType;
|
|
29
|
+
}>;
|
|
30
|
+
/** Type representing a SnapGrid cell's alignment. */
|
|
31
|
+
export type SnapGridAlignType = typeof SnapGridAlignType;
|
|
32
|
+
/** Literal shorthand for {@link SnapGridAlignType}. */
|
|
33
|
+
export type SnapGridAlignLiteral = "top" | "center" | "stretch";
|
|
34
|
+
/**
|
|
35
|
+
* How a SnapGrid draws its cells.
|
|
36
|
+
*
|
|
37
|
+
* @property tiles - Each cell's content, in its tile
|
|
38
|
+
* @property wireframe - Each cell an outline at its tile's size, its content
|
|
39
|
+
* not drawn, and with no cells the blank page — the page library's
|
|
40
|
+
* thumbnails, framed by their host
|
|
41
|
+
*/
|
|
42
|
+
export declare const SnapGridVariantType: VariantType<{
|
|
43
|
+
readonly tiles: NullType;
|
|
44
|
+
readonly wireframe: NullType;
|
|
45
|
+
}>;
|
|
46
|
+
/** Type representing a SnapGrid's variant. */
|
|
47
|
+
export type SnapGridVariantType = typeof SnapGridVariantType;
|
|
48
|
+
/** Literal shorthand for {@link SnapGridVariantType}. */
|
|
49
|
+
export type SnapGridVariantLiteral = "tiles" | "wireframe";
|
|
50
|
+
/**
|
|
51
|
+
* A change a host asks the editing canvas to make to one tile (#996) — an
|
|
52
|
+
* inspector's edit. The canvas takes it as ONE gesture of its session, by the
|
|
53
|
+
* rules its own handles and drags keep, and writes the `ui` state's `request`
|
|
54
|
+
* back to `none`.
|
|
55
|
+
*
|
|
56
|
+
* @property key - The tile's key
|
|
57
|
+
* @property change - What to change: its `span`, held to what its row has room
|
|
58
|
+
* for; its `row`, counting from 1 — a row past the last, or one already
|
|
59
|
+
* holding its most tiles, is a new row after it; its `height`, `none` for its
|
|
60
|
+
* content's own; or its `align`, written to the field `edit.align` names
|
|
61
|
+
*/
|
|
62
|
+
export declare const SnapGridRequestType: StructType<{
|
|
63
|
+
readonly key: StringType;
|
|
64
|
+
readonly change: VariantType<{
|
|
65
|
+
readonly span: IntegerType;
|
|
66
|
+
readonly row: IntegerType;
|
|
67
|
+
readonly height: OptionType<IntegerType>;
|
|
68
|
+
readonly align: VariantType<{
|
|
69
|
+
readonly top: NullType;
|
|
70
|
+
readonly center: NullType;
|
|
71
|
+
readonly stretch: NullType;
|
|
72
|
+
}>;
|
|
73
|
+
}>;
|
|
74
|
+
}>;
|
|
75
|
+
/** Type representing a change asked of the editing canvas. */
|
|
76
|
+
export type SnapGridRequestType = typeof SnapGridRequestType;
|
|
77
|
+
/**
|
|
78
|
+
* The SnapGrid's interaction state, as a host holds it — the value behind a
|
|
79
|
+
* bound `ui` ({@link SnapGridUiBindType}, #990). Bound, the SnapGrid draws the
|
|
80
|
+
* selection it holds and writes the user's back, so a host selects a tile
|
|
81
|
+
* from outside (an inspector, a list beside the canvas) and reads the one the
|
|
82
|
+
* user chose. A `request` asks the editing canvas for a change (#996), as the
|
|
83
|
+
* Plan's `focus` asks it for a row.
|
|
84
|
+
*
|
|
85
|
+
* @property selected - The selected tile's key (`none` ⇒ nothing selected)
|
|
86
|
+
* @property request - A change asked of the editing canvas ({@link SnapGridRequestType}), taken as one gesture and written back `none`
|
|
87
|
+
*/
|
|
88
|
+
export declare const SnapGridUiStateType: StructType<{
|
|
89
|
+
readonly selected: OptionType<StringType>;
|
|
90
|
+
readonly request: OptionType<StructType<{
|
|
91
|
+
readonly key: StringType;
|
|
92
|
+
readonly change: VariantType<{
|
|
93
|
+
readonly span: IntegerType;
|
|
94
|
+
readonly row: IntegerType;
|
|
95
|
+
readonly height: OptionType<IntegerType>;
|
|
96
|
+
readonly align: VariantType<{
|
|
97
|
+
readonly top: NullType;
|
|
98
|
+
readonly center: NullType;
|
|
99
|
+
readonly stretch: NullType;
|
|
100
|
+
}>;
|
|
101
|
+
}>;
|
|
102
|
+
}>>;
|
|
103
|
+
}>;
|
|
104
|
+
/** Type representing a SnapGrid's interaction state. */
|
|
105
|
+
export type SnapGridUiStateType = typeof SnapGridUiStateType;
|
|
106
|
+
/**
|
|
107
|
+
* A bound {@link SnapGridUiStateType} — exactly `State.bind`'s handle at it, so
|
|
108
|
+
* `State.bind([SnapGrid.Types.UiState], key, SnapGrid.uiState())` passes straight
|
|
109
|
+
* through as a SnapGrid's `ui`.
|
|
110
|
+
*
|
|
111
|
+
* @remarks
|
|
112
|
+
* Field order is `read` / `write` / `has`: East struct subtyping is exact, so
|
|
113
|
+
* declaring the shape here means a change to `State.bind`'s fails this file's
|
|
114
|
+
* build rather than a canvas's.
|
|
115
|
+
*
|
|
116
|
+
* @property read - The current state
|
|
117
|
+
* @property write - Replace it
|
|
118
|
+
* @property has - Whether the key is set
|
|
119
|
+
*/
|
|
120
|
+
export declare const SnapGridUiBindType: StructType<{
|
|
121
|
+
readonly read: FunctionType<[], StructType<{
|
|
122
|
+
readonly selected: OptionType<StringType>;
|
|
123
|
+
readonly request: OptionType<StructType<{
|
|
124
|
+
readonly key: StringType;
|
|
125
|
+
readonly change: VariantType<{
|
|
126
|
+
readonly span: IntegerType;
|
|
127
|
+
readonly row: IntegerType;
|
|
128
|
+
readonly height: OptionType<IntegerType>;
|
|
129
|
+
readonly align: VariantType<{
|
|
130
|
+
readonly top: NullType;
|
|
131
|
+
readonly center: NullType;
|
|
132
|
+
readonly stretch: NullType;
|
|
133
|
+
}>;
|
|
134
|
+
}>;
|
|
135
|
+
}>>;
|
|
136
|
+
}>>;
|
|
137
|
+
readonly write: FunctionType<[StructType<{
|
|
138
|
+
readonly selected: OptionType<StringType>;
|
|
139
|
+
readonly request: OptionType<StructType<{
|
|
140
|
+
readonly key: StringType;
|
|
141
|
+
readonly change: VariantType<{
|
|
142
|
+
readonly span: IntegerType;
|
|
143
|
+
readonly row: IntegerType;
|
|
144
|
+
readonly height: OptionType<IntegerType>;
|
|
145
|
+
readonly align: VariantType<{
|
|
146
|
+
readonly top: NullType;
|
|
147
|
+
readonly center: NullType;
|
|
148
|
+
readonly stretch: NullType;
|
|
149
|
+
}>;
|
|
150
|
+
}>;
|
|
151
|
+
}>>;
|
|
152
|
+
}>], NullType>;
|
|
153
|
+
readonly has: FunctionType<[], BooleanType>;
|
|
154
|
+
}>;
|
|
155
|
+
/** Type representing a bound SnapGrid interaction state. */
|
|
156
|
+
export type SnapGridUiBindType = typeof SnapGridUiBindType;
|
|
157
|
+
/**
|
|
158
|
+
* The design width and the zoom the editing canvas draws at, as a host holds
|
|
159
|
+
* them — the value behind a bound `view` ({@link SnapGridViewBindType}, #995).
|
|
160
|
+
* Bound, the canvas draws at them and writes the user's choices back — a
|
|
161
|
+
* width preset, a zoom step — so a preview beside it shows the page at the
|
|
162
|
+
* width the builder chose.
|
|
163
|
+
*
|
|
164
|
+
* @property width - The design width, a CSS length; `none` ⇒ the SnapGrid's `width`
|
|
165
|
+
* @property zoom - The scale it draws at; `none` ⇒ the SnapGrid's `zoom`, else actual size
|
|
166
|
+
*/
|
|
167
|
+
export declare const SnapGridViewStateType: StructType<{
|
|
168
|
+
readonly width: OptionType<StringType>;
|
|
169
|
+
readonly zoom: OptionType<FloatType>;
|
|
170
|
+
}>;
|
|
171
|
+
/** Type representing the editing canvas's design width and zoom. */
|
|
172
|
+
export type SnapGridViewStateType = typeof SnapGridViewStateType;
|
|
173
|
+
/**
|
|
174
|
+
* A bound {@link SnapGridViewStateType} — exactly `State.bind`'s handle at it,
|
|
175
|
+
* so `State.bind([SnapGrid.Types.ViewState], key, SnapGrid.viewState())`
|
|
176
|
+
* passes straight through as a SnapGrid's `view`.
|
|
177
|
+
*
|
|
178
|
+
* @property read - The current state
|
|
179
|
+
* @property write - Replace it
|
|
180
|
+
* @property has - Whether the key is set
|
|
181
|
+
*/
|
|
182
|
+
export declare const SnapGridViewBindType: StructType<{
|
|
183
|
+
readonly read: FunctionType<[], StructType<{
|
|
184
|
+
readonly width: OptionType<StringType>;
|
|
185
|
+
readonly zoom: OptionType<FloatType>;
|
|
186
|
+
}>>;
|
|
187
|
+
readonly write: FunctionType<[StructType<{
|
|
188
|
+
readonly width: OptionType<StringType>;
|
|
189
|
+
readonly zoom: OptionType<FloatType>;
|
|
190
|
+
}>], NullType>;
|
|
191
|
+
readonly has: FunctionType<[], BooleanType>;
|
|
192
|
+
}>;
|
|
193
|
+
/** Type representing a bound view state. */
|
|
194
|
+
export type SnapGridViewBindType = typeof SnapGridViewBindType;
|
|
195
|
+
/**
|
|
196
|
+
* An Apply a host asks of the editing canvas, and the canvas's answer (#998) —
|
|
197
|
+
* the value behind a bound `apply` ({@link SnapGridApplyBindType}). A host
|
|
198
|
+
* writes `asked` with an id of its own — a publish that must not leave drafts
|
|
199
|
+
* behind; the canvas applies its drafts as its own Apply does, and answers
|
|
200
|
+
* under the same id: `applied` once the source confirms them, or at once when
|
|
201
|
+
* it has none; `refused` when they cannot land, with why.
|
|
202
|
+
*
|
|
203
|
+
* @property idle - Nothing asked
|
|
204
|
+
* @property asked - An Apply asked — its id
|
|
205
|
+
* @property applied - The drafts landed, or there were none — the id asked
|
|
206
|
+
* @property refused - They cannot land — the id asked, and why, in the canvas's words
|
|
207
|
+
*/
|
|
208
|
+
export declare const SnapGridApplyStateType: VariantType<{
|
|
209
|
+
readonly idle: NullType;
|
|
210
|
+
readonly asked: StringType;
|
|
211
|
+
readonly applied: StringType;
|
|
212
|
+
readonly refused: StructType<{
|
|
213
|
+
readonly id: StringType;
|
|
214
|
+
readonly reason: StringType;
|
|
215
|
+
}>;
|
|
216
|
+
}>;
|
|
217
|
+
/** Type representing an Apply asked of the editing canvas, and its answer. */
|
|
218
|
+
export type SnapGridApplyStateType = typeof SnapGridApplyStateType;
|
|
219
|
+
/**
|
|
220
|
+
* A bound {@link SnapGridApplyStateType} — exactly `State.bind`'s handle at it,
|
|
221
|
+
* so `State.bind([SnapGrid.Types.ApplyState], key, variant("idle", null))`
|
|
222
|
+
* passes straight through as a SnapGrid's `apply`.
|
|
223
|
+
*
|
|
224
|
+
* @property read - The current state
|
|
225
|
+
* @property write - Replace it
|
|
226
|
+
* @property has - Whether the key is set
|
|
227
|
+
*/
|
|
228
|
+
export declare const SnapGridApplyBindType: StructType<{
|
|
229
|
+
readonly read: FunctionType<[], VariantType<{
|
|
230
|
+
readonly idle: NullType;
|
|
231
|
+
readonly asked: StringType;
|
|
232
|
+
readonly applied: StringType;
|
|
233
|
+
readonly refused: StructType<{
|
|
234
|
+
readonly id: StringType;
|
|
235
|
+
readonly reason: StringType;
|
|
236
|
+
}>;
|
|
237
|
+
}>>;
|
|
238
|
+
readonly write: FunctionType<[VariantType<{
|
|
239
|
+
readonly idle: NullType;
|
|
240
|
+
readonly asked: StringType;
|
|
241
|
+
readonly applied: StringType;
|
|
242
|
+
readonly refused: StructType<{
|
|
243
|
+
readonly id: StringType;
|
|
244
|
+
readonly reason: StringType;
|
|
245
|
+
}>;
|
|
246
|
+
}>], NullType>;
|
|
247
|
+
readonly has: FunctionType<[], BooleanType>;
|
|
248
|
+
}>;
|
|
249
|
+
/** Type representing a bound Apply request. */
|
|
250
|
+
export type SnapGridApplyBindType = typeof SnapGridApplyBindType;
|
|
251
|
+
/**
|
|
252
|
+
* A design width the editing canvas's toolbar offers (#995) — a device the
|
|
253
|
+
* page is laid out for, such as Desktop or Tablet.
|
|
254
|
+
*
|
|
255
|
+
* @property label - Its name in the toolbar
|
|
256
|
+
* @property icon - A Font Awesome solid icon name, beside the name
|
|
257
|
+
* @property width - The design width, a CSS length (`"1440px"`)
|
|
258
|
+
*/
|
|
259
|
+
export declare const SnapGridWidthType: StructType<{
|
|
260
|
+
readonly label: StringType;
|
|
261
|
+
readonly icon: OptionType<StringType>;
|
|
262
|
+
readonly width: StringType;
|
|
263
|
+
}>;
|
|
264
|
+
/** Type representing one of the editing canvas's design widths. */
|
|
265
|
+
export type SnapGridWidthType = typeof SnapGridWidthType;
|
|
266
|
+
/**
|
|
267
|
+
* The chrome the editing canvas draws around itself (#995).
|
|
268
|
+
*
|
|
269
|
+
* @property card - Its own bordered, rounded frame (the default)
|
|
270
|
+
* @property shell - No frame: the canvas sits inside a host's
|
|
271
|
+
*/
|
|
272
|
+
export declare const SnapGridSurfaceType: VariantType<{
|
|
273
|
+
readonly card: NullType;
|
|
274
|
+
readonly shell: NullType;
|
|
275
|
+
}>;
|
|
276
|
+
/** Type representing the editing canvas's chrome. */
|
|
277
|
+
export type SnapGridSurfaceType = typeof SnapGridSurfaceType;
|
|
278
|
+
/** Literal shorthand for {@link SnapGridSurfaceType}. */
|
|
279
|
+
export type SnapGridSurfaceLiteral = "card" | "shell";
|
|
280
|
+
/**
|
|
281
|
+
* Where a dropped card lands (#990) — what `edit.create` builds the new entry
|
|
282
|
+
* at.
|
|
283
|
+
*
|
|
284
|
+
* @remarks
|
|
285
|
+
* The canvas fits the entry `create` returns: it writes `row` into the field
|
|
286
|
+
* `edit.row` names, and holds its span to what the row has room for.
|
|
287
|
+
*
|
|
288
|
+
* @property key - A fresh key for the new entry, unique among the entries' identities
|
|
289
|
+
* @property row - The key of the row it lands in — an existing row's, or a new row's
|
|
290
|
+
*/
|
|
291
|
+
export declare const SnapGridPlaceType: StructType<{
|
|
292
|
+
readonly key: StringType;
|
|
293
|
+
readonly row: StringType;
|
|
294
|
+
}>;
|
|
295
|
+
/** Type representing where a dropped card lands. */
|
|
296
|
+
export type SnapGridPlaceType = typeof SnapGridPlaceType;
|
|
297
|
+
/**
|
|
298
|
+
* The entry fields a gesture writes, as `edit` names them (#990).
|
|
299
|
+
*
|
|
300
|
+
* @internal
|
|
301
|
+
* @property key - The String identity field
|
|
302
|
+
* @property row - The String field holding the row key
|
|
303
|
+
* @property span - The Integer field holding the span
|
|
304
|
+
* @property height - The `Option<Integer>` field holding the height, when a height is edited
|
|
305
|
+
* @property align - The `SnapGrid.Types.Align` field an align request writes, when one is taken (#996)
|
|
306
|
+
*/
|
|
307
|
+
export declare const SnapGridEditFieldsType: StructType<{
|
|
308
|
+
readonly key: StringType;
|
|
309
|
+
readonly row: StringType;
|
|
310
|
+
readonly span: StringType;
|
|
311
|
+
readonly height: OptionType<StringType>;
|
|
312
|
+
readonly align: OptionType<StringType>;
|
|
313
|
+
}>;
|
|
314
|
+
/**
|
|
315
|
+
* A drafted entry the author's readiness check reads (#990).
|
|
316
|
+
*
|
|
317
|
+
* @internal
|
|
318
|
+
* @property id - The entry's identity
|
|
319
|
+
* @property entry - The drafted entry, encoded
|
|
320
|
+
*/
|
|
321
|
+
export declare const SnapGridReadyEntryType: StructType<{
|
|
322
|
+
readonly id: StringType;
|
|
323
|
+
readonly entry: BlobType;
|
|
324
|
+
}>;
|
|
325
|
+
/**
|
|
326
|
+
* One tile, over its content's type — its identity, where it sits, and what
|
|
327
|
+
* it shows.
|
|
328
|
+
*
|
|
329
|
+
* @remarks
|
|
330
|
+
* Rows order by their first appearance among the cells, and the cells of a
|
|
331
|
+
* row by their order in the SnapGrid's `data`.
|
|
332
|
+
*
|
|
333
|
+
* @typeParam C - The content's type
|
|
334
|
+
* @param content - The content's type — the recursion node in the inline arm, `UIComponentType` in `SnapGrid.Types.Cell`
|
|
335
|
+
* @returns The cell struct
|
|
336
|
+
*
|
|
337
|
+
* @property key - The cell's identity
|
|
338
|
+
* @property row - The key of the row it sits in
|
|
339
|
+
* @property span - Its width, in columns of 12
|
|
340
|
+
* @property height - Its height in px; `none` is its content's height
|
|
341
|
+
* @property minHeight - The least height a height drag leaves it, in px; `none` stops it at its content's height
|
|
342
|
+
* @property align - Where it sits in a taller row
|
|
343
|
+
* @property frame - Drawn in a tile frame, or bare
|
|
344
|
+
* @property label - Its name — the drag ghost's, the announcements' and the history's; `none` names it by its key
|
|
345
|
+
* @property icon - A Font Awesome solid icon name, which the editing canvas's selection bar shows beside its name
|
|
346
|
+
* @property meta - A line the selection bar shows after its name — what it is, what it reads
|
|
347
|
+
* @property content - What it shows
|
|
348
|
+
*/
|
|
349
|
+
export declare function SnapGridCellOf<const C>(content: C): StructType<{
|
|
350
|
+
readonly key: StringType;
|
|
351
|
+
readonly row: StringType;
|
|
352
|
+
readonly span: IntegerType;
|
|
353
|
+
readonly height: OptionType<IntegerType>;
|
|
354
|
+
readonly minHeight: OptionType<IntegerType>;
|
|
355
|
+
readonly align: VariantType<{
|
|
356
|
+
readonly top: NullType;
|
|
357
|
+
readonly center: NullType;
|
|
358
|
+
readonly stretch: NullType;
|
|
359
|
+
}>;
|
|
360
|
+
readonly frame: BooleanType;
|
|
361
|
+
readonly label: OptionType<StringType>;
|
|
362
|
+
readonly icon: OptionType<StringType>;
|
|
363
|
+
readonly meta: OptionType<StringType>;
|
|
364
|
+
readonly content: C;
|
|
365
|
+
}>;
|
|
366
|
+
/**
|
|
367
|
+
* The host's items in the editing canvas's toolbar (#995), over their content
|
|
368
|
+
* type: the `start` items lead the row, the `end` items close it.
|
|
369
|
+
*
|
|
370
|
+
* @typeParam C - The items' type
|
|
371
|
+
* @param content - The items' type — the recursion node in the inline arm, `UIComponentType` in `SnapGrid.Types.Root`
|
|
372
|
+
* @returns The toolbar struct
|
|
373
|
+
*
|
|
374
|
+
* @property start - Before the canvas's own items, at the row's start
|
|
375
|
+
* @property end - After the canvas's own items, at the row's end
|
|
376
|
+
*/
|
|
377
|
+
export declare function SnapGridToolbarOf<const C>(content: C): StructType<{
|
|
378
|
+
readonly start: ArrayType<C>;
|
|
379
|
+
readonly end: ArrayType<C>;
|
|
380
|
+
}>;
|
|
381
|
+
/**
|
|
382
|
+
* The panes beside the editing canvas, under its toolbar (#995), over their
|
|
383
|
+
* content type — a palette, an inspector.
|
|
384
|
+
*
|
|
385
|
+
* @typeParam C - The panes' type
|
|
386
|
+
* @param content - The panes' type — the recursion node in the inline arm, `UIComponentType` in `SnapGrid.Types.Root`
|
|
387
|
+
* @returns The panes struct
|
|
388
|
+
*
|
|
389
|
+
* @property start - The pane before the canvas
|
|
390
|
+
* @property end - The pane after it
|
|
391
|
+
*/
|
|
392
|
+
export declare function SnapGridPanesOf<const C>(content: C): StructType<{
|
|
393
|
+
readonly start: OptionType<C>;
|
|
394
|
+
readonly end: OptionType<C>;
|
|
395
|
+
}>;
|
|
396
|
+
/**
|
|
397
|
+
* A SnapGrid's editing declaration, on the wire (#990), over its cells' content
|
|
398
|
+
* type — the shared session's fields ({@link EditingSessionFields}) and the
|
|
399
|
+
* canvas's own. Entries cross as bytes at the exact type the wire names, so
|
|
400
|
+
* the arm stays a closed type whatever the SnapGrid's rows are.
|
|
401
|
+
*
|
|
402
|
+
* @internal
|
|
403
|
+
* @typeParam C - The cells' content type
|
|
404
|
+
* @param content - The cells' content type
|
|
405
|
+
* @returns The editing struct
|
|
406
|
+
*
|
|
407
|
+
* @property fields - The entry fields a gesture writes ({@link SnapGridEditFieldsType})
|
|
408
|
+
* @property derive - The cells of a whole drafted collection, encoded — what the canvas draws a draft as, exactly as Apply leaves it
|
|
409
|
+
* @property create - A dropped card's new entry, encoded — the author's `edit.create`; `none` takes no card
|
|
410
|
+
* @property ready - The author's readiness check over drafted entries, one result each, in order
|
|
411
|
+
* @property onDrafted - The author's `editing.onDrafted`, over the drafted rows' bytes — hears the rows the canvas draws (#996)
|
|
412
|
+
*/
|
|
413
|
+
export declare function SnapGridEditingOf<const C>(content: C): StructType<{
|
|
414
|
+
readonly fields: StructType<{
|
|
415
|
+
readonly key: StringType;
|
|
416
|
+
readonly row: StringType;
|
|
417
|
+
readonly span: StringType;
|
|
418
|
+
readonly height: OptionType<StringType>;
|
|
419
|
+
readonly align: OptionType<StringType>;
|
|
420
|
+
}>;
|
|
421
|
+
readonly derive: FunctionType<[BlobType], ArrayType<StructType<{
|
|
422
|
+
readonly key: StringType;
|
|
423
|
+
readonly row: StringType;
|
|
424
|
+
readonly span: IntegerType;
|
|
425
|
+
readonly height: OptionType<IntegerType>;
|
|
426
|
+
readonly minHeight: OptionType<IntegerType>;
|
|
427
|
+
readonly align: VariantType<{
|
|
428
|
+
readonly top: NullType;
|
|
429
|
+
readonly center: NullType;
|
|
430
|
+
readonly stretch: NullType;
|
|
431
|
+
}>;
|
|
432
|
+
readonly frame: BooleanType;
|
|
433
|
+
readonly label: OptionType<StringType>;
|
|
434
|
+
readonly icon: OptionType<StringType>;
|
|
435
|
+
readonly meta: OptionType<StringType>;
|
|
436
|
+
readonly content: C;
|
|
437
|
+
}>>>;
|
|
438
|
+
readonly create: OptionType<FunctionType<[StructType<{
|
|
439
|
+
readonly library: StringType;
|
|
440
|
+
readonly key: StringType;
|
|
441
|
+
}>, StructType<{
|
|
442
|
+
readonly key: StringType;
|
|
443
|
+
readonly row: StringType;
|
|
444
|
+
}>], BlobType>>;
|
|
445
|
+
readonly ready: OptionType<FunctionType<[ArrayType<StructType<{
|
|
446
|
+
readonly id: StringType;
|
|
447
|
+
readonly entry: BlobType;
|
|
448
|
+
}>>], ArrayType<VariantType<{
|
|
449
|
+
readonly ready: NullType;
|
|
450
|
+
readonly incomplete: ArrayType<StructType<{
|
|
451
|
+
readonly field: StringType;
|
|
452
|
+
readonly message: StringType;
|
|
453
|
+
}>>;
|
|
454
|
+
readonly invalid: ArrayType<StructType<{
|
|
455
|
+
readonly field: StringType;
|
|
456
|
+
readonly message: StringType;
|
|
457
|
+
}>>;
|
|
458
|
+
}>>>>;
|
|
459
|
+
readonly onDrafted: OptionType<FunctionType<[BlobType], NullType>>;
|
|
460
|
+
readonly sourceId: StringType;
|
|
461
|
+
readonly entryType: import("@elaraai/east").RecursiveType<VariantType<{
|
|
462
|
+
readonly Never: NullType;
|
|
463
|
+
readonly Null: NullType;
|
|
464
|
+
readonly Boolean: NullType;
|
|
465
|
+
readonly Integer: NullType;
|
|
466
|
+
readonly Float: NullType;
|
|
467
|
+
readonly String: NullType;
|
|
468
|
+
readonly DateTime: NullType;
|
|
469
|
+
readonly Blob: NullType;
|
|
470
|
+
readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
471
|
+
readonly Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
472
|
+
readonly Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
473
|
+
readonly Dict: StructType<{
|
|
474
|
+
readonly key: import("@elaraai/east").RecursiveTypeMarker;
|
|
475
|
+
readonly value: import("@elaraai/east").RecursiveTypeMarker;
|
|
476
|
+
}>;
|
|
477
|
+
readonly Struct: ArrayType<StructType<{
|
|
478
|
+
readonly name: StringType;
|
|
479
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
480
|
+
}>>;
|
|
481
|
+
readonly Variant: ArrayType<StructType<{
|
|
482
|
+
readonly name: StringType;
|
|
483
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
484
|
+
}>>;
|
|
485
|
+
readonly Recursive: VariantType<{
|
|
486
|
+
readonly ref: IntegerType;
|
|
487
|
+
readonly wrapper: StructType<{
|
|
488
|
+
readonly id: IntegerType;
|
|
489
|
+
readonly inner: import("@elaraai/east").RecursiveTypeMarker;
|
|
490
|
+
}>;
|
|
491
|
+
}>;
|
|
492
|
+
readonly Function: StructType<{
|
|
493
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
494
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
495
|
+
}>;
|
|
496
|
+
readonly AsyncFunction: StructType<{
|
|
497
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
498
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
499
|
+
}>;
|
|
500
|
+
readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
|
|
501
|
+
readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
|
|
502
|
+
}>>;
|
|
503
|
+
readonly idField: OptionType<StringType>;
|
|
504
|
+
readonly draftType: import("@elaraai/east").RecursiveType<VariantType<{
|
|
505
|
+
readonly Never: NullType;
|
|
506
|
+
readonly Null: NullType;
|
|
507
|
+
readonly Boolean: NullType;
|
|
508
|
+
readonly Integer: NullType;
|
|
509
|
+
readonly Float: NullType;
|
|
510
|
+
readonly String: NullType;
|
|
511
|
+
readonly DateTime: NullType;
|
|
512
|
+
readonly Blob: NullType;
|
|
513
|
+
readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
514
|
+
readonly Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
515
|
+
readonly Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
516
|
+
readonly Dict: StructType<{
|
|
517
|
+
readonly key: import("@elaraai/east").RecursiveTypeMarker;
|
|
518
|
+
readonly value: import("@elaraai/east").RecursiveTypeMarker;
|
|
519
|
+
}>;
|
|
520
|
+
readonly Struct: ArrayType<StructType<{
|
|
521
|
+
readonly name: StringType;
|
|
522
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
523
|
+
}>>;
|
|
524
|
+
readonly Variant: ArrayType<StructType<{
|
|
525
|
+
readonly name: StringType;
|
|
526
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
527
|
+
}>>;
|
|
528
|
+
readonly Recursive: VariantType<{
|
|
529
|
+
readonly ref: IntegerType;
|
|
530
|
+
readonly wrapper: StructType<{
|
|
531
|
+
readonly id: IntegerType;
|
|
532
|
+
readonly inner: import("@elaraai/east").RecursiveTypeMarker;
|
|
533
|
+
}>;
|
|
534
|
+
}>;
|
|
535
|
+
readonly Function: StructType<{
|
|
536
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
537
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
538
|
+
}>;
|
|
539
|
+
readonly AsyncFunction: StructType<{
|
|
540
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
541
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
542
|
+
}>;
|
|
543
|
+
readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
|
|
544
|
+
readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
|
|
545
|
+
}>>;
|
|
546
|
+
readonly children: OptionType<StringType>;
|
|
547
|
+
readonly keyType: OptionType<import("@elaraai/east").RecursiveType<VariantType<{
|
|
548
|
+
readonly Never: NullType;
|
|
549
|
+
readonly Null: NullType;
|
|
550
|
+
readonly Boolean: NullType;
|
|
551
|
+
readonly Integer: NullType;
|
|
552
|
+
readonly Float: NullType;
|
|
553
|
+
readonly String: NullType;
|
|
554
|
+
readonly DateTime: NullType;
|
|
555
|
+
readonly Blob: NullType;
|
|
556
|
+
readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
557
|
+
readonly Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
558
|
+
readonly Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
559
|
+
readonly Dict: StructType<{
|
|
560
|
+
readonly key: import("@elaraai/east").RecursiveTypeMarker;
|
|
561
|
+
readonly value: import("@elaraai/east").RecursiveTypeMarker;
|
|
562
|
+
}>;
|
|
563
|
+
readonly Struct: ArrayType<StructType<{
|
|
564
|
+
readonly name: StringType;
|
|
565
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
566
|
+
}>>;
|
|
567
|
+
readonly Variant: ArrayType<StructType<{
|
|
568
|
+
readonly name: StringType;
|
|
569
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
570
|
+
}>>;
|
|
571
|
+
readonly Recursive: VariantType<{
|
|
572
|
+
readonly ref: IntegerType;
|
|
573
|
+
readonly wrapper: StructType<{
|
|
574
|
+
readonly id: IntegerType;
|
|
575
|
+
readonly inner: import("@elaraai/east").RecursiveTypeMarker;
|
|
576
|
+
}>;
|
|
577
|
+
}>;
|
|
578
|
+
readonly Function: StructType<{
|
|
579
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
580
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
581
|
+
}>;
|
|
582
|
+
readonly AsyncFunction: StructType<{
|
|
583
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
584
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
585
|
+
}>;
|
|
586
|
+
readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
|
|
587
|
+
readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
|
|
588
|
+
}>>>;
|
|
589
|
+
readonly snapshot: OptionType<BlobType>;
|
|
590
|
+
readonly readEntry: FunctionType<[StringType, IntegerType], OptionType<BlobType>>;
|
|
591
|
+
readonly onPatch: OptionType<FunctionType<[BlobType], NullType>>;
|
|
592
|
+
readonly onApply: OptionType<VariantType<{
|
|
593
|
+
readonly sync: FunctionType<[BlobType], VariantType<{
|
|
594
|
+
readonly applied: StructType<{
|
|
595
|
+
readonly revision: OptionType<StringType>;
|
|
596
|
+
}>;
|
|
597
|
+
readonly rejected: ArrayType<StructType<{
|
|
598
|
+
readonly entry: StringType;
|
|
599
|
+
readonly row: OptionType<IntegerType>;
|
|
600
|
+
readonly field: OptionType<StringType>;
|
|
601
|
+
readonly message: StringType;
|
|
602
|
+
}>>;
|
|
603
|
+
readonly conflict: ArrayType<StructType<{
|
|
604
|
+
readonly entry: StringType;
|
|
605
|
+
readonly row: OptionType<IntegerType>;
|
|
606
|
+
readonly field: OptionType<StringType>;
|
|
607
|
+
readonly message: StringType;
|
|
608
|
+
}>>;
|
|
609
|
+
}>>;
|
|
610
|
+
readonly async: import("@elaraai/east").AsyncFunctionType<[BlobType], VariantType<{
|
|
611
|
+
readonly applied: StructType<{
|
|
612
|
+
readonly revision: OptionType<StringType>;
|
|
613
|
+
}>;
|
|
614
|
+
readonly rejected: ArrayType<StructType<{
|
|
615
|
+
readonly entry: StringType;
|
|
616
|
+
readonly row: OptionType<IntegerType>;
|
|
617
|
+
readonly field: OptionType<StringType>;
|
|
618
|
+
readonly message: StringType;
|
|
619
|
+
}>>;
|
|
620
|
+
readonly conflict: ArrayType<StructType<{
|
|
621
|
+
readonly entry: StringType;
|
|
622
|
+
readonly row: OptionType<IntegerType>;
|
|
623
|
+
readonly field: OptionType<StringType>;
|
|
624
|
+
readonly message: StringType;
|
|
625
|
+
}>>;
|
|
626
|
+
}>>;
|
|
627
|
+
}>>;
|
|
628
|
+
readonly mode: VariantType<{
|
|
629
|
+
readonly batch: NullType;
|
|
630
|
+
readonly auto: NullType;
|
|
631
|
+
}>;
|
|
632
|
+
}>;
|
|
633
|
+
/**
|
|
634
|
+
* A SnapGrid's value, over its cells' content type.
|
|
635
|
+
*
|
|
636
|
+
* @typeParam C - The cells' content type
|
|
637
|
+
* @param content - The cells' content type — the recursion node in the inline arm, `UIComponentType` in `SnapGrid.Types.Root`
|
|
638
|
+
* @returns The root struct
|
|
639
|
+
*
|
|
640
|
+
* @property cells - Every cell, in the order `data` holds them
|
|
641
|
+
* @property variant - Tiles (the default) or a wireframe
|
|
642
|
+
* @property width - The design width, a CSS length
|
|
643
|
+
* @property height - A pinned height, a CSS length; the grid scrolls within
|
|
644
|
+
* @property maxHeight - A height cap, a CSS length; the grid scrolls past it
|
|
645
|
+
* @property zoom - The scale the canvas draws at (`1.0` actual size)
|
|
646
|
+
* @property guides - Draw the column ruler and the column bands
|
|
647
|
+
* @property editing - The editing session (#990); `none` takes no gesture
|
|
648
|
+
* @property ui - The bound selection ({@link SnapGridUiBindType}); `none` keeps it in the canvas
|
|
649
|
+
* @property view - The bound design width and zoom ({@link SnapGridViewBindType}, #995); `none` keeps them in the canvas
|
|
650
|
+
* @property apply - The bound Apply request ({@link SnapGridApplyBindType}, #998); `none` takes none
|
|
651
|
+
* @property id - The drag surface's name in a drop's cell refs; `none` names one of its own
|
|
652
|
+
* @property sources - The library ids whose cards land on the canvas
|
|
653
|
+
* @property canDrop - The veto over a drop where the drag rests (the shared grammar)
|
|
654
|
+
* @property widths - The design widths the editing canvas's toolbar offers (#995)
|
|
655
|
+
* @property toolbar - The host's items in the editing canvas's toolbar (#995)
|
|
656
|
+
* @property panes - The panes beside the editing canvas, under its toolbar (#995)
|
|
657
|
+
* @property surface - The editing canvas's frame, or none (#995); `none` draws the frame
|
|
658
|
+
*/
|
|
659
|
+
export declare function SnapGridRootOf<const C>(content: C): StructType<{
|
|
660
|
+
readonly cells: ArrayType<StructType<{
|
|
661
|
+
readonly key: StringType;
|
|
662
|
+
readonly row: StringType;
|
|
663
|
+
readonly span: IntegerType;
|
|
664
|
+
readonly height: OptionType<IntegerType>;
|
|
665
|
+
readonly minHeight: OptionType<IntegerType>;
|
|
666
|
+
readonly align: VariantType<{
|
|
667
|
+
readonly top: NullType;
|
|
668
|
+
readonly center: NullType;
|
|
669
|
+
readonly stretch: NullType;
|
|
670
|
+
}>;
|
|
671
|
+
readonly frame: BooleanType;
|
|
672
|
+
readonly label: OptionType<StringType>;
|
|
673
|
+
readonly icon: OptionType<StringType>;
|
|
674
|
+
readonly meta: OptionType<StringType>;
|
|
675
|
+
readonly content: C;
|
|
676
|
+
}>>;
|
|
677
|
+
readonly variant: OptionType<VariantType<{
|
|
678
|
+
readonly tiles: NullType;
|
|
679
|
+
readonly wireframe: NullType;
|
|
680
|
+
}>>;
|
|
681
|
+
readonly width: OptionType<StringType>;
|
|
682
|
+
readonly height: OptionType<StringType>;
|
|
683
|
+
readonly maxHeight: OptionType<StringType>;
|
|
684
|
+
readonly zoom: OptionType<FloatType>;
|
|
685
|
+
readonly guides: BooleanType;
|
|
686
|
+
readonly editing: OptionType<StructType<{
|
|
687
|
+
readonly fields: StructType<{
|
|
688
|
+
readonly key: StringType;
|
|
689
|
+
readonly row: StringType;
|
|
690
|
+
readonly span: StringType;
|
|
691
|
+
readonly height: OptionType<StringType>;
|
|
692
|
+
readonly align: OptionType<StringType>;
|
|
693
|
+
}>;
|
|
694
|
+
readonly derive: FunctionType<[BlobType], ArrayType<StructType<{
|
|
695
|
+
readonly key: StringType;
|
|
696
|
+
readonly row: StringType;
|
|
697
|
+
readonly span: IntegerType;
|
|
698
|
+
readonly height: OptionType<IntegerType>;
|
|
699
|
+
readonly minHeight: OptionType<IntegerType>;
|
|
700
|
+
readonly align: VariantType<{
|
|
701
|
+
readonly top: NullType;
|
|
702
|
+
readonly center: NullType;
|
|
703
|
+
readonly stretch: NullType;
|
|
704
|
+
}>;
|
|
705
|
+
readonly frame: BooleanType;
|
|
706
|
+
readonly label: OptionType<StringType>;
|
|
707
|
+
readonly icon: OptionType<StringType>;
|
|
708
|
+
readonly meta: OptionType<StringType>;
|
|
709
|
+
readonly content: C;
|
|
710
|
+
}>>>;
|
|
711
|
+
readonly create: OptionType<FunctionType<[StructType<{
|
|
712
|
+
readonly library: StringType;
|
|
713
|
+
readonly key: StringType;
|
|
714
|
+
}>, StructType<{
|
|
715
|
+
readonly key: StringType;
|
|
716
|
+
readonly row: StringType;
|
|
717
|
+
}>], BlobType>>;
|
|
718
|
+
readonly ready: OptionType<FunctionType<[ArrayType<StructType<{
|
|
719
|
+
readonly id: StringType;
|
|
720
|
+
readonly entry: BlobType;
|
|
721
|
+
}>>], ArrayType<VariantType<{
|
|
722
|
+
readonly ready: NullType;
|
|
723
|
+
readonly incomplete: ArrayType<StructType<{
|
|
724
|
+
readonly field: StringType;
|
|
725
|
+
readonly message: StringType;
|
|
726
|
+
}>>;
|
|
727
|
+
readonly invalid: ArrayType<StructType<{
|
|
728
|
+
readonly field: StringType;
|
|
729
|
+
readonly message: StringType;
|
|
730
|
+
}>>;
|
|
731
|
+
}>>>>;
|
|
732
|
+
readonly onDrafted: OptionType<FunctionType<[BlobType], NullType>>;
|
|
733
|
+
readonly sourceId: StringType;
|
|
734
|
+
readonly entryType: import("@elaraai/east").RecursiveType<VariantType<{
|
|
735
|
+
readonly Never: NullType;
|
|
736
|
+
readonly Null: NullType;
|
|
737
|
+
readonly Boolean: NullType;
|
|
738
|
+
readonly Integer: NullType;
|
|
739
|
+
readonly Float: NullType;
|
|
740
|
+
readonly String: NullType;
|
|
741
|
+
readonly DateTime: NullType;
|
|
742
|
+
readonly Blob: NullType;
|
|
743
|
+
readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
744
|
+
readonly Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
745
|
+
readonly Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
746
|
+
readonly Dict: StructType<{
|
|
747
|
+
readonly key: import("@elaraai/east").RecursiveTypeMarker;
|
|
748
|
+
readonly value: import("@elaraai/east").RecursiveTypeMarker;
|
|
749
|
+
}>;
|
|
750
|
+
readonly Struct: ArrayType<StructType<{
|
|
751
|
+
readonly name: StringType;
|
|
752
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
753
|
+
}>>;
|
|
754
|
+
readonly Variant: ArrayType<StructType<{
|
|
755
|
+
readonly name: StringType;
|
|
756
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
757
|
+
}>>;
|
|
758
|
+
readonly Recursive: VariantType<{
|
|
759
|
+
readonly ref: IntegerType;
|
|
760
|
+
readonly wrapper: StructType<{
|
|
761
|
+
readonly id: IntegerType;
|
|
762
|
+
readonly inner: import("@elaraai/east").RecursiveTypeMarker;
|
|
763
|
+
}>;
|
|
764
|
+
}>;
|
|
765
|
+
readonly Function: StructType<{
|
|
766
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
767
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
768
|
+
}>;
|
|
769
|
+
readonly AsyncFunction: StructType<{
|
|
770
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
771
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
772
|
+
}>;
|
|
773
|
+
readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
|
|
774
|
+
readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
|
|
775
|
+
}>>;
|
|
776
|
+
readonly idField: OptionType<StringType>;
|
|
777
|
+
readonly draftType: import("@elaraai/east").RecursiveType<VariantType<{
|
|
778
|
+
readonly Never: NullType;
|
|
779
|
+
readonly Null: NullType;
|
|
780
|
+
readonly Boolean: NullType;
|
|
781
|
+
readonly Integer: NullType;
|
|
782
|
+
readonly Float: NullType;
|
|
783
|
+
readonly String: NullType;
|
|
784
|
+
readonly DateTime: NullType;
|
|
785
|
+
readonly Blob: NullType;
|
|
786
|
+
readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
787
|
+
readonly Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
788
|
+
readonly Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
789
|
+
readonly Dict: StructType<{
|
|
790
|
+
readonly key: import("@elaraai/east").RecursiveTypeMarker;
|
|
791
|
+
readonly value: import("@elaraai/east").RecursiveTypeMarker;
|
|
792
|
+
}>;
|
|
793
|
+
readonly Struct: ArrayType<StructType<{
|
|
794
|
+
readonly name: StringType;
|
|
795
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
796
|
+
}>>;
|
|
797
|
+
readonly Variant: ArrayType<StructType<{
|
|
798
|
+
readonly name: StringType;
|
|
799
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
800
|
+
}>>;
|
|
801
|
+
readonly Recursive: VariantType<{
|
|
802
|
+
readonly ref: IntegerType;
|
|
803
|
+
readonly wrapper: StructType<{
|
|
804
|
+
readonly id: IntegerType;
|
|
805
|
+
readonly inner: import("@elaraai/east").RecursiveTypeMarker;
|
|
806
|
+
}>;
|
|
807
|
+
}>;
|
|
808
|
+
readonly Function: StructType<{
|
|
809
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
810
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
811
|
+
}>;
|
|
812
|
+
readonly AsyncFunction: StructType<{
|
|
813
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
814
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
815
|
+
}>;
|
|
816
|
+
readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
|
|
817
|
+
readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
|
|
818
|
+
}>>;
|
|
819
|
+
readonly children: OptionType<StringType>;
|
|
820
|
+
readonly keyType: OptionType<import("@elaraai/east").RecursiveType<VariantType<{
|
|
821
|
+
readonly Never: NullType;
|
|
822
|
+
readonly Null: NullType;
|
|
823
|
+
readonly Boolean: NullType;
|
|
824
|
+
readonly Integer: NullType;
|
|
825
|
+
readonly Float: NullType;
|
|
826
|
+
readonly String: NullType;
|
|
827
|
+
readonly DateTime: NullType;
|
|
828
|
+
readonly Blob: NullType;
|
|
829
|
+
readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
|
|
830
|
+
readonly Array: import("@elaraai/east").RecursiveTypeMarker;
|
|
831
|
+
readonly Set: import("@elaraai/east").RecursiveTypeMarker;
|
|
832
|
+
readonly Dict: StructType<{
|
|
833
|
+
readonly key: import("@elaraai/east").RecursiveTypeMarker;
|
|
834
|
+
readonly value: import("@elaraai/east").RecursiveTypeMarker;
|
|
835
|
+
}>;
|
|
836
|
+
readonly Struct: ArrayType<StructType<{
|
|
837
|
+
readonly name: StringType;
|
|
838
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
839
|
+
}>>;
|
|
840
|
+
readonly Variant: ArrayType<StructType<{
|
|
841
|
+
readonly name: StringType;
|
|
842
|
+
readonly type: import("@elaraai/east").RecursiveTypeMarker;
|
|
843
|
+
}>>;
|
|
844
|
+
readonly Recursive: VariantType<{
|
|
845
|
+
readonly ref: IntegerType;
|
|
846
|
+
readonly wrapper: StructType<{
|
|
847
|
+
readonly id: IntegerType;
|
|
848
|
+
readonly inner: import("@elaraai/east").RecursiveTypeMarker;
|
|
849
|
+
}>;
|
|
850
|
+
}>;
|
|
851
|
+
readonly Function: StructType<{
|
|
852
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
853
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
854
|
+
}>;
|
|
855
|
+
readonly AsyncFunction: StructType<{
|
|
856
|
+
readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
|
|
857
|
+
readonly output: import("@elaraai/east").RecursiveTypeMarker;
|
|
858
|
+
}>;
|
|
859
|
+
readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
|
|
860
|
+
readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
|
|
861
|
+
}>>>;
|
|
862
|
+
readonly snapshot: OptionType<BlobType>;
|
|
863
|
+
readonly readEntry: FunctionType<[StringType, IntegerType], OptionType<BlobType>>;
|
|
864
|
+
readonly onPatch: OptionType<FunctionType<[BlobType], NullType>>;
|
|
865
|
+
readonly onApply: OptionType<VariantType<{
|
|
866
|
+
readonly sync: FunctionType<[BlobType], VariantType<{
|
|
867
|
+
readonly applied: StructType<{
|
|
868
|
+
readonly revision: OptionType<StringType>;
|
|
869
|
+
}>;
|
|
870
|
+
readonly rejected: ArrayType<StructType<{
|
|
871
|
+
readonly entry: StringType;
|
|
872
|
+
readonly row: OptionType<IntegerType>;
|
|
873
|
+
readonly field: OptionType<StringType>;
|
|
874
|
+
readonly message: StringType;
|
|
875
|
+
}>>;
|
|
876
|
+
readonly conflict: ArrayType<StructType<{
|
|
877
|
+
readonly entry: StringType;
|
|
878
|
+
readonly row: OptionType<IntegerType>;
|
|
879
|
+
readonly field: OptionType<StringType>;
|
|
880
|
+
readonly message: StringType;
|
|
881
|
+
}>>;
|
|
882
|
+
}>>;
|
|
883
|
+
readonly async: import("@elaraai/east").AsyncFunctionType<[BlobType], VariantType<{
|
|
884
|
+
readonly applied: StructType<{
|
|
885
|
+
readonly revision: OptionType<StringType>;
|
|
886
|
+
}>;
|
|
887
|
+
readonly rejected: ArrayType<StructType<{
|
|
888
|
+
readonly entry: StringType;
|
|
889
|
+
readonly row: OptionType<IntegerType>;
|
|
890
|
+
readonly field: OptionType<StringType>;
|
|
891
|
+
readonly message: StringType;
|
|
892
|
+
}>>;
|
|
893
|
+
readonly conflict: ArrayType<StructType<{
|
|
894
|
+
readonly entry: StringType;
|
|
895
|
+
readonly row: OptionType<IntegerType>;
|
|
896
|
+
readonly field: OptionType<StringType>;
|
|
897
|
+
readonly message: StringType;
|
|
898
|
+
}>>;
|
|
899
|
+
}>>;
|
|
900
|
+
}>>;
|
|
901
|
+
readonly mode: VariantType<{
|
|
902
|
+
readonly batch: NullType;
|
|
903
|
+
readonly auto: NullType;
|
|
904
|
+
}>;
|
|
905
|
+
}>>;
|
|
906
|
+
readonly ui: OptionType<StructType<{
|
|
907
|
+
readonly read: FunctionType<[], StructType<{
|
|
908
|
+
readonly selected: OptionType<StringType>;
|
|
909
|
+
readonly request: OptionType<StructType<{
|
|
910
|
+
readonly key: StringType;
|
|
911
|
+
readonly change: VariantType<{
|
|
912
|
+
readonly span: IntegerType;
|
|
913
|
+
readonly row: IntegerType;
|
|
914
|
+
readonly height: OptionType<IntegerType>;
|
|
915
|
+
readonly align: VariantType<{
|
|
916
|
+
readonly top: NullType;
|
|
917
|
+
readonly center: NullType;
|
|
918
|
+
readonly stretch: NullType;
|
|
919
|
+
}>;
|
|
920
|
+
}>;
|
|
921
|
+
}>>;
|
|
922
|
+
}>>;
|
|
923
|
+
readonly write: FunctionType<[StructType<{
|
|
924
|
+
readonly selected: OptionType<StringType>;
|
|
925
|
+
readonly request: OptionType<StructType<{
|
|
926
|
+
readonly key: StringType;
|
|
927
|
+
readonly change: VariantType<{
|
|
928
|
+
readonly span: IntegerType;
|
|
929
|
+
readonly row: IntegerType;
|
|
930
|
+
readonly height: OptionType<IntegerType>;
|
|
931
|
+
readonly align: VariantType<{
|
|
932
|
+
readonly top: NullType;
|
|
933
|
+
readonly center: NullType;
|
|
934
|
+
readonly stretch: NullType;
|
|
935
|
+
}>;
|
|
936
|
+
}>;
|
|
937
|
+
}>>;
|
|
938
|
+
}>], NullType>;
|
|
939
|
+
readonly has: FunctionType<[], BooleanType>;
|
|
940
|
+
}>>;
|
|
941
|
+
readonly view: OptionType<StructType<{
|
|
942
|
+
readonly read: FunctionType<[], StructType<{
|
|
943
|
+
readonly width: OptionType<StringType>;
|
|
944
|
+
readonly zoom: OptionType<FloatType>;
|
|
945
|
+
}>>;
|
|
946
|
+
readonly write: FunctionType<[StructType<{
|
|
947
|
+
readonly width: OptionType<StringType>;
|
|
948
|
+
readonly zoom: OptionType<FloatType>;
|
|
949
|
+
}>], NullType>;
|
|
950
|
+
readonly has: FunctionType<[], BooleanType>;
|
|
951
|
+
}>>;
|
|
952
|
+
readonly apply: OptionType<StructType<{
|
|
953
|
+
readonly read: FunctionType<[], VariantType<{
|
|
954
|
+
readonly idle: NullType;
|
|
955
|
+
readonly asked: StringType;
|
|
956
|
+
readonly applied: StringType;
|
|
957
|
+
readonly refused: StructType<{
|
|
958
|
+
readonly id: StringType;
|
|
959
|
+
readonly reason: StringType;
|
|
960
|
+
}>;
|
|
961
|
+
}>>;
|
|
962
|
+
readonly write: FunctionType<[VariantType<{
|
|
963
|
+
readonly idle: NullType;
|
|
964
|
+
readonly asked: StringType;
|
|
965
|
+
readonly applied: StringType;
|
|
966
|
+
readonly refused: StructType<{
|
|
967
|
+
readonly id: StringType;
|
|
968
|
+
readonly reason: StringType;
|
|
969
|
+
}>;
|
|
970
|
+
}>], NullType>;
|
|
971
|
+
readonly has: FunctionType<[], BooleanType>;
|
|
972
|
+
}>>;
|
|
973
|
+
readonly id: OptionType<StringType>;
|
|
974
|
+
readonly sources: ArrayType<StringType>;
|
|
975
|
+
readonly canDrop: OptionType<FunctionType<[VariantType<{
|
|
976
|
+
readonly add: StructType<{
|
|
977
|
+
readonly from: StructType<{
|
|
978
|
+
readonly library: StringType;
|
|
979
|
+
readonly key: StringType;
|
|
980
|
+
}>;
|
|
981
|
+
readonly into: StructType<{
|
|
982
|
+
readonly surface: StringType;
|
|
983
|
+
readonly row: StringType;
|
|
984
|
+
readonly slot: StringType;
|
|
985
|
+
readonly event: OptionType<StringType>;
|
|
986
|
+
}>;
|
|
987
|
+
readonly duplicate: BooleanType;
|
|
988
|
+
}>;
|
|
989
|
+
readonly move: StructType<{
|
|
990
|
+
readonly from: StructType<{
|
|
991
|
+
readonly surface: StringType;
|
|
992
|
+
readonly row: StringType;
|
|
993
|
+
readonly slot: StringType;
|
|
994
|
+
readonly event: OptionType<StringType>;
|
|
995
|
+
}>;
|
|
996
|
+
readonly to: StructType<{
|
|
997
|
+
readonly surface: StringType;
|
|
998
|
+
readonly row: StringType;
|
|
999
|
+
readonly slot: StringType;
|
|
1000
|
+
readonly event: OptionType<StringType>;
|
|
1001
|
+
}>;
|
|
1002
|
+
}>;
|
|
1003
|
+
readonly remove: StructType<{
|
|
1004
|
+
readonly from: StructType<{
|
|
1005
|
+
readonly surface: StringType;
|
|
1006
|
+
readonly row: StringType;
|
|
1007
|
+
readonly slot: StringType;
|
|
1008
|
+
readonly event: OptionType<StringType>;
|
|
1009
|
+
}>;
|
|
1010
|
+
readonly to: VariantType<{
|
|
1011
|
+
readonly trash: NullType;
|
|
1012
|
+
readonly source: NullType;
|
|
1013
|
+
}>;
|
|
1014
|
+
}>;
|
|
1015
|
+
readonly resize: StructType<{
|
|
1016
|
+
readonly event: StructType<{
|
|
1017
|
+
readonly surface: StringType;
|
|
1018
|
+
readonly row: StringType;
|
|
1019
|
+
readonly slot: StringType;
|
|
1020
|
+
readonly event: OptionType<StringType>;
|
|
1021
|
+
}>;
|
|
1022
|
+
readonly edge: VariantType<{
|
|
1023
|
+
readonly start: NullType;
|
|
1024
|
+
readonly end: NullType;
|
|
1025
|
+
}>;
|
|
1026
|
+
}>;
|
|
1027
|
+
}>], BooleanType>>;
|
|
1028
|
+
readonly widths: ArrayType<StructType<{
|
|
1029
|
+
readonly label: StringType;
|
|
1030
|
+
readonly icon: OptionType<StringType>;
|
|
1031
|
+
readonly width: StringType;
|
|
1032
|
+
}>>;
|
|
1033
|
+
readonly toolbar: StructType<{
|
|
1034
|
+
readonly start: ArrayType<C>;
|
|
1035
|
+
readonly end: ArrayType<C>;
|
|
1036
|
+
}>;
|
|
1037
|
+
readonly panes: StructType<{
|
|
1038
|
+
readonly start: OptionType<C>;
|
|
1039
|
+
readonly end: OptionType<C>;
|
|
1040
|
+
}>;
|
|
1041
|
+
readonly surface: OptionType<VariantType<{
|
|
1042
|
+
readonly card: NullType;
|
|
1043
|
+
readonly shell: NullType;
|
|
1044
|
+
}>>;
|
|
1045
|
+
}>;
|
|
1046
|
+
//# sourceMappingURL=types.d.ts.map
|