react-semaphor 0.1.590 → 0.1.591
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-Cazikwyh.js} +13 -13
- package/dist/chunks/{bookmark-impact-DkZABEd3.js → bookmark-impact-rWjQgk8h.js} +2 -2
- package/dist/chunks/{bookmark-state-Bn7k3ttp.js → bookmark-state-Bt_eQEqt.js} +569 -537
- package/dist/chunks/{card-filter-builder-6vflbF9O.js → card-filter-builder-DFR-6Jpm.js} +929 -910
- package/dist/chunks/{comparison-window-caption-fqijZdVd.js → comparison-window-caption-CFaw-kIV.js} +6 -6
- package/dist/chunks/{dashboard-DpgRl65K.js → dashboard-DCh9hKnJ.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BLbhONJz.js → dashboard-briefing-launcher-ob8G1b58.js} +91 -91
- package/dist/chunks/{dashboard-controls-kCTYEEsq.js → dashboard-controls-Nszg0k1A.js} +64 -64
- package/dist/chunks/{dashboard-json-CNIFresY.js → dashboard-json-BpwnG23b.js} +4 -4
- package/dist/chunks/{dates-BoeweqEo.js → dates-BOLBSBpn.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-D0eWTlPL.js → edit-dashboard-visual-BvM7br5P.js} +5501 -5475
- package/dist/chunks/filter-line-CYT7KIXb.js +133 -0
- package/dist/chunks/{filter-reach-copy-eMhDPTYH.js → filter-reach-copy-By3r7O3G.js} +11 -11
- package/dist/chunks/filter-value-text-CFiIZWJP.js +153 -0
- package/dist/chunks/{index-D8LFjI8j.js → index-CsQYlwhU.js} +5 -5
- 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-header-presentation-D-DfPAjb.js → pivot-header-presentation-gUxhdIdr.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-DbBahmgc.js → pivot-result-contract-expectations-BkMRCjzf.js} +111 -111
- 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-ChXt8wCt.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-BlyFX8He.js} +5053 -4955
- package/dist/chunks/{save-BhhXfp4s.js → save-C9CZAk6V.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-CPp--vXU.js → saved-dashboard-context-BPSdH2jW.js} +7 -7
- 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-BZUMCHRU.js} +28962 -28917
- package/dist/chunks/{shelf-drop-preview-context-BDScAUdq.js → shelf-drop-preview-context-yJheoeTC.js} +5 -5
- package/dist/chunks/{stored-dashboard-KkH4zOhq.js → stored-dashboard-CxQl9g0l.js} +653 -657
- 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-h7wm5TwP.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-OpYyaVCW.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1602 -1555
- package/dist/format-utils/index.js +14 -14
- package/dist/index.js +18 -18
- 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/index.js +5 -5
- package/dist/types/lib/dashboard-inputs/dashboard-date-comparison-plan.d.ts +0 -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/column-names.d.ts +2 -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/format-utils/filter-line.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chunks/filter-line-Dza3ee4w.js +0 -131
- package/dist/chunks/filter-value-text-DQw4v3nC.js +0 -146
- package/dist/chunks/raw-temporal-value-BnGCWJAL.js +0 -322
|
@@ -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';
|
|
@@ -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,131 +0,0 @@
|
|
|
1
|
-
import { j as N, r as g } from "./validators-CrYXNnNE.js";
|
|
2
|
-
import "./matrix-operation-contract-JSmproo9.js";
|
|
3
|
-
import "./analytics-base-schemas-8wz9vqn_.js";
|
|
4
|
-
import { r as b } from "./metric-comparison-xE_J6hkg.js";
|
|
5
|
-
import { c as F } from "./raw-temporal-value-BnGCWJAL.js";
|
|
6
|
-
import "../value-format-preferences/index.js";
|
|
7
|
-
const C = /^\d{4}-\d{2}-\d{2}$/;
|
|
8
|
-
function D(n) {
|
|
9
|
-
const r = n.split(".");
|
|
10
|
-
return r[r.length - 1].replace(/_/g, " ").replace(/([a-z])([A-Z])/g, "$1 $2").split(" ").map((e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join(" ");
|
|
11
|
-
}
|
|
12
|
-
const T = 10;
|
|
13
|
-
function h(n, r) {
|
|
14
|
-
const s = n.slice(0, T).map(r).join(", "), o = n.length - T;
|
|
15
|
-
return o > 0 ? `${s}, and ${o} more` : s;
|
|
16
|
-
}
|
|
17
|
-
function E(n) {
|
|
18
|
-
if (n.valueType !== "date" || n.operation !== "between" && n.operation !== "not between")
|
|
19
|
-
return;
|
|
20
|
-
const r = g(n.relativeMeta);
|
|
21
|
-
return r && b(r).printsByName ? r : void 0;
|
|
22
|
-
}
|
|
23
|
-
function _(n, r) {
|
|
24
|
-
if (r !== "label") return E(n);
|
|
25
|
-
if (!(n.valueType !== "date" || n.operation !== "between" && n.operation !== "not between"))
|
|
26
|
-
return g(n.relativeMeta);
|
|
27
|
-
}
|
|
28
|
-
function y(n, r = {}) {
|
|
29
|
-
const { name: s, operation: o, values: e, valueType: m } = n, t = r.label ?? D(s), c = _(n, r.relativeDates);
|
|
30
|
-
if (c) {
|
|
31
|
-
const a = N(c).label;
|
|
32
|
-
if (a)
|
|
33
|
-
return o === "between" ? `${t}: ${a}` : `${t} not in ${a}`;
|
|
34
|
-
}
|
|
35
|
-
if (!e || e.length === 0)
|
|
36
|
-
return o === "is null" ? `${t} is empty` : o === "is not null" ? `${t} is not empty` : "";
|
|
37
|
-
const u = g(n.relativeMeta), $ = n.temporalPrecision === "minute" || !!(u && b(u).subDay), i = (a) => {
|
|
38
|
-
if (m === "date" && a) {
|
|
39
|
-
const d = {
|
|
40
|
-
year: "numeric",
|
|
41
|
-
month: "short",
|
|
42
|
-
day: "numeric",
|
|
43
|
-
...$ ? {
|
|
44
|
-
hour: "numeric",
|
|
45
|
-
minute: "2-digit"
|
|
46
|
-
} : {}
|
|
47
|
-
};
|
|
48
|
-
if (typeof a == "string" && C.test(a)) {
|
|
49
|
-
const [p, f, w] = a.split("-").map(Number);
|
|
50
|
-
return new Intl.DateTimeFormat(void 0, {
|
|
51
|
-
year: "numeric",
|
|
52
|
-
month: "short",
|
|
53
|
-
day: "numeric",
|
|
54
|
-
timeZone: "UTC"
|
|
55
|
-
}).format(new Date(Date.UTC(p, f - 1, w)));
|
|
56
|
-
}
|
|
57
|
-
if (typeof a == "string" && F(a) === "wall_datetime") {
|
|
58
|
-
const [p, f, w, v, L] = a.split(/[-T :.]/).map(Number);
|
|
59
|
-
return new Intl.DateTimeFormat(void 0, {
|
|
60
|
-
...d,
|
|
61
|
-
timeZone: "UTC"
|
|
62
|
-
}).format(new Date(Date.UTC(p, f - 1, w, v, L)));
|
|
63
|
-
}
|
|
64
|
-
const l = new Date(a);
|
|
65
|
-
if (!isNaN(l.getTime()))
|
|
66
|
-
try {
|
|
67
|
-
return new Intl.DateTimeFormat(void 0, {
|
|
68
|
-
...d,
|
|
69
|
-
...r.timezone ? { timeZone: r.timezone } : {}
|
|
70
|
-
}).format(l);
|
|
71
|
-
} catch {
|
|
72
|
-
return $ ? l.toLocaleString(void 0, d) : l.toLocaleDateString(void 0, d);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return String(a);
|
|
76
|
-
};
|
|
77
|
-
switch (o) {
|
|
78
|
-
case "=":
|
|
79
|
-
return `${t}: ${i(e[0])}`;
|
|
80
|
-
case "!=":
|
|
81
|
-
return `${t} ≠ ${i(e[0])}`;
|
|
82
|
-
case ">":
|
|
83
|
-
return `${t} > ${i(e[0])}`;
|
|
84
|
-
case "<":
|
|
85
|
-
return `${t} < ${i(e[0])}`;
|
|
86
|
-
case ">=":
|
|
87
|
-
return `${t} ≥ ${i(e[0])}`;
|
|
88
|
-
case "<=":
|
|
89
|
-
return `${t} ≤ ${i(e[0])}`;
|
|
90
|
-
case "between":
|
|
91
|
-
case "not between": {
|
|
92
|
-
const a = `${i(e[0])} - ${i(e[1])}`;
|
|
93
|
-
return o === "between" ? `${t}: ${a}` : `${t} not in ${a}`;
|
|
94
|
-
}
|
|
95
|
-
case "in":
|
|
96
|
-
return e.length === 1 ? `${t}: ${i(e[0])}` : `${t}: ${h(e, i)}`;
|
|
97
|
-
case "not in":
|
|
98
|
-
return `${t} not in (${h(e, i)})`;
|
|
99
|
-
case "like":
|
|
100
|
-
return `${t} contains "${e[0]}"`;
|
|
101
|
-
case "not like":
|
|
102
|
-
return `${t} doesn't contain "${e[0]}"`;
|
|
103
|
-
default:
|
|
104
|
-
return `${t}: ${h(e, i)}`;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
function S(n, r = {}) {
|
|
108
|
-
if (!n || n.length === 0)
|
|
109
|
-
return "";
|
|
110
|
-
const s = /* @__PURE__ */ new Map();
|
|
111
|
-
n.forEach((e) => {
|
|
112
|
-
const m = s.get(e.name) || [];
|
|
113
|
-
m.push(e), s.set(e.name, m);
|
|
114
|
-
});
|
|
115
|
-
const o = [];
|
|
116
|
-
return s.forEach((e, m) => {
|
|
117
|
-
if (e.length === 1) {
|
|
118
|
-
const t = y(e[0], r);
|
|
119
|
-
t && o.push(t);
|
|
120
|
-
} else {
|
|
121
|
-
const t = D(m), c = e.map((u) => y(u, r).replace(`${t}: `, "").replace(`${t} `, "")).filter(Boolean);
|
|
122
|
-
c.length > 0 && o.push(`${t}: ${c.join(" and ")}`);
|
|
123
|
-
}
|
|
124
|
-
}), o.join(" | ");
|
|
125
|
-
}
|
|
126
|
-
export {
|
|
127
|
-
T as F,
|
|
128
|
-
S as a,
|
|
129
|
-
y as f,
|
|
130
|
-
E as r
|
|
131
|
-
};
|