sit-onyx 1.0.0-beta.2 → 1.0.0-beta.21
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/components/OnyxCheckbox/OnyxCheckbox.vue.d.ts +2 -2
- package/dist/components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue.d.ts +2 -2
- package/dist/components/OnyxCheckboxGroup/types.d.ts +3 -2
- package/dist/components/OnyxEmpty/OnyxEmpty.vue.d.ts +11 -1
- package/dist/components/OnyxFormElement/OnyxFormElement.vue.d.ts +9 -2
- package/dist/components/OnyxFormElement/types.d.ts +6 -0
- package/dist/components/OnyxMobileNavButton/OnyxMobileNavButton.vue.d.ts +2 -2
- package/dist/components/OnyxMobileNavButton/types.d.ts +4 -0
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue.d.ts +9 -3
- package/dist/components/OnyxNavBar/modules/OnyxMenuItem/types.d.ts +1 -1
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.vue.d.ts +9 -1
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.vue.d.ts +10 -4
- package/dist/components/OnyxRadioButton/OnyxRadioButton.vue.d.ts +2 -2
- package/dist/components/OnyxRadioGroup/OnyxRadioGroup.vue.d.ts +2 -2
- package/dist/components/OnyxRadioGroup/types.d.ts +1 -1
- package/dist/components/OnyxSelect/OnyxSelect.vue.d.ts +5 -5
- package/dist/components/OnyxSelect/types.d.ts +21 -5
- package/dist/components/OnyxSelectInput/OnyxSelectInput.vue.d.ts +2 -2
- package/dist/components/OnyxSelectInput/types.d.ts +5 -12
- package/dist/components/OnyxSelectOption/OnyxSelectOption.vue.d.ts +1 -1
- package/dist/components/OnyxStepper/OnyxStepper.vue.d.ts +50 -0
- package/dist/components/OnyxStepper/types.d.ts +56 -0
- package/dist/components/OnyxSwitch/OnyxSwitch.vue.d.ts +1 -1
- package/dist/components/OnyxTooltip/OnyxTooltip.vue.d.ts +1 -1
- package/dist/components/OnyxTooltip/types.d.ts +2 -1
- package/dist/composables/useCustomValidity.d.ts +13 -1
- package/dist/index.cjs +5 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1682 -1417
- package/dist/style.css +1 -1
- package/dist/utils/attrs.d.ts +3 -3
- package/package.json +5 -8
- package/src/i18n/locales/de-DE.json +6 -1
- package/src/i18n/locales/en-US.json +6 -1
- package/src/styles/global.css +1 -1
- package/src/styles/index.scss +7 -4
- package/src/styles/mixins/checkbox.scss +1 -13
- package/src/styles/mixins/input.scss +49 -5
- package/src/styles/mixins/list.scss +2 -11
- package/src/styles/required.scss +1 -1
- package/src/styles/{dark.css → variables/dark.css} +1 -13
- package/src/styles/variables/density-compact.css +17 -0
- package/src/styles/variables/density-cozy.css +17 -0
- package/src/styles/variables/density-default.css +18 -0
- package/src/styles/{light.css → variables/light.css} +1 -13
- package/src/styles/variables/spacing.css +20 -0
- package/src/styles/{themes → variables/themes}/kaufland.css +2 -2
- package/src/styles/{themes → variables/themes}/lidl.css +2 -2
- package/src/styles/{themes → variables/themes}/onyx.css +2 -2
- package/src/styles/{themes → variables/themes}/onyx.json +1 -1
- package/src/styles/{themes → variables/themes}/twogo.css +2 -2
- package/src/styles/density.scss +0 -41
- package/src/types/breakpoints.ts +0 -14
- package/src/types/colors.ts +0 -10
- package/src/types/components.ts +0 -59
- package/src/types/fonts.ts +0 -7
- package/src/types/i18n.ts +0 -68
- package/src/types/index.ts +0 -10
- package/src/types/themes.ts +0 -1
- package/src/types/utils.ts +0 -4
package/dist/index.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as w, useSlots as G, openBlock as s, createElementBlock as p, normalizeClass as g, renderSlot as b, createCommentVNode as _, createElementVNode as f, computed as h, ref as T, watch as Y, createTextVNode as Z, toDisplayString as V, unref as r, Fragment as R, createBlock as x, inject as ue, watchEffect as Q, createVNode as M, withDirectives as K, vModelCheckbox as ot, resolveDynamicComponent as ce, withCtx as $, mergeProps as O, renderList as J, withModifiers as De, shallowRef as It, reactive as At, onBeforeMount as Ne, onBeforeUnmount as ye, normalizeProps as ee, guardReactiveProps as te, vModelDynamic as Ht, useAttrs as Pt, vModelText as ze, Teleport as Dt, mergeModels as he, useModel as ve, vShow as nt, createSlots as fe, toRef as Te, provide as Nt, nextTick as zt, normalizeStyle as Ee } from "vue";
|
|
2
|
+
const Rt = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "onyx-app__nav"
|
|
5
|
-
},
|
|
5
|
+
}, Ut = { class: "onyx-app__page" }, Ft = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "onyx-app__page-overlay"
|
|
8
|
-
},
|
|
8
|
+
}, qt = {
|
|
9
9
|
key: 2,
|
|
10
10
|
class: "onyx-app__app-overlay"
|
|
11
|
-
},
|
|
11
|
+
}, Dn = /* @__PURE__ */ w({
|
|
12
12
|
__name: "OnyxAppLayout",
|
|
13
13
|
props: {
|
|
14
14
|
navBarAlignment: { default: "top" }
|
|
15
15
|
},
|
|
16
16
|
setup(t) {
|
|
17
|
-
const a = t, e =
|
|
18
|
-
return (l,
|
|
17
|
+
const a = t, e = G();
|
|
18
|
+
return (l, n) => (s(), p("div", {
|
|
19
19
|
class: g(["onyx-app", { "onyx-app--horizontal": a.navBarAlignment === "left" }])
|
|
20
20
|
}, [
|
|
21
|
-
e.navBar ? (
|
|
21
|
+
e.navBar ? (s(), p("div", Rt, [
|
|
22
22
|
b(l.$slots, "navBar")
|
|
23
23
|
])) : _("", !0),
|
|
24
|
-
|
|
24
|
+
f("div", Ut, [
|
|
25
25
|
b(l.$slots, "default")
|
|
26
26
|
]),
|
|
27
|
-
e.pageOverlay ? (
|
|
27
|
+
e.pageOverlay ? (s(), p("div", Ft, [
|
|
28
28
|
b(l.$slots, "pageOverlay")
|
|
29
29
|
])) : _("", !0),
|
|
30
|
-
e.appOverlay ? (
|
|
30
|
+
e.appOverlay ? (s(), p("div", qt, [
|
|
31
31
|
b(l.$slots, "appOverlay")
|
|
32
32
|
])) : _("", !0)
|
|
33
33
|
], 2));
|
|
34
34
|
}
|
|
35
|
-
}),
|
|
35
|
+
}), Zt = ["title"], Gt = ["src", "alt"], Kt = {
|
|
36
36
|
key: 1,
|
|
37
37
|
class: "onyx-avatar__initials"
|
|
38
|
-
},
|
|
38
|
+
}, Ye = /* @__PURE__ */ w({
|
|
39
39
|
__name: "OnyxAvatar",
|
|
40
40
|
props: {
|
|
41
41
|
size: { default: "48px" },
|
|
@@ -43,40 +43,40 @@ const Tt = {
|
|
|
43
43
|
src: {}
|
|
44
44
|
},
|
|
45
45
|
setup(t) {
|
|
46
|
-
const a = t, e =
|
|
46
|
+
const a = t, e = G(), l = h(() => {
|
|
47
47
|
const o = a.label.split(" ");
|
|
48
48
|
return (o.length > 1 ? `${o[0].charAt(0)}${o[1].charAt(0)}` : o[0].substring(0, 2)).toUpperCase();
|
|
49
|
-
}),
|
|
50
|
-
return
|
|
49
|
+
}), n = T(!1);
|
|
50
|
+
return Y(
|
|
51
51
|
() => a.src,
|
|
52
|
-
() =>
|
|
53
|
-
), (o,
|
|
52
|
+
() => n.value = !1
|
|
53
|
+
), (o, u) => (s(), p("figure", {
|
|
54
54
|
class: g(["onyx-avatar", [`onyx-avatar--${a.size}`, e.default ? "onyx-avatar--custom" : ""]]),
|
|
55
55
|
title: a.label
|
|
56
56
|
}, [
|
|
57
|
-
a.src && !
|
|
57
|
+
a.src && !n.value ? (s(), p("img", {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "onyx-avatar__svg",
|
|
60
60
|
src: a.src,
|
|
61
61
|
alt: a.label,
|
|
62
|
-
onError:
|
|
63
|
-
}, null, 40,
|
|
62
|
+
onError: u[0] || (u[0] = (c) => n.value = !0)
|
|
63
|
+
}, null, 40, Gt)) : (s(), p("div", Kt, [
|
|
64
64
|
b(o.$slots, "default", {}, () => [
|
|
65
|
-
|
|
65
|
+
Z(V(l.value), 1)
|
|
66
66
|
])
|
|
67
67
|
]))
|
|
68
|
-
], 10,
|
|
68
|
+
], 10, Zt));
|
|
69
69
|
}
|
|
70
|
-
}),
|
|
70
|
+
}), jt = { class: "onyx-avatar-stack" }, Nn = /* @__PURE__ */ w({
|
|
71
71
|
__name: "OnyxAvatarStack",
|
|
72
72
|
setup(t) {
|
|
73
|
-
return (a, e) => (
|
|
73
|
+
return (a, e) => (s(), p("div", jt, [
|
|
74
74
|
b(a.$slots, "default")
|
|
75
75
|
]));
|
|
76
76
|
}
|
|
77
|
-
}),
|
|
77
|
+
}), zn = ["compact", "default", "cozy"], H = (t) => ({
|
|
78
78
|
densityClass: h(() => ({ [`onyx-density-${t.density}`]: t.density }))
|
|
79
|
-
}),
|
|
79
|
+
}), Yt = ["innerHTML"], A = /* @__PURE__ */ w({
|
|
80
80
|
__name: "OnyxIcon",
|
|
81
81
|
props: {
|
|
82
82
|
size: {},
|
|
@@ -85,7 +85,7 @@ const Tt = {
|
|
|
85
85
|
},
|
|
86
86
|
setup(t) {
|
|
87
87
|
const a = t;
|
|
88
|
-
return (e, l) => (
|
|
88
|
+
return (e, l) => (s(), p("figure", {
|
|
89
89
|
class: g({
|
|
90
90
|
"onyx-icon": !0,
|
|
91
91
|
[`onyx-icon--${a.size}`]: a.size,
|
|
@@ -93,9 +93,9 @@ const Tt = {
|
|
|
93
93
|
}),
|
|
94
94
|
"aria-hidden": "true",
|
|
95
95
|
innerHTML: a.icon
|
|
96
|
-
}, null, 10,
|
|
96
|
+
}, null, 10, Yt));
|
|
97
97
|
}
|
|
98
|
-
}),
|
|
98
|
+
}), Wt = /* @__PURE__ */ w({
|
|
99
99
|
__name: "OnyxBadge",
|
|
100
100
|
props: {
|
|
101
101
|
density: {},
|
|
@@ -105,7 +105,7 @@ const Tt = {
|
|
|
105
105
|
},
|
|
106
106
|
setup(t) {
|
|
107
107
|
const a = t, { densityClass: e } = H(a);
|
|
108
|
-
return (l,
|
|
108
|
+
return (l, n) => (s(), p("div", {
|
|
109
109
|
class: g(["onyx-badge", [
|
|
110
110
|
"onyx-truncation-ellipsis",
|
|
111
111
|
"onyx-text",
|
|
@@ -114,58 +114,57 @@ const Tt = {
|
|
|
114
114
|
r(e)
|
|
115
115
|
]])
|
|
116
116
|
}, [
|
|
117
|
-
a.dot ? _("", !0) : (
|
|
118
|
-
a.icon ? (
|
|
117
|
+
a.dot ? _("", !0) : (s(), p(R, { key: 0 }, [
|
|
118
|
+
a.icon ? (s(), x(A, {
|
|
119
119
|
key: 0,
|
|
120
120
|
class: "onyx-badge__icon",
|
|
121
|
-
icon: a.icon
|
|
122
|
-
|
|
123
|
-
}, null, 8, ["icon", "size"])) : b(l.$slots, "default", { key: 1 })
|
|
121
|
+
icon: a.icon
|
|
122
|
+
}, null, 8, ["icon"])) : b(l.$slots, "default", { key: 1 })
|
|
124
123
|
], 64))
|
|
125
124
|
], 2));
|
|
126
125
|
}
|
|
127
|
-
}),
|
|
126
|
+
}), Re = (t, a) => {
|
|
128
127
|
const e = t.__vccOpts || t;
|
|
129
|
-
for (const [l,
|
|
130
|
-
e[l] =
|
|
128
|
+
for (const [l, n] of a)
|
|
129
|
+
e[l] = n;
|
|
131
130
|
return e;
|
|
132
|
-
},
|
|
131
|
+
}, Xt = {}, Jt = {
|
|
133
132
|
class: "onyx-circle-spinner",
|
|
134
133
|
viewBox: "0 0 50 50"
|
|
135
|
-
},
|
|
134
|
+
}, Qt = /* @__PURE__ */ f("circle", {
|
|
136
135
|
class: "onyx-circle-spinner__circle",
|
|
137
136
|
cx: "50%",
|
|
138
137
|
cy: "50%",
|
|
139
138
|
r: "45%"
|
|
140
|
-
}, null, -1),
|
|
141
|
-
|
|
139
|
+
}, null, -1), ea = [
|
|
140
|
+
Qt
|
|
142
141
|
];
|
|
143
|
-
function
|
|
144
|
-
return
|
|
142
|
+
function ta(t, a) {
|
|
143
|
+
return s(), p("svg", Jt, ea);
|
|
145
144
|
}
|
|
146
|
-
const
|
|
147
|
-
|
|
145
|
+
const aa = /* @__PURE__ */ Re(Xt, [["render", ta]]), la = {}, oa = { class: "onyx-loading-dots" }, na = /* @__PURE__ */ f("span", { class: "onyx-loading-dots__center" }, null, -1), sa = [
|
|
146
|
+
na
|
|
148
147
|
];
|
|
149
|
-
function
|
|
150
|
-
return
|
|
148
|
+
function ra(t, a) {
|
|
149
|
+
return s(), p("div", oa, sa);
|
|
151
150
|
}
|
|
152
|
-
const
|
|
151
|
+
const ia = /* @__PURE__ */ Re(la, [["render", ra]]), X = /* @__PURE__ */ w({
|
|
153
152
|
__name: "OnyxLoadingIndicator",
|
|
154
153
|
props: {
|
|
155
154
|
type: { default: "dots" }
|
|
156
155
|
},
|
|
157
156
|
setup(t) {
|
|
158
157
|
const a = t;
|
|
159
|
-
return (e, l) => a.type === "circle" ? (
|
|
158
|
+
return (e, l) => a.type === "circle" ? (s(), x(aa, { key: 0 })) : a.type === "dots" ? (s(), x(ia, { key: 1 })) : _("", !0);
|
|
160
159
|
}
|
|
161
|
-
}),
|
|
160
|
+
}), ua = {}, ca = {
|
|
162
161
|
"aria-hidden": "true",
|
|
163
162
|
class: "onyx-skeleton"
|
|
164
163
|
};
|
|
165
|
-
function
|
|
166
|
-
return
|
|
164
|
+
function da(t, a) {
|
|
165
|
+
return s(), p("figure", ca);
|
|
167
166
|
}
|
|
168
|
-
const U = /* @__PURE__ */
|
|
167
|
+
const U = /* @__PURE__ */ Re(ua, [["render", da]]), pa = ["disabled", "type", "aria-label", "autofocus"], ma = { class: "onyx-button__label onyx-truncation-ellipsis" }, Ie = /* @__PURE__ */ w({
|
|
169
168
|
__name: "OnyxButton",
|
|
170
169
|
props: {
|
|
171
170
|
density: {},
|
|
@@ -181,11 +180,11 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
181
180
|
},
|
|
182
181
|
emits: ["click"],
|
|
183
182
|
setup(t, { emit: a }) {
|
|
184
|
-
const e = t, { densityClass: l } = H(e),
|
|
185
|
-
return (o,
|
|
183
|
+
const e = t, { densityClass: l } = H(e), n = a;
|
|
184
|
+
return (o, u) => e.skeleton ? (s(), x(U, {
|
|
186
185
|
key: 0,
|
|
187
186
|
class: g(["onyx-button-skeleton", r(l)])
|
|
188
|
-
}, null, 8, ["class"])) : (
|
|
187
|
+
}, null, 8, ["class"])) : (s(), p("button", {
|
|
189
188
|
key: 1,
|
|
190
189
|
class: g([
|
|
191
190
|
"onyx-button",
|
|
@@ -198,20 +197,20 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
198
197
|
type: e.type,
|
|
199
198
|
"aria-label": e.loading ? e.label : void 0,
|
|
200
199
|
autofocus: e.autofocus,
|
|
201
|
-
onClick:
|
|
200
|
+
onClick: u[0] || (u[0] = (c) => n("click"))
|
|
202
201
|
}, [
|
|
203
|
-
e.icon && !e.loading ? (
|
|
202
|
+
e.icon && !e.loading ? (s(), x(A, {
|
|
204
203
|
key: 0,
|
|
205
204
|
icon: e.icon
|
|
206
205
|
}, null, 8, ["icon"])) : _("", !0),
|
|
207
|
-
e.loading ? (
|
|
206
|
+
e.loading ? (s(), x(X, {
|
|
208
207
|
key: 1,
|
|
209
208
|
class: "onyx-button__loading"
|
|
210
209
|
})) : _("", !0),
|
|
211
|
-
|
|
212
|
-
], 10,
|
|
210
|
+
f("span", ma, V(e.label), 1)
|
|
211
|
+
], 10, pa));
|
|
213
212
|
}
|
|
214
|
-
}),
|
|
213
|
+
}), Rn = ["button", "submit", "reset"], Un = ["primary", "neutral", "danger"], Fn = ["default", "outline", "plain"], _e = (t) => ({
|
|
215
214
|
/**
|
|
216
215
|
* Class that configures which type of required marker is used.
|
|
217
216
|
*/
|
|
@@ -222,7 +221,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
222
221
|
"onyx-required-marker": t.required,
|
|
223
222
|
"onyx-optional-marker": !t.required
|
|
224
223
|
}))
|
|
225
|
-
}),
|
|
224
|
+
}), ya = "(optional)", ha = "Cancel", va = "Apply", fa = "Back", _a = "Close", xa = {
|
|
226
225
|
tooShort: {
|
|
227
226
|
preview: "Too short",
|
|
228
227
|
fullError: "Please lengthen this text to {minLength} characters or more (you are currently using 1 character) | Please lengthen this text to {minLength} characters or more (you are currently using {n} characters)"
|
|
@@ -277,20 +276,24 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
277
276
|
fullError: '"{value}" must a valid URL.'
|
|
278
277
|
}
|
|
279
278
|
}
|
|
280
|
-
},
|
|
279
|
+
}, ba = {
|
|
281
280
|
toggleDropDown: "Toggle selection popover",
|
|
282
281
|
empty: "No data available",
|
|
283
282
|
noMatch: "No item matches your search",
|
|
284
283
|
searchInputLabel: "Filter the list items",
|
|
285
|
-
clearSearch: "Clear search filter"
|
|
286
|
-
|
|
284
|
+
clearSearch: "Clear search filter",
|
|
285
|
+
searchPlaceholder: "Search"
|
|
286
|
+
}, ga = {
|
|
287
287
|
selectAll: "Select all",
|
|
288
288
|
currentSelection: "{n} selected"
|
|
289
|
-
},
|
|
289
|
+
}, ka = {
|
|
290
|
+
decrement: "Decrement by {stepSize}",
|
|
291
|
+
increment: "Increment by {stepSize}"
|
|
292
|
+
}, wa = {
|
|
290
293
|
empty: "This table is empty."
|
|
291
|
-
},
|
|
294
|
+
}, Ca = {
|
|
292
295
|
opensExternally: "Opens in a new tab."
|
|
293
|
-
},
|
|
296
|
+
}, $a = "Subpages of {label}", Ma = {
|
|
294
297
|
appLogo: "App logo of {appName}",
|
|
295
298
|
goToHome: "Go to home page",
|
|
296
299
|
goBack: "Go back",
|
|
@@ -298,10 +301,10 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
298
301
|
toggleBurgerMenu: "Toggle burger menu",
|
|
299
302
|
toggleContextMenu: "Toggle context menu",
|
|
300
303
|
navigationHeadline: "Navigation"
|
|
301
|
-
},
|
|
304
|
+
}, Ba = {
|
|
302
305
|
info: "Show info tooltip",
|
|
303
306
|
error: "Show error tooltip"
|
|
304
|
-
},
|
|
307
|
+
}, Va = {
|
|
305
308
|
headline: "Change appearance",
|
|
306
309
|
subtitle: "Select the appearance of the application:",
|
|
307
310
|
appearance: "Appearance",
|
|
@@ -317,86 +320,91 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
317
320
|
label: "Dark",
|
|
318
321
|
description: "This color mode is optimized for darker environments."
|
|
319
322
|
}
|
|
320
|
-
},
|
|
321
|
-
optional:
|
|
322
|
-
cancel:
|
|
323
|
-
apply:
|
|
324
|
-
back:
|
|
325
|
-
close:
|
|
326
|
-
validations:
|
|
327
|
-
select:
|
|
328
|
-
selections:
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
323
|
+
}, Ae = {
|
|
324
|
+
optional: ya,
|
|
325
|
+
cancel: ha,
|
|
326
|
+
apply: va,
|
|
327
|
+
back: fa,
|
|
328
|
+
close: _a,
|
|
329
|
+
validations: xa,
|
|
330
|
+
select: ba,
|
|
331
|
+
selections: ga,
|
|
332
|
+
stepper: ka,
|
|
333
|
+
table: wa,
|
|
334
|
+
link: Ca,
|
|
335
|
+
navItemOptionsLabel: $a,
|
|
336
|
+
navigation: Ma,
|
|
337
|
+
showTooltip: Ba,
|
|
338
|
+
colorScheme: Va
|
|
339
|
+
}, st = Symbol(), rt = (t = {}) => {
|
|
336
340
|
const a = h(() => r(t == null ? void 0 : t.locale) ?? "en-US");
|
|
337
341
|
if (t.t)
|
|
338
342
|
return { t: t.t, locale: a };
|
|
339
|
-
const e = h(() => t != null && t.messages && a.value in t.messages ? t.messages[a.value] :
|
|
340
|
-
let
|
|
341
|
-
return
|
|
343
|
+
const e = h(() => t != null && t.messages && a.value in t.messages ? t.messages[a.value] : Ae), l = h(() => (n, o = {}) => {
|
|
344
|
+
let u = We(n, e.value) ?? We(n, Ae) ?? "";
|
|
345
|
+
return u = Oa(u, o.n), La(u, o);
|
|
342
346
|
});
|
|
343
347
|
return { locale: a, t: l };
|
|
344
|
-
},
|
|
345
|
-
const e =
|
|
346
|
-
return t.provide(
|
|
347
|
-
},
|
|
348
|
-
const e = t.split(".").reduce((l,
|
|
348
|
+
}, Sa = (t, a) => {
|
|
349
|
+
const e = rt(a);
|
|
350
|
+
return t.provide(st, e), e;
|
|
351
|
+
}, N = () => ue(st, () => rt(), !0), We = (t, a) => {
|
|
352
|
+
const e = t.split(".").reduce((l, n) => !l || typeof l == "string" ? l : l[n], a);
|
|
349
353
|
return e && typeof e == "string" ? e : void 0;
|
|
350
|
-
},
|
|
351
|
-
const e = t.split(" | ").map((
|
|
354
|
+
}, Oa = (t, a) => {
|
|
355
|
+
const e = t.split(" | ").map((n) => n.trim());
|
|
352
356
|
if (e.length <= 1) return t;
|
|
353
357
|
let l = 1;
|
|
354
358
|
return a === 0 && (l = 0), a && (a <= 0 || a > 1) && (l = 2), e.length === 2 ? l === 1 ? e[0] : e[1] : e[l];
|
|
355
|
-
},
|
|
356
|
-
const e = Object.entries(t).filter(([
|
|
357
|
-
return e.length !== l.length ? !1 : e.every(([
|
|
358
|
-
},
|
|
359
|
+
}, La = (t, a) => a ? Object.entries(a).reduce((l, [n, o]) => o === void 0 ? l : l.replace(new RegExp(`{${n}}`, "gi"), o.toString()), t).replace(/\s?{.*}\s?/gi, "") : t, Ta = (t, a) => {
|
|
360
|
+
const e = Object.entries(t).filter(([n, o]) => o !== void 0), l = Object.entries(a).filter(([n, o]) => o !== void 0);
|
|
361
|
+
return e.length !== l.length ? !1 : e.every(([n, o]) => o === a[n]);
|
|
362
|
+
}, Ea = (t, a) => t.reduce(
|
|
359
363
|
(e, l) => {
|
|
360
|
-
const
|
|
361
|
-
return e[
|
|
364
|
+
const n = l[a] ?? "";
|
|
365
|
+
return e[n] = e[n] || [], e[n].push(l), e;
|
|
362
366
|
},
|
|
363
367
|
{}
|
|
364
|
-
),
|
|
368
|
+
), it = () => Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([t, a]) => a.enumerable).map(([t]) => t), Ia = (t) => it().reduce(
|
|
365
369
|
(a, e) => (a[e] = t[e], a),
|
|
366
370
|
{}
|
|
367
|
-
),
|
|
371
|
+
), Aa = (t) => {
|
|
368
372
|
if (t.valueMissing) return "valueMissing";
|
|
369
|
-
const a =
|
|
373
|
+
const a = it().filter((e) => e !== "valid").sort();
|
|
370
374
|
for (const e of a)
|
|
371
375
|
if (e in t && t[e]) return e;
|
|
372
|
-
},
|
|
373
|
-
|
|
374
|
-
),
|
|
376
|
+
}, Ha = Object.keys(
|
|
377
|
+
Ae.validations.typeMismatch
|
|
378
|
+
), Pa = (t) => {
|
|
375
379
|
if (t)
|
|
376
380
|
return typeof t == "string" ? { shortMessage: t, longMessage: t } : t;
|
|
377
|
-
},
|
|
381
|
+
}, Xe = (t) => {
|
|
378
382
|
if (!t) return;
|
|
379
383
|
if (typeof t == "string")
|
|
380
384
|
return t;
|
|
385
|
+
if (t.shortMessage === t.longMessage)
|
|
386
|
+
return t.shortMessage;
|
|
381
387
|
const { shortMessage: a, longMessage: e } = t;
|
|
382
388
|
return `${a}: ${e}`;
|
|
383
|
-
},
|
|
384
|
-
const { t: a } =
|
|
385
|
-
|
|
389
|
+
}, ae = (t) => {
|
|
390
|
+
const { t: a } = N(), e = T(), l = T(!1);
|
|
391
|
+
Y(
|
|
386
392
|
() => t.props.modelValue,
|
|
387
393
|
() => l.value = !0,
|
|
388
394
|
{ once: !0 }
|
|
389
395
|
);
|
|
390
|
-
const
|
|
391
|
-
mounted: (
|
|
392
|
-
|
|
393
|
-
|
|
396
|
+
const n = {
|
|
397
|
+
mounted: (c) => {
|
|
398
|
+
Q(() => c.setCustomValidity(Xe(t.props.customError) ?? "")), Y(
|
|
399
|
+
// we need to watch all props instead of only modelValue so the validity is re-checked
|
|
400
|
+
// when the validation rules change
|
|
401
|
+
[() => t.props],
|
|
394
402
|
() => {
|
|
395
|
-
const
|
|
396
|
-
!e.value &&
|
|
403
|
+
const i = Ia(c.validity);
|
|
404
|
+
!e.value && i.valid || e.value && Ta(i, e.value) || (e.value = i);
|
|
397
405
|
},
|
|
398
|
-
{ immediate: !0 }
|
|
399
|
-
),
|
|
406
|
+
{ immediate: !0, deep: !0 }
|
|
407
|
+
), Y(
|
|
400
408
|
[() => t.props.customError, e, l],
|
|
401
409
|
() => {
|
|
402
410
|
!l.value || !e.value || t.emit("validityChange", e.value);
|
|
@@ -405,40 +413,55 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
405
413
|
);
|
|
406
414
|
}
|
|
407
415
|
}, o = h(() => {
|
|
408
|
-
var
|
|
416
|
+
var d, m, v;
|
|
409
417
|
if (!e.value || e.value.valid) return;
|
|
410
|
-
const
|
|
411
|
-
if (
|
|
412
|
-
return
|
|
413
|
-
if (!
|
|
414
|
-
if (
|
|
415
|
-
const
|
|
418
|
+
const c = Aa(e.value), i = Pa(t.props.customError);
|
|
419
|
+
if (i || c === "customError")
|
|
420
|
+
return i || void 0;
|
|
421
|
+
if (!c) return;
|
|
422
|
+
if (c === "typeMismatch") {
|
|
423
|
+
const k = Ha.includes(t.props.type) ? t.props.type : "generic";
|
|
416
424
|
return {
|
|
417
|
-
longMessage: a.value(`validations.typeMismatch.${
|
|
418
|
-
value: (
|
|
425
|
+
longMessage: a.value(`validations.typeMismatch.${k}.fullError`, {
|
|
426
|
+
value: (d = t.props.modelValue) == null ? void 0 : d.toString()
|
|
419
427
|
}),
|
|
420
|
-
shortMessage: a.value(`validations.typeMismatch.${
|
|
428
|
+
shortMessage: a.value(`validations.typeMismatch.${k}.preview`)
|
|
421
429
|
};
|
|
422
430
|
}
|
|
423
|
-
const
|
|
424
|
-
value: (
|
|
425
|
-
n: ((
|
|
431
|
+
const y = {
|
|
432
|
+
value: (m = t.props.modelValue) == null ? void 0 : m.toString(),
|
|
433
|
+
n: ((v = t.props.modelValue) == null ? void 0 : v.toString().length) ?? 0,
|
|
426
434
|
minLength: t.props.minlength,
|
|
427
|
-
maxLength: t.props.maxlength
|
|
435
|
+
maxLength: t.props.maxlength,
|
|
436
|
+
min: t.props.min,
|
|
437
|
+
max: t.props.max,
|
|
438
|
+
step: t.props.step
|
|
428
439
|
};
|
|
429
440
|
return {
|
|
430
|
-
longMessage: a.value(`validations.${
|
|
431
|
-
shortMessage: a.value(`validations.${
|
|
441
|
+
longMessage: a.value(`validations.${c}.fullError`, y),
|
|
442
|
+
shortMessage: a.value(`validations.${c}.preview`)
|
|
432
443
|
};
|
|
444
|
+
}), u = h(() => {
|
|
445
|
+
const c = [];
|
|
446
|
+
return t.props.hideLabel && c.push(t.props.label), o.value && c.push(Xe(o.value)), c.length ? c.join(`
|
|
447
|
+
`) : void 0;
|
|
433
448
|
});
|
|
434
449
|
return {
|
|
435
450
|
/**
|
|
436
451
|
* Directive to set the custom error message and emit validityChange event.
|
|
437
452
|
*/
|
|
438
|
-
vCustomValidity:
|
|
439
|
-
|
|
453
|
+
vCustomValidity: n,
|
|
454
|
+
/**
|
|
455
|
+
* A custom error or the default translation of the first invalid state if one exists.
|
|
456
|
+
*/
|
|
457
|
+
errorMessages: o,
|
|
458
|
+
/**
|
|
459
|
+
* A combination of a label (if it is hidden) and the error message (if an error exists).
|
|
460
|
+
* Usage e.g. on OnyxRadioButton, OnyxCheckbox, OnyxSwitch where no error message footer exists.
|
|
461
|
+
*/
|
|
462
|
+
title: u
|
|
440
463
|
};
|
|
441
|
-
},
|
|
464
|
+
}, Da = ["title"], Na = { class: "onyx-checkbox__container" }, za = ["aria-label", "indeterminate", "disabled", "required", "value", "autofocus"], Ve = /* @__PURE__ */ w({
|
|
442
465
|
__name: "OnyxCheckbox",
|
|
443
466
|
props: {
|
|
444
467
|
density: {},
|
|
@@ -458,33 +481,33 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
458
481
|
},
|
|
459
482
|
emits: ["update:modelValue", "validityChange"],
|
|
460
483
|
setup(t, { emit: a }) {
|
|
461
|
-
const e = t, l = a,
|
|
484
|
+
const e = t, l = a, n = h({
|
|
462
485
|
get: () => e.modelValue,
|
|
463
|
-
set: (
|
|
464
|
-
}), { requiredMarkerClass: o, requiredTypeClass:
|
|
465
|
-
return (
|
|
486
|
+
set: (d) => l("update:modelValue", d)
|
|
487
|
+
}), { requiredMarkerClass: o, requiredTypeClass: u } = _e(e), { densityClass: c } = H(e), { vCustomValidity: i, title: y } = ae({ props: e, emit: l });
|
|
488
|
+
return (d, m) => e.skeleton ? (s(), p("div", {
|
|
466
489
|
key: 0,
|
|
467
|
-
class: g(["onyx-checkbox-skeleton", r(
|
|
490
|
+
class: g(["onyx-checkbox-skeleton", r(c)])
|
|
468
491
|
}, [
|
|
469
|
-
|
|
470
|
-
e.hideLabel ? _("", !0) : (
|
|
492
|
+
M(U, { class: "onyx-checkbox-skeleton__input" }),
|
|
493
|
+
e.hideLabel ? _("", !0) : (s(), x(U, {
|
|
471
494
|
key: 0,
|
|
472
495
|
class: "onyx-checkbox-skeleton__label"
|
|
473
496
|
}))
|
|
474
|
-
], 2)) : (
|
|
497
|
+
], 2)) : (s(), p("label", {
|
|
475
498
|
key: 1,
|
|
476
|
-
class: g(["onyx-checkbox", [r(
|
|
499
|
+
class: g(["onyx-checkbox", [r(u), r(c)]]),
|
|
500
|
+
title: r(y)
|
|
477
501
|
}, [
|
|
478
|
-
|
|
479
|
-
e.loading ? (
|
|
502
|
+
f("div", Na, [
|
|
503
|
+
e.loading ? (s(), x(X, {
|
|
480
504
|
key: 0,
|
|
481
505
|
class: "onyx-checkbox__loading",
|
|
482
506
|
type: "circle"
|
|
483
|
-
})) :
|
|
507
|
+
})) : K((s(), p("input", {
|
|
484
508
|
key: 1,
|
|
485
|
-
"onUpdate:modelValue":
|
|
509
|
+
"onUpdate:modelValue": m[0] || (m[0] = (v) => n.value = v),
|
|
486
510
|
"aria-label": e.hideLabel ? e.label : void 0,
|
|
487
|
-
title: e.hideLabel ? e.label : void 0,
|
|
488
511
|
class: "onyx-checkbox__input",
|
|
489
512
|
type: "checkbox",
|
|
490
513
|
indeterminate: e.indeterminate,
|
|
@@ -492,42 +515,42 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
492
515
|
required: e.required,
|
|
493
516
|
value: e.value,
|
|
494
517
|
autofocus: e.autofocus
|
|
495
|
-
}, null, 8,
|
|
496
|
-
[
|
|
497
|
-
[r(
|
|
518
|
+
}, null, 8, za)), [
|
|
519
|
+
[ot, n.value],
|
|
520
|
+
[r(i)]
|
|
498
521
|
])
|
|
499
522
|
]),
|
|
500
|
-
e.hideLabel ? _("", !0) : (
|
|
501
|
-
|
|
523
|
+
e.hideLabel ? _("", !0) : (s(), p(R, { key: 0 }, [
|
|
524
|
+
f("p", {
|
|
502
525
|
class: g(["onyx-checkbox__label", [
|
|
503
526
|
`onyx-truncation-${e.truncation}`,
|
|
504
527
|
// shows the required marker inline for multiline labels
|
|
505
528
|
e.truncation === "multiline" ? r(o) : void 0
|
|
506
529
|
]])
|
|
507
|
-
},
|
|
508
|
-
e.truncation === "ellipsis" ? (
|
|
530
|
+
}, V(e.label), 3),
|
|
531
|
+
e.truncation === "ellipsis" ? (s(), p("div", {
|
|
509
532
|
key: 0,
|
|
510
533
|
class: g(["onyx-checkbox__marker", [r(o)]])
|
|
511
534
|
}, null, 2)) : _("", !0)
|
|
512
535
|
], 64))
|
|
513
|
-
],
|
|
536
|
+
], 10, Da));
|
|
514
537
|
}
|
|
515
|
-
}),
|
|
538
|
+
}), Ra = (t, a) => h(() => {
|
|
516
539
|
const e = a.value.filter(
|
|
517
|
-
(
|
|
540
|
+
(n) => t.value.includes(n)
|
|
518
541
|
), l = e.length === t.value.length;
|
|
519
542
|
return {
|
|
520
543
|
modelValue: l,
|
|
521
544
|
indeterminate: !l && t.value.length && e.length ? !0 : void 0
|
|
522
545
|
};
|
|
523
|
-
}),
|
|
546
|
+
}), ut = (t, a, e) => ({
|
|
524
547
|
/**
|
|
525
548
|
* Current "select all" checkbox state.
|
|
526
549
|
* - checked if all options are checked
|
|
527
550
|
* - indeterminate if at least one but not all options are checked
|
|
528
551
|
* - unchecked if no options are checked
|
|
529
552
|
*/
|
|
530
|
-
state:
|
|
553
|
+
state: Ra(t, a),
|
|
531
554
|
/**
|
|
532
555
|
* Provides an update for the checkbox list with
|
|
533
556
|
* - all option values if "select all" was checked
|
|
@@ -535,18 +558,35 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
535
558
|
* Does not touch the state of disabled checkboxes
|
|
536
559
|
*/
|
|
537
560
|
handleChange: (l) => {
|
|
538
|
-
const
|
|
539
|
-
(
|
|
540
|
-
), o = l ?
|
|
561
|
+
const n = a.value.filter(
|
|
562
|
+
(u) => !t.value.includes(u)
|
|
563
|
+
), o = l ? n.concat(t.value) : n;
|
|
541
564
|
e(o);
|
|
542
565
|
}
|
|
543
|
-
}),
|
|
566
|
+
}), ie = /* @__PURE__ */ w({
|
|
567
|
+
__name: "OnyxHeadline",
|
|
568
|
+
props: {
|
|
569
|
+
is: {}
|
|
570
|
+
},
|
|
571
|
+
setup(t) {
|
|
572
|
+
const a = t;
|
|
573
|
+
return (e, l) => (s(), x(ce(a.is), {
|
|
574
|
+
class: g(["onyx-headline", `onyx-headline--${a.is}`])
|
|
575
|
+
}, {
|
|
576
|
+
default: $(() => [
|
|
577
|
+
b(e.$slots, "default")
|
|
578
|
+
]),
|
|
579
|
+
_: 3
|
|
580
|
+
}, 8, ["class"]));
|
|
581
|
+
}
|
|
582
|
+
}), Ua = ["disabled"], Fa = {
|
|
544
583
|
key: 0,
|
|
545
584
|
class: "onyx-checkbox-group__label"
|
|
546
|
-
},
|
|
585
|
+
}, qn = /* @__PURE__ */ w({
|
|
547
586
|
__name: "OnyxCheckboxGroup",
|
|
548
587
|
props: {
|
|
549
588
|
density: {},
|
|
589
|
+
truncation: { default: "ellipsis" },
|
|
550
590
|
options: {},
|
|
551
591
|
modelValue: { default: () => [] },
|
|
552
592
|
headline: {},
|
|
@@ -557,63 +597,64 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
557
597
|
},
|
|
558
598
|
emits: ["update:modelValue"],
|
|
559
599
|
setup(t, { emit: a }) {
|
|
560
|
-
const e = t, { densityClass: l } = H(e),
|
|
561
|
-
const
|
|
562
|
-
|
|
563
|
-
},
|
|
564
|
-
() => e.options.filter((
|
|
565
|
-
),
|
|
566
|
-
|
|
600
|
+
const e = t, { densityClass: l } = H(e), n = a, { t: o } = N(), u = (d, m) => {
|
|
601
|
+
const v = m ? [...e.modelValue, d] : e.modelValue.filter((k) => k !== d);
|
|
602
|
+
n("update:modelValue", v);
|
|
603
|
+
}, c = h(
|
|
604
|
+
() => e.options.filter((d) => !d.disabled && !d.skeleton).map(({ value: d }) => d)
|
|
605
|
+
), i = ut(
|
|
606
|
+
c,
|
|
567
607
|
h(() => e.modelValue),
|
|
568
|
-
(
|
|
569
|
-
),
|
|
570
|
-
var
|
|
571
|
-
const
|
|
572
|
-
return typeof e.withCheckAll == "boolean" ?
|
|
608
|
+
(d) => n("update:modelValue", d)
|
|
609
|
+
), y = h(() => {
|
|
610
|
+
var m;
|
|
611
|
+
const d = o.value("selections.selectAll");
|
|
612
|
+
return typeof e.withCheckAll == "boolean" ? d : ((m = e.withCheckAll) == null ? void 0 : m.label) ?? d;
|
|
573
613
|
});
|
|
574
|
-
return (
|
|
614
|
+
return (d, m) => (s(), p("fieldset", {
|
|
575
615
|
class: g(["onyx-checkbox-group", r(l)]),
|
|
576
616
|
disabled: e.disabled
|
|
577
617
|
}, [
|
|
578
|
-
e.headline ? (
|
|
579
|
-
|
|
618
|
+
e.headline ? (s(), p("legend", Fa, [
|
|
619
|
+
M(ie, { is: "h3" }, {
|
|
580
620
|
default: $(() => [
|
|
581
|
-
|
|
621
|
+
Z(V(e.headline), 1)
|
|
582
622
|
]),
|
|
583
623
|
_: 1
|
|
584
624
|
})
|
|
585
625
|
])) : _("", !0),
|
|
586
|
-
|
|
626
|
+
f("div", {
|
|
587
627
|
class: g(["onyx-checkbox-group__content", {
|
|
588
628
|
"onyx-checkbox-group__content--horizontal": e.direction === "horizontal",
|
|
589
629
|
"onyx-checkbox-group__content--vertical": e.direction === "vertical"
|
|
590
630
|
}])
|
|
591
631
|
}, [
|
|
592
|
-
e.skeleton === void 0 ? (
|
|
593
|
-
e.withCheckAll ? (
|
|
594
|
-
label:
|
|
632
|
+
e.skeleton === void 0 ? (s(), p(R, { key: 0 }, [
|
|
633
|
+
e.withCheckAll ? (s(), x(Ve, O({ key: 0 }, r(i).state.value, {
|
|
634
|
+
label: y.value,
|
|
595
635
|
value: "all",
|
|
596
636
|
class: "onyx-checkbox-group__option onyx-checkbox-group__check-all",
|
|
597
|
-
"onUpdate:modelValue": r(
|
|
637
|
+
"onUpdate:modelValue": r(i).handleChange
|
|
598
638
|
}), null, 16, ["label", "onUpdate:modelValue"])) : _("", !0),
|
|
599
|
-
(
|
|
600
|
-
key:
|
|
639
|
+
(s(!0), p(R, null, J(e.options, (v) => (s(), x(Ve, O({
|
|
640
|
+
key: v.value.toString(),
|
|
601
641
|
ref_for: !0
|
|
602
|
-
},
|
|
603
|
-
|
|
642
|
+
}, v, {
|
|
643
|
+
truncation: v.truncation ?? e.truncation,
|
|
644
|
+
"model-value": e.modelValue.includes(v.value),
|
|
604
645
|
class: "onyx-checkbox-group__option",
|
|
605
|
-
"onUpdate:modelValue": (
|
|
606
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"]))), 128))
|
|
607
|
-
], 64)) : (
|
|
608
|
-
key:
|
|
609
|
-
label: `Skeleton ${
|
|
610
|
-
value: `skeleton-${
|
|
646
|
+
"onUpdate:modelValue": (k) => u(v.value, k)
|
|
647
|
+
}), null, 16, ["truncation", "model-value", "onUpdate:modelValue"]))), 128))
|
|
648
|
+
], 64)) : (s(!0), p(R, { key: 1 }, J(e.skeleton, (v) => (s(), x(Ve, {
|
|
649
|
+
key: v,
|
|
650
|
+
label: `Skeleton ${v}`,
|
|
651
|
+
value: `skeleton-${v}`,
|
|
611
652
|
skeleton: ""
|
|
612
653
|
}, null, 8, ["label", "value"]))), 128))
|
|
613
654
|
], 2)
|
|
614
|
-
], 10,
|
|
655
|
+
], 10, Ua));
|
|
615
656
|
}
|
|
616
|
-
}),
|
|
657
|
+
}), qa = ["aria-modal", "aria-label", "role"], Za = /* @__PURE__ */ w({
|
|
617
658
|
__name: "OnyxDialog",
|
|
618
659
|
props: {
|
|
619
660
|
density: {},
|
|
@@ -624,48 +665,54 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
624
665
|
},
|
|
625
666
|
emits: ["close"],
|
|
626
667
|
setup(t, { emit: a }) {
|
|
627
|
-
const e = t, l = a,
|
|
628
|
-
var
|
|
629
|
-
e.modal ? (
|
|
668
|
+
const e = t, l = a, n = T(), { densityClass: o } = H(e), u = () => {
|
|
669
|
+
var c, i;
|
|
670
|
+
e.modal ? (c = n.value) == null || c.showModal() : (i = n.value) == null || i.show();
|
|
630
671
|
};
|
|
631
|
-
return
|
|
632
|
-
var
|
|
633
|
-
e.open ?
|
|
634
|
-
}),
|
|
672
|
+
return Y([n, () => e.open], () => {
|
|
673
|
+
var c;
|
|
674
|
+
e.open ? u() : (c = n.value) == null || c.close();
|
|
675
|
+
}), Y(
|
|
635
676
|
() => e.modal,
|
|
636
677
|
() => {
|
|
637
|
-
var
|
|
638
|
-
(
|
|
678
|
+
var c;
|
|
679
|
+
(c = n.value) != null && c.open && (n.value.close(), u());
|
|
639
680
|
}
|
|
640
|
-
), (
|
|
681
|
+
), (c, i) => e.open ? (s(), p("dialog", {
|
|
641
682
|
key: 0,
|
|
642
683
|
ref_key: "dialogRef",
|
|
643
|
-
ref:
|
|
684
|
+
ref: n,
|
|
644
685
|
class: g(["onyx-dialog", r(o), "onyx-truncation-multiline"]),
|
|
645
686
|
"aria-modal": e.modal,
|
|
646
687
|
"aria-label": e.label,
|
|
647
688
|
role: e.alert ? "alertdialog" : void 0,
|
|
648
|
-
onCancel:
|
|
689
|
+
onCancel: i[0] || (i[0] = De((y) => l("close"), ["prevent"]))
|
|
649
690
|
}, [
|
|
650
|
-
b(
|
|
651
|
-
], 42,
|
|
691
|
+
b(c.$slots, "default")
|
|
692
|
+
], 42, qa)) : _("", !0);
|
|
652
693
|
}
|
|
653
|
-
}),
|
|
694
|
+
}), ct = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M25.899 6.1C23.166 3.367 19.583 2 16 2S8.834 3.367 6.101 6.1c-5.467 5.467-5.467 14.332 0 19.799C8.834 28.633 12.417 30 16 30s7.166-1.367 9.899-4.101c5.468-5.467 5.468-14.331 0-19.799m-1.414 18.385C22.219 26.752 19.205 28 16 28s-6.219-1.248-8.485-3.515C5.248 22.219 4 19.205 4 16s1.248-6.219 3.515-8.485C9.781 5.248 12.795 4 16 4s6.219 1.248 8.485 3.515S28 12.795 28 16s-1.248 6.219-3.515 8.485"/><path d="M20.814 9.771 16 14.586l-4.814-4.815-1.415 1.414L14.586 16l-4.815 4.814 1.415 1.415L16 17.414l4.814 4.815 1.415-1.415L17.414 16l4.815-4.815z"/></svg>', Ga = { class: "onyx-empty__label onyx-text onyx-truncation-multiline" }, dt = /* @__PURE__ */ w({
|
|
654
695
|
__name: "OnyxEmpty",
|
|
696
|
+
props: {
|
|
697
|
+
density: {}
|
|
698
|
+
},
|
|
655
699
|
setup(t) {
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
700
|
+
const a = t, { densityClass: e } = H(a);
|
|
701
|
+
return (l, n) => (s(), p("div", {
|
|
702
|
+
class: g(["onyx-empty", r(e)])
|
|
703
|
+
}, [
|
|
704
|
+
b(l.$slots, "icon", {}, () => [
|
|
705
|
+
M(A, {
|
|
706
|
+
icon: r(ct),
|
|
660
707
|
size: "48px"
|
|
661
708
|
}, null, 8, ["icon"])
|
|
662
709
|
]),
|
|
663
|
-
|
|
664
|
-
b(
|
|
710
|
+
f("div", Ga, [
|
|
711
|
+
b(l.$slots, "default")
|
|
665
712
|
])
|
|
666
|
-
]));
|
|
713
|
+
], 2));
|
|
667
714
|
}
|
|
668
|
-
}),
|
|
715
|
+
}), Ka = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M12.2 10.55v2h5.836l-8.193 8.193 1.414 1.414 8.193-8.193V19.8h2v-9.25z"/></svg>', ja = (t) => /^http(s?):\/\//.test(t), Ue = /* @__PURE__ */ w({
|
|
669
716
|
__name: "OnyxExternalLinkIcon",
|
|
670
717
|
props: {
|
|
671
718
|
href: {},
|
|
@@ -674,32 +721,16 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
674
721
|
setup(t) {
|
|
675
722
|
const a = t, e = h(() => {
|
|
676
723
|
const l = a.withExternalIcon;
|
|
677
|
-
return l !== "auto" ? l :
|
|
724
|
+
return l !== "auto" ? l : ja(a.href ?? "");
|
|
678
725
|
});
|
|
679
|
-
return (l,
|
|
726
|
+
return (l, n) => e.value ? (s(), x(A, {
|
|
680
727
|
key: 0,
|
|
681
728
|
class: "onyx-external-link-icon",
|
|
682
|
-
icon: r(
|
|
729
|
+
icon: r(Ka),
|
|
683
730
|
size: "16px"
|
|
684
731
|
}, null, 8, ["icon"])) : _("", !0);
|
|
685
732
|
}
|
|
686
|
-
}),
|
|
687
|
-
__name: "OnyxHeadline",
|
|
688
|
-
props: {
|
|
689
|
-
is: {}
|
|
690
|
-
},
|
|
691
|
-
setup(t) {
|
|
692
|
-
const a = t;
|
|
693
|
-
return (e, l) => (n(), x(re(a.is), {
|
|
694
|
-
class: g(["onyx-headline", `onyx-headline--${a.is}`])
|
|
695
|
-
}, {
|
|
696
|
-
default: $(() => [
|
|
697
|
-
b(e.$slots, "default")
|
|
698
|
-
]),
|
|
699
|
-
_: 3
|
|
700
|
-
}, 8, ["class"]));
|
|
701
|
-
}
|
|
702
|
-
}), Mn = ["h1", "h2", "h3", "h4", "h5", "h6"], Vn = ["12px", "16px", "24px", "32px", "48px", "64px", "96px"], za = ["aria-label", "title", "type", "disabled", "autofocus"], Na = /* @__PURE__ */ k({
|
|
733
|
+
}), Zn = ["h1", "h2", "h3", "h4", "h5", "h6"], Gn = ["12px", "16px", "24px", "32px", "48px", "64px", "96px"], Ya = ["aria-label", "title", "type", "disabled", "autofocus"], Wa = /* @__PURE__ */ w({
|
|
703
734
|
__name: "OnyxIconButton",
|
|
704
735
|
props: {
|
|
705
736
|
density: {},
|
|
@@ -714,11 +745,11 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
714
745
|
},
|
|
715
746
|
emits: ["click"],
|
|
716
747
|
setup(t, { emit: a }) {
|
|
717
|
-
const e = t, { densityClass: l } = H(e),
|
|
718
|
-
return (o,
|
|
748
|
+
const e = t, { densityClass: l } = H(e), n = a;
|
|
749
|
+
return (o, u) => e.skeleton ? (s(), x(U, {
|
|
719
750
|
key: 0,
|
|
720
751
|
class: g(["onyx-icon-button-skeleton", r(l)])
|
|
721
|
-
}, null, 8, ["class"])) : (
|
|
752
|
+
}, null, 8, ["class"])) : (s(), p("button", {
|
|
722
753
|
key: 1,
|
|
723
754
|
class: g(["onyx-icon-button", [
|
|
724
755
|
`onyx-icon-button--${e.color}`,
|
|
@@ -730,26 +761,36 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
730
761
|
type: e.type,
|
|
731
762
|
disabled: e.disabled || e.loading,
|
|
732
763
|
autofocus: e.autofocus,
|
|
733
|
-
onClick:
|
|
764
|
+
onClick: u[0] || (u[0] = (c) => n("click"))
|
|
734
765
|
}, [
|
|
735
|
-
e.loading ? (
|
|
766
|
+
e.loading ? (s(), x(X, {
|
|
736
767
|
key: 0,
|
|
737
768
|
type: "circle"
|
|
738
|
-
})) : e.icon ? (
|
|
769
|
+
})) : e.icon ? (s(), x(A, {
|
|
739
770
|
key: 1,
|
|
740
771
|
icon: e.icon
|
|
741
772
|
}, null, 8, ["icon"])) : b(o.$slots, "default", { key: 2 })
|
|
742
|
-
], 10,
|
|
773
|
+
], 10, Ya));
|
|
743
774
|
}
|
|
744
|
-
}),
|
|
775
|
+
}), pt = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12"/><path d="M15 8h2v2h-2zm0 5h2v11h-2z"/></svg>', oe = (t) => t;
|
|
776
|
+
function mt() {
|
|
777
|
+
const t = It();
|
|
778
|
+
return h({
|
|
779
|
+
set: (a) => {
|
|
780
|
+
t.value = a != null && "$el" in a ? a.$el : a;
|
|
781
|
+
},
|
|
782
|
+
get: () => t.value
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
const Xa = /* @__PURE__ */ (() => {
|
|
745
786
|
let t = 1;
|
|
746
787
|
return () => t++;
|
|
747
|
-
})(),
|
|
788
|
+
})(), W = (t) => `${t}-${Xa()}`, Ja = (t, a) => Object.entries(t).every(
|
|
748
789
|
([e, l]) => a[e] === l
|
|
749
|
-
),
|
|
790
|
+
), Qa = (t, a) => typeof a == "string" ? t.key === a : Ja(
|
|
750
791
|
{ altKey: !1, ctrlKey: !1, metaKey: !1, shiftKey: !1, ...a },
|
|
751
792
|
t
|
|
752
|
-
),
|
|
793
|
+
), He = (t) => !tl.has(t), el = [
|
|
753
794
|
"Unidentified",
|
|
754
795
|
"Alt",
|
|
755
796
|
"AltGraph",
|
|
@@ -1057,58 +1098,89 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
1057
1098
|
"MediaPreviousTrack",
|
|
1058
1099
|
"Power",
|
|
1059
1100
|
"Unidentified"
|
|
1060
|
-
],
|
|
1101
|
+
], tl = new Set(el), le = At(/* @__PURE__ */ new Map()), al = (t, a) => {
|
|
1102
|
+
if (a != null && a.size) {
|
|
1103
|
+
le.set(t, a);
|
|
1104
|
+
return;
|
|
1105
|
+
}
|
|
1106
|
+
le.delete(t), document.removeEventListener(t, yt);
|
|
1107
|
+
}, Je = (t, a) => {
|
|
1108
|
+
const e = le.get(t);
|
|
1109
|
+
e == null || e.delete(a), al(t, e);
|
|
1110
|
+
}, ll = (t, a) => {
|
|
1111
|
+
const e = le.get(t) ?? /* @__PURE__ */ new Set();
|
|
1112
|
+
e.add(a), le.set(t, e), document.addEventListener(t, yt);
|
|
1113
|
+
}, yt = (t) => {
|
|
1114
|
+
var e;
|
|
1115
|
+
const a = t.type;
|
|
1116
|
+
(e = le.get(a)) == null || e.forEach((l) => l(t));
|
|
1117
|
+
}, ht = ({
|
|
1118
|
+
type: t,
|
|
1119
|
+
listener: a,
|
|
1120
|
+
disabled: e
|
|
1121
|
+
}) => {
|
|
1122
|
+
Ne(
|
|
1123
|
+
() => Q(
|
|
1124
|
+
() => e != null && e.value ? Je(t, a) : ll(t, a)
|
|
1125
|
+
)
|
|
1126
|
+
), ye(() => Je(t, a));
|
|
1127
|
+
}, vt = ({ element: t, onOutsideClick: a, disabled: e }) => {
|
|
1128
|
+
ht({ type: "click", listener: ({ target: n }) => {
|
|
1129
|
+
var u;
|
|
1130
|
+
!((u = t.value) != null && u.contains(n)) && a();
|
|
1131
|
+
}, disabled: e });
|
|
1132
|
+
}, ft = (t, a) => {
|
|
1061
1133
|
let e;
|
|
1062
1134
|
return (...l) => {
|
|
1063
1135
|
clearTimeout(e), e = setTimeout(() => t(...l), a);
|
|
1064
1136
|
};
|
|
1065
|
-
},
|
|
1137
|
+
}, _t = (t, a = 500) => {
|
|
1066
1138
|
let e = "";
|
|
1067
|
-
const l =
|
|
1068
|
-
return (
|
|
1069
|
-
|
|
1139
|
+
const l = ft(() => e = "", a);
|
|
1140
|
+
return (n) => {
|
|
1141
|
+
He(n.key) && (l(), e = `${e}${n.key}`, t(e));
|
|
1070
1142
|
};
|
|
1071
|
-
},
|
|
1143
|
+
}, ol = oe(
|
|
1072
1144
|
(t) => {
|
|
1073
|
-
const a = h(() => r(t.multiple) ?? !1), e = /* @__PURE__ */ new Map(), l = (
|
|
1074
|
-
|
|
1075
|
-
var
|
|
1076
|
-
if (t.activeOption.value == null || !
|
|
1145
|
+
const a = h(() => r(t.multiple) ?? !1), e = /* @__PURE__ */ new Map(), l = (i) => (e.has(i) || e.set(i, W("listbox-option")), e.get(i)), n = T(!1);
|
|
1146
|
+
Q(() => {
|
|
1147
|
+
var y;
|
|
1148
|
+
if (t.activeOption.value == null || !n.value && !t.controlled)
|
|
1077
1149
|
return;
|
|
1078
|
-
const
|
|
1079
|
-
(
|
|
1150
|
+
const i = l(t.activeOption.value);
|
|
1151
|
+
(y = document.getElementById(i)) == null || y.scrollIntoView({ block: "nearest", inline: "nearest" });
|
|
1080
1152
|
});
|
|
1081
|
-
const o =
|
|
1082
|
-
var
|
|
1083
|
-
return (
|
|
1084
|
-
}),
|
|
1085
|
-
var
|
|
1086
|
-
switch (
|
|
1153
|
+
const o = _t((i) => {
|
|
1154
|
+
var y;
|
|
1155
|
+
return (y = t.onTypeAhead) == null ? void 0 : y.call(t, i);
|
|
1156
|
+
}), u = (i) => {
|
|
1157
|
+
var y, d, m, v, k, S, B;
|
|
1158
|
+
switch (i.key) {
|
|
1087
1159
|
case " ":
|
|
1088
|
-
|
|
1160
|
+
i.preventDefault(), t.activeOption.value != null && ((y = t.onSelect) == null || y.call(t, t.activeOption.value));
|
|
1089
1161
|
break;
|
|
1090
1162
|
case "ArrowUp":
|
|
1091
|
-
if (
|
|
1092
|
-
(
|
|
1163
|
+
if (i.preventDefault(), t.activeOption.value == null) {
|
|
1164
|
+
(d = t.onActivateLast) == null || d.call(t);
|
|
1093
1165
|
return;
|
|
1094
1166
|
}
|
|
1095
|
-
(
|
|
1167
|
+
(m = t.onActivatePrevious) == null || m.call(t, t.activeOption.value);
|
|
1096
1168
|
break;
|
|
1097
1169
|
case "ArrowDown":
|
|
1098
|
-
if (
|
|
1099
|
-
(
|
|
1170
|
+
if (i.preventDefault(), t.activeOption.value == null) {
|
|
1171
|
+
(v = t.onActivateFirst) == null || v.call(t);
|
|
1100
1172
|
return;
|
|
1101
1173
|
}
|
|
1102
|
-
(
|
|
1174
|
+
(k = t.onActivateNext) == null || k.call(t, t.activeOption.value);
|
|
1103
1175
|
break;
|
|
1104
1176
|
case "Home":
|
|
1105
|
-
|
|
1177
|
+
i.preventDefault(), (S = t.onActivateFirst) == null || S.call(t);
|
|
1106
1178
|
break;
|
|
1107
1179
|
case "End":
|
|
1108
|
-
|
|
1180
|
+
i.preventDefault(), (B = t.onActivateLast) == null || B.call(t);
|
|
1109
1181
|
break;
|
|
1110
1182
|
default:
|
|
1111
|
-
o(
|
|
1183
|
+
o(i);
|
|
1112
1184
|
}
|
|
1113
1185
|
};
|
|
1114
1186
|
return {
|
|
@@ -1125,251 +1197,247 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
1125
1197
|
"aria-label": r(t.label),
|
|
1126
1198
|
tabindex: "0",
|
|
1127
1199
|
"aria-activedescendant": t.activeOption.value != null ? l(t.activeOption.value) : void 0,
|
|
1128
|
-
onFocus: () =>
|
|
1129
|
-
onBlur: () =>
|
|
1130
|
-
onKeydown:
|
|
1200
|
+
onFocus: () => n.value = !0,
|
|
1201
|
+
onBlur: () => n.value = !1,
|
|
1202
|
+
onKeydown: u
|
|
1131
1203
|
}
|
|
1132
1204
|
),
|
|
1133
|
-
group: h(() => (
|
|
1205
|
+
group: h(() => (i) => ({
|
|
1134
1206
|
role: "group",
|
|
1135
|
-
"aria-label":
|
|
1207
|
+
"aria-label": i.label
|
|
1136
1208
|
})),
|
|
1137
|
-
option: h(() => (
|
|
1138
|
-
const
|
|
1209
|
+
option: h(() => (i) => {
|
|
1210
|
+
const y = i.selected ?? !1;
|
|
1139
1211
|
return {
|
|
1140
|
-
id: l(
|
|
1212
|
+
id: l(i.value),
|
|
1141
1213
|
role: "option",
|
|
1142
|
-
"aria-label":
|
|
1143
|
-
"aria-disabled":
|
|
1144
|
-
"aria-checked": a.value ?
|
|
1145
|
-
"aria-selected": a.value ? void 0 :
|
|
1214
|
+
"aria-label": i.label,
|
|
1215
|
+
"aria-disabled": i.disabled,
|
|
1216
|
+
"aria-checked": a.value ? y : void 0,
|
|
1217
|
+
"aria-selected": a.value ? void 0 : y,
|
|
1146
1218
|
onClick: () => {
|
|
1147
|
-
var
|
|
1148
|
-
return !
|
|
1219
|
+
var d;
|
|
1220
|
+
return !i.disabled && ((d = t.onSelect) == null ? void 0 : d.call(t, i.value));
|
|
1149
1221
|
}
|
|
1150
1222
|
};
|
|
1151
1223
|
})
|
|
1152
1224
|
},
|
|
1153
1225
|
state: {
|
|
1154
|
-
isFocused:
|
|
1226
|
+
isFocused: n
|
|
1155
1227
|
},
|
|
1156
1228
|
internals: {
|
|
1157
1229
|
getOptionId: l
|
|
1158
1230
|
}
|
|
1159
1231
|
};
|
|
1160
1232
|
}
|
|
1161
|
-
),
|
|
1162
|
-
const a = (e) => {
|
|
1163
|
-
const l = t.queryComponent();
|
|
1164
|
-
if (!l || !(e.target instanceof Node)) return;
|
|
1165
|
-
!l.contains(e.target) && t.onOutsideClick();
|
|
1166
|
-
};
|
|
1167
|
-
Ae(() => {
|
|
1168
|
-
X(() => {
|
|
1169
|
-
var e;
|
|
1170
|
-
(e = t.disabled) != null && e.value ? document.removeEventListener("click", a) : document.addEventListener("click", a);
|
|
1171
|
-
});
|
|
1172
|
-
}), pe(() => {
|
|
1173
|
-
document.removeEventListener("click", a);
|
|
1174
|
-
});
|
|
1175
|
-
}, pt = ["ArrowDown", "ArrowUp", " ", "Enter", "Home", "End"], mt = [
|
|
1233
|
+
), xt = ["ArrowDown", "ArrowUp", " ", "Enter", "Home", "End"], bt = [
|
|
1176
1234
|
"Escape",
|
|
1177
1235
|
{ key: "ArrowUp", altKey: !0 },
|
|
1178
1236
|
"Enter",
|
|
1179
1237
|
"Tab"
|
|
1180
|
-
],
|
|
1238
|
+
], nl = ["Enter", " "], sl = ["Enter"], rl = (t, a) => Pe(t, a ? sl : nl), Pe = (t, a) => a.some((e) => Qa(t, e)), il = oe(
|
|
1181
1239
|
({
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
listLabel: i,
|
|
1240
|
+
autocomplete: t,
|
|
1241
|
+
onAutocomplete: a,
|
|
1242
|
+
onTypeAhead: e,
|
|
1243
|
+
multiple: l,
|
|
1244
|
+
label: n,
|
|
1245
|
+
listLabel: o,
|
|
1189
1246
|
isExpanded: u,
|
|
1190
1247
|
activeOption: c,
|
|
1191
|
-
onToggle:
|
|
1248
|
+
onToggle: i,
|
|
1192
1249
|
onSelect: y,
|
|
1193
1250
|
onActivateFirst: d,
|
|
1194
|
-
onActivateLast:
|
|
1195
|
-
onActivateNext:
|
|
1196
|
-
onActivatePrevious:
|
|
1197
|
-
templateRef:
|
|
1251
|
+
onActivateLast: m,
|
|
1252
|
+
onActivateNext: v,
|
|
1253
|
+
onActivatePrevious: k,
|
|
1254
|
+
templateRef: S
|
|
1198
1255
|
}) => {
|
|
1199
|
-
const
|
|
1200
|
-
const
|
|
1201
|
-
|
|
1202
|
-
},
|
|
1203
|
-
y == null || y(
|
|
1204
|
-
},
|
|
1205
|
-
switch (
|
|
1256
|
+
const B = W("comboBox-control"), P = h(() => r(t)), E = h(() => r(u)), z = h(() => r(l)), ne = (L) => {
|
|
1257
|
+
const Me = L.target;
|
|
1258
|
+
P.value !== "none" && (a == null || a(Me.value));
|
|
1259
|
+
}, se = _t((L) => e == null ? void 0 : e(L)), de = (L) => {
|
|
1260
|
+
y == null || y(L), r(z) || i == null || i();
|
|
1261
|
+
}, ge = (L) => {
|
|
1262
|
+
switch (L.key) {
|
|
1206
1263
|
case "ArrowUp":
|
|
1207
|
-
if (
|
|
1208
|
-
return
|
|
1209
|
-
|
|
1264
|
+
if (L.preventDefault(), c.value == null)
|
|
1265
|
+
return m == null ? void 0 : m();
|
|
1266
|
+
k == null || k(c.value);
|
|
1210
1267
|
break;
|
|
1211
1268
|
case "ArrowDown":
|
|
1212
|
-
if (
|
|
1269
|
+
if (L.preventDefault(), c.value == null)
|
|
1213
1270
|
return d == null ? void 0 : d();
|
|
1214
|
-
|
|
1271
|
+
v == null || v(c.value);
|
|
1215
1272
|
break;
|
|
1216
1273
|
case "Home":
|
|
1217
|
-
|
|
1274
|
+
L.preventDefault(), d == null || d();
|
|
1218
1275
|
break;
|
|
1219
1276
|
case "End":
|
|
1220
|
-
|
|
1277
|
+
L.preventDefault(), m == null || m();
|
|
1221
1278
|
break;
|
|
1222
1279
|
}
|
|
1223
|
-
},
|
|
1224
|
-
if (
|
|
1225
|
-
return
|
|
1226
|
-
if (
|
|
1227
|
-
return
|
|
1228
|
-
if (
|
|
1229
|
-
return
|
|
1230
|
-
if (
|
|
1231
|
-
return !
|
|
1232
|
-
if (
|
|
1233
|
-
!
|
|
1280
|
+
}, ke = (L) => {
|
|
1281
|
+
if (L.key === "Enter" && L.preventDefault(), !E.value && Pe(L, xt))
|
|
1282
|
+
return i == null || i(), L.key === " " && L.preventDefault(), L.key === "End" ? m == null ? void 0 : m() : d == null ? void 0 : d();
|
|
1283
|
+
if (rl(L, z.value))
|
|
1284
|
+
return de(c.value);
|
|
1285
|
+
if (E.value && Pe(L, bt))
|
|
1286
|
+
return i == null ? void 0 : i();
|
|
1287
|
+
if (P.value === "none" && He(L.key))
|
|
1288
|
+
return !E.value && (i == null || i()), se(L);
|
|
1289
|
+
if (P.value !== "none" && He(L.key)) {
|
|
1290
|
+
!E.value && (i == null || i());
|
|
1234
1291
|
return;
|
|
1235
1292
|
}
|
|
1236
|
-
return
|
|
1237
|
-
},
|
|
1238
|
-
"aria-autocomplete":
|
|
1293
|
+
return ge(L);
|
|
1294
|
+
}, we = P.value !== "none" ? {
|
|
1295
|
+
"aria-autocomplete": P.value,
|
|
1239
1296
|
type: "text"
|
|
1240
1297
|
} : null, {
|
|
1241
|
-
elements: { option:
|
|
1242
|
-
internals: { getOptionId:
|
|
1243
|
-
} =
|
|
1244
|
-
label:
|
|
1245
|
-
multiple:
|
|
1298
|
+
elements: { option: Ce, group: $e, listbox: re },
|
|
1299
|
+
internals: { getOptionId: pe }
|
|
1300
|
+
} = ol({
|
|
1301
|
+
label: o,
|
|
1302
|
+
multiple: z,
|
|
1246
1303
|
controlled: !0,
|
|
1247
1304
|
activeOption: c,
|
|
1248
|
-
onSelect:
|
|
1305
|
+
onSelect: de
|
|
1249
1306
|
});
|
|
1250
|
-
return
|
|
1251
|
-
|
|
1307
|
+
return vt({
|
|
1308
|
+
element: S,
|
|
1252
1309
|
onOutsideClick() {
|
|
1253
|
-
|
|
1310
|
+
E.value && (i == null || i(!0));
|
|
1254
1311
|
}
|
|
1255
1312
|
}), {
|
|
1256
1313
|
elements: {
|
|
1257
|
-
option:
|
|
1258
|
-
group:
|
|
1314
|
+
option: Ce,
|
|
1315
|
+
group: $e,
|
|
1259
1316
|
/**
|
|
1260
1317
|
* The listbox associated with the combobox.
|
|
1261
1318
|
*/
|
|
1262
1319
|
listbox: h(() => ({
|
|
1263
|
-
...
|
|
1264
|
-
id:
|
|
1320
|
+
...re.value,
|
|
1321
|
+
id: B,
|
|
1265
1322
|
// preventDefault to not lose focus of the combobox
|
|
1266
|
-
onMousedown: (
|
|
1323
|
+
onMousedown: (L) => L.preventDefault()
|
|
1267
1324
|
})),
|
|
1268
1325
|
/**
|
|
1269
1326
|
* An input that controls another element, that can dynamically pop-up to help the user set the value of the input.
|
|
1270
1327
|
* The input MAY be either a single-line text field that supports editing and typing or an element that only displays the current value of the combobox.
|
|
1271
1328
|
*/
|
|
1272
1329
|
input: h(() => ({
|
|
1273
|
-
value: t.value,
|
|
1274
1330
|
role: "combobox",
|
|
1275
|
-
"aria-expanded":
|
|
1276
|
-
"aria-controls":
|
|
1277
|
-
"aria-label": r(
|
|
1278
|
-
"aria-activedescendant": c.value != null ?
|
|
1279
|
-
onInput:
|
|
1280
|
-
onKeydown:
|
|
1281
|
-
...
|
|
1331
|
+
"aria-expanded": E.value,
|
|
1332
|
+
"aria-controls": B,
|
|
1333
|
+
"aria-label": r(n),
|
|
1334
|
+
"aria-activedescendant": c.value != null ? pe(c.value) : void 0,
|
|
1335
|
+
onInput: ne,
|
|
1336
|
+
onKeydown: ke,
|
|
1337
|
+
...we
|
|
1282
1338
|
})),
|
|
1283
1339
|
/**
|
|
1284
1340
|
* An optional button to control the visibility of the popup.
|
|
1285
1341
|
*/
|
|
1286
1342
|
button: h(() => ({
|
|
1287
1343
|
tabindex: "-1",
|
|
1288
|
-
onClick: () =>
|
|
1344
|
+
onClick: () => i == null ? void 0 : i()
|
|
1289
1345
|
}))
|
|
1290
1346
|
}
|
|
1291
1347
|
};
|
|
1292
1348
|
}
|
|
1293
|
-
),
|
|
1294
|
-
|
|
1295
|
-
(
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1349
|
+
), ul = oe(
|
|
1350
|
+
({ isExpanded: t, onToggle: a }) => {
|
|
1351
|
+
const e = W("menu-button-root"), l = W("menu-button-list"), n = mt(), o = W("menu-button-button");
|
|
1352
|
+
ht({
|
|
1353
|
+
type: "keydown",
|
|
1354
|
+
listener: (y) => y.key === "Escape" && t.value && a(),
|
|
1355
|
+
disabled: h(() => !t.value)
|
|
1356
|
+
});
|
|
1357
|
+
const u = ft(
|
|
1358
|
+
(y) => t.value !== y && a(),
|
|
1359
|
+
200
|
|
1360
|
+
), c = (y) => {
|
|
1361
|
+
const d = document.activeElement, m = (d == null ? void 0 : d.closest('[role="menu"]')) || n.value;
|
|
1362
|
+
if (!m) return;
|
|
1363
|
+
const v = [...m.querySelectorAll('[role="menuitem"]')];
|
|
1364
|
+
let k = 0;
|
|
1365
|
+
if (d) {
|
|
1366
|
+
const B = v.indexOf(d);
|
|
1367
|
+
switch (y) {
|
|
1368
|
+
case "next":
|
|
1369
|
+
k = B + 1;
|
|
1370
|
+
break;
|
|
1371
|
+
case "prev":
|
|
1372
|
+
k = B - 1;
|
|
1373
|
+
break;
|
|
1374
|
+
case "first":
|
|
1375
|
+
k = 0;
|
|
1376
|
+
break;
|
|
1377
|
+
case "last":
|
|
1378
|
+
k = v.length - 1;
|
|
1379
|
+
break;
|
|
1380
|
+
}
|
|
1322
1381
|
}
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1382
|
+
const S = v[k];
|
|
1383
|
+
S == null || S.focus();
|
|
1384
|
+
};
|
|
1385
|
+
return {
|
|
1386
|
+
elements: {
|
|
1387
|
+
root: {
|
|
1388
|
+
id: e,
|
|
1389
|
+
onKeydown: (y) => {
|
|
1390
|
+
switch (y.key) {
|
|
1391
|
+
case "ArrowDown":
|
|
1392
|
+
case "ArrowRight":
|
|
1393
|
+
y.preventDefault(), c("next");
|
|
1394
|
+
break;
|
|
1395
|
+
case "ArrowUp":
|
|
1396
|
+
case "ArrowLeft":
|
|
1397
|
+
y.preventDefault(), c("prev");
|
|
1398
|
+
break;
|
|
1399
|
+
case "Home":
|
|
1400
|
+
y.preventDefault(), c("first");
|
|
1401
|
+
break;
|
|
1402
|
+
case "End":
|
|
1403
|
+
y.preventDefault(), c("last");
|
|
1404
|
+
break;
|
|
1405
|
+
case " ":
|
|
1406
|
+
y.preventDefault(), y.target.click();
|
|
1407
|
+
break;
|
|
1408
|
+
case "Escape":
|
|
1409
|
+
y.preventDefault(), t.value && a();
|
|
1410
|
+
break;
|
|
1411
|
+
}
|
|
1412
|
+
},
|
|
1413
|
+
onMouseover: () => u(!0),
|
|
1414
|
+
onMouseout: () => u(!1),
|
|
1415
|
+
onFocusout: (y) => {
|
|
1416
|
+
var d;
|
|
1417
|
+
(d = document.getElementById(e)) != null && d.contains(y.relatedTarget) || t.value && a();
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1420
|
+
button: h(
|
|
1421
|
+
() => ({
|
|
1422
|
+
"aria-controls": l,
|
|
1423
|
+
"aria-expanded": t.value,
|
|
1424
|
+
"aria-haspopup": !0,
|
|
1425
|
+
onFocus: () => !t.value && a(),
|
|
1426
|
+
id: o
|
|
1427
|
+
})
|
|
1428
|
+
),
|
|
1429
|
+
menu: {
|
|
1430
|
+
id: l,
|
|
1431
|
+
ref: n,
|
|
1432
|
+
role: "menu",
|
|
1433
|
+
"aria-labelledby": o,
|
|
1434
|
+
onClick: () => t.value && a()
|
|
1435
|
+
},
|
|
1436
|
+
...gt().elements
|
|
1437
|
+
}
|
|
1438
|
+
};
|
|
1439
|
+
}
|
|
1440
|
+
), gt = oe(() => ({
|
|
1373
1441
|
elements: {
|
|
1374
1442
|
listItem: {
|
|
1375
1443
|
role: "none"
|
|
@@ -1380,67 +1448,105 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
1380
1448
|
role: "menuitem"
|
|
1381
1449
|
})
|
|
1382
1450
|
}
|
|
1383
|
-
})),
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
const
|
|
1391
|
-
return
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1451
|
+
})), cl = {
|
|
1452
|
+
/**
|
|
1453
|
+
* Ensures that a given `number` is or is between a given `min` and `max`.
|
|
1454
|
+
*/
|
|
1455
|
+
clamp: (t, a, e) => Math.max(Math.min(t, e), a)
|
|
1456
|
+
}, dl = oe(({ navigationName: t }) => {
|
|
1457
|
+
const a = W("nav"), e = () => {
|
|
1458
|
+
const n = document.getElementById(a);
|
|
1459
|
+
return n ? [...n.querySelectorAll("button[aria-expanded][aria-controls]")] : [];
|
|
1460
|
+
}, l = (n, o) => {
|
|
1461
|
+
const u = e(), c = u.indexOf(n);
|
|
1462
|
+
if (c === -1) return;
|
|
1463
|
+
const i = cl.clamp(
|
|
1464
|
+
c + (o === "next" ? 1 : -1),
|
|
1465
|
+
0,
|
|
1466
|
+
u.length - 1
|
|
1467
|
+
);
|
|
1468
|
+
u[i].focus();
|
|
1469
|
+
};
|
|
1470
|
+
return {
|
|
1471
|
+
elements: {
|
|
1472
|
+
nav: {
|
|
1473
|
+
"aria-label": r(t),
|
|
1474
|
+
id: a,
|
|
1475
|
+
onKeydown: (n) => {
|
|
1476
|
+
switch (n.key) {
|
|
1477
|
+
case "ArrowRight":
|
|
1478
|
+
l(n.target, "next");
|
|
1479
|
+
break;
|
|
1480
|
+
case "ArrowLeft":
|
|
1481
|
+
l(n.target, "previous");
|
|
1482
|
+
break;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
};
|
|
1488
|
+
}), pl = oe((t) => {
|
|
1489
|
+
const a = mt(), e = W("tooltip"), l = T(!1);
|
|
1490
|
+
let n;
|
|
1491
|
+
const o = h(() => {
|
|
1492
|
+
const v = r(t.open);
|
|
1493
|
+
return typeof v != "object" ? 200 : v.debounce;
|
|
1494
|
+
}), u = h(() => {
|
|
1495
|
+
const v = r(t.open);
|
|
1496
|
+
return typeof v != "object" ? v : v.type;
|
|
1497
|
+
}), c = h({
|
|
1498
|
+
get: () => l.value,
|
|
1499
|
+
set: (v) => {
|
|
1500
|
+
clearTimeout(n), n = setTimeout(() => {
|
|
1501
|
+
l.value = v;
|
|
1502
|
+
}, o.value);
|
|
1398
1503
|
}
|
|
1399
|
-
}),
|
|
1400
|
-
|
|
1401
|
-
},
|
|
1402
|
-
if (
|
|
1504
|
+
}), i = h(() => typeof u.value == "boolean" ? u.value : c.value), y = () => {
|
|
1505
|
+
l.value = !l.value;
|
|
1506
|
+
}, d = h(() => {
|
|
1507
|
+
if (u.value === "hover")
|
|
1403
1508
|
return {
|
|
1404
|
-
onMouseover: () =>
|
|
1405
|
-
onMouseout: () =>
|
|
1406
|
-
onFocusin: () =>
|
|
1407
|
-
onFocusout: () =>
|
|
1509
|
+
onMouseover: () => c.value = !0,
|
|
1510
|
+
onMouseout: () => c.value = !1,
|
|
1511
|
+
onFocusin: () => l.value = !0,
|
|
1512
|
+
onFocusout: () => l.value = !1
|
|
1408
1513
|
};
|
|
1409
|
-
}),
|
|
1410
|
-
|
|
1514
|
+
}), m = (v) => {
|
|
1515
|
+
v.key === "Escape" && (l.value = !1);
|
|
1411
1516
|
};
|
|
1412
|
-
return
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
document.addEventListener("keydown", y);
|
|
1421
|
-
}), pe(() => {
|
|
1422
|
-
document.removeEventListener("keydown", y);
|
|
1517
|
+
return vt({
|
|
1518
|
+
element: a,
|
|
1519
|
+
onOutsideClick: () => l.value = !1,
|
|
1520
|
+
disabled: h(() => u.value !== "click")
|
|
1521
|
+
}), Ne(() => {
|
|
1522
|
+
document.addEventListener("keydown", m);
|
|
1523
|
+
}), ye(() => {
|
|
1524
|
+
document.removeEventListener("keydown", m);
|
|
1423
1525
|
}), {
|
|
1424
1526
|
elements: {
|
|
1527
|
+
root: {
|
|
1528
|
+
ref: a
|
|
1529
|
+
},
|
|
1425
1530
|
trigger: h(() => ({
|
|
1426
|
-
"aria-describedby":
|
|
1427
|
-
onClick:
|
|
1428
|
-
...
|
|
1531
|
+
"aria-describedby": e,
|
|
1532
|
+
onClick: u.value === "click" ? y : void 0,
|
|
1533
|
+
...d.value
|
|
1429
1534
|
})),
|
|
1430
1535
|
tooltip: h(() => ({
|
|
1431
1536
|
role: "tooltip",
|
|
1432
|
-
id:
|
|
1537
|
+
id: e,
|
|
1433
1538
|
tabindex: "-1",
|
|
1434
|
-
...
|
|
1539
|
+
...d.value
|
|
1435
1540
|
}))
|
|
1436
1541
|
},
|
|
1437
1542
|
state: {
|
|
1438
|
-
isVisible:
|
|
1543
|
+
isVisible: i
|
|
1439
1544
|
}
|
|
1440
1545
|
};
|
|
1441
|
-
}),
|
|
1546
|
+
}), kt = /* @__PURE__ */ w({
|
|
1442
1547
|
__name: "OnyxTooltip",
|
|
1443
1548
|
props: {
|
|
1549
|
+
density: {},
|
|
1444
1550
|
text: {},
|
|
1445
1551
|
icon: {},
|
|
1446
1552
|
color: { default: "neutral" },
|
|
@@ -1450,35 +1556,37 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
1450
1556
|
},
|
|
1451
1557
|
setup(t) {
|
|
1452
1558
|
const a = t, {
|
|
1453
|
-
elements: {
|
|
1454
|
-
state: { isVisible:
|
|
1455
|
-
} =
|
|
1559
|
+
elements: { root: e, trigger: l, tooltip: n },
|
|
1560
|
+
state: { isVisible: o }
|
|
1561
|
+
} = pl({
|
|
1456
1562
|
open: h(() => a.open)
|
|
1457
|
-
});
|
|
1458
|
-
return (
|
|
1459
|
-
|
|
1563
|
+
}), { densityClass: u } = H(a);
|
|
1564
|
+
return (c, i) => (s(), p("div", O({
|
|
1565
|
+
class: ["onyx-tooltip-wrapper", r(u)]
|
|
1566
|
+
}, r(e)), [
|
|
1567
|
+
f("div", O(r(n), {
|
|
1460
1568
|
class: ["onyx-tooltip onyx-text--small onyx-truncation-multiline", {
|
|
1461
1569
|
"onyx-tooltip--danger": a.color === "danger",
|
|
1462
1570
|
"onyx-tooltip--bottom": a.position === "bottom",
|
|
1463
1571
|
"onyx-tooltip--fit-parent": a.fitParent,
|
|
1464
|
-
"onyx-tooltip--hidden": !r(
|
|
1572
|
+
"onyx-tooltip--hidden": !r(o)
|
|
1465
1573
|
}]
|
|
1466
1574
|
}), [
|
|
1467
|
-
a.icon ? (
|
|
1575
|
+
a.icon ? (s(), x(A, {
|
|
1468
1576
|
key: 0,
|
|
1469
1577
|
icon: a.icon,
|
|
1470
1578
|
size: "16px"
|
|
1471
1579
|
}, null, 8, ["icon"])) : _("", !0),
|
|
1472
|
-
b(
|
|
1473
|
-
|
|
1580
|
+
b(c.$slots, "tooltip", {}, () => [
|
|
1581
|
+
f("span", null, V(a.text), 1)
|
|
1474
1582
|
])
|
|
1475
1583
|
], 16),
|
|
1476
|
-
|
|
1477
|
-
b(
|
|
1584
|
+
f("div", ee(te(r(l))), [
|
|
1585
|
+
b(c.$slots, "default")
|
|
1478
1586
|
], 16)
|
|
1479
|
-
]));
|
|
1587
|
+
], 16));
|
|
1480
1588
|
}
|
|
1481
|
-
}),
|
|
1589
|
+
}), ml = ["aria-label"], Se = /* @__PURE__ */ w({
|
|
1482
1590
|
__name: "OnyxInfoTooltip",
|
|
1483
1591
|
props: {
|
|
1484
1592
|
text: {},
|
|
@@ -1486,44 +1594,45 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
1486
1594
|
label: {}
|
|
1487
1595
|
},
|
|
1488
1596
|
setup(t) {
|
|
1489
|
-
const a = t, { t: e } =
|
|
1490
|
-
return (l,
|
|
1597
|
+
const a = t, { t: e } = N();
|
|
1598
|
+
return (l, n) => (s(), x(kt, {
|
|
1491
1599
|
class: "onyx-info-tooltip",
|
|
1492
1600
|
text: a.text,
|
|
1493
1601
|
position: a.position
|
|
1494
1602
|
}, {
|
|
1495
1603
|
default: $(() => [
|
|
1496
|
-
|
|
1604
|
+
f("button", {
|
|
1497
1605
|
type: "button",
|
|
1498
1606
|
"aria-label": a.label || r(e)("showTooltip.info"),
|
|
1499
1607
|
class: "onyx-info-tooltip__trigger"
|
|
1500
1608
|
}, [
|
|
1501
|
-
|
|
1502
|
-
], 8,
|
|
1609
|
+
M(A, { icon: r(pt) }, null, 8, ["icon"])
|
|
1610
|
+
], 8, ml)
|
|
1503
1611
|
]),
|
|
1504
1612
|
_: 1
|
|
1505
1613
|
}, 8, ["text", "position"]));
|
|
1506
1614
|
}
|
|
1507
|
-
}),
|
|
1508
|
-
key: 2,
|
|
1509
|
-
class: "onyx-form-element__optional"
|
|
1510
|
-
}, ol = {
|
|
1615
|
+
}), yl = {
|
|
1511
1616
|
key: 0,
|
|
1617
|
+
class: "onyx-form-element__label onyx-text--small"
|
|
1618
|
+
}, hl = ["for"], vl = {
|
|
1619
|
+
key: 1,
|
|
1512
1620
|
class: "onyx-form-element__footer onyx-text--small"
|
|
1513
|
-
},
|
|
1621
|
+
}, fl = {
|
|
1514
1622
|
key: 0,
|
|
1515
1623
|
class: "onyx-form-element__error-message onyx-truncation-ellipsis"
|
|
1516
|
-
},
|
|
1624
|
+
}, _l = {
|
|
1517
1625
|
key: 2,
|
|
1518
1626
|
class: "onyx-form-element__message onyx-truncation-ellipsis"
|
|
1519
|
-
},
|
|
1627
|
+
}, xl = {
|
|
1520
1628
|
key: 4,
|
|
1521
1629
|
class: "onyx-form-element__counter"
|
|
1522
|
-
},
|
|
1630
|
+
}, xe = /* @__PURE__ */ w({
|
|
1523
1631
|
__name: "OnyxFormElement",
|
|
1524
1632
|
props: {
|
|
1525
1633
|
required: { type: Boolean, default: !1 },
|
|
1526
1634
|
requiredMarker: {},
|
|
1635
|
+
id: { default: W("onyx-form-element") },
|
|
1527
1636
|
modelValue: {},
|
|
1528
1637
|
label: {},
|
|
1529
1638
|
labelTooltip: {},
|
|
@@ -1535,66 +1644,68 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
1535
1644
|
withCounter: { type: Boolean }
|
|
1536
1645
|
},
|
|
1537
1646
|
setup(t) {
|
|
1538
|
-
const a = t, { t: e } =
|
|
1539
|
-
var
|
|
1647
|
+
const a = t, { t: e } = N(), { requiredMarkerClass: l, requiredTypeClass: n } = _e(a), o = h(() => {
|
|
1648
|
+
var u;
|
|
1540
1649
|
if (a.withCounter && a.maxlength)
|
|
1541
|
-
return `${(((
|
|
1650
|
+
return `${(((u = a.modelValue) == null ? void 0 : u.toString()) || "").length}/${a.maxlength}`;
|
|
1542
1651
|
});
|
|
1543
|
-
return (
|
|
1544
|
-
var
|
|
1545
|
-
return
|
|
1546
|
-
class: g(["onyx-form-element", r(
|
|
1652
|
+
return (u, c) => {
|
|
1653
|
+
var i, y;
|
|
1654
|
+
return s(), p("div", {
|
|
1655
|
+
class: g(["onyx-form-element", r(n)])
|
|
1547
1656
|
}, [
|
|
1548
|
-
|
|
1549
|
-
|
|
1657
|
+
a.hideLabel ? _("", !0) : (s(), p("div", yl, [
|
|
1658
|
+
f("label", {
|
|
1659
|
+
for: a.id,
|
|
1660
|
+
class: "onyx-truncation-ellipsis"
|
|
1661
|
+
}, V(a.label), 9, hl),
|
|
1662
|
+
a.required ? (s(), p("span", {
|
|
1550
1663
|
key: 0,
|
|
1551
|
-
class: g([
|
|
1552
|
-
},
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
a.message || (c = i.errorMessages) != null && c.shortMessage || o.value ? (n(), p("div", ol, [
|
|
1570
|
-
i.errorMessages ? (n(), p("span", nl, M(i.errorMessages.shortMessage), 1)) : _("", !0),
|
|
1571
|
-
(m = i.errorMessages) != null && m.longMessage ? (n(), x(Me, {
|
|
1664
|
+
class: g([a.required ? r(l) : void 0])
|
|
1665
|
+
}, null, 2)) : _("", !0),
|
|
1666
|
+
a.labelTooltip ? (s(), x(Se, {
|
|
1667
|
+
key: 1,
|
|
1668
|
+
class: "onyx-form-element__label-tooltip",
|
|
1669
|
+
text: a.labelTooltip
|
|
1670
|
+
}, null, 8, ["text"])) : _("", !0),
|
|
1671
|
+
a.required ? _("", !0) : (s(), p("span", {
|
|
1672
|
+
key: 2,
|
|
1673
|
+
class: g([a.required ? void 0 : r(l)])
|
|
1674
|
+
}, null, 2))
|
|
1675
|
+
])),
|
|
1676
|
+
b(u.$slots, "default", {
|
|
1677
|
+
id: a.id
|
|
1678
|
+
}),
|
|
1679
|
+
a.message || (i = u.errorMessages) != null && i.shortMessage || o.value ? (s(), p("div", vl, [
|
|
1680
|
+
u.errorMessages ? (s(), p("span", fl, V(u.errorMessages.shortMessage), 1)) : _("", !0),
|
|
1681
|
+
(y = u.errorMessages) != null && y.longMessage ? (s(), x(Se, {
|
|
1572
1682
|
key: 1,
|
|
1573
1683
|
class: "onyx-form-element__error-tooltip",
|
|
1574
1684
|
color: "danger",
|
|
1575
1685
|
position: "bottom",
|
|
1576
1686
|
label: r(e)("showTooltip.error"),
|
|
1577
|
-
text:
|
|
1687
|
+
text: u.errorMessages.longMessage
|
|
1578
1688
|
}, null, 8, ["label", "text"])) : _("", !0),
|
|
1579
|
-
a.message ? (
|
|
1580
|
-
a.messageTooltip ? (
|
|
1689
|
+
a.message ? (s(), p("span", _l, V(a.message), 1)) : _("", !0),
|
|
1690
|
+
a.messageTooltip ? (s(), x(Se, {
|
|
1581
1691
|
key: 3,
|
|
1582
1692
|
class: "onyx-form-element__message-tooltip",
|
|
1583
1693
|
position: "bottom",
|
|
1584
1694
|
text: a.messageTooltip
|
|
1585
1695
|
}, null, 8, ["text"])) : _("", !0),
|
|
1586
|
-
o.value ? (
|
|
1696
|
+
o.value ? (s(), p("span", xl, V(o.value), 1)) : _("", !0)
|
|
1587
1697
|
])) : _("", !0)
|
|
1588
1698
|
], 2);
|
|
1589
1699
|
};
|
|
1590
1700
|
}
|
|
1591
|
-
}),
|
|
1701
|
+
}), bl = { class: "onyx-input__wrapper" }, gl = ["id", "placeholder", "type", "required", "autocapitalize", "autocomplete", "autofocus", "name", "pattern", "readonly", "disabled", "minlength", "maxlength", "aria-label", "title"], Kn = /* @__PURE__ */ w({
|
|
1592
1702
|
__name: "OnyxInput",
|
|
1593
1703
|
props: {
|
|
1594
1704
|
density: {},
|
|
1595
1705
|
required: { type: Boolean, default: !1 },
|
|
1596
1706
|
requiredMarker: {},
|
|
1597
1707
|
customError: {},
|
|
1708
|
+
id: {},
|
|
1598
1709
|
label: {},
|
|
1599
1710
|
labelTooltip: {},
|
|
1600
1711
|
hideLabel: { type: Boolean },
|
|
@@ -1618,57 +1729,58 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
1618
1729
|
},
|
|
1619
1730
|
emits: ["update:modelValue", "change", "focus", "blur", "validityChange"],
|
|
1620
1731
|
setup(t, { emit: a }) {
|
|
1621
|
-
const e = t, l = a, { vCustomValidity:
|
|
1732
|
+
const e = t, l = a, { vCustomValidity: n, errorMessages: o } = ae({ props: e, emit: l }), { densityClass: u } = H(e), c = h({
|
|
1622
1733
|
get: () => e.modelValue,
|
|
1623
|
-
set: (
|
|
1624
|
-
}),
|
|
1625
|
-
const
|
|
1626
|
-
l("change",
|
|
1627
|
-
},
|
|
1628
|
-
return (
|
|
1734
|
+
set: (d) => l("update:modelValue", d)
|
|
1735
|
+
}), i = (d) => {
|
|
1736
|
+
const m = d.target.value;
|
|
1737
|
+
l("change", m);
|
|
1738
|
+
}, y = h(() => e.pattern instanceof RegExp ? e.pattern.source : e.pattern);
|
|
1739
|
+
return (d, m) => e.skeleton ? (s(), p("div", {
|
|
1629
1740
|
key: 0,
|
|
1630
|
-
class: g(["onyx-input-skeleton", r(
|
|
1741
|
+
class: g(["onyx-input-skeleton", r(u)])
|
|
1631
1742
|
}, [
|
|
1632
|
-
e.hideLabel ? _("", !0) : (
|
|
1743
|
+
e.hideLabel ? _("", !0) : (s(), x(U, {
|
|
1633
1744
|
key: 0,
|
|
1634
1745
|
class: "onyx-input-skeleton__label"
|
|
1635
1746
|
})),
|
|
1636
|
-
|
|
1637
|
-
], 2)) : (
|
|
1747
|
+
M(U, { class: "onyx-input-skeleton__input" })
|
|
1748
|
+
], 2)) : (s(), p("div", {
|
|
1638
1749
|
key: 1,
|
|
1639
|
-
class: g(["onyx-input", r(
|
|
1750
|
+
class: g(["onyx-input", r(u)])
|
|
1640
1751
|
}, [
|
|
1641
|
-
|
|
1642
|
-
default: $(() => [
|
|
1643
|
-
|
|
1644
|
-
e.loading ? (
|
|
1752
|
+
M(xe, O(e, { "error-messages": r(o) }), {
|
|
1753
|
+
default: $(({ id: v }) => [
|
|
1754
|
+
f("div", bl, [
|
|
1755
|
+
e.loading ? (s(), x(X, {
|
|
1645
1756
|
key: 0,
|
|
1646
1757
|
class: "onyx-input__loading",
|
|
1647
1758
|
type: "circle"
|
|
1648
1759
|
})) : _("", !0),
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1760
|
+
K(f("input", {
|
|
1761
|
+
id: v,
|
|
1762
|
+
"onUpdate:modelValue": m[0] || (m[0] = (k) => c.value = k),
|
|
1652
1763
|
placeholder: e.placeholder,
|
|
1764
|
+
class: "onyx-input__native",
|
|
1653
1765
|
type: e.type,
|
|
1654
1766
|
required: e.required,
|
|
1655
1767
|
autocapitalize: e.autocapitalize,
|
|
1656
1768
|
autocomplete: e.autocomplete,
|
|
1657
1769
|
autofocus: e.autofocus,
|
|
1658
1770
|
name: e.name,
|
|
1659
|
-
pattern:
|
|
1771
|
+
pattern: y.value,
|
|
1660
1772
|
readonly: e.readonly,
|
|
1661
1773
|
disabled: e.disabled || e.loading,
|
|
1662
1774
|
minlength: e.minlength,
|
|
1663
1775
|
maxlength: e.maxlength,
|
|
1664
1776
|
"aria-label": e.hideLabel ? e.label : void 0,
|
|
1665
1777
|
title: e.hideLabel ? e.label : void 0,
|
|
1666
|
-
onChange:
|
|
1667
|
-
onFocus:
|
|
1668
|
-
onBlur:
|
|
1669
|
-
}, null, 40,
|
|
1670
|
-
[
|
|
1671
|
-
[r(
|
|
1778
|
+
onChange: i,
|
|
1779
|
+
onFocus: m[1] || (m[1] = (k) => l("focus")),
|
|
1780
|
+
onBlur: m[2] || (m[2] = (k) => l("blur"))
|
|
1781
|
+
}, null, 40, gl), [
|
|
1782
|
+
[Ht, c.value],
|
|
1783
|
+
[r(n)]
|
|
1672
1784
|
])
|
|
1673
1785
|
])
|
|
1674
1786
|
]),
|
|
@@ -1676,21 +1788,21 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
1676
1788
|
}, 16, ["error-messages"])
|
|
1677
1789
|
], 2));
|
|
1678
1790
|
}
|
|
1679
|
-
}),
|
|
1791
|
+
}), jn = ["email", "password", "search", "tel", "text", "url"], Yn = ["none", "sentences", "words", "characters"], wt = /* @__PURE__ */ w({
|
|
1680
1792
|
__name: "OnyxVisuallyHidden",
|
|
1681
1793
|
props: {
|
|
1682
1794
|
is: { default: "span" }
|
|
1683
1795
|
},
|
|
1684
1796
|
setup(t) {
|
|
1685
1797
|
const a = t;
|
|
1686
|
-
return (e, l) => (
|
|
1798
|
+
return (e, l) => (s(), x(ce(a.is), { class: "onyx-visually-hidden" }, {
|
|
1687
1799
|
default: $(() => [
|
|
1688
1800
|
b(e.$slots, "default")
|
|
1689
1801
|
]),
|
|
1690
1802
|
_: 3
|
|
1691
1803
|
}));
|
|
1692
1804
|
}
|
|
1693
|
-
}),
|
|
1805
|
+
}), kl = ["href", "target", "rel"], Wn = /* @__PURE__ */ w({
|
|
1694
1806
|
__name: "OnyxLink",
|
|
1695
1807
|
props: {
|
|
1696
1808
|
href: {},
|
|
@@ -1699,25 +1811,25 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
1699
1811
|
},
|
|
1700
1812
|
emits: ["click"],
|
|
1701
1813
|
setup(t, { emit: a }) {
|
|
1702
|
-
const e = t, l = a, { t:
|
|
1703
|
-
return (o,
|
|
1814
|
+
const e = t, l = a, { t: n } = N();
|
|
1815
|
+
return (o, u) => (s(), p("a", {
|
|
1704
1816
|
class: "onyx-link",
|
|
1705
1817
|
href: e.href,
|
|
1706
1818
|
target: e.target,
|
|
1707
1819
|
rel: e.target === "_blank" ? "noreferrer" : void 0,
|
|
1708
|
-
onClick:
|
|
1820
|
+
onClick: u[0] || (u[0] = (c) => l("click"))
|
|
1709
1821
|
}, [
|
|
1710
1822
|
b(o.$slots, "default"),
|
|
1711
|
-
e.target === "_blank" ? (
|
|
1823
|
+
e.target === "_blank" ? (s(), x(wt, { key: 0 }, {
|
|
1712
1824
|
default: $(() => [
|
|
1713
|
-
|
|
1825
|
+
Z(V(r(n)("link.opensExternally")), 1)
|
|
1714
1826
|
]),
|
|
1715
1827
|
_: 1
|
|
1716
1828
|
})) : _("", !0),
|
|
1717
|
-
|
|
1718
|
-
], 8,
|
|
1829
|
+
M(Ue, ee(te(e)), null, 16)
|
|
1830
|
+
], 8, kl));
|
|
1719
1831
|
}
|
|
1720
|
-
}),
|
|
1832
|
+
}), Xn = ["_self", "_blank", "_parent", "_top"], Fe = /* @__PURE__ */ w({
|
|
1721
1833
|
__name: "OnyxListItem",
|
|
1722
1834
|
props: {
|
|
1723
1835
|
density: {},
|
|
@@ -1729,7 +1841,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
1729
1841
|
},
|
|
1730
1842
|
setup(t) {
|
|
1731
1843
|
const a = t, { densityClass: e } = H(a);
|
|
1732
|
-
return (l,
|
|
1844
|
+
return (l, n) => (s(), p("li", {
|
|
1733
1845
|
class: g({
|
|
1734
1846
|
"onyx-list-item": !0,
|
|
1735
1847
|
...r(e),
|
|
@@ -1743,8 +1855,8 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
1743
1855
|
b(l.$slots, "default")
|
|
1744
1856
|
], 2));
|
|
1745
1857
|
}
|
|
1746
|
-
}),
|
|
1747
|
-
const t =
|
|
1858
|
+
}), wl = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m28.707 27.293-7.969-7.969A9.95 9.95 0 0 0 23 13c0-5.514-4.486-10-10-10S3 7.486 3 13s4.486 10 10 10c2.397 0 4.599-.85 6.324-2.262l7.969 7.969zM5 13c0-4.411 3.589-8 8-8s8 3.589 8 8-3.589 8-8 8-8-3.589-8-8"/></svg>', qe = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m22.707 10.707-1.414-1.414L16 14.586l-5.293-5.293-1.414 1.414L14.586 16l-5.293 5.293 1.414 1.414L16 17.414l5.293 5.293 1.414-1.414L17.414 16z"/></svg>', Ct = () => {
|
|
1859
|
+
const t = Pt(), a = h(
|
|
1748
1860
|
() => ({ class: t.class, style: t.style })
|
|
1749
1861
|
), e = h(() => {
|
|
1750
1862
|
const l = { ...t };
|
|
@@ -1760,7 +1872,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
1760
1872
|
*/
|
|
1761
1873
|
restAttrs: e
|
|
1762
1874
|
};
|
|
1763
|
-
},
|
|
1875
|
+
}, Cl = ["placeholder", "aria-label"], $l = ["aria-label"], Ml = /* @__PURE__ */ w({
|
|
1764
1876
|
inheritAttrs: !1,
|
|
1765
1877
|
__name: "OnyxMiniSearch",
|
|
1766
1878
|
props: {
|
|
@@ -1770,90 +1882,100 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
1770
1882
|
},
|
|
1771
1883
|
emits: ["update:modelValue", "clear"],
|
|
1772
1884
|
setup(t, { expose: a, emit: e }) {
|
|
1773
|
-
const l = t,
|
|
1885
|
+
const l = t, n = e, { rootAttrs: o, restAttrs: u } = Ct(), { densityClass: c } = H(l), { t: i } = N(), y = T(), d = h({
|
|
1774
1886
|
get: () => l.modelValue,
|
|
1775
|
-
set: (
|
|
1887
|
+
set: (m) => n("update:modelValue", m ?? "")
|
|
1776
1888
|
});
|
|
1777
1889
|
return a({
|
|
1778
1890
|
/**
|
|
1779
1891
|
* Focuses the input.
|
|
1780
1892
|
*/
|
|
1781
1893
|
focus: () => {
|
|
1782
|
-
var
|
|
1783
|
-
return (
|
|
1894
|
+
var m;
|
|
1895
|
+
return (m = y.value) == null ? void 0 : m.focus();
|
|
1784
1896
|
}
|
|
1785
|
-
}), (
|
|
1786
|
-
class: ["onyx-mini-search", r(
|
|
1897
|
+
}), (m, v) => (s(), p("div", O({
|
|
1898
|
+
class: ["onyx-mini-search", r(c)]
|
|
1787
1899
|
}, r(o)), [
|
|
1788
|
-
|
|
1900
|
+
K(f("input", O({
|
|
1789
1901
|
ref_key: "input",
|
|
1790
|
-
ref:
|
|
1791
|
-
"onUpdate:modelValue":
|
|
1792
|
-
class: "onyx-mini-search__input",
|
|
1793
|
-
placeholder: "
|
|
1902
|
+
ref: y,
|
|
1903
|
+
"onUpdate:modelValue": v[0] || (v[0] = (k) => d.value = k),
|
|
1904
|
+
class: "onyx-mini-search__input onyx-text",
|
|
1905
|
+
placeholder: r(i)("select.searchPlaceholder"),
|
|
1794
1906
|
type: "text"
|
|
1795
|
-
}, r(
|
|
1907
|
+
}, r(u), {
|
|
1796
1908
|
"aria-label": l.label
|
|
1797
|
-
}), null, 16,
|
|
1798
|
-
[
|
|
1909
|
+
}), null, 16, Cl), [
|
|
1910
|
+
[ze, d.value]
|
|
1799
1911
|
]),
|
|
1800
|
-
|
|
1912
|
+
f("button", {
|
|
1801
1913
|
type: "button",
|
|
1802
1914
|
class: "onyx-mini-search__clear",
|
|
1803
|
-
"aria-label": r(
|
|
1915
|
+
"aria-label": r(i)("select.clearSearch"),
|
|
1804
1916
|
tabindex: "-1",
|
|
1805
|
-
onMousedown:
|
|
1917
|
+
onMousedown: v[1] || (v[1] = De(() => {
|
|
1806
1918
|
}, ["prevent"])),
|
|
1807
|
-
onClick:
|
|
1919
|
+
onClick: v[2] || (v[2] = (k) => n("clear"))
|
|
1808
1920
|
}, [
|
|
1809
|
-
|
|
1810
|
-
], 40,
|
|
1811
|
-
|
|
1921
|
+
M(A, { icon: r(qe) }, null, 8, ["icon"])
|
|
1922
|
+
], 40, $l),
|
|
1923
|
+
M(A, {
|
|
1812
1924
|
class: "onyx-mini-search__icon",
|
|
1813
|
-
icon: r(
|
|
1925
|
+
icon: r(wl)
|
|
1814
1926
|
}, null, 8, ["icon"])
|
|
1815
1927
|
], 16));
|
|
1816
1928
|
}
|
|
1817
|
-
}),
|
|
1818
|
-
key: 0,
|
|
1819
|
-
class: "onyx-mobile-nav-button__menu"
|
|
1820
|
-
}, _l = { class: "onyx-mobile-nav-button__content" }, Ge = /* @__PURE__ */ k({
|
|
1929
|
+
}), Bl = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m27.707 5.707-1.414-1.414L16 14.586 5.707 4.293 4.293 5.707 14.586 16 4.293 26.293l1.414 1.414L16 17.414l10.293 10.293 1.414-1.414L17.414 16z"/></svg>', Vl = { class: "onyx-mobile-nav-button" }, Sl = ["aria-label"], Ol = { class: "onyx-mobile-nav-button__flyout" }, Ll = { class: "onyx-mobile-nav-button__menu" }, Qe = /* @__PURE__ */ w({
|
|
1821
1930
|
__name: "OnyxMobileNavButton",
|
|
1822
1931
|
props: {
|
|
1823
1932
|
label: {},
|
|
1824
1933
|
icon: {},
|
|
1825
|
-
open: { type: Boolean, default: !1 }
|
|
1934
|
+
open: { type: Boolean, default: !1 },
|
|
1935
|
+
headline: {}
|
|
1826
1936
|
},
|
|
1827
1937
|
emits: ["update:open"],
|
|
1828
1938
|
setup(t, { emit: a }) {
|
|
1829
1939
|
const e = t, l = a;
|
|
1830
|
-
return (
|
|
1831
|
-
|
|
1940
|
+
return (n, o) => (s(), p("div", Vl, [
|
|
1941
|
+
f("button", {
|
|
1832
1942
|
type: "button",
|
|
1833
|
-
class: g(["onyx-mobile-nav-
|
|
1943
|
+
class: g(["onyx-mobile-nav-button__trigger", { "onyx-mobile-nav-button__trigger--active": e.open }]),
|
|
1834
1944
|
"aria-label": e.label,
|
|
1835
|
-
onClick: o[0] || (o[0] = (
|
|
1945
|
+
onClick: o[0] || (o[0] = (u) => l("update:open", !e.open))
|
|
1836
1946
|
}, [
|
|
1837
|
-
|
|
1838
|
-
icon: e.open ? r(
|
|
1947
|
+
M(A, {
|
|
1948
|
+
icon: e.open ? r(Bl) : e.icon
|
|
1839
1949
|
}, null, 8, ["icon"])
|
|
1840
|
-
], 10,
|
|
1841
|
-
e.open ? (
|
|
1842
|
-
|
|
1843
|
-
|
|
1950
|
+
], 10, Sl),
|
|
1951
|
+
e.open ? (s(), p(R, { key: 0 }, [
|
|
1952
|
+
f("div", Ol, [
|
|
1953
|
+
f("div", Ll, [
|
|
1954
|
+
e.headline ? (s(), x(ie, {
|
|
1955
|
+
key: 0,
|
|
1956
|
+
is: "h2",
|
|
1957
|
+
class: "onyx-mobile-nav-button__headline"
|
|
1958
|
+
}, {
|
|
1959
|
+
default: $(() => [
|
|
1960
|
+
Z(V(e.headline), 1)
|
|
1961
|
+
]),
|
|
1962
|
+
_: 1
|
|
1963
|
+
})) : _("", !0),
|
|
1964
|
+
b(n.$slots, "default")
|
|
1965
|
+
])
|
|
1844
1966
|
]),
|
|
1845
|
-
|
|
1967
|
+
f("div", {
|
|
1846
1968
|
class: "onyx-mobile-nav-button__backdrop",
|
|
1847
1969
|
role: "presentation",
|
|
1848
|
-
onClick: o[1] || (o[1] = (
|
|
1970
|
+
onClick: o[1] || (o[1] = (u) => l("update:open", !1))
|
|
1849
1971
|
})
|
|
1850
|
-
])) : _("", !0)
|
|
1972
|
+
], 64)) : _("", !0)
|
|
1851
1973
|
]));
|
|
1852
1974
|
}
|
|
1853
|
-
}),
|
|
1975
|
+
}), Tl = ["aria-label"], El = ["src", "alt"], Il = {
|
|
1854
1976
|
key: 1,
|
|
1855
|
-
class: "onyx-text-small"
|
|
1856
|
-
},
|
|
1977
|
+
class: "onyx-text-small onyx-truncation-ellipsis"
|
|
1978
|
+
}, Al = /* @__PURE__ */ w({
|
|
1857
1979
|
__name: "OnyxNavAppArea",
|
|
1858
1980
|
props: {
|
|
1859
1981
|
logoUrl: {},
|
|
@@ -1862,27 +1984,27 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
1862
1984
|
},
|
|
1863
1985
|
emits: ["click"],
|
|
1864
1986
|
setup(t, { emit: a }) {
|
|
1865
|
-
const e = t, l = a, { t:
|
|
1866
|
-
return (
|
|
1987
|
+
const e = t, l = a, { t: n } = N(), o = h(() => e.label ?? n.value("navigation.goToHome"));
|
|
1988
|
+
return (u, c) => (s(), p("button", {
|
|
1867
1989
|
type: "button",
|
|
1868
1990
|
class: "onyx-nav-app-area",
|
|
1869
1991
|
"aria-label": o.value,
|
|
1870
|
-
onClick:
|
|
1992
|
+
onClick: c[0] || (c[0] = (i) => l("click"))
|
|
1871
1993
|
}, [
|
|
1872
|
-
b(
|
|
1873
|
-
e.logoUrl ? (
|
|
1994
|
+
b(u.$slots, "default", {}, () => [
|
|
1995
|
+
e.logoUrl ? (s(), p("img", {
|
|
1874
1996
|
key: 0,
|
|
1875
1997
|
src: e.logoUrl,
|
|
1876
|
-
alt: r(
|
|
1998
|
+
alt: r(n)("navigation.appLogo", { appName: e.appName }),
|
|
1877
1999
|
class: "onyx-nav-app-area__logo",
|
|
1878
2000
|
width: "24",
|
|
1879
2001
|
height: "24"
|
|
1880
|
-
}, null, 8,
|
|
1881
|
-
e.appName ? (
|
|
2002
|
+
}, null, 8, El)) : _("", !0),
|
|
2003
|
+
e.appName ? (s(), p("span", Il, V(e.appName), 1)) : _("", !0)
|
|
1882
2004
|
])
|
|
1883
|
-
], 8,
|
|
2005
|
+
], 8, Tl));
|
|
1884
2006
|
}
|
|
1885
|
-
}),
|
|
2007
|
+
}), Hl = `<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1886
2008
|
<g clip-path="url(#clip0_4499_144781)">
|
|
1887
2009
|
<mask id="mask0_4499_144781" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="83" height="104">
|
|
1888
2010
|
<rect width="83" height="104" fill="#D9D9D9"/>
|
|
@@ -1970,7 +2092,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
1970
2092
|
</clipPath>
|
|
1971
2093
|
</defs>
|
|
1972
2094
|
</svg>
|
|
1973
|
-
`,
|
|
2095
|
+
`, Pl = `<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1974
2096
|
<g clip-path="url(#clip0_4499_144833)">
|
|
1975
2097
|
<path d="M0 4C0 1.79086 1.79086 0 4 0H162C164.209 0 166 1.79086 166 4V100C166 102.209 164.209 104 162 104H4C1.79086 104 0 102.209 0 100V4Z" fill="var(--onyx-color-themed-neutral-1100)"/>
|
|
1976
2098
|
<g filter="url(#filter0_d_4499_144833)">
|
|
@@ -2017,7 +2139,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2017
2139
|
</clipPath>
|
|
2018
2140
|
</defs>
|
|
2019
2141
|
</svg>
|
|
2020
|
-
`,
|
|
2142
|
+
`, Dl = `<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2021
2143
|
<g clip-path="url(#clip0_4499_144816)">
|
|
2022
2144
|
<path d="M0 4C0 1.79086 1.79086 0 4 0H162C164.209 0 166 1.79086 166 4V100C166 102.209 164.209 104 162 104H4C1.79086 104 0 102.209 0 100V4Z" fill="white"/>
|
|
2023
2145
|
<g filter="url(#filter0_d_4499_144816)">
|
|
@@ -2064,7 +2186,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2064
2186
|
</clipPath>
|
|
2065
2187
|
</defs>
|
|
2066
2188
|
</svg>
|
|
2067
|
-
`,
|
|
2189
|
+
`, Nl = { class: "onyx-color-scheme-dialog__subtitle onyx-text" }, zl = ["innerHTML"], Rl = ["autofocus", "value", "checked", "aria-label"], Ul = { class: "onyx-text--small" }, Fl = { class: "onyx-color-scheme-dialog__actions" }, ql = /* @__PURE__ */ w({
|
|
2068
2190
|
__name: "OnyxColorSchemeDialog",
|
|
2069
2191
|
props: {
|
|
2070
2192
|
open: { type: Boolean, default: !1 },
|
|
@@ -2073,100 +2195,100 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2073
2195
|
},
|
|
2074
2196
|
emits: ["update:modelValue", "close"],
|
|
2075
2197
|
setup(t, { emit: a }) {
|
|
2076
|
-
const e = t, l = a,
|
|
2077
|
-
|
|
2078
|
-
const { t: o } =
|
|
2198
|
+
const e = t, l = a, n = T(e.modelValue);
|
|
2199
|
+
Q(() => n.value = e.modelValue);
|
|
2200
|
+
const { t: o } = N(), u = h(() => [
|
|
2079
2201
|
{
|
|
2080
2202
|
value: "auto",
|
|
2081
|
-
image:
|
|
2203
|
+
image: Hl,
|
|
2082
2204
|
label: o.value("colorScheme.auto.label"),
|
|
2083
2205
|
description: o.value("colorScheme.auto.description")
|
|
2084
2206
|
},
|
|
2085
2207
|
{
|
|
2086
2208
|
value: "light",
|
|
2087
|
-
image:
|
|
2209
|
+
image: Dl,
|
|
2088
2210
|
label: o.value("colorScheme.light.label"),
|
|
2089
2211
|
description: o.value("colorScheme.light.description")
|
|
2090
2212
|
},
|
|
2091
2213
|
{
|
|
2092
2214
|
value: "dark",
|
|
2093
|
-
image:
|
|
2215
|
+
image: Pl,
|
|
2094
2216
|
label: o.value("colorScheme.dark.label"),
|
|
2095
2217
|
description: o.value("colorScheme.dark.description")
|
|
2096
2218
|
}
|
|
2097
|
-
]),
|
|
2098
|
-
const
|
|
2099
|
-
|
|
2100
|
-
},
|
|
2101
|
-
|
|
2219
|
+
]), c = (y) => {
|
|
2220
|
+
const d = y.target;
|
|
2221
|
+
n.value = d.value;
|
|
2222
|
+
}, i = () => {
|
|
2223
|
+
n.value && (l("update:modelValue", n.value), l("close"));
|
|
2102
2224
|
};
|
|
2103
|
-
return (
|
|
2225
|
+
return (y, d) => (s(), x(Za, O({ class: "onyx-color-scheme-dialog" }, e, {
|
|
2104
2226
|
label: r(o)("colorScheme.headline"),
|
|
2105
2227
|
modal: "",
|
|
2106
|
-
onClose:
|
|
2228
|
+
onClose: d[1] || (d[1] = (m) => l("close"))
|
|
2107
2229
|
}), {
|
|
2108
2230
|
default: $(() => [
|
|
2109
|
-
|
|
2231
|
+
f("form", {
|
|
2110
2232
|
class: "onyx-color-scheme-dialog__form",
|
|
2111
|
-
onSubmit:
|
|
2233
|
+
onSubmit: De(i, ["prevent"])
|
|
2112
2234
|
}, [
|
|
2113
|
-
|
|
2114
|
-
|
|
2235
|
+
f("div", null, [
|
|
2236
|
+
M(ie, { is: "h2" }, {
|
|
2115
2237
|
default: $(() => [
|
|
2116
|
-
|
|
2238
|
+
Z(V(r(o)("colorScheme.headline")), 1)
|
|
2117
2239
|
]),
|
|
2118
2240
|
_: 1
|
|
2119
2241
|
}),
|
|
2120
|
-
|
|
2242
|
+
f("span", Nl, V(r(o)("colorScheme.subtitle")), 1)
|
|
2121
2243
|
]),
|
|
2122
|
-
|
|
2244
|
+
f("fieldset", {
|
|
2123
2245
|
class: "onyx-color-scheme-dialog__list",
|
|
2124
|
-
onChange:
|
|
2246
|
+
onChange: c
|
|
2125
2247
|
}, [
|
|
2126
|
-
(
|
|
2127
|
-
key:
|
|
2248
|
+
(s(!0), p(R, null, J(u.value, (m) => (s(), p("label", {
|
|
2249
|
+
key: m.value,
|
|
2128
2250
|
class: "onyx-color-scheme-dialog__option"
|
|
2129
2251
|
}, [
|
|
2130
|
-
|
|
2252
|
+
f("figure", {
|
|
2131
2253
|
class: "onyx-color-scheme-dialog__image",
|
|
2132
|
-
innerHTML:
|
|
2133
|
-
}, null, 8,
|
|
2134
|
-
|
|
2135
|
-
|
|
2254
|
+
innerHTML: m.image
|
|
2255
|
+
}, null, 8, zl),
|
|
2256
|
+
f("div", null, [
|
|
2257
|
+
M(wt, { is: "div" }, {
|
|
2136
2258
|
default: $(() => [
|
|
2137
|
-
|
|
2259
|
+
f("input", {
|
|
2138
2260
|
type: "radio",
|
|
2139
2261
|
name: "color-scheme",
|
|
2140
|
-
autofocus: e.modelValue ===
|
|
2141
|
-
value:
|
|
2142
|
-
checked: e.modelValue ===
|
|
2143
|
-
"aria-label":
|
|
2262
|
+
autofocus: e.modelValue === m.value,
|
|
2263
|
+
value: m.value,
|
|
2264
|
+
checked: e.modelValue === m.value,
|
|
2265
|
+
"aria-label": m.label,
|
|
2144
2266
|
required: ""
|
|
2145
|
-
}, null, 8,
|
|
2267
|
+
}, null, 8, Rl)
|
|
2146
2268
|
]),
|
|
2147
2269
|
_: 2
|
|
2148
2270
|
}, 1024),
|
|
2149
|
-
|
|
2271
|
+
M(ie, {
|
|
2150
2272
|
is: "h3",
|
|
2151
2273
|
class: "onyx-color-scheme-dialog__label"
|
|
2152
2274
|
}, {
|
|
2153
2275
|
default: $(() => [
|
|
2154
|
-
|
|
2276
|
+
Z(V(m.label), 1)
|
|
2155
2277
|
]),
|
|
2156
2278
|
_: 2
|
|
2157
2279
|
}, 1024),
|
|
2158
|
-
|
|
2280
|
+
f("p", Ul, V(m.description), 1)
|
|
2159
2281
|
])
|
|
2160
2282
|
]))), 128))
|
|
2161
2283
|
], 32),
|
|
2162
|
-
|
|
2163
|
-
|
|
2284
|
+
f("div", Fl, [
|
|
2285
|
+
M(Ie, {
|
|
2164
2286
|
label: r(o)("cancel"),
|
|
2165
2287
|
mode: "plain",
|
|
2166
2288
|
color: "neutral",
|
|
2167
|
-
onClick:
|
|
2289
|
+
onClick: d[0] || (d[0] = (m) => l("close"))
|
|
2168
2290
|
}, null, 8, ["label"]),
|
|
2169
|
-
|
|
2291
|
+
M(Ie, {
|
|
2170
2292
|
label: r(o)("apply"),
|
|
2171
2293
|
type: "submit"
|
|
2172
2294
|
}, null, 8, ["label"])
|
|
@@ -2176,7 +2298,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2176
2298
|
_: 1
|
|
2177
2299
|
}, 16, ["label"]));
|
|
2178
2300
|
}
|
|
2179
|
-
}),
|
|
2301
|
+
}), Zl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M15.99 2C8.28 2 2 8.27 2 15.99s6.27 13.99 13.99 13.99 13.99-6.27 13.99-13.99S23.7 2 15.99 2m5.96 3.6c.76.44 1.47.96 2.12 1.55v17.66c-.65.59-1.35 1.11-2.12 1.55zm-2 21.69c-.63.22-1.29.39-1.96.51V4.18c.67.11 1.33.28 1.96.51zm6.11-17.77c1.2 1.87 1.91 4.08 1.91 6.47s-.71 4.6-1.91 6.47V9.53ZM4 15.99C4 9.38 9.38 4 15.99 4v23.97C9.38 27.97 4 22.59 4 15.98Z" style="stroke-width:0"/></svg>', $t = /* @__PURE__ */ w({
|
|
2180
2302
|
__name: "OnyxMenuItem",
|
|
2181
2303
|
props: {
|
|
2182
2304
|
href: {},
|
|
@@ -2187,17 +2309,17 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2187
2309
|
emits: ["click"],
|
|
2188
2310
|
setup(t, { emit: a }) {
|
|
2189
2311
|
const e = t, l = a, {
|
|
2190
|
-
elements: { listItem:
|
|
2191
|
-
} =
|
|
2192
|
-
return (
|
|
2312
|
+
elements: { listItem: n, menuItem: o }
|
|
2313
|
+
} = gt();
|
|
2314
|
+
return (u, c) => (s(), x(Fe, O({
|
|
2193
2315
|
selected: e.active,
|
|
2194
2316
|
active: e.active,
|
|
2195
2317
|
color: e.color,
|
|
2196
2318
|
disabled: e.disabled,
|
|
2197
2319
|
class: "onyx-menu-item"
|
|
2198
|
-
}, r(
|
|
2320
|
+
}, r(n)), {
|
|
2199
2321
|
default: $(() => [
|
|
2200
|
-
(
|
|
2322
|
+
(s(), x(ce(e.href ? "a" : "button"), O(
|
|
2201
2323
|
{
|
|
2202
2324
|
class: "onyx-menu-item__trigger",
|
|
2203
2325
|
disabled: !e.href && e.disabled,
|
|
@@ -2208,11 +2330,11 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2208
2330
|
disabled: !e.href && e.disabled
|
|
2209
2331
|
}),
|
|
2210
2332
|
{
|
|
2211
|
-
onClick:
|
|
2333
|
+
onClick: c[0] || (c[0] = (i) => l("click"))
|
|
2212
2334
|
}
|
|
2213
2335
|
), {
|
|
2214
2336
|
default: $(() => [
|
|
2215
|
-
b(
|
|
2337
|
+
b(u.$slots, "default")
|
|
2216
2338
|
]),
|
|
2217
2339
|
_: 3
|
|
2218
2340
|
}, 16, ["disabled", "href"]))
|
|
@@ -2220,87 +2342,94 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2220
2342
|
_: 3
|
|
2221
2343
|
}, 16, ["selected", "active", "color", "disabled"]));
|
|
2222
2344
|
}
|
|
2223
|
-
}),
|
|
2345
|
+
}), Gl = { class: "onyx-color-scheme-menu-item__value" }, Jn = /* @__PURE__ */ w({
|
|
2224
2346
|
__name: "OnyxColorSchemeMenuItem",
|
|
2225
2347
|
props: {
|
|
2226
2348
|
modelValue: {}
|
|
2227
2349
|
},
|
|
2228
2350
|
emits: ["update:modelValue"],
|
|
2229
2351
|
setup(t, { emit: a }) {
|
|
2230
|
-
const e = t, l = a, { t:
|
|
2231
|
-
return (
|
|
2352
|
+
const e = t, l = a, { t: n } = N(), o = T(!1);
|
|
2353
|
+
return (u, c) => (s(), x($t, {
|
|
2232
2354
|
class: "onyx-color-scheme-menu-item",
|
|
2233
|
-
onClick:
|
|
2355
|
+
onClick: c[2] || (c[2] = (i) => o.value = !0)
|
|
2234
2356
|
}, {
|
|
2235
2357
|
default: $(() => [
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2358
|
+
M(A, { icon: r(Zl) }, null, 8, ["icon"]),
|
|
2359
|
+
f("div", null, [
|
|
2360
|
+
Z(V(r(n)("colorScheme.appearance")) + ": ", 1),
|
|
2361
|
+
f("span", Gl, V(r(n)(`colorScheme.${e.modelValue}.label`)), 1)
|
|
2240
2362
|
]),
|
|
2241
|
-
(
|
|
2242
|
-
|
|
2363
|
+
(s(), x(Dt, { to: "body" }, [
|
|
2364
|
+
M(ql, {
|
|
2243
2365
|
"model-value": e.modelValue,
|
|
2244
2366
|
open: o.value,
|
|
2245
|
-
onClose:
|
|
2246
|
-
"onUpdate:modelValue":
|
|
2367
|
+
onClose: c[0] || (c[0] = (i) => o.value = !1),
|
|
2368
|
+
"onUpdate:modelValue": c[1] || (c[1] = (i) => l("update:modelValue", i))
|
|
2247
2369
|
}, null, 8, ["model-value", "open"])
|
|
2248
2370
|
]))
|
|
2249
2371
|
]),
|
|
2250
2372
|
_: 1
|
|
2251
2373
|
}));
|
|
2252
2374
|
}
|
|
2253
|
-
}),
|
|
2375
|
+
}), Kl = ["aria-label"], Mt = /* @__PURE__ */ w({
|
|
2254
2376
|
__name: "OnyxFlyoutMenu",
|
|
2255
|
-
props: {
|
|
2377
|
+
props: /* @__PURE__ */ he({
|
|
2256
2378
|
label: {}
|
|
2257
|
-
},
|
|
2379
|
+
}, {
|
|
2380
|
+
open: { type: Boolean, default: !1 },
|
|
2381
|
+
openModifiers: {}
|
|
2382
|
+
}),
|
|
2383
|
+
emits: ["update:open"],
|
|
2258
2384
|
setup(t) {
|
|
2259
|
-
const a = t, e =
|
|
2260
|
-
elements: {
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2385
|
+
const a = t, e = ve(t, "open"), l = G(), {
|
|
2386
|
+
elements: { root: n, button: o, menu: u }
|
|
2387
|
+
} = ul({
|
|
2388
|
+
isExpanded: e,
|
|
2389
|
+
onToggle: () => e.value = !e.value
|
|
2390
|
+
}), c = h(() => {
|
|
2391
|
+
var y;
|
|
2392
|
+
if (!l.default) return;
|
|
2393
|
+
const i = l.default().at(0);
|
|
2394
|
+
return (i == null ? void 0 : i.type.toString()) === "Symbol(v-fgt)" ? Array.isArray(i == null ? void 0 : i.children) ? (y = i == null ? void 0 : i.children) == null ? void 0 : y.at(0) : void 0 : i;
|
|
2267
2395
|
});
|
|
2268
|
-
return (
|
|
2269
|
-
(
|
|
2270
|
-
|
|
2396
|
+
return (i, y) => (s(), p("div", O({ class: "onyx-flyout-menu" }, r(n)), [
|
|
2397
|
+
(s(), x(ce(c.value), ee(te(r(o))), null, 16)),
|
|
2398
|
+
l.options || l.header || l.footer ? K((s(), p("div", {
|
|
2399
|
+
key: 0,
|
|
2271
2400
|
"aria-label": a.label,
|
|
2272
|
-
class: {
|
|
2273
|
-
"onyx-flyout-menu__list--with-header": !!
|
|
2274
|
-
"onyx-flyout-menu__list--with-footer": !!
|
|
2401
|
+
class: g({
|
|
2402
|
+
"onyx-flyout-menu__list--with-header": !!l.header,
|
|
2403
|
+
"onyx-flyout-menu__list--with-footer": !!l.footer,
|
|
2275
2404
|
"onyx-flyout-menu__list": !0
|
|
2276
|
-
}
|
|
2277
|
-
}
|
|
2278
|
-
b(
|
|
2279
|
-
|
|
2280
|
-
b(
|
|
2405
|
+
})
|
|
2406
|
+
}, [
|
|
2407
|
+
b(i.$slots, "header"),
|
|
2408
|
+
l.options ? (s(), p("ul", O({ key: 0 }, r(u), { class: "onyx-flyout-menu__wrapper onyx-flyout-menu__group" }), [
|
|
2409
|
+
b(i.$slots, "options")
|
|
2281
2410
|
], 16)) : _("", !0),
|
|
2282
|
-
b(
|
|
2283
|
-
],
|
|
2284
|
-
[
|
|
2411
|
+
b(i.$slots, "footer")
|
|
2412
|
+
], 10, Kl)), [
|
|
2413
|
+
[nt, e.value]
|
|
2285
2414
|
]) : _("", !0)
|
|
2286
|
-
]));
|
|
2415
|
+
], 16));
|
|
2287
2416
|
}
|
|
2288
|
-
}),
|
|
2417
|
+
}), jl = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m13.207 8.293-1.414 1.414L18.086 16l-6.293 6.293 1.414 1.414L20.914 16z"/></svg>', be = Symbol(), Yl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.04 32.04"><path d="M23.52 15.52H11.93l4.13-4.13-1.42-1.41-6.54 6.54 6.54 6.54 1.42-1.42-4.13-4.12h11.59z"/></svg>', Wl = ["aria-orientation"], Xl = /* @__PURE__ */ w({
|
|
2289
2418
|
__name: "OnyxNavSeparator",
|
|
2290
2419
|
props: {
|
|
2291
2420
|
orientation: { default: "vertical" }
|
|
2292
2421
|
},
|
|
2293
2422
|
setup(t) {
|
|
2294
|
-
const a = t, e =
|
|
2295
|
-
return (l,
|
|
2423
|
+
const a = t, e = ue(be);
|
|
2424
|
+
return (l, n) => (s(), p("div", {
|
|
2296
2425
|
class: g(["onyx-nav-separator", { "onyx-nav-separator--horizontal": a.orientation === "horizontal" || r(e) }]),
|
|
2297
2426
|
role: "separator",
|
|
2298
2427
|
"aria-orientation": a.orientation
|
|
2299
|
-
}, null, 10,
|
|
2428
|
+
}, null, 10, Wl));
|
|
2300
2429
|
}
|
|
2301
|
-
}),
|
|
2430
|
+
}), Jl = { role: "presentation" }, Ql = /* @__PURE__ */ w({
|
|
2302
2431
|
__name: "NavButtonLayout",
|
|
2303
|
-
props: /* @__PURE__ */
|
|
2432
|
+
props: /* @__PURE__ */ he({
|
|
2304
2433
|
href: {},
|
|
2305
2434
|
withExternalIcon: { type: [Boolean, String] },
|
|
2306
2435
|
label: {},
|
|
@@ -2312,34 +2441,34 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2312
2441
|
}),
|
|
2313
2442
|
emits: ["update:mobileChildrenOpen"],
|
|
2314
2443
|
setup(t) {
|
|
2315
|
-
const a = t, e =
|
|
2316
|
-
return (o,
|
|
2317
|
-
a.isMobile ? (
|
|
2318
|
-
a.isMobile &&
|
|
2444
|
+
const a = t, e = G(), { t: l } = N(), n = ve(t, "mobileChildrenOpen");
|
|
2445
|
+
return (o, u) => (s(), p("li", Jl, [
|
|
2446
|
+
a.isMobile ? (s(), p(R, { key: 0 }, [
|
|
2447
|
+
a.isMobile && n.value ? (s(), x(Ie, {
|
|
2319
2448
|
key: 0,
|
|
2320
2449
|
label: r(l)("back"),
|
|
2321
2450
|
mode: "plain",
|
|
2322
2451
|
color: "neutral",
|
|
2323
|
-
icon: r(
|
|
2324
|
-
onClick:
|
|
2452
|
+
icon: r(Yl),
|
|
2453
|
+
onClick: u[0] || (u[0] = (c) => n.value = !1)
|
|
2325
2454
|
}, null, 8, ["label", "icon"])) : _("", !0),
|
|
2326
|
-
!
|
|
2327
|
-
|
|
2455
|
+
!n.value || a.href ? b(o.$slots, "button", { key: 1 }) : _("", !0),
|
|
2456
|
+
n.value && a.href ? (s(), x(Xl, {
|
|
2328
2457
|
key: 2,
|
|
2329
2458
|
orientation: "horizontal"
|
|
2330
2459
|
})) : _("", !0),
|
|
2331
|
-
|
|
2460
|
+
K(f("ul", {
|
|
2332
2461
|
role: "menu",
|
|
2333
|
-
class: g(["onyx-nav-button__mobile-children", { "onyx-nav-button__mobile-children--open":
|
|
2462
|
+
class: g(["onyx-nav-button__mobile-children", { "onyx-nav-button__mobile-children--open": n.value }])
|
|
2334
2463
|
}, [
|
|
2335
2464
|
b(o.$slots, "options")
|
|
2336
2465
|
], 2), [
|
|
2337
|
-
[
|
|
2466
|
+
[nt, n.value]
|
|
2338
2467
|
])
|
|
2339
|
-
], 64)) : (
|
|
2468
|
+
], 64)) : (s(), x(Mt, {
|
|
2340
2469
|
key: 1,
|
|
2341
2470
|
label: r(l)("navItemOptionsLabel", { label: a.label })
|
|
2342
|
-
},
|
|
2471
|
+
}, fe({
|
|
2343
2472
|
default: $(() => [
|
|
2344
2473
|
b(o.$slots, "button")
|
|
2345
2474
|
]),
|
|
@@ -2355,7 +2484,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2355
2484
|
]), 1032, ["label"]))
|
|
2356
2485
|
]));
|
|
2357
2486
|
}
|
|
2358
|
-
}),
|
|
2487
|
+
}), eo = ["aria-label"], to = { class: "onyx-truncation-ellipsis" }, Qn = /* @__PURE__ */ w({
|
|
2359
2488
|
__name: "OnyxNavButton",
|
|
2360
2489
|
props: {
|
|
2361
2490
|
href: {},
|
|
@@ -2365,49 +2494,49 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2365
2494
|
},
|
|
2366
2495
|
emits: ["click"],
|
|
2367
2496
|
setup(t, { emit: a }) {
|
|
2368
|
-
const e = t, l = a,
|
|
2369
|
-
o != null && o.value &&
|
|
2497
|
+
const e = t, l = a, n = G(), o = ue(be), u = T(!1), c = h(() => !!n.children), i = () => {
|
|
2498
|
+
o != null && o.value && c.value && !u.value ? u.value = !0 : e.href && l("click", e.href);
|
|
2370
2499
|
};
|
|
2371
|
-
return (
|
|
2372
|
-
"mobile-children-open":
|
|
2373
|
-
"onUpdate:mobileChildrenOpen":
|
|
2500
|
+
return (y, d) => (s(), x(Ql, O({
|
|
2501
|
+
"mobile-children-open": u.value,
|
|
2502
|
+
"onUpdate:mobileChildrenOpen": d[0] || (d[0] = (m) => u.value = m),
|
|
2374
2503
|
class: ["onyx-nav-button", {
|
|
2375
2504
|
"onyx-nav-button--mobile": r(o),
|
|
2376
|
-
"onyx-nav-button--active": e.active
|
|
2505
|
+
"onyx-nav-button--active": e.active
|
|
2377
2506
|
}],
|
|
2378
2507
|
"is-mobile": r(o) ?? !1
|
|
2379
|
-
}, e),
|
|
2508
|
+
}, e), fe({
|
|
2380
2509
|
button: $(() => [
|
|
2381
|
-
|
|
2510
|
+
f("button", {
|
|
2382
2511
|
class: "onyx-nav-button__trigger onyx-text",
|
|
2383
2512
|
role: "menuitem",
|
|
2384
2513
|
"aria-label": e.label,
|
|
2385
2514
|
type: "button",
|
|
2386
|
-
onClick:
|
|
2515
|
+
onClick: i
|
|
2387
2516
|
}, [
|
|
2388
|
-
b(
|
|
2389
|
-
|
|
2390
|
-
|
|
2517
|
+
b(y.$slots, "default", {}, () => [
|
|
2518
|
+
f("span", to, V(e.label), 1),
|
|
2519
|
+
M(Ue, ee(te(e)), null, 16)
|
|
2391
2520
|
]),
|
|
2392
|
-
r(o) &&
|
|
2521
|
+
r(o) && c.value && !u.value ? (s(), x(A, {
|
|
2393
2522
|
key: 0,
|
|
2394
2523
|
class: "onyx-nav-button__mobile-chevron",
|
|
2395
|
-
icon: r(
|
|
2524
|
+
icon: r(jl)
|
|
2396
2525
|
}, null, 8, ["icon"])) : _("", !0)
|
|
2397
|
-
], 8,
|
|
2526
|
+
], 8, eo)
|
|
2398
2527
|
]),
|
|
2399
2528
|
_: 2
|
|
2400
2529
|
}, [
|
|
2401
|
-
|
|
2530
|
+
n.children ? {
|
|
2402
2531
|
name: "options",
|
|
2403
2532
|
fn: $(() => [
|
|
2404
|
-
b(
|
|
2533
|
+
b(y.$slots, "children")
|
|
2405
2534
|
]),
|
|
2406
2535
|
key: "0"
|
|
2407
2536
|
} : void 0
|
|
2408
2537
|
]), 1040, ["mobile-children-open", "class", "is-mobile"]));
|
|
2409
2538
|
}
|
|
2410
|
-
}),
|
|
2539
|
+
}), es = /* @__PURE__ */ w({
|
|
2411
2540
|
__name: "OnyxNavItem",
|
|
2412
2541
|
props: {
|
|
2413
2542
|
href: {},
|
|
@@ -2418,34 +2547,34 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2418
2547
|
emits: ["click"],
|
|
2419
2548
|
setup(t, { emit: a }) {
|
|
2420
2549
|
const e = t, l = a;
|
|
2421
|
-
return (
|
|
2550
|
+
return (n, o) => (s(), x($t, {
|
|
2422
2551
|
class: "onyx-nav-item",
|
|
2423
2552
|
active: e.active,
|
|
2424
2553
|
href: e.href ?? "javascript:void(0)",
|
|
2425
|
-
onClick: o[0] || (o[0] = (
|
|
2554
|
+
onClick: o[0] || (o[0] = (u) => e.href && l("click", e.href))
|
|
2426
2555
|
}, {
|
|
2427
2556
|
default: $(() => [
|
|
2428
|
-
b(
|
|
2429
|
-
|
|
2430
|
-
|
|
2557
|
+
b(n.$slots, "default", {}, () => [
|
|
2558
|
+
f("span", null, V(e.label), 1),
|
|
2559
|
+
M(Ue, ee(te(e)), null, 16)
|
|
2431
2560
|
])
|
|
2432
2561
|
]),
|
|
2433
2562
|
_: 3
|
|
2434
2563
|
}, 8, ["active", "href"]));
|
|
2435
2564
|
}
|
|
2436
|
-
}),
|
|
2437
|
-
const a =
|
|
2438
|
-
return
|
|
2565
|
+
}), ao = (t) => {
|
|
2566
|
+
const a = T(), e = T(Oe(new Date(t.value).getTime())), l = h(() => e.value === 0);
|
|
2567
|
+
return Y(
|
|
2439
2568
|
t,
|
|
2440
|
-
(
|
|
2569
|
+
(n) => {
|
|
2441
2570
|
clearInterval(a.value);
|
|
2442
|
-
const o = new Date(
|
|
2443
|
-
e.value =
|
|
2444
|
-
e.value =
|
|
2571
|
+
const o = new Date(n).getTime();
|
|
2572
|
+
e.value = Oe(o), a.value = setInterval(() => {
|
|
2573
|
+
e.value = Oe(o), l.value && clearInterval(a.value);
|
|
2445
2574
|
}, 1e3);
|
|
2446
2575
|
},
|
|
2447
2576
|
{ immediate: !0 }
|
|
2448
|
-
),
|
|
2577
|
+
), ye(() => clearInterval(a.value)), {
|
|
2449
2578
|
/**
|
|
2450
2579
|
* Time (in milliseconds) that the timer has left.
|
|
2451
2580
|
*/
|
|
@@ -2455,26 +2584,26 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2455
2584
|
*/
|
|
2456
2585
|
isEnded: l
|
|
2457
2586
|
};
|
|
2458
|
-
},
|
|
2587
|
+
}, Oe = (t) => {
|
|
2459
2588
|
const a = t - Date.now();
|
|
2460
2589
|
return Math.max(a, 0);
|
|
2461
|
-
},
|
|
2590
|
+
}, Bt = (t) => {
|
|
2462
2591
|
const a = Math.floor(t / 6e4 / 60), e = Math.floor(t / 6e4 % 60), l = Math.floor(t % 6e4 / 1e3);
|
|
2463
2592
|
return { hours: a, minutes: e, seconds: l };
|
|
2464
|
-
},
|
|
2465
|
-
const { hours: e, minutes: l, seconds:
|
|
2466
|
-
let
|
|
2467
|
-
return l > 0 && (
|
|
2468
|
-
},
|
|
2593
|
+
}, lo = (t, a) => {
|
|
2594
|
+
const { hours: e, minutes: l, seconds: n } = Bt(t), o = (i) => i.toString().padStart(2, "0");
|
|
2595
|
+
let u = "", c = Le(a.formatToParts(t, "seconds"));
|
|
2596
|
+
return l > 0 && (c = Le(a.formatToParts(t, "minutes"))), e > 0 && (c = Le(a.formatToParts(t, "hours")), u = `${o(e)}:`), `${u}${o(l)}:${o(n)} ${c}`;
|
|
2597
|
+
}, Le = (t) => {
|
|
2469
2598
|
var a;
|
|
2470
2599
|
return ((a = t.at(-1)) == null ? void 0 : a.value.replace(".", "").trim()) ?? "";
|
|
2471
|
-
},
|
|
2472
|
-
const { hours: a, minutes: e, seconds: l } =
|
|
2600
|
+
}, oo = (t) => {
|
|
2601
|
+
const { hours: a, minutes: e, seconds: l } = Bt(t);
|
|
2473
2602
|
return `PT${a}H${e}M${l}S`;
|
|
2474
|
-
},
|
|
2603
|
+
}, no = ["aria-label"], so = {
|
|
2475
2604
|
key: 0,
|
|
2476
2605
|
class: "onyx-timer__label"
|
|
2477
|
-
},
|
|
2606
|
+
}, ro = ["datetime"], ts = /* @__PURE__ */ w({
|
|
2478
2607
|
__name: "OnyxTimer",
|
|
2479
2608
|
props: {
|
|
2480
2609
|
endTime: {},
|
|
@@ -2483,135 +2612,155 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2483
2612
|
},
|
|
2484
2613
|
emits: ["timerEnded"],
|
|
2485
2614
|
setup(t, { emit: a }) {
|
|
2486
|
-
const e = t, l = a, { locale:
|
|
2487
|
-
() => new Intl.RelativeTimeFormat(
|
|
2488
|
-
),
|
|
2489
|
-
return
|
|
2615
|
+
const e = t, l = a, { locale: n } = N(), { timeLeft: o, isEnded: u } = ao(h(() => e.endTime)), c = h(
|
|
2616
|
+
() => new Intl.RelativeTimeFormat(n.value, { numeric: "always", style: "short" })
|
|
2617
|
+
), i = h(() => lo(o.value, c.value));
|
|
2618
|
+
return Q(() => u.value && l("timerEnded")), (y, d) => (s(), p("div", {
|
|
2490
2619
|
class: "onyx-timer onyx-text onyx-truncation-ellipsis",
|
|
2491
2620
|
role: "timer",
|
|
2492
2621
|
"aria-label": e.hideLabel ? e.label : void 0
|
|
2493
2622
|
}, [
|
|
2494
|
-
e.hideLabel ? _("", !0) : (
|
|
2495
|
-
|
|
2496
|
-
datetime: r(
|
|
2623
|
+
e.hideLabel ? _("", !0) : (s(), p("span", so, V(e.label), 1)),
|
|
2624
|
+
f("time", {
|
|
2625
|
+
datetime: r(oo)(r(o)),
|
|
2497
2626
|
class: "onyx-timer__time"
|
|
2498
|
-
},
|
|
2499
|
-
], 8,
|
|
2627
|
+
}, V(i.value), 9, ro)
|
|
2628
|
+
], 8, no));
|
|
2500
2629
|
}
|
|
2501
|
-
}),
|
|
2630
|
+
}), io = { class: "onyx-user-menu__footer onyx-text--small" }, uo = /* @__PURE__ */ w({
|
|
2502
2631
|
__name: "UserMenuLayout",
|
|
2503
|
-
props: {
|
|
2632
|
+
props: /* @__PURE__ */ he({
|
|
2504
2633
|
isMobile: { type: Boolean }
|
|
2505
|
-
},
|
|
2634
|
+
}, {
|
|
2635
|
+
flyoutOpen: { type: Boolean, default: !1 },
|
|
2636
|
+
flyoutOpenModifiers: {}
|
|
2637
|
+
}),
|
|
2638
|
+
emits: ["update:flyoutOpen"],
|
|
2506
2639
|
setup(t) {
|
|
2507
|
-
const a = t, e =
|
|
2508
|
-
return (
|
|
2509
|
-
a.isMobile ? (
|
|
2510
|
-
b(
|
|
2511
|
-
b(
|
|
2512
|
-
|
|
2513
|
-
|
|
2640
|
+
const a = t, e = ve(t, "flyoutOpen"), l = G(), { t: n } = N();
|
|
2641
|
+
return (o, u) => (s(), p("div", null, [
|
|
2642
|
+
a.isMobile ? (s(), p(R, { key: 0 }, [
|
|
2643
|
+
b(o.$slots, "header"),
|
|
2644
|
+
b(o.$slots, "options"),
|
|
2645
|
+
l.footer ? (s(), x(Fe, {
|
|
2646
|
+
key: 0,
|
|
2647
|
+
class: "onyx-user-menu__mobile-footer",
|
|
2648
|
+
disabled: ""
|
|
2649
|
+
}, {
|
|
2650
|
+
default: $(() => [
|
|
2651
|
+
b(o.$slots, "footer")
|
|
2652
|
+
]),
|
|
2653
|
+
_: 3
|
|
2654
|
+
})) : _("", !0)
|
|
2655
|
+
], 64)) : (s(), x(Mt, {
|
|
2514
2656
|
key: 1,
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
},
|
|
2657
|
+
label: r(n)("navigation.userMenuLabel"),
|
|
2658
|
+
open: e.value
|
|
2659
|
+
}, fe({
|
|
2518
2660
|
header: $(() => [
|
|
2519
|
-
b(
|
|
2661
|
+
b(o.$slots, "header")
|
|
2520
2662
|
]),
|
|
2521
2663
|
options: $(() => [
|
|
2522
|
-
b(
|
|
2664
|
+
b(o.$slots, "options")
|
|
2523
2665
|
]),
|
|
2524
2666
|
default: $(() => [
|
|
2525
|
-
b(
|
|
2667
|
+
b(o.$slots, "button")
|
|
2526
2668
|
]),
|
|
2527
2669
|
_: 2
|
|
2528
2670
|
}, [
|
|
2529
|
-
|
|
2671
|
+
l.footer ? {
|
|
2530
2672
|
name: "footer",
|
|
2531
2673
|
fn: $(() => [
|
|
2532
|
-
|
|
2674
|
+
f("div", io, [
|
|
2675
|
+
b(o.$slots, "footer")
|
|
2676
|
+
])
|
|
2533
2677
|
]),
|
|
2534
2678
|
key: "0"
|
|
2535
2679
|
} : void 0
|
|
2536
|
-
]), 1032, ["label"]))
|
|
2680
|
+
]), 1032, ["label", "open"]))
|
|
2537
2681
|
]));
|
|
2538
2682
|
}
|
|
2539
|
-
}),
|
|
2683
|
+
}), co = {
|
|
2540
2684
|
class: "onyx-user-menu__trigger onyx-text",
|
|
2541
2685
|
type: "button"
|
|
2542
|
-
},
|
|
2686
|
+
}, po = { class: "onyx-truncation-ellipsis" }, mo = { class: "onyx-user-menu__header" }, yo = { class: "onyx-truncation-ellipsis" }, ho = { class: "onyx-user-menu__username onyx-text onyx-truncation-ellipsis" }, vo = {
|
|
2543
2687
|
key: 0,
|
|
2544
2688
|
class: "onyx-user-menu__description onyx-text--small onyx-truncation-ellipsis"
|
|
2545
|
-
},
|
|
2689
|
+
}, fo = { class: "onyx-user-menu__options" }, as = /* @__PURE__ */ w({
|
|
2546
2690
|
__name: "OnyxUserMenu",
|
|
2547
|
-
props: {
|
|
2691
|
+
props: /* @__PURE__ */ he({
|
|
2548
2692
|
username: {},
|
|
2549
2693
|
avatar: {},
|
|
2550
2694
|
description: {}
|
|
2551
|
-
},
|
|
2695
|
+
}, {
|
|
2696
|
+
flyoutOpen: { type: Boolean, default: !1 },
|
|
2697
|
+
flyoutOpenModifiers: {}
|
|
2698
|
+
}),
|
|
2699
|
+
emits: ["update:flyoutOpen"],
|
|
2552
2700
|
setup(t) {
|
|
2553
|
-
const a = t, e =
|
|
2554
|
-
|
|
2701
|
+
const a = t, e = ve(t, "flyoutOpen"), l = G(), n = h(() => ({ src: a.avatar, label: a.username })), o = ue(
|
|
2702
|
+
be,
|
|
2555
2703
|
h(() => !1)
|
|
2556
2704
|
);
|
|
2557
|
-
return (
|
|
2558
|
-
class: g(["onyx-user-menu", { "onyx-user-menu--mobile": r(
|
|
2559
|
-
"is-mobile": r(
|
|
2560
|
-
|
|
2705
|
+
return (u, c) => (s(), x(uo, {
|
|
2706
|
+
class: g(["onyx-user-menu", { "onyx-user-menu--mobile": r(o) }]),
|
|
2707
|
+
"is-mobile": r(o),
|
|
2708
|
+
"flyout-open": e.value
|
|
2709
|
+
}, fe({
|
|
2561
2710
|
button: $(() => [
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2711
|
+
f("button", co, [
|
|
2712
|
+
M(Ye, O(n.value, { size: "24px" }), null, 16),
|
|
2713
|
+
f("span", po, V(a.username), 1)
|
|
2565
2714
|
])
|
|
2566
2715
|
]),
|
|
2567
2716
|
header: $(() => [
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
a.description ? (
|
|
2717
|
+
f("div", mo, [
|
|
2718
|
+
M(Ye, ee(te(n.value)), null, 16),
|
|
2719
|
+
f("div", yo, [
|
|
2720
|
+
f("div", ho, V(a.username), 1),
|
|
2721
|
+
a.description ? (s(), p("div", vo, V(a.description), 1)) : _("", !0)
|
|
2573
2722
|
])
|
|
2574
2723
|
])
|
|
2575
2724
|
]),
|
|
2576
2725
|
options: $(() => [
|
|
2577
|
-
|
|
2726
|
+
f("div", fo, [
|
|
2727
|
+
b(u.$slots, "default")
|
|
2728
|
+
])
|
|
2578
2729
|
]),
|
|
2579
2730
|
_: 2
|
|
2580
2731
|
}, [
|
|
2581
|
-
|
|
2732
|
+
l.footer ? {
|
|
2582
2733
|
name: "footer",
|
|
2583
2734
|
fn: $(() => [
|
|
2584
|
-
|
|
2585
|
-
b(o.$slots, "footer")
|
|
2586
|
-
])
|
|
2735
|
+
b(u.$slots, "footer")
|
|
2587
2736
|
]),
|
|
2588
2737
|
key: "0"
|
|
2589
2738
|
} : void 0
|
|
2590
|
-
]), 1032, ["class", "is-mobile"]));
|
|
2739
|
+
]), 1032, ["class", "is-mobile", "flyout-open"]));
|
|
2591
2740
|
}
|
|
2592
|
-
}),
|
|
2593
|
-
const e = "content-box", l =
|
|
2594
|
-
const
|
|
2595
|
-
l.value =
|
|
2741
|
+
}), _o = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m20.207 9.707-1.414-1.414L11.086 16l7.707 7.707 1.414-1.414L13.914 16z"/></svg>', xo = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M2 15h28v2H2zm0-7h28v2H2zm0 14h28v2H2z"/></svg>', bo = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><circle cx="16" cy="5" r="3"/><circle cx="16" cy="16" r="3"/><circle cx="16" cy="27" r="3"/></svg>', go = (t, a) => {
|
|
2742
|
+
const e = "content-box", l = T(0), n = T(0), o = (u) => {
|
|
2743
|
+
const c = u[0].contentBoxSize;
|
|
2744
|
+
l.value = c.reduce((i, { inlineSize: y }) => i + y, 0), n.value = c.reduce((i, { blockSize: y }) => i + y, 0);
|
|
2596
2745
|
};
|
|
2597
|
-
return
|
|
2598
|
-
const
|
|
2599
|
-
|
|
2746
|
+
return Ne(() => {
|
|
2747
|
+
const u = new ResizeObserver(o);
|
|
2748
|
+
Y(
|
|
2600
2749
|
t,
|
|
2601
|
-
(
|
|
2602
|
-
|
|
2750
|
+
(c, i) => {
|
|
2751
|
+
i && (u == null || u.unobserve(i)), c && (u == null || u.observe(c, { box: e }));
|
|
2603
2752
|
},
|
|
2604
2753
|
{ immediate: !0 }
|
|
2605
|
-
),
|
|
2606
|
-
}), { width: l, height:
|
|
2607
|
-
},
|
|
2754
|
+
), ye(() => u.disconnect());
|
|
2755
|
+
}), { width: l, height: n };
|
|
2756
|
+
}, ko = {
|
|
2608
2757
|
"2xs": 320,
|
|
2609
2758
|
xs: 576,
|
|
2610
2759
|
sm: 768,
|
|
2611
2760
|
md: 992,
|
|
2612
2761
|
lg: 1440,
|
|
2613
2762
|
xl: 1920
|
|
2614
|
-
},
|
|
2763
|
+
}, ls = [
|
|
2615
2764
|
"primary",
|
|
2616
2765
|
"secondary",
|
|
2617
2766
|
"neutral",
|
|
@@ -2619,22 +2768,19 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2619
2768
|
"warning",
|
|
2620
2769
|
"success",
|
|
2621
2770
|
"info"
|
|
2622
|
-
],
|
|
2771
|
+
], os = ["small", "default", "large"], ns = ["ellipsis", "multiline"], ss = ["horizontal", "vertical"], wo = { class: "onyx-nav-bar__content" }, Co = {
|
|
2623
2772
|
key: 0,
|
|
2624
|
-
class: "onyx-nav-bar__mobile-page"
|
|
2625
|
-
},
|
|
2626
|
-
key: 1,
|
|
2627
|
-
class: "onyx-nav-bar__nav"
|
|
2628
|
-
}, yo = { role: "menubar" }, ho = {
|
|
2773
|
+
class: "onyx-nav-bar__mobile-page onyx-truncation-ellipsis"
|
|
2774
|
+
}, $o = { role: "menubar" }, Mo = { role: "menubar" }, Bo = {
|
|
2629
2775
|
key: 0,
|
|
2630
2776
|
class: "onyx-nav-bar__mobile-context"
|
|
2631
|
-
},
|
|
2777
|
+
}, Vo = {
|
|
2632
2778
|
key: 0,
|
|
2633
2779
|
class: "onyx-nav-bar__mobile-global-context"
|
|
2634
|
-
},
|
|
2780
|
+
}, So = { class: "onyx-nav-bar__mobile-context-content" }, Oo = {
|
|
2635
2781
|
key: 1,
|
|
2636
2782
|
class: "onyx-nav-bar__context"
|
|
2637
|
-
},
|
|
2783
|
+
}, rs = /* @__PURE__ */ w({
|
|
2638
2784
|
__name: "OnyxNavBar",
|
|
2639
2785
|
props: {
|
|
2640
2786
|
logoUrl: {},
|
|
@@ -2645,11 +2791,13 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2645
2791
|
},
|
|
2646
2792
|
emits: ["appAreaClick", "backButtonClick"],
|
|
2647
2793
|
setup(t, { expose: a, emit: e }) {
|
|
2648
|
-
const l = t,
|
|
2649
|
-
|
|
2650
|
-
|
|
2794
|
+
const l = t, n = e, o = G(), u = T(), { width: c } = go(u), { t: i } = N(), {
|
|
2795
|
+
elements: { nav: y }
|
|
2796
|
+
} = dl({ navigationName: Te(() => l.appName) }), d = T(!1), m = T(!1), v = h(() => {
|
|
2797
|
+
const k = typeof l.mobileBreakpoint == "number" ? l.mobileBreakpoint : ko[l.mobileBreakpoint];
|
|
2798
|
+
return c.value !== 0 && c.value < k;
|
|
2651
2799
|
});
|
|
2652
|
-
return
|
|
2800
|
+
return Nt(be, v), a({
|
|
2653
2801
|
/**
|
|
2654
2802
|
* Closes the mobile burger and context menu.
|
|
2655
2803
|
* Useful if you want to e.g. close them when a nav item is clicked.
|
|
@@ -2664,133 +2812,128 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2664
2812
|
* ```
|
|
2665
2813
|
*/
|
|
2666
2814
|
closeMobileMenus: () => {
|
|
2667
|
-
|
|
2815
|
+
d.value = !1, m.value = !1;
|
|
2668
2816
|
}
|
|
2669
|
-
}), (
|
|
2817
|
+
}), (k, S) => (s(), p("header", {
|
|
2670
2818
|
ref_key: "navBarRef",
|
|
2671
|
-
ref:
|
|
2672
|
-
class: g(["onyx-nav-bar", { "onyx-nav-bar--mobile":
|
|
2819
|
+
ref: u,
|
|
2820
|
+
class: g(["onyx-nav-bar", { "onyx-nav-bar--mobile": v.value }])
|
|
2673
2821
|
}, [
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
b(
|
|
2677
|
-
])) : l.appName || l.logoUrl || o.appArea ? (
|
|
2822
|
+
f("div", wo, [
|
|
2823
|
+
v.value && o.mobileActivePage && !d.value && !m.value ? (s(), p("span", Co, [
|
|
2824
|
+
b(k.$slots, "mobileActivePage")
|
|
2825
|
+
])) : l.appName || l.logoUrl || o.appArea ? (s(), x(Al, {
|
|
2678
2826
|
key: 1,
|
|
2679
2827
|
class: "onyx-nav-bar__app",
|
|
2680
2828
|
"app-name": l.appName,
|
|
2681
2829
|
"logo-url": l.logoUrl,
|
|
2682
2830
|
label: l.appAreaLabel,
|
|
2683
|
-
onClick:
|
|
2684
|
-
|
|
2831
|
+
onClick: S[0] || (S[0] = (B) => {
|
|
2832
|
+
n("appAreaClick"), d.value = !1;
|
|
2685
2833
|
})
|
|
2686
2834
|
}, {
|
|
2687
2835
|
default: $(() => [
|
|
2688
|
-
b(
|
|
2836
|
+
b(k.$slots, "appArea")
|
|
2689
2837
|
]),
|
|
2690
2838
|
_: 3
|
|
2691
2839
|
}, 8, ["app-name", "logo-url", "label"])) : _("", !0),
|
|
2692
|
-
l.withBackButton ? (
|
|
2840
|
+
l.withBackButton ? (s(), x(Wa, {
|
|
2693
2841
|
key: 2,
|
|
2694
2842
|
class: "onyx-nav-bar__back",
|
|
2695
|
-
label: r(
|
|
2696
|
-
icon: r(
|
|
2843
|
+
label: r(i)("navigation.goBack"),
|
|
2844
|
+
icon: r(_o),
|
|
2697
2845
|
color: "neutral",
|
|
2698
|
-
onClick:
|
|
2846
|
+
onClick: S[1] || (S[1] = (B) => n("backButtonClick"))
|
|
2699
2847
|
}, null, 8, ["label", "icon"])) : _("", !0),
|
|
2700
|
-
o.default ? (
|
|
2701
|
-
|
|
2848
|
+
o.default ? (s(), p(R, { key: 3 }, [
|
|
2849
|
+
v.value ? (s(), x(Qe, {
|
|
2702
2850
|
key: 0,
|
|
2703
|
-
open:
|
|
2851
|
+
open: d.value,
|
|
2704
2852
|
"onUpdate:open": [
|
|
2705
|
-
|
|
2706
|
-
|
|
2853
|
+
S[2] || (S[2] = (B) => d.value = B),
|
|
2854
|
+
S[3] || (S[3] = (B) => m.value = !1)
|
|
2707
2855
|
],
|
|
2708
2856
|
class: "onyx-nav-bar__burger",
|
|
2709
|
-
icon: r(
|
|
2710
|
-
label: r(
|
|
2857
|
+
icon: r(xo),
|
|
2858
|
+
label: r(i)("navigation.toggleBurgerMenu"),
|
|
2859
|
+
headline: r(i)("navigation.navigationHeadline")
|
|
2711
2860
|
}, {
|
|
2712
2861
|
default: $(() => [
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
}, {
|
|
2717
|
-
default: $(() => [
|
|
2718
|
-
F(M(r(c)("navigation.navigationHeadline")), 1)
|
|
2719
|
-
]),
|
|
2720
|
-
_: 1
|
|
2721
|
-
}),
|
|
2722
|
-
v("nav", uo, [
|
|
2723
|
-
v("ul", po, [
|
|
2724
|
-
b(f.$slots, "default")
|
|
2862
|
+
f("nav", O({ class: "onyx-nav-bar__nav--mobile" }, r(y)), [
|
|
2863
|
+
f("ul", $o, [
|
|
2864
|
+
b(k.$slots, "default")
|
|
2725
2865
|
])
|
|
2726
|
-
])
|
|
2866
|
+
], 16)
|
|
2727
2867
|
]),
|
|
2728
2868
|
_: 3
|
|
2729
|
-
}, 8, ["open", "icon", "label"])) : (
|
|
2730
|
-
|
|
2731
|
-
|
|
2869
|
+
}, 8, ["open", "icon", "label", "headline"])) : (s(), p("nav", O({
|
|
2870
|
+
key: 1,
|
|
2871
|
+
class: "onyx-nav-bar__nav"
|
|
2872
|
+
}, r(y)), [
|
|
2873
|
+
f("ul", Mo, [
|
|
2874
|
+
b(k.$slots, "default")
|
|
2732
2875
|
])
|
|
2733
|
-
]))
|
|
2876
|
+
], 16))
|
|
2734
2877
|
], 64)) : _("", !0),
|
|
2735
|
-
o.contextArea || o.globalContextArea ? (
|
|
2736
|
-
|
|
2737
|
-
o.globalContextArea ? (
|
|
2738
|
-
b(
|
|
2878
|
+
o.contextArea || o.globalContextArea ? (s(), p(R, { key: 4 }, [
|
|
2879
|
+
v.value ? (s(), p("div", Bo, [
|
|
2880
|
+
o.globalContextArea ? (s(), p("div", Vo, [
|
|
2881
|
+
b(k.$slots, "globalContextArea")
|
|
2739
2882
|
])) : _("", !0),
|
|
2740
|
-
o.contextArea ? (
|
|
2883
|
+
o.contextArea ? (s(), x(Qe, {
|
|
2741
2884
|
key: 1,
|
|
2742
|
-
open:
|
|
2885
|
+
open: m.value,
|
|
2743
2886
|
"onUpdate:open": [
|
|
2744
|
-
|
|
2745
|
-
|
|
2887
|
+
S[4] || (S[4] = (B) => m.value = B),
|
|
2888
|
+
S[5] || (S[5] = (B) => d.value = !1)
|
|
2746
2889
|
],
|
|
2747
|
-
icon: r(
|
|
2748
|
-
label: r(
|
|
2890
|
+
icon: r(bo),
|
|
2891
|
+
label: r(i)("navigation.toggleContextMenu")
|
|
2749
2892
|
}, {
|
|
2750
2893
|
default: $(() => [
|
|
2751
|
-
|
|
2752
|
-
b(
|
|
2894
|
+
f("div", So, [
|
|
2895
|
+
b(k.$slots, "contextArea")
|
|
2753
2896
|
])
|
|
2754
2897
|
]),
|
|
2755
2898
|
_: 3
|
|
2756
2899
|
}, 8, ["open", "icon", "label"])) : _("", !0)
|
|
2757
|
-
])) : (
|
|
2758
|
-
o.globalContextArea ? b(
|
|
2759
|
-
o.contextArea ? b(
|
|
2900
|
+
])) : (s(), p("div", Oo, [
|
|
2901
|
+
o.globalContextArea ? b(k.$slots, "globalContextArea", { key: 0 }) : _("", !0),
|
|
2902
|
+
o.contextArea ? b(k.$slots, "contextArea", { key: 1 }) : _("", !0)
|
|
2760
2903
|
]))
|
|
2761
2904
|
], 64)) : _("", !0)
|
|
2762
2905
|
])
|
|
2763
2906
|
], 2));
|
|
2764
2907
|
}
|
|
2765
|
-
}),
|
|
2908
|
+
}), Lo = {
|
|
2766
2909
|
key: 0,
|
|
2767
2910
|
class: "onyx-page__sidebar"
|
|
2768
|
-
},
|
|
2911
|
+
}, To = { class: "onyx-page__main" }, Eo = {
|
|
2769
2912
|
key: 1,
|
|
2770
2913
|
class: "onyx-page__footer"
|
|
2771
|
-
},
|
|
2914
|
+
}, is = /* @__PURE__ */ w({
|
|
2772
2915
|
__name: "OnyxPageLayout",
|
|
2773
2916
|
props: {
|
|
2774
2917
|
footerAsideSidebar: { type: Boolean },
|
|
2775
2918
|
hideSidebar: { type: Boolean }
|
|
2776
2919
|
},
|
|
2777
2920
|
setup(t) {
|
|
2778
|
-
const a = t, e =
|
|
2779
|
-
return (
|
|
2921
|
+
const a = t, e = G(), l = h(() => a.footerAsideSidebar ? "onyx-page--footer-partial" : "onyx-page--footer-full");
|
|
2922
|
+
return (n, o) => (s(), p("div", {
|
|
2780
2923
|
class: g(["onyx-page", l.value])
|
|
2781
2924
|
}, [
|
|
2782
|
-
e.sidebar && !a.hideSidebar ? (
|
|
2783
|
-
b(
|
|
2925
|
+
e.sidebar && !a.hideSidebar ? (s(), p("aside", Lo, [
|
|
2926
|
+
b(n.$slots, "sidebar")
|
|
2784
2927
|
])) : _("", !0),
|
|
2785
|
-
|
|
2786
|
-
b(
|
|
2928
|
+
f("main", To, [
|
|
2929
|
+
b(n.$slots, "default")
|
|
2787
2930
|
]),
|
|
2788
|
-
e.footer ? (
|
|
2789
|
-
b(
|
|
2931
|
+
e.footer ? (s(), p("footer", Eo, [
|
|
2932
|
+
b(n.$slots, "footer")
|
|
2790
2933
|
])) : _("", !0)
|
|
2791
2934
|
], 2));
|
|
2792
2935
|
}
|
|
2793
|
-
}),
|
|
2936
|
+
}), Io = ["title"], Ao = ["required", "name", "value", "checked", "disabled", "autofocus"], et = /* @__PURE__ */ w({
|
|
2794
2937
|
__name: "OnyxRadioButton",
|
|
2795
2938
|
props: {
|
|
2796
2939
|
density: {},
|
|
@@ -2808,26 +2951,26 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2808
2951
|
},
|
|
2809
2952
|
emits: ["change", "validityChange"],
|
|
2810
2953
|
setup(t, { emit: a }) {
|
|
2811
|
-
const e = t, l = a, { vCustomValidity:
|
|
2812
|
-
const
|
|
2813
|
-
l("change",
|
|
2954
|
+
const e = t, l = a, { vCustomValidity: n, title: o } = ae({ props: e, emit: l }), { densityClass: u } = H(e), c = (i) => {
|
|
2955
|
+
const y = i.target.checked;
|
|
2956
|
+
l("change", y);
|
|
2814
2957
|
};
|
|
2815
|
-
return (
|
|
2958
|
+
return (i, y) => e.skeleton ? (s(), p("div", {
|
|
2816
2959
|
key: 0,
|
|
2817
|
-
class: g(["onyx-radio-button-skeleton", r(
|
|
2960
|
+
class: g(["onyx-radio-button-skeleton", r(u)])
|
|
2818
2961
|
}, [
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
], 2)) : (
|
|
2962
|
+
M(U, { class: "onyx-radio-button-skeleton__input" }),
|
|
2963
|
+
M(U, { class: "onyx-radio-button-skeleton__label" })
|
|
2964
|
+
], 2)) : (s(), p("label", {
|
|
2822
2965
|
key: 1,
|
|
2823
|
-
class: g(["onyx-radio-button", r(
|
|
2824
|
-
title: r(
|
|
2966
|
+
class: g(["onyx-radio-button", r(u)]),
|
|
2967
|
+
title: r(o)
|
|
2825
2968
|
}, [
|
|
2826
|
-
e.loading ? (
|
|
2969
|
+
e.loading ? (s(), x(X, {
|
|
2827
2970
|
key: 0,
|
|
2828
2971
|
class: "onyx-radio-button__loading",
|
|
2829
2972
|
type: "circle"
|
|
2830
|
-
})) :
|
|
2973
|
+
})) : K((s(), p("input", {
|
|
2831
2974
|
key: 1,
|
|
2832
2975
|
class: "onyx-radio-button__selector",
|
|
2833
2976
|
type: "radio",
|
|
@@ -2837,27 +2980,28 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2837
2980
|
checked: e.checked,
|
|
2838
2981
|
disabled: e.disabled,
|
|
2839
2982
|
autofocus: e.autofocus,
|
|
2840
|
-
onChange:
|
|
2841
|
-
}, null, 40,
|
|
2842
|
-
[r(
|
|
2983
|
+
onChange: c
|
|
2984
|
+
}, null, 40, Ao)), [
|
|
2985
|
+
[r(n)]
|
|
2843
2986
|
]),
|
|
2844
|
-
|
|
2987
|
+
f("span", {
|
|
2845
2988
|
class: g(["onyx-radio-button__label", [`onyx-truncation-${e.truncation}`]])
|
|
2846
|
-
},
|
|
2847
|
-
], 10,
|
|
2989
|
+
}, V(e.label), 3)
|
|
2990
|
+
], 10, Io));
|
|
2848
2991
|
}
|
|
2849
|
-
}),
|
|
2992
|
+
}), Ho = ["disabled"], Po = {
|
|
2850
2993
|
key: 0,
|
|
2851
2994
|
class: "onyx-radio-button-group__headline"
|
|
2852
|
-
},
|
|
2995
|
+
}, us = /* @__PURE__ */ w({
|
|
2853
2996
|
__name: "OnyxRadioGroup",
|
|
2854
2997
|
props: {
|
|
2855
2998
|
density: {},
|
|
2856
2999
|
required: { type: Boolean, default: !1 },
|
|
2857
3000
|
requiredMarker: {},
|
|
2858
3001
|
customError: {},
|
|
3002
|
+
truncation: { default: "ellipsis" },
|
|
2859
3003
|
options: {},
|
|
2860
|
-
name: { default: () =>
|
|
3004
|
+
name: { default: () => W("radio-button-group-name") },
|
|
2861
3005
|
modelValue: {},
|
|
2862
3006
|
headline: { default: "" },
|
|
2863
3007
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2866,73 +3010,77 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2866
3010
|
},
|
|
2867
3011
|
emits: ["update:modelValue", "validityChange"],
|
|
2868
3012
|
setup(t, { emit: a }) {
|
|
2869
|
-
const e = t, { densityClass: l } = H(e), { requiredMarkerClass:
|
|
2870
|
-
|
|
3013
|
+
const e = t, { densityClass: l } = H(e), { requiredMarkerClass: n, requiredTypeClass: o } = _e(e), u = a, c = (i, y) => {
|
|
3014
|
+
i && u("update:modelValue", y);
|
|
2871
3015
|
};
|
|
2872
|
-
return (
|
|
3016
|
+
return (i, y) => (s(), p("fieldset", {
|
|
2873
3017
|
class: g(["onyx-radio-button-group", r(l), r(o)]),
|
|
2874
3018
|
disabled: e.disabled,
|
|
2875
3019
|
role: "radiogroup"
|
|
2876
3020
|
}, [
|
|
2877
|
-
e.headline ? (
|
|
2878
|
-
|
|
3021
|
+
e.headline ? (s(), p("legend", Po, [
|
|
3022
|
+
M(ie, {
|
|
2879
3023
|
is: "h3",
|
|
2880
|
-
class: g(r(
|
|
3024
|
+
class: g(r(n))
|
|
2881
3025
|
}, {
|
|
2882
3026
|
default: $(() => [
|
|
2883
|
-
|
|
3027
|
+
Z(V(e.headline), 1)
|
|
2884
3028
|
]),
|
|
2885
3029
|
_: 1
|
|
2886
3030
|
}, 8, ["class"])
|
|
2887
3031
|
])) : _("", !0),
|
|
2888
|
-
|
|
3032
|
+
f("div", {
|
|
2889
3033
|
class: g(["onyx-radio-button-group__content", { "onyx-radio-button-group__content--horizontal": e.direction === "horizontal" }])
|
|
2890
3034
|
}, [
|
|
2891
|
-
e.skeleton === void 0 ? (
|
|
2892
|
-
key:
|
|
3035
|
+
e.skeleton === void 0 ? (s(!0), p(R, { key: 0 }, J(e.options, (d, m) => (s(), x(et, O({
|
|
3036
|
+
key: d.value.toString(),
|
|
2893
3037
|
ref_for: !0
|
|
2894
|
-
},
|
|
3038
|
+
}, d, {
|
|
2895
3039
|
name: e.name,
|
|
2896
3040
|
"custom-error": e.customError,
|
|
2897
|
-
checked:
|
|
3041
|
+
checked: d.value === e.modelValue,
|
|
2898
3042
|
required: e.required,
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
3043
|
+
truncation: d.truncation ?? e.truncation,
|
|
3044
|
+
onValidityChange: (v) => m === 0 && u("validityChange", v),
|
|
3045
|
+
onChange: (v) => c(v, d.value)
|
|
3046
|
+
}), null, 16, ["name", "custom-error", "checked", "required", "truncation", "onValidityChange", "onChange"]))), 128)) : (s(!0), p(R, { key: 1 }, J(e.skeleton, (d) => (s(), x(et, {
|
|
3047
|
+
id: `skeleton-${d}`,
|
|
3048
|
+
key: d,
|
|
3049
|
+
value: `skeleton-${d}`,
|
|
2905
3050
|
label: "Skeleton ${i}",
|
|
2906
3051
|
name: e.name,
|
|
2907
3052
|
skeleton: ""
|
|
2908
3053
|
}, null, 8, ["id", "value", "name"]))), 128))
|
|
2909
3054
|
], 2)
|
|
2910
|
-
], 10,
|
|
3055
|
+
], 10, Ho));
|
|
2911
3056
|
}
|
|
2912
|
-
}),
|
|
2913
|
-
const e =
|
|
2914
|
-
const
|
|
2915
|
-
if (!(
|
|
2916
|
-
const
|
|
2917
|
-
e.value = Math.abs(
|
|
3057
|
+
}), Do = (t) => {
|
|
3058
|
+
const e = T(!1), l = (o) => {
|
|
3059
|
+
const u = o.target;
|
|
3060
|
+
if (!(u instanceof Element)) return;
|
|
3061
|
+
const c = r(t.offset) ?? 0;
|
|
3062
|
+
e.value = Math.abs(u.scrollTop) + u.clientHeight >= u.scrollHeight - c - 1;
|
|
2918
3063
|
};
|
|
2919
3064
|
return { vScrollEnd: {
|
|
2920
3065
|
mounted: (o) => {
|
|
2921
|
-
|
|
2922
|
-
var
|
|
2923
|
-
(((
|
|
3066
|
+
Q(() => {
|
|
3067
|
+
var c;
|
|
3068
|
+
(((c = t.enabled) == null ? void 0 : c.value) ?? !0) && !t.loading.value ? o.addEventListener("scroll", l) : o.removeEventListener("scroll", l);
|
|
2924
3069
|
});
|
|
2925
3070
|
}
|
|
2926
3071
|
}, isScrollEnd: e };
|
|
2927
|
-
},
|
|
2928
|
-
const l = h(() => t.value === void 0),
|
|
3072
|
+
}, tt = (t, a, e) => {
|
|
3073
|
+
const l = h(() => t.value === void 0), n = T(l.value ? a : t.value);
|
|
2929
3074
|
return h({
|
|
2930
3075
|
set: (o) => {
|
|
2931
|
-
|
|
3076
|
+
n.value = o, e(o);
|
|
2932
3077
|
},
|
|
2933
|
-
get: () => l.value ?
|
|
3078
|
+
get: () => l.value ? n.value : t.value
|
|
2934
3079
|
});
|
|
2935
|
-
},
|
|
3080
|
+
}, No = (t, a) => {
|
|
3081
|
+
const e = at(t.toLowerCase()), l = at(a.toLowerCase());
|
|
3082
|
+
return e.includes(l);
|
|
3083
|
+
}, at = (t) => t.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), zo = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="m22.29 18.83 1.41 1.41-7.71 7.71-7.71-7.71 1.41-1.41 6.29 6.29 6.29-6.29ZM16 6.87l6.29 6.29 1.41-1.41-7.71-7.71-7.71 7.71 1.41 1.41 6.29-6.29Z"/></svg>', Ro = { class: "onyx-select-input__wrapper" }, Uo = ["id", "readonly", "placeholder", "required", "disabled", "aria-label", "title", "value", "autofocus"], Fo = ["aria-label", "disabled"], qo = /* @__PURE__ */ w({
|
|
2936
3084
|
inheritAttrs: !1,
|
|
2937
3085
|
__name: "OnyxSelectInput",
|
|
2938
3086
|
props: {
|
|
@@ -2940,15 +3088,16 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2940
3088
|
required: { type: Boolean },
|
|
2941
3089
|
requiredMarker: {},
|
|
2942
3090
|
customError: {},
|
|
2943
|
-
modelValue: {},
|
|
2944
|
-
textMode: {},
|
|
2945
3091
|
autofocus: { type: Boolean },
|
|
3092
|
+
id: {},
|
|
2946
3093
|
label: {},
|
|
2947
3094
|
labelTooltip: {},
|
|
2948
3095
|
hideLabel: { type: Boolean, default: !1 },
|
|
2949
3096
|
message: {},
|
|
2950
3097
|
messageTooltip: {},
|
|
2951
3098
|
errorMessages: {},
|
|
3099
|
+
modelValue: {},
|
|
3100
|
+
textMode: {},
|
|
2952
3101
|
disabled: { type: Boolean },
|
|
2953
3102
|
skeleton: { type: Boolean, default: !1 },
|
|
2954
3103
|
readonly: { type: Boolean, default: !1 },
|
|
@@ -2958,66 +3107,67 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
2958
3107
|
},
|
|
2959
3108
|
emits: ["click", "validityChange"],
|
|
2960
3109
|
setup(t, { expose: a, emit: e }) {
|
|
2961
|
-
const { rootAttrs: l, restAttrs:
|
|
2962
|
-
var
|
|
2963
|
-
const
|
|
2964
|
-
if (!o.modelValue || !
|
|
2965
|
-
if (
|
|
3110
|
+
const { rootAttrs: l, restAttrs: n } = Ct(), o = t, u = e, { t: c } = N(), { vCustomValidity: i, errorMessages: y } = ae({ props: o, emit: u }), d = h(() => o.modelValue ? o.modelValue.length : 0), m = h(() => {
|
|
3111
|
+
var z;
|
|
3112
|
+
const E = (z = o.modelValue) == null ? void 0 : z.length;
|
|
3113
|
+
if (!o.modelValue || !E) return "";
|
|
3114
|
+
if (E === 1) return o.modelValue[0];
|
|
2966
3115
|
switch (o.textMode) {
|
|
2967
3116
|
case "preview":
|
|
2968
|
-
return o.modelValue.
|
|
3117
|
+
return o.modelValue.join(", ");
|
|
2969
3118
|
case "summary":
|
|
2970
3119
|
default:
|
|
2971
|
-
return
|
|
3120
|
+
return c.value("selections.currentSelection", { n: E });
|
|
2972
3121
|
}
|
|
2973
|
-
}),
|
|
3122
|
+
}), v = T(!1), { densityClass: k } = H(o), S = T();
|
|
2974
3123
|
a({ focus: () => {
|
|
2975
|
-
var
|
|
2976
|
-
return (
|
|
2977
|
-
} }),
|
|
3124
|
+
var E;
|
|
3125
|
+
return (E = S.value) == null ? void 0 : E.focus();
|
|
3126
|
+
} }), Y(
|
|
2978
3127
|
() => o.showFocus,
|
|
2979
|
-
(
|
|
2980
|
-
|
|
3128
|
+
(E, z) => {
|
|
3129
|
+
v.value || z && E === !1 && (v.value = !0);
|
|
2981
3130
|
}
|
|
2982
3131
|
);
|
|
2983
|
-
const
|
|
2984
|
-
|
|
3132
|
+
const B = xt.concat(bt), P = (E) => {
|
|
3133
|
+
B.includes(E.key) || E.preventDefault();
|
|
2985
3134
|
};
|
|
2986
|
-
return (
|
|
3135
|
+
return (E, z) => o.skeleton ? (s(), p("div", O({
|
|
2987
3136
|
key: 0,
|
|
2988
|
-
class: ["onyx-select-input-skeleton", r(
|
|
3137
|
+
class: ["onyx-select-input-skeleton", r(k)]
|
|
2989
3138
|
}, r(l)), [
|
|
2990
|
-
o.hideLabel ? _("", !0) : (
|
|
3139
|
+
o.hideLabel ? _("", !0) : (s(), x(U, {
|
|
2991
3140
|
key: 0,
|
|
2992
3141
|
class: "onyx-select-input-skeleton__label"
|
|
2993
3142
|
})),
|
|
2994
|
-
|
|
2995
|
-
], 16)) : (
|
|
3143
|
+
M(U, { class: "onyx-select-input-skeleton__input" })
|
|
3144
|
+
], 16)) : (s(), p("div", O({
|
|
2996
3145
|
key: 1,
|
|
2997
3146
|
class: [
|
|
2998
3147
|
"onyx-select-input",
|
|
2999
|
-
r(
|
|
3148
|
+
r(k),
|
|
3000
3149
|
o.readonly ? "onyx-select-input--readonly" : "onyx-select-input--editable"
|
|
3001
3150
|
]
|
|
3002
3151
|
}, r(l)), [
|
|
3003
|
-
|
|
3004
|
-
default: $(() => [
|
|
3005
|
-
|
|
3006
|
-
o.loading ? (
|
|
3152
|
+
M(xe, O(o, { "error-messages": r(y) }), {
|
|
3153
|
+
default: $(({ id: ne }) => [
|
|
3154
|
+
f("div", Ro, [
|
|
3155
|
+
o.loading ? (s(), x(X, {
|
|
3007
3156
|
key: 0,
|
|
3008
3157
|
class: "onyx-select-input__loading",
|
|
3009
3158
|
type: "circle"
|
|
3010
3159
|
})) : _("", !0),
|
|
3011
|
-
|
|
3160
|
+
K(f("input", O({
|
|
3161
|
+
id: ne,
|
|
3012
3162
|
ref_key: "input",
|
|
3013
|
-
ref:
|
|
3163
|
+
ref: S,
|
|
3014
3164
|
class: {
|
|
3015
3165
|
"onyx-select-input__native": !0,
|
|
3016
3166
|
"onyx-select-input__native--show-focus": o.showFocus,
|
|
3017
3167
|
"onyx-truncation-ellipsis": !0,
|
|
3018
|
-
"onyx-select-input__native--force-invalid": r(
|
|
3168
|
+
"onyx-select-input__native--force-invalid": r(y) && v.value
|
|
3019
3169
|
}
|
|
3020
|
-
}, r(
|
|
3170
|
+
}, r(n), {
|
|
3021
3171
|
type: "text",
|
|
3022
3172
|
readonly: o.readonly,
|
|
3023
3173
|
placeholder: o.placeholder,
|
|
@@ -3025,48 +3175,49 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3025
3175
|
disabled: o.disabled || o.loading,
|
|
3026
3176
|
"aria-label": o.hideLabel ? o.label : void 0,
|
|
3027
3177
|
title: o.hideLabel ? o.label : void 0,
|
|
3028
|
-
value:
|
|
3178
|
+
value: m.value,
|
|
3029
3179
|
autofocus: o.autofocus,
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3180
|
+
autocomplete: "off",
|
|
3181
|
+
onClick: z[0] || (z[0] = (se) => u("click")),
|
|
3182
|
+
onKeydown: P
|
|
3183
|
+
}), null, 16, Uo), [
|
|
3184
|
+
[r(i)]
|
|
3034
3185
|
]),
|
|
3035
|
-
o.textMode === "preview" &&
|
|
3186
|
+
o.textMode === "preview" && d.value > 0 ? (s(), x(kt, {
|
|
3036
3187
|
key: 1,
|
|
3037
|
-
text:
|
|
3188
|
+
text: m.value,
|
|
3038
3189
|
position: "bottom"
|
|
3039
3190
|
}, {
|
|
3040
3191
|
default: $(() => [
|
|
3041
|
-
|
|
3192
|
+
M(Wt, {
|
|
3042
3193
|
class: "onyx-select-input__badge",
|
|
3043
3194
|
color: "neutral"
|
|
3044
3195
|
}, {
|
|
3045
3196
|
default: $(() => [
|
|
3046
|
-
|
|
3197
|
+
Z(V(d.value), 1)
|
|
3047
3198
|
]),
|
|
3048
3199
|
_: 1
|
|
3049
3200
|
})
|
|
3050
3201
|
]),
|
|
3051
3202
|
_: 1
|
|
3052
3203
|
}, 8, ["text"])) : _("", !0),
|
|
3053
|
-
|
|
3204
|
+
f("button", {
|
|
3054
3205
|
class: "onyx-select-input__button",
|
|
3055
3206
|
type: "button",
|
|
3056
|
-
"aria-label": r(
|
|
3207
|
+
"aria-label": r(c)("select.toggleDropDown"),
|
|
3057
3208
|
tabindex: "-1",
|
|
3058
3209
|
disabled: o.readonly || o.disabled || o.loading,
|
|
3059
|
-
onClick:
|
|
3210
|
+
onClick: z[1] || (z[1] = (se) => u("click"))
|
|
3060
3211
|
}, [
|
|
3061
|
-
|
|
3062
|
-
], 8,
|
|
3212
|
+
M(A, { icon: r(zo) }, null, 8, ["icon"])
|
|
3213
|
+
], 8, Fo)
|
|
3063
3214
|
])
|
|
3064
3215
|
]),
|
|
3065
3216
|
_: 1
|
|
3066
3217
|
}, 16, ["error-messages"])
|
|
3067
3218
|
], 16));
|
|
3068
3219
|
}
|
|
3069
|
-
}),
|
|
3220
|
+
}), Zo = ["checked", "aria-labelledby", "disabled", "indeterminate"], lt = /* @__PURE__ */ w({
|
|
3070
3221
|
__name: "OnyxSelectOption",
|
|
3071
3222
|
props: {
|
|
3072
3223
|
active: { type: Boolean, default: !1 },
|
|
@@ -3078,13 +3229,13 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3078
3229
|
},
|
|
3079
3230
|
setup(t) {
|
|
3080
3231
|
const a = t;
|
|
3081
|
-
return (e, l) => (
|
|
3232
|
+
return (e, l) => (s(), x(Fe, O({ class: "onyx-select-option" }, a, {
|
|
3082
3233
|
checked: !!e.$attrs["aria-checked"],
|
|
3083
3234
|
selected: !!e.$attrs["aria-selected"],
|
|
3084
3235
|
disabled: !!e.$attrs["aria-disabled"]
|
|
3085
3236
|
}), {
|
|
3086
3237
|
default: $(() => [
|
|
3087
|
-
a.multiple ? (
|
|
3238
|
+
a.multiple ? (s(), p("input", {
|
|
3088
3239
|
key: 0,
|
|
3089
3240
|
checked: !!e.$attrs["aria-checked"],
|
|
3090
3241
|
"aria-labelledby": e.$attrs.id,
|
|
@@ -3094,12 +3245,12 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3094
3245
|
tabindex: "-1",
|
|
3095
3246
|
class: "onyx-select-option__checkbox",
|
|
3096
3247
|
type: "checkbox"
|
|
3097
|
-
}, null, 8,
|
|
3098
|
-
a.icon ? (
|
|
3248
|
+
}, null, 8, Zo)) : _("", !0),
|
|
3249
|
+
a.icon ? (s(), x(A, {
|
|
3099
3250
|
key: 1,
|
|
3100
3251
|
icon: a.icon
|
|
3101
3252
|
}, null, 8, ["icon"])) : _("", !0),
|
|
3102
|
-
|
|
3253
|
+
f("span", {
|
|
3103
3254
|
class: g([`onyx-truncation-${a.truncation}`])
|
|
3104
3255
|
}, [
|
|
3105
3256
|
b(e.$slots, "default")
|
|
@@ -3108,27 +3259,27 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3108
3259
|
_: 3
|
|
3109
3260
|
}, 16, ["checked", "selected", "disabled"]));
|
|
3110
3261
|
}
|
|
3111
|
-
}),
|
|
3262
|
+
}), Go = ["inert"], Ko = {
|
|
3112
3263
|
class: "onyx-select__wrapper",
|
|
3113
3264
|
tabindex: "-1"
|
|
3114
|
-
},
|
|
3265
|
+
}, jo = {
|
|
3115
3266
|
key: 0,
|
|
3116
3267
|
role: "group",
|
|
3117
3268
|
class: "onyx-select__group"
|
|
3118
|
-
},
|
|
3269
|
+
}, Yo = {
|
|
3119
3270
|
role: "option",
|
|
3120
3271
|
"aria-selected": "false"
|
|
3121
|
-
},
|
|
3272
|
+
}, Wo = {
|
|
3122
3273
|
key: 0,
|
|
3123
3274
|
role: "presentation",
|
|
3124
3275
|
class: "onyx-select__group-name onyx-text--small"
|
|
3125
|
-
},
|
|
3276
|
+
}, Xo = {
|
|
3126
3277
|
key: 1,
|
|
3127
3278
|
class: "onyx-select__slot"
|
|
3128
|
-
},
|
|
3279
|
+
}, Jo = {
|
|
3129
3280
|
key: 2,
|
|
3130
3281
|
class: "onyx-select__slot"
|
|
3131
|
-
},
|
|
3282
|
+
}, cs = /* @__PURE__ */ w({
|
|
3132
3283
|
__name: "OnyxSelect",
|
|
3133
3284
|
props: {
|
|
3134
3285
|
density: {},
|
|
@@ -3137,23 +3288,27 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3137
3288
|
withCheckAll: { type: [Boolean, Object] },
|
|
3138
3289
|
withSearch: { type: Boolean },
|
|
3139
3290
|
searchTerm: { default: void 0 },
|
|
3291
|
+
manualSearch: { type: Boolean },
|
|
3140
3292
|
required: { type: Boolean },
|
|
3141
3293
|
requiredMarker: {},
|
|
3142
3294
|
customError: {},
|
|
3143
|
-
textMode: {},
|
|
3144
3295
|
autofocus: { type: Boolean },
|
|
3296
|
+
id: {},
|
|
3145
3297
|
label: {},
|
|
3146
3298
|
labelTooltip: {},
|
|
3147
3299
|
hideLabel: { type: Boolean },
|
|
3148
3300
|
message: {},
|
|
3149
3301
|
messageTooltip: {},
|
|
3150
3302
|
errorMessages: {},
|
|
3303
|
+
textMode: {},
|
|
3151
3304
|
disabled: { type: Boolean },
|
|
3152
3305
|
skeleton: { type: Boolean },
|
|
3153
3306
|
readonly: { type: Boolean },
|
|
3154
3307
|
loading: { type: Boolean, default: !1 },
|
|
3155
3308
|
placeholder: {},
|
|
3156
3309
|
showFocus: { type: Boolean },
|
|
3310
|
+
truncation: { default: "ellipsis" },
|
|
3311
|
+
valueLabel: { default: void 0 },
|
|
3157
3312
|
open: { type: Boolean, default: void 0 },
|
|
3158
3313
|
listLabel: {},
|
|
3159
3314
|
options: {},
|
|
@@ -3161,213 +3316,213 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3161
3316
|
},
|
|
3162
3317
|
emits: ["update:modelValue", "update:searchTerm", "update:open", "lazyLoad", "validityChange"],
|
|
3163
3318
|
setup(t, { emit: a }) {
|
|
3164
|
-
const e = t, l = a, { densityClass:
|
|
3165
|
-
|
|
3319
|
+
const e = t, l = a, { densityClass: n } = H(e), o = G(), { t: u } = N(), c = tt(
|
|
3320
|
+
Te(() => e.searchTerm),
|
|
3166
3321
|
"",
|
|
3167
|
-
(
|
|
3168
|
-
),
|
|
3169
|
-
|
|
3322
|
+
(C) => l("update:searchTerm", C)
|
|
3323
|
+
), i = tt(
|
|
3324
|
+
Te(() => e.open),
|
|
3170
3325
|
!1,
|
|
3171
|
-
(
|
|
3172
|
-
),
|
|
3173
|
-
|
|
3174
|
-
|
|
3326
|
+
(C) => l("update:open", C)
|
|
3327
|
+
), y = T(), d = T(), m = h(() => e.modelValue === void 0 ? [] : e.multiple && Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue]), v = h(() => e.valueLabel !== void 0 ? Array.isArray(e.valueLabel) ? e.valueLabel : [e.valueLabel] : m.value.reduce((C, I) => {
|
|
3328
|
+
var q;
|
|
3329
|
+
const D = (q = e.options.find(({ value: F }) => F === I)) == null ? void 0 : q.label;
|
|
3330
|
+
return D && C.push(D), C;
|
|
3331
|
+
}, [])), k = T(), S = T(), B = h(() => e.manualSearch ? e.options : c.value ? e.options.filter(({ label: C }) => No(C, c.value)) : e.options);
|
|
3332
|
+
Y(
|
|
3333
|
+
m,
|
|
3175
3334
|
() => {
|
|
3176
|
-
|
|
3177
|
-
e.multiple || (y.value = (w = d.value.at(0)) == null ? void 0 : w.value);
|
|
3335
|
+
e.multiple || (d.value = m.value.at(0));
|
|
3178
3336
|
},
|
|
3179
3337
|
{ immediate: !0 }
|
|
3180
3338
|
);
|
|
3181
|
-
const
|
|
3182
|
-
|
|
3183
|
-
)),
|
|
3184
|
-
var
|
|
3339
|
+
const P = W("ONYX_CHECK_ALL"), E = h(() => (e.multiple && e.withCheckAll && !c.value ? [P] : []).concat(
|
|
3340
|
+
Ze.value
|
|
3341
|
+
)), z = async (C) => {
|
|
3342
|
+
var I, D;
|
|
3185
3343
|
if (e.readonly) {
|
|
3186
|
-
|
|
3344
|
+
i.value = !1;
|
|
3187
3345
|
return;
|
|
3188
3346
|
}
|
|
3189
|
-
|
|
3190
|
-
},
|
|
3191
|
-
const
|
|
3192
|
-
|
|
3193
|
-
},
|
|
3194
|
-
const
|
|
3195
|
-
|
|
3196
|
-
},
|
|
3197
|
-
const
|
|
3198
|
-
|
|
3199
|
-
},
|
|
3200
|
-
var
|
|
3201
|
-
if (
|
|
3202
|
-
(
|
|
3347
|
+
i.value = !i.value, i.value ? (await zt(), (D = k.value) == null || D.focus()) : (c.value && (c.value = ""), C || (I = S.value) == null || I.focus());
|
|
3348
|
+
}, ne = () => d.value = E.value.at(0), se = () => d.value = E.value.at(-1), de = (C) => {
|
|
3349
|
+
const I = E.value.findIndex((D) => D === C);
|
|
3350
|
+
I < E.value.length - 1 && (d.value = E.value[I + 1]);
|
|
3351
|
+
}, ge = (C) => {
|
|
3352
|
+
const I = E.value.findIndex((D) => D === C);
|
|
3353
|
+
I > 0 && (d.value = E.value[I - 1]);
|
|
3354
|
+
}, ke = (C) => {
|
|
3355
|
+
const I = B.value.find((D) => D.label.toLowerCase().trim().startsWith(C.toLowerCase()));
|
|
3356
|
+
I && (d.value = I.value);
|
|
3357
|
+
}, we = (C) => c.value = C, Ce = (C) => {
|
|
3358
|
+
var q;
|
|
3359
|
+
if (C === P) {
|
|
3360
|
+
(q = me.value) == null || q.handleChange(!me.value.state.value.modelValue);
|
|
3203
3361
|
return;
|
|
3204
3362
|
}
|
|
3205
|
-
|
|
3206
|
-
if (!E)
|
|
3363
|
+
if (!B.value.find(({ value: F }) => F === C))
|
|
3207
3364
|
return;
|
|
3208
3365
|
if (!e.multiple)
|
|
3209
|
-
return l("update:modelValue",
|
|
3210
|
-
|
|
3366
|
+
return l("update:modelValue", C);
|
|
3367
|
+
m.value.some((F) => F === C) ? l(
|
|
3211
3368
|
"update:modelValue",
|
|
3212
|
-
|
|
3213
|
-
) : l("update:modelValue", [...
|
|
3214
|
-
},
|
|
3215
|
-
elements: { input:
|
|
3216
|
-
} =
|
|
3217
|
-
autocomplete:
|
|
3369
|
+
m.value.filter((F) => F !== C)
|
|
3370
|
+
) : l("update:modelValue", [...m.value, C]);
|
|
3371
|
+
}, $e = h(() => e.withSearch ? "list" : "none"), {
|
|
3372
|
+
elements: { input: re, option: pe, group: L, listbox: Me }
|
|
3373
|
+
} = il({
|
|
3374
|
+
autocomplete: $e,
|
|
3218
3375
|
label: e.label,
|
|
3219
3376
|
listLabel: e.listLabel,
|
|
3220
|
-
|
|
3221
|
-
activeOption: h(() => y.value),
|
|
3377
|
+
activeOption: h(() => d.value),
|
|
3222
3378
|
multiple: h(() => e.multiple),
|
|
3223
|
-
isExpanded:
|
|
3224
|
-
templateRef:
|
|
3225
|
-
onToggle:
|
|
3226
|
-
onActivateFirst:
|
|
3227
|
-
onActivateLast:
|
|
3228
|
-
onActivateNext:
|
|
3229
|
-
onActivatePrevious:
|
|
3230
|
-
onTypeAhead:
|
|
3231
|
-
onAutocomplete:
|
|
3232
|
-
onSelect:
|
|
3233
|
-
}),
|
|
3379
|
+
isExpanded: i,
|
|
3380
|
+
templateRef: y,
|
|
3381
|
+
onToggle: z,
|
|
3382
|
+
onActivateFirst: ne,
|
|
3383
|
+
onActivateLast: se,
|
|
3384
|
+
onActivateNext: de,
|
|
3385
|
+
onActivatePrevious: ge,
|
|
3386
|
+
onTypeAhead: ke,
|
|
3387
|
+
onAutocomplete: we,
|
|
3388
|
+
onSelect: Ce
|
|
3389
|
+
}), St = h(() => Ea(B.value, "group")), { vScrollEnd: Ot, isScrollEnd: Lt } = Do({
|
|
3234
3390
|
enabled: h(() => {
|
|
3235
|
-
var
|
|
3236
|
-
return ((
|
|
3391
|
+
var C;
|
|
3392
|
+
return ((C = e.lazyLoading) == null ? void 0 : C.enabled) ?? !1;
|
|
3237
3393
|
}),
|
|
3238
3394
|
loading: h(() => e.loading),
|
|
3239
3395
|
offset: h(() => {
|
|
3240
|
-
var
|
|
3241
|
-
return (
|
|
3396
|
+
var C;
|
|
3397
|
+
return (C = e.lazyLoading) == null ? void 0 : C.scrollOffset;
|
|
3242
3398
|
})
|
|
3243
|
-
}),
|
|
3244
|
-
if (!
|
|
3245
|
-
return e.withSearch &&
|
|
3246
|
-
}),
|
|
3247
|
-
() =>
|
|
3248
|
-
),
|
|
3399
|
+
}), Be = h(() => {
|
|
3400
|
+
if (!B.value.length)
|
|
3401
|
+
return e.withSearch && c.value ? u.value("select.noMatch") : u.value("select.empty");
|
|
3402
|
+
}), Ze = h(
|
|
3403
|
+
() => B.value.filter((C) => !C.disabled).map(({ value: C }) => C)
|
|
3404
|
+
), me = h(() => {
|
|
3249
3405
|
if (!(!e.multiple || !e.withCheckAll))
|
|
3250
|
-
return
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
var E;
|
|
3406
|
+
return ut(Ze, m, (C) => {
|
|
3407
|
+
const I = C.map((D) => {
|
|
3408
|
+
var q;
|
|
3409
|
+
return (q = e.options.find(({ value: F }) => F === D)) == null ? void 0 : q.value;
|
|
3410
|
+
}).filter((D) => D != null);
|
|
3411
|
+
l("update:modelValue", I);
|
|
3412
|
+
});
|
|
3413
|
+
}), Ge = h(() => {
|
|
3414
|
+
var I;
|
|
3260
3415
|
if (!e.multiple)
|
|
3261
3416
|
return "";
|
|
3262
|
-
const
|
|
3263
|
-
return typeof e.withCheckAll == "boolean" ?
|
|
3417
|
+
const C = u.value("selections.selectAll");
|
|
3418
|
+
return typeof e.withCheckAll == "boolean" ? C : ((I = e.withCheckAll) == null ? void 0 : I.label) ?? C;
|
|
3264
3419
|
});
|
|
3265
|
-
|
|
3266
|
-
|
|
3420
|
+
Q(() => {
|
|
3421
|
+
Lt.value && l("lazyLoad");
|
|
3267
3422
|
});
|
|
3268
|
-
const
|
|
3269
|
-
const
|
|
3423
|
+
const Tt = h(() => {
|
|
3424
|
+
const C = {
|
|
3270
3425
|
...e,
|
|
3271
|
-
modelValue:
|
|
3426
|
+
modelValue: v.value
|
|
3272
3427
|
};
|
|
3273
|
-
return e.withSearch ? { ...
|
|
3428
|
+
return e.withSearch ? { ...C, onKeydown: re.value.onKeydown } : { ...C, ...re.value };
|
|
3274
3429
|
});
|
|
3275
|
-
return (
|
|
3430
|
+
return (C, I) => {
|
|
3276
3431
|
var D;
|
|
3277
|
-
return
|
|
3432
|
+
return s(), p("div", {
|
|
3278
3433
|
ref_key: "selectRef",
|
|
3279
|
-
ref:
|
|
3434
|
+
ref: y,
|
|
3280
3435
|
class: "onyx-select-wrapper"
|
|
3281
3436
|
}, [
|
|
3282
|
-
|
|
3437
|
+
M(qo, O({
|
|
3283
3438
|
ref_key: "selectInput",
|
|
3284
|
-
ref:
|
|
3285
|
-
},
|
|
3286
|
-
"show-focus": r(
|
|
3439
|
+
ref: S
|
|
3440
|
+
}, Tt.value, {
|
|
3441
|
+
"show-focus": r(i),
|
|
3287
3442
|
autofocus: e.autofocus,
|
|
3288
|
-
onClick:
|
|
3289
|
-
onValidityChange:
|
|
3443
|
+
onClick: z,
|
|
3444
|
+
onValidityChange: I[0] || (I[0] = (q) => l("validityChange", q))
|
|
3290
3445
|
}), null, 16, ["show-focus", "autofocus"]),
|
|
3291
|
-
|
|
3292
|
-
class: g(["onyx-select", r(
|
|
3293
|
-
inert: !r(
|
|
3294
|
-
"aria-busy": e.loading
|
|
3446
|
+
f("div", {
|
|
3447
|
+
class: g(["onyx-select", r(n), r(i) ? "onyx-select--open" : ""]),
|
|
3448
|
+
inert: !r(i)
|
|
3295
3449
|
}, [
|
|
3296
|
-
|
|
3297
|
-
e.withSearch ? (
|
|
3450
|
+
K((s(), p("div", Ko, [
|
|
3451
|
+
e.withSearch ? (s(), x(Ml, O({
|
|
3298
3452
|
key: 0,
|
|
3299
3453
|
ref_key: "miniSearch",
|
|
3300
|
-
ref:
|
|
3301
|
-
|
|
3302
|
-
|
|
3454
|
+
ref: k,
|
|
3455
|
+
"model-value": r(c)
|
|
3456
|
+
}, r(re), {
|
|
3457
|
+
label: r(u)("select.searchInputLabel"),
|
|
3303
3458
|
class: "onyx-select__search",
|
|
3304
|
-
onClear:
|
|
3305
|
-
}), null, 16, ["label"])) : _("", !0),
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
b(
|
|
3310
|
-
|
|
3459
|
+
onClear: I[1] || (I[1] = (q) => c.value = "")
|
|
3460
|
+
}), null, 16, ["model-value", "label"])) : _("", !0),
|
|
3461
|
+
f("div", ee(te(r(Me))), [
|
|
3462
|
+
Be.value ? (s(), p("ul", jo, [
|
|
3463
|
+
f("li", Yo, [
|
|
3464
|
+
b(C.$slots, "empty", { defaultMessage: Be.value }, () => [
|
|
3465
|
+
M(dt, null, {
|
|
3311
3466
|
default: $(() => [
|
|
3312
|
-
|
|
3467
|
+
Z(V(Be.value), 1)
|
|
3313
3468
|
]),
|
|
3314
3469
|
_: 1
|
|
3315
3470
|
})
|
|
3316
3471
|
])
|
|
3317
3472
|
])
|
|
3318
|
-
])) : (
|
|
3319
|
-
var
|
|
3320
|
-
return
|
|
3321
|
-
key:
|
|
3473
|
+
])) : (s(!0), p(R, { key: 1 }, J(St.value, (q, F) => {
|
|
3474
|
+
var Ke, je;
|
|
3475
|
+
return s(), p("ul", O({
|
|
3476
|
+
key: F,
|
|
3322
3477
|
class: "onyx-select__group",
|
|
3323
3478
|
ref_for: !0
|
|
3324
|
-
}, r(
|
|
3325
|
-
|
|
3326
|
-
e.multiple && e.withCheckAll && !r(
|
|
3479
|
+
}, r(L)({ label: F })), [
|
|
3480
|
+
F != "" ? (s(), p("li", Wo, V(F), 1)) : _("", !0),
|
|
3481
|
+
e.multiple && e.withCheckAll && !r(c) ? (s(), x(lt, O(
|
|
3327
3482
|
{
|
|
3328
3483
|
key: 1,
|
|
3329
3484
|
ref_for: !0
|
|
3330
3485
|
},
|
|
3331
|
-
r(
|
|
3332
|
-
value: r(
|
|
3333
|
-
label:
|
|
3334
|
-
selected: (
|
|
3486
|
+
r(pe)({
|
|
3487
|
+
value: r(P),
|
|
3488
|
+
label: Ge.value,
|
|
3489
|
+
selected: (Ke = me.value) == null ? void 0 : Ke.state.value.modelValue
|
|
3335
3490
|
}),
|
|
3336
3491
|
{
|
|
3337
3492
|
multiple: "",
|
|
3338
|
-
active: r(
|
|
3339
|
-
indeterminate: (
|
|
3493
|
+
active: r(P) === d.value,
|
|
3494
|
+
indeterminate: (je = me.value) == null ? void 0 : je.state.value.indeterminate,
|
|
3340
3495
|
density: e.density,
|
|
3341
3496
|
class: "onyx-select__check-all"
|
|
3342
3497
|
}
|
|
3343
3498
|
), {
|
|
3344
3499
|
default: $(() => [
|
|
3345
|
-
|
|
3500
|
+
Z(V(Ge.value), 1)
|
|
3346
3501
|
]),
|
|
3347
3502
|
_: 1
|
|
3348
3503
|
}, 16, ["active", "indeterminate", "density"])) : _("", !0),
|
|
3349
|
-
(
|
|
3504
|
+
(s(!0), p(R, null, J(q, (j) => (s(), x(lt, O(
|
|
3350
3505
|
{
|
|
3351
|
-
key:
|
|
3506
|
+
key: j.value.toString(),
|
|
3352
3507
|
ref_for: !0
|
|
3353
3508
|
},
|
|
3354
|
-
r(
|
|
3355
|
-
value:
|
|
3356
|
-
label:
|
|
3357
|
-
disabled:
|
|
3358
|
-
selected:
|
|
3509
|
+
r(pe)({
|
|
3510
|
+
value: j.value,
|
|
3511
|
+
label: j.label,
|
|
3512
|
+
disabled: j.disabled,
|
|
3513
|
+
selected: m.value.some((Et) => Et === j.value)
|
|
3359
3514
|
}),
|
|
3360
3515
|
{
|
|
3361
3516
|
multiple: e.multiple,
|
|
3362
|
-
active:
|
|
3363
|
-
icon:
|
|
3517
|
+
active: j.value === d.value,
|
|
3518
|
+
icon: j.icon,
|
|
3364
3519
|
density: e.density,
|
|
3365
|
-
truncation:
|
|
3520
|
+
truncation: j.truncation ?? e.truncation
|
|
3366
3521
|
}
|
|
3367
3522
|
), {
|
|
3368
3523
|
default: $(() => [
|
|
3369
|
-
b(
|
|
3370
|
-
|
|
3524
|
+
b(C.$slots, "option", O({ ref_for: !0 }, j), () => [
|
|
3525
|
+
Z(V(j.label), 1)
|
|
3371
3526
|
])
|
|
3372
3527
|
]),
|
|
3373
3528
|
_: 2
|
|
@@ -3375,20 +3530,131 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3375
3530
|
], 16);
|
|
3376
3531
|
}), 128))
|
|
3377
3532
|
], 16),
|
|
3378
|
-
(D = e.lazyLoading) != null && D.loading ? (
|
|
3379
|
-
|
|
3533
|
+
(D = e.lazyLoading) != null && D.loading ? (s(), p("div", Xo, [
|
|
3534
|
+
M(X, { class: "onyx-select__loading" })
|
|
3380
3535
|
])) : _("", !0),
|
|
3381
|
-
o.optionsEnd ? (
|
|
3382
|
-
b(
|
|
3536
|
+
o.optionsEnd ? (s(), p("div", Jo, [
|
|
3537
|
+
b(C.$slots, "optionsEnd")
|
|
3383
3538
|
])) : _("", !0)
|
|
3384
3539
|
])), [
|
|
3385
|
-
[r(
|
|
3540
|
+
[r(Ot)]
|
|
3386
3541
|
])
|
|
3387
|
-
], 10,
|
|
3542
|
+
], 10, Go)
|
|
3388
3543
|
], 512);
|
|
3389
3544
|
};
|
|
3390
3545
|
}
|
|
3391
|
-
}),
|
|
3546
|
+
}), ds = ["summary", "preview"], Qo = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M4 15h24v2H4z"/></svg>', en = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M17 15V4h-2v11H4v2h11v11h2V17h11v-2z"/></svg>', tn = { class: "onyx-stepper__wrapper" }, an = ["disabled", "aria-label"], ln = ["aria-label", "autofocus", "disabled", "min", "max", "name", "placeholder", "readonly", "required", "step", "title"], on = ["disabled", "aria-label"], ps = /* @__PURE__ */ w({
|
|
3547
|
+
__name: "OnyxStepper",
|
|
3548
|
+
props: {
|
|
3549
|
+
density: {},
|
|
3550
|
+
customError: {},
|
|
3551
|
+
required: { type: Boolean },
|
|
3552
|
+
requiredMarker: {},
|
|
3553
|
+
id: {},
|
|
3554
|
+
label: {},
|
|
3555
|
+
labelTooltip: {},
|
|
3556
|
+
hideLabel: { type: Boolean },
|
|
3557
|
+
message: {},
|
|
3558
|
+
messageTooltip: {},
|
|
3559
|
+
autofocus: { type: Boolean },
|
|
3560
|
+
modelValue: {},
|
|
3561
|
+
name: {},
|
|
3562
|
+
placeholder: {},
|
|
3563
|
+
min: {},
|
|
3564
|
+
max: {},
|
|
3565
|
+
step: { default: 1 },
|
|
3566
|
+
autocomplete: {},
|
|
3567
|
+
disabled: { type: Boolean, default: !1 },
|
|
3568
|
+
readonly: { type: Boolean, default: !1 },
|
|
3569
|
+
loading: { type: Boolean, default: !1 },
|
|
3570
|
+
skeleton: { type: Boolean, default: !1 }
|
|
3571
|
+
},
|
|
3572
|
+
emits: ["update:modelValue", "focus", "blur", "validityChange"],
|
|
3573
|
+
setup(t, { emit: a }) {
|
|
3574
|
+
const e = t, { t: l } = N(), n = T(), o = a, { densityClass: u } = H(e), { vCustomValidity: c, errorMessages: i } = ae({ props: e, emit: o }), y = T(!1), d = h({
|
|
3575
|
+
get: () => e.modelValue,
|
|
3576
|
+
set: (S) => o("update:modelValue", S)
|
|
3577
|
+
}), m = (S) => {
|
|
3578
|
+
if (!n.value) return;
|
|
3579
|
+
n.value[`${S}`]();
|
|
3580
|
+
const B = n.value.valueAsNumber;
|
|
3581
|
+
d.value = isNaN(B) ? void 0 : B;
|
|
3582
|
+
}, v = h(() => l.value("stepper.increment", { stepSize: e.step })), k = h(() => l.value("stepper.decrement", { stepSize: e.step }));
|
|
3583
|
+
return (S, B) => e.skeleton ? (s(), p("div", {
|
|
3584
|
+
key: 0,
|
|
3585
|
+
class: g(["onyx-stepper-skeleton", r(u)])
|
|
3586
|
+
}, [
|
|
3587
|
+
e.hideLabel ? _("", !0) : (s(), x(U, {
|
|
3588
|
+
key: 0,
|
|
3589
|
+
class: "onyx-stepper-skeleton__label"
|
|
3590
|
+
})),
|
|
3591
|
+
M(U, { class: "onyx-stepper-skeleton__input" })
|
|
3592
|
+
], 2)) : (s(), p("div", {
|
|
3593
|
+
key: 1,
|
|
3594
|
+
class: g(["onyx-stepper", r(u)])
|
|
3595
|
+
}, [
|
|
3596
|
+
M(xe, O(e, { "error-messages": r(i) }), {
|
|
3597
|
+
default: $(() => [
|
|
3598
|
+
f("div", tn, [
|
|
3599
|
+
f("button", {
|
|
3600
|
+
type: "button",
|
|
3601
|
+
class: "onyx-stepper__counter",
|
|
3602
|
+
disabled: e.min && e.min === d.value || e.disabled || e.readonly || e.loading,
|
|
3603
|
+
"aria-label": k.value,
|
|
3604
|
+
onClick: B[0] || (B[0] = (P) => m("stepDown"))
|
|
3605
|
+
}, [
|
|
3606
|
+
M(A, { icon: r(Qo) }, null, 8, ["icon"])
|
|
3607
|
+
], 8, an),
|
|
3608
|
+
e.loading ? (s(), x(X, {
|
|
3609
|
+
key: 0,
|
|
3610
|
+
class: "onyx-stepper__loading",
|
|
3611
|
+
type: "circle"
|
|
3612
|
+
})) : K((s(), p("input", {
|
|
3613
|
+
key: 1,
|
|
3614
|
+
ref_key: "inputRef",
|
|
3615
|
+
ref: n,
|
|
3616
|
+
"onUpdate:modelValue": B[1] || (B[1] = (P) => d.value = P),
|
|
3617
|
+
class: g(["onyx-stepper__native", { "onyx-stepper__native--force-invalid": r(i) && y.value }]),
|
|
3618
|
+
type: "number",
|
|
3619
|
+
"aria-label": e.label,
|
|
3620
|
+
autofocus: e.autofocus,
|
|
3621
|
+
disabled: e.disabled || e.loading,
|
|
3622
|
+
min: e.min,
|
|
3623
|
+
max: e.max,
|
|
3624
|
+
name: e.name,
|
|
3625
|
+
placeholder: e.placeholder,
|
|
3626
|
+
readonly: e.readonly,
|
|
3627
|
+
required: e.required,
|
|
3628
|
+
step: e.step,
|
|
3629
|
+
title: e.hideLabel ? e.label : void 0,
|
|
3630
|
+
onChange: B[2] || (B[2] = (P) => y.value = !0),
|
|
3631
|
+
onFocus: B[3] || (B[3] = (P) => o("focus")),
|
|
3632
|
+
onBlur: B[4] || (B[4] = (P) => o("blur"))
|
|
3633
|
+
}, null, 42, ln)), [
|
|
3634
|
+
[
|
|
3635
|
+
ze,
|
|
3636
|
+
d.value,
|
|
3637
|
+
void 0,
|
|
3638
|
+
{ number: !0 }
|
|
3639
|
+
],
|
|
3640
|
+
[r(c)]
|
|
3641
|
+
]),
|
|
3642
|
+
f("button", {
|
|
3643
|
+
type: "button",
|
|
3644
|
+
class: "onyx-stepper__counter",
|
|
3645
|
+
disabled: e.max && e.max === d.value || e.disabled || e.readonly || e.loading,
|
|
3646
|
+
"aria-label": v.value,
|
|
3647
|
+
onClick: B[5] || (B[5] = (P) => m("stepUp"))
|
|
3648
|
+
}, [
|
|
3649
|
+
M(A, { icon: r(en) }, null, 8, ["icon"])
|
|
3650
|
+
], 8, on)
|
|
3651
|
+
])
|
|
3652
|
+
]),
|
|
3653
|
+
_: 1
|
|
3654
|
+
}, 16, ["error-messages"])
|
|
3655
|
+
], 2));
|
|
3656
|
+
}
|
|
3657
|
+
}), nn = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m21.311 10.793-8.293 8.293-3.291-3.292-1.415 1.415 4.706 4.705 9.707-9.707z"/></svg>', sn = { class: "onyx-switch-skeleton__click-area" }, rn = ["title"], un = ["aria-label", "disabled", "required", "autofocus"], cn = { class: "onyx-switch__click-area" }, dn = { class: "onyx-switch__container" }, pn = { class: "onyx-switch__icon" }, mn = /* @__PURE__ */ f("div", { class: "onyx-switch__frame" }, null, -1), ms = /* @__PURE__ */ w({
|
|
3392
3658
|
__name: "OnyxSwitch",
|
|
3393
3659
|
props: {
|
|
3394
3660
|
density: {},
|
|
@@ -3406,30 +3672,30 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3406
3672
|
},
|
|
3407
3673
|
emits: ["update:modelValue", "validityChange"],
|
|
3408
3674
|
setup(t, { emit: a }) {
|
|
3409
|
-
const e = t, l = a, { requiredMarkerClass:
|
|
3675
|
+
const e = t, l = a, { requiredMarkerClass: n, requiredTypeClass: o } = _e(e), { densityClass: u } = H(e), { vCustomValidity: c, title: i } = ae({ props: e, emit: l }), y = h({
|
|
3410
3676
|
get: () => e.modelValue,
|
|
3411
|
-
set: (
|
|
3412
|
-
l("update:modelValue",
|
|
3677
|
+
set: (d) => {
|
|
3678
|
+
l("update:modelValue", d);
|
|
3413
3679
|
}
|
|
3414
3680
|
});
|
|
3415
|
-
return (
|
|
3681
|
+
return (d, m) => e.skeleton ? (s(), p("div", {
|
|
3416
3682
|
key: 0,
|
|
3417
|
-
class: g(["onyx-switch-skeleton", r(
|
|
3683
|
+
class: g(["onyx-switch-skeleton", r(u)])
|
|
3418
3684
|
}, [
|
|
3419
|
-
|
|
3420
|
-
|
|
3685
|
+
f("span", sn, [
|
|
3686
|
+
M(U, { class: "onyx-switch-skeleton__input" })
|
|
3421
3687
|
]),
|
|
3422
|
-
e.hideLabel ? _("", !0) : (
|
|
3688
|
+
e.hideLabel ? _("", !0) : (s(), x(U, {
|
|
3423
3689
|
key: 0,
|
|
3424
3690
|
class: "onyx-switch-skeleton__label"
|
|
3425
3691
|
}))
|
|
3426
|
-
], 2)) : (
|
|
3692
|
+
], 2)) : (s(), p("label", {
|
|
3427
3693
|
key: 1,
|
|
3428
|
-
class: g(["onyx-switch", [r(o), r(
|
|
3429
|
-
title:
|
|
3694
|
+
class: g(["onyx-switch", [r(o), r(u)]]),
|
|
3695
|
+
title: r(i)
|
|
3430
3696
|
}, [
|
|
3431
|
-
|
|
3432
|
-
"onUpdate:modelValue":
|
|
3697
|
+
K(f("input", {
|
|
3698
|
+
"onUpdate:modelValue": m[0] || (m[0] = (v) => y.value = v),
|
|
3433
3699
|
type: "checkbox",
|
|
3434
3700
|
role: "switch",
|
|
3435
3701
|
class: g({ "onyx-switch__input": !0, "onyx-switch__loading": e.loading }),
|
|
@@ -3437,43 +3703,43 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3437
3703
|
disabled: e.disabled || e.loading,
|
|
3438
3704
|
required: e.required,
|
|
3439
3705
|
autofocus: e.autofocus
|
|
3440
|
-
}, null, 10,
|
|
3441
|
-
[
|
|
3442
|
-
[r(
|
|
3706
|
+
}, null, 10, un), [
|
|
3707
|
+
[ot, y.value],
|
|
3708
|
+
[r(c)]
|
|
3443
3709
|
]),
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
e.loading ? (
|
|
3710
|
+
f("span", cn, [
|
|
3711
|
+
f("span", dn, [
|
|
3712
|
+
f("span", pn, [
|
|
3713
|
+
e.loading ? (s(), x(X, {
|
|
3448
3714
|
key: 0,
|
|
3449
3715
|
class: "onyx-switch__spinner",
|
|
3450
3716
|
type: "circle"
|
|
3451
|
-
})) : (
|
|
3717
|
+
})) : (s(), x(A, {
|
|
3452
3718
|
key: 1,
|
|
3453
|
-
icon:
|
|
3719
|
+
icon: y.value ? r(nn) : r(qe)
|
|
3454
3720
|
}, null, 8, ["icon"]))
|
|
3455
3721
|
]),
|
|
3456
|
-
|
|
3722
|
+
mn
|
|
3457
3723
|
])
|
|
3458
3724
|
]),
|
|
3459
|
-
e.hideLabel ? _("", !0) : (
|
|
3725
|
+
e.hideLabel ? _("", !0) : (s(), p("span", {
|
|
3460
3726
|
key: 0,
|
|
3461
3727
|
class: g(["onyx-switch__label", [
|
|
3462
3728
|
`onyx-truncation-${e.truncation}`,
|
|
3463
3729
|
// shows the required marker inline for multiline labels
|
|
3464
|
-
e.truncation === "multiline" ? r(
|
|
3730
|
+
e.truncation === "multiline" ? r(n) : void 0
|
|
3465
3731
|
]])
|
|
3466
|
-
},
|
|
3467
|
-
e.truncation === "ellipsis" ? (
|
|
3732
|
+
}, V(e.label), 3)),
|
|
3733
|
+
!e.hideLabel && e.truncation === "ellipsis" ? (s(), p("div", {
|
|
3468
3734
|
key: 1,
|
|
3469
|
-
class: g(["onyx-switch__marker", [r(
|
|
3735
|
+
class: g(["onyx-switch__marker", [r(n)]])
|
|
3470
3736
|
}, null, 2)) : _("", !0)
|
|
3471
|
-
], 10,
|
|
3737
|
+
], 10, rn));
|
|
3472
3738
|
}
|
|
3473
|
-
}),
|
|
3739
|
+
}), yn = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 24 24"><path d="M8.25 17.25h-4.5V6.008h4.5zm-3-1.5h1.5V7.508h-1.5zm14.273 1.958c.457-.668.727-1.47.727-2.333 0-.127-.008-.255-.023-.375V4.508h-4.5v6.765a4.3 4.3 0 0 0-1.5.442V8.258h-4.5v8.992h2.716a4.13 4.13 0 0 0 3.667 2.25c.863 0 1.672-.27 2.332-.727l2.76 2.76 1.058-1.058-2.76-2.76zm-.788-11.7v6.18a4.1 4.1 0 0 0-1.492-.773v-5.4h1.492zm-7.492 9.742V9.758h1.5v3.292a4.1 4.1 0 0 0-.735 2.325c0 .127.007.255.022.375zM16.124 18a2.643 2.643 0 0 1-2.625-2.625 2.643 2.643 0 0 1 2.625-2.625 2.643 2.643 0 0 1 2.625 2.625A2.64 2.64 0 0 1 16.125 18" style="fill-rule:nonzero"/></svg>', hn = { class: "onyx-table-wrapper" }, vn = ["tabindex"], fn = {
|
|
3474
3740
|
key: 0,
|
|
3475
3741
|
class: "onyx-table__header"
|
|
3476
|
-
},
|
|
3742
|
+
}, _n = { class: "onyx-table__empty" }, xn = { colspan: "100%" }, bn = { class: "onyx-table__empty-content" }, ys = /* @__PURE__ */ w({
|
|
3477
3743
|
__name: "OnyxTable",
|
|
3478
3744
|
props: {
|
|
3479
3745
|
density: {},
|
|
@@ -3482,37 +3748,37 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3482
3748
|
withPageScrolling: { type: Boolean, default: !1 }
|
|
3483
3749
|
},
|
|
3484
3750
|
setup(t) {
|
|
3485
|
-
const a = t, e =
|
|
3486
|
-
return (
|
|
3487
|
-
|
|
3751
|
+
const a = t, e = G(), { t: l } = N(), { densityClass: n } = H(a), o = h(() => l.value("table.empty"));
|
|
3752
|
+
return (u, c) => (s(), p("div", hn, [
|
|
3753
|
+
f("div", {
|
|
3488
3754
|
class: g({ "onyx-table-wrapper__scroll-container": !a.withPageScrolling }),
|
|
3489
3755
|
tabindex: a.withPageScrolling ? void 0 : 0
|
|
3490
3756
|
}, [
|
|
3491
|
-
|
|
3757
|
+
f("table", {
|
|
3492
3758
|
class: g(["onyx-table onyx-text", [
|
|
3493
3759
|
a.striped ? "onyx-table--striped" : "",
|
|
3494
3760
|
a.withVerticalBorders ? "onyx-table--vertical-borders" : "",
|
|
3495
|
-
r(
|
|
3761
|
+
r(n)
|
|
3496
3762
|
]])
|
|
3497
3763
|
}, [
|
|
3498
|
-
e.head ? (
|
|
3499
|
-
b(
|
|
3764
|
+
e.head ? (s(), p("thead", fn, [
|
|
3765
|
+
b(u.$slots, "head")
|
|
3500
3766
|
])) : _("", !0),
|
|
3501
|
-
|
|
3502
|
-
b(
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
b(
|
|
3507
|
-
|
|
3767
|
+
f("tbody", null, [
|
|
3768
|
+
b(u.$slots, "default", {}, () => [
|
|
3769
|
+
f("tr", _n, [
|
|
3770
|
+
f("td", xn, [
|
|
3771
|
+
f("div", bn, [
|
|
3772
|
+
b(u.$slots, "empty", { defaultMessage: o.value }, () => [
|
|
3773
|
+
M(dt, null, {
|
|
3508
3774
|
icon: $(() => [
|
|
3509
|
-
|
|
3510
|
-
icon: r(
|
|
3775
|
+
M(A, {
|
|
3776
|
+
icon: r(yn),
|
|
3511
3777
|
size: "48px"
|
|
3512
3778
|
}, null, 8, ["icon"])
|
|
3513
3779
|
]),
|
|
3514
3780
|
default: $(() => [
|
|
3515
|
-
|
|
3781
|
+
Z(" " + V(o.value), 1)
|
|
3516
3782
|
]),
|
|
3517
3783
|
_: 1
|
|
3518
3784
|
})
|
|
@@ -3523,10 +3789,10 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3523
3789
|
])
|
|
3524
3790
|
])
|
|
3525
3791
|
], 2)
|
|
3526
|
-
], 10,
|
|
3792
|
+
], 10, vn)
|
|
3527
3793
|
]));
|
|
3528
3794
|
}
|
|
3529
|
-
}),
|
|
3795
|
+
}), gn = { class: "onyx-text onyx-truncation-ellipsis" }, hs = /* @__PURE__ */ w({
|
|
3530
3796
|
__name: "OnyxTag",
|
|
3531
3797
|
props: {
|
|
3532
3798
|
density: {},
|
|
@@ -3536,18 +3802,18 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3536
3802
|
},
|
|
3537
3803
|
setup(t) {
|
|
3538
3804
|
const a = t, { densityClass: e } = H(a);
|
|
3539
|
-
return (l,
|
|
3805
|
+
return (l, n) => (s(), p("div", {
|
|
3540
3806
|
class: g(["onyx-tag", `onyx-tag--${a.color}`, r(e)])
|
|
3541
3807
|
}, [
|
|
3542
|
-
a.icon ? (
|
|
3808
|
+
a.icon ? (s(), x(A, {
|
|
3543
3809
|
key: 0,
|
|
3544
3810
|
icon: a.icon,
|
|
3545
3811
|
size: "16px"
|
|
3546
3812
|
}, null, 8, ["icon"])) : _("", !0),
|
|
3547
|
-
|
|
3813
|
+
f("span", gn, V(a.label), 1)
|
|
3548
3814
|
], 2));
|
|
3549
3815
|
}
|
|
3550
|
-
}),
|
|
3816
|
+
}), kn = ["data-autosize-value"], wn = ["id", "placeholder", "required", "autocapitalize", "autofocus", "name", "readonly", "disabled", "minlength", "maxlength", "aria-label", "title"], vs = /* @__PURE__ */ w({
|
|
3551
3817
|
__name: "OnyxTextarea",
|
|
3552
3818
|
props: {
|
|
3553
3819
|
density: {},
|
|
@@ -3575,44 +3841,45 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3575
3841
|
},
|
|
3576
3842
|
emits: ["update:modelValue", "change", "focus", "blur", "validityChange"],
|
|
3577
3843
|
setup(t, { emit: a }) {
|
|
3578
|
-
const e = t, l = a, { vCustomValidity:
|
|
3844
|
+
const e = t, l = a, { vCustomValidity: n, errorMessages: o } = ae({ props: e, emit: l }), { densityClass: u } = H(e), c = h({
|
|
3579
3845
|
get: () => e.modelValue,
|
|
3580
|
-
set: (
|
|
3581
|
-
}),
|
|
3582
|
-
const
|
|
3583
|
-
l("change",
|
|
3584
|
-
},
|
|
3846
|
+
set: (m) => l("update:modelValue", m)
|
|
3847
|
+
}), i = (m) => {
|
|
3848
|
+
const v = m.target.value;
|
|
3849
|
+
l("change", v);
|
|
3850
|
+
}, y = h(() => {
|
|
3585
3851
|
if (!e.autosize) return;
|
|
3586
|
-
const
|
|
3587
|
-
return [
|
|
3588
|
-
}),
|
|
3589
|
-
var
|
|
3590
|
-
const
|
|
3591
|
-
(
|
|
3852
|
+
const m = e.autosize.min ? Math.max(e.autosize.min, 2) : void 0, v = e.autosize.max;
|
|
3853
|
+
return [m ? `--min-autosize-rows: ${m}` : "", `--max-autosize-rows: ${v ?? "unset"}`];
|
|
3854
|
+
}), d = (m) => {
|
|
3855
|
+
var k;
|
|
3856
|
+
const v = m.target;
|
|
3857
|
+
(k = v.parentElement) == null || k.setAttribute("data-autosize-value", v.value);
|
|
3592
3858
|
};
|
|
3593
|
-
return (
|
|
3859
|
+
return (m, v) => e.skeleton ? (s(), p("div", {
|
|
3594
3860
|
key: 0,
|
|
3595
|
-
class: g(["onyx-textarea-skeleton", r(
|
|
3596
|
-
style:
|
|
3861
|
+
class: g(["onyx-textarea-skeleton", r(u)]),
|
|
3862
|
+
style: Ee(y.value)
|
|
3597
3863
|
}, [
|
|
3598
|
-
e.hideLabel ? _("", !0) : (
|
|
3864
|
+
e.hideLabel ? _("", !0) : (s(), x(U, {
|
|
3599
3865
|
key: 0,
|
|
3600
3866
|
class: "onyx-textarea-skeleton__label"
|
|
3601
3867
|
})),
|
|
3602
|
-
|
|
3603
|
-
], 6)) : (
|
|
3868
|
+
M(U, { class: "onyx-textarea-skeleton__input" })
|
|
3869
|
+
], 6)) : (s(), p("div", {
|
|
3604
3870
|
key: 1,
|
|
3605
|
-
class: g(["onyx-textarea", r(
|
|
3606
|
-
style:
|
|
3871
|
+
class: g(["onyx-textarea", r(u)]),
|
|
3872
|
+
style: Ee(y.value)
|
|
3607
3873
|
}, [
|
|
3608
|
-
|
|
3609
|
-
default: $(() => [
|
|
3610
|
-
|
|
3874
|
+
M(xe, O(e, { "error-messages": r(o) }), {
|
|
3875
|
+
default: $(({ id: k }) => [
|
|
3876
|
+
f("div", {
|
|
3611
3877
|
class: "onyx-textarea__wrapper",
|
|
3612
|
-
"data-autosize-value":
|
|
3878
|
+
"data-autosize-value": c.value
|
|
3613
3879
|
}, [
|
|
3614
|
-
|
|
3615
|
-
|
|
3880
|
+
K(f("textarea", {
|
|
3881
|
+
id: k,
|
|
3882
|
+
"onUpdate:modelValue": v[0] || (v[0] = (S) => c.value = S),
|
|
3616
3883
|
class: g(["onyx-textarea__native", { "onyx-textarea__native--no-resize": e.disableManualResize }]),
|
|
3617
3884
|
placeholder: e.placeholder,
|
|
3618
3885
|
required: e.required,
|
|
@@ -3625,25 +3892,25 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3625
3892
|
maxlength: e.maxlength,
|
|
3626
3893
|
"aria-label": e.hideLabel ? e.label : void 0,
|
|
3627
3894
|
title: e.hideLabel ? e.label : void 0,
|
|
3628
|
-
onInput:
|
|
3629
|
-
onChange:
|
|
3630
|
-
onFocus:
|
|
3631
|
-
onBlur:
|
|
3632
|
-
}, null, 42,
|
|
3633
|
-
[
|
|
3634
|
-
[r(
|
|
3895
|
+
onInput: d,
|
|
3896
|
+
onChange: i,
|
|
3897
|
+
onFocus: v[1] || (v[1] = (S) => l("focus")),
|
|
3898
|
+
onBlur: v[2] || (v[2] = (S) => l("blur"))
|
|
3899
|
+
}, null, 42, wn), [
|
|
3900
|
+
[ze, c.value],
|
|
3901
|
+
[r(n)]
|
|
3635
3902
|
])
|
|
3636
|
-
], 8,
|
|
3903
|
+
], 8, kn)
|
|
3637
3904
|
]),
|
|
3638
3905
|
_: 1
|
|
3639
3906
|
}, 16, ["error-messages"])
|
|
3640
3907
|
], 6));
|
|
3641
3908
|
}
|
|
3642
|
-
}),
|
|
3909
|
+
}), Cn = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m8.485 22.485A11.92 11.92 0 0 1 16 28C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12c0 3.205-1.248 6.219-3.515 8.485"/><path d="M15 22h2v2h-2zm0-14h2v11h-2z"/></svg>', $n = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12"/><path d="m12.987 19.063-3.291-3.292-1.414 1.415 4.705 4.706 9.707-9.708-1.414-1.414z"/></svg>', Mn = { class: "onyx-toast-message__wrapper" }, Bn = { class: "onyx-toast-message__content onyx-truncation-ellipsis" }, Vn = { class: "onyx-toast-message__headline onyx-text" }, Sn = { class: "onyx-truncation-ellipsis" }, On = ["aria-label"], Ln = {
|
|
3643
3910
|
key: 0,
|
|
3644
3911
|
class: "onyx-toast-message__description onyx-text--small onyx-truncation-multiline",
|
|
3645
3912
|
tabindex: "0"
|
|
3646
|
-
},
|
|
3913
|
+
}, Tn = /* @__PURE__ */ w({
|
|
3647
3914
|
__name: "OnyxToastMessage",
|
|
3648
3915
|
props: {
|
|
3649
3916
|
density: {},
|
|
@@ -3656,65 +3923,65 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3656
3923
|
},
|
|
3657
3924
|
emits: ["click", "close"],
|
|
3658
3925
|
setup(t, { emit: a }) {
|
|
3659
|
-
const e = t, l = a, { t:
|
|
3660
|
-
neutral:
|
|
3661
|
-
danger:
|
|
3662
|
-
warning:
|
|
3663
|
-
success:
|
|
3664
|
-
},
|
|
3926
|
+
const e = t, l = a, { t: n } = N(), { densityClass: o } = H(e), u = h(() => e.duration > 0), c = {
|
|
3927
|
+
neutral: pt,
|
|
3928
|
+
danger: ct,
|
|
3929
|
+
warning: Cn,
|
|
3930
|
+
success: $n
|
|
3931
|
+
}, i = h(() => {
|
|
3665
3932
|
if (e.icon !== !1)
|
|
3666
|
-
return e.icon ||
|
|
3933
|
+
return e.icon || c[e.color];
|
|
3667
3934
|
});
|
|
3668
|
-
return (
|
|
3935
|
+
return (y, d) => (s(), x(ce(e.clickable ? "button" : "div"), {
|
|
3669
3936
|
class: g(["onyx-toast-message", [`onyx-toast-message--${e.color}`, r(o)]]),
|
|
3670
3937
|
role: e.color === "danger" || e.color === "warning" ? "alert" : "status",
|
|
3671
3938
|
"aria-label": e.clickable ? e.headline : void 0,
|
|
3672
|
-
onClick:
|
|
3939
|
+
onClick: d[2] || (d[2] = (m) => e.clickable && l("click"))
|
|
3673
3940
|
}, {
|
|
3674
3941
|
default: $(() => [
|
|
3675
|
-
|
|
3676
|
-
|
|
3942
|
+
f("div", Mn, [
|
|
3943
|
+
i.value ? (s(), x(A, {
|
|
3677
3944
|
key: 0,
|
|
3678
|
-
icon:
|
|
3945
|
+
icon: i.value
|
|
3679
3946
|
}, null, 8, ["icon"])) : _("", !0),
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
e.clickable ? _("", !0) : (
|
|
3947
|
+
f("div", Bn, [
|
|
3948
|
+
f("div", Vn, [
|
|
3949
|
+
f("span", Sn, V(e.headline), 1),
|
|
3950
|
+
e.clickable ? _("", !0) : (s(), p("button", {
|
|
3684
3951
|
key: 0,
|
|
3685
3952
|
type: "button",
|
|
3686
|
-
"aria-label": r(
|
|
3953
|
+
"aria-label": r(n)("close"),
|
|
3687
3954
|
class: "onyx-toast-message__close",
|
|
3688
|
-
onClick:
|
|
3955
|
+
onClick: d[0] || (d[0] = (m) => l("close"))
|
|
3689
3956
|
}, [
|
|
3690
|
-
|
|
3691
|
-
], 8,
|
|
3957
|
+
M(A, { icon: r(qe) }, null, 8, ["icon"])
|
|
3958
|
+
], 8, On))
|
|
3692
3959
|
]),
|
|
3693
|
-
e.description ? (
|
|
3960
|
+
e.description ? (s(), p("p", Ln, V(e.description), 1)) : _("", !0)
|
|
3694
3961
|
])
|
|
3695
3962
|
]),
|
|
3696
|
-
|
|
3963
|
+
u.value ? (s(), p("time", {
|
|
3697
3964
|
key: e.duration,
|
|
3698
3965
|
"aria-hidden": "true",
|
|
3699
3966
|
class: "onyx-toast-message__progress-bar",
|
|
3700
|
-
style:
|
|
3701
|
-
onAnimationend:
|
|
3967
|
+
style: Ee({ animationDuration: `${e.duration}ms` }),
|
|
3968
|
+
onAnimationend: d[1] || (d[1] = (m) => l("close"))
|
|
3702
3969
|
}, null, 36)) : _("", !0)
|
|
3703
3970
|
]),
|
|
3704
3971
|
_: 1
|
|
3705
3972
|
}, 8, ["class", "role", "aria-label"]));
|
|
3706
3973
|
}
|
|
3707
|
-
}),
|
|
3974
|
+
}), Vt = Symbol(), En = () => {
|
|
3708
3975
|
let t = 1;
|
|
3709
|
-
const a =
|
|
3976
|
+
const a = T([]), e = (n) => {
|
|
3710
3977
|
const o = t++;
|
|
3711
3978
|
a.value.unshift({
|
|
3712
|
-
...
|
|
3979
|
+
...n,
|
|
3713
3980
|
id: o,
|
|
3714
3981
|
onClose: () => l(o)
|
|
3715
3982
|
});
|
|
3716
|
-
}, l = (
|
|
3717
|
-
a.value = a.value.filter((o) => o.id !==
|
|
3983
|
+
}, l = (n) => {
|
|
3984
|
+
a.value = a.value.filter((o) => o.id !== n);
|
|
3718
3985
|
};
|
|
3719
3986
|
return {
|
|
3720
3987
|
// make toasts readonly so they can not be modified from the outside
|
|
@@ -3722,14 +3989,14 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3722
3989
|
show: e,
|
|
3723
3990
|
remove: l
|
|
3724
3991
|
};
|
|
3725
|
-
},
|
|
3992
|
+
}, In = () => {
|
|
3726
3993
|
const t = () => {
|
|
3727
3994
|
console.warn(
|
|
3728
3995
|
'Trying to use "useToast()" before the toast provider has been provided. Make sure to "provide" it first.'
|
|
3729
3996
|
);
|
|
3730
3997
|
};
|
|
3731
|
-
return
|
|
3732
|
-
|
|
3998
|
+
return ue(
|
|
3999
|
+
Vt,
|
|
3733
4000
|
// provide fallback so "useToast()" does not return "undefined"
|
|
3734
4001
|
() => ({
|
|
3735
4002
|
toasts: h(() => []),
|
|
@@ -3738,106 +4005,104 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
|
|
|
3738
4005
|
}),
|
|
3739
4006
|
!0
|
|
3740
4007
|
);
|
|
3741
|
-
},
|
|
4008
|
+
}, An = {
|
|
3742
4009
|
key: 0,
|
|
3743
4010
|
class: "onyx-toast",
|
|
3744
4011
|
role: "presentation",
|
|
3745
4012
|
"aria-live": "polite",
|
|
3746
4013
|
open: ""
|
|
3747
|
-
},
|
|
4014
|
+
}, fs = /* @__PURE__ */ w({
|
|
3748
4015
|
__name: "OnyxToast",
|
|
3749
4016
|
setup(t) {
|
|
3750
|
-
const a =
|
|
3751
|
-
return (e, l) => r(a).toasts.value.length ? (
|
|
3752
|
-
(
|
|
3753
|
-
key:
|
|
4017
|
+
const a = In();
|
|
4018
|
+
return (e, l) => r(a).toasts.value.length ? (s(), p("dialog", An, [
|
|
4019
|
+
(s(!0), p(R, null, J(r(a).toasts.value, ({ id: n, ...o }) => (s(), x(Tn, O({
|
|
4020
|
+
key: n,
|
|
3754
4021
|
ref_for: !0
|
|
3755
4022
|
}, o), null, 16))), 128))
|
|
3756
4023
|
])) : _("", !0);
|
|
3757
4024
|
}
|
|
3758
|
-
}),
|
|
4025
|
+
}), _s = ["top", "bottom"], xs = (t = {}) => ({
|
|
3759
4026
|
install: (a) => {
|
|
3760
|
-
|
|
3761
|
-
const e = a.runWithContext(() =>
|
|
3762
|
-
|
|
4027
|
+
Sa(a, t.i18n);
|
|
4028
|
+
const e = a.runWithContext(() => N());
|
|
4029
|
+
Q(() => Hn(e.t.value("optional"))), a.provide(Vt, En());
|
|
3763
4030
|
}
|
|
3764
|
-
}),
|
|
4031
|
+
}), Hn = (t) => {
|
|
3765
4032
|
globalThis.document.body.style.setProperty("--onyx-global-optional-text", t);
|
|
3766
|
-
}
|
|
3767
|
-
const e = Xe(t.toLowerCase()), l = Xe(a.toLowerCase());
|
|
3768
|
-
return e.includes(l);
|
|
3769
|
-
}, Xe = (t) => t.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
4033
|
+
};
|
|
3770
4034
|
export {
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
4035
|
+
Yn as AUTOCAPITALIZE,
|
|
4036
|
+
Un as BUTTON_COLORS,
|
|
4037
|
+
Fn as BUTTON_MODES,
|
|
4038
|
+
Rn as BUTTON_TYPES,
|
|
4039
|
+
zn as DENSITIES,
|
|
4040
|
+
ss as DIRECTIONS,
|
|
4041
|
+
Zn as HEADLINE_TYPES,
|
|
4042
|
+
Gn as ICON_SIZES,
|
|
4043
|
+
jn as INPUT_TYPES,
|
|
4044
|
+
Xn as LINK_TARGETS,
|
|
4045
|
+
be as MOBILE_NAV_BAR_INJECTION_KEY,
|
|
4046
|
+
ds as MULTISELECT_TEXT_MODE,
|
|
4047
|
+
ko as ONYX_BREAKPOINTS,
|
|
4048
|
+
ls as ONYX_COLORS,
|
|
4049
|
+
Dn as OnyxAppLayout,
|
|
4050
|
+
Ye as OnyxAvatar,
|
|
4051
|
+
Nn as OnyxAvatarStack,
|
|
4052
|
+
Wt as OnyxBadge,
|
|
4053
|
+
Ie as OnyxButton,
|
|
4054
|
+
Ve as OnyxCheckbox,
|
|
4055
|
+
qn as OnyxCheckboxGroup,
|
|
4056
|
+
ql as OnyxColorSchemeDialog,
|
|
4057
|
+
Jn as OnyxColorSchemeMenuItem,
|
|
4058
|
+
Za as OnyxDialog,
|
|
4059
|
+
dt as OnyxEmpty,
|
|
4060
|
+
Ue as OnyxExternalLinkIcon,
|
|
4061
|
+
Mt as OnyxFlyoutMenu,
|
|
4062
|
+
ie as OnyxHeadline,
|
|
4063
|
+
A as OnyxIcon,
|
|
4064
|
+
Wa as OnyxIconButton,
|
|
4065
|
+
Se as OnyxInfoTooltip,
|
|
4066
|
+
Kn as OnyxInput,
|
|
4067
|
+
Wn as OnyxLink,
|
|
4068
|
+
Fe as OnyxListItem,
|
|
4069
|
+
X as OnyxLoadingIndicator,
|
|
4070
|
+
$t as OnyxMenuItem,
|
|
4071
|
+
Ml as OnyxMiniSearch,
|
|
4072
|
+
Qe as OnyxMobileNavButton,
|
|
4073
|
+
Al as OnyxNavAppArea,
|
|
4074
|
+
rs as OnyxNavBar,
|
|
4075
|
+
Qn as OnyxNavButton,
|
|
4076
|
+
es as OnyxNavItem,
|
|
4077
|
+
Xl as OnyxNavSeparator,
|
|
4078
|
+
is as OnyxPageLayout,
|
|
4079
|
+
et as OnyxRadioButton,
|
|
4080
|
+
us as OnyxRadioGroup,
|
|
4081
|
+
cs as OnyxSelect,
|
|
4082
|
+
qo as OnyxSelectInput,
|
|
4083
|
+
lt as OnyxSelectOption,
|
|
3820
4084
|
U as OnyxSkeleton,
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
4085
|
+
ps as OnyxStepper,
|
|
4086
|
+
ms as OnyxSwitch,
|
|
4087
|
+
ys as OnyxTable,
|
|
4088
|
+
hs as OnyxTag,
|
|
4089
|
+
vs as OnyxTextarea,
|
|
4090
|
+
ts as OnyxTimer,
|
|
4091
|
+
fs as OnyxToast,
|
|
4092
|
+
Tn as OnyxToastMessage,
|
|
4093
|
+
kt as OnyxTooltip,
|
|
4094
|
+
as as OnyxUserMenu,
|
|
4095
|
+
wt as OnyxVisuallyHidden,
|
|
4096
|
+
os as TEXT_SIZES,
|
|
4097
|
+
Vt as TOAST_PROVIDER_INJECTION_KEY,
|
|
4098
|
+
_s as TOOLTIP_POSITIONS,
|
|
4099
|
+
ns as TRUNCATION_TYPES,
|
|
4100
|
+
xs as createOnyx,
|
|
4101
|
+
En as createToastProvider,
|
|
4102
|
+
No as normalizedIncludes,
|
|
4103
|
+
Sa as provideI18n,
|
|
4104
|
+
Hn as syncGlobalOptionalText,
|
|
3840
4105
|
H as useDensity,
|
|
3841
|
-
|
|
3842
|
-
|
|
4106
|
+
Do as useScrollEnd,
|
|
4107
|
+
In as useToast
|
|
3843
4108
|
};
|