react-semaphor 0.1.507 → 0.1.508
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/DATA_APP_SDK.md +56 -0
- package/dist/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +194 -172
- package/dist/appearance/index.cjs +1 -1
- package/dist/appearance/index.js +1 -1
- package/dist/appearance-runtime/index.cjs +1 -1
- package/dist/appearance-runtime/index.js +1 -1
- package/dist/brand-studio/index.cjs +2 -2
- package/dist/brand-studio/index.js +139 -119
- package/dist/briefings/index.cjs +1 -1
- package/dist/briefings/index.js +3 -3
- package/dist/chunks/appearance-context-DzqCdhB4.cjs +1 -0
- package/dist/chunks/{appearance-context-XviHOhWJ.js → appearance-context-VJdrKi7r.js} +2 -1
- package/dist/chunks/{appearance-runtime-provider-D0xVQWnH.js → appearance-runtime-provider-CC4HT2Gi.js} +2 -2
- package/dist/chunks/{appearance-runtime-provider-Ca8rxO86.cjs → appearance-runtime-provider-D5pkvgE4.cjs} +1 -1
- package/dist/chunks/calculated-field-identity-BiTGmnST.cjs +1 -0
- package/dist/chunks/calculated-field-identity-CJL54uFx.js +1373 -0
- package/dist/chunks/{constants-NUleP4DY.js → card-config-utils-Bq1enstT.js} +260 -260
- package/dist/chunks/card-config-utils-CMO4_zVs.cjs +1 -0
- package/dist/chunks/{dashboard-briefing-launcher-DXTpU85p.js → dashboard-briefing-launcher-B9l0ZAbv.js} +12 -12
- package/dist/chunks/{dashboard-briefing-launcher-C8nDSDnV.cjs → dashboard-briefing-launcher-C4zsM3Hd.cjs} +1 -1
- package/dist/chunks/{dashboard-controls-CyL0yimg.js → dashboard-controls-BCQv4xWM.js} +16 -14
- package/dist/chunks/dashboard-controls-CWwllVOe.cjs +52 -0
- package/dist/chunks/{dashboard-json-5Jr3RudV.js → dashboard-json-BtU_q_0A.js} +9 -9
- package/dist/chunks/dashboard-json-DVj2xLsH.cjs +1 -0
- package/dist/chunks/edit-dashboard-visual-CO2IVBOq.cjs +172 -0
- package/dist/chunks/{edit-dashboard-visual-C7X-um9g.js → edit-dashboard-visual-RgFUx-py.js} +1986 -1990
- package/dist/chunks/{editor-action-buttons-CcDm8nA5.cjs → editor-action-buttons-BE8Fby6n.cjs} +2 -2
- package/dist/chunks/{editor-action-buttons-C5Wja_J4.js → editor-action-buttons-D-MaqTIs.js} +6 -6
- package/dist/chunks/field-aggregations-DUb0NU6c.js +1229 -0
- package/dist/chunks/field-aggregations-jSi77h9Z.cjs +1 -0
- package/dist/chunks/{field-dependencies-DVl2p1Nm.js → field-dependencies-Cl97kkHy.js} +30 -34
- package/dist/chunks/{field-dependencies-r_U0CGQ-.cjs → field-dependencies-DIab72rQ.cjs} +1 -1
- package/dist/chunks/{index-BVr4fcCB.js → index-0pdaQ9e1.js} +5 -5
- package/dist/chunks/index-BaIrLSBb.cjs +1422 -0
- package/dist/chunks/{index-De2QNsqV.js → index-ByiS9sB4.js} +45343 -43665
- package/dist/chunks/{index-C9KXfCkC.js → index-CLIro-EG.js} +3 -0
- package/dist/chunks/index-Cx3qmRUB.cjs +1 -0
- package/dist/chunks/{index-BlYf8gNa.cjs → index-DhlVxvyI.cjs} +1 -1
- package/dist/chunks/{matrix-card-DACDwdTq.js → matrix-card-CnKQpnsj.js} +1 -1
- package/dist/chunks/{matrix-card-CRXcmAjp.cjs → matrix-card-U4c72doZ.cjs} +1 -1
- package/dist/chunks/{matrix-control-sources-ClQzIk7E.js → matrix-control-sources-CRRdP03Q.js} +165 -134
- package/dist/chunks/matrix-control-sources-FjxGIbqk.cjs +1 -0
- package/dist/chunks/{matrix-formatter-7GLTcBuy.cjs → matrix-formatter-CveLJo6S.cjs} +1 -1
- package/dist/chunks/{matrix-formatter-xsq7n_e6.js → matrix-formatter-ZVS5QOuq.js} +2 -2
- package/dist/chunks/matrix-member-presentation-CFHjdrxT.cjs +1 -0
- package/dist/chunks/matrix-member-presentation-CzGZJd3a.js +182 -0
- package/dist/chunks/matrix-operation-contract-DoiWTUbT.cjs +1 -0
- package/dist/chunks/matrix-operation-contract-xL8IhFzp.js +1802 -0
- package/dist/chunks/{pivot-header-presentation-3wqWChFd.cjs → pivot-header-presentation-Cxz8-06f.cjs} +1 -1
- package/dist/chunks/{pivot-header-presentation-D44ODZGn.js → pivot-header-presentation-DVylCBHB.js} +2 -2
- package/dist/chunks/{pivot-result-lifecycle-DZ0ZSMoM.cjs → pivot-result-lifecycle-BiERyXnS.cjs} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-BSmqVkVG.js → pivot-result-lifecycle-CmjpW7qG.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-xADifRXs.js → report-preferences-dialog-BbkXcnnn.js} +4 -4
- package/dist/chunks/report-preferences-dialog-C9rpWgQZ.cjs +1 -0
- package/dist/chunks/{search-BHsQIWBV.js → selection-reducer-B94WgZ9V.js} +55 -11
- package/dist/chunks/selection-reducer-CGKKsaPa.cjs +26 -0
- package/dist/chunks/{semantic-format-BhIL1PXP.cjs → semantic-format-BzH69TRq.cjs} +1 -1
- package/dist/chunks/{semantic-format-C3amkGmY.js → semantic-format-CBlRO8Aw.js} +1 -1
- package/dist/chunks/{switch-DHGiC0aU.js → switch-CD4uGTZI.js} +7450 -7694
- package/dist/chunks/switch-iC1x2dcE.cjs +134 -0
- package/dist/chunks/token-types-Ahh5u4iT.cjs +1 -0
- package/dist/chunks/token-types-CPde8_LG.js +8 -0
- package/dist/chunks/{update-policy-Cc9h57pA.cjs → update-policy-COjFudhl.cjs} +1 -1
- package/dist/chunks/{update-policy-eTcz52jO.js → update-policy-D9q1Tz8k.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +3 -3
- package/dist/dashboard-authoring/index.js +734 -622
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +3 -3
- package/dist/data-app-codegen/index.cjs +1 -1
- package/dist/data-app-codegen/index.js +2 -2
- package/dist/data-app-codegen-node/index.cjs +94 -92
- package/dist/data-app-codegen-node/index.js +337 -333
- package/dist/data-app-sdk/index.cjs +9 -9
- package/dist/data-app-sdk/index.js +1091 -969
- package/dist/data-app-sdk-adapters/index.cjs +1 -1
- package/dist/data-app-sdk-adapters/index.js +104 -96
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +2 -2
- package/dist/format-utils/index.cjs +1 -1
- package/dist/format-utils/index.js +8 -8
- package/dist/index.cjs +1 -1
- package/dist/index.js +15 -15
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/brand-studio/brand-studio-draft.d.ts +3 -1
- package/dist/types/components/dashboard/card-selection-pill.d.ts +5 -0
- package/dist/types/components/dashboard/dashboard-container.d.ts +1 -1
- package/dist/types/components/dashboard/drill-breadcrumb.d.ts +1 -0
- package/dist/types/components/dashboard/drill-navigation-controls.d.ts +3 -3
- package/dist/types/components/interactions/applied-filters-display.d.ts +6 -1
- package/dist/types/components/interactions/click-to-filter-review-dialog.d.ts +21 -0
- package/dist/types/components/interactions/dashboard-drill-host.d.ts +13 -0
- package/dist/types/components/interactions/filter-badge-tooltip.d.ts +4 -4
- package/dist/types/components/interactions/insight-modal.d.ts +4 -14
- package/dist/types/components/interactions/insight-viewer.d.ts +7 -19
- package/dist/types/components/interactions/interactions-sheet.d.ts +6 -0
- package/dist/types/components/interactions/panels/click-to-filter-panel.d.ts +20 -0
- package/dist/types/components/interactions/reusable/interaction-selection-popover.d.ts +2 -2
- package/dist/types/components/interactions/sheet/action-editor.d.ts +17 -0
- package/dist/types/components/interactions/sheet/action-meta.d.ts +45 -0
- package/dist/types/components/interactions/sheet/action-picker.d.ts +7 -0
- package/dist/types/components/interactions/sheet/click-outcome-preview.d.ts +10 -0
- package/dist/types/components/interactions/sheet/interactions-home.d.ts +28 -0
- package/dist/types/components/interactions/sheet/sheet-parts.d.ts +37 -0
- package/dist/types/components/surfboard/filter/dashboard-filter-mapping-panel.d.ts +28 -1
- package/dist/types/components/surfboard/filter/selection-chip.d.ts +11 -0
- package/dist/types/components/surfboard/filter/selection-filter-section.d.ts +4 -0
- package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +3 -0
- package/dist/types/components/ui/resizable.d.ts +1 -1
- package/dist/types/components/visual/matrix-table/matrix-interaction-actions.d.ts +13 -1
- package/dist/types/components/visual/matrix-table/matrix-selection-click.d.ts +6 -0
- package/dist/types/data-app-sdk/adapters.d.ts +3 -2
- package/dist/types/data-app-sdk/builders.d.ts +2 -1
- package/dist/types/data-app-sdk/contracts.d.ts +44 -2
- package/dist/types/data-app-sdk/index.d.ts +1 -0
- package/dist/types/data-app-sdk/query-request.d.ts +7 -2
- package/dist/types/data-app-sdk/selection.d.ts +2 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +24 -23
- package/dist/types/lib/appearance/types.d.ts +3 -1
- package/dist/types/lib/briefings/briefing-attachment-model.d.ts +0 -2
- package/dist/types/lib/contexts/interactions-popover-context.d.ts +1 -8
- package/dist/types/lib/dashboard/click-to-filter-card-references.d.ts +23 -0
- package/dist/types/lib/dashboard-inputs/build-normalized-dashboard-inputs.d.ts +16 -2
- package/dist/types/lib/dashboard-inputs/build-selection-dashboard-inputs.d.ts +31 -0
- package/dist/types/lib/dashboard-inputs/click-to-filter-emitted-fields.d.ts +17 -0
- package/dist/types/lib/dashboard-inputs/click-to-filter-mapping-draft.d.ts +99 -0
- package/dist/types/lib/dashboard-inputs/click-to-filter-sheet-reach.d.ts +12 -0
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +18 -1
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-candidate-metadata.d.ts +4 -1
- package/dist/types/lib/dashboard-inputs/dashboard-input-scope.d.ts +10 -0
- package/dist/types/lib/dashboard-inputs/dashboard-input-snapshot.d.ts +8 -1
- package/dist/types/lib/dashboard-inputs/index.d.ts +1 -0
- package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +18 -7
- package/dist/types/lib/dashboard-inputs/resolve-field-date-comparison-coverage.d.ts +5 -2
- package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +77 -0
- package/dist/types/lib/dashboard-inputs/selection-targets.d.ts +26 -0
- package/dist/types/lib/dashboard-inputs/transient-input-context.d.ts +102 -0
- package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +50 -0
- package/dist/types/lib/dashboard-navigation/describe-carried-context.d.ts +11 -0
- package/dist/types/lib/dashboard-navigation/index.d.ts +1 -0
- package/dist/types/lib/dashboard-navigation/navigation-state.d.ts +120 -0
- package/dist/types/lib/dashboard-navigation/run-one-off-drill.d.ts +11 -0
- package/dist/types/lib/dashboard-navigation/use-transient-contexts.d.ts +17 -0
- package/dist/types/lib/dashboard-view-state/card-view-state.d.ts +48 -0
- package/dist/types/lib/dashboard-view-state/drill-path.d.ts +20 -0
- package/dist/types/lib/dashboard-view-state/index.d.ts +2 -0
- package/dist/types/lib/download-pdf.d.ts +0 -3
- package/dist/types/lib/formatters/metric-formatting.d.ts +1 -1
- package/dist/types/lib/hooks/ai/dashboard-context.d.ts +15 -8
- package/dist/types/lib/hooks/chartjs/use-chart-blur.d.ts +10 -2
- package/dist/types/lib/hooks/interactions/{use-event-engine.d.ts → use-drill-actions.d.ts} +28 -7
- package/dist/types/lib/hooks/selection/use-active-selections.d.ts +15 -0
- package/dist/types/lib/hooks/selection/use-click-to-filter-mapping-draft.d.ts +20 -0
- package/dist/types/lib/hooks/selection/use-selection-click.d.ts +34 -0
- package/dist/types/lib/hooks/selection/use-selection-gestures.d.ts +38 -0
- package/dist/types/lib/hooks/selection/use-table-row-selection.d.ts +46 -0
- package/dist/types/lib/hooks/use-dashboard-card.d.ts +0 -2
- package/dist/types/lib/hooks/use-dashboard-filter-mapping-candidates.d.ts +18 -0
- package/dist/types/lib/hooks/use-dashboard-frame-query.d.ts +0 -1
- package/dist/types/lib/hooks/use-dashboard.d.ts +1 -3
- package/dist/types/lib/hooks/use-interactions-popover.d.ts +1 -8
- package/dist/types/lib/hooks/use-resolved-card-config.d.ts +6 -0
- package/dist/types/lib/interactions/click-outcome.d.ts +25 -0
- package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +3 -1
- package/dist/types/lib/interactions/get-click-context-from-matrix.d.ts +1 -1
- package/dist/types/lib/interactions/get-click-context-from-table.d.ts +7 -0
- package/dist/types/lib/interactions/interaction-utils.d.ts +17 -1
- package/dist/types/lib/matrix-table/build-matrix-drill-to-detail.d.ts +15 -0
- package/dist/types/lib/matrix-table/matrix-card-interactions.d.ts +14 -3
- package/dist/types/lib/query-context/build-card-query-context.d.ts +19 -8
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +5 -3
- package/dist/types/lib/query-context/build-dashboard-frame-base-query-contexts.d.ts +12 -4
- package/dist/types/lib/query-context/compile-selection-filters.d.ts +5 -0
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +46 -0
- package/dist/types/lib/query-context/filter-group-utils.d.ts +3 -0
- package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +29 -0
- package/dist/types/lib/selection/click-to-filter-authoring-support.d.ts +9 -0
- package/dist/types/lib/selection/selection-from-click-context.d.ts +41 -0
- package/dist/types/lib/selection/selection-labels.d.ts +3 -0
- package/dist/types/lib/selection/selection-notices.d.ts +9 -0
- package/dist/types/lib/selection/selection-reducer.d.ts +46 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +62 -17
- package/dist/types/lib/stores/editor-store.d.ts +1 -2
- package/dist/types/lib/stores/index.d.ts +0 -2
- package/dist/types/lib/types/common-types.d.ts +60 -6
- package/dist/types/lib/types/explorer-types.d.ts +1 -22
- package/dist/types/lib/types/interaction-types.d.ts +6 -198
- package/dist/types/lib/utils/calculate-context-aware-filters.d.ts +21 -12
- package/dist/types/lib/utils/card-utils.d.ts +11 -0
- package/dist/types/lib/utils/date-hierarchy-utils.d.ts +3 -1
- package/dist/types/lib/utils/drag-and-drop-utils.d.ts +1 -1
- package/dist/types/lib/utils/interaction-icons.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +32 -32
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/selection-contract.d.ts +100 -0
- package/dist/types/shared/analytics-protocol/selection-filter-compiler.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/apply-group-by-override.d.ts +19 -0
- package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +88 -0
- package/dist/types/shared/dashboard-authoring/contracts.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/linked-click-to-filter-overrides.d.ts +32 -0
- package/dist/types/shared/format-utils/matrix-continuation.d.ts +3 -3
- package/package.json +1 -1
- package/src/data-app-sdk/README.md +58 -1
- package/dist/chunks/appearance-context-tNjvTJj3.cjs +0 -1
- package/dist/chunks/calculated-field-identity-BTpUqfEu.js +0 -1276
- package/dist/chunks/calculated-field-identity-rMuXuzEY.cjs +0 -1
- package/dist/chunks/constants-vtu7_IUo.cjs +0 -1
- package/dist/chunks/dashboard-controls-DlxeddZN.cjs +0 -52
- package/dist/chunks/dashboard-json-DhS4yJfc.cjs +0 -1
- package/dist/chunks/edit-dashboard-visual-X3OCnivL.cjs +0 -172
- package/dist/chunks/field-aggregations-BU_3gHKR.js +0 -957
- package/dist/chunks/field-aggregations-CDCamEsQ.cjs +0 -1
- package/dist/chunks/index-C8XCKzB6.cjs +0 -1
- package/dist/chunks/index-DSa6RSdg.cjs +0 -1417
- package/dist/chunks/matrix-control-sources-CeC5EMyq.cjs +0 -1
- package/dist/chunks/matrix-member-presentation-E2B4k3ws.cjs +0 -1
- package/dist/chunks/matrix-member-presentation-qiHxv67e.js +0 -105
- package/dist/chunks/matrix-operation-contract-Cqy4EW2H.js +0 -1638
- package/dist/chunks/matrix-operation-contract-D9dLX-Wr.cjs +0 -1
- package/dist/chunks/report-preferences-dialog-7Vsc_fsG.cjs +0 -1
- package/dist/chunks/search-BqqhaMx9.cjs +0 -26
- package/dist/chunks/switch-BytP6QY8.cjs +0 -139
- package/dist/types/components/interactions/configuration-popover.d.ts +0 -1
- package/dist/types/components/interactions/interaction-card.d.ts +0 -59
- package/dist/types/components/interactions/interaction-event-handler.d.ts +0 -11
- package/dist/types/components/interactions/interactions-list.d.ts +0 -50
- package/dist/types/components/interactions/panels/cross-filter-panel.d.ts +0 -24
- package/dist/types/components/interactions/panels/inline-drill-panel.d.ts +0 -24
- package/dist/types/components/interactions/selectors/action-selector.d.ts +0 -31
- package/dist/types/components/interactions/selectors/trigger-selector.d.ts +0 -38
- package/dist/types/components/surfboard/filter/click-filter-section.d.ts +0 -5
- package/dist/types/lib/interactions/build-interaction-event.d.ts +0 -25
- package/dist/types/lib/interactions/convert-click-filters-to-filter-group.d.ts +0 -10
- package/dist/types/lib/interactions/execute-interaction-event.d.ts +0 -80
- package/dist/types/lib/interactions/field-utils.d.ts +0 -11
- package/dist/types/lib/interactions/handle-chart-click.d.ts +0 -75
- package/dist/types/lib/interactions/linked-interaction-utils.d.ts +0 -14
- package/dist/types/lib/interactions/source-card-filter-utils.d.ts +0 -9
- package/dist/types/lib/stores/drill-actions.d.ts +0 -139
- package/dist/types/lib/stores/interaction-store.d.ts +0 -113
- package/dist/types/lib/stores/pointer-interaction-store.d.ts +0 -18
|
@@ -26,7 +26,7 @@ export interface InteractionTrigger {
|
|
|
26
26
|
*/
|
|
27
27
|
field: Field;
|
|
28
28
|
}
|
|
29
|
-
export type DrillMode = 'drillDown' | 'dynamicDrill' | 'drillThrough' | 'drillToDetail' | 'drillToURL'
|
|
29
|
+
export type DrillMode = 'drillDown' | 'dynamicDrill' | 'drillThrough' | 'drillToDetail' | 'drillToURL';
|
|
30
30
|
export interface DrillHierarchy {
|
|
31
31
|
id: string;
|
|
32
32
|
label?: string;
|
|
@@ -150,41 +150,6 @@ export interface DrillToURLInteraction {
|
|
|
150
150
|
*/
|
|
151
151
|
label?: string;
|
|
152
152
|
}
|
|
153
|
-
export interface InlineDrillInteraction {
|
|
154
|
-
mode: 'inlineDrill';
|
|
155
|
-
/**
|
|
156
|
-
* What element must be clicked to trigger this inline drill.
|
|
157
|
-
* @migration Optional during migration. Will be required in V2.
|
|
158
|
-
*/
|
|
159
|
-
trigger?: InteractionTrigger;
|
|
160
|
-
filterFields: Field[];
|
|
161
|
-
/**
|
|
162
|
-
* When to fetch the detailed data
|
|
163
|
-
* @default 'lazy'
|
|
164
|
-
*/
|
|
165
|
-
fetchMode?: 'lazy' | 'preloaded';
|
|
166
|
-
/**
|
|
167
|
-
* Maximum number of records to show (0 for unlimited)
|
|
168
|
-
* @default 100
|
|
169
|
-
*/
|
|
170
|
-
inlineLimit?: number;
|
|
171
|
-
/**
|
|
172
|
-
* How to display the detailed records
|
|
173
|
-
* @default 'table'
|
|
174
|
-
*/
|
|
175
|
-
displayMode?: 'table' | 'list' | 'cards';
|
|
176
|
-
/**
|
|
177
|
-
* Whether to show records in a modal overlay
|
|
178
|
-
* @default false
|
|
179
|
-
*/
|
|
180
|
-
showInModal?: boolean;
|
|
181
|
-
/**
|
|
182
|
-
* Whether to allow exporting the detailed records
|
|
183
|
-
* @default true
|
|
184
|
-
*/
|
|
185
|
-
allowExport?: boolean;
|
|
186
|
-
label?: string;
|
|
187
|
-
}
|
|
188
153
|
export interface DrillUpInteraction {
|
|
189
154
|
mode: 'drillUp';
|
|
190
155
|
/**
|
|
@@ -224,7 +189,7 @@ export interface DynamicDrillInteraction {
|
|
|
224
189
|
*/
|
|
225
190
|
drillField?: Field;
|
|
226
191
|
}
|
|
227
|
-
export type DrillInteraction = DrillThroughInteraction | DrillToDetailInteraction | DrillToURLInteraction
|
|
192
|
+
export type DrillInteraction = DrillThroughInteraction | DrillToDetailInteraction | DrillToURLInteraction;
|
|
228
193
|
export interface TimeDrillStep {
|
|
229
194
|
granularity: TimeGranularity;
|
|
230
195
|
next?: TimeGranularity;
|
|
@@ -236,10 +201,6 @@ export interface TimeComparison {
|
|
|
236
201
|
offset: number;
|
|
237
202
|
granularity: TimeGranularity;
|
|
238
203
|
}
|
|
239
|
-
export interface DrillState {
|
|
240
|
-
hierarchyId?: string;
|
|
241
|
-
steps: DrillBreadcrumb[];
|
|
242
|
-
}
|
|
243
204
|
export interface ClickFilterInteraction {
|
|
244
205
|
mode: 'clickFilter';
|
|
245
206
|
/**
|
|
@@ -255,10 +216,6 @@ export interface ClickFilterInteraction {
|
|
|
255
216
|
* e.g., [region, ship_mode] from a stacked bar chart
|
|
256
217
|
*/
|
|
257
218
|
filterFields: Field[];
|
|
258
|
-
/**
|
|
259
|
-
* Should this card visually highlight when clicked?
|
|
260
|
-
*/
|
|
261
|
-
highlightSelf?: boolean;
|
|
262
219
|
/**
|
|
263
220
|
* Cards this filter applies to (inclusive).
|
|
264
221
|
* If omitted and `excludeCardIds` is also omitted → applies to all cards except self.
|
|
@@ -295,39 +252,17 @@ export interface ClickedMetricValue {
|
|
|
295
252
|
value?: number;
|
|
296
253
|
formattedValue?: string;
|
|
297
254
|
}
|
|
298
|
-
export
|
|
299
|
-
export interface BaseInteractionEvent {
|
|
255
|
+
export interface BaseOneOffDrillEvent {
|
|
300
256
|
sourceCardId: string;
|
|
301
257
|
filterGroups: ClickFilterConditionGroup[];
|
|
302
258
|
metric?: ClickedMetricValue;
|
|
303
259
|
}
|
|
304
|
-
export interface
|
|
305
|
-
interactionMode: 'drillDown';
|
|
306
|
-
hierarchyId: string;
|
|
307
|
-
filterGroups: ClickFilterConditionGroup[];
|
|
308
|
-
metric?: ClickedMetricValue;
|
|
309
|
-
toField: Field;
|
|
310
|
-
granularity?: TimeGranularity;
|
|
311
|
-
timeComparison?: TimeComparison;
|
|
312
|
-
}
|
|
313
|
-
export interface DynamicDrillEvent extends BaseInteractionEvent {
|
|
314
|
-
interactionMode: 'dynamicDrill';
|
|
315
|
-
filterGroups: ClickFilterConditionGroup[];
|
|
316
|
-
metric?: ClickedMetricValue;
|
|
317
|
-
toField: Field;
|
|
318
|
-
granularity?: TimeGranularity;
|
|
319
|
-
timeComparison?: TimeComparison;
|
|
320
|
-
}
|
|
321
|
-
export interface DrillToURLEvent extends BaseInteractionEvent {
|
|
322
|
-
interactionMode: 'drillToURL';
|
|
323
|
-
url: string;
|
|
324
|
-
}
|
|
325
|
-
export interface DrillThroughEvent extends BaseInteractionEvent {
|
|
260
|
+
export interface DrillThroughEvent extends BaseOneOffDrillEvent {
|
|
326
261
|
interactionMode: 'drillThrough';
|
|
327
262
|
targetDashboardId: string;
|
|
328
263
|
contextMode?: 'interactionFilters' | 'full' | 'none';
|
|
329
264
|
}
|
|
330
|
-
export interface DrillToDetailEvent extends
|
|
265
|
+
export interface DrillToDetailEvent extends BaseOneOffDrillEvent {
|
|
331
266
|
interactionMode: 'drillToDetail';
|
|
332
267
|
detailFields: Field[];
|
|
333
268
|
sortBy?: SortByField[];
|
|
@@ -337,79 +272,11 @@ export interface DrillToDetailEvent extends BaseInteractionEvent {
|
|
|
337
272
|
contextMode?: 'interactionFilters' | 'full' | 'none';
|
|
338
273
|
displayMode?: 'modal' | 'replace-card';
|
|
339
274
|
}
|
|
340
|
-
export interface ClickFilterEvent extends BaseInteractionEvent {
|
|
341
|
-
interactionMode: 'clickFilter';
|
|
342
|
-
applyToCardIds?: string[];
|
|
343
|
-
excludeCardIds?: string[];
|
|
344
|
-
/**
|
|
345
|
-
* Whether the source card should receive its own filter.
|
|
346
|
-
* When true, the source card will be filtered (not just blurred).
|
|
347
|
-
* Used when user selects from multiple interactions popup.
|
|
348
|
-
* @default false
|
|
349
|
-
*/
|
|
350
|
-
filterSourceCard?: boolean;
|
|
351
|
-
}
|
|
352
|
-
export interface InlineDrillEvent extends BaseInteractionEvent {
|
|
353
|
-
interactionMode: 'inlineDrill';
|
|
354
|
-
fetchMode?: 'lazy' | 'preloaded';
|
|
355
|
-
inlineLimit?: number;
|
|
356
|
-
}
|
|
357
|
-
export interface InteractionState {
|
|
358
|
-
/**
|
|
359
|
-
* If user is in a drill hierarchy (static or dynamic), this tracks which one.
|
|
360
|
-
* Undefined if not currently in a drill path.
|
|
361
|
-
*/
|
|
362
|
-
hierarchyId?: string;
|
|
363
|
-
/**
|
|
364
|
-
* Breadcrumb trail representing the user's drill path.
|
|
365
|
-
* Empty if no drill-down steps have occurred.
|
|
366
|
-
*/
|
|
367
|
-
breadcrumbs: DrillBreadcrumb[];
|
|
368
|
-
/**
|
|
369
|
-
* All click filters applied from this card
|
|
370
|
-
*/
|
|
371
|
-
appliedClickFilters?: ClickFilterEvent[];
|
|
372
|
-
/**
|
|
373
|
-
* (Optional) Track last one-off interaction (e.g., drillToDetail, drillToURL).
|
|
374
|
-
* Useful for things like modals or redirection handling.
|
|
375
|
-
*/
|
|
376
|
-
lastInteractionEvent?: InteractionEvent;
|
|
377
|
-
/**
|
|
378
|
-
* Context mode for drill-to-insight filtering.
|
|
379
|
-
* Controls whether dashboard filters are applied alongside interaction filters.
|
|
380
|
-
*
|
|
381
|
-
* - 'interactionFilters': Only filters from the interaction event (no dashboard filters)
|
|
382
|
-
* - 'full': Dashboard filters + interaction filters
|
|
383
|
-
* - 'none': No filters applied
|
|
384
|
-
*
|
|
385
|
-
* Undefined for regular cards (not insights).
|
|
386
|
-
*/
|
|
387
|
-
contextMode?: 'interactionFilters' | 'full' | 'none';
|
|
388
|
-
/**
|
|
389
|
-
* Source dashboard ID for drill-through navigation.
|
|
390
|
-
* Used for "Back" button navigation.
|
|
391
|
-
* Only set for global drill context (interactionStates['__DRILL_CONTEXT__']).
|
|
392
|
-
*/
|
|
393
|
-
sourceDashboardId?: string;
|
|
394
|
-
/**
|
|
395
|
-
* Source dashboard title for drill-through navigation.
|
|
396
|
-
* Used for "Back to [X]" UI display.
|
|
397
|
-
* Only set for global drill context (interactionStates['__DRILL_CONTEXT__']).
|
|
398
|
-
*/
|
|
399
|
-
sourceDashboardTitle?: string;
|
|
400
|
-
/**
|
|
401
|
-
* Target dashboard ID for drill-through navigation.
|
|
402
|
-
* Filters only apply when current dashboard matches this ID.
|
|
403
|
-
* Prevents filters from applying to source dashboard during navigation.
|
|
404
|
-
* Only set for global drill context (interactionStates['__DRILL_CONTEXT__']).
|
|
405
|
-
*/
|
|
406
|
-
targetDashboardId?: string;
|
|
407
|
-
}
|
|
408
275
|
/**
|
|
409
276
|
* Unified Interaction type (V2)
|
|
410
277
|
* Combines all interaction types into a single union for the new interactions array.
|
|
411
278
|
*/
|
|
412
|
-
export type Interaction = ClickFilterInteraction | DrillDownInteraction | DrillThroughInteraction | DrillToDetailInteraction | DrillToURLInteraction |
|
|
279
|
+
export type Interaction = ClickFilterInteraction | DrillDownInteraction | DrillThroughInteraction | DrillToDetailInteraction | DrillToURLInteraction | DrillUpInteraction | DynamicDrillInteraction;
|
|
413
280
|
export type PersistedInteraction = Interaction & {
|
|
414
281
|
id?: string;
|
|
415
282
|
};
|
|
@@ -422,62 +289,3 @@ export interface CardInteractionConfig {
|
|
|
422
289
|
allowedDrillTargets?: Field[];
|
|
423
290
|
drillHierarchies?: DrillHierarchy[];
|
|
424
291
|
}
|
|
425
|
-
export interface DrillBreadcrumb {
|
|
426
|
-
/**
|
|
427
|
-
* The user clicked one or more segments. Each group of filters represents
|
|
428
|
-
* a single segment (i.e., a single click interaction).
|
|
429
|
-
*
|
|
430
|
-
* - Filters within a group are AND-ed (e.g., state = 'NY' AND ship_mode = 'Standard').
|
|
431
|
-
* - Across groups, they are OR-ed (e.g., ... OR state = 'CA' AND ship_mode = 'First Class').
|
|
432
|
-
*/
|
|
433
|
-
sourceFilterGroups: ClickFilterConditionGroup[];
|
|
434
|
-
/**
|
|
435
|
-
* The next (group by) field the user is drilling into (e.g., 'city' after 'state').
|
|
436
|
-
*/
|
|
437
|
-
toField?: Field;
|
|
438
|
-
/**
|
|
439
|
-
* Optional: If the drill target is a time field, this describes the granularity (e.g., month, year).
|
|
440
|
-
*/
|
|
441
|
-
granularity?: TimeGranularity;
|
|
442
|
-
/**
|
|
443
|
-
* Optional: Indicates whether the drill is for time comparison (e.g., YoY).
|
|
444
|
-
*/
|
|
445
|
-
timeComparison?: TimeComparison;
|
|
446
|
-
/**
|
|
447
|
-
* Optional: The metric the user clicked (e.g., '123 Orders'), used for display only.
|
|
448
|
-
*/
|
|
449
|
-
metric?: ClickedMetricValue;
|
|
450
|
-
}
|
|
451
|
-
export interface DrillState {
|
|
452
|
-
/**
|
|
453
|
-
* Which hierarchy (e.g. 'geo', 'product') is currently active
|
|
454
|
-
* Omitted for single-step interactions (like drill-through)
|
|
455
|
-
*/
|
|
456
|
-
hierarchyId?: string;
|
|
457
|
-
/**
|
|
458
|
-
* Steps taken in a drill-down path
|
|
459
|
-
*/
|
|
460
|
-
breadcrumbs: DrillBreadcrumb[];
|
|
461
|
-
}
|
|
462
|
-
export interface DrillStore {
|
|
463
|
-
/**
|
|
464
|
-
* Per-card drill state
|
|
465
|
-
*/
|
|
466
|
-
drillStates: Record<string, DrillState>;
|
|
467
|
-
/**
|
|
468
|
-
* Update current drill state for a given card
|
|
469
|
-
*/
|
|
470
|
-
setDrillState: (cardId: string, state: DrillState) => void;
|
|
471
|
-
/**
|
|
472
|
-
* Reset drill state for a given card (e.g. user clicks "reset")
|
|
473
|
-
*/
|
|
474
|
-
resetDrillState: (cardId: string) => void;
|
|
475
|
-
/**
|
|
476
|
-
* Push a new breadcrumb (i.e. drill forward one step)
|
|
477
|
-
*/
|
|
478
|
-
addDrillStep: (cardId: string, step: DrillBreadcrumb) => void;
|
|
479
|
-
/**
|
|
480
|
-
* Go back one step (breadcrumb pop)
|
|
481
|
-
*/
|
|
482
|
-
popDrillStep: (cardId: string) => void;
|
|
483
|
-
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { TCard } from '../types/common-types.js';
|
|
2
2
|
import { TFilter, TFilterValue } from '../../components/surfboard/filter/types.js';
|
|
3
|
-
|
|
3
|
+
import { InteractionContextMode, TransientInputContext } from '../dashboard-inputs/transient-input-context.js';
|
|
4
|
+
export type ContextMode = InteractionContextMode | undefined;
|
|
4
5
|
export type CalculateContextAwareFiltersParams = {
|
|
5
6
|
card: TCard;
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* The carried contexts this card resolves under: the top navigation entry's
|
|
9
|
+
* on its destination dashboard, or an insight's own runtime. Required so
|
|
10
|
+
* that every caller decides.
|
|
11
|
+
*/
|
|
12
|
+
transientContexts: readonly TransientInputContext[] | undefined;
|
|
8
13
|
filters: TFilter[] | undefined;
|
|
9
14
|
filterValues: TFilterValue[] | undefined;
|
|
10
15
|
selectedSheetId: string | null | undefined;
|
|
@@ -16,22 +21,26 @@ export type CalculateContextAwareFiltersResult = {
|
|
|
16
21
|
contextMode: ContextMode;
|
|
17
22
|
};
|
|
18
23
|
export type ContextAwareFilterPolicy = Pick<CalculateContextAwareFiltersResult, 'shouldApplyDashboardFilters' | 'contextMode'>;
|
|
19
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Whether the dashboard's own toolbar filters apply next to what was carried.
|
|
26
|
+
*
|
|
27
|
+
* | Mode | Own toolbar filters apply |
|
|
28
|
+
* |----------------------|---------------------------|
|
|
29
|
+
* | none carried | yes |
|
|
30
|
+
* | `full` | yes |
|
|
31
|
+
* | `interactionFilters` | no |
|
|
32
|
+
* | `none` | no |
|
|
33
|
+
*/
|
|
34
|
+
export declare function resolveContextAwareFilterPolicy(transientContexts: readonly TransientInputContext[] | undefined): ContextAwareFilterPolicy;
|
|
20
35
|
/**
|
|
21
36
|
* Calculates context-aware filters for a card, taking into account:
|
|
22
|
-
* -
|
|
23
|
-
* - Card-specific context modes (insight cards)
|
|
37
|
+
* - The context mode of the carried contexts the card resolves under
|
|
24
38
|
* - Sheet and card-level filter scoping
|
|
25
39
|
*
|
|
26
40
|
* This is a pure function (not a React hook) that can be used in any context,
|
|
27
41
|
* including inside loops, conditionals, and useMemo.
|
|
28
42
|
*
|
|
29
|
-
* Context mode precedence:
|
|
30
|
-
* 1. Global drill context mode (when on target dashboard) - highest priority
|
|
31
|
-
* 2. Card-specific context mode (for insight cards)
|
|
32
|
-
* 3. No context mode (default 'full' behavior)
|
|
33
|
-
*
|
|
34
43
|
* @param params - Object containing all required parameters
|
|
35
44
|
* @returns Object containing filter information and context mode
|
|
36
45
|
*/
|
|
37
|
-
export declare function calculateContextAwareFilters({ card,
|
|
46
|
+
export declare function calculateContextAwareFilters({ card, transientContexts, filters, filterValues, selectedSheetId, }: CalculateContextAwareFiltersParams): CalculateContextAwareFiltersResult;
|
|
@@ -4,6 +4,17 @@ export type DashboardCardEntry = {
|
|
|
4
4
|
sheet: TSheet;
|
|
5
5
|
};
|
|
6
6
|
export declare function getDashboardCardEntries(dashboard: Pick<TDashboard, 'sheets'>): DashboardCardEntry[];
|
|
7
|
+
export type DashboardCardLocation = DashboardCardEntry & {
|
|
8
|
+
/** Set when the card is the visual of a document section. */
|
|
9
|
+
sectionId?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Every card a dashboard hosts, with where it sits: sheet cards, frame cards,
|
|
13
|
+
* and the table or chart of a document section. Use this, not
|
|
14
|
+
* `getDashboardCardEntries`, when a card may be reached by a scope that names
|
|
15
|
+
* document sections.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getDashboardCardLocations(dashboard: Pick<TDashboard, 'sheets'>): DashboardCardLocation[];
|
|
7
18
|
export declare function getDashboardCards(dashboard: Pick<TDashboard, 'sheets'>): TCard[];
|
|
8
19
|
/**
|
|
9
20
|
* Check if a card ID is unique across the entire dashboard
|
|
@@ -70,4 +70,6 @@ export declare function getNextDateHierarchyStep(hierarchy: DrillHierarchy, curr
|
|
|
70
70
|
* @param breadcrumbs - Optional breadcrumb trail from drill interactions
|
|
71
71
|
* @returns Current granularity level or undefined if not found
|
|
72
72
|
*/
|
|
73
|
-
export declare function getCurrentDateGranularity(hierarchy: DrillHierarchy, card: TCard, breadcrumbs?:
|
|
73
|
+
export declare function getCurrentDateGranularity(hierarchy: DrillHierarchy, card: TCard, breadcrumbs?: readonly {
|
|
74
|
+
granularity?: TimeGranularity;
|
|
75
|
+
}[]): TimeGranularity | undefined;
|
|
@@ -4,5 +4,5 @@ import { ShelfDefinitionCard } from './card-definition.js';
|
|
|
4
4
|
export declare function getFieldId(containerId: ContainerId, field: Field): string;
|
|
5
5
|
export declare function getAggregationLabel(columnName: string, aggregation: AggregateFunction): string;
|
|
6
6
|
export declare function getSmartContainerForField(field: Field, existingFields: Field[], chartType?: TCard['type']): ContainerId | null;
|
|
7
|
-
export declare function getNewField(activeField: Field, overContainer: ContainerId, existingFields?: Field[]):
|
|
7
|
+
export declare function getNewField(activeField: Field, overContainer: ContainerId, existingFields?: Field[]): GroupByField | MetricField | PivotByField | DetailField | SortByField | null;
|
|
8
8
|
export declare function isCardConfigPresent(card: ShelfDefinitionCard): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LucideIcon } from 'lucide-react';
|
|
2
|
-
export type InteractionMode = 'clickFilter' | 'drillToDetail' | 'drillThrough' | 'drillToURL' | 'drillDown' | 'drillUp' | 'dynamicDrill'
|
|
2
|
+
export type InteractionMode = 'clickFilter' | 'drillToDetail' | 'drillThrough' | 'drillToURL' | 'drillDown' | 'drillUp' | 'dynamicDrill';
|
|
3
3
|
/**
|
|
4
4
|
* Get icon component for interaction mode
|
|
5
5
|
*/
|
|
@@ -373,7 +373,7 @@ export declare const configFieldRefSchema: z.ZodObject<{
|
|
|
373
373
|
}, "strict", z.ZodTypeAny, {
|
|
374
374
|
name: string;
|
|
375
375
|
label?: string | undefined;
|
|
376
|
-
role?: "
|
|
376
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
377
377
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
378
378
|
source?: {
|
|
379
379
|
kind: "semantic";
|
|
@@ -396,7 +396,7 @@ export declare const configFieldRefSchema: z.ZodObject<{
|
|
|
396
396
|
}, {
|
|
397
397
|
name: string;
|
|
398
398
|
label?: string | undefined;
|
|
399
|
-
role?: "
|
|
399
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
400
400
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
401
401
|
source?: {
|
|
402
402
|
kind: "semantic";
|
|
@@ -626,7 +626,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
626
626
|
}, "strict", z.ZodTypeAny, {
|
|
627
627
|
name: string;
|
|
628
628
|
label?: string | undefined;
|
|
629
|
-
role?: "
|
|
629
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
630
630
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
631
631
|
source?: {
|
|
632
632
|
kind: "semantic";
|
|
@@ -649,7 +649,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
649
649
|
}, {
|
|
650
650
|
name: string;
|
|
651
651
|
label?: string | undefined;
|
|
652
|
-
role?: "
|
|
652
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
653
653
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
654
654
|
source?: {
|
|
655
655
|
kind: "semantic";
|
|
@@ -676,7 +676,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
676
676
|
field: {
|
|
677
677
|
name: string;
|
|
678
678
|
label?: string | undefined;
|
|
679
|
-
role?: "
|
|
679
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
680
680
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
681
681
|
source?: {
|
|
682
682
|
kind: "semantic";
|
|
@@ -703,7 +703,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
703
703
|
field: {
|
|
704
704
|
name: string;
|
|
705
705
|
label?: string | undefined;
|
|
706
|
-
role?: "
|
|
706
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
707
707
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
708
708
|
source?: {
|
|
709
709
|
kind: "semantic";
|
|
@@ -731,7 +731,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
731
731
|
label: string;
|
|
732
732
|
name: string;
|
|
733
733
|
dataType: "string" | "number" | "boolean" | "unknown" | "date" | "datetime";
|
|
734
|
-
resultRole: "
|
|
734
|
+
resultRole: "unknown" | "dimension" | "measure" | "date" | "id";
|
|
735
735
|
computeStage: "aggregate" | "row";
|
|
736
736
|
expression: string;
|
|
737
737
|
inputs: Record<string, {
|
|
@@ -739,7 +739,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
739
739
|
field: {
|
|
740
740
|
name: string;
|
|
741
741
|
label?: string | undefined;
|
|
742
|
-
role?: "
|
|
742
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
743
743
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
744
744
|
source?: {
|
|
745
745
|
kind: "semantic";
|
|
@@ -809,7 +809,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
809
809
|
label: string;
|
|
810
810
|
name: string;
|
|
811
811
|
dataType: "string" | "number" | "boolean" | "unknown" | "date" | "datetime";
|
|
812
|
-
resultRole: "
|
|
812
|
+
resultRole: "unknown" | "dimension" | "measure" | "date" | "id";
|
|
813
813
|
computeStage: "aggregate" | "row";
|
|
814
814
|
expression: string;
|
|
815
815
|
inputs: Record<string, {
|
|
@@ -817,7 +817,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
817
817
|
field: {
|
|
818
818
|
name: string;
|
|
819
819
|
label?: string | undefined;
|
|
820
|
-
role?: "
|
|
820
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
821
821
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
822
822
|
source?: {
|
|
823
823
|
kind: "semantic";
|
|
@@ -887,7 +887,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
887
887
|
label: string;
|
|
888
888
|
name: string;
|
|
889
889
|
dataType: "string" | "number" | "boolean" | "unknown" | "date" | "datetime";
|
|
890
|
-
resultRole: "
|
|
890
|
+
resultRole: "unknown" | "dimension" | "measure" | "date" | "id";
|
|
891
891
|
computeStage: "aggregate" | "row";
|
|
892
892
|
expression: string;
|
|
893
893
|
inputs: Record<string, {
|
|
@@ -895,7 +895,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
895
895
|
field: {
|
|
896
896
|
name: string;
|
|
897
897
|
label?: string | undefined;
|
|
898
|
-
role?: "
|
|
898
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
899
899
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
900
900
|
source?: {
|
|
901
901
|
kind: "semantic";
|
|
@@ -965,7 +965,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
965
965
|
label: string;
|
|
966
966
|
name: string;
|
|
967
967
|
dataType: "string" | "number" | "boolean" | "unknown" | "date" | "datetime";
|
|
968
|
-
resultRole: "
|
|
968
|
+
resultRole: "unknown" | "dimension" | "measure" | "date" | "id";
|
|
969
969
|
computeStage: "aggregate" | "row";
|
|
970
970
|
expression: string;
|
|
971
971
|
inputs: Record<string, {
|
|
@@ -973,7 +973,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
973
973
|
field: {
|
|
974
974
|
name: string;
|
|
975
975
|
label?: string | undefined;
|
|
976
|
-
role?: "
|
|
976
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
977
977
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
978
978
|
source?: {
|
|
979
979
|
kind: "semantic";
|
|
@@ -1307,7 +1307,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1307
1307
|
}, "strict", z.ZodTypeAny, {
|
|
1308
1308
|
name: string;
|
|
1309
1309
|
label?: string | undefined;
|
|
1310
|
-
role?: "
|
|
1310
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
1311
1311
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
1312
1312
|
source?: {
|
|
1313
1313
|
kind: "semantic";
|
|
@@ -1330,7 +1330,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1330
1330
|
}, {
|
|
1331
1331
|
name: string;
|
|
1332
1332
|
label?: string | undefined;
|
|
1333
|
-
role?: "
|
|
1333
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
1334
1334
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
1335
1335
|
source?: {
|
|
1336
1336
|
kind: "semantic";
|
|
@@ -1357,7 +1357,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1357
1357
|
field: {
|
|
1358
1358
|
name: string;
|
|
1359
1359
|
label?: string | undefined;
|
|
1360
|
-
role?: "
|
|
1360
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
1361
1361
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
1362
1362
|
source?: {
|
|
1363
1363
|
kind: "semantic";
|
|
@@ -1384,7 +1384,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1384
1384
|
field: {
|
|
1385
1385
|
name: string;
|
|
1386
1386
|
label?: string | undefined;
|
|
1387
|
-
role?: "
|
|
1387
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
1388
1388
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
1389
1389
|
source?: {
|
|
1390
1390
|
kind: "semantic";
|
|
@@ -1412,7 +1412,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1412
1412
|
label: string;
|
|
1413
1413
|
name: string;
|
|
1414
1414
|
dataType: "string" | "number" | "boolean" | "unknown" | "date" | "datetime";
|
|
1415
|
-
resultRole: "
|
|
1415
|
+
resultRole: "unknown" | "dimension" | "measure" | "date" | "id";
|
|
1416
1416
|
computeStage: "aggregate" | "row";
|
|
1417
1417
|
expression: string;
|
|
1418
1418
|
inputs: Record<string, {
|
|
@@ -1420,7 +1420,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1420
1420
|
field: {
|
|
1421
1421
|
name: string;
|
|
1422
1422
|
label?: string | undefined;
|
|
1423
|
-
role?: "
|
|
1423
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
1424
1424
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
1425
1425
|
source?: {
|
|
1426
1426
|
kind: "semantic";
|
|
@@ -1490,7 +1490,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1490
1490
|
label: string;
|
|
1491
1491
|
name: string;
|
|
1492
1492
|
dataType: "string" | "number" | "boolean" | "unknown" | "date" | "datetime";
|
|
1493
|
-
resultRole: "
|
|
1493
|
+
resultRole: "unknown" | "dimension" | "measure" | "date" | "id";
|
|
1494
1494
|
computeStage: "aggregate" | "row";
|
|
1495
1495
|
expression: string;
|
|
1496
1496
|
inputs: Record<string, {
|
|
@@ -1498,7 +1498,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1498
1498
|
field: {
|
|
1499
1499
|
name: string;
|
|
1500
1500
|
label?: string | undefined;
|
|
1501
|
-
role?: "
|
|
1501
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
1502
1502
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
1503
1503
|
source?: {
|
|
1504
1504
|
kind: "semantic";
|
|
@@ -1568,7 +1568,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1568
1568
|
label: string;
|
|
1569
1569
|
name: string;
|
|
1570
1570
|
dataType: "string" | "number" | "boolean" | "unknown" | "date" | "datetime";
|
|
1571
|
-
resultRole: "
|
|
1571
|
+
resultRole: "unknown" | "dimension" | "measure" | "date" | "id";
|
|
1572
1572
|
computeStage: "aggregate" | "row";
|
|
1573
1573
|
expression: string;
|
|
1574
1574
|
inputs: Record<string, {
|
|
@@ -1576,7 +1576,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1576
1576
|
field: {
|
|
1577
1577
|
name: string;
|
|
1578
1578
|
label?: string | undefined;
|
|
1579
|
-
role?: "
|
|
1579
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
1580
1580
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
1581
1581
|
source?: {
|
|
1582
1582
|
kind: "semantic";
|
|
@@ -1646,7 +1646,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1646
1646
|
label: string;
|
|
1647
1647
|
name: string;
|
|
1648
1648
|
dataType: "string" | "number" | "boolean" | "unknown" | "date" | "datetime";
|
|
1649
|
-
resultRole: "
|
|
1649
|
+
resultRole: "unknown" | "dimension" | "measure" | "date" | "id";
|
|
1650
1650
|
computeStage: "aggregate" | "row";
|
|
1651
1651
|
expression: string;
|
|
1652
1652
|
inputs: Record<string, {
|
|
@@ -1654,7 +1654,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1654
1654
|
field: {
|
|
1655
1655
|
name: string;
|
|
1656
1656
|
label?: string | undefined;
|
|
1657
|
-
role?: "
|
|
1657
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
1658
1658
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
1659
1659
|
source?: {
|
|
1660
1660
|
kind: "semantic";
|
|
@@ -1723,7 +1723,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1723
1723
|
}, "strict", z.ZodTypeAny, {
|
|
1724
1724
|
name: string;
|
|
1725
1725
|
label?: string | undefined;
|
|
1726
|
-
role?: "
|
|
1726
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
1727
1727
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
1728
1728
|
source?: {
|
|
1729
1729
|
kind: "semantic";
|
|
@@ -1748,7 +1748,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1748
1748
|
label: string;
|
|
1749
1749
|
name: string;
|
|
1750
1750
|
dataType: "string" | "number" | "boolean" | "unknown" | "date" | "datetime";
|
|
1751
|
-
resultRole: "
|
|
1751
|
+
resultRole: "unknown" | "dimension" | "measure" | "date" | "id";
|
|
1752
1752
|
computeStage: "aggregate" | "row";
|
|
1753
1753
|
expression: string;
|
|
1754
1754
|
inputs: Record<string, {
|
|
@@ -1756,7 +1756,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1756
1756
|
field: {
|
|
1757
1757
|
name: string;
|
|
1758
1758
|
label?: string | undefined;
|
|
1759
|
-
role?: "
|
|
1759
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
1760
1760
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
1761
1761
|
source?: {
|
|
1762
1762
|
kind: "semantic";
|
|
@@ -1825,7 +1825,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1825
1825
|
}, {
|
|
1826
1826
|
name: string;
|
|
1827
1827
|
label?: string | undefined;
|
|
1828
|
-
role?: "
|
|
1828
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
1829
1829
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
1830
1830
|
source?: {
|
|
1831
1831
|
kind: "semantic";
|
|
@@ -1850,7 +1850,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1850
1850
|
label: string;
|
|
1851
1851
|
name: string;
|
|
1852
1852
|
dataType: "string" | "number" | "boolean" | "unknown" | "date" | "datetime";
|
|
1853
|
-
resultRole: "
|
|
1853
|
+
resultRole: "unknown" | "dimension" | "measure" | "date" | "id";
|
|
1854
1854
|
computeStage: "aggregate" | "row";
|
|
1855
1855
|
expression: string;
|
|
1856
1856
|
inputs: Record<string, {
|
|
@@ -1858,7 +1858,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
|
|
|
1858
1858
|
field: {
|
|
1859
1859
|
name: string;
|
|
1860
1860
|
label?: string | undefined;
|
|
1861
|
-
role?: "
|
|
1861
|
+
role?: "unknown" | "dimension" | "measure" | "date" | "id" | undefined;
|
|
1862
1862
|
dataType?: "string" | "number" | "boolean" | "unknown" | "date" | "datetime" | undefined;
|
|
1863
1863
|
source?: {
|
|
1864
1864
|
kind: "semantic";
|