@aquera/nile-visualization 2.9.52 → 2.9.54

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.
@@ -45,6 +45,13 @@ function makeAxis() {
45
45
  return {
46
46
  min: undefined,
47
47
  max: undefined,
48
+ // Geometry the navigator-handle overlay reads to position the grips. The
49
+ // identity toPixels + 400px plot width let `_positionHandles` run without
50
+ // throwing; the handle assertions check `_window`/parts, not pixel maths.
51
+ len: 400,
52
+ toPixels(v) {
53
+ return v;
54
+ },
48
55
  setExtremes(min, max) {
49
56
  this.min = min;
50
57
  this.max = max;
@@ -71,6 +78,9 @@ function makeChart(options) {
71
78
  options,
72
79
  series: (options.series || []).map(makeSeries),
73
80
  xAxis: [makeAxis()],
81
+ // Vertical plot box the handle overlay centres its grips in.
82
+ plotTop: 0,
83
+ plotHeight: 40,
74
84
  get legend() {
75
85
  return { options: chart.options.legend || {} };
76
86
  },
@@ -95,8 +105,11 @@ function makeChart(options) {
95
105
  function fakeDateFormat(format, timestamp) {
96
106
  const d = new Date(timestamp);
97
107
  const pad = (n) => String(n).padStart(2, '0');
108
+ const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
98
109
  return format
99
110
  .replace(/%Y/g, String(d.getUTCFullYear()))
111
+ .replace(/%b/g, MONTHS[d.getUTCMonth()])
112
+ .replace(/%e/g, String(d.getUTCDate())) // space-padded day in real Highcharts; the day digits are what the handle valuetext test distinguishes
100
113
  .replace(/%m/g, pad(d.getUTCMonth() + 1))
101
114
  .replace(/%d/g, pad(d.getUTCDate()))
102
115
  .replace(/%H/g, pad(d.getUTCHours()))
@@ -832,10 +845,347 @@ describe('NileMasterDetailChart — navigator step controls', () => {
832
845
  expect(inner.navigatorZoomStep).to.equal(3);
833
846
  });
834
847
  });
848
+ const hnd = (el) => el;
849
+ const handles = (el) => [...el.shadowRoot.querySelectorAll('[part~="navigator-handle"]')];
850
+ const grip = (el, edge) => el.shadowRoot.querySelector(`[part~="navigator-handle"][data-edge="${edge}"]`);
851
+ const windowBody = (el) => el.shadowRoot.querySelector('[part~="navigator-window"]');
852
+ /** Fire a keydown on a grip and settle the resulting update. */
853
+ async function pressGrip(el, edge, key, shiftKey = false) {
854
+ grip(el, edge).dispatchEvent(new KeyboardEvent('keydown', { key, shiftKey, bubbles: true, cancelable: true }));
855
+ await el.updateComplete;
856
+ }
857
+ // 20 evenly spaced datetime points so Shift+Arrow (~10% of the count) moves > 1 point.
858
+ const H20_DATA = Array.from({ length: 20 }, (_, i) => ({ x: T0 + i * DAY, y: i }));
859
+ const H20_SERIES = [{ name: 'Wide', data: H20_DATA, color: '#0000ff' }];
860
+ describe('NileMasterDetailChart — navigator handles', () => {
861
+ it('H1. renders no grips or body without navigator-handles', async () => {
862
+ const el = await mount({ series: DT_SERIES });
863
+ expect(handles(el)).to.have.length(0);
864
+ expect(windowBody(el)).to.be.null;
865
+ });
866
+ it('H2. navigator-handles renders two grips (start/end) and one window body', async () => {
867
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true });
868
+ expect(handles(el)).to.have.length(2);
869
+ expect(grip(el, 'start')).to.not.be.null;
870
+ expect(grip(el, 'end')).to.not.be.null;
871
+ expect(windowBody(el)).to.not.be.null;
872
+ });
873
+ it('H3. grips are role=slider, tabindex 0, labelled Window start / Window end', async () => {
874
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true });
875
+ for (const [edge, label] of [['start', 'Window start'], ['end', 'Window end']]) {
876
+ const g = grip(el, edge);
877
+ expect(g.getAttribute('role'), edge).to.equal('slider');
878
+ expect(g.getAttribute('tabindex'), edge).to.equal('0');
879
+ expect(g.getAttribute('aria-label'), edge).to.equal(label);
880
+ }
881
+ });
882
+ it('H4. grips expose aria-valuenow / valuemin / valuemax / valuetext', async () => {
883
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true });
884
+ for (const edge of ['start', 'end']) {
885
+ const g = grip(el, edge);
886
+ for (const attr of ['aria-valuenow', 'aria-valuemin', 'aria-valuemax', 'aria-valuetext']) {
887
+ expect(g.hasAttribute(attr), `${edge} ${attr}`).to.be.true;
888
+ }
889
+ }
890
+ });
891
+ it('H5. renders the grips in master-only mode', async () => {
892
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true, masterOnly: true });
893
+ expect(handles(el)).to.have.length(2);
894
+ expect(windowBody(el)).to.not.be.null;
895
+ });
896
+ it('H6. renders no grips with fewer than two data points', async () => {
897
+ for (const data of [[], [{ x: T0, y: 1 }]]) {
898
+ const el = await mount({ data, navigatorHandles: true });
899
+ expect(handles(el), JSON.stringify(data)).to.have.length(0);
900
+ }
901
+ });
902
+ it('H7. renders no grips while the master is collapsed', async () => {
903
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true, masterCollapsible: true });
904
+ expect(handles(el), 'expanded').to.have.length(2);
905
+ el.masterCollapsed = true;
906
+ await el.updateComplete;
907
+ expect(handles(el), 'collapsed').to.have.length(0);
908
+ });
909
+ it('H8. navigator-handles reflects to the attribute', async () => {
910
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true });
911
+ expect(el.hasAttribute('navigator-handles')).to.be.true;
912
+ });
913
+ it('H9. counts as a navigator feature: navigator-default-window applies with only handles on', async () => {
914
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true, navigatorDefaultWindow: '3d' });
915
+ expect(hnd(el)._window).to.deep.equal({ min: DT_MAX - 3 * DAY, max: DT_MAX });
916
+ });
917
+ it('H10. ArrowRight on the start grip moves only the start edge one point', async () => {
918
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true });
919
+ const seen = selectionSpy(el);
920
+ await pressGrip(el, 'start', 'ArrowRight');
921
+ expect(hnd(el)._window).to.deep.equal({ min: T0 + DAY, max: DT_MAX });
922
+ expect(seen[seen.length - 1]).to.deep.equal({ min: T0 + DAY, max: DT_MAX });
923
+ });
924
+ it('H11. ArrowLeft on the end grip moves only the end edge one point', async () => {
925
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true });
926
+ const seen = selectionSpy(el);
927
+ await pressGrip(el, 'end', 'ArrowLeft');
928
+ expect(hnd(el)._window).to.deep.equal({ min: DT_MIN, max: DT_MAX - DAY });
929
+ expect(seen[seen.length - 1]).to.deep.equal({ min: DT_MIN, max: DT_MAX - DAY });
930
+ });
931
+ it('H12. ArrowLeft on the start grip clamps at the data start', async () => {
932
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true });
933
+ await pressGrip(el, 'start', 'ArrowLeft');
934
+ expect(hnd(el)._window).to.deep.equal({ min: DT_MIN, max: DT_MAX });
935
+ });
936
+ it('H13. Shift+Arrow moves about 10% of the point count (> 1 point)', async () => {
937
+ // 20 points → Shift step = max(1, round(20 * 0.1)) = 2 points.
938
+ const el = await mount({ series: H20_SERIES, navigatorHandles: true });
939
+ await pressGrip(el, 'start', 'ArrowRight', true);
940
+ expect(hnd(el)._window).to.deep.equal({ min: T0 + 2 * DAY, max: T0 + 19 * DAY });
941
+ });
942
+ it('H14. Home / End move the start grip to its furthest allowed positions', async () => {
943
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true });
944
+ hnd(el)._resizeWindow('start', 3);
945
+ await el.updateComplete;
946
+ await pressGrip(el, 'start', 'End'); // furthest right = end grip (index 8) − 1 = 7
947
+ expect(hnd(el)._window).to.deep.equal({ min: T0 + 7 * DAY, max: DT_MAX });
948
+ await pressGrip(el, 'start', 'Home'); // back to the data start
949
+ expect(hnd(el)._window).to.deep.equal({ min: DT_MIN, max: DT_MAX });
950
+ });
951
+ it('H15. Home / End move the end grip to its furthest allowed positions', async () => {
952
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true });
953
+ hnd(el)._resizeWindow('end', 5);
954
+ await el.updateComplete;
955
+ await pressGrip(el, 'end', 'Home'); // furthest left = start grip (index 0) + 1 = 1
956
+ expect(hnd(el)._window).to.deep.equal({ min: DT_MIN, max: T0 + DAY });
957
+ await pressGrip(el, 'end', 'End'); // back to the data end
958
+ expect(hnd(el)._window).to.deep.equal({ min: DT_MIN, max: DT_MAX });
959
+ });
960
+ it('H16. the grips never cross — they stay at least one point apart', async () => {
961
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true });
962
+ // Drive the start grip toward the end; it must stop one interval short.
963
+ hnd(el)._resizeWindow('start', 8);
964
+ await el.updateComplete;
965
+ const w = hnd(el)._window;
966
+ expect(w).to.deep.equal({ min: T0 + 7 * DAY, max: DT_MAX });
967
+ // One more step is a no-op (already adjacent to the end grip).
968
+ const seen = selectionSpy(el);
969
+ hnd(el)._resizeWindow('start', 8);
970
+ await el.updateComplete;
971
+ expect(hnd(el)._window).to.deep.equal({ min: T0 + 7 * DAY, max: DT_MAX });
972
+ if (seen.length)
973
+ expect(hnd(el)._window).to.deep.equal(seen[seen.length - 1]);
974
+ });
975
+ it('H17. _resizeWindow clamps an out-of-range index into the data range', async () => {
976
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true });
977
+ hnd(el)._resizeWindow('end', 999); // past the last point → clamps to the data end
978
+ await el.updateComplete;
979
+ expect(hnd(el)._window).to.deep.equal({ min: DT_MIN, max: DT_MAX });
980
+ hnd(el)._resizeWindow('start', -5); // before the first point → clamps to the data start
981
+ await el.updateComplete;
982
+ expect(hnd(el)._window).to.deep.equal({ min: DT_MIN, max: DT_MAX });
983
+ });
984
+ it('H18. aria-valuenow / valuetext on a grip update after a move', async () => {
985
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true });
986
+ const g = grip(el, 'start');
987
+ const now0 = g.getAttribute('aria-valuenow');
988
+ const text0 = g.getAttribute('aria-valuetext');
989
+ await pressGrip(el, 'start', 'ArrowRight');
990
+ const g2 = grip(el, 'start');
991
+ expect(g2.getAttribute('aria-valuenow'), 'valuenow changed').to.not.equal(now0);
992
+ expect(g2.getAttribute('aria-valuetext'), 'valuetext changed').to.not.equal(text0);
993
+ expect(g2.getAttribute('aria-valuenow')).to.equal(String(T0 + DAY));
994
+ });
995
+ it('H19. dragging the window body keeps the window width', async () => {
996
+ // Pointer→pixel mapping through the fake chart is approximate, so this asserts
997
+ // width preservation (and range clamping) only; the exact body-move offset and
998
+ // its nile-chart-selection are verified in the real-browser visual check.
999
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true, navigatorDefaultWindow: '4d' });
1000
+ const before = hnd(el)._window;
1001
+ const width0 = before.max - before.min;
1002
+ const body = windowBody(el);
1003
+ const opts = { pointerId: 7, isPrimary: true, button: 0, bubbles: true, composed: true };
1004
+ body.dispatchEvent(new PointerEvent('pointerdown', { ...opts, clientX: 200 }));
1005
+ body.dispatchEvent(new PointerEvent('pointermove', { ...opts, clientX: 140 }));
1006
+ body.dispatchEvent(new PointerEvent('pointermove', { ...opts, clientX: 80 }));
1007
+ await new Promise((r) => requestAnimationFrame(() => r(null)));
1008
+ body.dispatchEvent(new PointerEvent('pointerup', { ...opts, clientX: 80 }));
1009
+ await el.updateComplete;
1010
+ const after = hnd(el)._window;
1011
+ expect(after.max - after.min, 'width preserved').to.equal(width0);
1012
+ expect(after.min, 'clamped to data range').to.be.at.least(DT_MIN);
1013
+ expect(after.max, 'clamped to data range').to.be.at.most(DT_MAX);
1014
+ });
1015
+ it('H20. MASTER_DETAIL_CHART_PARTS includes the two handle parts', () => {
1016
+ expect(MASTER_DETAIL_CHART_PARTS).to.include('navigator-handle');
1017
+ expect(MASTER_DETAIL_CHART_PARTS).to.include('navigator-window');
1018
+ });
1019
+ it('H21. <nile-chart> passes navigatorHandles through to the inner chart', async () => {
1020
+ const el = await fixture(html `<nile-chart style="display:block;width:600px;height:400px"></nile-chart>`);
1021
+ el.config = { chart: { type: 'master-detail', series: SERIES, navigatorHandles: true } };
1022
+ await el.updateComplete;
1023
+ await el.updateComplete;
1024
+ const inner = el.shadowRoot.querySelector('nile-master-detail-chart');
1025
+ expect(inner, 'inner master-detail chart should render').to.exist;
1026
+ expect(inner.navigatorHandles).to.be.true;
1027
+ });
1028
+ });
1029
+ // --- labeled handles, label visibility, frost mask ---------------------------
1030
+ const overlay = (el) => el.shadowRoot.querySelector('.navigator-overlay');
1031
+ const handleLabel = (el, edge) => grip(el, edge).querySelector('[part~="navigator-handle-label"]');
1032
+ const masks = (el) => [...el.shadowRoot.querySelectorAll('[part~="navigator-mask"]')];
1033
+ const masterBands = (el) => host(el).masterChart.xAxis[0]._bands;
1034
+ describe('NileMasterDetailChart — labeled handles', () => {
1035
+ it('L1. navigatorHandleVariant defaults to pill and renders no label', async () => {
1036
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true });
1037
+ expect(el.navigatorHandleVariant).to.equal('pill');
1038
+ expect(handleLabel(el, 'start')).to.be.null;
1039
+ expect(handleLabel(el, 'end')).to.be.null;
1040
+ });
1041
+ it('L2. navigator-handle-variant reflects to the attribute', async () => {
1042
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true, navigatorHandleVariant: 'labeled' });
1043
+ expect(el.getAttribute('navigator-handle-variant')).to.equal('labeled');
1044
+ });
1045
+ it('L3. labeled grips carry a grip span and an aria-hidden value label', async () => {
1046
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true, navigatorHandleVariant: 'labeled' });
1047
+ for (const edge of ['start', 'end']) {
1048
+ const g = grip(el, edge);
1049
+ expect(g.querySelector('.navigator-handle-grip'), edge).to.not.be.null;
1050
+ const label = handleLabel(el, edge);
1051
+ expect(label, edge).to.not.be.null;
1052
+ expect(label.getAttribute('aria-hidden'), edge).to.equal('true');
1053
+ }
1054
+ });
1055
+ it('L4. the label shows the short edge value (dateFormat %b %e)', async () => {
1056
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true, navigatorHandleVariant: 'labeled' });
1057
+ expect(handleLabel(el, 'start').textContent.trim()).to.equal(fakeDateFormat('%b %e', DT_MIN));
1058
+ expect(handleLabel(el, 'end').textContent.trim()).to.equal(fakeDateFormat('%b %e', DT_MAX));
1059
+ });
1060
+ it('L5. the label text updates after a keyboard move of that grip', async () => {
1061
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true, navigatorHandleVariant: 'labeled' });
1062
+ const before = handleLabel(el, 'start').textContent.trim();
1063
+ await pressGrip(el, 'start', 'ArrowRight');
1064
+ const after = handleLabel(el, 'start').textContent.trim();
1065
+ expect(after).to.not.equal(before);
1066
+ expect(after).to.equal(fakeDateFormat('%b %e', T0 + DAY));
1067
+ });
1068
+ it('L6. navigatorHandleLabel defaults to active (navigator-overlay--label-active); always drops the class', async () => {
1069
+ const active = await mount({ series: DT_SERIES, navigatorHandles: true, navigatorHandleVariant: 'labeled' });
1070
+ expect(active.navigatorHandleLabel).to.equal('active');
1071
+ expect(active.getAttribute('navigator-handle-label')).to.equal('active');
1072
+ expect(overlay(active).classList.contains('navigator-overlay--label-active')).to.be.true;
1073
+ const always = await mount({
1074
+ series: DT_SERIES, navigatorHandles: true, navigatorHandleVariant: 'labeled', navigatorHandleLabel: 'always',
1075
+ });
1076
+ expect(overlay(always).classList.contains('navigator-overlay--label-active')).to.be.false;
1077
+ });
1078
+ it('L7. label-active is ignored for pill handles', async () => {
1079
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true, navigatorHandleLabel: 'active' });
1080
+ expect(overlay(el).classList.contains('navigator-overlay--label-active')).to.be.false;
1081
+ });
1082
+ it('L8. labeled reserves spacingTop 36 above the master when there is no title', async () => {
1083
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true, navigatorHandleVariant: 'labeled' });
1084
+ expect(masterOpts(el).chart.spacingTop).to.equal(36);
1085
+ });
1086
+ it('L9. labeled with a master title reserves title margin 41 instead', async () => {
1087
+ const el = await mount({
1088
+ series: DT_SERIES, navigatorHandles: true, navigatorHandleVariant: 'labeled', masterTitle: 'Overview',
1089
+ });
1090
+ expect(masterOpts(el).chart.spacingTop).to.be.undefined;
1091
+ expect(masterOpts(el).title.margin).to.equal(41);
1092
+ });
1093
+ it('L10. pill handles reserve no room above the master', async () => {
1094
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true });
1095
+ expect(masterOpts(el).chart.spacingTop).to.be.undefined;
1096
+ });
1097
+ it('L11. navigatorHandleLabelFormat sets the pill text and updates it when changed', async () => {
1098
+ const el = await mount({
1099
+ series: DT_SERIES, navigatorHandles: true, navigatorHandleVariant: 'labeled', navigatorHandleLabelFormat: '%e %b %Y',
1100
+ });
1101
+ expect(el.navigatorHandleLabelFormat).to.equal('%e %b %Y');
1102
+ expect(handleLabel(el, 'start').textContent.trim()).to.equal(fakeDateFormat('%e %b %Y', DT_MIN));
1103
+ el.navigatorHandleLabelFormat = '%d/%m';
1104
+ await el.updateComplete;
1105
+ expect(handleLabel(el, 'end').textContent.trim()).to.equal(fakeDateFormat('%d/%m', DT_MAX));
1106
+ });
1107
+ it('L12. changing the label mode, handle look or mask keeps the current window', async () => {
1108
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true, navigatorDefaultWindow: '3d' });
1109
+ await pressGrip(el, 'start', 'ArrowLeft');
1110
+ const before = { ...nav(el)._window };
1111
+ el.navigatorHandleLabel = 'always';
1112
+ await el.updateComplete;
1113
+ el.navigatorHandleVariant = 'labeled';
1114
+ await el.updateComplete;
1115
+ el.navigatorMask = 'frost';
1116
+ await el.updateComplete;
1117
+ expect(nav(el)._window).to.deep.equal(before);
1118
+ expect(masterBands(el).has('mask-before')).to.be.false;
1119
+ expect(masterOpts(el).chart.spacingTop).to.equal(36);
1120
+ });
1121
+ });
1122
+ describe('NileMasterDetailChart — frost mask', () => {
1123
+ it('M1. navigatorMask defaults to solid and renders no mask elements', async () => {
1124
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true, navigatorDefaultWindow: '3d' });
1125
+ expect(el.navigatorMask).to.equal('solid');
1126
+ expect(masks(el)).to.have.length(0);
1127
+ });
1128
+ it('M2. navigator-mask reflects to the attribute', async () => {
1129
+ const el = await mount({ series: DT_SERIES, navigatorMask: 'frost' });
1130
+ expect(el.getAttribute('navigator-mask')).to.equal('frost');
1131
+ });
1132
+ it('M3. frost renders two mask elements with before / after sides, even without handles', async () => {
1133
+ const el = await mount({ series: DT_SERIES, navigatorMask: 'frost' });
1134
+ const m = masks(el);
1135
+ expect(m).to.have.length(2);
1136
+ expect(m.map((n) => n.dataset.side)).to.deep.equal(['before', 'after']);
1137
+ expect(handles(el)).to.have.length(0);
1138
+ });
1139
+ it('M4. frost adds no mask-before / mask-after plot bands on the master axis', async () => {
1140
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true, navigatorMask: 'frost', navigatorDefaultWindow: '3d' });
1141
+ expect(masterBands(el).has('mask-before')).to.be.false;
1142
+ expect(masterBands(el).has('mask-after')).to.be.false;
1143
+ });
1144
+ it('M5. solid keeps the plot bands and renders no mask elements', async () => {
1145
+ const el = await mount({ series: DT_SERIES, navigatorHandles: true });
1146
+ host(el).applySelection(T0 + 2 * DAY, T0 + 6 * DAY);
1147
+ await el.updateComplete;
1148
+ expect(masterBands(el).has('mask-before')).to.be.true;
1149
+ expect(masterBands(el).has('mask-after')).to.be.true;
1150
+ expect(masks(el)).to.have.length(0);
1151
+ });
1152
+ it('M6. no mask elements in master-only mode', async () => {
1153
+ const el = await mount({ series: DT_SERIES, navigatorMask: 'frost', masterOnly: true });
1154
+ expect(masks(el)).to.have.length(0);
1155
+ });
1156
+ it('M7. no mask elements while the master is collapsed', async () => {
1157
+ const el = await mount({ series: DT_SERIES, navigatorMask: 'frost', masterCollapsible: true });
1158
+ expect(masks(el), 'expanded').to.have.length(2);
1159
+ el.masterCollapsed = true;
1160
+ await el.updateComplete;
1161
+ expect(masks(el), 'collapsed').to.have.length(0);
1162
+ });
1163
+ it('M8. MASTER_DETAIL_CHART_PARTS includes the label and mask parts', () => {
1164
+ expect(MASTER_DETAIL_CHART_PARTS).to.include('navigator-handle-label');
1165
+ expect(MASTER_DETAIL_CHART_PARTS).to.include('navigator-mask');
1166
+ });
1167
+ it('M9. <nile-chart> passes the labeled / label / mask keys through', async () => {
1168
+ const el = await fixture(html `<nile-chart style="display:block;width:600px;height:400px"></nile-chart>`);
1169
+ el.config = {
1170
+ chart: {
1171
+ type: 'master-detail', series: SERIES, navigatorHandles: true,
1172
+ navigatorHandleVariant: 'labeled', navigatorHandleLabel: 'active', navigatorMask: 'frost',
1173
+ },
1174
+ };
1175
+ await el.updateComplete;
1176
+ await el.updateComplete;
1177
+ const inner = el.shadowRoot.querySelector('nile-master-detail-chart');
1178
+ expect(inner, 'inner master-detail chart should render').to.exist;
1179
+ expect(inner.navigatorHandleVariant).to.equal('labeled');
1180
+ expect(inner.navigatorHandleLabel).to.equal('active');
1181
+ expect(inner.navigatorMask).to.equal('frost');
1182
+ });
1183
+ });
835
1184
  describe('NileMasterDetailChart — CSS parts', () => {
836
1185
  it('MASTER_DETAIL_CHART_PARTS lists exactly the parts it renders', async () => {
837
1186
  const el = await mount({
838
1187
  series: DT_SERIES, navigatorControls: true, navigatorSlider: true, navigatorPanButtons: true,
1188
+ navigatorHandles: true, navigatorHandleVariant: 'labeled', navigatorMask: 'frost',
839
1189
  masterCollapsible: true, navigatorDefaultWindow: '2d',
840
1190
  });
841
1191
  const seen = new Set([...el.shadowRoot.querySelectorAll('[part]')].flatMap((n) => n.getAttribute('part').split(/\s+/)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aquera/nile-visualization",
3
- "version": "2.9.52",
3
+ "version": "2.9.54",
4
4
  "description": "A visualization Library for the Nile Design System",
5
5
  "license": "MIT",
6
6
  "author": "Aquera Inc",