@getflip/swirl-components-react 0.7.1 → 0.7.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/{file-manager.entry.dff0abdd.js → file-manager.entry.65fe1cef.js} +1 -1
- package/dist/{flip-action-list-item.entry.66bdb014.js → flip-action-list-item.entry.d8b92a21.js} +1 -1
- package/dist/{flip-action-list-section.entry.35c705bc.js → flip-action-list-section.entry.d7b9fc49.js} +1 -1
- package/dist/{flip-action-list.entry.944f177a.js → flip-action-list.entry.efa5bca0.js} +1 -1
- package/dist/{flip-app-layout_5.entry.680ec977.js → flip-app-layout_5.entry.fa0de175.js} +1 -1
- package/dist/{flip-autocomplete.entry.7841a8c9.js → flip-autocomplete.entry.d6b8f421.js} +1 -1
- package/dist/{flip-avatar-group.entry.438c663c.js → flip-avatar-group.entry.5081ddc8.js} +1 -1
- package/dist/{flip-avatar.entry.247a137e.js → flip-avatar.entry.512e16ea.js} +1 -1
- package/dist/{flip-badge.entry.94d71a7b.js → flip-badge.entry.6b5ed110.js} +1 -1
- package/dist/{flip-banner.entry.40379fc6.js → flip-banner.entry.4c146b6d.js} +1 -1
- package/dist/{flip-button-group.entry.7fb986ed.js → flip-button-group.entry.0c0ae871.js} +1 -1
- package/dist/{flip-button.entry.e36bb8c8.js → flip-button.entry.16872ac7.js} +1 -1
- package/dist/{flip-card.entry.d22db841.js → flip-card.entry.9e93b3d0.js} +1 -1
- package/dist/{flip-checkbox.entry.2e44c52c.js → flip-checkbox.entry.db655955.js} +1 -1
- package/dist/{flip-chip.entry.0bfc8ab0.js → flip-chip.entry.94c513ca.js} +1 -1
- package/dist/flip-console-layout.entry.a403996c.js +66 -0
- package/dist/{flip-date-input.entry.5e298976.js → flip-date-input.entry.d3ceb819.js} +1 -1
- package/dist/{flip-date-picker_2.entry.619a54b8.js → flip-date-picker_2.entry.2c0e6cd8.js} +1 -1
- package/dist/{flip-description-list-item.entry.79300b6c.js → flip-description-list-item.entry.f975f7b0.js} +1 -1
- package/dist/{flip-description-list.entry.70b550c9.js → flip-description-list.entry.14bd0193.js} +1 -1
- package/dist/{flip-dialog.entry.c572dafd.js → flip-dialog.entry.2bd2d709.js} +1 -1
- package/dist/{flip-file-uploader.entry.0b27e755.js → flip-file-uploader.entry.f9aa740b.js} +1 -1
- package/dist/{flip-file-viewer_7.entry.72daacbc.js → flip-file-viewer_7.entry.b9e30a9b.js} +1 -1
- package/dist/{flip-form-control.entry.fe38eadd.js → flip-form-control.entry.903524a3.js} +1 -1
- package/dist/{flip-form-group.entry.f0ffe632.js → flip-form-group.entry.544e8b62.js} +1 -1
- package/dist/{flip-heading_2.entry.a2046123.js → flip-heading_2.entry.729ded86.js} +1 -1
- package/dist/{flip-icon-add-photo.entry.f1b62d1e.js → flip-icon-add-photo.entry.adabaca7.js} +1 -1
- package/dist/{flip-icon-add_4.entry.cf20e99e.js → flip-icon-add_4.entry.2445801c.js} +1 -1
- package/dist/{flip-icon-admin-panel-settings.entry.dc551a12.js → flip-icon-admin-panel-settings.entry.2875eeec.js} +1 -1
- package/dist/{flip-icon-arrow-back.entry.608b9fae.js → flip-icon-arrow-back.entry.65731300.js} +1 -1
- package/dist/{flip-icon-arrow-forward.entry.d8e720bd.js → flip-icon-arrow-forward.entry.e16b1ebf.js} +1 -1
- package/dist/{flip-icon-arrow-left_3.entry.14726ff3.js → flip-icon-arrow-left_3.entry.ab9a0b4b.js} +1 -1
- package/dist/{flip-icon-arrow-right-small.entry.ac422698.js → flip-icon-arrow-right-small.entry.f40fbfd2.js} +1 -1
- package/dist/{flip-icon-attachment.entry.e1fb148b.js → flip-icon-attachment.entry.e15f7597.js} +1 -1
- package/dist/{flip-icon-block.entry.6671ad04.js → flip-icon-block.entry.f930c84b.js} +1 -1
- package/dist/{flip-icon-cancel_4.entry.e5b9ca80.js → flip-icon-cancel_4.entry.d3250ea3.js} +1 -1
- package/dist/{flip-icon-chat-bubble.entry.a32785be.js → flip-icon-chat-bubble.entry.bef3e503.js} +1 -1
- package/dist/{flip-icon-check-circle.entry.f76dab5d.js → flip-icon-check-circle.entry.0fb7d65f.js} +1 -1
- package/dist/{flip-icon-check-small_3.entry.05b9e155.js → flip-icon-check-small_3.entry.be416fc8.js} +1 -1
- package/dist/{flip-icon-check-strong.entry.df9f3f01.js → flip-icon-check-strong.entry.5f2cc583.js} +1 -1
- package/dist/{flip-icon-check.entry.ce9974c3.js → flip-icon-check.entry.0ae4c059.js} +1 -1
- package/dist/{flip-icon-chevron-left.entry.20fa4ec0.js → flip-icon-chevron-left.entry.6f4112a8.js} +1 -1
- package/dist/{flip-icon-chevron-right.entry.3a865257.js → flip-icon-chevron-right.entry.b8e36d26.js} +1 -1
- package/dist/{flip-icon-close-small.entry.4a2575a1.js → flip-icon-close-small.entry.25292cfb.js} +1 -1
- package/dist/{flip-icon-close.entry.796a27b4.js → flip-icon-close.entry.7dc0226a.js} +1 -1
- package/dist/{flip-icon-cloud-upload.entry.7c9b98b6.js → flip-icon-cloud-upload.entry.cd05fbf8.js} +1 -1
- package/dist/{flip-icon-comment.entry.5cc0c42a.js → flip-icon-comment.entry.afcde770.js} +1 -1
- package/dist/{flip-icon-copy.entry.6cbb5b0c.js → flip-icon-copy.entry.c3e314e9.js} +1 -1
- package/dist/{flip-icon-date-range.entry.a22d3b7e.js → flip-icon-date-range.entry.a8b3c482.js} +1 -1
- package/dist/{flip-icon-delete.entry.60fc558d.js → flip-icon-delete.entry.032166e8.js} +1 -1
- package/dist/{flip-icon-description.entry.fb3f2d08.js → flip-icon-description.entry.e8bac067.js} +1 -1
- package/dist/{flip-icon-edit.entry.95307167.js → flip-icon-edit.entry.49d08746.js} +1 -1
- package/dist/{flip-icon-emoji-mood.entry.e4718966.js → flip-icon-emoji-mood.entry.919a40ca.js} +1 -1
- package/dist/{flip-icon-emoji-satisfied.entry.7fb92967.js → flip-icon-emoji-satisfied.entry.8cd5e1fe.js} +1 -1
- package/dist/{flip-icon-error_3.entry.02e88f79.js → flip-icon-error_3.entry.347b6f7c.js} +1 -1
- package/dist/{flip-icon-expand-more.entry.145b32d1.js → flip-icon-expand-more.entry.83bd89c9.js} +1 -1
- package/dist/{flip-icon-file.entry.048e0950.js → flip-icon-file.entry.84e1203b.js} +1 -1
- package/dist/{flip-icon-folder-shared.entry.8b7a1483.js → flip-icon-folder-shared.entry.9ee29775.js} +1 -1
- package/dist/{flip-icon-group-assign.entry.cfb05886.js → flip-icon-group-assign.entry.91200686.js} +1 -1
- package/dist/{flip-icon-groups-custom.entry.5d38d793.js → flip-icon-groups-custom.entry.4923a160.js} +1 -1
- package/dist/{flip-icon-groups.entry.fa819a32.js → flip-icon-groups.entry.d7efffef.js} +1 -1
- package/dist/{flip-icon-help.entry.58767a86.js → flip-icon-help.entry.cacd7cf3.js} +1 -1
- package/dist/{flip-icon-image.entry.df3ab350.js → flip-icon-image.entry.b33dce1d.js} +1 -1
- package/dist/{flip-icon-info.entry.c3c866ae.js → flip-icon-info.entry.c2d6ea1f.js} +1 -1
- package/dist/{flip-icon-inventory.entry.7bf13bc9.js → flip-icon-inventory.entry.0cc9c967.js} +1 -1
- package/dist/{flip-icon-like.entry.b88e6aec.js → flip-icon-like.entry.333e5ed6.js} +1 -1
- package/dist/{flip-icon-link.entry.740f4fbb.js → flip-icon-link.entry.dfecf480.js} +1 -1
- package/dist/{flip-icon-lock.entry.d48359f3.js → flip-icon-lock.entry.b04de1c8.js} +1 -1
- package/dist/{flip-icon-logout.entry.ef6e7ca7.js → flip-icon-logout.entry.d0928560.js} +1 -1
- package/dist/{flip-icon-mail.entry.8572dc81.js → flip-icon-mail.entry.ffaf3da5.js} +1 -1
- package/dist/{flip-icon-manage-accounts.entry.30640ba4.js → flip-icon-manage-accounts.entry.ef190a0f.js} +1 -1
- package/dist/{flip-icon-mention.entry.2c3290d1.js → flip-icon-mention.entry.557008b7.js} +1 -1
- package/dist/{flip-icon-menu.entry.6a65bc82.js → flip-icon-menu.entry.e85679e8.js} +1 -1
- package/dist/{flip-icon-message.entry.be906225.js → flip-icon-message.entry.b7fed9e5.js} +1 -1
- package/dist/{flip-icon-more-horizontal.entry.a0486c36.js → flip-icon-more-horizontal.entry.e5a3ea15.js} +1 -1
- package/dist/{flip-icon-more-vertikal.entry.2bf322a6.js → flip-icon-more-vertikal.entry.2a9ad437.js} +1 -1
- package/dist/{flip-icon-notifications-active.entry.7afd21e7.js → flip-icon-notifications-active.entry.99c79b31.js} +1 -1
- package/dist/{flip-icon-notifications-off.entry.ed1a4a71.js → flip-icon-notifications-off.entry.087eee6c.js} +1 -1
- package/dist/{flip-icon-notifications.entry.e456f63a.js → flip-icon-notifications.entry.75507b0f.js} +1 -1
- package/dist/{flip-icon-open-in-new.entry.0c95f414.js → flip-icon-open-in-new.entry.d2ccc647.js} +1 -1
- package/dist/{flip-icon-people-alt.entry.16ac8c4a.js → flip-icon-people-alt.entry.3e978b91.js} +1 -1
- package/dist/{flip-icon-person-off.entry.6b97d497.js → flip-icon-person-off.entry.c65c669c.js} +1 -1
- package/dist/{flip-icon-person.entry.1d5c59d9.js → flip-icon-person.entry.14dcdf33.js} +1 -1
- package/dist/{flip-icon-phone.entry.46a9063b.js → flip-icon-phone.entry.83df9b21.js} +1 -1
- package/dist/{flip-icon-poll.entry.04e62409.js → flip-icon-poll.entry.56531b42.js} +1 -1
- package/dist/{flip-icon-print.entry.9585bb63.js → flip-icon-print.entry.20704e7d.js} +1 -1
- package/dist/{flip-icon-recieved.entry.c133e51b.js → flip-icon-recieved.entry.23ae5dcf.js} +1 -1
- package/dist/{flip-icon-search-strong.entry.cc46122a.js → flip-icon-search-strong.entry.dcdf8aac.js} +1 -1
- package/dist/{flip-icon-search.entry.f9a3de1c.js → flip-icon-search.entry.9f0ca998.js} +1 -1
- package/dist/{flip-icon-send.entry.e9912707.js → flip-icon-send.entry.6e928385.js} +1 -1
- package/dist/{flip-icon-settings.entry.82467c7d.js → flip-icon-settings.entry.56dd2b7c.js} +1 -1
- package/dist/{flip-icon-time-filled.entry.ad3697c1.js → flip-icon-time-filled.entry.5f9e8691.js} +1 -1
- package/dist/{flip-icon-time-outlined.entry.5032089c.js → flip-icon-time-outlined.entry.e95edc18.js} +1 -1
- package/dist/{flip-icon-user-assign.entry.5840954d.js → flip-icon-user-assign.entry.a447a5bf.js} +1 -1
- package/dist/{flip-icon-video-camera.entry.3f6faf56.js → flip-icon-video-camera.entry.872a0778.js} +1 -1
- package/dist/{flip-icon-warning.entry.e8d27832.js → flip-icon-warning.entry.3b4b498b.js} +1 -1
- package/dist/{flip-lightbox.entry.f5984107.js → flip-lightbox.entry.a365d150.js} +1 -1
- package/dist/{flip-link.entry.aec4967a.js → flip-link.entry.71ce7ffa.js} +1 -1
- package/dist/{flip-list.entry.3269ee9b.js → flip-list.entry.78c3335a.js} +1 -1
- package/dist/{flip-modal.entry.a22251ba.js → flip-modal.entry.968eaf78.js} +1 -1
- package/dist/{flip-option-list-section.entry.66f0d1b3.js → flip-option-list-section.entry.ca80c49a.js} +1 -1
- package/dist/{flip-pagination.entry.412a59be.js → flip-pagination.entry.2c2cfb55.js} +1 -1
- package/dist/{flip-pdf-reader.entry.91dcce71.js → flip-pdf-reader.entry.c71b60c1.js} +1 -1
- package/dist/{flip-popover.entry.076eb9e8.js → flip-popover.entry.8f8dac79.js} +2 -2
- package/dist/{flip-progress-indicator.entry.e0d41dde.js → flip-progress-indicator.entry.05736959.js} +1 -1
- package/dist/{flip-radio-group.entry.884e1462.js → flip-radio-group.entry.a11b5a93.js} +1 -1
- package/dist/{flip-radio.entry.1dafac3f.js → flip-radio.entry.84bb94a7.js} +1 -1
- package/dist/{flip-resource-list-file-item.entry.82bd5f91.js → flip-resource-list-file-item.entry.a8fadde5.js} +1 -1
- package/dist/{flip-search.entry.02b70258.js → flip-search.entry.7df4071f.js} +1 -1
- package/dist/{flip-select.entry.8bddb12d.js → flip-select.entry.55c239db.js} +1 -1
- package/dist/{flip-stack.entry.8770879c.js → flip-stack.entry.c5e33fce.js} +1 -1
- package/dist/{flip-switch.entry.4b84e15d.js → flip-switch.entry.81115abc.js} +1 -1
- package/dist/{flip-tab.entry.902c4cd7.js → flip-tab.entry.5e897159.js} +1 -1
- package/dist/{flip-tabs.entry.e54fa22c.js → flip-tabs.entry.acbc4ea9.js} +1 -1
- package/dist/{flip-tag.entry.44859033.js → flip-tag.entry.6ae392fe.js} +1 -1
- package/dist/{flip-text-input.entry.4fe4deab.js → flip-text-input.entry.dd3812f6.js} +1 -1
- package/dist/{flip-theme-provider.entry.701f2c5a.js → flip-theme-provider.entry.0ba37fb4.js} +1 -1
- package/dist/{flip-thumbnail.entry.76dd0d54.js → flip-thumbnail.entry.5d5e0879.js} +1 -1
- package/dist/{flip-toast-provider.entry.dda08792.js → flip-toast-provider.entry.1bc37bac.js} +1 -1
- package/dist/{flip-toast.entry.bcbdcddc.js → flip-toast.entry.924ce25b.js} +1 -1
- package/dist/{flip-tooltip.entry.a0d49f3a.js → flip-tooltip.entry.904fb36c.js} +1 -1
- package/dist/{flip-tree-navigation-item.entry.483b66ed.js → flip-tree-navigation-item.entry.8873a27c.js} +1 -1
- package/dist/{flip-video-thumbnail.entry.25379073.js → flip-video-thumbnail.entry.bbab0fea.js} +1 -1
- package/dist/{flip-visually-hidden.entry.dcf11082.js → flip-visually-hidden.entry.ced271bc.js} +1 -1
- package/dist/{index.753500cb.js → index.6df4b8e0.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +37 -43
- package/package.json +2 -2
- package/dist/flip-console-layout.entry.6f13ba0a.js +0 -521
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-components-react",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build": "tsc && vite build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@getflip/swirl-components": "^0.8.
|
|
21
|
+
"@getflip/swirl-components": "^0.8.2",
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|
|
@@ -1,521 +0,0 @@
|
|
|
1
|
-
import { r as oe, c as U, h as u, H as se, g as le } from "./index.753500cb.js";
|
|
2
|
-
import { c as ce } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import { i as F } from "./utils-39b2afe8.37b54ba4.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "react-dom";
|
|
6
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
7
|
-
/*!
|
|
8
|
-
* tabbable 6.0.1
|
|
9
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
10
|
-
*/
|
|
11
|
-
var X = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(slot)", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])', "details>summary:first-of-type", "details"], D = /* @__PURE__ */ X.join(","), J = typeof Element > "u", T = J ? function() {
|
|
12
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, L = !J && Element.prototype.getRootNode ? function(r) {
|
|
13
|
-
return r.getRootNode();
|
|
14
|
-
} : function(r) {
|
|
15
|
-
return r.ownerDocument;
|
|
16
|
-
}, Q = function(e, t, a) {
|
|
17
|
-
var s = Array.prototype.slice.apply(e.querySelectorAll(D));
|
|
18
|
-
return t && T.call(e, D) && s.unshift(e), s = s.filter(a), s;
|
|
19
|
-
}, ee = function r(e, t, a) {
|
|
20
|
-
for (var s = [], l = Array.from(e); l.length; ) {
|
|
21
|
-
var i = l.shift();
|
|
22
|
-
if (i.tagName === "SLOT") {
|
|
23
|
-
var d = i.assignedElements(), h = d.length ? d : i.children, g = r(h, !0, a);
|
|
24
|
-
a.flatten ? s.push.apply(s, g) : s.push({
|
|
25
|
-
scopeParent: i,
|
|
26
|
-
candidates: g
|
|
27
|
-
});
|
|
28
|
-
} else {
|
|
29
|
-
var C = T.call(i, D);
|
|
30
|
-
C && a.filter(i) && (t || !e.includes(i)) && s.push(i);
|
|
31
|
-
var y = i.shadowRoot || typeof a.getShadowRoot == "function" && a.getShadowRoot(i), _ = !a.shadowRootFilter || a.shadowRootFilter(i);
|
|
32
|
-
if (y && _) {
|
|
33
|
-
var w = r(y === !0 ? i.children : y.children, !0, a);
|
|
34
|
-
a.flatten ? s.push.apply(s, w) : s.push({
|
|
35
|
-
scopeParent: i,
|
|
36
|
-
candidates: w
|
|
37
|
-
});
|
|
38
|
-
} else
|
|
39
|
-
l.unshift.apply(l, i.children);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return s;
|
|
43
|
-
}, te = function(e, t) {
|
|
44
|
-
return e.tabIndex < 0 && (t || /^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || e.isContentEditable) && isNaN(parseInt(e.getAttribute("tabindex"), 10)) ? 0 : e.tabIndex;
|
|
45
|
-
}, ue = function(e, t) {
|
|
46
|
-
return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex;
|
|
47
|
-
}, ae = function(e) {
|
|
48
|
-
return e.tagName === "INPUT";
|
|
49
|
-
}, de = function(e) {
|
|
50
|
-
return ae(e) && e.type === "hidden";
|
|
51
|
-
}, fe = function(e) {
|
|
52
|
-
var t = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(a) {
|
|
53
|
-
return a.tagName === "SUMMARY";
|
|
54
|
-
});
|
|
55
|
-
return t;
|
|
56
|
-
}, be = function(e, t) {
|
|
57
|
-
for (var a = 0; a < e.length; a++)
|
|
58
|
-
if (e[a].checked && e[a].form === t)
|
|
59
|
-
return e[a];
|
|
60
|
-
}, ve = function(e) {
|
|
61
|
-
if (!e.name)
|
|
62
|
-
return !0;
|
|
63
|
-
var t = e.form || L(e), a = function(d) {
|
|
64
|
-
return t.querySelectorAll('input[type="radio"][name="' + d + '"]');
|
|
65
|
-
}, s;
|
|
66
|
-
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
67
|
-
s = a(window.CSS.escape(e.name));
|
|
68
|
-
else
|
|
69
|
-
try {
|
|
70
|
-
s = a(e.name);
|
|
71
|
-
} catch (i) {
|
|
72
|
-
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", i.message), !1;
|
|
73
|
-
}
|
|
74
|
-
var l = be(s, e.form);
|
|
75
|
-
return !l || l === e;
|
|
76
|
-
}, he = function(e) {
|
|
77
|
-
return ae(e) && e.type === "radio";
|
|
78
|
-
}, pe = function(e) {
|
|
79
|
-
return he(e) && !ve(e);
|
|
80
|
-
}, ge = function(e) {
|
|
81
|
-
for (var t, a = L(e).host, s = !!((t = a) !== null && t !== void 0 && t.ownerDocument.contains(a) || e.ownerDocument.contains(e)); !s && a; ) {
|
|
82
|
-
var l;
|
|
83
|
-
a = L(a).host, s = !!((l = a) !== null && l !== void 0 && l.ownerDocument.contains(a));
|
|
84
|
-
}
|
|
85
|
-
return s;
|
|
86
|
-
}, V = function(e) {
|
|
87
|
-
var t = e.getBoundingClientRect(), a = t.width, s = t.height;
|
|
88
|
-
return a === 0 && s === 0;
|
|
89
|
-
}, me = function(e, t) {
|
|
90
|
-
var a = t.displayCheck, s = t.getShadowRoot;
|
|
91
|
-
if (getComputedStyle(e).visibility === "hidden")
|
|
92
|
-
return !0;
|
|
93
|
-
var l = T.call(e, "details>summary:first-of-type"), i = l ? e.parentElement : e;
|
|
94
|
-
if (T.call(i, "details:not([open]) *"))
|
|
95
|
-
return !0;
|
|
96
|
-
if (!a || a === "full" || a === "legacy-full") {
|
|
97
|
-
if (typeof s == "function") {
|
|
98
|
-
for (var d = e; e; ) {
|
|
99
|
-
var h = e.parentElement, g = L(e);
|
|
100
|
-
if (h && !h.shadowRoot && s(h) === !0)
|
|
101
|
-
return V(e);
|
|
102
|
-
e.assignedSlot ? e = e.assignedSlot : !h && g !== e.ownerDocument ? e = g.host : e = h;
|
|
103
|
-
}
|
|
104
|
-
e = d;
|
|
105
|
-
}
|
|
106
|
-
if (ge(e))
|
|
107
|
-
return !e.getClientRects().length;
|
|
108
|
-
if (a !== "legacy-full")
|
|
109
|
-
return !0;
|
|
110
|
-
} else if (a === "non-zero-area")
|
|
111
|
-
return V(e);
|
|
112
|
-
return !1;
|
|
113
|
-
}, ye = function(e) {
|
|
114
|
-
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
115
|
-
for (var t = e.parentElement; t; ) {
|
|
116
|
-
if (t.tagName === "FIELDSET" && t.disabled) {
|
|
117
|
-
for (var a = 0; a < t.children.length; a++) {
|
|
118
|
-
var s = t.children.item(a);
|
|
119
|
-
if (s.tagName === "LEGEND")
|
|
120
|
-
return T.call(t, "fieldset[disabled] *") ? !0 : !s.contains(e);
|
|
121
|
-
}
|
|
122
|
-
return !0;
|
|
123
|
-
}
|
|
124
|
-
t = t.parentElement;
|
|
125
|
-
}
|
|
126
|
-
return !1;
|
|
127
|
-
}, R = function(e, t) {
|
|
128
|
-
return !(t.disabled || de(t) || me(t, e) || fe(t) || ye(t));
|
|
129
|
-
}, P = function(e, t) {
|
|
130
|
-
return !(pe(t) || te(t) < 0 || !R(e, t));
|
|
131
|
-
}, we = function(e) {
|
|
132
|
-
var t = parseInt(e.getAttribute("tabindex"), 10);
|
|
133
|
-
return !!(isNaN(t) || t >= 0);
|
|
134
|
-
}, ke = function r(e) {
|
|
135
|
-
var t = [], a = [];
|
|
136
|
-
return e.forEach(function(s, l) {
|
|
137
|
-
var i = !!s.scopeParent, d = i ? s.scopeParent : s, h = te(d, i), g = i ? r(s.candidates) : d;
|
|
138
|
-
h === 0 ? i ? t.push.apply(t, g) : t.push(d) : a.push({
|
|
139
|
-
documentOrder: l,
|
|
140
|
-
tabIndex: h,
|
|
141
|
-
item: s,
|
|
142
|
-
isScope: i,
|
|
143
|
-
content: g
|
|
144
|
-
});
|
|
145
|
-
}), a.sort(ue).reduce(function(s, l) {
|
|
146
|
-
return l.isScope ? s.push.apply(s, l.content) : s.push(l.content), s;
|
|
147
|
-
}, []).concat(t);
|
|
148
|
-
}, Ce = function(e, t) {
|
|
149
|
-
t = t || {};
|
|
150
|
-
var a;
|
|
151
|
-
return t.getShadowRoot ? a = ee([e], t.includeContainer, {
|
|
152
|
-
filter: P.bind(null, t),
|
|
153
|
-
flatten: !1,
|
|
154
|
-
getShadowRoot: t.getShadowRoot,
|
|
155
|
-
shadowRootFilter: we
|
|
156
|
-
}) : a = Q(e, t.includeContainer, P.bind(null, t)), ke(a);
|
|
157
|
-
}, _e = function(e, t) {
|
|
158
|
-
t = t || {};
|
|
159
|
-
var a;
|
|
160
|
-
return t.getShadowRoot ? a = ee([e], t.includeContainer, {
|
|
161
|
-
filter: R.bind(null, t),
|
|
162
|
-
flatten: !0,
|
|
163
|
-
getShadowRoot: t.getShadowRoot
|
|
164
|
-
}) : a = Q(e, t.includeContainer, R.bind(null, t)), a;
|
|
165
|
-
}, E = function(e, t) {
|
|
166
|
-
if (t = t || {}, !e)
|
|
167
|
-
throw new Error("No node provided");
|
|
168
|
-
return T.call(e, D) === !1 ? !1 : P(t, e);
|
|
169
|
-
}, Te = /* @__PURE__ */ X.concat("iframe").join(","), O = function(e, t) {
|
|
170
|
-
if (t = t || {}, !e)
|
|
171
|
-
throw new Error("No node provided");
|
|
172
|
-
return T.call(e, Te) === !1 ? !1 : R(t, e);
|
|
173
|
-
};
|
|
174
|
-
/*!
|
|
175
|
-
* focus-trap 7.1.0
|
|
176
|
-
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
177
|
-
*/
|
|
178
|
-
function Z(r, e) {
|
|
179
|
-
var t = Object.keys(r);
|
|
180
|
-
if (Object.getOwnPropertySymbols) {
|
|
181
|
-
var a = Object.getOwnPropertySymbols(r);
|
|
182
|
-
e && (a = a.filter(function(s) {
|
|
183
|
-
return Object.getOwnPropertyDescriptor(r, s).enumerable;
|
|
184
|
-
})), t.push.apply(t, a);
|
|
185
|
-
}
|
|
186
|
-
return t;
|
|
187
|
-
}
|
|
188
|
-
function z(r) {
|
|
189
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
190
|
-
var t = arguments[e] != null ? arguments[e] : {};
|
|
191
|
-
e % 2 ? Z(Object(t), !0).forEach(function(a) {
|
|
192
|
-
Se(r, a, t[a]);
|
|
193
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Z(Object(t)).forEach(function(a) {
|
|
194
|
-
Object.defineProperty(r, a, Object.getOwnPropertyDescriptor(t, a));
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
return r;
|
|
198
|
-
}
|
|
199
|
-
function Se(r, e, t) {
|
|
200
|
-
return e in r ? Object.defineProperty(r, e, {
|
|
201
|
-
value: t,
|
|
202
|
-
enumerable: !0,
|
|
203
|
-
configurable: !0,
|
|
204
|
-
writable: !0
|
|
205
|
-
}) : r[e] = t, r;
|
|
206
|
-
}
|
|
207
|
-
var xe = [], W = {
|
|
208
|
-
activateTrap: function(e, t) {
|
|
209
|
-
if (e.length > 0) {
|
|
210
|
-
var a = e[e.length - 1];
|
|
211
|
-
a !== t && a.pause();
|
|
212
|
-
}
|
|
213
|
-
var s = e.indexOf(t);
|
|
214
|
-
s === -1 || e.splice(s, 1), e.push(t);
|
|
215
|
-
},
|
|
216
|
-
deactivateTrap: function(e, t) {
|
|
217
|
-
var a = e.indexOf(t);
|
|
218
|
-
a !== -1 && e.splice(a, 1), e.length > 0 && e[e.length - 1].unpause();
|
|
219
|
-
}
|
|
220
|
-
}, Ne = function(e) {
|
|
221
|
-
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
222
|
-
}, Fe = function(e) {
|
|
223
|
-
return e.key === "Escape" || e.key === "Esc" || e.keyCode === 27;
|
|
224
|
-
}, Ee = function(e) {
|
|
225
|
-
return e.key === "Tab" || e.keyCode === 9;
|
|
226
|
-
}, Y = function(e) {
|
|
227
|
-
return setTimeout(e, 0);
|
|
228
|
-
}, $ = function(e, t) {
|
|
229
|
-
var a = -1;
|
|
230
|
-
return e.every(function(s, l) {
|
|
231
|
-
return t(s) ? (a = l, !1) : !0;
|
|
232
|
-
}), a;
|
|
233
|
-
}, x = function(e) {
|
|
234
|
-
for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
235
|
-
a[s - 1] = arguments[s];
|
|
236
|
-
return typeof e == "function" ? e.apply(void 0, a) : e;
|
|
237
|
-
}, A = function(e) {
|
|
238
|
-
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
239
|
-
}, Ae = function(e, t) {
|
|
240
|
-
var a = (t == null ? void 0 : t.document) || document, s = (t == null ? void 0 : t.trapStack) || xe, l = z({
|
|
241
|
-
returnFocusOnDeactivate: !0,
|
|
242
|
-
escapeDeactivates: !0,
|
|
243
|
-
delayInitialFocus: !0
|
|
244
|
-
}, t), i = {
|
|
245
|
-
containers: [],
|
|
246
|
-
containerGroups: [],
|
|
247
|
-
tabbableGroups: [],
|
|
248
|
-
nodeFocusedBeforeActivation: null,
|
|
249
|
-
mostRecentlyFocusedNode: null,
|
|
250
|
-
active: !1,
|
|
251
|
-
paused: !1,
|
|
252
|
-
delayInitialFocusTimer: void 0
|
|
253
|
-
}, d, h = function(n, o, c) {
|
|
254
|
-
return n && n[o] !== void 0 ? n[o] : l[c || o];
|
|
255
|
-
}, g = function(n) {
|
|
256
|
-
return i.containerGroups.findIndex(function(o) {
|
|
257
|
-
var c = o.container, v = o.tabbableNodes;
|
|
258
|
-
return c.contains(n) || v.find(function(f) {
|
|
259
|
-
return f === n;
|
|
260
|
-
});
|
|
261
|
-
});
|
|
262
|
-
}, C = function(n) {
|
|
263
|
-
var o = l[n];
|
|
264
|
-
if (typeof o == "function") {
|
|
265
|
-
for (var c = arguments.length, v = new Array(c > 1 ? c - 1 : 0), f = 1; f < c; f++)
|
|
266
|
-
v[f - 1] = arguments[f];
|
|
267
|
-
o = o.apply(void 0, v);
|
|
268
|
-
}
|
|
269
|
-
if (o === !0 && (o = void 0), !o) {
|
|
270
|
-
if (o === void 0 || o === !1)
|
|
271
|
-
return o;
|
|
272
|
-
throw new Error("`".concat(n, "` was specified but was not a node, or did not return a node"));
|
|
273
|
-
}
|
|
274
|
-
var p = o;
|
|
275
|
-
if (typeof o == "string" && (p = a.querySelector(o), !p))
|
|
276
|
-
throw new Error("`".concat(n, "` as selector refers to no known node"));
|
|
277
|
-
return p;
|
|
278
|
-
}, y = function() {
|
|
279
|
-
var n = C("initialFocus");
|
|
280
|
-
if (n === !1)
|
|
281
|
-
return !1;
|
|
282
|
-
if (n === void 0)
|
|
283
|
-
if (g(a.activeElement) >= 0)
|
|
284
|
-
n = a.activeElement;
|
|
285
|
-
else {
|
|
286
|
-
var o = i.tabbableGroups[0], c = o && o.firstTabbableNode;
|
|
287
|
-
n = c || C("fallbackFocus");
|
|
288
|
-
}
|
|
289
|
-
if (!n)
|
|
290
|
-
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
291
|
-
return n;
|
|
292
|
-
}, _ = function() {
|
|
293
|
-
if (i.containerGroups = i.containers.map(function(n) {
|
|
294
|
-
var o = Ce(n, l.tabbableOptions), c = _e(n, l.tabbableOptions);
|
|
295
|
-
return {
|
|
296
|
-
container: n,
|
|
297
|
-
tabbableNodes: o,
|
|
298
|
-
focusableNodes: c,
|
|
299
|
-
firstTabbableNode: o.length > 0 ? o[0] : null,
|
|
300
|
-
lastTabbableNode: o.length > 0 ? o[o.length - 1] : null,
|
|
301
|
-
nextTabbableNode: function(f) {
|
|
302
|
-
var p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, m = c.findIndex(function(k) {
|
|
303
|
-
return k === f;
|
|
304
|
-
});
|
|
305
|
-
if (!(m < 0))
|
|
306
|
-
return p ? c.slice(m + 1).find(function(k) {
|
|
307
|
-
return E(k, l.tabbableOptions);
|
|
308
|
-
}) : c.slice(0, m).reverse().find(function(k) {
|
|
309
|
-
return E(k, l.tabbableOptions);
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
}), i.tabbableGroups = i.containerGroups.filter(function(n) {
|
|
314
|
-
return n.tabbableNodes.length > 0;
|
|
315
|
-
}), i.tabbableGroups.length <= 0 && !C("fallbackFocus"))
|
|
316
|
-
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
317
|
-
}, w = function b(n) {
|
|
318
|
-
if (n !== !1 && n !== a.activeElement) {
|
|
319
|
-
if (!n || !n.focus) {
|
|
320
|
-
b(y());
|
|
321
|
-
return;
|
|
322
|
-
}
|
|
323
|
-
n.focus({
|
|
324
|
-
preventScroll: !!l.preventScroll
|
|
325
|
-
}), i.mostRecentlyFocusedNode = n, Ne(n) && n.select();
|
|
326
|
-
}
|
|
327
|
-
}, M = function(n) {
|
|
328
|
-
var o = C("setReturnFocus", n);
|
|
329
|
-
return o || (o === !1 ? !1 : n);
|
|
330
|
-
}, N = function(n) {
|
|
331
|
-
var o = A(n);
|
|
332
|
-
if (!(g(o) >= 0)) {
|
|
333
|
-
if (x(l.clickOutsideDeactivates, n)) {
|
|
334
|
-
d.deactivate({
|
|
335
|
-
returnFocus: l.returnFocusOnDeactivate && !O(o, l.tabbableOptions)
|
|
336
|
-
});
|
|
337
|
-
return;
|
|
338
|
-
}
|
|
339
|
-
x(l.allowOutsideClick, n) || n.preventDefault();
|
|
340
|
-
}
|
|
341
|
-
}, H = function(n) {
|
|
342
|
-
var o = A(n), c = g(o) >= 0;
|
|
343
|
-
c || o instanceof Document ? c && (i.mostRecentlyFocusedNode = o) : (n.stopImmediatePropagation(), w(i.mostRecentlyFocusedNode || y()));
|
|
344
|
-
}, ie = function(n) {
|
|
345
|
-
var o = A(n);
|
|
346
|
-
_();
|
|
347
|
-
var c = null;
|
|
348
|
-
if (i.tabbableGroups.length > 0) {
|
|
349
|
-
var v = g(o), f = v >= 0 ? i.containerGroups[v] : void 0;
|
|
350
|
-
if (v < 0)
|
|
351
|
-
n.shiftKey ? c = i.tabbableGroups[i.tabbableGroups.length - 1].lastTabbableNode : c = i.tabbableGroups[0].firstTabbableNode;
|
|
352
|
-
else if (n.shiftKey) {
|
|
353
|
-
var p = $(i.tabbableGroups, function(B) {
|
|
354
|
-
var I = B.firstTabbableNode;
|
|
355
|
-
return o === I;
|
|
356
|
-
});
|
|
357
|
-
if (p < 0 && (f.container === o || O(o, l.tabbableOptions) && !E(o, l.tabbableOptions) && !f.nextTabbableNode(o, !1)) && (p = v), p >= 0) {
|
|
358
|
-
var m = p === 0 ? i.tabbableGroups.length - 1 : p - 1, k = i.tabbableGroups[m];
|
|
359
|
-
c = k.lastTabbableNode;
|
|
360
|
-
}
|
|
361
|
-
} else {
|
|
362
|
-
var S = $(i.tabbableGroups, function(B) {
|
|
363
|
-
var I = B.lastTabbableNode;
|
|
364
|
-
return o === I;
|
|
365
|
-
});
|
|
366
|
-
if (S < 0 && (f.container === o || O(o, l.tabbableOptions) && !E(o, l.tabbableOptions) && !f.nextTabbableNode(o)) && (S = v), S >= 0) {
|
|
367
|
-
var re = S === i.tabbableGroups.length - 1 ? 0 : S + 1, ne = i.tabbableGroups[re];
|
|
368
|
-
c = ne.firstTabbableNode;
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
} else
|
|
372
|
-
c = C("fallbackFocus");
|
|
373
|
-
c && (n.preventDefault(), w(c));
|
|
374
|
-
}, j = function(n) {
|
|
375
|
-
if (Fe(n) && x(l.escapeDeactivates, n) !== !1) {
|
|
376
|
-
n.preventDefault(), d.deactivate();
|
|
377
|
-
return;
|
|
378
|
-
}
|
|
379
|
-
if (Ee(n)) {
|
|
380
|
-
ie(n);
|
|
381
|
-
return;
|
|
382
|
-
}
|
|
383
|
-
}, q = function(n) {
|
|
384
|
-
var o = A(n);
|
|
385
|
-
g(o) >= 0 || x(l.clickOutsideDeactivates, n) || x(l.allowOutsideClick, n) || (n.preventDefault(), n.stopImmediatePropagation());
|
|
386
|
-
}, G = function() {
|
|
387
|
-
if (!!i.active)
|
|
388
|
-
return W.activateTrap(s, d), i.delayInitialFocusTimer = l.delayInitialFocus ? Y(function() {
|
|
389
|
-
w(y());
|
|
390
|
-
}) : w(y()), a.addEventListener("focusin", H, !0), a.addEventListener("mousedown", N, {
|
|
391
|
-
capture: !0,
|
|
392
|
-
passive: !1
|
|
393
|
-
}), a.addEventListener("touchstart", N, {
|
|
394
|
-
capture: !0,
|
|
395
|
-
passive: !1
|
|
396
|
-
}), a.addEventListener("click", q, {
|
|
397
|
-
capture: !0,
|
|
398
|
-
passive: !1
|
|
399
|
-
}), a.addEventListener("keydown", j, {
|
|
400
|
-
capture: !0,
|
|
401
|
-
passive: !1
|
|
402
|
-
}), d;
|
|
403
|
-
}, K = function() {
|
|
404
|
-
if (!!i.active)
|
|
405
|
-
return a.removeEventListener("focusin", H, !0), a.removeEventListener("mousedown", N, !0), a.removeEventListener("touchstart", N, !0), a.removeEventListener("click", q, !0), a.removeEventListener("keydown", j, !0), d;
|
|
406
|
-
};
|
|
407
|
-
return d = {
|
|
408
|
-
get active() {
|
|
409
|
-
return i.active;
|
|
410
|
-
},
|
|
411
|
-
get paused() {
|
|
412
|
-
return i.paused;
|
|
413
|
-
},
|
|
414
|
-
activate: function(n) {
|
|
415
|
-
if (i.active)
|
|
416
|
-
return this;
|
|
417
|
-
var o = h(n, "onActivate"), c = h(n, "onPostActivate"), v = h(n, "checkCanFocusTrap");
|
|
418
|
-
v || _(), i.active = !0, i.paused = !1, i.nodeFocusedBeforeActivation = a.activeElement, o && o();
|
|
419
|
-
var f = function() {
|
|
420
|
-
v && _(), G(), c && c();
|
|
421
|
-
};
|
|
422
|
-
return v ? (v(i.containers.concat()).then(f, f), this) : (f(), this);
|
|
423
|
-
},
|
|
424
|
-
deactivate: function(n) {
|
|
425
|
-
if (!i.active)
|
|
426
|
-
return this;
|
|
427
|
-
var o = z({
|
|
428
|
-
onDeactivate: l.onDeactivate,
|
|
429
|
-
onPostDeactivate: l.onPostDeactivate,
|
|
430
|
-
checkCanReturnFocus: l.checkCanReturnFocus
|
|
431
|
-
}, n);
|
|
432
|
-
clearTimeout(i.delayInitialFocusTimer), i.delayInitialFocusTimer = void 0, K(), i.active = !1, i.paused = !1, W.deactivateTrap(s, d);
|
|
433
|
-
var c = h(o, "onDeactivate"), v = h(o, "onPostDeactivate"), f = h(o, "checkCanReturnFocus"), p = h(o, "returnFocus", "returnFocusOnDeactivate");
|
|
434
|
-
c && c();
|
|
435
|
-
var m = function() {
|
|
436
|
-
Y(function() {
|
|
437
|
-
p && w(M(i.nodeFocusedBeforeActivation)), v && v();
|
|
438
|
-
});
|
|
439
|
-
};
|
|
440
|
-
return p && f ? (f(M(i.nodeFocusedBeforeActivation)).then(m, m), this) : (m(), this);
|
|
441
|
-
},
|
|
442
|
-
pause: function() {
|
|
443
|
-
return i.paused || !i.active ? this : (i.paused = !0, K(), this);
|
|
444
|
-
},
|
|
445
|
-
unpause: function() {
|
|
446
|
-
return !i.paused || !i.active ? this : (i.paused = !1, _(), G(), this);
|
|
447
|
-
},
|
|
448
|
-
updateContainerElements: function(n) {
|
|
449
|
-
var o = [].concat(n).filter(Boolean);
|
|
450
|
-
return i.containers = o.map(function(c) {
|
|
451
|
-
return typeof c == "string" ? a.querySelector(c) : c;
|
|
452
|
-
}), i.active && _(), this;
|
|
453
|
-
}
|
|
454
|
-
}, d.updateContainerElements(e), d;
|
|
455
|
-
};
|
|
456
|
-
const De = `:host{display:block;width:100%;height:100vh}:host *{box-sizing:border-box}.console-layout{display:grid;width:100%;height:100%;grid-template-columns:1fr;grid-template-areas:"main"}@media (min-width: 768px){.console-layout{grid-template-columns:20rem 1fr;grid-template-areas:"sidebar main"}}@media (max-width: 767px){.console-layout--sidebar-active .console-layout__sidebar{transform:translate3d(0, 0, 0)}}.console-layout__sidebar{position:fixed;z-index:1;top:4rem;bottom:0;left:0;display:grid;overflow-x:hidden;overflow-y:auto;width:100%;max-width:20rem;border-right:var(--s-border-width-default) solid var(--s-border-default);transition:transform 0.15s;transform:translate3d(-100%, 0, 0);box-shadow:0 0 1rem rgba(0, 0, 0, 0.06);grid-template-rows:auto 1fr auto;grid-template-areas:"header"
|
|
457
|
-
"navigation"
|
|
458
|
-
"user"}@media (prefers-reduced-motion){.console-layout__sidebar{transition:none}}@media (min-width: 768px){.console-layout__sidebar{position:static;top:auto;left:auto;max-width:none;height:100%;transform:none;box-shadow:none;grid-area:sidebar}}.console-layout__header{overflow:hidden;min-width:0;padding:var(--s-space-20) var(--s-space-24);background-color:var(--s-background-default);grid-area:header}.console-layout__navigation{overflow-x:hidden;overflow-y:auto;padding-top:var(--s-space-8);padding-bottom:var(--s-space-8);background-color:var(--s-background-default);grid-area:navigation}@media (min-width: 768px){.console-layout__hide-navigation-button{display:none}}.console-layout__user{overflow:hidden;margin-top:var(--s-border-width-default);padding:var(--s-space-16) var(--s-space-24) var(--s-space-24);border-top:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default);grid-area:user}.console-layout__main{display:grid;overflow-x:hidden;overflow-y:auto;width:100%;height:100%;grid-area:main;gap:var(--s-border-width-default);grid-template-rows:4rem 1fr;grid-template-areas:"app-bar"
|
|
459
|
-
"content"}.console-layout__app-bar{position:sticky;z-index:1;top:0;display:flex;min-width:0;padding-right:var(--s-space-16);padding-left:var(--s-space-16);align-items:center;border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default);gap:var(--s-space-12);grid-area:app-bar}@media (min-width: 768px){.console-layout__app-bar{padding-right:2.5rem;padding-left:2.5rem}}@media (min-width: 768px){.console-layout__mobile-navigation-button{display:none}}.console-layout__app-name{min-width:0;flex-grow:1}.console-layout__app-name .heading{overflow:hidden;font-weight:var(--s-font-weight-regular);white-space:nowrap;text-overflow:ellipsis}.console-layout__help-button{flex-shrink:0}.console-layout__content{display:flex;padding:var(--s-space-16);background-color:var(--s-background-default);flex-direction:column;grid-area:content}@media (min-width: 768px){.console-layout__content{padding:2.5rem}}.console-layout__content-header{flex-shrink:0}.console-layout__integration{flex-grow:1}.console-layout__logo{display:flex;min-width:0;align-items:center;gap:var(--s-space-12)}.console-layout__logo-mark{flex-shrink:0}.console-layout__logo-text{min-width:0}.console-layout__logo-text::part(text){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.console-layout__content-header{display:flex;margin-bottom:2.5rem;gap:var(--s-space-16)}.console-layout__back-button{position:relative;top:calc(-1 * var(--s-space-2));flex-shrink:0}.console-layout__subheading{margin-top:var(--s-space-8)}`, Le = class {
|
|
460
|
-
constructor(r) {
|
|
461
|
-
oe(this, r), this.backButtonClick = U(this, "backButtonClick", 7), this.helpButtonClick = U(this, "helpButtonClick", 7), this.backButonLabel = "Back", this.helpButonLabel = "Help", this.hideNavigationButtonLabel = "Hide main navigation", this.logoText = "Admin", this.showNavigationButtonLabel = "Show main navigation", this.navigationLabel = "Main", this.onBackButtonClick = (e) => {
|
|
462
|
-
this.backButtonClick.emit(e);
|
|
463
|
-
}, this.onHelpButtonClick = (e) => {
|
|
464
|
-
this.helpButtonClick.emit(e);
|
|
465
|
-
}, this.onMobileNavigationToggleClick = () => {
|
|
466
|
-
this.toggleSidebar();
|
|
467
|
-
}, this.onHideNavigationButtonClick = () => {
|
|
468
|
-
this.hideSidebar();
|
|
469
|
-
}, this.onClick = (e) => {
|
|
470
|
-
const t = e.target, a = Boolean(t.closest(".console-layout__mobile-navigation-button"));
|
|
471
|
-
!e.composedPath().includes(this.sidebarEl) && !a && this.sidebarActive && (this.sidebarActive = !1);
|
|
472
|
-
}, this.onKeyDown = (e) => {
|
|
473
|
-
e.code === "Escape" && this.sidebarActive && this.deactivateSidebar();
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
componentDidLoad() {
|
|
477
|
-
const r = [
|
|
478
|
-
this.sidebarEl,
|
|
479
|
-
...Array.from(this.el.querySelectorAll('[slot="navigation"], [slot="user"]')).filter((e) => Boolean(e))
|
|
480
|
-
];
|
|
481
|
-
this.focusTrap = Ae(r, {
|
|
482
|
-
clickOutsideDeactivates: !0
|
|
483
|
-
}), queueMicrotask(() => {
|
|
484
|
-
F() ? this.deactivateSidebar() : this.activateSidebar();
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
onWindowResize() {
|
|
488
|
-
const r = F();
|
|
489
|
-
!r && !this.sidebarActive ? this.activateSidebar() : r && this.deactivateSidebar();
|
|
490
|
-
}
|
|
491
|
-
async toggleSidebar() {
|
|
492
|
-
this.sidebarActive ? this.deactivateSidebar() : this.activateSidebar();
|
|
493
|
-
}
|
|
494
|
-
async showSidebar() {
|
|
495
|
-
this.sidebarActive || this.activateSidebar();
|
|
496
|
-
}
|
|
497
|
-
async hideSidebar() {
|
|
498
|
-
this.sidebarActive && this.deactivateSidebar();
|
|
499
|
-
}
|
|
500
|
-
activateSidebar() {
|
|
501
|
-
var r;
|
|
502
|
-
this.sidebarActive = !0, this.sidebarEl.removeAttribute("inert"), F() && ((r = this.focusTrap) === null || r === void 0 || r.activate());
|
|
503
|
-
}
|
|
504
|
-
deactivateSidebar() {
|
|
505
|
-
var r;
|
|
506
|
-
this.sidebarActive = !1, F() && this.sidebarEl.setAttribute("inert", ""), (r = this.focusTrap) === null || r === void 0 || r.deactivate({ returnFocus: !0 });
|
|
507
|
-
}
|
|
508
|
-
render() {
|
|
509
|
-
const r = ce("console-layout", {
|
|
510
|
-
"console-layout--sidebar-active": this.sidebarActive
|
|
511
|
-
});
|
|
512
|
-
return u(se, null, u("div", { class: r, onClick: this.onClick, onKeyDown: this.onKeyDown }, u("div", { "aria-hidden": String(!this.sidebarActive), class: "console-layout__sidebar", ref: (e) => this.sidebarEl = e }, u("header", { class: "console-layout__header" }, u("div", { class: "console-layout__logo" }, u("svg", { class: "console-layout__logo-mark", fill: "none", height: "26", viewBox: "0 0 16 26", width: "16", xmlns: "http://www.w3.org/2000/svg" }, u("path", { d: "M0.624238 14.0705C0.326496 13.5353 0.118077 12.9406 0.0287543 12.3161C-0.0307941 11.662 -0.0010199 11.0375 0.147851 10.4428C0.296722 9.84813 0.594464 9.25343 0.951754 8.77767C1.33882 8.27217 1.78543 7.85588 2.35114 7.55853L14.6181 0.362671C14.9159 0.8979 15.1243 1.4926 15.2136 2.11703C15.3029 2.74147 15.2434 3.3659 15.0945 3.99034C14.9456 4.58504 14.6479 5.17974 14.2906 5.6555C13.9035 6.16099 13.4569 6.57728 12.8912 6.87463L0.624238 14.0705Z", fill: "#145AF5" }), u("path", { d: "M3.69214 21.4743C3.3944 20.9391 3.18598 20.3444 3.09666 19.72C3.00733 19.0956 3.06688 18.4711 3.21575 17.8467C3.36462 17.252 3.66237 16.6573 4.01966 16.1815C4.40672 15.676 4.85333 15.2597 5.41904 14.9624L12.2076 10.9779C12.5053 11.5131 12.7137 12.1078 12.803 12.7323C12.8924 13.3567 12.8328 13.9811 12.6839 14.6056C12.5351 15.2003 12.2373 15.795 11.88 16.2707C11.493 16.7762 11.0464 17.1925 10.4807 17.4899L3.69214 21.4743Z", fill: "#145AF5" }), u("path", { d: "M3.69141 21.4739L7.77047 19.0951C8.39573 20.1953 8.5446 21.5036 8.24686 22.7228C7.91934 23.9419 7.14521 24.9826 6.04357 25.6368L3.69141 21.4739Z", fill: "#80A8F4" }), u("path", { d: "M12.2072 10.9785L7.32419 10.1459L0.625 14.0709L5.38887 14.9629L12.2072 10.9785Z", fill: "#80A8F4" })), u("flip-text", { class: "console-layout__logo-text", weight: "medium" }, this.logoText))), u("nav", { "aria-label": this.navigationLabel, class: "console-layout__navigation" }, u("slot", { name: "navigation" }), this.sidebarActive && u("flip-visually-hidden", null, u("button", { class: "console-layout__hide-navigation-button", onClick: this.onHideNavigationButtonClick, type: "button" }, this.hideNavigationButtonLabel))), u("div", { class: "console-layout__user" }, u("slot", { name: "user" }))), u("main", { "aria-labelledby": "app-name", class: "console-layout__main" }, u("header", { class: "console-layout__app-bar" }, u("flip-button", { class: "console-layout__mobile-navigation-button", flipAriaExpanded: String(this.sidebarActive), hideLabel: !0, icon: this.sidebarActive ? "<flip-icon-close></flip-icon-close>" : "<flip-icon-menu></flip-icon-menu>", label: this.sidebarActive ? this.hideNavigationButtonLabel : this.showNavigationButtonLabel, onClick: this.onMobileNavigationToggleClick }), u("flip-heading", { as: "h1", class: "console-layout__app-name", headingId: "app-name", level: 4, text: this.appName }), this.showHelpButton && u("flip-button", { class: "console-layout__help-button", hideLabel: !0, icon: "<flip-icon-help></flip-icon-help>", label: this.helpButonLabel, onClick: this.onHelpButtonClick })), u("section", { "aria-labelledby": "heading", class: "console-layout__content" }, u("header", { class: "console-layout__content-header" }, this.showBackButton && u("flip-button", { class: "console-layout__back-button", hideLabel: !0, icon: "<flip-icon-arrow-back></flip-icon-arrow-back>", label: this.backButonLabel, onClick: this.onBackButtonClick }), u("div", null, u("flip-heading", { as: "h2", class: "console-layout__heading", headingId: "heading", level: 1, text: this.heading }), this.subheading && u("flip-text", { class: "console-layout__subheading", color: "subdued" }, this.subheading))), u("div", { class: "console-layout__integration" }, u("slot", { name: "content" }))))));
|
|
513
|
-
}
|
|
514
|
-
get el() {
|
|
515
|
-
return le(this);
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
Le.style = De;
|
|
519
|
-
export {
|
|
520
|
-
Le as flip_console_layout
|
|
521
|
-
};
|