@watermarkinsights/ripple 5.31.1-alpha.2 → 5.31.1-alpha.3
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-f4fb76de.js → app-globals-c21e78ee.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ripple.cjs.js +1 -1
- package/dist/cjs/wm-flyout.cjs.entry.js +13 -24
- package/dist/collection/components/wm-flyout/wm-flyout.css +17 -44
- package/dist/collection/components/wm-flyout/wm-flyout.js +12 -23
- package/dist/docs/docs.json +1 -1
- package/dist/esm/{app-globals-46d6011b.js → app-globals-da7fe8a2.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ripple.js +1 -1
- package/dist/esm/wm-flyout.entry.js +13 -24
- package/dist/esm-es5/{app-globals-46d6011b.js → app-globals-da7fe8a2.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-flyout.entry.js +1 -1
- package/dist/ripple/{p-8be1a33b.js → p-08f8e109.js} +1 -1
- package/dist/ripple/{p-e8b982fc.system.js → p-92d21117.system.js} +1 -1
- package/dist/ripple/{p-b2c2574b.system.entry.js → p-bdad60a6.system.entry.js} +1 -1
- package/dist/ripple/p-c2aaf0b8.entry.js +1 -0
- package/dist/ripple/{p-578a2074.system.js → p-c8288644.system.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/package.json +2 -2
- package/dist/ripple/p-b06aa8ce.entry.js +0 -1
|
@@ -888,17 +888,19 @@
|
|
|
888
888
|
}
|
|
889
889
|
|
|
890
890
|
:host {
|
|
891
|
-
display:
|
|
891
|
+
display: none;
|
|
892
892
|
position: relative;
|
|
893
|
-
inline-size:
|
|
893
|
+
inline-size: 0;
|
|
894
|
+
block-size: 0;
|
|
895
|
+
transition: display 250ms allow-discrete;
|
|
894
896
|
}
|
|
895
897
|
|
|
896
898
|
:host * {
|
|
897
899
|
color: inherit;
|
|
898
900
|
}
|
|
899
901
|
|
|
900
|
-
:host(.
|
|
901
|
-
display:
|
|
902
|
+
:host(.visible) {
|
|
903
|
+
display: block;
|
|
902
904
|
}
|
|
903
905
|
|
|
904
906
|
dialog {
|
|
@@ -925,6 +927,8 @@ dialog {
|
|
|
925
927
|
display: flex;
|
|
926
928
|
flex-direction: column;
|
|
927
929
|
overflow: hidden;
|
|
930
|
+
transform: translateX(100%);
|
|
931
|
+
transition: transform 250ms ease-out, overlay 250ms ease-out allow-discrete, display 250ms ease-out allow-discrete;
|
|
928
932
|
}
|
|
929
933
|
@media (max-width: 33.375rem) {
|
|
930
934
|
dialog {
|
|
@@ -1053,55 +1057,24 @@ dialog .flyout-footer .button-group {
|
|
|
1053
1057
|
}
|
|
1054
1058
|
dialog::backdrop {
|
|
1055
1059
|
background: rgba(25, 25, 25, 0.4);
|
|
1060
|
+
opacity: 0;
|
|
1061
|
+
transition: opacity 250ms ease-out, overlay 250ms ease-out allow-discrete, display 250ms ease-out allow-discrete;
|
|
1056
1062
|
}
|
|
1057
1063
|
dialog:not([open]) {
|
|
1058
1064
|
display: none;
|
|
1059
1065
|
}
|
|
1060
|
-
dialog
|
|
1061
|
-
transform: translateX(
|
|
1062
|
-
animation: slideIn 250ms ease-out forwards;
|
|
1063
|
-
animation-delay: 50ms;
|
|
1064
|
-
}
|
|
1065
|
-
dialog.slide-in::backdrop {
|
|
1066
|
-
animation: fadeIn 50ms ease-out forwards;
|
|
1066
|
+
dialog[open] {
|
|
1067
|
+
transform: translateX(0);
|
|
1067
1068
|
}
|
|
1068
|
-
dialog
|
|
1069
|
-
|
|
1070
|
-
}
|
|
1071
|
-
dialog.slide-out ::backdrop {
|
|
1072
|
-
animation: fadeOut 50ms ease-out forwards;
|
|
1073
|
-
animation-delay: 50ms;
|
|
1069
|
+
dialog[open]::backdrop {
|
|
1070
|
+
opacity: 1;
|
|
1074
1071
|
}
|
|
1075
1072
|
|
|
1076
|
-
@
|
|
1077
|
-
|
|
1078
|
-
transform: translateX(100%);
|
|
1079
|
-
}
|
|
1080
|
-
to {
|
|
1081
|
-
transform: translateX(0);
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
@keyframes slideOut {
|
|
1085
|
-
from {
|
|
1086
|
-
transform: translateX(0);
|
|
1087
|
-
}
|
|
1088
|
-
to {
|
|
1073
|
+
@starting-style {
|
|
1074
|
+
dialog[open] {
|
|
1089
1075
|
transform: translateX(100%);
|
|
1090
1076
|
}
|
|
1091
|
-
|
|
1092
|
-
@keyframes fadeIn {
|
|
1093
|
-
from {
|
|
1094
|
-
opacity: 0;
|
|
1095
|
-
}
|
|
1096
|
-
to {
|
|
1097
|
-
opacity: 1;
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
@keyframes fadeOut {
|
|
1101
|
-
from {
|
|
1102
|
-
opacity: 1;
|
|
1103
|
-
}
|
|
1104
|
-
to {
|
|
1077
|
+
dialog[open]::backdrop {
|
|
1105
1078
|
opacity: 0;
|
|
1106
1079
|
}
|
|
1107
1080
|
}
|
|
@@ -186,9 +186,6 @@ export class Flyout {
|
|
|
186
186
|
this.focusOnOpenEl.focus();
|
|
187
187
|
};
|
|
188
188
|
this.el.style.setProperty("--flyout-width", this.flyoutWidth);
|
|
189
|
-
if (!this.open) {
|
|
190
|
-
this.el.classList.add("collapsed");
|
|
191
|
-
}
|
|
192
189
|
}
|
|
193
190
|
componentDidLoad() {
|
|
194
191
|
// Initialize and attach resize observer
|
|
@@ -241,8 +238,7 @@ export class Flyout {
|
|
|
241
238
|
}
|
|
242
239
|
}
|
|
243
240
|
showFlyout() {
|
|
244
|
-
this.el.classList.
|
|
245
|
-
this.dialogEl.classList.add("slide-in");
|
|
241
|
+
this.el.classList.add("visible");
|
|
246
242
|
this.returnFocusEl = document.activeElement;
|
|
247
243
|
this.initialBodyOverflow = document.body.style.overflow;
|
|
248
244
|
document.body.style.overflow = "hidden"; // Prevents background scrolling
|
|
@@ -251,27 +247,20 @@ export class Flyout {
|
|
|
251
247
|
this.checkBreadcrumbOverflow();
|
|
252
248
|
this.focusOnOpenEl.focus();
|
|
253
249
|
});
|
|
254
|
-
setTimeout(() => {
|
|
255
|
-
this.dialogEl.classList.remove("slide-in");
|
|
256
|
-
}, 300);
|
|
257
250
|
}
|
|
258
251
|
hideFlyout() {
|
|
259
|
-
this.
|
|
252
|
+
this.el.classList.remove("visible");
|
|
253
|
+
document.body.style.overflow = this.initialBodyOverflow; // TypeScript doesn't like that this can be undefined, but we do want to assign undefined if that's what initialBodyOverFlow is set to.
|
|
254
|
+
this.dialogEl.close();
|
|
255
|
+
// Return focus to the trigger once the dialog has closed, if focus fell back to the body.
|
|
260
256
|
setTimeout(() => {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
this.dialogEl.close();
|
|
265
|
-
this.el.classList.add("collapsed");
|
|
266
|
-
setTimeout(() => {
|
|
267
|
-
if (this.returnFocusEl && document.activeElement === document.body) {
|
|
268
|
-
if (this.returnFocusEl.tagName === "WM-MENUITEM") {
|
|
269
|
-
this.returnFocusEl = this.returnFocusEl.parentElement;
|
|
270
|
-
}
|
|
271
|
-
this.returnFocusEl.focus();
|
|
257
|
+
if (this.returnFocusEl && document.activeElement === document.body) {
|
|
258
|
+
if (this.returnFocusEl.tagName === "WM-MENUITEM") {
|
|
259
|
+
this.returnFocusEl = this.returnFocusEl.parentElement;
|
|
272
260
|
}
|
|
273
|
-
|
|
274
|
-
|
|
261
|
+
this.returnFocusEl.focus();
|
|
262
|
+
}
|
|
263
|
+
}, 20);
|
|
275
264
|
}
|
|
276
265
|
renderBreadcrumbList() {
|
|
277
266
|
if (this.breadcrumb) {
|
|
@@ -297,7 +286,7 @@ export class Flyout {
|
|
|
297
286
|
}
|
|
298
287
|
}
|
|
299
288
|
render() {
|
|
300
|
-
return (h(Host, { key: '
|
|
289
|
+
return (h(Host, { key: 'e5a1f831594d2035c2ddd00839fbfe3ce17d09e9' }, h("dialog", { key: '86431cc161af2e84a859b0737d4314f1113201bd', ref: (el) => (this.dialogEl = el), class: "flyout", "aria-labelledby": "heading", onClose: () => this.wmFlyoutCloseTriggered.emit(), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: 'd62ec25438efbc9fba42f228ba5857ccd10a0392', tabindex: "0", class: "focus-trap", onFocus: () => this.lastFocusableEl.focus(), "aria-hidden": "true" }), this.renderHeader(), h("div", { key: 'dc2fd559f5636069314e0753857e59884699cf8a', class: "flyout-content" }, h("slot", { key: '063110f8c5f757c5cd34ec0f6f7a2f5cbd235412' })), this.renderFooter(), h("div", { key: '36d90d2ede3d50c6e0246902f253910b6489056f', tabindex: "0", class: "focus-trap", onFocus: () => this.handleEndBookendFocus(), "aria-hidden": "true" }))));
|
|
301
290
|
}
|
|
302
291
|
static get is() { return "wm-flyout"; }
|
|
303
292
|
static get encapsulation() { return "shadow"; }
|
package/dist/docs/docs.json
CHANGED
package/dist/esm/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as bootstrapLazy } from './index-3425d80d.js';
|
|
2
2
|
export { s as setNonce } from './index-3425d80d.js';
|
|
3
|
-
import { g as globalScripts } from './app-globals-
|
|
3
|
+
import { g as globalScripts } from './app-globals-da7fe8a2.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
package/dist/esm/ripple.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-3425d80d.js';
|
|
2
2
|
export { s as setNonce } from './index-3425d80d.js';
|
|
3
|
-
import { g as globalScripts } from './app-globals-
|
|
3
|
+
import { g as globalScripts } from './app-globals-da7fe8a2.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v4.21.0 | MIT Licensed | https://stenciljs.com
|