@sisense/sdk-ui 2.25.0 → 2.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.cjs +36 -36
- package/dist/ai.js +968 -989
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +1010 -865
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/{apply-styled-options-to-query-BsBTwL6W.js → apply-styled-options-to-query-BzMAmDnD.js} +1471 -1433
- package/dist/apply-styled-options-to-query-k10gkPCG.cjs +1 -0
- package/dist/dimensions-C3WSSE5j.js +204 -0
- package/dist/dimensions-huCJK0y6.cjs +1 -0
- package/dist/index.cjs +422 -422
- package/dist/index.js +17880 -17278
- package/dist/index.umd.js +652 -663
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-model.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-models.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +18 -4
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/types.d.ts +19 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +8 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +5 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-scroll-persistence.d.ts +16 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/use-composed-dashboard.d.ts +2 -3
- package/dist/packages/sdk-ui/src/domains/data-browser/data-source-dimensional-model/hooks/use-get-data-source-dimensions.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/data-source-dimensional-model/hooks/use-get-data-source-fields.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/drilldown/components/drilldown-widget/drilldown-widget.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/drilldown/hooks/use-drilldown.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/drilldown/hooks/use-hierarchies-loader.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/filters/components/custom-filter-tile.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-options.d.ts +11 -3
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-props-to-narrative-params.d.ts +51 -1
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-get-widget-narrative.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-widget-narrative-state.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/query-execution/core/date-formats/simple-date-format-replacers.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-pivot-query/use-execute-pivot-query.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query/use-execute-query.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/area-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/areamap-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/bar-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/boxplot-chart/boxplot-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/components/scattermap/utils/map.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/areamap-chart/data/areamap-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/axis.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/types.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/column-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/funnel-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/line-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pie-chart/pie-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/sorting-utils.d.ts +4 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/polar-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/scatter-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/scattermap-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/sunburst-chart/sunburst-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/hooks/use-table-data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/table.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/treemap-chart/treemap-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/translate-data-options.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/types.d.ts +6 -6
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/validate-data-options/validate-data-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/apply-event-handlers.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/cartesian/utils/axis/axis-builders.d.ts +6 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/cartesian/utils/series-processor.d.ts +1 -37
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/chart-options-service.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/plot-bands.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/series-labels.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/axis-section.d.ts +29 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/design-options.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/tooltip-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/compose-code-to-readable.d.ts +24 -4
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-definition-style-constants.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-definition.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-params-to-view-model.d.ts +8 -4
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-pill.d.ts +6 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/use-with-pivot-table-widget-drilldown.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/utils.d.ts +0 -5
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/apply-partial-dto-style.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/extract-unsupported-style-options.d.ts +31 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +118 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +19 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/use-scroller-location-save.d.ts +8 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/utils.d.ts +10 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/widget-by-id.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/with-navigator-scroll-save.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/use-get-widget-model.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/to-widget-dto-panels.d.ts +183 -0
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/widget-model-translator.d.ts +45 -14
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model.d.ts +12 -0
- package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-endpoints.d.ts +13 -7
- package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +12 -1
- package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +49 -2
- package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +2 -0
- package/dist/packages/sdk-ui/src/infra/app/types.d.ts +0 -1
- package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/use-custom-widgets.d.ts +10 -3
- package/dist/packages/sdk-ui/src/infra/plugins/plugin-context.d.ts +2 -2
- package/dist/packages/sdk-ui/src/infra/plugins/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/types.d.ts +24 -10
- package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/ai/api/chat-rest-api.d.ts +3 -4
- package/dist/packages/sdk-ui/src/modules/ai/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-from-json.d.ts +5 -5
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-to-jaql.d.ts +4 -4
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-to-json.d.ts +5 -5
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/props.d.ts +4 -4
- package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +5 -0
- package/dist/packages/sdk-ui/src/public-api/internal.d.ts +13 -2
- package/dist/packages/sdk-ui/src/public-api/public.d.ts +22 -20
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +2 -2
- package/dist/packages/sdk-ui/src/shared/components/menu/context-menu/menu.d.ts +1 -1
- package/dist/packages/sdk-ui/src/shared/utils/filter-relations.d.ts +2 -0
- package/dist/packages/sdk-ui/src/types.d.ts +10 -10
- package/dist/{types-GFLaiax5.cjs → types-Cq47e5cy.cjs} +1 -1
- package/dist/{types-BBp2sp_s.js → types-CzqDZ83C.js} +1 -1
- package/dist/{use-hover-mptQLQ4S.js → use-hover-CkmV6eu9.js} +10368 -10193
- package/dist/{use-hover-DsnmY-p_.cjs → use-hover-D_mBUhp9.cjs} +114 -114
- package/dist/utils-DM5vp1gw.cjs +179 -0
- package/dist/{utils-DTUC-wtI.js → utils-Db3U6oHa.js} +8810 -8670
- package/dist/{widget-composer-D0BZrLna.js → widget-composer-BiGVKN49.js} +108 -108
- package/dist/{widget-composer-CDb2iOoS.cjs → widget-composer-CZ0_bPXK.cjs} +7 -7
- package/package.json +9 -8
- package/dist/apply-styled-options-to-query-mFJvsssw.cjs +0 -1
- package/dist/packages/sdk-ui/src/domains/drilldown/hooks/use-synced-drilldown-paths-manager.d.ts +0 -113
- package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/index.d.ts +0 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/table-widget.d.ts +0 -22
- package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/types.d.ts +0 -61
- package/dist/parse-compose-code-DfZskSng.js +0 -352
- package/dist/parse-compose-code-v4J9BrUg.cjs +0 -1
- package/dist/utils-BlNqPAG8.cjs +0 -190
package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-model.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export interface GetDashboardModelOptions {
|
|
|
41
41
|
* @param appSettings - Optional application settings
|
|
42
42
|
* @returns The dashboard model
|
|
43
43
|
*
|
|
44
|
-
* @internal
|
|
44
|
+
* @internal
|
|
45
|
+
* @sisenseInternal
|
|
45
46
|
*/
|
|
46
47
|
export declare function getDashboardModel(http: HttpClient, dashboardOid: string, options?: GetDashboardModelOptions, themeSettings?: CompleteThemeSettings, appSettings?: AppSettings): Promise<DashboardModel>;
|
package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-models.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
|
+
import { AppSettings } from '../../../infra/app/settings/settings';
|
|
3
|
+
import { CompleteThemeSettings } from '../../../types';
|
|
2
4
|
export interface GetDashboardModelsOptions {
|
|
3
5
|
/**
|
|
4
6
|
* Dashboard title to search by
|
|
@@ -12,4 +14,4 @@ export interface GetDashboardModelsOptions {
|
|
|
12
14
|
includeWidgets?: boolean;
|
|
13
15
|
}
|
|
14
16
|
/** @internal */
|
|
15
|
-
export declare function getDashboardModels(http: HttpClient, options?: GetDashboardModelsOptions): Promise<import('../../../domains/dashboarding/dashboard-model').DashboardModel[]>;
|
|
17
|
+
export declare function getDashboardModels(http: HttpClient, options?: GetDashboardModelsOptions, themeSettings?: CompleteThemeSettings, appSettings?: AppSettings): Promise<import('../../../domains/dashboarding/dashboard-model').DashboardModel[]>;
|
package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts
CHANGED
|
@@ -1,24 +1,36 @@
|
|
|
1
1
|
import { Dimension, Filter, FilterRelations, FilterRelationsModel, FilterRelationsModelNode, Measure } from '@sisense/sdk-data';
|
|
2
|
-
import { JtdTarget, TriggerMethod } from '../../../domains/dashboarding/hooks/jtd/jtd-types';
|
|
2
|
+
import { JtdTarget, JumpToDashboardConfig, JumpToDashboardConfigForPivot, TriggerMethod } from '../../../domains/dashboarding/hooks/jtd/jtd-types';
|
|
3
3
|
import { TabbersConfig } from '../../../domains/dashboarding/hooks/use-tabber';
|
|
4
4
|
import { Panel, WidgetDto } from '../../../domains/widgets/components/widget-by-id/types';
|
|
5
5
|
import { RestApi } from '../../../infra/api/rest-api';
|
|
6
6
|
import { type CascadingFilterDto, DashboardDto, type FilterDto, type LayoutDto } from '../../../infra/api/types/dashboard-dto';
|
|
7
7
|
import type { SpecificWidgetOptions, WidgetsOptions, WidgetsPanelColumnLayout } from './types';
|
|
8
|
+
type WidgetJtdDtoSlice = Pick<WidgetDto, 'oid' | 'type' | 'metadata' | 'drillToDashboardConfig'>;
|
|
8
9
|
export declare const translateLayout: (layout: LayoutDto) => WidgetsPanelColumnLayout;
|
|
9
10
|
export declare function extractDashboardFilters(dashboardFilters: Array<FilterDto | CascadingFilterDto>, filterRelationsModel?: FilterRelationsModel | FilterRelationsModelNode): Filter[] | FilterRelations;
|
|
10
|
-
export declare const getJtdNavigateType: (widget:
|
|
11
|
-
export declare const convertDimensionsToDimIndexes: (widget:
|
|
11
|
+
export declare const getJtdNavigateType: (widget: WidgetJtdDtoSlice) => TriggerMethod;
|
|
12
|
+
export declare const convertDimensionsToDimIndexes: (widget: WidgetJtdDtoSlice, dimensionIds: string[]) => string[];
|
|
12
13
|
/**
|
|
13
14
|
* Extract pivot targets configuration from widget DTO and build Map-based targets
|
|
15
|
+
*
|
|
14
16
|
* @param widget - Widget DTO with drillToDashboardConfig
|
|
15
17
|
* @returns Map of dimensions/measures to their targets or undefined if no targets found
|
|
16
18
|
* @internal
|
|
17
19
|
*/
|
|
18
|
-
export declare function extractPivotTargetsConfigFromWidgetDto(widget:
|
|
20
|
+
export declare function extractPivotTargetsConfigFromWidgetDto(widget: WidgetJtdDtoSlice): Map<Dimension | {
|
|
19
21
|
dimension: Dimension;
|
|
20
22
|
location: 'row' | 'column' | 'value';
|
|
21
23
|
} | Measure, JtdTarget[]> | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Converts a Fusion {@link WidgetDto}'s `drillToDashboardConfig` into Compose SDK JumpToDashboardConfig | JumpToDashboardConfigForPivot
|
|
26
|
+
* {@link JumpToDashboardConfig} {@link JumpToDashboardConfigForPivot} for use with {@link useJtdWidget}
|
|
27
|
+
*
|
|
28
|
+
* @param widget - Fusion widget DTO (or the subset of fields used for JTD translation)
|
|
29
|
+
* @returns JTD config, or `undefined` when there is no versioned JTD DTO or the widget type does not support JTD
|
|
30
|
+
*
|
|
31
|
+
* @group Dashboards
|
|
32
|
+
*/
|
|
33
|
+
export declare function jumpToDashboardConfigFromWidgetDto(widget: WidgetJtdDtoSlice): JumpToDashboardConfig | JumpToDashboardConfigForPivot | undefined;
|
|
22
34
|
export declare function translateWidgetsOptions(widgets?: WidgetDto[]): WidgetsOptions;
|
|
23
35
|
/**
|
|
24
36
|
* Applies {@link SpecificWidgetOptions} to a {@link WidgetDto}.
|
|
@@ -39,6 +51,7 @@ export declare function translateTabbersOptions(widgets?: WidgetDto[]): TabbersC
|
|
|
39
51
|
export declare function withSharedFormulas(dashboard: DashboardDto, api: RestApi): Promise<DashboardDto>;
|
|
40
52
|
/**
|
|
41
53
|
* Find dimension or measure by instanceId in widget panels and convert to proper type
|
|
54
|
+
*
|
|
42
55
|
* @param panels - Widget metadata panels to search
|
|
43
56
|
* @param pivotDimension - Instance ID to find, this is not a PivotDimId, it is the instanceId of the dimension or measure
|
|
44
57
|
* @returns Dimension/Measure object with optional location info or undefined if not found
|
|
@@ -48,3 +61,4 @@ export declare function findDimensionByInstanceId(panels: Panel[], pivotDimensio
|
|
|
48
61
|
dimension: Dimension;
|
|
49
62
|
location: 'row' | 'column' | 'value';
|
|
50
63
|
} | undefined;
|
|
64
|
+
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { CommonFiltersOptions } from '../../../domains/dashboarding/common-filters/types';
|
|
2
2
|
import type { JumpToDashboardConfig, JumpToDashboardConfigForPivot } from '../../../domains/dashboarding/hooks/jtd/jtd-types';
|
|
3
|
+
import type { UnsupportedStyleOptions } from '../../../domains/widgets/components/widget-by-id/translate-widget-style-options/extract-unsupported-style-options.js';
|
|
4
|
+
import type { WidgetDto } from '../../../domains/widgets/components/widget-by-id/types';
|
|
3
5
|
import { ColorPaletteTheme } from '../../../types';
|
|
4
6
|
export type { CommonFiltersOptions, CommonFiltersApplyMode, FiltersIgnoringRules, } from '../../../domains/dashboarding/common-filters/types';
|
|
5
7
|
/**
|
|
@@ -8,6 +10,7 @@ export type { CommonFiltersOptions, CommonFiltersApplyMode, FiltersIgnoringRules
|
|
|
8
10
|
export interface WidgetsPanelCell {
|
|
9
11
|
/**
|
|
10
12
|
* Flag that indicates if the cell is hidden
|
|
13
|
+
*
|
|
11
14
|
* @internal
|
|
12
15
|
*/
|
|
13
16
|
hidden?: boolean;
|
|
@@ -66,6 +69,7 @@ export type WidgetsPanelLayout = WidgetsPanelColumnLayout;
|
|
|
66
69
|
export type WidgetId = string;
|
|
67
70
|
/**
|
|
68
71
|
* Dashboard ID
|
|
72
|
+
*
|
|
69
73
|
* @internal
|
|
70
74
|
*/
|
|
71
75
|
export type DashboardId = string;
|
|
@@ -87,6 +91,21 @@ export type SpecificWidgetOptions = {
|
|
|
87
91
|
* Jump To Dashboard config for widgets.
|
|
88
92
|
*/
|
|
89
93
|
jtdConfig?: JumpToDashboardConfig | JumpToDashboardConfigForPivot;
|
|
94
|
+
/**
|
|
95
|
+
* Partial snapshot of raw DTO fields preserved from the server response.
|
|
96
|
+
* Required to include all existing options/style when PATCHing a single field (e.g. previousScrollerLocation),
|
|
97
|
+
* because the server replaces the entire object rather than merging.
|
|
98
|
+
*
|
|
99
|
+
* `style` carries only the unsupported style fields not yet first-class translated by the
|
|
100
|
+
* CSDK widget model (extracted via `extractUnsupportedStyleOptions`); they are re-attached
|
|
101
|
+
* to the DTO during serialization with lower priority than rebuilt translation output.
|
|
102
|
+
*
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
partialDtoOptions?: {
|
|
106
|
+
options?: WidgetDto['options'];
|
|
107
|
+
style?: UnsupportedStyleOptions;
|
|
108
|
+
};
|
|
90
109
|
};
|
|
91
110
|
/**
|
|
92
111
|
* Style options for the dashboard.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DataSource } from '@sisense/sdk-data';
|
|
1
2
|
import { RestApi } from '../../../../../infra/api/rest-api';
|
|
2
3
|
import { AppSettings } from '../../../../../infra/app/settings/settings';
|
|
3
4
|
import { CompleteThemeSettings } from '../../../../../types';
|
|
@@ -15,6 +16,12 @@ export type PersistDashboardModelMiddlewareParams = {
|
|
|
15
16
|
appSettings: AppSettings;
|
|
16
17
|
/** Theme settings forwarded to {@link toWidgetDto} (used as defaults for widget design) */
|
|
17
18
|
themeSettings: CompleteThemeSettings;
|
|
19
|
+
/**
|
|
20
|
+
* Dashboard-level data source. Used as a fallback data source for widgets
|
|
21
|
+
* whose model does not carry one (e.g. text widgets), so the produced DTO
|
|
22
|
+
* still satisfies the server's datasource schema.
|
|
23
|
+
*/
|
|
24
|
+
dashboardDataSource?: DataSource;
|
|
18
25
|
};
|
|
19
26
|
/**
|
|
20
27
|
* Middleware that persists the dashboard model changes to the Sisense server.
|
|
@@ -22,4 +29,4 @@ export type PersistDashboardModelMiddlewareParams = {
|
|
|
22
29
|
* @returns Promise resolving to the action (possibly transformed, e.g. for ADD_WIDGET)
|
|
23
30
|
* @internal
|
|
24
31
|
*/
|
|
25
|
-
export declare function persistDashboardModelMiddleware({ dashboardOid, action, restApi, sharedMode, appSettings, themeSettings, }: PersistDashboardModelMiddlewareParams): Promise<UseDashboardModelInternalAction>;
|
|
32
|
+
export declare function persistDashboardModelMiddleware({ dashboardOid, action, restApi, sharedMode, appSettings, themeSettings, dashboardDataSource, }: PersistDashboardModelMiddlewareParams): Promise<UseDashboardModelInternalAction>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Filter, FilterRelations } from '@sisense/sdk-data';
|
|
2
2
|
import { DashboardModel, SpecificWidgetOptions, WidgetsPanelLayout } from '../../../../../domains/dashboarding/dashboard-model';
|
|
3
|
+
import type { WidgetDto } from '../../../../../domains/widgets/components/widget-by-id/types';
|
|
3
4
|
import { WidgetModel } from '../../../../../domains/widgets/widget-model';
|
|
4
5
|
export type UseDashboardModelState = DashboardModel | null;
|
|
5
6
|
/**
|
|
@@ -34,6 +35,17 @@ export type WidgetPatch = {
|
|
|
34
35
|
* The title of the widget.
|
|
35
36
|
*/
|
|
36
37
|
title?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Full widget options to send in the PATCH request.
|
|
40
|
+
* Must include all existing option fields alongside the changed ones, because
|
|
41
|
+
* the server replaces the entire options object rather than merging.
|
|
42
|
+
*/
|
|
43
|
+
options?: Partial<NonNullable<WidgetDto['options']>> & {
|
|
44
|
+
previousScrollerLocation: {
|
|
45
|
+
min: number;
|
|
46
|
+
max: number;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
37
49
|
};
|
|
38
50
|
/**
|
|
39
51
|
* Internal actions for the dashboard model state used in {@link useDashboardModel}.
|
|
@@ -5,8 +5,11 @@ import { AddWidgetPayload } from './types.js';
|
|
|
5
5
|
/**
|
|
6
6
|
* Translates filters and relations to DTOs.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* `filterRelations[].datasource` is always a **string** (never `undefined`), so Fusion validation
|
|
9
|
+
* does not break. The value is derived from `filter.dataSource` / `filter.attribute.dataSource`
|
|
10
|
+
* when present; otherwise `''`.
|
|
11
|
+
*
|
|
12
|
+
* @param filtersOrFilterRelations - Flat filters or a filter-relations tree
|
|
10
13
|
*
|
|
11
14
|
* @sisenseInternal
|
|
12
15
|
*/
|
package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-scroll-persistence.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { WidgetsOptions } from '../../../domains/dashboarding/dashboard-model';
|
|
2
|
+
import type { DashboardPersistenceManager } from '../../../domains/dashboarding/persistence/types';
|
|
3
|
+
type ScrollerChangeHandler = (min: number, max: number) => void;
|
|
4
|
+
/**
|
|
5
|
+
* Returns a stable per-widget factory of debounced scroller-position savers.
|
|
6
|
+
* Each call with the same widgetOid reuses the same debounced function.
|
|
7
|
+
* All pending debouncers are cancelled on unmount.
|
|
8
|
+
*
|
|
9
|
+
* @param persistence - The dashboard persistence manager. When `undefined`, the returned factory is a no-op.
|
|
10
|
+
* @param widgetsOptions - Current widget DTO options map, used to include all existing options in the PATCH
|
|
11
|
+
* so the server does not discard other option fields when updating `previousScrollerLocation`.
|
|
12
|
+
* @returns Function that maps a widget OID to its debounced save handler.
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare function useWidgetScrollPersistence(persistence: DashboardPersistenceManager | undefined, widgetsOptions?: WidgetsOptions): (widgetOid: string) => ScrollerChangeHandler;
|
|
16
|
+
export {};
|
|
@@ -10,14 +10,15 @@ export type UseComposedDashboardOptions = {
|
|
|
10
10
|
onFiltersChange?: (filters: Filter[] | FilterRelations) => void;
|
|
11
11
|
/**
|
|
12
12
|
* Persistence manager for the dashboard
|
|
13
|
+
*
|
|
13
14
|
* @sisenseInternal
|
|
14
15
|
*/
|
|
15
16
|
persistence?: DashboardPersistenceManager;
|
|
16
17
|
/**
|
|
17
18
|
* Runtime edit mode state. When provided (e.g. by Dashboard), used for duplicate-widget visibility
|
|
18
19
|
* instead of only config.widgetsPanel.editMode.isEditing.
|
|
19
|
-
* @internal
|
|
20
20
|
*
|
|
21
|
+
* @internal
|
|
21
22
|
* @deprecated Temporal workaround. Edit mode (with history management) should be managed by the `useComposedDashboard` hook instead of the Dashboard component.
|
|
22
23
|
*/
|
|
23
24
|
isEditing?: boolean;
|
|
@@ -78,11 +79,9 @@ export declare function useComposedDashboardInternal<D extends ComposableDashboa
|
|
|
78
79
|
* }
|
|
79
80
|
* export default CodeExample;
|
|
80
81
|
* ```
|
|
81
|
-
*
|
|
82
82
|
* @template {D extends ComposableDashboardProps | DashboardProps} D - The type parameter for a dashboard properties, restricted to ComposableDashboardProps or DashboardProps
|
|
83
83
|
* @param {D} initialDashboard - set of properties for the Dashboard component
|
|
84
84
|
* @param {UseComposedDashboardOptions} [options] - Options for the composable.
|
|
85
|
-
*
|
|
86
85
|
* @return {ComposedDashboardResult} An object containing the composed dashboard and APIs to interact with it.
|
|
87
86
|
* @group Dashboards
|
|
88
87
|
*/
|
|
@@ -69,10 +69,20 @@ export interface GetDataSourceDimensionsParams {
|
|
|
69
69
|
/** The search value to filter by */
|
|
70
70
|
searchValue?: string;
|
|
71
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* {@link useGetDataSourceDimensions} without tracking to be used inside other hooks or components.
|
|
74
|
+
*
|
|
75
|
+
* @param params - The parameters for getting the dimensions
|
|
76
|
+
* @returns The dimensions state
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
export declare function useGetDataSourceDimensionsInternal(params: GetDataSourceDimensionsParams): DataSourceDimensionsState;
|
|
72
80
|
/**
|
|
73
81
|
* Gets the dimensions of a data source.
|
|
74
82
|
*
|
|
75
83
|
* @param params - The parameters for getting the dimensions
|
|
76
84
|
* @returns The dimensions state
|
|
85
|
+
* @group Fusion Assets
|
|
86
|
+
* @fusionEmbed
|
|
77
87
|
*/
|
|
78
88
|
export declare const useGetDataSourceDimensions: (params: GetDataSourceDimensionsParams) => DataSourceDimensionsState;
|
|
@@ -9,6 +9,7 @@ import { RestApiHookState } from '../../../../shared/utils/utility-types';
|
|
|
9
9
|
* @param params.count - The number of items to return
|
|
10
10
|
* @param params.offset - The offset for pagination
|
|
11
11
|
* @param params.searchValue - The search value to filter by
|
|
12
|
+
* @param params.cacheTime - The cache time in milliseconds
|
|
12
13
|
* @returns The data source fields state
|
|
13
14
|
* @internal
|
|
14
15
|
*/
|
|
@@ -18,6 +19,7 @@ export declare const useGetDataSourceFields: (params: {
|
|
|
18
19
|
count?: number;
|
|
19
20
|
offset?: number;
|
|
20
21
|
searchValue?: string;
|
|
22
|
+
cacheTime?: number;
|
|
21
23
|
}) => DataSourceFieldsState;
|
|
22
24
|
type DataSourceFieldsState = RestApiHookState<'dataSourceFields', DataSourceField[]>;
|
|
23
25
|
export {};
|
package/dist/packages/sdk-ui/src/domains/drilldown/components/drilldown-widget/drilldown-widget.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ import { DrilldownWidgetProps } from '../../../../props';
|
|
|
22
22
|
*
|
|
23
23
|
* <iframe
|
|
24
24
|
* src='https://csdk-playground.sisense.com/?example=use-cases%2Fdrilldown&mode=docs'
|
|
25
|
-
* width=800
|
|
26
|
-
* height=870
|
|
25
|
+
* width='800'
|
|
26
|
+
* height='870'
|
|
27
27
|
* style='border:none;'
|
|
28
28
|
* />
|
|
29
29
|
*
|
|
@@ -23,5 +23,5 @@ export declare const useDrilldown: ({ initialDimension, initialDrilldownSelectio
|
|
|
23
23
|
/** @internal */
|
|
24
24
|
export declare function getSelectionTitleMenuItem(points: DataPoint[], drilldownDimension: Attribute): MenuItemSection;
|
|
25
25
|
/** @internal */
|
|
26
|
-
export declare function getDrilldownMenuItems(availableDrilldownPaths: (Attribute | Hierarchy)[], drilldownDimension: Attribute, selectFn: (nextDimension: Attribute, hierarchy?: Hierarchy) => void, translate: TFunction): MenuItemSection;
|
|
26
|
+
export declare function getDrilldownMenuItems(availableDrilldownPaths: (Attribute | Hierarchy)[], drilldownDimension: Attribute, selectFn: (nextDimension: Attribute, hierarchy?: Hierarchy) => void, translate: TFunction): MenuItemSection | null;
|
|
27
27
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Attribute, DataSource } from '@sisense/sdk-data';
|
|
2
|
+
import { Hierarchy, HierarchyId } from '../hierarchy-model';
|
|
3
|
+
export interface GetHierarchiesParams {
|
|
4
|
+
/** The attribute/dimension for which to load hierarchies */
|
|
5
|
+
attribute: Attribute;
|
|
6
|
+
/** The data source from which to retrieve hierarchies */
|
|
7
|
+
dataSource?: DataSource;
|
|
8
|
+
/** The hierarchy IDs to load */
|
|
9
|
+
ids: HierarchyId[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Provides a `getHierarchies` function that loads hierarchy models from a Fusion instance by ID,
|
|
13
|
+
* including any hierarchies marked as `alwaysIncluded`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useHierarchiesLoader(): {
|
|
16
|
+
getHierarchies: (params: GetHierarchiesParams) => Promise<Hierarchy[]>;
|
|
17
|
+
};
|
|
@@ -5,7 +5,7 @@ import type { FilterTileConfig } from '../filter-tile/types.js';
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for {@link CascadingFilterTile}
|
|
7
7
|
*
|
|
8
|
-
* @
|
|
8
|
+
* @alpha
|
|
9
9
|
*/
|
|
10
10
|
export interface CascadingFilterTileProps {
|
|
11
11
|
/** Cascading filter object to initialize filter type and default values */
|
|
@@ -43,6 +43,6 @@ export interface CascadingFilterTileProps {
|
|
|
43
43
|
* @param props - Cascading filter tile props
|
|
44
44
|
* @returns Cascading filter tile component
|
|
45
45
|
* @group Filter Tiles
|
|
46
|
-
* @
|
|
46
|
+
* @alpha
|
|
47
47
|
*/
|
|
48
48
|
export declare const CascadingFilterTile: import("react").FunctionComponent<CascadingFilterTileProps>;
|
|
@@ -5,7 +5,7 @@ import { FilterTileDesignOptions } from './filter-tile-container';
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for {@link CustomFilterTile}
|
|
7
7
|
*
|
|
8
|
-
* @
|
|
8
|
+
* @alpha
|
|
9
9
|
*/
|
|
10
10
|
export interface CustomFilterTileProps {
|
|
11
11
|
/** Custom filter. */
|
|
@@ -38,7 +38,6 @@ export interface CustomFilterTileProps {
|
|
|
38
38
|
/**
|
|
39
39
|
* UI component for a custom filter defined with JAQL.
|
|
40
40
|
*
|
|
41
|
-
* @internal
|
|
42
41
|
* @example
|
|
43
42
|
* ```tsx
|
|
44
43
|
* const filterJaql = { from: 10, to: 20000 };
|
|
@@ -59,5 +58,6 @@ export interface CustomFilterTileProps {
|
|
|
59
58
|
* @param props - Custom filter tile props
|
|
60
59
|
* @returns Custom filter tile component
|
|
61
60
|
* @group Filter Tiles
|
|
61
|
+
* @alpha
|
|
62
62
|
*/
|
|
63
63
|
export declare const CustomFilterTile: import("react").FunctionComponent<CustomFilterTileProps>;
|
|
@@ -10,9 +10,17 @@ export interface WidgetNarrativeOptions {
|
|
|
10
10
|
defaultDataSource?: DataSource;
|
|
11
11
|
/** The verbosity of the NLG summarization */
|
|
12
12
|
verbosity?: 'Low' | 'High';
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
/**
|
|
14
|
+
* When `true`, attempts the unified AI narrative endpoint and falls back to the legacy endpoint
|
|
15
|
+
* on 404. When `false` or omitted, only the legacy endpoint is used.
|
|
16
|
+
*
|
|
17
|
+
* **Hook-based flows** (e.g. {@link useGetWidgetNarrative}): when omitted, the value is read
|
|
18
|
+
* from `app.settings.narrative.canGenerateNarrativeViaAI` via {@link useSisenseContext}.
|
|
19
|
+
*
|
|
20
|
+
* **Imperative helpers** (e.g. {@link getNlgInsightsFromWidget}): no context fallback is
|
|
21
|
+
* performed — omitting this option is equivalent to `false` (legacy endpoint only).
|
|
22
|
+
*/
|
|
23
|
+
canGenerateNarrativeViaAI?: boolean;
|
|
16
24
|
/**
|
|
17
25
|
* When `true`, trend and forecast companion measures are omitted from the narrative JAQL so
|
|
18
26
|
* requests stay compatible with backends that do not yet support them.
|
package/dist/packages/sdk-ui/src/domains/narrative/core/widget-props-to-narrative-params.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataSource } from '@sisense/sdk-data';
|
|
2
2
|
import { ChartWidgetProps } from '../../../domains/widgets/components/chart-widget/types';
|
|
3
3
|
import type { PivotTableWidgetProps } from '../../../domains/widgets/components/pivot-table-widget/types';
|
|
4
|
-
import type { WithCommonWidgetProps } from '../../../domains/widgets/components/widget/types';
|
|
4
|
+
import type { WidgetProps, WithCommonWidgetProps } from '../../../domains/widgets/components/widget/types';
|
|
5
5
|
import type { NarrativeRequest } from '../../../infra/api/narrative/narrative-api-types.js';
|
|
6
6
|
import type { NarrativeQueryParams } from './build-narrative-request.js';
|
|
7
7
|
/**
|
|
@@ -34,3 +34,53 @@ export declare function convertPivotWidgetPropsToNarrativeRequest(props: WithCom
|
|
|
34
34
|
* @deprecated Use {@link convertChartWidgetPropsToNarrativeParams}. Same function; kept for legacy `getNlgInsightsFromWidget`.
|
|
35
35
|
*/
|
|
36
36
|
export declare const convertChartWidgetPropsToUseGetNlgInsightsParams: typeof convertChartWidgetPropsToNarrativeParams;
|
|
37
|
+
/**
|
|
38
|
+
* Error message for imperative callers (e.g. {@link getNlgInsightsFromWidget}) when chart or pivot
|
|
39
|
+
* props omit `dataSource` and no `defaultDataSource` is passed.
|
|
40
|
+
*
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
export declare const MISSING_DATASOURCE_NLG_ERROR = "dataSource is required. Provide it on the widget props or as defaultDataSource parameter.";
|
|
44
|
+
export type WidgetNarrativeRequestPair = {
|
|
45
|
+
supported: boolean;
|
|
46
|
+
narrativeRequest: NarrativeRequest | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Same request with trend/forecast stripped. `undefined` when `ignoreTrendAndForecast` is
|
|
49
|
+
* already `true` (primary already stripped), when the widget type is unsupported, or when
|
|
50
|
+
* the fallback conversion itself fails.
|
|
51
|
+
*/
|
|
52
|
+
narrativeFallbackRequest: NarrativeRequest | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* When `supported` is `false`, `true` means chart/pivot had no resolved data source (props and
|
|
55
|
+
* `defaultDataSource` were both unset); conversion was skipped.
|
|
56
|
+
*/
|
|
57
|
+
missingDataSource?: boolean;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Builds a primary narrative request and, when useful, a fallback request with trend/forecast
|
|
61
|
+
* stripped — both from the same widget props in a single call.
|
|
62
|
+
*
|
|
63
|
+
* @param props - Chart or pivot widget props
|
|
64
|
+
* @param defaultDataSource - Used when `props.dataSource` is undefined
|
|
65
|
+
* @param verbosity - Optional verbosity for narrative text
|
|
66
|
+
* @param ignoreTrendAndForecast - When `true`, the primary request already omits trend/forecast
|
|
67
|
+
* and no fallback is needed
|
|
68
|
+
* @returns `{ supported, narrativeRequest, narrativeFallbackRequest }`. `supported` is `false`
|
|
69
|
+
* when the widget type is unsupported, when no data source can be resolved for chart/pivot, or
|
|
70
|
+
* when the primary conversion fails.
|
|
71
|
+
* @example Chart or pivot widget props
|
|
72
|
+
* ```ts
|
|
73
|
+
* const { supported, narrativeRequest, narrativeFallbackRequest } =
|
|
74
|
+
* buildWidgetNarrativeRequests(
|
|
75
|
+
* widgetProps, // `WithCommonWidgetProps<ChartWidgetProps, 'chart'>` or pivot equivalent
|
|
76
|
+
* defaultDataSource,
|
|
77
|
+
* 'High',
|
|
78
|
+
* false,
|
|
79
|
+
* );
|
|
80
|
+
* ```
|
|
81
|
+
* On success, `supported` is `true` and `narrativeRequest` / `narrativeFallbackRequest` hold the
|
|
82
|
+
* primary and trend-stripped NLG payloads; otherwise `supported` is `false` and requests are
|
|
83
|
+
* `undefined` (and `missingDataSource` may be set when no source could be resolved).
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
export declare function buildWidgetNarrativeRequests(props: WidgetProps, defaultDataSource?: DataSource, verbosity?: 'Low' | 'High', ignoreTrendAndForecast?: boolean): WidgetNarrativeRequestPair;
|
|
@@ -5,9 +5,9 @@ import { type WidgetNarrativeQueryState } from './use-widget-narrative-state.js'
|
|
|
5
5
|
* Options for {@link useGetWidgetNarrative}.
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* Narration
|
|
9
|
-
*
|
|
10
|
-
* imperative `getNlgInsightsFromWidget` helper for per-call behavior.
|
|
8
|
+
* Narration endpoint selection defaults from `app.settings.narrative.canGenerateNarrativeViaAI`
|
|
9
|
+
* on {@link useSisenseContext} when `canGenerateNarrativeViaAI` is omitted. Optional overrides
|
|
10
|
+
* match the imperative `getNlgInsightsFromWidget` helper for per-call behavior.
|
|
11
11
|
* @sisenseInternal
|
|
12
12
|
*/
|
|
13
13
|
export type UseGetWidgetNarrativeOptions = WidgetNarrativeOptions & {
|
|
@@ -23,7 +23,7 @@ export type UseWidgetNarrativeStateResult = WidgetNarrativeQueryState & {
|
|
|
23
23
|
/**
|
|
24
24
|
* Mirrors the `enabled` param. When `false`, the narrative is opted out: `data` is cleared (no
|
|
25
25
|
* cached fallback), `narrativeRequest` is undefined, and loading/error flags reflect a disabled
|
|
26
|
-
* query rather than
|
|
26
|
+
* query rather than "no insights."
|
|
27
27
|
*/
|
|
28
28
|
enabled: boolean;
|
|
29
29
|
/** Present when `supported` and `enabled`; used by {@link WidgetNarrative} for feedback payload only. */
|
|
@@ -36,4 +36,4 @@ export type UseWidgetNarrativeStateResult = WidgetNarrativeQueryState & {
|
|
|
36
36
|
*
|
|
37
37
|
* @internal
|
|
38
38
|
*/
|
|
39
|
-
export declare function useWidgetNarrativeState({ widgetProps, defaultDataSource, verbosity, enabled, ignoreTrendAndForecast,
|
|
39
|
+
export declare function useWidgetNarrativeState({ widgetProps, defaultDataSource, verbosity, enabled, ignoreTrendAndForecast, canGenerateNarrativeViaAI: optionsCanGenerateNarrativeViaAI, }: UseWidgetNarrativeStateParams): UseWidgetNarrativeStateResult;
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import type { DateFormat } from './apply-date-format.js';
|
|
2
2
|
export declare function newDateFormatWithUnicodeMillisecondsMasks(oldFormat: DateFormat): DateFormat;
|
|
3
3
|
export declare function newDateFormatWithExpandedAMPM(oldFormat: DateFormat, date: Date, timeZone: string): DateFormat;
|
|
4
|
+
/**
|
|
5
|
+
* Escapes Latin letter sequences that are not recognized Fusion date format tokens
|
|
6
|
+
* by wrapping them in single quotes so that `date-fns` treats them as literal text.
|
|
7
|
+
*
|
|
8
|
+
* Handles cases like `WEEK-ww` where `WEEK-` is a literal text prefix, but `W`, `E`,
|
|
9
|
+
* and `K` would otherwise be misinterpreted as `date-fns` format tokens, causing a
|
|
10
|
+
* RangeError.
|
|
11
|
+
*
|
|
12
|
+
* Adjacent non-token sequences (separated only by non-letter characters) are merged
|
|
13
|
+
* into a single quoted region to avoid `''` being interpreted as an escaped single
|
|
14
|
+
* quote by `date-fns`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function newDateFormatWithEscapedNonTokenChars(format: DateFormat): DateFormat;
|
|
4
17
|
export declare function newDateFormatWithExpandedTimezoneOffset(oldFormat: DateFormat, date: Date, timeZone: string, locale: Locale): DateFormat;
|
|
@@ -9,8 +9,8 @@ import { ExecutePivotQueryParams, PivotQueryState } from '../../types';
|
|
|
9
9
|
*
|
|
10
10
|
* <iframe
|
|
11
11
|
* src='https://csdk-playground.sisense.com/?example=queries%2Fuse-execute-pivot-query&mode=docs'
|
|
12
|
-
* width=800
|
|
13
|
-
* height=870
|
|
12
|
+
* width='800'
|
|
13
|
+
* height='870'
|
|
14
14
|
* style='border:none;'
|
|
15
15
|
* />
|
|
16
16
|
*
|
|
@@ -10,8 +10,8 @@ import { ExecuteQueryParams, ExecuteQueryResult } from '../../types';
|
|
|
10
10
|
*
|
|
11
11
|
* <iframe
|
|
12
12
|
* src='https://csdk-playground.sisense.com/?example=queries%2Fuse-execute-query-sorting&mode=docs'
|
|
13
|
-
* width=800
|
|
14
|
-
* height=870
|
|
13
|
+
* width='800'
|
|
14
|
+
* height='870'
|
|
15
15
|
* style='border:none;'
|
|
16
16
|
* />
|
|
17
17
|
*
|
|
@@ -10,8 +10,8 @@ import { AreaChartProps } from '../../../props';
|
|
|
10
10
|
*
|
|
11
11
|
* <iframe
|
|
12
12
|
* src='https://csdk-playground.sisense.com/?example=charts%2Farea-chart&mode=docs'
|
|
13
|
-
* width=800
|
|
14
|
-
* height=870
|
|
13
|
+
* width='800'
|
|
14
|
+
* height='870'
|
|
15
15
|
* style='border:none;'
|
|
16
16
|
* />
|
|
17
17
|
*
|
|
@@ -11,8 +11,8 @@ import { AreamapChartProps } from '../../../props';
|
|
|
11
11
|
*
|
|
12
12
|
* <iframe
|
|
13
13
|
* src='https://csdk-playground.sisense.com/?example=charts%2Fmap-area&mode=docs'
|
|
14
|
-
* width=800
|
|
15
|
-
* height=870
|
|
14
|
+
* width='800'
|
|
15
|
+
* height='870'
|
|
16
16
|
* style='border:none;'
|
|
17
17
|
* />
|
|
18
18
|
*
|
package/dist/packages/sdk-ui/src/domains/visualizations/components/boxplot-chart/boxplot-chart.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ import { BoxplotChartProps } from '../../../../props';
|
|
|
10
10
|
*
|
|
11
11
|
* <iframe
|
|
12
12
|
* src='https://csdk-playground.sisense.com/?example=charts%2Fboxplot-chart&mode=docs'
|
|
13
|
-
* width=800
|
|
14
|
-
* height=870
|
|
13
|
+
* width='800'
|
|
14
|
+
* height='870'
|
|
15
15
|
* style='border:none;'
|
|
16
16
|
* />
|
|
17
17
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import leaflet, { type FitBoundsOptions } from 'leaflet';
|
|
2
|
-
import { CompleteThemeSettings } from '../../../../../../../
|
|
2
|
+
import { CompleteThemeSettings } from '../../../../../../../types.js';
|
|
3
3
|
type FitBoundsAnimationOptions = Pick<FitBoundsOptions, 'animate' | 'duration'>;
|
|
4
4
|
export declare function prepareFitBoundsAnimationOptions(themeSettings: CompleteThemeSettings): FitBoundsAnimationOptions;
|
|
5
5
|
export declare function fitMapToBounds(map: leaflet.Map, markers: leaflet.CircleMarker[], options?: FitBoundsOptions): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AreamapChartDataOptionsInternal } from '../../../../../../../domains/visualizations/core/chart-data-options/types.js';
|
|
1
|
+
import { type AreamapChartDataOptionsInternal } from '../../../../../../../domains/visualizations/core/chart-data-options/types.js';
|
|
2
2
|
import { DataTable } from '../../../../../../../domains/visualizations/core/chart-data-processor/table-processor.js';
|
|
3
3
|
import { AreamapData } from '../types.js';
|
|
4
4
|
export declare const getAreamapData: (dataOptions: AreamapChartDataOptionsInternal, dataTable: DataTable) => AreamapData;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { XAxisOrientation } from '../../../../../../../../../domains/visualizations/core/chart-options-processor/cartesian/utils/axis/axis-builders.js';
|
|
2
|
-
import { AxisSettings } from '../../../../../../../../../domains/visualizations/core/chart-options-processor/translations/axis-section.js';
|
|
2
|
+
import { type AxisSettings } from '../../../../../../../../../domains/visualizations/core/chart-options-processor/translations/axis-section.js';
|
|
3
3
|
import { BuildContext } from '../../../types.js';
|
|
4
4
|
import { CartesianChartTypes } from '../../types.js';
|
|
5
5
|
export declare const getCartesianXAxis: (ctx: BuildContext<CartesianChartTypes>, orientation: XAxisOrientation) => AxisSettings[];
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { DataSource } from '@sisense/sdk-data';
|
|
2
|
+
import { type ChartDataOptionsInternal } from '../../../../domains/visualizations/core/chart-data-options/types.js';
|
|
2
3
|
import { ChartData } from '../../../../domains/visualizations/core/chart-data/types';
|
|
3
4
|
import { DesignOptions } from '../../../../domains/visualizations/core/chart-options-processor/translations/types';
|
|
4
|
-
import {
|
|
5
|
+
import { type ChartProps } from '../../../../props.js';
|
|
6
|
+
import { type ChartType } from '../../../../types.js';
|
|
5
7
|
/**
|
|
6
8
|
* Props object to be passed to the chart renderer.
|
|
7
9
|
*
|
|
@@ -12,8 +12,8 @@ import { ColumnChartProps } from '../../../props';
|
|
|
12
12
|
*
|
|
13
13
|
* <iframe
|
|
14
14
|
* src='https://csdk-playground.sisense.com/?example=charts%2Fcolumn-chart&mode=docs'
|
|
15
|
-
* width=800
|
|
16
|
-
* height=870
|
|
15
|
+
* width='800'
|
|
16
|
+
* height='870'
|
|
17
17
|
* style='border:none;'
|
|
18
18
|
* />
|
|
19
19
|
*
|