react-semaphor 0.1.566 → 0.1.568
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/assistant-context/index.js +1 -1
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/{assistant-chat-DNKAYSQL.js → assistant-chat-BN5I8KuN.js} +6 -6
- package/dist/chunks/{bookmark-impact-BeUbq0jc.js → bookmark-impact-CJ-65omV.js} +9 -9
- package/dist/chunks/{bookmark-state-ByODVqee.js → bookmark-state-Du3s13_V.js} +333 -321
- package/dist/chunks/{card-filter-builder-SXaRWbKr.js → card-filter-builder-BBuB99GZ.js} +51 -51
- package/dist/chunks/{dashboard-Cni7nGhg.js → dashboard-YnWZC4dK.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CXeXRTem.js → dashboard-briefing-launcher-BF89TU2h.js} +185 -185
- package/dist/chunks/{dashboard-controls-CsqKybrf.js → dashboard-controls-atHc1EjP.js} +8 -8
- package/dist/chunks/{dashboard-json-WWmw3Piu.js → dashboard-json-Cxp3inxd.js} +1 -1
- package/dist/chunks/{dates-DJRUS-he.js → dates-CKO05ino.js} +5 -5
- package/dist/chunks/{edit-dashboard-visual-BrIEaBhc.js → edit-dashboard-visual-DdmTfn-J.js} +8 -8
- package/dist/chunks/{filter-reach-copy-D5LqgrUf.js → filter-reach-copy-jZGzK_IH.js} +840 -826
- package/dist/chunks/{index-Bq9UbCGk.js → index-CPNZW0mu.js} +2 -2
- package/dist/chunks/{report-preferences-dialog-CeHioJwL.js → report-preferences-dialog-Mbd-I0wV.js} +8 -8
- package/dist/chunks/{resolve-dashboard-input-context-CwS-2r-b.js → resolve-dashboard-input-context-Du0fjN3h.js} +4494 -4438
- package/dist/chunks/{saved-dashboard-context-c-MZZTx2.js → saved-dashboard-context-y8N6RvjS.js} +13 -13
- package/dist/chunks/{semaphor-ready-indicator-B2NpYRE-.js → semaphor-ready-indicator-BSEdUq40.js} +28461 -28277
- package/dist/chunks/{shelf-drop-preview-context-DM7yypwC.js → shelf-drop-preview-context-D7QqPl36.js} +2 -2
- package/dist/chunks/{stored-dashboard-DTWc2pzt.js → stored-dashboard-d3xQYxBD.js} +1062 -1043
- package/dist/chunks/{variable-draft-DFizFCJu.js → variable-draft-DOX03R4A.js} +2 -2
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1545 -1518
- package/dist/index.js +12 -12
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/index.js +33 -32
- package/dist/types/lib/dashboard-viewer/table-view.d.ts +24 -2
- package/dist/types/lib/dashboard-viewer/use-table-view.d.ts +15 -0
- package/dist/types/lib/document/document-edits.d.ts +8 -3
- package/dist/types/lib/document/document-text-style.d.ts +54 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +21 -3
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +5 -2
- package/dist/types/shared/dashboard-viewer/table-settings.d.ts +9 -0
- package/package.json +1 -1
package/dist/surfboard/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, R as s, D as o } from "../chunks/report-preferences-dialog-
|
|
2
|
-
import { C as f, E as D } from "../chunks/bookmark-state-
|
|
1
|
+
import { a, R as s, D as o } from "../chunks/report-preferences-dialog-Mbd-I0wV.js";
|
|
2
|
+
import { C as f, E as D } from "../chunks/bookmark-state-Du3s13_V.js";
|
|
3
3
|
export {
|
|
4
4
|
f as CONTROL_CARD_DEFAULT_VALUE,
|
|
5
5
|
a as DisplayFormatPreferencesFields,
|
package/dist/types/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as s,
|
|
2
|
-
import { C as
|
|
3
|
-
import { D as
|
|
4
|
-
import { r as
|
|
5
|
-
import { D as
|
|
1
|
+
import { B as s, y as r, C as l, E as o, V as i, j as n, c as d, g as m, f as u, b as c, e as E, d as C, a as T, x as p, w as D, l as A, h as I, o as _, v as F, u as S, m as b, n as L, p as f, k as N, q as y, s as R, i as h, r as g, t as x } from "../chunks/bookmark-state-Du3s13_V.js";
|
|
2
|
+
import { C as O, D as V, L as w, e as k, g as U, j as z, h as B, k as K, d as v, b as Y, i as q, c as G, n as P, f as Q } from "../chunks/validators-wtjw0aw6.js";
|
|
3
|
+
import { D as W } from "../chunks/token-types-C8JymO8s.js";
|
|
4
|
+
import { r as X, a as H } from "../chunks/pivot-result-identity-BlbLrqaC.js";
|
|
5
|
+
import { D as $ } from "../chunks/report-runtime-context-DnA_PiKo.js";
|
|
6
6
|
const e = [
|
|
7
7
|
"concatenate",
|
|
8
8
|
"conditional-category",
|
|
@@ -38,14 +38,14 @@ const e = [
|
|
|
38
38
|
export {
|
|
39
39
|
s as BOOKMARK_STATE_VERSION,
|
|
40
40
|
r as BOOKMARK_VISIBILITIES,
|
|
41
|
-
|
|
41
|
+
O as CALCULATED_FIELD_ENTITY_MARKER,
|
|
42
42
|
e as CALCULATED_FIELD_TEMPLATE_IDS,
|
|
43
43
|
l as CONTROL_CARD_DEFAULT_VALUE,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
V as DATE_FORMAT_VALUES,
|
|
45
|
+
$ as DEFAULT_CALENDAR_CONTEXT,
|
|
46
|
+
W as DEFAULT_SEMANTIC_DOMAIN_ACCESS,
|
|
47
47
|
o as EMPTY_SELECTION,
|
|
48
|
-
|
|
48
|
+
w as LEGACY_CALCULATED_FIELD_ENTITY_MARKER,
|
|
49
49
|
i as VIEWER_LIMITS,
|
|
50
50
|
n as VIEWER_TABLE_SETTINGS_VERSION,
|
|
51
51
|
d as collectDatasetNamesFromExplorerField,
|
|
@@ -55,32 +55,33 @@ export {
|
|
|
55
55
|
E as collectQualifiedDatasetNamesFromExplorerField,
|
|
56
56
|
C as datasetRefFromSource,
|
|
57
57
|
T as dependencyDisplayIdentity,
|
|
58
|
-
|
|
58
|
+
k as getCalculatedFieldComputeStage,
|
|
59
59
|
p as getCustomizableTableCardIds,
|
|
60
|
-
|
|
60
|
+
U as getFieldRuntimeColumnName,
|
|
61
61
|
D as getSortableTableCardIds,
|
|
62
|
-
|
|
62
|
+
z as hasCalculatedFieldMarker,
|
|
63
63
|
B as hasCalculatedFormulaInputs,
|
|
64
|
+
A as hasColumnCustomization,
|
|
64
65
|
K as hasSyntheticCalculatedFieldOwner,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
66
|
+
I as humanizeDatasetName,
|
|
67
|
+
v as inspectCalculatedField,
|
|
68
|
+
Y as isCalculatedDimension,
|
|
69
|
+
q as isCalculatedMetric,
|
|
70
|
+
G as isDerivedField,
|
|
71
|
+
_ as isEmptyViewerTableSettings,
|
|
72
|
+
F as isTableCardCustomizable,
|
|
73
|
+
S as isTableCardSortable,
|
|
74
|
+
b as measureJsonBytes,
|
|
75
|
+
P as normalizeCalculatedFieldRepresentation,
|
|
76
|
+
L as normalizeViewerTableSettings,
|
|
77
|
+
f as parseBookmarkState,
|
|
78
|
+
N as parseTableColumnId,
|
|
79
|
+
y as parseViewerTableSettings,
|
|
79
80
|
R as parseViewerTableSettingsMap,
|
|
80
|
-
|
|
81
|
+
h as readBookmarkState,
|
|
81
82
|
g as resolveFieldDatasetDependencies,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
X as resolveQueryColumnKeyMapEntry,
|
|
84
|
+
H as resolveUniqueQueryColumnKeyMapEntry,
|
|
85
|
+
Q as shouldDropInheritedCalculationAggregate,
|
|
86
|
+
x as toTableColumnId
|
|
86
87
|
};
|
|
@@ -40,6 +40,16 @@ export type TableViewColumn = {
|
|
|
40
40
|
readonly visible: boolean;
|
|
41
41
|
/** Final header: viewer name, else today's pivot, comparison or field label, else the output key. */
|
|
42
42
|
readonly label: string;
|
|
43
|
+
/**
|
|
44
|
+
* A viewer can drag this column's width: an addressable base column with
|
|
45
|
+
* customization on. Comparison and pivot member columns keep the author's
|
|
46
|
+
* width (PLAN CW-D2 to CW-D4).
|
|
47
|
+
*/
|
|
48
|
+
readonly resizable: boolean;
|
|
49
|
+
};
|
|
50
|
+
/** A base column with an id: the columns a viewer's sort and widths address. */
|
|
51
|
+
export declare function isAddressableBaseColumn(column: Pick<TableViewColumn, 'part' | 'columnId'>): column is Pick<TableViewColumn, 'part'> & {
|
|
52
|
+
columnId: TableColumnId;
|
|
43
53
|
};
|
|
44
54
|
export type ColumnPanelItem = {
|
|
45
55
|
readonly columnId: TableColumnId;
|
|
@@ -69,6 +79,12 @@ export type TableView = {
|
|
|
69
79
|
readonly visibleKeys: readonly string[];
|
|
70
80
|
/** outputKey -> header, for every key. */
|
|
71
81
|
readonly labels: Readonly<Record<string, string>>;
|
|
82
|
+
/**
|
|
83
|
+
* outputKey -> width in pixels: the author's `tablePrefs.columnSizing` with
|
|
84
|
+
* the viewer's widths over resizable columns. The only sizing the table and
|
|
85
|
+
* the fast PDF use (PLAN CW-INV-2).
|
|
86
|
+
*/
|
|
87
|
+
readonly columnSizing: Readonly<Record<string, number>>;
|
|
72
88
|
readonly sortMode: TableSortMode;
|
|
73
89
|
/** The table's controlled sort, by output key. */
|
|
74
90
|
readonly clientSort: readonly {
|
|
@@ -81,8 +97,9 @@ export type TableView = {
|
|
|
81
97
|
/** Setting entries that match no column (ignored; cleaned on the next save). */
|
|
82
98
|
readonly dropped: readonly TableColumnId[];
|
|
83
99
|
/**
|
|
84
|
-
* Hide, order or
|
|
85
|
-
* "Your columns" marks and Reset columns. A sort alone shows by
|
|
100
|
+
* Hide, order, rename or width settings apply (never with customization
|
|
101
|
+
* off): the "Your columns" marks and Reset columns. A sort alone shows by
|
|
102
|
+
* its arrow.
|
|
86
103
|
*/
|
|
87
104
|
readonly isCustomized: boolean;
|
|
88
105
|
/**
|
|
@@ -119,6 +136,11 @@ export type TableColumnEdit = {
|
|
|
119
136
|
readonly outputKey: string;
|
|
120
137
|
readonly desc: boolean;
|
|
121
138
|
}[];
|
|
139
|
+
}
|
|
140
|
+
/** The renderer's sizing at the end of a drag, by output key (PLAN CW-D10). */
|
|
141
|
+
| {
|
|
142
|
+
readonly type: 'resize';
|
|
143
|
+
readonly sizing: Readonly<Record<string, number>>;
|
|
122
144
|
} | {
|
|
123
145
|
readonly type: 'reset';
|
|
124
146
|
};
|
|
@@ -29,6 +29,18 @@ export declare function useTableView(card: TCard, result: TableResultShape | und
|
|
|
29
29
|
export type ViewerDataTable = ExportViewerTable & {
|
|
30
30
|
readonly view?: TableView;
|
|
31
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* The sizing props a viewer's table takes (`TableVisual`'s controlled
|
|
34
|
+
* sizing): the view's widths, and a finished drag goes to the viewer's
|
|
35
|
+
* settings, never the dashboard (PLAN CW-INV-1, CW-INV-2).
|
|
36
|
+
*/
|
|
37
|
+
type ColumnSizing = Record<string, number>;
|
|
38
|
+
export type ViewerTableSizing = {
|
|
39
|
+
readonly columnSizing: Readonly<ColumnSizing>;
|
|
40
|
+
/** Takes the table's sizing, or TanStack's updater of it. */
|
|
41
|
+
readonly onColumnSizingChange: (sizing: ColumnSizing | ((old: ColumnSizing) => ColumnSizing)) => void;
|
|
42
|
+
readonly showColumnResizeHandles: boolean;
|
|
43
|
+
};
|
|
32
44
|
/**
|
|
33
45
|
* A dashboard table rendered for a viewer: the view handle, the
|
|
34
46
|
* `viewerTable` the renderer takes, and a sort handler that keeps the viewer's
|
|
@@ -48,4 +60,7 @@ export declare function useViewerDataTable(card: TCard, result: {
|
|
|
48
60
|
readonly id: string;
|
|
49
61
|
readonly desc?: boolean;
|
|
50
62
|
}[]) => boolean;
|
|
63
|
+
/** Absent outside a viewer context or before the view resolves: the author's widths, no handles. */
|
|
64
|
+
readonly viewerSizing: ViewerTableSizing | undefined;
|
|
51
65
|
};
|
|
66
|
+
export {};
|
|
@@ -39,19 +39,20 @@ export type DocumentEdit = {
|
|
|
39
39
|
} | {
|
|
40
40
|
type: 'updateText';
|
|
41
41
|
sectionId: string;
|
|
42
|
-
content
|
|
42
|
+
content?: DocumentTextContent;
|
|
43
43
|
style?: DocumentTextStyle;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* A header or footer line by its role (data variables spec S-4): the
|
|
47
47
|
* region panels and the MCP's `document.text` operation write a line here.
|
|
48
|
-
* A missing region is created enabled; a missing line is added.
|
|
48
|
+
* A missing region is created enabled; a missing line is added. Only header
|
|
49
|
+
* lines take a style (`documentLineTakesStyle`).
|
|
49
50
|
*/
|
|
50
51
|
| {
|
|
51
52
|
type: 'updateRegionText';
|
|
52
53
|
region: 'header' | 'footer';
|
|
53
54
|
role: DocumentRegionTextRole;
|
|
54
|
-
content
|
|
55
|
+
content?: DocumentTextContent;
|
|
55
56
|
style?: DocumentTextStyle;
|
|
56
57
|
} | {
|
|
57
58
|
type: 'updateTableOptions';
|
|
@@ -89,6 +90,10 @@ export type DocumentEdit = {
|
|
|
89
90
|
toIndex: number;
|
|
90
91
|
};
|
|
91
92
|
export type DocumentRegionTextRole = NonNullable<DocumentTextRegionBlock['role']>;
|
|
93
|
+
/** What a region panel changes on one line: its words, its style, or both. */
|
|
94
|
+
export type DocumentRegionTextChange = Pick<Extract<DocumentEdit, {
|
|
95
|
+
type: 'updateRegionText';
|
|
96
|
+
}>, 'content' | 'style'>;
|
|
92
97
|
/** The lines each region has, by role: what `updateRegionText` accepts. */
|
|
93
98
|
export declare const DOCUMENT_REGION_TEXT_ROLES: Record<'header' | 'footer', readonly DocumentRegionTextRole[]>;
|
|
94
99
|
export type DocumentEditResult = {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { DocumentTextRegionBlock, DocumentTextStyle } from '../types/common-types.js';
|
|
2
|
+
/**
|
|
3
|
+
* A Document's text sizes (whole pixels in this range) and alignments: what
|
|
4
|
+
* the editor's panels offer and the MCP's `document.text.update` accepts, so
|
|
5
|
+
* the two save the same style (Authoring Parity).
|
|
6
|
+
*/
|
|
7
|
+
export declare const DOCUMENT_TEXT_SIZE_MIN = 8;
|
|
8
|
+
export declare const DOCUMENT_TEXT_SIZE_MAX = 48;
|
|
9
|
+
export declare const DOCUMENT_TEXT_ALIGNMENTS: readonly ["left", "center", "right"];
|
|
10
|
+
export type DocumentTextAlign = NonNullable<DocumentTextStyle['align']>;
|
|
11
|
+
/** A text section's size when its style sets none. */
|
|
12
|
+
export declare const DOCUMENT_TEXT_SECTION_DEFAULT_SIZE = 13;
|
|
13
|
+
/** A header line's size when its style sets none: the title reads larger than the metadata. */
|
|
14
|
+
export declare const DOCUMENT_HEADER_LINE_DEFAULT_SIZE: Record<'title' | 'metadata', number>;
|
|
15
|
+
/** Only header lines take a size and alignment; the footer's note and page info keep their fixed look. */
|
|
16
|
+
export declare function documentLineTakesStyle(role: NonNullable<DocumentTextRegionBlock['role']>): role is "title" | "metadata";
|
|
17
|
+
/**
|
|
18
|
+
* A style as the MCP states it: the outline reads it, `document.text.update`
|
|
19
|
+
* writes it. Weight and color stay with the editor.
|
|
20
|
+
*/
|
|
21
|
+
export type DocumentTextStyleWords = {
|
|
22
|
+
size?: number;
|
|
23
|
+
align?: DocumentTextAlign;
|
|
24
|
+
};
|
|
25
|
+
export declare function readDocumentTextStyleWords(style: DocumentTextStyle | undefined): DocumentTextStyleWords | undefined;
|
|
26
|
+
export declare function documentTextStyleFromWords(words: DocumentTextStyleWords): DocumentTextStyle;
|
|
27
|
+
/** The space between a header's logo and its lines (`gap-3`). */
|
|
28
|
+
export declare const DOCUMENT_HEADER_LOGO_GAP_PX = 12;
|
|
29
|
+
/**
|
|
30
|
+
* How a header lays out its logo and lines. A line aligns across the page,
|
|
31
|
+
* not across the space beside the logo:
|
|
32
|
+
* - `beside`: the logo at one side, the lines in the rest; a centered line
|
|
33
|
+
* gives up the logo's width on the far side, so it centers on the page.
|
|
34
|
+
* - `columns`: three columns, the lines in the left one (left-aligned lines
|
|
35
|
+
* beside a centered or right logo, as headers have always drawn).
|
|
36
|
+
* - `split`: a centered logo between the lines, each line in the column its
|
|
37
|
+
* alignment names.
|
|
38
|
+
* - `stacked`: the logo on its own row at its side, the lines below it. A
|
|
39
|
+
* centered logo always stacks over a centered line; a side logo does when
|
|
40
|
+
* balancing it would leave a centered line under half the header's width.
|
|
41
|
+
* - `full`: no logo; the lines span the page.
|
|
42
|
+
*/
|
|
43
|
+
export type DocumentHeaderLayout = 'beside' | 'columns' | 'split' | 'stacked' | 'full';
|
|
44
|
+
export declare function documentHeaderLayout({ hasLogo, logoArea, logoWidthPx, headerWidthPx, aligns, }: {
|
|
45
|
+
hasLogo: boolean;
|
|
46
|
+
logoArea: 'left' | 'center' | 'right';
|
|
47
|
+
logoWidthPx: number;
|
|
48
|
+
/** The page's width inside its margins, which the header spans. */
|
|
49
|
+
headerWidthPx: number;
|
|
50
|
+
/** The title's and metadata's alignments; unset reads as left. */
|
|
51
|
+
aligns: Array<DocumentTextAlign | undefined>;
|
|
52
|
+
}): DocumentHeaderLayout;
|
|
53
|
+
/** A style change laid over the stored style: a field the change leaves out stays as it is. */
|
|
54
|
+
export declare function mergeDocumentTextStyle(current: DocumentTextStyle | undefined, patch: DocumentTextStyle): DocumentTextStyle;
|
|
@@ -7476,7 +7476,17 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
7476
7476
|
}, {
|
|
7477
7477
|
sectionId: string;
|
|
7478
7478
|
}>]>;
|
|
7479
|
-
text: z.ZodArray<z.ZodType<TextRun, z.ZodTypeDef, TextRun>, "many"
|
|
7479
|
+
text: z.ZodOptional<z.ZodArray<z.ZodType<TextRun, z.ZodTypeDef, TextRun>, "many">>;
|
|
7480
|
+
style: z.ZodOptional<z.ZodObject<{
|
|
7481
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
7482
|
+
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
7483
|
+
}, "strict", z.ZodTypeAny, {
|
|
7484
|
+
size?: number | undefined;
|
|
7485
|
+
align?: "left" | "right" | "center" | undefined;
|
|
7486
|
+
}, {
|
|
7487
|
+
size?: number | undefined;
|
|
7488
|
+
align?: "left" | "right" | "center" | undefined;
|
|
7489
|
+
}>>;
|
|
7480
7490
|
}, "strict", z.ZodTypeAny, {
|
|
7481
7491
|
target: {
|
|
7482
7492
|
role: "title" | "metadata" | "note" | "pageInfo";
|
|
@@ -7484,9 +7494,13 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
7484
7494
|
} | {
|
|
7485
7495
|
sectionId: string;
|
|
7486
7496
|
};
|
|
7487
|
-
text: TextRun[];
|
|
7488
7497
|
op: "document.text.update";
|
|
7489
7498
|
sheetId: string;
|
|
7499
|
+
text?: TextRun[] | undefined;
|
|
7500
|
+
style?: {
|
|
7501
|
+
size?: number | undefined;
|
|
7502
|
+
align?: "left" | "right" | "center" | undefined;
|
|
7503
|
+
} | undefined;
|
|
7490
7504
|
}, {
|
|
7491
7505
|
target: {
|
|
7492
7506
|
role: "title" | "metadata" | "note" | "pageInfo";
|
|
@@ -7494,9 +7508,13 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
7494
7508
|
} | {
|
|
7495
7509
|
sectionId: string;
|
|
7496
7510
|
};
|
|
7497
|
-
text: TextRun[];
|
|
7498
7511
|
op: "document.text.update";
|
|
7499
7512
|
sheetId: string;
|
|
7513
|
+
text?: TextRun[] | undefined;
|
|
7514
|
+
style?: {
|
|
7515
|
+
size?: number | undefined;
|
|
7516
|
+
align?: "left" | "right" | "center" | undefined;
|
|
7517
|
+
} | undefined;
|
|
7500
7518
|
}>]>;
|
|
7501
7519
|
/** The ops of changes to a dashboard: the one list callers route by (semaphor-app's MCP change tools). */
|
|
7502
7520
|
export declare const DASHBOARD_CHANGE_OPS: readonly DashboardChange['op'][];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DashboardRelationshipReachResolver } from '../../../lib/query-context/dashboard-filter-mapping-resolution.js';
|
|
2
2
|
import { TDashboard } from '../../../lib/types/common-types.js';
|
|
3
3
|
import { DocumentRegionTextRole } from '../../../lib/document/document-edits.js';
|
|
4
|
+
import { DocumentTextStyleWords } from '../../../lib/document/document-text-style.js';
|
|
4
5
|
import { FrameWidth } from '../../layouts/index.js';
|
|
5
6
|
import { RunPresentation, TextBlocks, TextRun } from '../text-card-words/index.js';
|
|
6
7
|
import { CardTypeProperties } from '../changes/card-types.js';
|
|
@@ -76,15 +77,17 @@ export type OutlineTextCard = {
|
|
|
76
77
|
editorOnly?: string[];
|
|
77
78
|
linkedVisualId?: string;
|
|
78
79
|
};
|
|
79
|
-
/** A Document header or footer line, as `document.text.update` takes it (data variables DV-D13, DV-D31). */
|
|
80
|
+
/** A Document header or footer line, as `document.text.update` takes it (data variables DV-D13, DV-D31); `style` when it sets a size or alignment. */
|
|
80
81
|
export type OutlineDocumentLine = {
|
|
81
82
|
role: DocumentRegionTextRole;
|
|
82
83
|
text: TextRun[];
|
|
84
|
+
style?: DocumentTextStyleWords;
|
|
83
85
|
};
|
|
84
|
-
/** A Document text section: one line of runs (its content holds no blocks). */
|
|
86
|
+
/** A Document text section: one line of runs (its content holds no blocks), and its size and alignment when set. */
|
|
85
87
|
export type OutlineDocumentTextSection = {
|
|
86
88
|
sectionId: string;
|
|
87
89
|
text: TextRun[];
|
|
90
|
+
style?: DocumentTextStyleWords;
|
|
88
91
|
};
|
|
89
92
|
/**
|
|
90
93
|
* A variable text may name (data variables DV-D13): an input's value, a report
|
|
@@ -3,6 +3,7 @@ export declare const VIEWER_LIMITS: {
|
|
|
3
3
|
readonly bookmarksPerViewerPerDashboard: 20;
|
|
4
4
|
readonly bookmarkNameMaxChars: 100;
|
|
5
5
|
readonly columnLabelMaxChars: 120;
|
|
6
|
+
readonly columnWidthMaxPx: 4000;
|
|
6
7
|
readonly tableSettingsMaxBytes: 65536;
|
|
7
8
|
readonly rememberedTableSettingsMaxBytes: 262144;
|
|
8
9
|
readonly bookmarkStateMaxBytes: 65536;
|
|
@@ -57,12 +58,20 @@ export type ViewerTableSettings = {
|
|
|
57
58
|
readonly labels?: Readonly<Record<TableColumnId, string>>;
|
|
58
59
|
/** Absent: the author's sort. `[]`: explicitly unsorted. Never saved in `page-only` mode. */
|
|
59
60
|
readonly sort?: readonly TableSortEntry[];
|
|
61
|
+
/** Column widths in whole pixels, only for columns the viewer resized. Unlisted columns keep the author's width. */
|
|
62
|
+
readonly widths?: Readonly<Record<TableColumnId, number>>;
|
|
60
63
|
};
|
|
61
64
|
/**
|
|
62
65
|
* Drops empty fields and duplicate or malformed column ids. `sort: []` is kept:
|
|
63
66
|
* it means "explicitly unsorted". Returns `undefined` when nothing is left.
|
|
64
67
|
*/
|
|
65
68
|
export declare function normalizeViewerTableSettings(settings: ViewerTableSettings | undefined): ViewerTableSettings | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* The viewer changed the columns themselves: hidden, reordered, renamed or
|
|
71
|
+
* resized. A sort alone is not a customization (PLAN B35, CW-D7): it shows by
|
|
72
|
+
* its arrow. The one predicate for "Your columns" and Reset columns.
|
|
73
|
+
*/
|
|
74
|
+
export declare function hasColumnCustomization(settings: ViewerTableSettings | undefined): boolean;
|
|
66
75
|
export declare function isEmptyViewerTableSettings(settings: ViewerTableSettings | undefined): boolean;
|
|
67
76
|
/**
|
|
68
77
|
* Strict shape check, then normalization: malformed column ids are dropped,
|