@marktiderman/genesis-core 2.13.0 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aggregate-y-qqJioF.d.ts +34 -0
- package/dist/{chunk-7PUFVNPB.js → chunk-2IGAUXYH.js} +5 -3
- package/dist/chunk-2IGAUXYH.js.map +1 -0
- package/dist/{chunk-KA3BUJ4H.js → chunk-42NVJJTT.js} +3 -3
- package/dist/{chunk-KA3BUJ4H.js.map → chunk-42NVJJTT.js.map} +1 -1
- package/dist/{chunk-JN47G4UE.js → chunk-7EFTWOMA.js} +56 -2
- package/dist/chunk-7EFTWOMA.js.map +1 -0
- package/dist/{chunk-S2VYJWB4.js → chunk-E3K2A3PK.js} +3 -3
- package/dist/{chunk-S2VYJWB4.js.map → chunk-E3K2A3PK.js.map} +1 -1
- package/dist/{chunk-SDAJSJNN.js → chunk-IYGVJFCV.js} +3 -3
- package/dist/{chunk-SDAJSJNN.js.map → chunk-IYGVJFCV.js.map} +1 -1
- package/dist/chunk-J54XXKQD.js +104 -0
- package/dist/chunk-J54XXKQD.js.map +1 -0
- package/dist/{chunk-OYDJGPDY.js → chunk-JFHRSG6G.js} +5 -5
- package/dist/{chunk-OYDJGPDY.js.map → chunk-JFHRSG6G.js.map} +1 -1
- package/dist/{chunk-UHOMTFBD.js → chunk-JTRRAVR4.js} +55 -3
- package/dist/chunk-JTRRAVR4.js.map +1 -0
- package/dist/{chunk-KV2HW4G4.js → chunk-LB6FMQQM.js} +11 -3
- package/dist/chunk-LB6FMQQM.js.map +1 -0
- package/dist/{chunk-G6GQPXQS.js → chunk-M5IX7C6U.js} +5 -5
- package/dist/{chunk-G6GQPXQS.js.map → chunk-M5IX7C6U.js.map} +1 -1
- package/dist/{chunk-AHFIS42U.js → chunk-NZP7YQHS.js} +5 -5
- package/dist/{chunk-AHFIS42U.js.map → chunk-NZP7YQHS.js.map} +1 -1
- package/dist/{chunk-DFABPMEQ.js → chunk-POUI7GAI.js} +5 -5
- package/dist/{chunk-DFABPMEQ.js.map → chunk-POUI7GAI.js.map} +1 -1
- package/dist/{chunk-NE2D74BP.js → chunk-QGWQ6LK3.js} +5 -5
- package/dist/{chunk-NE2D74BP.js.map → chunk-QGWQ6LK3.js.map} +1 -1
- package/dist/{chunk-2K4747KX.js → chunk-R3YXYVWF.js} +7 -2
- package/dist/chunk-R3YXYVWF.js.map +1 -0
- package/dist/{chunk-RFHUOXZC.js → chunk-SOO54YYY.js} +4 -4
- package/dist/{chunk-RFHUOXZC.js.map → chunk-SOO54YYY.js.map} +1 -1
- package/dist/{chunk-P3FHXRS2.js → chunk-TKK7D2ZT.js} +6 -6
- package/dist/{chunk-P3FHXRS2.js.map → chunk-TKK7D2ZT.js.map} +1 -1
- package/dist/{chunk-WDPM5TBO.js → chunk-UDSTWXXZ.js} +3 -3
- package/dist/{chunk-WDPM5TBO.js.map → chunk-UDSTWXXZ.js.map} +1 -1
- package/dist/chunk-XPBS5YE4.js +24 -0
- package/dist/chunk-XPBS5YE4.js.map +1 -0
- package/dist/csv.d.ts +1 -1
- package/dist/form-types.d.ts +1 -1
- package/dist/gallery/index.d.ts +5 -0
- package/dist/gallery/index.js.map +1 -1
- package/dist/hooks/index.d.ts +4 -2
- package/dist/hooks/index.js +16 -14
- package/dist/hooks/mutation-mode.d.ts +1 -1
- package/dist/hooks/mutation-mode.js +5 -4
- package/dist/hooks/related-keys.d.ts +1 -1
- package/dist/hooks/use-aggregate.d.ts +25 -0
- package/dist/hooks/use-aggregate.js +10 -0
- package/dist/hooks/use-aggregate.js.map +1 -0
- package/dist/hooks/use-capabilities.d.ts +1 -1
- package/dist/hooks/use-capabilities.js +4 -2
- package/dist/hooks/use-infinite-resource.d.ts +1 -1
- package/dist/hooks/use-infinite-resource.js +6 -4
- package/dist/hooks/use-link-options.d.ts +1 -1
- package/dist/hooks/use-link-options.js +8 -6
- package/dist/hooks/use-live.d.ts +1 -1
- package/dist/hooks/use-live.js +4 -2
- package/dist/hooks/use-one.d.ts +1 -1
- package/dist/hooks/use-one.js +6 -4
- package/dist/hooks/use-persisted-ui-state.js +4 -2
- package/dist/hooks/use-relation-label.d.ts +1 -1
- package/dist/hooks/use-relation-label.js +4 -2
- package/dist/hooks/use-resource-form.d.ts +1 -1
- package/dist/hooks/use-resource-form.js +8 -7
- package/dist/hooks/use-resource.d.ts +1 -1
- package/dist/hooks/use-resource.js +7 -6
- package/dist/hooks/use-write.d.ts +1 -1
- package/dist/index.d.ts +110 -6
- package/dist/index.js +125 -17
- package/dist/index.js.map +1 -1
- package/dist/navigation.d.ts +77 -1
- package/dist/navigation.js +32 -2
- package/dist/navigation.js.map +1 -1
- package/dist/provider/index.d.ts +12 -4
- package/dist/provider/index.js +3 -2
- package/dist/resource-view/index.d.ts +456 -166
- package/dist/resource-view/index.js +251 -5
- package/dist/resource-view/index.js.map +1 -1
- package/dist/schema/index.d.ts +3 -3
- package/dist/schema/index.js +1 -2
- package/dist/testing/index.d.ts +2 -2
- package/dist/{types-CtJxwoyv.d.ts → types-D4Bi_Iq8.d.ts} +76 -3
- package/dist/workspaces-BKhloJPK.d.ts +255 -0
- package/dist/workspaces.d.ts +2 -160
- package/dist/workspaces.js +1 -1
- package/dist/{write-outcome-Goy1v39G.d.ts → write-outcome-CHPT7Slm.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-2K4747KX.js.map +0 -1
- package/dist/chunk-7PUFVNPB.js.map +0 -1
- package/dist/chunk-JN47G4UE.js.map +0 -1
- package/dist/chunk-KV2HW4G4.js.map +0 -1
- package/dist/chunk-UHOMTFBD.js.map +0 -1
- package/dist/chunk-YDMKMNDS.js +0 -8
- package/dist/chunk-YDMKMNDS.js.map +0 -1
|
@@ -1,11 +1,232 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { C as ChipTone, R as Readiness } from '../status-BXRokZD9.js';
|
|
1
|
+
import { M as ResourceContract, j as DataRow, X as RowOf, d as Identifier, U as RowAction, F as FieldSchema, a as FilterParam, i as AggregateMetric, S as SortParam, A as AggregateParams } from '../types-D4Bi_Iq8.js';
|
|
2
|
+
import { R as Readiness, C as ChipTone } from '../status-BXRokZD9.js';
|
|
4
3
|
import { V as Viewer, R as ResourceScope } from '../viewer-scope-Dx0N9AYk.js';
|
|
5
4
|
export { G as GenesisViewerRoles, N as NO_VIEWER } from '../viewer-scope-Dx0N9AYk.js';
|
|
5
|
+
import { GalleryItem } from '../gallery/index.js';
|
|
6
|
+
import { Day } from '../dates.js';
|
|
6
7
|
import 'react';
|
|
7
8
|
import '@tanstack/react-query';
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
type AnyView = ResourceView<ResourceContract<any>, any>;
|
|
11
|
+
/** Equality filters for a child list, sent to the server: `{ brand_id: brand.id }`. `null` is "is empty". */
|
|
12
|
+
type RecordViewFilter = Readonly<Record<string, string | number | boolean | null>>;
|
|
13
|
+
interface SectionBase {
|
|
14
|
+
/** Unique in the record view; the screen's route segment or slot key. */
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
}
|
|
18
|
+
/** A child list: another view, filtered by this record. */
|
|
19
|
+
interface RecordViewListSection<Row extends DataRow = DataRow> extends SectionBase {
|
|
20
|
+
list: {
|
|
21
|
+
view: AnyView;
|
|
22
|
+
filter: (row: Row) => RecordViewFilter;
|
|
23
|
+
};
|
|
24
|
+
settings?: never;
|
|
25
|
+
}
|
|
26
|
+
/** A few of this record's own fields, edited in place. Each must be in `view.writable("edit")`. */
|
|
27
|
+
interface RecordViewSettingsSection<Name extends string = string> extends SectionBase {
|
|
28
|
+
settings: readonly Name[];
|
|
29
|
+
list?: never;
|
|
30
|
+
}
|
|
31
|
+
/** A section the screen fills itself, through a slot keyed by `id`. */
|
|
32
|
+
interface RecordViewSlotSection extends SectionBase {
|
|
33
|
+
list?: never;
|
|
34
|
+
settings?: never;
|
|
35
|
+
}
|
|
36
|
+
type RecordViewSection<Row extends DataRow = DataRow, Name extends string = string> = RecordViewListSection<Row> | RecordViewSettingsSection<Name> | RecordViewSlotSection;
|
|
37
|
+
/** One readiness check: "Has a logo", ok or not, and why not. */
|
|
38
|
+
interface RecordViewReadinessItem {
|
|
39
|
+
/** A stable key for the check; default its position and title. */
|
|
40
|
+
id?: string;
|
|
41
|
+
title: string;
|
|
42
|
+
ok: boolean;
|
|
43
|
+
reason?: string;
|
|
44
|
+
/** Genesis chip tones only. Default `success` when ok, `warning` when not. */
|
|
45
|
+
tone?: ViewTone;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* A record page template (ADR 0021): `standard` (a header with the summary and actions, then the
|
|
49
|
+
* sections) or `document` (a cover, an icon, a large title, the properties, then the body, like
|
|
50
|
+
* a page in a notes app).
|
|
51
|
+
*
|
|
52
|
+
* @stability Beta
|
|
53
|
+
*/
|
|
54
|
+
type RecordPageTemplate = "standard" | "document";
|
|
55
|
+
/**
|
|
56
|
+
* Where a `document` template finds its parts, by field name. Each is optional; a part whose
|
|
57
|
+
* field is empty on a row isn't drawn.
|
|
58
|
+
*
|
|
59
|
+
* @stability Beta
|
|
60
|
+
*/
|
|
61
|
+
interface RecordViewDocument<Name extends string = string> {
|
|
62
|
+
/** A text field holding the cover image's URL. */
|
|
63
|
+
cover?: Name;
|
|
64
|
+
/** A text field holding the icon: an emoji or a short text, or an image's URL. */
|
|
65
|
+
icon?: Name;
|
|
66
|
+
/** The fields listed under the title, as label and value, in order. */
|
|
67
|
+
properties?: readonly Name[];
|
|
68
|
+
/** The long text below the properties. */
|
|
69
|
+
body?: Name;
|
|
70
|
+
}
|
|
71
|
+
/** What `defineRecordView` accepts. */
|
|
72
|
+
interface RecordViewDefinition<C extends ResourceContract, Row extends DataRow = RowOf<C>> {
|
|
73
|
+
/** The view actions the header offers, by name, in order. Default: every view action. */
|
|
74
|
+
header?: {
|
|
75
|
+
actions?: readonly string[];
|
|
76
|
+
};
|
|
77
|
+
/** The sections. A `document` template may have none (the document is the page). */
|
|
78
|
+
sections: readonly RecordViewSection<Row, FieldNameOf<C>>[];
|
|
79
|
+
readiness?: (row: Row) => readonly RecordViewReadinessItem[];
|
|
80
|
+
/** The record page template. Default `standard`, the page as before. */
|
|
81
|
+
template?: RecordPageTemplate;
|
|
82
|
+
/** With `template: "document"`: the fields its cover, icon, properties and body show. */
|
|
83
|
+
document?: RecordViewDocument<FieldNameOf<C>>;
|
|
84
|
+
}
|
|
85
|
+
/** A section as a renderer draws it. */
|
|
86
|
+
type ResolvedRecordViewSection = {
|
|
87
|
+
readonly id: string;
|
|
88
|
+
readonly label: string;
|
|
89
|
+
readonly kind: "list";
|
|
90
|
+
readonly view: AnyView;
|
|
91
|
+
} | {
|
|
92
|
+
readonly id: string;
|
|
93
|
+
readonly label: string;
|
|
94
|
+
readonly kind: "settings";
|
|
95
|
+
readonly settings: readonly string[];
|
|
96
|
+
} | {
|
|
97
|
+
readonly id: string;
|
|
98
|
+
readonly label: string;
|
|
99
|
+
readonly kind: "slot";
|
|
100
|
+
};
|
|
101
|
+
/** A header action with whether this row allows it. */
|
|
102
|
+
interface RecordViewHeaderAction {
|
|
103
|
+
readonly name: string;
|
|
104
|
+
readonly label: string;
|
|
105
|
+
readonly confirm?: string;
|
|
106
|
+
readonly description?: string;
|
|
107
|
+
readonly destructive?: boolean;
|
|
108
|
+
/** `true`, or the view guard's reason. Only narrows what the server allows. */
|
|
109
|
+
readonly allowed: Allowed;
|
|
110
|
+
}
|
|
111
|
+
/** The header for one row: the view's summary plus the header's actions. */
|
|
112
|
+
interface RecordViewHeader {
|
|
113
|
+
readonly title: string;
|
|
114
|
+
readonly subtitle?: string;
|
|
115
|
+
readonly chips: readonly {
|
|
116
|
+
label: string;
|
|
117
|
+
tone?: ViewTone;
|
|
118
|
+
}[];
|
|
119
|
+
readonly actions: readonly RecordViewHeaderAction[];
|
|
120
|
+
}
|
|
121
|
+
/** What a screen and its provider add to the header: they only narrow the view's guards. */
|
|
122
|
+
interface RecordViewHeaderOptions<Row extends DataRow = DataRow> {
|
|
123
|
+
/** The screen's own rule: `false` hides the action, a sentence refuses it with that reason. */
|
|
124
|
+
can?: (action: string, row: Row) => Allowed | boolean;
|
|
125
|
+
/** Whether anything can run actions here (the screen's `onAction`, or the provider's `runAction`). `false` hides them all. */
|
|
126
|
+
runnable?: boolean;
|
|
127
|
+
/** The action names the provider reports serving (`ResourceSchema.actions`), when it reports them. Others are hidden. */
|
|
128
|
+
served?: readonly string[];
|
|
129
|
+
/** Who is looking (`useViewer()`), for the view's action guards. Without it they get no one. */
|
|
130
|
+
viewer?: Viewer;
|
|
131
|
+
}
|
|
132
|
+
/** A readiness check with its tone resolved. */
|
|
133
|
+
interface ResolvedReadinessItem {
|
|
134
|
+
/** Stable, for list keys: the check's `id`, or its position and title. */
|
|
135
|
+
readonly key: string;
|
|
136
|
+
readonly title: string;
|
|
137
|
+
readonly ok: boolean;
|
|
138
|
+
readonly reason?: string;
|
|
139
|
+
readonly tone: ViewTone;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Any record view, whatever its contract: the type a view's `recordView` returns. Name it on that
|
|
143
|
+
* function (`recordView: (): AnyRecordView => brandRecordView`), since the record view is defined
|
|
144
|
+
* from the view and TypeScript can't infer one from the other.
|
|
145
|
+
*
|
|
146
|
+
* @stability Beta
|
|
147
|
+
*/
|
|
148
|
+
type AnyRecordView = RecordView<ResourceContract<any>, any>;
|
|
149
|
+
/** What `defineRecordView` returns: frozen, with pure helpers for the renderers. */
|
|
150
|
+
interface RecordView<C extends ResourceContract = ResourceContract, Row extends DataRow = RowOf<C>> {
|
|
151
|
+
readonly view: ResourceView<C, Row>;
|
|
152
|
+
readonly sections: readonly ResolvedRecordViewSection[];
|
|
153
|
+
/** The header's action names, in order. */
|
|
154
|
+
readonly headerActions: readonly string[];
|
|
155
|
+
readonly hasReadiness: boolean;
|
|
156
|
+
/** The record page template: `standard` unless the definition says `document`. */
|
|
157
|
+
readonly template: RecordPageTemplate;
|
|
158
|
+
/** The document template's fields (frozen); empty for `standard`. */
|
|
159
|
+
readonly document: Readonly<RecordViewDocument>;
|
|
160
|
+
section(id: string): ResolvedRecordViewSection | undefined;
|
|
161
|
+
/** The record's address for the provider: its key fields (`keyFields`), composite keys encoded. */
|
|
162
|
+
recordId(row: Row): Identifier;
|
|
163
|
+
/**
|
|
164
|
+
* Why settings can't be saved for this row and viewer: the view's `can("update", row, viewer)`
|
|
165
|
+
* reason, or `null` when they can. Renderers then show the settings read-only with the reason.
|
|
166
|
+
* Without a viewer the guard gets no one, so one that needs the viewer locks them.
|
|
167
|
+
*/
|
|
168
|
+
settingsLocked(row: Row, viewer?: Viewer): string | null;
|
|
169
|
+
headerFor(row: Row, options?: RecordViewHeaderOptions<Row>): RecordViewHeader;
|
|
170
|
+
/**
|
|
171
|
+
* Settings fields as the view's form resolves them (`view.form("edit")`), in the order listed:
|
|
172
|
+
* one section's, or every settings section's without an id.
|
|
173
|
+
*/
|
|
174
|
+
settingsFields(sectionId?: string): readonly ResolvedFormField[];
|
|
175
|
+
/** Only the section's listed keys that `values` has: what a save sends. */
|
|
176
|
+
settingsPatch(sectionId: string, values: Readonly<Record<string, unknown>>): Record<string, unknown>;
|
|
177
|
+
/**
|
|
178
|
+
* A list section's filter for this row. In development, a filter with no key, or a value that
|
|
179
|
+
* isn't a string, number, boolean or null, throws: it would show every child row.
|
|
180
|
+
*/
|
|
181
|
+
listFilter(sectionId: string, row: Row): RecordViewFilter;
|
|
182
|
+
/** The readiness checks for this row, tones resolved; empty without `readiness`. */
|
|
183
|
+
readinessFor(row: Row): readonly ResolvedReadinessItem[];
|
|
184
|
+
/**
|
|
185
|
+
* The checks in one chip's terms (genesis-core/resource's `readinessOf`): an unmet `danger`
|
|
186
|
+
* check is a problem, any other unmet check one to look at. `null` without `readiness`. Draw
|
|
187
|
+
* it with `readinessChip`.
|
|
188
|
+
*/
|
|
189
|
+
readinessSummary(row: Row): Readiness | null;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Whether two values are the same as a settings form holds them: 2 and "2", and null, undefined
|
|
193
|
+
* and "", are the same. A settings section compares an edit with the row through it, so an edit
|
|
194
|
+
* back to the stored value isn't a change (web and native RecordView).
|
|
195
|
+
*/
|
|
196
|
+
declare function sameFormValue(a: unknown, b: unknown): boolean;
|
|
197
|
+
/** Whether a value is a record view (`defineRecordView`'s result). */
|
|
198
|
+
declare function isRecordView(value: unknown): value is RecordView;
|
|
199
|
+
/**
|
|
200
|
+
* One record's screen from its view:
|
|
201
|
+
*
|
|
202
|
+
* ```ts
|
|
203
|
+
* export const brandRecordView = defineRecordView(brandsView, {
|
|
204
|
+
* header: { actions: ["archive"] },
|
|
205
|
+
* sections: [
|
|
206
|
+
* { id: "products", label: "Products", list: { view: productsView, filter: (b) => ({ brand_id: b.id }) } },
|
|
207
|
+
* { id: "settings", label: "Settings", settings: ["name", "website"] },
|
|
208
|
+
* { id: "activity", label: "Activity" }, // the screen fills it
|
|
209
|
+
* ],
|
|
210
|
+
* readiness: (b) => [{ title: "Has a website", ok: !!b.website, reason: "Add the website." }],
|
|
211
|
+
* });
|
|
212
|
+
* ```
|
|
213
|
+
*
|
|
214
|
+
* Throws {@link ViewDefinitionError} for a settings field the view can't write, a header action
|
|
215
|
+
* the view doesn't define, a repeated section id, or a section that holds another record view.
|
|
216
|
+
*/
|
|
217
|
+
declare function defineRecordView<C extends ResourceContract, Row extends DataRow = RowOf<C>>(view: ResourceView<C, Row>, definition: RecordViewDefinition<C, Row>): RecordView<C, Row>;
|
|
218
|
+
/** @deprecated Renamed `defineRecordView`. Removed in the next major. @stability Deprecated */
|
|
219
|
+
declare const defineWorkspace: typeof defineRecordView;
|
|
220
|
+
/** @deprecated Renamed `isRecordView`. Removed in the next major. @stability Deprecated */
|
|
221
|
+
declare const isWorkspace: typeof isRecordView;
|
|
222
|
+
/** @deprecated Renamed `RecordView`. Removed in the next major. @stability Deprecated */
|
|
223
|
+
type ResourceWorkspace<C extends ResourceContract = ResourceContract, Row extends DataRow = RowOf<C>> = RecordView<C, Row>;
|
|
224
|
+
/** @deprecated Renamed `RecordViewDefinition`. */
|
|
225
|
+
type WorkspaceDefinition<C extends ResourceContract, Row extends DataRow = RowOf<C>> = RecordViewDefinition<C, Row>;
|
|
226
|
+
/** @deprecated Renamed `RecordViewSection`. */
|
|
227
|
+
type WorkspaceSection<Row extends DataRow = DataRow, Name extends string = string> = RecordViewSection<Row, Name>;
|
|
228
|
+
/** @deprecated Renamed `RecordViewHeaderAction`. */
|
|
229
|
+
type WorkspaceHeaderAction = RecordViewHeaderAction;
|
|
9
230
|
|
|
10
231
|
/** A chip's colour: the one Genesis tone set (`ChipTone`, genesis-core/resource). */
|
|
11
232
|
type ViewTone = ChipTone;
|
|
@@ -364,6 +585,16 @@ interface ViewGallery<Name extends string = string> {
|
|
|
364
585
|
/** The target row height, px on the web and points on a phone. Default 180, as `GalleryGrid`. */
|
|
365
586
|
rowHeight?: number;
|
|
366
587
|
}
|
|
588
|
+
/**
|
|
589
|
+
* How a record opens from a view (a record page, ADR 0021): a **side peek** (a panel at the edge,
|
|
590
|
+
* the list still beside it), a **center peek** (a dialog over the list) or a full **page** (the
|
|
591
|
+
* record's own route).
|
|
592
|
+
*
|
|
593
|
+
* @stability Beta
|
|
594
|
+
*/
|
|
595
|
+
type RecordOpen = "side-peek" | "center-peek" | "page";
|
|
596
|
+
/** The open modes, in the order a picker lists them. @stability Beta */
|
|
597
|
+
declare const RECORD_OPEN_MODES: readonly RecordOpen[];
|
|
367
598
|
/** What `defineView` accepts. */
|
|
368
599
|
interface ViewDefinition<C extends ResourceContract, Row extends DataRow = RowOf<C>> {
|
|
369
600
|
copy?: ViewCopy;
|
|
@@ -402,6 +633,18 @@ interface ViewDefinition<C extends ResourceContract, Row extends DataRow = RowOf
|
|
|
402
633
|
gallery?: ViewGallery<FieldNameOf<C>>;
|
|
403
634
|
/** Group rows under headers by this field. */
|
|
404
635
|
groupBy?: FieldNameOf<C>;
|
|
636
|
+
/**
|
|
637
|
+
* How a record opens from every view type of this view (ADR 0021): `side-peek` (default),
|
|
638
|
+
* `center-peek` or `page`. A screen's own `open` (or ResourcePage's older `detail`) wins.
|
|
639
|
+
*/
|
|
640
|
+
open?: RecordOpen;
|
|
641
|
+
/**
|
|
642
|
+
* The record view a peek renders: a function, because the record view is defined from this
|
|
643
|
+
* view, with its return type named so TypeScript needn't infer one from the other:
|
|
644
|
+
* `recordView: (): AnyRecordView => brandRecordView`. Without one, a peek shows the view's
|
|
645
|
+
* columns as today.
|
|
646
|
+
*/
|
|
647
|
+
recordView?: () => AnyRecordView;
|
|
405
648
|
/**
|
|
406
649
|
* Default order; `manual: true` turns on drag to reorder, writing this field. `nulls` says where
|
|
407
650
|
* rows with no value go (unset, the store decides: Postgres puts them first on a descending sort).
|
|
@@ -599,6 +842,40 @@ declare function initialsOf(name: string | undefined, options?: {
|
|
|
599
842
|
*/
|
|
600
843
|
declare function rowPicture(summary: RowSummary): RowPicture | null;
|
|
601
844
|
|
|
845
|
+
/**
|
|
846
|
+
* One group of rows: the value they share, its words and the rows, in the order they came.
|
|
847
|
+
*
|
|
848
|
+
* @stability Beta
|
|
849
|
+
*/
|
|
850
|
+
interface RowGroup<Row extends DataRow = DataRow> {
|
|
851
|
+
/** Stable, for list keys: the value as text, or `""` for rows with no value. */
|
|
852
|
+
readonly key: string;
|
|
853
|
+
/** The value the rows share (`null` for the group with none). */
|
|
854
|
+
readonly value: unknown;
|
|
855
|
+
/** The value in words (`view.valueLabel`), or `emptyLabel` for the group with none. */
|
|
856
|
+
readonly label: string;
|
|
857
|
+
readonly rows: readonly Row[];
|
|
858
|
+
}
|
|
859
|
+
/** @stability Beta */
|
|
860
|
+
interface GroupRowsOptions {
|
|
861
|
+
/** The field to group by. Default the view's `groupBy`. */
|
|
862
|
+
field?: string;
|
|
863
|
+
/** The words for rows with no value. Default "No {field label}". */
|
|
864
|
+
emptyLabel?: string;
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* A view's rows in groups, in the order each group first appears (the server's sort, so loading
|
|
868
|
+
* more never reorders what's on screen). Without a field (no `groupBy` and none given), one group
|
|
869
|
+
* holding every row, with an empty label.
|
|
870
|
+
*
|
|
871
|
+
* ```ts
|
|
872
|
+
* for (const group of groupRows(tasksView, rows)) console.log(group.label, group.rows.length);
|
|
873
|
+
* ```
|
|
874
|
+
*
|
|
875
|
+
* @stability Beta
|
|
876
|
+
*/
|
|
877
|
+
declare function groupRows<Row extends DataRow>(view: ResourceView<ResourceContract<any>, Row>, rows: readonly Row[], options?: GroupRowsOptions): RowGroup<Row>[];
|
|
878
|
+
|
|
602
879
|
type ScopeValue = string | number | boolean | null;
|
|
603
880
|
/**
|
|
604
881
|
* The view's declared scope keys with their values from the viewer's scope, ready to pass as a
|
|
@@ -718,184 +995,197 @@ declare function setExpanded(expanded: ReadonlySet<string>, id: string, open: bo
|
|
|
718
995
|
*/
|
|
719
996
|
declare function cascadeSelection(selected: ReadonlySet<string>, id: string, descendants: readonly string[]): Set<string>;
|
|
720
997
|
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
998
|
+
/** The built-in kinds of widget. */
|
|
999
|
+
type WidgetKind = "number" | "progress" | "streak" | "list" | "chart";
|
|
1000
|
+
/** How a widget's number reads: plain, short (`1.2k`), a percent of 1, a currency, or your own words. */
|
|
1001
|
+
type WidgetFormat = "number" | "compact" | "percent" | {
|
|
1002
|
+
currency: string;
|
|
1003
|
+
maximumFractionDigits?: number;
|
|
1004
|
+
} | ((value: number) => string);
|
|
1005
|
+
type Scalar = string | number | boolean | null;
|
|
1006
|
+
/** Values a widget narrows its view by, as a screen's `filter`: `{ status: "open" }`, `{ owner_id: [a, b] }`. */
|
|
1007
|
+
type WidgetFilter = Readonly<Record<string, Scalar | readonly (string | number)[]>>;
|
|
1008
|
+
/** What every kind of widget says. */
|
|
1009
|
+
interface WidgetBase<C extends ResourceContract = ResourceContract, Row extends DataRow = DataRow> {
|
|
1010
|
+
/** Stable, unique on its dashboard: a key, a test id, a saved layout's entry. */
|
|
726
1011
|
id: string;
|
|
1012
|
+
/** What the tile is called ("Open deals"). */
|
|
727
1013
|
label: string;
|
|
1014
|
+
/** The view it reads: its resource, scope keys, presets, fields and who may read them. */
|
|
1015
|
+
view: ResourceView<C, Row & any>;
|
|
1016
|
+
/** One of the view's presets: its filter narrows the rows, as a tab would. */
|
|
1017
|
+
preset?: string;
|
|
1018
|
+
/** More values to narrow by, over the scope and the preset. */
|
|
1019
|
+
filter?: WidgetFilter;
|
|
1020
|
+
/** A short line under the value ("this quarter"). */
|
|
1021
|
+
description?: string;
|
|
1022
|
+
/** Where the tile goes when pressed: the full view, usually. */
|
|
1023
|
+
href?: string;
|
|
1024
|
+
/**
|
|
1025
|
+
* Whether this viewer sees the tile: `true`, or the reason not. Only narrows; the view's own
|
|
1026
|
+
* field permissions (a field the viewer can't read) hide it too, and row security decides
|
|
1027
|
+
* which rows any total covers.
|
|
1028
|
+
*/
|
|
1029
|
+
can?: (viewer: Viewer | undefined) => Allowed;
|
|
1030
|
+
/** Keep the tile current with changes made elsewhere (`DataProvider.subscribe`). Default true. */
|
|
1031
|
+
live?: boolean;
|
|
728
1032
|
}
|
|
729
|
-
/** A
|
|
730
|
-
interface
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
settings?: never;
|
|
1033
|
+
/** A number: a count, or the sum, average, lowest or highest of a field. */
|
|
1034
|
+
interface NumberWidget<C extends ResourceContract = ResourceContract, Row extends DataRow = DataRow> extends WidgetBase<C, Row> {
|
|
1035
|
+
kind: "number";
|
|
1036
|
+
/** What to total. Default `{ fn: "count" }`. */
|
|
1037
|
+
metric?: AggregateMetric;
|
|
1038
|
+
format?: WidgetFormat;
|
|
736
1039
|
}
|
|
737
|
-
/**
|
|
738
|
-
interface
|
|
739
|
-
|
|
740
|
-
|
|
1040
|
+
/** Progress toward a goal: a total over a fixed number, or over another total (done of all). */
|
|
1041
|
+
interface ProgressWidget<C extends ResourceContract = ResourceContract, Row extends DataRow = DataRow> extends WidgetBase<C, Row> {
|
|
1042
|
+
kind: "progress";
|
|
1043
|
+
/** What counts as done. Default `{ fn: "count" }` over the widget's rows. */
|
|
1044
|
+
metric?: AggregateMetric;
|
|
1045
|
+
/**
|
|
1046
|
+
* The goal: a number, or a total over the view's scope and `goalFilter` (not the preset or
|
|
1047
|
+
* `filter`): `{ fn: "count" }` with the preset "done" makes "done of all".
|
|
1048
|
+
*/
|
|
1049
|
+
goal: number | AggregateMetric;
|
|
1050
|
+
/** Narrows the goal's rows when it is a total. */
|
|
1051
|
+
goalFilter?: WidgetFilter;
|
|
1052
|
+
format?: WidgetFormat;
|
|
741
1053
|
}
|
|
742
|
-
/** A
|
|
743
|
-
interface
|
|
744
|
-
|
|
745
|
-
|
|
1054
|
+
/** A streak: how many days (or weeks) in a row, up to today, have at least one row. */
|
|
1055
|
+
interface StreakWidget<C extends ResourceContract = ResourceContract, Row extends DataRow = DataRow> extends WidgetBase<C, Row> {
|
|
1056
|
+
kind: "streak";
|
|
1057
|
+
/** The date (or timestamp) field a row counts on. */
|
|
1058
|
+
dateField: string;
|
|
1059
|
+
/** Default `day`. Weeks start on Monday. */
|
|
1060
|
+
unit?: "day" | "week";
|
|
1061
|
+
/** The zone days are counted in. Default the device's. */
|
|
1062
|
+
timeZone?: string;
|
|
1063
|
+
/** The most recent rows read to count it. Default 400. */
|
|
1064
|
+
limit?: number;
|
|
746
1065
|
}
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
/**
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
reason?: string;
|
|
755
|
-
/** Genesis chip tones only. Default `success` when ok, `warning` when not. */
|
|
756
|
-
tone?: ViewTone;
|
|
1066
|
+
/** A short list: the first few rows, as the view names them. */
|
|
1067
|
+
interface ListWidget<C extends ResourceContract = ResourceContract, Row extends DataRow = DataRow> extends WidgetBase<C, Row> {
|
|
1068
|
+
kind: "list";
|
|
1069
|
+
/** Rows shown. Default 5, at most 50. */
|
|
1070
|
+
limit?: number;
|
|
1071
|
+
/** Their order. Default the view's `orderBy`. */
|
|
1072
|
+
sort?: SortParam;
|
|
757
1073
|
}
|
|
758
|
-
/**
|
|
759
|
-
interface
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
|
|
1074
|
+
/** A chart: one bar (or point) per value of a field, with a count or a total each. */
|
|
1075
|
+
interface ChartWidget<C extends ResourceContract = ResourceContract, Row extends DataRow = DataRow> extends WidgetBase<C, Row> {
|
|
1076
|
+
kind: "chart";
|
|
1077
|
+
/** The field whose values are the bars. */
|
|
1078
|
+
groupBy: string;
|
|
1079
|
+
/** Each bar's height. Default `{ fn: "count" }`. */
|
|
1080
|
+
metric?: AggregateMetric;
|
|
1081
|
+
/** Default `bar`. */
|
|
1082
|
+
chart?: "bar" | "line";
|
|
1083
|
+
/** The most rows read to draw it. Default 1000. */
|
|
1084
|
+
limit?: number;
|
|
1085
|
+
format?: WidgetFormat;
|
|
766
1086
|
}
|
|
767
|
-
/**
|
|
768
|
-
type
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
readonly
|
|
772
|
-
readonly view: AnyView;
|
|
773
|
-
} | {
|
|
774
|
-
readonly id: string;
|
|
775
|
-
readonly label: string;
|
|
776
|
-
readonly kind: "settings";
|
|
777
|
-
readonly settings: readonly string[];
|
|
778
|
-
} | {
|
|
779
|
-
readonly id: string;
|
|
780
|
-
readonly label: string;
|
|
781
|
-
readonly kind: "slot";
|
|
1087
|
+
/** What `defineWidget` accepts. */
|
|
1088
|
+
type WidgetDefinition<C extends ResourceContract = ResourceContract, Row extends DataRow = DataRow> = NumberWidget<C, Row> | ProgressWidget<C, Row> | StreakWidget<C, Row> | ListWidget<C, Row> | ChartWidget<C, Row>;
|
|
1089
|
+
/** A checked, frozen widget. */
|
|
1090
|
+
type DefinedWidget<C extends ResourceContract = ResourceContract, Row extends DataRow = DataRow> = Readonly<WidgetDefinition<C, Row>> & {
|
|
1091
|
+
readonly __widget: true;
|
|
782
1092
|
};
|
|
783
|
-
/**
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
1093
|
+
/** Every problem with a widget; empty when it is sound. */
|
|
1094
|
+
declare function widgetProblems(input: WidgetDefinition): string[];
|
|
1095
|
+
/**
|
|
1096
|
+
* Define a widget: a tile fed by a view. Checks it against the view (its fields, presets) and
|
|
1097
|
+
* returns it frozen. Throws {@link ViewDefinitionError} with every problem.
|
|
1098
|
+
*
|
|
1099
|
+
* ```ts
|
|
1100
|
+
* const openDeals = defineWidget({ id: "open-deals", kind: "number", label: "Open deals", view: dealsView, preset: "open" });
|
|
1101
|
+
* const pipeline = defineWidget({
|
|
1102
|
+
* id: "pipeline", kind: "number", label: "Pipeline", view: dealsView, preset: "open",
|
|
1103
|
+
* metric: { fn: "sum", field: "amount" }, format: { currency: "USD" },
|
|
1104
|
+
* });
|
|
1105
|
+
* ```
|
|
1106
|
+
*
|
|
1107
|
+
* @stability Beta
|
|
1108
|
+
*/
|
|
1109
|
+
declare function defineWidget<C extends ResourceContract, Row extends DataRow>(input: WidgetDefinition<C, Row>): DefinedWidget<C, Row>;
|
|
1110
|
+
/** Whether a value is a widget from `defineWidget`. */
|
|
1111
|
+
declare function isWidget(value: unknown): value is DefinedWidget;
|
|
1112
|
+
/**
|
|
1113
|
+
* Whether this viewer sees the widget: `true`, or the reason not. A field it totals that the
|
|
1114
|
+
* viewer can't read (`permissions.read: false` in the contract) hides it, then the widget's own
|
|
1115
|
+
* `can`. Only narrows: row security still decides the rows behind any total.
|
|
1116
|
+
*
|
|
1117
|
+
* @stability Beta
|
|
1118
|
+
*/
|
|
1119
|
+
declare function resolveWidgetAccess(widget: WidgetDefinition, viewer?: Viewer): Allowed;
|
|
1120
|
+
/** What a widget asks its provider for, from its view, scope, preset and filter. */
|
|
1121
|
+
interface WidgetRequest {
|
|
1122
|
+
resource: string;
|
|
1123
|
+
/** The preset's filter, the scope, then the widget's own filter. */
|
|
1124
|
+
filters: FilterParam[];
|
|
1125
|
+
/** Totals to ask `aggregate` for (number, progress). */
|
|
1126
|
+
aggregate?: AggregateParams;
|
|
1127
|
+
/** The goal's totals, over the scope and `goalFilter` only (progress with a total goal). */
|
|
1128
|
+
goal?: AggregateParams;
|
|
1129
|
+
/** Rows to read (streak, list, chart): how many and in what order. */
|
|
1130
|
+
rows?: {
|
|
1131
|
+
perPage: number;
|
|
1132
|
+
sort?: SortParam;
|
|
1133
|
+
};
|
|
813
1134
|
}
|
|
814
|
-
/**
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
1135
|
+
/**
|
|
1136
|
+
* What a widget needs from its provider, for a viewer working in `scope` (ViewerScope's): the
|
|
1137
|
+
* filters its view would list with, and either the totals or the rows. `<Widget>` and a phone
|
|
1138
|
+
* build their reads from this.
|
|
1139
|
+
*
|
|
1140
|
+
* @stability Beta
|
|
1141
|
+
*/
|
|
1142
|
+
declare function resolveWidgetRequest(widget: WidgetDefinition, scope?: ResourceScope | null): WidgetRequest;
|
|
1143
|
+
/** A streak's length and whether today (this week) is already in it. */
|
|
1144
|
+
interface Streak {
|
|
1145
|
+
/** Days (or weeks) in a row, ending today or, while today is still open, yesterday. */
|
|
1146
|
+
current: number;
|
|
1147
|
+
/** Whether today (this week) has a row. */
|
|
1148
|
+
today: boolean;
|
|
1149
|
+
unit: "day" | "week";
|
|
822
1150
|
}
|
|
823
|
-
/**
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
* Settings fields as the view's form resolves them (`view.form("edit")`), in the order listed:
|
|
842
|
-
* one section's, or every settings section's without an id.
|
|
843
|
-
*/
|
|
844
|
-
settingsFields(sectionId?: string): readonly ResolvedFormField[];
|
|
845
|
-
/** Only the section's listed keys that `values` has: what a save sends. */
|
|
846
|
-
settingsPatch(sectionId: string, values: Readonly<Record<string, unknown>>): Record<string, unknown>;
|
|
847
|
-
/**
|
|
848
|
-
* A list section's filter for this row. In development, a filter with no key, or a value that
|
|
849
|
-
* isn't a string, number, boolean or null, throws: it would show every child row.
|
|
850
|
-
*/
|
|
851
|
-
listFilter(sectionId: string, row: Row): RecordViewFilter;
|
|
852
|
-
/** The readiness checks for this row, tones resolved; empty without `readiness`. */
|
|
853
|
-
readinessFor(row: Row): readonly ResolvedReadinessItem[];
|
|
854
|
-
/**
|
|
855
|
-
* The checks in one chip's terms (genesis-core/resource's `readinessOf`): an unmet `danger`
|
|
856
|
-
* check is a problem, any other unmet check one to look at. `null` without `readiness`. Draw
|
|
857
|
-
* it with `readinessChip`.
|
|
858
|
-
*/
|
|
859
|
-
readinessSummary(row: Row): Readiness | null;
|
|
1151
|
+
/**
|
|
1152
|
+
* How many days (or weeks) in a row have at least one of `values` (dates or timestamps), ending
|
|
1153
|
+
* today, or yesterday while today has none yet, so a streak isn't broken before the day is over.
|
|
1154
|
+
*
|
|
1155
|
+
* @stability Beta
|
|
1156
|
+
*/
|
|
1157
|
+
declare function resolveStreak(values: readonly unknown[], options?: {
|
|
1158
|
+
unit?: "day" | "week";
|
|
1159
|
+
timeZone?: string;
|
|
1160
|
+
today?: Day;
|
|
1161
|
+
}): Streak;
|
|
1162
|
+
/** One bar (or point) of a chart widget. */
|
|
1163
|
+
interface ChartPoint {
|
|
1164
|
+
/** The field's value, as text (`"(none)"` for an empty one). */
|
|
1165
|
+
key: string;
|
|
1166
|
+
/** The value in words (`ResourceView.valueLabel`). */
|
|
1167
|
+
label: string;
|
|
1168
|
+
value: number;
|
|
860
1169
|
}
|
|
861
1170
|
/**
|
|
862
|
-
*
|
|
863
|
-
*
|
|
864
|
-
*
|
|
1171
|
+
* A chart widget's bars from its rows: one per value of `groupBy`, in the field's choice order
|
|
1172
|
+
* when it has choices (else by value), each the metric over the rows with that value.
|
|
1173
|
+
*
|
|
1174
|
+
* @stability Beta
|
|
865
1175
|
*/
|
|
866
|
-
declare function
|
|
867
|
-
/** Whether a value is a record view (`defineRecordView`'s result). */
|
|
868
|
-
declare function isRecordView(value: unknown): value is RecordView;
|
|
1176
|
+
declare function resolveChartSeries(widget: ChartWidget, rows: readonly Record<string, unknown>[]): ChartPoint[];
|
|
869
1177
|
/**
|
|
870
|
-
*
|
|
1178
|
+
* A widget's number in words: `null` reads "—", a percent is of 1 (0.42 is 42%).
|
|
871
1179
|
*
|
|
872
|
-
*
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
*
|
|
877
|
-
*
|
|
878
|
-
* { id: "activity", label: "Activity" }, // the screen fills it
|
|
879
|
-
* ],
|
|
880
|
-
* readiness: (b) => [{ title: "Has a website", ok: !!b.website, reason: "Add the website." }],
|
|
881
|
-
* });
|
|
882
|
-
* ```
|
|
1180
|
+
* @stability Beta
|
|
1181
|
+
*/
|
|
1182
|
+
declare function toWidgetText(value: number | null | undefined, format?: WidgetFormat, locale?: string): string;
|
|
1183
|
+
/**
|
|
1184
|
+
* Progress as a fraction from 0 to 1 (more than 1 when the goal is passed), or null without a
|
|
1185
|
+
* goal to measure against.
|
|
883
1186
|
*
|
|
884
|
-
*
|
|
885
|
-
* the view doesn't define, a repeated section id, or a section that holds another record view.
|
|
1187
|
+
* @stability Beta
|
|
886
1188
|
*/
|
|
887
|
-
declare function
|
|
888
|
-
/** @deprecated Renamed `defineRecordView`. */
|
|
889
|
-
declare const defineWorkspace: typeof defineRecordView;
|
|
890
|
-
/** @deprecated Renamed `isRecordView`. */
|
|
891
|
-
declare const isWorkspace: typeof isRecordView;
|
|
892
|
-
/** @deprecated Renamed `RecordView`. */
|
|
893
|
-
type ResourceWorkspace<C extends ResourceContract = ResourceContract, Row extends DataRow = RowOf<C>> = RecordView<C, Row>;
|
|
894
|
-
/** @deprecated Renamed `RecordViewDefinition`. */
|
|
895
|
-
type WorkspaceDefinition<C extends ResourceContract, Row extends DataRow = RowOf<C>> = RecordViewDefinition<C, Row>;
|
|
896
|
-
/** @deprecated Renamed `RecordViewSection`. */
|
|
897
|
-
type WorkspaceSection<Row extends DataRow = DataRow, Name extends string = string> = RecordViewSection<Row, Name>;
|
|
898
|
-
/** @deprecated Renamed `RecordViewHeaderAction`. */
|
|
899
|
-
type WorkspaceHeaderAction = RecordViewHeaderAction;
|
|
1189
|
+
declare function resolveProgress(value: number | null | undefined, goal: number | null | undefined): number | null;
|
|
900
1190
|
|
|
901
|
-
export { type Allowed, type ComputedColumn, type DisplayHint, type FieldNameOf, type LinkFilter, type LinkOrder, type LinkedView, type RecordView, type RecordViewDefinition, type RecordViewFilter, type RecordViewHeader, type RecordViewHeaderAction, type RecordViewHeaderOptions, type RecordViewListSection, type RecordViewReadinessItem, type RecordViewSection, type RecordViewSettingsSection, type RecordViewSlotSection, type ResolvedColumn, type ResolvedFormField, type ResolvedLink, type ResolvedReadinessItem, type ResolvedRecordViewSection, type ResolvedViewAction, type ResourceTree, type ResourceView, type ResourceWorkspace, type RowImage, RowOf, type RowPicture, type RowSummary, type TimeZoneName, type TreeNode, type TreeOptions, type TreeResult, type ViewAction, type ViewBoard, type ViewCalendar, type ViewCalendarDurationUnit, type ViewCalendarLayout, type ViewColumn, type ViewCopy, type ViewDefinition, ViewDefinitionError, type ViewField, type ViewFormItem, type ViewGallery, type ViewGuards, type ViewLink, type ViewPreset, type ViewTimeZone, type ViewTone, Viewer, type WorkspaceDefinition, type WorkspaceHeaderAction, type WorkspaceSection, boardChoices, boardProblems, calendarProblems, cascadeSelection, defineRecordView, defineView, defineWorkspace, deriveDisplay, filterParams, galleryProblems, initialExpanded, initialsOf, isRecordView, isWorkspace, plural, rowPicture, sameFormValue, scopeFilter, scopeValues, setExpanded, singular, treeRows, valueText };
|
|
1191
|
+
export { type Allowed, type AnyRecordView, type ChartPoint, type ChartWidget, type ComputedColumn, type DefinedWidget, type DisplayHint, type FieldNameOf, type GroupRowsOptions, type LinkFilter, type LinkOrder, type LinkedView, type ListWidget, type NumberWidget, type ProgressWidget, RECORD_OPEN_MODES, type RecordOpen, type RecordPageTemplate, type RecordView, type RecordViewDefinition, type RecordViewDocument, type RecordViewFilter, type RecordViewHeader, type RecordViewHeaderAction, type RecordViewHeaderOptions, type RecordViewListSection, type RecordViewReadinessItem, type RecordViewSection, type RecordViewSettingsSection, type RecordViewSlotSection, type ResolvedColumn, type ResolvedFormField, type ResolvedLink, type ResolvedReadinessItem, type ResolvedRecordViewSection, type ResolvedViewAction, type ResourceTree, type ResourceView, type ResourceWorkspace, type RowGroup, type RowImage, RowOf, type RowPicture, type RowSummary, type Streak, type StreakWidget, type TimeZoneName, type TreeNode, type TreeOptions, type TreeResult, type ViewAction, type ViewBoard, type ViewCalendar, type ViewCalendarDurationUnit, type ViewCalendarLayout, type ViewColumn, type ViewCopy, type ViewDefinition, ViewDefinitionError, type ViewField, type ViewFormItem, type ViewGallery, type ViewGuards, type ViewLink, type ViewPreset, type ViewTimeZone, type ViewTone, Viewer, type WidgetBase, type WidgetDefinition, type WidgetFilter, type WidgetFormat, type WidgetKind, type WidgetRequest, type WorkspaceDefinition, type WorkspaceHeaderAction, type WorkspaceSection, boardChoices, boardProblems, calendarProblems, cascadeSelection, defineRecordView, defineView, defineWidget, defineWorkspace, deriveDisplay, filterParams, galleryProblems, groupRows, initialExpanded, initialsOf, isRecordView, isWidget, isWorkspace, plural, resolveChartSeries, resolveProgress, resolveStreak, resolveWidgetAccess, resolveWidgetRequest, rowPicture, sameFormValue, scopeFilter, scopeValues, setExpanded, singular, toWidgetText, treeRows, valueText, widgetProblems };
|