react-semaphor 0.1.506 → 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.
Files changed (247) hide show
  1. package/DATA_APP_SDK.md +56 -0
  2. package/dist/analytics-protocol/index.cjs +1 -1
  3. package/dist/analytics-protocol/index.js +194 -172
  4. package/dist/appearance/index.cjs +1 -1
  5. package/dist/appearance/index.js +1 -1
  6. package/dist/appearance-runtime/index.cjs +1 -1
  7. package/dist/appearance-runtime/index.js +1 -1
  8. package/dist/brand-studio/index.cjs +2 -2
  9. package/dist/brand-studio/index.js +139 -119
  10. package/dist/briefings/index.cjs +1 -1
  11. package/dist/briefings/index.js +3 -3
  12. package/dist/chunks/appearance-context-DzqCdhB4.cjs +1 -0
  13. package/dist/chunks/{appearance-context-XviHOhWJ.js → appearance-context-VJdrKi7r.js} +2 -1
  14. package/dist/chunks/{appearance-runtime-provider-D0xVQWnH.js → appearance-runtime-provider-CC4HT2Gi.js} +2 -2
  15. package/dist/chunks/{appearance-runtime-provider-Ca8rxO86.cjs → appearance-runtime-provider-D5pkvgE4.cjs} +1 -1
  16. package/dist/chunks/calculated-field-identity-BiTGmnST.cjs +1 -0
  17. package/dist/chunks/calculated-field-identity-CJL54uFx.js +1373 -0
  18. package/dist/chunks/{constants-NUleP4DY.js → card-config-utils-Bq1enstT.js} +260 -260
  19. package/dist/chunks/card-config-utils-CMO4_zVs.cjs +1 -0
  20. package/dist/chunks/{dashboard-briefing-launcher-DXTpU85p.js → dashboard-briefing-launcher-B9l0ZAbv.js} +12 -12
  21. package/dist/chunks/{dashboard-briefing-launcher-C8nDSDnV.cjs → dashboard-briefing-launcher-C4zsM3Hd.cjs} +1 -1
  22. package/dist/chunks/{dashboard-controls-CyL0yimg.js → dashboard-controls-BCQv4xWM.js} +16 -14
  23. package/dist/chunks/dashboard-controls-CWwllVOe.cjs +52 -0
  24. package/dist/chunks/{dashboard-json-5Jr3RudV.js → dashboard-json-BtU_q_0A.js} +9 -9
  25. package/dist/chunks/dashboard-json-DVj2xLsH.cjs +1 -0
  26. package/dist/chunks/edit-dashboard-visual-CO2IVBOq.cjs +172 -0
  27. package/dist/chunks/{edit-dashboard-visual-C7X-um9g.js → edit-dashboard-visual-RgFUx-py.js} +1986 -1990
  28. package/dist/chunks/{editor-action-buttons-CcDm8nA5.cjs → editor-action-buttons-BE8Fby6n.cjs} +2 -2
  29. package/dist/chunks/{editor-action-buttons-C5Wja_J4.js → editor-action-buttons-D-MaqTIs.js} +6 -6
  30. package/dist/chunks/field-aggregations-DUb0NU6c.js +1229 -0
  31. package/dist/chunks/field-aggregations-jSi77h9Z.cjs +1 -0
  32. package/dist/chunks/{field-dependencies-DVl2p1Nm.js → field-dependencies-Cl97kkHy.js} +30 -34
  33. package/dist/chunks/{field-dependencies-r_U0CGQ-.cjs → field-dependencies-DIab72rQ.cjs} +1 -1
  34. package/dist/chunks/{index-BVr4fcCB.js → index-0pdaQ9e1.js} +5 -5
  35. package/dist/chunks/index-BaIrLSBb.cjs +1422 -0
  36. package/dist/chunks/{index-De2QNsqV.js → index-ByiS9sB4.js} +45343 -43665
  37. package/dist/chunks/{index-C9KXfCkC.js → index-CLIro-EG.js} +3 -0
  38. package/dist/chunks/index-Cx3qmRUB.cjs +1 -0
  39. package/dist/chunks/{index-BlYf8gNa.cjs → index-DhlVxvyI.cjs} +1 -1
  40. package/dist/chunks/{matrix-card-DACDwdTq.js → matrix-card-CnKQpnsj.js} +1 -1
  41. package/dist/chunks/{matrix-card-CRXcmAjp.cjs → matrix-card-U4c72doZ.cjs} +1 -1
  42. package/dist/chunks/{matrix-control-sources-ClQzIk7E.js → matrix-control-sources-CRRdP03Q.js} +165 -134
  43. package/dist/chunks/matrix-control-sources-FjxGIbqk.cjs +1 -0
  44. package/dist/chunks/{matrix-formatter-7GLTcBuy.cjs → matrix-formatter-CveLJo6S.cjs} +1 -1
  45. package/dist/chunks/{matrix-formatter-xsq7n_e6.js → matrix-formatter-ZVS5QOuq.js} +2 -2
  46. package/dist/chunks/matrix-member-presentation-CFHjdrxT.cjs +1 -0
  47. package/dist/chunks/matrix-member-presentation-CzGZJd3a.js +182 -0
  48. package/dist/chunks/matrix-operation-contract-DoiWTUbT.cjs +1 -0
  49. package/dist/chunks/matrix-operation-contract-xL8IhFzp.js +1802 -0
  50. package/dist/chunks/{pivot-header-presentation-3wqWChFd.cjs → pivot-header-presentation-Cxz8-06f.cjs} +1 -1
  51. package/dist/chunks/{pivot-header-presentation-D44ODZGn.js → pivot-header-presentation-DVylCBHB.js} +2 -2
  52. package/dist/chunks/{pivot-result-lifecycle-DZ0ZSMoM.cjs → pivot-result-lifecycle-BiERyXnS.cjs} +1 -1
  53. package/dist/chunks/{pivot-result-lifecycle-BSmqVkVG.js → pivot-result-lifecycle-CmjpW7qG.js} +1 -1
  54. package/dist/chunks/{report-preferences-dialog-xADifRXs.js → report-preferences-dialog-BbkXcnnn.js} +4 -4
  55. package/dist/chunks/report-preferences-dialog-C9rpWgQZ.cjs +1 -0
  56. package/dist/chunks/{search-BHsQIWBV.js → selection-reducer-B94WgZ9V.js} +55 -11
  57. package/dist/chunks/selection-reducer-CGKKsaPa.cjs +26 -0
  58. package/dist/chunks/{semantic-format-BhIL1PXP.cjs → semantic-format-BzH69TRq.cjs} +1 -1
  59. package/dist/chunks/{semantic-format-C3amkGmY.js → semantic-format-CBlRO8Aw.js} +1 -1
  60. package/dist/chunks/{switch-DHGiC0aU.js → switch-CD4uGTZI.js} +7450 -7694
  61. package/dist/chunks/switch-iC1x2dcE.cjs +134 -0
  62. package/dist/chunks/token-types-Ahh5u4iT.cjs +1 -0
  63. package/dist/chunks/token-types-CPde8_LG.js +8 -0
  64. package/dist/chunks/{update-policy-Cc9h57pA.cjs → update-policy-COjFudhl.cjs} +1 -1
  65. package/dist/chunks/{update-policy-eTcz52jO.js → update-policy-D9q1Tz8k.js} +1 -1
  66. package/dist/dashboard/index.cjs +1 -1
  67. package/dist/dashboard/index.js +1 -1
  68. package/dist/dashboard-authoring/index.cjs +3 -3
  69. package/dist/dashboard-authoring/index.js +734 -622
  70. package/dist/data-app-builder/index.cjs +1 -1
  71. package/dist/data-app-builder/index.js +3 -3
  72. package/dist/data-app-codegen/index.cjs +1 -1
  73. package/dist/data-app-codegen/index.js +2 -2
  74. package/dist/data-app-codegen-node/index.cjs +94 -92
  75. package/dist/data-app-codegen-node/index.js +337 -333
  76. package/dist/data-app-sdk/index.cjs +9 -9
  77. package/dist/data-app-sdk/index.js +1091 -969
  78. package/dist/data-app-sdk-adapters/index.cjs +1 -1
  79. package/dist/data-app-sdk-adapters/index.js +104 -96
  80. package/dist/data-app-sdk-validation/index.cjs +1 -1
  81. package/dist/data-app-sdk-validation/index.js +2 -2
  82. package/dist/format-utils/index.cjs +1 -1
  83. package/dist/format-utils/index.js +8 -8
  84. package/dist/index.cjs +1 -1
  85. package/dist/index.js +15 -15
  86. package/dist/style.css +1 -1
  87. package/dist/surfboard/index.cjs +1 -1
  88. package/dist/surfboard/index.js +2 -2
  89. package/dist/types/brand-studio/brand-studio-draft.d.ts +3 -1
  90. package/dist/types/components/dashboard/card-selection-pill.d.ts +5 -0
  91. package/dist/types/components/dashboard/dashboard-container.d.ts +1 -1
  92. package/dist/types/components/dashboard/drill-breadcrumb.d.ts +1 -0
  93. package/dist/types/components/dashboard/drill-navigation-controls.d.ts +3 -3
  94. package/dist/types/components/interactions/applied-filters-display.d.ts +6 -1
  95. package/dist/types/components/interactions/click-to-filter-review-dialog.d.ts +21 -0
  96. package/dist/types/components/interactions/dashboard-drill-host.d.ts +13 -0
  97. package/dist/types/components/interactions/filter-badge-tooltip.d.ts +4 -4
  98. package/dist/types/components/interactions/insight-modal.d.ts +4 -14
  99. package/dist/types/components/interactions/insight-viewer.d.ts +7 -19
  100. package/dist/types/components/interactions/interactions-sheet.d.ts +6 -0
  101. package/dist/types/components/interactions/panels/click-to-filter-panel.d.ts +20 -0
  102. package/dist/types/components/interactions/reusable/interaction-selection-popover.d.ts +2 -2
  103. package/dist/types/components/interactions/sheet/action-editor.d.ts +17 -0
  104. package/dist/types/components/interactions/sheet/action-meta.d.ts +45 -0
  105. package/dist/types/components/interactions/sheet/action-picker.d.ts +7 -0
  106. package/dist/types/components/interactions/sheet/click-outcome-preview.d.ts +10 -0
  107. package/dist/types/components/interactions/sheet/interactions-home.d.ts +28 -0
  108. package/dist/types/components/interactions/sheet/sheet-parts.d.ts +37 -0
  109. package/dist/types/components/surfboard/filter/dashboard-filter-mapping-panel.d.ts +28 -1
  110. package/dist/types/components/surfboard/filter/selection-chip.d.ts +11 -0
  111. package/dist/types/components/surfboard/filter/selection-filter-section.d.ts +4 -0
  112. package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +3 -0
  113. package/dist/types/components/ui/resizable.d.ts +1 -1
  114. package/dist/types/components/visual/matrix-table/matrix-interaction-actions.d.ts +13 -1
  115. package/dist/types/components/visual/matrix-table/matrix-selection-click.d.ts +6 -0
  116. package/dist/types/data-app-sdk/adapters.d.ts +3 -2
  117. package/dist/types/data-app-sdk/builders.d.ts +2 -1
  118. package/dist/types/data-app-sdk/contracts.d.ts +44 -2
  119. package/dist/types/data-app-sdk/index.d.ts +1 -0
  120. package/dist/types/data-app-sdk/query-request.d.ts +7 -2
  121. package/dist/types/data-app-sdk/selection.d.ts +2 -0
  122. package/dist/types/index.cjs +1 -1
  123. package/dist/types/index.js +24 -23
  124. package/dist/types/lib/appearance/types.d.ts +3 -1
  125. package/dist/types/lib/briefings/briefing-attachment-model.d.ts +0 -2
  126. package/dist/types/lib/contexts/interactions-popover-context.d.ts +1 -8
  127. package/dist/types/lib/dashboard/click-to-filter-card-references.d.ts +23 -0
  128. package/dist/types/lib/dashboard-inputs/build-normalized-dashboard-inputs.d.ts +16 -2
  129. package/dist/types/lib/dashboard-inputs/build-selection-dashboard-inputs.d.ts +31 -0
  130. package/dist/types/lib/dashboard-inputs/click-to-filter-emitted-fields.d.ts +17 -0
  131. package/dist/types/lib/dashboard-inputs/click-to-filter-mapping-draft.d.ts +99 -0
  132. package/dist/types/lib/dashboard-inputs/click-to-filter-sheet-reach.d.ts +12 -0
  133. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +18 -1
  134. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-candidate-metadata.d.ts +4 -1
  135. package/dist/types/lib/dashboard-inputs/dashboard-input-scope.d.ts +10 -0
  136. package/dist/types/lib/dashboard-inputs/dashboard-input-snapshot.d.ts +8 -1
  137. package/dist/types/lib/dashboard-inputs/index.d.ts +1 -0
  138. package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +18 -7
  139. package/dist/types/lib/dashboard-inputs/resolve-field-date-comparison-coverage.d.ts +5 -2
  140. package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +77 -0
  141. package/dist/types/lib/dashboard-inputs/selection-targets.d.ts +26 -0
  142. package/dist/types/lib/dashboard-inputs/transient-input-context.d.ts +102 -0
  143. package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +50 -0
  144. package/dist/types/lib/dashboard-navigation/describe-carried-context.d.ts +11 -0
  145. package/dist/types/lib/dashboard-navigation/index.d.ts +1 -0
  146. package/dist/types/lib/dashboard-navigation/navigation-state.d.ts +120 -0
  147. package/dist/types/lib/dashboard-navigation/run-one-off-drill.d.ts +11 -0
  148. package/dist/types/lib/dashboard-navigation/use-transient-contexts.d.ts +17 -0
  149. package/dist/types/lib/dashboard-view-state/card-view-state.d.ts +48 -0
  150. package/dist/types/lib/dashboard-view-state/drill-path.d.ts +20 -0
  151. package/dist/types/lib/dashboard-view-state/index.d.ts +2 -0
  152. package/dist/types/lib/download-pdf.d.ts +0 -3
  153. package/dist/types/lib/formatters/metric-formatting.d.ts +1 -1
  154. package/dist/types/lib/hooks/ai/dashboard-context.d.ts +15 -8
  155. package/dist/types/lib/hooks/chartjs/use-chart-blur.d.ts +10 -2
  156. package/dist/types/lib/hooks/interactions/{use-event-engine.d.ts → use-drill-actions.d.ts} +28 -7
  157. package/dist/types/lib/hooks/selection/use-active-selections.d.ts +15 -0
  158. package/dist/types/lib/hooks/selection/use-click-to-filter-mapping-draft.d.ts +20 -0
  159. package/dist/types/lib/hooks/selection/use-selection-click.d.ts +34 -0
  160. package/dist/types/lib/hooks/selection/use-selection-gestures.d.ts +38 -0
  161. package/dist/types/lib/hooks/selection/use-table-row-selection.d.ts +46 -0
  162. package/dist/types/lib/hooks/use-dashboard-card.d.ts +0 -2
  163. package/dist/types/lib/hooks/use-dashboard-filter-mapping-candidates.d.ts +18 -0
  164. package/dist/types/lib/hooks/use-dashboard-frame-query.d.ts +0 -1
  165. package/dist/types/lib/hooks/use-dashboard.d.ts +1 -3
  166. package/dist/types/lib/hooks/use-interactions-popover.d.ts +1 -8
  167. package/dist/types/lib/hooks/use-resolved-card-config.d.ts +6 -0
  168. package/dist/types/lib/interactions/click-outcome.d.ts +25 -0
  169. package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +3 -1
  170. package/dist/types/lib/interactions/get-click-context-from-matrix.d.ts +1 -1
  171. package/dist/types/lib/interactions/get-click-context-from-table.d.ts +7 -0
  172. package/dist/types/lib/interactions/interaction-utils.d.ts +17 -1
  173. package/dist/types/lib/matrix-table/build-matrix-drill-to-detail.d.ts +15 -0
  174. package/dist/types/lib/matrix-table/matrix-card-interactions.d.ts +14 -3
  175. package/dist/types/lib/query-context/build-card-query-context.d.ts +19 -8
  176. package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +5 -3
  177. package/dist/types/lib/query-context/build-dashboard-frame-base-query-contexts.d.ts +12 -4
  178. package/dist/types/lib/query-context/compile-selection-filters.d.ts +5 -0
  179. package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +46 -0
  180. package/dist/types/lib/query-context/filter-group-utils.d.ts +3 -0
  181. package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +29 -0
  182. package/dist/types/lib/selection/click-to-filter-authoring-support.d.ts +9 -0
  183. package/dist/types/lib/selection/selection-from-click-context.d.ts +41 -0
  184. package/dist/types/lib/selection/selection-labels.d.ts +3 -0
  185. package/dist/types/lib/selection/selection-notices.d.ts +9 -0
  186. package/dist/types/lib/selection/selection-reducer.d.ts +46 -0
  187. package/dist/types/lib/stores/dashboard-store.d.ts +62 -17
  188. package/dist/types/lib/stores/editor-store.d.ts +1 -2
  189. package/dist/types/lib/stores/index.d.ts +0 -2
  190. package/dist/types/lib/types/common-types.d.ts +60 -6
  191. package/dist/types/lib/types/explorer-types.d.ts +1 -22
  192. package/dist/types/lib/types/interaction-types.d.ts +6 -198
  193. package/dist/types/lib/utils/calculate-context-aware-filters.d.ts +21 -12
  194. package/dist/types/lib/utils/card-utils.d.ts +11 -0
  195. package/dist/types/lib/utils/date-hierarchy-utils.d.ts +3 -1
  196. package/dist/types/lib/utils/drag-and-drop-utils.d.ts +1 -1
  197. package/dist/types/lib/utils/interaction-icons.d.ts +1 -1
  198. package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +32 -32
  199. package/dist/types/shared/analytics-protocol/index.d.ts +2 -0
  200. package/dist/types/shared/analytics-protocol/selection-contract.d.ts +100 -0
  201. package/dist/types/shared/analytics-protocol/selection-filter-compiler.d.ts +12 -0
  202. package/dist/types/shared/dashboard-authoring/apply-group-by-override.d.ts +19 -0
  203. package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +88 -0
  204. package/dist/types/shared/dashboard-authoring/contracts.d.ts +8 -0
  205. package/dist/types/shared/dashboard-authoring/index.d.ts +3 -0
  206. package/dist/types/shared/dashboard-authoring/linked-click-to-filter-overrides.d.ts +32 -0
  207. package/dist/types/shared/format-utils/matrix-continuation.d.ts +3 -3
  208. package/package.json +1 -1
  209. package/src/data-app-sdk/README.md +58 -1
  210. package/dist/chunks/appearance-context-tNjvTJj3.cjs +0 -1
  211. package/dist/chunks/calculated-field-identity-BTpUqfEu.js +0 -1276
  212. package/dist/chunks/calculated-field-identity-rMuXuzEY.cjs +0 -1
  213. package/dist/chunks/constants-vtu7_IUo.cjs +0 -1
  214. package/dist/chunks/dashboard-controls-DlxeddZN.cjs +0 -52
  215. package/dist/chunks/dashboard-json-DhS4yJfc.cjs +0 -1
  216. package/dist/chunks/edit-dashboard-visual-X3OCnivL.cjs +0 -172
  217. package/dist/chunks/field-aggregations-BU_3gHKR.js +0 -957
  218. package/dist/chunks/field-aggregations-CDCamEsQ.cjs +0 -1
  219. package/dist/chunks/index-C8XCKzB6.cjs +0 -1
  220. package/dist/chunks/index-DSa6RSdg.cjs +0 -1417
  221. package/dist/chunks/matrix-control-sources-CeC5EMyq.cjs +0 -1
  222. package/dist/chunks/matrix-member-presentation-E2B4k3ws.cjs +0 -1
  223. package/dist/chunks/matrix-member-presentation-qiHxv67e.js +0 -105
  224. package/dist/chunks/matrix-operation-contract-Cqy4EW2H.js +0 -1638
  225. package/dist/chunks/matrix-operation-contract-D9dLX-Wr.cjs +0 -1
  226. package/dist/chunks/report-preferences-dialog-7Vsc_fsG.cjs +0 -1
  227. package/dist/chunks/search-BqqhaMx9.cjs +0 -26
  228. package/dist/chunks/switch-BytP6QY8.cjs +0 -139
  229. package/dist/types/components/interactions/configuration-popover.d.ts +0 -1
  230. package/dist/types/components/interactions/interaction-card.d.ts +0 -59
  231. package/dist/types/components/interactions/interaction-event-handler.d.ts +0 -11
  232. package/dist/types/components/interactions/interactions-list.d.ts +0 -50
  233. package/dist/types/components/interactions/panels/cross-filter-panel.d.ts +0 -24
  234. package/dist/types/components/interactions/panels/inline-drill-panel.d.ts +0 -24
  235. package/dist/types/components/interactions/selectors/action-selector.d.ts +0 -31
  236. package/dist/types/components/interactions/selectors/trigger-selector.d.ts +0 -38
  237. package/dist/types/components/surfboard/filter/click-filter-section.d.ts +0 -5
  238. package/dist/types/lib/interactions/build-interaction-event.d.ts +0 -25
  239. package/dist/types/lib/interactions/convert-click-filters-to-filter-group.d.ts +0 -10
  240. package/dist/types/lib/interactions/execute-interaction-event.d.ts +0 -80
  241. package/dist/types/lib/interactions/field-utils.d.ts +0 -11
  242. package/dist/types/lib/interactions/handle-chart-click.d.ts +0 -75
  243. package/dist/types/lib/interactions/linked-interaction-utils.d.ts +0 -14
  244. package/dist/types/lib/interactions/source-card-filter-utils.d.ts +0 -9
  245. package/dist/types/lib/stores/drill-actions.d.ts +0 -139
  246. package/dist/types/lib/stores/interaction-store.d.ts +0 -113
  247. package/dist/types/lib/stores/pointer-interaction-store.d.ts +0 -18
@@ -1 +0,0 @@
1
- export declare function ConfigurationPopover(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,59 +0,0 @@
1
- import { Interaction, DrillHierarchy } from '../../lib/types/interaction-types.js';
2
- import { Field } from '../../lib/types/explorer-types.js';
3
- import { TCard } from '../../lib/types/common-types.js';
4
- interface InteractionCardProps {
5
- /**
6
- * The interaction being configured
7
- */
8
- interaction: Interaction;
9
- /**
10
- * Available metrics from the chart
11
- */
12
- metrics: Field[];
13
- /**
14
- * Available attributes from the chart
15
- */
16
- attributes: Field[];
17
- /**
18
- * All available fields from all selected entities in the datasource
19
- */
20
- availableFields: Field[];
21
- /**
22
- * The card being configured
23
- */
24
- card: TCard;
25
- /**
26
- * Callback when hierarchies are updated
27
- */
28
- onUpdateHierarchies?: (hierarchies: DrillHierarchy[]) => void;
29
- /**
30
- * Callback when interaction is updated
31
- */
32
- onUpdate: (interaction: Interaction) => void;
33
- /**
34
- * Callback when interaction should be removed
35
- */
36
- onRemove: () => void;
37
- }
38
- /**
39
- * InteractionCard Component
40
- *
41
- * A complete interaction configuration card that includes:
42
- * - Trigger selection (what to click)
43
- * - Action selection (what should happen)
44
- * - Action-specific configuration panel
45
- * - Remove button
46
- *
47
- * Usage:
48
- * ```tsx
49
- * <InteractionCard
50
- * interaction={currentInteraction}
51
- * metrics={chartMetrics}
52
- * attributes={chartAttributes}
53
- * onUpdate={(updated) => console.log(updated)}
54
- * onRemove={() => console.log('remove')}
55
- * />
56
- * ```
57
- */
58
- export declare function InteractionCard({ interaction, metrics, attributes, availableFields, card, onUpdateHierarchies, onUpdate, onRemove, }: InteractionCardProps): import("react/jsx-runtime").JSX.Element;
59
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * InteractionEventHandler Component
3
- *
4
- * This is a logic-only observer component that watches the interaction store
5
- * for lastInteractionEvent changes and executes them via side effects.
6
- *
7
- * It separates state management (Zustand) from side effects (React/DOM manipulation).
8
- *
9
- * Usage: Mount this component once at the dashboard root level.
10
- */
11
- export declare function InteractionEventHandler(): import("react/jsx-runtime").JSX.Element;
@@ -1,50 +0,0 @@
1
- import { Interaction, DrillHierarchy } from '../../lib/types/interaction-types.js';
2
- import { Field } from '../../lib/types/explorer-types.js';
3
- import { TCard } from '../../lib/types/common-types.js';
4
- interface InteractionsListProps {
5
- /**
6
- * Current interactions configured for this card
7
- */
8
- interactions: Interaction[];
9
- /**
10
- * Available metrics from the chart (for trigger selection)
11
- */
12
- metrics: Field[];
13
- /**
14
- * Available attributes from the chart (for trigger selection)
15
- */
16
- attributes: Field[];
17
- /**
18
- * All available fields from all selected entities in the datasource
19
- * (for drill-down hierarchy configuration and other advanced features)
20
- */
21
- availableFields: Field[];
22
- /**
23
- * The card being configured (needed for drill-down hierarchies)
24
- */
25
- card: TCard;
26
- /**
27
- * Callback when hierarchies are updated
28
- */
29
- onUpdateHierarchies?: (hierarchies: DrillHierarchy[]) => void;
30
- /**
31
- * Callback when interactions are updated
32
- */
33
- onChange: (interactions: Interaction[]) => void;
34
- }
35
- /**
36
- * InteractionsList Component
37
- *
38
- * Usage:
39
- * ```tsx
40
- * <InteractionsList
41
- * interactions={currentInteractions}
42
- * metrics={chartMetrics}
43
- * attributes={chartAttributes}
44
- * card={card}
45
- * onChange={(updated) => setInteractions(updated)}
46
- * />
47
- * ```
48
- */
49
- export declare function InteractionsList({ interactions, metrics, attributes, availableFields, card, onUpdateHierarchies, onChange, }: InteractionsListProps): import("react/jsx-runtime").JSX.Element;
50
- export {};
@@ -1,24 +0,0 @@
1
- import { ClickFilterInteraction } from '../../../lib/types/interaction-types.js';
2
- interface CrossFilterPanelProps {
3
- /**
4
- * The click filter interaction being configured
5
- */
6
- interaction: ClickFilterInteraction;
7
- /**
8
- * Callback when interaction is updated
9
- */
10
- onUpdate: (interaction: ClickFilterInteraction) => void;
11
- }
12
- /**
13
- * CrossFilterPanel Component
14
- *
15
- * Usage in InteractionCard:
16
- * ```tsx
17
- * <CrossFilterPanel
18
- * interaction={interaction as ClickFilterInteraction}
19
- * onUpdate={(updated) => onUpdate(updated)}
20
- * />
21
- * ```
22
- */
23
- export declare function CrossFilterPanel({ interaction, onUpdate, }: CrossFilterPanelProps): import("react/jsx-runtime").JSX.Element;
24
- export {};
@@ -1,24 +0,0 @@
1
- import { InlineDrillInteraction } from '../../../lib/types/interaction-types.js';
2
- interface InlineDrillPanelProps {
3
- /**
4
- * The inline drill interaction being configured
5
- */
6
- interaction: InlineDrillInteraction;
7
- /**
8
- * Callback when interaction is updated
9
- */
10
- onUpdate: (interaction: InlineDrillInteraction) => void;
11
- }
12
- /**
13
- * InlineDrillPanel Component
14
- *
15
- * Usage in InteractionCard:
16
- * ```tsx
17
- * <InlineDrillPanel
18
- * interaction={interaction as InlineDrillInteraction}
19
- * onUpdate={(updated) => onUpdate(updated)}
20
- * />
21
- * ```
22
- */
23
- export declare function InlineDrillPanel({ interaction, onUpdate, }: InlineDrillPanelProps): import("react/jsx-runtime").JSX.Element;
24
- export {};
@@ -1,31 +0,0 @@
1
- /**
2
- * Interaction mode types
3
- */
4
- export type InteractionMode = 'clickFilter' | 'drillDown' | 'dynamicDrill' | 'drillThrough' | 'drillToDetail' | 'drillToURL' | 'inlineDrill';
5
- interface ActionSelectorProps {
6
- /**
7
- * Currently selected action
8
- */
9
- value?: InteractionMode;
10
- /**
11
- * Callback when action is selected
12
- */
13
- onChange: (mode: InteractionMode) => void;
14
- allowedModes?: readonly InteractionMode[];
15
- }
16
- /**
17
- * ActionSelector Component
18
- *
19
- * Allows users to select what action should happen when the trigger is clicked.
20
- * Displays all 5 available interaction types.
21
- *
22
- * Usage:
23
- * ```tsx
24
- * <ActionSelector
25
- * value="clickFilter"
26
- * onChange={(mode) => console.log(mode)}
27
- * />
28
- * ```
29
- */
30
- export declare function ActionSelector({ value, onChange, allowedModes }: ActionSelectorProps): import("react/jsx-runtime").JSX.Element;
31
- export {};
@@ -1,38 +0,0 @@
1
- import { InteractionTrigger } from '../../../lib/types/interaction-types.js';
2
- import { Field } from '../../../lib/types/explorer-types.js';
3
- interface TriggerSelectorProps {
4
- /**
5
- * Current selected trigger
6
- */
7
- value?: InteractionTrigger;
8
- /**
9
- * Callback when trigger is selected
10
- */
11
- onChange: (trigger: InteractionTrigger) => void;
12
- /**
13
- * Available metrics from the chart
14
- */
15
- metrics: Field[];
16
- /**
17
- * Available attributes (dimensions) from the chart
18
- */
19
- attributes: Field[];
20
- }
21
- /**
22
- * TriggerSelector Component
23
- *
24
- * Allows users to select what element must be clicked to trigger an interaction.
25
- * Displays metrics and attributes in separate sections.
26
- *
27
- * Usage:
28
- * ```tsx
29
- * <TriggerSelector
30
- * metrics={chartMetrics}
31
- * attributes={chartAttributes}
32
- * value={currentTrigger}
33
- * onChange={(trigger) => console.log(trigger)}
34
- * />
35
- * ```
36
- */
37
- export declare function TriggerSelector({ value, onChange, metrics, attributes, }: TriggerSelectorProps): import("react/jsx-runtime").JSX.Element;
38
- export {};
@@ -1,5 +0,0 @@
1
- interface ClickFilterSectionProps {
2
- cardId?: string;
3
- }
4
- export default function ClickFilterSection({ cardId, }: ClickFilterSectionProps): import("react/jsx-runtime").JSX.Element | null;
5
- export {};
@@ -1,25 +0,0 @@
1
- import { Field } from '../types/explorer-types.js';
2
- import { PointerInteractionContext } from '../stores/pointer-interaction-store.js';
3
- import { TCard } from '../types/index.js';
4
- import { InteractionEvent } from '../types/interaction-types.js';
5
- import { InteractionTriggerIdentity } from '../hooks/interactions/use-event-engine.js';
6
- export type InteractionIntent = {
7
- mode: 'clickFilter' | 'drillDown' | 'dynamicDrill' | 'drillToDetail' | 'drillToURL' | 'drillThrough' | 'inlineDrill';
8
- };
9
- export type DrillDownIntent = InteractionIntent & {
10
- mode: 'drillDown';
11
- drillField: Field;
12
- hierarchyId: string;
13
- };
14
- export type DynamicDrillIntent = InteractionIntent & {
15
- mode: 'dynamicDrill';
16
- drillField: Field;
17
- };
18
- export declare function buildInteractionEventFromContext({ intent, card, context, triggerIdentity, }: {
19
- intent: InteractionIntent;
20
- card: TCard;
21
- /** Typed adapters may supply context without changing the global pointer selection. */
22
- context?: PointerInteractionContext;
23
- /** Authored instances select actions; grounded condition fields remain unchanged. */
24
- triggerIdentity?: InteractionTriggerIdentity;
25
- }): InteractionEvent | undefined;
@@ -1,10 +0,0 @@
1
- import { FilterCondition, FilterGroup } from '../types/explorer-types.js';
2
- import { ClickFilterCondition, ClickFilterEvent } from '../types/interaction-types.js';
3
- export declare function toFilterCondition(condition: ClickFilterCondition, id: string): FilterCondition;
4
- /**
5
- * Converts ClickFilterEvents into a single OR-ed FilterGroup.
6
- * Only uses strict filterGroups; legacy support is removed.
7
- */
8
- export declare function convertClickFiltersToFilterGroup(clickFilterEvents: ClickFilterEvent[] | undefined): FilterGroup | undefined;
9
- export declare function mergeFilterGroups(groups: (FilterGroup | undefined)[]): FilterGroup | undefined;
10
- export declare function getFilterGroupKey(filterGroup: FilterGroup | undefined): string | undefined;
@@ -1,80 +0,0 @@
1
- import { InteractionEvent, ClickFilterCondition } from '../types/interaction-types.js';
2
- import { TFilterValue } from '../../components/surfboard/filter/types.js';
3
- /**
4
- * Context passed to execution functions
5
- * Contains necessary functions and state from the application
6
- */
7
- export interface ExecutionContext {
8
- /**
9
- * Sheet navigation function (legacy - for backwards compatibility)
10
- * @deprecated
11
- */
12
- setSelectedSheetId?: (sheetId: string) => void;
13
- /**
14
- * Open insight modal
15
- * Used for drillToDetail with displayMode: 'modal'
16
- */
17
- openInsightModal: (params: {
18
- insightId: string;
19
- filters?: (ClickFilterCondition | TFilterValue)[];
20
- contextMode?: 'interactionFilters' | 'full' | 'none';
21
- }) => void;
22
- /**
23
- * Replace card content temporarily
24
- * Used for drillToDetail with displayMode: 'replace-card'
25
- */
26
- replaceCardContent: (params: {
27
- cardId: string;
28
- insightId: string;
29
- filters?: (ClickFilterCondition | TFilterValue)[];
30
- contextMode?: 'interactionFilters' | 'full' | 'none';
31
- }) => void;
32
- /**
33
- * Get current dashboard filters
34
- * Used for contextMode: 'full' to pass all filters
35
- * Returns TFilterValue (dashboard filters)
36
- */
37
- getCurrentFilters?: () => TFilterValue[];
38
- /**
39
- * Navigate with drill context
40
- * Updates drill history and context before navigation
41
- */
42
- navigateWithDrill?: (targetDashboardId: string, sourceDashboardId: string, sourceDashboardTitle: string | undefined, filters: ClickFilterCondition[], contextMode: 'interactionFilters' | 'full' | 'none') => void;
43
- /**
44
- * Get current dashboard ID
45
- * Used for drill history tracking
46
- */
47
- getCurrentDashboardId?: () => string;
48
- /**
49
- * Get current dashboard title
50
- * Used for drill history display
51
- */
52
- getCurrentDashboardTitle?: () => string | undefined;
53
- /**
54
- * Set pending drill-through navigation
55
- * Used to trigger async dashboard metadata loading
56
- */
57
- setPendingDrillThrough?: (params: {
58
- targetDashboardId: string;
59
- sourceDashboardId: string;
60
- sourceDashboardTitle?: string;
61
- filters: ClickFilterCondition[];
62
- contextMode: 'interactionFilters' | 'full' | 'none';
63
- }) => void;
64
- /**
65
- * Set global drill context filters
66
- * Stores drill-through filters in interaction state for query filtering
67
- */
68
- setGlobalDrillContext?: (params: {
69
- filters: ClickFilterCondition[];
70
- contextMode: 'interactionFilters' | 'full' | 'none';
71
- sourceDashboardId: string;
72
- sourceDashboardTitle?: string;
73
- targetDashboardId: string;
74
- }) => void;
75
- }
76
- /**
77
- * Main execution function
78
- * Routes events to specific executors based on interactionMode
79
- */
80
- export declare function executeInteractionEvent(event: InteractionEvent, context: ExecutionContext): void;
@@ -1,11 +0,0 @@
1
- import { Field } from '../types/explorer-types.js';
2
- /**
3
- * Categorize fields into metrics and attributes based on their role
4
- *
5
- * @param fields - Array of fields to categorize
6
- * @returns Object with metrics and attributes arrays
7
- */
8
- export declare function categorizeFields(fields: Field[]): {
9
- metrics: Field[];
10
- attributes: Field[];
11
- };
@@ -1,75 +0,0 @@
1
- import { Interaction, InteractionTrigger, InteractionEvent } from '../types/interaction-types.js';
2
- import { Field } from '../types/explorer-types.js';
3
- /**
4
- * Represents an element that was clicked in a chart
5
- */
6
- export interface ClickedElement {
7
- /**
8
- * Type of element clicked - determines filtering behavior
9
- * - 'metric': User clicked on a metric value (e.g., bar segment)
10
- * - 'attribute': User clicked on an attribute label (e.g., X-axis label)
11
- */
12
- type: 'metric' | 'attribute';
13
- /**
14
- * The field that was clicked
15
- * For multi-series charts, this has the specific metric's unique ID
16
- */
17
- field: Field;
18
- /**
19
- * The value that was clicked
20
- */
21
- value: any;
22
- /**
23
- * All dimensions present at the clicked point
24
- * Required for metric clicks (intersection behavior)
25
- * May be undefined for attribute clicks
26
- */
27
- allDimensions?: Record<string, any>;
28
- }
29
- /**
30
- * Phase 3.1: Capture Dimensions Function
31
- *
32
- * Captures dimension values based on the trigger type.
33
- *
34
- * Behavior:
35
- * - For 'metric' triggers: Captures intersection of ALL dimensions
36
- * Example: country='USA' AND state='CA' AND city='SF'
37
- *
38
- * - For 'attribute' triggers: Captures ONLY the clicked attribute
39
- * Example: country='USA' (ignores state, city)
40
- *
41
- * @param clickedElement - The element that was clicked
42
- * @param trigger - The interaction trigger configuration
43
- * @returns Record of dimension field IDs to values
44
- */
45
- export declare function captureDimensions(clickedElement: ClickedElement, trigger: InteractionTrigger): Record<string, any>;
46
- /**
47
- * Phase 3.2: Find Matching Interaction Function
48
- *
49
- * Finds an interaction that matches the clicked element.
50
- *
51
- * Matching criteria:
52
- * 1. Field ID must match (handles multi-series charts via unique field.id)
53
- * 2. Trigger type must match (metric vs attribute)
54
- *
55
- * @param interactions - Array of configured interactions
56
- * @param clickedElement - The element that was clicked
57
- * @returns Matching interaction or null if no match
58
- */
59
- export declare function findMatchingInteraction(interactions: Interaction[], clickedElement: ClickedElement): Interaction | null;
60
- /**
61
- * Phase 3.3: Handle Chart Click Function
62
- *
63
- * Main entry point for handling chart click events.
64
- * This function orchestrates the entire interaction flow:
65
- * 1. Find matching interaction
66
- * 2. Capture appropriate dimensions
67
- * 3. Build and return interaction event
68
- *
69
- * @param clickedElement - The element that was clicked
70
- * @param interactions - Array of configured interactions
71
- * @param availableFields - All fields in the chart (for metadata)
72
- * @param sourceCardId - ID of the card that was clicked
73
- * @returns Interaction event to execute, or null if no match
74
- */
75
- export declare function handleChartClick(clickedElement: ClickedElement, interactions: Interaction[], availableFields: Field[], sourceCardId: string): InteractionEvent | null;
@@ -1,14 +0,0 @@
1
- import { InteractionTargetOverride, PersistedInteraction } from '../types/interaction-types.js';
2
- type InteractionWithId = PersistedInteraction & {
3
- id: string;
4
- };
5
- export declare function ensureInteractionIds(interactions?: PersistedInteraction[]): InteractionWithId[];
6
- export declare function remapClickFilterTargetsToInstance(interactions: PersistedInteraction[], sourceToInstanceCardIds: Map<string, string>): PersistedInteraction[];
7
- export declare function applyLinkedTargetOverrides(interactions: PersistedInteraction[], overrides?: Record<string, InteractionTargetOverride>): PersistedInteraction[];
8
- export declare function pruneLinkedTargetOverrides(overrides: Record<string, InteractionTargetOverride> | undefined, validInteractionIds: string[]): Record<string, InteractionTargetOverride> | undefined;
9
- export declare function stripClickFilterTargetsForLibrarySave(nextInteractions: PersistedInteraction[], sourceLibraryInteractions: PersistedInteraction[]): PersistedInteraction[];
10
- export declare function buildLinkedTargetOverrides(localInteractions: PersistedInteraction[], remappedLibraryInteractions: PersistedInteraction[]): Record<string, InteractionTargetOverride>;
11
- export declare function createInteractionWithStableId(): {
12
- id: string;
13
- };
14
- export {};
@@ -1,9 +0,0 @@
1
- import { ClickFilterEvent } from '../types/interaction-types.js';
2
- /**
3
- * Returns whether a source card is excluded from its own click-filter query.
4
- *
5
- * A source may have multiple filters at once. An explicit
6
- * `filterSourceCard: true` wins over excluded events because the query owner
7
- * uses the same rule to decide whether the source card should execute.
8
- */
9
- export declare function isSourceCardExcludedFromClickFilter(cardId: string, appliedClickFilters: ClickFilterEvent[] | undefined): boolean;
@@ -1,139 +0,0 @@
1
- import { DrillHierarchy, CardInteractionConfig } from '../types/interaction-types.js';
2
- import { Field, CardConfig } from '../types/explorer-types.js';
3
- import { TCard } from '../types/index.js';
4
- import { EditorStore } from './editor-store.js';
5
- export declare const EMPTY_DRILL_HIERARCHIES: DrillHierarchy[];
6
- export declare const EMPTY_DRILL_TARGETS: Field[];
7
- export interface DrillActions {
8
- updateDrillHierarchies: (h: DrillHierarchy[]) => void;
9
- addDrillHierarchy: (h: DrillHierarchy) => void;
10
- removeDrillHierarchy: (hierarchyId: string) => void;
11
- updateDrillHierarchy: (hierarchyId: string, updates: Partial<DrillHierarchy>) => void;
12
- setDefaultHierarchy: (hierarchyId: string) => void;
13
- updateAllowedDrillTargets: (t: Field[]) => void;
14
- addDrillTarget: (t: Field) => void;
15
- removeDrillTarget: (targetId: string) => void;
16
- updateInlineDrillPreview: (s: {
17
- enabled: boolean;
18
- limit: number;
19
- mode: 'lazy' | 'preloaded';
20
- }) => void;
21
- toggleInlineDrillPreview: (enabled: boolean) => void;
22
- updateInteractionConfig: (c: Partial<CardInteractionConfig>) => void;
23
- resetDrillConfiguration: () => void;
24
- }
25
- export declare const createDrillActions: (set: (fn: (s: EditorStore) => Partial<EditorStore>) => void) => DrillActions;
26
- export declare const useCard: () => TCard;
27
- export declare const useDrillActions: () => import('./table-actions.js').TableActions & import('./explorer-actions.js').ExplorerActions & DrillActions & {
28
- resetEditorStore: () => void;
29
- setEditorFilterMode: (filterColumnName: string, filterMode: "include" | "exclude") => void;
30
- setValueAlignment: (valueAlignment: "left" | "center") => void;
31
- clearEditorFilter: (filterColumn: import('../types/query-types.js').FilterByColumn) => void;
32
- removeEditorFilter: (filterColumn: import('../types/query-types.js').FilterByColumn) => void;
33
- updateEditorFilterValue: (filterColumnName: string, filterValue: import('../types/query-types.js').OldFilterValue, clearFilter?: boolean) => void;
34
- setTempQueryData: (tempQueryData: {
35
- queryKey: string[];
36
- queryData: any;
37
- }) => void;
38
- clearQueryConfig: () => void;
39
- setQueryConfig: (queryConfig: import('../types/query-types.js').QueryConfig | undefined) => void;
40
- setCardTitle: (title: string) => void;
41
- setCardDescription: (description: string) => void;
42
- setCardInfo: (info: string) => void;
43
- setCardId: (cardId: string) => void;
44
- setCountryLogo: (countryLogoId: string | null) => void;
45
- setIsDevMode: (isDevMode: boolean) => void;
46
- switchEditorMode: (targetMode: "dev" | "standard", options?: {
47
- sqlToLoad?: string;
48
- skipDraftSave?: boolean;
49
- }) => void;
50
- initializeModeDrafts: (card: TCard) => void;
51
- mergeDraftsIntoCard: () => void;
52
- clearModeDrafts: () => void;
53
- setOrderByColumns: (orderByColumns: import('../types/query-types.js').OrderBy[]) => void;
54
- addOrderByColumn: (orderByColumn: import('../types/query-types.js').OrderBy) => void;
55
- removeOrderByColumn: (orderByColumn: import('../types/query-types.js').OrderBy) => void;
56
- updateOrderByColumn: (orderByColumn: import('../types/query-types.js').OrderBy) => void;
57
- setGroupByColumns: (groupByColumns: import('../types/query-types.js').GroupByColumn[]) => void;
58
- setMetricColumns: (metricColumns: import('../types/query-types.js').MetricColumn[]) => void;
59
- setPivotByColumns: (pivotColumns: import('../types/query-types.js').GroupByColumn[]) => void;
60
- removeColumnFromGroupBy: (columnId: string) => void;
61
- removeColumnFromMetricColumns: (columnId: string) => void;
62
- removeColumnFromPivotBy: (columnId: string) => void;
63
- addColumnToGroupBy: (column: import('../types/query-types.js').GroupByColumn) => void;
64
- addColumnToMetricColumns: (column: import('../types/query-types.js').MetricColumn) => void;
65
- setFilterColumns: (filterColumns: import('../types/query-types.js').FilterByColumn[]) => void;
66
- addColumnToFilterColumns: (column: import('../types/query-types.js').FilterByColumn) => void;
67
- removeColumnFromFilterColumns: (columnId: string) => void;
68
- updateMetricColumnOld: (columnId: string, column: import('../types/query-types.js').MetricColumn) => void;
69
- updateGroupByColumnOld: (columnId: string, column: import('../types/query-types.js').GroupByColumn) => void;
70
- updatePivotByColumnOld: (columnId: string, column: import('../types/query-types.js').GroupByColumn) => void;
71
- updateFilterColumn: (columnId: string, column: import('../types/query-types.js').FilterByColumn) => void;
72
- setCurrentAssitantScope: (currentAssitantScope: import('../types/index.js').AIScopeTable[]) => void;
73
- setChartGrid: (chartGrid: "xy" | "x" | "y" | "none") => void;
74
- setLegendOptions: (legendOptions: import('../types/index.js').TLegendOptions) => void;
75
- runAssistant: (message: string) => void;
76
- setShowAIDialog: (showAIDialog: boolean) => void;
77
- setUserInputForAI: (userInputForAI: string) => void;
78
- setTriggerAIRun: (triggerAIRun: boolean) => void;
79
- setActiveTabCardId: (activeTabCardId: string) => void;
80
- updateCardTab: (activeTabCardId: string, currentCard: TCard) => void;
81
- setSortChart: (sortChart: "asc" | "desc" | "none") => void;
82
- setChartOrientation: (indexAxis: "x" | "y") => void;
83
- setCustomVisualCode: (code: string) => void;
84
- setCardRefreshInterval: (refreshInterval: string) => void;
85
- setNumberFormat: (decimalPlaces: number, currency: string, locale: string, suffix: string) => void;
86
- setColorRanges: (colorRanges: import('../types/index.js').ColorRange[]) => void;
87
- setIsShowingVisual: (isShowingVisual: boolean) => void;
88
- setQueryResultColumns: (columns: string[], columnKeyMap?: import('../types/explorer-types.js').QueryColumnKeyMap) => void;
89
- setRunSql: (runSql: boolean) => void;
90
- setCardPreferences: (preferences: import('../types/index.js').TCardPreferences) => void;
91
- setCustomCardPreferences: (customPreferences: import('../types/index.js').TCustomCardPreferences) => void;
92
- setVisualizationMode: (mode: import('../types/index.js').TVisualizationMode) => void;
93
- setDynamicCardPreferences: (dynamicPreferences: import('../types/index.js').TDynamicCardPreferences | undefined) => void;
94
- setFilterOnClickField: (field: string) => void;
95
- setFilterOnClickColumnIndex: (index: number) => void;
96
- setIsSqlRunning: (isSqlRunning: boolean) => void;
97
- setCard: (card: TCard) => void;
98
- setFrame: (frame: import('../types/index.js').TFrame) => void;
99
- replaceFrameCards: (cards: TCard[]) => void;
100
- updateCardInFrame: (card: TCard) => void;
101
- setSqlGen: (sqlGen: import('../types/index.js').SqlGen) => void;
102
- setSqlGenMeasure: (name: string, calc: import('../types/index.js').AggregateCalc) => void;
103
- setSqlGenDimension: (dimension: string) => void;
104
- switchCardType: (type: import('../types/index.js').TChartType) => void;
105
- setCardType: (type: import('../types/index.js').TChartType) => void;
106
- setCardSql: (sql: string | undefined) => void;
107
- setCardPython: (python: string | undefined) => void;
108
- setPythonStdOut: (pythonStdOut: string) => void;
109
- setCardCustomCfg: (cfg: any) => void;
110
- setCardConfig: (config: CardConfig | undefined) => void;
111
- setShowFilters: (showFilters: boolean) => void;
112
- setApplyFilters: (applyFilters: boolean) => void;
113
- setFilterValues: (filterValues: import('../types/index.js').TFilterValue[]) => void;
114
- setInlineFilterValuesMap: (map: Record<string, import('../types/index.js').TFilterValue[]>) => void;
115
- setCardInlineFilterValue: (cardId: string, filterValue: import('../types/index.js').TFilterValue) => void;
116
- removeCardInlineFilterValue: (cardId: string, filterId: string) => void;
117
- setSelectedConnectionId: (connectionId: string) => void;
118
- setSelectedDatamodelId: (datamodelId: string) => void;
119
- setSelectedDatabaseName: (databaseName: string) => void;
120
- setSelectedSchemaName: (schemaName: string) => void;
121
- setSelectedTableName: (tableName: string) => void;
122
- setOnConnectionChange: (onConnectionChange: (connectionId: string) => void) => void;
123
- setOnDatabaseChange: (onDatabaseChange: (databaseName: string) => void) => void;
124
- setOnSchemaChange: (onSchemaChange: (schemaName: string) => void) => void;
125
- setOnTableChange: (onTableChange: (tableNmae: string) => void) => void;
126
- setOnSave: (onSave: (card: import('../types/index.js').TFrame) => void) => void;
127
- setOnClose: (onClose: () => void) => void;
128
- setEditorContext: (context: import('./editor-store.js').EditorContext) => void;
129
- clearEditorContext: () => void;
130
- };
131
- export declare const selectDrillHierarchies: (s: EditorStore) => DrillHierarchy[];
132
- export declare const selectAllowedDrillTargets: (s: EditorStore) => Field[];
133
- export declare const selectInlineDrillPreview: (s: EditorStore) => {
134
- enabled: boolean;
135
- limit: number;
136
- mode: "lazy" | "preloaded";
137
- };
138
- export declare const selectDefaultHierarchy: (s: EditorStore) => DrillHierarchy | undefined;
139
- export declare const selectHierarchyById: (hierarchyId: string) => (s: EditorStore) => DrillHierarchy | undefined;