@watermarkinsights/ripple 5.16.0-alpha.3 → 5.16.0-alpha.6
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-33d2ef03.js → app-globals-9c7ce1fb.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 +2 -2
- package/dist/cjs/wm-button.cjs.entry.js +1 -1
- package/dist/cjs/wm-date-range.cjs.entry.js +1 -1
- package/dist/cjs/wm-datepicker.cjs.entry.js +12 -6
- 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 +8 -2
- 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-nested-select.cjs.entry.js +10 -4
- package/dist/cjs/wm-option_2.cjs.entry.js +9 -3
- 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 +3 -3
- package/dist/cjs/wm-tag-input.cjs.entry.js +26 -24
- package/dist/cjs/wm-textarea.cjs.entry.js +8 -2
- package/dist/cjs/wm-timepicker.cjs.entry.js +9 -3
- package/dist/cjs/wm-toggletip.cjs.entry.js +2 -2
- package/dist/cjs/wm-uploader.cjs.entry.js +4 -4
- package/dist/collection/components/datepickers/datepicker.css +15 -9
- package/dist/collection/components/datepickers/wm-datepicker.js +12 -6
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +15 -9
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +10 -4
- package/dist/collection/components/selects/wm-select/wm-select.css +15 -9
- package/dist/collection/components/selects/wm-select/wm-select.js +9 -3
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +1 -1
- 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.css +15 -9
- package/dist/collection/components/wm-input/wm-input.js +8 -2
- 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 +1 -1
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +1 -1
- 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.css +15 -9
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +25 -23
- package/dist/collection/components/wm-textarea/wm-textarea.css +15 -9
- package/dist/collection/components/wm-textarea/wm-textarea.js +8 -2
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +15 -9
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +9 -3
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +2 -2
- package/dist/collection/components/wm-uploader/wm-uploader.css +15 -9
- package/dist/collection/components/wm-uploader/wm-uploader.js +3 -3
- package/dist/esm/{app-globals-80e46a64.js → app-globals-e4bb1a1f.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 +2 -2
- package/dist/esm/wm-button.entry.js +1 -1
- package/dist/esm/wm-date-range.entry.js +1 -1
- package/dist/esm/wm-datepicker.entry.js +13 -7
- 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 +9 -3
- 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-nested-select.entry.js +11 -5
- package/dist/esm/wm-option_2.entry.js +10 -4
- 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 +3 -3
- package/dist/esm/wm-tag-input.entry.js +26 -24
- package/dist/esm/wm-textarea.entry.js +9 -3
- package/dist/esm/wm-timepicker.entry.js +10 -4
- package/dist/esm/wm-toggletip.entry.js +2 -2
- package/dist/esm/wm-uploader.entry.js +4 -4
- package/dist/esm-es5/{app-globals-80e46a64.js → app-globals-e4bb1a1f.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-date-range.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.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-nested-select.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-0bb576c5.system.entry.js → p-0af5c1e8.system.entry.js} +1 -1
- package/dist/ripple/{p-2f7ca1a7.system.entry.js → p-0f9592c5.system.entry.js} +1 -1
- package/dist/ripple/{p-ca144e6d.system.entry.js → p-14751332.system.entry.js} +1 -1
- package/dist/ripple/{p-bd48c50a.entry.js → p-176dd9b5.entry.js} +1 -1
- package/dist/ripple/{p-8ec2e944.system.entry.js → p-17d94094.system.entry.js} +1 -1
- package/dist/ripple/{p-c699aec8.system.entry.js → p-198f0ef2.system.entry.js} +1 -1
- package/dist/ripple/{p-22b55b6f.entry.js → p-1e92012c.entry.js} +1 -1
- package/dist/ripple/{p-bc4976e6.entry.js → p-1f5856ac.system.entry.js} +1 -1
- package/dist/ripple/{p-b34552b0.system.entry.js → p-2adde5b2.system.entry.js} +1 -1
- package/dist/ripple/{p-f9fa1506.system.entry.js → p-324aed64.system.entry.js} +1 -1
- package/dist/ripple/{p-b01f9572.system.entry.js → p-34808b52.system.entry.js} +1 -1
- package/dist/ripple/{p-8f987f71.entry.js → p-44a95d6d.entry.js} +1 -1
- package/dist/ripple/p-46c36aa8.system.entry.js +1 -0
- package/dist/ripple/p-47ba4aa8.system.entry.js +1 -0
- package/dist/ripple/{p-b39ab477.entry.js → p-4e01d719.entry.js} +1 -1
- package/dist/ripple/{p-fe93b6b9.system.entry.js → p-5a5d5833.system.entry.js} +1 -1
- package/dist/ripple/{p-6a082957.entry.js → p-5b56e874.entry.js} +1 -1
- package/dist/ripple/{p-8a569d3b.entry.js → p-62ed69c0.entry.js} +1 -1
- package/dist/ripple/p-64616362.system.entry.js +1 -0
- package/dist/ripple/{p-36fd8aed.system.entry.js → p-67ba6533.system.entry.js} +1 -1
- package/dist/ripple/{p-97ffaa7d.entry.js → p-6b4e1fe9.entry.js} +1 -1
- package/dist/ripple/{p-c4896784.system.entry.js → p-7300282d.system.entry.js} +1 -1
- package/dist/ripple/{p-4a29bb8c.entry.js → p-731f5721.entry.js} +1 -1
- package/dist/ripple/p-764a08fb.entry.js +1 -0
- package/dist/ripple/{p-9328023c.entry.js → p-76aef56f.entry.js} +1 -1
- package/dist/ripple/{p-19785c62.entry.js → p-76d7a58b.entry.js} +1 -1
- package/dist/ripple/{p-f8995a5e.system.entry.js → p-7b6cd418.system.entry.js} +1 -1
- package/dist/ripple/{p-b4e74991.system.js → p-86066976.system.js} +1 -1
- package/dist/ripple/{p-30236be3.system.entry.js → p-86ac8ff7.system.entry.js} +1 -1
- package/dist/ripple/{p-4fb4deb9.entry.js → p-8c33cb29.entry.js} +1 -1
- package/dist/ripple/{p-94f776eb.entry.js → p-9672ada1.entry.js} +1 -1
- package/dist/ripple/{p-2823d02b.system.entry.js → p-9ea37550.system.entry.js} +1 -1
- package/dist/ripple/{p-61f9987d.system.entry.js → p-ad0fcb42.system.entry.js} +1 -1
- package/dist/ripple/{p-e4e33184.js → p-ad908c29.js} +1 -1
- package/dist/ripple/{p-72ed488e.system.entry.js → p-b00c4904.system.entry.js} +1 -1
- package/dist/ripple/{p-5ef786db.system.entry.js → p-ba4f9ec6.system.entry.js} +1 -1
- package/dist/ripple/p-c02c1b9c.entry.js +1 -0
- package/dist/ripple/{p-57c25b63.entry.js → p-c2e1f0bb.entry.js} +1 -1
- package/dist/ripple/p-c6b8cf27.entry.js +1 -0
- package/dist/ripple/{p-83face7a.system.js → p-cd1e47e2.system.js} +1 -1
- package/dist/ripple/{p-091fbc50.system.entry.js → p-ce1cffe9.system.entry.js} +1 -1
- package/dist/ripple/{p-0189929d.entry.js → p-cfdb8451.entry.js} +1 -1
- package/dist/ripple/{p-74f103dd.entry.js → p-d1f3e879.entry.js} +1 -1
- package/dist/ripple/p-d67c99d9.entry.js +1 -0
- package/dist/ripple/{p-59591401.entry.js → p-d725d3cb.entry.js} +1 -1
- package/dist/ripple/p-d81beb53.entry.js +1 -0
- package/dist/ripple/{p-a5fb4171.system.entry.js → p-da2d993b.entry.js} +1 -1
- package/dist/ripple/{p-9b2281e2.system.entry.js → p-e1fe79f3.system.entry.js} +1 -1
- package/dist/ripple/{p-c7d71181.system.entry.js → p-ec3db1e4.system.entry.js} +1 -1
- package/dist/ripple/{p-30201dc9.entry.js → p-f6f07b48.entry.js} +1 -1
- package/dist/ripple/p-ffb5b71e.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/datepickers/wm-datepicker.d.ts +1 -0
- package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +1 -0
- package/dist/types/components/selects/wm-select/wm-select.d.ts +1 -0
- package/dist/types/components/wm-input/wm-input.d.ts +1 -0
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +1 -0
- package/dist/types/components/wm-textarea/wm-textarea.d.ts +1 -0
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +1 -0
- package/package.json +2 -2
- package/dist/ripple/p-0c89b82c.entry.js +0 -1
- package/dist/ripple/p-144ce232.entry.js +0 -1
- package/dist/ripple/p-1497ccfc.entry.js +0 -1
- package/dist/ripple/p-257d2d5c.entry.js +0 -1
- package/dist/ripple/p-36d2b888.entry.js +0 -1
- package/dist/ripple/p-492aa9fe.system.entry.js +0 -1
- package/dist/ripple/p-56d54fe6.system.entry.js +0 -1
- package/dist/ripple/p-5cff41e0.entry.js +0 -1
- package/dist/ripple/p-6d12cfb7.system.entry.js +0 -1
|
@@ -27,7 +27,7 @@ export class ModalPssFooter {
|
|
|
27
27
|
parentModal.emitSecondaryEvent();
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (h("div", { key: '
|
|
30
|
+
return (h("div", { key: '1f7745220c7ad6d0aca3efd4b3cb8c334e680127', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '88168cdc61009781665a8a9edf365fa67907a770', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '2f2314c0cb6160b86e3ce361fd3a8536e06ad154', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '8cd98e5c43a01e42c38c54f8f9421cd20db4f34a', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.secondaryText)), h("wm-button", { key: '3b30db05b3a1101b6865b5986452c284f16733ef', "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))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "wm-modal-pss-footer"; }
|
|
33
33
|
static get originalStyleUrls() {
|
|
@@ -25,7 +25,7 @@ export class ModalPssHeader {
|
|
|
25
25
|
// this.headingElement.focus();
|
|
26
26
|
// }
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '6298c005e1a4cc648e1311138858845bb121729d' }, h("div", { key: 'af42c86d168c9c5e2e77c39816f74f8801b39e53', class: "wm-wrapper" }, h("div", { key: '23e83cea157490d8db35b6f5b94e4aec59adccef' }, h("h2", { key: 'a2c95748bc7296ba241a1e0c6a6db7316d8c20de', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '0aefd7af87247f19ee926ef097f4ea8f76d49faf', class: "subtitle" }, this.subheading))), h("wm-button", { key: '1a74cb3f9beb7f01a60ae686ac01659a1d8ca23c', "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() }))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "wm-modal-pss-header"; }
|
|
31
31
|
static get originalStyleUrls() {
|
|
@@ -112,9 +112,9 @@ export class ModalPss {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
render() {
|
|
115
|
-
return (h(Host, { key: '
|
|
115
|
+
return (h(Host, { key: 'bcd5fb7bf017cb1a5263e51a105fab47cb268bdf', 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: () => {
|
|
116
116
|
this.focusLastElement.emit();
|
|
117
|
-
} }, h("div", { key: '
|
|
117
|
+
} }, h("div", { key: '2398829034757b569a1f4f754ba46697f72b70e0', class: "overlay", ref: (el) => (this.overlayEl = el) }), h("div", { key: '06975360afd821c91ab816a2585f89f3c9b36565', class: "sr-only", tabIndex: 0, onFocus: () => {
|
|
118
118
|
this.focusFirstElement.emit();
|
|
119
119
|
} })));
|
|
120
120
|
}
|
|
@@ -34,7 +34,7 @@ export class NavigationHamburger {
|
|
|
34
34
|
this.wmNavigationHamburgerClicked.emit();
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: '2b4f6528c7ef852581d56121e8269a12129c8c1a', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { key: 'aa6041f59f4333b6ee68da53bfc7206d2733f059', "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: '6b58e7ef3f124ba2fc33437e183a9e60844a8cdc', class: "svg-icon svg-menu" }))));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "wm-navigation-hamburger"; }
|
|
40
40
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,7 +6,7 @@ export class NavigationItem {
|
|
|
6
6
|
this.active = undefined;
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: 'fa0d860cef87f2af8b3c8ed67b37a2eafd4229c9', role: "listitem" }, h("a", { key: '192898896ee4310c0fb741d8bf5ebe27e57ab8b3', class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { key: 'b0df43e4aaa9786b2d8e57fbeb766eb5cf348336', class: "icon", "aria-hidden": "true" }, h("slot", { key: 'dd4b646b3b48155163c8816344f3c947eb58403a' })), h("div", { key: 'a195cc9d6dc724553a9240896cddcfadceb7424c', class: "text" }, this.text))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "wm-navigation-item"; }
|
|
12
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -96,9 +96,9 @@ export class Navigation {
|
|
|
96
96
|
} }));
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
|
-
return (h(Host, { key: '
|
|
99
|
+
return (h(Host, { key: '4f3c6aaf5ad09e2274456a581f3cb5f1600eaac7', role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { key: '8bf94a53146229835eaec0aaf98e951b43ac799b', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { key: 'f76c5e0e70f98a4e5fa29e49509c879bac0292bf', class: "tray" }, h("div", { key: 'cfdfd3274efc3b99b0537ea7ca9bffa4f87d7b59', class: "toggle-wrapper" }, h("wm-button", { key: '96b6aa456c319bfa77d2180209c1175647404f5a', 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: () => {
|
|
100
100
|
this.open = !this.open;
|
|
101
|
-
} })), h("ul", { key: '
|
|
101
|
+
} })), h("ul", { key: '342b7a1980f6d9d978405a8c5574ef45fca49ce4', class: "navlist" }, h("slot", { key: '33d14865bb6c4d9602769344916d7d88ecbfa661' }))), this.isCollapsible && (h("div", { key: '4d600f2eb2525ce3238dd09e102063d448ef8526', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.toggleEl.focus() }))));
|
|
102
102
|
}
|
|
103
103
|
static get is() { return "wm-navigation"; }
|
|
104
104
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js
CHANGED
|
@@ -9,7 +9,7 @@ export class PrivNavigatorButton {
|
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
11
|
const { handleClick, altText } = this;
|
|
12
|
-
return (h("button", { key: '
|
|
12
|
+
return (h("button", { key: '2f1ba167d864c88cbbd1f8f5f6192ba024fbb961', "aria-expanded": this.expanded.toString(), class: "navigator", onClick: handleClick.bind(this), "aria-label": altText }));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "priv-navigator-button"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,7 +16,7 @@ export class PrivNavigatorItem {
|
|
|
16
16
|
render() {
|
|
17
17
|
const selectedClass = this.selected ? "selected" : "";
|
|
18
18
|
const focusedClass = this.focused ? "focused" : "";
|
|
19
|
-
return (h("div", { key: '
|
|
19
|
+
return (h("div", { key: 'd79d559b7d56f0411ed7a2949c841df1975ed626', class: `navoption ${selectedClass} ${focusedClass}` }, h("slot", { key: '5004ab186708dca16f92e1b71bdd6c95d1080b7d' })));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "priv-navigator-item"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -203,7 +203,7 @@ export class Pagination {
|
|
|
203
203
|
render() {
|
|
204
204
|
return (
|
|
205
205
|
// do not render the component if there's only one page
|
|
206
|
-
this.totalItems > this.itemsPerPage && (h("nav", { key: '
|
|
206
|
+
this.totalItems > this.itemsPerPage && (h("nav", { key: '4915b3425f35f85d5684893fbc82e6d6a29b9d0f', "aria-label": `${this.navigationLabel} ${this.getCurrentPagesInView()}. ${this.currentPageAnnouncement(this.currentPage)}` }, this.isLargeSize ? this.renderLarge() : this.renderSmall(), h("div", { key: '56b83b74efa2372e03f27ea654c808a2bb86a85b', id: "status", class: "sr-only", "aria-live": "polite", "aria-relevant": "text", "aria-atomic": "true" }, this.srAnnouncement))));
|
|
207
207
|
}
|
|
208
208
|
static get is() { return "wm-pagination"; }
|
|
209
209
|
static get encapsulation() { return "shadow"; }
|
|
@@ -168,10 +168,10 @@ export class Search {
|
|
|
168
168
|
* End search and find render helpers
|
|
169
169
|
*/
|
|
170
170
|
render() {
|
|
171
|
-
return (h(Host, { key: '
|
|
171
|
+
return (h(Host, { key: 'cd7f595a342f69a27e507f9110b1bd67ca536b14' }, h("div", { key: '613883fa806fee9b523776e2c81abcc9c7c80eaf', id: "wm-search-wrapper", class: `wm-search-wrapper ${this.searchType}` }, h("input", { key: '5c944cc9756d6bba9396ef768c0d26cdd4fe7b88', disabled: this.isDisabled, id: "wm-search-input", placeholder: this.placeholder, "aria-label": `${this.label ? this.label + ". " : ""}${intl.formatMessage({
|
|
172
172
|
id: "search.typeToFilterResults",
|
|
173
173
|
defaultMessage: "Type to filter the results",
|
|
174
|
-
})}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { key: '
|
|
174
|
+
})}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { key: 'd6dd15a45a5e449a5b177263e369d5016ae81a4d', class: "svg-icon svg-search" }), this.searchType === "find" && this.renderResultsAndBrowseButtons(), h("div", { key: '4c3d42a0e159512713a54f99c403ca4a06549d06', 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()));
|
|
175
175
|
}
|
|
176
176
|
static get is() { return "wm-search"; }
|
|
177
177
|
static get encapsulation() { return "shadow"; }
|
|
@@ -162,11 +162,11 @@ export class Snackbar {
|
|
|
162
162
|
}, 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" })))), h("button", { id: `close-button-${notification.id}`, "aria-label": this.closeSnackMessage, class: "closesnack", tabindex: notification.link ? 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 ? 0 : -1, onFocus: () => notification.link && this.snackDismissed(notification) })))));
|
|
163
163
|
}
|
|
164
164
|
render() {
|
|
165
|
-
return (h(Host, { key: '
|
|
165
|
+
return (h(Host, { key: '9b55b8fa05817c3dd826b1318c3b7fdc35d65a51' }, h("div", { key: '8debb1dfc460b20abdc86238a5850e44949364cc', ref: (el) => (this.snackAreaEl = el), class: {
|
|
166
166
|
"list-wrapper": true,
|
|
167
167
|
"user-is-tabbing": this.isTabbing,
|
|
168
168
|
empty: this.parsedNotifications.length == 0,
|
|
169
|
-
} }, this.renderSnackbars()), h("div", { key: '
|
|
169
|
+
} }, this.renderSnackbars()), h("div", { key: 'bd51da7d83c448ea676f4f2530dd3ad8ac529c2f', class: "sr-only", "aria-live": "polite", "aria-atomic": "false", id: `wm-live-region-${this.uid}`, ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
170
170
|
}
|
|
171
171
|
static get is() { return "wm-snackbar"; }
|
|
172
172
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,7 +40,7 @@ export class TabItem {
|
|
|
40
40
|
"background-size": `calc(100% - ${bkgSize}${units}) 3px`,
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: 'bcfcc1fcb3cd91456ea38458f7eb26200f27dabb', role: "presentation" }, h("li", { key: '9ece015d01a832e52af9b520695cc303a674a22e', class: "tab-item", role: "presentation" }, h("a", { key: '8b43cebd1ff8a19aa81b23db7ce0265525f79a8a', class: `tab ${classes}`, style: styles, role: "tab", ref: (el) => (this.linkEl = el), onClick: this.tabClicked, id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1 }, h("slot", { key: 'b04fa980a8eaffd3ffb64258941e943e14343cfc' })))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "wm-tab-item"; }
|
|
46
46
|
static get encapsulation() { return "shadow"; }
|
|
@@ -160,7 +160,7 @@ export class TabList {
|
|
|
160
160
|
} }, t.textContent)));
|
|
161
161
|
}
|
|
162
162
|
render() {
|
|
163
|
-
return h(Host, { key: '
|
|
163
|
+
return h(Host, { key: 'd4a1e7380e109d5707d2215418d980a9fe319f40', class: this.menuLayout ? "menu" : "" }, this.renderMenuOrTabs());
|
|
164
164
|
}
|
|
165
165
|
static get is() { return "wm-tab-list"; }
|
|
166
166
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,7 +12,7 @@ export class TabPanel {
|
|
|
12
12
|
this.tabPanelLoaded.emit({ tabId: this.tabId });
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return h(Host, { key: '
|
|
15
|
+
return h(Host, { key: '760cc80a7e445fa0edae74157392fb49afb10fb0', role: "tabpanel", class: { "tab-hidden": !this.active } });
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "wm-tab-panel"; }
|
|
18
18
|
static get originalStyleUrls() {
|
|
@@ -895,21 +895,28 @@
|
|
|
895
895
|
flex-direction: column;
|
|
896
896
|
font-size: 0.875rem;
|
|
897
897
|
}
|
|
898
|
+
:host .wrapper .label-wrapper {
|
|
899
|
+
display: flex;
|
|
900
|
+
}
|
|
898
901
|
:host .wrapper .label {
|
|
899
|
-
display: block;
|
|
902
|
+
display: inline-block;
|
|
900
903
|
line-height: normal;
|
|
901
904
|
font-weight: 600;
|
|
902
905
|
white-space: nowrap;
|
|
906
|
+
overflow: hidden;
|
|
907
|
+
text-overflow: ellipsis;
|
|
903
908
|
margin-bottom: 0.25rem;
|
|
904
909
|
}
|
|
905
|
-
:host .wrapper .
|
|
910
|
+
:host .wrapper .required {
|
|
911
|
+
display: inline-block;
|
|
906
912
|
color: var(--wmcolor-text-required);
|
|
907
913
|
}
|
|
908
914
|
:host .wrapper.label-left {
|
|
909
915
|
flex-direction: row;
|
|
910
916
|
}
|
|
911
917
|
:host .wrapper.label-left .label-wrapper {
|
|
912
|
-
|
|
918
|
+
height: fit-content;
|
|
919
|
+
margin-right: 0.75rem;
|
|
913
920
|
}
|
|
914
921
|
:host .wrapper.label-left .label-wrapper .label {
|
|
915
922
|
display: flex;
|
|
@@ -917,7 +924,6 @@
|
|
|
917
924
|
min-height: 2.5rem;
|
|
918
925
|
white-space: normal;
|
|
919
926
|
margin-bottom: 0;
|
|
920
|
-
margin-right: 0.75rem;
|
|
921
927
|
}
|
|
922
928
|
:host .wrapper.label-none label {
|
|
923
929
|
position: absolute !important;
|
|
@@ -931,11 +937,11 @@
|
|
|
931
937
|
white-space: nowrap !important;
|
|
932
938
|
margin: -1px !important;
|
|
933
939
|
}
|
|
934
|
-
:host .wrapper.invalid .label {
|
|
940
|
+
:host .wrapper.invalid .label-wrapper {
|
|
935
941
|
color: var(--wmcolor-text-error);
|
|
936
942
|
position: relative;
|
|
937
943
|
}
|
|
938
|
-
:host .wrapper.invalid .label:after {
|
|
944
|
+
:host .wrapper.invalid .label-wrapper:after {
|
|
939
945
|
content: "";
|
|
940
946
|
display: block;
|
|
941
947
|
background-color: var(--icon-fill, currentColor);
|
|
@@ -944,14 +950,14 @@
|
|
|
944
950
|
-webkit-mask-size: 100%;
|
|
945
951
|
mask-size: 100%;
|
|
946
952
|
}
|
|
947
|
-
:host .wrapper.invalid .label:after {
|
|
953
|
+
:host .wrapper.invalid .label-wrapper:after {
|
|
948
954
|
-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z'/%3E%3C/svg%3E%0A");
|
|
949
955
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z'/%3E%3C/svg%3E%0A");
|
|
950
956
|
}
|
|
951
|
-
:host .wrapper.invalid .label:after {
|
|
957
|
+
:host .wrapper.invalid .label-wrapper:after {
|
|
952
958
|
display: inline-block;
|
|
953
959
|
margin-inline-start: 0.25rem;
|
|
954
|
-
|
|
960
|
+
align-self: center;
|
|
955
961
|
flex-shrink: 0;
|
|
956
962
|
transform: translateY(-1px);
|
|
957
963
|
}
|
|
@@ -459,6 +459,7 @@ export class TagInput {
|
|
|
459
459
|
case "Escape":
|
|
460
460
|
if (this.isDropdown && this.isExpanded) {
|
|
461
461
|
ev.preventDefault();
|
|
462
|
+
ev.stopPropagation();
|
|
462
463
|
this.closeDropdown();
|
|
463
464
|
}
|
|
464
465
|
break;
|
|
@@ -616,6 +617,12 @@ export class TagInput {
|
|
|
616
617
|
}
|
|
617
618
|
}
|
|
618
619
|
}
|
|
620
|
+
handleLabelMouseEnter(ev) {
|
|
621
|
+
const labelEl = ev.target;
|
|
622
|
+
if (labelEl.scrollWidth > labelEl.clientWidth) {
|
|
623
|
+
showTooltip("right", ev.target, this.label);
|
|
624
|
+
}
|
|
625
|
+
}
|
|
619
626
|
handleTagAreaFocus(ev) {
|
|
620
627
|
if (this.isDropdown) {
|
|
621
628
|
this.closeDropdown();
|
|
@@ -634,24 +641,17 @@ export class TagInput {
|
|
|
634
641
|
}
|
|
635
642
|
handleTableWrapperFocus() {
|
|
636
643
|
// Forward focus to first focusable table row when container receives focus
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
return; // Successfully handled focus
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
// Fallback: if we can't find any options or rows, keep focus on input
|
|
652
|
-
// This prevents focus from going to body
|
|
653
|
-
if (this.inputEl) {
|
|
654
|
-
this.inputEl.focus();
|
|
644
|
+
// First try filtered options, then fall back to all options
|
|
645
|
+
let targetOptions = this.filteredOptionEls;
|
|
646
|
+
if (targetOptions.length === 0) {
|
|
647
|
+
targetOptions = this.optionEls;
|
|
648
|
+
}
|
|
649
|
+
if (targetOptions.length > 0) {
|
|
650
|
+
const firstOption = targetOptions[0];
|
|
651
|
+
const firstRow = this.elFromTagOption(firstOption);
|
|
652
|
+
if (firstRow) {
|
|
653
|
+
this.focusOption(firstRow);
|
|
654
|
+
return;
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
}
|
|
@@ -680,6 +680,7 @@ export class TagInput {
|
|
|
680
680
|
break;
|
|
681
681
|
case "Escape":
|
|
682
682
|
ev.preventDefault();
|
|
683
|
+
ev.stopPropagation();
|
|
683
684
|
// Focus back to input as a safe fallback
|
|
684
685
|
if (this.inputEl) {
|
|
685
686
|
this.inputEl.focus();
|
|
@@ -847,8 +848,9 @@ export class TagInput {
|
|
|
847
848
|
// browsers will make this container tabbable if it scrolls
|
|
848
849
|
// this handler will forward focus to the appropriate element within the table...
|
|
849
850
|
onFocus: () => this.handleTableWrapperFocus(),
|
|
850
|
-
// ...and for consistency, the table, whether it scrolls or not, should
|
|
851
|
-
|
|
851
|
+
// ...and for consistency, the table, whether it scrolls or not, should be tabbable
|
|
852
|
+
// as long as it's not empty
|
|
853
|
+
tabindex: this.filteredOptionEls.length ? "0" : undefined, onKeyDown: (ev) => this.handleTableWrapperKeyDown(ev) }, h("table", { id: "table", role: "grid", class: `${this.colWidths ? "fixed-widths" : ""}`, "aria-label": this.label, "aria-multiselectable": "true" }, this.renderTableHeaders(), this.filteredOptionEls.length ? (this.filteredOptionEls.map((o) => this.renderTableRow(o))) : (h("div", { class: "no-results" }, this.noResultsMessage)))));
|
|
852
854
|
}
|
|
853
855
|
renderTableHeaders() {
|
|
854
856
|
return (h("tr", { class: "headers", role: "row" }, csvToArray(this.colHeaders).map((header, idx) => {
|
|
@@ -924,12 +926,12 @@ export class TagInput {
|
|
|
924
926
|
}
|
|
925
927
|
}
|
|
926
928
|
render() {
|
|
927
|
-
return (h("div", { key: '
|
|
929
|
+
return (h("div", { key: 'da4fae0604edc5cd9bc7724967b86d29f2022f98', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'e0a85a87c35585625ba0f6afcc5828a6da335f94', class: "label-wrapper" }, h("label", { key: '96b7f0453c064abaec364997778a1e09ce8d1d73', class: "label", htmlFor: "input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label), this.requiredField && (h("div", { key: '6c0fab88d092e7a8b4bba0c7422b8e8bb2abb0c3', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '92cb4eec063d59b7e00085f2fbeec71e1a5f101f', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { key: '50aedc08e2a887cab27eb6b1743e656dd266bff5', class: "upper-row" }, h("div", { key: '4c37ae703e3055e8d6c975ff482259f0fa8652f3', class: "svg-icon svg-search" }), h("div", { key: '8e2542afd89ad63091d0f114d159e9fbeb4b5168', class: `tags-and-input-wrapper ${this.inModal ? "in-modal" : ""}` }, h("ul", { key: '7d1923e7e26f7f0580f6db07a8c0bb9e0b91ddd2', 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-label": `${this.label} ${this.tagAreaInstructions}`, tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
|
|
928
930
|
this.focusedTagIndex = undefined;
|
|
929
931
|
this.handleBlur(ev);
|
|
930
|
-
}, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("input", { key: '
|
|
932
|
+
}, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("input", { key: '7e157fb49f0398fa7c04cb52d502b9c9fb49940b', id: "input", class: "input", role: "combobox", ref: (el) => (this.inputEl = el), autocomplete: "off", "aria-required": this.requiredField ? "true" : null, "aria-controls": this.tagInputType, "aria-describedby": `help-text${this.errorMessage ? " error " : ""} max-tags`, "aria-label": `${this.label} ${this.isDropdown ? globalMessages.getCharacterLimit(this.characterLimit) : ""}`, "aria-expanded": this.isDropdown ? this.isExpanded.toString() : null, "aria-activedescendant": this.inputActiveDescendantId, placeholder: this.placeholder, maxLength: this.isDropdown ? this.characterLimit : undefined, onInput: (ev) => this.handleInputChanged(ev), onBlur: (ev) => {
|
|
931
933
|
this.handleBlur(ev);
|
|
932
|
-
}, onFocus: () => this.handleInputFocus(), onKeyDown: (ev) => this.handleInputKeyDown(ev) })), this.isDropdown && (h("div", { key: '
|
|
934
|
+
}, onFocus: () => this.handleInputFocus(), onKeyDown: (ev) => this.handleInputKeyDown(ev) })), this.isDropdown && (h("div", { key: 'b1d9146b38bb147be3604654577ffae68bc1627b', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { key: '993aefd066e3d11ff106e6ee6e7da09c0a4ccafc', id: "info", class: "info-text" }, this.info)), h("div", { key: 'e962129e9720eea0f8c8b38236e1931ee1031a3d', id: "error" }, this.errorMessage), h("div", { key: '7cf6b126c7e38f5205562fb4326922903fef4081', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
|
|
933
935
|
}
|
|
934
936
|
static get is() { return "wm-tag-input"; }
|
|
935
937
|
static get encapsulation() { return "shadow"; }
|
|
@@ -869,21 +869,28 @@
|
|
|
869
869
|
flex-direction: column;
|
|
870
870
|
font-size: 0.875rem;
|
|
871
871
|
}
|
|
872
|
+
:host .wrapper .label-wrapper {
|
|
873
|
+
display: flex;
|
|
874
|
+
}
|
|
872
875
|
:host .wrapper .label {
|
|
873
|
-
display: block;
|
|
876
|
+
display: inline-block;
|
|
874
877
|
line-height: normal;
|
|
875
878
|
font-weight: 600;
|
|
876
879
|
white-space: nowrap;
|
|
880
|
+
overflow: hidden;
|
|
881
|
+
text-overflow: ellipsis;
|
|
877
882
|
margin-bottom: 0.25rem;
|
|
878
883
|
}
|
|
879
|
-
:host .wrapper .
|
|
884
|
+
:host .wrapper .required {
|
|
885
|
+
display: inline-block;
|
|
880
886
|
color: var(--wmcolor-text-required);
|
|
881
887
|
}
|
|
882
888
|
:host .wrapper.label-left {
|
|
883
889
|
flex-direction: row;
|
|
884
890
|
}
|
|
885
891
|
:host .wrapper.label-left .label-wrapper {
|
|
886
|
-
|
|
892
|
+
height: fit-content;
|
|
893
|
+
margin-right: 0.75rem;
|
|
887
894
|
}
|
|
888
895
|
:host .wrapper.label-left .label-wrapper .label {
|
|
889
896
|
display: flex;
|
|
@@ -891,7 +898,6 @@
|
|
|
891
898
|
min-height: 2.5rem;
|
|
892
899
|
white-space: normal;
|
|
893
900
|
margin-bottom: 0;
|
|
894
|
-
margin-right: 0.75rem;
|
|
895
901
|
}
|
|
896
902
|
:host .wrapper.label-none label {
|
|
897
903
|
position: absolute !important;
|
|
@@ -905,11 +911,11 @@
|
|
|
905
911
|
white-space: nowrap !important;
|
|
906
912
|
margin: -1px !important;
|
|
907
913
|
}
|
|
908
|
-
:host .wrapper.invalid .label {
|
|
914
|
+
:host .wrapper.invalid .label-wrapper {
|
|
909
915
|
color: var(--wmcolor-text-error);
|
|
910
916
|
position: relative;
|
|
911
917
|
}
|
|
912
|
-
:host .wrapper.invalid .label:after {
|
|
918
|
+
:host .wrapper.invalid .label-wrapper:after {
|
|
913
919
|
content: "";
|
|
914
920
|
display: block;
|
|
915
921
|
background-color: var(--icon-fill, currentColor);
|
|
@@ -918,14 +924,14 @@
|
|
|
918
924
|
-webkit-mask-size: 100%;
|
|
919
925
|
mask-size: 100%;
|
|
920
926
|
}
|
|
921
|
-
:host .wrapper.invalid .label:after {
|
|
927
|
+
:host .wrapper.invalid .label-wrapper:after {
|
|
922
928
|
-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z'/%3E%3C/svg%3E%0A");
|
|
923
929
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z'/%3E%3C/svg%3E%0A");
|
|
924
930
|
}
|
|
925
|
-
:host .wrapper.invalid .label:after {
|
|
931
|
+
:host .wrapper.invalid .label-wrapper:after {
|
|
926
932
|
display: inline-block;
|
|
927
933
|
margin-inline-start: 0.25rem;
|
|
928
|
-
|
|
934
|
+
align-self: center;
|
|
929
935
|
flex-shrink: 0;
|
|
930
936
|
transform: translateY(-1px);
|
|
931
937
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { handleDisabledAttribute, toBool } from "../../global/functions";
|
|
2
|
+
import { handleDisabledAttribute, toBool, showTooltip, hideTooltip } from "../../global/functions";
|
|
3
3
|
import { globalMessages } from "../../global/intl";
|
|
4
4
|
export class Textarea {
|
|
5
5
|
constructor() {
|
|
@@ -58,6 +58,12 @@ export class Textarea {
|
|
|
58
58
|
}
|
|
59
59
|
this.previousValue = this.value;
|
|
60
60
|
}
|
|
61
|
+
handleLabelMouseEnter(ev) {
|
|
62
|
+
const labelEl = ev.target;
|
|
63
|
+
if (labelEl.scrollWidth > labelEl.clientWidth) {
|
|
64
|
+
showTooltip("right", ev.target, this.label);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
61
67
|
announce(message) {
|
|
62
68
|
if (this.liveRegionEl.textContent === message) {
|
|
63
69
|
message += "\u00A0";
|
|
@@ -65,7 +71,7 @@ export class Textarea {
|
|
|
65
71
|
this.announcement = message;
|
|
66
72
|
}
|
|
67
73
|
render() {
|
|
68
|
-
return (h("div", { key: '
|
|
74
|
+
return (h("div", { key: '5bd7daf935fa75bec3fccc000c4674b23da1c043', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '52f18f7ef95fb4505f19ec57b3328db9706af750', class: "label-wrapper" }, h("label", { key: '510bf29970364b1caacfd1eef164a2f766217df2', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '47024a21e0940c6c40dde2b131c337636fe1bbdf', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.requiredField && (h("span", { key: 'dff37fb5a589b44b4eb249b0b3a572e9944a15cb', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '8dda587667514bbf0db310491cf58d2b3ea00fea', class: "inner-wrapper" }, h("div", { key: '8782435cdc9150197ac29a09fd6b3d6b95413c59', class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { key: '3d7a017570a79669f03914e00be725a633717c66', 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: '7cfb20e30f1413096a861089e932aabc46be0593', id: "info", class: "info" }, this.info)), h("div", { key: '2f450eb52e3bf5e805e125f19e59766c4d45a75c', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '024947b6fa1ef096bb09c1c9183984e647ed5432', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
69
75
|
}
|
|
70
76
|
static get is() { return "wm-textarea"; }
|
|
71
77
|
static get encapsulation() { return "shadow"; }
|
|
@@ -890,21 +890,28 @@
|
|
|
890
890
|
flex-direction: column;
|
|
891
891
|
font-size: 0.875rem;
|
|
892
892
|
}
|
|
893
|
+
:host .wrapper .label-wrapper {
|
|
894
|
+
display: flex;
|
|
895
|
+
}
|
|
893
896
|
:host .wrapper .label {
|
|
894
|
-
display: block;
|
|
897
|
+
display: inline-block;
|
|
895
898
|
line-height: normal;
|
|
896
899
|
font-weight: 600;
|
|
897
900
|
white-space: nowrap;
|
|
901
|
+
overflow: hidden;
|
|
902
|
+
text-overflow: ellipsis;
|
|
898
903
|
margin-bottom: 0.25rem;
|
|
899
904
|
}
|
|
900
|
-
:host .wrapper .
|
|
905
|
+
:host .wrapper .required {
|
|
906
|
+
display: inline-block;
|
|
901
907
|
color: var(--wmcolor-text-required);
|
|
902
908
|
}
|
|
903
909
|
:host .wrapper.label-left {
|
|
904
910
|
flex-direction: row;
|
|
905
911
|
}
|
|
906
912
|
:host .wrapper.label-left .label-wrapper {
|
|
907
|
-
|
|
913
|
+
height: fit-content;
|
|
914
|
+
margin-right: 0.75rem;
|
|
908
915
|
}
|
|
909
916
|
:host .wrapper.label-left .label-wrapper .label {
|
|
910
917
|
display: flex;
|
|
@@ -912,7 +919,6 @@
|
|
|
912
919
|
min-height: 2.5rem;
|
|
913
920
|
white-space: normal;
|
|
914
921
|
margin-bottom: 0;
|
|
915
|
-
margin-right: 0.75rem;
|
|
916
922
|
}
|
|
917
923
|
:host .wrapper.label-none label {
|
|
918
924
|
position: absolute !important;
|
|
@@ -926,11 +932,11 @@
|
|
|
926
932
|
white-space: nowrap !important;
|
|
927
933
|
margin: -1px !important;
|
|
928
934
|
}
|
|
929
|
-
:host .wrapper.invalid .label {
|
|
935
|
+
:host .wrapper.invalid .label-wrapper {
|
|
930
936
|
color: var(--wmcolor-text-error);
|
|
931
937
|
position: relative;
|
|
932
938
|
}
|
|
933
|
-
:host .wrapper.invalid .label:after {
|
|
939
|
+
:host .wrapper.invalid .label-wrapper:after {
|
|
934
940
|
content: "";
|
|
935
941
|
display: block;
|
|
936
942
|
background-color: var(--icon-fill, currentColor);
|
|
@@ -939,14 +945,14 @@
|
|
|
939
945
|
-webkit-mask-size: 100%;
|
|
940
946
|
mask-size: 100%;
|
|
941
947
|
}
|
|
942
|
-
:host .wrapper.invalid .label:after {
|
|
948
|
+
:host .wrapper.invalid .label-wrapper:after {
|
|
943
949
|
-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z'/%3E%3C/svg%3E%0A");
|
|
944
950
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z'/%3E%3C/svg%3E%0A");
|
|
945
951
|
}
|
|
946
|
-
:host .wrapper.invalid .label:after {
|
|
952
|
+
:host .wrapper.invalid .label-wrapper:after {
|
|
947
953
|
display: inline-block;
|
|
948
954
|
margin-inline-start: 0.25rem;
|
|
949
|
-
|
|
955
|
+
align-self: center;
|
|
950
956
|
flex-shrink: 0;
|
|
951
957
|
transform: translateY(-1px);
|
|
952
958
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { intl, shouldOpenUp, toBool, handleDisabledAttribute } from "../../global/functions";
|
|
2
|
+
import { intl, shouldOpenUp, toBool, handleDisabledAttribute, showTooltip, hideTooltip } from "../../global/functions";
|
|
3
3
|
export class Timepicker {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.twelveHrValid = /^(0?[0-9]|1[0-2])\s*:?\s*([0-5][0-9])?\s?(a|p|am|pm)?$/i;
|
|
@@ -168,6 +168,12 @@ export class Timepicker {
|
|
|
168
168
|
this.wmTimepickerInputBlurred.emit();
|
|
169
169
|
this.tpWrapper.classList.remove("focus");
|
|
170
170
|
}
|
|
171
|
+
handleLabelMouseEnter(ev) {
|
|
172
|
+
const labelEl = ev.target;
|
|
173
|
+
if (labelEl.scrollWidth > labelEl.clientWidth) {
|
|
174
|
+
showTooltip("right", ev.target, this.label);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
171
177
|
generateTimeIntervals() {
|
|
172
178
|
let timeIntervals = [];
|
|
173
179
|
let startTime = 0;
|
|
@@ -275,13 +281,13 @@ export class Timepicker {
|
|
|
275
281
|
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))));
|
|
276
282
|
}
|
|
277
283
|
render() {
|
|
278
|
-
return (h(Host, { key: '
|
|
284
|
+
return (h(Host, { key: 'fd0acc447628174ea8551c1ea7cafdc8b0b6ec74', onBlur: () => this.close(false) }, h("div", { key: 'a8c7c453558df7a33fc42d71eff78894a36306d6', class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { key: '9f259605e513d12e32716f12b4d5dee9fb97d10a', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: '1b1b596a992a66f6738cab61086c9d7298934e8c', id: "label", class: "label", htmlFor: "time-input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label)), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '4fc12427a1b3c62b9a6e7cd53c83cec311b46f1e', "aria-hidden": "true", class: "required" }, "*"))), h("div", { key: '6f299347f62dd5299f0223bbdee82fc55dafe06a' }, h("div", { key: 'd78e3b28b110714558d94ba03bedc4d63e8a41d7', class: "inner-wrapper" }, h("input", { key: '1af64c4c0ab7bd983d3e926ad1ea146bed0dadea', 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: 'a99cd67d7bfa17c4ba512b73097b5987b8d5d4f8', 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()),
|
|
279
285
|
// This addresses an issue in Safari, where clicking buttons does not focus them
|
|
280
286
|
// if the button does not receive focus when clicked, Timepicker incorrectly emits a blur event
|
|
281
287
|
onMouseDown: (ev) => {
|
|
282
288
|
ev.preventDefault();
|
|
283
289
|
this.buttonEl.focus();
|
|
284
|
-
} }, h("span", { key: '
|
|
290
|
+
} }, h("span", { key: 'd50582487d9860716e0bdc67b99ac75b346d62aa', class: "svg-icon svg-time" })), h("ul", { key: '63a9ed95dc1c238d12d84150c406e5ff877d71b3', 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: '25ea586bea9676a7d18c2fdeada1dcaf0a224471', id: "error", class: "error" }, this.errorMessage)), h("div", { key: '4985d6ee5df49f687eaeeb06a1b5a0c8b14b7119', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
|
|
285
291
|
}
|
|
286
292
|
static get is() { return "wm-timepicker"; }
|
|
287
293
|
static get encapsulation() { return "shadow"; }
|
|
@@ -221,9 +221,9 @@ export class Toggletip {
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
render() {
|
|
224
|
-
return (h(Host, { key: '
|
|
224
|
+
return (h(Host, { key: '653e8a3a21b1a63ebae98f4813393ae2c3020aa0', class: `size-${this.targetSize}` }, h("button", { key: '15a4de61c15d32091643bbabaf438f5116e5bea9', class: "button", type: "button", "aria-label": this.label, popoverTarget: "toggletip", popoverTargetAction: "toggle", onClick: () => this.open(),
|
|
225
225
|
// In order to position the tooltip identically to the toggletip, its presence is determined by these four events
|
|
226
|
-
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: '
|
|
226
|
+
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: '96e4c18106ed35a41a0fc4ff2ea2b239cac541e1', popover: "", ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.targetSize} ${this.isHidden ? "hidden" : ""}`, id: "toggletip" }, this.tooltip), h("div", { key: 'd6cf716efcd55983e0b86854eac118a9bbb01d76', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
|
|
227
227
|
}
|
|
228
228
|
static get is() { return "wm-toggletip"; }
|
|
229
229
|
static get encapsulation() { return "shadow"; }
|