react-semaphor 0.1.372 → 0.1.373
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/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +1 -1
- package/dist/chunks/{calendar-preferences-dialog-Dn6o2r2Y.js → calendar-preferences-dialog-BCO0I6Q2.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-ClBAkMmF.js → calendar-preferences-dialog-CAcqW83Q.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BO-kXtEd.js → dashboard-briefing-launcher-CxozwqgX.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-D3Xfc_26.js → dashboard-briefing-launcher-DTp4KNI1.js} +104 -104
- package/dist/chunks/{dashboard-controls-B3sdy_Zx.js → dashboard-controls-Bc4E4Cky.js} +167 -167
- package/dist/chunks/{dashboard-controls-DcXMFgGR.js → dashboard-controls-Dkct7mpD.js} +1 -1
- package/dist/chunks/{dashboard-json-CFURS_OR.js → dashboard-json-BFB5jFmm.js} +1 -1
- package/dist/chunks/{dashboard-json-BWfkEy48.js → dashboard-json-BmCwILfI.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-BD2AJLiT.js → edit-dashboard-visual-BBlY9tKB.js} +37 -37
- package/dist/chunks/{edit-dashboard-visual-DjdhKiP2.js → edit-dashboard-visual-BXLuXKFc.js} +6592 -6565
- package/dist/chunks/{index-C0Qnfr_7.js → index-Clqr43Sr.js} +36742 -34869
- package/dist/chunks/index-D5Pp-5LR.js +1361 -0
- package/dist/chunks/{resource-management-panel-DytUMSGA.js → resource-management-panel-BbkbAlPo.js} +1 -1
- package/dist/chunks/{resource-management-panel-YvIfaphX.js → resource-management-panel-DJUr47Bb.js} +51 -51
- package/dist/chunks/{use-create-flow-overlay-state-CwIG1Ekp.js → use-create-flow-overlay-state-B4EAcL2v.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BETXykC9.js → use-create-flow-overlay-state-DZI7VYBs.js} +35 -35
- package/dist/chunks/{use-visual-utils-Bk135OgA.js → use-visual-utils-Bl3ltNL9.js} +12 -12
- package/dist/chunks/{use-visual-utils-BzFjIykb.js → use-visual-utils-djsPEgF1.js} +1 -1
- package/dist/chunks/{validation-D4Zz6WPD.js → validation-1V7bWmYw.js} +1 -1
- package/dist/chunks/{validation-CQFpcSSP.js → validation-DlrTIf1N.js} +1 -1
- package/dist/chunks/{validators-CuKnUZFO.js → validators-CtNmgsvG.js} +409 -314
- package/dist/chunks/validators-jpoYhpHh.js +1 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +1 -1
- package/dist/dashboard-authoring/index.js +1 -1
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +1 -1
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +32 -32
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +127 -126
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/analytics-protocol.d.ts +102 -11
- package/dist/types/dashboard-assistant.d.ts +117 -103
- package/dist/types/dashboard-authoring.d.ts +63 -2
- package/dist/types/dashboard.d.ts +263 -2
- package/dist/types/data-app-builder.d.ts +40 -1
- package/dist/types/data-app-sdk-validation.d.ts +94 -102
- package/dist/types/data-app-sdk.d.ts +106 -11
- package/dist/types/main.d.ts +473 -2
- package/dist/types/shared.d.ts +263 -2
- package/dist/types/surfboard.d.ts +263 -2
- package/dist/types/types.d.ts +529 -2
- package/package.json +1 -1
- package/dist/chunks/index-DlLvzmJF.js +0 -1361
- package/dist/chunks/validators-DHee9kM2.js +0 -1
|
@@ -54,6 +54,26 @@ declare type MatrixAxisPayload = {
|
|
|
54
54
|
nodes: MatrixNode[];
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
+
declare type MatrixAxisResultPayload = {
|
|
58
|
+
id: 'rows' | 'columns';
|
|
59
|
+
levels: MatrixAxisLevelDescriptor[];
|
|
60
|
+
nodeIds: string[];
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
declare type MatrixCalculationDescriptor = {
|
|
64
|
+
id: string;
|
|
65
|
+
measureId: string;
|
|
66
|
+
aggregate?: SemaphorAggregateFunction;
|
|
67
|
+
label?: string;
|
|
68
|
+
source: 'measureDefault' | 'rowSubtotal' | 'columnSubtotal' | 'subtotalIntersection' | 'rowGrandTotal' | 'columnGrandTotal' | 'matrixGrandTotal' | 'custom';
|
|
69
|
+
scope?: {
|
|
70
|
+
rowLevelId?: string;
|
|
71
|
+
columnLevelId?: string;
|
|
72
|
+
rowNodeId?: string;
|
|
73
|
+
columnNodeId?: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
|
|
57
77
|
declare type MatrixCapability = 'rowHierarchy' | 'columnHierarchy' | 'rowSubtotals' | 'columnSubtotals' | 'grandTotals' | 'lazyRows' | 'lazyColumns' | 'conditionalFormatting' | 'visualExport' | (string & {});
|
|
58
78
|
|
|
59
79
|
declare type MatrixCell = {
|
|
@@ -61,8 +81,6 @@ declare type MatrixCell = {
|
|
|
61
81
|
rowNodeId: string;
|
|
62
82
|
columnNodeId?: string;
|
|
63
83
|
measureInstanceId: string;
|
|
64
|
-
rowPath: MatrixMemberPathSegment[];
|
|
65
|
-
columnPath: MatrixMemberPathSegment[];
|
|
66
84
|
rawValue: unknown;
|
|
67
85
|
presence: MatrixCellPresence;
|
|
68
86
|
formattedValue?: string;
|
|
@@ -83,8 +101,6 @@ declare type MatrixCellFormattingScope = {
|
|
|
83
101
|
columnNodeId?: string;
|
|
84
102
|
measureInstanceId: string;
|
|
85
103
|
role: MatrixCellRole;
|
|
86
|
-
rowPath: MatrixMemberPathSegment[];
|
|
87
|
-
columnPath: MatrixMemberPathSegment[];
|
|
88
104
|
};
|
|
89
105
|
|
|
90
106
|
declare type MatrixCellPresence = 'present' | 'presentNull' | 'missing' | 'densified';
|
|
@@ -147,8 +163,6 @@ declare type MatrixGridCell = {
|
|
|
147
163
|
presence: MatrixCellPresence;
|
|
148
164
|
role: MatrixCellRole;
|
|
149
165
|
measureInstanceId: string;
|
|
150
|
-
rowPath: MatrixMemberPathSegment[];
|
|
151
|
-
columnPath: MatrixMemberPathSegment[];
|
|
152
166
|
};
|
|
153
167
|
|
|
154
168
|
declare type MatrixGridColumn = {
|
|
@@ -202,15 +216,26 @@ declare type MatrixGridRowHeaderLevel = {
|
|
|
202
216
|
fieldInstanceId: string;
|
|
203
217
|
};
|
|
204
218
|
|
|
219
|
+
declare type MatrixLayoutProjection = {
|
|
220
|
+
rowHeaderLevels: MatrixGridRowHeaderLevel[];
|
|
221
|
+
columnHeaderRows: MatrixGridHeaderRow[];
|
|
222
|
+
columns: MatrixGridColumn[];
|
|
223
|
+
};
|
|
224
|
+
|
|
205
225
|
declare type MatrixMeasureDescriptor = {
|
|
206
226
|
instanceId: string;
|
|
207
227
|
fieldKey: string;
|
|
208
228
|
label: string;
|
|
209
229
|
field: SemaphorFieldRef;
|
|
210
230
|
aggregate?: SemaphorAggregateFunction;
|
|
231
|
+
format?: SemaphorValueFormat;
|
|
211
232
|
totalBehavior?: SemaphorMatrixTotalCalculation;
|
|
212
233
|
};
|
|
213
234
|
|
|
235
|
+
declare type MatrixMeasureResultDescriptor = MatrixMeasureDescriptor & {
|
|
236
|
+
semantics: MatrixMeasureSemantics;
|
|
237
|
+
};
|
|
238
|
+
|
|
214
239
|
declare type MatrixMeasureSemantics = {
|
|
215
240
|
kind: 'additive';
|
|
216
241
|
aggregate?: SemaphorAggregateFunction;
|
|
@@ -304,6 +329,17 @@ declare type MatrixResolvedSort = {
|
|
|
304
329
|
by: SemaphorMatrixSortRule['by'];
|
|
305
330
|
};
|
|
306
331
|
|
|
332
|
+
declare type MatrixResultCell = {
|
|
333
|
+
rowId: string;
|
|
334
|
+
columnId?: string;
|
|
335
|
+
measureId: string;
|
|
336
|
+
value: unknown;
|
|
337
|
+
formattedValue?: string;
|
|
338
|
+
presence: MatrixCellPresence;
|
|
339
|
+
role: MatrixCellRole;
|
|
340
|
+
calculationId?: string;
|
|
341
|
+
};
|
|
342
|
+
|
|
307
343
|
declare type MatrixShape = 'hierarchical' | 'pivot';
|
|
308
344
|
|
|
309
345
|
declare type MatrixTotals = {
|
|
@@ -684,7 +720,7 @@ export declare type SemaphorDerivedFieldDefinition = {
|
|
|
684
720
|
defaultAggregate?: SemaphorAggregateFunction;
|
|
685
721
|
aggregationBehavior?: SemaphorDerivedFieldAggregationBehavior;
|
|
686
722
|
aggregationStrategy?: SemaphorDerivedFieldAggregationStrategy;
|
|
687
|
-
format?:
|
|
723
|
+
format?: SemaphorValueFormat;
|
|
688
724
|
tags?: string[];
|
|
689
725
|
};
|
|
690
726
|
|
|
@@ -912,7 +948,11 @@ declare type SemaphorMatrixMemberPathSegment = {
|
|
|
912
948
|
};
|
|
913
949
|
|
|
914
950
|
export declare type SemaphorMatrixPayload = {
|
|
915
|
-
|
|
951
|
+
matrixResult?: SemaphorMatrixResult;
|
|
952
|
+
/**
|
|
953
|
+
* Client-side derived projection for matrix renderers. The canonical server
|
|
954
|
+
* response is matrixResult.
|
|
955
|
+
*/
|
|
916
956
|
grid?: MatrixGridProjection;
|
|
917
957
|
expansion?: MatrixExpansionResponseHints;
|
|
918
958
|
executionResult?: SemaphorAnalyticsExecutionResult;
|
|
@@ -942,9 +982,25 @@ export declare type SemaphorMatrixQuerySpec = Omit<SemaphorMatrixIntent, 'kind'
|
|
|
942
982
|
|
|
943
983
|
declare type SemaphorMatrixResult = SemaphorAnalyticsResultBase & {
|
|
944
984
|
kind: 'matrix';
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
985
|
+
schemaVersion: 1;
|
|
986
|
+
intent?: SemaphorMatrixIntent;
|
|
987
|
+
shape: MatrixShape;
|
|
988
|
+
capabilities: MatrixCapability[];
|
|
989
|
+
executionMetadata: MatrixExecutionMetadata;
|
|
990
|
+
fieldsById: Record<string, MatrixFieldDescriptor>;
|
|
991
|
+
measuresById: Record<string, MatrixMeasureResultDescriptor>;
|
|
992
|
+
calculationsById?: Record<string, MatrixCalculationDescriptor>;
|
|
993
|
+
axes: {
|
|
994
|
+
rows: MatrixAxisResultPayload;
|
|
995
|
+
columns: MatrixAxisResultPayload;
|
|
996
|
+
};
|
|
997
|
+
nodesById: Record<string, MatrixNode>;
|
|
998
|
+
layout: MatrixLayoutProjection;
|
|
999
|
+
cells: MatrixResultCell[];
|
|
1000
|
+
totals: MatrixTotals;
|
|
1001
|
+
sort: MatrixResolvedSort[];
|
|
1002
|
+
formattingContext: MatrixFormattingContext;
|
|
1003
|
+
pageInfo?: MatrixPageInfo;
|
|
948
1004
|
expansion?: MatrixExpansionResponseHints;
|
|
949
1005
|
};
|
|
950
1006
|
|
|
@@ -1011,6 +1067,7 @@ export declare type SemaphorMatrixValueField = {
|
|
|
1011
1067
|
field: SemaphorFieldRef;
|
|
1012
1068
|
aggregate?: SemaphorAggregateFunction;
|
|
1013
1069
|
label?: string;
|
|
1070
|
+
format?: SemaphorValueFormat;
|
|
1014
1071
|
totalBehavior?: SemaphorMatrixTotalCalculation;
|
|
1015
1072
|
};
|
|
1016
1073
|
|
|
@@ -1402,6 +1459,44 @@ declare type SemaphorTimeGrain = 'hour' | 'day' | 'week' | 'month' | 'quarter' |
|
|
|
1402
1459
|
|
|
1403
1460
|
export declare type SemaphorTimeWindow = SemaphorRelativeTimeWindow | SemaphorAbsoluteTimeWindow;
|
|
1404
1461
|
|
|
1462
|
+
declare type SemaphorValueFormat = {
|
|
1463
|
+
type: 'number' | 'currency' | 'percent' | 'percentage' | 'scientific';
|
|
1464
|
+
locale?: string;
|
|
1465
|
+
minimumFractionDigits?: number;
|
|
1466
|
+
maximumFractionDigits?: number;
|
|
1467
|
+
useGrouping?: boolean;
|
|
1468
|
+
prefix?: string;
|
|
1469
|
+
suffix?: string;
|
|
1470
|
+
negativeStyle?: 'minus' | 'parentheses';
|
|
1471
|
+
compact?: boolean;
|
|
1472
|
+
scale?: number;
|
|
1473
|
+
currency?: string;
|
|
1474
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
1475
|
+
} | {
|
|
1476
|
+
type: 'date' | 'datetime';
|
|
1477
|
+
locale?: string;
|
|
1478
|
+
pattern?: string;
|
|
1479
|
+
relative?: boolean;
|
|
1480
|
+
timezone?: string;
|
|
1481
|
+
sourceTimezone?: string;
|
|
1482
|
+
prefix?: string;
|
|
1483
|
+
suffix?: string;
|
|
1484
|
+
} | {
|
|
1485
|
+
type: 'duration';
|
|
1486
|
+
inputUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
|
|
1487
|
+
outputStyle?: 'compact' | 'digital' | 'long';
|
|
1488
|
+
largestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
|
|
1489
|
+
smallestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
|
|
1490
|
+
maxUnits?: number;
|
|
1491
|
+
prefix?: string;
|
|
1492
|
+
suffix?: string;
|
|
1493
|
+
negativeStyle?: 'minus' | 'parentheses';
|
|
1494
|
+
} | {
|
|
1495
|
+
type: 'string';
|
|
1496
|
+
prefix?: string;
|
|
1497
|
+
suffix?: string;
|
|
1498
|
+
};
|
|
1499
|
+
|
|
1405
1500
|
export declare function toSemaphorActiveInputSnapshots(inputs: SemaphorInputReference[] | undefined): SemaphorActiveInput[];
|
|
1406
1501
|
|
|
1407
1502
|
export declare function toSemaphorAnalysisIntent(spec: SemaphorAnalysisQuerySpec): SemaphorMetricIntent;
|