@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/collections/library/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,SAAS,EACT,WAAW,EACX,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,EACZ,KAAK,kBAAkB,EAC1B,MAAM,eAAe,CAAC;AASvB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/collections/library/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,SAAS,EACT,WAAW,EACX,QAAQ,EACR,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,EACZ,KAAK,kBAAkB,EAC1B,MAAM,eAAe,CAAC;AASvB;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB;IAC1B,qCAAqC;;IAErC,2BAA2B;;;;;;;;IAE3B,4CAA4C;;EAE9C,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC;AAMzD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB;IACzB,mCAAmC;;IAEnC,oEAAoE;;IAEpE,kDAAkD;;;;;;;;EAEpD,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,eAAe;IACxB,6BAA6B;;IAE7B,qCAAqC;;EAEvC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC;AAMrD;;;;;;;;;;;;GA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAuPrC,qDAAqD;;QAErD,8BAA8B;;QAE9B,wEAAwE;;QAExE,mDAAmD;;QAEnD,2DAA2D;;;;;QAE3D,0EAA0E;;;;;;;;;;;;GA+F7E"}
|
|
@@ -2,28 +2,68 @@
|
|
|
2
2
|
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
3
|
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
|
-
import { ArrayType, BooleanType, DictType, FloatType, NullType, OptionType, StringType, StructType, VariantType, FunctionType, } from "@elaraai/east";
|
|
5
|
+
import { ArrayType, BooleanType, DictType, FloatType, IntegerType, NullType, OptionType, StringType, StructType, VariantType, FunctionType, } from "@elaraai/east";
|
|
6
6
|
import { StatusTokenType } from "../../style/interaction.js";
|
|
7
7
|
import { SliceChromeType } from "../../platform/slice/index.js";
|
|
8
8
|
// ============================================================================
|
|
9
9
|
// Card status
|
|
10
10
|
// ============================================================================
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* A Library card's status.
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
15
|
* The card's availability/assignment state (`ON ROSTER`, `AT CAP`,
|
|
16
|
-
* `PTO MAR 4–8`, `IN SERVICE`),
|
|
17
|
-
* right
|
|
16
|
+
* `PTO MAR 4–8`, `IN SERVICE`), in the standard status tone set. A compact
|
|
17
|
+
* card draws it as a small pill in its top right; a gallery card draws it as
|
|
18
|
+
* `<Status>` does — a dot and the word, the dot open when `ring` is set.
|
|
18
19
|
*
|
|
19
20
|
* @property label - Pill text (rendered uppercase)
|
|
20
21
|
* @property tone - Standard status tone
|
|
22
|
+
* @property ring - The dot drawn open, a state not reached yet (a draft never
|
|
23
|
+
* published); a gallery card's, which a compact card's pill has none of
|
|
21
24
|
*/
|
|
22
25
|
export const LibraryStatusType = StructType({
|
|
23
26
|
/** Pill text (rendered uppercase) */
|
|
24
27
|
label: StringType,
|
|
25
28
|
/** Standard status tone */
|
|
26
29
|
tone: StatusTokenType,
|
|
30
|
+
/** The dot drawn open — a gallery card's */
|
|
31
|
+
ring: BooleanType,
|
|
32
|
+
});
|
|
33
|
+
// ============================================================================
|
|
34
|
+
// Trailing glyph
|
|
35
|
+
// ============================================================================
|
|
36
|
+
/**
|
|
37
|
+
* A glyph at a Library card's right edge — a lock on something fixed, a dot
|
|
38
|
+
* for a status.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* Drawn in the card's quiet ink, or the brand ink while the card is placed,
|
|
42
|
+
* unless it carries a tone.
|
|
43
|
+
*
|
|
44
|
+
* @property icon - Font Awesome solid icon name
|
|
45
|
+
* @property label - What the glyph says, for assistive technology and the tooltip
|
|
46
|
+
* @property tone - Optional status tone that colours the glyph
|
|
47
|
+
*/
|
|
48
|
+
export const LibraryGlyphType = StructType({
|
|
49
|
+
/** Font Awesome solid icon name */
|
|
50
|
+
icon: StringType,
|
|
51
|
+
/** What the glyph says, for assistive technology and the tooltip */
|
|
52
|
+
label: StringType,
|
|
53
|
+
/** Optional status tone that colours the glyph */
|
|
54
|
+
tone: OptionType(StatusTokenType),
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* What the Library calls its items — "Search 47 components…".
|
|
58
|
+
*
|
|
59
|
+
* @property singular - One item ("component")
|
|
60
|
+
* @property plural - Any other count ("components")
|
|
61
|
+
*/
|
|
62
|
+
export const LibraryNounType = StructType({
|
|
63
|
+
/** One item ("component") */
|
|
64
|
+
singular: StringType,
|
|
65
|
+
/** Any other count ("components") */
|
|
66
|
+
plural: StringType,
|
|
27
67
|
});
|
|
28
68
|
// ============================================================================
|
|
29
69
|
// Secondary dimension values
|
|
@@ -57,77 +97,116 @@ export const LibraryDimValueType = VariantType({
|
|
|
57
97
|
text: StringType,
|
|
58
98
|
});
|
|
59
99
|
// ============================================================================
|
|
60
|
-
//
|
|
100
|
+
// Variant, layout and media
|
|
61
101
|
// ============================================================================
|
|
62
102
|
/**
|
|
63
|
-
*
|
|
103
|
+
* How a Library draws its cards.
|
|
64
104
|
*
|
|
65
|
-
* @
|
|
66
|
-
*
|
|
67
|
-
*
|
|
105
|
+
* @property compact - A line per card: the grip, the icon tile, the name over
|
|
106
|
+
* its meta line, and any status and glyph at the right — the palette a
|
|
107
|
+
* surface drags from
|
|
108
|
+
* @property gallery - A large card per item: its media, then its name and
|
|
109
|
+
* status, its meta line, and a foot holding a byline and an action — the
|
|
110
|
+
* library a person browses
|
|
111
|
+
*/
|
|
112
|
+
export const LibraryVariantType = VariantType({
|
|
113
|
+
compact: NullType,
|
|
114
|
+
gallery: NullType,
|
|
115
|
+
});
|
|
116
|
+
/**
|
|
117
|
+
* How a gallery lays its cards out.
|
|
68
118
|
*
|
|
69
|
-
* @property
|
|
70
|
-
*
|
|
71
|
-
* @property
|
|
72
|
-
* @property icon - Optional Font Awesome solid icon name
|
|
73
|
-
* @property status - Optional status pill
|
|
74
|
-
* @property draggable - Whether the card can start a drag
|
|
75
|
-
* @property filtered - Whether the card renders de-emphasised (dimmed, drag disabled) — the `Slice.partition` "keep the excluded" feed
|
|
76
|
-
* @property search - Optional filter text (card hides when unmatched)
|
|
77
|
-
* @property groups - Group value per group-by option key
|
|
78
|
-
* @property dims - Secondary dimension value per dimension key
|
|
119
|
+
* @property grid - Cards across the style's `columns`, fewer as the Library
|
|
120
|
+
* narrows, and one on a phone
|
|
121
|
+
* @property list - A card per row, its media at the start
|
|
79
122
|
*/
|
|
80
|
-
export const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/** Primary identity line */
|
|
84
|
-
label: StringType,
|
|
85
|
-
/** Optional muted second line (role / class) */
|
|
86
|
-
sublabel: OptionType(StringType),
|
|
87
|
-
/** Optional Font Awesome solid icon name */
|
|
88
|
-
icon: OptionType(StringType),
|
|
89
|
-
/** Optional status pill */
|
|
90
|
-
status: OptionType(LibraryStatusType),
|
|
91
|
-
/** Whether the card can start a drag */
|
|
92
|
-
draggable: BooleanType,
|
|
93
|
-
/** Whether the card renders de-emphasised (dimmed, drag disabled) */
|
|
94
|
-
filtered: BooleanType,
|
|
95
|
-
/** Optional filter text (card hides when unmatched) */
|
|
96
|
-
search: OptionType(StringType),
|
|
97
|
-
/** Group value per group-by option key */
|
|
98
|
-
groups: DictType(StringType, StringType),
|
|
99
|
-
/** Secondary dimension value per dimension key */
|
|
100
|
-
dims: DictType(StringType, LibraryDimValueType),
|
|
123
|
+
export const LibraryLayoutType = VariantType({
|
|
124
|
+
grid: NullType,
|
|
125
|
+
list: NullType,
|
|
101
126
|
});
|
|
102
127
|
/**
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
128
|
+
* Where a gallery card's media sits, in the grid layout.
|
|
129
|
+
*
|
|
130
|
+
* @property top - Above the face, the style's `mediaSize` tall
|
|
131
|
+
* @property start - At the face's start, the style's `mediaSize` wide
|
|
132
|
+
*/
|
|
133
|
+
export const LibraryMediaPlacementType = VariantType({
|
|
134
|
+
top: NullType,
|
|
135
|
+
start: NullType,
|
|
136
|
+
});
|
|
137
|
+
// ============================================================================
|
|
138
|
+
// Card / group / dimension metadata
|
|
139
|
+
// ============================================================================
|
|
140
|
+
/**
|
|
141
|
+
* The card face, over its media's type — the per-item fields produced by the
|
|
142
|
+
* `item` accessor, before the factory merges in dimensions, group placements,
|
|
143
|
+
* and search text.
|
|
144
|
+
*
|
|
145
|
+
* @typeParam C - The media's type
|
|
146
|
+
* @param content - The media's type — the recursion node in the inline arm,
|
|
147
|
+
* `UIComponentType` in `Library.Types.CardFace`
|
|
148
|
+
* @returns The card face struct
|
|
106
149
|
*
|
|
107
150
|
* @property key - Item identity; carried by `LibraryRef` when dragged
|
|
108
151
|
* @property label - Primary identity line
|
|
109
152
|
* @property sublabel - Optional muted second line
|
|
110
153
|
* @property icon - Optional Font Awesome solid icon name
|
|
111
|
-
* @property status - Optional status
|
|
154
|
+
* @property status - Optional status
|
|
155
|
+
* @property trailing - Optional glyph at the card's right edge — a gallery
|
|
156
|
+
* card's foot's end
|
|
112
157
|
* @property draggable - Whether the card can start a drag
|
|
113
158
|
* @property filtered - Whether the card renders de-emphasised (dimmed, drag disabled)
|
|
159
|
+
* @property placed - Whether the card shows its placed state
|
|
160
|
+
* @property media - A gallery card's media: any UI component
|
|
161
|
+
* @property avatar - A gallery card's byline avatar: the name whose initials it shows
|
|
162
|
+
* @property byline - A gallery card's byline: the line in its foot, after the avatar
|
|
163
|
+
* @property action - A gallery card's action: a label in the link voice at its
|
|
164
|
+
* foot's end, which a click on the card follows
|
|
114
165
|
*/
|
|
115
|
-
export
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
});
|
|
166
|
+
export function LibraryCardFaceOf(content) {
|
|
167
|
+
return StructType({
|
|
168
|
+
key: StringType,
|
|
169
|
+
label: StringType,
|
|
170
|
+
sublabel: OptionType(StringType),
|
|
171
|
+
icon: OptionType(StringType),
|
|
172
|
+
status: OptionType(LibraryStatusType),
|
|
173
|
+
trailing: OptionType(LibraryGlyphType),
|
|
174
|
+
draggable: BooleanType,
|
|
175
|
+
filtered: BooleanType,
|
|
176
|
+
placed: BooleanType,
|
|
177
|
+
media: OptionType(content),
|
|
178
|
+
avatar: OptionType(StringType),
|
|
179
|
+
byline: OptionType(StringType),
|
|
180
|
+
action: OptionType(StringType),
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* A resolved Library card, over its media's type.
|
|
185
|
+
*
|
|
186
|
+
* @remarks
|
|
187
|
+
* Produced by the `item` accessor plus the dimension / group / search
|
|
188
|
+
* accessors at authoring time — the renderer never sees the host's row type.
|
|
189
|
+
* The face's fields ({@link LibraryCardFaceOf}), then:
|
|
190
|
+
*
|
|
191
|
+
* @typeParam C - The media's type
|
|
192
|
+
* @param content - The media's type — the recursion node in the inline arm,
|
|
193
|
+
* `UIComponentType` in `Library.Types.Item`
|
|
194
|
+
* @returns The card struct
|
|
195
|
+
*
|
|
196
|
+
* @property search - Optional filter text (card hides when unmatched)
|
|
197
|
+
* @property groups - Group value per group-by option key
|
|
198
|
+
* @property facets - The values the card holds per filter key
|
|
199
|
+
* @property dims - Secondary dimension value per dimension key
|
|
200
|
+
*/
|
|
201
|
+
export function LibraryItemOf(content) {
|
|
202
|
+
return StructType({
|
|
203
|
+
...LibraryCardFaceOf(content).fields,
|
|
204
|
+
search: OptionType(StringType),
|
|
205
|
+
groups: DictType(StringType, StringType),
|
|
206
|
+
facets: DictType(StringType, ArrayType(StringType)),
|
|
207
|
+
dims: DictType(StringType, LibraryDimValueType),
|
|
208
|
+
});
|
|
209
|
+
}
|
|
131
210
|
/**
|
|
132
211
|
* Toolbar metadata for one group-by option.
|
|
133
212
|
*
|
|
@@ -167,7 +246,10 @@ export const LibraryDimMetaType = StructType({
|
|
|
167
246
|
*
|
|
168
247
|
* @property height - Optional CSS height (e.g. `"480px"`, `"100%"`)
|
|
169
248
|
* @property maxHeight - Optional CSS max-height
|
|
170
|
-
* @property virtualization - Whether rows virtualize inside the scroll region (default `true`)
|
|
249
|
+
* @property virtualization - Whether rows virtualize inside the scroll region (default `true`); a gallery mounts every card
|
|
250
|
+
* @property columns - A gallery's cards across, in the grid layout
|
|
251
|
+
* @property mediaPlacement - Where a gallery card's media sits in the grid layout
|
|
252
|
+
* @property mediaSize - A gallery card's media height, placed on top, or width, placed at the start — a CSS length
|
|
171
253
|
*/
|
|
172
254
|
export const LibraryStyleType = StructType({
|
|
173
255
|
/** Optional CSS height (e.g. `"480px"`, `"100%"`) */
|
|
@@ -176,19 +258,31 @@ export const LibraryStyleType = StructType({
|
|
|
176
258
|
maxHeight: OptionType(StringType),
|
|
177
259
|
/** Whether rows virtualize inside the scroll region (default `true`) */
|
|
178
260
|
virtualization: OptionType(BooleanType),
|
|
261
|
+
/** A gallery's cards across, in the grid layout */
|
|
262
|
+
columns: OptionType(IntegerType),
|
|
263
|
+
/** Where a gallery card's media sits in the grid layout */
|
|
264
|
+
mediaPlacement: OptionType(LibraryMediaPlacementType),
|
|
265
|
+
/** A gallery card's media height (top) or width (start) — a CSS length */
|
|
266
|
+
mediaSize: OptionType(StringType),
|
|
179
267
|
});
|
|
180
268
|
// ============================================================================
|
|
181
269
|
// Root
|
|
182
270
|
// ============================================================================
|
|
183
271
|
/**
|
|
184
|
-
*
|
|
272
|
+
* The Library component's value, over its cards' media type.
|
|
185
273
|
*
|
|
186
274
|
* @remarks
|
|
187
275
|
* A draggable palette of things that get assigned onto grid surfaces
|
|
188
276
|
* (Roster, Blend): people, assets, vehicles, rooms. Declares the DnD
|
|
189
277
|
* **source** role under `id`; targets connect by listing that id in their
|
|
190
278
|
* `sources`. Pure source — it never receives drops, except as the
|
|
191
|
-
* return-to-palette sink for its connected targets.
|
|
279
|
+
* return-to-palette sink for its connected targets. A gallery draws the same
|
|
280
|
+
* cards large, each with its media.
|
|
281
|
+
*
|
|
282
|
+
* @typeParam C - The cards' media type
|
|
283
|
+
* @param content - The cards' media type — the recursion node in the inline
|
|
284
|
+
* arm, `UIComponentType` in `Library.Types.Library`
|
|
285
|
+
* @returns The root struct
|
|
192
286
|
*
|
|
193
287
|
* @property id - DnD source identity
|
|
194
288
|
* @property hint - Optional header-right caption (absent ⇒ no header band)
|
|
@@ -197,36 +291,39 @@ export const LibraryStyleType = StructType({
|
|
|
197
291
|
* @property groupSummaries - Right-aligned group-head summary text per group-by option key, per group value
|
|
198
292
|
* @property dimOptions - SECONDARY dimension toggles (empty = no toggle toolbar)
|
|
199
293
|
* @property defaultDimensions - Initially-visible dimension keys
|
|
294
|
+
* @property filterOptions - The Filter menu's facets (empty = no Filter menu)
|
|
200
295
|
* @property searchable - Whether the search input renders
|
|
201
|
-
* @property
|
|
296
|
+
* @property noun - Optional name for the items ("Search 47 components…")
|
|
297
|
+
* @property addLabel - Optional footer action label — a gallery's dashed last card
|
|
202
298
|
* @property onAdd - Optional footer action callback
|
|
299
|
+
* @property onCardClick - Optional callback fired with a card's key when it is clicked
|
|
203
300
|
* @property slice - Optional slice chrome (bound handle + rail affordances)
|
|
204
|
-
* @property style - Optional layout style (height / maxHeight / virtualization)
|
|
301
|
+
* @property style - Optional layout style (height / maxHeight / virtualization, and a gallery's columns and media)
|
|
302
|
+
* @property variant - How the cards are drawn; `none` is compact
|
|
303
|
+
* @property layout - How a gallery lays its cards out; `none` is the grid
|
|
304
|
+
* @property toolbar - Whether the Library draws its toolbar row — `false` for
|
|
305
|
+
* a host whose one toolbar serves several libraries
|
|
205
306
|
*/
|
|
206
|
-
export
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
slice: OptionType(SliceChromeType),
|
|
229
|
-
/** Optional layout style (height / maxHeight / virtualization) */
|
|
230
|
-
style: OptionType(LibraryStyleType),
|
|
231
|
-
});
|
|
307
|
+
export function LibraryRootOf(content) {
|
|
308
|
+
return StructType({
|
|
309
|
+
id: StringType,
|
|
310
|
+
hint: OptionType(StringType),
|
|
311
|
+
items: ArrayType(LibraryItemOf(content)),
|
|
312
|
+
groupOptions: ArrayType(LibraryGroupMetaType),
|
|
313
|
+
groupSummaries: DictType(StringType, DictType(StringType, StringType)),
|
|
314
|
+
dimOptions: ArrayType(LibraryDimMetaType),
|
|
315
|
+
defaultDimensions: ArrayType(StringType),
|
|
316
|
+
filterOptions: ArrayType(LibraryGroupMetaType),
|
|
317
|
+
searchable: BooleanType,
|
|
318
|
+
noun: OptionType(LibraryNounType),
|
|
319
|
+
addLabel: OptionType(StringType),
|
|
320
|
+
onAdd: OptionType(FunctionType([], NullType)),
|
|
321
|
+
onCardClick: OptionType(FunctionType([StringType], NullType)),
|
|
322
|
+
slice: OptionType(SliceChromeType),
|
|
323
|
+
style: OptionType(LibraryStyleType),
|
|
324
|
+
variant: OptionType(LibraryVariantType),
|
|
325
|
+
layout: OptionType(LibraryLayoutType),
|
|
326
|
+
toolbar: BooleanType,
|
|
327
|
+
});
|
|
328
|
+
}
|
|
232
329
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/collections/library/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,SAAS,EACT,WAAW,EACX,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,GAEf,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/collections/library/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,SAAS,EACT,WAAW,EACX,QAAQ,EACR,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,GAEf,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAC;IACxC,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;;;;;;GAcG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,mBAAmB,GAAG,mBAAmB,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,eAAe,CAAC,CAoJpI"}
|
|
@@ -13,7 +13,7 @@ import { UIComponentType } from "../../component.js";
|
|
|
13
13
|
import { StatusValueType } from "../../feedback/status/types.js";
|
|
14
14
|
import { DensityType } from "../../style/interaction.js";
|
|
15
15
|
import { DragEventType } from "../../contracts/drag.js";
|
|
16
|
-
import { EditingApplyResultType, EditingChangeSetTypeFor, EditingDraftFieldType, EditingPatchEventTypeWith, EditingReadinessType, EditingWireApplyType, buildKeyedInlineApply, } from "../../contracts/editing.js";
|
|
16
|
+
import { EditingApplyResultType, EditingChangeSetTypeFor, EditingDraftFieldType, EditingPatchEventTypeWith, EditingReadinessType, EditingWireApplyType, buildKeyedInlineApply, checkedEditingCallback, } from "../../contracts/editing.js";
|
|
17
17
|
import { SliceBindType, SliceChromeType } from "../../platform/slice/index.js";
|
|
18
18
|
import { SliceAffordanceType } from "../../contracts/slice-affordances.js";
|
|
19
19
|
import { PlanAxisType, PlanGrainType, PlanLinkType, PlanRowIdType, PlanGroupToggleEventType, PlanFooterItemType, PlanStyleType, PlanElementRefType, PlanBlocksType, PlanRowsType, PlanUiBindType, PlanEditingType, PlanReadyEntryType, PlanWriteRequestType, PLAN_PAGE_SIZE, } from "./types.js";
|
|
@@ -185,31 +185,6 @@ export function createPlanRoot(config) {
|
|
|
185
185
|
// ============================================================================
|
|
186
186
|
// Editing (#880) — the canvas's side of the shared session
|
|
187
187
|
// ============================================================================
|
|
188
|
-
/**
|
|
189
|
-
* An author callback, held to its exact East signature: a function of
|
|
190
|
-
* `inputs` returning `output` — sync, or async where allowed.
|
|
191
|
-
*
|
|
192
|
-
* @param value - The author's function
|
|
193
|
-
* @param inputs - Its parameter types
|
|
194
|
-
* @param output - Its result type
|
|
195
|
-
* @param name - The `editing` field, for the message
|
|
196
|
-
* @param allowAsync - Whether an async function is accepted
|
|
197
|
-
* @param expected - The signature in words, for the message
|
|
198
|
-
* @returns The function
|
|
199
|
-
* @throws {Error} Naming the field and the signature it must have
|
|
200
|
-
*/
|
|
201
|
-
function checkedCallback(value, inputs, output, name, allowAsync, expected) {
|
|
202
|
-
const fn = East.value(value);
|
|
203
|
-
const type = Expr.type(fn);
|
|
204
|
-
const callable = type.type === "Function" || (allowAsync && type.type === "AsyncFunction");
|
|
205
|
-
const matches = callable && type.inputs !== undefined && type.inputs.length === inputs.length
|
|
206
|
-
&& type.inputs.every((t, i) => isTypeEqual(t, inputs[i]))
|
|
207
|
-
&& type.output !== undefined && isTypeEqual(type.output, output);
|
|
208
|
-
if (!matches) {
|
|
209
|
-
throw new Error(`Plan: editing.${name} must be an East ${allowAsync ? "sync or async " : ""}function ${expected}`);
|
|
210
|
-
}
|
|
211
|
-
return fn;
|
|
212
|
-
}
|
|
213
188
|
/**
|
|
214
189
|
* The canvas's editing declaration (#880) — the shared session's fields over
|
|
215
190
|
* the source's top-level entries, and the canvas's own: its blocks with the
|
|
@@ -247,9 +222,9 @@ function buildPlanEditing(resolved, series, input) {
|
|
|
247
222
|
throw new Error("Plan: editing.mode \"auto\" applies each ready gesture at once — it needs onApply or onUpdate to apply it with");
|
|
248
223
|
}
|
|
249
224
|
if (resolved.kind !== "inline" && !resolved.pinned && input.onApply !== undefined) {
|
|
250
|
-
throw new Error("Plan: editing a paged source needs its revision and refresh — a pinned source (Data.bindPaged's handle
|
|
251
|
-
"
|
|
252
|
-
"
|
|
225
|
+
throw new Error("Plan: editing a paged source needs its revision and refresh — a pinned source (Data.bindPaged's handle): " +
|
|
226
|
+
"a batch is checked against the revision it began at, and the drafts retire once the source reads back at " +
|
|
227
|
+
"the revision it committed");
|
|
253
228
|
}
|
|
254
229
|
// An entry's id is its key's text — the first segment of its rows' paths:
|
|
255
230
|
// a String key as it is, any other key its `.east` text.
|
|
@@ -376,7 +351,7 @@ function buildPlanEditing(resolved, series, input) {
|
|
|
376
351
|
});
|
|
377
352
|
// The author's readiness check, one result per drafted entry, in order. A
|
|
378
353
|
// check that throws refuses its own entry alone.
|
|
379
|
-
const authorReady = input.ready === undefined ? undefined :
|
|
354
|
+
const authorReady = input.ready === undefined ? undefined : checkedEditingCallback("Plan", input.ready, [entryType, keyType], EditingReadinessType, "ready", false, "over this canvas's entry and key (R, K), returning Editing.Types.Readiness");
|
|
380
355
|
const ready = authorReady === undefined ? undefined : East.function([ArrayType(PlanReadyEntryType)], ArrayType(EditingReadinessType), ($, batch) => {
|
|
381
356
|
const check = $.const(authorReady);
|
|
382
357
|
const parse = $.const(keyOf);
|
|
@@ -396,18 +371,16 @@ function buildPlanEditing(resolved, series, input) {
|
|
|
396
371
|
const reader = live !== undefined
|
|
397
372
|
? live.read
|
|
398
373
|
: undefined;
|
|
399
|
-
const authorApply = input.onApply === undefined ? undefined :
|
|
400
|
-
|
|
374
|
+
const authorApply = input.onApply === undefined ? undefined : checkedEditingCallback("Plan", input.onApply, [batchType], EditingApplyResultType, "onApply", true, "over Editing.Types.ChangeSet(R, K) — this canvas's entry and key types — returning Editing.Types.ApplyResult");
|
|
375
|
+
// A paged source is one of the contract's shapes, both of which carry `id`.
|
|
401
376
|
const sourceId = resolved.kind === "paged"
|
|
402
|
-
?
|
|
403
|
-
? resolved.source.id
|
|
404
|
-
: East.value("", StringType))
|
|
377
|
+
? resolved.source.id
|
|
405
378
|
: reader !== undefined ? East.print(East.Blob.encodeBeast(reader, "v2"))
|
|
406
379
|
: authorApply !== undefined ? East.print(East.Blob.encodeBeast(authorApply, "v2"))
|
|
407
380
|
: East.value("readonly-inline", StringType);
|
|
408
381
|
let onApply;
|
|
409
382
|
if (input.onUpdate !== undefined && reader !== undefined) {
|
|
410
|
-
const writer =
|
|
383
|
+
const writer = checkedEditingCallback("Plan", input.onUpdate, [sourceType], NullType, "onUpdate", false, "over the whole Dict<K, R> the batch leaves, returning Null");
|
|
411
384
|
onApply = East.value(variant("sync", buildKeyedInlineApply(sourceType, sourceId, reader, writer)), EditingWireApplyType);
|
|
412
385
|
}
|
|
413
386
|
else if (authorApply !== undefined) {
|
|
@@ -427,7 +400,7 @@ function buildPlanEditing(resolved, series, input) {
|
|
|
427
400
|
})), EditingWireApplyType);
|
|
428
401
|
}
|
|
429
402
|
}
|
|
430
|
-
const authorPatch = input.onPatch === undefined ? undefined :
|
|
403
|
+
const authorPatch = input.onPatch === undefined ? undefined : checkedEditingCallback("Plan", input.onPatch, [eventType], NullType, "onPatch", false, "over Plan.Types.PatchEvent(R), returning Null");
|
|
431
404
|
const onPatch = authorPatch === undefined ? undefined : East.function([BlobType], NullType, ($, blob) => {
|
|
432
405
|
const observe = $.const(authorPatch);
|
|
433
406
|
$(observe(blob.decodeBeast(eventType, "v2")));
|