@watermarkinsights/ripple 5.22.1-alpha.1 → 5.22.1-alpha.2

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index-788526f5.js');
4
4
 
5
- const version = "5.22.1-alpha.1";
5
+ const version = "5.22.1-alpha.2";
6
6
 
7
7
  // PRINT RIPPLE VERSION IN CONSOLE
8
8
  // test envs return 0 for plugin.length
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-788526f5.js');
6
- const appGlobals = require('./app-globals-79f7a9d2.js');
6
+ const appGlobals = require('./app-globals-025b4565.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-788526f5.js');
6
- const appGlobals = require('./app-globals-79f7a9d2.js');
6
+ const appGlobals = require('./app-globals-025b4565.js');
7
7
 
8
8
  /*
9
9
  Stencil Client Patch Browser v4.21.0 | MIT Licensed | https://stenciljs.com
@@ -192,6 +192,7 @@ const Select = class {
192
192
  //////////////////////////////////////
193
193
  // for multiselect button text
194
194
  this.overflowCount = 0;
195
+ this.displayedOptions = [];
195
196
  this.previousDisplayedOptions = [];
196
197
  this.debouncedReposition = functions.debounce(() => {
197
198
  this.dropdownPosition();
@@ -454,45 +455,56 @@ const Select = class {
454
455
  }
455
456
  this.announcement = message;
456
457
  }
458
+ handleOverflow() {
459
+ // handle overflow + counter for multiselect
460
+ // this is a fixed measurement accounting for the max width of a 3 character overflow counter
461
+ const overflowCounterWidth = 38;
462
+ const computedStyle = window.getComputedStyle(this.buttonEl);
463
+ // there seems to be no quick way to get an elements width without padding, except for subtracting padding manually
464
+ const paddingLeft = parseInt(computedStyle.getPropertyValue("padding-left").slice(0, -2));
465
+ const paddingRight = parseInt(computedStyle.getPropertyValue("padding-right").slice(0, -2));
466
+ const availableSpace = this.buttonEl.clientWidth - paddingLeft - paddingRight - overflowCounterWidth;
467
+ this.overflowCount = 0;
468
+ this.measurementAreaEl.textContent = this.displayedOptions.map((x) => x.textContent).join(", ");
469
+ let optionsTotalWidth = this.measurementAreaEl.clientWidth;
470
+ while (optionsTotalWidth > availableSpace && this.displayedOptions.length > 1) {
471
+ this.overflowCount++;
472
+ this.displayedOptions.pop();
473
+ this.measurementAreaEl.textContent = this.displayedOptions.map((x) => x.textContent).join(", ");
474
+ optionsTotalWidth = this.measurementAreaEl.clientWidth;
475
+ }
476
+ }
457
477
  renderButtonText() {
458
478
  if (!this.multiple) {
459
- const selEl = this.childOptions.filter((x) => x.selected)[0] || this.childOptions[0];
460
- return selEl.textContent;
479
+ const selEl = this.childOptions.filter((x) => x.selected)[0];
480
+ return selEl ? selEl.textContent : "";
461
481
  }
462
482
  else {
463
- const displayedOptions = this.childOptions.filter((x) => x.selected);
464
- if (displayedOptions.length < 1 || !this.buttonEl) {
483
+ this.displayedOptions = this.childOptions.filter((x) => x.selected);
484
+ const hasChanged = this.displayedOptions !== this.previousDisplayedOptions;
485
+ const noDisplayedOptions = this.displayedOptions.length < 1;
486
+ if (!this.buttonEl) {
487
+ return "";
488
+ }
489
+ else if (noDisplayedOptions) {
465
490
  return this.placeholder;
466
491
  }
467
- else if (displayedOptions !== this.previousDisplayedOptions) {
468
- // handle overflow + counter for multiselect
469
- // this is a fixed measurement accounting for the max width of a 3 character overflow counter
470
- const overflowCounterWidth = 38;
471
- const computedStyle = window.getComputedStyle(this.buttonEl);
472
- // there seems to be no quick way to get an elements width without padding, except for subtracting padding manually
473
- const paddingLeft = parseInt(computedStyle.getPropertyValue("padding-left").slice(0, -2));
474
- const paddingRight = parseInt(computedStyle.getPropertyValue("padding-right").slice(0, -2));
475
- const availableSpace = this.buttonEl.clientWidth - paddingLeft - paddingRight - overflowCounterWidth;
476
- this.overflowCount = 0;
477
- this.measurementAreaEl.textContent = displayedOptions.map((x) => x.textContent).join(", ");
478
- let optionsTotalWidth = this.measurementAreaEl.clientWidth;
479
- while (optionsTotalWidth > availableSpace && displayedOptions.length > 1) {
480
- this.overflowCount++;
481
- displayedOptions.pop();
482
- this.measurementAreaEl.textContent = displayedOptions.map((x) => x.textContent).join(", ");
483
- optionsTotalWidth = this.measurementAreaEl.clientWidth;
484
- }
492
+ else if (hasChanged) {
493
+ this.handleOverflow();
494
+ // we need to calc overflowcount as we only want to display allSelected message if there is an overflow...
485
495
  if (this.overflowCount > 0 && this.allSelected) {
496
+ // ...but it should be reset so it isn't displayed in that case
486
497
  this.overflowCount = 0;
487
498
  this.buttonText = this.allSelectedMessage;
488
499
  }
489
500
  else {
490
- const options = displayedOptions.map((x) => x.textContent);
491
- this.buttonText = options.join(", ");
501
+ this.buttonText = this.displayedOptions.map((x) => x.textContent).join(", ");
492
502
  }
493
503
  }
494
- this.previousDisplayedOptions = displayedOptions;
495
- return this.buttonText;
504
+ this.previousDisplayedOptions = this.displayedOptions;
505
+ // the reason for setting a global variable and returning it
506
+ // is that we need the stored value when displayedOptions haven't changed.
507
+ return this.buttonText; // multiselect value
496
508
  }
497
509
  }
498
510
  renderOverflowCount() {
@@ -502,14 +514,14 @@ const Select = class {
502
514
  }
503
515
  render() {
504
516
  const showSubinfo = !this.multiple && this.selectedOptions.length > 0 && this.selectedOptions[0].subinfo;
505
- return (index.h(index.Host, { key: 'bc6b5779d135ee85ac26135db1dec315c5215528', onBlur: (ev) => this.handleComponentBlur(ev) }, index.h("div", { key: '04972b23f7ed431a32c063baa758ae4808a25bd6', class: `wrapper ${functions.getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, index.h("div", { key: '0ae21574a07043cec330e285780793f71eefc5f4', class: "label-wrapper" }, index.h("label", { key: '40441ea004700c31f053b3acda872f645f230fce', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => functions.hideTooltip() }, this.label),
517
+ return (index.h(index.Host, { key: '22253d683dddd41883caa6eb136995149bef53cd', onBlur: (ev) => this.handleComponentBlur(ev) }, index.h("div", { key: '67594428b0f6f33615fa9607995988327da8c02a', class: `wrapper ${functions.getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, index.h("div", { key: '94a11f3557c638668a9c1a3722818ce4f174d069', class: "label-wrapper" }, index.h("label", { key: '8d1cb2aa1835aa0b9d9083c36c8aa7332b7e8e20', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => functions.hideTooltip() }, this.label),
506
518
  // we can't use aria-required because the listbox is in a sub-component and it is not announced
507
- this.requiredField && (index.h("span", { key: '0b99e99a08fd3485410d0e3c090e0891a512fbbb', class: "required" }, index.h("span", { key: 'd3ded58a7af2f56a2503b4b917a093227d3f6a62', class: "sr-only" }, intl.globalMessages.requiredField), index.h("span", { key: '1df99df44c720bd55680ef4095f86d4086ba647d', "aria-hidden": "true" }, "*")))), index.h("div", { key: '89e5d9e6f49b6efa643a12d8a549a1cd7dcc30ae', class: "button-wrapper" }, index.h("button", { key: '62bbb0b5d0f48ee9c8781c4111771c706de98911', id: "selectbtn", disabled: this.isDisabled, "aria-labelledby": "label selectbtn", "aria-describedby": "error", popoverTarget: "dropdown", popoverTargetAction: "toggle", class: "displayedoption", ref: (el) => (this.buttonEl = el) }, index.h("span", { key: 'd4a379d3d55c723002c8888ced7fc5f649b7f2d4', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, index.h("span", { key: 'a78e8de746a5d2426dd3087f673824dcb1fb6721', class: "button-text" }, this.renderButtonText()), showSubinfo && index.h("span", { key: '022bc660550f5ef438c8759794048c8ca19b06f0', class: "subinfo" }, this.selectedOptions[0].subinfo)), index.h("div", { key: 'b905b24bcc991e65403bd65bdc44cebf5a52aa1f', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), index.h("div", { key: '79e4a3eec74c1172fd5e0f8e3531ef0d9c44eb8d', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), index.h("div", { key: '46fad81e29ca84e822a419958f2740fd7ebd99cd',
519
+ this.requiredField && (index.h("span", { key: 'f54de4baed1fe1950817c3c794875386d821bdaa', class: "required" }, index.h("span", { key: '250d98f0bfb780f7a444ae94c6d6a07b5692899c', class: "sr-only" }, intl.globalMessages.requiredField), index.h("span", { key: '3811bb3f7cade2678525621b0b0f6202a2dc1bf9', "aria-hidden": "true" }, "*")))), index.h("div", { key: '20df200122d9bc31eb2f2cd004fc0637c3f71700', class: "button-wrapper" }, index.h("button", { key: '23031b6055b09f5f031665ca12efc0958dd4bc57', id: "selectbtn", disabled: this.isDisabled, "aria-labelledby": "label selectbtn", "aria-describedby": "error", popoverTarget: "dropdown", popoverTargetAction: "toggle", class: "displayedoption", ref: (el) => (this.buttonEl = el) }, index.h("span", { key: '07251301d26a1eab7d44c6f5be273a4b3623c690', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, index.h("span", { key: '1668638176ede964472c49247304e1ec6b52dee3', class: "button-text" }, this.renderButtonText()), showSubinfo && index.h("span", { key: '4b0df5b7b2c4ec1383d0dcf38da27e79f1dd3400', class: "subinfo" }, this.selectedOptions[0].subinfo)), index.h("div", { key: '5cf08d23511ad80604a8299db93858f882ebe595', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), index.h("div", { key: 'b07471f85df4dd1df107f16789748b4884ae22f8', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), index.h("div", { key: 'd67fd58ec25b893f3b1e46b61d6394465a5abb35',
508
520
  // is-open is for the CSS transition in modern browsers
509
521
  // hidden is to wait for position calculations in Firefox
510
522
  class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "upward" : ""}`, id: "dropdown", popover: "auto", ref: (el) => (this.dropdownEl = el),
511
523
  // @ts-ignore -- don't tell typescript but we're in the future
512
- onToggle: (ev) => this.handleToggle(ev) }, index.h("priv-option-list", { key: '5475546ad4edb9c4305f74152d054a597cdc1b45', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => {
524
+ onToggle: (ev) => this.handleToggle(ev) }, index.h("priv-option-list", { key: 'e8f5ea8788670fae5ba9aee1be38fa6e117cfddc', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => {
513
525
  this.dropdownEl.hidePopover();
514
526
  }, onOptionListAllSelected: () => {
515
527
  this.returnFocus = true;
@@ -517,7 +529,7 @@ const Select = class {
517
529
  }, onOptionListAllDeselected: () => {
518
530
  this.returnFocus = true;
519
531
  this.wmSelectAllDeselected.emit();
520
- } }, index.h("slot", { key: '7d0d307486c90978da2fd14bd01929ce0855e5fe' }))), index.h("div", { key: 'd2a55f3f3742a9afc92c381c5b1c3bee5cb2af03', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), index.h("div", { key: '44890a594f035751419c893eba60619a528f4ea2', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
532
+ } }, index.h("slot", { key: '2e7b0b75a43b20a5b3d0419e76166d035dd7e9dc' }))), index.h("div", { key: '642ab06863b28bf32d15f4f0e72928c4faa0b433', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), index.h("div", { key: 'ec9299e74b4b4ae07accf5f28ab544d62cb6fa58', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
521
533
  }
522
534
  static get delegatesFocus() { return true; }
523
535
  get el() { return index.getElement(this); }
@@ -10,6 +10,7 @@ export class Select {
10
10
  //////////////////////////////////////
11
11
  // for multiselect button text
12
12
  this.overflowCount = 0;
13
+ this.displayedOptions = [];
13
14
  this.previousDisplayedOptions = [];
14
15
  this.debouncedReposition = debounce(() => {
15
16
  this.dropdownPosition();
@@ -272,45 +273,56 @@ export class Select {
272
273
  }
273
274
  this.announcement = message;
274
275
  }
276
+ handleOverflow() {
277
+ // handle overflow + counter for multiselect
278
+ // this is a fixed measurement accounting for the max width of a 3 character overflow counter
279
+ const overflowCounterWidth = 38;
280
+ const computedStyle = window.getComputedStyle(this.buttonEl);
281
+ // there seems to be no quick way to get an elements width without padding, except for subtracting padding manually
282
+ const paddingLeft = parseInt(computedStyle.getPropertyValue("padding-left").slice(0, -2));
283
+ const paddingRight = parseInt(computedStyle.getPropertyValue("padding-right").slice(0, -2));
284
+ const availableSpace = this.buttonEl.clientWidth - paddingLeft - paddingRight - overflowCounterWidth;
285
+ this.overflowCount = 0;
286
+ this.measurementAreaEl.textContent = this.displayedOptions.map((x) => x.textContent).join(", ");
287
+ let optionsTotalWidth = this.measurementAreaEl.clientWidth;
288
+ while (optionsTotalWidth > availableSpace && this.displayedOptions.length > 1) {
289
+ this.overflowCount++;
290
+ this.displayedOptions.pop();
291
+ this.measurementAreaEl.textContent = this.displayedOptions.map((x) => x.textContent).join(", ");
292
+ optionsTotalWidth = this.measurementAreaEl.clientWidth;
293
+ }
294
+ }
275
295
  renderButtonText() {
276
296
  if (!this.multiple) {
277
- const selEl = this.childOptions.filter((x) => x.selected)[0] || this.childOptions[0];
278
- return selEl.textContent;
297
+ const selEl = this.childOptions.filter((x) => x.selected)[0];
298
+ return selEl ? selEl.textContent : "";
279
299
  }
280
300
  else {
281
- const displayedOptions = this.childOptions.filter((x) => x.selected);
282
- if (displayedOptions.length < 1 || !this.buttonEl) {
301
+ this.displayedOptions = this.childOptions.filter((x) => x.selected);
302
+ const hasChanged = this.displayedOptions !== this.previousDisplayedOptions;
303
+ const noDisplayedOptions = this.displayedOptions.length < 1;
304
+ if (!this.buttonEl) {
305
+ return "";
306
+ }
307
+ else if (noDisplayedOptions) {
283
308
  return this.placeholder;
284
309
  }
285
- else if (displayedOptions !== this.previousDisplayedOptions) {
286
- // handle overflow + counter for multiselect
287
- // this is a fixed measurement accounting for the max width of a 3 character overflow counter
288
- const overflowCounterWidth = 38;
289
- const computedStyle = window.getComputedStyle(this.buttonEl);
290
- // there seems to be no quick way to get an elements width without padding, except for subtracting padding manually
291
- const paddingLeft = parseInt(computedStyle.getPropertyValue("padding-left").slice(0, -2));
292
- const paddingRight = parseInt(computedStyle.getPropertyValue("padding-right").slice(0, -2));
293
- const availableSpace = this.buttonEl.clientWidth - paddingLeft - paddingRight - overflowCounterWidth;
294
- this.overflowCount = 0;
295
- this.measurementAreaEl.textContent = displayedOptions.map((x) => x.textContent).join(", ");
296
- let optionsTotalWidth = this.measurementAreaEl.clientWidth;
297
- while (optionsTotalWidth > availableSpace && displayedOptions.length > 1) {
298
- this.overflowCount++;
299
- displayedOptions.pop();
300
- this.measurementAreaEl.textContent = displayedOptions.map((x) => x.textContent).join(", ");
301
- optionsTotalWidth = this.measurementAreaEl.clientWidth;
302
- }
310
+ else if (hasChanged) {
311
+ this.handleOverflow();
312
+ // we need to calc overflowcount as we only want to display allSelected message if there is an overflow...
303
313
  if (this.overflowCount > 0 && this.allSelected) {
314
+ // ...but it should be reset so it isn't displayed in that case
304
315
  this.overflowCount = 0;
305
316
  this.buttonText = this.allSelectedMessage;
306
317
  }
307
318
  else {
308
- const options = displayedOptions.map((x) => x.textContent);
309
- this.buttonText = options.join(", ");
319
+ this.buttonText = this.displayedOptions.map((x) => x.textContent).join(", ");
310
320
  }
311
321
  }
312
- this.previousDisplayedOptions = displayedOptions;
313
- return this.buttonText;
322
+ this.previousDisplayedOptions = this.displayedOptions;
323
+ // the reason for setting a global variable and returning it
324
+ // is that we need the stored value when displayedOptions haven't changed.
325
+ return this.buttonText; // multiselect value
314
326
  }
315
327
  }
316
328
  renderOverflowCount() {
@@ -320,14 +332,14 @@ export class Select {
320
332
  }
321
333
  render() {
322
334
  const showSubinfo = !this.multiple && this.selectedOptions.length > 0 && this.selectedOptions[0].subinfo;
323
- return (h(Host, { key: 'bc6b5779d135ee85ac26135db1dec315c5215528', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '04972b23f7ed431a32c063baa758ae4808a25bd6', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '0ae21574a07043cec330e285780793f71eefc5f4', class: "label-wrapper" }, h("label", { key: '40441ea004700c31f053b3acda872f645f230fce', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
335
+ return (h(Host, { key: '22253d683dddd41883caa6eb136995149bef53cd', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '67594428b0f6f33615fa9607995988327da8c02a', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '94a11f3557c638668a9c1a3722818ce4f174d069', class: "label-wrapper" }, h("label", { key: '8d1cb2aa1835aa0b9d9083c36c8aa7332b7e8e20', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
324
336
  // we can't use aria-required because the listbox is in a sub-component and it is not announced
325
- this.requiredField && (h("span", { key: '0b99e99a08fd3485410d0e3c090e0891a512fbbb', class: "required" }, h("span", { key: 'd3ded58a7af2f56a2503b4b917a093227d3f6a62', class: "sr-only" }, globalMessages.requiredField), h("span", { key: '1df99df44c720bd55680ef4095f86d4086ba647d', "aria-hidden": "true" }, "*")))), h("div", { key: '89e5d9e6f49b6efa643a12d8a549a1cd7dcc30ae', class: "button-wrapper" }, h("button", { key: '62bbb0b5d0f48ee9c8781c4111771c706de98911', id: "selectbtn", disabled: this.isDisabled, "aria-labelledby": "label selectbtn", "aria-describedby": "error", popoverTarget: "dropdown", popoverTargetAction: "toggle", class: "displayedoption", ref: (el) => (this.buttonEl = el) }, h("span", { key: 'd4a379d3d55c723002c8888ced7fc5f649b7f2d4', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: 'a78e8de746a5d2426dd3087f673824dcb1fb6721', class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { key: '022bc660550f5ef438c8759794048c8ca19b06f0', class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { key: 'b905b24bcc991e65403bd65bdc44cebf5a52aa1f', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '79e4a3eec74c1172fd5e0f8e3531ef0d9c44eb8d', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '46fad81e29ca84e822a419958f2740fd7ebd99cd',
337
+ this.requiredField && (h("span", { key: 'f54de4baed1fe1950817c3c794875386d821bdaa', class: "required" }, h("span", { key: '250d98f0bfb780f7a444ae94c6d6a07b5692899c', class: "sr-only" }, globalMessages.requiredField), h("span", { key: '3811bb3f7cade2678525621b0b0f6202a2dc1bf9', "aria-hidden": "true" }, "*")))), h("div", { key: '20df200122d9bc31eb2f2cd004fc0637c3f71700', class: "button-wrapper" }, h("button", { key: '23031b6055b09f5f031665ca12efc0958dd4bc57', id: "selectbtn", disabled: this.isDisabled, "aria-labelledby": "label selectbtn", "aria-describedby": "error", popoverTarget: "dropdown", popoverTargetAction: "toggle", class: "displayedoption", ref: (el) => (this.buttonEl = el) }, h("span", { key: '07251301d26a1eab7d44c6f5be273a4b3623c690', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: '1668638176ede964472c49247304e1ec6b52dee3', class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { key: '4b0df5b7b2c4ec1383d0dcf38da27e79f1dd3400', class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { key: '5cf08d23511ad80604a8299db93858f882ebe595', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: 'b07471f85df4dd1df107f16789748b4884ae22f8', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: 'd67fd58ec25b893f3b1e46b61d6394465a5abb35',
326
338
  // is-open is for the CSS transition in modern browsers
327
339
  // hidden is to wait for position calculations in Firefox
328
340
  class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "upward" : ""}`, id: "dropdown", popover: "auto", ref: (el) => (this.dropdownEl = el),
329
341
  // @ts-ignore -- don't tell typescript but we're in the future
330
- onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: '5475546ad4edb9c4305f74152d054a597cdc1b45', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => {
342
+ onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: 'e8f5ea8788670fae5ba9aee1be38fa6e117cfddc', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => {
331
343
  this.dropdownEl.hidePopover();
332
344
  }, onOptionListAllSelected: () => {
333
345
  this.returnFocus = true;
@@ -335,7 +347,7 @@ export class Select {
335
347
  }, onOptionListAllDeselected: () => {
336
348
  this.returnFocus = true;
337
349
  this.wmSelectAllDeselected.emit();
338
- } }, h("slot", { key: '7d0d307486c90978da2fd14bd01929ce0855e5fe' }))), h("div", { key: 'd2a55f3f3742a9afc92c381c5b1c3bee5cb2af03', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: '44890a594f035751419c893eba60619a528f4ea2', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
350
+ } }, h("slot", { key: '2e7b0b75a43b20a5b3d0419e76166d035dd7e9dc' }))), h("div", { key: '642ab06863b28bf32d15f4f0e72928c4faa0b433', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: 'ec9299e74b4b4ae07accf5f28ab544d62cb6fa58', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
339
351
  }
340
352
  static get is() { return "wm-select"; }
341
353
  static get encapsulation() { return "shadow"; }
@@ -1,6 +1,6 @@
1
1
  import './index-130e07bb.js';
2
2
 
3
- const version = "5.22.1-alpha.1";
3
+ const version = "5.22.1-alpha.2";
4
4
 
5
5
  // PRINT RIPPLE VERSION IN CONSOLE
6
6
  // test envs return 0 for plugin.length
@@ -1,6 +1,6 @@
1
1
  import { b as bootstrapLazy } from './index-130e07bb.js';
2
2
  export { s as setNonce } from './index-130e07bb.js';
3
- import { g as globalScripts } from './app-globals-92ac4d9e.js';
3
+ import { g as globalScripts } from './app-globals-ac59e752.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
@@ -1,6 +1,6 @@
1
1
  import { p as promiseResolve, b as bootstrapLazy } from './index-130e07bb.js';
2
2
  export { s as setNonce } from './index-130e07bb.js';
3
- import { g as globalScripts } from './app-globals-92ac4d9e.js';
3
+ import { g as globalScripts } from './app-globals-ac59e752.js';
4
4
 
5
5
  /*
6
6
  Stencil Client Patch Browser v4.21.0 | MIT Licensed | https://stenciljs.com
@@ -188,6 +188,7 @@ const Select = class {
188
188
  //////////////////////////////////////
189
189
  // for multiselect button text
190
190
  this.overflowCount = 0;
191
+ this.displayedOptions = [];
191
192
  this.previousDisplayedOptions = [];
192
193
  this.debouncedReposition = debounce(() => {
193
194
  this.dropdownPosition();
@@ -450,45 +451,56 @@ const Select = class {
450
451
  }
451
452
  this.announcement = message;
452
453
  }
454
+ handleOverflow() {
455
+ // handle overflow + counter for multiselect
456
+ // this is a fixed measurement accounting for the max width of a 3 character overflow counter
457
+ const overflowCounterWidth = 38;
458
+ const computedStyle = window.getComputedStyle(this.buttonEl);
459
+ // there seems to be no quick way to get an elements width without padding, except for subtracting padding manually
460
+ const paddingLeft = parseInt(computedStyle.getPropertyValue("padding-left").slice(0, -2));
461
+ const paddingRight = parseInt(computedStyle.getPropertyValue("padding-right").slice(0, -2));
462
+ const availableSpace = this.buttonEl.clientWidth - paddingLeft - paddingRight - overflowCounterWidth;
463
+ this.overflowCount = 0;
464
+ this.measurementAreaEl.textContent = this.displayedOptions.map((x) => x.textContent).join(", ");
465
+ let optionsTotalWidth = this.measurementAreaEl.clientWidth;
466
+ while (optionsTotalWidth > availableSpace && this.displayedOptions.length > 1) {
467
+ this.overflowCount++;
468
+ this.displayedOptions.pop();
469
+ this.measurementAreaEl.textContent = this.displayedOptions.map((x) => x.textContent).join(", ");
470
+ optionsTotalWidth = this.measurementAreaEl.clientWidth;
471
+ }
472
+ }
453
473
  renderButtonText() {
454
474
  if (!this.multiple) {
455
- const selEl = this.childOptions.filter((x) => x.selected)[0] || this.childOptions[0];
456
- return selEl.textContent;
475
+ const selEl = this.childOptions.filter((x) => x.selected)[0];
476
+ return selEl ? selEl.textContent : "";
457
477
  }
458
478
  else {
459
- const displayedOptions = this.childOptions.filter((x) => x.selected);
460
- if (displayedOptions.length < 1 || !this.buttonEl) {
479
+ this.displayedOptions = this.childOptions.filter((x) => x.selected);
480
+ const hasChanged = this.displayedOptions !== this.previousDisplayedOptions;
481
+ const noDisplayedOptions = this.displayedOptions.length < 1;
482
+ if (!this.buttonEl) {
483
+ return "";
484
+ }
485
+ else if (noDisplayedOptions) {
461
486
  return this.placeholder;
462
487
  }
463
- else if (displayedOptions !== this.previousDisplayedOptions) {
464
- // handle overflow + counter for multiselect
465
- // this is a fixed measurement accounting for the max width of a 3 character overflow counter
466
- const overflowCounterWidth = 38;
467
- const computedStyle = window.getComputedStyle(this.buttonEl);
468
- // there seems to be no quick way to get an elements width without padding, except for subtracting padding manually
469
- const paddingLeft = parseInt(computedStyle.getPropertyValue("padding-left").slice(0, -2));
470
- const paddingRight = parseInt(computedStyle.getPropertyValue("padding-right").slice(0, -2));
471
- const availableSpace = this.buttonEl.clientWidth - paddingLeft - paddingRight - overflowCounterWidth;
472
- this.overflowCount = 0;
473
- this.measurementAreaEl.textContent = displayedOptions.map((x) => x.textContent).join(", ");
474
- let optionsTotalWidth = this.measurementAreaEl.clientWidth;
475
- while (optionsTotalWidth > availableSpace && displayedOptions.length > 1) {
476
- this.overflowCount++;
477
- displayedOptions.pop();
478
- this.measurementAreaEl.textContent = displayedOptions.map((x) => x.textContent).join(", ");
479
- optionsTotalWidth = this.measurementAreaEl.clientWidth;
480
- }
488
+ else if (hasChanged) {
489
+ this.handleOverflow();
490
+ // we need to calc overflowcount as we only want to display allSelected message if there is an overflow...
481
491
  if (this.overflowCount > 0 && this.allSelected) {
492
+ // ...but it should be reset so it isn't displayed in that case
482
493
  this.overflowCount = 0;
483
494
  this.buttonText = this.allSelectedMessage;
484
495
  }
485
496
  else {
486
- const options = displayedOptions.map((x) => x.textContent);
487
- this.buttonText = options.join(", ");
497
+ this.buttonText = this.displayedOptions.map((x) => x.textContent).join(", ");
488
498
  }
489
499
  }
490
- this.previousDisplayedOptions = displayedOptions;
491
- return this.buttonText;
500
+ this.previousDisplayedOptions = this.displayedOptions;
501
+ // the reason for setting a global variable and returning it
502
+ // is that we need the stored value when displayedOptions haven't changed.
503
+ return this.buttonText; // multiselect value
492
504
  }
493
505
  }
494
506
  renderOverflowCount() {
@@ -498,14 +510,14 @@ const Select = class {
498
510
  }
499
511
  render() {
500
512
  const showSubinfo = !this.multiple && this.selectedOptions.length > 0 && this.selectedOptions[0].subinfo;
501
- return (h(Host, { key: 'bc6b5779d135ee85ac26135db1dec315c5215528', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '04972b23f7ed431a32c063baa758ae4808a25bd6', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '0ae21574a07043cec330e285780793f71eefc5f4', class: "label-wrapper" }, h("label", { key: '40441ea004700c31f053b3acda872f645f230fce', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
513
+ return (h(Host, { key: '22253d683dddd41883caa6eb136995149bef53cd', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '67594428b0f6f33615fa9607995988327da8c02a', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '94a11f3557c638668a9c1a3722818ce4f174d069', class: "label-wrapper" }, h("label", { key: '8d1cb2aa1835aa0b9d9083c36c8aa7332b7e8e20', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
502
514
  // we can't use aria-required because the listbox is in a sub-component and it is not announced
503
- this.requiredField && (h("span", { key: '0b99e99a08fd3485410d0e3c090e0891a512fbbb', class: "required" }, h("span", { key: 'd3ded58a7af2f56a2503b4b917a093227d3f6a62', class: "sr-only" }, globalMessages.requiredField), h("span", { key: '1df99df44c720bd55680ef4095f86d4086ba647d', "aria-hidden": "true" }, "*")))), h("div", { key: '89e5d9e6f49b6efa643a12d8a549a1cd7dcc30ae', class: "button-wrapper" }, h("button", { key: '62bbb0b5d0f48ee9c8781c4111771c706de98911', id: "selectbtn", disabled: this.isDisabled, "aria-labelledby": "label selectbtn", "aria-describedby": "error", popoverTarget: "dropdown", popoverTargetAction: "toggle", class: "displayedoption", ref: (el) => (this.buttonEl = el) }, h("span", { key: 'd4a379d3d55c723002c8888ced7fc5f649b7f2d4', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: 'a78e8de746a5d2426dd3087f673824dcb1fb6721', class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { key: '022bc660550f5ef438c8759794048c8ca19b06f0', class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { key: 'b905b24bcc991e65403bd65bdc44cebf5a52aa1f', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '79e4a3eec74c1172fd5e0f8e3531ef0d9c44eb8d', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '46fad81e29ca84e822a419958f2740fd7ebd99cd',
515
+ this.requiredField && (h("span", { key: 'f54de4baed1fe1950817c3c794875386d821bdaa', class: "required" }, h("span", { key: '250d98f0bfb780f7a444ae94c6d6a07b5692899c', class: "sr-only" }, globalMessages.requiredField), h("span", { key: '3811bb3f7cade2678525621b0b0f6202a2dc1bf9', "aria-hidden": "true" }, "*")))), h("div", { key: '20df200122d9bc31eb2f2cd004fc0637c3f71700', class: "button-wrapper" }, h("button", { key: '23031b6055b09f5f031665ca12efc0958dd4bc57', id: "selectbtn", disabled: this.isDisabled, "aria-labelledby": "label selectbtn", "aria-describedby": "error", popoverTarget: "dropdown", popoverTargetAction: "toggle", class: "displayedoption", ref: (el) => (this.buttonEl = el) }, h("span", { key: '07251301d26a1eab7d44c6f5be273a4b3623c690', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: '1668638176ede964472c49247304e1ec6b52dee3', class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { key: '4b0df5b7b2c4ec1383d0dcf38da27e79f1dd3400', class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { key: '5cf08d23511ad80604a8299db93858f882ebe595', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: 'b07471f85df4dd1df107f16789748b4884ae22f8', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: 'd67fd58ec25b893f3b1e46b61d6394465a5abb35',
504
516
  // is-open is for the CSS transition in modern browsers
505
517
  // hidden is to wait for position calculations in Firefox
506
518
  class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "upward" : ""}`, id: "dropdown", popover: "auto", ref: (el) => (this.dropdownEl = el),
507
519
  // @ts-ignore -- don't tell typescript but we're in the future
508
- onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: '5475546ad4edb9c4305f74152d054a597cdc1b45', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => {
520
+ onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: 'e8f5ea8788670fae5ba9aee1be38fa6e117cfddc', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => {
509
521
  this.dropdownEl.hidePopover();
510
522
  }, onOptionListAllSelected: () => {
511
523
  this.returnFocus = true;
@@ -513,7 +525,7 @@ const Select = class {
513
525
  }, onOptionListAllDeselected: () => {
514
526
  this.returnFocus = true;
515
527
  this.wmSelectAllDeselected.emit();
516
- } }, h("slot", { key: '7d0d307486c90978da2fd14bd01929ce0855e5fe' }))), h("div", { key: 'd2a55f3f3742a9afc92c381c5b1c3bee5cb2af03', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: '44890a594f035751419c893eba60619a528f4ea2', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
528
+ } }, h("slot", { key: '2e7b0b75a43b20a5b3d0419e76166d035dd7e9dc' }))), h("div", { key: '642ab06863b28bf32d15f4f0e72928c4faa0b433', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: 'ec9299e74b4b4ae07accf5f28ab544d62cb6fa58', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
517
529
  }
518
530
  static get delegatesFocus() { return true; }
519
531
  get el() { return getElement(this); }
@@ -1 +1 @@
1
- import"./index-130e07bb.js";var version="5.22.1-alpha.1";if(window.navigator.plugins.length>0){console.log("%cRipple component library %c%s","color: #575195; font-weight: bold","font-weight: bold",version)}function wmComponentKeys(n){if(n.key=="Tab"){var o=new Event("wmUserIsTabbing");window.dispatchEvent(o);document.querySelector("body").classList.add("wmcl-user-is-tabbing")}if(n.key=="ArrowLeft"||n.key=="ArrowUp"||n.key=="ArrowRight"||n.key=="ArrowDown"){var o=new Event("wmUserIsKeying");window.dispatchEvent(o);document.querySelector("body").classList.add("wmcl-user-is-keying")}}function wmComponentMouseDownOnce(){var n=new Event("wmUserIsNotTabbing");window.dispatchEvent(n);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);document.addEventListener("DOMContentLoaded",(function(){var n=document.createElement("div");n.id="wm-tooltip-container";var o=document.createElement("div");o.id="wm-tooltip";o.classList.add("wm-tooltip");o.setAttribute("popover","manual");o.setAttribute("aria-hidden","true");var t=document.createElement("style");t.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(t);n.appendChild(o);document.querySelector("body").appendChild(n)}));var globalFn=function(){};var globalScripts=globalFn;export{globalScripts as g};
1
+ import"./index-130e07bb.js";var version="5.22.1-alpha.2";if(window.navigator.plugins.length>0){console.log("%cRipple component library %c%s","color: #575195; font-weight: bold","font-weight: bold",version)}function wmComponentKeys(n){if(n.key=="Tab"){var o=new Event("wmUserIsTabbing");window.dispatchEvent(o);document.querySelector("body").classList.add("wmcl-user-is-tabbing")}if(n.key=="ArrowLeft"||n.key=="ArrowUp"||n.key=="ArrowRight"||n.key=="ArrowDown"){var o=new Event("wmUserIsKeying");window.dispatchEvent(o);document.querySelector("body").classList.add("wmcl-user-is-keying")}}function wmComponentMouseDownOnce(){var n=new Event("wmUserIsNotTabbing");window.dispatchEvent(n);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);document.addEventListener("DOMContentLoaded",(function(){var n=document.createElement("div");n.id="wm-tooltip-container";var o=document.createElement("div");o.id="wm-tooltip";o.classList.add("wm-tooltip");o.setAttribute("popover","manual");o.setAttribute("aria-hidden","true");var t=document.createElement("style");t.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(t);n.appendChild(o);document.querySelector("body").appendChild(n)}));var globalFn=function(){};var globalScripts=globalFn;export{globalScripts as g};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,a,t,i){function n(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,l){function o(e){try{d(i.next(e))}catch(e){l(e)}}function r(e){try{d(i["throw"](e))}catch(e){l(e)}}function d(e){e.done?t(e.value):n(e.value).then(o,r)}d((i=i.apply(e,a||[])).next())}))};var __generator=this&&this.__generator||function(e,a){var t={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},i,n,l,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(e){return function(a){return d([e,a])}}function d(r){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,r[0]&&(t=0)),t)try{if(i=1,n&&(l=r[0]&2?n["return"]:r[0]?n["throw"]||((l=n["return"])&&l.call(n),0):n.next)&&!(l=l.call(n,r[1])).done)return l;if(n=0,l)r=[r[0]&2,l.value];switch(r[0]){case 0:case 1:l=r;break;case 4:t.label++;return{value:r[1],done:false};case 5:t.label++;n=r[1];r=[0];continue;case 7:r=t.ops.pop();t.trys.pop();continue;default:if(!(l=t.trys,l=l.length>0&&l[l.length-1])&&(r[0]===6||r[0]===2)){t=0;continue}if(r[0]===3&&(!l||r[1]>l[0]&&r[1]<l[3])){t.label=r[1];break}if(r[0]===6&&t.label<l[1]){t.label=l[1];l=r;break}if(l&&t.label<l[2]){t.label=l[2];t.ops.push(r);break}if(l[2])t.ops.pop();t.trys.pop();continue}r=a.call(e,t)}catch(e){r=[6,e];n=0}finally{i=l=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};import{b as bootstrapLazy}from"./index-130e07bb.js";export{s as setNonce}from"./index-130e07bb.js";import{g as globalScripts}from"./app-globals-92ac4d9e.js";var defineCustomElements=function(e,a){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(typeof window==="undefined")return[2,undefined];return[4,globalScripts()];case 1:e.sent();return[2,bootstrapLazy(JSON.parse('[["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-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-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-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"],[9,"resize","handleWindowResize"]],{"disabled":["handleDisabledChange"],"value":["updateValue"],"errorMessage":["announceError"]}]]],["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-file-list",[[17,"wm-file-list",{"showInfo":[1,"show-info"]}]]],["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-toggletip",[[17,"wm-toggletip",{"label":[1],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"targetSize":[1,"target-size"],"toggletipType":[1,"toggletip-type"],"isHidden":[32]},[[9,"resize","handleResize"],[0,"keydown","handleKeydown"],[4,"click","handleClick"]]]]],["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],"isHidden":[32],"openUp":[32],"announcement":[32]},[[0,"wmOptionSelected","handleOptionSelection"],[0,"wmEnterKeyPressed","handleChildEnter"],[0,"wmEscKeyPressed","closeDropdownOnEscape"],[0,"keydown","handleKey"],[9,"resize","handleResize"]],{"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"]}]]],["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-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-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-tab-item_3",[[17,"wm-tab-list",{"customBackground":[1,"custom-background"],"selectedTab":[1,"selected-tab"],"announcement":[32],"containerFadeLeft":[32],"containerFadeRight":[32],"scrollArrowsVisible":[32]},[[0,"tabItemLoaded","tabItemLoaded"],[0,"wmIntTabFocused","wmTabFocused"],[0,"keydownOnTabItem","handleKeydown"]],{"selectedTab":["setSelected"]}],[17,"wm-tab-item",{"selected":[4],"tabId":[1,"tab-id"]}],[0,"wm-tab-panel",{"active":[1028],"tabId":[1025,"tab-id"]}]]],["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-flyout",[[1,"wm-flyout",{"eyebrow":[1],"heading":[1],"subheading":[1],"flyoutWidth":[1,"flyout-width"],"primaryText":[1,"primary-text"],"secondaryText":[1,"secondary-text"],"infoText":[1,"info-text"],"breadcrumb":[1],"elementToFocus":[1,"element-to-focus"],"open":[516],"returnFocusEl":[32],"isBreadcrumbsOverflowing":[32],"focusHeading":[64]},null,{"open":["handleOpenChange"],"flyoutWidth":["setFlyoutWidth"]}]]],["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-chart-slice",[[0,"wm-chart-slice",{"legend":[1],"amount":[1],"popoverTitle":[1,"popover-title"],"popoverText":[1,"popover-text"],"popoverButtonText":[1,"popover-button-text"]}]]],["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],"isGroupExpanded":[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-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-uploader",[[17,"wm-uploader",{"label":[1],"uploaderType":[1,"uploader-type"],"dropArea":[1,"drop-area"],"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","handleFileDelete"],[5,"dragenter","handleDocumentDragEnter"],[5,"mouseout","handleDocumentMouseOut"],[5,"dragleave","handleDocumentDragLeave"],[4,"visibilitychange","handleDocumentVisibilityChange"]],{"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"]]]]],["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"]}]]],["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"]]]]],["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"]}]]]]'),a)]}}))}))};export{defineCustomElements};
1
+ var __awaiter=this&&this.__awaiter||function(e,a,t,i){function n(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,l){function o(e){try{d(i.next(e))}catch(e){l(e)}}function r(e){try{d(i["throw"](e))}catch(e){l(e)}}function d(e){e.done?t(e.value):n(e.value).then(o,r)}d((i=i.apply(e,a||[])).next())}))};var __generator=this&&this.__generator||function(e,a){var t={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},i,n,l,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(e){return function(a){return d([e,a])}}function d(r){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,r[0]&&(t=0)),t)try{if(i=1,n&&(l=r[0]&2?n["return"]:r[0]?n["throw"]||((l=n["return"])&&l.call(n),0):n.next)&&!(l=l.call(n,r[1])).done)return l;if(n=0,l)r=[r[0]&2,l.value];switch(r[0]){case 0:case 1:l=r;break;case 4:t.label++;return{value:r[1],done:false};case 5:t.label++;n=r[1];r=[0];continue;case 7:r=t.ops.pop();t.trys.pop();continue;default:if(!(l=t.trys,l=l.length>0&&l[l.length-1])&&(r[0]===6||r[0]===2)){t=0;continue}if(r[0]===3&&(!l||r[1]>l[0]&&r[1]<l[3])){t.label=r[1];break}if(r[0]===6&&t.label<l[1]){t.label=l[1];l=r;break}if(l&&t.label<l[2]){t.label=l[2];t.ops.push(r);break}if(l[2])t.ops.pop();t.trys.pop();continue}r=a.call(e,t)}catch(e){r=[6,e];n=0}finally{i=l=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};import{b as bootstrapLazy}from"./index-130e07bb.js";export{s as setNonce}from"./index-130e07bb.js";import{g as globalScripts}from"./app-globals-ac59e752.js";var defineCustomElements=function(e,a){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(typeof window==="undefined")return[2,undefined];return[4,globalScripts()];case 1:e.sent();return[2,bootstrapLazy(JSON.parse('[["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-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-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-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"],[9,"resize","handleWindowResize"]],{"disabled":["handleDisabledChange"],"value":["updateValue"],"errorMessage":["announceError"]}]]],["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-file-list",[[17,"wm-file-list",{"showInfo":[1,"show-info"]}]]],["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-toggletip",[[17,"wm-toggletip",{"label":[1],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"targetSize":[1,"target-size"],"toggletipType":[1,"toggletip-type"],"isHidden":[32]},[[9,"resize","handleResize"],[0,"keydown","handleKeydown"],[4,"click","handleClick"]]]]],["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],"isHidden":[32],"openUp":[32],"announcement":[32]},[[0,"wmOptionSelected","handleOptionSelection"],[0,"wmEnterKeyPressed","handleChildEnter"],[0,"wmEscKeyPressed","closeDropdownOnEscape"],[0,"keydown","handleKey"],[9,"resize","handleResize"]],{"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"]}]]],["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-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-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-tab-item_3",[[17,"wm-tab-list",{"customBackground":[1,"custom-background"],"selectedTab":[1,"selected-tab"],"announcement":[32],"containerFadeLeft":[32],"containerFadeRight":[32],"scrollArrowsVisible":[32]},[[0,"tabItemLoaded","tabItemLoaded"],[0,"wmIntTabFocused","wmTabFocused"],[0,"keydownOnTabItem","handleKeydown"]],{"selectedTab":["setSelected"]}],[17,"wm-tab-item",{"selected":[4],"tabId":[1,"tab-id"]}],[0,"wm-tab-panel",{"active":[1028],"tabId":[1025,"tab-id"]}]]],["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-flyout",[[1,"wm-flyout",{"eyebrow":[1],"heading":[1],"subheading":[1],"flyoutWidth":[1,"flyout-width"],"primaryText":[1,"primary-text"],"secondaryText":[1,"secondary-text"],"infoText":[1,"info-text"],"breadcrumb":[1],"elementToFocus":[1,"element-to-focus"],"open":[516],"returnFocusEl":[32],"isBreadcrumbsOverflowing":[32],"focusHeading":[64]},null,{"open":["handleOpenChange"],"flyoutWidth":["setFlyoutWidth"]}]]],["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-chart-slice",[[0,"wm-chart-slice",{"legend":[1],"amount":[1],"popoverTitle":[1,"popover-title"],"popoverText":[1,"popover-text"],"popoverButtonText":[1,"popover-button-text"]}]]],["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],"isGroupExpanded":[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-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-uploader",[[17,"wm-uploader",{"label":[1],"uploaderType":[1,"uploader-type"],"dropArea":[1,"drop-area"],"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","handleFileDelete"],[5,"dragenter","handleDocumentDragEnter"],[5,"mouseout","handleDocumentMouseOut"],[5,"dragleave","handleDocumentDragLeave"],[4,"visibilitychange","handleDocumentVisibilityChange"]],{"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"]]]]],["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"]}]]],["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"]]]]],["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"]}]]]]'),a)]}}))}))};export{defineCustomElements};