@aquera/nile-visualization 2.9.22 → 2.9.23
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 +3 -0
- package/dist/src/internal/types/chart-master-detail-config.type.d.ts +1 -0
- package/dist/src/nile-chart/nile-chart-config.d.ts +1 -0
- package/dist/src/nile-chart/nile-chart.d.ts +0 -1
- package/dist/src/nile-chart/nile-chart.js +1 -1
- package/dist/src/nile-master-detail-chart/nile-master-detail-chart.css.js +6 -1
- package/dist/src/nile-master-detail-chart/nile-master-detail-chart.d.ts +1 -1
- package/dist/src/nile-master-detail-chart/nile-master-detail-chart.js +25 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,6 +35,9 @@ To run a local development server that serves the basic demo located in `demo/in
|
|
|
35
35
|
## Release Notes
|
|
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
|
+
#### Version 2.9.23 (July 08, 2026)
|
|
39
|
+
- Nile Chart: Added the `masterCollapsible` property to the master-detail chart — renders a chevron toggle between the panes so the master (overview) pane can be collapsed; the detail pane expands to fill the freed space while collapsed (UIF-1292)
|
|
40
|
+
|
|
38
41
|
#### Version 2.9.22 (July 07, 2026)
|
|
39
42
|
- Nile chart-message: removed the relative path bare import
|
|
40
43
|
- Nile chart-list: removed the relative path bare import
|
|
@@ -8,6 +8,7 @@ export interface ChartMasterDetailConfigType {
|
|
|
8
8
|
detailType?: MasterDetailSeriesType;
|
|
9
9
|
masterType?: MasterDetailSeriesType;
|
|
10
10
|
masterOnly?: boolean;
|
|
11
|
+
masterCollapsible?: boolean;
|
|
11
12
|
xAxisType?: MasterDetailXAxisType;
|
|
12
13
|
xAxisMin?: number | null;
|
|
13
14
|
xAxisMax?: number | null;
|
|
@@ -458,6 +458,7 @@ export interface NileMasterDetailChartConfig extends NileChartConfigBase {
|
|
|
458
458
|
masterType?: string;
|
|
459
459
|
/** Render only the master (overview) pane — no detail chart. */
|
|
460
460
|
masterOnly?: boolean;
|
|
461
|
+
masterCollapsible?: boolean;
|
|
461
462
|
xAxisType?: 'datetime' | 'linear' | 'logarithmic' | 'category';
|
|
462
463
|
xAxisMin?: number | null;
|
|
463
464
|
xAxisMax?: number | null;
|
|
@@ -53,7 +53,6 @@ import '../nile-filter-chart/index.js';
|
|
|
53
53
|
import '../nile-chart-message/nile-chart-message.js';
|
|
54
54
|
import '../nile-chart-list/nile-chart-list.js';
|
|
55
55
|
import '../nile-ai-panel/index.js';
|
|
56
|
-
import '@aquera/nile-elements/nile-tooltip';
|
|
57
56
|
export declare class NileChart extends NileElement {
|
|
58
57
|
static styles: CSSResultGroup;
|
|
59
58
|
private _headerTipEl;
|
|
@@ -66,7 +66,6 @@ import '../nile-filter-chart/index.js';
|
|
|
66
66
|
import '../nile-chart-message/nile-chart-message.js';
|
|
67
67
|
import '../nile-chart-list/nile-chart-list.js';
|
|
68
68
|
import '../nile-ai-panel/index.js';
|
|
69
|
-
import '@aquera/nile-elements/nile-tooltip';
|
|
70
69
|
const CORE_CHART_LABELS = {
|
|
71
70
|
bar: 'Bar',
|
|
72
71
|
pie: 'Pie',
|
|
@@ -1139,6 +1138,7 @@ let NileChart = class NileChart extends NileElement {
|
|
|
1139
1138
|
.detailType=${config.detailType ?? 'area'}
|
|
1140
1139
|
.masterType=${config.masterType ?? 'area'}
|
|
1141
1140
|
.masterOnly=${config.masterOnly ?? false}
|
|
1141
|
+
.masterCollapsible=${config.masterCollapsible ?? false}
|
|
1142
1142
|
.xAxisType=${config.xAxisType ?? 'datetime'}
|
|
1143
1143
|
.xAxisMin=${config.xAxisMin ?? null}
|
|
1144
1144
|
.xAxisMax=${config.xAxisMax ?? null}
|
|
@@ -14,6 +14,7 @@ export const styles = css `
|
|
|
14
14
|
.chart-stack {
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-direction: column;
|
|
17
|
+
box-sizing: border-box;
|
|
17
18
|
height: 100%;
|
|
18
19
|
min-height: var(--nile-chart-min-height, var(--nile-height-200px, var(--ng-height-200px)));
|
|
19
20
|
background: var(--nile-chart-bg, transparent);
|
|
@@ -24,11 +25,15 @@ export const styles = css `
|
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
.detail-container {
|
|
27
|
-
flex: 1 1 auto;
|
|
28
28
|
min-height: 0;
|
|
29
|
+
overflow: hidden;
|
|
29
30
|
width: 100%;
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
.detail-container--grow {
|
|
34
|
+
flex: 1 1 auto;
|
|
35
|
+
}
|
|
36
|
+
|
|
32
37
|
.master-container {
|
|
33
38
|
flex: 0 0 auto;
|
|
34
39
|
height: var(--nile-master-detail-master-height, var(--nile-height-100px, var(--ng-height-100px)));
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { nothing } from 'lit';
|
|
2
|
-
import '@aquera/nile-elements/nile-tooltip';
|
|
3
2
|
import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
4
3
|
import type Highcharts from 'highcharts';
|
|
5
4
|
import NileElement from '../internal/nile-element.js';
|
|
@@ -34,6 +33,7 @@ export declare class NileMasterDetailChart extends NileElement {
|
|
|
34
33
|
detailType: MasterDetailSeriesType;
|
|
35
34
|
masterType: MasterDetailSeriesType;
|
|
36
35
|
masterOnly: boolean;
|
|
36
|
+
masterCollapsible: boolean;
|
|
37
37
|
height: string;
|
|
38
38
|
masterHeight: string | number;
|
|
39
39
|
xAxisType: MasterDetailXAxisType;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { customElement, property, query, state } from 'lit/decorators.js';
|
|
3
3
|
import { html, nothing } from 'lit';
|
|
4
|
-
import '@aquera/nile-elements/nile-tooltip';
|
|
5
4
|
import { getHighcharts } from '../internal/highcharts-provider.js';
|
|
6
5
|
import NileElement from '../internal/nile-element.js';
|
|
7
6
|
import { applySeparatedChartConfig } from '../internal/separated-chart-config.js';
|
|
@@ -24,8 +23,7 @@ let NileMasterDetailChart = class NileMasterDetailChart extends NileElement {
|
|
|
24
23
|
this.masterChart = null;
|
|
25
24
|
this.resizeObserver = null;
|
|
26
25
|
this.zoomed = false;
|
|
27
|
-
|
|
28
|
-
this.masterCollapsed = true;
|
|
26
|
+
this.masterCollapsed = false;
|
|
29
27
|
this.config = null;
|
|
30
28
|
this.chartTitle = '';
|
|
31
29
|
this.chartSubtitle = '';
|
|
@@ -35,6 +33,7 @@ let NileMasterDetailChart = class NileMasterDetailChart extends NileElement {
|
|
|
35
33
|
this.detailType = 'area';
|
|
36
34
|
this.masterType = 'area';
|
|
37
35
|
this.masterOnly = false;
|
|
36
|
+
this.masterCollapsible = false;
|
|
38
37
|
this.height = '600px';
|
|
39
38
|
this.masterHeight = 100;
|
|
40
39
|
this.xAxisType = 'datetime';
|
|
@@ -136,6 +135,10 @@ let NileMasterDetailChart = class NileMasterDetailChart extends NileElement {
|
|
|
136
135
|
this.initCharts();
|
|
137
136
|
return;
|
|
138
137
|
}
|
|
138
|
+
if (changedProperties.has('masterCollapsible') && !this.masterCollapsible && this.masterCollapsed) {
|
|
139
|
+
this.masterCollapsed = false;
|
|
140
|
+
this.updateComplete.then(() => this.masterChart?.reflow());
|
|
141
|
+
}
|
|
139
142
|
const props = [
|
|
140
143
|
'data',
|
|
141
144
|
'options',
|
|
@@ -429,7 +432,7 @@ let NileMasterDetailChart = class NileMasterDetailChart extends NileElement {
|
|
|
429
432
|
return;
|
|
430
433
|
if (!this.masterOnly && !this.detailContainer)
|
|
431
434
|
return;
|
|
432
|
-
this.masterCollapsed =
|
|
435
|
+
this.masterCollapsed = false;
|
|
433
436
|
if (!this._hc)
|
|
434
437
|
this._hc = await getHighcharts();
|
|
435
438
|
if (!this.masterOnly && this.detailContainer) {
|
|
@@ -462,19 +465,21 @@ let NileMasterDetailChart = class NileMasterDetailChart extends NileElement {
|
|
|
462
465
|
return html `<div class="chart-stack">
|
|
463
466
|
${this.masterOnly
|
|
464
467
|
? null
|
|
465
|
-
: html `<div class="detail-container" part="detail-container"></div>
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
468
|
+
: html `<div class="detail-container ${masterHidden ? 'detail-container--grow' : ''}" part="detail-container"></div>
|
|
469
|
+
${this.masterCollapsible
|
|
470
|
+
? html `<nile-lite-tooltip content=${this.masterCollapsed ? 'Show master' : 'Hide master'} placement="top">
|
|
471
|
+
<button
|
|
472
|
+
type="button"
|
|
473
|
+
class="master-toggle"
|
|
474
|
+
part="master-toggle"
|
|
475
|
+
aria-expanded=${!this.masterCollapsed}
|
|
476
|
+
aria-label=${this.masterCollapsed ? 'Show master pane' : 'Hide master pane'}
|
|
477
|
+
@click=${this.toggleMasterCollapsed}
|
|
478
|
+
>
|
|
479
|
+
<nile-glyph name="ng-chevron-down" method="stroke" size="20"></nile-glyph>
|
|
480
|
+
</button>
|
|
481
|
+
</nile-lite-tooltip>`
|
|
482
|
+
: null}`}
|
|
478
483
|
<div class="master-container ${masterHidden ? 'master-container--collapsed' : ''}" part="master-container"></div>
|
|
479
484
|
</div>`;
|
|
480
485
|
}
|
|
@@ -516,6 +521,9 @@ __decorate([
|
|
|
516
521
|
__decorate([
|
|
517
522
|
property({ type: Boolean, reflect: true, attribute: 'master-only' })
|
|
518
523
|
], NileMasterDetailChart.prototype, "masterOnly", void 0);
|
|
524
|
+
__decorate([
|
|
525
|
+
property({ type: Boolean, attribute: 'master-collapsible' })
|
|
526
|
+
], NileMasterDetailChart.prototype, "masterCollapsible", void 0);
|
|
519
527
|
__decorate([
|
|
520
528
|
property({ type: String })
|
|
521
529
|
], NileMasterDetailChart.prototype, "height", void 0);
|