@watermarkinsights/ripple 5.6.0-1 → 5.6.0-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-5caee80b.js → app-globals-2eb5411e.js} +1 -1
- package/dist/cjs/{chartFunctions-878f8139.js → chartFunctions-800ea87d.js} +1 -1
- package/dist/cjs/{functions-05e7ad5a.js → functions-c6e27c75.js} +6 -0
- package/dist/cjs/index-788526f5.js +12 -0
- package/dist/cjs/{intl-2b550151.js → intl-9f836d29.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/priv-calendar.cjs.entry.js +1 -1
- package/dist/cjs/priv-chart-popover.cjs.entry.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/priv-option-list.cjs.entry.js +385 -0
- package/dist/cjs/ripple.cjs.js +2 -2
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +3 -3
- package/dist/cjs/wm-button.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart.cjs.entry.js +3 -3
- package/dist/cjs/wm-date-range.cjs.entry.js +1 -1
- package/dist/cjs/wm-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
- package/dist/cjs/wm-file.cjs.entry.js +2 -2
- package/dist/cjs/wm-input.cjs.entry.js +3 -3
- package/dist/cjs/wm-line-chart.cjs.entry.js +3 -3
- package/dist/cjs/wm-modal-footer.cjs.entry.js +1 -1
- package/dist/cjs/wm-modal-header.cjs.entry.js +3 -3
- package/dist/cjs/wm-modal.cjs.entry.js +3 -3
- package/dist/cjs/wm-navigation_3.cjs.entry.js +6 -6
- package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
- package/dist/cjs/wm-nested-select.cjs.entry.js +296 -0
- package/dist/cjs/wm-optgroup.cjs.entry.js +57 -0
- package/dist/cjs/wm-option_2.cjs.entry.js +34 -339
- 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 +4 -4
- package/dist/cjs/wm-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +4 -4
- package/dist/cjs/wm-tag-input.cjs.entry.js +5 -5
- package/dist/cjs/wm-tag-option.cjs.entry.js +1 -1
- package/dist/cjs/wm-textarea.cjs.entry.js +3 -3
- package/dist/cjs/wm-timepicker.cjs.entry.js +3 -3
- package/dist/cjs/wm-toggletip.cjs.entry.js +3 -3
- package/dist/cjs/wm-uploader.cjs.entry.js +4 -4
- package/dist/collection/collection-manifest.json +5 -2
- package/dist/collection/components/selects/priv-option-list/priv-option-list.css +104 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +717 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +378 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +581 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +77 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +197 -0
- package/dist/collection/components/{wm-select → selects/wm-select}/wm-select.css +0 -74
- package/dist/collection/components/{wm-select → selects/wm-select}/wm-select.js +17 -384
- 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-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-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-option/wm-option.js +35 -9
- 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.js +3 -3
- 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 +2 -2
- package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
- package/dist/collection/dev/nested-select.js +62 -0
- package/dist/collection/global/functions.js +5 -0
- package/dist/esm/{app-globals-8a702f67.js → app-globals-bbc3f842.js} +1 -1
- package/dist/esm/{chartFunctions-00fd6f23.js → chartFunctions-7e5619f6.js} +1 -1
- package/dist/esm/{functions-25781571.js → functions-046fc5a3.js} +6 -1
- package/dist/esm/index-130e07bb.js +12 -0
- package/dist/esm/{intl-df3d34d1.js → intl-0822738a.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/priv-calendar.entry.js +1 -1
- package/dist/esm/priv-chart-popover.entry.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/priv-option-list.entry.js +381 -0
- package/dist/esm/ripple.js +2 -2
- package/dist/esm/wm-action-menu_2.entry.js +3 -3
- package/dist/esm/wm-button.entry.js +2 -2
- package/dist/esm/wm-chart.entry.js +3 -3
- package/dist/esm/wm-date-range.entry.js +1 -1
- package/dist/esm/wm-datepicker.entry.js +1 -1
- package/dist/esm/wm-file-list.entry.js +1 -1
- package/dist/esm/wm-file.entry.js +2 -2
- package/dist/esm/wm-input.entry.js +3 -3
- package/dist/esm/wm-line-chart.entry.js +3 -3
- package/dist/esm/wm-modal-footer.entry.js +1 -1
- package/dist/esm/wm-modal-header.entry.js +3 -3
- package/dist/esm/wm-modal.entry.js +3 -3
- package/dist/esm/wm-navigation_3.entry.js +6 -6
- package/dist/esm/wm-navigator.entry.js +1 -1
- package/dist/esm/wm-nested-select.entry.js +292 -0
- package/dist/esm/wm-optgroup.entry.js +53 -0
- package/dist/esm/wm-option_2.entry.js +34 -339
- 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 +4 -4
- package/dist/esm/wm-snackbar.entry.js +4 -4
- package/dist/esm/wm-tab-item_3.entry.js +4 -4
- package/dist/esm/wm-tag-input.entry.js +5 -5
- package/dist/esm/wm-tag-option.entry.js +1 -1
- package/dist/esm/wm-textarea.entry.js +3 -3
- package/dist/esm/wm-timepicker.entry.js +3 -3
- package/dist/esm/wm-toggletip.entry.js +3 -3
- package/dist/esm/wm-uploader.entry.js +4 -4
- package/dist/esm-es5/{app-globals-8a702f67.js → app-globals-bbc3f842.js} +1 -1
- package/dist/esm-es5/{chartFunctions-00fd6f23.js → chartFunctions-7e5619f6.js} +1 -1
- package/dist/esm-es5/{functions-25781571.js → functions-046fc5a3.js} +1 -1
- package/dist/esm-es5/index-130e07bb.js +1 -1
- package/dist/esm-es5/{intl-df3d34d1.js → intl-0822738a.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover.entry.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/priv-option-list.entry.js +1 -0
- 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-chart.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-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-footer.entry.js +1 -1
- package/dist/esm-es5/wm-modal-header.entry.js +1 -1
- package/dist/esm-es5/wm-modal.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-nested-select.entry.js +1 -0
- package/dist/esm-es5/wm-optgroup.entry.js +1 -0
- 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-progress-indicator_3.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-tag-option.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-041e579b.entry.js → p-05f0f2e9.entry.js} +1 -1
- package/dist/ripple/{p-a1a2f8c9.system.entry.js → p-06792553.system.entry.js} +1 -1
- package/dist/ripple/{p-b80d9402.system.entry.js → p-0b7a64cd.system.entry.js} +1 -1
- package/dist/ripple/{p-d5ba9de1.system.entry.js → p-0db47768.system.entry.js} +1 -1
- package/dist/ripple/{p-67a7f0b0.entry.js → p-1123b0fd.entry.js} +1 -1
- package/dist/ripple/{p-3423a9b6.system.entry.js → p-140d2dad.system.entry.js} +1 -1
- package/dist/ripple/{p-56766bb2.entry.js → p-1727c66e.entry.js} +1 -1
- package/dist/ripple/{p-2d619f83.entry.js → p-179e4aee.entry.js} +1 -1
- package/dist/ripple/{p-6e60631a.entry.js → p-18d3ad51.entry.js} +1 -1
- package/dist/ripple/{p-bcff8b3a.entry.js → p-1a474fb3.entry.js} +1 -1
- package/dist/ripple/p-1ed0a315.system.entry.js +1 -0
- package/dist/ripple/{p-376efca9.entry.js → p-200298b3.entry.js} +1 -1
- package/dist/ripple/{p-3b4045f8.system.entry.js → p-22704516.system.entry.js} +1 -1
- package/dist/ripple/{p-f54e9ed0.js → p-28169294.js} +1 -1
- package/dist/ripple/p-28a88d69.entry.js +1 -0
- package/dist/ripple/{p-13fc2164.entry.js → p-28a89430.entry.js} +1 -1
- package/dist/ripple/{p-298c2675.entry.js → p-29388a85.entry.js} +1 -1
- package/dist/ripple/{p-1f09134c.entry.js → p-2952dc73.entry.js} +1 -1
- package/dist/ripple/p-2ec551cc.entry.js +1 -0
- package/dist/ripple/{p-e85b1f40.entry.js → p-30aa965a.entry.js} +1 -1
- package/dist/ripple/{p-155224a2.system.entry.js → p-341d27c6.system.entry.js} +1 -1
- package/dist/ripple/p-354a97f2.entry.js +1 -0
- package/dist/ripple/{p-3b5f4364.system.entry.js → p-35f78ec6.system.entry.js} +1 -1
- package/dist/ripple/{p-417c8e46.system.entry.js → p-381d004e.system.entry.js} +1 -1
- package/dist/ripple/{p-b41ef3db.entry.js → p-39de670a.entry.js} +1 -1
- package/dist/ripple/{p-b7307be6.system.entry.js → p-3ad563c4.system.entry.js} +1 -1
- package/dist/ripple/{p-0ff41567.system.entry.js → p-3ea3db64.system.entry.js} +1 -1
- package/dist/ripple/p-42925871.entry.js +1 -0
- package/dist/ripple/p-46f449d2.system.js +1 -0
- package/dist/ripple/{p-e2fe86a7.system.entry.js → p-540f74b1.system.entry.js} +1 -1
- package/dist/ripple/{p-a88bf1c5.js → p-58a073f2.js} +1 -1
- package/dist/ripple/{p-7fb95b89.entry.js → p-61666258.entry.js} +1 -1
- package/dist/ripple/p-64449b64.entry.js +1 -0
- package/dist/ripple/p-68fc8da3.system.entry.js +1 -0
- package/dist/ripple/p-6e95e98c.system.js +1 -0
- package/dist/ripple/{p-aab56a37.system.entry.js → p-7135f074.system.entry.js} +1 -1
- package/dist/ripple/{p-58988291.system.js → p-71ddeb97.system.js} +1 -1
- package/dist/ripple/{p-d93c51dd.system.entry.js → p-772c4fd2.system.entry.js} +1 -1
- package/dist/ripple/{p-e4918449.js → p-7b5be38a.js} +1 -1
- package/dist/ripple/{p-eb14b354.entry.js → p-833c05ca.entry.js} +1 -1
- package/dist/ripple/{p-88cfd58d.js → p-8789b4c9.js} +1 -1
- package/dist/ripple/{p-fc529ba1.system.entry.js → p-8dd54304.system.entry.js} +1 -1
- package/dist/ripple/{p-830f8b3f.entry.js → p-9420679d.entry.js} +1 -1
- package/dist/ripple/{p-8b56f9d8.system.entry.js → p-96697a65.system.entry.js} +1 -1
- package/dist/ripple/p-974ca7a4.system.entry.js +1 -0
- package/dist/ripple/{p-b8168f35.system.entry.js → p-97e62c9d.system.entry.js} +1 -1
- package/dist/ripple/{p-a9d89ac8.system.js → p-98bf2ccb.system.js} +1 -1
- package/dist/ripple/{p-6fe35d1e.system.entry.js → p-ac47e6f5.system.entry.js} +1 -1
- package/dist/ripple/{p-5051034b.entry.js → p-b116fb2d.entry.js} +1 -1
- package/dist/ripple/{p-03708b88.system.js → p-b6df0519.system.js} +1 -1
- package/dist/ripple/{p-6d0e5159.system.entry.js → p-bb28c2c7.system.entry.js} +1 -1
- package/dist/ripple/{p-672ae2cb.entry.js → p-c171f37b.entry.js} +1 -1
- package/dist/ripple/{p-41eb6a2e.system.entry.js → p-c2fc7204.system.entry.js} +1 -1
- package/dist/ripple/{p-4ea1e503.entry.js → p-c9dc5cfa.entry.js} +1 -1
- package/dist/ripple/{p-17bb1157.system.entry.js → p-ca6bbd68.system.entry.js} +1 -1
- package/dist/ripple/{p-f17fd62b.entry.js → p-cb85c4a7.entry.js} +1 -1
- package/dist/ripple/{p-6d56676e.system.entry.js → p-cc5b07b1.system.entry.js} +1 -1
- package/dist/ripple/{p-f09e2c22.entry.js → p-d6502e2e.entry.js} +1 -1
- package/dist/ripple/{p-c2181de0.entry.js → p-d78dad3d.entry.js} +1 -1
- package/dist/ripple/{p-a62e7532.entry.js → p-d7b7c350.entry.js} +1 -1
- package/dist/ripple/{p-2fd12dd9.entry.js → p-dde32280.entry.js} +1 -1
- package/dist/ripple/{p-7eab6bea.system.entry.js → p-dfaa6a61.system.entry.js} +1 -1
- package/dist/ripple/{p-5ece78e5.system.entry.js → p-e25e8ed7.system.entry.js} +1 -1
- package/dist/ripple/{p-b0c566b5.system.entry.js → p-e2c9204d.system.entry.js} +1 -1
- package/dist/ripple/p-e2de8541.system.entry.js +1 -0
- package/dist/ripple/{p-ac40417b.system.entry.js → p-e562e32d.system.entry.js} +1 -1
- package/dist/ripple/{p-ecb6c756.entry.js → p-ea407923.entry.js} +1 -1
- package/dist/ripple/p-ea9c152f.entry.js +1 -0
- package/dist/ripple/{p-748f8a97.system.entry.js → p-f02dce0f.system.entry.js} +1 -1
- package/dist/ripple/{p-ea0dfadf.system.entry.js → p-f38622dc.system.entry.js} +1 -1
- package/dist/ripple/{p-5caaf651.system.entry.js → p-f8c7adab.system.entry.js} +1 -1
- package/dist/ripple/{p-298bde1b.entry.js → p-fb3cfb8b.entry.js} +1 -1
- package/dist/ripple/{p-86fd68b3.system.entry.js → p-fdb4cf9e.system.entry.js} +1 -1
- package/dist/ripple/{p-0af94825.entry.js → p-feb80dd1.entry.js} +1 -1
- package/dist/ripple/{p-2ef49c84.entry.js → p-ff0e05e4.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/{wm-select/wm-select.d.ts → selects/priv-option-list/priv-option-list.d.ts} +37 -65
- package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +55 -0
- package/dist/types/components/selects/wm-optgroup/wm-optgroup.d.ts +16 -0
- package/dist/types/components/selects/wm-select/wm-select.d.ts +53 -0
- package/dist/types/components/wm-option/wm-option.d.ts +2 -1
- package/dist/types/components.d.ts +148 -2
- package/dist/types/global/functions.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ripple/p-418ed08c.system.entry.js +0 -1
- package/dist/ripple/p-4670ccb4.system.js +0 -1
- package/dist/ripple/p-4baaf026.entry.js +0 -1
- package/dist/ripple/p-8e72de50.entry.js +0 -1
- package/dist/ripple/p-ddff380b.system.js +0 -1
- package/dist/ripple/p-fabe4ca4.entry.js +0 -1
|
@@ -30,7 +30,7 @@ export class ModalFooter {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h("div", { key: '
|
|
33
|
+
return (h("div", { key: '7aeaff5b719c2f24e7b067c0657826c4a2ae0e6c', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '46bdd10fdf2e861afcd36534f9e0f9528c2e95b9', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '23ed4147dffa5b129ea7b05833c62bdf508f5a10', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: 'c1230f50033d37370ae4e975835392257879d762', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: '318669121c5da214d2e144572365a80079f96d07', "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))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "wm-modal-footer"; }
|
|
36
36
|
static get originalStyleUrls() {
|
|
@@ -21,7 +21,7 @@ export class ModalHeader {
|
|
|
21
21
|
parentModal.emitCloseEvent();
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: '3a56e17c11753bd5e55dcec87a1eeb488073ddf3' }, h("div", { key: '188409a0e9e85abb377716ee0851bd3c19474df2', class: "wm-wrapper" }, h("div", { key: 'e9515b287cd6c45ae8fa48c7f2e171f8f929cc80' }, h("h2", { key: 'f9f150281c3bee04e00b1b0d639e2a7441eff58b', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '1d2fb839c61a76c626a86466f65b5f3df4ebb554', class: "subtitle" }, this.subheading))), h("wm-button", { key: '2262693ab60d738eba204ac3ee1a6a771697d98d', "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() }))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "wm-modal-header"; }
|
|
27
27
|
static get originalStyleUrls() {
|
|
@@ -108,11 +108,11 @@ export class Modal {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
render() {
|
|
111
|
-
return (h("dialog", { key: '
|
|
111
|
+
return (h("dialog", { key: '46b2d53c67a792392549ae57549283d730e690e1', class: `${"wm-" + this.modalType}`, ref: (el) => (this.dialogEl = el), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: '56b57b2635957c1112d047b56cdc8ccbb889ed1d', class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
|
|
112
112
|
const focusedFromCloseButton = ev.relatedTarget && ev.relatedTarget == this.closeButtonEl;
|
|
113
113
|
// no related target means we're coming from outside the page (browser chrome), and first element should be focused instead
|
|
114
114
|
focusedFromCloseButton ? this.focusLastElement.emit() : this.focusFirstElement.emit();
|
|
115
|
-
} }), !this.hasBrowserPopoverSupport && h("div", { key: '
|
|
115
|
+
} }), !this.hasBrowserPopoverSupport && h("div", { key: 'cd2cd507720473c86a7239ac5bfdde78908a4ae2', class: "wm-tooltip" }), h("slot", { key: '7c7914fb618282ac84022c7607255ffa015b7bf3' }), h("div", { key: 'e341544f3c97d8b8db3734b1f15778ac5a551942', class: "tabtrap sr-only", tabindex: "0", onFocus: () => {
|
|
116
116
|
this.focusFirstElement.emit();
|
|
117
117
|
} })));
|
|
118
118
|
}
|
|
@@ -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: '5d7b3360de5a2c0e5915ba5dc713b49d5f99493b', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { key: 'f716f66f0de7859321f5e1b67089819fbecb230b', "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: '814ccc6a2e194be8da24fd8669c0c55a4c5ccc7e', class: "icon" }))));
|
|
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: 'da4dc9523bca84cdd02f7e5d47e513c426ed90fd', role: "listitem" }, h("a", { key: '4e51a03f17100c397a827be7c089cc1c28d40f6c', class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { key: 'c01fb24078960839c06728eb92e8bc087750a477', class: "icon", "aria-hidden": "true" }, h("slot", { key: '0434248e936a12b3c224dac32df1dcf259d7bfc8' })), h("div", { key: 'a340b8ec4e8bb07fa7877f33e447895a7a890f98', 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: 'a801b62b17dec1f3a0d87c4aa63d40bdc6f8df31', role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { key: '76559f97777c8f329a6b3709ddef23d6e883242d', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { key: '985dc05ba299a0cc003f0e744d86d69840be451a', class: "tray" }, h("div", { key: 'bfdae051a241a58b7bc97a9cf8eb3515c0bba590', class: "toggle-wrapper" }, h("wm-button", { key: '3fad817d4c16dc82618987a426d1f2dde1136e8d', ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "f156" : "f35c", "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: '6383b6f7da04d79798b86632926ecd63e6e41130', class: "navlist" }, h("slot", { key: '83c0ffa4d2f9b6a1fa151fa4a7dbffc59971f816' }))), this.isCollapsible && (h("div", { key: '37eb48310423c3e6e42dde13bb0a920c3a9044c2', 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: '5823e9e5be2d0bffba4fbcd34fd6e05692bc1da5', "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: '2bb6415b6b29c1587a7886a9fb743182b747f95e', class: `navoption ${selectedClass} ${focusedClass}` }, h("slot", { key: 'b13f183ea05d6de0bdf6ad021b122ad7fb4fe069' })));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "priv-navigator-item"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,7 +13,7 @@ export class Option {
|
|
|
13
13
|
if (this.subinfo) {
|
|
14
14
|
classes.push("hassubinfo");
|
|
15
15
|
}
|
|
16
|
-
if (this.
|
|
16
|
+
if (this.parentOptionList.multiple) {
|
|
17
17
|
classes.push("multi-option");
|
|
18
18
|
}
|
|
19
19
|
if (!this.el.textContent.toLowerCase().includes(this.searchTerm)) {
|
|
@@ -21,11 +21,13 @@ export class Option {
|
|
|
21
21
|
}
|
|
22
22
|
return classes.join(" ");
|
|
23
23
|
}
|
|
24
|
-
get
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
get parentOptionList() {
|
|
25
|
+
if (this.el.classList.contains("clone")) {
|
|
26
|
+
return this.el.closest("priv-option-list");
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
return this.el.assignedSlot.closest("priv-option-list");
|
|
30
|
+
}
|
|
29
31
|
}
|
|
30
32
|
handleKeydown(ev) {
|
|
31
33
|
switch (ev.key) {
|
|
@@ -57,6 +59,10 @@ export class Option {
|
|
|
57
59
|
ev.preventDefault();
|
|
58
60
|
this.wmEndKeyPressed.emit();
|
|
59
61
|
break;
|
|
62
|
+
case "ArrowLeft":
|
|
63
|
+
ev.preventDefault();
|
|
64
|
+
this.wmKeyLeftPressed.emit(this.el);
|
|
65
|
+
break;
|
|
60
66
|
default:
|
|
61
67
|
if (ev.key.length === 1) {
|
|
62
68
|
ev.preventDefault();
|
|
@@ -72,7 +78,7 @@ export class Option {
|
|
|
72
78
|
this.intCloneClicked.emit(this.el); // used to then emit wmOptionSelected from the "real" wm-option
|
|
73
79
|
}
|
|
74
80
|
else {
|
|
75
|
-
if (this.
|
|
81
|
+
if (this.parentOptionList.multiple) {
|
|
76
82
|
this.selected
|
|
77
83
|
? this.wmOptionDeselected.emit(this.el)
|
|
78
84
|
: this.wmOptionSelected.emit(this.el);
|
|
@@ -134,10 +140,10 @@ export class Option {
|
|
|
134
140
|
this.syncAriaSelected();
|
|
135
141
|
this.syncAriaDisabled();
|
|
136
142
|
this.updateDisabledOnClick();
|
|
137
|
-
this.
|
|
143
|
+
this.parentOptionList.addEventListener("optionListSearchChanged", (ev) => this.handleSearch(ev));
|
|
138
144
|
}
|
|
139
145
|
render() {
|
|
140
|
-
return (h(Host, { key: '
|
|
146
|
+
return (h(Host, { key: '94c3cd2783b9675927ad05aa6c4c1f387f95ef18', role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { key: 'd3be5bbb8f5bf1f4e7f87bc5e735f78ce197fc62', class: `option-wrapper ${this.parentOptionList.multiple ? "checkbox" : ""}` }, h("span", { key: '871aa9bd93c515c765cd80713098ada62c48ee73', class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { key: 'bdb7e37c1febf0b7dd0919f5a8991b6bdd6ad050', class: "sr-only" }, this.el.textContent)), h("div", { key: '2fdcbca45d8e3540a24ba7f45d895bae07ee0c18', class: "subinfo" }, this.subinfo)));
|
|
141
147
|
}
|
|
142
148
|
static get is() { return "wm-option"; }
|
|
143
149
|
static get encapsulation() { return "shadow"; }
|
|
@@ -350,6 +356,26 @@ export class Option {
|
|
|
350
356
|
}
|
|
351
357
|
}
|
|
352
358
|
}
|
|
359
|
+
}, {
|
|
360
|
+
"method": "wmKeyLeftPressed",
|
|
361
|
+
"name": "wmKeyLeftPressed",
|
|
362
|
+
"bubbles": true,
|
|
363
|
+
"cancelable": true,
|
|
364
|
+
"composed": true,
|
|
365
|
+
"docs": {
|
|
366
|
+
"tags": [],
|
|
367
|
+
"text": ""
|
|
368
|
+
},
|
|
369
|
+
"complexType": {
|
|
370
|
+
"original": "HTMLWmOptionElement",
|
|
371
|
+
"resolved": "HTMLWmOptionElement",
|
|
372
|
+
"references": {
|
|
373
|
+
"HTMLWmOptionElement": {
|
|
374
|
+
"location": "global",
|
|
375
|
+
"id": "global::HTMLWmOptionElement"
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
353
379
|
}, {
|
|
354
380
|
"method": "wmEscKeyPressed",
|
|
355
381
|
"name": "wmEscKeyPressed",
|
|
@@ -151,7 +151,7 @@ export class Pagination {
|
|
|
151
151
|
render() {
|
|
152
152
|
return (
|
|
153
153
|
// do not render the component if there's only one page
|
|
154
|
-
this.totalItems > this.itemsPerPage && (h("nav", { key: '
|
|
154
|
+
this.totalItems > this.itemsPerPage && (h("nav", { key: '34a7f7c87435f83b3e7f96a3df9c9b2bc04904e8', "aria-label": `Pagination Navigation. ${this.getCurrentPagesInView()}. Current page, ${this.currentPage}.` }, this.isLargeSize ? this.renderLarge() : this.renderSmall(), h("div", { key: '9a7e0416709be604a8dd4eb9bcab3dd52522d68a', id: "status", class: "sr-only", "aria-live": "polite", "aria-relevant": "text", "aria-atomic": "true" }, this.srAnnouncement))));
|
|
155
155
|
}
|
|
156
156
|
static get is() { return "wm-pagination"; }
|
|
157
157
|
static get encapsulation() { return "shadow"; }
|
|
@@ -166,10 +166,10 @@ export class Search {
|
|
|
166
166
|
* End search and find render helpers
|
|
167
167
|
*/
|
|
168
168
|
render() {
|
|
169
|
-
return (h(Host, { key: '
|
|
169
|
+
return (h(Host, { key: '6c16340c9ad9708a996658a3f051a14a3739c73e' }, h("div", { key: '34f0c61a73aba3a8c96a3b439221a7bb2ff0f88d', id: "wm-search-wrapper", class: `wm-search-wrapper ${this.searchType}` }, h("input", { key: '41c4c594f3703e03aa40b5a0e4063157b4220021', disabled: this.isDisabled, id: "wm-search-input", placeholder: this.placeholder, "aria-label": `${this.label ? this.label + ". " : ""}${intl.formatMessage({
|
|
170
170
|
id: "search.typeToFilterResults",
|
|
171
171
|
defaultMessage: "Type to filter the results",
|
|
172
|
-
})}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { key: '
|
|
172
|
+
})}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { key: '5b31af1659df781ceccad1790c7bd813041e0b24', class: "mdi search-icon" }, String.fromCodePoint(parseInt(`0xf349`))), this.searchType === "find" && this.renderResultsAndBrowseButtons(), h("div", { key: '6204ce5f10b151ff86a8858573a9ebfb4e6469f4', 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()));
|
|
173
173
|
}
|
|
174
174
|
static get is() { return "wm-search"; }
|
|
175
175
|
static get encapsulation() { return "shadow"; }
|
|
@@ -150,11 +150,11 @@ export class Snackbar {
|
|
|
150
150
|
}, onKeyDown: (ev) => ev.key === "Enter" && this.snackLinkClicked(notification) }, h("span", { "aria-hidden": "true" }, notification.link)))), h("button", { id: `close-button-${notification.id}`, "aria-label": "Close this notification", 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: "sr-only", tabindex: notification.link ? 0 : -1, onFocus: () => notification.link && this.snackDismissed(notification) })))));
|
|
151
151
|
}
|
|
152
152
|
render() {
|
|
153
|
-
return (h(Host, { key: '
|
|
153
|
+
return (h(Host, { key: 'ebeaedb3dc25fc8e9150c0ecc36090681b0d18dd' }, h("div", { key: '468a995190f7e64240c3bd3a4f69daba9cfd0a5d', ref: (el) => (this.snackAreaEl = el), class: {
|
|
154
154
|
"list-wrapper": true,
|
|
155
155
|
"user-is-tabbing": this.isTabbing,
|
|
156
156
|
empty: this.parsedNotifications.length == 0,
|
|
157
|
-
} }, this.renderSnackbars()), h("div", { key: '
|
|
157
|
+
} }, this.renderSnackbars()), h("div", { key: '2387f44a37c251347df54d1166adf0eee29ba18a', class: "sr-only", "aria-live": "polite", "aria-atomic": "false", id: `wm-live-region-${this.uid}`, ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
158
158
|
}
|
|
159
159
|
static get is() { return "wm-snackbar"; }
|
|
160
160
|
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: '0c5a7679c18bac1286f45864f8b26b428ab108dc', role: "presentation" }, h("li", { key: 'fd6308920cc5fcce3056701abcaa53bfa9e67d3c', class: "tab-item", role: "presentation" }, h("a", { key: '573ef3b73a943f46f508a05f9a4dd35bfb607e63', 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: '62ec27174d595232ecdcf84b9edcb00592a155ed' })))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "wm-tab-item"; }
|
|
46
46
|
static get encapsulation() { return "shadow"; }
|
|
@@ -155,7 +155,7 @@ export class TabList {
|
|
|
155
155
|
} }, t.textContent)));
|
|
156
156
|
}
|
|
157
157
|
render() {
|
|
158
|
-
return h(Host, { key: '
|
|
158
|
+
return h(Host, { key: '01fdce3631a9acbae450ed744ef2f8504a3ff4f0', class: this.menuLayout ? "menu" : "" }, this.renderMenuOrTabs());
|
|
159
159
|
}
|
|
160
160
|
static get is() { return "wm-tab-list"; }
|
|
161
161
|
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: '0c101fa2890d144b7fc1591e0a15d758220961c7', role: "tabpanel", class: { "tab-hidden": !this.active } });
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "wm-tab-panel"; }
|
|
18
18
|
static get originalStyleUrls() {
|
|
@@ -858,12 +858,12 @@ export class TagInput {
|
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
render() {
|
|
861
|
-
return (h("div", { key: '
|
|
861
|
+
return (h("div", { key: '1de51865f13abeb3e26ec0aca4a3ccf89d502cf8', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '4d0c28e82dbfb01d5b2ab013c06079eec1e51f42', class: "label-wrapper" }, h("label", { key: '8459c9f4d7d2cda63787e04ccbf831b7a4ba7e1d', class: "label", htmlFor: "input" }, this.label, this.requiredField && (h("span", { key: 'f0bae4092eff27ef5ccc7edb9a31f972440c2935', class: "required", "aria-hidden": "true" }, "*")))), h("div", { key: '2b019507953ae6c5798315b9c4f32d5c516b1d7a', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { key: '91abf5dc6dbae378abf09cb39d34c56209af552c', class: "upper-row" }, h("div", { key: '3a528af352d61be59fa29f9e1d301713d6c1d84e', class: `tags-and-input-wrapper ${this.inModal ? "in-modal" : ""}` }, h("ul", { key: 'db1614440ef06c6107f6df126962431381b2f14c', 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) => {
|
|
862
862
|
this.focusedTagIndex = undefined;
|
|
863
863
|
this.handleBlur(ev);
|
|
864
|
-
}, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("input", { key: '
|
|
864
|
+
}, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("input", { key: '0fcca09b600283acaa7dbe187ebcd879318fbcb5', 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) => {
|
|
865
865
|
this.handleBlur(ev);
|
|
866
|
-
}, onFocus: () => this.handleInputFocus(), onKeyDown: (ev) => this.handleInputKeyDown(ev) })), this.isDropdown && (h("div", { key: '
|
|
866
|
+
}, onFocus: () => this.handleInputFocus(), onKeyDown: (ev) => this.handleInputKeyDown(ev) })), this.isDropdown && (h("div", { key: '28ee8e7c92281759640d8207606b275fda859f57', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { key: '6288989f799ab3807133e4f4a38d3760d54c2907', id: "info", class: "info-text" }, this.info)), h("div", { key: '66757a1ea470d00a4b4467ea5676531ae6d4b7b7', id: "error" }, this.errorMessage), h("div", { key: 'ee78f2b7c5a17a78317be02b0d425218ec69e776', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
|
|
867
867
|
}
|
|
868
868
|
static get is() { return "wm-tag-input"; }
|
|
869
869
|
static get encapsulation() { return "shadow"; }
|
|
@@ -65,7 +65,7 @@ export class Textarea {
|
|
|
65
65
|
this.announcement = message;
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (h("div", { key: '
|
|
68
|
+
return (h("div", { key: 'd93d32cbfa72c45f0fc5dfe899ea1bb4bcbbde77', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '4996149d1994fc4064fae9e5c4027d24fe440bd9', class: "label-wrapper" }, h("label", { key: 'bdf3862839291e13fed599aeb9c2f378c1d35b27', htmlFor: "inputfield", class: "label" }, this.label, this.characterLimit && (h("span", { key: '8acef0e58d223ae60fd31b9a99632650a85853bb', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit))), this.requiredField && (h("span", { key: '380533416667d1e3fc5d532408fa5dd6ad317ddb', class: "required", "aria-hidden": "true" }, "*")))), h("div", { key: 'a7f7f6116acb1a10ad31e3ba7789ea9a3cb931ac', class: "inner-wrapper" }, h("div", { key: 'bd0e2a92cdc8407ef92270ed7240b4908ccac205', class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { key: 'f12160e7d4f0b43d33b5138f5d466274b259fce7', 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: '8aa68fb0f048082114251325a92fb40303c51e32', id: "info", class: "info" }, this.info)), h("div", { key: '76b6b2b91d210f34921884ea04d9f710bb024d6f', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: 'f08b616acaffd0b2fa9465fa13f979b73681a36b', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
69
69
|
}
|
|
70
70
|
static get is() { return "wm-textarea"; }
|
|
71
71
|
static get encapsulation() { return "shadow"; }
|
|
@@ -275,13 +275,13 @@ export class Timepicker {
|
|
|
275
275
|
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
276
|
}
|
|
277
277
|
render() {
|
|
278
|
-
return (h(Host, { key: '
|
|
278
|
+
return (h(Host, { key: '4273a93c71596571249e0458d8af94e8b1655856', onBlur: () => this.close(false) }, h("div", { key: 'f74544bf54e746a08764ca1bb9a94190adb3eee6', class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { key: '5b224d737d78d47caa09a7b4e75b5f7bffb027d3', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: '2aff658bf7776fd353a17abf8de6bb34d3e0127a', id: "label", class: "label", htmlFor: "time-input" }, this.label, this.requiredField && (h("span", { key: '062f7b3cd70011577060099a95c0e6d3db0235eb', class: "required", "aria-hidden": "true" }, "*"))))), h("div", { key: '392d44c8bf126ebd094fad061d361fa1234be24b' }, h("div", { key: '60756d0e3e8f4a0ed59e2a2b5b6ae74bc726ad1c', class: "inner-wrapper" }, h("input", { key: '618ea199eb6b56d5a37fcbbc4f1ac5a43c2e841a', 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: '3b4028ca2ded19a246b5d1da6870123e20b2e86d', 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
279
|
// This addresses an issue in Safari, where clicking buttons does not focus them
|
|
280
280
|
// if the button does not receive focus when clicked, Timepicker incorrectly emits a blur event
|
|
281
281
|
onMouseDown: (ev) => {
|
|
282
282
|
ev.preventDefault();
|
|
283
283
|
this.buttonEl.focus();
|
|
284
|
-
} }, h("span", { key: '
|
|
284
|
+
} }, h("span", { key: '5faf96e0b06dbdec77903403ffd97fb28699659e', class: "clock" })), h("ul", { key: 'cef264a3a902902aa35666faf6f3d4df10b8ee19', 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: '1d2df2415ffd87caf5844135e26df9863230e0af', id: "error", class: "error" }, this.errorMessage)), h("div", { key: '7ae2299e87d631454655a1f0c8db5578964bd58c', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
|
|
285
285
|
}
|
|
286
286
|
static get is() { return "wm-timepicker"; }
|
|
287
287
|
static get encapsulation() { return "shadow"; }
|
|
@@ -97,9 +97,9 @@ export class Toggletip {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
render() {
|
|
100
|
-
return (h(Host, { key: '
|
|
100
|
+
return (h(Host, { key: '92fa9eecce23b6f6dee42f9cb4a14e510d61a361', class: `size-${this.targetSize}` }, h("button", { key: 'b0a5a28e67d3badebea33ae45011c13256c91914', class: "button", type: "button", "aria-label": this.label, onClick: () => this.open(),
|
|
101
101
|
// In order to position the tooltip identically to the toggletip, it's presence is determined by these four events
|
|
102
|
-
onMouseEnter: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }), h("div", { key: '
|
|
102
|
+
onMouseEnter: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }), h("div", { key: 'c74e2f6f8dab331e32bbab28dc5d257771be0ba3', ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.isOpen ? "" : "hidden"} ${this.tooltipPosition}` }, this.tooltip), h("div", { key: '2655279a5bdb6ce5ee0f3cceec45280b6c7b55aa', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
|
|
103
103
|
}
|
|
104
104
|
static get is() { return "wm-toggletip"; }
|
|
105
105
|
static get encapsulation() { return "shadow"; }
|
|
@@ -195,9 +195,9 @@ export class Uploader {
|
|
|
195
195
|
return (h("div", { class: `wrapper ${this.errorMessage ? "invalid" : ""}` }, h("div", { id: "label", class: `label` }, this.label, this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*")))));
|
|
196
196
|
}
|
|
197
197
|
render() {
|
|
198
|
-
return (h(Host, { key: '
|
|
198
|
+
return (h(Host, { key: 'd8c9a344f452170e91d0f212d34884ad23a27b4c' }, this.label && this.renderLabel(), this.renderHeader(), this.renderListContainer(), h("div", { key: '86993c7104fb36d699b195e6a9405c171ac9f917', 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
|
|
199
199
|
,
|
|
200
|
-
"aria-atomic": "true" }), h("div", { key: '
|
|
200
|
+
"aria-atomic": "true" }), h("div", { key: '0aa08cb579bdcd6cb03329c638a99e0a83635a0d', ref: (el) => (this.politeLiveRegionEl = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" })));
|
|
201
201
|
}
|
|
202
202
|
static get is() { return "wm-uploader"; }
|
|
203
203
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
document.addEventListener("wmSelectBlurred", renderErrors);
|
|
2
|
+
|
|
3
|
+
function renderErrors() {
|
|
4
|
+
const errorDiv = document.getElementById("errors");
|
|
5
|
+
const select = document.getElementById("select1");
|
|
6
|
+
const selectedOption = Array.from(select.querySelectorAll("wm-option")).filter((o) => o.selected)[0];
|
|
7
|
+
|
|
8
|
+
if (selectedOption.value === "C") {
|
|
9
|
+
select.invalid = true;
|
|
10
|
+
select.errorMessage = "C is my least favorite letter.";
|
|
11
|
+
} else {
|
|
12
|
+
select.invalid = false;
|
|
13
|
+
select.errorMessage = null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function testSelectedOption(selectComp) {
|
|
18
|
+
setTimeout(() => {
|
|
19
|
+
// making sure the selected and aria-selected attributes are always in sync
|
|
20
|
+
const options = selectComp.querySelectorAll("wm-option");
|
|
21
|
+
let selectedOption = Array.from(options).filter((option) => !!option.selected)[0];
|
|
22
|
+
const ariaSelectedOption = Array.from(options).filter((option) => !!option.getAttribute("aria-selected"))[0];
|
|
23
|
+
if (selectedOption != ariaSelectedOption) {
|
|
24
|
+
console.log(selectComp.id, selectedOption, ariaSelectedOption);
|
|
25
|
+
}
|
|
26
|
+
}, 150);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const nestedSelects = document.querySelectorAll("wm-nested-select");
|
|
30
|
+
nestedSelects.forEach((nestedSelect) => {
|
|
31
|
+
nestedSelect.addEventListener("wmOptionSelected", (ev) => handleOptionSelected(ev));
|
|
32
|
+
nestedSelect.addEventListener("wmOptionDeselected", (ev) => handleOptionDeselected(ev));
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const optgroups = document.querySelectorAll("wm-optgroup");
|
|
36
|
+
optgroups.forEach((optgroup) => {
|
|
37
|
+
optgroup.addEventListener("wmOptgroupAllSelected", (ev) => handleAllSelected(ev));
|
|
38
|
+
optgroup.addEventListener("wmOptgroupAllDeselected", (ev) => handleAllDeselected(ev));
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
function handleOptionSelected(ev) {
|
|
42
|
+
const parentOptgroup = ev.target.parentElement;
|
|
43
|
+
const parentNestedSelect = parentOptgroup.parentElement;
|
|
44
|
+
|
|
45
|
+
if (!parentNestedSelect.multiple) {
|
|
46
|
+
// in single select, deselect all other options
|
|
47
|
+
parentNestedSelect.querySelectorAll("wm-option").forEach((option) => (option.selected = false));
|
|
48
|
+
}
|
|
49
|
+
ev.target.selected = true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function handleOptionDeselected(ev) {
|
|
53
|
+
ev.target.selected = false;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function handleAllSelected(ev) {
|
|
57
|
+
ev.target.querySelectorAll("wm-option").forEach((option) => (option.selected = true));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function handleAllDeselected(ev) {
|
|
61
|
+
ev.target.querySelectorAll("wm-option").forEach((option) => (option.selected = false));
|
|
62
|
+
}
|
|
@@ -89,6 +89,11 @@ export function findParentWithHiddenOverflow(el) {
|
|
|
89
89
|
el = el.parentElement;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
+
export function isElOrChild(componentEl, el) {
|
|
93
|
+
var _a;
|
|
94
|
+
// determines whether or not the element is the component, a child of the component, or exists within the component's shadowroot
|
|
95
|
+
return el === componentEl || componentEl.contains(el) || ((_a = componentEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.contains(el));
|
|
96
|
+
}
|
|
92
97
|
export function getContextMeasurements(el) {
|
|
93
98
|
const fixedRect = el.getBoundingClientRect();
|
|
94
99
|
const parentEl = findParentWithHiddenOverflow(el);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-130e07bb.js';
|
|
2
|
-
import { i as intl, c as safeMultiplyFloat, e as getPosition, f as checkForActiveElInShadow } from './functions-
|
|
2
|
+
import { i as intl, c as safeMultiplyFloat, e as getPosition, f as checkForActiveElInShadow } from './functions-046fc5a3.js';
|
|
3
3
|
|
|
4
4
|
const colors = {
|
|
5
5
|
salmon: "#ff5f4e",
|
|
@@ -7843,6 +7843,11 @@ function findParentWithHiddenOverflow(el) {
|
|
|
7843
7843
|
el = el.parentElement;
|
|
7844
7844
|
}
|
|
7845
7845
|
}
|
|
7846
|
+
function isElOrChild(componentEl, el) {
|
|
7847
|
+
var _a;
|
|
7848
|
+
// determines whether or not the element is the component, a child of the component, or exists within the component's shadowroot
|
|
7849
|
+
return el === componentEl || componentEl.contains(el) || ((_a = componentEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.contains(el));
|
|
7850
|
+
}
|
|
7846
7851
|
function getContextMeasurements(el) {
|
|
7847
7852
|
const fixedRect = el.getBoundingClientRect();
|
|
7848
7853
|
const parentEl = findParentWithHiddenOverflow(el);
|
|
@@ -8414,4 +8419,4 @@ const weekdays = [
|
|
|
8414
8419
|
intl.formatMessage({ id: "date.saturday", defaultMessage: "Saturday" }),
|
|
8415
8420
|
];
|
|
8416
8421
|
|
|
8417
|
-
export {
|
|
8422
|
+
export { throttle as A, getContextMeasurements as B, dateFind as C, calendar_months as D, findParentWithHiddenOverflow as E, transposeMatrix as F, wrapAround as G, getSmallestSkipInterval as H, calcPercentageInRange as I, makeISO as J, getMonthLength as K, weekdays as L, findParentWithScrollbar as M, handleDisabledAttribute as a, triggerFormSubmit as b, safeMultiplyFloat as c, debounce as d, getPosition as e, checkForActiveElInShadow as f, generateId as g, hideTooltip as h, intl as i, dateToISO as j, shouldOpenUp as k, hasRoomRight as l, truncateText as m, snakeCaseToCamelCase as n, getNewIndexToFocus as o, shouldOpenDown as p, shouldShiftRight as q, shouldShiftLeft as r, showTooltip as s, toBool as t, measureText as u, findNext as v, findPrev as w, csvToArray as x, getTextDir as y, isElOrChild as z };
|
|
@@ -164,6 +164,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
164
164
|
return import(
|
|
165
165
|
/* webpackMode: "lazy" */
|
|
166
166
|
'./wm-modal-header.entry.js').then(processMod, consoleError);
|
|
167
|
+
case 'wm-nested-select':
|
|
168
|
+
return import(
|
|
169
|
+
/* webpackMode: "lazy" */
|
|
170
|
+
'./wm-nested-select.entry.js').then(processMod, consoleError);
|
|
171
|
+
case 'wm-optgroup':
|
|
172
|
+
return import(
|
|
173
|
+
/* webpackMode: "lazy" */
|
|
174
|
+
'./wm-optgroup.entry.js').then(processMod, consoleError);
|
|
167
175
|
case 'priv-navigator-button':
|
|
168
176
|
return import(
|
|
169
177
|
/* webpackMode: "lazy" */
|
|
@@ -180,6 +188,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
180
188
|
return import(
|
|
181
189
|
/* webpackMode: "lazy" */
|
|
182
190
|
'./priv-chart-popover.entry.js').then(processMod, consoleError);
|
|
191
|
+
case 'priv-option-list':
|
|
192
|
+
return import(
|
|
193
|
+
/* webpackMode: "lazy" */
|
|
194
|
+
'./priv-option-list.entry.js').then(processMod, consoleError);
|
|
183
195
|
}
|
|
184
196
|
}
|
|
185
197
|
return import(
|