@watermarkinsights/ripple 5.7.0 → 5.8.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{global-eddf4e56.js → global-541becf9.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ripple.cjs.js +1 -1
- package/dist/cjs/wm-line-chart.cjs.entry.js +19 -38
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +19 -38
- package/dist/esm/{global-e7316cfe.js → global-3ec0570b.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ripple.js +1 -1
- package/dist/esm/wm-line-chart.entry.js +19 -38
- package/dist/esm-es5/global-3ec0570b.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/ripple/{p-10745cf2.system.js → p-064eda0e.system.js} +1 -1
- package/dist/ripple/p-b8671d49.system.entry.js +1 -0
- package/dist/ripple/p-ed65f965.js +1 -0
- package/dist/ripple/p-f939505d.entry.js +1 -0
- package/dist/ripple/p-fb22d5a8.system.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/charts/wm-line-chart/wm-line-chart.d.ts +0 -2
- package/package.json +1 -1
- package/dist/esm-es5/global-e7316cfe.js +0 -1
- package/dist/ripple/p-38509918.system.entry.js +0 -1
- package/dist/ripple/p-5360487b.js +0 -1
- package/dist/ripple/p-a4061c96.system.js +0 -1
- package/dist/ripple/p-b3114a58.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e86c28b6.js');
|
|
6
|
-
require('./global-
|
|
6
|
+
require('./global-541becf9.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
package/dist/cjs/ripple.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e86c28b6.js');
|
|
6
|
-
require('./global-
|
|
6
|
+
require('./global-541becf9.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
9
|
Stencil Client Patch Browser v4.8.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -14,7 +14,6 @@ const LineChart = class {
|
|
|
14
14
|
index.registerInstance(this, hostRef);
|
|
15
15
|
this.minTickWidth = 120;
|
|
16
16
|
this.popoverData = [];
|
|
17
|
-
this.focusedDataPoint = [0, 0];
|
|
18
17
|
this.dataPointMatrix = [];
|
|
19
18
|
this.xIntervals = [];
|
|
20
19
|
this.displayedXIntervals = [];
|
|
@@ -109,7 +108,7 @@ const LineChart = class {
|
|
|
109
108
|
if (!ev.shiftKey && this.firstVisibleLineIdx !== -1) {
|
|
110
109
|
ev.preventDefault();
|
|
111
110
|
this.announce(this.lineFocusMessage(this.firstVisibleLineIdx));
|
|
112
|
-
this.
|
|
111
|
+
this.focusDataPointByEl(this.lineEls[this.firstVisibleLineIdx].querySelector(".point"));
|
|
113
112
|
}
|
|
114
113
|
break;
|
|
115
114
|
case "ArrowUp":
|
|
@@ -127,9 +126,7 @@ const LineChart = class {
|
|
|
127
126
|
}
|
|
128
127
|
}
|
|
129
128
|
handleDataPointKeydown(ev) {
|
|
130
|
-
const
|
|
131
|
-
const lineLength = this.lineEls[lineIdx].querySelectorAll(".point").length;
|
|
132
|
-
const numLines = this.dataPointMatrix.length;
|
|
129
|
+
const curPointEl = ev.target;
|
|
133
130
|
switch (ev.key) {
|
|
134
131
|
case "Tab":
|
|
135
132
|
if (ev.shiftKey && this.visibilityToggles) {
|
|
@@ -138,32 +135,25 @@ const LineChart = class {
|
|
|
138
135
|
}
|
|
139
136
|
break;
|
|
140
137
|
case "ArrowUp":
|
|
141
|
-
ev.preventDefault();
|
|
142
|
-
let prevLineIdx = lineIdx;
|
|
143
|
-
do
|
|
144
|
-
prevLineIdx = functions.wrapAround(prevLineIdx, -1, numLines - 1);
|
|
145
|
-
while (this.hiddenLines.includes(prevLineIdx));
|
|
146
|
-
this.announce(this.lineFocusMessage(prevLineIdx));
|
|
147
|
-
this.focusDataPoint(prevLineIdx, pointIdx);
|
|
148
|
-
break;
|
|
149
138
|
case "ArrowDown":
|
|
150
139
|
ev.preventDefault();
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
140
|
+
const pointElsInColumn = Array.from(this.pointEls).filter((p) => p.dataset.pointidx == curPointEl.dataset.pointidx);
|
|
141
|
+
if (pointElsInColumn.length > 1) {
|
|
142
|
+
const nextPointIdx = functions.wrapAround(pointElsInColumn.indexOf(curPointEl), ev.key == "ArrowUp" ? -1 : 1, pointElsInColumn.length - 1);
|
|
143
|
+
const nextPointInColumn = pointElsInColumn[nextPointIdx];
|
|
144
|
+
this.announce(this.lineFocusMessage(parseInt(nextPointInColumn.dataset.lineidx)));
|
|
145
|
+
this.focusDataPointByEl(nextPointInColumn);
|
|
146
|
+
}
|
|
157
147
|
break;
|
|
158
148
|
case "ArrowLeft":
|
|
159
|
-
ev.preventDefault();
|
|
160
|
-
const prevPointIdx = functions.wrapAround(pointIdx, -1, lineLength - 1);
|
|
161
|
-
this.focusDataPoint(lineIdx, prevPointIdx);
|
|
162
|
-
break;
|
|
163
149
|
case "ArrowRight":
|
|
164
150
|
ev.preventDefault();
|
|
165
|
-
const
|
|
166
|
-
|
|
151
|
+
const linePoints = Array.from(curPointEl.parentElement.querySelectorAll(".point"));
|
|
152
|
+
if (linePoints.length > 1) {
|
|
153
|
+
const nextPointIdxInDirection = functions.wrapAround(linePoints.indexOf(curPointEl), ev.key == "ArrowLeft" ? -1 : 1, linePoints.length - 1);
|
|
154
|
+
const nextPointInDirection = linePoints[nextPointIdxInDirection];
|
|
155
|
+
this.focusDataPointByEl(nextPointInDirection);
|
|
156
|
+
}
|
|
167
157
|
break;
|
|
168
158
|
}
|
|
169
159
|
}
|
|
@@ -179,21 +169,13 @@ const LineChart = class {
|
|
|
179
169
|
const numDataPoints = this.dataPointMatrix[lineIdx].filter((datapoint) => datapoint.yValue !== null).length;
|
|
180
170
|
return `${label}, line ${lineIdx + 1} of ${this.dataPointMatrix.length} with ${numDataPoints} data points`;
|
|
181
171
|
}
|
|
182
|
-
focusDataPoint(lineIdx, pointIdx) {
|
|
183
|
-
const lineEl = this.lineEls[lineIdx];
|
|
184
|
-
const linePointEl = lineEl.querySelectorAll(".point")[pointIdx];
|
|
185
|
-
this.pointEls.forEach((point) => (point.tabIndex = -1));
|
|
186
|
-
linePointEl.tabIndex = 0;
|
|
187
|
-
linePointEl.focus();
|
|
188
|
-
this.focusedDataPoint = [lineIdx, pointIdx];
|
|
189
|
-
}
|
|
190
172
|
focusDataPointByEl(pointEl) {
|
|
191
|
-
const lineIdx = parseInt(pointEl.dataset.lineidx);
|
|
192
|
-
const pointIdx =
|
|
173
|
+
// const lineIdx = parseInt(pointEl.dataset.lineidx!);
|
|
174
|
+
// const pointIdx = parseInt(pointEl.dataset.pointidx!);
|
|
193
175
|
this.pointEls.forEach((point) => (point.tabIndex = -1));
|
|
194
176
|
pointEl.tabIndex = 0;
|
|
195
177
|
pointEl.focus();
|
|
196
|
-
this.focusedDataPoint = [lineIdx, pointIdx];
|
|
178
|
+
// this.focusedDataPoint = [lineIdx, pointIdx];
|
|
197
179
|
}
|
|
198
180
|
calcYIntervals() {
|
|
199
181
|
let yIntervals = [];
|
|
@@ -286,7 +268,6 @@ const LineChart = class {
|
|
|
286
268
|
const lineEl = this.lineEls[this.firstVisibleLineIdx];
|
|
287
269
|
const linePointEl = lineEl.querySelectorAll(".point")[0];
|
|
288
270
|
linePointEl.tabIndex = 0;
|
|
289
|
-
this.focusedDataPoint = [this.firstVisibleLineIdx, 0];
|
|
290
271
|
}
|
|
291
272
|
}
|
|
292
273
|
calcDelta(dataPoint, prevDataPoint) {
|
|
@@ -366,7 +347,7 @@ const LineChart = class {
|
|
|
366
347
|
const changeSinceMessage = intl.lineChartMessages.getChangeSince(prevDataPoint.xValue);
|
|
367
348
|
ariaLabel += `, ${changeSinceMessage} ${this.calcDelta(dataPoint, prevDataPoint)}`;
|
|
368
349
|
}
|
|
369
|
-
return (index.h("span", { id: `${lineLabel}-${pointIdx}`, role: "img", "aria-label": ariaLabel, tabIndex: firstPointTabIndex, class: "point icon", style: iconStyle, "data-lineidx": lineIdx, "data-xvalue": xValue, onKeyDown: (ev) => this.handleDataPointKeydown(ev), onFocus: () => (this.popoverIndex = pointIdx), onClick: (ev) => this.focusDataPointByEl(ev.target), onMouseEnter: () => (this.popoverIndex = pointIdx) }));
|
|
350
|
+
return (index.h("span", { id: `${lineLabel}-${pointIdx}`, role: "img", "aria-label": ariaLabel, tabIndex: firstPointTabIndex, class: "point icon", style: iconStyle, "data-lineidx": lineIdx, "data-pointidx": pointIdx, "data-xvalue": xValue, onKeyDown: (ev) => this.handleDataPointKeydown(ev), onFocus: () => (this.popoverIndex = pointIdx), onClick: (ev) => this.focusDataPointByEl(ev.target), onMouseEnter: () => (this.popoverIndex = pointIdx) }));
|
|
370
351
|
}
|
|
371
352
|
})));
|
|
372
353
|
}
|
|
@@ -6,7 +6,6 @@ export class LineChart {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
this.minTickWidth = 120;
|
|
8
8
|
this.popoverData = [];
|
|
9
|
-
this.focusedDataPoint = [0, 0];
|
|
10
9
|
this.dataPointMatrix = [];
|
|
11
10
|
this.xIntervals = [];
|
|
12
11
|
this.displayedXIntervals = [];
|
|
@@ -101,7 +100,7 @@ export class LineChart {
|
|
|
101
100
|
if (!ev.shiftKey && this.firstVisibleLineIdx !== -1) {
|
|
102
101
|
ev.preventDefault();
|
|
103
102
|
this.announce(this.lineFocusMessage(this.firstVisibleLineIdx));
|
|
104
|
-
this.
|
|
103
|
+
this.focusDataPointByEl(this.lineEls[this.firstVisibleLineIdx].querySelector(".point"));
|
|
105
104
|
}
|
|
106
105
|
break;
|
|
107
106
|
case "ArrowUp":
|
|
@@ -119,9 +118,7 @@ export class LineChart {
|
|
|
119
118
|
}
|
|
120
119
|
}
|
|
121
120
|
handleDataPointKeydown(ev) {
|
|
122
|
-
const
|
|
123
|
-
const lineLength = this.lineEls[lineIdx].querySelectorAll(".point").length;
|
|
124
|
-
const numLines = this.dataPointMatrix.length;
|
|
121
|
+
const curPointEl = ev.target;
|
|
125
122
|
switch (ev.key) {
|
|
126
123
|
case "Tab":
|
|
127
124
|
if (ev.shiftKey && this.visibilityToggles) {
|
|
@@ -130,32 +127,25 @@ export class LineChart {
|
|
|
130
127
|
}
|
|
131
128
|
break;
|
|
132
129
|
case "ArrowUp":
|
|
133
|
-
ev.preventDefault();
|
|
134
|
-
let prevLineIdx = lineIdx;
|
|
135
|
-
do
|
|
136
|
-
prevLineIdx = wrapAround(prevLineIdx, -1, numLines - 1);
|
|
137
|
-
while (this.hiddenLines.includes(prevLineIdx));
|
|
138
|
-
this.announce(this.lineFocusMessage(prevLineIdx));
|
|
139
|
-
this.focusDataPoint(prevLineIdx, pointIdx);
|
|
140
|
-
break;
|
|
141
130
|
case "ArrowDown":
|
|
142
131
|
ev.preventDefault();
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
132
|
+
const pointElsInColumn = Array.from(this.pointEls).filter((p) => p.dataset.pointidx == curPointEl.dataset.pointidx);
|
|
133
|
+
if (pointElsInColumn.length > 1) {
|
|
134
|
+
const nextPointIdx = wrapAround(pointElsInColumn.indexOf(curPointEl), ev.key == "ArrowUp" ? -1 : 1, pointElsInColumn.length - 1);
|
|
135
|
+
const nextPointInColumn = pointElsInColumn[nextPointIdx];
|
|
136
|
+
this.announce(this.lineFocusMessage(parseInt(nextPointInColumn.dataset.lineidx)));
|
|
137
|
+
this.focusDataPointByEl(nextPointInColumn);
|
|
138
|
+
}
|
|
149
139
|
break;
|
|
150
140
|
case "ArrowLeft":
|
|
151
|
-
ev.preventDefault();
|
|
152
|
-
const prevPointIdx = wrapAround(pointIdx, -1, lineLength - 1);
|
|
153
|
-
this.focusDataPoint(lineIdx, prevPointIdx);
|
|
154
|
-
break;
|
|
155
141
|
case "ArrowRight":
|
|
156
142
|
ev.preventDefault();
|
|
157
|
-
const
|
|
158
|
-
|
|
143
|
+
const linePoints = Array.from(curPointEl.parentElement.querySelectorAll(".point"));
|
|
144
|
+
if (linePoints.length > 1) {
|
|
145
|
+
const nextPointIdxInDirection = wrapAround(linePoints.indexOf(curPointEl), ev.key == "ArrowLeft" ? -1 : 1, linePoints.length - 1);
|
|
146
|
+
const nextPointInDirection = linePoints[nextPointIdxInDirection];
|
|
147
|
+
this.focusDataPointByEl(nextPointInDirection);
|
|
148
|
+
}
|
|
159
149
|
break;
|
|
160
150
|
}
|
|
161
151
|
}
|
|
@@ -171,21 +161,13 @@ export class LineChart {
|
|
|
171
161
|
const numDataPoints = this.dataPointMatrix[lineIdx].filter((datapoint) => datapoint.yValue !== null).length;
|
|
172
162
|
return `${label}, line ${lineIdx + 1} of ${this.dataPointMatrix.length} with ${numDataPoints} data points`;
|
|
173
163
|
}
|
|
174
|
-
focusDataPoint(lineIdx, pointIdx) {
|
|
175
|
-
const lineEl = this.lineEls[lineIdx];
|
|
176
|
-
const linePointEl = lineEl.querySelectorAll(".point")[pointIdx];
|
|
177
|
-
this.pointEls.forEach((point) => (point.tabIndex = -1));
|
|
178
|
-
linePointEl.tabIndex = 0;
|
|
179
|
-
linePointEl.focus();
|
|
180
|
-
this.focusedDataPoint = [lineIdx, pointIdx];
|
|
181
|
-
}
|
|
182
164
|
focusDataPointByEl(pointEl) {
|
|
183
|
-
const lineIdx = parseInt(pointEl.dataset.lineidx);
|
|
184
|
-
const pointIdx =
|
|
165
|
+
// const lineIdx = parseInt(pointEl.dataset.lineidx!);
|
|
166
|
+
// const pointIdx = parseInt(pointEl.dataset.pointidx!);
|
|
185
167
|
this.pointEls.forEach((point) => (point.tabIndex = -1));
|
|
186
168
|
pointEl.tabIndex = 0;
|
|
187
169
|
pointEl.focus();
|
|
188
|
-
this.focusedDataPoint = [lineIdx, pointIdx];
|
|
170
|
+
// this.focusedDataPoint = [lineIdx, pointIdx];
|
|
189
171
|
}
|
|
190
172
|
calcYIntervals() {
|
|
191
173
|
let yIntervals = [];
|
|
@@ -278,7 +260,6 @@ export class LineChart {
|
|
|
278
260
|
const lineEl = this.lineEls[this.firstVisibleLineIdx];
|
|
279
261
|
const linePointEl = lineEl.querySelectorAll(".point")[0];
|
|
280
262
|
linePointEl.tabIndex = 0;
|
|
281
|
-
this.focusedDataPoint = [this.firstVisibleLineIdx, 0];
|
|
282
263
|
}
|
|
283
264
|
}
|
|
284
265
|
calcDelta(dataPoint, prevDataPoint) {
|
|
@@ -358,7 +339,7 @@ export class LineChart {
|
|
|
358
339
|
const changeSinceMessage = lineChartMessages.getChangeSince(prevDataPoint.xValue);
|
|
359
340
|
ariaLabel += `, ${changeSinceMessage} ${this.calcDelta(dataPoint, prevDataPoint)}`;
|
|
360
341
|
}
|
|
361
|
-
return (h("span", { id: `${lineLabel}-${pointIdx}`, role: "img", "aria-label": ariaLabel, tabIndex: firstPointTabIndex, class: "point icon", style: iconStyle, "data-lineidx": lineIdx, "data-xvalue": xValue, onKeyDown: (ev) => this.handleDataPointKeydown(ev), onFocus: () => (this.popoverIndex = pointIdx), onClick: (ev) => this.focusDataPointByEl(ev.target), onMouseEnter: () => (this.popoverIndex = pointIdx) }));
|
|
342
|
+
return (h("span", { id: `${lineLabel}-${pointIdx}`, role: "img", "aria-label": ariaLabel, tabIndex: firstPointTabIndex, class: "point icon", style: iconStyle, "data-lineidx": lineIdx, "data-pointidx": pointIdx, "data-xvalue": xValue, onKeyDown: (ev) => this.handleDataPointKeydown(ev), onFocus: () => (this.popoverIndex = pointIdx), onClick: (ev) => this.focusDataPointByEl(ev.target), onMouseEnter: () => (this.popoverIndex = pointIdx) }));
|
|
362
343
|
}
|
|
363
344
|
})));
|
|
364
345
|
}
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as bootstrapLazy } from './index-558b5a82.js';
|
|
2
2
|
export { s as setNonce } from './index-558b5a82.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-3ec0570b.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
package/dist/esm/ripple.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-558b5a82.js';
|
|
2
2
|
export { s as setNonce } from './index-558b5a82.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-3ec0570b.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v4.8.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -10,7 +10,6 @@ const LineChart = class {
|
|
|
10
10
|
registerInstance(this, hostRef);
|
|
11
11
|
this.minTickWidth = 120;
|
|
12
12
|
this.popoverData = [];
|
|
13
|
-
this.focusedDataPoint = [0, 0];
|
|
14
13
|
this.dataPointMatrix = [];
|
|
15
14
|
this.xIntervals = [];
|
|
16
15
|
this.displayedXIntervals = [];
|
|
@@ -105,7 +104,7 @@ const LineChart = class {
|
|
|
105
104
|
if (!ev.shiftKey && this.firstVisibleLineIdx !== -1) {
|
|
106
105
|
ev.preventDefault();
|
|
107
106
|
this.announce(this.lineFocusMessage(this.firstVisibleLineIdx));
|
|
108
|
-
this.
|
|
107
|
+
this.focusDataPointByEl(this.lineEls[this.firstVisibleLineIdx].querySelector(".point"));
|
|
109
108
|
}
|
|
110
109
|
break;
|
|
111
110
|
case "ArrowUp":
|
|
@@ -123,9 +122,7 @@ const LineChart = class {
|
|
|
123
122
|
}
|
|
124
123
|
}
|
|
125
124
|
handleDataPointKeydown(ev) {
|
|
126
|
-
const
|
|
127
|
-
const lineLength = this.lineEls[lineIdx].querySelectorAll(".point").length;
|
|
128
|
-
const numLines = this.dataPointMatrix.length;
|
|
125
|
+
const curPointEl = ev.target;
|
|
129
126
|
switch (ev.key) {
|
|
130
127
|
case "Tab":
|
|
131
128
|
if (ev.shiftKey && this.visibilityToggles) {
|
|
@@ -134,32 +131,25 @@ const LineChart = class {
|
|
|
134
131
|
}
|
|
135
132
|
break;
|
|
136
133
|
case "ArrowUp":
|
|
137
|
-
ev.preventDefault();
|
|
138
|
-
let prevLineIdx = lineIdx;
|
|
139
|
-
do
|
|
140
|
-
prevLineIdx = wrapAround(prevLineIdx, -1, numLines - 1);
|
|
141
|
-
while (this.hiddenLines.includes(prevLineIdx));
|
|
142
|
-
this.announce(this.lineFocusMessage(prevLineIdx));
|
|
143
|
-
this.focusDataPoint(prevLineIdx, pointIdx);
|
|
144
|
-
break;
|
|
145
134
|
case "ArrowDown":
|
|
146
135
|
ev.preventDefault();
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
136
|
+
const pointElsInColumn = Array.from(this.pointEls).filter((p) => p.dataset.pointidx == curPointEl.dataset.pointidx);
|
|
137
|
+
if (pointElsInColumn.length > 1) {
|
|
138
|
+
const nextPointIdx = wrapAround(pointElsInColumn.indexOf(curPointEl), ev.key == "ArrowUp" ? -1 : 1, pointElsInColumn.length - 1);
|
|
139
|
+
const nextPointInColumn = pointElsInColumn[nextPointIdx];
|
|
140
|
+
this.announce(this.lineFocusMessage(parseInt(nextPointInColumn.dataset.lineidx)));
|
|
141
|
+
this.focusDataPointByEl(nextPointInColumn);
|
|
142
|
+
}
|
|
153
143
|
break;
|
|
154
144
|
case "ArrowLeft":
|
|
155
|
-
ev.preventDefault();
|
|
156
|
-
const prevPointIdx = wrapAround(pointIdx, -1, lineLength - 1);
|
|
157
|
-
this.focusDataPoint(lineIdx, prevPointIdx);
|
|
158
|
-
break;
|
|
159
145
|
case "ArrowRight":
|
|
160
146
|
ev.preventDefault();
|
|
161
|
-
const
|
|
162
|
-
|
|
147
|
+
const linePoints = Array.from(curPointEl.parentElement.querySelectorAll(".point"));
|
|
148
|
+
if (linePoints.length > 1) {
|
|
149
|
+
const nextPointIdxInDirection = wrapAround(linePoints.indexOf(curPointEl), ev.key == "ArrowLeft" ? -1 : 1, linePoints.length - 1);
|
|
150
|
+
const nextPointInDirection = linePoints[nextPointIdxInDirection];
|
|
151
|
+
this.focusDataPointByEl(nextPointInDirection);
|
|
152
|
+
}
|
|
163
153
|
break;
|
|
164
154
|
}
|
|
165
155
|
}
|
|
@@ -175,21 +165,13 @@ const LineChart = class {
|
|
|
175
165
|
const numDataPoints = this.dataPointMatrix[lineIdx].filter((datapoint) => datapoint.yValue !== null).length;
|
|
176
166
|
return `${label}, line ${lineIdx + 1} of ${this.dataPointMatrix.length} with ${numDataPoints} data points`;
|
|
177
167
|
}
|
|
178
|
-
focusDataPoint(lineIdx, pointIdx) {
|
|
179
|
-
const lineEl = this.lineEls[lineIdx];
|
|
180
|
-
const linePointEl = lineEl.querySelectorAll(".point")[pointIdx];
|
|
181
|
-
this.pointEls.forEach((point) => (point.tabIndex = -1));
|
|
182
|
-
linePointEl.tabIndex = 0;
|
|
183
|
-
linePointEl.focus();
|
|
184
|
-
this.focusedDataPoint = [lineIdx, pointIdx];
|
|
185
|
-
}
|
|
186
168
|
focusDataPointByEl(pointEl) {
|
|
187
|
-
const lineIdx = parseInt(pointEl.dataset.lineidx);
|
|
188
|
-
const pointIdx =
|
|
169
|
+
// const lineIdx = parseInt(pointEl.dataset.lineidx!);
|
|
170
|
+
// const pointIdx = parseInt(pointEl.dataset.pointidx!);
|
|
189
171
|
this.pointEls.forEach((point) => (point.tabIndex = -1));
|
|
190
172
|
pointEl.tabIndex = 0;
|
|
191
173
|
pointEl.focus();
|
|
192
|
-
this.focusedDataPoint = [lineIdx, pointIdx];
|
|
174
|
+
// this.focusedDataPoint = [lineIdx, pointIdx];
|
|
193
175
|
}
|
|
194
176
|
calcYIntervals() {
|
|
195
177
|
let yIntervals = [];
|
|
@@ -282,7 +264,6 @@ const LineChart = class {
|
|
|
282
264
|
const lineEl = this.lineEls[this.firstVisibleLineIdx];
|
|
283
265
|
const linePointEl = lineEl.querySelectorAll(".point")[0];
|
|
284
266
|
linePointEl.tabIndex = 0;
|
|
285
|
-
this.focusedDataPoint = [this.firstVisibleLineIdx, 0];
|
|
286
267
|
}
|
|
287
268
|
}
|
|
288
269
|
calcDelta(dataPoint, prevDataPoint) {
|
|
@@ -362,7 +343,7 @@ const LineChart = class {
|
|
|
362
343
|
const changeSinceMessage = lineChartMessages.getChangeSince(prevDataPoint.xValue);
|
|
363
344
|
ariaLabel += `, ${changeSinceMessage} ${this.calcDelta(dataPoint, prevDataPoint)}`;
|
|
364
345
|
}
|
|
365
|
-
return (h("span", { id: `${lineLabel}-${pointIdx}`, role: "img", "aria-label": ariaLabel, tabIndex: firstPointTabIndex, class: "point icon", style: iconStyle, "data-lineidx": lineIdx, "data-xvalue": xValue, onKeyDown: (ev) => this.handleDataPointKeydown(ev), onFocus: () => (this.popoverIndex = pointIdx), onClick: (ev) => this.focusDataPointByEl(ev.target), onMouseEnter: () => (this.popoverIndex = pointIdx) }));
|
|
346
|
+
return (h("span", { id: `${lineLabel}-${pointIdx}`, role: "img", "aria-label": ariaLabel, tabIndex: firstPointTabIndex, class: "point icon", style: iconStyle, "data-lineidx": lineIdx, "data-pointidx": pointIdx, "data-xvalue": xValue, onKeyDown: (ev) => this.handleDataPointKeydown(ev), onFocus: () => (this.popoverIndex = pointIdx), onClick: (ev) => this.focusDataPointByEl(ev.target), onMouseEnter: () => (this.popoverIndex = pointIdx) }));
|
|
366
347
|
}
|
|
367
348
|
})));
|
|
368
349
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var version="5.8.0-0";if(window.navigator.plugins.length>0){console.log("Ripple component library",version)}function wmComponentKeys(o){if(o.key=="Tab"){var n=new Event("wmUserIsTabbing");window.dispatchEvent(n);document.querySelector("body").classList.add("wmcl-user-is-tabbing")}if(o.key=="ArrowLeft"||o.key=="ArrowUp"||o.key=="ArrowRight"||o.key=="ArrowDown"){var n=new Event("wmUserIsKeying");window.dispatchEvent(n);document.querySelector("body").classList.add("wmcl-user-is-keying")}}function wmComponentMouseDownOnce(){var o=new Event("wmUserIsNotTabbing");window.dispatchEvent(o);document.querySelector("body").classList.remove("wmcl-user-is-tabbing");document.querySelector("body").classList.remove("wmcl-user-is-keying")}window.addEventListener("keydown",wmComponentKeys);window.addEventListener("mousedown",wmComponentMouseDownOnce);var tooltipContainer=document.createElement("div");tooltipContainer.id="wm-tooltip-container";var tooltipEl=document.createElement("div");tooltipEl.id="wm-tooltip";tooltipEl.classList.add("wm-tooltip");tooltipEl.setAttribute("popover","manual");tooltipEl.setAttribute("aria-hidden","true");var tooltipStyles=document.createElement("style");tooltipStyles.textContent="\n.wm-tooltip {\n position: fixed;\n overflow: hidden;\n pointer-events: none;\n line-height: normal;\n font-family: inherit;\n font-size: 0.875rem;\n text-transform: none;\n font-weight: normal;\n background: var(--wmcolor-tooltip-background);\n color: var(--wmcolor-tooltip-text);\n z-index: 999999;\n max-width: var(--wmTooltipMaxWidth, 13.75rem);\n margin-right: 1.5rem;\n padding: 0.375rem;\n transition-property: opacity;\n transition-delay: 0s;\n opacity: 0;\n inset: unset;\n top: 0;\n left: 0;\n transform: translateZ(0);\n will-change: transform;\n transform: translate(var(--wmTooltipLeft), var(--wmTooltipTop));\n border: none;\n}\n\n.wm-tooltip:popover-open {\n opacity: 0;\n}\n\n.wm-tooltip.show {\n transition-delay: 500ms;\n opacity: 1;\n}\n";document.head.appendChild(tooltipStyles);tooltipContainer.appendChild(tooltipEl);document.querySelector("body").appendChild(tooltipContainer);
|
package/dist/esm-es5/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as bootstrapLazy}from"./index-558b5a82.js";export{s as setNonce}from"./index-558b5a82.js";import"./global-e7316cfe.js";var defineCustomElements=function(e,a){if(typeof window==="undefined")return undefined;return bootstrapLazy(JSON.parse('[["wm-tab-item_3",[[17,"wm-tab-list",{"customBackground":[1,"custom-background"],"customPadding":[1,"custom-padding"],"selectedTab":[1,"selected-tab"]},[[0,"tabItemLoaded","tabItemLoaded"],[0,"keydownOnTabItem","handleKeydown"]],{"selectedTab":["setSelected"]}],[17,"wm-tab-item",{"selected":[4],"show":[4],"tabId":[1,"tab-id"]}],[0,"wm-tab-panel",{"active":[1028],"tabId":[1025,"tab-id"]}]]],["wm-file",[[17,"wm-file",{"name":[1],"type":[1],"fileActions":[1,"file-actions"],"lastUpdated":[1,"last-updated"],"progress":[514],"size":[1],"uploadedBy":[1,"uploaded-by"],"errorMessage":[1,"error-message"],"showInfo":[1025,"show-info"]}]]],["wm-modal-pss_3",[[0,"wm-modal-pss-footer",{"secondaryText":[1,"secondary-text"],"primaryText":[1,"primary-text"],"infoText":[1,"info-text"],"primaryActionDisabled":[4,"primary-action-disabled"],"deleteStyle":[4,"delete-style"]}],[0,"wm-modal-pss-header",{"heading":[1],"subheading":[1]}],[0,"wm-modal-pss",{"open":[1540],"elementToFocus":[1025,"element-to-focus"],"modalType":[513,"modal-type"],"uid":[1537],"emitCloseEvent":[64],"emitPrimaryEvent":[64],"emitSecondaryEvent":[64]},[[0,"click","handleClick"],[0,"keydown","closeModalOnEscape"]],{"open":["toggleModal"]}]]],["wm-modal_3",[[0,"wm-modal-footer",{"secondaryText":[1,"secondary-text"],"primaryText":[1,"primary-text"],"infoText":[1,"info-text"],"primaryActionDisabled":[4,"primary-action-disabled"],"deleteStyle":[4,"delete-style"]}],[0,"wm-modal-header",{"heading":[1],"subheading":[1]}],[4,"wm-modal",{"open":[1540],"elementToFocus":[1025,"element-to-focus"],"modalType":[513,"modal-type"],"uid":[1537],"returnFocusEl":[32],"emitCloseEvent":[64],"emitPrimaryEvent":[64],"emitSecondaryEvent":[64]},null,{"open":["toggleModal"]}]]],["wm-navigator",[[17,"wm-navigator",{"userName":[1,"user-name"],"email":[1],"authType":[2,"auth-type"],"connectionName":[1,"connection-name"],"logoutUrl":[1,"logout-url"],"products":[1],"loadFromUserinfo":[4,"load-from-userinfo"],"isOpen":[32],"itemIndexToFocus":[32]},[[0,"keydown","handleKeys"],[0,"keydownOnNavItem","handleKeydown"],[4,"click","handleClick"],[0,"buttonActivated","handleButtonClick"]],{"products":["parseData"]}]]],["wm-optgroup",[[17,"wm-optgroup",{"label":[1],"isExpanded":[1028,"is-expanded"],"multiple":[1028],"disabled":[4],"emitDeselection":[64],"handleChildChange":[64]},[[0,"wmKeyLeftPressed","handleOptionKeyLeft"]],{"isExpanded":["isExpandedChanged"]}]]],["wm-navigation_3",[[17,"wm-navigation",{"open":[1540]},[[0,"keydown","closeOnEscape"],[9,"resize","handleWindowResize"],[8,"wmNavigationHamburgerClicked","handleHamburgerClicked"],[0,"wmNavigationItemClicked","handleClickOnItem"]],{"open":["handleStateChange"]}],[17,"wm-navigation-hamburger",{"navId":[1,"nav-id"],"isTabbing":[32],"open":[32]},[[8,"wmUserIsTabbing","toggleTabbingOn"],[8,"wmUserIsNotTabbing","toggleTabbingOff"],[4,"wmNavigationStateChanged","handleNavigationStateChanged"]]],[17,"wm-navigation-item",{"href":[1],"text":[1],"active":[4]}]]],["wm-progress-indicator_3",[[17,"wm-progress-indicator",{"label":[1],"subinfo":[1],"completionMessage":[1,"completion-message"],"showLegend":[4,"show-legend"],"printMode":[4,"print-mode"],"printModeFormat":[1,"print-mode-format"],"isTabbing":[32],"mode":[32],"userIsNavigating":[32],"focusedSliceId":[32]},[[8,"wmUserIsTabbing","toggleTabbingOn"],[8,"wmUserIsNotTabbing","toggleTabbingOff"],[0,"keydown","handleKeydown"],[0,"wmProgressSliceUpdated","handleSliceUpdate"]],{"mode":["handleModeUpdate"]}],[17,"wm-progress-monitor",{"breakpoint":[8],"groupLegend":[1,"group-legend"],"barLabelsWidth":[1,"bar-labels-width"]}],[1,"wm-progress-slice",{"legend":[1],"amount":[1],"popoverTitle":[1,"popover-title"],"popoverText":[1,"popover-text"],"popoverButtonText":[1,"popover-button-text"]}]]],["wm-chart",[[17,"wm-chart",{"chartType":[1,"chart-type"],"label":[1],"labelWidth":[1,"label-width"],"subinfo":[1],"valueFormat":[1,"value-format"],"showGrid":[4,"show-grid"],"showLegend":[4,"show-legend"],"showBarLegend":[4,"show-bar-legend"],"notStartedColor":[4,"not-started-color"],"printMode":[4,"print-mode"],"printModeFormat":[1,"print-mode-format"],"labelPosition":[1,"label-position"],"isTabbing":[32],"userIsNavigating":[32],"focusedSliceId":[32]},[[8,"wmUserIsTabbing","toggleTabbingOn"],[8,"wmUserIsNotTabbing","toggleTabbingOff"],[0,"keydown","handleKeydown"],[0,"wmChartSliceUpdated","handleSliceUpdate"]]]]],["wm-date-range",[[17,"wm-date-range",{"dateFormat":[1,"date-format"],"disabled":[4],"errorMessage":[513,"error-message"],"invalidStart":[4,"invalid-start"],"invalidEnd":[4,"invalid-end"],"labelStart":[1,"label-start"],"labelEnd":[1,"label-end"],"preselected":[1],"requiredField":[4,"required-field"],"valueStart":[1025,"value-start"],"valueEnd":[1025,"value-end"],"availSpace":[32],"isExpanded":[32],"reformatDate":[64],"isValidISO":[64]},[[0,"keydown","handleKey"],[4,"click","blurHandler"],[8,"blur","handleBlurOnWindow"],[0,"popupBlurred","handlePopupBlurred"],[0,"cellTriggered","handleCellTriggered"],[0,"outOfCal","handleOutOfCal"],[0,"cellHovered","handleCellHovered"],[9,"resize","setAvailSpace"]],{"disabled":["handleDisabled"],"valueStart":["updateValueStart"],"valueEnd":["updateValueEnd"],"errorMessage":["handleErrorMessage"]}]]],["wm-datepicker",[[17,"wm-datepicker",{"value":[1025],"disabled":[4],"dateFormat":[1,"date-format"],"errorMessage":[513,"error-message"],"labelPosition":[1,"label-position"],"label":[1],"requiredField":[4,"required-field"],"preselected":[1],"isExpanded":[32],"reformatDate":[64],"isValidIso":[64]},[[0,"keydown","handleKey"],[4,"click","blurHandler"],[8,"blur","handleBlurOnWindow"],[0,"cellTriggered","handleCellTriggered"]],{"disabled":["handleDisabledChange"],"value":["updateValue"],"errorMessage":["announceError"]}]]],["wm-line-chart",[[1,"wm-line-chart",{"label":[1],"description":[1],"xAxisLabel":[1,"x-axis-label"],"yAxisLabel":[1,"y-axis-label"],"lineData":[513,"line-data"],"units":[1],"labelWidth":[1,"label-width"],"highlightQualifier":[1,"highlight-qualifier"],"highlightStart":[1,"highlight-start"],"highlightEnd":[1,"highlight-end"],"visibilityToggles":[4,"visibility-toggles"],"showDeltas":[4,"show-deltas"],"yRange":[1,"y-range"],"parsedLineData":[32],"popoverIndex":[32],"focusedLine":[32],"hiddenLines":[32],"isTabbing":[32],"intervalSkip":[32],"announcement":[32]},[[8,"wmUserIsTabbing","toggleTabbingOn"],[8,"wmUserIsNotTabbing","toggleTabbingOff"]],{"lineData":["parseData"],"intervalSkip":["handleIntervalSkip"]}]]],["wm-search",[[17,"wm-search",{"searchType":[1025,"search-type"],"disabled":[516],"placeholder":[1],"label":[1],"numResults":[1026,"num-results"],"value":[1537],"highlightedId":[1,"highlighted-id"],"highlightedName":[1,"highlighted-name"],"isTabbing":[32],"highlightedNum":[32],"previousBlurredValue":[32],"parentModal":[32],"announcement":[32],"updateValue":[64]},[[8,"wmUserIsTabbing","toggleTabbingOn"],[8,"wmUserIsNotTabbing","toggleTabbingOff"]],{"numResults":["handleNumResultsUpdate"],"disabled":["handleDisabledChange"]}]]],["wm-chart-slice",[[0,"wm-chart-slice",{"legend":[1],"amount":[1],"popoverTitle":[1,"popover-title"],"popoverText":[1,"popover-text"],"popoverButtonText":[1,"popover-button-text"]}]]],["wm-file-list",[[17,"wm-file-list",{"showInfo":[1,"show-info"]}]]],["wm-input",[[17,"wm-input",{"label":[1],"labelPosition":[1,"label-position"],"value":[1025],"disabled":[4],"info":[1],"inputWidth":[1,"input-width"],"placeholder":[1],"requiredField":[4,"required-field"],"errorMessage":[1,"error-message"],"characterLimit":[2,"character-limit"],"symbolBefore":[1,"symbol-before"],"symbolAfter":[1,"symbol-after"],"textAfter":[1,"text-after"],"type":[1],"step":[2],"min":[2],"max":[2],"isSubmit":[4,"is-submit"],"announcement":[32]},null,{"disabled":["handleDisabledChange"],"errorMessage":["announceError"]}]]],["wm-nested-select",[[17,"wm-nested-select",{"disabled":[516],"maxHeight":[1,"max-height"],"label":[1025],"labelPosition":[1,"label-position"],"requiredField":[4,"required-field"],"errorMessage":[1025,"error-message"],"multiple":[4],"search":[4],"selectAll":[4,"select-all"],"placeholder":[1],"searchPlaceholder":[1,"search-placeholder"],"allSelectedMessage":[1,"all-selected-message"],"constrainedMaxHeight":[1025,"constrained-max-height"],"isExpanded":[32],"showClearSelectionButton":[32],"announcement":[32]},[[0,"wmOptionSelected","handleOptionSelection"],[0,"wmEnterKeyPressed","handleChildEnter"],[0,"wmEscKeyPressed","closePopupOnEscape"],[0,"keydown","handleKeyDown"],[6,"click","handleClick"],[0,"optgroupExpanded","handleOptgroupExpanded"],[0,"optgroupHidden","handleOptgroupHidden"]]]]],["wm-pagination",[[17,"wm-pagination",{"currentPage":[2,"current-page"],"totalItems":[2,"total-items"],"itemsPerPage":[2,"items-per-page"],"value":[2],"isLargeSize":[4,"is-large-size"],"srAnnouncement":[32]},null,{"totalItems":["calculateTotalPages"],"itemsPerPage":["calculateTotalPages"]}]]],["wm-snackbar",[[1,"wm-snackbar",{"notifications":[1537],"isTabbing":[32],"announcement":[32]},[[4,"keydown","checkForTabbing"],[5,"mouseover","handleMouse"]],{"notifications":["updateSnacks"]}]]],["wm-tag-input",[[17,"wm-tag-input",{"label":[1],"errorMessage":[1,"error-message"],"info":[1],"labelPosition":[1,"label-position"],"maxTags":[2,"max-tags"],"placeholder":[1025],"requiredField":[4,"required-field"],"tagInputType":[1,"tag-input-type"],"helpText":[1,"help-text"],"addNew":[4,"add-new"],"characterLimit":[2,"character-limit"],"colHeaders":[1,"col-headers"],"colWidths":[1,"col-widths"],"colWrap":[1,"col-wrap"],"isKeying":[32],"isExpanded":[32],"liveRegionMessage":[32],"focusedOption":[32],"focusedColumn":[32],"focusedTagIndex":[32],"tagsList":[32]},[[8,"wmUserIsKeying","toggleKeyingOn"],[8,"wmUserIsTabbing","toggleKeyingOn"],[8,"wmUserIsNotKeying","toggleKeyingOff"],[8,"wmUserIsNotTabbing","toggleKeyingOff"],[0,"privTagOptionSelected","handleTagOptionSelected"],[0,"privTagOptionDeselected","handleTagOptionDeselected"],[4,"click","handleClick"],[11,"scroll","dismissTooltip"],[0,"blur","handleBlur"]],{"errorMessage":["announceError"]}]]],["wm-tag-option",[[0,"wm-tag-option",{"selected":[1540],"locked":[4],"col1":[1],"col2":[1],"col3":[1],"col4":[1],"emitSelectedEvent":[64],"emitDeselectedEvent":[64]},null,{"selected":["handleSelected"]}]]],["wm-textarea",[[1,"wm-textarea",{"label":[1],"labelPosition":[1,"label-position"],"value":[1025],"disabled":[4],"info":[1],"placeholder":[1],"requiredField":[4,"required-field"],"errorMessage":[1,"error-message"],"characterLimit":[2,"character-limit"],"inputWidth":[1,"input-width"],"inputHeight":[1,"input-height"],"announcement":[32]},null,{"disabled":["handleDisabledChange"],"errorMessage":["announceError"]}]]],["wm-timepicker",[[17,"wm-timepicker",{"disabled":[4],"value":[1025],"errorMessage":[1,"error-message"],"label":[1],"labelPosition":[1,"label-position"],"requiredField":[4,"required-field"],"preselected":[1],"isExpanded":[32],"isValidTime":[64],"reformatTime":[64]},[[0,"keydown","handleKey"]],{"disabled":["handleDisabledChange"],"value":["handleValueChange"],"errorMessage":["announceError"]}]]],["wm-toggletip",[[17,"wm-toggletip",{"label":[1],"tooltip":[1025],"tooltipPosition":[1537,"tooltip-position"],"targetSize":[1,"target-size"],"isOpen":[32]},[[0,"keydown","handleKeydown"],[4,"click","handleClick"]]]]],["wm-uploader",[[17,"wm-uploader",{"label":[1],"buttonText":[1,"button-text"],"icon":[1],"fileTypes":[1,"file-types"],"maxSize":[1,"max-size"],"maxFiles":[2,"max-files"],"errorMessage":[1,"error-message"],"requiredField":[4,"required-field"],"showInfo":[1,"show-info"],"isTabbing":[32],"notif":[32],"isCondensed":[32]},[[8,"wmUserIsTabbing","toggleTabbingOn"],[8,"wmUserIsNotTabbing","toggleTabbingOff"],[0,"wmFileErrorCleared","handleFileErrorCleared"],[0,"wmFileDelete","storeDeletedId"]],{"errorMessage":["announceError"]}]]],["wm-wrapper",[[0,"wm-wrapper"]]],["priv-navigator-button",[[17,"priv-navigator-button",{"expanded":[1028],"altText":[1,"alt-text"]}]]],["priv-navigator-item",[[1,"priv-navigator-item",{"selected":[1028],"focused":[1028],"link":[1025]},[[0,"keydown","handleKeyDown"]]]]],["priv-calendar",[[0,"priv-calendar",{"disabled":[4],"view":[1025],"focusDate":[1025,"focus-date"],"startDate":[1,"start-date"],"endDate":[1,"end-date"],"hoverDate":[1,"hover-date"],"focusFirstFocusable":[64],"focusLastFocusable":[64],"focusCell":[64]},[[0,"keydown","handleKey"]],{"focusDate":["handleFocusDate"]}]]],["priv-chart-popover",[[0,"priv-chart-popover",{"open":[1028],"sliceDetails":[16]},[[4,"click","handleClickOnDocument"],[0,"click","handleClick"]],{"open":["handleOpenChange"],"sliceDetails":["handleDetailsChange"]}]]],["wm-option_2",[[17,"wm-select",{"disabled":[516],"maxHeight":[1,"max-height"],"label":[1025],"labelPosition":[1,"label-position"],"requiredField":[4,"required-field"],"errorMessage":[1025,"error-message"],"multiple":[4],"search":[4],"selectAll":[4,"select-all"],"placeholder":[1],"searchPlaceholder":[1,"search-placeholder"],"allSelectedMessage":[1,"all-selected-message"],"isExpanded":[32],"announcement":[32]},[[0,"wmOptionSelected","handleOptionSelection"],[0,"wmEnterKeyPressed","handleChildEnter"],[0,"wmEscKeyPressed","closePopupOnEscape"],[0,"wmOptionBlurred","handleOptionBlur"],[6,"click","handleClick"],[0,"keydown","handleKey"]],{"errorMessage":["announceError"],"disabled":["handleDisabledChange"]}],[1,"wm-option",{"value":[1],"subinfo":[1025],"disabled":[516],"selected":[516],"focused":[4],"searchTerm":[32]},[[0,"keydown","handleKeydown"],[0,"click","handleSelection"],[0,"blur","handleBlur"]],{"selected":["syncAriaSelected"],"disabled":["syncAriaDisabled","updateDisabledOnClick"]}]]],["priv-option-list",[[4,"priv-option-list",{"multiple":[4],"search":[4],"selectAll":[4,"select-all"],"searchPlaceholder":[1,"search-placeholder"],"optgroupLabel":[1,"optgroup-label"],"maxHeight":[1,"max-height"],"upwardsHeightLimit":[2,"upwards-height-limit"],"announcement":[32],"searchTerm":[32],"handleChildChange":[64],"clearSearch":[64],"focusOption":[64],"handleInitialFocus":[64],"unfocusAll":[64],"updateOptionVisibility":[64]},[[0,"wmLetterPressed","findAndFocusOption"],[0,"wmOptionSelected","handleOptionSelection"],[0,"wmKeyUpPressed","handleChildUp"],[0,"wmKeyDownPressed","handleChildDown"],[0,"wmHomeKeyPressed","moveToFirstOption"],[0,"wmEndKeyPressed","moveToLastOption"],[0,"intCloneClicked","handleOptionCloneSelection"]]]]],["wm-button",[[17,"wm-button",{"disabled":[516],"buttonType":[1025,"button-type"],"icon":[1537],"iconSize":[1,"icon-size"],"iconRotate":[2,"icon-rotate"],"iconFlip":[1,"icon-flip"],"tooltip":[1537],"labelForIdenticalButtons":[1,"label-for-identical-buttons"],"tooltipPosition":[1,"tooltip-position"],"permanentlyDelete":[4,"permanently-delete"],"textWrap":[4,"text-wrap"],"customBackground":[1,"custom-background"],"isSubmit":[4,"is-submit"],"isTabbing":[32]},[[8,"wmUserIsTabbing","toggleTabbingOn"],[8,"wmUserIsNotTabbing","toggleTabbingOff"],[11,"scroll","handleScroll"],[0,"keydown","handleKeydown"]],{"buttonType":["validateType"],"icon":["updateIcon"],"disabled":["handleDisabledChange"]}]]],["wm-action-menu_2",[[17,"wm-action-menu",{"tooltipPosition":[1,"tooltip-position"],"actionMenuType":[1,"action-menu-type"],"buttonText":[1,"button-text"],"disabled":[516],"tooltip":[1],"labelForIdenticalButtons":[1,"label-for-identical-buttons"],"darkMode":[4,"dark-mode"],"isExpanded":[32]},[[0,"wmMenuitemClicked","handleClickedItem"],[0,"wmKeyUpPressed","handleKeyUp"],[0,"wmKeyDownPressed","handleKeyDown"],[0,"wmHomeKeyPressed","handleHomeKey"],[0,"wmEndKeyPressed","handleEndKey"],[0,"wmTabKeyPressed","handleTabKey"],[0,"wmEscKeyPressed","handleEscKey"],[0,"keydown","handleKey"],[0,"wmMenuitemBlurred","handleMenuitemBlur"],[0,"wmLetterPressed","findAndFocusItem"]]],[1,"wm-menuitem",{"disabled":[4],"icon":[1025],"description":[1]},[[0,"keydown","handleKeydown"],[0,"click","handleClick"],[0,"blur","handleBlur"]],{"disabled":["setOnClick"]}]]]]'),a)};export{defineCustomElements};
|
|
1
|
+
import{b as bootstrapLazy}from"./index-558b5a82.js";export{s as setNonce}from"./index-558b5a82.js";import"./global-3ec0570b.js";var defineCustomElements=function(e,a){if(typeof window==="undefined")return undefined;return bootstrapLazy(JSON.parse('[["wm-tab-item_3",[[17,"wm-tab-list",{"customBackground":[1,"custom-background"],"customPadding":[1,"custom-padding"],"selectedTab":[1,"selected-tab"]},[[0,"tabItemLoaded","tabItemLoaded"],[0,"keydownOnTabItem","handleKeydown"]],{"selectedTab":["setSelected"]}],[17,"wm-tab-item",{"selected":[4],"show":[4],"tabId":[1,"tab-id"]}],[0,"wm-tab-panel",{"active":[1028],"tabId":[1025,"tab-id"]}]]],["wm-file",[[17,"wm-file",{"name":[1],"type":[1],"fileActions":[1,"file-actions"],"lastUpdated":[1,"last-updated"],"progress":[514],"size":[1],"uploadedBy":[1,"uploaded-by"],"errorMessage":[1,"error-message"],"showInfo":[1025,"show-info"]}]]],["wm-modal-pss_3",[[0,"wm-modal-pss-footer",{"secondaryText":[1,"secondary-text"],"primaryText":[1,"primary-text"],"infoText":[1,"info-text"],"primaryActionDisabled":[4,"primary-action-disabled"],"deleteStyle":[4,"delete-style"]}],[0,"wm-modal-pss-header",{"heading":[1],"subheading":[1]}],[0,"wm-modal-pss",{"open":[1540],"elementToFocus":[1025,"element-to-focus"],"modalType":[513,"modal-type"],"uid":[1537],"emitCloseEvent":[64],"emitPrimaryEvent":[64],"emitSecondaryEvent":[64]},[[0,"click","handleClick"],[0,"keydown","closeModalOnEscape"]],{"open":["toggleModal"]}]]],["wm-modal_3",[[0,"wm-modal-footer",{"secondaryText":[1,"secondary-text"],"primaryText":[1,"primary-text"],"infoText":[1,"info-text"],"primaryActionDisabled":[4,"primary-action-disabled"],"deleteStyle":[4,"delete-style"]}],[0,"wm-modal-header",{"heading":[1],"subheading":[1]}],[4,"wm-modal",{"open":[1540],"elementToFocus":[1025,"element-to-focus"],"modalType":[513,"modal-type"],"uid":[1537],"returnFocusEl":[32],"emitCloseEvent":[64],"emitPrimaryEvent":[64],"emitSecondaryEvent":[64]},null,{"open":["toggleModal"]}]]],["wm-navigator",[[17,"wm-navigator",{"userName":[1,"user-name"],"email":[1],"authType":[2,"auth-type"],"connectionName":[1,"connection-name"],"logoutUrl":[1,"logout-url"],"products":[1],"loadFromUserinfo":[4,"load-from-userinfo"],"isOpen":[32],"itemIndexToFocus":[32]},[[0,"keydown","handleKeys"],[0,"keydownOnNavItem","handleKeydown"],[4,"click","handleClick"],[0,"buttonActivated","handleButtonClick"]],{"products":["parseData"]}]]],["wm-optgroup",[[17,"wm-optgroup",{"label":[1],"isExpanded":[1028,"is-expanded"],"multiple":[1028],"disabled":[4],"emitDeselection":[64],"handleChildChange":[64]},[[0,"wmKeyLeftPressed","handleOptionKeyLeft"]],{"isExpanded":["isExpandedChanged"]}]]],["wm-navigation_3",[[17,"wm-navigation",{"open":[1540]},[[0,"keydown","closeOnEscape"],[9,"resize","handleWindowResize"],[8,"wmNavigationHamburgerClicked","handleHamburgerClicked"],[0,"wmNavigationItemClicked","handleClickOnItem"]],{"open":["handleStateChange"]}],[17,"wm-navigation-hamburger",{"navId":[1,"nav-id"],"isTabbing":[32],"open":[32]},[[8,"wmUserIsTabbing","toggleTabbingOn"],[8,"wmUserIsNotTabbing","toggleTabbingOff"],[4,"wmNavigationStateChanged","handleNavigationStateChanged"]]],[17,"wm-navigation-item",{"href":[1],"text":[1],"active":[4]}]]],["wm-progress-indicator_3",[[17,"wm-progress-indicator",{"label":[1],"subinfo":[1],"completionMessage":[1,"completion-message"],"showLegend":[4,"show-legend"],"printMode":[4,"print-mode"],"printModeFormat":[1,"print-mode-format"],"isTabbing":[32],"mode":[32],"userIsNavigating":[32],"focusedSliceId":[32]},[[8,"wmUserIsTabbing","toggleTabbingOn"],[8,"wmUserIsNotTabbing","toggleTabbingOff"],[0,"keydown","handleKeydown"],[0,"wmProgressSliceUpdated","handleSliceUpdate"]],{"mode":["handleModeUpdate"]}],[17,"wm-progress-monitor",{"breakpoint":[8],"groupLegend":[1,"group-legend"],"barLabelsWidth":[1,"bar-labels-width"]}],[1,"wm-progress-slice",{"legend":[1],"amount":[1],"popoverTitle":[1,"popover-title"],"popoverText":[1,"popover-text"],"popoverButtonText":[1,"popover-button-text"]}]]],["wm-chart",[[17,"wm-chart",{"chartType":[1,"chart-type"],"label":[1],"labelWidth":[1,"label-width"],"subinfo":[1],"valueFormat":[1,"value-format"],"showGrid":[4,"show-grid"],"showLegend":[4,"show-legend"],"showBarLegend":[4,"show-bar-legend"],"notStartedColor":[4,"not-started-color"],"printMode":[4,"print-mode"],"printModeFormat":[1,"print-mode-format"],"labelPosition":[1,"label-position"],"isTabbing":[32],"userIsNavigating":[32],"focusedSliceId":[32]},[[8,"wmUserIsTabbing","toggleTabbingOn"],[8,"wmUserIsNotTabbing","toggleTabbingOff"],[0,"keydown","handleKeydown"],[0,"wmChartSliceUpdated","handleSliceUpdate"]]]]],["wm-date-range",[[17,"wm-date-range",{"dateFormat":[1,"date-format"],"disabled":[4],"errorMessage":[513,"error-message"],"invalidStart":[4,"invalid-start"],"invalidEnd":[4,"invalid-end"],"labelStart":[1,"label-start"],"labelEnd":[1,"label-end"],"preselected":[1],"requiredField":[4,"required-field"],"valueStart":[1025,"value-start"],"valueEnd":[1025,"value-end"],"availSpace":[32],"isExpanded":[32],"reformatDate":[64],"isValidISO":[64]},[[0,"keydown","handleKey"],[4,"click","blurHandler"],[8,"blur","handleBlurOnWindow"],[0,"popupBlurred","handlePopupBlurred"],[0,"cellTriggered","handleCellTriggered"],[0,"outOfCal","handleOutOfCal"],[0,"cellHovered","handleCellHovered"],[9,"resize","setAvailSpace"]],{"disabled":["handleDisabled"],"valueStart":["updateValueStart"],"valueEnd":["updateValueEnd"],"errorMessage":["handleErrorMessage"]}]]],["wm-datepicker",[[17,"wm-datepicker",{"value":[1025],"disabled":[4],"dateFormat":[1,"date-format"],"errorMessage":[513,"error-message"],"labelPosition":[1,"label-position"],"label":[1],"requiredField":[4,"required-field"],"preselected":[1],"isExpanded":[32],"reformatDate":[64],"isValidIso":[64]},[[0,"keydown","handleKey"],[4,"click","blurHandler"],[8,"blur","handleBlurOnWindow"],[0,"cellTriggered","handleCellTriggered"]],{"disabled":["handleDisabledChange"],"value":["updateValue"],"errorMessage":["announceError"]}]]],["wm-line-chart",[[1,"wm-line-chart",{"label":[1],"description":[1],"xAxisLabel":[1,"x-axis-label"],"yAxisLabel":[1,"y-axis-label"],"lineData":[513,"line-data"],"units":[1],"labelWidth":[1,"label-width"],"highlightQualifier":[1,"highlight-qualifier"],"highlightStart":[1,"highlight-start"],"highlightEnd":[1,"highlight-end"],"visibilityToggles":[4,"visibility-toggles"],"showDeltas":[4,"show-deltas"],"yRange":[1,"y-range"],"parsedLineData":[32],"popoverIndex":[32],"focusedLine":[32],"hiddenLines":[32],"isTabbing":[32],"intervalSkip":[32],"announcement":[32]},[[8,"wmUserIsTabbing","toggleTabbingOn"],[8,"wmUserIsNotTabbing","toggleTabbingOff"]],{"lineData":["parseData"],"intervalSkip":["handleIntervalSkip"]}]]],["wm-search",[[17,"wm-search",{"searchType":[1025,"search-type"],"disabled":[516],"placeholder":[1],"label":[1],"numResults":[1026,"num-results"],"value":[1537],"highlightedId":[1,"highlighted-id"],"highlightedName":[1,"highlighted-name"],"isTabbing":[32],"highlightedNum":[32],"previousBlurredValue":[32],"parentModal":[32],"announcement":[32],"updateValue":[64]},[[8,"wmUserIsTabbing","toggleTabbingOn"],[8,"wmUserIsNotTabbing","toggleTabbingOff"]],{"numResults":["handleNumResultsUpdate"],"disabled":["handleDisabledChange"]}]]],["wm-chart-slice",[[0,"wm-chart-slice",{"legend":[1],"amount":[1],"popoverTitle":[1,"popover-title"],"popoverText":[1,"popover-text"],"popoverButtonText":[1,"popover-button-text"]}]]],["wm-file-list",[[17,"wm-file-list",{"showInfo":[1,"show-info"]}]]],["wm-input",[[17,"wm-input",{"label":[1],"labelPosition":[1,"label-position"],"value":[1025],"disabled":[4],"info":[1],"inputWidth":[1,"input-width"],"placeholder":[1],"requiredField":[4,"required-field"],"errorMessage":[1,"error-message"],"characterLimit":[2,"character-limit"],"symbolBefore":[1,"symbol-before"],"symbolAfter":[1,"symbol-after"],"textAfter":[1,"text-after"],"type":[1],"step":[2],"min":[2],"max":[2],"isSubmit":[4,"is-submit"],"announcement":[32]},null,{"disabled":["handleDisabledChange"],"errorMessage":["announceError"]}]]],["wm-nested-select",[[17,"wm-nested-select",{"disabled":[516],"maxHeight":[1,"max-height"],"label":[1025],"labelPosition":[1,"label-position"],"requiredField":[4,"required-field"],"errorMessage":[1025,"error-message"],"multiple":[4],"search":[4],"selectAll":[4,"select-all"],"placeholder":[1],"searchPlaceholder":[1,"search-placeholder"],"allSelectedMessage":[1,"all-selected-message"],"constrainedMaxHeight":[1025,"constrained-max-height"],"isExpanded":[32],"showClearSelectionButton":[32],"announcement":[32]},[[0,"wmOptionSelected","handleOptionSelection"],[0,"wmEnterKeyPressed","handleChildEnter"],[0,"wmEscKeyPressed","closePopupOnEscape"],[0,"keydown","handleKeyDown"],[6,"click","handleClick"],[0,"optgroupExpanded","handleOptgroupExpanded"],[0,"optgroupHidden","handleOptgroupHidden"]]]]],["wm-pagination",[[17,"wm-pagination",{"currentPage":[2,"current-page"],"totalItems":[2,"total-items"],"itemsPerPage":[2,"items-per-page"],"value":[2],"isLargeSize":[4,"is-large-size"],"srAnnouncement":[32]},null,{"totalItems":["calculateTotalPages"],"itemsPerPage":["calculateTotalPages"]}]]],["wm-snackbar",[[1,"wm-snackbar",{"notifications":[1537],"isTabbing":[32],"announcement":[32]},[[4,"keydown","checkForTabbing"],[5,"mouseover","handleMouse"]],{"notifications":["updateSnacks"]}]]],["wm-tag-input",[[17,"wm-tag-input",{"label":[1],"errorMessage":[1,"error-message"],"info":[1],"labelPosition":[1,"label-position"],"maxTags":[2,"max-tags"],"placeholder":[1025],"requiredField":[4,"required-field"],"tagInputType":[1,"tag-input-type"],"helpText":[1,"help-text"],"addNew":[4,"add-new"],"characterLimit":[2,"character-limit"],"colHeaders":[1,"col-headers"],"colWidths":[1,"col-widths"],"colWrap":[1,"col-wrap"],"isKeying":[32],"isExpanded":[32],"liveRegionMessage":[32],"focusedOption":[32],"focusedColumn":[32],"focusedTagIndex":[32],"tagsList":[32]},[[8,"wmUserIsKeying","toggleKeyingOn"],[8,"wmUserIsTabbing","toggleKeyingOn"],[8,"wmUserIsNotKeying","toggleKeyingOff"],[8,"wmUserIsNotTabbing","toggleKeyingOff"],[0,"privTagOptionSelected","handleTagOptionSelected"],[0,"privTagOptionDeselected","handleTagOptionDeselected"],[4,"click","handleClick"],[11,"scroll","dismissTooltip"],[0,"blur","handleBlur"]],{"errorMessage":["announceError"]}]]],["wm-tag-option",[[0,"wm-tag-option",{"selected":[1540],"locked":[4],"col1":[1],"col2":[1],"col3":[1],"col4":[1],"emitSelectedEvent":[64],"emitDeselectedEvent":[64]},null,{"selected":["handleSelected"]}]]],["wm-textarea",[[1,"wm-textarea",{"label":[1],"labelPosition":[1,"label-position"],"value":[1025],"disabled":[4],"info":[1],"placeholder":[1],"requiredField":[4,"required-field"],"errorMessage":[1,"error-message"],"characterLimit":[2,"character-limit"],"inputWidth":[1,"input-width"],"inputHeight":[1,"input-height"],"announcement":[32]},null,{"disabled":["handleDisabledChange"],"errorMessage":["announceError"]}]]],["wm-timepicker",[[17,"wm-timepicker",{"disabled":[4],"value":[1025],"errorMessage":[1,"error-message"],"label":[1],"labelPosition":[1,"label-position"],"requiredField":[4,"required-field"],"preselected":[1],"isExpanded":[32],"isValidTime":[64],"reformatTime":[64]},[[0,"keydown","handleKey"]],{"disabled":["handleDisabledChange"],"value":["handleValueChange"],"errorMessage":["announceError"]}]]],["wm-toggletip",[[17,"wm-toggletip",{"label":[1],"tooltip":[1025],"tooltipPosition":[1537,"tooltip-position"],"targetSize":[1,"target-size"],"isOpen":[32]},[[0,"keydown","handleKeydown"],[4,"click","handleClick"]]]]],["wm-uploader",[[17,"wm-uploader",{"label":[1],"buttonText":[1,"button-text"],"icon":[1],"fileTypes":[1,"file-types"],"maxSize":[1,"max-size"],"maxFiles":[2,"max-files"],"errorMessage":[1,"error-message"],"requiredField":[4,"required-field"],"showInfo":[1,"show-info"],"isTabbing":[32],"notif":[32],"isCondensed":[32]},[[8,"wmUserIsTabbing","toggleTabbingOn"],[8,"wmUserIsNotTabbing","toggleTabbingOff"],[0,"wmFileErrorCleared","handleFileErrorCleared"],[0,"wmFileDelete","storeDeletedId"]],{"errorMessage":["announceError"]}]]],["wm-wrapper",[[0,"wm-wrapper"]]],["priv-navigator-button",[[17,"priv-navigator-button",{"expanded":[1028],"altText":[1,"alt-text"]}]]],["priv-navigator-item",[[1,"priv-navigator-item",{"selected":[1028],"focused":[1028],"link":[1025]},[[0,"keydown","handleKeyDown"]]]]],["priv-calendar",[[0,"priv-calendar",{"disabled":[4],"view":[1025],"focusDate":[1025,"focus-date"],"startDate":[1,"start-date"],"endDate":[1,"end-date"],"hoverDate":[1,"hover-date"],"focusFirstFocusable":[64],"focusLastFocusable":[64],"focusCell":[64]},[[0,"keydown","handleKey"]],{"focusDate":["handleFocusDate"]}]]],["priv-chart-popover",[[0,"priv-chart-popover",{"open":[1028],"sliceDetails":[16]},[[4,"click","handleClickOnDocument"],[0,"click","handleClick"]],{"open":["handleOpenChange"],"sliceDetails":["handleDetailsChange"]}]]],["wm-option_2",[[17,"wm-select",{"disabled":[516],"maxHeight":[1,"max-height"],"label":[1025],"labelPosition":[1,"label-position"],"requiredField":[4,"required-field"],"errorMessage":[1025,"error-message"],"multiple":[4],"search":[4],"selectAll":[4,"select-all"],"placeholder":[1],"searchPlaceholder":[1,"search-placeholder"],"allSelectedMessage":[1,"all-selected-message"],"isExpanded":[32],"announcement":[32]},[[0,"wmOptionSelected","handleOptionSelection"],[0,"wmEnterKeyPressed","handleChildEnter"],[0,"wmEscKeyPressed","closePopupOnEscape"],[0,"wmOptionBlurred","handleOptionBlur"],[6,"click","handleClick"],[0,"keydown","handleKey"]],{"errorMessage":["announceError"],"disabled":["handleDisabledChange"]}],[1,"wm-option",{"value":[1],"subinfo":[1025],"disabled":[516],"selected":[516],"focused":[4],"searchTerm":[32]},[[0,"keydown","handleKeydown"],[0,"click","handleSelection"],[0,"blur","handleBlur"]],{"selected":["syncAriaSelected"],"disabled":["syncAriaDisabled","updateDisabledOnClick"]}]]],["priv-option-list",[[4,"priv-option-list",{"multiple":[4],"search":[4],"selectAll":[4,"select-all"],"searchPlaceholder":[1,"search-placeholder"],"optgroupLabel":[1,"optgroup-label"],"maxHeight":[1,"max-height"],"upwardsHeightLimit":[2,"upwards-height-limit"],"announcement":[32],"searchTerm":[32],"handleChildChange":[64],"clearSearch":[64],"focusOption":[64],"handleInitialFocus":[64],"unfocusAll":[64],"updateOptionVisibility":[64]},[[0,"wmLetterPressed","findAndFocusOption"],[0,"wmOptionSelected","handleOptionSelection"],[0,"wmKeyUpPressed","handleChildUp"],[0,"wmKeyDownPressed","handleChildDown"],[0,"wmHomeKeyPressed","moveToFirstOption"],[0,"wmEndKeyPressed","moveToLastOption"],[0,"intCloneClicked","handleOptionCloneSelection"]]]]],["wm-button",[[17,"wm-button",{"disabled":[516],"buttonType":[1025,"button-type"],"icon":[1537],"iconSize":[1,"icon-size"],"iconRotate":[2,"icon-rotate"],"iconFlip":[1,"icon-flip"],"tooltip":[1537],"labelForIdenticalButtons":[1,"label-for-identical-buttons"],"tooltipPosition":[1,"tooltip-position"],"permanentlyDelete":[4,"permanently-delete"],"textWrap":[4,"text-wrap"],"customBackground":[1,"custom-background"],"isSubmit":[4,"is-submit"],"isTabbing":[32]},[[8,"wmUserIsTabbing","toggleTabbingOn"],[8,"wmUserIsNotTabbing","toggleTabbingOff"],[11,"scroll","handleScroll"],[0,"keydown","handleKeydown"]],{"buttonType":["validateType"],"icon":["updateIcon"],"disabled":["handleDisabledChange"]}]]],["wm-action-menu_2",[[17,"wm-action-menu",{"tooltipPosition":[1,"tooltip-position"],"actionMenuType":[1,"action-menu-type"],"buttonText":[1,"button-text"],"disabled":[516],"tooltip":[1],"labelForIdenticalButtons":[1,"label-for-identical-buttons"],"darkMode":[4,"dark-mode"],"isExpanded":[32]},[[0,"wmMenuitemClicked","handleClickedItem"],[0,"wmKeyUpPressed","handleKeyUp"],[0,"wmKeyDownPressed","handleKeyDown"],[0,"wmHomeKeyPressed","handleHomeKey"],[0,"wmEndKeyPressed","handleEndKey"],[0,"wmTabKeyPressed","handleTabKey"],[0,"wmEscKeyPressed","handleEscKey"],[0,"keydown","handleKey"],[0,"wmMenuitemBlurred","handleMenuitemBlur"],[0,"wmLetterPressed","findAndFocusItem"]]],[1,"wm-menuitem",{"disabled":[4],"icon":[1025],"description":[1]},[[0,"keydown","handleKeydown"],[0,"click","handleClick"],[0,"blur","handleBlur"]],{"disabled":["setOnClick"]}]]]]'),a)};export{defineCustomElements};
|