@watermarkinsights/ripple 6.0.0-alpha.2 → 6.0.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-LJjOu6YB.js → app-globals-sgBnp-Gl.js} +1 -1
- package/dist/cjs/{chartFunctions-aNMk1XKY.js → chartFunctions-QY-zDbe-.js} +1 -1
- package/dist/cjs/{index-Fc5N6lyN.js → index-DzGJyL8k.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/priv-calendar.cjs.entry.js +3 -3
- package/dist/cjs/priv-chart-popover-old.cjs.entry.js +1 -1
- package/dist/cjs/priv-chart-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/priv-navigator-button.cjs.entry.js +2 -2
- package/dist/cjs/priv-navigator-item.cjs.entry.js +2 -2
- package/dist/cjs/priv-option-list.cjs.entry.js +2 -2
- package/dist/cjs/ripple.cjs.js +2 -2
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +5 -5
- package/dist/cjs/wm-button.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart-bar.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart-column.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart-stack.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart.cjs.entry.js +2 -2
- package/dist/cjs/wm-date-range.cjs.entry.js +4 -4
- package/dist/cjs/wm-datepicker.cjs.entry.js +4 -4
- package/dist/cjs/wm-file-list.cjs.entry.js +2 -2
- package/dist/cjs/wm-file.cjs.entry.js +2 -2
- package/dist/cjs/wm-flyout.cjs.entry.js +2 -2
- package/dist/cjs/wm-input.cjs.entry.js +2 -2
- package/dist/cjs/wm-line-chart.cjs.entry.js +2 -2
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +5 -5
- package/dist/cjs/wm-modal_3.cjs.entry.js +5 -5
- package/dist/cjs/wm-navigation_3.cjs.entry.js +5 -5
- package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
- package/dist/cjs/wm-nested-select.cjs.entry.js +4 -4
- package/dist/cjs/wm-optgroup.cjs.entry.js +2 -2
- package/dist/cjs/wm-option_2.cjs.entry.js +6 -6
- package/dist/cjs/wm-pagination.cjs.entry.js +2 -2
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/wm-search.cjs.entry.js +3 -3
- package/dist/cjs/wm-snackbar.cjs.entry.js +3 -3
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +7 -7
- package/dist/cjs/wm-tag-input.cjs.entry.js +3 -3
- package/dist/cjs/wm-tag-option.cjs.entry.js +1 -1
- package/dist/cjs/wm-textarea.cjs.entry.js +2 -2
- package/dist/cjs/wm-timepicker.cjs.entry.js +3 -3
- package/dist/cjs/wm-toggletip.cjs.entry.js +4 -4
- package/dist/cjs/wm-uploader.cjs.entry.js +3 -3
- package/dist/cjs/wm-wrapper.cjs.entry.js +1 -1
- package/dist/collection/components/datepickers/datepicker.css +11 -2
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +2 -2
- package/dist/collection/components/datepickers/wm-date-range.js +2 -2
- package/dist/collection/components/datepickers/wm-datepicker.js +2 -2
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +1 -1
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +3 -3
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +1 -1
- package/dist/collection/components/selects/wm-option/wm-option.js +1 -1
- package/dist/collection/components/selects/wm-select/wm-select.js +4 -4
- 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 +2 -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/collection/dev/date-range.js +43 -3
- package/dist/components/index.js +1 -1
- package/dist/components/{p-BW-qlQCp.js → p-B-aJInYV.js} +1 -1
- package/dist/components/{p-UYnG2Dmh.js → p-BEjz-Tyd.js} +1 -1
- package/dist/components/{p-CQvIfFRy.js → p-BOrvrHcb.js} +1 -1
- package/dist/components/{p-LLEX4jRa.js → p-BpcEWE0C.js} +1 -1
- package/dist/components/{p-CKwHtEBQ.js → p-C0tBuxqB.js} +1 -1
- package/dist/components/{p-B1AjbQdq.js → p-CrQBLPn0.js} +1 -1
- package/dist/components/{p-hQXl7ulO.js → p-D8mwP8Na.js} +1 -1
- package/dist/components/{p-CkrOkrrd.js → p-FcmS53yG.js} +1 -1
- package/dist/components/priv-calendar.js +1 -1
- package/dist/components/priv-navigator-button.js +1 -1
- package/dist/components/priv-navigator-item.js +1 -1
- package/dist/components/priv-option-list.js +1 -1
- package/dist/components/wm-action-menu.js +1 -1
- package/dist/components/wm-button.js +1 -1
- package/dist/components/wm-date-range.js +1 -1
- package/dist/components/wm-datepicker.js +1 -1
- package/dist/components/wm-file-list.js +1 -1
- package/dist/components/wm-file.js +1 -1
- package/dist/components/wm-flyout.js +1 -1
- package/dist/components/wm-input.js +1 -1
- package/dist/components/wm-line-chart.js +1 -1
- package/dist/components/wm-menuitem.js +1 -1
- package/dist/components/wm-modal-footer.js +1 -1
- package/dist/components/wm-modal-header.js +1 -1
- package/dist/components/wm-modal-pss-footer.js +1 -1
- package/dist/components/wm-modal-pss-header.js +1 -1
- package/dist/components/wm-modal-pss.js +1 -1
- package/dist/components/wm-modal.js +1 -1
- package/dist/components/wm-navigation-hamburger.js +1 -1
- package/dist/components/wm-navigation-item.js +1 -1
- package/dist/components/wm-navigation.js +1 -1
- package/dist/components/wm-navigator.js +1 -1
- package/dist/components/wm-nested-select.js +1 -1
- package/dist/components/wm-optgroup.js +1 -1
- package/dist/components/wm-option.js +1 -1
- package/dist/components/wm-pagination.js +1 -1
- package/dist/components/wm-search.js +1 -1
- package/dist/components/wm-select.js +1 -1
- package/dist/components/wm-snackbar.js +1 -1
- package/dist/components/wm-tab-item.js +1 -1
- package/dist/components/wm-tab-list.js +1 -1
- package/dist/components/wm-tab-panel.js +1 -1
- package/dist/components/wm-tag-input.js +1 -1
- package/dist/components/wm-textarea.js +1 -1
- package/dist/components/wm-timepicker.js +1 -1
- package/dist/components/wm-toggletip.js +1 -1
- package/dist/components/wm-uploader.js +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/esm/{app-globals-6f98lpqY.js → app-globals-BNDLe8FS.js} +1 -1
- package/dist/esm/{chartFunctions-BIFNqIjd.js → chartFunctions-P0ULA818.js} +1 -1
- package/dist/esm/{index-BFdpYP3s.js → index-BIsCCYMI.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/priv-calendar.entry.js +3 -3
- package/dist/esm/priv-chart-popover-old.entry.js +1 -1
- package/dist/esm/priv-chart-popover_2.entry.js +1 -1
- package/dist/esm/priv-navigator-button.entry.js +2 -2
- package/dist/esm/priv-navigator-item.entry.js +2 -2
- package/dist/esm/priv-option-list.entry.js +2 -2
- package/dist/esm/ripple.js +3 -3
- package/dist/esm/wm-action-menu_2.entry.js +5 -5
- package/dist/esm/wm-button.entry.js +2 -2
- package/dist/esm/wm-chart-bar.entry.js +2 -2
- package/dist/esm/wm-chart-column.entry.js +2 -2
- package/dist/esm/wm-chart-slice.entry.js +1 -1
- package/dist/esm/wm-chart-stack.entry.js +2 -2
- package/dist/esm/wm-chart.entry.js +2 -2
- package/dist/esm/wm-date-range.entry.js +4 -4
- package/dist/esm/wm-datepicker.entry.js +4 -4
- package/dist/esm/wm-file-list.entry.js +2 -2
- package/dist/esm/wm-file.entry.js +2 -2
- package/dist/esm/wm-flyout.entry.js +2 -2
- package/dist/esm/wm-input.entry.js +2 -2
- package/dist/esm/wm-line-chart.entry.js +2 -2
- package/dist/esm/wm-modal-pss_3.entry.js +5 -5
- package/dist/esm/wm-modal_3.entry.js +5 -5
- package/dist/esm/wm-navigation_3.entry.js +5 -5
- package/dist/esm/wm-navigator.entry.js +1 -1
- package/dist/esm/wm-nested-select.entry.js +4 -4
- package/dist/esm/wm-optgroup.entry.js +2 -2
- package/dist/esm/wm-option_2.entry.js +6 -6
- package/dist/esm/wm-pagination.entry.js +2 -2
- package/dist/esm/wm-progress-indicator_3.entry.js +2 -2
- package/dist/esm/wm-search.entry.js +3 -3
- package/dist/esm/wm-snackbar.entry.js +3 -3
- package/dist/esm/wm-tab-item_3.entry.js +7 -7
- package/dist/esm/wm-tag-input.entry.js +3 -3
- package/dist/esm/wm-tag-option.entry.js +1 -1
- package/dist/esm/wm-textarea.entry.js +2 -2
- package/dist/esm/wm-timepicker.entry.js +3 -3
- package/dist/esm/wm-toggletip.entry.js +4 -4
- package/dist/esm/wm-uploader.entry.js +3 -3
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/ripple/{p-16ce7920.entry.js → p-00b1c5f5.entry.js} +1 -1
- package/dist/ripple/{p-b30bf53b.entry.js → p-042adbbe.entry.js} +1 -1
- package/dist/ripple/{p-ac012c03.entry.js → p-0677af98.entry.js} +1 -1
- package/dist/ripple/{p-97a0d3ae.entry.js → p-085fe812.entry.js} +1 -1
- package/dist/ripple/{p-1a4f22ac.entry.js → p-0a35303c.entry.js} +1 -1
- package/dist/ripple/{p-44cdb9d4.entry.js → p-0c3f26c8.entry.js} +1 -1
- package/dist/ripple/{p-c200c74f.entry.js → p-1bcf03c2.entry.js} +1 -1
- package/dist/ripple/{p-7d5b0aee.entry.js → p-1c13a8b1.entry.js} +1 -1
- package/dist/ripple/{p-e6fbfb6e.entry.js → p-1c63f397.entry.js} +1 -1
- package/dist/ripple/{p-63b00121.entry.js → p-1e5f1bbc.entry.js} +1 -1
- package/dist/ripple/{p-08411b99.entry.js → p-1fedde87.entry.js} +1 -1
- package/dist/ripple/{p-43910594.entry.js → p-29fa4aa2.entry.js} +1 -1
- package/dist/ripple/{p-525bcd17.entry.js → p-2c1de7b2.entry.js} +1 -1
- package/dist/ripple/{p-d7ea8e23.entry.js → p-2dca41df.entry.js} +1 -1
- package/dist/ripple/{p-2bcb474d.entry.js → p-3645a86e.entry.js} +1 -1
- package/dist/ripple/{p-fc0082db.entry.js → p-387542e7.entry.js} +1 -1
- package/dist/ripple/{p-13cfcd0b.entry.js → p-3a6afddd.entry.js} +1 -1
- package/dist/ripple/{p-a8933443.entry.js → p-3d839286.entry.js} +1 -1
- package/dist/ripple/p-3ea6097d.entry.js +1 -0
- package/dist/ripple/{p-859bb496.entry.js → p-48ff2aad.entry.js} +1 -1
- package/dist/ripple/p-502ee663.entry.js +1 -0
- package/dist/ripple/{p-c8c775c6.entry.js → p-5243f5bf.entry.js} +1 -1
- package/dist/ripple/{p-8a828541.entry.js → p-65d8cdbf.entry.js} +1 -1
- package/dist/ripple/{p-3c0f781f.entry.js → p-680e4605.entry.js} +1 -1
- package/dist/ripple/{p-19c80d39.entry.js → p-6cf44653.entry.js} +1 -1
- package/dist/ripple/{p-f0c898d8.entry.js → p-711c1496.entry.js} +1 -1
- package/dist/ripple/{p-92ad6c4c.entry.js → p-747dc058.entry.js} +1 -1
- package/dist/ripple/{p-460ea8a2.entry.js → p-75b75bca.entry.js} +1 -1
- package/dist/ripple/{p-defb273d.entry.js → p-967aabf3.entry.js} +1 -1
- package/dist/ripple/{p-54f519d5.entry.js → p-9aef68cf.entry.js} +1 -1
- package/dist/ripple/{p-BFdpYP3s.js → p-BIsCCYMI.js} +1 -1
- package/dist/ripple/p-BweDyZco.js +1 -0
- package/dist/ripple/{p-rj8q8CUE.js → p-DISt5Eik.js} +1 -1
- package/dist/ripple/{p-7b29e1ea.entry.js → p-aa09a8c4.entry.js} +1 -1
- package/dist/ripple/{p-60913476.entry.js → p-b298823b.entry.js} +1 -1
- package/dist/ripple/{p-be15641e.entry.js → p-bafcd994.entry.js} +1 -1
- package/dist/ripple/{p-1e184bdd.entry.js → p-c260a0b0.entry.js} +1 -1
- package/dist/ripple/{p-93a72f0f.entry.js → p-d7c4e336.entry.js} +1 -1
- package/dist/ripple/{p-7083f007.entry.js → p-daf28eca.entry.js} +1 -1
- package/dist/ripple/{p-e90bb871.entry.js → p-e543b9dc.entry.js} +1 -1
- package/dist/ripple/{p-5b55e739.entry.js → p-f00e0d07.entry.js} +1 -1
- package/dist/ripple/{p-8c73d3d4.entry.js → p-f5aab54f.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/package.json +1 -1
- package/dist/ripple/p-0de2f77a.entry.js +0 -1
- package/dist/ripple/p-COu7Nm-4.js +0 -1
- package/dist/ripple/p-a21a90cb.entry.js +0 -1
|
@@ -302,7 +302,7 @@ export class Flyout {
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
render() {
|
|
305
|
-
return (h(Host, { key: '
|
|
305
|
+
return (h(Host, { key: '74d075c418782ae1eeda065b40f1baef27fe2cc3' }, h("dialog", { key: '07d790041f7c4b176e071737ce72947b610215df', ref: (el) => (this.dialogEl = el), class: "flyout", "aria-labelledby": "heading", onClose: () => this.wmFlyoutCloseTriggered.emit(), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: '3356e65c6a461d09c381ef00f40741396afbb097', tabindex: "0", class: "focus-trap", onFocus: () => this.lastFocusableEl.focus(), "aria-hidden": "true" }), this.renderHeader(), h("div", { key: 'd1ab12f7e2b95578ba145288aba8cc095c068fa6', class: "flyout-content" }, h("slot", { key: '04f92b2bae9ba1e3a148ca32e2a1f0c92f704c2e' })), this.renderFooter(), h("div", { key: '5997163c52691b6eb366b7b37a25a3f0ee4a81a9', tabindex: "0", class: "focus-trap", onFocus: () => this.handleEndBookendFocus(), "aria-hidden": "true" }))));
|
|
306
306
|
}
|
|
307
307
|
static get is() { return "wm-flyout"; }
|
|
308
308
|
static get encapsulation() { return "shadow"; }
|
|
@@ -224,7 +224,7 @@ export class Input {
|
|
|
224
224
|
: `info error`;
|
|
225
225
|
}
|
|
226
226
|
render() {
|
|
227
|
-
return (h("div", { key: '
|
|
227
|
+
return (h("div", { key: '6880486dfbb2093dc12b7d2f7045d2080267c920', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: '979121599d6dd225602f189b31bca9f4e01ff20e', class: "label-wrapper" }, h("label", { key: '182870d93bbf0ed17ca19cdce68156b6a58c7536', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '71c7cb67ae5eac36ae3e47305472abc657b50ca4', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '928f41d54e2979d21ceceef43dff40de28c11257', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: 'da92fa2e5c47394abed77a5583a7e836e5a49148', class: "inner-wrapper" }, h("div", { key: 'abc0f95de8a803fff4e3b1176a7ee904b8123d10', class: "text-after-wrapper" }, h("div", { key: '1ef4bdeaf4c741d7cd2a7914f6c6954f454a6435', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: 'ed614d73101b7b69ac9c657d57c2e93bea3821f8', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: '397f8e692de681897ac597d0b707f9de741890d4', 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: '16bdf60913e15323bae60ee13bf77d219d5444ef', 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: 'd497e23192033910468c1241fa2df5969fce0751', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: 'f0375b971d0d3709322578ed0e9ac2df052fd610', id: "info", class: "info" }, this.info)), h("div", { key: '135c3949561baaddf6eb45a9a1748e8d705c508f', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '1c4bd55e3c57039bdfa969e6c07d59fb99c9473c', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
228
228
|
}
|
|
229
229
|
static get is() { return "wm-input"; }
|
|
230
230
|
static get encapsulation() { return "shadow"; }
|
|
@@ -159,7 +159,7 @@ export class Menuitem {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
render() {
|
|
162
|
-
return (h(Host, { key: '
|
|
162
|
+
return (h(Host, { key: '31b586e4a8f2b156c07cbf93d5445aaaaf25aa6c', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '919d1615f3ed3f0e6decf0454f2aa06707f277f1', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '7c7bf80eff9211f8044b3232b7babc57e606cd8d', class: "main-text" }, this.icon && this.renderIcon(), this.el.textContent), this.description ? h("div", { class: "description" }, this.description) : "")));
|
|
163
163
|
}
|
|
164
164
|
static get is() { return "wm-menuitem"; }
|
|
165
165
|
static get encapsulation() { return "shadow"; }
|
|
@@ -85,7 +85,7 @@ export class ModalFooter {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
|
-
return (h("div", { key: '
|
|
88
|
+
return (h("div", { key: 'ee99f67919ab52eda8ac8df4bc2188dbc15dccc8', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: 'a5464448621079d71fdd1352b0a386a1ed0d6df9', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: 'b5d98e57ae5c637639063d2f2f08ed71b209efa3', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '83db118555b12043f436d4706dddc3efa2c322aa', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: '5dcb3f0bbfaeeb916b8937043338e36700bf7938', "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))));
|
|
89
89
|
}
|
|
90
90
|
static get is() { return "wm-modal-footer"; }
|
|
91
91
|
static get originalStyleUrls() {
|
|
@@ -52,7 +52,7 @@ export class ModalHeader {
|
|
|
52
52
|
parentModal.emitCloseEvent();
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: '1d6f92f8d0f90f132ffcad250340e827d6f6bf46' }, h("div", { key: '6d68501b1b7e61cd15b1af427e8789a49dd4ae60', class: "wm-wrapper" }, h("div", { key: '87d9bb8d30bffa3082cc10ce504037af3abbd916' }, h("h2", { key: '6f2d3a89c6427761da6163b72ad18a3930b80015', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '4c4ec555e035a3b65c6740003f66722df167ce8a', class: "subtitle" }, this.subheading))), h("wm-button", { key: '2d578d7e66acb69abb471e1c596510b664ea3135', "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() }))));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "wm-modal-header"; }
|
|
58
58
|
static get originalStyleUrls() {
|
|
@@ -247,11 +247,11 @@ export class Modal {
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
render() {
|
|
250
|
-
return (h("dialog", { key: '
|
|
250
|
+
return (h("dialog", { key: 'ddb98281c3c4670a5bff5cb949d737983c45ed44', 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: '695fa76250e2af36fd3c0a4cd10553a90aa8cfa9', class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
|
|
251
251
|
const focusedFromCloseButton = ev.relatedTarget && ev.relatedTarget == this.closeButtonEl;
|
|
252
252
|
// no related target means we're coming from outside the page (browser chrome), and first element should be focused instead
|
|
253
253
|
focusedFromCloseButton ? this.focusLastElement.emit() : this.focusFirstElement.emit();
|
|
254
|
-
} }), !this.hasBrowserPopoverSupport && h("div", { key: '
|
|
254
|
+
} }), !this.hasBrowserPopoverSupport && h("div", { key: 'c85ce4f05e858c3a98d46db7f0023f2f25f82837', class: "wm-tooltip" }), h("slot", { key: '9227091b31d2c2f158adde0c31ab4ba88c4fe371' }), h("div", { key: 'cf6f02fa35067b2892270b25e83d4700d9d97200', class: "tabtrap sr-only", tabindex: "0", onFocus: () => {
|
|
255
255
|
this.focusFirstElement.emit();
|
|
256
256
|
} })));
|
|
257
257
|
}
|
|
@@ -31,7 +31,7 @@ export class ModalPssFooter {
|
|
|
31
31
|
parentModal.emitSecondaryEvent();
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: '5150cb1e158616df9ee93a525183867f21f28c15', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: 'dbe658f3db126d12e7f3ae669ea74b5693d5eb09', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '91934f637e4a9ff8e39d68ea1f38a6c603795afb', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: 'ad00b3be67fef9c8bf7f36df5dd85ea7289deb71', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.secondaryText)), h("wm-button", { key: 'f438d3e6bace08ac8bf54a2d86fb51ed082f2e25', "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))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "wm-modal-pss-footer"; }
|
|
37
37
|
static get originalStyleUrls() {
|
|
@@ -29,7 +29,7 @@ export class ModalPssHeader {
|
|
|
29
29
|
// this.headingElement.focus();
|
|
30
30
|
// }
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '9525d4b0a46c7cc0490f31be7c0e440272db5cbc' }, h("div", { key: '1577d51259d123a8daa577c3f694a999fdc24b8d', class: "wm-wrapper" }, h("div", { key: 'efee550b4bbf877e9968b09b1504d7cf5cc9d992' }, h("h2", { key: '717613135925ee4398615338e4eb7ee58b87f8e4', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '9ad3785d585d32b86a842811213aef4df3e699d1', class: "subtitle" }, this.subheading))), h("wm-button", { key: '8561a42b3aa861af5756ebc14e2e4653b82f195a', "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() }))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "wm-modal-pss-header"; }
|
|
35
35
|
static get originalStyleUrls() {
|
|
@@ -118,9 +118,9 @@ export class ModalPss {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
render() {
|
|
121
|
-
return (h(Host, { key: '
|
|
121
|
+
return (h(Host, { key: '020d67b9cdaf30f070c9dd26bc3ca7c01866b876', 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: () => {
|
|
122
122
|
this.focusLastElement.emit();
|
|
123
|
-
} }, h("div", { key: '
|
|
123
|
+
} }, h("div", { key: '4e310a0756b71e6a58901e6bb1f1a1259dc1851b', class: "overlay", ref: (el) => (this.overlayEl = el) }), h("div", { key: 'a0cf9655750143e753ecc06a75680bbad97caa37', class: "sr-only", tabIndex: 0, onFocus: () => {
|
|
124
124
|
this.focusFirstElement.emit();
|
|
125
125
|
} })));
|
|
126
126
|
}
|
|
@@ -81,7 +81,7 @@ export class NavigationHamburger {
|
|
|
81
81
|
this.wmNavigationHamburgerClicked.emit();
|
|
82
82
|
}
|
|
83
83
|
render() {
|
|
84
|
-
return (h(Host, { key: '
|
|
84
|
+
return (h(Host, { key: '05c34939410bd6142120c1bd996bd5a3e2db8460', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { key: 'e253bc1658f8b1be8f8f7196f21497ab86a49f34', "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: '69374ba02fd7cc53d2ed3b90ef1f67b99b519766', class: "svg-icon svg-menu" }))));
|
|
85
85
|
}
|
|
86
86
|
static get is() { return "wm-navigation-hamburger"; }
|
|
87
87
|
static get encapsulation() { return "shadow"; }
|
|
@@ -47,7 +47,7 @@ import { h, Host } from "@stencil/core";
|
|
|
47
47
|
*/
|
|
48
48
|
export class NavigationItem {
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '383207b6224b490fde90cda642f5212967adf66e', role: "listitem" }, h("a", { key: '3fc134d431e35710fdfd34937658172d462eefc9', class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { key: '7b1ff7f52eceb305d4f5299db0b333f971e52579', class: "icon", "aria-hidden": "true" }, h("slot", { key: '1f98b5c1c61233c5b5ea6d392aa711c0c4a4974a' })), h("div", { key: '65f51aaf12296e479decf9ef18a579be31b0c552', class: "text" }, this.text))));
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "wm-navigation-item"; }
|
|
53
53
|
static get encapsulation() { return "shadow"; }
|
|
@@ -242,9 +242,9 @@ export class Navigation {
|
|
|
242
242
|
} }));
|
|
243
243
|
}
|
|
244
244
|
render() {
|
|
245
|
-
return (h(Host, { key: '
|
|
245
|
+
return (h(Host, { key: '88184793ed2434651265c18f7d813663d4a5b43e', role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { key: 'f37b89b12f4bbc3dabf48bbb2d1c5d3f2d3bfcff', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { key: '267647e94dfca2b6f42c884b2f0bbce3e9f21e24', class: "tray" }, h("div", { key: '3b0af4de5628f6ae0405036208b286c1e8c51012', class: "toggle-wrapper" }, h("wm-button", { key: 'c014baca43ba0c4f981d1fc15c39402fb83ea151', 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: () => {
|
|
246
246
|
this.open = !this.open;
|
|
247
|
-
} })), h("ul", { key: '
|
|
247
|
+
} })), h("ul", { key: '91eaa57e47ea5f7e5866c7d6b74616bfdfabf4dd', class: "navlist" }, h("slot", { key: '10571c5d330c6f9c607ce70240d6f48ad6e7a4f1' }))), this.isCollapsible && (h("div", { key: 'fb9a059ad6255c3b9180f718daa1fd4c8a95411a', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.toggleEl.focus() }))));
|
|
248
248
|
}
|
|
249
249
|
static get is() { return "wm-navigation"; }
|
|
250
250
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js
CHANGED
|
@@ -13,7 +13,7 @@ export class PrivNavigatorButton {
|
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
15
|
const { handleClick, altText } = this;
|
|
16
|
-
return (h("button", { key: '
|
|
16
|
+
return (h("button", { key: 'e94ea53c3c92950534b1c2bb50d1b7aaf4ee374e', "aria-expanded": this.expanded.toString(), class: "navigator", onClick: handleClick.bind(this), "aria-label": altText }));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "priv-navigator-button"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -20,7 +20,7 @@ export class PrivNavigatorItem {
|
|
|
20
20
|
render() {
|
|
21
21
|
const selectedClass = this.selected ? "selected" : "";
|
|
22
22
|
const focusedClass = this.focused ? "focused" : "";
|
|
23
|
-
return (h("div", { key: '
|
|
23
|
+
return (h("div", { key: 'ae1ff14218642ee2f851bcb8632ae5bbe8c353f7', class: `navoption ${selectedClass} ${focusedClass}` }, h("slot", { key: 'c40c892bf198745bcccde83a8988770fe53ead61' })));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "priv-navigator-item"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -304,7 +304,7 @@ export class Pagination {
|
|
|
304
304
|
render() {
|
|
305
305
|
return (
|
|
306
306
|
// do not render the component if there's only one page
|
|
307
|
-
this.totalItems > this.itemsPerPage && (h("nav", { key: '
|
|
307
|
+
this.totalItems > this.itemsPerPage && (h("nav", { key: '4afbaef0fabbc6ddf87e75952b8d70275bf8396c', "aria-label": `${this.label || this.defaultLabel}. ${this.getCurrentPagesInView()}. ${this.currentPageAnnouncement(this.currentPage)}` }, this.isLargeSize ? this.renderLarge() : this.renderSmall(), h("div", { key: 'a55642c58b7ca6e5089bf5ef43c9e2166b4c3097', id: "status", class: "sr-only", "aria-live": "polite", "aria-relevant": "text", "aria-atomic": "true" }, this.srAnnouncement))));
|
|
308
308
|
}
|
|
309
309
|
static get is() { return "wm-pagination"; }
|
|
310
310
|
static get encapsulation() { return "shadow"; }
|
|
@@ -331,10 +331,10 @@ export class Search {
|
|
|
331
331
|
* End search and find render helpers
|
|
332
332
|
*/
|
|
333
333
|
render() {
|
|
334
|
-
return (h(Host, { key: '
|
|
334
|
+
return (h(Host, { key: '50e57cb718442ce8b328b92806007e64fb2d1ffb' }, h("div", { key: '597266464fa8d48f5d1dc82233661ae3c87e50fd', id: "wm-search-wrapper", class: `wm-search-wrapper ${this.searchType}` }, h("input", { key: '096a2ce5dd3ecdd8ca84fc476ab861faa6eefe36', disabled: this.isDisabled, id: "wm-search-input", placeholder: this.placeholder, "aria-label": `${this.label ? this.label + ". " : ""}${intl.formatMessage({
|
|
335
335
|
id: "search.typeToFilterResults",
|
|
336
336
|
defaultMessage: "Type to filter the results",
|
|
337
|
-
})}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { key: '
|
|
337
|
+
})}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { key: '9ccf709b459941a4067da8b69debdb40e659449b', class: "svg-icon svg-search" }), this.searchType === "find" && this.renderResultsAndBrowseButtons(), h("div", { key: '880f8b8b8a8dbb588e2d3f81df7db65aa68cbabc', id: "wm-search-live", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.resultsLiveRegion = el) }, this.announcement)), this.searchType === "find" && this.renderJumpToLink()));
|
|
338
338
|
}
|
|
339
339
|
static get is() { return "wm-search"; }
|
|
340
340
|
static get encapsulation() { return "shadow"; }
|
|
@@ -239,11 +239,11 @@ export class Snackbar {
|
|
|
239
239
|
}, onKeyDown: (ev) => ev.key === "Enter" && this.snackLinkClicked(notification) }, h("span", { "aria-hidden": "true" }, notification.link), notification.newWindow && h("div", { class: "svg-icon svg-open-in-new" }))), (!notification.link && notification.action) && (h("button", { id: `action-${notification.id}`, class: "link", onClick: () => this.snackLinkClicked(notification), onKeyDown: (ev) => ev.key === "Enter" && this.snackLinkClicked(notification) }, notification.action))), h("button", { id: `close-button-${notification.id}`, "aria-label": this.closeSnackMessage, class: "closesnack", tabindex: notification.link || notification.action ? 0 : -1, onClick: () => this.snackDismissed(notification), onMouseEnter: (ev) => showTooltip("bottom", ev.target, globalMessages.close), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.isTabbing && showTooltip("bottom", ev.target, globalMessages.close), onBlur: () => hideTooltip() }, h("div", { class: "svg-icon svg-close" }))), h("div", { class: "sr-only", tabindex: notification.link || notification.action ? 0 : -1, onFocus: () => (notification.link || notification.action) && this.snackDismissed(notification) })))));
|
|
240
240
|
}
|
|
241
241
|
render() {
|
|
242
|
-
return (h(Host, { key: '
|
|
242
|
+
return (h(Host, { key: '0f0c3c47e0c9be8b13680fdb67d9b9e26100acda' }, h("div", { key: '99fe2b4a7be787a54462dd7646d249181f54f3b2', ref: (el) => (this.snackAreaEl = el), class: {
|
|
243
243
|
"list-wrapper": true,
|
|
244
244
|
"user-is-tabbing": this.isTabbing,
|
|
245
245
|
empty: this.parsedNotifications.length == 0,
|
|
246
|
-
} }, this.renderSnackbars()), h("div", { key: '
|
|
246
|
+
} }, this.renderSnackbars()), h("div", { key: '91f99c2ddfc28ea834d256ff215d641e8a660afe', class: "sr-only", "aria-live": "polite", "aria-atomic": "false", id: `wm-live-region-${this.uid}`, ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
247
247
|
}
|
|
248
248
|
static get is() { return "wm-snackbar"; }
|
|
249
249
|
static get encapsulation() { return "shadow"; }
|
|
@@ -67,9 +67,9 @@ export class TabItem {
|
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
69
|
const isDark = this.parentTabList && this.parentTabList.customBackground == "dark";
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: 'af15ab2697feb9781a2cec31aeebd390bdf238d2', role: "presentation" }, h("li", { key: '40562a1cb2e22c12149d31c35a1d250fb4514b21', class: `tab-item ${isDark ? "dark" : ""}`, role: "presentation" }, h("a", { key: '6df1a904ce47240afb5aaae879c3534999bc1fbc', class: `tab`, role: "tab", ref: (el) => (this.linkEl = el), id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1, onClick: this.tabClicked, onFocus: () => {
|
|
71
71
|
this.wmIntTabFocused.emit({ tabItem: this.el });
|
|
72
|
-
} }, h("slot", { key: '
|
|
72
|
+
} }, h("slot", { key: '311cc30fa8652f0f3efd6ca2f7d052c8e97e1f70' })))));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "wm-tab-item"; }
|
|
75
75
|
static get encapsulation() { return "shadow"; }
|
|
@@ -350,15 +350,15 @@ export class TabList {
|
|
|
350
350
|
this.announcement = message;
|
|
351
351
|
}
|
|
352
352
|
render() {
|
|
353
|
-
return (h(Host, { key: '
|
|
353
|
+
return (h(Host, { key: '928ac68e33e7dc7366827861fb292718fb073073' }, h("div", { key: '0332308afe93eba6c98f83409dfa71b37e85dc86', class: "component-wrapper" }, h("wm-button", { key: '4e94b265632eae80cec8523ee53519db98673582', class: `left-arrow ${this.scrollArrowsVisible ? "visible" : ""}`, "aria-controls": "tablist", customBackground: this.customBackground, buttonType: "navigational", icon: "#previous", tooltip: intl.formatMessage({
|
|
354
354
|
id: "tabs.showPreviousTabs",
|
|
355
355
|
defaultMessage: "Show previous tabs",
|
|
356
356
|
description: "Tooltip for button scrolling tab group.",
|
|
357
|
-
}), onClick: (ev) => this.handleLeftArrowClick(ev) }), h("ul", { key: '
|
|
357
|
+
}), onClick: (ev) => this.handleLeftArrowClick(ev) }), h("ul", { key: 'ec5a691bed6e619702ba3717d72bb4af2293ca08', id: "tablist", ref: (el) => (this.tabContainerEl = el), class: `tabcontainer ${this.customBackground || ""} ${this.containerFadeLeft ? "fade-left" : ""} ${this.containerFadeRight ? "fade-right" : ""}`, role: "tablist", tabIndex: -1 }, h("slot", { key: '60760c69b079e39b8b21b9cb8a60b741cc68f5f9' })), h("wm-button", { key: 'e0bd33b5df7bb1788e8e2cccbdd558edd79c72e4', class: `right-arrow ${this.scrollArrowsVisible ? "visible" : ""}`, "aria-controls": "tablist", customBackground: this.customBackground, buttonType: "navigational", icon: "#next", tooltip: intl.formatMessage({
|
|
358
358
|
id: "tabs.showNextTabs",
|
|
359
359
|
defaultMessage: "Show next tabs",
|
|
360
360
|
description: "Tooltip for button scrolling tab group.",
|
|
361
|
-
}), onClick: (ev) => this.handleRightArrowClick(ev) }), h("span", { key: '
|
|
361
|
+
}), onClick: (ev) => this.handleRightArrowClick(ev) }), h("span", { key: '834d5a7f3cf4b552fea1394a4111730f39f9e4e2', "aria-live": "assertive", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
362
362
|
}
|
|
363
363
|
static get is() { return "wm-tab-list"; }
|
|
364
364
|
static get encapsulation() { return "shadow"; }
|
|
@@ -47,7 +47,7 @@ export class TabPanel {
|
|
|
47
47
|
this.tabPanelLoaded.emit({ tabId: this.tabId });
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return h(Host, { key: '
|
|
50
|
+
return h(Host, { key: 'eaea007fdcc009b91c81d4b0d00e74e909b71f24', role: "tabpanel", tabIndex: "-1", class: { "tab-hidden": !this.active } });
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "wm-tab-panel"; }
|
|
53
53
|
static get originalStyleUrls() {
|
|
@@ -1118,10 +1118,10 @@ export class TagInput {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
1120
|
render() {
|
|
1121
|
-
return (h("div", { key: '
|
|
1121
|
+
return (h("div", { key: '0167a52545ae41fa12d9eea6322ee851560c8ec2', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '68053c9c92acc1898eb3f366be84f1975aff1e1f', class: "label-wrapper" }, h("label", { key: 'f379f5b7b0f1bd8a96d82fe58b33cd6292bad813', class: "label", htmlFor: "input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '60230c0e2cd7a1418450ff18c9721ffa6802a742', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '70c86e152690ef41f31999f8da647c72020398b4', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { key: 'c93f5bb99a818b58118fea853e14a0f12a581fad', class: "upper-row" }, h("div", { key: '311587b73133fd689583cf553a6766847a33e5b1', class: "svg-icon svg-search" }), h("div", { key: '8170d939a61a06d58c892c9727ad522d8a8961fb', class: `tags-and-input-wrapper` }, h("ul", { key: '519de11c51fcaa1db5d0cd650adeff190999ea3d', ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-labelledby": "sr-instructions", tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
|
|
1122
1122
|
this.focusedTagIndex = undefined;
|
|
1123
1123
|
this.handleBlur(ev);
|
|
1124
|
-
}, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("div", { key: '
|
|
1124
|
+
}, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("div", { key: 'bf5848a2e0c64b2686ce36ebf57e7d252fa09a8e', class: "sr-only", id: "sr-instructions" }, this.label, ". ", this.tagAreaInstructions), this.isDropdown && this.renderDropdownInput(), this.isTable && this.renderTableInput()), this.isDropdown && (h("div", { key: 'e67ade3dcf023d0536845e335baff752989c0b4f', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { key: 'd07613c6be4118acbfe7760681986a0c6a5447a4', id: "info", class: "info-text" }, this.info)), h("div", { key: '298f7cec7bc58f0c0cb9fa0e3b96025676277e89', id: "error" }, this.errorMessage), h("div", { key: '2c727320987caf8cbe6290752a9d27fad277276c', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
|
|
1125
1125
|
}
|
|
1126
1126
|
static get is() { return "wm-tag-input"; }
|
|
1127
1127
|
static get encapsulation() { return "shadow"; }
|
|
@@ -142,7 +142,7 @@ export class Textarea {
|
|
|
142
142
|
this.announcement = message;
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
|
-
return (h("div", { key: '
|
|
145
|
+
return (h("div", { key: 'b5d978a6b24378069cf512d35d71ebbb9e6b81b0', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '7ccb4664c7ae0f207e8e35fc09379bdca3140c95', class: "label-wrapper" }, h("label", { key: 'd1d4eebbed82e7cff1bb5b63c2f8064cfdf63422', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '7b96f691b9ee85f4c927e062e999837212b3e5fb', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.labelPosition !== "none" && this.requiredField && (h("span", { key: 'aff0d09821e737e68067eca775fbac996992e6a7', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: 'bc991db1f74435efe06dd8082d4e7f0b00599768', class: "inner-wrapper" }, h("div", { key: '1326ceaac01235330f08dee4a1b8a44800809ac3', class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { key: '4470eb6bf23f8adbc0d37bfce754f5557ff9de3a', 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: 'e42d7dcc9fb25d36b27d63f3f8417197a615b96d', id: "info", class: "info" }, this.info)), h("div", { key: 'b47a1f979362df5abbab9d68e6287730a24fe244', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '3b2705a7eafe5bba4fd8bade8d17d15c394702b7', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
146
146
|
}
|
|
147
147
|
static get is() { return "wm-textarea"; }
|
|
148
148
|
static get encapsulation() { return "shadow"; }
|
|
@@ -410,13 +410,13 @@ export class Timepicker {
|
|
|
410
410
|
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))));
|
|
411
411
|
}
|
|
412
412
|
render() {
|
|
413
|
-
return (h(Host, { key: '
|
|
413
|
+
return (h(Host, { key: 'c7416008a2b74ce5cbe39715b88aea8bcd719da8', onBlur: () => this.close(false) }, h("div", { key: '25507a9130e2dc8637342709f1e6b57dc3e28d0a', class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { key: '44def4907601a6ef8ad909c21edaf764a8ce0d72', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: '14b59b7983425c4e8b8b51831dfe98e3db94fa0e', id: "label", class: "label", htmlFor: "time-input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label)), this.labelPosition !== "none" && this.requiredField && (h("div", { key: 'de2b38b8d703f14192cff29f1cd548e76fce193d', "aria-hidden": "true", class: "required" }, "*"))), h("div", { key: 'fceb670c0d1f46138d341a823062c9833053488e' }, h("div", { key: '3f695b6a8e38ec22b5204fd1389a3f9c4bc96148', class: "inner-wrapper" }, h("input", { key: '71a0e829110bc6b3c64e902adea49f2c60876e95', 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: 'cc227a7033f6f76d112c8fb9f9eaf06f69118e48', 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()),
|
|
414
414
|
// This addresses an issue in Safari, where clicking buttons does not focus them
|
|
415
415
|
// if the button does not receive focus when clicked, Timepicker incorrectly emits a blur event
|
|
416
416
|
onMouseDown: (ev) => {
|
|
417
417
|
ev.preventDefault();
|
|
418
418
|
this.buttonEl.focus();
|
|
419
|
-
} }, h("span", { key: '
|
|
419
|
+
} }, h("span", { key: '7046bb3fbe7c7731357f4dd50ff018458bbe7247', class: "svg-icon svg-time" })), h("ul", { key: '4cad61e9145cb861a2cfe1831b5be0addc76729d', 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: '3f46ccf9f491685645e0fcfbca62d0d0c581378c', id: "error", class: "error" }, this.errorMessage)), h("div", { key: '72f309c6674c965d61b05955bfa5510f9e52fc05', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
|
|
420
420
|
}
|
|
421
421
|
static get is() { return "wm-timepicker"; }
|
|
422
422
|
static get encapsulation() { return "shadow"; }
|
|
@@ -291,11 +291,11 @@ export class Toggletip {
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
render() {
|
|
294
|
-
return (h(Host, { key: '
|
|
294
|
+
return (h(Host, { key: '7d5804fa5b97d56353a8cc684df29b58ba31914e', class: `size-${this.targetSize}` }, h("button", { key: '9e7904bca9387d59e288231b9a2cdc1b801f7e3e', ref: (el) => (this.buttonEl = el), class: "button", type: "button", "aria-label": this.label, popoverTarget: "toggletip", popoverTargetAction: "toggle", onClick: () => !this.isOpen && this.open(),
|
|
295
295
|
// In order to position the tooltip identically to the toggletip, its presence is determined by these four events
|
|
296
|
-
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: '
|
|
296
|
+
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: 'd0199b0878d4ac5c352348f66df8270357b5172b', popover: "", ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.targetSize} ${this.isHidden ? "hidden" : ""}`, id: "toggletip",
|
|
297
297
|
// @ts-ignore - despite what Typescript says, this is a valid event for popover elements
|
|
298
|
-
onToggle: (ev) => this.handlePopoverToggle(ev) }, this.tooltip), h("div", { key: '
|
|
298
|
+
onToggle: (ev) => this.handlePopoverToggle(ev) }, this.tooltip), h("div", { key: 'b7f2bbe046db18d9274117005414ba67c85bc0d4', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
|
|
299
299
|
}
|
|
300
300
|
static get is() { return "wm-toggletip"; }
|
|
301
301
|
static get encapsulation() { return "shadow"; }
|
|
@@ -413,9 +413,9 @@ export class Uploader {
|
|
|
413
413
|
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")))));
|
|
414
414
|
}
|
|
415
415
|
render() {
|
|
416
|
-
return (h(Host, { key: '
|
|
416
|
+
return (h(Host, { key: 'e945ea71838e42987ea6da7ced301348b2581346', class: `-${this.dropArea}` }, this.uploaderType == "drop" && this.renderDropArea(), this.label && this.renderLabel(), this.renderHeader(), this.renderListContainer(), h("div", { key: '98dffa1b478372df347177973888a95bd774a85d', 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
|
|
417
417
|
,
|
|
418
|
-
"aria-atomic": "true" }), h("div", { key: '
|
|
418
|
+
"aria-atomic": "true" }), h("div", { key: '991eb30875a90140f1fad4c8cc4b33bdf4c5ffaa', ref: (el) => (this.politeLiveRegionEl = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" })));
|
|
419
419
|
}
|
|
420
420
|
static get is() { return "wm-uploader"; }
|
|
421
421
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,47 @@
|
|
|
1
1
|
document.querySelectorAll("wm-date-range").forEach((dateRange) => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
// this is flexible to test for many types of date formats, but this is typically uniform across instances
|
|
3
|
+
const dateFormat = dateRange.getAttribute("date-format");
|
|
4
|
+
const dateFormatUnit =
|
|
5
|
+
dateFormat === "MM/DD/YYYY" || dateFormat === null ? "US" : dateFormat === "DD/MM/YYYY" ? "INT" : "ISO";
|
|
6
|
+
|
|
7
|
+
const updateErrorMessage = (message) => {
|
|
8
|
+
dateRange.errorMessage = dateRange.invalidStart || dateRange.invalidEnd ? message || dateRange.errorMessage : "";
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const validate = async (field) => {
|
|
12
|
+
const value = field === "start" ? dateRange.valueStart : dateRange.valueEnd;
|
|
13
|
+
const invalidProp = field === "start" ? "invalidStart" : "invalidEnd";
|
|
14
|
+
let message = "";
|
|
15
|
+
|
|
16
|
+
if (!value) {
|
|
17
|
+
dateRange[invalidProp] = dateRange.requiredField;
|
|
18
|
+
message = "A date is required";
|
|
19
|
+
} else {
|
|
20
|
+
const isoDate = await dateRange.reformatDate(dateFormatUnit, "ISO", value);
|
|
21
|
+
if (await dateRange.isValidISO(isoDate)) {
|
|
22
|
+
// if valid date, clean up formatting and set properties
|
|
23
|
+
const displayDate = await dateRange.reformatDate("ISO", dateFormatUnit, isoDate);
|
|
24
|
+
if (field === "start") dateRange.valueStart = displayDate;
|
|
25
|
+
else dateRange.valueEnd = displayDate;
|
|
26
|
+
dateRange[invalidProp] = false;
|
|
27
|
+
} else {
|
|
28
|
+
// if invalid date, leave value and display error
|
|
29
|
+
dateRange[invalidProp] = true;
|
|
30
|
+
message = `Please enter a valid date in the format ${dateFormat ? dateFormat : "MM/DD/YYYY"}`;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
updateErrorMessage(message);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
dateRange.addEventListener("wmStartInputBlur", () => validate("start"));
|
|
37
|
+
dateRange.addEventListener("wmEndInputBlur", () => validate("end"));
|
|
38
|
+
|
|
39
|
+
dateRange.addEventListener("wmRangeSelection", async (ev) => {
|
|
40
|
+
dateRange.valueStart = await dateRange.reformatDate("ISO", dateFormatUnit, ev.detail.startDate.iso);
|
|
41
|
+
dateRange.valueEnd = await dateRange.reformatDate("ISO", dateFormatUnit, ev.detail.endDate.iso);
|
|
42
|
+
dateRange.invalidStart = false;
|
|
43
|
+
dateRange.invalidEnd = false;
|
|
44
|
+
dateRange.errorMessage = "";
|
|
5
45
|
});
|
|
6
46
|
});
|
|
7
47
|
|