@watermarkinsights/ripple 5.32.0-alpha.2 → 5.32.0-alpha.4
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/{app-globals-773bf504.js → app-globals-7130267f.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/priv-navigator-button.cjs.entry.js +1 -1
- package/dist/cjs/priv-navigator-item.cjs.entry.js +1 -1
- package/dist/cjs/ripple.cjs.js +1 -1
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +4 -4
- package/dist/cjs/wm-button.cjs.entry.js +1 -1
- package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
- package/dist/cjs/wm-file.cjs.entry.js +1 -1
- package/dist/cjs/wm-flyout.cjs.entry.js +1 -1
- package/dist/cjs/wm-input.cjs.entry.js +1 -1
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +4 -4
- package/dist/cjs/wm-modal_3.cjs.entry.js +4 -4
- package/dist/cjs/wm-navigation_3.cjs.entry.js +4 -4
- package/dist/cjs/wm-option_2.cjs.entry.js +5 -6
- package/dist/cjs/wm-pagination.cjs.entry.js +1 -1
- package/dist/cjs/wm-search.cjs.entry.js +2 -2
- package/dist/cjs/wm-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +6 -6
- package/dist/cjs/wm-tag-input.cjs.entry.js +3 -2
- package/dist/cjs/wm-textarea.cjs.entry.js +1 -1
- package/dist/cjs/wm-timepicker.cjs.entry.js +2 -2
- package/dist/cjs/wm-toggletip.cjs.entry.js +3 -3
- package/dist/cjs/wm-uploader.cjs.entry.js +2 -2
- package/dist/collection/components/selects/wm-select/wm-select.css +0 -13
- package/dist/collection/components/selects/wm-select/wm-select.js +4 -5
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +3 -3
- package/dist/collection/components/wm-button/wm-button.js +1 -1
- package/dist/collection/components/wm-file/wm-file.js +1 -1
- package/dist/collection/components/wm-file-list/wm-file-list.js +1 -1
- package/dist/collection/components/wm-flyout/wm-flyout.js +1 -1
- package/dist/collection/components/wm-input/wm-input.js +1 -1
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal.js +2 -2
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +1 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +1 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +2 -2
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +1 -1
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +1 -1
- package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
- package/dist/collection/components/wm-search/wm-search.js +2 -2
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +2 -2
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +3 -3
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +3 -2
- package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +2 -2
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +3 -3
- package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
- package/dist/docs/docs.json +1 -1
- package/dist/esm/{app-globals-c7b000c8.js → app-globals-a3bef2e4.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/priv-navigator-button.entry.js +1 -1
- package/dist/esm/priv-navigator-item.entry.js +1 -1
- package/dist/esm/ripple.js +1 -1
- package/dist/esm/wm-action-menu_2.entry.js +4 -4
- package/dist/esm/wm-button.entry.js +1 -1
- package/dist/esm/wm-file-list.entry.js +1 -1
- package/dist/esm/wm-file.entry.js +1 -1
- package/dist/esm/wm-flyout.entry.js +1 -1
- package/dist/esm/wm-input.entry.js +1 -1
- package/dist/esm/wm-modal-pss_3.entry.js +4 -4
- package/dist/esm/wm-modal_3.entry.js +4 -4
- package/dist/esm/wm-navigation_3.entry.js +4 -4
- package/dist/esm/wm-option_2.entry.js +5 -6
- package/dist/esm/wm-pagination.entry.js +1 -1
- package/dist/esm/wm-search.entry.js +2 -2
- package/dist/esm/wm-snackbar.entry.js +2 -2
- package/dist/esm/wm-tab-item_3.entry.js +6 -6
- package/dist/esm/wm-tag-input.entry.js +3 -2
- package/dist/esm/wm-textarea.entry.js +1 -1
- package/dist/esm/wm-timepicker.entry.js +2 -2
- package/dist/esm/wm-toggletip.entry.js +3 -3
- package/dist/esm/wm-uploader.entry.js +2 -2
- package/dist/esm-es5/{app-globals-c7b000c8.js → app-globals-a3bef2e4.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-file-list.entry.js +1 -1
- package/dist/esm-es5/wm-file.entry.js +1 -1
- package/dist/esm-es5/wm-flyout.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
- package/dist/esm-es5/wm-modal_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/ripple/{p-d96d80a5.system.entry.js → p-001b4c59.system.entry.js} +1 -1
- package/dist/ripple/{p-1e61f428.entry.js → p-06b52859.entry.js} +1 -1
- package/dist/ripple/{p-1ae5ff31.system.entry.js → p-0bed3ad0.system.entry.js} +1 -1
- package/dist/ripple/{p-eecae818.system.js → p-1bd81f6e.system.js} +1 -1
- package/dist/ripple/{p-45a8ce04.system.entry.js → p-1f4f52fb.system.entry.js} +1 -1
- package/dist/ripple/{p-bdad55a5.system.entry.js → p-2e96611c.system.entry.js} +1 -1
- package/dist/ripple/{p-24edf8cf.entry.js → p-33ec0d67.entry.js} +1 -1
- package/dist/ripple/{p-3c26dcf2.js → p-37f130df.js} +1 -1
- package/dist/ripple/{p-4adccf9b.entry.js → p-3949b30b.entry.js} +1 -1
- package/dist/ripple/{p-ed8f92d5.entry.js → p-3d2c6b0e.entry.js} +1 -1
- package/dist/ripple/p-3fce60a3.entry.js +1 -0
- package/dist/ripple/{p-6f4822c7.entry.js → p-42aa2b6d.entry.js} +1 -1
- package/dist/ripple/{p-82650151.system.entry.js → p-461d322f.system.entry.js} +1 -1
- package/dist/ripple/{p-f5be8dbb.system.entry.js → p-4a0148b3.system.entry.js} +1 -1
- package/dist/ripple/{p-83ee6ad0.system.js → p-4e2c39b3.system.js} +1 -1
- package/dist/ripple/{p-ed03d492.entry.js → p-50215f38.entry.js} +1 -1
- package/dist/ripple/{p-dc4c69b5.system.entry.js → p-5174e536.system.entry.js} +1 -1
- package/dist/ripple/{p-a040364d.entry.js → p-51e7977b.entry.js} +1 -1
- package/dist/ripple/{p-4cca044a.entry.js → p-52b390de.entry.js} +1 -1
- package/dist/ripple/{p-b43cc26c.system.entry.js → p-5740967a.system.entry.js} +1 -1
- package/dist/ripple/p-619edc41.entry.js +1 -0
- package/dist/ripple/{p-2178f227.system.entry.js → p-6601f7b8.system.entry.js} +1 -1
- package/dist/ripple/{p-2176e8fd.system.entry.js → p-6d281f9f.system.entry.js} +1 -1
- package/dist/ripple/{p-88f5a3d4.system.entry.js → p-701130e4.system.entry.js} +1 -1
- package/dist/ripple/{p-b252fb1b.system.entry.js → p-72adcdaa.system.entry.js} +1 -1
- package/dist/ripple/{p-27537e1c.system.entry.js → p-76d62392.system.entry.js} +1 -1
- package/dist/ripple/{p-7aba5fcd.entry.js → p-82bd2f84.entry.js} +1 -1
- package/dist/ripple/{p-90286c9f.system.entry.js → p-8856495a.system.entry.js} +1 -1
- package/dist/ripple/{p-d5dd3550.entry.js → p-8c5c6cc0.entry.js} +1 -1
- package/dist/ripple/{p-53433e48.entry.js → p-9ceae7ef.entry.js} +1 -1
- package/dist/ripple/{p-712684c7.entry.js → p-9e0733fa.entry.js} +1 -1
- package/dist/ripple/{p-fb594105.system.entry.js → p-a0c74b8a.system.entry.js} +1 -1
- package/dist/ripple/{p-fbc9bfd2.entry.js → p-a8fb54ca.entry.js} +1 -1
- package/dist/ripple/{p-f18aef8d.system.entry.js → p-ab3d8adc.system.entry.js} +1 -1
- package/dist/ripple/{p-de58531e.system.entry.js → p-ae47cdd0.system.entry.js} +1 -1
- package/dist/ripple/{p-caae008c.entry.js → p-b22a19f9.entry.js} +1 -1
- package/dist/ripple/{p-9af426d5.entry.js → p-b600d481.entry.js} +1 -1
- package/dist/ripple/{p-67497029.system.entry.js → p-bb2e1f06.system.entry.js} +1 -1
- package/dist/ripple/{p-1f94b206.system.entry.js → p-c31f1ed7.system.entry.js} +1 -1
- package/dist/ripple/{p-5bbf6b18.system.entry.js → p-cd5afad7.system.entry.js} +1 -1
- package/dist/ripple/{p-aa86963b.entry.js → p-e00505f0.entry.js} +1 -1
- package/dist/ripple/{p-d2fa7cde.entry.js → p-e5213add.entry.js} +1 -1
- package/dist/ripple/{p-d7681d5c.entry.js → p-e53ceb74.entry.js} +1 -1
- package/dist/ripple/{p-4c5d0502.entry.js → p-f40a624e.entry.js} +1 -1
- package/dist/ripple/{p-abb6fd0e.system.entry.js → p-f4c42427.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/package.json +2 -3
- package/dist/ripple/p-319b9b38.entry.js +0 -1
- package/dist/ripple/p-64d5a281.entry.js +0 -1
|
@@ -112,7 +112,7 @@ export class Textarea {
|
|
|
112
112
|
this.announcement = message;
|
|
113
113
|
}
|
|
114
114
|
render() {
|
|
115
|
-
return (h("div", { key: '
|
|
115
|
+
return (h("div", { key: 'dcedd229ad3e262c92cc369d5f0a597f0d67f529', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'f2b0db3d98b06af6330366071d097eda6438a331', class: "label-wrapper" }, h("label", { key: '6307eb9dc125d860a3059fedf4f6a404fcb0ae22', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: 'b32122dda37e3adab27b8333e6c2d2ff5207004a', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.labelPosition !== "none" && this.requiredField && (h("span", { key: '864be330760cd3d6396462fc8e191b731a4906ee', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: 'cb04bd7ee99a025ede0781d8011467373f2517c5', class: "inner-wrapper" }, h("div", { key: 'eca53f48452099cecf60a3f853f6a021d6d1277e', class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { key: 'd855cdf9c8a55c46404c322b329efbe0344059b1', id: "inputfield", disabled: this.isDisabled, "aria-describedby": "info error", onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleBlur(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, value: this.value, rows: 3, style: { height: this.inputHeight } }), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: `character-count ${this.value.length > this.characterLimit ? "exceeded" : ""}` }, this.charCount, "/", this.characterLimit)) : ("")), this.info && (h("div", { key: '549bd207bd19b5b0de6e0d4bf5d208249e1833f7', id: "info", class: "info" }, this.info)), h("div", { key: '0bd0a4f5b22e1775c5aad031b9433db7cd77c13e', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: 'f7b51879d3d30fbe33e43d2a7f84db0a9d1385b4', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
116
116
|
}
|
|
117
117
|
static get is() { return "wm-textarea"; }
|
|
118
118
|
static get encapsulation() { return "shadow"; }
|
|
@@ -390,13 +390,13 @@ export class Timepicker {
|
|
|
390
390
|
return this.times.map((time, index) => (h("li", { id: `option${index + 1}`, "data-time": time, role: "option", onClick: () => this.handleOptionClick(time) }, this.reformatTimeInternal("12", time))));
|
|
391
391
|
}
|
|
392
392
|
render() {
|
|
393
|
-
return (h(Host, { key: '
|
|
393
|
+
return (h(Host, { key: '465a66ad7ca35812ed08210a1314e9045ce9d132', onBlur: () => this.close(false) }, h("div", { key: 'd47ce73ca7efcfd7f23b0db03b4a451a2dac4446', class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { key: '9f28f2d4604301c40a1546c972e8063c6d8d3866', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: '302946f368394139d04de0837cc0f5a9dc9f5d01', id: "label", class: "label", htmlFor: "time-input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label)), this.labelPosition !== "none" && this.requiredField && (h("div", { key: 'a13ad11e096383e3f54fe4e9c058a72f4f1f23d8', "aria-hidden": "true", class: "required" }, "*"))), h("div", { key: 'e2505ced2cd45326f1d66de36aceebf177a1a159' }, h("div", { key: '838fa98f05e0fa033f10fec973eba5cbb64cfb84', class: "inner-wrapper" }, h("input", { key: '6e11818266217669281b105b38a746cee3add730', id: "time-input", "aria-label": this.label, "aria-describedby": "error", ref: (el) => (this.inputEl = el), onBlur: () => this.handleInputBlur(), onInput: () => (this.value = this.inputEl.value), disabled: this.isDisabled, "aria-required": this.requiredField ? "true" : null, placeholder: this.timeFormat, autocomplete: "off", value: this.value, onFocus: () => this.tpWrapper.classList.add("focus") }), h("button", { key: '4be47c23c8929847bd36289b103d14a52893e8ff', id: "btn", ref: (el) => (this.buttonEl = el), disabled: this.isDisabled, "aria-controls": "list", "aria-expanded": this.isExpanded ? "true" : "false", "aria-label": this.buttonAriaLabel, "aria-describedby": "time-input", onClick: () => (this.isExpanded ? this.close() : this.open()),
|
|
394
394
|
// This addresses an issue in Safari, where clicking buttons does not focus them
|
|
395
395
|
// if the button does not receive focus when clicked, Timepicker incorrectly emits a blur event
|
|
396
396
|
onMouseDown: (ev) => {
|
|
397
397
|
ev.preventDefault();
|
|
398
398
|
this.buttonEl.focus();
|
|
399
|
-
} }, h("span", { key: '
|
|
399
|
+
} }, h("span", { key: '584530b0cd9714d70fbfcaa4ea8e2eece6b35492', class: "svg-icon svg-time" })), h("ul", { key: 'de8dece352fe83eb8107d5f98af3f6e9a4085e88', class: `options ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, id: "list", role: "listbox", "aria-labelledby": "label", "aria-describedby": this.isExpanded ? "collapsed" : null, tabindex: -1, ref: (el) => (this.optionsEl = el) }, this.renderOptions())), h("div", { key: '951d548bdc145d5902b8ec30dbf5342207408bec', id: "error", class: "error" }, this.errorMessage)), h("div", { key: '820b447b0fa475bce5ed5a5d661e19d8ed9203d8', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
|
|
400
400
|
}
|
|
401
401
|
static get is() { return "wm-timepicker"; }
|
|
402
402
|
static get encapsulation() { return "shadow"; }
|
|
@@ -278,11 +278,11 @@ export class Toggletip {
|
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
render() {
|
|
281
|
-
return (h(Host, { key: '
|
|
281
|
+
return (h(Host, { key: 'e54ccaf2ac1e22ddc9c98f9d5ac5d83186c4e93e', class: `size-${this.targetSize}` }, h("button", { key: 'ba74011ce4d673e7fdd3efcd18fe7e8ed4022bd0', ref: (el) => (this.buttonEl = el), class: "button", type: "button", "aria-label": this.label, popoverTarget: "toggletip", popoverTargetAction: "toggle", onClick: () => !this.isOpen && this.open(),
|
|
282
282
|
// In order to position the tooltip identically to the toggletip, its presence is determined by these four events
|
|
283
|
-
onMouseEnter: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }, this.renderIcon()), h("div", { key: '
|
|
283
|
+
onMouseEnter: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }, this.renderIcon()), h("div", { key: 'f2cddb9107e8c79807413900a78ea3fc1f0c5755', popover: "", ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.targetSize} ${this.isHidden ? "hidden" : ""}`, id: "toggletip",
|
|
284
284
|
// @ts-ignore - despite what Typescript says, this is a valid event for popover elements
|
|
285
|
-
onToggle: (ev) => this.handlePopoverToggle(ev) }, this.tooltip), h("div", { key: '
|
|
285
|
+
onToggle: (ev) => this.handlePopoverToggle(ev) }, this.tooltip), h("div", { key: 'e11bbe1e3ab9d7d6a14eca63ef32ffd938158fa0', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
|
|
286
286
|
}
|
|
287
287
|
static get is() { return "wm-toggletip"; }
|
|
288
288
|
static get encapsulation() { return "shadow"; }
|
|
@@ -388,9 +388,9 @@ export class Uploader {
|
|
|
388
388
|
return (h("div", { class: `drop-area -${this.dropArea}`, ref: (el) => (this.dropAreaEl = el), onDragEnter: (ev) => this.handleDragEnter(ev), onDragOver: (ev) => this.handleDragOver(ev), onDragLeave: (ev) => this.handleDragLeave(ev), onDrop: (ev) => this.handleDrop(ev) }, this.dropArea == "page" && (h("div", { ref: (el) => (this.dropOverlayEl = el), class: "drop-overlay", popover: "manual" }, h("span", { class: "upload-arrow" }), h("span", null, "Drop to Upload")))));
|
|
389
389
|
}
|
|
390
390
|
render() {
|
|
391
|
-
return (h(Host, { key: '
|
|
391
|
+
return (h(Host, { key: '372294b839ec0468f4ac6141e6b65ceeabac43e8', class: `-${this.dropArea}` }, this.uploaderType == "drop" && this.renderDropArea(), this.label && this.renderLabel(), this.renderHeader(), this.renderListContainer(), h("div", { key: '310355238822ac6a1bd1fd8d2f2e362bb60428c2', ref: (el) => (this.assertiveLiveRegionEl = el), class: "live-region sr-only", "aria-live": "assertive" // since it's directly linked to the action the user took, it should be read in priority. With polite, some messages get dismissed in favor of the page title
|
|
392
392
|
,
|
|
393
|
-
"aria-atomic": "true" }), h("div", { key: '
|
|
393
|
+
"aria-atomic": "true" }), h("div", { key: '43b23555fe86c07b1083bc91962cb32d18ea0057', ref: (el) => (this.politeLiveRegionEl = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" })));
|
|
394
394
|
}
|
|
395
395
|
static get is() { return "wm-uploader"; }
|
|
396
396
|
static get encapsulation() { return "shadow"; }
|
package/dist/docs/docs.json
CHANGED
package/dist/esm/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as bootstrapLazy } from './index-3425d80d.js';
|
|
2
2
|
export { s as setNonce } from './index-3425d80d.js';
|
|
3
|
-
import { g as globalScripts } from './app-globals-
|
|
3
|
+
import { g as globalScripts } from './app-globals-a3bef2e4.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -15,7 +15,7 @@ const PrivNavigatorButton = class {
|
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
17
|
const { handleClick, altText } = this;
|
|
18
|
-
return (h("button", { key: '
|
|
18
|
+
return (h("button", { key: 'dc162bf12e5dec1ceb7cf071b55d4d9da4deabe7', "aria-expanded": this.expanded.toString(), class: "navigator", onClick: handleClick.bind(this), "aria-label": altText }));
|
|
19
19
|
}
|
|
20
20
|
static get delegatesFocus() { return true; }
|
|
21
21
|
get el() { return getElement(this); }
|
|
@@ -22,7 +22,7 @@ const PrivNavigatorItem = class {
|
|
|
22
22
|
render() {
|
|
23
23
|
const selectedClass = this.selected ? "selected" : "";
|
|
24
24
|
const focusedClass = this.focused ? "focused" : "";
|
|
25
|
-
return (h("div", { key: '
|
|
25
|
+
return (h("div", { key: '90260a3dbfafec72c507d40e29a5f1d5e02149be', class: `navoption ${selectedClass} ${focusedClass}` }, h("slot", { key: 'c91b33f6c5fc8e563b69c1661b1c6f41d5c53225' })));
|
|
26
26
|
}
|
|
27
27
|
get el() { return getElement(this); }
|
|
28
28
|
};
|
package/dist/esm/ripple.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-3425d80d.js';
|
|
2
2
|
export { s as setNonce } from './index-3425d80d.js';
|
|
3
|
-
import { g as globalScripts } from './app-globals-
|
|
3
|
+
import { g as globalScripts } from './app-globals-a3bef2e4.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v4.21.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -379,7 +379,7 @@ const ActionMenu = class {
|
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
render() {
|
|
382
|
-
return (h(Host, { key: '
|
|
382
|
+
return (h(Host, { key: '774dc2e1e827752250eb90498f1876654c73c6cc', onBlur: () => this.close(false) }, h("div", { key: '03ad944d9cff5bd5fef00098fb6251d2ca89388e', class: getTextDir() }, h("button", { key: '773d631e6807e439ae1f7bc8bdee1f8695b5d5bb', ref: (el) => (this.menubtnEl = el), id: "menubtn", class: `wm-button -${this.internalButtonType}${this.darkMode ? " dark" : ""}${this.isTabbing ? " user-is-tabbing" : ""}`, disabled: this.disabled, "aria-label": this.internalButtonType === "icononly"
|
|
383
383
|
? this.labelForIdenticalButtons || this.tooltip
|
|
384
384
|
: this.labelForIdenticalButtons || undefined, "aria-expanded": this.isExpanded ? "true" : "false", "aria-haspopup": "menu", popoverTarget: "menu", popoverTargetAction: "toggle", onMouseEnter: () => this.actionMenuType === "icon" &&
|
|
385
385
|
showTooltip(this.tooltipPosition || this.horizontalPosition, this.menubtnEl, this.tooltip), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing &&
|
|
@@ -387,9 +387,9 @@ const ActionMenu = class {
|
|
|
387
387
|
showTooltip(this.tooltipPosition || this.horizontalPosition, this.menubtnEl, this.tooltip), onBlur: (ev) => {
|
|
388
388
|
hideTooltip();
|
|
389
389
|
this.handleButtonBlur(ev);
|
|
390
|
-
} }, this.resolvedIcon && this.renderIcon(), this.actionMenuType !== "icon" && h("span", { key: '
|
|
390
|
+
} }, this.resolvedIcon && this.renderIcon(), this.actionMenuType !== "icon" && h("span", { key: 'f8ee72d108992588520c332120f966fe124847d0', class: "button-text" }, this.buttonText), (this.actionMenuType === "selector" || this.actionMenuType === "selector-primary") && (h("div", { key: '4e147e6d505ada32055b87f8b9970b908d36738d', class: "selector-icon svg-icon svg-expand-more" }))), h("div", { key: '7664e096caf8898607414e47d52518ebd90344e1', class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "open-up" : ""} ${this.horizontalPosition}`, id: "menu", popover: "auto", tabindex: -1, role: "menu", style: { "--dropdown-max-width": this.maxWidth }, ref: (el) => (this.dropdownEl = el),
|
|
391
391
|
// @ts-ignore -- don't tell typescript but we're in the future
|
|
392
|
-
onToggle: (ev) => this.handleToggle(ev) }, h("slot", { key: '
|
|
392
|
+
onToggle: (ev) => this.handleToggle(ev) }, h("slot", { key: '6e76f40a983c31fd74686ead691b5c1e767155eb' })))));
|
|
393
393
|
}
|
|
394
394
|
static get delegatesFocus() { return true; }
|
|
395
395
|
get el() { return getElement(this); }
|
|
@@ -507,7 +507,7 @@ const Menuitem = class {
|
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
render() {
|
|
510
|
-
return (h(Host, { key: '
|
|
510
|
+
return (h(Host, { key: '4451d9cfcf568a7565adc1c4ef505f7807824a09', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: 'c3abb271eae3acb4e272897ec6a98f63b5f2f32a', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '954f25744b081d8250ae32b2959a8c720b9bd73e', class: "main-text" }, this.icon && this.renderIcon(), this.el.textContent), this.description ? h("div", { class: "description" }, this.description) : "")));
|
|
511
511
|
}
|
|
512
512
|
get el() { return getElement(this); }
|
|
513
513
|
static get watchers() { return {
|
|
@@ -261,7 +261,7 @@ const Button = class {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
render() {
|
|
264
|
-
return (h(Host, { key: '
|
|
264
|
+
return (h(Host, { key: 'd196d0b439d6b73e37fc0f83e3867854bb47a22b', class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { key: '443dd1798281e68af26f2e5148bf25c61e498156', id: this.id, class: `${this.buttonClasses}`, disabled: this.isDisabled, ref: (el) => (this.buttonEl = el), "aria-label": this.getAriaLabel(), "aria-expanded": this.isAriaExpanded !== undefined ? this.isAriaExpanded.toString() : undefined, "aria-hasPopup": this.ariaPopup ? "menu" : null, onMouseEnter: (ev) => this.handleMouseEnter(ev), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.handleFocus(ev), onBlur: () => hideTooltip(), onClick: () => hideTooltip() }, this.icon && this.renderIcon(), !this.buttonType.startsWith("navigational") && !this.buttonType.startsWith("icononly") && (h("span", { key: 'acca27d3cc39be5845259b78958f1e130de2e508', class: "button-text" }, h("slot", { key: '7bb49f66e9e0716b85c86ac161df77727c9a92de' }))), (this.buttonType == "selector" || this.buttonType == "selector-primary") && (h("div", { key: '101efe505a3883988ca0c5352301f44b2ee5d177', class: "selector-icon svg-icon svg-expand-more" })))));
|
|
265
265
|
}
|
|
266
266
|
static get delegatesFocus() { return true; }
|
|
267
267
|
get el() { return getElement(this); }
|
|
@@ -9,7 +9,7 @@ const FileList = class {
|
|
|
9
9
|
this.showInfo = "last-updated";
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h("div", { key: '
|
|
12
|
+
return (h("div", { key: '5e5b063af0d4845668a274a97571f52bfb8482aa', role: "list", class: "list-wrapper" }, h("slot", { key: '5e53878852fd55bdd22c922a4c7cecac79ccbb32' })));
|
|
13
13
|
}
|
|
14
14
|
static get delegatesFocus() { return true; }
|
|
15
15
|
get el() { return getElement(this); }
|
|
@@ -196,7 +196,7 @@ const File = class {
|
|
|
196
196
|
return (h("div", { class: `file-wrapper` }, h("div", { class: `file ${this.errorMessage ? "--error" : ""} ${this.isCondensed ? "condensed" : ""} ${this.isExtraCondensed ? "extra-condensed" : ""}` }, this.renderFileName(), showRightGroup && (h("div", { class: "right-group" }, !this.isExtraCondensed && this.renderFileInfo(), this.fileActions !== "" && this.renderFileControls())), this.errorMessage && (h("div", { class: "right-group" }, h("wm-button", { "permanently-delete": true, "button-type": "textonly", "label-for-identical-buttons": this.generateClearButtonLabel(this.name), onClick: () => this.wmFileErrorCleared.emit() }, this.clearButtonText))), this.progress == 100 && h("span", { class: "svg-icon svg-success" })), this.errorMessage && h("div", { class: "error-message" }, this.errorMessage)));
|
|
197
197
|
}
|
|
198
198
|
render() {
|
|
199
|
-
return h(Host, { key: '
|
|
199
|
+
return h(Host, { key: '1df873c1f1b95a6999b7deb8fdc2e70480e27b46', role: "listitem" }, this.isUploading ? this.renderFileInProgress() : this.renderFile());
|
|
200
200
|
}
|
|
201
201
|
static get delegatesFocus() { return true; }
|
|
202
202
|
get el() { return getElement(this); }
|
|
@@ -161,7 +161,7 @@ const Flyout = class {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
render() {
|
|
164
|
-
return (h(Host, { key: '
|
|
164
|
+
return (h(Host, { key: '4b2a99c0d7e332b796909685860f7beea502fe4e' }, h("dialog", { key: '88d733e51cadc2258893e6524b0834c16224ac58', ref: (el) => (this.dialogEl = el), class: "flyout", "aria-labelledby": "heading", onClose: () => this.wmFlyoutCloseTriggered.emit(), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: '8f31242bf3d6d3e9323bf5502b454d2d9a1b42a5', tabindex: "0", class: "focus-trap", onFocus: () => this.lastFocusableEl.focus(), "aria-hidden": "true" }), this.renderHeader(), h("div", { key: 'b3880a2be67ca335752543f95dae9e0efd632e36', class: "flyout-content" }, h("slot", { key: '4703caea7c7075d20b56dfec49ef9c039395a4d5' })), this.renderFooter(), h("div", { key: '64281374edc41d209c1c67959f539a79c6d9c47b', tabindex: "0", class: "focus-trap", onFocus: () => this.handleEndBookendFocus(), "aria-hidden": "true" }))));
|
|
165
165
|
}
|
|
166
166
|
get el() { return getElement(this); }
|
|
167
167
|
static get watchers() { return {
|
|
@@ -113,7 +113,7 @@ const Input = class {
|
|
|
113
113
|
: `info error`;
|
|
114
114
|
}
|
|
115
115
|
render() {
|
|
116
|
-
return (h("div", { key: '
|
|
116
|
+
return (h("div", { key: 'c95455fb6668414ec09dbf301323f11fc7270e47', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: 'de0ada2ec3c43c411924417df348ebe34a477e8e', class: "label-wrapper" }, h("label", { key: '04884ea505a88026aa311a38e30cbdf049b390c3', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '1eedd2faffbfcc670ad3b87298465ab16328a1d3', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '51224587e46ef0132891dee01536d5cf07ea54f6', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: 'ed40b31ab7ab588f6165cc0af2ec52bb8d86509b', class: "inner-wrapper" }, h("div", { key: '67a06543806995e8b95db4186a4ea053d4d33b45', class: "text-after-wrapper" }, h("div", { key: '78ad09bd7849f5f7c422d36a6f01e156c9c6db5e', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: '19a85ba9d2d9d17d634ac78179dbd90b378b2b7b', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: 'f8a4b6d837abf040d9ca1237297836d066cd3f71', ref: (el) => (this.inputEl = el), id: "inputfield", disabled: this.isDisabled, "aria-describedby": this.descriptors(), onInput: (ev) => this.handleInput(ev), onKeyDown: (ev) => this.handleKeyDown(ev), onBlur: () => this.handleBlur(), onFocus: () => this.handleFocus(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, maxLength: this.characterLimit || undefined, type: this.type, step: this.step, max: this.max, min: this.min, value: this.el.value }), this.symbolAfter && (h("span", { key: '105dec7aa348f910b25db38b86eec650c943ef40', class: "symbol", id: "symbol-after" }, this.symbolAfter)), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: "character-count" }, this.charCount, "/", this.characterLimit)) : ("")), this.textAfter && (h("span", { key: '2ea643f3a9bc736bb33200d5cf87600e14aa2f18', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: '07e341cfc2b91a6bcf4880158aa735fd06ea51ea', id: "info", class: "info" }, this.info)), h("div", { key: '41f5fe8184dd6d15e868a9212c61f2a70dcdb9a9', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '860193d77a6576a5aec0c133f43bffe72a853e57', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
117
117
|
}
|
|
118
118
|
static get delegatesFocus() { return true; }
|
|
119
119
|
get el() { return getElement(this); }
|
|
@@ -125,9 +125,9 @@ const ModalPss = class {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
render() {
|
|
128
|
-
return (h(Host, { key: '
|
|
128
|
+
return (h(Host, { key: '5670d26d529d69cacf36c8755b5d328fb40c8938', class: `${this.open ? "" : "hide "}${"wm-" + this.modalType}`, role: "dialog", "aria-describedby": `wm-modal-heading-text-${this.uid}`, "aria-modal": "true", tabindex: this.open ? 0 : null, onFocus: () => {
|
|
129
129
|
this.focusLastElement.emit();
|
|
130
|
-
} }, h("div", { key: '
|
|
130
|
+
} }, h("div", { key: 'ca8956c8d821b6d12c501d8867a08d683a4bbb6a', class: "overlay", ref: (el) => (this.overlayEl = el) }), h("div", { key: 'fc2c63dc1264a0a29b3b049f76d363c1b2e6c8dc', class: "sr-only", tabIndex: 0, onFocus: () => {
|
|
131
131
|
this.focusFirstElement.emit();
|
|
132
132
|
} })));
|
|
133
133
|
}
|
|
@@ -170,7 +170,7 @@ const ModalPssFooter = class {
|
|
|
170
170
|
parentModal.emitSecondaryEvent();
|
|
171
171
|
}
|
|
172
172
|
render() {
|
|
173
|
-
return (h("div", { key: '
|
|
173
|
+
return (h("div", { key: '1fb457cc2cff44efb8abaa10575737b01ce70b20', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '62f807be71bdbac9c20569adf0a014de28d9df12', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '93437b4c93b2dc035f8d7d9b5533bed6093c6a5f', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '1887d3cba0c762475837694f18c5804cb855d178', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.secondaryText)), h("wm-button", { key: 'fe845d00a730f19f5f522b14a36dd397328d57d0', "button-type": this.deleteStyle ? "secondary" : "primary", "permanently-delete": this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.primaryText))));
|
|
174
174
|
}
|
|
175
175
|
get el() { return getElement(this); }
|
|
176
176
|
};
|
|
@@ -205,7 +205,7 @@ const ModalPssHeader = class {
|
|
|
205
205
|
// this.headingElement.focus();
|
|
206
206
|
// }
|
|
207
207
|
render() {
|
|
208
|
-
return (h(Host, { key: '
|
|
208
|
+
return (h(Host, { key: 'a3498139a3ec2cff1e40daeffaca7634cf5a484b' }, h("div", { key: '2380923b35880883b85ffce8ee58c887d23fe886', class: "wm-wrapper" }, h("div", { key: '7978d304ec86bd8df64c9d1e639216e5ff1edba4' }, h("h2", { key: 'e462040e5af094836cc38ec064faef408402fabf', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '1d5baad88628e7830c20983f40cf8de50b5b5f06', class: "subtitle" }, this.subheading))), h("wm-button", { key: 'e55d981a3e1dc49d3079b8b15661bdde227ff5e8', "button-type": "navigational", icon: "f156", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
|
|
209
209
|
}
|
|
210
210
|
get el() { return getElement(this); }
|
|
211
211
|
};
|
|
@@ -140,11 +140,11 @@ const Modal = class {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
render() {
|
|
143
|
-
return (h("dialog", { key: '
|
|
143
|
+
return (h("dialog", { key: '332ceaa72a6cc1a73474d1c99c40498770a6ad27', class: `${"wm-" + this.modalType}`, "aria-labelledby": `wm-modal-heading-text-${this.uid}`, ref: (el) => (this.dialogEl = el), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: '5016b11040de160c30d756c6e1b08ce1253e70a8', class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
|
|
144
144
|
const focusedFromCloseButton = ev.relatedTarget && ev.relatedTarget == this.closeButtonEl;
|
|
145
145
|
// no related target means we're coming from outside the page (browser chrome), and first element should be focused instead
|
|
146
146
|
focusedFromCloseButton ? this.focusLastElement.emit() : this.focusFirstElement.emit();
|
|
147
|
-
} }), !this.hasBrowserPopoverSupport && h("div", { key: '
|
|
147
|
+
} }), !this.hasBrowserPopoverSupport && h("div", { key: '903aac303f565e079e3453ac147e7148406da60a', class: "wm-tooltip" }), h("slot", { key: '5dfc482e5022d8da796fd2a24d5050861de5de22' }), h("div", { key: 'bab4f67544710ec4613160a60d948b8b6cee4bf2', class: "tabtrap sr-only", tabindex: "0", onFocus: () => {
|
|
148
148
|
this.focusFirstElement.emit();
|
|
149
149
|
} })));
|
|
150
150
|
}
|
|
@@ -191,7 +191,7 @@ const ModalFooter = class {
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
render() {
|
|
194
|
-
return (h("div", { key: '
|
|
194
|
+
return (h("div", { key: '01d9675f5ae7e80960cb1c3d966a7f662f24bd7d', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '066e6efe2c39d9873db4a9796e0666985583e99e', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '37ca1d537a4871193488abcbd625172db21da0b1', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '1f8fa5963369b94c7e3dee94339772e155667913', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: '2eb0f06c4f1849b6e08eed2fa2a85952ae9cdc5f', "button-type": this.deleteStyle ? "secondary" : "primary", "permanently-delete": this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.primaryText))));
|
|
195
195
|
}
|
|
196
196
|
get el() { return getElement(this); }
|
|
197
197
|
};
|
|
@@ -223,7 +223,7 @@ const ModalHeader = class {
|
|
|
223
223
|
parentModal.emitCloseEvent();
|
|
224
224
|
}
|
|
225
225
|
render() {
|
|
226
|
-
return (h(Host, { key: '
|
|
226
|
+
return (h(Host, { key: '9aa6f7ffd57907e412fb42f3ecc5fcb65ea37a48' }, h("div", { key: 'a404673f2172d71e1de498265d59abc37ecca16c', class: "wm-wrapper" }, h("div", { key: 'fdfd2a2d4b31effdd4742f520f2d00f6eb028b6b' }, h("h2", { key: 'b748ccfe42ccd233a918578251527fe78b112e41', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: 'a09334a14fc61bc8756122e62741ed0d5e445820', class: "subtitle" }, this.subheading))), h("wm-button", { key: 'a89ca51890891a0534e97174fd841e13eb9dec68', "button-type": "navigational", icon: "#close", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
|
|
227
227
|
}
|
|
228
228
|
get el() { return getElement(this); }
|
|
229
229
|
};
|
|
@@ -102,9 +102,9 @@ const Navigation = class {
|
|
|
102
102
|
} }));
|
|
103
103
|
}
|
|
104
104
|
render() {
|
|
105
|
-
return (h(Host, { key: '
|
|
105
|
+
return (h(Host, { key: '38f20313b339a81259115b164fee7a43f1c4efe5', role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { key: '8630d032614a02068dbcf650d304f6569e00df50', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { key: '1657807eea4bb2687b5d18c4cb96448110cfa740', class: "tray" }, h("div", { key: '92ff3381acb3f959c3f63ca4d20b3e2e51cb81f7', class: "toggle-wrapper" }, h("wm-button", { key: 'e20e007c8d77d69ad529cd6d3cc4fafbdb1fc2f1', ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "#close" : "#menu", "icon-size": "2rem", tooltip: this.open ? globalMessages.close : globalMessages.open, "tooltip-position": "right", tabIndex: this.open ? undefined : -1, onClick: () => {
|
|
106
106
|
this.open = !this.open;
|
|
107
|
-
} })), h("ul", { key: '
|
|
107
|
+
} })), h("ul", { key: 'e5ec6a2303ff3def1ddd4f3d5199c93a01895793', class: "navlist" }, h("slot", { key: 'b29379969f84e1cea3a3918ba97168420b1c4cbe' }))), this.isCollapsible && (h("div", { key: '176f724b791b7792caa5b5b519e79f48ccee2f6b', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.toggleEl.focus() }))));
|
|
108
108
|
}
|
|
109
109
|
static get delegatesFocus() { return true; }
|
|
110
110
|
get el() { return getElement(this); }
|
|
@@ -153,7 +153,7 @@ const NavigationHamburger = class {
|
|
|
153
153
|
this.wmNavigationHamburgerClicked.emit();
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
|
-
return (h(Host, { key: '
|
|
156
|
+
return (h(Host, { key: '966bcd988f8ee460899519969a759ffb16459baa', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { key: 'b1e5c3cd46106943102bf5509a9251953b164c56', "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing && showTooltip("right", this.el, this.showNavMessage), onBlur: () => hideTooltip(), onClick: () => this.handleClick() }, h("span", { key: 'a50f398cbdde9271cab48e6bc4eb9013fe8b4ba4', class: "svg-icon svg-menu" }))));
|
|
157
157
|
}
|
|
158
158
|
static get delegatesFocus() { return true; }
|
|
159
159
|
get el() { return getElement(this); }
|
|
@@ -172,7 +172,7 @@ const NavigationItem = class {
|
|
|
172
172
|
this.active = undefined;
|
|
173
173
|
}
|
|
174
174
|
render() {
|
|
175
|
-
return (h(Host, { key: '
|
|
175
|
+
return (h(Host, { key: '5c37c39e27b4602bcc53f2a1e118fb427b7a9a1a', role: "listitem" }, h("a", { key: 'ba3e7216ba1a5e7cb8d61dff61b353eeaaddee34', class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { key: '9a35a2bd7f3474a182e187f8fe4b35904cb00862', class: "icon", "aria-hidden": "true" }, h("slot", { key: 'fb6858dafb750fcee200e57757dd86bbfc05cd23' })), h("div", { key: '6b2c933f73fd07746c3f3bcb656f9fc9563e88cd', class: "text" }, this.text))));
|
|
176
176
|
}
|
|
177
177
|
static get delegatesFocus() { return true; }
|
|
178
178
|
get el() { return getElement(this); }
|