@sisense/sdk-ui 2.9.0 → 2.11.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 +32 -32
- package/dist/ai.js +426 -419
- package/dist/analytics-composer/node.cjs +3 -1
- package/dist/analytics-composer/node.js +521 -385
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/derive-chart-family-BauaWEEc.cjs +170 -0
- package/dist/derive-chart-family-BhAFg8OE.js +29535 -0
- package/dist/{dimensions-B2jz151s.js → dimensions-Bk74slQe.js} +1 -1
- package/dist/{dimensions-CVJeJ8mi.cjs → dimensions-DCxjxuyH.cjs} +1 -1
- package/dist/{execute-query-agpyzZz6.js → execute-query-CxMSGp-J.js} +292 -269
- package/dist/execute-query-uQ2s1ZNz.cjs +1 -0
- package/dist/index.cjs +25 -26
- package/dist/index.js +12805 -11832
- package/dist/index.umd.js +384 -374
- package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +7 -1
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/common.d.ts +14 -0
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-dimensions.d.ts +2 -2
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-filters.d.ts +5 -5
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-measures.d.ts +3 -3
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +2 -2
- package/dist/packages/sdk-ui/src/calendar-heatmap-chart.d.ts +26 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/calendar-heatmap-chart-builder.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +118 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/data-options.d.ts +56 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +34 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/design-options.d.ts +22 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/highcharts-options-builder.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/chart-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/extras-options.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/legend-options.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/plot-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/calendar-data-generator.d.ts +42 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/series-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/tooltip-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +34 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/calendar-pagination.d.ts +31 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/helpers.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +14 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +16 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-chart-options.d.ts +55 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-navigation.d.ts +33 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/types.d.ts +13 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/calendar-utils.d.ts +33 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/with-calendar-heatmap-data-coloring.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data-options.d.ts +5 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/legend.d.ts +3 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/alerts/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data/index.d.ts +21 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data-options/index.d.ts +32 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/design-options/index.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/funnel-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +22 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +13 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/alerts/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data/index.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data-options/index.d.ts +32 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/design-options/index.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/pie-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/alerts/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data-options/index.d.ts +11 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/design-options/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/sunburst-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/alerts/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data-options/index.d.ts +11 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/design-options/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/treemap-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/highcharts-based-chart-renderer.d.ts +2 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/use-extra-config.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +12 -10
- package/dist/packages/sdk-ui/src/chart-data/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-data-options/translate-data-options.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +19 -2
- package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-categorical-data-options.d.ts +14 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +23 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/{category-chart-options.d.ts → category-chart-options/category-chart-options.d.ts} +9 -5
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/funnel-chart-options.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/pie-chart-options.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/treemap-chart-options.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +29 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/scatter-chart-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/series-labels.d.ts +19 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +1 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +6 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-plot-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +43 -7
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-series.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/legend-section.d.ts +28 -14
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-plot-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-series.d.ts +34 -6
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-series.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts +78 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +10 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +50 -6
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +14 -11
- package/dist/packages/sdk-ui/src/common/components/modal/modal-context.d.ts +1 -2
- package/dist/packages/sdk-ui/src/common/formatters/create-date-formatter.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/hooks/useDateFormatter.d.ts +7 -0
- package/dist/packages/sdk-ui/src/common/icons/double-arrow-end-icon.d.ts +6 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +0 -19
- package/dist/packages/sdk-ui/src/dashboard/components/jtd-dashboard.d.ts +5 -4
- package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +109 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/index.d.ts +20 -5
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-config-transformers.d.ts +85 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-filters.d.ts +15 -3
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-formatters.d.ts +80 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-handlers.d.ts +26 -4
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-menu.d.ts +1 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-types.d.ts +260 -5
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-widget-transforms.d.ts +29 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +7 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-edit-mode-toolbar.d.ts +3 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd-widget.d.ts +68 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd.d.ts +33 -7
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +13 -0
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +1 -3
- package/dist/packages/sdk-ui/src/index.d.ts +10 -1
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +26 -2
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +8 -4
- package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +2 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/types.d.ts +0 -1
- package/dist/packages/sdk-ui/src/polar-chart.d.ts +1 -1
- package/dist/packages/sdk-ui/src/props.d.ts +66 -7
- package/dist/packages/sdk-ui/src/sisense-chart/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +1 -0
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +11 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +22 -0
- package/dist/packages/sdk-ui/src/types.d.ts +444 -32
- package/dist/packages/sdk-ui/src/utils/combine-handlers.d.ts +19 -0
- package/dist/packages/sdk-ui/src/utils/create-level-attribute.d.ts +11 -0
- package/dist/packages/sdk-ui/src/utils/utility-types/transformer.d.ts +8 -0
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +45 -74
- package/dist/{types-QUSMO7gF.cjs → types-DhvOgfXa.cjs} +1 -1
- package/dist/{types-BYUVZb6u.js → types-Dxieyr4A.js} +1 -1
- package/dist/use-common-filters-DJyYvdev.js +91688 -0
- package/dist/use-common-filters-Qj9249s0.cjs +845 -0
- package/dist/{widget-composer-BG4HonVl.js → widget-composer-azihIMsw.js} +3 -3
- package/dist/{widget-composer-CGp5yOny.cjs → widget-composer-omIEhWNL.cjs} +1 -1
- package/package.json +13 -18
- package/dist/derive-chart-family-BLG1sO1D.js +0 -86946
- package/dist/derive-chart-family-QPmz5DJ3.cjs +0 -656
- package/dist/execute-query-Cp3se7Yb.cjs +0 -1
- package/dist/packages/sdk-ui/src/utils/__development-utils__/highcharts-options-builder-collector.d.ts +0 -61
- package/dist/packages/sdk-ui/src/utils/__development-utils__/input-output-collector.d.ts +0 -125
- package/dist/use-common-filters-DmdADAhl.cjs +0 -350
- package/dist/use-common-filters-wo5IRF5u.js +0 -31972
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Filter, Data, FilterRelations } from '@sisense/sdk-data';
|
|
2
2
|
import type { NlqResponseData } from '../../ai';
|
|
3
|
+
import { ChartWidgetProps } from '../../props';
|
|
3
4
|
import { NlqChartWidgetStyleOptions } from '../../types';
|
|
4
5
|
/**
|
|
5
6
|
* Props for {@link NlqChartWidget} component.
|
|
@@ -29,6 +30,11 @@ export interface NlqChartWidgetProps {
|
|
|
29
30
|
* @default true
|
|
30
31
|
*/
|
|
31
32
|
styleOptions?: NlqChartWidgetStyleOptions;
|
|
33
|
+
/**
|
|
34
|
+
* Widget props if we have them in full, to ensure NlqChartWidget will be rendered
|
|
35
|
+
* the same way as ChartWidget
|
|
36
|
+
*/
|
|
37
|
+
widgetProps?: ChartWidgetProps;
|
|
32
38
|
}
|
|
33
39
|
/**
|
|
34
40
|
* React component that renders a chart widget based on NLQ response data.
|
|
@@ -52,4 +58,4 @@ export interface NlqChartWidgetProps {
|
|
|
52
58
|
* @group Generative AI
|
|
53
59
|
* @internal
|
|
54
60
|
*/
|
|
55
|
-
export declare const NlqChartWidget: ({ nlqResponse, onDataReady, styleOptions, filters, }: NlqChartWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export declare const NlqChartWidget: ({ nlqResponse, onDataReady, styleOptions, widgetProps, filters, }: NlqChartWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,6 +13,20 @@ export declare function isMeasureElement(arg: QueryElement): arg is Measure;
|
|
|
13
13
|
export declare function getFactoryFunctionsMap(factoryName: string, factoryObject: Record<string, any>): Record<string, (...args: any[]) => any>;
|
|
14
14
|
export declare const measureFactoryFunctionsMap: Record<string, (...args: any[]) => any>;
|
|
15
15
|
export declare const filterFactoryFunctionsMap: Record<string, (...args: any[]) => any>;
|
|
16
|
+
/**
|
|
17
|
+
* Validates if a string is likely an attribute based on the actual table schema.
|
|
18
|
+
*
|
|
19
|
+
* @param str - The string to check
|
|
20
|
+
* @param tables - The normalized tables to check against
|
|
21
|
+
* @returns True if the string matches known table/column combinations
|
|
22
|
+
*/
|
|
23
|
+
export declare function validateLikelyAttribute(str: string, tables: NormalizedTable[]): {
|
|
24
|
+
isLikelyAttribute: true;
|
|
25
|
+
suggestion: string;
|
|
26
|
+
} | {
|
|
27
|
+
isLikelyAttribute: false;
|
|
28
|
+
suggestion?: never;
|
|
29
|
+
};
|
|
16
30
|
export declare function createAttribute(attributeName: string, dataSource: JaqlDataSourceForDto, tables: NormalizedTable[]): import("@sisense/sdk-data").Attribute | import("@sisense/sdk-data").LevelAttribute;
|
|
17
31
|
/**
|
|
18
32
|
* Recursively processes a parsed JSON object to execute filterFactory and measureFactory functions.
|
package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-dimensions.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Attribute, JaqlDataSourceForDto, JSONArray } from '@sisense/sdk-data';
|
|
2
|
-
import { NormalizedTable } from '../types.js';
|
|
3
|
-
export declare const translateDimensionsJSON: (dimensionsJSON: JSONArray, dataSource: JaqlDataSourceForDto, tables: NormalizedTable[]) => Attribute[]
|
|
2
|
+
import { NlqTranslationResult, NormalizedTable } from '../types.js';
|
|
3
|
+
export declare const translateDimensionsJSON: (dimensionsJSON: JSONArray, dataSource: JaqlDataSourceForDto, tables: NormalizedTable[]) => NlqTranslationResult<Attribute[]>;
|
package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-filters.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Filter, FilterRelations, JaqlDataSourceForDto, JSONArray } from '@sisense/sdk-data';
|
|
2
|
-
import { NormalizedTable } from '../types.js';
|
|
2
|
+
import { NlqTranslationResult, NormalizedTable } from '../types.js';
|
|
3
3
|
import { ParsedFunctionCall } from './common.js';
|
|
4
4
|
/**
|
|
5
5
|
* Translate an array of JSON objects to filters
|
|
@@ -38,7 +38,7 @@ import { ParsedFunctionCall } from './common.js';
|
|
|
38
38
|
* @param tables - The tables to use for the filters
|
|
39
39
|
* @returns A Filter[] or FilterRelations object
|
|
40
40
|
*/
|
|
41
|
-
export declare const translateFiltersFromJSONFunctionCall: (filtersJSON: ParsedFunctionCall[], dataSource: JaqlDataSourceForDto, tables: NormalizedTable[]) => Filter[] | FilterRelations
|
|
42
|
-
export declare const translateFiltersJSON: (filtersJSON: JSONArray, dataSource: JaqlDataSourceForDto, tables: NormalizedTable[]) => Filter[] | FilterRelations
|
|
43
|
-
export declare const translateHighlightsFromJSONFunctionCall: (highlightsJSON: ParsedFunctionCall[], dataSource: JaqlDataSourceForDto, tables: NormalizedTable[]) => Filter[]
|
|
44
|
-
export declare const translateHighlightsJSON: (highlightsJSON: JSONArray, dataSource: JaqlDataSourceForDto, tables: NormalizedTable[]) => Filter[]
|
|
41
|
+
export declare const translateFiltersFromJSONFunctionCall: (filtersJSON: ParsedFunctionCall[], dataSource: JaqlDataSourceForDto, tables: NormalizedTable[]) => NlqTranslationResult<Filter[] | FilterRelations>;
|
|
42
|
+
export declare const translateFiltersJSON: (filtersJSON: JSONArray, dataSource: JaqlDataSourceForDto, tables: NormalizedTable[]) => NlqTranslationResult<Filter[] | FilterRelations>;
|
|
43
|
+
export declare const translateHighlightsFromJSONFunctionCall: (highlightsJSON: ParsedFunctionCall[], dataSource: JaqlDataSourceForDto, tables: NormalizedTable[]) => NlqTranslationResult<Filter[]>;
|
|
44
|
+
export declare const translateHighlightsJSON: (highlightsJSON: JSONArray, dataSource: JaqlDataSourceForDto, tables: NormalizedTable[]) => NlqTranslationResult<Filter[]>;
|
package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-measures.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JaqlDataSourceForDto, JSONArray, Measure } from '@sisense/sdk-data';
|
|
2
|
-
import { NormalizedTable } from '../types.js';
|
|
2
|
+
import { NlqTranslationResult, NormalizedTable } from '../types.js';
|
|
3
3
|
import { ParsedFunctionCall } from './common.js';
|
|
4
4
|
/**
|
|
5
5
|
* Translate an array of JSON objects to measures
|
|
@@ -26,5 +26,5 @@ import { ParsedFunctionCall } from './common.js';
|
|
|
26
26
|
* @param tables - The tables to use for the measures
|
|
27
27
|
* @returns A Measure[] object
|
|
28
28
|
*/
|
|
29
|
-
export declare const translateMeasuresFromJSONFunctionCall: (measuresJSON: ParsedFunctionCall[], dataSource: JaqlDataSourceForDto, tables: NormalizedTable[]) => Measure[]
|
|
30
|
-
export declare const translateMeasuresJSON: (measuresJSON: JSONArray, dataSource: JaqlDataSourceForDto, tables: NormalizedTable[]) => Measure[]
|
|
29
|
+
export declare const translateMeasuresFromJSONFunctionCall: (measuresJSON: ParsedFunctionCall[], dataSource: JaqlDataSourceForDto, tables: NormalizedTable[]) => NlqTranslationResult<Measure[]>;
|
|
30
|
+
export declare const translateMeasuresJSON: (measuresJSON: JSONArray, dataSource: JaqlDataSourceForDto, tables: NormalizedTable[]) => NlqTranslationResult<Measure[]>;
|
|
@@ -316,4 +316,16 @@ export type NlqResponseJSON = {
|
|
|
316
316
|
filters: JSONArray;
|
|
317
317
|
highlights?: JSONArray;
|
|
318
318
|
};
|
|
319
|
+
/**
|
|
320
|
+
* Represents the result of a translation operation that can either succeed with data or fail with errors.
|
|
321
|
+
*
|
|
322
|
+
* @internal
|
|
323
|
+
*/
|
|
324
|
+
export type NlqTranslationResult<T> = {
|
|
325
|
+
success: true;
|
|
326
|
+
data: T;
|
|
327
|
+
} | {
|
|
328
|
+
success: false;
|
|
329
|
+
errors: string[];
|
|
330
|
+
};
|
|
319
331
|
export {};
|
|
@@ -110,7 +110,7 @@ export type AppConfig = {
|
|
|
110
110
|
onTrackingEvent?: (payload: TrackingEventDetails) => void;
|
|
111
111
|
};
|
|
112
112
|
/**
|
|
113
|
-
* Configuration of the Jump
|
|
113
|
+
* Configuration of the Jump To Dashboard feature
|
|
114
114
|
*
|
|
115
115
|
* This feature is currently in Beta.
|
|
116
116
|
*
|
|
@@ -138,7 +138,7 @@ export type AppConfig = {
|
|
|
138
138
|
*/
|
|
139
139
|
jumpToDashboardConfig?: {
|
|
140
140
|
/**
|
|
141
|
-
* Whether to enable or disable the
|
|
141
|
+
* Whether to enable or disable the Jump To Dashboard feature
|
|
142
142
|
*
|
|
143
143
|
* If not specified, the default value is `true`
|
|
144
144
|
*/
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CalendarHeatmapChartProps } from './props';
|
|
3
|
+
/**
|
|
4
|
+
* A React component that visualizes values over days in a calendar-like view,
|
|
5
|
+
* making it easy to identify daily patterns or anomalies
|
|
6
|
+
*
|
|
7
|
+
* @param props - Calendar Heatmap chart properties
|
|
8
|
+
* @returns Calendar Heatmap Chart component
|
|
9
|
+
* @group Charts
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <CalendarHeatmapChart
|
|
13
|
+
* dataSet={DM.DataSource}
|
|
14
|
+
* dataOptions={{
|
|
15
|
+
* date: DM.Commerce.Date.Days,
|
|
16
|
+
* value: measureFactory.sum(DM.Commerce.Cost)
|
|
17
|
+
* }}
|
|
18
|
+
* styleOptions={{
|
|
19
|
+
* width: 800,
|
|
20
|
+
* height: 600,
|
|
21
|
+
* viewType: 'quarter'
|
|
22
|
+
* }}
|
|
23
|
+
* />
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare const CalendarHeatmapChart: import("react").FunctionComponent<CalendarHeatmapChartProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ChartBuilder } from '../../../../chart/restructured-charts/types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Calendar heatmap chart builder configuration
|
|
4
|
+
*
|
|
5
|
+
* Provides a complete configuration for building calendar heatmap charts,
|
|
6
|
+
* including data processing, styling, and rendering capabilities.
|
|
7
|
+
*/
|
|
8
|
+
export declare const calendarHeatmapChartBuilder: ChartBuilder<'calendar-heatmap'>;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { ViewType } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Default calendar heatmap chart configuration constants
|
|
4
|
+
*/
|
|
5
|
+
export declare const CALENDAR_HEATMAP_DEFAULTS: {
|
|
6
|
+
/** Default view type */
|
|
7
|
+
readonly VIEW_TYPE: ViewType.MONTH;
|
|
8
|
+
/** Default color for days without data */
|
|
9
|
+
readonly NO_DATA_COLOR: "#f5f5f5";
|
|
10
|
+
/** Default border width for cells */
|
|
11
|
+
readonly BORDER_WIDTH: 0;
|
|
12
|
+
/** Minimum cell size for showing data labels */
|
|
13
|
+
readonly MIN_CELL_SIZE_FOR_LABELS: 20;
|
|
14
|
+
/** Total cells in a full calendar grid (6 rows × 7 days) */
|
|
15
|
+
readonly TOTAL_CALENDAR_CELLS: 42;
|
|
16
|
+
/** Days in a week */
|
|
17
|
+
readonly DAYS_IN_WEEK: 7;
|
|
18
|
+
/** Maximum calendar rows */
|
|
19
|
+
readonly MAX_CALENDAR_ROWS: 6;
|
|
20
|
+
/** Show cell labels (day numbers) by default */
|
|
21
|
+
readonly SHOW_CELL_LABEL: true;
|
|
22
|
+
/** Show day labels (weekday names) by default */
|
|
23
|
+
readonly SHOW_DAY_LABEL: true;
|
|
24
|
+
/** Show month labels by default */
|
|
25
|
+
readonly SHOW_MONTH_LABEL: true;
|
|
26
|
+
/** Minimum сhart size threshold for using short month names */
|
|
27
|
+
readonly SHORT_MONTH_NAME_CHART_SIZE_THRESHOLD: 120;
|
|
28
|
+
/** Minimum сhart size threshold for showing day labels */
|
|
29
|
+
readonly SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD: 120;
|
|
30
|
+
/** Minimum сhart size threshold for showing cell labels */
|
|
31
|
+
readonly SHOW_CELL_LABEL_CHART_SIZE_THRESHOLD: 120;
|
|
32
|
+
/** Default weekend enabled state */
|
|
33
|
+
readonly WEEKEND_ENABLED: false;
|
|
34
|
+
/** Default weekend days */
|
|
35
|
+
readonly WEEKEND_DAYS: readonly ["saturday", "sunday"];
|
|
36
|
+
/** Default weekend cell color */
|
|
37
|
+
readonly WEEKEND_CELL_COLOR: "#e6e6e6";
|
|
38
|
+
/** Default weekend hide values */
|
|
39
|
+
readonly WEEKEND_HIDE_VALUES: true;
|
|
40
|
+
/** Default start of week */
|
|
41
|
+
readonly START_OF_WEEK: "sunday";
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Calendar heatmap color scheme configuration
|
|
45
|
+
*/
|
|
46
|
+
export declare const CALENDAR_HEATMAP_COLORS: {
|
|
47
|
+
/** Default minimum color brightness percent */
|
|
48
|
+
readonly MIN_COLOR_BRIGHTNESS_PERCENT: 0.5;
|
|
49
|
+
/** Default maximum color brightness percent */
|
|
50
|
+
readonly MAX_COLOR_BRIGHTNESS_PERCENT: -0.3;
|
|
51
|
+
/** Default tooltip color brightness percent */
|
|
52
|
+
readonly TOOLTIP_COLOR_BRIGHTNESS_PERCENT: -0.2;
|
|
53
|
+
/** Border color for tooltips */
|
|
54
|
+
readonly TOOLTIP_BORDER_COLOR: "#c0c0c0";
|
|
55
|
+
};
|
|
56
|
+
export declare const CALENDAR_HEATMAP_SIZING: {
|
|
57
|
+
/** Default gap width */
|
|
58
|
+
readonly GAP_WIDTH: 30;
|
|
59
|
+
/** Default gap height */
|
|
60
|
+
readonly GAP_HEIGHT: 10;
|
|
61
|
+
/** Default margins */
|
|
62
|
+
readonly MARGINS: {
|
|
63
|
+
readonly TOP: 20;
|
|
64
|
+
readonly RIGHT: 40;
|
|
65
|
+
readonly BOTTOM: 20;
|
|
66
|
+
readonly LEFT: 40;
|
|
67
|
+
};
|
|
68
|
+
readonly COLUMNS: 7;
|
|
69
|
+
readonly ROWS: 7;
|
|
70
|
+
readonly MIN_CELL_SIZE: 4;
|
|
71
|
+
readonly MAX_CELL_SIZE: 80;
|
|
72
|
+
readonly TITLE_HEIGHT: 20;
|
|
73
|
+
readonly PAGINATION_HEIGHT: 45;
|
|
74
|
+
readonly PAGINATION_BUTTON_SIZE: {
|
|
75
|
+
readonly WIDTH: 30;
|
|
76
|
+
readonly HEIGHT: 30;
|
|
77
|
+
};
|
|
78
|
+
readonly MIN_TOOLTIP_WIDTH: 110;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Font size and spacing calculations
|
|
82
|
+
*/
|
|
83
|
+
export declare const CALENDAR_TYPOGRAPHY: {
|
|
84
|
+
/** Font size ratio relative to cell size for day cell labels */
|
|
85
|
+
readonly FONT_SIZE_RATIO: 0.3;
|
|
86
|
+
/** Minimum font size */
|
|
87
|
+
readonly MIN_FONT_SIZE: 10;
|
|
88
|
+
/** Maximum font size for all labels (except pagination) */
|
|
89
|
+
readonly MAX_FONT_SIZE: 13;
|
|
90
|
+
/** Label position adjustment ratio */
|
|
91
|
+
readonly LABEL_Y_OFFSET_RATIO: 0.08;
|
|
92
|
+
/** Axis label position ratio */
|
|
93
|
+
readonly AXIS_LABEL_Y_RATIO: 0.3;
|
|
94
|
+
/** Axis offset ratio */
|
|
95
|
+
readonly AXIS_OFFSET_RATIO: 0.4;
|
|
96
|
+
/** Minimum axis font size */
|
|
97
|
+
readonly MIN_AXIS_FONT_SIZE: 12;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Calendar heatmap data type
|
|
101
|
+
*/
|
|
102
|
+
export declare const CALENDAR_HEATMAP_DATA_TYPE: "calendar-heatmap";
|
|
103
|
+
/**
|
|
104
|
+
* Full month date format
|
|
105
|
+
*/
|
|
106
|
+
export declare const FULL_MONTH_DATE_FORMAT = "MMMM";
|
|
107
|
+
/**
|
|
108
|
+
* Short month date format (3 letters)
|
|
109
|
+
*/
|
|
110
|
+
export declare const SHORT_MONTH_DATE_FORMAT = "MMM";
|
|
111
|
+
/**
|
|
112
|
+
* Single letter day abbreviation format
|
|
113
|
+
*/
|
|
114
|
+
export declare const SINGLE_LETTER_DAY_DATE_FORMAT = "EEEEE";
|
|
115
|
+
/**
|
|
116
|
+
* Reference Sunday date
|
|
117
|
+
*/
|
|
118
|
+
export declare const REFERENCE_SUNDAY_DATE = "2023-01-01T00:00:00Z";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Attribute, Measure } from '@sisense/sdk-data';
|
|
2
|
+
import { CalendarHeatmapChartDataOptions, CalendarHeatmapChartDataOptionsInternal } from '../../../../../chart-data-options/types';
|
|
3
|
+
import { ChartDataOptions } from '../../../../../types';
|
|
4
|
+
import { ChartDataOptionsInternal } from '../../../../../chart-data-options/types';
|
|
5
|
+
/**
|
|
6
|
+
* Translates calendar heatmap chart data options from user format to internal format
|
|
7
|
+
*
|
|
8
|
+
* Converts user-provided data options to the internal format used by the chart engine,
|
|
9
|
+
* applying default date formatting and normalizing columns.
|
|
10
|
+
* Ensures that the date attribute has 'day' level granularity, which is required
|
|
11
|
+
* for proper calendar heatmap visualization.
|
|
12
|
+
*
|
|
13
|
+
* @param dataOptions - User-provided calendar heatmap chart data options
|
|
14
|
+
* @returns Normalized internal data options
|
|
15
|
+
*/
|
|
16
|
+
export declare function translateCalendarHeatmapChartDataOptions(dataOptions: CalendarHeatmapChartDataOptions): CalendarHeatmapChartDataOptionsInternal;
|
|
17
|
+
/**
|
|
18
|
+
* Extracts attributes from calendar heatmap chart data options
|
|
19
|
+
*
|
|
20
|
+
* Returns an array of attributes that can be used for data queries.
|
|
21
|
+
* For calendar heatmaps, this typically includes the date attribute.
|
|
22
|
+
*
|
|
23
|
+
* @param dataOptions - Internal calendar heatmap chart data options
|
|
24
|
+
* @returns Array of attributes extracted from the data options
|
|
25
|
+
*/
|
|
26
|
+
export declare function getCalendarHeatmapAttributes(dataOptions: CalendarHeatmapChartDataOptionsInternal): Attribute[];
|
|
27
|
+
/**
|
|
28
|
+
* Extracts measures from calendar heatmap chart data options
|
|
29
|
+
*
|
|
30
|
+
* Returns an array of measures that can be used for data queries.
|
|
31
|
+
* For calendar heatmaps, this typically includes the value measure.
|
|
32
|
+
*
|
|
33
|
+
* @param dataOptions - Internal calendar heatmap chart data options
|
|
34
|
+
* @returns Array of measures extracted from the data options
|
|
35
|
+
*/
|
|
36
|
+
export declare function getCalendarHeatmapMeasures(dataOptions: CalendarHeatmapChartDataOptionsInternal): Measure[];
|
|
37
|
+
/**
|
|
38
|
+
* Type guard to check if data options are valid for calendar heatmap charts
|
|
39
|
+
*
|
|
40
|
+
* Validates that the provided data options contain the required properties
|
|
41
|
+
* for calendar heatmap charts (date and value).
|
|
42
|
+
*
|
|
43
|
+
* @param dataOptions - Data options to validate
|
|
44
|
+
* @returns True if the data options are valid for calendar heatmap charts
|
|
45
|
+
*/
|
|
46
|
+
export declare function isCalendarHeatmapChartDataOptions(dataOptions: ChartDataOptions): dataOptions is CalendarHeatmapChartDataOptions;
|
|
47
|
+
/**
|
|
48
|
+
* Type guard to check if internal data options are valid for calendar heatmap charts
|
|
49
|
+
*
|
|
50
|
+
* Validates that the provided internal data options contain the required properties
|
|
51
|
+
* and are properly structured for calendar heatmap charts.
|
|
52
|
+
*
|
|
53
|
+
* @param dataOptions - Internal data options to validate
|
|
54
|
+
* @returns True if the internal data options are valid for calendar heatmap charts
|
|
55
|
+
*/
|
|
56
|
+
export declare function isCalendarHeatmapChartDataOptionsInternal(dataOptions: ChartDataOptionsInternal): dataOptions is CalendarHeatmapChartDataOptionsInternal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './data-options.js';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DataTable } from '../../../../chart-data-processor/table-processor';
|
|
2
|
+
import { CalendarHeatmapChartDataOptionsInternal } from '../../../../chart-data-options/types';
|
|
3
|
+
import { ChartData } from '../../../../chart-data/types';
|
|
4
|
+
export type CalendarHeatmapDataValue = {
|
|
5
|
+
date: Date;
|
|
6
|
+
value?: number;
|
|
7
|
+
blur?: boolean;
|
|
8
|
+
color?: string;
|
|
9
|
+
};
|
|
10
|
+
export type CalendarHeatmapChartData = {
|
|
11
|
+
type: 'calendar-heatmap';
|
|
12
|
+
values: CalendarHeatmapDataValue[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Converts a data table to calendar heatmap chart data format
|
|
16
|
+
*
|
|
17
|
+
* Transforms raw data table rows into the specific format required for calendar heatmap visualization,
|
|
18
|
+
* extracting date and value pairs from the configured columns.
|
|
19
|
+
*
|
|
20
|
+
* @param chartDataOptions - Internal data options specifying which columns to use
|
|
21
|
+
* @param dataTable - Raw data table containing the source data
|
|
22
|
+
* @returns Formatted calendar heatmap chart data
|
|
23
|
+
|
|
24
|
+
*/
|
|
25
|
+
export declare function getCalendarHeatmapChartData(chartDataOptions: CalendarHeatmapChartDataOptionsInternal, dataTable: DataTable): CalendarHeatmapChartData;
|
|
26
|
+
/**
|
|
27
|
+
* Type guard to check if chart data is calendar heatmap chart data
|
|
28
|
+
*
|
|
29
|
+
* Validates that the provided chart data is specifically formatted for calendar heatmap charts.
|
|
30
|
+
*
|
|
31
|
+
* @param chartData - Chart data to validate
|
|
32
|
+
* @returns True if the chart data is calendar heatmap chart data
|
|
33
|
+
*/
|
|
34
|
+
export declare function isCalendarHeatmapChartData(chartData: ChartData): chartData is CalendarHeatmapChartData;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CalendarHeatmapStyleOptions, ChartStyleOptions } from '../../../../types';
|
|
2
|
+
import { DesignOptions } from '../../../../chart-options-processor/translations/types';
|
|
3
|
+
/**
|
|
4
|
+
* Translates calendar heatmap style options to design options
|
|
5
|
+
*
|
|
6
|
+
* Converts user-provided style options to the internal design options format
|
|
7
|
+
* used by the chart engine, applying default values where necessary.
|
|
8
|
+
*
|
|
9
|
+
* @param styleOptions - User-provided calendar heatmap style options
|
|
10
|
+
* @returns Translated design options for internal use
|
|
11
|
+
*/
|
|
12
|
+
export declare function translateCalendarHeatmapStyleOptionsToDesignOptions(styleOptions: CalendarHeatmapStyleOptions): DesignOptions<'calendar-heatmap'>;
|
|
13
|
+
/**
|
|
14
|
+
* Type guard to check if style options are valid for calendar heatmap charts
|
|
15
|
+
*
|
|
16
|
+
* Validates that the provided style options are properly structured for calendar heatmap charts.
|
|
17
|
+
* Since all style options are optional, this primarily checks for basic object structure.
|
|
18
|
+
*
|
|
19
|
+
* @param styleOptions - Style options to validate
|
|
20
|
+
* @returns True if the style options are valid for calendar heatmap charts
|
|
21
|
+
*/
|
|
22
|
+
export declare function isCalendarHeatmapStyleOptions(styleOptions: ChartStyleOptions): styleOptions is CalendarHeatmapStyleOptions;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HighchartsOptionsBuilder } from '../../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Main Highcharts options builder for calendar heatmap charts
|
|
4
|
+
*
|
|
5
|
+
* Combines all individual configuration builders to create complete
|
|
6
|
+
* Highcharts options for calendar heatmap visualization.
|
|
7
|
+
*/
|
|
8
|
+
export declare const calendarHeatmapHighchartsOptionsBuilder: HighchartsOptionsBuilder<'calendar-heatmap'>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { calendarHeatmapHighchartsOptionsBuilder } from './highcharts-options-builder.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HighchartsOptionsInternal } from '../../../../../../chart-options-processor/chart-options-service.js';
|
|
2
|
+
import { BuildContext } from '../../../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Prepares the Highcharts's axes options for calendar heatmap
|
|
5
|
+
*
|
|
6
|
+
* @param ctx - The highcharts options builder context
|
|
7
|
+
* @returns Axes configuration object with xAxis and yAxis
|
|
8
|
+
*/
|
|
9
|
+
export declare function getAxesOptions(ctx: BuildContext<'calendar-heatmap'>): {
|
|
10
|
+
xAxis: HighchartsOptionsInternal['xAxis'];
|
|
11
|
+
yAxis: HighchartsOptionsInternal['yAxis'];
|
|
12
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HighchartsOptionsInternal } from '../../../../../../chart-options-processor/chart-options-service.js';
|
|
2
|
+
import { BuildContext } from '../../../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Prepares the Highcharts's chart options for calendar heatmap
|
|
5
|
+
*
|
|
6
|
+
* @param ctx - The highcharts options builder context
|
|
7
|
+
* @returns Highchart's chart options object
|
|
8
|
+
*/
|
|
9
|
+
export declare function getChartOptions(ctx: BuildContext<'calendar-heatmap'>): HighchartsOptionsInternal['chart'];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HighchartsOptionsInternal } from '../../../../../../chart-options-processor/chart-options-service.js';
|
|
2
|
+
/**
|
|
3
|
+
* Prepares the Highcharts's extras options (title, colorAxis, accessibility) for calendar heatmap
|
|
4
|
+
*
|
|
5
|
+
* @param ctx - The highcharts options builder context
|
|
6
|
+
* @returns Extras options object
|
|
7
|
+
*/
|
|
8
|
+
export declare function getExtrasOptions(): Partial<HighchartsOptionsInternal>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { getAxesOptions } from './axes-options.js';
|
|
2
|
+
export { getChartOptions } from './chart-options.js';
|
|
3
|
+
export { getExtrasOptions } from './extras-options.js';
|
|
4
|
+
export { getLegendOptions } from './legend-options.js';
|
|
5
|
+
export { getPlotOptions } from './plot-options.js';
|
|
6
|
+
export { getSeriesOptions } from './series-options';
|
|
7
|
+
export { getTooltipOptions } from './tooltip-options.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HighchartsOptionsInternal } from '../../../../../../chart-options-processor/chart-options-service';
|
|
2
|
+
/**
|
|
3
|
+
* Prepares the Highcharts's legend options for calendar heatmap
|
|
4
|
+
*
|
|
5
|
+
* @param ctx - The highcharts options builder context
|
|
6
|
+
* @returns Legend options object
|
|
7
|
+
*/
|
|
8
|
+
export declare function getLegendOptions(): HighchartsOptionsInternal['legend'];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HighchartsOptionsInternal } from '../../../../../../chart-options-processor/chart-options-service';
|
|
2
|
+
import { BuildContext } from '../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Prepares the Highcharts's plot options for calendar heatmap
|
|
5
|
+
*
|
|
6
|
+
* @param ctx - The highcharts options builder context
|
|
7
|
+
* @returns Plot options object
|
|
8
|
+
*/
|
|
9
|
+
export declare function getPlotOptions(ctx: BuildContext<'calendar-heatmap'>): HighchartsOptionsInternal['plotOptions'];
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CalendarHeatmapChartData } from '../../../data.js';
|
|
2
|
+
import { DateFormatter } from '../../../../../../../common/formatters/create-date-formatter.js';
|
|
3
|
+
import { CalendarDayOfWeek } from '../../../utils/calendar-utils.js';
|
|
4
|
+
import { CalendarHeatmapChartDesignOptions } from '../../../../../../../chart-options-processor/translations/design-options.js';
|
|
5
|
+
/**
|
|
6
|
+
* Represents a calendar chart data point for Highcharts
|
|
7
|
+
*/
|
|
8
|
+
export interface CalendarChartDataPoint {
|
|
9
|
+
/** X coordinate (day of week, 0-6) */
|
|
10
|
+
x: number;
|
|
11
|
+
/** Y coordinate (week row, 0-5) */
|
|
12
|
+
y: number;
|
|
13
|
+
/** Data value or null for cells without data */
|
|
14
|
+
value: number | null;
|
|
15
|
+
/** Date timestamp */
|
|
16
|
+
date: number;
|
|
17
|
+
/** Date string for tooltip display */
|
|
18
|
+
dateString?: string;
|
|
19
|
+
/** Custom color override */
|
|
20
|
+
color?: string;
|
|
21
|
+
/** Class name for the data point */
|
|
22
|
+
className?: string;
|
|
23
|
+
/** Custom properties for the data point */
|
|
24
|
+
custom: {
|
|
25
|
+
/** Day of the month (1-31) */
|
|
26
|
+
monthDay?: number;
|
|
27
|
+
/** Whether this cell has data */
|
|
28
|
+
hasData?: boolean;
|
|
29
|
+
/** Whether this data point should be blurred for highlighting */
|
|
30
|
+
blur?: boolean;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Generates calendar chart data for an entire month with provided data values
|
|
35
|
+
*
|
|
36
|
+
* @param data - Array of data points with dates and values
|
|
37
|
+
* @param dateFormatter - Date formatter function
|
|
38
|
+
* @param startOfWeek - Week start preference
|
|
39
|
+
* @param weekendsConfig - Weekend configuration (days, cellColor, hideValues)
|
|
40
|
+
* @returns Array of calendar chart data points formatted for Highcharts
|
|
41
|
+
*/
|
|
42
|
+
export declare function generateCalendarChartData(data: CalendarHeatmapChartData, dateFormatter: DateFormatter, startOfWeek: CalendarDayOfWeek, weekendsConfig: CalendarHeatmapChartDesignOptions['weekends']): CalendarChartDataPoint[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getSeriesOptions } from './series-options.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HighchartsOptionsInternal } from '../../../../../../../chart-options-processor/chart-options-service.js';
|
|
2
|
+
import { BuildContext } from '../../../../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Prepares the Highcharts's series options for calendar heatmap
|
|
5
|
+
*
|
|
6
|
+
* @param ctx - The highcharts options builder context
|
|
7
|
+
* @returns Array of series options
|
|
8
|
+
*/
|
|
9
|
+
export declare function getSeriesOptions(ctx: BuildContext<'calendar-heatmap'>): HighchartsOptionsInternal['series'];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BuildContext } from '../../../types.js';
|
|
2
|
+
import { HighchartsOptionsInternal } from '../../../../../../chart-options-processor/chart-options-service.js';
|
|
3
|
+
/**
|
|
4
|
+
* Prepares the Highcharts's tooltip options for calendar heatmap
|
|
5
|
+
*
|
|
6
|
+
* @param ctx - The highcharts options builder context
|
|
7
|
+
* @returns Tooltip options object
|
|
8
|
+
*/
|
|
9
|
+
export declare function getTooltipOptions(ctx: BuildContext<'calendar-heatmap'>): HighchartsOptionsInternal['tooltip'];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HighchartsOptionsInternal } from '../../../../../chart-options-processor/chart-options-service';
|
|
3
|
+
import { MonthInfo } from './helpers/view-helpers.js';
|
|
4
|
+
import { CalendarHeatmapViewType, TextStyle } from '../../../../../types';
|
|
5
|
+
import { ContainerSize } from '../../../../../dynamic-size-container/dynamic-size-container';
|
|
6
|
+
export declare const ChartsContainer: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
viewType: CalendarHeatmapViewType;
|
|
11
|
+
gridCols: number;
|
|
12
|
+
gridRows: number;
|
|
13
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
|
+
export declare const ChartWrapper: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
17
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
|
+
export declare const ChartTitle: import("@emotion/styled").StyledComponent<{
|
|
19
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
21
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
22
|
+
interface CalendarHeatmapChartsGridProps {
|
|
23
|
+
monthCharts: (HighchartsOptionsInternal | null)[];
|
|
24
|
+
availableMonths: MonthInfo[];
|
|
25
|
+
currentViewIndex: number;
|
|
26
|
+
viewType: CalendarHeatmapViewType;
|
|
27
|
+
size: ContainerSize;
|
|
28
|
+
monthLabels?: {
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
style?: TextStyle;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export declare const CalendarHeatmapChartsGrid: React.FC<CalendarHeatmapChartsGridProps>;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HighchartsBasedChartRendererProps } from '../../highcharts-based-chart-renderer/highcharts-based-chart-renderer.js';
|
|
3
|
+
import { ChartRendererProps } from '../../../../../chart/types.js';
|
|
4
|
+
import { Themable } from '../../../../../theme-provider/types.js';
|
|
5
|
+
export declare const ChartRootContainer: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
8
|
+
} & Themable, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const ChartsWrapper: import("@emotion/styled").StyledComponent<{
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
12
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
+
export type CalendarHeatmapProps = HighchartsBasedChartRendererProps<'calendar-heatmap'>;
|
|
14
|
+
export declare function CalendarHeatmap({ chartData, dataOptions, designOptions, onDataPointClick, onDataPointContextMenu, onDataPointsSelected, onBeforeRender, size, }: CalendarHeatmapProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const isCalendarHeatmapProps: (props: ChartRendererProps) => props is CalendarHeatmapProps;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MonthInfo } from '../helpers/view-helpers.js';
|
|
3
|
+
import { CalendarHeatmapViewType } from '../../../../../../types.js';
|
|
4
|
+
import { Themable } from '../../../../../../theme-provider/types.js';
|
|
5
|
+
export declare const PaginationContainer: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
8
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const NavigationButton: import("@emotion/styled").StyledComponent<{
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
}, React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
15
|
+
export declare const ViewDisplay: import("@emotion/styled").StyledComponent<{
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
18
|
+
} & Themable, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
+
interface CalendarPaginationProps {
|
|
20
|
+
currentViewIndex: number;
|
|
21
|
+
availableMonths: MonthInfo[];
|
|
22
|
+
viewType: CalendarHeatmapViewType;
|
|
23
|
+
onGoToFirst: () => void;
|
|
24
|
+
onGoToPrevious: () => void;
|
|
25
|
+
onGoToNext: () => void;
|
|
26
|
+
onGoToLast: () => void;
|
|
27
|
+
onGoToPreviousGroup?: () => void;
|
|
28
|
+
onGoToNextGroup?: () => void;
|
|
29
|
+
}
|
|
30
|
+
export declare const CalendarPagination: React.FC<CalendarPaginationProps>;
|
|
31
|
+
export {};
|