@pgcorp/ui-kit 0.14.0 → 0.15.0
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/README.md +330 -12
- package/dist/assets/src/components/layout/{SResizeHandle.vue_vue_type_style_index_0_scoped_13b9b27a_lang.css → SResizeHandle.vue_vue_type_style_index_0_scoped_dc65aba1_lang.css} +1 -1
- package/dist/assets/src/components/shared/_internal/SDialogSurface.css_vue_type_style_index_0_src_a108e8f1_scoped_a108e8f1_lang.css +2 -0
- package/dist/assets/src/components/shared/containers/{SCollapsiblePanel.css_vue_type_style_index_0_src_71824088_scoped_71824088_lang.css → SCollapsiblePanel.css_vue_type_style_index_0_src_db85261d_scoped_db85261d_lang.css} +1 -1
- package/dist/assets/src/components/shared/containers/{SOverlayHost.css_vue_type_style_index_0_src_8f9be94e_scoped_8f9be94e_lang.css → SOverlayHost.css_vue_type_style_index_0_src_09215628_scoped_09215628_lang.css} +1 -1
- package/dist/assets/src/components/shared/containers/{SPopover.css_vue_type_style_index_0_src_4091d007_scoped_4091d007_lang.css → SPopover.css_vue_type_style_index_0_src_a4f1f64a_scoped_a4f1f64a_lang.css} +1 -1
- package/dist/assets/src/components/shared/containers/SSidebarSection.css_vue_type_style_index_0_src_52396e42_scoped_52396e42_lang.css +2 -0
- package/dist/assets/src/components/shared/controls/SButton.css_vue_type_style_index_0_src_7a5acda9_scoped_7a5acda9_lang.css +1 -1
- package/dist/assets/src/components/shared/controls/SCheckbox.css_vue_type_style_index_0_src_2562f916_scoped_2562f916_lang.css +2 -0
- package/dist/assets/src/components/shared/controls/SCombobox.css_vue_type_style_index_0_src_d630c922_scoped_d630c922_lang.css +2 -0
- package/dist/assets/src/components/shared/controls/SContextMenu.css_vue_type_style_index_0_src_43b6e378_scoped_43b6e378_lang.css +1 -0
- package/dist/assets/src/components/shared/controls/{SDropdownMenu.css_vue_type_style_index_0_src_857e2649_scoped_857e2649_lang.css → SDropdownMenu.css_vue_type_style_index_0_src_40040ae5_scoped_40040ae5_lang.css} +1 -1
- package/dist/assets/src/components/shared/controls/{SMenuSurface.css_vue_type_style_index_0_src_84109ad9_scoped_84109ad9_lang.css → SMenuSurface.css_vue_type_style_index_0_src_d2b7d71b_scoped_d2b7d71b_lang.css} +1 -1
- package/dist/assets/src/components/shared/controls/SSelect.css_vue_type_style_index_0_src_d1ead6c0_scoped_d1ead6c0_lang.css +2 -0
- package/dist/assets/src/components/shared/data-display/SControlledToastViewport.css_vue_type_style_index_0_src_a69aa84b_scoped_a69aa84b_lang.css +2 -0
- package/dist/assets/src/components/shared/data-display/SScrollViewport.css_vue_type_style_index_0_src_d94fcf8c_scoped_d94fcf8c_lang.css +2 -0
- package/dist/assets/src/components/shared/data-display/STooltip.css_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/assets/src/components/shared/data-display/_internal/STableFrame.css_vue_type_style_index_0_src_914bad28_scoped_914bad28_lang.css +2 -0
- package/dist/assets/src/components/shared/navigation/{SBottomNav.vue_vue_type_style_index_0_scoped_24be0f2b_lang.css → SBottomNav.vue_vue_type_style_index_0_scoped_68cf84b3_lang.css} +1 -1
- package/dist/src/components/layout/SResizeHandle.vue.js +2 -2
- package/dist/src/components/layout/SResizeHandle.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/src/components/shared/_internal/SDialogSurface.vue.d.ts +9 -1
- package/dist/src/components/shared/_internal/SDialogSurface.vue.js +2 -2
- package/dist/src/components/shared/_internal/SDialogSurface.vue_vue_type_script_setup_true_lang.js +174 -82
- package/dist/src/components/shared/_internal/dialogSurface.d.ts +2 -0
- package/dist/src/components/shared/_internal/dialogSurface.js +30 -27
- package/dist/src/components/shared/_internal/dialogSurfaceMotion.d.ts +14 -0
- package/dist/src/components/shared/_internal/dialogSurfaceMotion.js +84 -0
- package/dist/src/components/shared/_internal/focusTrap.js +15 -13
- package/dist/src/components/shared/containers/SCollapsiblePanel.vue.d.ts +5 -0
- package/dist/src/components/shared/containers/SCollapsiblePanel.vue.js +2 -2
- package/dist/src/components/shared/containers/SCollapsiblePanel.vue_vue_type_script_setup_true_lang.js +123 -121
- package/dist/src/components/shared/containers/SDrawer.vue.d.ts +4 -4
- package/dist/src/components/shared/containers/SDrawer.vue.js +3 -6
- package/dist/src/components/shared/containers/SDrawer.vue_vue_type_script_setup_true_lang.js +104 -128
- package/dist/src/components/shared/containers/SModal.vue.d.ts +8 -8
- package/dist/src/components/shared/containers/SModal.vue.js +3 -6
- package/dist/src/components/shared/containers/SModal.vue_vue_type_script_setup_true_lang.js +87 -103
- package/dist/src/components/shared/containers/SOverlayHost.vue.js +2 -2
- package/dist/src/components/shared/containers/SOverlayHost.vue_vue_type_script_setup_true_lang.js +32 -31
- package/dist/src/components/shared/containers/SPanel.vue.d.ts +1 -1
- package/dist/src/components/shared/containers/SPopover.vue.js +2 -2
- package/dist/src/components/shared/containers/SPopover.vue_vue_type_script_setup_true_lang.js +225 -200
- package/dist/src/components/shared/containers/SSidebarSection.vue.js +2 -2
- package/dist/src/components/shared/containers/SSidebarSection.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/src/components/shared/controls/SCheckbox.vue.js +2 -2
- package/dist/src/components/shared/controls/SCheckbox.vue_vue_type_script_setup_true_lang.js +13 -7
- package/dist/src/components/shared/controls/SCombobox.vue.js +2 -2
- package/dist/src/components/shared/controls/SCombobox.vue_vue_type_script_setup_true_lang.js +104 -94
- package/dist/src/components/shared/controls/SContextMenu.vue.js +2 -2
- package/dist/src/components/shared/controls/SContextMenu.vue_vue_type_script_setup_true_lang.js +86 -81
- package/dist/src/components/shared/controls/SDropdownMenu.vue.js +2 -2
- package/dist/src/components/shared/controls/SDropdownMenu.vue_vue_type_script_setup_true_lang.js +77 -72
- package/dist/src/components/shared/controls/SMenuSurface.vue.js +2 -2
- package/dist/src/components/shared/controls/SMenuSurface.vue_vue_type_script_setup_true_lang.js +81 -77
- package/dist/src/components/shared/controls/SSelect.vue.js +2 -2
- package/dist/src/components/shared/controls/SSelect.vue_vue_type_script_setup_true_lang.js +85 -77
- package/dist/src/components/shared/data-display/SControlledToastViewport.vue.js +2 -2
- package/dist/src/components/shared/data-display/SControlledToastViewport.vue_vue_type_script_setup_true_lang.js +58 -49
- package/dist/src/components/shared/data-display/SScrollViewport.vue.d.ts +10 -5
- package/dist/src/components/shared/data-display/SScrollViewport.vue.js +2 -2
- package/dist/src/components/shared/data-display/SScrollViewport.vue_vue_type_script_setup_true_lang.js +162 -111
- package/dist/src/components/shared/data-display/STooltip.vue_vue_type_script_setup_true_lang.js +276 -224
- package/dist/src/components/shared/data-display/_internal/STableFrame.vue.d.ts +3 -3
- package/dist/src/components/shared/data-display/_internal/STableFrame.vue.js +2 -2
- package/dist/src/components/shared/data-display/_internal/STableFrame.vue_vue_type_script_setup_true_lang.js +62 -46
- package/dist/src/components/shared/data-display/scrollViewport.d.ts +2 -0
- package/dist/src/components/shared/navigation/SBottomNav.vue.js +2 -2
- package/dist/src/components/shared/navigation/SBottomNav.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/src/components/shared/navigation/STabList.vue.d.ts +1 -1
- package/dist/src/composables/useDialogOverlay.d.ts +12 -2
- package/dist/src/composables/useDialogOverlay.js +192 -119
- package/dist/src/internal/flatTree.d.ts +8 -0
- package/dist/src/internal/flatTree.js +23 -0
- package/dist/src/internal/focusNavigation.d.ts +3 -0
- package/dist/src/internal/focusNavigation.js +28 -15
- package/dist/src/internal/inertLease.d.ts +8 -0
- package/dist/src/internal/inertLease.js +33 -0
- package/dist/src/internal/layerStack.d.ts +40 -0
- package/dist/src/internal/layerStack.js +301 -94
- package/dist/src/internal/nativeFocus.d.ts +4 -0
- package/dist/src/internal/nativeFocus.js +12 -0
- package/dist/src/internal/overlayPortal.d.ts +17 -0
- package/dist/src/internal/overlayPortal.js +23 -0
- package/dist/src/internal/semanticSizing.d.ts +2 -2
- package/dist/src/internal/semanticSizing.js +2 -1
- package/dist/src/internal/useMenuLayer.d.ts +1 -0
- package/dist/src/internal/useMenuLayer.js +63 -57
- package/dist/src/internal/viewportModality.d.ts +27 -0
- package/dist/src/internal/viewportModality.js +132 -0
- package/dist/typography.js +17 -62
- package/docs/overlay-lifecycle.md +195 -0
- package/docs/public-api.md +141 -4
- package/docs/resize.md +34 -5
- package/docs/scroll-viewport.md +30 -10
- package/docs/theming.md +42 -8
- package/package.json +1 -1
- package/src/components/shared/_internal/SDialogSurface.css +185 -40
- package/src/components/shared/controls/SButton.css +0 -3
- package/src/components/shared/controls/SCheckbox.css +19 -7
- package/src/components/shared/data-display/SControlledToastViewport.css +2 -10
- package/src/components/shared/data-display/SScrollViewport.css +17 -1
- package/src/components/shared/data-display/STooltip.css +1 -1
- package/src/components/shared/data-display/_internal/STableFrame.css +1 -5
- package/dist/assets/src/components/shared/_internal/SDialogSurface.css_vue_type_style_index_0_src_0e58afdc_scoped_0e58afdc_lang.css +0 -2
- package/dist/assets/src/components/shared/containers/SDrawer.css_vue_type_style_index_0_src_61cf20dd_scoped_61cf20dd_lang.css +0 -2
- package/dist/assets/src/components/shared/containers/SModal.css_vue_type_style_index_0_src_42e1bd5f_scoped_42e1bd5f_lang.css +0 -2
- package/dist/assets/src/components/shared/containers/SSidebarSection.css_vue_type_style_index_0_src_21f71ae8_scoped_21f71ae8_lang.css +0 -2
- package/dist/assets/src/components/shared/controls/SCheckbox.css_vue_type_style_index_0_src_55d4826e_scoped_55d4826e_lang.css +0 -2
- package/dist/assets/src/components/shared/controls/SCombobox.css_vue_type_style_index_0_src_537f5744_scoped_537f5744_lang.css +0 -2
- package/dist/assets/src/components/shared/controls/SContextMenu.css_vue_type_style_index_0_src_03921269_scoped_03921269_lang.css +0 -1
- package/dist/assets/src/components/shared/controls/SSelect.css_vue_type_style_index_0_src_df3d6688_scoped_df3d6688_lang.css +0 -2
- package/dist/assets/src/components/shared/data-display/SControlledToastViewport.css_vue_type_style_index_0_src_5864b6c6_scoped_5864b6c6_lang.css +0 -2
- package/dist/assets/src/components/shared/data-display/SScrollViewport.css_vue_type_style_index_0_src_e5d11342_scoped_e5d11342_lang.css +0 -2
- package/dist/assets/src/components/shared/data-display/_internal/STableFrame.css_vue_type_style_index_0_src_52b5825e_scoped_52b5825e_lang.css +0 -2
- package/src/components/shared/containers/SDrawer.css +0 -87
- package/src/components/shared/containers/SModal.css +0 -27
package/dist/src/components/shared/controls/SMenuSurface.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -6,17 +6,17 @@ import ee from "../_internal/SMenuLayer.vue.js";
|
|
|
6
6
|
import o from "../_internal/SMenuItem.vue.js";
|
|
7
7
|
import te from "../_internal/SMenuSeparator.vue.js";
|
|
8
8
|
import { validateSMenuEntries as ne } from "./menu.js";
|
|
9
|
-
import { Fragment as s, Teleport as re, computed as c, createBlock as l, createCommentVNode as
|
|
9
|
+
import { Fragment as s, Teleport as re, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as ie, defineComponent as p, inject as m, mergeProps as ae, nextTick as h, onBeforeUnmount as oe, onMounted as se, openBlock as g, provide as _, ref as v, renderList as y, resolveComponent as ce, toDisplayString as b, toRef as le, unref as x, watch as ue, withCtx as de } from "vue";
|
|
10
10
|
//#region src/components/shared/controls/SMenuSurface.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
-
var
|
|
11
|
+
var fe = [
|
|
12
12
|
"data-density",
|
|
13
13
|
"data-orientation",
|
|
14
14
|
"aria-label",
|
|
15
15
|
"aria-orientation"
|
|
16
|
-
],
|
|
16
|
+
], pe = ["aria-label", "data-menu-group-id"], S = {
|
|
17
17
|
class: "s-menu-group__label",
|
|
18
18
|
"aria-hidden": "true"
|
|
19
|
-
}, C = /*@__PURE__*/
|
|
19
|
+
}, C = /*@__PURE__*/ p({
|
|
20
20
|
inheritAttrs: !1,
|
|
21
21
|
__name: "SMenuSurface",
|
|
22
22
|
props: {
|
|
@@ -38,80 +38,81 @@ var x = [
|
|
|
38
38
|
"submenu-back",
|
|
39
39
|
"dismiss-tree"
|
|
40
40
|
],
|
|
41
|
-
setup(
|
|
42
|
-
let w =
|
|
41
|
+
setup(p, { expose: C, emit: me }) {
|
|
42
|
+
let w = p, T = me, he = e({
|
|
43
43
|
component: "SMenuSurface",
|
|
44
44
|
owner: "menu root"
|
|
45
45
|
});
|
|
46
46
|
t({ owner: "SMenuSurface" });
|
|
47
|
-
let E =
|
|
48
|
-
|
|
49
|
-
let D =
|
|
50
|
-
|
|
51
|
-
density:
|
|
47
|
+
let E = m(i, -1) + 1;
|
|
48
|
+
_(i, E);
|
|
49
|
+
let D = v(null), O = v(null), k = m(a, null), A = null, j = /* @__PURE__ */ new Map();
|
|
50
|
+
_(r, {
|
|
51
|
+
density: le(w, "density"),
|
|
52
52
|
register: (e) => {
|
|
53
53
|
if (j.has(e.entryId)) throw Error(`SMenuSurface: duplicate mounted entry id '${e.entryId}'`);
|
|
54
54
|
return j.set(e.entryId, e), () => j.delete(e.entryId);
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
|
-
let M =
|
|
57
|
+
let M = v(null), N = v(!0), P = v(null), F = v(null), I = c(() => P.value?.getElement() ?? null), { portalTarget: L, position: ge, availableSize: R, zIndex: _e, open: ve, close: z } = n(P, {
|
|
58
58
|
onRetire: () => {
|
|
59
59
|
M.value = null;
|
|
60
60
|
},
|
|
61
61
|
onDismiss: (e) => {
|
|
62
62
|
M.value = null, e === "outside" && T("dismiss-tree");
|
|
63
63
|
}
|
|
64
|
-
}), ye = (e) => e.flatMap((e) => e.kind === "group" ? [...e.children] : e.kind === "separator" ? [] : [e]),
|
|
65
|
-
let e = M.value ?
|
|
64
|
+
}), ye = (e) => e.flatMap((e) => e.kind === "group" ? [...e.children] : e.kind === "separator" ? [] : [e]), B = (e) => ye(w.items).find((t) => t.id === e), V = c(() => {
|
|
65
|
+
let e = M.value ? B(M.value) : void 0;
|
|
66
66
|
return e?.kind === "submenu" ? e : null;
|
|
67
|
-
}),
|
|
67
|
+
}), H = "", U = null, W = () => [...j.values()].filter((e) => e.element().isConnected).sort((e, t) => {
|
|
68
68
|
let n = e.element().compareDocumentPosition(t.element());
|
|
69
69
|
return n & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
70
|
-
}),
|
|
70
|
+
}), G = (e, t) => {
|
|
71
71
|
for (let t of e) t.setTabStop(!1);
|
|
72
72
|
let n = e[t];
|
|
73
73
|
n && (n.setTabStop(!0), n.focus(), $());
|
|
74
|
-
}, G = () => {
|
|
75
|
-
let e = U();
|
|
76
|
-
e.length > 0 && W(e, 0);
|
|
77
74
|
}, K = () => {
|
|
78
|
-
let e =
|
|
79
|
-
e.length > 0 &&
|
|
75
|
+
let e = W();
|
|
76
|
+
e.length > 0 && G(e, 0);
|
|
80
77
|
}, q = () => {
|
|
78
|
+
let e = W();
|
|
79
|
+
e.length > 0 && G(e, e.length - 1);
|
|
80
|
+
}, be = () => {
|
|
81
81
|
if (typeof w.label != "string" || !w.label.trim()) throw TypeError("SMenuSurface: label must be a non-empty string");
|
|
82
82
|
ne(w.items);
|
|
83
|
-
},
|
|
84
|
-
let t =
|
|
83
|
+
}, xe = (e) => {
|
|
84
|
+
let t = W();
|
|
85
85
|
if (t.length === 0) return;
|
|
86
86
|
let n = t.findIndex((e) => e.isFocused());
|
|
87
|
-
|
|
88
|
-
},
|
|
87
|
+
G(t, ((n < 0 ? e === 1 ? -1 : 0 : n) + e + t.length) % t.length);
|
|
88
|
+
}, Se = (e) => {
|
|
89
89
|
let t = e.toLocaleLowerCase();
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
H += t, U && clearTimeout(U), U = setTimeout(() => {
|
|
91
|
+
H = "", U = null;
|
|
92
92
|
}, 500);
|
|
93
|
-
let n = [...
|
|
93
|
+
let n = [...H].every((e) => e === t) ? t : H, r = W();
|
|
94
94
|
if (r.length === 0) return;
|
|
95
95
|
let i = r.findIndex((e) => e.isFocused()), a = [...r.slice(i + 1), ...r.slice(0, i + 1)].find((e) => e.label().trim().toLocaleLowerCase().startsWith(n));
|
|
96
|
-
a &&
|
|
96
|
+
a && G(r, r.indexOf(a));
|
|
97
97
|
};
|
|
98
98
|
async function J(e, t) {
|
|
99
|
-
|
|
99
|
+
if (L.value === null) return;
|
|
100
|
+
let n = B(e), r = j.get(e);
|
|
100
101
|
if (n?.kind === "submenu" && !n.disabled && r) {
|
|
101
102
|
if (M.value === e) {
|
|
102
|
-
t && await
|
|
103
|
+
t && await h(() => F.value?.focusFirst());
|
|
103
104
|
return;
|
|
104
105
|
}
|
|
105
|
-
M.value &&
|
|
106
|
+
M.value && z("outside"), N.value = t, M.value = e, await ve({
|
|
106
107
|
type: "element",
|
|
107
108
|
element: r.element(),
|
|
108
109
|
align: "left",
|
|
109
110
|
placement: "inline"
|
|
110
|
-
}, r.element()), t && await
|
|
111
|
+
}, r.element()), t && await h(() => F.value?.focusFirst());
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
function Y(e) {
|
|
114
|
-
M.value &&= (
|
|
115
|
+
M.value &&= (z(e), null);
|
|
115
116
|
}
|
|
116
117
|
function X(e) {
|
|
117
118
|
e.kind === "submenu" && !e.disabled ? J(e.id, !1) : M.value && Y("outside");
|
|
@@ -119,11 +120,11 @@ var x = [
|
|
|
119
120
|
function Z(e, t) {
|
|
120
121
|
e.kind === "submenu" || e.disabled || T("select", e, t);
|
|
121
122
|
}
|
|
122
|
-
function
|
|
123
|
+
function Ce(e, t) {
|
|
123
124
|
T("select", e, t);
|
|
124
125
|
}
|
|
125
126
|
function Q() {
|
|
126
|
-
return
|
|
127
|
+
return W().find((e) => e.isFocused());
|
|
127
128
|
}
|
|
128
129
|
function $() {
|
|
129
130
|
let e = D.value, t = Q();
|
|
@@ -131,9 +132,9 @@ var x = [
|
|
|
131
132
|
let n = e.getBoundingClientRect(), r = t.element().getBoundingClientRect();
|
|
132
133
|
r.top < n.top ? e.scrollTop += r.top - n.top : r.bottom > n.bottom && (e.scrollTop += r.bottom - n.bottom), r.left < n.left ? e.scrollLeft += r.left - n.left : r.right > n.right && (e.scrollLeft += r.right - n.right);
|
|
133
134
|
}
|
|
134
|
-
let
|
|
135
|
+
let we = (e) => {
|
|
135
136
|
let t = e.target;
|
|
136
|
-
if (e.currentTarget !== t && !
|
|
137
|
+
if (e.currentTarget !== t && !W().some((e) => e.ownsEventTarget(t))) return;
|
|
137
138
|
if (e.key === "Tab") {
|
|
138
139
|
T("tab", e);
|
|
139
140
|
return;
|
|
@@ -149,7 +150,7 @@ var x = [
|
|
|
149
150
|
return;
|
|
150
151
|
}
|
|
151
152
|
if (e.key === n || e.key === r) {
|
|
152
|
-
e.preventDefault(),
|
|
153
|
+
e.preventDefault(), xe(e.key === n ? 1 : -1);
|
|
153
154
|
return;
|
|
154
155
|
}
|
|
155
156
|
if (w.orientation === "horizontal" && e.key === "ArrowDown") {
|
|
@@ -158,7 +159,7 @@ var x = [
|
|
|
158
159
|
return;
|
|
159
160
|
}
|
|
160
161
|
if (e.key === "Home" || e.key === "End") {
|
|
161
|
-
e.preventDefault(), e.key === "Home" ?
|
|
162
|
+
e.preventDefault(), e.key === "Home" ? K() : q();
|
|
162
163
|
return;
|
|
163
164
|
}
|
|
164
165
|
if (e.key === "Enter" || e.key === " ") {
|
|
@@ -166,12 +167,12 @@ var x = [
|
|
|
166
167
|
t && t.activate(e);
|
|
167
168
|
return;
|
|
168
169
|
}
|
|
169
|
-
e.key.length === 1 && !e.altKey && !e.ctrlKey && !e.metaKey &&
|
|
170
|
-
},
|
|
170
|
+
e.key.length === 1 && !e.altKey && !e.ctrlKey && !e.metaKey && Se(e.key);
|
|
171
|
+
}, Te = (e) => {
|
|
171
172
|
let t = e.relatedTarget;
|
|
172
173
|
t instanceof Node && (D.value?.contains(t) || I.value?.contains(t)) || T("focus-exit", e);
|
|
173
174
|
};
|
|
174
|
-
return
|
|
175
|
+
return se(() => {
|
|
175
176
|
if (k) {
|
|
176
177
|
let e = D.value, t = O.value;
|
|
177
178
|
if (!e || !t) throw Error("SMenuSurface: native surface/content are unavailable after mounting");
|
|
@@ -181,49 +182,49 @@ var x = [
|
|
|
181
182
|
revealFocusedItem: $
|
|
182
183
|
});
|
|
183
184
|
}
|
|
184
|
-
w.autofocus &&
|
|
185
|
-
}),
|
|
186
|
-
|
|
185
|
+
w.autofocus && h(w.initialFocus === "last" ? q : K);
|
|
186
|
+
}), ue(() => [w.label, w.items], () => {
|
|
187
|
+
be(), M.value && !V.value && Y("outside");
|
|
187
188
|
}, {
|
|
188
189
|
immediate: !0,
|
|
189
190
|
deep: !0
|
|
190
|
-
}),
|
|
191
|
-
A?.(), A = null,
|
|
191
|
+
}), oe(() => {
|
|
192
|
+
A?.(), A = null, U && clearTimeout(U);
|
|
192
193
|
}), C({
|
|
193
|
-
focusFirst:
|
|
194
|
-
focusLast:
|
|
194
|
+
focusFirst: K,
|
|
195
|
+
focusLast: q
|
|
195
196
|
}), (e, t) => {
|
|
196
|
-
let n =
|
|
197
|
-
return
|
|
197
|
+
let n = ce("SMenuSurface", !0);
|
|
198
|
+
return g(), d("div", ae({
|
|
198
199
|
ref_key: "surfaceRef",
|
|
199
200
|
ref: D
|
|
200
|
-
},
|
|
201
|
+
}, x(he).bindings(), {
|
|
201
202
|
class: "s-menu-surface",
|
|
202
|
-
"data-density":
|
|
203
|
-
"data-orientation":
|
|
203
|
+
"data-density": p.density,
|
|
204
|
+
"data-orientation": p.orientation,
|
|
204
205
|
"data-menu-depth": E,
|
|
205
206
|
role: "menu",
|
|
206
|
-
"aria-label":
|
|
207
|
-
"aria-orientation":
|
|
208
|
-
onKeydown:
|
|
209
|
-
onFocusout:
|
|
210
|
-
}), [
|
|
207
|
+
"aria-label": p.label,
|
|
208
|
+
"aria-orientation": p.orientation,
|
|
209
|
+
onKeydown: we,
|
|
210
|
+
onFocusout: Te
|
|
211
|
+
}), [f("div", {
|
|
211
212
|
ref_key: "contentRef",
|
|
212
213
|
ref: O,
|
|
213
214
|
class: "s-menu-surface__content"
|
|
214
|
-
}, [(
|
|
215
|
+
}, [(g(!0), d(s, null, y(p.items, (e) => (g(), d(s, { key: e.id }, [e.kind === "separator" ? (g(), l(te, {
|
|
215
216
|
key: 0,
|
|
216
217
|
"entry-id": e.id
|
|
217
|
-
}, null, 8, ["entry-id"])) : e.kind === "group" ? (
|
|
218
|
+
}, null, 8, ["entry-id"])) : e.kind === "group" ? (g(), d("div", {
|
|
218
219
|
key: 1,
|
|
219
220
|
class: "s-menu-group",
|
|
220
221
|
role: "group",
|
|
221
222
|
"aria-label": e.label,
|
|
222
223
|
"data-menu-group-id": e.id
|
|
223
|
-
}, [
|
|
224
|
+
}, [f("div", S, b(e.label), 1), (g(!0), d(s, null, y(e.children, (e) => (g(), l(o, {
|
|
224
225
|
key: e.id,
|
|
225
226
|
entry: e,
|
|
226
|
-
"submenu-open":
|
|
227
|
+
"submenu-open": V.value?.id === e.id,
|
|
227
228
|
onSelect: (t) => Z(e, t),
|
|
228
229
|
onOpenSubmenu: (t) => J(e.id, !0),
|
|
229
230
|
onPointerIntent: (t) => X(e)
|
|
@@ -233,10 +234,10 @@ var x = [
|
|
|
233
234
|
"onSelect",
|
|
234
235
|
"onOpenSubmenu",
|
|
235
236
|
"onPointerIntent"
|
|
236
|
-
]))), 128))], 8,
|
|
237
|
+
]))), 128))], 8, pe)) : (g(), l(o, {
|
|
237
238
|
key: 2,
|
|
238
239
|
entry: e,
|
|
239
|
-
"submenu-open":
|
|
240
|
+
"submenu-open": V.value?.id === e.id,
|
|
240
241
|
onSelect: (t) => Z(e, t),
|
|
241
242
|
onOpenSubmenu: (t) => J(e.id, !0),
|
|
242
243
|
onPointerIntent: (t) => X(e)
|
|
@@ -246,28 +247,31 @@ var x = [
|
|
|
246
247
|
"onSelect",
|
|
247
248
|
"onOpenSubmenu",
|
|
248
249
|
"onPointerIntent"
|
|
249
|
-
]))], 64))), 128))], 512), (
|
|
250
|
+
]))], 64))), 128))], 512), x(L) ? (g(), l(re, {
|
|
251
|
+
key: 0,
|
|
252
|
+
to: x(L)
|
|
253
|
+
}, [V.value ? (g(), l(ee, {
|
|
250
254
|
key: 0,
|
|
251
255
|
ref_key: "submenuLayerRef",
|
|
252
256
|
ref: P,
|
|
253
257
|
kind: "submenu",
|
|
254
|
-
"landmark-label": `${
|
|
255
|
-
position:
|
|
256
|
-
"available-size":
|
|
257
|
-
"z-index":
|
|
258
|
+
"landmark-label": `${p.label}: ${V.value.label}`,
|
|
259
|
+
position: x(ge),
|
|
260
|
+
"available-size": x(R),
|
|
261
|
+
"z-index": x(_e)
|
|
258
262
|
}, {
|
|
259
|
-
default:
|
|
263
|
+
default: de(() => [ie(n, {
|
|
260
264
|
ref_key: "submenuSurfaceRef",
|
|
261
265
|
ref: F,
|
|
262
|
-
label: `${
|
|
263
|
-
items:
|
|
264
|
-
density:
|
|
266
|
+
label: `${p.label}: ${V.value.label}`,
|
|
267
|
+
items: V.value.children,
|
|
268
|
+
density: p.density,
|
|
265
269
|
orientation: "vertical",
|
|
266
270
|
autofocus: N.value,
|
|
267
271
|
onEscape: t[0] ||= (e) => Y("escape"),
|
|
268
272
|
onSubmenuBack: t[1] ||= (e) => Y("escape"),
|
|
269
273
|
onDismissTree: t[2] ||= (e) => T("dismiss-tree"),
|
|
270
|
-
onSelect:
|
|
274
|
+
onSelect: Ce,
|
|
271
275
|
onTab: t[3] ||= (e) => T("tab", e)
|
|
272
276
|
}, null, 8, [
|
|
273
277
|
"label",
|
|
@@ -281,7 +285,7 @@ var x = [
|
|
|
281
285
|
"position",
|
|
282
286
|
"available-size",
|
|
283
287
|
"z-index"
|
|
284
|
-
])) :
|
|
288
|
+
])) : u("", !0)], 8, ["to"])) : u("", !0)], 16, fe);
|
|
285
289
|
};
|
|
286
290
|
}
|
|
287
291
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../../../assets/src/components/shared/controls/SSelect.
|
|
1
|
+
import "../../../../assets/src/components/shared/controls/SSelect.css_vue_type_style_index_0_src_d1ead6c0_scoped_d1ead6c0_lang.css";
|
|
2
2
|
import e from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
import t from "./SSelect.vue_vue_type_script_setup_true_lang.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
//#region src/components/shared/controls/SSelect.vue
|
|
6
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-
|
|
6
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-d1ead6c0"]]);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { n as default };
|
|
@@ -2,16 +2,17 @@ import { findRelativeTabTarget as e } from "../../../internal/focusNavigation.js
|
|
|
2
2
|
import { registerLayer as t } from "../../../internal/layerStack.js";
|
|
3
3
|
import { useOverlayAdmission as n } from "../../../internal/overlayHost.js";
|
|
4
4
|
import { validateBoolean as r, validateDomId as i, validateExactString as a, validateNonEmptyString as o } from "../../../internal/runtimeContract.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import c from "
|
|
9
|
-
import
|
|
10
|
-
import ie from "
|
|
11
|
-
import ae from "./
|
|
12
|
-
import
|
|
5
|
+
import { useOverlayPortalTarget as ee } from "../../../internal/overlayPortal.js";
|
|
6
|
+
import { useFloatingPosition as te } from "../../../composables/useFloatingPosition.js";
|
|
7
|
+
import { useUiKitLocale as s } from "../../../composables/useUiKitLocale.js";
|
|
8
|
+
import { mergeIdReferences as c, useOwnedAttrs as ne } from "../../../internal/ownedAttrs.js";
|
|
9
|
+
import re from "./SField.vue.js";
|
|
10
|
+
import { isSelectionModelList as l, resolveSelectionInventory as u, validateOptionalSelectionString as d, validateSelectionMarker as ie, validateSelectionModel as f } from "../_internal/selectionContract.js";
|
|
11
|
+
import ae from "./SComboboxTrigger.vue.js";
|
|
12
|
+
import oe from "./SListbox.vue.js";
|
|
13
|
+
import { Teleport as se, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as ce, createElementVNode as g, createVNode as _, defineComponent as v, mergeProps as y, nextTick as b, normalizeStyle as le, onBeforeUnmount as ue, openBlock as x, ref as S, unref as C, useId as w, watch as T, withCtx as de } from "vue";
|
|
13
14
|
//#region src/components/shared/controls/SSelect.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
-
var
|
|
15
|
+
var E = /*@__PURE__*/ v({
|
|
15
16
|
inheritAttrs: !1,
|
|
16
17
|
__name: "SSelect",
|
|
17
18
|
props: {
|
|
@@ -47,121 +48,125 @@ var T = /*@__PURE__*/ y({
|
|
|
47
48
|
modelValue: {}
|
|
48
49
|
},
|
|
49
50
|
emits: ["update:modelValue"],
|
|
50
|
-
setup(
|
|
51
|
-
let
|
|
51
|
+
setup(v, { emit: E }) {
|
|
52
|
+
let D = v, { t: fe } = s(), O = E, pe = ne({
|
|
52
53
|
component: "SSelect",
|
|
53
54
|
owner: "combobox trigger"
|
|
54
|
-
}), k = p(() =>
|
|
55
|
-
let e = a("SSelect", "selectionMode",
|
|
56
|
-
if (
|
|
55
|
+
}), k = p(() => pe.bindings()), A = w(), j = p(() => {
|
|
56
|
+
let e = a("SSelect", "selectionMode", D.selectionMode ?? "single", ["single", "multiple"]), t;
|
|
57
|
+
if (D.emptyOptionLabel !== void 0) {
|
|
57
58
|
if (e === "multiple") throw Error("SSelect: emptyOptionLabel is available only in single selection mode");
|
|
58
|
-
t = o("SSelect", "emptyOptionLabel",
|
|
59
|
+
t = o("SSelect", "emptyOptionLabel", D.emptyOptionLabel);
|
|
59
60
|
}
|
|
60
61
|
return {
|
|
61
|
-
inputId:
|
|
62
|
-
label:
|
|
63
|
-
placeholder: o("SSelect", "placeholder",
|
|
64
|
-
disabled: r("SSelect", "disabled",
|
|
65
|
-
readonly: r("SSelect", "readonly",
|
|
66
|
-
required: r("SSelect", "required",
|
|
67
|
-
invalid: r("SSelect", "invalid",
|
|
68
|
-
errorMessage: d("SSelect", "errorMessage",
|
|
69
|
-
helpText: d("SSelect", "helpText",
|
|
70
|
-
size: a("SSelect", "size",
|
|
62
|
+
inputId: D.id === void 0 ? `s-select-${A}` : i("SSelect", "id", D.id),
|
|
63
|
+
label: D.label === void 0 ? void 0 : o("SSelect", "label", D.label),
|
|
64
|
+
placeholder: o("SSelect", "placeholder", D.placeholder ?? fe("forms.selectPlaceholder")),
|
|
65
|
+
disabled: r("SSelect", "disabled", D.disabled),
|
|
66
|
+
readonly: r("SSelect", "readonly", D.readonly),
|
|
67
|
+
required: r("SSelect", "required", D.required),
|
|
68
|
+
invalid: r("SSelect", "invalid", D.invalid),
|
|
69
|
+
errorMessage: d("SSelect", "errorMessage", D.errorMessage),
|
|
70
|
+
helpText: d("SSelect", "helpText", D.helpText),
|
|
71
|
+
size: a("SSelect", "size", D.size, [
|
|
71
72
|
"xs",
|
|
72
73
|
"sm",
|
|
73
74
|
"md"
|
|
74
75
|
]),
|
|
75
|
-
appearance: a("SSelect", "appearance",
|
|
76
|
-
align: a("SSelect", "align",
|
|
76
|
+
appearance: a("SSelect", "appearance", D.appearance, ["field", "swatch"]),
|
|
77
|
+
align: a("SSelect", "align", D.align, [
|
|
77
78
|
"left",
|
|
78
79
|
"right",
|
|
79
80
|
"center"
|
|
80
81
|
]),
|
|
81
|
-
triggerMarker:
|
|
82
|
-
title: d("SSelect", "title",
|
|
82
|
+
triggerMarker: ie("SSelect", "triggerMarker", D.triggerMarker),
|
|
83
|
+
title: d("SSelect", "title", D.title),
|
|
83
84
|
selectionMode: e,
|
|
84
85
|
emptyOptionLabel: t
|
|
85
86
|
};
|
|
86
|
-
}), M = p(() => `${j.value.inputId}-listbox`), N = p(() => j.value.selectionMode), P = p(() => u("SSelect",
|
|
87
|
+
}), M = p(() => `${j.value.inputId}-listbox`), N = p(() => j.value.selectionMode), P = p(() => u("SSelect", D.options)), F = p(() => f("SSelect", j.value.selectionMode, D.modelValue, P.value)), I = p(() => {
|
|
87
88
|
let e = k.value["aria-label"];
|
|
88
89
|
return e === void 0 ? j.value.label ?? j.value.placeholder : o("SSelect", "aria-label", e);
|
|
89
|
-
}), L = p(() => P.value.options.find((e) => F.value.has(e.token))?.option ?? null), R = p(() => P.value.options.filter((e) => F.value.has(e.token)).map((e) => e.option.label).join(", ")), z = p(() => j.value.emptyOptionLabel),
|
|
90
|
+
}), L = p(() => P.value.options.find((e) => F.value.has(e.token))?.option ?? null), R = p(() => P.value.options.filter((e) => F.value.has(e.token)).map((e) => e.option.label).join(", ")), z = p(() => j.value.emptyOptionLabel), me = p(() => {
|
|
90
91
|
let e = j.value.appearance === "swatch" ? "color" : "select", t = {
|
|
91
92
|
id: M.value,
|
|
92
93
|
label: I.value,
|
|
93
|
-
options:
|
|
94
|
+
options: D.options,
|
|
94
95
|
variant: e,
|
|
95
96
|
invalid: j.value.invalid
|
|
96
97
|
};
|
|
97
98
|
if (j.value.selectionMode === "multiple") {
|
|
98
|
-
if (!l(
|
|
99
|
+
if (!l(D.modelValue)) throw TypeError("SSelect: multiple selection requires modelValue to be an array");
|
|
99
100
|
return {
|
|
100
101
|
...t,
|
|
101
102
|
selectionMode: "multiple",
|
|
102
|
-
modelValue:
|
|
103
|
+
modelValue: D.modelValue
|
|
103
104
|
};
|
|
104
105
|
}
|
|
105
|
-
if (l(
|
|
106
|
+
if (l(D.modelValue)) throw TypeError("SSelect: single selection requires modelValue to be a selection key or null");
|
|
106
107
|
return {
|
|
107
108
|
...t,
|
|
108
109
|
selectionMode: "single",
|
|
109
|
-
modelValue:
|
|
110
|
+
modelValue: D.modelValue,
|
|
110
111
|
clearOptionLabel: j.value.emptyOptionLabel
|
|
111
112
|
};
|
|
112
|
-
}),
|
|
113
|
-
active:
|
|
114
|
-
placement: () =>
|
|
113
|
+
}), B = S(!1), V = n(), H = ee(), U = S("var(--s-layer-root-floating)"), W = null, G = S(null), K = S(null), he = p(() => `bottom-${j.value.align === "left" ? "start" : j.value.align === "right" ? "end" : "center"}`), { anchorRef: q, panelRef: J, floatingStyle: ge, updatePosition: Y } = te({
|
|
114
|
+
active: B,
|
|
115
|
+
placement: () => he.value,
|
|
115
116
|
widthMatch: () => j.value.appearance === "field" ? "exact" : "none",
|
|
116
117
|
zIndex: () => U.value
|
|
117
|
-
})
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
});
|
|
119
|
+
T(J, () => W?.refreshModality(), { flush: "sync" });
|
|
120
|
+
let X = null, Z = 0;
|
|
121
|
+
T(V, (e) => {
|
|
122
|
+
e || Q("outside");
|
|
123
|
+
}, { flush: "sync" }), T(H, (e) => {
|
|
124
|
+
e === null && Q("outside");
|
|
120
125
|
}, { flush: "sync" });
|
|
121
|
-
function
|
|
122
|
-
|
|
126
|
+
function Q(e = "trigger") {
|
|
127
|
+
Z += 1, e !== "tab" && (X?.(), X = null), B.value && (B.value = !1, W?.unregister({
|
|
123
128
|
restoreFocus: e === "trigger" || e === "selection" || e === "escape",
|
|
124
129
|
commitFocusHandoff: e === "tab"
|
|
125
130
|
}), W = null, U.value = "var(--s-layer-root-floating)");
|
|
126
131
|
}
|
|
127
|
-
function
|
|
132
|
+
function $() {
|
|
128
133
|
let e = G.value;
|
|
129
134
|
if (!e) throw Error("SSelect: combobox trigger API is unavailable");
|
|
130
135
|
return e.getElement();
|
|
131
136
|
}
|
|
132
|
-
function
|
|
133
|
-
let n =
|
|
134
|
-
t.preventDefault(),
|
|
137
|
+
function _e(t) {
|
|
138
|
+
let n = $(), r = W?.focusScope() ?? document, i = e(n, r, J.value, t.shiftKey);
|
|
139
|
+
t.preventDefault(), X?.(), X = i && W ? W.handoffFocus(i) : null, Q("tab");
|
|
135
140
|
}
|
|
136
|
-
async function
|
|
137
|
-
if (
|
|
138
|
-
let e =
|
|
139
|
-
if (
|
|
141
|
+
async function ve() {
|
|
142
|
+
if (X?.(), X = null, F.value, z.value, j.value.disabled || j.value.readonly || B.value || !V.value || H.value === null) return;
|
|
143
|
+
let e = $(), n = document.activeElement, r = ++Z;
|
|
144
|
+
if (B.value = !0, W = t({
|
|
140
145
|
kind: "listbox",
|
|
141
146
|
root: () => J.value,
|
|
142
147
|
anchor: () => q.value,
|
|
143
148
|
restoreTarget: e,
|
|
144
|
-
requestDismiss: (e) =>
|
|
145
|
-
onRetire: () =>
|
|
146
|
-
}), U.value = W.zIndex, await
|
|
149
|
+
requestDismiss: (e) => Q(e === "escape" ? "escape" : "outside"),
|
|
150
|
+
onRetire: () => Q("outside")
|
|
151
|
+
}), U.value = W.zIndex, await b(), !B.value || Z !== r || !V.value || (Y(), await b(), !B.value || Z !== r || !V.value)) return;
|
|
147
152
|
let i = document.activeElement, a = n instanceof HTMLElement && !n.isConnected && i === document.body;
|
|
148
153
|
(i === n || a) && K.value?.focusSelectedOrFirst();
|
|
149
154
|
}
|
|
150
|
-
function
|
|
151
|
-
|
|
155
|
+
function ye() {
|
|
156
|
+
B.value ? Q("trigger") : ve();
|
|
152
157
|
}
|
|
153
|
-
function
|
|
158
|
+
function be(e) {
|
|
154
159
|
if (N.value === "multiple") {
|
|
155
160
|
if (!l(e)) throw TypeError("SSelect: multiple selection update must be an array");
|
|
156
|
-
f("SSelect update", "multiple", e, P.value),
|
|
161
|
+
f("SSelect update", "multiple", e, P.value), O("update:modelValue", e);
|
|
157
162
|
return;
|
|
158
163
|
}
|
|
159
164
|
if (l(e)) throw TypeError("SSelect: single selection update must be a selection key or null");
|
|
160
|
-
f("SSelect update", "single", e, P.value),
|
|
165
|
+
f("SSelect update", "single", e, P.value), O("update:modelValue", e), Q("selection");
|
|
161
166
|
}
|
|
162
|
-
return
|
|
163
|
-
|
|
164
|
-
}), (e, t) => (
|
|
167
|
+
return ue(() => {
|
|
168
|
+
Z += 1, X?.(), W?.unregister({ restoreFocus: !1 }), W = null;
|
|
169
|
+
}), (e, t) => (x(), m(re, {
|
|
165
170
|
"control-id": j.value.inputId,
|
|
166
171
|
label: j.value.label,
|
|
167
172
|
required: j.value.required,
|
|
@@ -171,17 +176,17 @@ var T = /*@__PURE__*/ y({
|
|
|
171
176
|
disabled: j.value.disabled,
|
|
172
177
|
readonly: j.value.readonly
|
|
173
178
|
}, {
|
|
174
|
-
default: de((e) => [
|
|
179
|
+
default: de((e) => [g("div", {
|
|
175
180
|
ref_key: "anchorRef",
|
|
176
181
|
ref: q,
|
|
177
182
|
class: "s-select-anchor"
|
|
178
|
-
}, [
|
|
183
|
+
}, [_(ae, {
|
|
179
184
|
ref_key: "triggerRef",
|
|
180
185
|
ref: G,
|
|
181
186
|
id: e.controlId,
|
|
182
187
|
title: j.value.title,
|
|
183
188
|
"accessible-label": I.value,
|
|
184
|
-
expanded:
|
|
189
|
+
expanded: B.value,
|
|
185
190
|
controls: M.value,
|
|
186
191
|
"display-value": R.value,
|
|
187
192
|
placeholder: j.value.placeholder,
|
|
@@ -189,7 +194,7 @@ var T = /*@__PURE__*/ y({
|
|
|
189
194
|
size: j.value.size,
|
|
190
195
|
disabled: e.disabled,
|
|
191
196
|
invalid: e.invalid,
|
|
192
|
-
"described-by":
|
|
197
|
+
"described-by": C(c)(k.value["aria-describedby"], e.describedBy),
|
|
193
198
|
required: e.required,
|
|
194
199
|
readonly: e.readonly,
|
|
195
200
|
"test-id": k.value["data-testid"],
|
|
@@ -198,7 +203,7 @@ var T = /*@__PURE__*/ y({
|
|
|
198
203
|
"task-mapping-kind": k.value["data-task-mapping-kind"],
|
|
199
204
|
appearance: j.value.appearance,
|
|
200
205
|
width: j.value.appearance === "swatch" ? "auto" : "full",
|
|
201
|
-
onToggle:
|
|
206
|
+
onToggle: ye
|
|
202
207
|
}, null, 8, [
|
|
203
208
|
"id",
|
|
204
209
|
"title",
|
|
@@ -220,20 +225,23 @@ var T = /*@__PURE__*/ y({
|
|
|
220
225
|
"task-mapping-kind",
|
|
221
226
|
"appearance",
|
|
222
227
|
"width"
|
|
223
|
-
])], 512), (
|
|
228
|
+
])], 512), C(H) ? (x(), m(se, {
|
|
229
|
+
key: 0,
|
|
230
|
+
to: C(H)
|
|
231
|
+
}, [B.value && C(V) ? (x(), ce("div", {
|
|
224
232
|
key: 0,
|
|
225
233
|
ref_key: "panelRef",
|
|
226
234
|
ref: J,
|
|
227
|
-
style:
|
|
235
|
+
style: le(C(ge)),
|
|
228
236
|
class: "s-select-layer"
|
|
229
|
-
}, [
|
|
237
|
+
}, [_(oe, y({
|
|
230
238
|
ref_key: "listboxRef",
|
|
231
239
|
ref: K
|
|
232
|
-
},
|
|
233
|
-
"onUpdate:modelValue":
|
|
234
|
-
onEscape: t[0] ||= (e) =>
|
|
235
|
-
onTab:
|
|
236
|
-
}), null, 16)], 4)) : h("", !0)]))]),
|
|
240
|
+
}, me.value, {
|
|
241
|
+
"onUpdate:modelValue": be,
|
|
242
|
+
onEscape: t[0] ||= (e) => Q("escape"),
|
|
243
|
+
onTab: _e
|
|
244
|
+
}), null, 16)], 4)) : h("", !0)], 8, ["to"])) : h("", !0)]),
|
|
237
245
|
_: 1
|
|
238
246
|
}, 8, [
|
|
239
247
|
"control-id",
|
|
@@ -248,4 +256,4 @@ var T = /*@__PURE__*/ y({
|
|
|
248
256
|
}
|
|
249
257
|
});
|
|
250
258
|
//#endregion
|
|
251
|
-
export {
|
|
259
|
+
export { E as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../../../assets/src/components/shared/data-display/SControlledToastViewport.
|
|
1
|
+
import "../../../../assets/src/components/shared/data-display/SControlledToastViewport.css_vue_type_style_index_0_src_a69aa84b_scoped_a69aa84b_lang.css";
|
|
2
2
|
import e from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
import t from "./SControlledToastViewport.vue_vue_type_script_setup_true_lang.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
//#region src/components/shared/data-display/SControlledToastViewport.vue
|
|
6
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-
|
|
6
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-a69aa84b"]]);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { n as default };
|