react-semaphor 0.1.590 → 0.1.592
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.js +254 -236
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +7 -7
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{aggregate-measure-field-BrkXsSJp.js → aggregate-measure-field-DHlDj0Pc.js} +2 -2
- package/dist/chunks/{assistant-chat-C_6dBLUk.js → assistant-chat-BusR-5uT.js} +13 -13
- package/dist/chunks/bookmark-impact-DozXJZDS.js +76 -0
- package/dist/chunks/{bookmark-state-Bn7k3ttp.js → bookmark-state-Be2W3s6t.js} +632 -592
- package/dist/chunks/{card-filter-builder-6vflbF9O.js → card-filter-builder-DBTJ74yy.js} +916 -897
- package/dist/chunks/{comparison-window-caption-fqijZdVd.js → comparison-window-caption-h8w3ySL6.js} +90 -91
- package/dist/chunks/{dashboard-DpgRl65K.js → dashboard-CmzJzmph.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BLbhONJz.js → dashboard-briefing-launcher-BOQGpYr2.js} +160 -160
- package/dist/chunks/{dashboard-controls-kCTYEEsq.js → dashboard-controls-BxI3e2_o.js} +64 -64
- package/dist/chunks/{dashboard-json-CNIFresY.js → dashboard-json-BMqXV2Rx.js} +4 -4
- package/dist/chunks/{dates-BoeweqEo.js → dates-DBsscxL_.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-D0eWTlPL.js → edit-dashboard-visual-Dvc_Pkfg.js} +5443 -5417
- package/dist/chunks/filter-line-CYT7KIXb.js +133 -0
- package/dist/chunks/{filter-reach-copy-eMhDPTYH.js → filter-reach-copy-hEzlpBu7.js} +224 -224
- package/dist/chunks/filter-value-text-CHBm4IU7.js +153 -0
- package/dist/chunks/{index-D8LFjI8j.js → index-BoYJqc3F.js} +24 -24
- package/dist/chunks/{layout-grid-BG__sPkb.js → layout-grid-DoFIfQGd.js} +1 -1
- package/dist/chunks/{list-filter-Cb8i7N8f.js → list-filter-BeTQxjNy.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-D9Ll_9R-.js → matrix-analytical-definition-CyWOwLmE.js} +17 -17
- package/dist/chunks/{matrix-member-presentation-DVBJR0MA.js → matrix-member-presentation-Bj2YcHAP.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-JSmproo9.js → matrix-operation-contract-CAanJeCj.js} +60 -60
- package/dist/chunks/{metric-comparison-xE_J6hkg.js → metric-comparison-BeKnUD08.js} +27 -31
- package/dist/chunks/{paintbrush-C310xSuR.js → paintbrush-KeaU1L1a.js} +1 -1
- package/dist/chunks/{palette-Ci5P91Zb.js → palette-BcFJLeXB.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-DbBahmgc.js → pivot-result-contract-expectations-CaS0y823.js} +522 -486
- package/dist/chunks/{pivot-result-identity-CUsMt_4r.js → pivot-result-identity-BKUjYO1u.js} +1 -1
- package/dist/chunks/raw-temporal-value-BzdgeDa7.js +454 -0
- package/dist/chunks/{report-preferences-dialog-dUlVLgEk.js → report-preferences-dialog-Cu_f-8Kw.js} +13 -13
- package/dist/chunks/{report-runtime-context-CrOgmuxO.js → report-runtime-context-g4Zp_TU9.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-NurwNg4I.js → resolve-dashboard-input-context-CkMk1RW6.js} +7600 -6398
- package/dist/chunks/{save-BhhXfp4s.js → save-C9CZAk6V.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-CPp--vXU.js → saved-dashboard-context-RgBS_PIj.js} +19 -19
- package/dist/chunks/{selection-filter-compiler-CHG-8xnW.js → selection-filter-compiler-BclSpK3P.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-CXojR95M.js → semaphor-ready-indicator-DXpTZJ7R.js} +31502 -31453
- package/dist/chunks/{shelf-drop-preview-context-BDScAUdq.js → shelf-drop-preview-context-qdlJKaH7.js} +5 -5
- package/dist/chunks/stored-dashboard-Baw6Bp2A.js +4029 -0
- package/dist/chunks/{style-sheet-parts-CmXmKqGw.js → style-sheet-parts-DM_Mw_sm.js} +45 -42
- package/dist/chunks/{table-export-sheet-ClSgERQC.js → table-export-sheet-Cd6z7SsG.js} +1 -1
- package/dist/chunks/{token-types-DTocOcwt.js → token-types-BB2ImFx6.js} +1 -1
- package/dist/chunks/{upload-DDYc1Qjj.js → upload-CMTCg47S.js} +1 -1
- package/dist/chunks/{validators-CrYXNnNE.js → validators-BlEWWX9O.js} +576 -562
- package/dist/chunks/{variable-draft-Bi3RlULA.js → variable-draft-BxtN6YcG.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1672 -1633
- package/dist/format-utils/index.js +217 -218
- package/dist/index.js +62 -62
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/surfboard/filter/types.d.ts +7 -5
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +3 -3
- package/dist/types/components/visual/data-table/types/data-table.d.ts +24 -2
- package/dist/types/index.js +30 -29
- package/dist/types/lib/dashboard-inputs/dashboard-date-comparison-plan.d.ts +0 -1
- package/dist/types/lib/dashboard-viewer/table-view-edit.d.ts +27 -0
- package/dist/types/lib/dashboard-viewer/table-view.d.ts +37 -1
- package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +2 -1
- package/dist/types/shared/analytics-protocol/relative-date/sentence.d.ts +81 -0
- package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +0 -9
- package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +23 -2
- package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +20 -0
- package/dist/types/shared/dashboard-authoring/card-formats/detail-date-display.d.ts +84 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +36 -36
- package/dist/types/shared/dashboard-authoring/filter-model/date-filter-default.d.ts +37 -0
- package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-viewer/table-column-move.d.ts +56 -0
- package/dist/types/shared/dashboard-viewer/table-settings.d.ts +7 -0
- package/dist/types/shared/format-utils/filter-line.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chunks/bookmark-impact-DkZABEd3.js +0 -75
- package/dist/chunks/filter-line-Dza3ee4w.js +0 -131
- package/dist/chunks/filter-value-text-DQw4v3nC.js +0 -146
- package/dist/chunks/pivot-header-presentation-D-DfPAjb.js +0 -42
- package/dist/chunks/raw-temporal-value-BnGCWJAL.js +0 -322
- package/dist/chunks/stored-dashboard-KkH4zOhq.js +0 -4998
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -53
|
@@ -4,6 +4,7 @@ import { CardColumnRef, ConditionalRule } from '../conditional-formatting/types.
|
|
|
4
4
|
import { AxisConfigKey, CardVariant } from './card-display-write.js';
|
|
5
5
|
import { ComparisonDisplayInput, LegendPosition, Polarity } from './inputs.js';
|
|
6
6
|
import { TableMeasureTotal } from '../measure-calculations/table-column-total.js';
|
|
7
|
+
import { TableColumnId } from '../../dashboard-viewer/table-settings.js';
|
|
7
8
|
export type ResolvedColumnSettings = {
|
|
8
9
|
column: CardColumnRef;
|
|
9
10
|
hidden?: boolean;
|
|
@@ -58,4 +59,14 @@ export type ResolvedCardSettings = {
|
|
|
58
59
|
trendGrain?: KpiTrendGrain | null;
|
|
59
60
|
/** Whether viewers can open the records behind the card's numbers (see-records SR-D4). */
|
|
60
61
|
seeRecords?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* The named columns' ids in the stated order, and the baseline the one
|
|
64
|
+
* writer stores them against (`writeTableColumnOrder`, table column order
|
|
65
|
+
* TCO-D7, TCO-D12).
|
|
66
|
+
*/
|
|
67
|
+
columnOrder?: {
|
|
68
|
+
order: TableColumnId[];
|
|
69
|
+
fieldOrder: TableColumnId[];
|
|
70
|
+
pivoted: boolean;
|
|
71
|
+
};
|
|
61
72
|
};
|
|
@@ -139,7 +139,7 @@ export declare const analyticsFilterSchema: z.ZodObject<{
|
|
|
139
139
|
} | undefined;
|
|
140
140
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
141
141
|
};
|
|
142
|
-
operator: "between" | "
|
|
142
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
143
143
|
values?: (string | number | boolean)[] | undefined;
|
|
144
144
|
id?: string | undefined;
|
|
145
145
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -159,7 +159,7 @@ export declare const analyticsFilterSchema: z.ZodObject<{
|
|
|
159
159
|
} | undefined;
|
|
160
160
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
161
161
|
};
|
|
162
|
-
operator: "between" | "
|
|
162
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
163
163
|
values?: (string | number | boolean)[] | undefined;
|
|
164
164
|
id?: string | undefined;
|
|
165
165
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -1274,7 +1274,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
|
|
|
1274
1274
|
} | undefined;
|
|
1275
1275
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
1276
1276
|
};
|
|
1277
|
-
operator: "between" | "
|
|
1277
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
1278
1278
|
values?: (string | number | boolean)[] | undefined;
|
|
1279
1279
|
id?: string | undefined;
|
|
1280
1280
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -1294,7 +1294,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
|
|
|
1294
1294
|
} | undefined;
|
|
1295
1295
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
1296
1296
|
};
|
|
1297
|
-
operator: "between" | "
|
|
1297
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
1298
1298
|
values?: (string | number | boolean)[] | undefined;
|
|
1299
1299
|
id?: string | undefined;
|
|
1300
1300
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -1568,7 +1568,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
|
|
|
1568
1568
|
} | undefined;
|
|
1569
1569
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
1570
1570
|
};
|
|
1571
|
-
operator: "between" | "
|
|
1571
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
1572
1572
|
values?: (string | number | boolean)[] | undefined;
|
|
1573
1573
|
id?: string | undefined;
|
|
1574
1574
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -1795,7 +1795,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
|
|
|
1795
1795
|
} | undefined;
|
|
1796
1796
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
1797
1797
|
};
|
|
1798
|
-
operator: "between" | "
|
|
1798
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
1799
1799
|
values?: (string | number | boolean)[] | undefined;
|
|
1800
1800
|
id?: string | undefined;
|
|
1801
1801
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -1980,7 +1980,7 @@ export declare const recordsCardQuerySchema: z.ZodObject<{
|
|
|
1980
1980
|
} | undefined;
|
|
1981
1981
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
1982
1982
|
};
|
|
1983
|
-
operator: "between" | "
|
|
1983
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
1984
1984
|
values?: (string | number | boolean)[] | undefined;
|
|
1985
1985
|
id?: string | undefined;
|
|
1986
1986
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -2000,7 +2000,7 @@ export declare const recordsCardQuerySchema: z.ZodObject<{
|
|
|
2000
2000
|
} | undefined;
|
|
2001
2001
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
2002
2002
|
};
|
|
2003
|
-
operator: "between" | "
|
|
2003
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
2004
2004
|
values?: (string | number | boolean)[] | undefined;
|
|
2005
2005
|
id?: string | undefined;
|
|
2006
2006
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -2181,7 +2181,7 @@ export declare const recordsCardQuerySchema: z.ZodObject<{
|
|
|
2181
2181
|
} | undefined;
|
|
2182
2182
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
2183
2183
|
};
|
|
2184
|
-
operator: "between" | "
|
|
2184
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
2185
2185
|
values?: (string | number | boolean)[] | undefined;
|
|
2186
2186
|
id?: string | undefined;
|
|
2187
2187
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -2252,7 +2252,7 @@ export declare const recordsCardQuerySchema: z.ZodObject<{
|
|
|
2252
2252
|
} | undefined;
|
|
2253
2253
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
2254
2254
|
};
|
|
2255
|
-
operator: "between" | "
|
|
2255
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
2256
2256
|
values?: (string | number | boolean)[] | undefined;
|
|
2257
2257
|
id?: string | undefined;
|
|
2258
2258
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -2843,7 +2843,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
|
|
|
2843
2843
|
} | undefined;
|
|
2844
2844
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
2845
2845
|
};
|
|
2846
|
-
operator: "between" | "
|
|
2846
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
2847
2847
|
values?: (string | number | boolean)[] | undefined;
|
|
2848
2848
|
id?: string | undefined;
|
|
2849
2849
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -2863,7 +2863,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
|
|
|
2863
2863
|
} | undefined;
|
|
2864
2864
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
2865
2865
|
};
|
|
2866
|
-
operator: "between" | "
|
|
2866
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
2867
2867
|
values?: (string | number | boolean)[] | undefined;
|
|
2868
2868
|
id?: string | undefined;
|
|
2869
2869
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -3155,7 +3155,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
|
|
|
3155
3155
|
} | undefined;
|
|
3156
3156
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
3157
3157
|
};
|
|
3158
|
-
operator: "between" | "
|
|
3158
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
3159
3159
|
values?: (string | number | boolean)[] | undefined;
|
|
3160
3160
|
id?: string | undefined;
|
|
3161
3161
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -3398,7 +3398,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
|
|
|
3398
3398
|
} | undefined;
|
|
3399
3399
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
3400
3400
|
};
|
|
3401
|
-
operator: "between" | "
|
|
3401
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
3402
3402
|
values?: (string | number | boolean)[] | undefined;
|
|
3403
3403
|
id?: string | undefined;
|
|
3404
3404
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -3616,22 +3616,22 @@ declare const chipColorSchema: z.ZodObject<{
|
|
|
3616
3616
|
value: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3617
3617
|
}, "strict", z.ZodTypeAny, {
|
|
3618
3618
|
value: string | number;
|
|
3619
|
-
operator: "
|
|
3619
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
3620
3620
|
}, {
|
|
3621
3621
|
value: string | number;
|
|
3622
|
-
operator: "
|
|
3622
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
3623
3623
|
}>;
|
|
3624
3624
|
color: z.ZodString;
|
|
3625
3625
|
}, "strict", z.ZodTypeAny, {
|
|
3626
3626
|
when: {
|
|
3627
3627
|
value: string | number;
|
|
3628
|
-
operator: "
|
|
3628
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
3629
3629
|
};
|
|
3630
3630
|
color: string;
|
|
3631
3631
|
}, {
|
|
3632
3632
|
when: {
|
|
3633
3633
|
value: string | number;
|
|
3634
|
-
operator: "
|
|
3634
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
3635
3635
|
};
|
|
3636
3636
|
color: string;
|
|
3637
3637
|
}>;
|
|
@@ -3677,22 +3677,22 @@ declare const runPresentationSchema: z.ZodObject<{
|
|
|
3677
3677
|
value: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3678
3678
|
}, "strict", z.ZodTypeAny, {
|
|
3679
3679
|
value: string | number;
|
|
3680
|
-
operator: "
|
|
3680
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
3681
3681
|
}, {
|
|
3682
3682
|
value: string | number;
|
|
3683
|
-
operator: "
|
|
3683
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
3684
3684
|
}>;
|
|
3685
3685
|
color: z.ZodString;
|
|
3686
3686
|
}, "strict", z.ZodTypeAny, {
|
|
3687
3687
|
when: {
|
|
3688
3688
|
value: string | number;
|
|
3689
|
-
operator: "
|
|
3689
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
3690
3690
|
};
|
|
3691
3691
|
color: string;
|
|
3692
3692
|
}, {
|
|
3693
3693
|
when: {
|
|
3694
3694
|
value: string | number;
|
|
3695
|
-
operator: "
|
|
3695
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
3696
3696
|
};
|
|
3697
3697
|
color: string;
|
|
3698
3698
|
}>, "many">>;
|
|
@@ -3703,7 +3703,7 @@ declare const runPresentationSchema: z.ZodObject<{
|
|
|
3703
3703
|
colors?: {
|
|
3704
3704
|
when: {
|
|
3705
3705
|
value: string | number;
|
|
3706
|
-
operator: "
|
|
3706
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
3707
3707
|
};
|
|
3708
3708
|
color: string;
|
|
3709
3709
|
}[] | undefined;
|
|
@@ -3726,7 +3726,7 @@ declare const runPresentationSchema: z.ZodObject<{
|
|
|
3726
3726
|
colors?: {
|
|
3727
3727
|
when: {
|
|
3728
3728
|
value: string | number;
|
|
3729
|
-
operator: "
|
|
3729
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
3730
3730
|
};
|
|
3731
3731
|
color: string;
|
|
3732
3732
|
}[] | undefined;
|
|
@@ -4048,7 +4048,7 @@ declare const variableMetricQuerySchema: z.ZodObject<{
|
|
|
4048
4048
|
} | undefined;
|
|
4049
4049
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
4050
4050
|
};
|
|
4051
|
-
operator: "between" | "
|
|
4051
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
4052
4052
|
values?: (string | number | boolean)[] | undefined;
|
|
4053
4053
|
id?: string | undefined;
|
|
4054
4054
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -4068,7 +4068,7 @@ declare const variableMetricQuerySchema: z.ZodObject<{
|
|
|
4068
4068
|
} | undefined;
|
|
4069
4069
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
4070
4070
|
};
|
|
4071
|
-
operator: "between" | "
|
|
4071
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
4072
4072
|
values?: (string | number | boolean)[] | undefined;
|
|
4073
4073
|
id?: string | undefined;
|
|
4074
4074
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -4217,7 +4217,7 @@ declare const variableMetricQuerySchema: z.ZodObject<{
|
|
|
4217
4217
|
} | undefined;
|
|
4218
4218
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
4219
4219
|
};
|
|
4220
|
-
operator: "between" | "
|
|
4220
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
4221
4221
|
values?: (string | number | boolean)[] | undefined;
|
|
4222
4222
|
id?: string | undefined;
|
|
4223
4223
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -4306,7 +4306,7 @@ declare const variableMetricQuerySchema: z.ZodObject<{
|
|
|
4306
4306
|
} | undefined;
|
|
4307
4307
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
4308
4308
|
};
|
|
4309
|
-
operator: "between" | "
|
|
4309
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
4310
4310
|
values?: (string | number | boolean)[] | undefined;
|
|
4311
4311
|
id?: string | undefined;
|
|
4312
4312
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -4878,7 +4878,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
4878
4878
|
} | undefined;
|
|
4879
4879
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
4880
4880
|
};
|
|
4881
|
-
operator: "between" | "
|
|
4881
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
4882
4882
|
values?: (string | number | boolean)[] | undefined;
|
|
4883
4883
|
id?: string | undefined;
|
|
4884
4884
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -5232,7 +5232,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5232
5232
|
} | undefined;
|
|
5233
5233
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
5234
5234
|
};
|
|
5235
|
-
operator: "between" | "
|
|
5235
|
+
operator: "between" | "<" | "<=" | ">" | ">=" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | "is_null" | "is_not_null";
|
|
5236
5236
|
values?: (string | number | boolean)[] | undefined;
|
|
5237
5237
|
id?: string | undefined;
|
|
5238
5238
|
scope?: "aggregate" | "row" | undefined;
|
|
@@ -5496,10 +5496,10 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5496
5496
|
value: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
5497
5497
|
}, "strict", z.ZodTypeAny, {
|
|
5498
5498
|
value: string | number;
|
|
5499
|
-
operator: "
|
|
5499
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
5500
5500
|
}, {
|
|
5501
5501
|
value: string | number;
|
|
5502
|
-
operator: "
|
|
5502
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
5503
5503
|
}>, z.ZodObject<{
|
|
5504
5504
|
operator: z.ZodLiteral<"between">;
|
|
5505
5505
|
values: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
@@ -5573,7 +5573,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5573
5573
|
} | undefined;
|
|
5574
5574
|
when?: Record<string, unknown> | {
|
|
5575
5575
|
value: string | number;
|
|
5576
|
-
operator: "
|
|
5576
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
5577
5577
|
} | {
|
|
5578
5578
|
values: [number, number];
|
|
5579
5579
|
operator: "between";
|
|
@@ -5603,7 +5603,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5603
5603
|
} | undefined;
|
|
5604
5604
|
when?: Record<string, unknown> | {
|
|
5605
5605
|
value: string | number;
|
|
5606
|
-
operator: "
|
|
5606
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
5607
5607
|
} | {
|
|
5608
5608
|
values: [number, number];
|
|
5609
5609
|
operator: "between";
|
|
@@ -5633,7 +5633,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5633
5633
|
} | undefined;
|
|
5634
5634
|
when?: Record<string, unknown> | {
|
|
5635
5635
|
value: string | number;
|
|
5636
|
-
operator: "
|
|
5636
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
5637
5637
|
} | {
|
|
5638
5638
|
values: [number, number];
|
|
5639
5639
|
operator: "between";
|
|
@@ -5663,7 +5663,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5663
5663
|
} | undefined;
|
|
5664
5664
|
when?: Record<string, unknown> | {
|
|
5665
5665
|
value: string | number;
|
|
5666
|
-
operator: "
|
|
5666
|
+
operator: "<" | "<=" | ">" | ">=" | "=" | "!=";
|
|
5667
5667
|
} | {
|
|
5668
5668
|
values: [number, number];
|
|
5669
5669
|
operator: "between";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { TFilter } from '../../../components/surfboard/filter/types.js';
|
|
2
|
+
/** Before, on or before, after or on or after: a default stated as a point. */
|
|
3
|
+
export type DateDefaultPointCondition = '<' | '<=' | '>' | '>=';
|
|
4
|
+
/**
|
|
5
|
+
* The fields a date default writes. A point's condition becomes the filter's
|
|
6
|
+
* operation; a range default (and a cleared one) puts a one-sided filter
|
|
7
|
+
* back to between and leaves a range filter's own condition alone. The
|
|
8
|
+
* operation is written only when it changes.
|
|
9
|
+
*/
|
|
10
|
+
export declare function writeDateFilterDefault(filter: {
|
|
11
|
+
operation?: TFilter['operation'];
|
|
12
|
+
}, defaultDateFilter: TFilter['defaultDateFilter'], condition?: DateDefaultPointCondition): Pick<TFilter, 'defaultDateFilter'> & Partial<Pick<TFilter, 'operation'>>;
|
|
13
|
+
/** An operation as a point condition (one the picker sent), or undefined for any other. */
|
|
14
|
+
export declare function asDateDefaultPointCondition(operation: string | undefined): DateDefaultPointCondition | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The point condition a filter's default runs under: its one-sided operation
|
|
17
|
+
* when the default is a point that operation states (RF-D9). Any other
|
|
18
|
+
* default runs as a range, as every default saved before this plan did, so a
|
|
19
|
+
* filter whose operation was one-sided before keeps its meaning (review
|
|
20
|
+
* R2-02: a `>=` filter defaulting to Today so far runs start of today to now).
|
|
21
|
+
*/
|
|
22
|
+
export declare function dateDefaultPointCondition(filter: {
|
|
23
|
+
operation?: TFilter['operation'];
|
|
24
|
+
defaultDateFilter?: TFilter['defaultDateFilter'];
|
|
25
|
+
}): DateDefaultPointCondition | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* The fields a change of date picker writes. The Day and Month pickers always
|
|
28
|
+
* run between, so a point default (before 90 days ago) can't follow the filter
|
|
29
|
+
* there, and neither can a default the new picker can't show (the caller's
|
|
30
|
+
* `showsDefault`, by the picker's own rule): both are cleared through
|
|
31
|
+
* `writeDateFilterDefault`, which puts a one-sided filter back to between
|
|
32
|
+
* (review: Before today became today on a Day picker).
|
|
33
|
+
*/
|
|
34
|
+
export declare function writeDateSelectionMode(filter: {
|
|
35
|
+
operation?: TFilter['operation'];
|
|
36
|
+
defaultDateFilter?: TFilter['defaultDateFilter'];
|
|
37
|
+
}, dateSelectionMode: NonNullable<TFilter['dateSelectionMode']>, showsDefault: boolean): Pick<TFilter, 'dateSelectionMode'> & Partial<Pick<TFilter, 'defaultDateFilter' | 'operation'>>;
|
|
@@ -7,3 +7,4 @@ export * from './ad-hoc-filter-values.js';
|
|
|
7
7
|
export { upgradeToStoredDashboard } from './stored-dashboard.js';
|
|
8
8
|
/** Every input the dashboard has at runtime, compatibility inputs named as the runtime names them (data variables P1a-21). */
|
|
9
9
|
export { listDashboardInputsTolerantly } from '../../../lib/dashboard-inputs/build-normalized-dashboard-inputs.js';
|
|
10
|
+
export * from './date-filter-default.js';
|
|
@@ -55,6 +55,7 @@ export * from './column-catalog.js';
|
|
|
55
55
|
export * from './card-formats/upgrade-card-formats.js';
|
|
56
56
|
export * from './upgrade-card-presentation.js';
|
|
57
57
|
export * from './card-formats/sql-date-pattern.js';
|
|
58
|
+
export * from './card-formats/detail-date-display.js';
|
|
58
59
|
export * from './retired-presentation-fields.js';
|
|
59
60
|
export * from './conditional-formatting/index.js';
|
|
60
61
|
export * from './kpi-figure.js';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { TableColumnId } from './table-settings.js';
|
|
2
|
+
/**
|
|
3
|
+
* The one move rule for a table's columns (table column order TCO-D7), for
|
|
4
|
+
* the author's header drag, the viewer's column panel and the MCP alike.
|
|
5
|
+
* Callers pass the current arrangement of the addressable columns; they differ
|
|
6
|
+
* only in what they compare the result against when they store it (the field
|
|
7
|
+
* order for the author, the author's order for a viewer).
|
|
8
|
+
*
|
|
9
|
+
* Pivot rule A (TCO-D6): without pivots any column goes anywhere. With pivots
|
|
10
|
+
* the dimensions stay left of the pivot area and reorder among themselves, and
|
|
11
|
+
* the measures reorder among themselves (their order applies inside every
|
|
12
|
+
* pivot block). An order keeps the rule when no dimension follows a measure.
|
|
13
|
+
* Comparison columns have no position of their own (TCO-D8): they are never
|
|
14
|
+
* in the order. Pure, React-free.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* The one arrangement (TCO-D1, TCO-D4): items whose id the order lists go in
|
|
18
|
+
* the order's sequence (a repeated id counts once); every other item goes
|
|
19
|
+
* right after its baseline predecessor (first if none). `resolveTableView` arranges its column groups
|
|
20
|
+
* with it and the writer normalizes a stored order with it.
|
|
21
|
+
*/
|
|
22
|
+
export declare function arrangeByOrder<T>(items: readonly T[], idOf: (item: T) => TableColumnId | undefined, order: readonly TableColumnId[]): T[];
|
|
23
|
+
/** True when no dimension follows a measure in a pivoted table; always true without pivots. */
|
|
24
|
+
export declare function orderKeepsPivotRule(order: readonly TableColumnId[], pivoted: boolean): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* An order that keeps pivot rule A: in a pivoted table, dimensions first,
|
|
27
|
+
* each side in its own order; any order without pivots. The writer stores
|
|
28
|
+
* it and the view's field order follows it.
|
|
29
|
+
*/
|
|
30
|
+
export declare function withPivotRule(order: readonly TableColumnId[], pivoted: boolean): TableColumnId[];
|
|
31
|
+
/** The columns of `order` that have somewhere to go: another column in their area (TCO-D9). */
|
|
32
|
+
export declare function listMovableTableColumns(order: readonly TableColumnId[], pivoted: boolean): ReadonlySet<TableColumnId>;
|
|
33
|
+
/** Where the moved column lands: before a column (`null`: at the end), or right after one. */
|
|
34
|
+
export type TableColumnPlacement = {
|
|
35
|
+
readonly before: TableColumnId | null;
|
|
36
|
+
} | {
|
|
37
|
+
readonly after: TableColumnId;
|
|
38
|
+
};
|
|
39
|
+
export type TableColumnMoveResult = {
|
|
40
|
+
readonly ok: true;
|
|
41
|
+
readonly order: readonly TableColumnId[];
|
|
42
|
+
} | {
|
|
43
|
+
readonly ok: false;
|
|
44
|
+
/**
|
|
45
|
+
* `unknown`: the column or its target is not in the order. `unchanged`:
|
|
46
|
+
* the column is already there. `pivot-area`: the move would put a
|
|
47
|
+
* dimension inside the pivot area or a measure before a dimension.
|
|
48
|
+
*/
|
|
49
|
+
readonly reason: 'unknown' | 'unchanged' | 'pivot-area';
|
|
50
|
+
};
|
|
51
|
+
export declare function moveTableColumn(input: {
|
|
52
|
+
readonly order: readonly TableColumnId[];
|
|
53
|
+
readonly columnId: TableColumnId;
|
|
54
|
+
readonly to: TableColumnPlacement;
|
|
55
|
+
readonly pivoted: boolean;
|
|
56
|
+
}): TableColumnMoveResult;
|
|
@@ -61,6 +61,13 @@ export type ViewerTableSettings = {
|
|
|
61
61
|
/** Column widths in whole pixels, only for columns the viewer resized. Unlisted columns keep the author's width. */
|
|
62
62
|
readonly widths?: Readonly<Record<TableColumnId, number>>;
|
|
63
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* An author's stored column order (`tablePrefs.columnOrder`, table column
|
|
66
|
+
* order TCO-D2) as the view reads it: duplicate and malformed ids dropped,
|
|
67
|
+
* anything that is not a list read as no order (TCO-INV-4). Ids the card no
|
|
68
|
+
* longer defines are left for the arrangement to ignore.
|
|
69
|
+
*/
|
|
70
|
+
export declare function normalizeTableColumnOrder(value: unknown): TableColumnId[] | undefined;
|
|
64
71
|
/**
|
|
65
72
|
* Drops empty fields and duplicate or malformed column ids. `sort: []` is kept:
|
|
66
73
|
* it means "explicitly unsorted". Returns `undefined` when nothing is left.
|
|
@@ -10,6 +10,8 @@ export type FilterLineValue = {
|
|
|
10
10
|
valueType?: string;
|
|
11
11
|
temporalPrecision?: string;
|
|
12
12
|
relativeMeta?: unknown;
|
|
13
|
+
/** The window a run resolved the value from (the server's carrier), when `relativeMeta` is resolved away. */
|
|
14
|
+
materializedRelativeDate?: unknown;
|
|
13
15
|
};
|
|
14
16
|
type FormatFilterLineOptions = {
|
|
15
17
|
timezone?: string;
|
package/package.json
CHANGED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { x as g, z as $ } from "./bookmark-state-Bn7k3ttp.js";
|
|
2
|
-
import { l as F, h as C, a as O, b as v, i as S, f as T } from "./stored-dashboard-KkH4zOhq.js";
|
|
3
|
-
function D(e) {
|
|
4
|
-
var d, c, f;
|
|
5
|
-
const { saved: s, draft: a, usage: l } = e, b = [], j = F(s);
|
|
6
|
-
for (const [t, o] of Object.entries(l.inputs))
|
|
7
|
-
!o || !C(s, t) || C(a, t) || b.push({
|
|
8
|
-
target: "input",
|
|
9
|
-
id: t,
|
|
10
|
-
label: O(s, j, t),
|
|
11
|
-
bookmarks: o,
|
|
12
|
-
remembered: 0
|
|
13
|
-
});
|
|
14
|
-
const z = new Set((a.sheets ?? []).map((t) => t.id));
|
|
15
|
-
for (const t of s.sheets ?? []) {
|
|
16
|
-
const o = l.sheets[t.id] ?? 0;
|
|
17
|
-
!o || z.has(t.id) || b.push({
|
|
18
|
-
target: "sheet",
|
|
19
|
-
id: t.id,
|
|
20
|
-
label: ((d = t.title) == null ? void 0 : d.trim()) || "Untitled sheet",
|
|
21
|
-
bookmarks: o,
|
|
22
|
-
remembered: 0
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
const B = g(s), y = g(a);
|
|
26
|
-
for (const [t, o] of Object.entries(l.tables)) {
|
|
27
|
-
if (!B.has(t)) continue;
|
|
28
|
-
const r = $(s, t), i = ((c = r == null ? void 0 : r.title) == null ? void 0 : c.trim()) || "Untitled table";
|
|
29
|
-
if (!y.has(t)) {
|
|
30
|
-
b.push({
|
|
31
|
-
target: "table",
|
|
32
|
-
id: t,
|
|
33
|
-
label: i,
|
|
34
|
-
bookmarks: o.bookmarks,
|
|
35
|
-
remembered: o.remembered
|
|
36
|
-
});
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
const h = r ? v(r) : void 0, k = $(a, t), p = k ? v(k) : void 0;
|
|
40
|
-
if (!(!r || !h || !p))
|
|
41
|
-
for (const [m, u] of Object.entries(o.columns)) {
|
|
42
|
-
if (!(u.bookmarks || u.remembered) || S(m) || !h.has(m) || p.has(m))
|
|
43
|
-
continue;
|
|
44
|
-
const n = T(r, m), I = ((f = n == null ? void 0 : n.label) == null ? void 0 : f.trim()) || (n == null ? void 0 : n.name);
|
|
45
|
-
b.push({
|
|
46
|
-
target: "column",
|
|
47
|
-
id: m,
|
|
48
|
-
cardId: t,
|
|
49
|
-
label: I ? `${I} in ${i}` : `A column in ${i}`,
|
|
50
|
-
bookmarks: u.bookmarks,
|
|
51
|
-
remembered: u.remembered
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return b;
|
|
56
|
-
}
|
|
57
|
-
function w(e, s, a) {
|
|
58
|
-
return `${e} ${e === 1 ? s : a}`;
|
|
59
|
-
}
|
|
60
|
-
function x(e) {
|
|
61
|
-
const s = [
|
|
62
|
-
e.bookmarks ? w(e.bookmarks, "bookmark", "bookmarks") : null,
|
|
63
|
-
e.remembered ? w(e.remembered, "remembered layout", "remembered layouts") : null
|
|
64
|
-
].filter(Boolean).join(", ");
|
|
65
|
-
return e.target === "sheet" ? { name: `${e.label} sheet`, uses: s } : e.target === "table" ? { name: `${e.label} table`, uses: s } : { name: e.label, uses: s };
|
|
66
|
-
}
|
|
67
|
-
function G(e) {
|
|
68
|
-
const { uses: s } = x(e), a = e.target === "column" ? `the column ${e.label}` : `the ${e.target === "input" ? "filter" : e.target} "${e.label}"`, l = e.bookmarks + e.remembered === 1 ? "uses" : "use";
|
|
69
|
-
return `This change removes ${a}, which ${s} ${l}; those saved views still open, with a note about what no longer applies.`;
|
|
70
|
-
}
|
|
71
|
-
export {
|
|
72
|
-
x as a,
|
|
73
|
-
G as b,
|
|
74
|
-
D as d
|
|
75
|
-
};
|