@watermarkinsights/ripple 5.7.0-1 → 5.7.0-10

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.
Files changed (94) hide show
  1. package/dist/cjs/{global-d996c674.js → global-d1944ab2.js} +1 -1
  2. package/dist/cjs/index-e86c28b6.js +8 -12
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/priv-option-list.cjs.entry.js +27 -19
  5. package/dist/cjs/ripple.cjs.js +2 -2
  6. package/dist/cjs/wm-modal-pss_3.cjs.entry.js +213 -0
  7. package/dist/cjs/{wm-modal.cjs.entry.js → wm-modal_3.cjs.entry.js} +73 -0
  8. package/dist/cjs/wm-nested-select.cjs.entry.js +77 -32
  9. package/dist/cjs/wm-optgroup.cjs.entry.js +7 -1
  10. package/dist/cjs/wm-option_2.cjs.entry.js +10 -12
  11. package/dist/collection/collection-manifest.json +17 -5
  12. package/dist/collection/components/selects/priv-option-list/priv-option-list.css +22 -6
  13. package/dist/collection/components/selects/priv-option-list/priv-option-list.js +53 -34
  14. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +11 -5
  15. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +107 -36
  16. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +24 -1
  17. package/dist/collection/components/selects/wm-option/wm-option.css +1 -1
  18. package/dist/collection/components/selects/wm-select/wm-select.css +5 -8
  19. package/dist/collection/components/selects/wm-select/wm-select.js +12 -13
  20. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +61 -0
  21. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +138 -0
  22. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +55 -0
  23. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +81 -0
  24. package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +134 -0
  25. package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +361 -0
  26. package/dist/esm/{global-dcf80bdb.js → global-687694e4.js} +1 -1
  27. package/dist/esm/index-558b5a82.js +8 -12
  28. package/dist/esm/loader.js +2 -2
  29. package/dist/esm/priv-option-list.entry.js +27 -19
  30. package/dist/esm/ripple.js +2 -2
  31. package/dist/esm/wm-modal-pss_3.entry.js +207 -0
  32. package/dist/esm/{wm-modal.entry.js → wm-modal_3.entry.js} +73 -2
  33. package/dist/esm/wm-nested-select.entry.js +78 -33
  34. package/dist/esm/wm-optgroup.entry.js +7 -1
  35. package/dist/esm/wm-option_2.entry.js +10 -12
  36. package/dist/esm-es5/global-687694e4.js +1 -0
  37. package/dist/esm-es5/index-558b5a82.js +1 -1
  38. package/dist/esm-es5/loader.js +1 -1
  39. package/dist/esm-es5/priv-option-list.entry.js +1 -1
  40. package/dist/esm-es5/ripple.js +1 -1
  41. package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -0
  42. package/dist/esm-es5/wm-modal_3.entry.js +1 -0
  43. package/dist/esm-es5/wm-nested-select.entry.js +1 -1
  44. package/dist/esm-es5/wm-optgroup.entry.js +1 -1
  45. package/dist/esm-es5/wm-option_2.entry.js +1 -1
  46. package/dist/ripple/p-012cab20.entry.js +1 -0
  47. package/dist/ripple/p-02deae76.entry.js +1 -0
  48. package/dist/ripple/p-1d18d9d2.system.entry.js +1 -0
  49. package/dist/ripple/p-226fe4e0.entry.js +1 -0
  50. package/dist/ripple/p-6e725656.system.entry.js +1 -0
  51. package/dist/ripple/p-6fdfe9f4.system.entry.js +1 -0
  52. package/dist/ripple/p-77e48f61.system.entry.js +1 -0
  53. package/dist/ripple/p-ad1bdcd6.js +1 -0
  54. package/dist/ripple/p-add3ab3d.system.js +1 -0
  55. package/dist/ripple/p-bf7d98d8.entry.js +1 -0
  56. package/dist/ripple/p-ca397ba6.system.js +1 -0
  57. package/dist/ripple/p-cff5d7e9.system.entry.js +1 -0
  58. package/dist/ripple/p-f13b034e.entry.js +1 -0
  59. package/dist/ripple/p-f3f4620c.entry.js +1 -0
  60. package/dist/ripple/{p-54d9e467.system.entry.js → p-f4bcee58.system.entry.js} +1 -1
  61. package/dist/ripple/ripple.esm.js +1 -1
  62. package/dist/ripple/ripple.js +1 -1
  63. package/dist/types/components/selects/priv-option-list/priv-option-list.d.ts +6 -2
  64. package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +8 -5
  65. package/dist/types/components/selects/wm-optgroup/wm-optgroup.d.ts +1 -0
  66. package/dist/types/components/selects/wm-select/wm-select.d.ts +2 -2
  67. package/dist/types/components/wm-modal-pss/wm-modal-pss-footer.d.ts +14 -0
  68. package/dist/types/components/wm-modal-pss/wm-modal-pss-header.d.ts +10 -0
  69. package/dist/types/components.d.ts +98 -5
  70. package/package.json +1 -1
  71. package/dist/cjs/wm-modal-footer.cjs.entry.js +0 -47
  72. package/dist/cjs/wm-modal-header.cjs.entry.js +0 -39
  73. package/dist/esm/wm-modal-footer.entry.js +0 -43
  74. package/dist/esm/wm-modal-header.entry.js +0 -35
  75. package/dist/esm-es5/global-dcf80bdb.js +0 -1
  76. package/dist/esm-es5/wm-modal-footer.entry.js +0 -1
  77. package/dist/esm-es5/wm-modal-header.entry.js +0 -1
  78. package/dist/esm-es5/wm-modal.entry.js +0 -1
  79. package/dist/ripple/p-0c259c1a.system.entry.js +0 -1
  80. package/dist/ripple/p-13f51c06.entry.js +0 -1
  81. package/dist/ripple/p-1c170fb3.entry.js +0 -1
  82. package/dist/ripple/p-294b38ca.system.entry.js +0 -1
  83. package/dist/ripple/p-3568472c.entry.js +0 -1
  84. package/dist/ripple/p-45dc49e8.entry.js +0 -1
  85. package/dist/ripple/p-50388b6f.system.entry.js +0 -1
  86. package/dist/ripple/p-54f7d3d4.system.entry.js +0 -1
  87. package/dist/ripple/p-618300c1.entry.js +0 -1
  88. package/dist/ripple/p-76ff5d91.entry.js +0 -1
  89. package/dist/ripple/p-84603f1f.system.entry.js +0 -1
  90. package/dist/ripple/p-99058787.entry.js +0 -1
  91. package/dist/ripple/p-b176c143.system.entry.js +0 -1
  92. package/dist/ripple/p-c6a336d6.system.js +0 -1
  93. package/dist/ripple/p-e209a933.js +0 -1
  94. package/dist/ripple/p-ee4fee7d.system.js +0 -1
@@ -0,0 +1,55 @@
1
+ /* --------------------------------------
2
+ 1. Box-shadow
3
+ -------------------------------------- */
4
+ /* --------------------------------------
5
+ 2. Border-radius
6
+ -------------------------------------- */
7
+ /* --------------------------------------
8
+ 3. Transforms
9
+ -------------------------------------- */
10
+ /* --------------------------------------
11
+ 4. Button Focus
12
+ -------------------------------------- */
13
+ /* --------------------------------------
14
+ 5. Flex
15
+ -------------------------------------- */
16
+ /* --------------------------------------
17
+ 7. Screen Reader Only
18
+ -------------------------------------- */
19
+ /* --------------------------------------
20
+ 8. Label styles
21
+ this mixin includes all the styles for the label
22
+ + flex rules on the parent container to switch between top and left position
23
+ + srOnly when label is hidden
24
+ Assumes the following markup:
25
+ div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
26
+ .wrapper is for the flex rules
27
+ .label-wrapper is to set the height of the label when positioned left so it's the same height as
28
+ the input. It can't be done directly on .label because of possible line wrapping.
29
+ When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
30
+ (they can't be aligned on the baseline because of possible description text and error message)
31
+ -------------------------------------- */
32
+ wm-modal-pss-header {
33
+ border-radius: 5px 5px 0 0px;
34
+ margin-bottom: -1px;
35
+ }
36
+ wm-modal-pss-header .wm-wrapper {
37
+ display: flex;
38
+ justify-content: space-between;
39
+ align-items: center;
40
+ }
41
+ wm-modal-pss-header .wm-wrapper .title {
42
+ margin: 0;
43
+ font-weight: 600;
44
+ font-size: 1.125rem;
45
+ color: var(--wmcolor-modal-heading);
46
+ line-height: normal;
47
+ }
48
+ wm-modal-pss-header .wm-wrapper .title .subtitle {
49
+ display: block;
50
+ font-size: 0.875rem;
51
+ font-weight: normal;
52
+ }
53
+ wm-modal-pss-header .wm-wrapper .title:focus {
54
+ outline: none;
55
+ }
@@ -0,0 +1,81 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class ModalHeader {
3
+ constructor() {
4
+ this.heading = "";
5
+ this.subheading = "";
6
+ }
7
+ componentWillLoad() {
8
+ this.uid = this.el.parentElement.uid;
9
+ // Trap focus when user tabs past last element in modal
10
+ // NB @Listen doesn't allow to listen on a specific element (the parent modal)
11
+ // if we listen to the whole doc each modal on the page reacts to every event
12
+ this.el.parentElement.addEventListener("focusFirstElement", () => {
13
+ this.closeButtonEl.focus();
14
+ });
15
+ }
16
+ emitParentCloseEvent() {
17
+ const parentModal = this.el.parentElement;
18
+ //@ts-ignore
19
+ parentModal.emitCloseEvent();
20
+ }
21
+ // @Listen("click")
22
+ // directFocusOnClick() {
23
+ // this.headingElement.tabIndex = 0;
24
+ // this.headingElement.focus();
25
+ // }
26
+ render() {
27
+ return (h(Host, null, h("div", { class: "wm-wrapper" }, h("div", null, h("h2", { class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { class: "subtitle" }, this.subheading))), h("wm-button", { "button-type": "navigational", icon: "f156", tooltip: "Close", "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
28
+ }
29
+ static get is() { return "wm-modal-pss-header"; }
30
+ static get originalStyleUrls() {
31
+ return {
32
+ "$": ["wm-modal-pss-header.scss"]
33
+ };
34
+ }
35
+ static get styleUrls() {
36
+ return {
37
+ "$": ["wm-modal-pss-header.css"]
38
+ };
39
+ }
40
+ static get properties() {
41
+ return {
42
+ "heading": {
43
+ "type": "string",
44
+ "mutable": false,
45
+ "complexType": {
46
+ "original": "string",
47
+ "resolved": "string | undefined",
48
+ "references": {}
49
+ },
50
+ "required": false,
51
+ "optional": true,
52
+ "docs": {
53
+ "tags": [],
54
+ "text": ""
55
+ },
56
+ "attribute": "heading",
57
+ "reflect": false,
58
+ "defaultValue": "\"\""
59
+ },
60
+ "subheading": {
61
+ "type": "string",
62
+ "mutable": false,
63
+ "complexType": {
64
+ "original": "string",
65
+ "resolved": "string | undefined",
66
+ "references": {}
67
+ },
68
+ "required": false,
69
+ "optional": true,
70
+ "docs": {
71
+ "tags": [],
72
+ "text": ""
73
+ },
74
+ "attribute": "subheading",
75
+ "reflect": false,
76
+ "defaultValue": "\"\""
77
+ }
78
+ };
79
+ }
80
+ static get elementRef() { return "el"; }
81
+ }
@@ -0,0 +1,134 @@
1
+ /* --------------------------------------
2
+ 1. Box-shadow
3
+ -------------------------------------- */
4
+ /* --------------------------------------
5
+ 2. Border-radius
6
+ -------------------------------------- */
7
+ /* --------------------------------------
8
+ 3. Transforms
9
+ -------------------------------------- */
10
+ /* --------------------------------------
11
+ 4. Button Focus
12
+ -------------------------------------- */
13
+ /* --------------------------------------
14
+ 5. Flex
15
+ -------------------------------------- */
16
+ /* --------------------------------------
17
+ 7. Screen Reader Only
18
+ -------------------------------------- */
19
+ /* --------------------------------------
20
+ 8. Label styles
21
+ this mixin includes all the styles for the label
22
+ + flex rules on the parent container to switch between top and left position
23
+ + srOnly when label is hidden
24
+ Assumes the following markup:
25
+ div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
26
+ .wrapper is for the flex rules
27
+ .label-wrapper is to set the height of the label when positioned left so it's the same height as
28
+ the input. It can't be done directly on .label because of possible line wrapping.
29
+ When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
30
+ (they can't be aligned on the baseline because of possible description text and error message)
31
+ -------------------------------------- */
32
+ wm-modal-pss {
33
+ --wmcolor-modal-background: var(--wmcolor-background);
34
+ --wmcolor-modal-border: var(--wmcolor-border);
35
+ --wmcolor-modal-heading: var(--wmcolor-text);
36
+ --wmcolor-modal-overlay: var(--wmcolor-overlay);
37
+ display: flex;
38
+ justify-content: center;
39
+ align-items: center;
40
+ flex-direction: column;
41
+ position: fixed;
42
+ top: 50%;
43
+ left: 50%;
44
+ transform: translate(-50%, -50%);
45
+ z-index: 2001;
46
+ width: 80vw;
47
+ max-width: 750px;
48
+ max-height: 80vh;
49
+ box-shadow: 0px 11px 15px 0px rgba(0, 0, 0, 0.2), 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14);
50
+ }
51
+ wm-modal-pss * {
52
+ box-sizing: border-box;
53
+ }
54
+ wm-modal-pss > * {
55
+ width: 80vw;
56
+ max-width: 750px;
57
+ background: var(--wmcolor-modal-background);
58
+ }
59
+ wm-modal-pss > *:focus {
60
+ outline: none;
61
+ }
62
+ wm-modal-pss wm-modal-pss-header,
63
+ wm-modal-pss wm-modal-pss-footer {
64
+ padding: 20px 30px;
65
+ }
66
+ wm-modal-pss wm-modal-pss-header {
67
+ z-index: 2003;
68
+ }
69
+ wm-modal-pss wm-modal-pss-footer {
70
+ z-index: 2003;
71
+ }
72
+ wm-modal-pss > :not(wm-modal-pss-header):not(wm-modal-pss-footer) {
73
+ max-height: calc(80vh - 166px);
74
+ z-index: 2002;
75
+ }
76
+ wm-modal-pss.wm-modal wm-modal-pss-header {
77
+ border-bottom: 1px solid var(--wmcolor-modal-border);
78
+ }
79
+ wm-modal-pss.wm-modal wm-modal-pss-footer {
80
+ border-top: 1px solid var(--wmcolor-modal-border);
81
+ }
82
+ @media only screen and (max-width: 768px) {
83
+ wm-modal-pss.wm-modal {
84
+ height: 100%;
85
+ max-height: none;
86
+ max-width: none;
87
+ width: 100vw;
88
+ }
89
+ wm-modal-pss.wm-modal > * {
90
+ max-width: none;
91
+ width: 100vw;
92
+ }
93
+ wm-modal-pss.wm-modal > *:not(wm-modal-pss-header):not(wm-modal-pss-footer) {
94
+ max-height: none;
95
+ height: calc(100vh - 166px);
96
+ }
97
+ }
98
+ wm-modal-pss.wm-dialog > :not(wm-modal-pss-header):not(wm-modal-pss-footer) {
99
+ padding: 0 30px 20px 30px;
100
+ font-size: 0.875rem;
101
+ border: none;
102
+ }
103
+ wm-modal-pss .overlay {
104
+ width: 100vw;
105
+ height: 100vh;
106
+ max-width: none;
107
+ max-height: none;
108
+ position: fixed !important;
109
+ top: -1;
110
+ bottom: 1;
111
+ left: -1;
112
+ right: 1;
113
+ transform: translate(0%, 0%);
114
+ background-color: var(--wmcolor-modal-overlay);
115
+ transition: opacity 0.5s ease-out;
116
+ z-index: 2000;
117
+ }
118
+ wm-modal-pss.hide {
119
+ visibility: hidden;
120
+ }
121
+ wm-modal-pss .sr-only {
122
+ position: absolute !important;
123
+ width: 1px !important;
124
+ height: 1px !important;
125
+ padding: 0 !important;
126
+ border: 0 !important;
127
+ overflow: hidden !important;
128
+ clip: rect(0, 0, 0, 0) !important;
129
+ clip-path: inset(50%) !important;
130
+ white-space: nowrap !important;
131
+ margin: -1px !important;
132
+ top: 0;
133
+ left: 0;
134
+ }
@@ -0,0 +1,361 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class Modal {
3
+ constructor() {
4
+ this.bodyFocusListener = () => this.redirectFocusFromBody();
5
+ this.open = false;
6
+ this.elementToFocus = "";
7
+ this.modalType = "modal";
8
+ this.uid = undefined;
9
+ }
10
+ get focusOnOpenEl() {
11
+ let customElementToFocus = null;
12
+ if (this.elementToFocus === "primary" || this.elementToFocus === "secondary") {
13
+ customElementToFocus = this.el.querySelector(`#wm-${this.elementToFocus}-${this.uid}`);
14
+ }
15
+ else if (this.elementToFocus) {
16
+ customElementToFocus = this.el.querySelector("#" + this.elementToFocus);
17
+ !customElementToFocus &&
18
+ console.warn("Ripple Component Library: The modal component couldn't find an element matching the id you passed for 'elementToFocus'. It will fall back to the default and focus the close button when the modal opens.");
19
+ }
20
+ const closeButtonEl = this.el.querySelector(`#wm-modal-close-${this.uid}`);
21
+ return customElementToFocus ? customElementToFocus : closeButtonEl;
22
+ }
23
+ //App can open modal by toggling the prop
24
+ toggleModal() {
25
+ this.open ? this.showModal() : this.hideModal();
26
+ }
27
+ handleClick(ev) {
28
+ this.open && ev.target === this.overlayEl && this.focusOnOpenEl.focus();
29
+ }
30
+ closeModalOnEscape(ev) {
31
+ if (ev.key === "Escape") {
32
+ // stops propagation prevents nested modal from closing all at once
33
+ ev.stopPropagation();
34
+ this.wmModalCloseTriggered.emit();
35
+ this.open = false;
36
+ }
37
+ }
38
+ showModal() {
39
+ this.setAriaDescribedbyOnModal();
40
+ this.setElToFocusOnClose(); //Record where the user was before the modal opened so that focus can return to it when the modal closes
41
+ document.body.style.overflow = "hidden"; //Keeps the page below the modal from scrolling
42
+ //Focus listeners as a general catch for keeping focus in case of errors in finding element with id passed in by dev (element is removed from DOM, etc.) or other scenarios
43
+ document.body.tabIndex = 0;
44
+ document.body.removeEventListener("focus", this.bodyFocusListener, true);
45
+ document.body.addEventListener("focus", this.bodyFocusListener, true);
46
+ window.requestAnimationFrame(() => {
47
+ // nested requestAnimationFrames allow all elements to become visible on page before assigning focus
48
+ window.requestAnimationFrame(() => this.focusOnOpenEl.focus()); //Bring focus to element inside modal
49
+ });
50
+ }
51
+ //Close the modal and focus the triggering element when the modal buttons emit their events
52
+ hideModal() {
53
+ document.body.style.overflow = "visible";
54
+ document.body.tabIndex = -1;
55
+ document.body.removeEventListener("focus", this.bodyFocusListener, true);
56
+ window.requestAnimationFrame(() => this.focusOnCloseEl.focus()); //Return focus
57
+ }
58
+ componentWillLoad() {
59
+ if (this.elementToFocus === "primary" || this.elementToFocus === "secondary") {
60
+ if (!this.el.id) {
61
+ console.error("For accessibility purposes, you need to set the modal content wrapper's id to 'content-[id of wm-modal-pss]'.");
62
+ }
63
+ }
64
+ this.el.focus = () => {
65
+ this.focusOnOpenEl.focus();
66
+ };
67
+ const generatedId = "wmcl-" + Math.random().toString(36).substr(2, 10);
68
+ this.uid = this.el.id ? this.el.id : generatedId;
69
+ }
70
+ componentDidLoad() {
71
+ if (this.open) {
72
+ this.showModal();
73
+ }
74
+ }
75
+ async emitCloseEvent() {
76
+ this.wmModalCloseTriggered.emit();
77
+ }
78
+ async emitPrimaryEvent() {
79
+ this.wmModalPrimaryTriggered.emit();
80
+ }
81
+ async emitSecondaryEvent() {
82
+ this.wmModalSecondaryTriggered.emit();
83
+ }
84
+ setAriaDescribedbyOnModal() {
85
+ const modalBody = document.getElementById(`content-${this.uid}`);
86
+ if (!modalBody) {
87
+ console.warn("Ripple Component Library: The element containing the body of the modal must include an id in the format 'content-[id of modal]' for accessibility purposes.");
88
+ }
89
+ else {
90
+ this.el.setAttribute("aria-describedby", `wm-modal-heading-text-${this.uid} content-${this.uid}`);
91
+ }
92
+ }
93
+ setElToFocusOnClose() {
94
+ const elToFocus = document.activeElement;
95
+ if (elToFocus.tagName === "WM-MENUITEM") {
96
+ this.focusOnCloseEl = elToFocus.parentElement;
97
+ }
98
+ else {
99
+ let el;
100
+ while (elToFocus && elToFocus.shadowRoot) {
101
+ el = elToFocus.shadowRoot.activeElement;
102
+ }
103
+ if (el) {
104
+ this.focusOnCloseEl = el;
105
+ }
106
+ }
107
+ }
108
+ redirectFocusFromBody() {
109
+ if (document.activeElement.tagName === "BODY") {
110
+ this.focusOnOpenEl.focus();
111
+ }
112
+ }
113
+ render() {
114
+ return (h(Host, { 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: () => {
115
+ this.focusLastElement.emit();
116
+ } }, h("div", { class: "overlay", ref: (el) => (this.overlayEl = el) }), h("div", { class: "sr-only", tabIndex: 0, onFocus: () => {
117
+ this.focusFirstElement.emit();
118
+ } })));
119
+ }
120
+ static get is() { return "wm-modal-pss"; }
121
+ static get originalStyleUrls() {
122
+ return {
123
+ "$": ["wm-modal-pss.scss"]
124
+ };
125
+ }
126
+ static get styleUrls() {
127
+ return {
128
+ "$": ["wm-modal-pss.css"]
129
+ };
130
+ }
131
+ static get properties() {
132
+ return {
133
+ "open": {
134
+ "type": "boolean",
135
+ "mutable": true,
136
+ "complexType": {
137
+ "original": "boolean",
138
+ "resolved": "boolean",
139
+ "references": {}
140
+ },
141
+ "required": false,
142
+ "optional": false,
143
+ "docs": {
144
+ "tags": [],
145
+ "text": ""
146
+ },
147
+ "attribute": "open",
148
+ "reflect": true,
149
+ "defaultValue": "false"
150
+ },
151
+ "elementToFocus": {
152
+ "type": "string",
153
+ "mutable": true,
154
+ "complexType": {
155
+ "original": "\"primary\" | \"secondary\" | string",
156
+ "resolved": "string",
157
+ "references": {}
158
+ },
159
+ "required": false,
160
+ "optional": false,
161
+ "docs": {
162
+ "tags": [],
163
+ "text": ""
164
+ },
165
+ "attribute": "element-to-focus",
166
+ "reflect": false,
167
+ "defaultValue": "\"\""
168
+ },
169
+ "modalType": {
170
+ "type": "string",
171
+ "mutable": false,
172
+ "complexType": {
173
+ "original": "\"modal\" | \"dialog\"",
174
+ "resolved": "\"dialog\" | \"modal\"",
175
+ "references": {}
176
+ },
177
+ "required": false,
178
+ "optional": false,
179
+ "docs": {
180
+ "tags": [],
181
+ "text": ""
182
+ },
183
+ "attribute": "modal-type",
184
+ "reflect": true,
185
+ "defaultValue": "\"modal\""
186
+ },
187
+ "uid": {
188
+ "type": "string",
189
+ "mutable": true,
190
+ "complexType": {
191
+ "original": "string",
192
+ "resolved": "string",
193
+ "references": {}
194
+ },
195
+ "required": true,
196
+ "optional": false,
197
+ "docs": {
198
+ "tags": [],
199
+ "text": ""
200
+ },
201
+ "attribute": "uid",
202
+ "reflect": true
203
+ }
204
+ };
205
+ }
206
+ static get events() {
207
+ return [{
208
+ "method": "focusLastElement",
209
+ "name": "focusLastElement",
210
+ "bubbles": false,
211
+ "cancelable": true,
212
+ "composed": true,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": ""
216
+ },
217
+ "complexType": {
218
+ "original": "any",
219
+ "resolved": "any",
220
+ "references": {}
221
+ }
222
+ }, {
223
+ "method": "focusFirstElement",
224
+ "name": "focusFirstElement",
225
+ "bubbles": false,
226
+ "cancelable": true,
227
+ "composed": true,
228
+ "docs": {
229
+ "tags": [],
230
+ "text": ""
231
+ },
232
+ "complexType": {
233
+ "original": "any",
234
+ "resolved": "any",
235
+ "references": {}
236
+ }
237
+ }, {
238
+ "method": "wmModalCloseTriggered",
239
+ "name": "wmModalCloseTriggered",
240
+ "bubbles": false,
241
+ "cancelable": true,
242
+ "composed": true,
243
+ "docs": {
244
+ "tags": [],
245
+ "text": ""
246
+ },
247
+ "complexType": {
248
+ "original": "any",
249
+ "resolved": "any",
250
+ "references": {}
251
+ }
252
+ }, {
253
+ "method": "wmModalPrimaryTriggered",
254
+ "name": "wmModalPrimaryTriggered",
255
+ "bubbles": true,
256
+ "cancelable": true,
257
+ "composed": true,
258
+ "docs": {
259
+ "tags": [],
260
+ "text": ""
261
+ },
262
+ "complexType": {
263
+ "original": "any",
264
+ "resolved": "any",
265
+ "references": {}
266
+ }
267
+ }, {
268
+ "method": "wmModalSecondaryTriggered",
269
+ "name": "wmModalSecondaryTriggered",
270
+ "bubbles": true,
271
+ "cancelable": true,
272
+ "composed": true,
273
+ "docs": {
274
+ "tags": [],
275
+ "text": ""
276
+ },
277
+ "complexType": {
278
+ "original": "any",
279
+ "resolved": "any",
280
+ "references": {}
281
+ }
282
+ }];
283
+ }
284
+ static get methods() {
285
+ return {
286
+ "emitCloseEvent": {
287
+ "complexType": {
288
+ "signature": "() => Promise<void>",
289
+ "parameters": [],
290
+ "references": {
291
+ "Promise": {
292
+ "location": "global",
293
+ "id": "global::Promise"
294
+ }
295
+ },
296
+ "return": "Promise<void>"
297
+ },
298
+ "docs": {
299
+ "text": "",
300
+ "tags": []
301
+ }
302
+ },
303
+ "emitPrimaryEvent": {
304
+ "complexType": {
305
+ "signature": "() => Promise<void>",
306
+ "parameters": [],
307
+ "references": {
308
+ "Promise": {
309
+ "location": "global",
310
+ "id": "global::Promise"
311
+ }
312
+ },
313
+ "return": "Promise<void>"
314
+ },
315
+ "docs": {
316
+ "text": "",
317
+ "tags": []
318
+ }
319
+ },
320
+ "emitSecondaryEvent": {
321
+ "complexType": {
322
+ "signature": "() => Promise<void>",
323
+ "parameters": [],
324
+ "references": {
325
+ "Promise": {
326
+ "location": "global",
327
+ "id": "global::Promise"
328
+ }
329
+ },
330
+ "return": "Promise<void>"
331
+ },
332
+ "docs": {
333
+ "text": "",
334
+ "tags": []
335
+ }
336
+ }
337
+ };
338
+ }
339
+ static get elementRef() { return "el"; }
340
+ static get watchers() {
341
+ return [{
342
+ "propName": "open",
343
+ "methodName": "toggleModal"
344
+ }];
345
+ }
346
+ static get listeners() {
347
+ return [{
348
+ "name": "click",
349
+ "method": "handleClick",
350
+ "target": undefined,
351
+ "capture": false,
352
+ "passive": false
353
+ }, {
354
+ "name": "keydown",
355
+ "method": "closeModalOnEscape",
356
+ "target": undefined,
357
+ "capture": false,
358
+ "passive": false
359
+ }];
360
+ }
361
+ }
@@ -1,4 +1,4 @@
1
- const version = "5.7.0-1";
1
+ const version = "5.7.0-10";
2
2
 
3
3
  // PRINT RIPPLE VERSION IN CONSOLE
4
4
  // test envs return 0 for plugin.length
@@ -2424,10 +2424,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2424
2424
  return import(
2425
2425
  /* webpackMode: "lazy" */
2426
2426
  './wm-input.entry.js').then(processMod, consoleError);
2427
- case 'wm-modal':
2428
- return import(
2429
- /* webpackMode: "lazy" */
2430
- './wm-modal.entry.js').then(processMod, consoleError);
2431
2427
  case 'wm-navigator':
2432
2428
  return import(
2433
2429
  /* webpackMode: "lazy" */
@@ -2480,6 +2476,14 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2480
2476
  return import(
2481
2477
  /* webpackMode: "lazy" */
2482
2478
  './wm-option_2.entry.js').then(processMod, consoleError);
2479
+ case 'wm-modal_3':
2480
+ return import(
2481
+ /* webpackMode: "lazy" */
2482
+ './wm-modal_3.entry.js').then(processMod, consoleError);
2483
+ case 'wm-modal-pss_3':
2484
+ return import(
2485
+ /* webpackMode: "lazy" */
2486
+ './wm-modal-pss_3.entry.js').then(processMod, consoleError);
2483
2487
  case 'wm-navigation_3':
2484
2488
  return import(
2485
2489
  /* webpackMode: "lazy" */
@@ -2504,14 +2508,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2504
2508
  return import(
2505
2509
  /* webpackMode: "lazy" */
2506
2510
  './wm-line-chart.entry.js').then(processMod, consoleError);
2507
- case 'wm-modal-footer':
2508
- return import(
2509
- /* webpackMode: "lazy" */
2510
- './wm-modal-footer.entry.js').then(processMod, consoleError);
2511
- case 'wm-modal-header':
2512
- return import(
2513
- /* webpackMode: "lazy" */
2514
- './wm-modal-header.entry.js').then(processMod, consoleError);
2515
2511
  case 'wm-nested-select':
2516
2512
  return import(
2517
2513
  /* webpackMode: "lazy" */