@aquera/nile-visualization 2.9.19 → 2.9.21
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/README.md +8 -0
- package/dist/src/index.d.ts +8 -2
- package/dist/src/index.js +3 -0
- package/dist/src/internal/color-palettes/color-palettes-data.d.ts +15 -0
- package/dist/src/internal/color-palettes/color-palettes-data.js +111 -0
- package/dist/src/internal/color-palettes/index.d.ts +3 -0
- package/dist/src/internal/color-palettes/index.js +43 -0
- package/dist/src/internal/types/chart-color-palette.type.d.ts +13 -0
- package/dist/src/internal/types/chart-color-palette.type.js +2 -0
- package/dist/src/internal/types/chart-config.type.d.ts +3 -1
- package/dist/src/internal/types/chart-list-config.type.d.ts +25 -0
- package/dist/src/internal/types/chart-list-config.type.js +2 -0
- package/dist/src/internal/types/chart-master-detail-config.type.d.ts +38 -0
- package/dist/src/internal/types/chart-master-detail-config.type.js +2 -0
- package/dist/src/internal/types/chart-message-config.type.d.ts +9 -0
- package/dist/src/internal/types/chart-message-config.type.js +2 -0
- package/dist/src/internal/types/index.d.ts +2 -0
- package/dist/src/internal/types/primitive-chart-config.type.d.ts +2 -1
- package/dist/src/nile-chart/index.d.ts +2 -2
- package/dist/src/nile-chart/nile-chart-config.d.ts +48 -1
- package/dist/src/nile-chart/nile-chart-skeleton.js +1 -1
- package/dist/src/nile-chart/nile-chart.css.js +1 -0
- package/dist/src/nile-chart/nile-chart.d.ts +9 -0
- package/dist/src/nile-chart/nile-chart.js +110 -2
- package/dist/src/nile-chart-list/index.d.ts +2 -0
- package/dist/src/nile-chart-list/index.js +2 -0
- package/dist/src/nile-chart-list/nile-chart-list.css.d.ts +12 -0
- package/dist/src/nile-chart-list/nile-chart-list.css.js +126 -0
- package/dist/src/nile-chart-list/nile-chart-list.d.ts +61 -0
- package/dist/src/nile-chart-list/nile-chart-list.js +188 -0
- package/dist/src/nile-chart-message/index.d.ts +2 -0
- package/dist/src/nile-chart-message/index.js +2 -0
- package/dist/src/nile-chart-message/nile-chart-message.css.d.ts +12 -0
- package/dist/src/nile-chart-message/nile-chart-message.css.js +108 -0
- package/dist/src/nile-chart-message/nile-chart-message.d.ts +36 -0
- package/dist/src/nile-chart-message/nile-chart-message.js +117 -0
- package/dist/src/nile-kpi-chart/nile-kpi-chart.css.d.ts +1 -1
- package/dist/src/nile-kpi-chart/nile-kpi-chart.css.js +76 -12
- package/dist/src/nile-kpi-chart/nile-kpi-chart.d.ts +6 -0
- package/dist/src/nile-kpi-chart/nile-kpi-chart.js +78 -10
- package/dist/src/nile-master-detail-chart/index.d.ts +2 -0
- package/dist/src/nile-master-detail-chart/index.js +2 -0
- package/dist/src/nile-master-detail-chart/nile-master-detail-chart.css.d.ts +1 -0
- package/dist/src/nile-master-detail-chart/nile-master-detail-chart.css.js +95 -0
- package/dist/src/nile-master-detail-chart/nile-master-detail-chart.d.ts +93 -0
- package/dist/src/nile-master-detail-chart/nile-master-detail-chart.js +604 -0
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -36,6 +36,14 @@ To run a local development server that serves the basic demo located in `demo/in
|
|
|
36
36
|
|
|
37
37
|
In this section, you can find the updates for each release of `nile-visualization`. It's a good practice to maintain detailed release notes to help users and developers understand what changes have been made from one version to another and how these changes might affect their projects.
|
|
38
38
|
|
|
39
|
+
#### Version 2.9.21 (July 06, 2026)
|
|
40
|
+
- Nile Chart: Added the master-detail chart — set `type: 'master-detail'` to render a detail chart paired with a draggable master (navigator) pane for zooming into a range. Configurable via `detailType`/`masterType` (`area`, `areaspline`, `line`, `spline`, `column`), `xAxisType` (`datetime`, `linear`, `logarithmic`, `category`), `selectionMin`/`selectionMax`, and `masterHeight`; emits `nile-chart-selection` and `nile-chart-ready` (UIF-1272)
|
|
41
|
+
- Nile Chart List: Added the `<nile-chart-list>` component — `variant` (`plain`, `bullet`, `number`, `icon`, `checkbox`) with native `<ul>`/`<ol>` markers; emits `nile-click` and `nile-change` (UIF-1272)
|
|
42
|
+
- Nile Chart Message: Added the `<nile-chart-message>` component — status message with `variant` (`primary`, `success`, `warning`, `error`, `info`), `heading`, `description`, and an optional status light (UIF-1272)
|
|
43
|
+
|
|
44
|
+
#### Version 2.9.20 (June 18, 2026)
|
|
45
|
+
- Nile Chart: Added built-in color palettes — set `colorPalette` on the chart config to apply the Nile `default` theme (sizes 15 / 30 / 50) or a `custom` color array. Palettes resolve to `var(--ng-*)` tokens and repeat with an opacity falloff when data points exceed the palette size (UIF-1270)
|
|
46
|
+
|
|
39
47
|
#### Version 2.9.19 (June 16, 2026)
|
|
40
48
|
- Nile Chart: Forwarded the new data-grid pagination sub-properties (`paginationVariant`, `totalItems`, `currentPage`, `pageSize`) through `<nile-chart>` when using `type: 'grid'` (UIF-1265)
|
|
41
49
|
|
package/dist/src/index.d.ts
CHANGED
|
@@ -6,11 +6,13 @@ export { NileTrendlineChart } from './nile-trendline-chart/index.js';
|
|
|
6
6
|
export type { TrendlineSeriesData, ForecastConfig } from './nile-trendline-chart/index.js';
|
|
7
7
|
export { NileAnomalyChart } from './nile-anomaly-chart/index.js';
|
|
8
8
|
export type { AnomalySeriesData, AnomalyConfig } from './nile-anomaly-chart/index.js';
|
|
9
|
+
export { NileChartMessage } from './nile-chart-message/index.js';
|
|
10
|
+
export type { StatusLightConfig, StatusLightVariant, ChartMessageVariant, ChartMessageConfig, } from './nile-chart-message/index.js';
|
|
9
11
|
export { NileChart } from './nile-chart/index.js';
|
|
10
|
-
export type { NileChartConfig, NileBarChartConfig, NilePieChartConfig, NileTrendlineChartConfig, NileAnomalyChartConfig, NileLineChartConfig, NileAreaChartConfig, NileColumnChartConfig, NileDonutChartConfig, NileScatterChartConfig, NileBubbleChartConfig, NileSplineChartConfig, NileRadarChartConfig, NileGaugeChartConfig, NileWaterfallChartConfig, NileMapChartConfig, NileKpiChartConfig, ChartType, SwitchAggregation, NileAiConfig, NileChartMenuConfig, NileChartMenuItem, } from './nile-chart/index.js';
|
|
12
|
+
export type { NileChartConfig, NileBarChartConfig, NilePieChartConfig, NileTrendlineChartConfig, NileAnomalyChartConfig, NileLineChartConfig, NileAreaChartConfig, NileColumnChartConfig, NileDonutChartConfig, NileScatterChartConfig, NileBubbleChartConfig, NileSplineChartConfig, NileRadarChartConfig, NileGaugeChartConfig, NileWaterfallChartConfig, NileMapChartConfig, NileMasterDetailChartConfig, NileKpiChartConfig, NileListChartConfig, NileMessageChartConfig, ChartType, SwitchAggregation, NileAiConfig, NileChartMenuConfig, NileChartMenuItem, } from './nile-chart/index.js';
|
|
11
13
|
export { convertConfig, registerAdapter } from './nile-chart/index.js';
|
|
12
14
|
export { nileChartConfig } from './nile-chart/index.js';
|
|
13
|
-
export type { AiConfigType, SwitchableConfigType, AqConfigType, ChartBarConfigType, ChartPieConfigType, ChartTrendlineConfigType, ChartAnomalyConfigType, ChartLineConfigType, ChartAreaConfigType, ChartInvertedAreaConfigType, ChartColumnConfigType, ChartDonutConfigType, ChartScatterConfigType, ChartBubbleConfigType, ChartSplineConfigType, ChartRadarConfigType, ChartGaugeConfigType, ChartWaterfallConfigType, ChartClusterConfigType, ChartStackedConfigType, ChartHistogramConfigType, ChartBellcurveConfigType, ChartBoxplotConfigType, ChartTimelineConfigType, ChartDumbbellConfigType, ChartDumbbellLowerConfigType, ChartDumbbellUpperConfigType, ChartColumnPyramidConfigType, ChartLollipopConfigType, ChartAreaSplineConfigType, ChartAreaNegativeConfigType, ChartAreaRangeConfigType, ChartColumnRangeConfigType, ChartColumnDrilldownConfigType, ChartRadialBarConfigType, ChartVariablePieConfigType, ChartEulerConfigType, ChartPolygonConfigType, ChartVectorConfigType, ChartXrangeConfigType, ChartFanConfigType, ChartFunnelConfigType, ChartOrganizationConfigType, ChartLineColumnConfigType, ChartHeatmapConfigType, ChartFlameConfigType, ChartSpiderwebConfigType, ChartKpiConfigType, ChartKpiPropsType, ChartMapConfigType, PrimitiveChartConfigType, SeparatedChartConfigInputType, AllChartConfigType, ChartConfigType, NileChartConfigInputType, ChartAiPanelPayload, ChartAiSenderPayload, NileAiPanelConfigInputType, NileAiSenderConfigInputType, } from './nile-chart/index.js';
|
|
15
|
+
export type { AiConfigType, SwitchableConfigType, AqConfigType, ChartBarConfigType, ChartPieConfigType, ChartTrendlineConfigType, ChartAnomalyConfigType, ChartLineConfigType, ChartAreaConfigType, ChartInvertedAreaConfigType, ChartColumnConfigType, ChartDonutConfigType, ChartScatterConfigType, ChartBubbleConfigType, ChartSplineConfigType, ChartRadarConfigType, ChartGaugeConfigType, ChartWaterfallConfigType, ChartClusterConfigType, ChartStackedConfigType, ChartHistogramConfigType, ChartBellcurveConfigType, ChartBoxplotConfigType, ChartTimelineConfigType, ChartMasterDetailConfigType, ChartDumbbellConfigType, ChartDumbbellLowerConfigType, ChartDumbbellUpperConfigType, ChartColumnPyramidConfigType, ChartLollipopConfigType, ChartAreaSplineConfigType, ChartAreaNegativeConfigType, ChartAreaRangeConfigType, ChartColumnRangeConfigType, ChartColumnDrilldownConfigType, ChartRadialBarConfigType, ChartVariablePieConfigType, ChartEulerConfigType, ChartPolygonConfigType, ChartVectorConfigType, ChartXrangeConfigType, ChartFanConfigType, ChartFunnelConfigType, ChartOrganizationConfigType, ChartLineColumnConfigType, ChartHeatmapConfigType, ChartFlameConfigType, ChartSpiderwebConfigType, ChartKpiConfigType, ChartKpiPropsType, ChartMapConfigType, PrimitiveChartConfigType, SeparatedChartConfigInputType, AllChartConfigType, ChartConfigType, NileChartConfigInputType, ChartAiPanelPayload, ChartAiSenderPayload, NileAiPanelConfigInputType, NileAiSenderConfigInputType, } from './nile-chart/index.js';
|
|
14
16
|
export type { SeparatedChartDemoConfig } from './internal/separated-chart-config.js';
|
|
15
17
|
export { NileLineChart } from './nile-line-chart/index.js';
|
|
16
18
|
export type { LineChartSeriesData } from './nile-line-chart/index.js';
|
|
@@ -32,6 +34,8 @@ export { NileBoxplotChart } from './nile-boxplot-chart/index.js';
|
|
|
32
34
|
export type { BoxplotBox, BoxplotSeriesData } from './nile-boxplot-chart/index.js';
|
|
33
35
|
export { NileTimelineChart } from './nile-timeline-chart/index.js';
|
|
34
36
|
export type { TimelineEvent } from './nile-timeline-chart/index.js';
|
|
37
|
+
export { NileMasterDetailChart } from './nile-master-detail-chart/index.js';
|
|
38
|
+
export type { MasterDetailPoint, MasterDetailSeriesType } from './nile-master-detail-chart/index.js';
|
|
35
39
|
export { NileDumbbellChart } from './nile-dumbbell-chart/index.js';
|
|
36
40
|
export type { DumbbellPoint } from './nile-dumbbell-chart/index.js';
|
|
37
41
|
export { NileDumbbellLowerChart } from './nile-dumbbell-lower-chart/index.js';
|
|
@@ -104,3 +108,5 @@ export { NileDashboardViewer } from './nile-dashboard-viewer/index.js';
|
|
|
104
108
|
export type { NileDashboardConfig } from './nile-dashboard-viewer/index.js';
|
|
105
109
|
export { NileExecutiveSummary } from './nile-executive-summary/index.js';
|
|
106
110
|
export type { NileExecutiveSummaryConfig } from './nile-executive-summary/index.js';
|
|
111
|
+
export { NileChartList } from './nile-chart-list/index.js';
|
|
112
|
+
export type { ChartListVariant, ChartListItem, ChartListMarker, ChartListConfig, } from './nile-chart-list/index.js';
|
package/dist/src/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export { NileBarChart } from './nile-bar-chart/index.js';
|
|
|
5
5
|
export { NilePieChart } from './nile-pie-chart/index.js';
|
|
6
6
|
export { NileTrendlineChart } from './nile-trendline-chart/index.js';
|
|
7
7
|
export { NileAnomalyChart } from './nile-anomaly-chart/index.js';
|
|
8
|
+
export { NileChartMessage } from './nile-chart-message/index.js';
|
|
8
9
|
export { NileChart } from './nile-chart/index.js';
|
|
9
10
|
export { convertConfig, registerAdapter } from './nile-chart/index.js';
|
|
10
11
|
export { nileChartConfig } from './nile-chart/index.js';
|
|
@@ -18,6 +19,7 @@ export { NileHistogramChart } from './nile-histogram-chart/index.js';
|
|
|
18
19
|
export { NileBellcurveChart } from './nile-bellcurve-chart/index.js';
|
|
19
20
|
export { NileBoxplotChart } from './nile-boxplot-chart/index.js';
|
|
20
21
|
export { NileTimelineChart } from './nile-timeline-chart/index.js';
|
|
22
|
+
export { NileMasterDetailChart } from './nile-master-detail-chart/index.js';
|
|
21
23
|
export { NileDumbbellChart } from './nile-dumbbell-chart/index.js';
|
|
22
24
|
export { NileDumbbellLowerChart } from './nile-dumbbell-lower-chart/index.js';
|
|
23
25
|
export { NileDumbbellUpperChart } from './nile-dumbbell-upper-chart/index.js';
|
|
@@ -56,4 +58,5 @@ export { NileAiPanel } from './nile-ai-panel/index.js';
|
|
|
56
58
|
export { NileWidgetViewer } from './nile-widget-viewer/index.js';
|
|
57
59
|
export { NileDashboardViewer } from './nile-dashboard-viewer/index.js';
|
|
58
60
|
export { NileExecutiveSummary } from './nile-executive-summary/index.js';
|
|
61
|
+
export { NileChartList } from './nile-chart-list/index.js';
|
|
59
62
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ColorPaletteName } from '../types/chart-color-palette.type.js';
|
|
2
|
+
export interface PaletteEntry {
|
|
3
|
+
token: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PaletteTheme {
|
|
7
|
+
id: ColorPaletteName;
|
|
8
|
+
name?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
palettes: Record<string, PaletteEntry[]>;
|
|
11
|
+
}
|
|
12
|
+
export interface PalettesFile {
|
|
13
|
+
themes: PaletteTheme[];
|
|
14
|
+
}
|
|
15
|
+
export declare const palettesData: PalettesFile;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export const palettesData = {
|
|
2
|
+
"themes": [
|
|
3
|
+
{
|
|
4
|
+
"id": "default",
|
|
5
|
+
"name": "Default",
|
|
6
|
+
"description": "Balanced, brand-led. Blue Dark anchors the sequence; adjacent hues jump family and step for maximum legibility.",
|
|
7
|
+
"palettes": {
|
|
8
|
+
"15": [
|
|
9
|
+
{ "token": "utility-blue-dark-500", "value": "var(--ng-componentcolors-utility-blue-dark-500)" },
|
|
10
|
+
{ "token": "utility-orange-500", "value": "var(--ng-componentcolors-utility-orange-500)" },
|
|
11
|
+
{ "token": "utility-success-500", "value": "var(--ng-componentcolors-utility-success-500)" },
|
|
12
|
+
{ "token": "utility-fuchsia-500", "value": "var(--ng-componentcolors-utility-fuchsia-500)" },
|
|
13
|
+
{ "token": "utility-warning-500", "value": "var(--ng-componentcolors-utility-warning-500)" },
|
|
14
|
+
{ "token": "utility-indigo-500", "value": "var(--ng-componentcolors-utility-indigo-500)" },
|
|
15
|
+
{ "token": "utility-pink-500", "value": "var(--ng-componentcolors-utility-pink-500)" },
|
|
16
|
+
{ "token": "utility-teal-500", "value": "var(--ng-color-teal-500)" },
|
|
17
|
+
{ "token": "utility-rose-500", "value": "var(--ng-color-rose-500)" },
|
|
18
|
+
{ "token": "utility-blue-light-500", "value": "var(--ng-componentcolors-utility-blue-light-500)" },
|
|
19
|
+
{ "token": "utility-yellow-500", "value": "var(--ng-componentcolors-utility-yellow-500)" },
|
|
20
|
+
{ "token": "utility-purple-500", "value": "var(--ng-componentcolors-utility-purple-500)" },
|
|
21
|
+
{ "token": "utility-moss-500", "value": "var(--ng-color-moss-500)" },
|
|
22
|
+
{ "token": "utility-orange-dark-500", "value": "var(--ng-componentcolors-utility-orange-dark-500)" },
|
|
23
|
+
{ "token": "utility-cyan-500", "value": "var(--ng-color-cyan-500)" }
|
|
24
|
+
],
|
|
25
|
+
"30": [
|
|
26
|
+
{ "token": "utility-brand-600", "value": "var(--ng-componentcolors-utility-brand-600)" },
|
|
27
|
+
{ "token": "utility-error-600", "value": "var(--ng-componentcolors-utility-error-600)" },
|
|
28
|
+
{ "token": "utility-warning-600", "value": "var(--ng-componentcolors-utility-warning-600)" },
|
|
29
|
+
{ "token": "utility-success-600", "value": "var(--ng-componentcolors-utility-success-600)" },
|
|
30
|
+
{ "token": "utility-gray-blue-600", "value": "var(--ng-componentcolors-utility-gray-blue-600)" },
|
|
31
|
+
{ "token": "utility-blue-light-600", "value": "var(--ng-componentcolors-utility-blue-light-600)" },
|
|
32
|
+
{ "token": "utility-blue-dark-600", "value": "var(--ng-componentcolors-utility-blue-dark-600)" },
|
|
33
|
+
{ "token": "utility-indigo-600", "value": "var(--ng-componentcolors-utility-indigo-600)" },
|
|
34
|
+
{ "token": "utility-purple-600", "value": "var(--ng-componentcolors-utility-purple-600)" },
|
|
35
|
+
{ "token": "utility-fuchsia-600", "value": "var(--ng-componentcolors-utility-fuchsia-600)" },
|
|
36
|
+
{ "token": "utility-pink-600", "value": "var(--ng-componentcolors-utility-pink-600)" },
|
|
37
|
+
{ "token": "utility-green-600", "value": "var(--ng-componentcolors-utility-green-600)" },
|
|
38
|
+
{ "token": "utility-yellow-600", "value": "var(--ng-componentcolors-utility-yellow-600)" },
|
|
39
|
+
{ "token": "utility-gray-600", "value": "var(--ng-componentcolors-utility-gray-600)" },
|
|
40
|
+
{ "token": "utility-brand-300", "value": "var(--ng-componentcolors-utility-brand-300)" },
|
|
41
|
+
{ "token": "utility-error-300", "value": "var(--ng-componentcolors-utility-error-300)" },
|
|
42
|
+
{ "token": "utility-warning-300", "value": "var(--ng-componentcolors-utility-warning-300)" },
|
|
43
|
+
{ "token": "utility-success-300", "value": "var(--ng-componentcolors-utility-success-300)" },
|
|
44
|
+
{ "token": "utility-gray-blue-300", "value": "var(--ng-componentcolors-utility-gray-blue-300)" },
|
|
45
|
+
{ "token": "utility-blue-light-300", "value": "var(--ng-componentcolors-utility-blue-light-300)" },
|
|
46
|
+
{ "token": "utility-blue-dark-300", "value": "var(--ng-componentcolors-utility-blue-dark-300)" },
|
|
47
|
+
{ "token": "utility-indigo-300", "value": "var(--ng-componentcolors-utility-indigo-300)" },
|
|
48
|
+
{ "token": "utility-purple-300", "value": "var(--ng-componentcolors-utility-purple-300)" },
|
|
49
|
+
{ "token": "utility-fuchsia-300", "value": "var(--ng-componentcolors-utility-fuchsia-300)" },
|
|
50
|
+
{ "token": "utility-pink-300", "value": "var(--ng-componentcolors-utility-pink-300)" },
|
|
51
|
+
{ "token": "utility-green-300", "value": "var(--ng-componentcolors-utility-green-300)" },
|
|
52
|
+
{ "token": "utility-yellow-300", "value": "var(--ng-componentcolors-utility-yellow-300)" },
|
|
53
|
+
{ "token": "utility-gray-300", "value": "var(--ng-componentcolors-utility-gray-300)" }
|
|
54
|
+
],
|
|
55
|
+
"50": [
|
|
56
|
+
{ "token": "utility-brand-600", "value": "var(--ng-componentcolors-utility-brand-600)" },
|
|
57
|
+
{ "token": "utility-error-600", "value": "var(--ng-componentcolors-utility-error-600)" },
|
|
58
|
+
{ "token": "utility-warning-600", "value": "var(--ng-componentcolors-utility-warning-600)" },
|
|
59
|
+
{ "token": "utility-success-600", "value": "var(--ng-componentcolors-utility-success-600)" },
|
|
60
|
+
{ "token": "utility-gray-blue-600", "value": "var(--ng-componentcolors-utility-gray-blue-600)" },
|
|
61
|
+
{ "token": "utility-blue-light-600", "value": "var(--ng-componentcolors-utility-blue-light-600)" },
|
|
62
|
+
{ "token": "utility-blue-600", "value": "var(--ng-componentcolors-utility-blue-600)" },
|
|
63
|
+
{ "token": "utility-blue-dark-600", "value": "var(--ng-componentcolors-utility-blue-dark-600)" },
|
|
64
|
+
{ "token": "utility-indigo-600", "value": "var(--ng-componentcolors-utility-indigo-600)" },
|
|
65
|
+
{ "token": "utility-purple-600", "value": "var(--ng-componentcolors-utility-purple-600)" },
|
|
66
|
+
{ "token": "utility-fuchsia-600", "value": "var(--ng-componentcolors-utility-fuchsia-600)" },
|
|
67
|
+
{ "token": "utility-pink-600", "value": "var(--ng-componentcolors-utility-pink-600)" },
|
|
68
|
+
{ "token": "utility-orange-600", "value": "var(--ng-componentcolors-utility-orange-600)" },
|
|
69
|
+
{ "token": "utility-green-600", "value": "var(--ng-componentcolors-utility-green-600)" },
|
|
70
|
+
{ "token": "utility-yellow-600", "value": "var(--ng-componentcolors-utility-yellow-600)" },
|
|
71
|
+
{ "token": "utility-gray-600", "value": "var(--ng-componentcolors-utility-gray-600)" },
|
|
72
|
+
{ "token": "utility-gray-400", "value": "var(--ng-componentcolors-utility-gray-400)" },
|
|
73
|
+
{ "token": "utility-brand-400", "value": "var(--ng-componentcolors-utility-brand-400)" },
|
|
74
|
+
{ "token": "utility-error-400", "value": "var(--ng-componentcolors-utility-error-400)" },
|
|
75
|
+
{ "token": "utility-warning-400", "value": "var(--ng-componentcolors-utility-warning-400)" },
|
|
76
|
+
{ "token": "utility-success-400", "value": "var(--ng-componentcolors-utility-success-400)" },
|
|
77
|
+
{ "token": "utility-gray-blue-400", "value": "var(--ng-componentcolors-utility-gray-blue-400)" },
|
|
78
|
+
{ "token": "utility-blue-light-400", "value": "var(--ng-componentcolors-utility-blue-light-400)" },
|
|
79
|
+
{ "token": "utility-blue-400", "value": "var(--ng-componentcolors-utility-blue-400)" },
|
|
80
|
+
{ "token": "utility-blue-dark-400", "value": "var(--ng-componentcolors-utility-blue-dark-400)" },
|
|
81
|
+
{ "token": "utility-indigo-400", "value": "var(--ng-componentcolors-utility-indigo-400)" },
|
|
82
|
+
{ "token": "utility-purple-400", "value": "var(--ng-componentcolors-utility-purple-400)" },
|
|
83
|
+
{ "token": "utility-fuchsia-400", "value": "var(--ng-componentcolors-utility-fuchsia-400)" },
|
|
84
|
+
{ "token": "utility-pink-400", "value": "var(--ng-componentcolors-utility-pink-400)" },
|
|
85
|
+
{ "token": "utility-orange-dark-400", "value": "var(--ng-componentcolors-utility-orange-dark-400)" },
|
|
86
|
+
{ "token": "utility-orange-400", "value": "var(--ng-componentcolors-utility-orange-400)" },
|
|
87
|
+
{ "token": "utility-green-400", "value": "var(--ng-componentcolors-utility-green-400)" },
|
|
88
|
+
{ "token": "utility-yellow-400", "value": "var(--ng-componentcolors-utility-yellow-400)" },
|
|
89
|
+
{ "token": "utility-gray-200", "value": "var(--ng-componentcolors-utility-gray-200)" },
|
|
90
|
+
{ "token": "utility-brand-200", "value": "var(--ng-componentcolors-utility-brand-200)" },
|
|
91
|
+
{ "token": "utility-error-200", "value": "var(--ng-componentcolors-utility-error-200)" },
|
|
92
|
+
{ "token": "utility-warning-200", "value": "var(--ng-componentcolors-utility-warning-200)" },
|
|
93
|
+
{ "token": "utility-success-200", "value": "var(--ng-componentcolors-utility-success-200)" },
|
|
94
|
+
{ "token": "utility-gray-blue-200", "value": "var(--ng-componentcolors-utility-gray-blue-200)" },
|
|
95
|
+
{ "token": "utility-blue-light-200", "value": "var(--ng-componentcolors-utility-blue-light-200)" },
|
|
96
|
+
{ "token": "utility-blue-200", "value": "var(--ng-componentcolors-utility-blue-200)" },
|
|
97
|
+
{ "token": "utility-blue-dark-200", "value": "var(--ng-componentcolors-utility-blue-dark-200)" },
|
|
98
|
+
{ "token": "utility-indigo-200", "value": "var(--ng-componentcolors-utility-indigo-200)" },
|
|
99
|
+
{ "token": "utility-purple-200", "value": "var(--ng-componentcolors-utility-purple-200)" },
|
|
100
|
+
{ "token": "utility-fuchsia-200", "value": "var(--ng-componentcolors-utility-fuchsia-200)" },
|
|
101
|
+
{ "token": "utility-pink-200", "value": "var(--ng-componentcolors-utility-pink-200)" },
|
|
102
|
+
{ "token": "utility-orange-dark-200", "value": "var(--ng-componentcolors-utility-orange-dark-200)" },
|
|
103
|
+
{ "token": "utility-orange-200", "value": "var(--ng-componentcolors-utility-orange-200)" },
|
|
104
|
+
{ "token": "utility-green-200", "value": "var(--ng-componentcolors-utility-green-200)" },
|
|
105
|
+
{ "token": "utility-yellow-200", "value": "var(--ng-componentcolors-utility-yellow-200)" }
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
};
|
|
111
|
+
//# sourceMappingURL=color-palettes-data.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ChartColorPaletteConfig } from '../types/chart-color-palette.type.js';
|
|
2
|
+
export declare function resolveColorPaletteColors(cfg: ChartColorPaletteConfig | undefined, count?: number): string[] | undefined;
|
|
3
|
+
export { palettesData } from './color-palettes-data.js';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { palettesData } from './color-palettes-data.js';
|
|
2
|
+
const DEFAULT_THEME = 'default';
|
|
3
|
+
const DEFAULT_SIZE = 30;
|
|
4
|
+
const ALPHA_MAX = 1;
|
|
5
|
+
const ALPHA_MIN = 0.5;
|
|
6
|
+
function withAlpha(color, alpha) {
|
|
7
|
+
return alpha >= 1
|
|
8
|
+
? color
|
|
9
|
+
: `color-mix(in srgb, ${color} ${Math.round(alpha * 100)}%, transparent)`;
|
|
10
|
+
}
|
|
11
|
+
function extendWithAlpha(base, count) {
|
|
12
|
+
const target = count && count > 0 ? count : base.length;
|
|
13
|
+
if (target <= base.length)
|
|
14
|
+
return base.slice(0, target);
|
|
15
|
+
const cycles = Math.ceil(target / base.length);
|
|
16
|
+
const out = [];
|
|
17
|
+
for (let c = 0; c < cycles; c++) {
|
|
18
|
+
const alpha = ALPHA_MAX - ((ALPHA_MAX - ALPHA_MIN) * c) / (cycles - 1);
|
|
19
|
+
for (const color of base)
|
|
20
|
+
out.push(withAlpha(color, alpha));
|
|
21
|
+
}
|
|
22
|
+
return out.slice(0, target);
|
|
23
|
+
}
|
|
24
|
+
export function resolveColorPaletteColors(cfg, count) {
|
|
25
|
+
if (!cfg)
|
|
26
|
+
return undefined;
|
|
27
|
+
if (cfg.theme === 'custom') {
|
|
28
|
+
return cfg.customColors && cfg.customColors.length > 0
|
|
29
|
+
? extendWithAlpha(cfg.customColors, count)
|
|
30
|
+
: undefined;
|
|
31
|
+
}
|
|
32
|
+
const themeName = cfg.theme ?? DEFAULT_THEME;
|
|
33
|
+
const size = cfg.size ?? DEFAULT_SIZE;
|
|
34
|
+
const theme = palettesData.themes.find(t => t.id === themeName);
|
|
35
|
+
if (!theme)
|
|
36
|
+
return undefined;
|
|
37
|
+
const entries = theme.palettes[String(size)];
|
|
38
|
+
if (!entries || entries.length === 0)
|
|
39
|
+
return undefined;
|
|
40
|
+
return extendWithAlpha(entries.map(e => e.value), count);
|
|
41
|
+
}
|
|
42
|
+
export { palettesData } from './color-palettes-data.js';
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Palette theme names. Use 'custom' with `customColors` to supply your own array. */
|
|
2
|
+
export type ColorPaletteName = 'default' | 'custom';
|
|
3
|
+
/** Number of color variants in the palette. Ignored when `theme` is 'custom'. */
|
|
4
|
+
export type ColorPaletteSize = 15 | 30 | 50;
|
|
5
|
+
/** Color palette selection for a chart. */
|
|
6
|
+
export interface ChartColorPaletteConfig {
|
|
7
|
+
/** Palette theme. Default: 'default'. Use 'custom' with `customColors`. */
|
|
8
|
+
theme?: ColorPaletteName;
|
|
9
|
+
/** Number of color variants for built-in palettes. Default: 30. Ignored for 'custom'. */
|
|
10
|
+
size?: ColorPaletteSize;
|
|
11
|
+
/** Custom color array (hex strings). Used only when `theme` is 'custom'. Looped with alpha falloff if series count exceeds array length. */
|
|
12
|
+
customColors?: string[];
|
|
13
|
+
}
|
|
@@ -15,5 +15,7 @@ import type { ChartWaterfallConfigType } from './chart-waterfall-config.type.js'
|
|
|
15
15
|
import type { ChartMapConfigType } from './chart-map-config.type.js';
|
|
16
16
|
import type { ChartGridConfigType } from './chart-grid-config.type.js';
|
|
17
17
|
import type { PrimitiveChartConfigType } from './primitive-chart-config.type.js';
|
|
18
|
+
import type { ChartMessageConfigType } from './chart-message-config.type.js';
|
|
19
|
+
import type { ChartListConfigType } from './chart-list-config.type.js';
|
|
18
20
|
/** Core chart configs (bar, pie, …) plus all primitive series types — use with `<nile-chart>` via `chart.type`. */
|
|
19
|
-
export type ChartConfigType = ChartBarConfigType | ChartPieConfigType | ChartTrendlineConfigType | ChartAnomalyConfigType | ChartLineConfigType | ChartAreaConfigType | ChartColumnConfigType | ChartDonutConfigType | ChartScatterConfigType | ChartBubbleConfigType | ChartSplineConfigType | ChartRadarConfigType | ChartGaugeConfigType | ChartWaterfallConfigType | ChartMapConfigType | ChartGridConfigType | PrimitiveChartConfigType;
|
|
21
|
+
export type ChartConfigType = ChartMessageConfigType | ChartListConfigType | ChartBarConfigType | ChartPieConfigType | ChartTrendlineConfigType | ChartAnomalyConfigType | ChartLineConfigType | ChartAreaConfigType | ChartColumnConfigType | ChartDonutConfigType | ChartScatterConfigType | ChartBubbleConfigType | ChartSplineConfigType | ChartRadarConfigType | ChartGaugeConfigType | ChartWaterfallConfigType | ChartMapConfigType | ChartGridConfigType | PrimitiveChartConfigType;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface ChartListItemType {
|
|
2
|
+
label: string;
|
|
3
|
+
subLabel?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
iconName?: string;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
value?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
color?: string;
|
|
10
|
+
allowHtml?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface ChartListConfigType {
|
|
13
|
+
type: 'list';
|
|
14
|
+
variant?: 'plain' | 'bullet' | 'number' | 'icon' | 'checkbox';
|
|
15
|
+
items: ChartListItemType[];
|
|
16
|
+
iconName?: string;
|
|
17
|
+
iconSize?: number;
|
|
18
|
+
marker?: {
|
|
19
|
+
size?: number;
|
|
20
|
+
color?: string;
|
|
21
|
+
};
|
|
22
|
+
markerSize?: number;
|
|
23
|
+
markerColor?: string;
|
|
24
|
+
allowHtml?: boolean;
|
|
25
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Options } from 'highcharts';
|
|
2
|
+
import type { MasterDetailPoint, MasterDetailSeriesType, MasterDetailXAxisType } from '../../nile-master-detail-chart/nile-master-detail-chart.js';
|
|
3
|
+
export interface ChartMasterDetailConfigType {
|
|
4
|
+
type: 'master-detail';
|
|
5
|
+
data: MasterDetailPoint[];
|
|
6
|
+
seriesName?: string;
|
|
7
|
+
seriesColor?: string;
|
|
8
|
+
detailType?: MasterDetailSeriesType;
|
|
9
|
+
masterType?: MasterDetailSeriesType;
|
|
10
|
+
masterOnly?: boolean;
|
|
11
|
+
xAxisType?: MasterDetailXAxisType;
|
|
12
|
+
xAxisMin?: number | null;
|
|
13
|
+
xAxisMax?: number | null;
|
|
14
|
+
yAxisMin?: number | null;
|
|
15
|
+
yAxisMax?: number | null;
|
|
16
|
+
masterHeight?: string | number;
|
|
17
|
+
selectionMin?: number | null;
|
|
18
|
+
selectionMax?: number | null;
|
|
19
|
+
detailTitle?: string;
|
|
20
|
+
masterTitle?: string;
|
|
21
|
+
maskFill?: string;
|
|
22
|
+
height?: string;
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
options?: Options;
|
|
25
|
+
masterOptions?: Options;
|
|
26
|
+
showLegend?: boolean;
|
|
27
|
+
chartBg?: string;
|
|
28
|
+
chartBorderRadius?: string | number;
|
|
29
|
+
chartBorder?: string;
|
|
30
|
+
chartShadow?: string;
|
|
31
|
+
chartPadding?: string | number;
|
|
32
|
+
chartMinHeight?: string | number;
|
|
33
|
+
loadingText?: string;
|
|
34
|
+
loadingColor?: string;
|
|
35
|
+
loadingFontSize?: string | number;
|
|
36
|
+
loadingFontFamily?: string;
|
|
37
|
+
loadingBg?: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { StatusLightConfig } from '../../nile-chart-message/nile-chart-message.js';
|
|
2
|
+
export interface ChartMessageConfigType {
|
|
3
|
+
type: 'message';
|
|
4
|
+
variant?: 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
5
|
+
heading?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
statusLight?: boolean;
|
|
8
|
+
statusLightConfig?: StatusLightConfig;
|
|
9
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type { AiConfigType } from './ai-config.type.js';
|
|
2
2
|
export type { SwitchableConfigType } from './switchable-config.type.js';
|
|
3
3
|
export type { AqConfigType } from './aq-config.type.js';
|
|
4
|
+
export type { ChartColorPaletteConfig, ColorPaletteName, ColorPaletteSize, } from './chart-color-palette.type.js';
|
|
4
5
|
export type { ChartBarConfigType } from './chart-bar-config.type.js';
|
|
5
6
|
export type { ChartPieConfigType } from './chart-pie-config.type.js';
|
|
6
7
|
export type { ChartTrendlineConfigType } from './chart-trendline-config.type.js';
|
|
@@ -21,6 +22,7 @@ export type { ChartHistogramConfigType } from './chart-histogram-config.type.js'
|
|
|
21
22
|
export type { ChartBellcurveConfigType } from './chart-bellcurve-config.type.js';
|
|
22
23
|
export type { ChartBoxplotConfigType } from './chart-boxplot-config.type.js';
|
|
23
24
|
export type { ChartTimelineConfigType } from './chart-timeline-config.type.js';
|
|
25
|
+
export type { ChartMasterDetailConfigType } from './chart-master-detail-config.type.js';
|
|
24
26
|
export type { ChartDumbbellConfigType } from './chart-dumbbell-config.type.js';
|
|
25
27
|
export type { ChartDumbbellLowerConfigType } from './chart-dumbbell-lower-config.type.js';
|
|
26
28
|
export type { ChartDumbbellUpperConfigType } from './chart-dumbbell-upper-config.type.js';
|
|
@@ -4,6 +4,7 @@ import type { ChartHistogramConfigType } from './chart-histogram-config.type.js'
|
|
|
4
4
|
import type { ChartBellcurveConfigType } from './chart-bellcurve-config.type.js';
|
|
5
5
|
import type { ChartBoxplotConfigType } from './chart-boxplot-config.type.js';
|
|
6
6
|
import type { ChartTimelineConfigType } from './chart-timeline-config.type.js';
|
|
7
|
+
import type { ChartMasterDetailConfigType } from './chart-master-detail-config.type.js';
|
|
7
8
|
import type { ChartDumbbellConfigType } from './chart-dumbbell-config.type.js';
|
|
8
9
|
import type { ChartFanConfigType } from './chart-fan-config.type.js';
|
|
9
10
|
import type { ChartFunnelConfigType } from './chart-funnel-config.type.js';
|
|
@@ -34,4 +35,4 @@ import type { ChartXrangeConfigType } from './chart-xrange-config.type.js';
|
|
|
34
35
|
* Chart configs for primitive `<nile-*-chart>` elements (`el.config = { chart, aq }`).
|
|
35
36
|
* Discriminated on `chart.type`.
|
|
36
37
|
*/
|
|
37
|
-
export type PrimitiveChartConfigType = ChartInvertedAreaConfigType | ChartColumnPyramidConfigType | ChartLollipopConfigType | ChartAreaSplineConfigType | ChartAreaNegativeConfigType | ChartAreaRangeConfigType | ChartColumnRangeConfigType | ChartColumnDrilldownConfigType | ChartRadialBarConfigType | ChartVariablePieConfigType | ChartDumbbellLowerConfigType | ChartDumbbellUpperConfigType | ChartEulerConfigType | ChartPolygonConfigType | ChartVectorConfigType | ChartXrangeConfigType | ChartClusterConfigType | ChartStackedConfigType | ChartHistogramConfigType | ChartBellcurveConfigType | ChartBoxplotConfigType | ChartTimelineConfigType | ChartDumbbellConfigType | ChartFanConfigType | ChartFunnelConfigType | ChartOrganizationConfigType | ChartLineColumnConfigType | ChartHeatmapConfigType | ChartFlameConfigType | ChartSpiderwebConfigType | ChartKpiConfigType | ChartFilterConfigType;
|
|
38
|
+
export type PrimitiveChartConfigType = ChartInvertedAreaConfigType | ChartColumnPyramidConfigType | ChartLollipopConfigType | ChartAreaSplineConfigType | ChartAreaNegativeConfigType | ChartAreaRangeConfigType | ChartColumnRangeConfigType | ChartColumnDrilldownConfigType | ChartRadialBarConfigType | ChartVariablePieConfigType | ChartDumbbellLowerConfigType | ChartDumbbellUpperConfigType | ChartEulerConfigType | ChartPolygonConfigType | ChartVectorConfigType | ChartXrangeConfigType | ChartClusterConfigType | ChartStackedConfigType | ChartHistogramConfigType | ChartBellcurveConfigType | ChartBoxplotConfigType | ChartTimelineConfigType | ChartMasterDetailConfigType | ChartDumbbellConfigType | ChartFanConfigType | ChartFunnelConfigType | ChartOrganizationConfigType | ChartLineColumnConfigType | ChartHeatmapConfigType | ChartFlameConfigType | ChartSpiderwebConfigType | ChartKpiConfigType | ChartFilterConfigType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { NileChart } from './nile-chart.js';
|
|
2
|
-
export type { NileChartConfig, NileBarChartConfig, NilePieChartConfig, NileTrendlineChartConfig, NileAnomalyChartConfig, NileLineChartConfig, NileAreaChartConfig, NileColumnChartConfig, NileDonutChartConfig, NileScatterChartConfig, NileBubbleChartConfig, NileSplineChartConfig, NileRadarChartConfig, NileGaugeChartConfig, NileWaterfallChartConfig, NileKpiChartConfig, NileMapChartConfig, ChartType, SwitchAggregation, NileAiConfig, NileChartMenuConfig, NileChartMenuItem, } from './nile-chart-config.js';
|
|
2
|
+
export type { NileChartConfig, NileBarChartConfig, NilePieChartConfig, NileTrendlineChartConfig, NileAnomalyChartConfig, NileLineChartConfig, NileAreaChartConfig, NileColumnChartConfig, NileDonutChartConfig, NileScatterChartConfig, NileBubbleChartConfig, NileSplineChartConfig, NileRadarChartConfig, NileGaugeChartConfig, NileWaterfallChartConfig, NileMasterDetailChartConfig, NileKpiChartConfig, NileMapChartConfig, NileListChartConfig, NileMessageChartConfig, ChartType, SwitchAggregation, NileAiConfig, NileChartMenuConfig, NileChartMenuItem, } from './nile-chart-config.js';
|
|
3
3
|
export { convertConfig, registerAdapter } from '../internal/chart-adapters.js';
|
|
4
4
|
export { nileChartConfig } from './nile-chart-config-builder.js';
|
|
5
|
-
export type { AiConfigType, SwitchableConfigType, AqConfigType, ChartBarConfigType, ChartPieConfigType, ChartTrendlineConfigType, ChartAnomalyConfigType, ChartLineConfigType, ChartAreaConfigType, ChartInvertedAreaConfigType, ChartColumnConfigType, ChartDonutConfigType, ChartScatterConfigType, ChartBubbleConfigType, ChartSplineConfigType, ChartRadarConfigType, ChartGaugeConfigType, ChartWaterfallConfigType, ChartClusterConfigType, ChartStackedConfigType, ChartHistogramConfigType, ChartBellcurveConfigType, ChartBoxplotConfigType, ChartTimelineConfigType, ChartDumbbellConfigType, ChartDumbbellLowerConfigType, ChartDumbbellUpperConfigType, ChartColumnPyramidConfigType, ChartLollipopConfigType, ChartAreaSplineConfigType, ChartAreaNegativeConfigType, ChartAreaRangeConfigType, ChartColumnRangeConfigType, ChartColumnDrilldownConfigType, ChartRadialBarConfigType, ChartVariablePieConfigType, ChartEulerConfigType, ChartPolygonConfigType, ChartVectorConfigType, ChartXrangeConfigType, ChartFanConfigType, ChartFunnelConfigType, ChartOrganizationConfigType, ChartLineColumnConfigType, ChartHeatmapConfigType, ChartFlameConfigType, ChartSpiderwebConfigType, ChartKpiConfigType, ChartKpiPropsType, ChartMapConfigType, PrimitiveChartConfigType, SeparatedChartConfigInputType, AllChartConfigType, ChartConfigType, NileChartConfigInputType, ChartAiPanelPayload, ChartAiSenderPayload, NileAiPanelConfigInputType, NileAiSenderConfigInputType, } from '../internal/types/index.js';
|
|
5
|
+
export type { AiConfigType, SwitchableConfigType, AqConfigType, ChartColorPaletteConfig, ColorPaletteName, ColorPaletteSize, ChartBarConfigType, ChartPieConfigType, ChartTrendlineConfigType, ChartAnomalyConfigType, ChartLineConfigType, ChartAreaConfigType, ChartInvertedAreaConfigType, ChartColumnConfigType, ChartDonutConfigType, ChartScatterConfigType, ChartBubbleConfigType, ChartSplineConfigType, ChartRadarConfigType, ChartGaugeConfigType, ChartWaterfallConfigType, ChartClusterConfigType, ChartStackedConfigType, ChartHistogramConfigType, ChartBellcurveConfigType, ChartBoxplotConfigType, ChartTimelineConfigType, ChartMasterDetailConfigType, ChartDumbbellConfigType, ChartDumbbellLowerConfigType, ChartDumbbellUpperConfigType, ChartColumnPyramidConfigType, ChartLollipopConfigType, ChartAreaSplineConfigType, ChartAreaNegativeConfigType, ChartAreaRangeConfigType, ChartColumnRangeConfigType, ChartColumnDrilldownConfigType, ChartRadialBarConfigType, ChartVariablePieConfigType, ChartEulerConfigType, ChartPolygonConfigType, ChartVectorConfigType, ChartXrangeConfigType, ChartFanConfigType, ChartFunnelConfigType, ChartOrganizationConfigType, ChartLineColumnConfigType, ChartHeatmapConfigType, ChartFlameConfigType, ChartSpiderwebConfigType, ChartKpiConfigType, ChartKpiPropsType, ChartMapConfigType, PrimitiveChartConfigType, SeparatedChartConfigInputType, AllChartConfigType, ChartConfigType, NileChartConfigInputType, ChartAiPanelPayload, ChartAiSenderPayload, NileAiPanelConfigInputType, NileAiSenderConfigInputType, } from '../internal/types/index.js';
|
|
@@ -17,6 +17,8 @@ import type { GaugeBand } from '../nile-gauge-chart/nile-gauge-chart.js';
|
|
|
17
17
|
import type { WaterfallDataPoint } from '../nile-waterfall-chart/nile-waterfall-chart.js';
|
|
18
18
|
import type { KpiVariant, KpiValueFormat, KpiNumberSystem, SparklineType, TrendDirection } from '../nile-kpi-chart/nile-kpi-chart.js';
|
|
19
19
|
import type { MapChartDataPoint } from '../nile-map-chart/nile-map-chart.js';
|
|
20
|
+
import type { StatusLightConfig } from '../nile-chart-message/nile-chart-message.js';
|
|
21
|
+
import type { ChartListVariant, ChartListItem, ChartListMarker } from '../nile-chart-list/nile-chart-list.js';
|
|
20
22
|
import type { NileDataGridColumn, ColumnResizeMode, ColumnResizeDirection, ColumnSizingState, ColumnPinningState, VisibilityState, RowSelectionState, ColumnOrderState, PaginationState } from '@aquera/nile-data-grid';
|
|
21
23
|
import type { StackedChartSeriesData } from '../nile-stacked-chart/nile-stacked-chart.js';
|
|
22
24
|
import type { ClusterChartSeriesData } from '../nile-cluster-chart/nile-cluster-chart.js';
|
|
@@ -24,6 +26,7 @@ import type { HistogramSamples } from '../nile-histogram-chart/nile-histogram-ch
|
|
|
24
26
|
import type { BellcurveSamples } from '../nile-bellcurve-chart/nile-bellcurve-chart.js';
|
|
25
27
|
import type { BoxplotSeriesData } from '../nile-boxplot-chart/nile-boxplot-chart.js';
|
|
26
28
|
import type { TimelineEvent } from '../nile-timeline-chart/nile-timeline-chart.js';
|
|
29
|
+
import type { MasterDetailPoint } from '../nile-master-detail-chart/nile-master-detail-chart.js';
|
|
27
30
|
import type { DumbbellPoint } from '../nile-dumbbell-chart/nile-dumbbell-chart.js';
|
|
28
31
|
import type { FanLinePoint, FanUncertaintyBand } from '../nile-fan-chart/nile-fan-chart.js';
|
|
29
32
|
import type { FunnelDataPoint } from '../nile-funnel-chart/nile-funnel-chart.js';
|
|
@@ -46,6 +49,7 @@ import type { PolygonSeriesConfig } from '../nile-polygon-chart/nile-polygon-cha
|
|
|
46
49
|
import type { VectorDataPoint } from '../nile-vector-chart/nile-vector-chart.js';
|
|
47
50
|
import type { XrangeDataPoint } from '../nile-xrange-chart/nile-xrange-chart.js';
|
|
48
51
|
import type { LineColumnSeriesPart } from '../nile-line-column-chart/nile-line-column-chart.js';
|
|
52
|
+
import type { ChartColorPaletteConfig } from '../internal/types/chart-color-palette.type.js';
|
|
49
53
|
export type SwitchAggregation = 'by-category' | 'by-series' | 'flatten';
|
|
50
54
|
/**
|
|
51
55
|
* A built-in menu action (fullscreen, print, or a download).
|
|
@@ -157,6 +161,8 @@ export interface NileChartConfigBase {
|
|
|
157
161
|
menu?: NileChartMenuConfig;
|
|
158
162
|
menuItems?: NileChartMenuItem[];
|
|
159
163
|
legend?: LegendConfig;
|
|
164
|
+
/** Color palette applied to the chart's series. */
|
|
165
|
+
colorPalette?: ChartColorPaletteConfig;
|
|
160
166
|
chartBg?: string;
|
|
161
167
|
chartBorderRadius?: string | number;
|
|
162
168
|
chartBorder?: string;
|
|
@@ -443,6 +449,28 @@ export interface NileTimelineChartConfig extends NileChartConfigBase {
|
|
|
443
449
|
inverted?: boolean;
|
|
444
450
|
alternateLabels?: boolean;
|
|
445
451
|
}
|
|
452
|
+
export interface NileMasterDetailChartConfig extends NileChartConfigBase {
|
|
453
|
+
type: 'master-detail';
|
|
454
|
+
data: MasterDetailPoint[];
|
|
455
|
+
seriesName?: string;
|
|
456
|
+
seriesColor?: string;
|
|
457
|
+
detailType?: string;
|
|
458
|
+
masterType?: string;
|
|
459
|
+
/** Render only the master (overview) pane — no detail chart. */
|
|
460
|
+
masterOnly?: boolean;
|
|
461
|
+
xAxisType?: 'datetime' | 'linear' | 'logarithmic' | 'category';
|
|
462
|
+
xAxisMin?: number | null;
|
|
463
|
+
xAxisMax?: number | null;
|
|
464
|
+
yAxisMin?: number | null;
|
|
465
|
+
yAxisMax?: number | null;
|
|
466
|
+
masterHeight?: string | number;
|
|
467
|
+
selectionMin?: number | null;
|
|
468
|
+
selectionMax?: number | null;
|
|
469
|
+
detailTitle?: string;
|
|
470
|
+
masterTitle?: string;
|
|
471
|
+
maskFill?: string;
|
|
472
|
+
masterOptions?: import('highcharts').Options;
|
|
473
|
+
}
|
|
446
474
|
export interface NileFanChartConfig extends NileChartConfigBase {
|
|
447
475
|
type: 'fan';
|
|
448
476
|
lineData: FanLinePoint[];
|
|
@@ -596,5 +624,24 @@ export interface NileFilterChartConfig extends NileChartConfigBase {
|
|
|
596
624
|
type: 'filter';
|
|
597
625
|
controls: FilterControl[];
|
|
598
626
|
}
|
|
627
|
+
export interface NileMessageChartConfig extends NileChartConfigBase {
|
|
628
|
+
type: 'message';
|
|
629
|
+
variant?: 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
630
|
+
heading?: string;
|
|
631
|
+
description?: string;
|
|
632
|
+
statusLight?: boolean;
|
|
633
|
+
statusLightConfig?: StatusLightConfig;
|
|
634
|
+
}
|
|
635
|
+
export interface NileListChartConfig extends NileChartConfigBase {
|
|
636
|
+
type: 'list';
|
|
637
|
+
variant?: ChartListVariant;
|
|
638
|
+
items: ChartListItem[];
|
|
639
|
+
iconName?: string;
|
|
640
|
+
iconSize?: number;
|
|
641
|
+
marker?: ChartListMarker;
|
|
642
|
+
markerSize?: number;
|
|
643
|
+
markerColor?: string;
|
|
644
|
+
allowHtml?: boolean;
|
|
645
|
+
}
|
|
599
646
|
/** Discriminated union of every named chart config — use for typed `<nile-chart>` configs. */
|
|
600
|
-
export type NileChartConfig = NileBarChartConfig | NilePieChartConfig | NileLineChartConfig | NileAreaChartConfig | NileColumnChartConfig | NileDonutChartConfig | NileScatterChartConfig | NileBubbleChartConfig | NileSplineChartConfig | NileRadarChartConfig | NileGaugeChartConfig | NileWaterfallChartConfig | NileMapChartConfig | NileGridChartConfig | NileTrendlineChartConfig | NileAnomalyChartConfig | NileHistogramChartConfig | NileBellcurveChartConfig | NileBoxplotChartConfig | NileStackedChartConfig | NileClusterChartConfig | NileColumnPyramidChartConfig | NileColumnRangeChartConfig | NileColumnDrilldownChartConfig | NileLollipopChartConfig | NileInvertedAreaChartConfig | NileAreaSplineChartConfig | NileAreaNegativeChartConfig | NileAreaRangeChartConfig | NileDumbbellChartConfig | NileDumbbellLowerChartConfig | NileDumbbellUpperChartConfig | NileRadialBarChartConfig | NileSpiderwebChartConfig | NileTimelineChartConfig | NileFanChartConfig | NileFunnelChartConfig | NileOrganizationChartConfig | NileHeatmapChartConfig | NileFlameChartConfig | NileVariablePieChartConfig | NileEulerChartConfig | NilePolygonChartConfig | NileVectorChartConfig | NileXrangeChartConfig | NileLineColumnChartConfig | NileKpiChartConfig | NileFilterChartConfig;
|
|
647
|
+
export type NileChartConfig = NileBarChartConfig | NilePieChartConfig | NileLineChartConfig | NileAreaChartConfig | NileColumnChartConfig | NileDonutChartConfig | NileScatterChartConfig | NileBubbleChartConfig | NileSplineChartConfig | NileRadarChartConfig | NileGaugeChartConfig | NileWaterfallChartConfig | NileMapChartConfig | NileGridChartConfig | NileTrendlineChartConfig | NileAnomalyChartConfig | NileHistogramChartConfig | NileBellcurveChartConfig | NileBoxplotChartConfig | NileStackedChartConfig | NileClusterChartConfig | NileColumnPyramidChartConfig | NileColumnRangeChartConfig | NileColumnDrilldownChartConfig | NileLollipopChartConfig | NileInvertedAreaChartConfig | NileAreaSplineChartConfig | NileAreaNegativeChartConfig | NileAreaRangeChartConfig | NileDumbbellChartConfig | NileDumbbellLowerChartConfig | NileDumbbellUpperChartConfig | NileRadialBarChartConfig | NileSpiderwebChartConfig | NileTimelineChartConfig | NileMasterDetailChartConfig | NileFanChartConfig | NileFunnelChartConfig | NileOrganizationChartConfig | NileHeatmapChartConfig | NileFlameChartConfig | NileVariablePieChartConfig | NileEulerChartConfig | NilePolygonChartConfig | NileVectorChartConfig | NileXrangeChartConfig | NileLineColumnChartConfig | NileKpiChartConfig | NileFilterChartConfig | NileMessageChartConfig | NileListChartConfig;
|
|
@@ -5,7 +5,7 @@ const SKELETON_TYPE_MAP = {
|
|
|
5
5
|
columnRange: 'columns', columnDrilldown: 'columns', lollipop: 'columns',
|
|
6
6
|
line: 'line', area: 'line', spline: 'line', areaSpline: 'line',
|
|
7
7
|
invertedArea: 'line', areaNegative: 'line', areaRange: 'line',
|
|
8
|
-
fan: 'line', bellcurve: 'line',
|
|
8
|
+
fan: 'line', bellcurve: 'line', 'master-detail': 'line',
|
|
9
9
|
trendline: 'trendline', anomaly: 'anomaly',
|
|
10
10
|
pie: 'pie', donut: 'pie', variablePie: 'pie', radialBar: 'pie', gauge: 'pie', euler: 'pie',
|
|
11
11
|
scatter: 'scatter', bubble: 'scatter', dumbbell: 'scatter', boxplot: 'scatter',
|
|
@@ -23,6 +23,7 @@ import '../nile-histogram-chart/index.js';
|
|
|
23
23
|
import '../nile-bellcurve-chart/index.js';
|
|
24
24
|
import '../nile-boxplot-chart/index.js';
|
|
25
25
|
import '../nile-timeline-chart/index.js';
|
|
26
|
+
import '../nile-master-detail-chart/index.js';
|
|
26
27
|
import '../nile-dumbbell-chart/index.js';
|
|
27
28
|
import '../nile-dumbbell-lower-chart/index.js';
|
|
28
29
|
import '../nile-dumbbell-upper-chart/index.js';
|
|
@@ -49,7 +50,10 @@ import '../nile-vector-chart/index.js';
|
|
|
49
50
|
import '../nile-xrange-chart/index.js';
|
|
50
51
|
import '../nile-kpi-chart/index.js';
|
|
51
52
|
import '../nile-filter-chart/index.js';
|
|
53
|
+
import '../nile-chart-message/nile-chart-message.js';
|
|
54
|
+
import '../nile-chart-list/nile-chart-list.js';
|
|
52
55
|
import '../nile-ai-panel/index.js';
|
|
56
|
+
import '@aquera/nile-elements/nile-tooltip';
|
|
53
57
|
export declare class NileChart extends NileElement {
|
|
54
58
|
static styles: CSSResultGroup;
|
|
55
59
|
private _headerTipEl;
|
|
@@ -95,6 +99,11 @@ export declare class NileChart extends NileElement {
|
|
|
95
99
|
/** True when elements are projected into `header-actions` (used to show the header row). */
|
|
96
100
|
private hasHeaderActionsSlot;
|
|
97
101
|
private aiPanel;
|
|
102
|
+
private masterDetailChart;
|
|
103
|
+
/** True while the inner master-detail chart is zoomed — drives the header
|
|
104
|
+
* "Reset zoom" button. Reflected from the chart's `nile-master-detail-zoom`. */
|
|
105
|
+
private masterZoomed;
|
|
106
|
+
private onMasterZoom;
|
|
98
107
|
private get effectiveSummary();
|
|
99
108
|
/** AI panel shows when ai.enabled is true OR when a summary is provided. */
|
|
100
109
|
private get aiEnabled();
|