react-semaphor 0.1.558 → 0.1.560
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 +368 -358
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +9 -9
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/analytics-base-schemas-CHLxsPfX.js +630 -0
- package/dist/chunks/{assistant-chat-BCWoP6Rf.js → assistant-chat-Bu2fFm_I.js} +206 -207
- package/dist/chunks/{bookmark-state-PjQpxbG7.js → bookmark-state-BFY9oNmr.js} +3 -3
- package/dist/chunks/{braces-D5Ucy7q1.js → braces-Da41xfUd.js} +1 -1
- package/dist/chunks/{comparison-window-caption-Dc7BaCMz.js → comparison-window-caption-4FNkMrzE.js} +213 -213
- package/dist/chunks/{context-DVy4HOU0.js → context-BgPDzLHZ.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-B-DLRGrV.js → custom-visual-inputs-Dz-enUNR.js} +1 -1
- package/dist/chunks/{dashboard-wK6Bai4V.js → dashboard-_MeBuy67.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-Coqghdn6.js → dashboard-briefing-launcher-CEi4Pr_v.js} +1152 -1166
- package/dist/chunks/{dashboard-controls-BYWSM2RM.js → dashboard-controls-Bi7fyG-4.js} +98 -98
- package/dist/chunks/{dashboard-json-pPTB5gj0.js → dashboard-json-B1mU_OMa.js} +5 -5
- package/dist/chunks/{document-dashboard-inputs-PY_7Xm55.js → document-dashboard-inputs-CkWfDB8c.js} +64 -64
- package/dist/chunks/{edit-dashboard-visual-BODxuUeq.js → edit-dashboard-visual-0CJN31Y3.js} +8274 -8514
- package/dist/chunks/filter-reach-copy-BF4w4kI2.js +3738 -0
- package/dist/chunks/{filter-value-text-CUBpotVN.js → filter-value-text-CRC-K_l_.js} +3 -3
- package/dist/chunks/{global-date-filter-utils-BsFqnnbA.js → global-date-filter-utils-D8365uPH.js} +4088 -3416
- package/dist/chunks/{index-DP_wQl0v.js → index-DtHidOPV.js} +579 -604
- package/dist/chunks/{layout-grid-CkoXmv0L.js → layout-grid-BvsH4RY2.js} +1 -1
- package/dist/chunks/{list-filter-B4i25kuc.js → list-filter-Dg0otx5E.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-4GTUDheD.js → matrix-analytical-definition-CM18W8w6.js} +41 -41
- package/dist/chunks/{matrix-card-fS_4O7zA.js → matrix-card-HPskLaPy.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-Dj7HaAHC.js → matrix-member-presentation-Bbrfrke4.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-CpgLZ7E5.js → matrix-operation-contract-WPv4R-H_.js} +130 -130
- package/dist/chunks/{metric-comparison-C8LY7GG5.js → metric-comparison-ljMKYZKa.js} +2 -2
- package/dist/chunks/{model-change-CJEj3ZD6.js → model-change-Ccn1zaxl.js} +1 -1
- package/dist/chunks/{palette-stlpjVk4.js → palette-Bsh376zO.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-DMk-mKhG.js → pivot-result-contract-expectations-Bl5suy4-.js} +602 -696
- package/dist/chunks/{pivot-result-identity-CrQ54Xbj.js → pivot-result-identity-vS9TSh4f.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-BI2z2LlB.js → raw-temporal-presentation-BHm7s-hz.js} +230 -274
- package/dist/chunks/{report-preferences-dialog-Dc-YyVwf.js → report-preferences-dialog-BV8L0SeS.js} +55 -55
- package/dist/chunks/{report-runtime-context-CohdtiMg.js → report-runtime-context-BZQh9ywy.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-BZYI1hB0.js → resolve-dashboard-input-context-CAMiWvyR.js} +2021 -2239
- package/dist/chunks/{save-C1dgxgAu.js → save-B5EAsgQF.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-CIBoMq46.js → saved-dashboard-context-n2Wn11cV.js} +57 -57
- package/dist/chunks/{selection-reducer-_d6aKJnj.js → selection-reducer-D0YnaAD9.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-ERTLU7B4.js → semaphor-ready-indicator-XLBLOJ2V.js} +38446 -39176
- package/dist/chunks/{shelf-drop-preview-context-fEnx6iL_.js → shelf-drop-preview-context-DHMa54a-.js} +570 -570
- package/dist/chunks/source-entity-resolution-dUG5VWRm.js +607 -0
- package/dist/chunks/{switch-BqUan2mN.js → switch-ByxH4M7t.js} +3 -3
- package/dist/chunks/{table-export-sheet-CTCTA_bd.js → table-export-sheet-C_GdeTYU.js} +1 -1
- package/dist/chunks/{table-settings-DF1gdVQR.js → table-settings-Imz0FgWi.js} +8 -8
- package/dist/chunks/{temporal-input-presentation-DoSniQj1.js → temporal-input-presentation-uvNK_tM0.js} +1109 -820
- package/dist/chunks/{token-types-DFyLflLY.js → token-types-CQtXUVMy.js} +1 -1
- package/dist/chunks/{upload-DcoyjkRV.js → upload-wbR-NVzq.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-xhb9YFg-.js → use-create-flow-overlay-state-CEBaLOKC.js} +6 -6
- package/dist/chunks/validators-CXTneCA4.js +3453 -0
- package/dist/chunks/{zoned-wall-clock-E35Frf9v.js → zoned-wall-clock-B1n_WjW3.js} +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2207 -1496
- package/dist/data-app-sdk/index.js +20 -20
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +6 -6
- package/dist/format-utils/index.js +181 -176
- package/dist/index.js +22 -22
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/editor/editor-aside/utils.d.ts +1 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +5 -20
- package/dist/types/index.js +6 -6
- package/dist/types/lib/formatters/canonical-format-adapter.d.ts +2 -29
- package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
- package/dist/types/lib/formatters/table-column-settings.d.ts +47 -0
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +10 -188
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +16 -372
- package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
- package/dist/types/lib/stores/editor-store.d.ts +39 -9
- package/dist/types/lib/stores/table-actions.d.ts +9 -3
- package/dist/types/lib/table-formatting/index.d.ts +0 -2
- package/dist/types/lib/table-formatting/table-conditional-formatting-range-source.d.ts +3 -2
- package/dist/types/lib/table-formatting/table-conditional-formatting-range.d.ts +3 -2
- package/dist/types/lib/table-formatting/table-formatting-normalize.d.ts +1 -2
- package/dist/types/lib/table-formatting/table-formatting-render-model.d.ts +9 -0
- package/dist/types/lib/table-formatting/table-formatting-types.d.ts +5 -95
- package/dist/types/lib/table-formatting/table-presentation-fields.d.ts +35 -0
- package/dist/types/lib/types/common-types.d.ts +40 -47
- package/dist/types/lib/types/explorer-types.d.ts +13 -44
- package/dist/types/lib/utils/card-config-utils.d.ts +9 -1
- package/dist/types/lib/utils/card-definition.d.ts +9 -187
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +159 -513
- package/dist/types/shared/analytics-protocol/contracts.d.ts +32 -9
- package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +108 -980
- package/dist/types/shared/analytics-protocol/field-validation.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +281 -4624
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +20 -20
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +18 -18
- package/dist/types/shared/analytics-protocol/matrix-path-contract.d.ts +40 -40
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +3 -203
- package/dist/types/shared/analytics-protocol/scalar-value.d.ts +8 -8
- package/dist/types/shared/analytics-protocol/source-capabilities.d.ts +21 -0
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +8 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +69 -69
- package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/card-formats/upgrade-card-formats.d.ts +57 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +24 -24
- package/dist/types/shared/dashboard-authoring/conditional-formatting/editable.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/evaluate.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/index.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/resolve-card-column-ref.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/retain.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +4499 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/store.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/types.d.ts +151 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/upgrade.d.ts +35 -0
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +62 -62
- package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +4 -2
- package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -5
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +24 -736
- package/dist/types/shared/dashboard-authoring/retired-presentation-fields.d.ts +31 -0
- package/dist/types/shared/dashboard-authoring/upgrade-card-presentation.d.ts +14 -0
- package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +5 -1
- package/dist/types/shared/format-utils/formatters/number-formatter.d.ts +16 -0
- package/dist/types/shared/format-utils/index.d.ts +2 -0
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +10 -366
- package/dist/types/shared/format-utils/raw-temporal.d.ts +15 -1
- package/dist/types/shared/format-utils/resolve-column-format.d.ts +43 -0
- package/dist/types/shared/format-utils/retired-format-adapters.d.ts +68 -0
- package/dist/types/shared/format-utils/semantic-format.d.ts +5 -1
- package/dist/types/shared/format-utils/stored-value-format.d.ts +16 -0
- package/dist/types/shared/format-utils/types/format-types.d.ts +10 -12
- package/package.json +1 -1
- package/dist/chunks/analytics-base-schemas-BUFUoO6G.js +0 -472
- package/dist/chunks/editor-draft-sync-BN5qYHPF.js +0 -15
- package/dist/chunks/filter-reach-copy-BvJH9JO-.js +0 -3411
- package/dist/chunks/source-entity-resolution-DXW1HpKf.js +0 -816
- package/dist/chunks/validators-hmfNNQz8.js +0 -3595
- package/dist/types/lib/table-formatting/table-conditional-formatting-evaluator.d.ts +0 -9
- package/dist/types/lib/table-formatting/table-formatting-validation.d.ts +0 -12
|
@@ -4166,7 +4166,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
4166
4166
|
after: string;
|
|
4167
4167
|
}>]>>;
|
|
4168
4168
|
}, "strict", z.ZodTypeAny, {
|
|
4169
|
-
type: "table" | "matrix" | "
|
|
4169
|
+
type: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table";
|
|
4170
4170
|
title: string;
|
|
4171
4171
|
op: "card.add";
|
|
4172
4172
|
description?: string | undefined;
|
|
@@ -4194,7 +4194,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
4194
4194
|
query?: any;
|
|
4195
4195
|
handle?: string | undefined;
|
|
4196
4196
|
}, {
|
|
4197
|
-
type: "table" | "matrix" | "
|
|
4197
|
+
type: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table";
|
|
4198
4198
|
title: string;
|
|
4199
4199
|
op: "card.add";
|
|
4200
4200
|
description?: string | undefined;
|
|
@@ -5123,7 +5123,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5123
5123
|
}, "strict", z.ZodTypeAny, {
|
|
5124
5124
|
cardId: string;
|
|
5125
5125
|
op: "card.update";
|
|
5126
|
-
type?: "table" | "matrix" | "
|
|
5126
|
+
type?: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table" | undefined;
|
|
5127
5127
|
description?: string | null | undefined;
|
|
5128
5128
|
matrix?: {
|
|
5129
5129
|
columns: (string | {
|
|
@@ -5265,7 +5265,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5265
5265
|
}, {
|
|
5266
5266
|
cardId: string;
|
|
5267
5267
|
op: "card.update";
|
|
5268
|
-
type?: "table" | "matrix" | "
|
|
5268
|
+
type?: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table" | undefined;
|
|
5269
5269
|
description?: string | null | undefined;
|
|
5270
5270
|
matrix?: {
|
|
5271
5271
|
columns: (string | {
|
|
@@ -5581,8 +5581,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5581
5581
|
field: string;
|
|
5582
5582
|
op: "filter.add";
|
|
5583
5583
|
selection?: "single" | "multiple" | undefined;
|
|
5584
|
-
sheetIds?: string[] | undefined;
|
|
5585
5584
|
defaultValues?: (string | number | boolean)[] | undefined;
|
|
5585
|
+
sheetIds?: string[] | undefined;
|
|
5586
5586
|
handle?: string | undefined;
|
|
5587
5587
|
defaultPeriod?: {
|
|
5588
5588
|
value: number;
|
|
@@ -5607,8 +5607,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5607
5607
|
field: string;
|
|
5608
5608
|
op: "filter.add";
|
|
5609
5609
|
selection?: "single" | "multiple" | undefined;
|
|
5610
|
-
sheetIds?: string[] | undefined;
|
|
5611
5610
|
defaultValues?: (string | number | boolean)[] | undefined;
|
|
5611
|
+
sheetIds?: string[] | undefined;
|
|
5612
5612
|
handle?: string | undefined;
|
|
5613
5613
|
defaultPeriod?: {
|
|
5614
5614
|
value: number;
|
|
@@ -5789,8 +5789,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5789
5789
|
op: "filter.update";
|
|
5790
5790
|
label?: string | undefined;
|
|
5791
5791
|
selection?: "single" | "multiple" | undefined;
|
|
5792
|
-
sheetIds?: string[] | null | undefined;
|
|
5793
5792
|
defaultValues?: (string | number | boolean)[] | null | undefined;
|
|
5793
|
+
sheetIds?: string[] | null | undefined;
|
|
5794
5794
|
defaultPeriod?: {
|
|
5795
5795
|
value: number;
|
|
5796
5796
|
unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
|
|
@@ -5812,8 +5812,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5812
5812
|
op: "filter.update";
|
|
5813
5813
|
label?: string | undefined;
|
|
5814
5814
|
selection?: "single" | "multiple" | undefined;
|
|
5815
|
-
sheetIds?: string[] | null | undefined;
|
|
5816
5815
|
defaultValues?: (string | number | boolean)[] | null | undefined;
|
|
5816
|
+
sheetIds?: string[] | null | undefined;
|
|
5817
5817
|
defaultPeriod?: {
|
|
5818
5818
|
value: number;
|
|
5819
5819
|
unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
|
|
@@ -5858,28 +5858,28 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5858
5858
|
datasetName: string;
|
|
5859
5859
|
name: string;
|
|
5860
5860
|
};
|
|
5861
|
-
cardId: string;
|
|
5862
5861
|
filterId: string;
|
|
5862
|
+
cardId: string;
|
|
5863
5863
|
op: "filter.bind";
|
|
5864
5864
|
}, {
|
|
5865
5865
|
field: string | {
|
|
5866
5866
|
datasetName: string;
|
|
5867
5867
|
name: string;
|
|
5868
5868
|
};
|
|
5869
|
-
cardId: string;
|
|
5870
5869
|
filterId: string;
|
|
5870
|
+
cardId: string;
|
|
5871
5871
|
op: "filter.bind";
|
|
5872
5872
|
}>, z.ZodObject<{
|
|
5873
5873
|
op: z.ZodLiteral<"filter.exclude">;
|
|
5874
5874
|
filterId: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
5875
5875
|
cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
5876
5876
|
}, "strict", z.ZodTypeAny, {
|
|
5877
|
-
cardId: string;
|
|
5878
5877
|
filterId: string;
|
|
5878
|
+
cardId: string;
|
|
5879
5879
|
op: "filter.exclude";
|
|
5880
5880
|
}, {
|
|
5881
|
-
cardId: string;
|
|
5882
5881
|
filterId: string;
|
|
5882
|
+
cardId: string;
|
|
5883
5883
|
op: "filter.exclude";
|
|
5884
5884
|
}>, z.ZodObject<{
|
|
5885
5885
|
op: z.ZodLiteral<"layout.arrange">;
|
|
@@ -6000,7 +6000,7 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
6000
6000
|
after: string;
|
|
6001
6001
|
}>]>>;
|
|
6002
6002
|
}, "strict", z.ZodTypeAny, {
|
|
6003
|
-
type: "table" | "matrix" | "
|
|
6003
|
+
type: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table";
|
|
6004
6004
|
title: string;
|
|
6005
6005
|
op: "card.add";
|
|
6006
6006
|
description?: string | undefined;
|
|
@@ -6028,7 +6028,7 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
6028
6028
|
query?: any;
|
|
6029
6029
|
handle?: string | undefined;
|
|
6030
6030
|
}, {
|
|
6031
|
-
type: "table" | "matrix" | "
|
|
6031
|
+
type: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table";
|
|
6032
6032
|
title: string;
|
|
6033
6033
|
op: "card.add";
|
|
6034
6034
|
description?: string | undefined;
|
|
@@ -6957,7 +6957,7 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
6957
6957
|
}, "strict", z.ZodTypeAny, {
|
|
6958
6958
|
cardId: string;
|
|
6959
6959
|
op: "card.update";
|
|
6960
|
-
type?: "table" | "matrix" | "
|
|
6960
|
+
type?: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table" | undefined;
|
|
6961
6961
|
description?: string | null | undefined;
|
|
6962
6962
|
matrix?: {
|
|
6963
6963
|
columns: (string | {
|
|
@@ -7099,7 +7099,7 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
7099
7099
|
}, {
|
|
7100
7100
|
cardId: string;
|
|
7101
7101
|
op: "card.update";
|
|
7102
|
-
type?: "table" | "matrix" | "
|
|
7102
|
+
type?: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table" | undefined;
|
|
7103
7103
|
description?: string | null | undefined;
|
|
7104
7104
|
matrix?: {
|
|
7105
7105
|
columns: (string | {
|
|
@@ -7415,8 +7415,8 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
7415
7415
|
field: string;
|
|
7416
7416
|
op: "filter.add";
|
|
7417
7417
|
selection?: "single" | "multiple" | undefined;
|
|
7418
|
-
sheetIds?: string[] | undefined;
|
|
7419
7418
|
defaultValues?: (string | number | boolean)[] | undefined;
|
|
7419
|
+
sheetIds?: string[] | undefined;
|
|
7420
7420
|
handle?: string | undefined;
|
|
7421
7421
|
defaultPeriod?: {
|
|
7422
7422
|
value: number;
|
|
@@ -7441,8 +7441,8 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
7441
7441
|
field: string;
|
|
7442
7442
|
op: "filter.add";
|
|
7443
7443
|
selection?: "single" | "multiple" | undefined;
|
|
7444
|
-
sheetIds?: string[] | undefined;
|
|
7445
7444
|
defaultValues?: (string | number | boolean)[] | undefined;
|
|
7445
|
+
sheetIds?: string[] | undefined;
|
|
7446
7446
|
handle?: string | undefined;
|
|
7447
7447
|
defaultPeriod?: {
|
|
7448
7448
|
value: number;
|
|
@@ -7623,8 +7623,8 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
7623
7623
|
op: "filter.update";
|
|
7624
7624
|
label?: string | undefined;
|
|
7625
7625
|
selection?: "single" | "multiple" | undefined;
|
|
7626
|
-
sheetIds?: string[] | null | undefined;
|
|
7627
7626
|
defaultValues?: (string | number | boolean)[] | null | undefined;
|
|
7627
|
+
sheetIds?: string[] | null | undefined;
|
|
7628
7628
|
defaultPeriod?: {
|
|
7629
7629
|
value: number;
|
|
7630
7630
|
unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
|
|
@@ -7646,8 +7646,8 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
7646
7646
|
op: "filter.update";
|
|
7647
7647
|
label?: string | undefined;
|
|
7648
7648
|
selection?: "single" | "multiple" | undefined;
|
|
7649
|
-
sheetIds?: string[] | null | undefined;
|
|
7650
7649
|
defaultValues?: (string | number | boolean)[] | null | undefined;
|
|
7650
|
+
sheetIds?: string[] | null | undefined;
|
|
7651
7651
|
defaultPeriod?: {
|
|
7652
7652
|
value: number;
|
|
7653
7653
|
unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
|
|
@@ -7692,28 +7692,28 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
7692
7692
|
datasetName: string;
|
|
7693
7693
|
name: string;
|
|
7694
7694
|
};
|
|
7695
|
-
cardId: string;
|
|
7696
7695
|
filterId: string;
|
|
7696
|
+
cardId: string;
|
|
7697
7697
|
op: "filter.bind";
|
|
7698
7698
|
}, {
|
|
7699
7699
|
field: string | {
|
|
7700
7700
|
datasetName: string;
|
|
7701
7701
|
name: string;
|
|
7702
7702
|
};
|
|
7703
|
-
cardId: string;
|
|
7704
7703
|
filterId: string;
|
|
7704
|
+
cardId: string;
|
|
7705
7705
|
op: "filter.bind";
|
|
7706
7706
|
}>, z.ZodObject<{
|
|
7707
7707
|
op: z.ZodLiteral<"filter.exclude">;
|
|
7708
7708
|
filterId: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
7709
7709
|
cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
7710
7710
|
}, "strict", z.ZodTypeAny, {
|
|
7711
|
-
cardId: string;
|
|
7712
7711
|
filterId: string;
|
|
7712
|
+
cardId: string;
|
|
7713
7713
|
op: "filter.exclude";
|
|
7714
7714
|
}, {
|
|
7715
|
-
cardId: string;
|
|
7716
7715
|
filterId: string;
|
|
7716
|
+
cardId: string;
|
|
7717
7717
|
op: "filter.exclude";
|
|
7718
7718
|
}>, z.ZodObject<{
|
|
7719
7719
|
op: z.ZodLiteral<"layout.arrange">;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CardColumnRef, ConditionalRule } from './types.js';
|
|
2
|
+
/** One string per reference; `parseColumnRefKey` reads it back. */
|
|
3
|
+
export declare function columnRefKey(ref: CardColumnRef): string;
|
|
4
|
+
/** The reference a key names, or undefined for any other string (a draft's placeholder). */
|
|
5
|
+
export declare function parseColumnRefKey(key: string): CardColumnRef | undefined;
|
|
6
|
+
/** A rule with each column named another way. */
|
|
7
|
+
export declare function mapRuleColumns<A, B>(rule: ConditionalRule<A>, map: (column: A) => B): ConditionalRule<B>;
|
|
8
|
+
/** Stored rules as an editor edits them. */
|
|
9
|
+
export declare function toEditableRules(rules: readonly ConditionalRule[]): ConditionalRule<string>[];
|
|
10
|
+
/**
|
|
11
|
+
* Editor rules as stored rules. A rule whose condition names no column (a
|
|
12
|
+
* draft) is left out; a styled column that names none is dropped.
|
|
13
|
+
*/
|
|
14
|
+
export declare function fromEditableRules(rules: readonly ConditionalRule<string>[]): ConditionalRule[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ConditionalFormattingRange, ConditionalFormattingResult } from '../../../lib/table-formatting/table-formatting-types.js';
|
|
2
|
+
import { ResolvedConditionalRule, TablePart } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* The styles one cell takes from a card's rules, resolved to result keys
|
|
5
|
+
* (`resolveConditionalRules`). Later rules win where styles overlap. Rules
|
|
6
|
+
* with a Matrix scope are evaluated by the Matrix adapter, which strips the
|
|
7
|
+
* scope first.
|
|
8
|
+
*/
|
|
9
|
+
export declare function evaluateConditionalRules(args: {
|
|
10
|
+
rules: readonly ResolvedConditionalRule[];
|
|
11
|
+
row: Record<string, unknown>;
|
|
12
|
+
rowIndex: number;
|
|
13
|
+
columnKey: string;
|
|
14
|
+
range: ConditionalFormattingRange;
|
|
15
|
+
tablePart: TablePart;
|
|
16
|
+
}): ConditionalFormattingResult;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './types.js';
|
|
2
|
+
export * from './schema.js';
|
|
3
|
+
export * from './resolve-card-column-ref.js';
|
|
4
|
+
export * from './evaluate.js';
|
|
5
|
+
export * from './upgrade.js';
|
|
6
|
+
export * from './store.js';
|
|
7
|
+
export * from './editable.js';
|
|
8
|
+
export * from './retain.js';
|
|
9
|
+
export * from './kpi.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TCard } from '../../../lib/types/common-types.js';
|
|
2
|
+
import { CardColumnRef } from './types.js';
|
|
3
|
+
export type KpiValueStyle = {
|
|
4
|
+
color?: string;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* The column a KPI's value rules name: a SQL KPI's value, else its first
|
|
9
|
+
* measure (or the one named). The renderers color it, and the KPI rule panel
|
|
10
|
+
* offers only it, so a rule can't be saved where it never shows (ledger P4-16).
|
|
11
|
+
*/
|
|
12
|
+
export declare function kpiValueColumn(card: Pick<TCard, 'sql' | 'config'>, metricId?: string): CardColumnRef | undefined;
|
|
13
|
+
/** The colors the card's rules give this value. */
|
|
14
|
+
export declare function resolveKpiValueStyle(card: Pick<TCard, 'sql' | 'config' | 'preferences'>, value: unknown, metricId?: string): KpiValueStyle;
|
package/dist/types/shared/dashboard-authoring/conditional-formatting/resolve-card-column-ref.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TCard } from '../../../lib/types/common-types.js';
|
|
2
|
+
import { CardColumnRef, CardOutputColumns, ConditionalRule, ResolvedConditionalRule } from './types.js';
|
|
3
|
+
/** The current result key a reference names, or undefined when the column is gone. */
|
|
4
|
+
export declare function resolveCardColumnRef(ref: CardColumnRef, columns: CardOutputColumns): string | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* A card's rules with every reference resolved, ready for
|
|
7
|
+
* `evaluateConditionalRules`. A rule whose condition column is gone, or whose
|
|
8
|
+
* styled columns are all gone, is left out: it has nothing to apply to.
|
|
9
|
+
*/
|
|
10
|
+
export declare function resolveConditionalRules(rules: readonly ConditionalRule[], columns: CardOutputColumns): ResolvedConditionalRule[];
|
|
11
|
+
/**
|
|
12
|
+
* The reference a writer stores for a result key a renderer or editor shows:
|
|
13
|
+
* the inverse of `resolveCardColumnRef` over the same columns, in the kinds
|
|
14
|
+
* the card's rules accept (`acceptedColumnRefKinds`). Undefined when the key
|
|
15
|
+
* names no such column.
|
|
16
|
+
*/
|
|
17
|
+
export declare function cardColumnRefForKey(card: TCard, key: string, columns: CardOutputColumns): CardColumnRef | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TCard } from '../../../lib/types/common-types.js';
|
|
2
|
+
export type DroppedConditionalRule = {
|
|
3
|
+
ruleId: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
reason: string;
|
|
6
|
+
};
|
|
7
|
+
/** `after` with its rules retained, and the rules it dropped. */
|
|
8
|
+
export declare function retainConditionalRules(input: {
|
|
9
|
+
before: TCard;
|
|
10
|
+
after: TCard;
|
|
11
|
+
}): {
|
|
12
|
+
card: TCard;
|
|
13
|
+
dropped: DroppedConditionalRule[];
|
|
14
|
+
};
|