react-semaphor 0.1.598 → 0.1.599
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 +329 -327
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +8 -8
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{add-to-dashboard-C86FsM8D.js → add-to-dashboard-ClhEIFst.js} +1 -1
- package/dist/chunks/{analytics-base-schemas-8wz9vqn_.js → analytics-base-schemas-DevrgqQb.js} +67 -60
- package/dist/chunks/{assistant-chat-DrI442Ld.js → assistant-chat-f3XuzrAm.js} +88 -89
- package/dist/chunks/{bookmark-impact-C6uWtNWF.js → bookmark-impact-B5hyttm2.js} +3 -3
- package/dist/chunks/{bookmark-state-BfeKmj5s.js → bookmark-state-h1OLXVjE.js} +153 -153
- package/dist/chunks/{card-filter-builder-CSKCSpNo.js → card-filter-builder-DfLqD2RV.js} +1035 -1063
- package/dist/chunks/{comparison-window-caption-3bum5j00.js → comparison-window-caption-DJDwP9XO.js} +6 -6
- package/dist/chunks/{context-CVXTFljo.js → context-BJoEFgNl.js} +1 -1
- package/dist/chunks/{dashboard-PYd63LbL.js → dashboard-CoI4aOUc.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-C2AuKs10.js → dashboard-briefing-launcher-RxYGtk-F.js} +255 -255
- package/dist/chunks/{dashboard-controls-BSbhyIkY.js → dashboard-controls-DeaXrtLK.js} +85 -85
- package/dist/chunks/{dashboard-json-Bd1rxD3y.js → dashboard-json-DvxKpKd_.js} +5 -5
- package/dist/chunks/dates-BhtO28Sn.js +164 -0
- package/dist/chunks/{edit-dashboard-visual-D_0ZiWev.js → edit-dashboard-visual-C4f5hONA.js} +5489 -5435
- package/dist/chunks/{filter-line-BdLyPYjH.js → filter-line-Dkg3yuOX.js} +6 -6
- package/dist/chunks/{filter-reach-copy-Dxn-mTuG.js → filter-reach-copy-Cl5Od38Q.js} +1740 -1643
- package/dist/chunks/{filter-value-text-C6g-nDUW.js → filter-value-text-CXyuLW9Q.js} +4 -4
- package/dist/chunks/{index-BHSDE54O.js → index-EKpTtkYF.js} +7 -7
- package/dist/chunks/{layout-grid-CYR-LVpl.js → layout-grid-DSrBSfPM.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-C0IGLTZH.js → matrix-analytical-definition-BuUSBDm7.js} +246 -218
- package/dist/chunks/{matrix-member-presentation-D5BIYuy5.js → matrix-member-presentation-B_2beBc0.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-RckfqkQm.js → matrix-operation-contract-DdK0J_KU.js} +36 -36
- package/dist/chunks/{metric-comparison-DsE8wdRh.js → metric-comparison-Bhz0V841.js} +2 -2
- package/dist/chunks/{paintbrush-xDDRjIyF.js → paintbrush-1UiU-uTz.js} +1 -1
- package/dist/chunks/{palette-CbOgFCy2.js → palette-DFIFf_-m.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Cnq55Uno.js → pivot-result-contract-expectations-Dk7WFR_u.js} +8 -8
- package/dist/chunks/{pivot-result-identity-b4-ugQhm.js → pivot-result-identity-CzzrJpEm.js} +1 -1
- package/dist/chunks/{raw-temporal-value-B9W38mi3.js → raw-temporal-value-BLvdaMng.js} +2 -2
- package/dist/chunks/{report-preferences-dialog-DTu3a7ce.js → report-preferences-dialog-CZaYsQLK.js} +14 -14
- package/dist/chunks/{report-runtime-context-BvJkcbar.js → report-runtime-context-CEGluufW.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-Bw-DesV2.js → resolve-dashboard-input-context-vPtbuDDz.js} +11811 -11331
- package/dist/chunks/{save-BgvAsp6X.js → save-CWQ02kHo.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-BFh0oOnF.js → saved-dashboard-context-C6X5nP4C.js} +97 -97
- package/dist/chunks/{selection-filter-compiler-DHYsq3yM.js → selection-filter-compiler-Ce4BpjRX.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-WvgHMnj8.js → semaphor-ready-indicator-BUiaKY6O.js} +59336 -58569
- package/dist/chunks/{shelf-drop-preview-context-D6HgYFJp.js → shelf-drop-preview-context-CwxWJjBv.js} +6 -6
- package/dist/chunks/{stored-dashboard-vlG0Knxi.js → stored-dashboard-Bmct-STp.js} +1200 -1183
- package/dist/chunks/{style-sheet-parts-ClmvtkSC.js → style-sheet-parts-BX7d7-2-.js} +198 -198
- package/dist/chunks/{table-export-sheet-Bv6tVuMu.js → table-export-sheet-BWSVTclx.js} +1 -1
- package/dist/chunks/{token-types-eMdcuB6j.js → token-types-CnlEiAdS.js} +1 -1
- package/dist/chunks/{upload-ClUeK8F0.js → upload-DsqUSS8l.js} +1 -1
- package/dist/chunks/{validators-DwhBEvnh.js → validators-D2Hm57lJ.js} +23 -13
- package/dist/chunks/{variable-draft-CauoSBN0.js → variable-draft-Bi-zUa_a.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2497 -2549
- package/dist/format-utils/index.js +14 -14
- package/dist/index.js +48 -48
- 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/surfboard/filter/types.d.ts +13 -1
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -2
- package/dist/types/components/visual/data-table/types/data-table.d.ts +14 -21
- package/dist/types/index.js +5 -5
- package/dist/types/lib/dashboard-view-state/card-view-state.d.ts +11 -1
- package/dist/types/lib/dashboard-view-state/drill-path.d.ts +7 -0
- package/dist/types/lib/dashboard-viewer/table-view.d.ts +20 -0
- package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +8 -0
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +1 -0
- package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +2 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +3 -1
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +64 -0
- package/dist/types/shared/analytics-protocol/column-filter-id.d.ts +4 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +26 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +12 -1
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +8 -1
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +3 -1
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +29 -1
- package/dist/types/shared/usage-events/attribution.d.ts +2 -2
- package/dist/types/shared/usage-events/envelope.d.ts +2 -2
- package/dist/usage-events/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/aggregate-measure-field-DtKcEjG5.js +0 -22
- package/dist/chunks/dates-DHMCf-F7.js +0 -115
- package/dist/chunks/list-filter-B67GsjTw.js +0 -15
|
@@ -1446,9 +1446,9 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
1446
1446
|
italic?: boolean | undefined;
|
|
1447
1447
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
1448
1448
|
backgroundColor?: string | undefined;
|
|
1449
|
-
textColor?: string | undefined;
|
|
1450
1449
|
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
1451
1450
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
1451
|
+
textColor?: string | undefined;
|
|
1452
1452
|
}, {
|
|
1453
1453
|
dataBar?: {
|
|
1454
1454
|
color: string;
|
|
@@ -1457,9 +1457,9 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
1457
1457
|
italic?: boolean | undefined;
|
|
1458
1458
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
1459
1459
|
backgroundColor?: string | undefined;
|
|
1460
|
-
textColor?: string | undefined;
|
|
1461
1460
|
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
1462
1461
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
1462
|
+
textColor?: string | undefined;
|
|
1463
1463
|
}>>;
|
|
1464
1464
|
}, "strict", z.ZodTypeAny, {
|
|
1465
1465
|
id: string;
|
|
@@ -1726,9 +1726,9 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
1726
1726
|
italic?: boolean | undefined;
|
|
1727
1727
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
1728
1728
|
backgroundColor?: string | undefined;
|
|
1729
|
-
textColor?: string | undefined;
|
|
1730
1729
|
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
1731
1730
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
1731
|
+
textColor?: string | undefined;
|
|
1732
1732
|
} | undefined;
|
|
1733
1733
|
enabled?: boolean | undefined;
|
|
1734
1734
|
}, {
|
|
@@ -1996,9 +1996,9 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
1996
1996
|
italic?: boolean | undefined;
|
|
1997
1997
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
1998
1998
|
backgroundColor?: string | undefined;
|
|
1999
|
-
textColor?: string | undefined;
|
|
2000
1999
|
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
2001
2000
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
2001
|
+
textColor?: string | undefined;
|
|
2002
2002
|
} | undefined;
|
|
2003
2003
|
enabled?: boolean | undefined;
|
|
2004
2004
|
}>;
|
|
@@ -3380,9 +3380,9 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
3380
3380
|
italic?: boolean | undefined;
|
|
3381
3381
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
3382
3382
|
backgroundColor?: string | undefined;
|
|
3383
|
-
textColor?: string | undefined;
|
|
3384
3383
|
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
3385
3384
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
3385
|
+
textColor?: string | undefined;
|
|
3386
3386
|
}, {
|
|
3387
3387
|
dataBar?: {
|
|
3388
3388
|
color: string;
|
|
@@ -3391,9 +3391,9 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
3391
3391
|
italic?: boolean | undefined;
|
|
3392
3392
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
3393
3393
|
backgroundColor?: string | undefined;
|
|
3394
|
-
textColor?: string | undefined;
|
|
3395
3394
|
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
3396
3395
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
3396
|
+
textColor?: string | undefined;
|
|
3397
3397
|
}>>;
|
|
3398
3398
|
}, "strict", z.ZodTypeAny, {
|
|
3399
3399
|
id: string;
|
|
@@ -3660,9 +3660,9 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
3660
3660
|
italic?: boolean | undefined;
|
|
3661
3661
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
3662
3662
|
backgroundColor?: string | undefined;
|
|
3663
|
-
textColor?: string | undefined;
|
|
3664
3663
|
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
3665
3664
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
3665
|
+
textColor?: string | undefined;
|
|
3666
3666
|
} | undefined;
|
|
3667
3667
|
enabled?: boolean | undefined;
|
|
3668
3668
|
}, {
|
|
@@ -3930,9 +3930,9 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
3930
3930
|
italic?: boolean | undefined;
|
|
3931
3931
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
3932
3932
|
backgroundColor?: string | undefined;
|
|
3933
|
-
textColor?: string | undefined;
|
|
3934
3933
|
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
3935
3934
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
3935
|
+
textColor?: string | undefined;
|
|
3936
3936
|
} | undefined;
|
|
3937
3937
|
enabled?: boolean | undefined;
|
|
3938
3938
|
}>, "many">;
|
|
@@ -4203,9 +4203,9 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
4203
4203
|
italic?: boolean | undefined;
|
|
4204
4204
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
4205
4205
|
backgroundColor?: string | undefined;
|
|
4206
|
-
textColor?: string | undefined;
|
|
4207
4206
|
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
4208
4207
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
4208
|
+
textColor?: string | undefined;
|
|
4209
4209
|
} | undefined;
|
|
4210
4210
|
enabled?: boolean | undefined;
|
|
4211
4211
|
}[];
|
|
@@ -4476,9 +4476,9 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
4476
4476
|
italic?: boolean | undefined;
|
|
4477
4477
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
4478
4478
|
backgroundColor?: string | undefined;
|
|
4479
|
-
textColor?: string | undefined;
|
|
4480
4479
|
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
4481
4480
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
4481
|
+
textColor?: string | undefined;
|
|
4482
4482
|
} | undefined;
|
|
4483
4483
|
enabled?: boolean | undefined;
|
|
4484
4484
|
}[];
|
|
@@ -30,6 +30,8 @@ export type NormalizeDashboardInputsResult = {
|
|
|
30
30
|
*/
|
|
31
31
|
export declare const DASHBOARD_INPUT_RUNTIME_SCOPE_KINDS: Readonly<Record<DashboardInput['runtimeScope'], ReadonlyArray<DashboardInput['scope']['kind']>>>;
|
|
32
32
|
export declare function isAllowedDashboardInputScopeCombination(runtimeScope: DashboardInput['runtimeScope'], scopeKind: DashboardInput['scope']['kind']): boolean;
|
|
33
|
+
/** A filter definition the input contract accepts: an id, a column and a data type. */
|
|
34
|
+
export declare function isCompleteOwnedFilter(value: unknown): value is TFilter;
|
|
33
35
|
export declare function normalizeDashboardInputs({ inputs, dashboardFilters, cards, validateCardTargets, }: {
|
|
34
36
|
inputs: DashboardInput[] | unknown;
|
|
35
37
|
dashboardFilters: TFilter[] | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataVariable, EmbeddedFilterDashboardInput, TDashboard, TFrame, TextCardRichContent } from '../../../lib/types/common-types.js';
|
|
1
|
+
import { DataVariable, EmbeddedFilterDashboardInput, TDashboard, TFrame, TInlineFilter, TextCardRichContent } from '../../../lib/types/common-types.js';
|
|
2
2
|
import { DocumentEdit } from '../../../lib/document/document-edits.js';
|
|
3
3
|
import { ResolvedCardSettings } from '../card-settings/resolved.js';
|
|
4
4
|
import { MeasureCalculationsUpdate } from '../measure-calculations/resolve.js';
|
|
@@ -120,6 +120,13 @@ export type DashboardOperation = ({
|
|
|
120
120
|
op: 'filter.remove';
|
|
121
121
|
filterId: string;
|
|
122
122
|
}
|
|
123
|
+
/** A card's pinned filters, the whole list in order (table column filters Phase 5). */
|
|
124
|
+
| {
|
|
125
|
+
op: 'pinnedFilters.set';
|
|
126
|
+
cardId: string;
|
|
127
|
+
filters: TInlineFilter[]; /** It removes a pinned filter (a proposal's risk reads it). */
|
|
128
|
+
unpins?: true;
|
|
129
|
+
}
|
|
123
130
|
/** The card's bound entry in the filter's mapping, built as the mapping editor builds one. */
|
|
124
131
|
| {
|
|
125
132
|
op: 'filter.bind';
|
|
@@ -8,7 +8,7 @@ import { CardTypeProperties } from '../changes/card-types.js';
|
|
|
8
8
|
import { CardSettingsView } from '../card-settings/views.js';
|
|
9
9
|
import { NotEditableReason, OutlineCardSource } from '../changes/read-card-query.js';
|
|
10
10
|
import { CardQuery, MatrixColumns } from '../changes/dashboard-change.js';
|
|
11
|
-
import { OutlineFilter } from './outline-filters.js';
|
|
11
|
+
import { OutlineFilter, OutlinePinnedFilter } from './outline-filters.js';
|
|
12
12
|
import { CalendarContext } from '../../report-runtime-context/index.js';
|
|
13
13
|
import { AgentTimeWindowRefusal } from '../../analytics-protocol/agent-time-window.js';
|
|
14
14
|
import { AppearanceSpec } from '../../../lib/appearance/types.js';
|
|
@@ -71,6 +71,8 @@ export type OutlineCard = ({
|
|
|
71
71
|
matrix?: MatrixColumns;
|
|
72
72
|
/** The query's stored window is one a card can't be saved with now: its refusal and replacements (relative-date-as-of SPEC-B 3.6). */
|
|
73
73
|
timeWindowReadOnly?: AgentTimeWindowRefusal;
|
|
74
|
+
/** The filters pinned on the card, in order: filter.update and filter.remove take their ids (table column filters Phase 5). */
|
|
75
|
+
pinnedFilters?: OutlinePinnedFilter[];
|
|
74
76
|
} & CardTypeProperties &
|
|
75
77
|
/** How the card reads and shows, in the shape a change takes; absent when the outline is truncated (card appearance SPEC 3.2). */
|
|
76
78
|
Partial<CardSettingsView>) | OutlineTextCard | ({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { TDashboard } from '../../../lib/types/common-types.js';
|
|
1
|
+
import { TCard, TDashboard } from '../../../lib/types/common-types.js';
|
|
2
|
+
import { TFilter, TFilterValue } from '../../../components/surfboard/filter/types.js';
|
|
2
3
|
import { DashboardFilterNotReachedReason, DashboardRelationshipReachResolver } from '../../../lib/query-context/dashboard-filter-mapping-resolution.js';
|
|
3
4
|
import { AgentNumberConditionDefault, FilterInputEntry, NumberFilterShowAs } from '../filter-model/index.js';
|
|
4
5
|
import { AgentTimeWindowRefusal } from '../../analytics-protocol/agent-time-window.js';
|
|
@@ -122,7 +123,34 @@ export type OutlineReachOptions = {
|
|
|
122
123
|
*/
|
|
123
124
|
export declare function outlineCalendar(calendar: CalendarContext | undefined, updatedAt: string | undefined): CalendarContext;
|
|
124
125
|
export declare function summarizeFilter(dashboard: TDashboard, entry: FilterInputEntry, calendar?: CalendarContext, options?: OutlineReachOptions): OutlineFilter;
|
|
126
|
+
/**
|
|
127
|
+
* A filter's picking and the default it loads with, as filter.add and
|
|
128
|
+
* filter.update take them: a dashboard filter's and a pinned filter's alike.
|
|
129
|
+
* `loaded` is the default as it loads, read by its owner.
|
|
130
|
+
*/
|
|
131
|
+
declare function readLoadedFilterDefault(filter: TFilter, loaded: TFilterValue | undefined): {
|
|
132
|
+
datePicker?: "day" | "month" | "range" | undefined;
|
|
133
|
+
defaultPeriodReadOnly?: AgentTimeWindowRefusal | undefined;
|
|
134
|
+
defaultPeriod?: RelativeDateWindow | undefined;
|
|
135
|
+
defaultCondition?: AgentNumberConditionDefault | undefined;
|
|
136
|
+
defaultValues?: (string | number | boolean)[] | undefined;
|
|
137
|
+
showAs?: NumberFilterShowAs | undefined;
|
|
138
|
+
selection: "single" | "multiple";
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* A card's pinned filter (table column filters Phase 5), in filter.update's
|
|
142
|
+
* words: its id, name and field, how viewers pick, and the default it loads
|
|
143
|
+
* with (the toolbar filter's own default reading). Listed in the card's order,
|
|
144
|
+
* which filter.update position changes.
|
|
145
|
+
*/
|
|
146
|
+
export type OutlinePinnedFilter = {
|
|
147
|
+
filterId: string;
|
|
148
|
+
label: string;
|
|
149
|
+
field: string;
|
|
150
|
+
} & ReturnType<typeof readLoadedFilterDefault>;
|
|
151
|
+
export declare function outlinePinnedFilters(card: TCard, calendar?: CalendarContext): OutlinePinnedFilter[];
|
|
125
152
|
/** Every filter on the dashboard, in the filter model's order. */
|
|
126
153
|
export declare function outlineFilters(dashboard: TDashboard, calendar?: CalendarContext, options?: OutlineReachOptions): OutlineFilter[];
|
|
127
154
|
/** One filter by its input id, or undefined. */
|
|
128
155
|
export declare function outlineFilter(dashboard: TDashboard, filterId: string, calendar?: CalendarContext, options?: OutlineReachOptions): OutlineFilter | undefined;
|
|
156
|
+
export {};
|
|
@@ -32,15 +32,15 @@ export declare const usageAttributionFieldsSchema: z.ZodObject<{
|
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
33
|
dashboardId?: string | undefined;
|
|
34
34
|
sheetId?: string | undefined;
|
|
35
|
-
sheetTitle?: string | undefined;
|
|
36
35
|
trigger?: "sort" | "page" | "refresh" | "drill" | "initial_load" | "input_change" | "click_filter" | undefined;
|
|
36
|
+
sheetTitle?: string | undefined;
|
|
37
37
|
operationId?: string | undefined;
|
|
38
38
|
dashboardTitle?: string | undefined;
|
|
39
39
|
}, {
|
|
40
40
|
dashboardId?: unknown;
|
|
41
41
|
sheetId?: unknown;
|
|
42
|
-
sheetTitle?: unknown;
|
|
43
42
|
trigger?: unknown;
|
|
43
|
+
sheetTitle?: unknown;
|
|
44
44
|
operationId?: unknown;
|
|
45
45
|
dashboardTitle?: unknown;
|
|
46
46
|
}>;
|
|
@@ -108,7 +108,7 @@ export declare const usageEventEnvelopeSchema: z.ZodObject<{
|
|
|
108
108
|
release: string;
|
|
109
109
|
org_id: string | null;
|
|
110
110
|
tenant_id: string | null;
|
|
111
|
-
actor_type: "system" | "tenant" | "tenant_user" | "
|
|
111
|
+
actor_type: "system" | "tenant" | "tenant_user" | "anonymous" | "org_user" | "api_key";
|
|
112
112
|
org_user_id: string | null;
|
|
113
113
|
tenant_user_id: string | null;
|
|
114
114
|
session_id: string | null;
|
|
@@ -137,7 +137,7 @@ export declare const usageEventEnvelopeSchema: z.ZodObject<{
|
|
|
137
137
|
release: string;
|
|
138
138
|
org_id: string | null;
|
|
139
139
|
tenant_id: string | null;
|
|
140
|
-
actor_type: "system" | "tenant" | "tenant_user" | "
|
|
140
|
+
actor_type: "system" | "tenant" | "tenant_user" | "anonymous" | "org_user" | "api_key";
|
|
141
141
|
org_user_id: string | null;
|
|
142
142
|
tenant_user_id: string | null;
|
|
143
143
|
session_id: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as e } from "zod";
|
|
2
|
-
import { g as h, l as S } from "../chunks/context-
|
|
2
|
+
import { g as h, l as S } from "../chunks/context-BJoEFgNl.js";
|
|
3
3
|
import { Q as b, a as y, b as x } from "../chunks/attribution-BvoKvhcj.js";
|
|
4
4
|
import { U as te, c as ne, u as ae } from "../chunks/attribution-BvoKvhcj.js";
|
|
5
5
|
const r = e.string().min(1).max(128), t = e.string().max(500), m = e.array(e.string().max(500)).max(500), n = e.number().int().nonnegative(), p = e.string().refine((o) => new TextEncoder().encode(o).length <= 16 * 1024), f = e.object({
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { h as n } from "./validators-DwhBEvnh.js";
|
|
2
|
-
import { s as c } from "./matrix-operation-contract-RckfqkQm.js";
|
|
3
|
-
function i(r) {
|
|
4
|
-
var a;
|
|
5
|
-
if (!r) return !1;
|
|
6
|
-
if (typeof r.aggregate == "string" || r.isPreAggregated) return !0;
|
|
7
|
-
const s = typeof r.expression == "string" ? r.expression : "";
|
|
8
|
-
if (!s) return !1;
|
|
9
|
-
if (c(s).calls.length > 0) return !0;
|
|
10
|
-
const t = (a = r.calculatedFormula) == null ? void 0 : a.inputFields;
|
|
11
|
-
return Array.isArray(t) && t.some((e) => {
|
|
12
|
-
const g = String((e == null ? void 0 : e.role) || "").toLowerCase(), o = String((e == null ? void 0 : e.aggregate) || "").trim();
|
|
13
|
-
return g === "metric" && o.length > 0;
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
function u(r) {
|
|
17
|
-
return !!((r == null ? void 0 : r.role) === "metric" && (n(r) || i(r)));
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
i as h,
|
|
21
|
-
u as i
|
|
22
|
-
};
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { d as D, e as h } from "./filter-reach-copy-Dxn-mTuG.js";
|
|
2
|
-
import { h as y, d as g, r as b, a as m, e as F } from "./resolve-dashboard-input-context-Bw-DesV2.js";
|
|
3
|
-
import "./validators-DwhBEvnh.js";
|
|
4
|
-
import "./matrix-operation-contract-RckfqkQm.js";
|
|
5
|
-
import "./analytics-base-schemas-8wz9vqn_.js";
|
|
6
|
-
import "zod";
|
|
7
|
-
import "./pivot-result-contract-expectations-Cnq55Uno.js";
|
|
8
|
-
import "../value-format-preferences/index.js";
|
|
9
|
-
import { D as w } from "./bookmark-state-BfeKmj5s.js";
|
|
10
|
-
import "./schema-C9NPiIru.js";
|
|
11
|
-
import "./index-CV_Kzou0.js";
|
|
12
|
-
import "./context-CVXTFljo.js";
|
|
13
|
-
import { p as N, r as T } from "./stored-dashboard-vlG0Knxi.js";
|
|
14
|
-
import { g as C } from "./saved-dashboard-context-BFh0oOnF.js";
|
|
15
|
-
const M = ["hour", "day", "week", "month", "quarter", "year"], O = 12, P = {
|
|
16
|
-
automatic: "Automatic",
|
|
17
|
-
card: "Set on this card",
|
|
18
|
-
trend_by: "From Trend By"
|
|
19
|
-
};
|
|
20
|
-
function j(r, e, n = {}) {
|
|
21
|
-
if (!r) return;
|
|
22
|
-
const t = r.granularity;
|
|
23
|
-
if (r.skipped)
|
|
24
|
-
return {
|
|
25
|
-
head: `Too many points by ${t}`,
|
|
26
|
-
// A Trend By sets the grain, so the fix is there (review P3R-02).
|
|
27
|
-
detail: r.grainSource === "trend_by" ? "Pick a coarser grain on the Trend By." : "Pick a coarser grain, or Automatic."
|
|
28
|
-
};
|
|
29
|
-
const i = P[r.grainSource], a = r.span === "recent" ? `The last 12 ${t}s: no date range` : r.span === "history" ? `The 12 ${t}s ending with this one` : r.window ? D({ ...r.window, timezone: r.calendar.tz }, n.now) : void 0;
|
|
30
|
-
return {
|
|
31
|
-
head: `By ${t} · ${e} ${e === 1 ? "point" : "points"}`,
|
|
32
|
-
detail: a ? `${a} · ${i}` : i
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function q(r, e) {
|
|
36
|
-
var t;
|
|
37
|
-
if (e.status === "blocked" || (t = r.sql) != null && t.trim()) return !1;
|
|
38
|
-
const n = new Set(
|
|
39
|
-
e.mappingDispositions.flatMap(
|
|
40
|
-
(i) => i.status === "apply" ? [i.filterValue.filterId] : []
|
|
41
|
-
)
|
|
42
|
-
);
|
|
43
|
-
return e.cardFilterValues.some((i) => {
|
|
44
|
-
const a = e.queryFilterDefinitions.find(
|
|
45
|
-
(d) => d.id === i.filterId
|
|
46
|
-
);
|
|
47
|
-
if (!y(i)) return !1;
|
|
48
|
-
if (!(n.has(i.filterId) || (a == null ? void 0 : a.kind) === "global-date"))
|
|
49
|
-
return !!(a && $(
|
|
50
|
-
[a],
|
|
51
|
-
e.resolvedPrimaryDateField,
|
|
52
|
-
[i]
|
|
53
|
-
));
|
|
54
|
-
const s = g(i);
|
|
55
|
-
return !!(s && b({
|
|
56
|
-
card: r,
|
|
57
|
-
filter: s,
|
|
58
|
-
filterValue: i,
|
|
59
|
-
effectiveFilterValue: i,
|
|
60
|
-
temporalBinding: e.resolvedPrimaryDateField
|
|
61
|
-
}).status === "eligible");
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
function $(r, e, n) {
|
|
65
|
-
if (!e) return !1;
|
|
66
|
-
const t = e.qualifiedFieldName, i = e.qualifiedEntityName, a = i && e.name ? `${i}.${e.name}` : t;
|
|
67
|
-
return r.some((o) => {
|
|
68
|
-
if (!(m(o.dataType || "") === "date")) return !1;
|
|
69
|
-
const d = h(o, n), l = d.split("."), c = l[l.length - 1] || d, p = l.length > 1 ? l.slice(0, -1).join(".") : void 0, f = o.qualifiedTableName || p, u = f ? `${f}.${c}` : void 0;
|
|
70
|
-
return t ? u ? u === a || u.endsWith(`.${t}`) : c === e.name : u ? u === a : c === e.name;
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function R(r, e) {
|
|
74
|
-
const n = (a) => {
|
|
75
|
-
const o = a.field;
|
|
76
|
-
return o ? e.id && o.id === e.id ? !0 : e.qualifiedFieldName && o.qualifiedFieldName ? o.qualifiedFieldName === e.qualifiedFieldName : o.name === e.name : !1;
|
|
77
|
-
}, t = (a) => a.conditions.some((o) => {
|
|
78
|
-
var s;
|
|
79
|
-
return m(((s = o.field) == null ? void 0 : s.dataType) || "") === "date" && n(o);
|
|
80
|
-
}) || a.groups.some(t), i = F(r);
|
|
81
|
-
return i ? t(i) : !1;
|
|
82
|
-
}
|
|
83
|
-
function k(r, e) {
|
|
84
|
-
var s, d;
|
|
85
|
-
const n = (d = (s = r.config) == null ? void 0 : s.groupByColumns) == null ? void 0 : d.find((l) => m(l.dataType || "") === "date"), t = e.resolvedPrimaryDateField, i = n ? { id: n.id, name: n.name, label: n.label || n.name, qualifiedFieldName: n.qualifiedFieldName } : t ? { name: t.name, label: t.name, qualifiedFieldName: t.qualifiedFieldName } : void 0;
|
|
86
|
-
if (!i) return { comparisonDate: null, dateWindow: e.status === "ready" ? "none" : "unknown" };
|
|
87
|
-
const a = { name: i.name, label: i.label };
|
|
88
|
-
if (R(r, i)) return { comparisonDate: a, dateWindow: "applies" };
|
|
89
|
-
if (e.status !== "ready") return { comparisonDate: a, dateWindow: "unknown" };
|
|
90
|
-
const o = q(r, { status: "ready", ...e.compiledFilters });
|
|
91
|
-
return { comparisonDate: a, dateWindow: o ? "applies" : "none" };
|
|
92
|
-
}
|
|
93
|
-
function U(r) {
|
|
94
|
-
const e = N(r.dashboard), n = w(e).find((o) => o.cardId === r.cardId);
|
|
95
|
-
if (!n || n.kind === "documentSectionCard") return { comparisonDate: null, dateWindow: "unknown" };
|
|
96
|
-
const { runtimeValues: t, transientContexts: i } = T({ dashboard: e, capture: {}, calendar: r.calendar }), a = C({
|
|
97
|
-
dashboard: e,
|
|
98
|
-
location: n,
|
|
99
|
-
runtimeValues: t,
|
|
100
|
-
semanticExecutionPayload: r.semanticExecutionPayload,
|
|
101
|
-
calendar: r.calendar,
|
|
102
|
-
transientContexts: i
|
|
103
|
-
});
|
|
104
|
-
return k(
|
|
105
|
-
n.card,
|
|
106
|
-
(a == null ? void 0 : a.status) === "ready" ? { status: "ready", compiledFilters: a.compiledFilters, resolvedPrimaryDateField: a.resolvedPrimaryDateField } : { status: "blocked", resolvedPrimaryDateField: a == null ? void 0 : a.resolvedPrimaryDateField }
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
export {
|
|
110
|
-
M as K,
|
|
111
|
-
O as a,
|
|
112
|
-
U as b,
|
|
113
|
-
j as d,
|
|
114
|
-
k as r
|
|
115
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { c as t } from "./style-sheet-parts-ClmvtkSC.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.453.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
const i = t("ListFilter", [
|
|
9
|
-
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
10
|
-
["path", { d: "M7 12h10", key: "b7w52i" }],
|
|
11
|
-
["path", { d: "M10 18h4", key: "1ulq68" }]
|
|
12
|
-
]);
|
|
13
|
-
export {
|
|
14
|
-
i as L
|
|
15
|
-
};
|