@aquera/nile-visualization 2.9.20 → 2.9.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +8 -0
  2. package/dist/src/index.d.ts +8 -2
  3. package/dist/src/index.js +3 -0
  4. package/dist/src/internal/types/chart-config.type.d.ts +3 -1
  5. package/dist/src/internal/types/chart-list-config.type.d.ts +25 -0
  6. package/dist/src/internal/types/chart-list-config.type.js +2 -0
  7. package/dist/src/internal/types/chart-master-detail-config.type.d.ts +38 -0
  8. package/dist/src/internal/types/chart-master-detail-config.type.js +2 -0
  9. package/dist/src/internal/types/chart-message-config.type.d.ts +9 -0
  10. package/dist/src/internal/types/chart-message-config.type.js +2 -0
  11. package/dist/src/internal/types/index.d.ts +1 -0
  12. package/dist/src/internal/types/primitive-chart-config.type.d.ts +2 -1
  13. package/dist/src/nile-chart/index.d.ts +2 -2
  14. package/dist/src/nile-chart/nile-chart-config.d.ts +45 -1
  15. package/dist/src/nile-chart/nile-chart-skeleton.js +1 -1
  16. package/dist/src/nile-chart/nile-chart.css.js +1 -0
  17. package/dist/src/nile-chart/nile-chart.d.ts +9 -0
  18. package/dist/src/nile-chart/nile-chart.js +99 -1
  19. package/dist/src/nile-chart-list/index.d.ts +2 -0
  20. package/dist/src/nile-chart-list/index.js +2 -0
  21. package/dist/src/nile-chart-list/nile-chart-list.css.d.ts +12 -0
  22. package/dist/src/nile-chart-list/nile-chart-list.css.js +126 -0
  23. package/dist/src/nile-chart-list/nile-chart-list.d.ts +60 -0
  24. package/dist/src/nile-chart-list/nile-chart-list.js +187 -0
  25. package/dist/src/nile-chart-message/index.d.ts +2 -0
  26. package/dist/src/nile-chart-message/index.js +2 -0
  27. package/dist/src/nile-chart-message/nile-chart-message.css.d.ts +12 -0
  28. package/dist/src/nile-chart-message/nile-chart-message.css.js +108 -0
  29. package/dist/src/nile-chart-message/nile-chart-message.d.ts +35 -0
  30. package/dist/src/nile-chart-message/nile-chart-message.js +116 -0
  31. package/dist/src/nile-master-detail-chart/index.d.ts +2 -0
  32. package/dist/src/nile-master-detail-chart/index.js +2 -0
  33. package/dist/src/nile-master-detail-chart/nile-master-detail-chart.css.d.ts +1 -0
  34. package/dist/src/nile-master-detail-chart/nile-master-detail-chart.css.js +95 -0
  35. package/dist/src/nile-master-detail-chart/nile-master-detail-chart.d.ts +93 -0
  36. package/dist/src/nile-master-detail-chart/nile-master-detail-chart.js +604 -0
  37. package/package.json +6 -3
@@ -0,0 +1,604 @@
1
+ import { __decorate } from "tslib";
2
+ import { customElement, property, query, state } from 'lit/decorators.js';
3
+ import { html, nothing } from 'lit';
4
+ import '@aquera/nile-elements/nile-tooltip';
5
+ import { getHighcharts } from '../internal/highcharts-provider.js';
6
+ import NileElement from '../internal/nile-element.js';
7
+ import { applySeparatedChartConfig } from '../internal/separated-chart-config.js';
8
+ import { deepMerge } from '../internal/utils.js';
9
+ import { styles } from './nile-master-detail-chart.css.js';
10
+ export const MASTER_DETAIL_SERIES_TYPES = [
11
+ 'area',
12
+ 'line',
13
+ 'spline',
14
+ 'areaspline',
15
+ 'column',
16
+ 'bar',
17
+ ];
18
+ export const MASTER_DETAIL_X_AXIS_TYPES = ['datetime', 'linear', 'logarithmic', 'category'];
19
+ let NileMasterDetailChart = class NileMasterDetailChart extends NileElement {
20
+ constructor() {
21
+ super(...arguments);
22
+ this._hc = null;
23
+ this.detailChart = null;
24
+ this.masterChart = null;
25
+ this.resizeObserver = null;
26
+ this.zoomed = false;
27
+ // Split mode starts with the master pane hidden; the toggle button reveals it.
28
+ this.masterCollapsed = true;
29
+ this.config = null;
30
+ this.chartTitle = '';
31
+ this.chartSubtitle = '';
32
+ this.data = [];
33
+ this.seriesName = '';
34
+ this.seriesColor = '';
35
+ this.detailType = 'area';
36
+ this.masterType = 'area';
37
+ this.masterOnly = false;
38
+ this.height = '600px';
39
+ this.masterHeight = 100;
40
+ this.xAxisType = 'datetime';
41
+ this.xAxisMin = null;
42
+ this.xAxisMax = null;
43
+ this.yAxisMin = null;
44
+ this.yAxisMax = null;
45
+ this.selectionMin = null;
46
+ this.selectionMax = null;
47
+ this.detailTitle = '';
48
+ this.masterTitle = '';
49
+ this.maskFill = 'rgba(0,0,0,0.2)';
50
+ this.options = {};
51
+ this.masterOptions = {};
52
+ this.loading = false;
53
+ this.legend = null;
54
+ this.chartBg = '';
55
+ this.chartBorderRadius = '';
56
+ this.chartBorder = '';
57
+ this.chartShadow = '';
58
+ this.chartPadding = '';
59
+ this.chartMinHeight = '';
60
+ this.loadingText = 'Loading...';
61
+ this.loadingColor = '';
62
+ this.loadingFontSize = '';
63
+ this.loadingFontFamily = '';
64
+ this.loadingBg = '';
65
+ }
66
+ setZoomed(value) {
67
+ if (this.zoomed === value)
68
+ return;
69
+ this.zoomed = value;
70
+ this.emit('nile-master-detail-zoom', { zoomed: value });
71
+ }
72
+ async toggleMasterCollapsed() {
73
+ this.masterCollapsed = !this.masterCollapsed;
74
+ if (!this.masterCollapsed) {
75
+ await this.updateComplete;
76
+ this.masterChart?.reflow();
77
+ }
78
+ }
79
+ _cssLength(val) {
80
+ return typeof val === 'number'
81
+ ? (Number.isFinite(val) ? `${val}px` : '')
82
+ : String(val ?? '').trim();
83
+ }
84
+ _syncCssVars() {
85
+ const set = (prop, val) => {
86
+ const s = this._cssLength(val);
87
+ if (s)
88
+ this.style.setProperty(prop, s);
89
+ else
90
+ this.style.removeProperty(prop);
91
+ };
92
+ set('--nile-chart-bg', this.chartBg);
93
+ set('--nile-chart-border-radius', this.chartBorderRadius);
94
+ set('--nile-chart-border', this.chartBorder);
95
+ set('--nile-chart-shadow', this.chartShadow);
96
+ set('--nile-chart-padding', this.chartPadding);
97
+ set('--nile-chart-min-height', this.chartMinHeight);
98
+ set('--nile-master-detail-master-height', this.masterHeight);
99
+ set('--nile-chart-loading-color', this.loadingColor);
100
+ set('--nile-chart-loading-font-size', this.loadingFontSize);
101
+ set('--nile-chart-loading-font-family', this.loadingFontFamily);
102
+ set('--nile-chart-loading-bg', this.loadingBg);
103
+ const h = this._cssLength(this.height);
104
+ if (h)
105
+ this.style.height = h;
106
+ else
107
+ this.style.removeProperty('height');
108
+ }
109
+ applyConfig(cfg) {
110
+ applySeparatedChartConfig(this, cfg);
111
+ }
112
+ connectedCallback() {
113
+ super.connectedCallback();
114
+ if (this.config)
115
+ this.applyConfig(this.config);
116
+ }
117
+ disconnectedCallback() {
118
+ super.disconnectedCallback();
119
+ this.destroyCharts();
120
+ this.resizeObserver?.disconnect();
121
+ this.resizeObserver = null;
122
+ }
123
+ firstUpdated() {
124
+ this._syncCssVars();
125
+ this.initCharts();
126
+ this.setupResizeObserver();
127
+ }
128
+ updated(changedProperties) {
129
+ if (changedProperties.has('config') && this.config) {
130
+ this.applyConfig(this.config);
131
+ return;
132
+ }
133
+ if (changedProperties.has('masterOnly')) {
134
+ this.destroyCharts();
135
+ if (!this.loading)
136
+ this.initCharts();
137
+ return;
138
+ }
139
+ const props = [
140
+ 'data',
141
+ 'options',
142
+ 'masterOptions',
143
+ 'height',
144
+ 'masterHeight',
145
+ 'seriesName',
146
+ 'seriesColor',
147
+ 'detailType',
148
+ 'masterType',
149
+ 'xAxisType',
150
+ 'xAxisMin',
151
+ 'xAxisMax',
152
+ 'yAxisMin',
153
+ 'yAxisMax',
154
+ 'selectionMin',
155
+ 'selectionMax',
156
+ 'detailTitle',
157
+ 'masterTitle',
158
+ 'maskFill',
159
+ 'legend',
160
+ 'loading',
161
+ ];
162
+ const cssVarProps = ['height', 'chartBg', 'chartBorderRadius', 'chartBorder', 'chartShadow', 'chartPadding', 'chartMinHeight',
163
+ 'masterHeight', 'loadingText', 'loadingColor', 'loadingFontSize', 'loadingFontFamily', 'loadingBg'];
164
+ if (cssVarProps.some(p => changedProperties.has(p)))
165
+ this._syncCssVars();
166
+ const objectProps = new Set(['data', 'options', 'masterOptions', 'legend']);
167
+ const reallyChanged = (p) => {
168
+ if (!changedProperties.has(p))
169
+ return false;
170
+ if (!objectProps.has(p))
171
+ return true;
172
+ const oldV = changedProperties.get(p);
173
+ const newV = this[p];
174
+ try {
175
+ return JSON.stringify(oldV) !== JSON.stringify(newV);
176
+ }
177
+ catch {
178
+ return oldV !== newV;
179
+ }
180
+ };
181
+ if (!props.some(reallyChanged))
182
+ return;
183
+ if (this.loading) {
184
+ this.destroyCharts();
185
+ return;
186
+ }
187
+ if (!this._typesValid) {
188
+ this.destroyCharts();
189
+ this.initCharts();
190
+ return;
191
+ }
192
+ const ready = this.masterChart && (this.masterOnly || this.detailChart);
193
+ if (ready) {
194
+ if (this.detailChart)
195
+ this.detailChart.update(this.buildDetailOptions(), true, true);
196
+ this.masterChart.update(this.buildMasterOptions(), true, true);
197
+ this.setZoomed(false);
198
+ const { min, max } = this.defaultSelection();
199
+ this.applySelection(min, max);
200
+ }
201
+ else {
202
+ this.initCharts();
203
+ }
204
+ }
205
+ setupResizeObserver() {
206
+ const target = this.detailContainer ?? this.masterContainer;
207
+ if (!target)
208
+ return;
209
+ this.resizeObserver = new ResizeObserver(() => {
210
+ this.detailChart?.reflow();
211
+ this.masterChart?.reflow();
212
+ });
213
+ this.resizeObserver.observe(target);
214
+ }
215
+ mapData() {
216
+ return this.data.map(d => ({ x: d.x, y: d.y }));
217
+ }
218
+ dataExtremes() {
219
+ const xs = this.data.map(p => p.x);
220
+ return {
221
+ dataMin: xs.length ? Math.min(...xs) : 0,
222
+ dataMax: xs.length ? Math.max(...xs) : 0,
223
+ };
224
+ }
225
+ pointStep(xs) {
226
+ let step = Infinity;
227
+ for (let i = 1; i < xs.length; i++)
228
+ step = Math.min(step, xs[i] - xs[i - 1]);
229
+ return Number.isFinite(step) && step > 0 ? step : 0;
230
+ }
231
+ get _isCategoricalMaster() {
232
+ return this.masterType === 'column' || this.masterType === 'bar';
233
+ }
234
+ get _typesValid() {
235
+ const valid = (t) => MASTER_DETAIL_SERIES_TYPES.includes(t);
236
+ return valid(this.masterType) && (this.masterOnly || valid(this.detailType));
237
+ }
238
+ _zoomWindow(min, max) {
239
+ if (!this._isCategoricalMaster || min !== max)
240
+ return { min, max };
241
+ const eps = this.pointStep(this.data.map(p => p.x).sort((a, b) => a - b)) * 1e-4;
242
+ return { min: min - eps, max: max + eps };
243
+ }
244
+ _masterMinRange() {
245
+ const step = this.pointStep(this.data.map(p => p.x).sort((a, b) => a - b));
246
+ if (!step)
247
+ return undefined;
248
+ return this._isCategoricalMaster ? step * 1e-5 : step;
249
+ }
250
+ snapSelection(min, max) {
251
+ const xs = this.data.map(p => p.x).sort((a, b) => a - b);
252
+ if (xs.length === 0)
253
+ return { min, max };
254
+ const step = this.pointStep(xs);
255
+ const nearest = (v) => xs.reduce((a, b) => (Math.abs(b - v) < Math.abs(a - v) ? b : a));
256
+ if (step && max - min < step * 1.5) {
257
+ const c = nearest((min + max) / 2);
258
+ return { min: c, max: c };
259
+ }
260
+ const lo = nearest(min);
261
+ const hi = nearest(max);
262
+ return { min: Math.min(lo, hi), max: Math.max(lo, hi) };
263
+ }
264
+ defaultSelection() {
265
+ const { dataMin, dataMax } = this.dataExtremes();
266
+ return {
267
+ min: this.selectionMin ?? dataMin,
268
+ max: this.selectionMax ?? dataMax,
269
+ };
270
+ }
271
+ buildDetailOptions() {
272
+ const { min, max } = this.defaultSelection();
273
+ const detailData = this.mapData().filter(p => {
274
+ const x = p.x;
275
+ return x >= min && x <= max;
276
+ });
277
+ return deepMerge({
278
+ chart: { type: this.detailType, reflow: true },
279
+ title: { text: this.detailTitle || undefined },
280
+ xAxis: {
281
+ type: this.xAxisType,
282
+ min: this.xAxisMin ?? undefined,
283
+ max: this.xAxisMax ?? undefined,
284
+ },
285
+ yAxis: {
286
+ title: { text: undefined },
287
+ min: this.yAxisMin ?? undefined,
288
+ max: this.yAxisMax ?? undefined,
289
+ },
290
+ tooltip: {
291
+ headerFormat: '<b>{series.name}</b><br>',
292
+ pointFormat: '{point.x} : {point.y}',
293
+ shared: true,
294
+ },
295
+ legend: { enabled: false },
296
+ plotOptions: {
297
+ series: {
298
+ marker: { enabled: false, states: { hover: { enabled: true, radius: 3 } } },
299
+ },
300
+ },
301
+ series: [
302
+ {
303
+ type: this.detailType,
304
+ name: this.seriesName || 'Series',
305
+ data: detailData,
306
+ color: this.seriesColor || undefined,
307
+ },
308
+ ],
309
+ credits: { enabled: false },
310
+ }, this.options);
311
+ }
312
+ buildMasterOptions() {
313
+ const self = this;
314
+ const mo = this.masterOnly;
315
+ return deepMerge({
316
+ chart: {
317
+ type: this.masterType,
318
+ height: mo ? undefined : (parseFloat(String(this.masterHeight)) || 100),
319
+ reflow: mo,
320
+ zoomType: 'x',
321
+ events: {
322
+ selection(event) {
323
+ const ext = event.xAxis?.[0];
324
+ if (!ext)
325
+ return false;
326
+ if (mo) {
327
+ const sel = self._isCategoricalMaster
328
+ ? self.snapSelection(ext.min, ext.max)
329
+ : { min: ext.min, max: ext.max };
330
+ const win = self._zoomWindow(sel.min, sel.max);
331
+ self.masterChart?.xAxis[0].setExtremes(win.min, win.max);
332
+ self.setZoomed(true);
333
+ self.emit('nile-chart-selection', sel);
334
+ return false;
335
+ }
336
+ self.emit('nile-chart-selection', { min: ext.min, max: ext.max });
337
+ self.applySelection(ext.min, ext.max);
338
+ self.setZoomed(true);
339
+ return false;
340
+ },
341
+ },
342
+ },
343
+ title: { text: this.masterTitle || undefined },
344
+ xAxis: {
345
+ type: this.xAxisType,
346
+ min: this.xAxisMin ?? undefined,
347
+ max: this.xAxisMax ?? undefined,
348
+ minRange: mo ? this._masterMinRange() : undefined,
349
+ plotBands: [],
350
+ },
351
+ yAxis: {
352
+ gridLineWidth: mo ? 1 : 0,
353
+ labels: { enabled: mo },
354
+ title: { text: null },
355
+ // Master defaulted to a hard floor of 0 before yAxisMin/yAxisMax existed —
356
+ // preserve that default when unset, but let it be overridden either way.
357
+ min: this.yAxisMin ?? 0,
358
+ max: this.yAxisMax ?? undefined,
359
+ },
360
+ tooltip: { enabled: mo },
361
+ legend: { enabled: false },
362
+ credits: { enabled: false },
363
+ plotOptions: {
364
+ series: {
365
+ lineWidth: 1,
366
+ marker: { enabled: false, states: { hover: { enabled: mo, radius: 3 } } },
367
+ enableMouseTracking: mo,
368
+ },
369
+ },
370
+ series: [
371
+ {
372
+ type: this.masterType,
373
+ name: this.seriesName || 'Series',
374
+ data: this.mapData(),
375
+ color: this.seriesColor || undefined,
376
+ },
377
+ ],
378
+ }, this.masterOptions);
379
+ }
380
+ resetZoom() {
381
+ if (!this.masterChart)
382
+ return;
383
+ const { dataMin, dataMax } = this.dataExtremes();
384
+ if (this.masterOnly) {
385
+ this.masterChart.xAxis[0].setExtremes(dataMin, dataMax);
386
+ }
387
+ else {
388
+ const wasCollapsed = this.masterCollapsed;
389
+ this.masterCollapsed = false;
390
+ this.applySelection(dataMin, dataMax);
391
+ if (wasCollapsed)
392
+ this.updateComplete.then(() => this.masterChart?.reflow());
393
+ }
394
+ this.setZoomed(false);
395
+ this.emit('nile-chart-selection', { min: dataMin, max: dataMax });
396
+ }
397
+ applySelection(min, max) {
398
+ if (!this.masterChart)
399
+ return;
400
+ if (this.masterOnly) {
401
+ this.masterChart.xAxis[0].setExtremes(min, max);
402
+ return;
403
+ }
404
+ if (this.detailChart) {
405
+ const detailData = this.data.filter(p => p.x >= min && p.x <= max).map(p => ({ x: p.x, y: p.y }));
406
+ this.detailChart.series[0].setData(detailData, true);
407
+ }
408
+ const { dataMin, dataMax } = this.dataExtremes();
409
+ const xAxis = this.masterChart.xAxis[0];
410
+ xAxis.removePlotBand('mask-before');
411
+ xAxis.removePlotBand('mask-after');
412
+ if (min > dataMin)
413
+ xAxis.addPlotBand({ id: 'mask-before', from: dataMin, to: min, color: this.maskFill });
414
+ if (max < dataMax)
415
+ xAxis.addPlotBand({ id: 'mask-after', from: max, to: dataMax, color: this.maskFill });
416
+ }
417
+ async initCharts() {
418
+ if (this.loading)
419
+ return;
420
+ if (!this._typesValid) {
421
+ // eslint-disable-next-line no-console
422
+ console.warn(`[nile-master-detail-chart] Unsupported series type. `
423
+ + `masterType="${this.masterType}"`
424
+ + (this.masterOnly ? '' : `, detailType="${this.detailType}"`)
425
+ + `. Allowed: ${MASTER_DETAIL_SERIES_TYPES.join(', ')}. Nothing rendered.`);
426
+ return;
427
+ }
428
+ if (!this.masterContainer)
429
+ return;
430
+ if (!this.masterOnly && !this.detailContainer)
431
+ return;
432
+ this.masterCollapsed = true;
433
+ if (!this._hc)
434
+ this._hc = await getHighcharts();
435
+ if (!this.masterOnly && this.detailContainer) {
436
+ this.detailChart = this._hc.chart(this.detailContainer, this.buildDetailOptions());
437
+ }
438
+ this.masterChart = this._hc.chart(this.masterContainer, this.buildMasterOptions());
439
+ this.setZoomed(false);
440
+ const { min, max } = this.defaultSelection();
441
+ this.applySelection(min, max);
442
+ this.emit('nile-chart-selection', { min, max });
443
+ this.emit('nile-chart-ready', { chart: this.detailChart ?? this.masterChart });
444
+ }
445
+ destroyCharts() {
446
+ if (this.detailChart) {
447
+ this.detailChart.destroy();
448
+ this.detailChart = null;
449
+ }
450
+ if (this.masterChart) {
451
+ this.masterChart.destroy();
452
+ this.masterChart = null;
453
+ }
454
+ }
455
+ render() {
456
+ if (this.loading) {
457
+ return html `<div class="chart-loading" style="height:${this._cssLength(this.height)}">${this.loadingText}</div>`;
458
+ }
459
+ if (!this._typesValid)
460
+ return nothing;
461
+ const masterHidden = !this.masterOnly && this.masterCollapsed;
462
+ return html `<div class="chart-stack">
463
+ ${this.masterOnly
464
+ ? null
465
+ : html `<div class="detail-container" part="detail-container"></div>
466
+ <nile-tooltip content=${this.masterCollapsed ? 'Show master' : 'Hide master'} placement="top">
467
+ <button
468
+ type="button"
469
+ class="master-toggle"
470
+ part="master-toggle"
471
+ aria-expanded=${!this.masterCollapsed}
472
+ aria-label=${this.masterCollapsed ? 'Show master pane' : 'Hide master pane'}
473
+ @click=${this.toggleMasterCollapsed}
474
+ >
475
+ <nile-glyph name="ng-chevron-down" method="stroke" size="20"></nile-glyph>
476
+ </button>
477
+ </nile-tooltip>`}
478
+ <div class="master-container ${masterHidden ? 'master-container--collapsed' : ''}" part="master-container"></div>
479
+ </div>`;
480
+ }
481
+ };
482
+ NileMasterDetailChart.styles = styles;
483
+ __decorate([
484
+ query('.detail-container')
485
+ ], NileMasterDetailChart.prototype, "detailContainer", void 0);
486
+ __decorate([
487
+ query('.master-container')
488
+ ], NileMasterDetailChart.prototype, "masterContainer", void 0);
489
+ __decorate([
490
+ state()
491
+ ], NileMasterDetailChart.prototype, "masterCollapsed", void 0);
492
+ __decorate([
493
+ property({ type: Object })
494
+ ], NileMasterDetailChart.prototype, "config", void 0);
495
+ __decorate([
496
+ property({ type: String, attribute: 'chart-title' })
497
+ ], NileMasterDetailChart.prototype, "chartTitle", void 0);
498
+ __decorate([
499
+ property({ type: String, attribute: 'chart-subtitle' })
500
+ ], NileMasterDetailChart.prototype, "chartSubtitle", void 0);
501
+ __decorate([
502
+ property({ type: Array })
503
+ ], NileMasterDetailChart.prototype, "data", void 0);
504
+ __decorate([
505
+ property({ type: String, attribute: 'series-name' })
506
+ ], NileMasterDetailChart.prototype, "seriesName", void 0);
507
+ __decorate([
508
+ property({ type: String, attribute: 'series-color' })
509
+ ], NileMasterDetailChart.prototype, "seriesColor", void 0);
510
+ __decorate([
511
+ property({ type: String, attribute: 'detail-type' })
512
+ ], NileMasterDetailChart.prototype, "detailType", void 0);
513
+ __decorate([
514
+ property({ type: String, attribute: 'master-type' })
515
+ ], NileMasterDetailChart.prototype, "masterType", void 0);
516
+ __decorate([
517
+ property({ type: Boolean, reflect: true, attribute: 'master-only' })
518
+ ], NileMasterDetailChart.prototype, "masterOnly", void 0);
519
+ __decorate([
520
+ property({ type: String })
521
+ ], NileMasterDetailChart.prototype, "height", void 0);
522
+ __decorate([
523
+ property({ attribute: 'master-height' })
524
+ ], NileMasterDetailChart.prototype, "masterHeight", void 0);
525
+ __decorate([
526
+ property({ type: String, attribute: 'x-axis-type' })
527
+ ], NileMasterDetailChart.prototype, "xAxisType", void 0);
528
+ __decorate([
529
+ property({ type: Number, attribute: 'x-axis-min' })
530
+ ], NileMasterDetailChart.prototype, "xAxisMin", void 0);
531
+ __decorate([
532
+ property({ type: Number, attribute: 'x-axis-max' })
533
+ ], NileMasterDetailChart.prototype, "xAxisMax", void 0);
534
+ __decorate([
535
+ property({ type: Number, attribute: 'y-axis-min' })
536
+ ], NileMasterDetailChart.prototype, "yAxisMin", void 0);
537
+ __decorate([
538
+ property({ type: Number, attribute: 'y-axis-max' })
539
+ ], NileMasterDetailChart.prototype, "yAxisMax", void 0);
540
+ __decorate([
541
+ property({ type: Number, attribute: 'selection-min' })
542
+ ], NileMasterDetailChart.prototype, "selectionMin", void 0);
543
+ __decorate([
544
+ property({ type: Number, attribute: 'selection-max' })
545
+ ], NileMasterDetailChart.prototype, "selectionMax", void 0);
546
+ __decorate([
547
+ property({ type: String, attribute: 'detail-title' })
548
+ ], NileMasterDetailChart.prototype, "detailTitle", void 0);
549
+ __decorate([
550
+ property({ type: String, attribute: 'master-title' })
551
+ ], NileMasterDetailChart.prototype, "masterTitle", void 0);
552
+ __decorate([
553
+ property({ type: String, attribute: 'mask-fill' })
554
+ ], NileMasterDetailChart.prototype, "maskFill", void 0);
555
+ __decorate([
556
+ property({ type: Object })
557
+ ], NileMasterDetailChart.prototype, "options", void 0);
558
+ __decorate([
559
+ property({ type: Object })
560
+ ], NileMasterDetailChart.prototype, "masterOptions", void 0);
561
+ __decorate([
562
+ property({ type: Boolean, reflect: true })
563
+ ], NileMasterDetailChart.prototype, "loading", void 0);
564
+ __decorate([
565
+ property({ type: Object })
566
+ ], NileMasterDetailChart.prototype, "legend", void 0);
567
+ __decorate([
568
+ property({ type: String, attribute: 'chart-bg' })
569
+ ], NileMasterDetailChart.prototype, "chartBg", void 0);
570
+ __decorate([
571
+ property({ type: String, attribute: 'chart-border-radius' })
572
+ ], NileMasterDetailChart.prototype, "chartBorderRadius", void 0);
573
+ __decorate([
574
+ property({ type: String, attribute: 'chart-border' })
575
+ ], NileMasterDetailChart.prototype, "chartBorder", void 0);
576
+ __decorate([
577
+ property({ type: String, attribute: 'chart-shadow' })
578
+ ], NileMasterDetailChart.prototype, "chartShadow", void 0);
579
+ __decorate([
580
+ property({ type: String, attribute: 'chart-padding' })
581
+ ], NileMasterDetailChart.prototype, "chartPadding", void 0);
582
+ __decorate([
583
+ property({ type: String, attribute: 'chart-min-height' })
584
+ ], NileMasterDetailChart.prototype, "chartMinHeight", void 0);
585
+ __decorate([
586
+ property({ type: String, attribute: 'loading-text' })
587
+ ], NileMasterDetailChart.prototype, "loadingText", void 0);
588
+ __decorate([
589
+ property({ type: String, attribute: 'loading-color' })
590
+ ], NileMasterDetailChart.prototype, "loadingColor", void 0);
591
+ __decorate([
592
+ property({ type: String, attribute: 'loading-font-size' })
593
+ ], NileMasterDetailChart.prototype, "loadingFontSize", void 0);
594
+ __decorate([
595
+ property({ type: String, attribute: 'loading-font-family' })
596
+ ], NileMasterDetailChart.prototype, "loadingFontFamily", void 0);
597
+ __decorate([
598
+ property({ type: String, attribute: 'loading-bg' })
599
+ ], NileMasterDetailChart.prototype, "loadingBg", void 0);
600
+ NileMasterDetailChart = __decorate([
601
+ customElement('nile-master-detail-chart')
602
+ ], NileMasterDetailChart);
603
+ export { NileMasterDetailChart };
604
+ //# sourceMappingURL=nile-master-detail-chart.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aquera/nile-visualization",
3
- "version": "2.9.20",
3
+ "version": "2.9.22",
4
4
  "description": "A visualization Library for the Nile Design System",
5
5
  "license": "MIT",
6
6
  "author": "Aquera Inc",
@@ -21,6 +21,7 @@
21
21
  "./nile-bellcurve-chart": "./dist/src/nile-bellcurve-chart/index.js",
22
22
  "./nile-boxplot-chart": "./dist/src/nile-boxplot-chart/index.js",
23
23
  "./nile-timeline-chart": "./dist/src/nile-timeline-chart/index.js",
24
+ "./nile-master-detail-chart": "./dist/src/nile-master-detail-chart/index.js",
24
25
  "./nile-dumbbell-chart": "./dist/src/nile-dumbbell-chart/index.js",
25
26
  "./nile-fan-chart": "./dist/src/nile-fan-chart/index.js",
26
27
  "./nile-spline-chart": "./dist/src/nile-spline-chart/index.js",
@@ -44,7 +45,9 @@
44
45
  "./nile-chart": "./dist/src/nile-chart/index.js",
45
46
  "./nile-widget-viewer": "./dist/src/nile-widget-viewer/index.js",
46
47
  "./nile-dashboard-viewer": "./dist/src/nile-dashboard-viewer/index.js",
47
- "./nile-executive-summary": "./dist/src/nile-executive-summary/index.js"
48
+ "./nile-executive-summary": "./dist/src/nile-executive-summary/index.js",
49
+ "./nile-chart-list": "./dist/src/nile-chart-list/index.js",
50
+ "./nile-chart-message": "./dist/src/nile-chart-message/index.js"
48
51
  },
49
52
  "files": [
50
53
  "dist/src/**/*.js",
@@ -62,7 +65,7 @@
62
65
  "jsep": "^1.3.9"
63
66
  },
64
67
  "peerDependencies": {
65
- "highcharts": ">=10.0.0",
68
+ "highcharts": "12.5.0",
66
69
  "@aquera/nile-elements": ">=0.1.0",
67
70
  "@aquera/nile-data-grid": ">=0.1.0"
68
71
  },