sit-onyx 1.2.0-dev-20251015054546 → 1.2.0-dev-20251015133522
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/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed as m, provide as Ue, inject as be, toRef as ie, ref as D, watch as J, defineComponent as T, watchEffect as Le, toRefs as Nt, createElementBlock as f, openBlock as i, normalizeClass as R, unref as a, renderSlot as E, onMounted as Ce, createBlock as w, resolveDynamicComponent as Be, withCtx as $, createVNode as
|
|
2
|
-
import { iconChevronDownSmall as Ia, iconCircleAttention as vo, iconXSmall as We,
|
|
1
|
+
import { computed as m, provide as Ue, inject as be, toRef as ie, ref as D, watch as J, defineComponent as T, watchEffect as Le, toRefs as Nt, createElementBlock as f, openBlock as i, normalizeClass as R, unref as a, renderSlot as E, onMounted as Ce, createBlock as w, resolveDynamicComponent as Be, withCtx as $, createVNode as O, createElementVNode as y, withModifiers as Re, readonly as At, reactive as yo, onBeforeMount as Tt, onBeforeUnmount as kt, useId as me, toValue as F, nextTick as He, shallowRef as Ze, useTemplateRef as Q, createCommentVNode as S, createTextVNode as Y, toDisplayString as I, normalizeProps as Ne, mergeProps as M, Fragment as K, isProxy as $a, toRaw as Ca, useAttrs as Ea, customRef as Ba, onUnmounted as Vt, normalizeStyle as De, useSlots as ue, createSlots as xe, isRef as Ae, renderList as ce, toHandlers as Ma, resolveComponent as Oa, withDirectives as Se, guardReactiveProps as Qe, vShow as Qt, Teleport as ut, vModelCheckbox as rn, vModelText as fo, h as re, vModelDynamic as cn, withKeys as Do, createStaticVNode as Aa, useModel as Ta } from "vue";
|
|
2
|
+
import { iconChevronDownSmall as Ia, iconCircleAttention as vo, iconXSmall as We, iconMoreVertical as ho, iconX as bo, iconMoreHorizontalSmall as un, iconCircleCheck as Ra, iconCircleX as dn, iconCircleInformation as eo, iconUser as Da, iconArrowSmallUpRight as La, iconChevronRightSmall as go, iconArrowSmallLeft as pn, iconHome as Na, iconMoreHorizontal as Lo, iconChevronLeftSmall as _o, iconSearch as Va, iconCheck as za, iconSearchX as Fa, iconChevronDownUp as Pa, iconCheckSmall as wt, iconPlusSmall as Ua, iconEyeDisabled as Ha, iconListArrowUp as mn, iconListArrowDown as yn, iconArrowsSort as Ga, iconCircleBlock as qa, iconFileDisabled as Ka, iconEyeClosed as Wa, iconEye as ja, iconCircleContrast as Ya, iconTranslate as Ja, iconMenu as Za, iconNotificationFlag as Xa, iconMinus as Qa, iconPlus as el, iconFile as tl, iconFilePdf as ol, iconFileCsv as nl, iconAudio as al, iconVideocam as ll, iconPicture as sl, iconFileRtf as rl, iconFilePpt as il, iconFileXls as cl, iconFileXlsx as ul, iconFileDoc as dl, iconFileGlobe as pl, iconFileArchive as ml, iconFileText as yl, iconCloudArrowUp as fl, iconTrash as vl, iconShareIos as hl, iconArrowSmallRight as bl, iconSettings as gl, iconLogout as _l } from "@sit-onyx/icons";
|
|
3
3
|
const Vp = ["compact", "default", "cozy"], U = (n) => ({
|
|
4
4
|
densityClass: m(() => ({ [`onyx-density-${n.density}`]: !!n.density }))
|
|
5
5
|
}), xl = void 0, fn = Symbol(), ee = Symbol("SKELETON_INJECTED_SYMBOL"), vn = (n) => (t) => m(() => typeof t.skeleton != "symbol" ? t.skeleton : t.skeleton === ee && n?.skeleton === !0 ? 3 : !1), zt = (n) => Ue(fn, vn(n)), kl = vn(), ae = (n) => be(
|
|
@@ -36,10 +36,10 @@ const Vp = ["compact", "default", "cozy"], U = (n) => ({
|
|
|
36
36
|
emit: o,
|
|
37
37
|
key: "modelValue",
|
|
38
38
|
default: () => []
|
|
39
|
-
}), { disabled: r, exclusive: u } = Nt(e), c = ae(e), { densityClass: d } = U(e), p = (v,
|
|
40
|
-
if (!
|
|
39
|
+
}), { disabled: r, exclusive: u } = Nt(e), c = ae(e), { densityClass: d } = U(e), p = (v, b) => {
|
|
40
|
+
if (!b) {
|
|
41
41
|
if (!s.value.includes(v)) return;
|
|
42
|
-
s.value = s.value.filter((
|
|
42
|
+
s.value = s.value.filter((g) => g !== v);
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
if (u.value) {
|
|
@@ -52,8 +52,8 @@ const Vp = ["compact", "default", "cozy"], U = (n) => ({
|
|
|
52
52
|
u,
|
|
53
53
|
(v) => {
|
|
54
54
|
if (v && s.value.length > 1) {
|
|
55
|
-
const
|
|
56
|
-
s.value =
|
|
55
|
+
const b = s.value.at(-1);
|
|
56
|
+
s.value = b != null ? [b] : [];
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
{ immediate: !0 }
|
|
@@ -63,7 +63,7 @@ const Vp = ["compact", "default", "cozy"], U = (n) => ({
|
|
|
63
63
|
updateOpen: p,
|
|
64
64
|
disabled: r,
|
|
65
65
|
skeleton: c
|
|
66
|
-
}), (v,
|
|
66
|
+
}), (v, b) => (i(), f(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
69
|
class: R([
|
|
@@ -123,7 +123,7 @@ const wl = ["innerHTML"], z = /* @__PURE__ */ T({
|
|
|
123
123
|
setup(n) {
|
|
124
124
|
return Ce(() => El("onyx-skeleton")), (t, e) => (i(), f("figure", Bl));
|
|
125
125
|
}
|
|
126
|
-
}),
|
|
126
|
+
}), Ml = ["open"], Ol = ["id", "tabindex", "aria-expanded", "aria-controls", "aria-disabled"], Al = { class: "onyx-accordion-item__header-content" }, Tl = ["id", "aria-labelledby"], Pp = /* @__PURE__ */ T({
|
|
127
127
|
__name: "OnyxAccordionItem",
|
|
128
128
|
props: {
|
|
129
129
|
density: {},
|
|
@@ -138,12 +138,12 @@ const wl = ["innerHTML"], z = /* @__PURE__ */ T({
|
|
|
138
138
|
});
|
|
139
139
|
J(
|
|
140
140
|
() => t.value,
|
|
141
|
-
(v,
|
|
142
|
-
e?.updateOpen(v, e?.openItems.value.includes(v)), e?.updateOpen(
|
|
141
|
+
(v, b) => {
|
|
142
|
+
e?.updateOpen(v, e?.openItems.value.includes(v)), e?.updateOpen(b, !1);
|
|
143
143
|
}
|
|
144
144
|
);
|
|
145
145
|
const l = ae(t), { densityClass: s } = U(t), r = m(() => e?.disabled.value || t.disabled), u = m(() => e?.type.value ?? "default"), c = m(() => `header-${t.value.toString()}`), d = m(() => `panel-${t.value.toString()}`), p = m(() => l.value || e?.skeleton.value);
|
|
146
|
-
return (v,
|
|
146
|
+
return (v, b) => p.value ? (i(), w(Be(u.value === "card" ? X : "div"), {
|
|
147
147
|
key: 0,
|
|
148
148
|
class: R([
|
|
149
149
|
"onyx-component",
|
|
@@ -153,8 +153,8 @@ const wl = ["innerHTML"], z = /* @__PURE__ */ T({
|
|
|
153
153
|
])
|
|
154
154
|
}, {
|
|
155
155
|
default: $(() => [
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
O(X, { class: "onyx-accordion-item-skeleton__main" }),
|
|
157
|
+
O(X, { class: "onyx-accordion-item-skeleton__icon" })
|
|
158
158
|
]),
|
|
159
159
|
_: 1
|
|
160
160
|
/* STABLE */
|
|
@@ -176,16 +176,16 @@ const wl = ["innerHTML"], z = /* @__PURE__ */ T({
|
|
|
176
176
|
"aria-expanded": o.value,
|
|
177
177
|
"aria-controls": d.value,
|
|
178
178
|
"aria-disabled": r.value,
|
|
179
|
-
onClick:
|
|
179
|
+
onClick: b[0] || (b[0] = Re((g) => o.value = !o.value, ["prevent"]))
|
|
180
180
|
}, [
|
|
181
|
-
y("div",
|
|
181
|
+
y("div", Al, [
|
|
182
182
|
E(v.$slots, "header")
|
|
183
183
|
]),
|
|
184
|
-
|
|
184
|
+
O(z, {
|
|
185
185
|
icon: a(Ia),
|
|
186
186
|
class: "onyx-accordion-item__header-icon"
|
|
187
187
|
}, null, 8, ["icon"])
|
|
188
|
-
], 8,
|
|
188
|
+
], 8, Ol),
|
|
189
189
|
y("div", {
|
|
190
190
|
id: d.value,
|
|
191
191
|
class: "onyx-accordion-item__panel",
|
|
@@ -194,7 +194,7 @@ const wl = ["innerHTML"], z = /* @__PURE__ */ T({
|
|
|
194
194
|
}, [
|
|
195
195
|
E(v.$slots, "default")
|
|
196
196
|
], 8, Tl)
|
|
197
|
-
], 10,
|
|
197
|
+
], 10, Ml));
|
|
198
198
|
}
|
|
199
199
|
}), Il = {
|
|
200
200
|
date: { dateStyle: "medium" },
|
|
@@ -209,7 +209,7 @@ const wl = ["innerHTML"], z = /* @__PURE__ */ T({
|
|
|
209
209
|
second: "2-digit",
|
|
210
210
|
timeZoneName: "shortOffset"
|
|
211
211
|
}
|
|
212
|
-
}, Rl = "Yes", Dl = "No", Ll = "(optional)", Nl = "Cancel", Vl = "Apply", zl = "Back", Fl = "Close", Pl = "Now", Ul = { label: "Breadcrumb navigation", home: "Home" }, Hl = { head: { selection: { selectAll: "Select all rows", deselectAll: "Deselect all rows", select: "Add row with ID '{id}' to the selection.", deselect: "Remove row with ID '{id}' from the selection." }, sorting: { action: { asc: "Sort the table ascending by the {field} column.", desc: "Sort the table descending by the {field} column.", none: "Reset sorting." }, menu: { asc: "Sort ascending", desc: "Sort descending", none: "No sorting" } }, filtering: { removeLabel: "Remove search term for column {column}", menu: { label: "Search column {column}", placeholder: "Search column" } }, hideColumns: { revealFlyout: "List of hidden columns", revealTrigger: "Show hidden columns", menu: { hideButton: "Hide column" } } }, loadMore: "Load more" }, Gl = { tooShort: { preview: "Too short, minimum {minLength} characters required", fullError: "Make the input at least {minLength} characters long. It is currently {n} characters long. Special characters might use more than one character." }, tooLong: { preview: "Too long, maximum {maxLength} characters allowed", fullError: "Shorten the input to {maxLength} characters or less. It is currently {n} characters long. Special characters might use more than one character." }, rangeUnderflow: { preview: "Too low", fullError: "Input value must be greater than or equal to {min}." }, rangeOverflow: { preview: "Too high", fullError: "Input value must be less than or equal to {max}." }, patternMismatch: { preview: "Invalid format", fullError: "Please match the format requested." }, valueMissing: { preview: "Required", fullError: "The field is empty, it is mandatory and must be filled in." }, stepMismatch: { preview: "Invalid number", fullError: "Please enter a valid number, that is a multiple of {step}." }, badInput: { preview: "Invalid input", fullError: '"{value}" does not match the expected type.' }, typeMismatch: { generic: { preview: "Invalid input type", fullError: '"{value}" does not match the expected type.' }, email: { preview: "Invalid mail", fullError: `"{value}" is not a valid email address. It should be similar to "johndoe{'@'}example.com" (Must contain one {'@'} symbol and a period).` }, number: { preview: "Invalid number", fullError: '"{value}" is not a valid number. Make sure it contains only digits, and optionally a single decimal point.' }, tel: { preview: "Invalid phone number", fullError: '"{value}" is not a valid phone number.' }, url: { preview: "Invalid URL", fullError: '"{value}" is not a valid URL. A URL usually points to a website and should be similar to "https://www.example.com".' } } }, ql = { toggleDropDown: "Toggle selection popover", empty: "No data available", noMatch: "No item matches your search", searchInputLabel: "Filter the list items", clearSearch: "Clear search filter", searchPlaceholder: "Search" }, Kl = { selectAll: "Select all", selectGroup: "Selected", currentSelection: "{n} selected" }, Wl = { decrement: "Decrement by {stepSize}", increment: "Increment by {stepSize}" }, jl = { empty: "This table is empty." }, Yl = { opensExternally: "(opens in a new tab)" }, Jl = "Subpages of {label}", Zl = { appLogo: "App logo of {appName}", goToHome: "Go to home page", goBack: "Go back", moreNavItems: "+{n} More", moreNavItemsLabel: "More Items", showMoreNavItemsLabel: "Show more items", userMenuLabel: "User options", toggleBurgerMenu: "Toggle burger menu", toggleContextMenu: "Toggle context menu", navigationHeadline: "Navigation", moreActionsFlyout: 'Choose an action for the column "{column}"', moreActionsTrigger: "Toggle column actions" }, Xl = { neutral: "Toggle info tooltip", danger: "Toggle error tooltip", success: "Toggle success tooltip" }, Ql = { headline: "Change appearance", subtitle: "Select the appearance of the application:", appearance: "Appearance", auto: { label: "Auto", description: "The application automatically adapts its appearance to your system settings." }, light: { label: "Light", description: "Light mode provides optimal contrast for bright environments." }, dark: { label: "Dark", description: "This color mode is optimized for darker environments." } }, es = { label: "Pagination", ofPages: "of {pages} page | of {pages} pages", previous: "previous page", next: "next page", select: { label: "Page selection", listLabel: "Available pages" } }, ts = { clear: "Clear input", showPassword: "Show Password", hidePassword: "Hide Password" }, os = { close: "Close dialog" }, ns = { copyLink: "Copy link to this headline", copyLinkTo: "Copy link to headline:" }, as = { ariaLabel: "Avatar of {fullName}" }, ls = { clickToAdd: "Add {label} filter", clickToRemove: "Remove {label} filter" }, ss = { label: "Language", headline: "Change language", subtitle: "Select the language of the application:" }, rs = {
|
|
212
|
+
}, Rl = "Yes", Dl = "No", Ll = "(optional)", Nl = "Cancel", Vl = "Apply", zl = "Back", Fl = "Close", Pl = "Now", Ul = { label: "Breadcrumb navigation", home: "Home" }, Hl = { head: { selection: { selectAll: "Select all rows", deselectAll: "Deselect all rows", select: "Add row with ID '{id}' to the selection.", deselect: "Remove row with ID '{id}' from the selection." }, sorting: { action: { asc: "Sort the table ascending by the {field} column.", desc: "Sort the table descending by the {field} column.", none: "Reset sorting." }, menu: { asc: "Sort ascending", desc: "Sort descending", none: "No sorting" } }, filtering: { removeLabel: "Remove search term for column {column}", menu: { label: "Search column {column}", placeholder: "Search column" } }, hideColumns: { revealFlyout: "List of hidden columns", revealTrigger: "Show hidden columns", menu: { hideButton: "Hide column" } } }, loadMore: "Load more" }, Gl = { tooShort: { preview: "Too short, minimum {minLength} characters required", fullError: "Make the input at least {minLength} characters long. It is currently {n} characters long. Special characters might use more than one character." }, tooLong: { preview: "Too long, maximum {maxLength} characters allowed", fullError: "Shorten the input to {maxLength} characters or less. It is currently {n} characters long. Special characters might use more than one character." }, rangeUnderflow: { preview: "Too low", fullError: "Input value must be greater than or equal to {min}." }, rangeOverflow: { preview: "Too high", fullError: "Input value must be less than or equal to {max}." }, patternMismatch: { preview: "Invalid format", fullError: "Please match the format requested." }, valueMissing: { preview: "Required", fullError: "The field is empty, it is mandatory and must be filled in." }, stepMismatch: { preview: "Invalid number", fullError: "Please enter a valid number, that is a multiple of {step}." }, badInput: { preview: "Invalid input", fullError: '"{value}" does not match the expected type.' }, typeMismatch: { generic: { preview: "Invalid input type", fullError: '"{value}" does not match the expected type.' }, email: { preview: "Invalid mail", fullError: `"{value}" is not a valid email address. It should be similar to "johndoe{'@'}example.com" (Must contain one {'@'} symbol and a period).` }, number: { preview: "Invalid number", fullError: '"{value}" is not a valid number. Make sure it contains only digits, and optionally a single decimal point.' }, tel: { preview: "Invalid phone number", fullError: '"{value}" is not a valid phone number.' }, url: { preview: "Invalid URL", fullError: '"{value}" is not a valid URL. A URL usually points to a website and should be similar to "https://www.example.com".' } } }, ql = { toggleDropDown: "Toggle selection popover", empty: "No data available", noMatch: "No item matches your search", searchInputLabel: "Filter the list items", clearSearch: "Clear search filter", searchPlaceholder: "Search" }, Kl = { selectAll: "Select all", selectGroup: "Selected", currentSelection: "{n} selected" }, Wl = { decrement: "Decrement by {stepSize}", increment: "Increment by {stepSize}" }, jl = { empty: "This table is empty." }, Yl = { opensExternally: "(opens in a new tab)" }, Jl = "Subpages of {label}", Zl = { appLogo: "App logo of {appName}", goToHome: "Go to home page", goBack: "Go back", moreNavItems: "+{n} More", moreNavItemsLabel: "More Items", showMoreNavItemsLabel: "Show more items", userMenuLabel: "User options", toggleBurgerMenu: "Toggle burger menu", toggleContextMenu: "Toggle context menu", navigationHeadline: "Navigation", moreActionsFlyout: 'Choose an action for the column "{column}"', moreActionsTrigger: "Toggle column actions" }, Xl = { neutral: "Toggle info tooltip", danger: "Toggle error tooltip", success: "Toggle success tooltip" }, Ql = { headline: "Change appearance", subtitle: "Select the appearance of the application:", appearance: "Appearance", auto: { label: "Auto", description: "The application automatically adapts its appearance to your system settings." }, light: { label: "Light", description: "Light mode provides optimal contrast for bright environments." }, dark: { label: "Dark", description: "This color mode is optimized for darker environments." } }, es = { label: "Pagination", ofPages: "of {pages} page | of {pages} pages", previous: "previous page", next: "next page", select: { label: "Page selection", listLabel: "Available pages" } }, ts = { clear: "Clear input", showPassword: "Show Password", hidePassword: "Hide Password" }, os = { close: "Close dialog" }, ns = { copyLink: "Copy link to this headline", copyLinkTo: "Copy link to headline:" }, as = { ariaLabel: "Avatar of {fullName}" }, ls = { clickToAdd: "Add {label} filter", clickToRemove: "Remove {label} filter" }, ss = { label: "Language", headline: "Change language", subtitle: "Select the language of the application:" }, rs = { label: "Drag to change width" }, is = { select: "Select", clickToUpload: "Click to select", orDragAndDrop: "or drag and drop file", maxFileSize: "Maximum file size", inTotal: "in total", maxFileCount: "Maximum {n} files to select in total", allowedFileTypes: "Allowed file types: {types}", hideFilesButton: "Hide all files", revealFilesButton: "Show all files", removeFile: "Remove file", status: { fileTypeError: "File with extension '.{extension}' is invalid", fileSizeError: "File exceeds maximum allowed size of {size}", maxFileSizeError: "Total size of all files exceeds maximum allowed of {size}", maxCountError: "Number of files exceeds maximum allowed of {count}" } }, cs = { label: "Global actions" }, us = { todayButton: { label: "Today", tooltip: "Jump to today" }, calenderWeek: "CW", previousMonthButton: "Previous month", nextMonthButton: "Next month" }, ds = { moreActions: "More actions", toggleActions: { click: "Click to toggle action visibility", hover: "Hover/Focus to toggle action visibility" } }, oo = {
|
|
213
213
|
yes: Rl,
|
|
214
214
|
no: Dl,
|
|
215
215
|
optional: Ll,
|
|
@@ -237,15 +237,15 @@ const wl = ["innerHTML"], z = /* @__PURE__ */ T({
|
|
|
237
237
|
avatar: as,
|
|
238
238
|
filterTag: ls,
|
|
239
239
|
languageSelect: ss,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
240
|
+
resizeHandle: rs,
|
|
241
|
+
fileUpload: is,
|
|
242
|
+
globalFAB: cs,
|
|
243
|
+
calendar: us,
|
|
244
|
+
flyoutMenu: ds
|
|
245
245
|
}, ps = {
|
|
246
246
|
decimal: { style: "decimal" }
|
|
247
247
|
}, bn = Symbol(), gn = (n = {}) => {
|
|
248
|
-
const t =
|
|
248
|
+
const t = At(ie(n?.locale ?? "en-US")), e = m(() => n.messages?.[t.value] ?? oo), o = m(() => (r, u = {}) => {
|
|
249
249
|
let c = No(r, e.value) ?? No(r, oo) ?? "";
|
|
250
250
|
return c = ys(c, u.n), fs(c, u);
|
|
251
251
|
}), l = m(() => (r, u) => new Intl.DateTimeFormat(
|
|
@@ -257,7 +257,7 @@ const wl = ["innerHTML"], z = /* @__PURE__ */ T({
|
|
|
257
257
|
).format(r));
|
|
258
258
|
return {
|
|
259
259
|
// If the user provided a custom `t` function, it is used instead of the default.
|
|
260
|
-
t: n.t ?
|
|
260
|
+
t: n.t ? At(ie(n.t)) : o,
|
|
261
261
|
locale: t,
|
|
262
262
|
d: l,
|
|
263
263
|
n: s
|
|
@@ -318,48 +318,48 @@ function Fo(n) {
|
|
|
318
318
|
const hs = je((n) => {
|
|
319
319
|
const t = m({
|
|
320
320
|
get: () => {
|
|
321
|
-
const
|
|
322
|
-
return
|
|
321
|
+
const _ = F(n.viewMonth);
|
|
322
|
+
return _ ? new Date(_) : /* @__PURE__ */ new Date();
|
|
323
323
|
},
|
|
324
|
-
set: (
|
|
324
|
+
set: (_) => n.onUpdateViewMonth?.(new Date(_))
|
|
325
325
|
}), e = m(() => {
|
|
326
|
-
const
|
|
326
|
+
const _ = new Intl.DateTimeFormat(F(n.locale), {
|
|
327
327
|
weekday: F(n.calendarSize) === "big" ? "long" : "short"
|
|
328
|
-
}), h = Array.from({ length: 7 }, (C,
|
|
329
|
-
(C) =>
|
|
328
|
+
}), h = Array.from({ length: 7 }, (C, A) => new Date(2024, 0, 1 + A)).map(
|
|
329
|
+
(C) => _.format(C)
|
|
330
330
|
), k = F(n.weekStartDay), B = ao.indexOf(k);
|
|
331
331
|
return h.slice(B).concat(h.slice(0, B));
|
|
332
332
|
}), o = D(/* @__PURE__ */ new Date());
|
|
333
333
|
J(
|
|
334
334
|
() => F(n.modelValue),
|
|
335
|
-
(
|
|
336
|
-
if (!
|
|
335
|
+
(_) => {
|
|
336
|
+
if (!_) return;
|
|
337
337
|
let h;
|
|
338
|
-
Array.isArray(
|
|
338
|
+
Array.isArray(_) ? h = _.length ? new Date(_[0]) : void 0 : typeof _ == "object" && !(_ instanceof Date) ? h = new Date(_.start) : h = new Date(_), h && (o.value = h);
|
|
339
339
|
}
|
|
340
340
|
);
|
|
341
|
-
const l = (
|
|
341
|
+
const l = (_) => _.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), s = m(() => (_) => {
|
|
342
342
|
const h = F(n.modelValue);
|
|
343
343
|
if (!h) return !1;
|
|
344
344
|
if (Array.isArray(h))
|
|
345
|
-
return h.map((B) => new Date(B)).some((B) => B.toDateString() ===
|
|
345
|
+
return h.map((B) => new Date(B)).some((B) => B.toDateString() === _.toDateString());
|
|
346
346
|
if (typeof h == "object" && !(h instanceof Date)) {
|
|
347
347
|
const k = new Date(h.start), B = h.end ? new Date(h.end) : void 0;
|
|
348
|
-
return k.toDateString() ===
|
|
348
|
+
return k.toDateString() === _.toDateString() || B?.toDateString() === _.toDateString();
|
|
349
349
|
}
|
|
350
|
-
return new Date(h).toDateString() ===
|
|
351
|
-
}), r = m(() => (
|
|
350
|
+
return new Date(h).toDateString() === _.toDateString();
|
|
351
|
+
}), r = m(() => (_) => o.value?.toDateString() === _.toDateString()), u = m(() => (_) => {
|
|
352
352
|
if (F(n.disabled)) return !0;
|
|
353
353
|
const h = F(n.min), k = h ? new Date(h) : void 0;
|
|
354
354
|
k?.setHours(0, 0, 0, 0);
|
|
355
355
|
const B = F(n.max), C = B ? new Date(B) : void 0;
|
|
356
|
-
return C?.setHours(23, 59, 59, 999), k && C ? !Vo(
|
|
356
|
+
return C?.setHours(23, 59, 59, 999), k && C ? !Vo(_, k, C) : k ? _.getTime() < k.getTime() : C ? _.getTime() > C.getTime() : !1;
|
|
357
357
|
}), c = m(() => {
|
|
358
|
-
const
|
|
358
|
+
const _ = F(n.weekStartDay), h = new Date(
|
|
359
359
|
t.value.getFullYear(),
|
|
360
360
|
t.value.getMonth(),
|
|
361
361
|
1
|
|
362
|
-
), B = ((h.getDay() + 6) % 7 - ao.indexOf(
|
|
362
|
+
), B = ((h.getDay() + 6) % 7 - ao.indexOf(_) + 7) % 7, C = 6, A = [];
|
|
363
363
|
for (let L = 0; L < C; L++) {
|
|
364
364
|
const P = new Date(h);
|
|
365
365
|
P.setDate(P.getDate() - B + L * 7);
|
|
@@ -370,43 +370,43 @@ const hs = je((n) => {
|
|
|
370
370
|
isCurrentMonth: V.getMonth() === t.value.getMonth()
|
|
371
371
|
};
|
|
372
372
|
});
|
|
373
|
-
|
|
373
|
+
A.push({
|
|
374
374
|
weekNumber: vs(P),
|
|
375
375
|
days: H
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
|
-
return
|
|
379
|
-
}), d = (
|
|
380
|
-
o.value = new Date(
|
|
378
|
+
return A;
|
|
379
|
+
}), d = (_, h) => {
|
|
380
|
+
o.value = new Date(_), (o.value.getFullYear() !== t.value.getFullYear() || o.value.getMonth() !== t.value.getMonth()) && (t.value = new Date(o.value));
|
|
381
381
|
const k = F(n.selectionMode);
|
|
382
382
|
if (!k || h) return;
|
|
383
383
|
const B = F(n.modelValue);
|
|
384
384
|
switch (k) {
|
|
385
385
|
case "single":
|
|
386
|
-
n.onUpdateModelValue?.(new Date(
|
|
386
|
+
n.onUpdateModelValue?.(new Date(_));
|
|
387
387
|
break;
|
|
388
388
|
case "multiple": {
|
|
389
|
-
let C = Array.isArray(B) ? B.map((
|
|
390
|
-
s.value(
|
|
389
|
+
let C = Array.isArray(B) ? B.map((A) => new Date(A)) : [];
|
|
390
|
+
s.value(_) ? C = C.filter((A) => A.toDateString() !== _.toDateString()) : C.push(new Date(_)), n.onUpdateModelValue?.(C);
|
|
391
391
|
break;
|
|
392
392
|
}
|
|
393
393
|
case "range": {
|
|
394
394
|
const C = typeof B == "object" && !(B instanceof Date) && !Array.isArray(B) ? B : void 0;
|
|
395
|
-
let
|
|
396
|
-
C?.start && C.end ?
|
|
397
|
-
start: C?.start ? new Date(C.start) : new Date(
|
|
398
|
-
end: C?.start ? new Date(
|
|
399
|
-
},
|
|
395
|
+
let A;
|
|
396
|
+
C?.start && C.end ? A = { start: new Date(_) } : A = {
|
|
397
|
+
start: C?.start ? new Date(C.start) : new Date(_),
|
|
398
|
+
end: C?.start ? new Date(_) : void 0
|
|
399
|
+
}, A = Fo(A), n.onUpdateModelValue?.(A);
|
|
400
400
|
break;
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
}, p = async (
|
|
403
|
+
}, p = async (_) => {
|
|
404
404
|
let h;
|
|
405
405
|
const k = (B, C = "days") => {
|
|
406
|
-
const
|
|
407
|
-
return C === "month" ?
|
|
406
|
+
const A = new Date(o.value);
|
|
407
|
+
return C === "month" ? A.setMonth(A.getMonth() + B) : A.setDate(A.getDate() + B), A;
|
|
408
408
|
};
|
|
409
|
-
switch (
|
|
409
|
+
switch (_.key) {
|
|
410
410
|
case "ArrowUp":
|
|
411
411
|
h = k(-7);
|
|
412
412
|
break;
|
|
@@ -430,27 +430,27 @@ const hs = je((n) => {
|
|
|
430
430
|
break;
|
|
431
431
|
}
|
|
432
432
|
case "PageUp":
|
|
433
|
-
h = k(-(
|
|
433
|
+
h = k(-(_.shiftKey ? 12 : 1), "month");
|
|
434
434
|
break;
|
|
435
435
|
case "PageDown":
|
|
436
|
-
h = k(
|
|
436
|
+
h = k(_.shiftKey ? 12 : 1, "month");
|
|
437
437
|
break;
|
|
438
438
|
}
|
|
439
|
-
!h || u.value(h) || (
|
|
440
|
-
}, v = m(() => (
|
|
439
|
+
!h || u.value(h) || (_.preventDefault(), d(h, !0), await He(), x.value?.querySelector(`[data-date="${o.value.toDateString()}"]`)?.focus());
|
|
440
|
+
}, v = m(() => (_, h) => {
|
|
441
441
|
const k = h ?? F(n.modelValue);
|
|
442
442
|
if (!k || typeof k != "object" || Array.isArray(k) || k instanceof Date)
|
|
443
443
|
return;
|
|
444
444
|
const B = Fo(k), C = new Date(B.start);
|
|
445
445
|
C.setHours(0, 0, 0, 0);
|
|
446
|
-
const
|
|
447
|
-
if (
|
|
448
|
-
if (
|
|
449
|
-
if (
|
|
450
|
-
}),
|
|
446
|
+
const A = B.end ? new Date(B.end) : void 0;
|
|
447
|
+
if (A?.setHours(23, 59, 59, 999), _.toDateString() === C.toDateString()) return "start";
|
|
448
|
+
if (_.toDateString() === A?.toDateString()) return "end";
|
|
449
|
+
if (A && Vo(_, C, A)) return "middle";
|
|
450
|
+
}), b = (_) => {
|
|
451
451
|
const h = new Date(t.value);
|
|
452
|
-
h.setMonth(h.getMonth() +
|
|
453
|
-
},
|
|
452
|
+
h.setMonth(h.getMonth() + _, 1), t.value = h;
|
|
453
|
+
}, g = () => {
|
|
454
454
|
t.value = /* @__PURE__ */ new Date();
|
|
455
455
|
}, x = no();
|
|
456
456
|
return {
|
|
@@ -466,29 +466,29 @@ const hs = je((n) => {
|
|
|
466
466
|
onKeydown: p,
|
|
467
467
|
ref: x
|
|
468
468
|
},
|
|
469
|
-
cell: m(() => (
|
|
469
|
+
cell: m(() => (_) => ({
|
|
470
470
|
role: "gridcell",
|
|
471
|
-
"aria-selected": s.value(
|
|
472
|
-
"aria-disabled": u.value(
|
|
471
|
+
"aria-selected": s.value(_.date),
|
|
472
|
+
"aria-disabled": u.value(_.date)
|
|
473
473
|
})),
|
|
474
|
-
button: m(() => (
|
|
474
|
+
button: m(() => (_) => {
|
|
475
475
|
const k = {
|
|
476
|
-
"aria-label": new Intl.DateTimeFormat(F(n.locale), { dateStyle: "full" }).format(
|
|
477
|
-
"data-date":
|
|
476
|
+
"aria-label": new Intl.DateTimeFormat(F(n.locale), { dateStyle: "full" }).format(_.date),
|
|
477
|
+
"data-date": _.date.toDateString()
|
|
478
478
|
};
|
|
479
479
|
if (!F(n.selectionMode)) return k;
|
|
480
|
-
const C = u.value(
|
|
480
|
+
const C = u.value(_.date);
|
|
481
481
|
return {
|
|
482
482
|
...k,
|
|
483
|
-
tabindex: r.value(
|
|
483
|
+
tabindex: r.value(_.date) && !C ? "0" : "-1",
|
|
484
484
|
disabled: C,
|
|
485
|
-
onClick: C ? void 0 : () => d(
|
|
485
|
+
onClick: C ? void 0 : () => d(_.date)
|
|
486
486
|
};
|
|
487
487
|
})
|
|
488
488
|
},
|
|
489
489
|
internals: {
|
|
490
|
-
goToMonthByOffset:
|
|
491
|
-
goToToday:
|
|
490
|
+
goToMonthByOffset: b,
|
|
491
|
+
goToToday: g,
|
|
492
492
|
isSelected: s,
|
|
493
493
|
isToday: l,
|
|
494
494
|
getRangeType: v,
|
|
@@ -661,12 +661,12 @@ const hs = je((n) => {
|
|
|
661
661
|
onToggle: d,
|
|
662
662
|
onSelect: p,
|
|
663
663
|
onActivateFirst: v,
|
|
664
|
-
onActivateLast:
|
|
665
|
-
onActivateNext:
|
|
664
|
+
onActivateLast: b,
|
|
665
|
+
onActivateNext: g,
|
|
666
666
|
onActivatePrevious: x,
|
|
667
|
-
templateRef:
|
|
667
|
+
templateRef: _
|
|
668
668
|
}) => {
|
|
669
|
-
const h = me(), k = m(() => a(n)), B = m(() => a(u)), C = m(() => a(o)),
|
|
669
|
+
const h = me(), k = m(() => a(n)), B = m(() => a(u)), C = m(() => a(o)), A = (N) => {
|
|
670
670
|
const ge = N.target;
|
|
671
671
|
k.value !== "none" && t?.(ge.value);
|
|
672
672
|
}, L = wn((N) => e?.(N)), P = (N) => {
|
|
@@ -675,24 +675,24 @@ const hs = je((n) => {
|
|
|
675
675
|
switch (N.key) {
|
|
676
676
|
case "ArrowUp":
|
|
677
677
|
if (N.preventDefault(), c.value == null)
|
|
678
|
-
return
|
|
678
|
+
return b?.();
|
|
679
679
|
x?.(c.value);
|
|
680
680
|
break;
|
|
681
681
|
case "ArrowDown":
|
|
682
682
|
if (N.preventDefault(), c.value == null)
|
|
683
683
|
return v?.();
|
|
684
|
-
|
|
684
|
+
g?.(c.value);
|
|
685
685
|
break;
|
|
686
686
|
case "Home":
|
|
687
687
|
N.preventDefault(), v?.();
|
|
688
688
|
break;
|
|
689
689
|
case "End":
|
|
690
|
-
N.preventDefault(),
|
|
690
|
+
N.preventDefault(), b?.();
|
|
691
691
|
break;
|
|
692
692
|
}
|
|
693
693
|
}, Z = (N) => {
|
|
694
694
|
if (N.key === "Enter" && N.preventDefault(), !B.value && so(N, Sn))
|
|
695
|
-
return d?.(), N.key === " " && N.preventDefault(), N.key === "End" ?
|
|
695
|
+
return d?.(), N.key === " " && N.preventDefault(), N.key === "End" ? b?.() : v?.();
|
|
696
696
|
if (ws(N, k.value === "none"))
|
|
697
697
|
return P(c.value);
|
|
698
698
|
if (B.value && so(N, $n))
|
|
@@ -720,7 +720,7 @@ const hs = je((n) => {
|
|
|
720
720
|
onSelect: P
|
|
721
721
|
});
|
|
722
722
|
return xo({
|
|
723
|
-
inside:
|
|
723
|
+
inside: _,
|
|
724
724
|
onOutsideClick() {
|
|
725
725
|
B.value && d?.(!0);
|
|
726
726
|
}
|
|
@@ -747,7 +747,7 @@ const hs = je((n) => {
|
|
|
747
747
|
"aria-controls": h,
|
|
748
748
|
"aria-label": a(l),
|
|
749
749
|
"aria-activedescendant": c.value != null ? q(c.value) : void 0,
|
|
750
|
-
onInput:
|
|
750
|
+
onInput: A,
|
|
751
751
|
onKeydown: Z,
|
|
752
752
|
...se.value
|
|
753
753
|
})),
|
|
@@ -765,32 +765,32 @@ const hs = je((n) => {
|
|
|
765
765
|
const t = me(), e = me(), o = no(), l = no(), s = me(), r = m(() => F(n.position) ?? "bottom");
|
|
766
766
|
Ge({
|
|
767
767
|
type: "keydown",
|
|
768
|
-
listener: (
|
|
768
|
+
listener: (b) => b.key === "Escape" && c(!1),
|
|
769
769
|
disabled: m(() => !n.isExpanded.value)
|
|
770
770
|
});
|
|
771
771
|
const u = kn(() => n.onToggle(), 200);
|
|
772
772
|
J(n.isExpanded, () => u.abort());
|
|
773
|
-
const c = (
|
|
773
|
+
const c = (b, g = !1) => {
|
|
774
774
|
if (!n.disabled?.value) {
|
|
775
|
-
if (
|
|
775
|
+
if (b === n.isExpanded.value) {
|
|
776
776
|
u.abort();
|
|
777
777
|
return;
|
|
778
778
|
}
|
|
779
|
-
if (
|
|
779
|
+
if (g) {
|
|
780
780
|
u();
|
|
781
781
|
return;
|
|
782
782
|
}
|
|
783
783
|
n.onToggle();
|
|
784
784
|
}
|
|
785
|
-
}, d = (
|
|
786
|
-
const
|
|
785
|
+
}, d = (b) => {
|
|
786
|
+
const g = document.activeElement, x = g?.closest('[role="menu"]') || l.value;
|
|
787
787
|
if (!x) return;
|
|
788
|
-
const
|
|
789
|
-
r.value === "top" &&
|
|
788
|
+
const _ = Array.from(x.querySelectorAll('[role="menuitem"]')).filter((B) => B.closest('[role="menu"]') === x);
|
|
789
|
+
r.value === "top" && _.reverse();
|
|
790
790
|
let h = 0;
|
|
791
|
-
if (
|
|
792
|
-
const B =
|
|
793
|
-
switch (
|
|
791
|
+
if (g) {
|
|
792
|
+
const B = _.indexOf(g);
|
|
793
|
+
switch (b) {
|
|
794
794
|
case "next":
|
|
795
795
|
h = B + 1;
|
|
796
796
|
break;
|
|
@@ -801,32 +801,32 @@ const hs = je((n) => {
|
|
|
801
801
|
h = 0;
|
|
802
802
|
break;
|
|
803
803
|
case "last":
|
|
804
|
-
h =
|
|
804
|
+
h = _.length - 1;
|
|
805
805
|
break;
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
|
-
|
|
809
|
-
}, p = (
|
|
810
|
-
switch (
|
|
808
|
+
_[h]?.focus();
|
|
809
|
+
}, p = (b) => {
|
|
810
|
+
switch (b.key) {
|
|
811
811
|
case "ArrowDown":
|
|
812
|
-
|
|
812
|
+
b.preventDefault(), d(r.value === "bottom" ? "next" : "prev");
|
|
813
813
|
break;
|
|
814
814
|
case "ArrowUp":
|
|
815
|
-
|
|
815
|
+
b.preventDefault(), d(r.value === "bottom" ? "prev" : "next");
|
|
816
816
|
break;
|
|
817
817
|
case "Home":
|
|
818
|
-
|
|
818
|
+
b.preventDefault(), d("first");
|
|
819
819
|
break;
|
|
820
820
|
case "End":
|
|
821
|
-
|
|
821
|
+
b.preventDefault(), d("last");
|
|
822
822
|
break;
|
|
823
823
|
case " ":
|
|
824
824
|
case "Enter":
|
|
825
|
-
if (
|
|
826
|
-
|
|
825
|
+
if (b.target instanceof HTMLInputElement) break;
|
|
826
|
+
b.preventDefault(), b.target.click();
|
|
827
827
|
break;
|
|
828
828
|
case "Escape":
|
|
829
|
-
|
|
829
|
+
b.preventDefault(), c(!1);
|
|
830
830
|
break;
|
|
831
831
|
}
|
|
832
832
|
}, v = m(() => {
|
|
@@ -934,12 +934,12 @@ const hs = je((n) => {
|
|
|
934
934
|
const t = /* @__PURE__ */ new Map(), e = (l) => (t.has(l) || t.set(l, { tabId: me(), panelId: me() }), t.get(l)), o = (l) => {
|
|
935
935
|
const s = l.target, r = Array.from(
|
|
936
936
|
s.parentElement?.querySelectorAll('[role="tab"]') ?? []
|
|
937
|
-
).filter((
|
|
938
|
-
|
|
939
|
-
}, d = () => c(r.at(0)), p = () => c(r.at(-1)), v = (
|
|
937
|
+
).filter((b) => b.ariaDisabled !== "true"), u = r.indexOf(s), c = (b) => {
|
|
938
|
+
b instanceof HTMLElement && b.focus();
|
|
939
|
+
}, d = () => c(r.at(0)), p = () => c(r.at(-1)), v = (b) => {
|
|
940
940
|
if (u === -1) return;
|
|
941
|
-
const
|
|
942
|
-
return
|
|
941
|
+
const g = b === "next" ? u + 1 : u - 1;
|
|
942
|
+
return g < 0 ? p() : g >= r.length ? d() : c(r.at(g));
|
|
943
943
|
};
|
|
944
944
|
switch (l.key) {
|
|
945
945
|
case "ArrowRight":
|
|
@@ -957,8 +957,8 @@ const hs = je((n) => {
|
|
|
957
957
|
case "Enter":
|
|
958
958
|
case " ":
|
|
959
959
|
{
|
|
960
|
-
const
|
|
961
|
-
|
|
960
|
+
const b = Array.from(t.entries()).find(([, { tabId: g }]) => g === s.id);
|
|
961
|
+
b && n.onSelect?.(b[0]);
|
|
962
962
|
}
|
|
963
963
|
break;
|
|
964
964
|
}
|
|
@@ -998,7 +998,7 @@ const hs = je((n) => {
|
|
|
998
998
|
t.key === "Escape" && (n.value = !1);
|
|
999
999
|
},
|
|
1000
1000
|
disabled: m(() => !n.value)
|
|
1001
|
-
}),
|
|
1001
|
+
}), Ms = je(
|
|
1002
1002
|
({ toggleLabel: n, isVisible: t }) => {
|
|
1003
1003
|
const e = me(), o = ie(t ?? !1);
|
|
1004
1004
|
Cn({ isExpanded: o });
|
|
@@ -1034,7 +1034,7 @@ const hs = je((n) => {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
};
|
|
1036
1036
|
}
|
|
1037
|
-
),
|
|
1037
|
+
), Os = je(({ debounce: n, isVisible: t }) => {
|
|
1038
1038
|
const e = me(), o = ie(t ?? !1);
|
|
1039
1039
|
let l;
|
|
1040
1040
|
const s = m({
|
|
@@ -1075,7 +1075,7 @@ const hs = je((n) => {
|
|
|
1075
1075
|
isVisible: o
|
|
1076
1076
|
}
|
|
1077
1077
|
};
|
|
1078
|
-
}),
|
|
1078
|
+
}), As = ["aria-modal", "aria-label", "role"], Ts = {
|
|
1079
1079
|
ref: "contentRef",
|
|
1080
1080
|
class: "onyx-basic-dialog__content"
|
|
1081
1081
|
}, En = /* @__PURE__ */ T({
|
|
@@ -1140,7 +1140,7 @@ const hs = je((n) => {
|
|
|
1140
1140
|
512
|
|
1141
1141
|
/* NEED_PATCH */
|
|
1142
1142
|
)
|
|
1143
|
-
], 42,
|
|
1143
|
+
], 42, As)) : S("v-if", !0);
|
|
1144
1144
|
}
|
|
1145
1145
|
}), Bn = (n, t) => {
|
|
1146
1146
|
const e = It(n.toLowerCase()), o = It(t.toLowerCase());
|
|
@@ -1155,13 +1155,13 @@ const hs = je((n) => {
|
|
|
1155
1155
|
}, Bt = (n, t, e) => {
|
|
1156
1156
|
const o = new Intl.Segmenter(t, { granularity: "grapheme" });
|
|
1157
1157
|
return Array.from(o.segment(n)).map((s) => s.segment).at(e) ?? "";
|
|
1158
|
-
}, Ds = /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/, nt = (n) => typeof n == "string" ? { href: n } : n,
|
|
1159
|
-
const n = be(
|
|
1158
|
+
}, Ds = /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/, nt = (n) => typeof n == "string" ? { href: n } : n, Mn = (n) => !URL.canParse(n), dt = () => {
|
|
1159
|
+
const n = be(On, void 0), t = m(() => {
|
|
1160
1160
|
if (!n) return;
|
|
1161
1161
|
const l = a(n.currentRoute);
|
|
1162
1162
|
return typeof l == "string" ? { path: l } : l;
|
|
1163
1163
|
}), e = (l, s) => {
|
|
1164
|
-
n &&
|
|
1164
|
+
n && Mn(s) && Ls(l) && (l.preventDefault(), n.push(s));
|
|
1165
1165
|
}, o = m(() => (l) => {
|
|
1166
1166
|
if (!t.value || l == null) return !1;
|
|
1167
1167
|
const s = Ho(nt(l).href), r = Ho(t.value.path), { hash: u } = t.value;
|
|
@@ -1179,7 +1179,7 @@ const hs = je((n) => {
|
|
|
1179
1179
|
}, Ho = (n) => {
|
|
1180
1180
|
const t = n.trim();
|
|
1181
1181
|
return t === "" ? "/" : t === "/" ? t : t.replace(/\/+$/, "");
|
|
1182
|
-
},
|
|
1182
|
+
}, On = Symbol(), et = /* @__PURE__ */ T({
|
|
1183
1183
|
__name: "OnyxVisuallyHidden",
|
|
1184
1184
|
props: {
|
|
1185
1185
|
is: { default: "span" }
|
|
@@ -1258,7 +1258,7 @@ const hs = je((n) => {
|
|
|
1258
1258
|
onClick: c[0] || (c[0] = (d) => r(l.value))
|
|
1259
1259
|
}, {
|
|
1260
1260
|
default: $(() => [
|
|
1261
|
-
|
|
1261
|
+
O(et, null, {
|
|
1262
1262
|
default: $(() => [
|
|
1263
1263
|
Y(
|
|
1264
1264
|
I(a(e)("headline.copyLinkTo")),
|
|
@@ -1291,15 +1291,15 @@ const hs = je((n) => {
|
|
|
1291
1291
|
{ once: !0 }
|
|
1292
1292
|
);
|
|
1293
1293
|
});
|
|
1294
|
-
},
|
|
1294
|
+
}, An = Symbol(), ne = Symbol("FORM_INJECTED_SYMBOL"), Wt = (n, t, e, o) => m(() => {
|
|
1295
1295
|
const l = t.value[e];
|
|
1296
1296
|
return l != null && typeof l != "symbol" ? l : l === ne ? n?.value[e] ?? o : o;
|
|
1297
1297
|
}), Tn = (n) => (t) => ({
|
|
1298
1298
|
disabled: Wt(n, t, "disabled", !1),
|
|
1299
1299
|
showError: Wt(n, t, "showError", "touched"),
|
|
1300
1300
|
requiredMarker: Wt(n, t, "requiredMarker", "required")
|
|
1301
|
-
}), Vs = (n) => Ue(
|
|
1302
|
-
|
|
1301
|
+
}), Vs = (n) => Ue(An, Tn(n && ie(n))), zs = Tn(), ke = (n) => be(
|
|
1302
|
+
An,
|
|
1303
1303
|
/** Default */
|
|
1304
1304
|
zs
|
|
1305
1305
|
)(ie(n)), Fs = ["disabled", "type", "autofocus"], mt = /* @__PURE__ */ T({
|
|
@@ -1317,7 +1317,7 @@ const hs = je((n) => {
|
|
|
1317
1317
|
);
|
|
1318
1318
|
return Ie(e, t), (s, r) => l.value ? (i(), w(
|
|
1319
1319
|
pt,
|
|
1320
|
-
Ne(
|
|
1320
|
+
Ne(M({ key: 0 }, l.value)),
|
|
1321
1321
|
{
|
|
1322
1322
|
default: $(() => [
|
|
1323
1323
|
E(s.$slots, "default")
|
|
@@ -1353,7 +1353,7 @@ const hs = je((n) => {
|
|
|
1353
1353
|
return (o, l) => a(e) ? (i(), w(X, {
|
|
1354
1354
|
key: 0,
|
|
1355
1355
|
class: R(["onyx-system-button-skeleton", t.icon ? "" : "onyx-system-button-skeleton--text"])
|
|
1356
|
-
}, null, 8, ["class"])) : (i(), w(mt,
|
|
1356
|
+
}, null, 8, ["class"])) : (i(), w(mt, M({ key: 1 }, t, {
|
|
1357
1357
|
type: "button",
|
|
1358
1358
|
class: ["onyx-system-button", "onyx-text--small", `onyx-system-button--${t.color}`],
|
|
1359
1359
|
"aria-label": t.label,
|
|
@@ -1393,7 +1393,7 @@ const hs = je((n) => {
|
|
|
1393
1393
|
emits: ["update:open"],
|
|
1394
1394
|
setup(n, { emit: t }) {
|
|
1395
1395
|
const e = n, o = t, { t: l } = W(), { densityClass: s } = U(e), r = me();
|
|
1396
|
-
return (u, c) => (i(), w(En,
|
|
1396
|
+
return (u, c) => (i(), w(En, M({
|
|
1397
1397
|
class: ["onyx-alert-modal", a(s)]
|
|
1398
1398
|
}, e, {
|
|
1399
1399
|
"aria-describedby": a(r),
|
|
@@ -1405,7 +1405,7 @@ const hs = je((n) => {
|
|
|
1405
1405
|
y("div", Ps, [
|
|
1406
1406
|
e.icon ? (i(), w(
|
|
1407
1407
|
z,
|
|
1408
|
-
|
|
1408
|
+
M({
|
|
1409
1409
|
key: 0,
|
|
1410
1410
|
class: "onyx-alert-modal__icon"
|
|
1411
1411
|
}, e.icon, { size: "64px" }),
|
|
@@ -1418,7 +1418,7 @@ const hs = je((n) => {
|
|
|
1418
1418
|
E(u.$slots, "headline", {
|
|
1419
1419
|
label: e.label
|
|
1420
1420
|
}, () => [
|
|
1421
|
-
|
|
1421
|
+
O(Ve, { is: "h2" }, {
|
|
1422
1422
|
default: $(() => [
|
|
1423
1423
|
Y(
|
|
1424
1424
|
I(e.label),
|
|
@@ -1430,7 +1430,7 @@ const hs = je((n) => {
|
|
|
1430
1430
|
/* STABLE */
|
|
1431
1431
|
})
|
|
1432
1432
|
]),
|
|
1433
|
-
|
|
1433
|
+
O($e, {
|
|
1434
1434
|
class: "onyx-alert-modal__close",
|
|
1435
1435
|
label: a(l)("dialog.close"),
|
|
1436
1436
|
icon: a(We),
|
|
@@ -1493,7 +1493,7 @@ const hs = je((n) => {
|
|
|
1493
1493
|
return e[rt] = n ?? [], e;
|
|
1494
1494
|
}, Go = (n) => !!n && typeof n == "object" && rt in n, he = (...n) => n.reduce((t, e) => {
|
|
1495
1495
|
e?.ref;
|
|
1496
|
-
const o = e && $a(e) && "ref" in e ? Ca(e).ref : e?.ref, l = t?.ref, s =
|
|
1496
|
+
const o = e && $a(e) && "ref" in e ? Ca(e).ref : e?.ref, l = t?.ref, s = M(t ?? {}, e ?? {});
|
|
1497
1497
|
if (!l && !o)
|
|
1498
1498
|
return s;
|
|
1499
1499
|
if (!l || !o)
|
|
@@ -1601,24 +1601,24 @@ const hs = je((n) => {
|
|
|
1601
1601
|
offset: r = 0
|
|
1602
1602
|
}) => {
|
|
1603
1603
|
const u = D("-1000px"), c = D("-1000px"), { isIntersecting: d } = Ws(t), p = () => {
|
|
1604
|
-
const
|
|
1605
|
-
if (!
|
|
1604
|
+
const b = Xe(n.value), g = Xe(t.value);
|
|
1605
|
+
if (!b || !g)
|
|
1606
1606
|
return;
|
|
1607
|
-
const x =
|
|
1607
|
+
const x = g.getBoundingClientRect(), _ = b.getBoundingClientRect();
|
|
1608
1608
|
let h = 0, k = 0;
|
|
1609
|
-
const B = F(l) && F(o) !== "center" && (F(e) === "top" || F(e) === "bottom") ? F(o) === "left" || F(s) ? x.left : x.right -
|
|
1609
|
+
const B = F(l) && F(o) !== "center" && (F(e) === "top" || F(e) === "bottom") ? F(o) === "left" || F(s) ? x.left : x.right - _.width : x.left + x.width / 2 - _.width / 2;
|
|
1610
1610
|
switch (F(e)) {
|
|
1611
1611
|
case "top":
|
|
1612
|
-
h = x.top -
|
|
1612
|
+
h = x.top - _.height - r, k = B;
|
|
1613
1613
|
break;
|
|
1614
1614
|
case "top right":
|
|
1615
|
-
h = x.top -
|
|
1615
|
+
h = x.top - _.height - r, k = x.right + r;
|
|
1616
1616
|
break;
|
|
1617
1617
|
case "top left":
|
|
1618
|
-
h = x.top -
|
|
1618
|
+
h = x.top - _.height - r, k = x.left - _.width - r;
|
|
1619
1619
|
break;
|
|
1620
1620
|
case "right":
|
|
1621
|
-
h = x.top + x.height / 2 -
|
|
1621
|
+
h = x.top + x.height / 2 - _.height / 2, k = x.right + r;
|
|
1622
1622
|
break;
|
|
1623
1623
|
case "bottom":
|
|
1624
1624
|
h = x.bottom + r, k = B;
|
|
@@ -1627,10 +1627,10 @@ const hs = je((n) => {
|
|
|
1627
1627
|
h = x.bottom + r, k = x.right + r;
|
|
1628
1628
|
break;
|
|
1629
1629
|
case "bottom left":
|
|
1630
|
-
h = x.bottom + r, k = x.left -
|
|
1630
|
+
h = x.bottom + r, k = x.left - _.width - r;
|
|
1631
1631
|
break;
|
|
1632
1632
|
case "left":
|
|
1633
|
-
h = x.top + x.height / 2 -
|
|
1633
|
+
h = x.top + x.height / 2 - _.height / 2, k = x.left - _.width - r;
|
|
1634
1634
|
break;
|
|
1635
1635
|
}
|
|
1636
1636
|
u.value = `${k}px`, c.value = `${h}px`;
|
|
@@ -1673,8 +1673,8 @@ const hs = je((n) => {
|
|
|
1673
1673
|
l.value = e;
|
|
1674
1674
|
return;
|
|
1675
1675
|
}
|
|
1676
|
-
const p = (d.width - c.width + 32) / 2, v = d.width - c.width + 16,
|
|
1677
|
-
e === "right" &&
|
|
1676
|
+
const p = (d.width - c.width + 32) / 2, v = d.width - c.width + 16, b = window.innerWidth, g = c.left, x = b - c.right, _ = g >= p, h = x >= p;
|
|
1677
|
+
e === "right" && g >= v || e === "left" && x >= v || e === "center" && _ && h ? l.value = e : g > x ? l.value = "right" : l.value = "left";
|
|
1678
1678
|
}
|
|
1679
1679
|
};
|
|
1680
1680
|
}, wo = (n, t = "bottom") => {
|
|
@@ -1767,9 +1767,9 @@ const Ys = ["role", "aria-label"], So = /* @__PURE__ */ T({
|
|
|
1767
1767
|
set: (le) => s.value = le,
|
|
1768
1768
|
get: () => typeof o.open == "boolean" && !o.disabled ? o.open : s.value
|
|
1769
1769
|
}), u = m(
|
|
1770
|
-
() => o.position === "auto" ?
|
|
1770
|
+
() => o.position === "auto" ? g.value : o.position
|
|
1771
1771
|
), c = m(
|
|
1772
|
-
() => o.alignment === "auto" ?
|
|
1772
|
+
() => o.alignment === "auto" ? _.value : o.alignment
|
|
1773
1773
|
);
|
|
1774
1774
|
t({
|
|
1775
1775
|
/**
|
|
@@ -1789,25 +1789,25 @@ const Ys = ["role", "aria-label"], So = /* @__PURE__ */ T({
|
|
|
1789
1789
|
return `${u.value} span-left`;
|
|
1790
1790
|
}
|
|
1791
1791
|
return u.value.includes(" ") ? u.value : `${u.value} center`;
|
|
1792
|
-
}), v = Q("popover"),
|
|
1793
|
-
|
|
1792
|
+
}), v = Q("popover"), b = Q("popoverWrapper"), { openDirection: g, updateOpenDirection: x } = wo(b, "bottom"), { openAlignment: _, updateOpenAlignment: h } = Rn(
|
|
1793
|
+
b,
|
|
1794
1794
|
v,
|
|
1795
1795
|
"left"
|
|
1796
|
-
), { leftPosition: k, topPosition: B, updateAnchorPositionPolyfill: C, useragentSupportsAnchorApi:
|
|
1796
|
+
), { leftPosition: k, topPosition: B, updateAnchorPositionPolyfill: C, useragentSupportsAnchorApi: A } = In({
|
|
1797
1797
|
positionedRef: v,
|
|
1798
|
-
targetRef:
|
|
1798
|
+
targetRef: b,
|
|
1799
1799
|
positionArea: u,
|
|
1800
1800
|
alignment: c,
|
|
1801
1801
|
alignsWithEdge: !0,
|
|
1802
1802
|
fitParent: !1,
|
|
1803
1803
|
offset: 8
|
|
1804
|
-
}), { width: L } = qe(
|
|
1804
|
+
}), { width: L } = qe(b), P = (le) => {
|
|
1805
1805
|
le ? v.value?.showPopover?.() : v.value?.hidePopover?.();
|
|
1806
1806
|
}, H = () => {
|
|
1807
1807
|
x(), h();
|
|
1808
1808
|
}, { stickyStyles: Z, isSticky: se } = js({
|
|
1809
1809
|
popoverRef: v,
|
|
1810
|
-
popoverWrapperRef:
|
|
1810
|
+
popoverWrapperRef: b,
|
|
1811
1811
|
popoverPosition: u,
|
|
1812
1812
|
isVisible: r,
|
|
1813
1813
|
sticky: ie(() => o.sticky)
|
|
@@ -1816,9 +1816,9 @@ const Ys = ["role", "aria-label"], So = /* @__PURE__ */ T({
|
|
|
1816
1816
|
type: "resize",
|
|
1817
1817
|
listener: () => H()
|
|
1818
1818
|
}), Ce(() => {
|
|
1819
|
-
P(r.value), H(),
|
|
1819
|
+
P(r.value), H(), A.value || C();
|
|
1820
1820
|
}), J(r, async (le) => {
|
|
1821
|
-
await He(), P(le), H(),
|
|
1821
|
+
await He(), P(le), H(), A.value || C();
|
|
1822
1822
|
});
|
|
1823
1823
|
const V = () => {
|
|
1824
1824
|
s.value = !s.value, l("update:open", !r.value);
|
|
@@ -1834,16 +1834,16 @@ const Ys = ["role", "aria-label"], So = /* @__PURE__ */ T({
|
|
|
1834
1834
|
"onyx-basic-popover__dialog--fitparent": o.fitParent,
|
|
1835
1835
|
"onyx-basic-popover__dialog--disabled": d.value,
|
|
1836
1836
|
"onyx-basic-popover__dialog--sticky": se.value,
|
|
1837
|
-
"onyx-basic-popover__dialog--dont-support-anchor": !
|
|
1837
|
+
"onyx-basic-popover__dialog--dont-support-anchor": !A.value
|
|
1838
1838
|
}));
|
|
1839
1839
|
J(d, () => {
|
|
1840
1840
|
d.value && (s.value = !1);
|
|
1841
1841
|
}), J([u, c, L], async () => {
|
|
1842
|
-
|
|
1842
|
+
A.value || (await He(), H(), C());
|
|
1843
1843
|
});
|
|
1844
1844
|
const ge = m(() => {
|
|
1845
1845
|
const le = o.fitParent ? `${L.value}px` : void 0;
|
|
1846
|
-
return
|
|
1846
|
+
return A.value ? {
|
|
1847
1847
|
width: le,
|
|
1848
1848
|
"position-anchor": q.value,
|
|
1849
1849
|
"position-area": p.value
|
|
@@ -1893,8 +1893,8 @@ const Ys = ["role", "aria-label"], So = /* @__PURE__ */ T({
|
|
|
1893
1893
|
emit: t,
|
|
1894
1894
|
key: "open",
|
|
1895
1895
|
default: !1
|
|
1896
|
-
}), s = ue(), r = D(), u = m(() => r.value?.popoverPosition), {
|
|
1897
|
-
elements: { root:
|
|
1896
|
+
}), s = ue(), r = D(), u = m(() => r.value?.popoverPosition), { t: c } = W(), {
|
|
1897
|
+
elements: { root: d, button: p, menu: v }
|
|
1898
1898
|
} = $s({
|
|
1899
1899
|
isExpanded: m(() => !!l.value),
|
|
1900
1900
|
onToggle: () => l.value = !l.value,
|
|
@@ -1902,7 +1902,7 @@ const Ys = ["role", "aria-label"], So = /* @__PURE__ */ T({
|
|
|
1902
1902
|
disabled: m(() => e.disabled),
|
|
1903
1903
|
position: m(() => u.value?.includes("top") ? "top" : "bottom")
|
|
1904
1904
|
});
|
|
1905
|
-
return (
|
|
1905
|
+
return (b, g) => (i(), w(So, M(a(he)(a(d), { ref: r.value }), {
|
|
1906
1906
|
class: "onyx-component onyx-flyout-menu",
|
|
1907
1907
|
open: a(l),
|
|
1908
1908
|
label: e.label,
|
|
@@ -1911,19 +1911,19 @@ const Ys = ["role", "aria-label"], So = /* @__PURE__ */ T({
|
|
|
1911
1911
|
}), xe({
|
|
1912
1912
|
content: $(() => [
|
|
1913
1913
|
y("div", Js, [
|
|
1914
|
-
E(
|
|
1914
|
+
E(b.$slots, "header")
|
|
1915
1915
|
]),
|
|
1916
1916
|
s.options ? (i(), f(
|
|
1917
1917
|
"ul",
|
|
1918
|
-
|
|
1918
|
+
M({ key: 0 }, a(v), { class: "onyx-flyout-menu__wrapper onyx-flyout-menu__group" }),
|
|
1919
1919
|
[
|
|
1920
|
-
E(
|
|
1920
|
+
E(b.$slots, "options")
|
|
1921
1921
|
],
|
|
1922
1922
|
16
|
|
1923
1923
|
/* FULL_PROPS */
|
|
1924
1924
|
)) : S("v-if", !0),
|
|
1925
1925
|
y("div", Zs, [
|
|
1926
|
-
E(
|
|
1926
|
+
E(b.$slots, "footer")
|
|
1927
1927
|
])
|
|
1928
1928
|
]),
|
|
1929
1929
|
_: 2
|
|
@@ -1932,7 +1932,12 @@ const Ys = ["role", "aria-label"], So = /* @__PURE__ */ T({
|
|
|
1932
1932
|
s.options || s.header || s.footer ? {
|
|
1933
1933
|
name: "default",
|
|
1934
1934
|
fn: $(() => [
|
|
1935
|
-
E(
|
|
1935
|
+
E(b.$slots, "button", { trigger: a(p) }, () => [
|
|
1936
|
+
O($e, M(a(p), {
|
|
1937
|
+
icon: a(ho),
|
|
1938
|
+
label: a(c)(`flyoutMenu.toggleActions.${e.trigger}`)
|
|
1939
|
+
}), null, 16, ["icon", "label"])
|
|
1940
|
+
])
|
|
1936
1941
|
]),
|
|
1937
1942
|
key: "0"
|
|
1938
1943
|
} : void 0
|
|
@@ -1957,8 +1962,8 @@ const Ys = ["role", "aria-label"], So = /* @__PURE__ */ T({
|
|
|
1957
1962
|
emit: o,
|
|
1958
1963
|
key: "open",
|
|
1959
1964
|
default: !1
|
|
1960
|
-
}), c = m(() => !!l.default), d = m(() => c.value ? u.value ?
|
|
1961
|
-
return (p, v) => !c.value || a(r) ? (i(), w(ro,
|
|
1965
|
+
}), c = m(() => !!l.default), d = m(() => c.value ? u.value ? bo : un : e.icon);
|
|
1966
|
+
return (p, v) => !c.value || a(r) ? (i(), w(ro, M({
|
|
1962
1967
|
key: 0,
|
|
1963
1968
|
class: ["onyx-fab", `onyx-fab--${e.alignment}`]
|
|
1964
1969
|
}, e, {
|
|
@@ -1967,14 +1972,14 @@ const Ys = ["role", "aria-label"], So = /* @__PURE__ */ T({
|
|
|
1967
1972
|
}), null, 16, ["class", "icon", "skeleton"])) : (i(), w(Ye, {
|
|
1968
1973
|
key: 1,
|
|
1969
1974
|
open: a(u),
|
|
1970
|
-
"onUpdate:open": v[0] || (v[0] = (
|
|
1975
|
+
"onUpdate:open": v[0] || (v[0] = (b) => Ae(u) ? u.value = b : null),
|
|
1971
1976
|
label: e.label,
|
|
1972
1977
|
trigger: "click",
|
|
1973
1978
|
class: R(["onyx-fab", `onyx-fab--${e.alignment}`, a(s)]),
|
|
1974
1979
|
alignment: e.alignment
|
|
1975
1980
|
}, {
|
|
1976
|
-
button: $(({ trigger:
|
|
1977
|
-
|
|
1981
|
+
button: $(({ trigger: b }) => [
|
|
1982
|
+
O(ro, M(a(he)(e, b), {
|
|
1978
1983
|
label: e.label,
|
|
1979
1984
|
"hide-label": "",
|
|
1980
1985
|
icon: d.value
|
|
@@ -2002,11 +2007,11 @@ const Ys = ["role", "aria-label"], So = /* @__PURE__ */ T({
|
|
|
2002
2007
|
} = ko();
|
|
2003
2008
|
return (s, r) => (i(), f(
|
|
2004
2009
|
"li",
|
|
2005
|
-
|
|
2010
|
+
M({
|
|
2006
2011
|
class: ["onyx-component", "onyx-fab-item", a(e)]
|
|
2007
2012
|
}, a(o)),
|
|
2008
2013
|
[
|
|
2009
|
-
|
|
2014
|
+
O(ro, M(a(he)(a(l)({}), t), {
|
|
2010
2015
|
label: t.label
|
|
2011
2016
|
}), null, 16, ["label"])
|
|
2012
2017
|
],
|
|
@@ -2047,7 +2052,7 @@ const Ys = ["role", "aria-label"], So = /* @__PURE__ */ T({
|
|
|
2047
2052
|
);
|
|
2048
2053
|
return (l, s) => a(t).items.value.length === 1 ? (i(), w(
|
|
2049
2054
|
qo,
|
|
2050
|
-
Ne(
|
|
2055
|
+
Ne(M({ key: 0 }, a(t).items.value[0].value)),
|
|
2051
2056
|
null,
|
|
2052
2057
|
16
|
|
2053
2058
|
/* FULL_PROPS */
|
|
@@ -2062,7 +2067,7 @@ const Ys = ["role", "aria-label"], So = /* @__PURE__ */ T({
|
|
|
2062
2067
|
null,
|
|
2063
2068
|
ce(a(t).items.value, (r) => (i(), w(
|
|
2064
2069
|
Xs,
|
|
2065
|
-
|
|
2070
|
+
M({
|
|
2066
2071
|
key: r.value.id
|
|
2067
2072
|
}, { ref_for: !0 }, { ...r.value, ...r.value.ifOption }),
|
|
2068
2073
|
null,
|
|
@@ -2210,7 +2215,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2210
2215
|
return (u, c) => a(l) ? (i(), w(X, {
|
|
2211
2216
|
key: 0,
|
|
2212
2217
|
class: R(["onyx-button-skeleton", a(e)])
|
|
2213
|
-
}, null, 8, ["class"])) : (i(), w(mt,
|
|
2218
|
+
}, null, 8, ["class"])) : (i(), w(mt, M({ key: 1 }, t, {
|
|
2214
2219
|
class: [
|
|
2215
2220
|
"onyx-component",
|
|
2216
2221
|
"onyx-button",
|
|
@@ -2220,7 +2225,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2220
2225
|
a(e)
|
|
2221
2226
|
],
|
|
2222
2227
|
"aria-label": t.loading ? t.label : void 0
|
|
2223
|
-
},
|
|
2228
|
+
}, Ma(r.value)), {
|
|
2224
2229
|
default: $(() => [
|
|
2225
2230
|
!a(o) && !t.loading ? (i(), w(
|
|
2226
2231
|
dr,
|
|
@@ -2306,14 +2311,14 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2306
2311
|
l.headerActions ? (i(), w(Ye, {
|
|
2307
2312
|
key: 1,
|
|
2308
2313
|
class: "onyx-info-card__action",
|
|
2309
|
-
label: a(s)("
|
|
2314
|
+
label: a(s)("flyoutMenu.moreActions"),
|
|
2310
2315
|
trigger: "click",
|
|
2311
2316
|
alignment: "right"
|
|
2312
2317
|
}, {
|
|
2313
2318
|
button: $(({ trigger: p }) => [
|
|
2314
|
-
|
|
2315
|
-
label: a(s)("
|
|
2316
|
-
icon: a(
|
|
2319
|
+
O($e, M(p, {
|
|
2320
|
+
label: a(s)("flyoutMenu.toggleActions.click"),
|
|
2321
|
+
icon: a(ho),
|
|
2317
2322
|
color: u.value
|
|
2318
2323
|
}), null, 16, ["label", "icon", "color"])
|
|
2319
2324
|
]),
|
|
@@ -2432,7 +2437,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2432
2437
|
null,
|
|
2433
2438
|
ce(a(t).notifications.value, ({ id: l, ...s }) => (i(), w(
|
|
2434
2439
|
hr,
|
|
2435
|
-
|
|
2440
|
+
M({ key: l }, { ref_for: !0 }, s),
|
|
2436
2441
|
xe({
|
|
2437
2442
|
default: $(() => [
|
|
2438
2443
|
Y(
|
|
@@ -2452,7 +2457,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2452
2457
|
null,
|
|
2453
2458
|
ce(s.buttons, (r) => (i(), w(
|
|
2454
2459
|
ct,
|
|
2455
|
-
|
|
2460
|
+
M({
|
|
2456
2461
|
key: r.label
|
|
2457
2462
|
}, { ref_for: !0 }, r),
|
|
2458
2463
|
null,
|
|
@@ -2527,7 +2532,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2527
2532
|
class: "onyx-toast-message__close",
|
|
2528
2533
|
onClick: p[0] || (p[0] = (v) => o("close"))
|
|
2529
2534
|
}, [
|
|
2530
|
-
|
|
2535
|
+
O(z, { icon: a(We) }, null, 8, ["icon"])
|
|
2531
2536
|
], 8, Cr))
|
|
2532
2537
|
]),
|
|
2533
2538
|
e.description ? (i(), f(
|
|
@@ -2575,7 +2580,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2575
2580
|
show: e,
|
|
2576
2581
|
remove: o
|
|
2577
2582
|
};
|
|
2578
|
-
},
|
|
2583
|
+
}, Mr = () => {
|
|
2579
2584
|
const n = () => {
|
|
2580
2585
|
};
|
|
2581
2586
|
return be(
|
|
@@ -2588,23 +2593,23 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2588
2593
|
}),
|
|
2589
2594
|
!0
|
|
2590
2595
|
);
|
|
2591
|
-
},
|
|
2596
|
+
}, Or = {
|
|
2592
2597
|
key: 0,
|
|
2593
2598
|
class: "onyx-component onyx-toast",
|
|
2594
2599
|
role: "presentation",
|
|
2595
2600
|
"aria-live": "polite",
|
|
2596
2601
|
open: ""
|
|
2597
|
-
},
|
|
2602
|
+
}, Ar = /* @__PURE__ */ T({
|
|
2598
2603
|
__name: "OnyxToast",
|
|
2599
2604
|
setup(n) {
|
|
2600
|
-
const t =
|
|
2601
|
-
return (e, o) => a(t).toasts.value.length ? (i(), f("dialog",
|
|
2605
|
+
const t = Mr();
|
|
2606
|
+
return (e, o) => a(t).toasts.value.length ? (i(), f("dialog", Or, [
|
|
2602
2607
|
(i(!0), f(
|
|
2603
2608
|
K,
|
|
2604
2609
|
null,
|
|
2605
2610
|
ce(a(t).toasts.value, ({ id: l, ...s }) => (i(), w(
|
|
2606
2611
|
zn,
|
|
2607
|
-
|
|
2612
|
+
M({ key: l }, { ref_for: !0 }, s),
|
|
2608
2613
|
null,
|
|
2609
2614
|
16
|
|
2610
2615
|
/* FULL_PROPS */
|
|
@@ -2636,9 +2641,9 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2636
2641
|
y("div", Ir, [
|
|
2637
2642
|
E(o.$slots, "default")
|
|
2638
2643
|
]),
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2644
|
+
O(Ar),
|
|
2645
|
+
O(er),
|
|
2646
|
+
O(xr)
|
|
2642
2647
|
],
|
|
2643
2648
|
2
|
|
2644
2649
|
/* CLASS */
|
|
@@ -2788,9 +2793,9 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2788
2793
|
const u = Ko(n.parentRef.value), c = Ko(n.listRef.value);
|
|
2789
2794
|
l.value > 0 && (r -= l.value + u), t.value = [], e.value = [];
|
|
2790
2795
|
const d = Array.from(s.entries());
|
|
2791
|
-
F(n.direction) === "ltr" && d.reverse(), d.forEach(([p, v],
|
|
2792
|
-
r -= v + (
|
|
2793
|
-
|
|
2796
|
+
F(n.direction) === "ltr" && d.reverse(), d.forEach(([p, v], b, { length: g }) => {
|
|
2797
|
+
r -= v + (b > 0 ? c : 0), r >= 0 || // check if last element fits if more indicator would be hidden
|
|
2798
|
+
b === g - 1 && r + l.value >= 0 ? t.value.push(p) : e.value.push(p);
|
|
2794
2799
|
});
|
|
2795
2800
|
},
|
|
2796
2801
|
{
|
|
@@ -2851,7 +2856,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2851
2856
|
setup(n) {
|
|
2852
2857
|
const t = n, e = m(() => {
|
|
2853
2858
|
const o = t.withExternalIcon;
|
|
2854
|
-
return o !== "auto" ? o : !
|
|
2859
|
+
return o !== "auto" ? o : !Mn(t.href ?? "");
|
|
2855
2860
|
});
|
|
2856
2861
|
return (o, l) => e.value ? (i(), w(z, {
|
|
2857
2862
|
key: 0,
|
|
@@ -2919,13 +2924,13 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2919
2924
|
key: "open",
|
|
2920
2925
|
default: !1
|
|
2921
2926
|
}), d = Q("backButtonRef"), p = Q("menuItemRef"), {
|
|
2922
|
-
elements: { listItem: v, menuItem:
|
|
2927
|
+
elements: { listItem: v, menuItem: b }
|
|
2923
2928
|
} = ko({
|
|
2924
2929
|
onOpen: async () => {
|
|
2925
2930
|
h.value && (c.value = !0, await He(), d.value?.$el.querySelector("button").focus());
|
|
2926
2931
|
}
|
|
2927
|
-
}), { isActive:
|
|
2928
|
-
() =>
|
|
2932
|
+
}), { isActive: g } = dt(), x = m(() => s.active !== "auto" ? s.active : g.value(s.link)), _ = m(
|
|
2933
|
+
() => b({
|
|
2929
2934
|
active: x.value,
|
|
2930
2935
|
disabled: s.disabled
|
|
2931
2936
|
})
|
|
@@ -2942,9 +2947,9 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2942
2947
|
break;
|
|
2943
2948
|
}
|
|
2944
2949
|
};
|
|
2945
|
-
return (C,
|
|
2946
|
-
const L =
|
|
2947
|
-
return i(), w($o,
|
|
2950
|
+
return (C, A) => {
|
|
2951
|
+
const L = Oa("OnyxMenuItem", !0);
|
|
2952
|
+
return i(), w($o, M({
|
|
2948
2953
|
selected: x.value,
|
|
2949
2954
|
active: x.value,
|
|
2950
2955
|
color: s.color,
|
|
@@ -2952,12 +2957,12 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2952
2957
|
class: ["onyx-menu-item", { "onyx-menu-item--open": a(c) }]
|
|
2953
2958
|
}, a(he)(a(v), a(o))), {
|
|
2954
2959
|
default: $(() => [
|
|
2955
|
-
Se(
|
|
2960
|
+
Se(O(mt, M({
|
|
2956
2961
|
ref: "menuItemRef",
|
|
2957
2962
|
class: "onyx-menu-item__trigger",
|
|
2958
2963
|
disabled: s.disabled,
|
|
2959
2964
|
link: s.link
|
|
2960
|
-
}, a(he)(
|
|
2965
|
+
}, a(he)(_.value, a(l), k.value)), {
|
|
2961
2966
|
default: $(() => [
|
|
2962
2967
|
E(C.$slots, "default", {}, () => [
|
|
2963
2968
|
y("span", null, [
|
|
@@ -2968,7 +2973,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2968
2973
|
1
|
|
2969
2974
|
/* TEXT */
|
|
2970
2975
|
),
|
|
2971
|
-
|
|
2976
|
+
O(
|
|
2972
2977
|
Gn,
|
|
2973
2978
|
Ne(Qe(s.link ? a(nt)(s.link) : void 0)),
|
|
2974
2979
|
null,
|
|
@@ -2978,7 +2983,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2978
2983
|
])
|
|
2979
2984
|
]),
|
|
2980
2985
|
h.value ? (i(), f("div", qr, [
|
|
2981
|
-
|
|
2986
|
+
O(z, {
|
|
2982
2987
|
icon: a(go),
|
|
2983
2988
|
size: "24px"
|
|
2984
2989
|
}, null, 8, ["icon"])
|
|
@@ -2993,17 +2998,17 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
2993
2998
|
"ul",
|
|
2994
2999
|
Kr,
|
|
2995
3000
|
[
|
|
2996
|
-
|
|
3001
|
+
O(
|
|
2997
3002
|
L,
|
|
2998
3003
|
{
|
|
2999
3004
|
ref: "backButtonRef",
|
|
3000
3005
|
class: "onyx-menu-item__back",
|
|
3001
3006
|
onKeydown: B,
|
|
3002
|
-
onClick:
|
|
3007
|
+
onClick: A[0] || (A[0] = Re((P) => c.value = !1, ["stop"]))
|
|
3003
3008
|
},
|
|
3004
3009
|
{
|
|
3005
3010
|
default: $(() => [
|
|
3006
|
-
|
|
3011
|
+
O(z, { icon: a(pn) }, null, 8, ["icon"]),
|
|
3007
3012
|
Y(
|
|
3008
3013
|
" " + I(a(e)("back")),
|
|
3009
3014
|
1
|
|
@@ -3040,13 +3045,13 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3040
3045
|
},
|
|
3041
3046
|
setup(n) {
|
|
3042
3047
|
const t = n, { restAttrs: e, rootAttrs: o } = we(), { densityClass: l } = U(t), { currentRoute: s } = dt(), r = ae(t), { componentRef: u, isVisible: c } = Pn(Un), d = be(Hn, void 0), p = m(() => t.href && t.active === "auto" ? t.href === s.value?.path : t.active);
|
|
3043
|
-
return (v,
|
|
3048
|
+
return (v, b) => (i(), f(
|
|
3044
3049
|
K,
|
|
3045
3050
|
null,
|
|
3046
3051
|
[
|
|
3047
3052
|
a(c) || p.value ? (i(), f(
|
|
3048
3053
|
"li",
|
|
3049
|
-
|
|
3054
|
+
M({
|
|
3050
3055
|
key: 0,
|
|
3051
3056
|
ref_key: "componentRef",
|
|
3052
3057
|
ref: u,
|
|
@@ -3063,7 +3068,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3063
3068
|
a(r) ? (i(), w(X, {
|
|
3064
3069
|
key: 0,
|
|
3065
3070
|
class: "onyx-breadcrumb-item__link onyx-breadcrumb-item__skeleton"
|
|
3066
|
-
})) : (i(), w(mt,
|
|
3071
|
+
})) : (i(), w(mt, M({
|
|
3067
3072
|
key: 1,
|
|
3068
3073
|
class: "onyx-breadcrumb-item__link",
|
|
3069
3074
|
link: t.href,
|
|
@@ -3083,7 +3088,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3083
3088
|
key: 1,
|
|
3084
3089
|
to: a(d)
|
|
3085
3090
|
}, [
|
|
3086
|
-
a(c) ? S("v-if", !0) : (i(), w(Ke,
|
|
3091
|
+
a(c) ? S("v-if", !0) : (i(), w(Ke, M({
|
|
3087
3092
|
key: 0,
|
|
3088
3093
|
link: t.href,
|
|
3089
3094
|
active: p.value
|
|
@@ -3183,7 +3188,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3183
3188
|
"aria-hidden": t.skeleton
|
|
3184
3189
|
}, [
|
|
3185
3190
|
y("ol", jr, [
|
|
3186
|
-
|
|
3191
|
+
O(Wo, {
|
|
3187
3192
|
class: "onyx-breadcrumb__home",
|
|
3188
3193
|
href: t.home?.link ?? "/",
|
|
3189
3194
|
"aria-label": t.home?.label ?? a(e)("breadcrumb.home"),
|
|
@@ -3211,7 +3216,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3211
3216
|
_: 1
|
|
3212
3217
|
/* STABLE */
|
|
3213
3218
|
}, 8, ["href", "aria-label", "skeleton"]),
|
|
3214
|
-
|
|
3219
|
+
O(qn, {
|
|
3215
3220
|
"injection-key": a(Un),
|
|
3216
3221
|
direction: "ltr"
|
|
3217
3222
|
}, {
|
|
@@ -3227,18 +3232,18 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3227
3232
|
)
|
|
3228
3233
|
]),
|
|
3229
3234
|
more: $(({ attributes: r }) => [
|
|
3230
|
-
|
|
3235
|
+
O(Ye, M(r, {
|
|
3231
3236
|
label: a(e)("navigation.moreNavItemsLabel"),
|
|
3232
3237
|
trigger: "click"
|
|
3233
3238
|
}), {
|
|
3234
3239
|
button: $(({ trigger: u }) => [
|
|
3235
|
-
|
|
3240
|
+
O(Wo, M(u, {
|
|
3236
3241
|
"aria-label": a(e)("navigation.showMoreNavItemsLabel"),
|
|
3237
3242
|
title: a(e)("navigation.showMoreNavItemsLabel"),
|
|
3238
3243
|
icon: a(Lo)
|
|
3239
3244
|
}), {
|
|
3240
3245
|
default: $(() => [
|
|
3241
|
-
|
|
3246
|
+
O(z, {
|
|
3242
3247
|
icon: a(Lo),
|
|
3243
3248
|
size: "16px"
|
|
3244
3249
|
}, null, 8, ["icon"])
|
|
@@ -3277,7 +3282,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3277
3282
|
const t = n, { densityClass: e } = U(t), o = m(
|
|
3278
3283
|
() => t.link != null ? nt(t.link) : void 0
|
|
3279
3284
|
);
|
|
3280
|
-
return (l, s) => (i(), w(Be(o.value ? pt : t.clickable ? "button" : "div"),
|
|
3285
|
+
return (l, s) => (i(), w(Be(o.value ? pt : t.clickable ? "button" : "div"), M(o.value, {
|
|
3281
3286
|
class: ["onyx-component", "onyx-card", a(e), "onyx-truncation-multiline", "onyx-text"]
|
|
3282
3287
|
}), {
|
|
3283
3288
|
default: $(() => [
|
|
@@ -3325,7 +3330,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3325
3330
|
onFocusin: c[1] || (c[1] = (d) => o("hovered"))
|
|
3326
3331
|
},
|
|
3327
3332
|
[
|
|
3328
|
-
(i(), w(Be(e.is),
|
|
3333
|
+
(i(), w(Be(e.is), M(a(he)(r.value, e.buttonAttributes), {
|
|
3329
3334
|
class: [
|
|
3330
3335
|
"onyx-calendar-cell__content",
|
|
3331
3336
|
{
|
|
@@ -3376,7 +3381,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3376
3381
|
return (l, s) => a(o) ? (i(), w(X, {
|
|
3377
3382
|
key: 0,
|
|
3378
3383
|
class: R(["onyx-icon-button-skeleton", a(e)])
|
|
3379
|
-
}, null, 8, ["class"])) : (i(), w(mt,
|
|
3384
|
+
}, null, 8, ["class"])) : (i(), w(mt, M({ key: 1 }, t, {
|
|
3380
3385
|
"aria-label": t.label,
|
|
3381
3386
|
title: t.label,
|
|
3382
3387
|
class: [
|
|
@@ -3434,7 +3439,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3434
3439
|
() => e.position === "auto" ? L.value : e.position
|
|
3435
3440
|
), v = m(
|
|
3436
3441
|
() => e.alignment === "auto" ? H.value : e.alignment
|
|
3437
|
-
),
|
|
3442
|
+
), b = m(() => {
|
|
3438
3443
|
if ((p.value === "top" || p.value === "bottom") && e.alignsWithEdge) {
|
|
3439
3444
|
if (v.value === "left")
|
|
3440
3445
|
return `${p.value} x-start`;
|
|
@@ -3442,10 +3447,10 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3442
3447
|
return `${p.value} x-end`;
|
|
3443
3448
|
}
|
|
3444
3449
|
return p.value.includes(" ") ? p.value : `${p.value} center`;
|
|
3445
|
-
}),
|
|
3446
|
-
J(d, () => x.value =
|
|
3447
|
-
const
|
|
3448
|
-
positionedRef:
|
|
3450
|
+
}), g = () => d.value === "hover" ? Os(u.value) : Ms(c.value), x = Ze(g());
|
|
3451
|
+
J(d, () => x.value = g());
|
|
3452
|
+
const _ = m(() => x.value?.elements.tooltip), h = m(() => F(x.value?.elements.trigger)), k = ie(() => e.alignsWithEdge), B = ie(() => e.fitParent), C = Q("tooltipWrapperRefEl"), A = Q("tooltipRefEl"), { openDirection: L, updateOpenDirection: P } = wo(C, "top"), { openAlignment: H, updateOpenAlignment: Z } = Rn(C, A), { leftPosition: se, topPosition: V, updateAnchorPositionPolyfill: G, useragentSupportsAnchorApi: te } = In({
|
|
3453
|
+
positionedRef: A,
|
|
3449
3454
|
targetRef: C,
|
|
3450
3455
|
positionArea: p,
|
|
3451
3456
|
alignment: v,
|
|
@@ -3459,7 +3464,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3459
3464
|
listener: () => q()
|
|
3460
3465
|
});
|
|
3461
3466
|
const N = (fe) => {
|
|
3462
|
-
fe ?
|
|
3467
|
+
fe ? A.value?.showPopover?.() : A.value?.hidePopover?.();
|
|
3463
3468
|
}, ge = m(() => ({
|
|
3464
3469
|
"onyx-tooltip--danger": e.color === "danger",
|
|
3465
3470
|
"onyx-tooltip--success": e.color === "success",
|
|
@@ -3491,7 +3496,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3491
3496
|
const Pe = `--anchor-${me()}`, ye = m(() => te.value ? {
|
|
3492
3497
|
width: Fe.value,
|
|
3493
3498
|
"position-anchor": Pe,
|
|
3494
|
-
"position-area":
|
|
3499
|
+
"position-area": b.value
|
|
3495
3500
|
} : {
|
|
3496
3501
|
width: Fe.value,
|
|
3497
3502
|
left: se.value,
|
|
@@ -3507,7 +3512,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3507
3512
|
[
|
|
3508
3513
|
y(
|
|
3509
3514
|
"div",
|
|
3510
|
-
|
|
3515
|
+
M({ ref: "tooltipRefEl" }, _.value, {
|
|
3511
3516
|
class: ["onyx-tooltip", "onyx-text--small", "onyx-truncation-multiline", ge.value],
|
|
3512
3517
|
style: ye.value
|
|
3513
3518
|
}),
|
|
@@ -3564,7 +3569,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3564
3569
|
default: $(({ trigger: u }) => [
|
|
3565
3570
|
y(
|
|
3566
3571
|
"button",
|
|
3567
|
-
|
|
3572
|
+
M(u, {
|
|
3568
3573
|
class: l.value,
|
|
3569
3574
|
type: "button"
|
|
3570
3575
|
}),
|
|
@@ -3647,14 +3652,14 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3647
3652
|
props: e,
|
|
3648
3653
|
emit: o,
|
|
3649
3654
|
default: () => /* @__PURE__ */ new Date()
|
|
3650
|
-
}), { densityClass: u } = U(e), c = ae(e), { t: d, locale: p, d: v } = W(),
|
|
3651
|
-
() => e.size !== "auto" ? e.size :
|
|
3652
|
-
), { disabled:
|
|
3655
|
+
}), { densityClass: u } = U(e), c = ae(e), { t: d, locale: p, d: v } = W(), b = Q("calendar"), { width: g } = qe(b), x = m(
|
|
3656
|
+
() => e.size !== "auto" ? e.size : g.value < ht.xs ? "small" : "big"
|
|
3657
|
+
), { disabled: _, min: h, max: k, weekStartDay: B, showCalendarWeeks: C, selectionMode: A } = Nt(e), {
|
|
3653
3658
|
state: { weeksToRender: L, weekdayNames: P },
|
|
3654
3659
|
elements: { table: H, cell: Z, button: se },
|
|
3655
3660
|
internals: { goToMonthByOffset: V, goToToday: G, isSelected: te, isToday: q, getRangeType: N, isDisabled: ge }
|
|
3656
3661
|
} = hs({
|
|
3657
|
-
disabled:
|
|
3662
|
+
disabled: _,
|
|
3658
3663
|
min: h,
|
|
3659
3664
|
max: k,
|
|
3660
3665
|
locale: p,
|
|
@@ -3663,11 +3668,11 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3663
3668
|
showCalendarWeeks: C,
|
|
3664
3669
|
viewMonth: r,
|
|
3665
3670
|
modelValue: s,
|
|
3666
|
-
selectionMode:
|
|
3671
|
+
selectionMode: A,
|
|
3667
3672
|
onUpdateViewMonth: (fe) => r.value = fe,
|
|
3668
3673
|
onUpdateModelValue: (fe) => s.value = fe
|
|
3669
3674
|
}), le = D(), Fe = (fe) => {
|
|
3670
|
-
|
|
3675
|
+
A.value === "range" && (le.value = fe.date);
|
|
3671
3676
|
}, Pe = m(() => e.showCalendarWeeks ? [d.value("calendar.calenderWeek"), ...P.value] : P.value), ye = m(() => (fe) => {
|
|
3672
3677
|
const Ee = e.selectionMode === "range" ? s.value : void 0;
|
|
3673
3678
|
return !Ee || Ee.end || !le.value ? N.value(fe) : N.value(fe, {
|
|
@@ -3682,8 +3687,8 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3682
3687
|
class: R(["onyx-component", "onyx-calendar-skeleton", a(u)])
|
|
3683
3688
|
},
|
|
3684
3689
|
[
|
|
3685
|
-
|
|
3686
|
-
|
|
3690
|
+
O(X, { class: "onyx-calendar-skeleton__header" }),
|
|
3691
|
+
O(X, { class: "onyx-calendar-skeleton__body" })
|
|
3687
3692
|
],
|
|
3688
3693
|
2
|
|
3689
3694
|
/* CLASS */
|
|
@@ -3701,18 +3706,18 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3701
3706
|
key: 0,
|
|
3702
3707
|
label: a(d)("calendar.todayButton.label"),
|
|
3703
3708
|
class: "control-container__today-btn",
|
|
3704
|
-
disabled: a(
|
|
3709
|
+
disabled: a(_),
|
|
3705
3710
|
clickable: a(d)("calendar.todayButton.tooltip"),
|
|
3706
3711
|
onClick: a(G)
|
|
3707
3712
|
}, null, 8, ["label", "disabled", "clickable", "onClick"])) : S("v-if", !0),
|
|
3708
|
-
|
|
3713
|
+
O(bt, {
|
|
3709
3714
|
label: a(d)("calendar.previousMonthButton"),
|
|
3710
3715
|
color: "neutral",
|
|
3711
3716
|
icon: a(_o),
|
|
3712
|
-
disabled: a(
|
|
3713
|
-
onClick: Ee[0] || (Ee[0] = (
|
|
3717
|
+
disabled: a(_),
|
|
3718
|
+
onClick: Ee[0] || (Ee[0] = (Oe) => a(V)(-1))
|
|
3714
3719
|
}, null, 8, ["label", "icon", "disabled"]),
|
|
3715
|
-
|
|
3720
|
+
O(Ve, {
|
|
3716
3721
|
is: "h2",
|
|
3717
3722
|
class: "control-container__date-display"
|
|
3718
3723
|
}, {
|
|
@@ -3726,12 +3731,12 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3726
3731
|
_: 1
|
|
3727
3732
|
/* STABLE */
|
|
3728
3733
|
}),
|
|
3729
|
-
|
|
3734
|
+
O(bt, {
|
|
3730
3735
|
label: a(d)("calendar.nextMonthButton"),
|
|
3731
3736
|
color: "neutral",
|
|
3732
3737
|
icon: a(go),
|
|
3733
|
-
disabled: a(
|
|
3734
|
-
onClick: Ee[1] || (Ee[1] = (
|
|
3738
|
+
disabled: a(_),
|
|
3739
|
+
onClick: Ee[1] || (Ee[1] = (Oe) => a(V)(1))
|
|
3735
3740
|
}, null, 8, ["label", "icon", "disabled"])
|
|
3736
3741
|
]),
|
|
3737
3742
|
y("div", si, [
|
|
@@ -3748,11 +3753,11 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3748
3753
|
(i(!0), f(
|
|
3749
3754
|
K,
|
|
3750
3755
|
null,
|
|
3751
|
-
ce(Pe.value, (
|
|
3752
|
-
key:
|
|
3756
|
+
ce(Pe.value, (Oe) => (i(), f("th", {
|
|
3757
|
+
key: Oe,
|
|
3753
3758
|
scope: "col",
|
|
3754
|
-
abbr:
|
|
3755
|
-
}, I(
|
|
3759
|
+
abbr: Oe
|
|
3760
|
+
}, I(Oe), 9, ii))),
|
|
3756
3761
|
128
|
|
3757
3762
|
/* KEYED_FRAGMENT */
|
|
3758
3763
|
))
|
|
@@ -3762,20 +3767,20 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3762
3767
|
(i(!0), f(
|
|
3763
3768
|
K,
|
|
3764
3769
|
null,
|
|
3765
|
-
ce(a(L), (
|
|
3766
|
-
key:
|
|
3770
|
+
ce(a(L), (Oe) => (i(), f("tr", {
|
|
3771
|
+
key: Oe.weekNumber
|
|
3767
3772
|
}, [
|
|
3768
3773
|
a(C) ? (i(), f(
|
|
3769
3774
|
"th",
|
|
3770
3775
|
ci,
|
|
3771
|
-
I(
|
|
3776
|
+
I(Oe.weekNumber),
|
|
3772
3777
|
1
|
|
3773
3778
|
/* TEXT */
|
|
3774
3779
|
)) : S("v-if", !0),
|
|
3775
3780
|
(i(!0), f(
|
|
3776
3781
|
K,
|
|
3777
3782
|
null,
|
|
3778
|
-
ce(
|
|
3783
|
+
ce(Oe.days, (_e) => (i(), w(ei, M({
|
|
3779
3784
|
is: e.selectionMode ? "button" : "div"
|
|
3780
3785
|
}, { ref_for: !0 }, a(Z)({ date: _e.date }), {
|
|
3781
3786
|
key: _e.date.toDateString(),
|
|
@@ -3849,7 +3854,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3849
3854
|
return e[l] = e[l] || [], e[l].push(o), e;
|
|
3850
3855
|
},
|
|
3851
3856
|
{}
|
|
3852
|
-
),
|
|
3857
|
+
), Mt = (n, t) => {
|
|
3853
3858
|
const e = Object.entries(n);
|
|
3854
3859
|
return t && e.sort(([o], [l]) => o === t ? -1 : l === t ? 1 : 0), e.map(([o, l]) => ({
|
|
3855
3860
|
name: o,
|
|
@@ -3988,7 +3993,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
3988
3993
|
default: $(({ trigger: r }) => [
|
|
3989
3994
|
y(
|
|
3990
3995
|
"div",
|
|
3991
|
-
|
|
3996
|
+
M({ ref: "targetRef" }, r),
|
|
3992
3997
|
null,
|
|
3993
3998
|
16
|
|
3994
3999
|
/* FULL_PROPS */
|
|
@@ -4033,15 +4038,15 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4033
4038
|
emit: l,
|
|
4034
4039
|
key: "modelValue",
|
|
4035
4040
|
default: !1
|
|
4036
|
-
}), { vCustomValidity: c, errorMessages: d } = Je({ props: o, emit: l }), { densityClass: p } = U(o), { disabled: v, requiredMarker:
|
|
4037
|
-
return t({ input: k }), Ie(k, o), (B, C) => a(
|
|
4041
|
+
}), { vCustomValidity: c, errorMessages: d } = Je({ props: o, emit: l }), { densityClass: p } = U(o), { disabled: v, requiredMarker: b } = ke(o), g = ae(o), { requiredMarkerClass: x, requiredTypeClass: _ } = Ut(o, b), h = m(() => o.hideLabel ? o.label : void 0), k = Q("inputRef");
|
|
4042
|
+
return t({ input: k }), Ie(k, o), (B, C) => a(g) ? (i(), f(
|
|
4038
4043
|
"div",
|
|
4039
|
-
|
|
4044
|
+
M({
|
|
4040
4045
|
key: 0,
|
|
4041
4046
|
class: ["onyx-component", "onyx-checkbox-skeleton", a(p)]
|
|
4042
4047
|
}, a(s)),
|
|
4043
4048
|
[
|
|
4044
|
-
|
|
4049
|
+
O(X, { class: "onyx-checkbox-skeleton__input" }),
|
|
4045
4050
|
o.hideLabel ? S("v-if", !0) : (i(), w(X, {
|
|
4046
4051
|
key: 0,
|
|
4047
4052
|
class: "onyx-checkbox-skeleton__label"
|
|
@@ -4049,14 +4054,14 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4049
4054
|
],
|
|
4050
4055
|
16
|
|
4051
4056
|
/* FULL_PROPS */
|
|
4052
|
-
)) : (i(), w(Co,
|
|
4057
|
+
)) : (i(), w(Co, M({
|
|
4053
4058
|
key: 1,
|
|
4054
4059
|
disabled: a(v),
|
|
4055
4060
|
"error-messages": a(d)
|
|
4056
4061
|
}, a(s)), {
|
|
4057
4062
|
default: $(() => [
|
|
4058
4063
|
y("label", {
|
|
4059
|
-
class: R(["onyx-component onyx-checkbox", [a(
|
|
4064
|
+
class: R(["onyx-component onyx-checkbox", [a(_), a(p)]]),
|
|
4060
4065
|
title: h.value
|
|
4061
4066
|
}, [
|
|
4062
4067
|
y("div", _i, [
|
|
@@ -4064,10 +4069,10 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4064
4069
|
key: 0,
|
|
4065
4070
|
class: "onyx-checkbox__loading",
|
|
4066
4071
|
type: "circle"
|
|
4067
|
-
})) : Se((i(), f("input",
|
|
4072
|
+
})) : Se((i(), f("input", M({
|
|
4068
4073
|
key: 1,
|
|
4069
4074
|
ref: "inputRef",
|
|
4070
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
4075
|
+
"onUpdate:modelValue": C[0] || (C[0] = (A) => Ae(u) ? u.value = A : null),
|
|
4071
4076
|
"aria-label": o.hideLabel ? o.label : void 0,
|
|
4072
4077
|
class: "onyx-checkbox__input",
|
|
4073
4078
|
type: "checkbox",
|
|
@@ -4168,12 +4173,12 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4168
4173
|
key: "open"
|
|
4169
4174
|
}), s = m(() => typeof e.trigger == "object" ? e.trigger.type : e.trigger);
|
|
4170
4175
|
return (r, u) => (i(), f("span", wi, [
|
|
4171
|
-
s.value === "click" ? (i(), w(gt,
|
|
4176
|
+
s.value === "click" ? (i(), w(gt, M({ key: 0 }, e, {
|
|
4172
4177
|
open: a(l),
|
|
4173
|
-
"onUpdate:open": u[0] || (u[0] = (c) =>
|
|
4178
|
+
"onUpdate:open": u[0] || (u[0] = (c) => Ae(l) ? l.value = c : null)
|
|
4174
4179
|
}), {
|
|
4175
4180
|
default: $(({ trigger: c }) => [
|
|
4176
|
-
|
|
4181
|
+
O($e, M({
|
|
4177
4182
|
label: (
|
|
4178
4183
|
// if type is `click` aria-label will always be defined
|
|
4179
4184
|
c["aria-label"]
|
|
@@ -4189,17 +4194,17 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4189
4194
|
K,
|
|
4190
4195
|
{ key: 1 },
|
|
4191
4196
|
[
|
|
4192
|
-
|
|
4197
|
+
O(gt, M(e, {
|
|
4193
4198
|
open: a(l),
|
|
4194
|
-
"onUpdate:open": u[1] || (u[1] = (c) =>
|
|
4199
|
+
"onUpdate:open": u[1] || (u[1] = (c) => Ae(l) ? l.value = c : null),
|
|
4195
4200
|
"aria-hidden": "true"
|
|
4196
4201
|
}), {
|
|
4197
4202
|
default: $(({ trigger: c }) => [
|
|
4198
4203
|
y(
|
|
4199
4204
|
"span",
|
|
4200
|
-
|
|
4205
|
+
M({ class: "onyx-info-tooltip__trigger" }, c),
|
|
4201
4206
|
[
|
|
4202
|
-
|
|
4207
|
+
O(z, { icon: a(eo) }, null, 8, ["icon"])
|
|
4203
4208
|
],
|
|
4204
4209
|
16
|
|
4205
4210
|
/* FULL_PROPS */
|
|
@@ -4208,7 +4213,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4208
4213
|
_: 1
|
|
4209
4214
|
/* STABLE */
|
|
4210
4215
|
}, 16, ["open"]),
|
|
4211
|
-
|
|
4216
|
+
O(et, null, {
|
|
4212
4217
|
default: $(() => [
|
|
4213
4218
|
Y(
|
|
4214
4219
|
I(e.text),
|
|
@@ -4255,23 +4260,23 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4255
4260
|
u.value = k ? [...u.value, h] : u.value.filter((B) => B !== h);
|
|
4256
4261
|
}, d = m(
|
|
4257
4262
|
() => o.options.filter((h) => !h.disabled && !h.skeleton).map(({ value: h }) => h)
|
|
4258
|
-
), { disabled: p, requiredMarker: v } = ke(o),
|
|
4263
|
+
), { disabled: p, requiredMarker: v } = ke(o), b = ae(o), g = Yn(
|
|
4259
4264
|
d,
|
|
4260
4265
|
m(() => u.value),
|
|
4261
4266
|
(h) => u.value = h
|
|
4262
4267
|
), x = m(() => {
|
|
4263
4268
|
const h = r.value("selections.selectAll");
|
|
4264
4269
|
return typeof o.withCheckAll == "boolean" ? h : o.withCheckAll?.label ?? h;
|
|
4265
|
-
}),
|
|
4270
|
+
}), _ = Q("checkboxesRef");
|
|
4266
4271
|
return t({
|
|
4267
|
-
inputs: m(() => (Array.isArray(
|
|
4272
|
+
inputs: m(() => (Array.isArray(_.value) ? _.value : [_.value]).flatMap((k) => k?.input).filter((k) => !!k))
|
|
4268
4273
|
}), (h, k) => (i(), f("fieldset", {
|
|
4269
4274
|
class: R(["onyx-component", "onyx-checkbox-group", a(l)]),
|
|
4270
4275
|
disabled: a(p),
|
|
4271
4276
|
"aria-label": o.label
|
|
4272
4277
|
}, [
|
|
4273
4278
|
o.hideLabel ? S("v-if", !0) : (i(), f("legend", $i, [
|
|
4274
|
-
|
|
4279
|
+
O(Ve, { is: "h3" }, {
|
|
4275
4280
|
default: $(() => [
|
|
4276
4281
|
Y(
|
|
4277
4282
|
I(o.label),
|
|
@@ -4297,10 +4302,10 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4297
4302
|
}])
|
|
4298
4303
|
},
|
|
4299
4304
|
[
|
|
4300
|
-
a(
|
|
4305
|
+
a(b) ? typeof a(b) == "number" ? (i(!0), f(
|
|
4301
4306
|
K,
|
|
4302
4307
|
{ key: 1 },
|
|
4303
|
-
ce(a(
|
|
4308
|
+
ce(a(b), (B) => (i(), w(vt, {
|
|
4304
4309
|
key: B,
|
|
4305
4310
|
label: `Skeleton ${B}`,
|
|
4306
4311
|
value: `skeleton-${B}`,
|
|
@@ -4312,19 +4317,19 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4312
4317
|
K,
|
|
4313
4318
|
{ key: 0 },
|
|
4314
4319
|
[
|
|
4315
|
-
o.withCheckAll ? (i(), w(vt,
|
|
4320
|
+
o.withCheckAll ? (i(), w(vt, M({
|
|
4316
4321
|
key: 0,
|
|
4317
4322
|
"required-marker": a(v)
|
|
4318
|
-
}, a(
|
|
4323
|
+
}, a(g).state.value, {
|
|
4319
4324
|
label: x.value,
|
|
4320
4325
|
value: "all",
|
|
4321
4326
|
class: "onyx-checkbox-group__option onyx-checkbox-group__check-all",
|
|
4322
|
-
"onUpdate:modelValue": a(
|
|
4327
|
+
"onUpdate:modelValue": a(g).handleChange
|
|
4323
4328
|
}), null, 16, ["required-marker", "label", "onUpdate:modelValue"])) : S("v-if", !0),
|
|
4324
4329
|
(i(!0), f(
|
|
4325
4330
|
K,
|
|
4326
4331
|
null,
|
|
4327
|
-
ce(o.options, (B) => (i(), w(vt,
|
|
4332
|
+
ce(o.options, (B) => (i(), w(vt, M({
|
|
4328
4333
|
key: B.value.toString()
|
|
4329
4334
|
}, { ref_for: !0 }, B, {
|
|
4330
4335
|
ref_for: !0,
|
|
@@ -4368,7 +4373,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4368
4373
|
},
|
|
4369
4374
|
[
|
|
4370
4375
|
E(l.$slots, "icon", {}, () => [
|
|
4371
|
-
|
|
4376
|
+
O(z, {
|
|
4372
4377
|
icon: a(dn),
|
|
4373
4378
|
size: "48px"
|
|
4374
4379
|
}, null, 8, ["icon"])
|
|
@@ -4387,7 +4392,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4387
4392
|
}), Bi = {
|
|
4388
4393
|
key: 0,
|
|
4389
4394
|
class: "onyx-table-wrapper__top"
|
|
4390
|
-
},
|
|
4395
|
+
}, Mi = ["id"], Oi = { class: "onyx-table-wrapper__actions" }, Ai = ["tabindex"], Ti = ["aria-labelledby"], Ii = ["span"], Ri = {
|
|
4391
4396
|
key: 0,
|
|
4392
4397
|
class: "onyx-table__header"
|
|
4393
4398
|
}, Di = { key: 0 }, Li = ["colspan"], Ni = { class: "onyx-table__empty" }, Vi = { colspan: "99" }, zi = { class: "onyx-table__empty-content" }, Fi = {
|
|
@@ -4408,7 +4413,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4408
4413
|
"--onyx-table-observed-height": `${u.value}px`,
|
|
4409
4414
|
"--onyx-table-observed-width": `${c.value}px`
|
|
4410
4415
|
})), p = me(), v = m(() => e.headline ? p : void 0);
|
|
4411
|
-
return (
|
|
4416
|
+
return (b, g) => (i(), f(
|
|
4412
4417
|
"div",
|
|
4413
4418
|
{
|
|
4414
4419
|
class: "onyx-table-wrapper onyx-component",
|
|
@@ -4417,13 +4422,13 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4417
4422
|
[
|
|
4418
4423
|
e.headline || e.actions ? (i(), f("div", Bi, [
|
|
4419
4424
|
y("div", { id: v.value }, [
|
|
4420
|
-
E(
|
|
4421
|
-
], 8,
|
|
4422
|
-
y("div",
|
|
4423
|
-
E(
|
|
4425
|
+
E(b.$slots, "headline")
|
|
4426
|
+
], 8, Mi),
|
|
4427
|
+
y("div", Oi, [
|
|
4428
|
+
E(b.$slots, "actions")
|
|
4424
4429
|
])
|
|
4425
4430
|
])) : S("v-if", !0),
|
|
4426
|
-
y("div",
|
|
4431
|
+
y("div", M({
|
|
4427
4432
|
class: [
|
|
4428
4433
|
"onyx-table-wrapper__container",
|
|
4429
4434
|
{ "onyx-table-wrapper__container--no-scroll": t.withPageScrolling }
|
|
@@ -4466,15 +4471,15 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4466
4471
|
/* KEYED_FRAGMENT */
|
|
4467
4472
|
))
|
|
4468
4473
|
])) : S("v-if", !0),
|
|
4469
|
-
E(
|
|
4474
|
+
E(b.$slots, "head")
|
|
4470
4475
|
])) : S("v-if", !0),
|
|
4471
4476
|
y("tbody", null, [
|
|
4472
|
-
E(
|
|
4477
|
+
E(b.$slots, "default", {}, () => [
|
|
4473
4478
|
y("tr", Ni, [
|
|
4474
4479
|
y("td", Vi, [
|
|
4475
4480
|
y("div", zi, [
|
|
4476
|
-
E(
|
|
4477
|
-
|
|
4481
|
+
E(b.$slots, "empty", { defaultMessage: s.value }, () => [
|
|
4482
|
+
O(Jn, null, {
|
|
4478
4483
|
default: $(() => [
|
|
4479
4484
|
Y(
|
|
4480
4485
|
I(s.value),
|
|
@@ -4492,13 +4497,13 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4492
4497
|
])
|
|
4493
4498
|
])
|
|
4494
4499
|
], 10, Ti)
|
|
4495
|
-
], 16,
|
|
4500
|
+
], 16, Ai),
|
|
4496
4501
|
e.bottomLeft || e.pagination ? (i(), f("div", Fi, [
|
|
4497
4502
|
y("div", null, [
|
|
4498
|
-
E(
|
|
4503
|
+
E(b.$slots, "bottomLeft")
|
|
4499
4504
|
]),
|
|
4500
4505
|
y("div", null, [
|
|
4501
|
-
E(
|
|
4506
|
+
E(b.$slots, "pagination")
|
|
4502
4507
|
])
|
|
4503
4508
|
])) : S("v-if", !0)
|
|
4504
4509
|
],
|
|
@@ -4524,7 +4529,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4524
4529
|
"--onyx-data-grid-row-count": Math.max(t.rows.length + 2, 3),
|
|
4525
4530
|
"--onyx-data-grid-template-columns": t.columns.map(({ key: l, width: s }) => `var(${`--onyx-data-grid-column-${Eo(l)}`}, ${s ?? "minmax(min-content, 1fr)"})`).join(" ")
|
|
4526
4531
|
}));
|
|
4527
|
-
return (l, s) => (i(), w(Zn,
|
|
4532
|
+
return (l, s) => (i(), w(Zn, M({ class: "onyx-data-grid" }, t, {
|
|
4528
4533
|
"scroll-container-attrs": a(he)(t.scrollContainerAttrs, { style: o.value })
|
|
4529
4534
|
}), xe({
|
|
4530
4535
|
head: $(() => [
|
|
@@ -4534,7 +4539,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4534
4539
|
null,
|
|
4535
4540
|
ce(t.columns, (r) => (i(), f(
|
|
4536
4541
|
"th",
|
|
4537
|
-
|
|
4542
|
+
M({
|
|
4538
4543
|
key: r.key
|
|
4539
4544
|
}, { ref_for: !0 }, r.thAttributes, {
|
|
4540
4545
|
ref_for: !1,
|
|
@@ -4543,7 +4548,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4543
4548
|
[
|
|
4544
4549
|
(i(), w(
|
|
4545
4550
|
Be(r.component),
|
|
4546
|
-
|
|
4551
|
+
M({ ref_for: !0 }, r.props),
|
|
4547
4552
|
null,
|
|
4548
4553
|
16
|
|
4549
4554
|
/* FULL_PROPS */
|
|
@@ -4563,7 +4568,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4563
4568
|
null,
|
|
4564
4569
|
ce(t.rows, (r) => (i(), f(
|
|
4565
4570
|
"tr",
|
|
4566
|
-
|
|
4571
|
+
M({
|
|
4567
4572
|
key: r.id
|
|
4568
4573
|
}, { ref_for: !0 }, r.trAttributes),
|
|
4569
4574
|
[
|
|
@@ -4578,14 +4583,14 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4578
4583
|
[
|
|
4579
4584
|
r.cells[u.key] ? (i(), f(
|
|
4580
4585
|
"td",
|
|
4581
|
-
|
|
4586
|
+
M({
|
|
4582
4587
|
key: 0,
|
|
4583
4588
|
ref_for: !0
|
|
4584
4589
|
}, r.cells[u.key].tdAttributes),
|
|
4585
4590
|
[
|
|
4586
4591
|
(i(), w(
|
|
4587
4592
|
Be(r.cells[u.key].component),
|
|
4588
|
-
|
|
4593
|
+
M({ ref_for: !0 }, r.cells[u.key].props),
|
|
4589
4594
|
null,
|
|
4590
4595
|
16
|
|
4591
4596
|
/* FULL_PROPS */
|
|
@@ -4644,17 +4649,17 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4644
4649
|
* Focuses the input.
|
|
4645
4650
|
*/
|
|
4646
4651
|
focus: () => p.value?.focus()
|
|
4647
|
-
}), (
|
|
4652
|
+
}), (b, g) => (i(), f(
|
|
4648
4653
|
"div",
|
|
4649
|
-
|
|
4654
|
+
M({
|
|
4650
4655
|
class: ["onyx-component", "onyx-mini-search", a(c)]
|
|
4651
4656
|
}, a(r), {
|
|
4652
4657
|
style: { "--onyx-placeholder-character-count": v.value.length }
|
|
4653
4658
|
}),
|
|
4654
4659
|
[
|
|
4655
|
-
Se(y("input",
|
|
4660
|
+
Se(y("input", M({
|
|
4656
4661
|
ref: "inputRef",
|
|
4657
|
-
"onUpdate:modelValue":
|
|
4662
|
+
"onUpdate:modelValue": g[0] || (g[0] = (x) => Ae(s) ? s.value = x : null),
|
|
4658
4663
|
autofocus: o.autofocus,
|
|
4659
4664
|
class: "onyx-mini-search__input onyx-text",
|
|
4660
4665
|
placeholder: v.value,
|
|
@@ -4670,13 +4675,13 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4670
4675
|
class: "onyx-mini-search__clear",
|
|
4671
4676
|
"aria-label": a(d)("select.clearSearch"),
|
|
4672
4677
|
tabindex: "-1",
|
|
4673
|
-
onMousedown:
|
|
4678
|
+
onMousedown: g[1] || (g[1] = Re(() => {
|
|
4674
4679
|
}, ["prevent"])),
|
|
4675
|
-
onClick:
|
|
4680
|
+
onClick: g[2] || (g[2] = (x) => l("clear"))
|
|
4676
4681
|
}, [
|
|
4677
|
-
|
|
4682
|
+
O(z, { icon: a(We) }, null, 8, ["icon"])
|
|
4678
4683
|
], 40, Hi),
|
|
4679
|
-
|
|
4684
|
+
O(z, {
|
|
4680
4685
|
class: "onyx-mini-search__icon",
|
|
4681
4686
|
icon: a(Va)
|
|
4682
4687
|
}, null, 8, ["icon"])
|
|
@@ -4708,21 +4713,21 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4708
4713
|
])) : S("v-if", !0)
|
|
4709
4714
|
]));
|
|
4710
4715
|
}
|
|
4711
|
-
}), Bo = "-", xt = (n) => n?.fallback ?? Bo,
|
|
4716
|
+
}), Bo = "-", xt = (n) => n?.fallback ?? Bo, Me = (n) => Object.freeze(n), Qn = (n, t) => {
|
|
4712
4717
|
if (n == null || n instanceof Date || typeof n == "boolean" || typeof n == "symbol")
|
|
4713
4718
|
return xt(t);
|
|
4714
4719
|
const { n: e } = W();
|
|
4715
4720
|
return e.value(n, t?.format ?? "decimal").replace("NaN", Bo);
|
|
4716
|
-
}, ea =
|
|
4721
|
+
}, ea = Me({
|
|
4717
4722
|
header: { component: at },
|
|
4718
4723
|
cell: {
|
|
4719
4724
|
component: ({ metadata: n, modelValue: t }) => Qn(t, n?.typeOptions),
|
|
4720
4725
|
tdAttributes: { class: "onyx-data-grid-number-cell" }
|
|
4721
4726
|
}
|
|
4722
|
-
}),
|
|
4727
|
+
}), Mo = (n, t) => n == null ? xt(t) : Array.isArray(n) ? n.map((e) => Mo(e)).filter((e) => e != xt(t)).join(", ") : n instanceof Date ? n.toString() : typeof n == "object" ? JSON.stringify(n) : String(n), Oo = Me({
|
|
4723
4728
|
header: { component: at },
|
|
4724
4729
|
cell: {
|
|
4725
|
-
component: (n) =>
|
|
4730
|
+
component: (n) => Mo(n.modelValue, n.metadata?.typeOptions)
|
|
4726
4731
|
}
|
|
4727
4732
|
}), St = (n, t) => {
|
|
4728
4733
|
if (n == null || typeof n == "boolean") return xt(t);
|
|
@@ -4733,31 +4738,31 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4733
4738
|
} catch {
|
|
4734
4739
|
return xt(t);
|
|
4735
4740
|
}
|
|
4736
|
-
}, ta =
|
|
4741
|
+
}, ta = Me({
|
|
4737
4742
|
header: { component: at },
|
|
4738
4743
|
cell: {
|
|
4739
4744
|
component: (n) => St(n.modelValue, { format: "date", ...n.metadata?.typeOptions })
|
|
4740
4745
|
}
|
|
4741
|
-
}), oa =
|
|
4746
|
+
}), oa = Me({
|
|
4742
4747
|
header: { component: at },
|
|
4743
4748
|
cell: {
|
|
4744
4749
|
component: (n) => St(n.modelValue, { format: "datetime-local", ...n.metadata?.typeOptions })
|
|
4745
4750
|
}
|
|
4746
|
-
}), na =
|
|
4751
|
+
}), na = Me({
|
|
4747
4752
|
header: { component: at },
|
|
4748
4753
|
cell: {
|
|
4749
4754
|
component: (n) => St(n.modelValue, { format: "time", ...n.metadata?.typeOptions })
|
|
4750
4755
|
}
|
|
4751
|
-
}), aa =
|
|
4756
|
+
}), aa = Me({
|
|
4752
4757
|
header: { component: at },
|
|
4753
4758
|
cell: {
|
|
4754
4759
|
component: (n) => St(n.modelValue, { format: "timestamp", ...n.metadata?.typeOptions })
|
|
4755
4760
|
}
|
|
4756
|
-
}), la =
|
|
4761
|
+
}), la = Me({
|
|
4757
4762
|
cell: {
|
|
4758
4763
|
component: () => re(X)
|
|
4759
4764
|
}
|
|
4760
|
-
}), sa =
|
|
4765
|
+
}), sa = Me({
|
|
4761
4766
|
header: { component: at },
|
|
4762
4767
|
cell: {
|
|
4763
4768
|
tdAttributes: {
|
|
@@ -4769,7 +4774,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4769
4774
|
label: o.value("yes"),
|
|
4770
4775
|
...t?.typeOptions?.truthy
|
|
4771
4776
|
}, s = {
|
|
4772
|
-
icon:
|
|
4777
|
+
icon: bo,
|
|
4773
4778
|
label: o.value("no"),
|
|
4774
4779
|
...t?.typeOptions?.falsy
|
|
4775
4780
|
}, r = e ? l : s;
|
|
@@ -4789,7 +4794,7 @@ const io = /* @__PURE__ */ Ft(lr, [["render", rr]]), ze = /* @__PURE__ */ T({
|
|
|
4789
4794
|
* Returns a renderer for any given component and type.
|
|
4790
4795
|
* Uses the fallbackRenderer if necessary.
|
|
4791
4796
|
*/
|
|
4792
|
-
getFor: (o, l) => e.get(l)?.[o] ??
|
|
4797
|
+
getFor: (o, l) => e.get(l)?.[o] ?? Oo[o]
|
|
4793
4798
|
// Map returns undefined if `type` is undefined, so it's safe to use the Non-Null assertion.
|
|
4794
4799
|
};
|
|
4795
4800
|
};
|
|
@@ -4834,10 +4839,10 @@ const Yi = (n, t) => {
|
|
|
4834
4839
|
return qi(u.value, h);
|
|
4835
4840
|
}), d = m(() => ra(r)), p = () => Yi(c.value, F(o)), v = () => he(
|
|
4836
4841
|
...r.map(({ scrollContainerAttributes: h }) => h?.())
|
|
4837
|
-
),
|
|
4842
|
+
), b = () => {
|
|
4838
4843
|
const h = r.map((C) => C.header).filter((C) => !!C), k = h.map((C) => C.actions).filter((C) => !!C), B = h.map((C) => C.wrapper).filter((C) => !!C);
|
|
4839
|
-
return c.value.map((C,
|
|
4840
|
-
const P = k.flatMap((q) => q(C,
|
|
4844
|
+
return c.value.map((C, A, L) => {
|
|
4845
|
+
const P = k.flatMap((q) => q(C, A, L)), H = d.value.getFor("header", C.type.name), Z = P.map(({ menuItems: q }) => q).filter((q) => !!q), se = P.map(({ iconComponent: q }) => q), V = re(
|
|
4841
4846
|
Ye,
|
|
4842
4847
|
{
|
|
4843
4848
|
label: t.t.value("navigation.moreActionsFlyout", { column: C.label }),
|
|
@@ -4864,7 +4869,7 @@ const Yi = (n, t) => {
|
|
|
4864
4869
|
].filter(Boolean);
|
|
4865
4870
|
}
|
|
4866
4871
|
}, te = B.reduce(
|
|
4867
|
-
(q, N) => re(N(C,
|
|
4872
|
+
(q, N) => re(N(C, A, L), q),
|
|
4868
4873
|
(q) => re(H.component, { label: C.label, ...q }, G)
|
|
4869
4874
|
);
|
|
4870
4875
|
return {
|
|
@@ -4874,14 +4879,14 @@ const Yi = (n, t) => {
|
|
|
4874
4879
|
component: () => re(te)
|
|
4875
4880
|
};
|
|
4876
4881
|
});
|
|
4877
|
-
},
|
|
4878
|
-
const k = r.map((C) => C.mutation).filter((C) => !!C).sort((C,
|
|
4882
|
+
}, g = (h) => {
|
|
4883
|
+
const k = r.map((C) => C.mutation).filter((C) => !!C).sort((C, A) => (A.order ?? 0) - (C.order ?? 0));
|
|
4879
4884
|
let B = [...h];
|
|
4880
4885
|
return k.forEach(({ func: C }) => {
|
|
4881
|
-
const
|
|
4882
|
-
|
|
4886
|
+
const A = C(B);
|
|
4887
|
+
A && (B = A);
|
|
4883
4888
|
}), B.map((C) => {
|
|
4884
|
-
const
|
|
4889
|
+
const A = C[Dt]?.columns ?? c.value, L = A.reduce(
|
|
4885
4890
|
(P, { key: H, type: Z, tdAttributes: se }) => {
|
|
4886
4891
|
const V = d.value.getFor("cell", Z.name);
|
|
4887
4892
|
return P[H] = {
|
|
@@ -4900,7 +4905,7 @@ const Yi = (n, t) => {
|
|
|
4900
4905
|
return {
|
|
4901
4906
|
id: C.id,
|
|
4902
4907
|
trAttributes: C[Dt]?.trAttributes,
|
|
4903
|
-
columns:
|
|
4908
|
+
columns: A,
|
|
4904
4909
|
cells: L
|
|
4905
4910
|
};
|
|
4906
4911
|
});
|
|
@@ -4908,11 +4913,11 @@ const Yi = (n, t) => {
|
|
|
4908
4913
|
const h = {};
|
|
4909
4914
|
return r.forEach((k) => {
|
|
4910
4915
|
k.slots && Object.entries(k.slots).forEach(([B, C]) => {
|
|
4911
|
-
const
|
|
4912
|
-
P.length && (h[
|
|
4916
|
+
const A = B, L = h[A] ?? (() => []), P = C(L).filter((H) => H != null);
|
|
4917
|
+
P.length && (h[A] = () => P);
|
|
4913
4918
|
});
|
|
4914
4919
|
}), h;
|
|
4915
|
-
},
|
|
4920
|
+
}, _ = r.flatMap((h) => h.watch ?? []);
|
|
4916
4921
|
return {
|
|
4917
4922
|
/**
|
|
4918
4923
|
* Takes the table attributes and maps all
|
|
@@ -4921,13 +4926,13 @@ const Yi = (n, t) => {
|
|
|
4921
4926
|
/** Uses the column definition and available column group config to generate the column groups for the underlying OnyxTable */
|
|
4922
4927
|
createRendererColumnGroups: p,
|
|
4923
4928
|
/** Takes the column definition and maps all, calls mutation func and maps at the end to RendererCell */
|
|
4924
|
-
createRendererRows:
|
|
4929
|
+
createRendererRows: g,
|
|
4925
4930
|
/** Takes the column definition and creates a RenderHeader for each, adds actions from features */
|
|
4926
|
-
createRendererColumns:
|
|
4931
|
+
createRendererColumns: b,
|
|
4927
4932
|
/** Uses all features and generates the content of the additional table slots (headline, pagination etc.) for the underlying OnyxTable */
|
|
4928
4933
|
createSlots: x,
|
|
4929
4934
|
// the combined `watch` for all features
|
|
4930
|
-
watchSources:
|
|
4935
|
+
watchSources: _
|
|
4931
4936
|
};
|
|
4932
4937
|
}, yt = (n, t) => {
|
|
4933
4938
|
const e = m(() => (l) => {
|
|
@@ -4947,27 +4952,27 @@ const Yi = (n, t) => {
|
|
|
4947
4952
|
*/
|
|
4948
4953
|
isAsync: o
|
|
4949
4954
|
};
|
|
4950
|
-
}, Zi = Symbol("Filtering"),
|
|
4955
|
+
}, Zi = Symbol("Filtering"), Ao = 0, Xi = (n) => (t) => {
|
|
4951
4956
|
const { i18n: e } = t, o = ie(n?.filterState ?? {}), l = m(() => F(n?.columns)), { isEnabled: s, isAsync: r } = yt(t, n), u = (p) => r.value ? p : p.filter(
|
|
4952
4957
|
(v) => Object.entries(o.value).every(
|
|
4953
|
-
([
|
|
4954
|
-
const x = l.value?.[
|
|
4955
|
-
if (
|
|
4956
|
-
let h =
|
|
4957
|
-
return
|
|
4958
|
+
([b, g]) => {
|
|
4959
|
+
const x = l.value?.[b], _ = { ...n?.filterConfig, ...x?.config };
|
|
4960
|
+
if (g == null || g === "") return !0;
|
|
4961
|
+
let h = g.toString(), k = v[b]?.toString() ?? "";
|
|
4962
|
+
return _?.filterFunc ? _.filterFunc(
|
|
4958
4963
|
h,
|
|
4959
4964
|
k,
|
|
4960
|
-
|
|
4965
|
+
b,
|
|
4961
4966
|
v
|
|
4962
|
-
) : (k = It(k), h = It(h),
|
|
4967
|
+
) : (k = It(k), h = It(h), _.caseSensitive || (k = k.toLowerCase(), h = h.toLowerCase()), _.searchFromStart ? k.startsWith(h) : _.exactMatch ? k === h : k.includes(h));
|
|
4963
4968
|
}
|
|
4964
4969
|
)
|
|
4965
4970
|
), c = (p) => {
|
|
4966
4971
|
o.value[p] = "";
|
|
4967
4972
|
}, d = (p) => {
|
|
4968
4973
|
let v = o.value[p] || "";
|
|
4969
|
-
const
|
|
4970
|
-
|
|
4974
|
+
const b = (g) => {
|
|
4975
|
+
g.key === "Enter" && (o.value[p] = v);
|
|
4971
4976
|
};
|
|
4972
4977
|
return re(Xn, {
|
|
4973
4978
|
label: e.t.value("dataGrid.head.filtering.menu.label", { column: p.toString() }),
|
|
@@ -4976,16 +4981,16 @@ const Yi = (n, t) => {
|
|
|
4976
4981
|
modelValue: v,
|
|
4977
4982
|
// TODO: check after https://github.com/SchwarzIT/onyx/issues/2982 is closed -- `autofocus` doesn't have an effect currently
|
|
4978
4983
|
autofocus: !0,
|
|
4979
|
-
"onUpdate:modelValue": (
|
|
4980
|
-
v =
|
|
4984
|
+
"onUpdate:modelValue": (g) => {
|
|
4985
|
+
v = g || "";
|
|
4981
4986
|
},
|
|
4982
4987
|
onClear: () => {
|
|
4983
4988
|
o.value[p] = "", v = "";
|
|
4984
4989
|
},
|
|
4985
4990
|
onChange: () => o.value[p] = v,
|
|
4986
|
-
onKeydown:
|
|
4987
|
-
onClick: (
|
|
4988
|
-
|
|
4991
|
+
onKeydown: b,
|
|
4992
|
+
onClick: (g) => {
|
|
4993
|
+
g.preventDefault(), g.stopPropagation();
|
|
4989
4994
|
}
|
|
4990
4995
|
});
|
|
4991
4996
|
};
|
|
@@ -4994,7 +4999,7 @@ const Yi = (n, t) => {
|
|
|
4994
4999
|
watch: [o, l],
|
|
4995
5000
|
mutation: {
|
|
4996
5001
|
func: u,
|
|
4997
|
-
order:
|
|
5002
|
+
order: Ao
|
|
4998
5003
|
},
|
|
4999
5004
|
header: {
|
|
5000
5005
|
actions: ({ key: p }) => s.value(p) ? [
|
|
@@ -5029,7 +5034,7 @@ const Yi = (n, t) => {
|
|
|
5029
5034
|
(n.enabled?.value ?? !0) && !n.loading.value ? s.addEventListener("scroll", o) : s.removeEventListener("scroll", o);
|
|
5030
5035
|
});
|
|
5031
5036
|
}
|
|
5032
|
-
}, isScrollEnd:
|
|
5037
|
+
}, isScrollEnd: At(e) };
|
|
5033
5038
|
}, To = (n, t, e) => {
|
|
5034
5039
|
const o = t ?? -1 / 0, l = e ?? 1 / 0;
|
|
5035
5040
|
return Math.min(Math.max(n, o), l);
|
|
@@ -5140,26 +5145,26 @@ const Yi = (n, t) => {
|
|
|
5140
5145
|
key: "modelValue"
|
|
5141
5146
|
}), c = m(() => {
|
|
5142
5147
|
if (e.withCounter && e.maxlength) {
|
|
5143
|
-
const p = (u.value?.toString() ?? "").length, v = typeof e.maxlength == "object" ? e.maxlength.max : e.maxlength,
|
|
5148
|
+
const p = (u.value?.toString() ?? "").length, v = typeof e.maxlength == "object" ? e.maxlength.max : e.maxlength, b = p > v;
|
|
5144
5149
|
return {
|
|
5145
5150
|
length: p,
|
|
5146
5151
|
maxLength: v,
|
|
5147
|
-
violated:
|
|
5152
|
+
violated: b
|
|
5148
5153
|
};
|
|
5149
5154
|
}
|
|
5150
5155
|
}), d = m(() => {
|
|
5151
|
-
const { errorMessages: p, successMessages: v, message:
|
|
5156
|
+
const { errorMessages: p, successMessages: v, message: b } = e, g = {
|
|
5152
5157
|
counter: c.value,
|
|
5153
5158
|
errorMessages: p,
|
|
5154
5159
|
successMessages: v,
|
|
5155
|
-
message:
|
|
5160
|
+
message: b
|
|
5156
5161
|
};
|
|
5157
|
-
for (const x in
|
|
5158
|
-
const
|
|
5159
|
-
|
|
5162
|
+
for (const x in g) {
|
|
5163
|
+
const _ = x;
|
|
5164
|
+
g[_] == null && delete g[_];
|
|
5160
5165
|
}
|
|
5161
|
-
if (Object.keys(
|
|
5162
|
-
return
|
|
5166
|
+
if (Object.keys(g).length !== 0)
|
|
5167
|
+
return g;
|
|
5163
5168
|
});
|
|
5164
5169
|
return (p, v) => (i(), f(
|
|
5165
5170
|
"div",
|
|
@@ -5276,7 +5281,7 @@ const Yi = (n, t) => {
|
|
|
5276
5281
|
},
|
|
5277
5282
|
emits: ["inputClick", "validityChange"],
|
|
5278
5283
|
setup(n, { expose: t, emit: e }) {
|
|
5279
|
-
const { rootAttrs: o, restAttrs: l } = we(), s = n, r = e, { t: u } = W(), { vCustomValidity: c, errorMessages: d } = Je({ props: s, emit: r }), p = m(() => Te(s.success)), v = m(() => Te(s.message)), { disabled:
|
|
5284
|
+
const { rootAttrs: o, restAttrs: l } = we(), s = n, r = e, { t: u } = W(), { vCustomValidity: c, errorMessages: d } = Je({ props: s, emit: r }), p = m(() => Te(s.success)), v = m(() => Te(s.message)), { disabled: b, showError: g } = ke(s), x = ae(s), _ = $t(g), h = m(() => s.modelValue ? s.modelValue.length : 0), k = m(() => {
|
|
5280
5285
|
const H = s.modelValue?.length;
|
|
5281
5286
|
if (!s.modelValue || !H) return "";
|
|
5282
5287
|
if (H === 1) return s.modelValue[0];
|
|
@@ -5287,8 +5292,8 @@ const Yi = (n, t) => {
|
|
|
5287
5292
|
default:
|
|
5288
5293
|
return u.value("selections.currentSelection", { n: H });
|
|
5289
5294
|
}
|
|
5290
|
-
}), B = D(!1), { densityClass: C } = U(s),
|
|
5291
|
-
t({ input:
|
|
5295
|
+
}), B = D(!1), { densityClass: C } = U(s), A = Q("inputRef");
|
|
5296
|
+
t({ input: A }), J(
|
|
5292
5297
|
() => s.showFocus,
|
|
5293
5298
|
(H, Z) => {
|
|
5294
5299
|
B.value || Z && H === !1 && (B.value = !0);
|
|
@@ -5297,9 +5302,9 @@ const Yi = (n, t) => {
|
|
|
5297
5302
|
const L = Sn.concat($n), P = (H) => {
|
|
5298
5303
|
L.includes(H.key) || H.preventDefault();
|
|
5299
5304
|
};
|
|
5300
|
-
return Ie(
|
|
5305
|
+
return Ie(A, s), (H, Z) => a(x) ? (i(), f(
|
|
5301
5306
|
"div",
|
|
5302
|
-
|
|
5307
|
+
M({
|
|
5303
5308
|
key: 0,
|
|
5304
5309
|
class: ["onyx-component", "onyx-select-input-skeleton", a(C)]
|
|
5305
5310
|
}, a(o)),
|
|
@@ -5308,24 +5313,24 @@ const Yi = (n, t) => {
|
|
|
5308
5313
|
key: 0,
|
|
5309
5314
|
class: "onyx-select-input-skeleton__label"
|
|
5310
5315
|
})),
|
|
5311
|
-
|
|
5316
|
+
O(X, { class: "onyx-select-input-skeleton__input" })
|
|
5312
5317
|
],
|
|
5313
5318
|
16
|
|
5314
5319
|
/* FULL_PROPS */
|
|
5315
5320
|
)) : (i(), f(
|
|
5316
5321
|
"div",
|
|
5317
|
-
|
|
5322
|
+
M({
|
|
5318
5323
|
key: 1,
|
|
5319
5324
|
class: [
|
|
5320
5325
|
"onyx-component",
|
|
5321
5326
|
"onyx-select-input",
|
|
5322
5327
|
a(C),
|
|
5323
|
-
a(
|
|
5328
|
+
a(_),
|
|
5324
5329
|
s.readonly ? "onyx-select-input--readonly" : "onyx-select-input--editable"
|
|
5325
5330
|
]
|
|
5326
5331
|
}, a(o)),
|
|
5327
5332
|
[
|
|
5328
|
-
|
|
5333
|
+
O(Ct, M(s, {
|
|
5329
5334
|
message: v.value,
|
|
5330
5335
|
"success-messages": p.value,
|
|
5331
5336
|
"error-messages": a(d)
|
|
@@ -5333,14 +5338,14 @@ const Yi = (n, t) => {
|
|
|
5333
5338
|
default: $(({ id: se }) => [
|
|
5334
5339
|
y("div", {
|
|
5335
5340
|
class: "onyx-select-input__wrapper",
|
|
5336
|
-
onClick: Z[0] || (Z[0] = (V) => !a(
|
|
5341
|
+
onClick: Z[0] || (Z[0] = (V) => !a(b) && !s.loading && r("inputClick"))
|
|
5337
5342
|
}, [
|
|
5338
5343
|
s.loading ? (i(), w(ze, {
|
|
5339
5344
|
key: 0,
|
|
5340
5345
|
class: "onyx-select-input__loading",
|
|
5341
5346
|
type: "circle"
|
|
5342
5347
|
})) : S("v-if", !0),
|
|
5343
|
-
Se(y("input",
|
|
5348
|
+
Se(y("input", M({
|
|
5344
5349
|
id: se,
|
|
5345
5350
|
ref: "inputRef",
|
|
5346
5351
|
class: {
|
|
@@ -5354,7 +5359,7 @@ const Yi = (n, t) => {
|
|
|
5354
5359
|
readonly: s.readonly,
|
|
5355
5360
|
placeholder: s.placeholder,
|
|
5356
5361
|
required: s.required,
|
|
5357
|
-
disabled: a(
|
|
5362
|
+
disabled: a(b) || s.loading,
|
|
5358
5363
|
"aria-label": s.hideLabel ? s.label : void 0,
|
|
5359
5364
|
title: s.hideLabel ? s.label : void 0,
|
|
5360
5365
|
value: k.value,
|
|
@@ -5370,9 +5375,9 @@ const Yi = (n, t) => {
|
|
|
5370
5375
|
position: "bottom"
|
|
5371
5376
|
}, {
|
|
5372
5377
|
default: $(({ trigger: V }) => [
|
|
5373
|
-
|
|
5378
|
+
O(
|
|
5374
5379
|
Pt,
|
|
5375
|
-
|
|
5380
|
+
M({ class: "onyx-select-input__badge" }, V, { color: "neutral" }),
|
|
5376
5381
|
{
|
|
5377
5382
|
default: $(() => [
|
|
5378
5383
|
Y(
|
|
@@ -5397,9 +5402,9 @@ const Yi = (n, t) => {
|
|
|
5397
5402
|
"aria-label": a(u)("select.toggleDropDown"),
|
|
5398
5403
|
title: a(u)("select.toggleDropDown"),
|
|
5399
5404
|
tabindex: "-1",
|
|
5400
|
-
disabled: a(
|
|
5405
|
+
disabled: a(b) || s.readonly || s.loading
|
|
5401
5406
|
}, [
|
|
5402
|
-
|
|
5407
|
+
O(z, { icon: a(Pa) }, null, 8, ["icon"])
|
|
5403
5408
|
], 8, rc),
|
|
5404
5409
|
!s.hideSuccessIcon && p.value ? (i(), w(z, {
|
|
5405
5410
|
key: 2,
|
|
@@ -5429,7 +5434,7 @@ const Yi = (n, t) => {
|
|
|
5429
5434
|
},
|
|
5430
5435
|
setup(n) {
|
|
5431
5436
|
const t = n;
|
|
5432
|
-
return (e, o) => (i(), w($o,
|
|
5437
|
+
return (e, o) => (i(), w($o, M({ class: "onyx-component onyx-select-option" }, t, {
|
|
5433
5438
|
checked: !!e.$attrs["aria-checked"],
|
|
5434
5439
|
selected: !!e.$attrs["aria-selected"],
|
|
5435
5440
|
disabled: !!e.$attrs["aria-disabled"]
|
|
@@ -5547,27 +5552,27 @@ const Yi = (n, t) => {
|
|
|
5547
5552
|
emit: l,
|
|
5548
5553
|
key: "open",
|
|
5549
5554
|
default: !1
|
|
5550
|
-
}), v = Q("selectRef"), { openDirection:
|
|
5555
|
+
}), v = Q("selectRef"), { openDirection: b, updateOpenDirection: g } = wo(v), x = D(), _ = m(() => _t(c.value)), h = m(() => o.valueLabel !== void 0 ? _t(o.valueLabel) : _.value.reduce((j, pe) => {
|
|
5551
5556
|
const de = o.options.find(({ value: ve }) => ve === pe)?.label;
|
|
5552
5557
|
return de && j.push(de), j;
|
|
5553
5558
|
}, [])), k = Q("miniSearchRef"), B = Q("selectInputRef"), C = m(() => o.noFilter || !d.value ? o.options : o.options.filter(
|
|
5554
5559
|
({ label: j }) => Bn(j, d.value)
|
|
5555
5560
|
));
|
|
5556
5561
|
J(
|
|
5557
|
-
|
|
5562
|
+
_,
|
|
5558
5563
|
() => {
|
|
5559
|
-
o.multiple || (x.value =
|
|
5564
|
+
o.multiple || (x.value = _.value.at(0));
|
|
5560
5565
|
},
|
|
5561
5566
|
{ immediate: !0 }
|
|
5562
5567
|
);
|
|
5563
|
-
const
|
|
5568
|
+
const A = me(), L = m(() => (o.multiple && o.withCheckAll && !d.value ? [A] : []).concat(
|
|
5564
5569
|
Ro.value
|
|
5565
5570
|
)), P = async (j) => {
|
|
5566
5571
|
const pe = jo(
|
|
5567
5572
|
_e(),
|
|
5568
5573
|
"group"
|
|
5569
5574
|
);
|
|
5570
|
-
if (o.keepSelectionOrder ? lt.value =
|
|
5575
|
+
if (o.keepSelectionOrder ? lt.value = Mt(pe) : lt.value = Mt(
|
|
5571
5576
|
pe,
|
|
5572
5577
|
r.value("selections.selectGroup")
|
|
5573
5578
|
), o.readonly) {
|
|
@@ -5575,7 +5580,7 @@ const Yi = (n, t) => {
|
|
|
5575
5580
|
return;
|
|
5576
5581
|
}
|
|
5577
5582
|
const de = p.value;
|
|
5578
|
-
p.value = !de, await He(), p.value &&
|
|
5583
|
+
p.value = !de, await He(), p.value && g(), de !== p.value && (de ? (d.value && (d.value = ""), j || B.value?.input?.focus()) : k.value?.focus());
|
|
5579
5584
|
}, H = () => x.value = L.value.at(0), Z = () => x.value = L.value.at(-1), se = (j) => {
|
|
5580
5585
|
const pe = L.value.findIndex((de) => de === j);
|
|
5581
5586
|
pe < L.value.length - 1 && (x.value = L.value[pe + 1]);
|
|
@@ -5586,7 +5591,7 @@ const Yi = (n, t) => {
|
|
|
5586
5591
|
const pe = C.value.find((de) => de.label.toLowerCase().trim().startsWith(j.toLowerCase()));
|
|
5587
5592
|
pe && (x.value = pe.value);
|
|
5588
5593
|
}, te = (j) => d.value = j, q = (j) => {
|
|
5589
|
-
if (j ===
|
|
5594
|
+
if (j === A) {
|
|
5590
5595
|
Et.value?.handleChange(!Et.value.state.value.modelValue);
|
|
5591
5596
|
return;
|
|
5592
5597
|
}
|
|
@@ -5596,11 +5601,11 @@ const Yi = (n, t) => {
|
|
|
5596
5601
|
c.value = j;
|
|
5597
5602
|
return;
|
|
5598
5603
|
}
|
|
5599
|
-
|
|
5604
|
+
_.value.some((ve) => ve === j) ? c.value = _.value.filter(
|
|
5600
5605
|
(ve) => ve !== j
|
|
5601
|
-
) : c.value = [...
|
|
5606
|
+
) : c.value = [..._.value, j];
|
|
5602
5607
|
}, N = m(() => o.withSearch ? "list" : "none"), { label: ge, listLabel: le, listDescription: Fe, multiple: Pe } = Nt(o), {
|
|
5603
|
-
elements: { input: ye, option: fe, group: Ee, listbox:
|
|
5608
|
+
elements: { input: ye, option: fe, group: Ee, listbox: Oe }
|
|
5604
5609
|
} = Ss({
|
|
5605
5610
|
autocomplete: N,
|
|
5606
5611
|
label: ge,
|
|
@@ -5637,7 +5642,7 @@ const Yi = (n, t) => {
|
|
|
5637
5642
|
() => C.value.filter((j) => !j.disabled).map(({ value: j }) => j)
|
|
5638
5643
|
), Et = m(() => {
|
|
5639
5644
|
if (!(!o.multiple || !o.withCheckAll))
|
|
5640
|
-
return Yn(Ro,
|
|
5645
|
+
return Yn(Ro, _, (j) => {
|
|
5641
5646
|
const pe = j.map((de) => o.options.find(({ value: ve }) => ve === de)?.value).filter((de) => de != null);
|
|
5642
5647
|
c.value = pe;
|
|
5643
5648
|
});
|
|
@@ -5666,7 +5671,7 @@ const Yi = (n, t) => {
|
|
|
5666
5671
|
_e(),
|
|
5667
5672
|
"group"
|
|
5668
5673
|
);
|
|
5669
|
-
o.keepSelectionOrder ? lt.value =
|
|
5674
|
+
o.keepSelectionOrder ? lt.value = Mt(j) : lt.value = Mt(
|
|
5670
5675
|
j,
|
|
5671
5676
|
r.value("selections.selectGroup")
|
|
5672
5677
|
);
|
|
@@ -5676,16 +5681,16 @@ const Yi = (n, t) => {
|
|
|
5676
5681
|
"div",
|
|
5677
5682
|
uc,
|
|
5678
5683
|
[
|
|
5679
|
-
|
|
5684
|
+
O(So, {
|
|
5680
5685
|
class: R(a(u)),
|
|
5681
5686
|
label: o.listLabel,
|
|
5682
|
-
position: a(
|
|
5687
|
+
position: a(b),
|
|
5683
5688
|
alignment: o.alignment === "full" ? "center" : o.alignment,
|
|
5684
5689
|
"fit-parent": o.alignment === "full",
|
|
5685
5690
|
open: a(p)
|
|
5686
5691
|
}, {
|
|
5687
5692
|
default: $(() => [
|
|
5688
|
-
|
|
5693
|
+
O(ic, M({ ref: "selectInputRef" }, wa.value, {
|
|
5689
5694
|
"show-focus": a(p),
|
|
5690
5695
|
autofocus: o.autofocus,
|
|
5691
5696
|
onInputClick: P,
|
|
@@ -5694,7 +5699,7 @@ const Yi = (n, t) => {
|
|
|
5694
5699
|
]),
|
|
5695
5700
|
content: $(() => [
|
|
5696
5701
|
Se((i(), f("div", dc, [
|
|
5697
|
-
o.withSearch ? (i(), w(Xn,
|
|
5702
|
+
o.withSearch ? (i(), w(Xn, M({
|
|
5698
5703
|
key: 0,
|
|
5699
5704
|
ref: "miniSearchRef",
|
|
5700
5705
|
autofocus: "",
|
|
@@ -5706,12 +5711,12 @@ const Yi = (n, t) => {
|
|
|
5706
5711
|
}), null, 16, ["model-value", "label"])) : S("v-if", !0),
|
|
5707
5712
|
y(
|
|
5708
5713
|
"div",
|
|
5709
|
-
Ne(Qe(a(
|
|
5714
|
+
Ne(Qe(a(Oe))),
|
|
5710
5715
|
[
|
|
5711
5716
|
qt.value ? (i(), f("ul", pc, [
|
|
5712
5717
|
y("li", mc, [
|
|
5713
5718
|
E(j.$slots, "empty", { defaultMessage: qt.value }, () => [
|
|
5714
|
-
|
|
5719
|
+
O(Jn, {
|
|
5715
5720
|
density: o.density
|
|
5716
5721
|
}, {
|
|
5717
5722
|
default: $(() => [
|
|
@@ -5732,21 +5737,21 @@ const Yi = (n, t) => {
|
|
|
5732
5737
|
[
|
|
5733
5738
|
o.multiple && o.withCheckAll && !a(d) ? (i(), f(
|
|
5734
5739
|
"ul",
|
|
5735
|
-
|
|
5740
|
+
M({
|
|
5736
5741
|
key: 0,
|
|
5737
5742
|
class: "onyx-select__check-all"
|
|
5738
5743
|
}, a(Ee)({ label: Kt.value })),
|
|
5739
5744
|
[
|
|
5740
|
-
|
|
5745
|
+
O(Xo, M(
|
|
5741
5746
|
a(fe)({
|
|
5742
|
-
value: a(
|
|
5747
|
+
value: a(A),
|
|
5743
5748
|
label: Kt.value,
|
|
5744
5749
|
// TODO: remove type cast once its fixed in Vue / vue-tsc version
|
|
5745
5750
|
selected: Et.value?.state.value.modelValue
|
|
5746
5751
|
}),
|
|
5747
5752
|
{
|
|
5748
5753
|
multiple: "",
|
|
5749
|
-
active: a(
|
|
5754
|
+
active: a(A) === x.value,
|
|
5750
5755
|
indeterminate: Et.value?.state.value.indeterminate,
|
|
5751
5756
|
density: o.density
|
|
5752
5757
|
}
|
|
@@ -5770,7 +5775,7 @@ const Yi = (n, t) => {
|
|
|
5770
5775
|
null,
|
|
5771
5776
|
ce(lt.value, (de) => (i(), f(
|
|
5772
5777
|
"ul",
|
|
5773
|
-
|
|
5778
|
+
M({
|
|
5774
5779
|
key: de.name,
|
|
5775
5780
|
class: "onyx-select__group"
|
|
5776
5781
|
}, { ref_for: !0 }, a(Ee)({ label: de.name })),
|
|
@@ -5785,7 +5790,7 @@ const Yi = (n, t) => {
|
|
|
5785
5790
|
(i(!0), f(
|
|
5786
5791
|
K,
|
|
5787
5792
|
null,
|
|
5788
|
-
ce(de.items, (ve) => (i(), w(Xo,
|
|
5793
|
+
ce(de.items, (ve) => (i(), w(Xo, M(
|
|
5789
5794
|
{
|
|
5790
5795
|
key: ve.value.toString()
|
|
5791
5796
|
},
|
|
@@ -5794,7 +5799,7 @@ const Yi = (n, t) => {
|
|
|
5794
5799
|
value: ve.value,
|
|
5795
5800
|
label: ve.label,
|
|
5796
5801
|
disabled: ve.disabled,
|
|
5797
|
-
selected:
|
|
5802
|
+
selected: _.value.some((Sa) => Sa === ve.value)
|
|
5798
5803
|
}),
|
|
5799
5804
|
{
|
|
5800
5805
|
multiple: o.multiple,
|
|
@@ -5805,7 +5810,7 @@ const Yi = (n, t) => {
|
|
|
5805
5810
|
}
|
|
5806
5811
|
), {
|
|
5807
5812
|
default: $(() => [
|
|
5808
|
-
E(j.$slots, "option",
|
|
5813
|
+
E(j.$slots, "option", M({ ref_for: !0 }, ve), () => [
|
|
5809
5814
|
Y(
|
|
5810
5815
|
I(ve.label),
|
|
5811
5816
|
1
|
|
@@ -5835,7 +5840,7 @@ const Yi = (n, t) => {
|
|
|
5835
5840
|
/* FULL_PROPS */
|
|
5836
5841
|
),
|
|
5837
5842
|
o.lazyLoading?.loading ? (i(), f("div", fc, [
|
|
5838
|
-
|
|
5843
|
+
O(ze, { class: "onyx-select__loading" })
|
|
5839
5844
|
])) : S("v-if", !0),
|
|
5840
5845
|
s.optionsEnd ? (i(), f("div", vc, [
|
|
5841
5846
|
E(j.$slots, "optionsEnd")
|
|
@@ -5874,18 +5879,18 @@ const Yi = (n, t) => {
|
|
|
5874
5879
|
J(c, () => d.value = Yt);
|
|
5875
5880
|
const p = () => {
|
|
5876
5881
|
d.value = Math.min(e.pages, d.value + Yt);
|
|
5877
|
-
}, v = m(() => Array.from({ length: e.pages }, (
|
|
5882
|
+
}, v = m(() => Array.from({ length: e.pages }, (_, h) => {
|
|
5878
5883
|
const k = h + 1;
|
|
5879
5884
|
return {
|
|
5880
5885
|
label: k.toString(),
|
|
5881
5886
|
value: k
|
|
5882
5887
|
};
|
|
5883
|
-
})),
|
|
5884
|
-
let
|
|
5888
|
+
})), b = m(() => {
|
|
5889
|
+
let _ = v.value;
|
|
5885
5890
|
const h = c.value.trim().toLowerCase();
|
|
5886
|
-
return h && (
|
|
5887
|
-
}),
|
|
5888
|
-
return (
|
|
5891
|
+
return h && (_ = _.filter((k) => Bn(k.label, h))), _.slice(0, d.value);
|
|
5892
|
+
}), g = m(() => e.modelValue <= 1), x = m(() => e.modelValue >= e.pages);
|
|
5893
|
+
return (_, h) => a(u) ? (i(), w(X, {
|
|
5889
5894
|
key: 0,
|
|
5890
5895
|
class: R(["onyx-pagination-skeleton", "onyx-text", a(r)])
|
|
5891
5896
|
}, null, 8, ["class"])) : (i(), f("div", {
|
|
@@ -5895,13 +5900,13 @@ const Yi = (n, t) => {
|
|
|
5895
5900
|
"aria-label": a(l)("pagination.label"),
|
|
5896
5901
|
style: De({ "--onyx-pagination-character-count": e.modelValue.toString().length })
|
|
5897
5902
|
}, [
|
|
5898
|
-
|
|
5903
|
+
O(ca, {
|
|
5899
5904
|
"search-term": c.value,
|
|
5900
5905
|
"onUpdate:searchTerm": h[0] || (h[0] = (k) => c.value = k),
|
|
5901
5906
|
class: "onyx-pagination__select",
|
|
5902
5907
|
label: a(l)("pagination.select.label"),
|
|
5903
5908
|
"list-label": a(l)("pagination.select.listLabel"),
|
|
5904
|
-
options:
|
|
5909
|
+
options: b.value,
|
|
5905
5910
|
"model-value": e.modelValue,
|
|
5906
5911
|
"value-label": e.modelValue.toString(),
|
|
5907
5912
|
"hide-label": "",
|
|
@@ -5924,10 +5929,10 @@ const Yi = (n, t) => {
|
|
|
5924
5929
|
class: "onyx-pagination__button",
|
|
5925
5930
|
"aria-label": a(l)("pagination.previous"),
|
|
5926
5931
|
type: "button",
|
|
5927
|
-
disabled: e.disabled ||
|
|
5932
|
+
disabled: e.disabled || g.value,
|
|
5928
5933
|
onClick: h[2] || (h[2] = (k) => o("update:modelValue", e.modelValue - 1))
|
|
5929
5934
|
}, [
|
|
5930
|
-
|
|
5935
|
+
O(z, { icon: a(_o) }, null, 8, ["icon"])
|
|
5931
5936
|
], 8, _c),
|
|
5932
5937
|
y("button", {
|
|
5933
5938
|
class: "onyx-pagination__button",
|
|
@@ -5936,7 +5941,7 @@ const Yi = (n, t) => {
|
|
|
5936
5941
|
disabled: e.disabled || x.value,
|
|
5937
5942
|
onClick: h[3] || (h[3] = (k) => o("update:modelValue", e.modelValue + 1))
|
|
5938
5943
|
}, [
|
|
5939
|
-
|
|
5944
|
+
O(z, { icon: a(go) }, null, 8, ["icon"])
|
|
5940
5945
|
], 8, xc)
|
|
5941
5946
|
], 14, bc));
|
|
5942
5947
|
}
|
|
@@ -5954,7 +5959,7 @@ const Yi = (n, t) => {
|
|
|
5954
5959
|
const e = n, o = t;
|
|
5955
5960
|
return (l, s) => (i(), w(
|
|
5956
5961
|
kc,
|
|
5957
|
-
|
|
5962
|
+
M(e, {
|
|
5958
5963
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => o("update:modelValue", r))
|
|
5959
5964
|
}),
|
|
5960
5965
|
null,
|
|
@@ -5968,34 +5973,34 @@ const Yi = (n, t) => {
|
|
|
5968
5973
|
selectMode: "include",
|
|
5969
5974
|
contingent: /* @__PURE__ */ new Set()
|
|
5970
5975
|
}
|
|
5971
|
-
), l = D(0), s = ie(n?.hover ?? !1), { isEnabled: r } = yt(t, n), u = (
|
|
5972
|
-
o.value.selectMode =
|
|
5973
|
-
}, d = (
|
|
5974
|
-
o.value.selectMode === "include" &&
|
|
5976
|
+
), l = D(0), s = ie(n?.hover ?? !1), { isEnabled: r } = yt(t, n), u = (g) => o.value.selectMode === "include" ? o.value.contingent.has(g) : !o.value.contingent.has(g), c = (g) => {
|
|
5977
|
+
o.value.selectMode = g ? "exclude" : "include", o.value.contingent.clear();
|
|
5978
|
+
}, d = (g, x) => {
|
|
5979
|
+
o.value.selectMode === "include" && g === !0 || o.value.selectMode === "exclude" && g === !1 ? o.value.contingent.add(x) : o.value.contingent.delete(x);
|
|
5975
5980
|
}, p = () => o.value.contingent.size !== 0 && o.value.contingent.size !== l.value, v = () => {
|
|
5976
|
-
const { contingent:
|
|
5977
|
-
return x === "exclude" ?
|
|
5981
|
+
const { contingent: g, selectMode: x } = o.value;
|
|
5982
|
+
return x === "exclude" ? g.size === 0 : g.size > 0 && g.size === l.value;
|
|
5978
5983
|
};
|
|
5979
5984
|
return {
|
|
5980
5985
|
name: wc,
|
|
5981
5986
|
watch: [o, s, r],
|
|
5982
5987
|
modifyColumns: {
|
|
5983
|
-
func: (
|
|
5988
|
+
func: (g) => r.value() ? [
|
|
5984
5989
|
{
|
|
5985
5990
|
key: e,
|
|
5986
5991
|
type: { name: e },
|
|
5987
5992
|
label: "",
|
|
5988
5993
|
width: "2.5rem"
|
|
5989
5994
|
},
|
|
5990
|
-
...
|
|
5991
|
-
] : [...
|
|
5995
|
+
...g
|
|
5996
|
+
] : [...g]
|
|
5992
5997
|
},
|
|
5993
5998
|
mutation: {
|
|
5994
|
-
func: (
|
|
5999
|
+
func: (g) => (l.value = g.length, g),
|
|
5995
6000
|
order: da
|
|
5996
6001
|
},
|
|
5997
6002
|
typeRenderer: {
|
|
5998
|
-
[e]:
|
|
6003
|
+
[e]: Me({
|
|
5999
6004
|
header: {
|
|
6000
6005
|
thAttributes: { class: "onyx-data-grid-selection-cell" },
|
|
6001
6006
|
component: () => re(vt, {
|
|
@@ -6004,7 +6009,7 @@ const Yi = (n, t) => {
|
|
|
6004
6009
|
hideLabel: !0,
|
|
6005
6010
|
indeterminate: p(),
|
|
6006
6011
|
disabled: l.value === 0,
|
|
6007
|
-
"onUpdate:modelValue": (
|
|
6012
|
+
"onUpdate:modelValue": (g) => c(g),
|
|
6008
6013
|
modelValue: v()
|
|
6009
6014
|
})
|
|
6010
6015
|
},
|
|
@@ -6014,17 +6019,17 @@ const Yi = (n, t) => {
|
|
|
6014
6019
|
"onyx-data-grid-selection-cell": !0
|
|
6015
6020
|
}
|
|
6016
6021
|
},
|
|
6017
|
-
component: ({ row:
|
|
6018
|
-
const x = u(
|
|
6022
|
+
component: ({ row: g }) => {
|
|
6023
|
+
const x = u(g.id), _ = String(g.id), h = o.value.selectMode === "include" ? t.i18n.t.value("dataGrid.head.selection.select", { id: _ }) : t.i18n.t.value("dataGrid.head.selection.deselect", { id: _ });
|
|
6019
6024
|
return re(vt, {
|
|
6020
6025
|
class: {
|
|
6021
6026
|
"onyx-data-grid-selection-cell__checkbox": !0,
|
|
6022
6027
|
"onyx-data-grid-selection-cell__checkbox--hover": s.value,
|
|
6023
6028
|
"onyx-data-grid-selection-cell__checkbox--checked": x
|
|
6024
6029
|
},
|
|
6025
|
-
value: `selection-${
|
|
6030
|
+
value: `selection-${_}`,
|
|
6026
6031
|
hideLabel: !0,
|
|
6027
|
-
"onUpdate:modelValue": (k) => d(k,
|
|
6032
|
+
"onUpdate:modelValue": (k) => d(k, g.id),
|
|
6028
6033
|
label: h,
|
|
6029
6034
|
modelValue: x
|
|
6030
6035
|
});
|
|
@@ -6033,32 +6038,32 @@ const Yi = (n, t) => {
|
|
|
6033
6038
|
})
|
|
6034
6039
|
}
|
|
6035
6040
|
};
|
|
6036
|
-
}, $c = Symbol("Pagination"), Cc = Symbol("LazyLoadingRow"), Qo = Symbol("LazyLoadingRenderer"), Ec = Symbol("ButtonLoadingRow"), en = Symbol("ButtonLoadingRenderer"), pa = Math.min(
|
|
6041
|
+
}, $c = Symbol("Pagination"), Cc = Symbol("LazyLoadingRow"), Qo = Symbol("LazyLoadingRenderer"), Ec = Symbol("ButtonLoadingRow"), en = Symbol("ButtonLoadingRenderer"), pa = Math.min(Ao, da) - 1, Bc = (n = {}) => (t) => {
|
|
6037
6042
|
const e = ie(
|
|
6038
6043
|
n?.paginationState ?? { current: 1, pages: 1, pageSize: n?.pageSize ?? 25 }
|
|
6039
6044
|
), { isEnabled: o, isAsync: l } = yt(t, n), s = m(() => n.disabled?.value ?? !1), r = m(
|
|
6040
6045
|
() => e.value.pages > 1 || e.value.current > e.value.pageSize
|
|
6041
|
-
), u = m(() => e.value.current >= e.value.pages), c = m(() => n.loading?.value ?? !1), d = n.type ?? "select", p = D(), { vScrollEnd: v, isScrollEnd:
|
|
6046
|
+
), u = m(() => e.value.current >= e.value.pages), c = m(() => n.loading?.value ?? !1), d = n.type ?? "select", p = D(), { vScrollEnd: v, isScrollEnd: b } = ia({
|
|
6042
6047
|
enabled: m(() => d === "lazy" && !u.value && !F(n.disabled)),
|
|
6043
6048
|
loading: c
|
|
6044
6049
|
});
|
|
6045
|
-
return J(
|
|
6046
|
-
|
|
6050
|
+
return J(b, (g) => {
|
|
6051
|
+
g && e.value.current++;
|
|
6047
6052
|
}), J(p, () => {
|
|
6048
6053
|
p.value && v.mounted(p.value);
|
|
6049
6054
|
}), {
|
|
6050
6055
|
name: $c,
|
|
6051
|
-
watch: [e, o, l, s, t.skeleton,
|
|
6056
|
+
watch: [e, o, l, s, t.skeleton, b, c],
|
|
6052
6057
|
mutation: {
|
|
6053
6058
|
order: pa,
|
|
6054
|
-
func: (
|
|
6055
|
-
if (!o.value()) return
|
|
6056
|
-
let x =
|
|
6059
|
+
func: (g) => {
|
|
6060
|
+
if (!o.value()) return g;
|
|
6061
|
+
let x = g.slice();
|
|
6057
6062
|
if (!l.value) {
|
|
6058
6063
|
e.value.pages = Math.ceil(x.length / e.value.pageSize), e.value.current = To(e.value.current, 1, e.value.pages);
|
|
6059
|
-
let
|
|
6060
|
-
const h =
|
|
6061
|
-
d !== "select" && (
|
|
6064
|
+
let _ = (e.value.current - 1) * e.value.pageSize;
|
|
6065
|
+
const h = _ + e.value.pageSize;
|
|
6066
|
+
d !== "select" && (_ = 0), x = x.slice(_, h);
|
|
6062
6067
|
}
|
|
6063
6068
|
return d === "lazy" && c.value && x.push({
|
|
6064
6069
|
id: Cc,
|
|
@@ -6074,7 +6079,7 @@ const Yi = (n, t) => {
|
|
|
6074
6079
|
}
|
|
6075
6080
|
},
|
|
6076
6081
|
typeRenderer: {
|
|
6077
|
-
[Qo]:
|
|
6082
|
+
[Qo]: Me({
|
|
6078
6083
|
cell: {
|
|
6079
6084
|
tdAttributes: {
|
|
6080
6085
|
class: "onyx-data-grid__lazy-pagination",
|
|
@@ -6083,7 +6088,7 @@ const Yi = (n, t) => {
|
|
|
6083
6088
|
component: () => re(io)
|
|
6084
6089
|
}
|
|
6085
6090
|
}),
|
|
6086
|
-
[en]:
|
|
6091
|
+
[en]: Me({
|
|
6087
6092
|
cell: {
|
|
6088
6093
|
tdAttributes: {
|
|
6089
6094
|
class: "onyx-data-grid__button-pagination",
|
|
@@ -6101,25 +6106,25 @@ const Yi = (n, t) => {
|
|
|
6101
6106
|
slots: {
|
|
6102
6107
|
pagination: () => {
|
|
6103
6108
|
if (!o.value() || d !== "select") return [];
|
|
6104
|
-
const
|
|
6105
|
-
return !r.value && !
|
|
6109
|
+
const g = t.skeleton.value && !r.value;
|
|
6110
|
+
return !r.value && !g ? [] : [
|
|
6106
6111
|
re(ua, {
|
|
6107
6112
|
modelValue: e.value.current,
|
|
6108
6113
|
pages: e.value.pages,
|
|
6109
6114
|
disabled: s.value,
|
|
6110
|
-
skeleton:
|
|
6115
|
+
skeleton: g,
|
|
6111
6116
|
"onUpdate:modelValue": (x) => e.value.current = x
|
|
6112
6117
|
})
|
|
6113
6118
|
];
|
|
6114
6119
|
}
|
|
6115
6120
|
},
|
|
6116
6121
|
scrollContainerAttributes: () => ({
|
|
6117
|
-
ref: (
|
|
6118
|
-
p.value =
|
|
6122
|
+
ref: (g) => {
|
|
6123
|
+
p.value = g;
|
|
6119
6124
|
}
|
|
6120
6125
|
})
|
|
6121
6126
|
};
|
|
6122
|
-
},
|
|
6127
|
+
}, Mc = Symbol("Base"), Oc = Math.max(Ao, pa) + 1, Ac = (n) => ({ skeleton: t }) => {
|
|
6123
6128
|
const e = D(0), o = m(() => {
|
|
6124
6129
|
const l = F(n?.headline);
|
|
6125
6130
|
if (l)
|
|
@@ -6129,13 +6134,13 @@ const Yi = (n, t) => {
|
|
|
6129
6134
|
};
|
|
6130
6135
|
});
|
|
6131
6136
|
return {
|
|
6132
|
-
name:
|
|
6137
|
+
name: Mc,
|
|
6133
6138
|
watch: [t, o],
|
|
6134
6139
|
modifyColumns: {
|
|
6135
6140
|
func: (l) => t.value ? l.map((s) => ({ ...s, type: { name: "skeleton" } })) : [...l]
|
|
6136
6141
|
},
|
|
6137
6142
|
mutation: {
|
|
6138
|
-
order:
|
|
6143
|
+
order: Oc,
|
|
6139
6144
|
func: (l) => {
|
|
6140
6145
|
if (e.value = l.length, !t.value) return [...l];
|
|
6141
6146
|
let s = typeof t.value == "number" ? t.value : 5;
|
|
@@ -6147,7 +6152,7 @@ const Yi = (n, t) => {
|
|
|
6147
6152
|
}),
|
|
6148
6153
|
typeRenderer: {
|
|
6149
6154
|
number: ea,
|
|
6150
|
-
string:
|
|
6155
|
+
string: Oo,
|
|
6151
6156
|
date: ta,
|
|
6152
6157
|
"datetime-local": oa,
|
|
6153
6158
|
time: na,
|
|
@@ -6186,39 +6191,39 @@ const Yi = (n, t) => {
|
|
|
6186
6191
|
withPageScrolling: { type: Boolean }
|
|
6187
6192
|
},
|
|
6188
6193
|
setup(n) {
|
|
6189
|
-
const t = n, e = W(), o = ue(), l = ae(t), s = Ze([]), r = Ze([]), u = Ze(), c = Ze(), d = Ze(), { columns: p, data: v, features:
|
|
6190
|
-
let
|
|
6194
|
+
const t = n, e = W(), o = ue(), l = ae(t), s = Ze([]), r = Ze([]), u = Ze(), c = Ze(), d = Ze(), { columns: p, data: v, features: b, columnGroups: g, async: x } = Nt(t);
|
|
6195
|
+
let _;
|
|
6191
6196
|
const h = ({
|
|
6192
6197
|
createRendererColumns: k,
|
|
6193
6198
|
createRendererRows: B,
|
|
6194
6199
|
watchSources: C,
|
|
6195
|
-
createRendererColumnGroups:
|
|
6200
|
+
createRendererColumnGroups: A,
|
|
6196
6201
|
createScrollContainerAttributes: L,
|
|
6197
6202
|
createSlots: P
|
|
6198
6203
|
}) => J(
|
|
6199
|
-
[v, l, p,
|
|
6204
|
+
[v, l, p, g, e.locale, e.t, ...C],
|
|
6200
6205
|
() => {
|
|
6201
|
-
s.value = k(), r.value = B(v.value), u.value =
|
|
6206
|
+
s.value = k(), r.value = B(v.value), u.value = A(), c.value = L(), d.value = P();
|
|
6202
6207
|
},
|
|
6203
6208
|
{ immediate: !0, deep: !0 }
|
|
6204
6209
|
);
|
|
6205
6210
|
return J(
|
|
6206
|
-
|
|
6211
|
+
b,
|
|
6207
6212
|
() => {
|
|
6208
6213
|
const k = Ji(
|
|
6209
|
-
[
|
|
6214
|
+
[Ac({ headline: ie(t, "headline") }), ...b.value],
|
|
6210
6215
|
{
|
|
6211
6216
|
i18n: e,
|
|
6212
6217
|
columnConfig: p,
|
|
6213
|
-
columnGroups:
|
|
6218
|
+
columnGroups: g,
|
|
6214
6219
|
async: x,
|
|
6215
6220
|
skeleton: l
|
|
6216
6221
|
}
|
|
6217
6222
|
);
|
|
6218
|
-
|
|
6223
|
+
_?.(), _ = h(k);
|
|
6219
6224
|
},
|
|
6220
6225
|
{ immediate: !0 }
|
|
6221
|
-
), (k, B) => (i(), w(Pi,
|
|
6226
|
+
), (k, B) => (i(), w(Pi, M(
|
|
6222
6227
|
{
|
|
6223
6228
|
"column-groups": u.value,
|
|
6224
6229
|
columns: s.value,
|
|
@@ -6235,8 +6240,8 @@ const Yi = (n, t) => {
|
|
|
6235
6240
|
_: 2
|
|
6236
6241
|
/* DYNAMIC */
|
|
6237
6242
|
}, [
|
|
6238
|
-
ce(d.value, (C,
|
|
6239
|
-
name:
|
|
6243
|
+
ce(d.value, (C, A) => ({
|
|
6244
|
+
name: A,
|
|
6240
6245
|
fn: $(() => [
|
|
6241
6246
|
(i(), w(Be(C)))
|
|
6242
6247
|
])
|
|
@@ -6354,13 +6359,13 @@ const Yi = (n, t) => {
|
|
|
6354
6359
|
if (!r.value) return;
|
|
6355
6360
|
s.value = r.value.getBoundingClientRect().width, c.value = !0, u = new AbortController();
|
|
6356
6361
|
const x = { signal: u.signal, passive: !0 };
|
|
6357
|
-
window.addEventListener("mousemove", v, x), window.addEventListener("mouseup",
|
|
6362
|
+
window.addEventListener("mousemove", v, x), window.addEventListener("mouseup", b, x), window.addEventListener("keydown", g, x), o("start");
|
|
6358
6363
|
};
|
|
6359
6364
|
Ce(() => {
|
|
6360
6365
|
J(
|
|
6361
6366
|
() => e.active,
|
|
6362
6367
|
(x) => {
|
|
6363
|
-
x != null && (x && !c.value ? d() : !x && c.value &&
|
|
6368
|
+
x != null && (x && !c.value ? d() : !x && c.value && b());
|
|
6364
6369
|
},
|
|
6365
6370
|
{ immediate: !0 }
|
|
6366
6371
|
);
|
|
@@ -6369,15 +6374,15 @@ const Yi = (n, t) => {
|
|
|
6369
6374
|
o("autoSize");
|
|
6370
6375
|
}, v = (x) => {
|
|
6371
6376
|
if (!r.value || !c.value) return;
|
|
6372
|
-
const
|
|
6377
|
+
const _ = r.value.getBoundingClientRect();
|
|
6373
6378
|
let h;
|
|
6374
|
-
e.alignment === "right" ? h = x.clientX -
|
|
6375
|
-
},
|
|
6379
|
+
e.alignment === "right" ? h = x.clientX - _.left : h = _.right - x.clientX, o("updateWidth", Math.max(e.min, h));
|
|
6380
|
+
}, b = () => {
|
|
6376
6381
|
u?.abort(), s.value = void 0, c.value = !1, o("end");
|
|
6377
|
-
},
|
|
6378
|
-
x.key === "Escape" && (s.value && o("updateWidth", s.value),
|
|
6382
|
+
}, g = (x) => {
|
|
6383
|
+
x.key === "Escape" && (s.value && o("updateWidth", s.value), b());
|
|
6379
6384
|
};
|
|
6380
|
-
return (x,
|
|
6385
|
+
return (x, _) => (i(), f(
|
|
6381
6386
|
"button",
|
|
6382
6387
|
{
|
|
6383
6388
|
tabindex: "-1",
|
|
@@ -6394,7 +6399,7 @@ const Yi = (n, t) => {
|
|
|
6394
6399
|
onDblclick: p
|
|
6395
6400
|
},
|
|
6396
6401
|
[
|
|
6397
|
-
|
|
6402
|
+
O(et, null, {
|
|
6398
6403
|
default: $(() => [
|
|
6399
6404
|
Y(
|
|
6400
6405
|
I(a(l)("resizeHandle.label")),
|
|
@@ -6410,44 +6415,44 @@ const Yi = (n, t) => {
|
|
|
6410
6415
|
/* CLASS, NEED_HYDRATION */
|
|
6411
6416
|
));
|
|
6412
6417
|
}
|
|
6413
|
-
}), Rc = Symbol("Resizing"),
|
|
6418
|
+
}), Rc = Symbol("Resizing"), Ot = Symbol("FILLER_COLUMN"), Dc = (n) => (t) => {
|
|
6414
6419
|
const e = D(), o = 48, l = D(/* @__PURE__ */ new Map()), { isEnabled: s } = yt(t, n), r = D(/* @__PURE__ */ new Map()), u = D();
|
|
6415
6420
|
J(
|
|
6416
6421
|
[l, r],
|
|
6417
6422
|
() => {
|
|
6418
6423
|
l.value.forEach((p, v) => {
|
|
6419
|
-
const
|
|
6420
|
-
x ?
|
|
6424
|
+
const b = `--onyx-data-grid-column-${Eo(v)}`, g = p.closest(".onyx-table-wrapper__container"), x = r.value.get(v);
|
|
6425
|
+
x ? g?.style.setProperty(b, x) : g?.style.removeProperty(b);
|
|
6421
6426
|
});
|
|
6422
6427
|
},
|
|
6423
6428
|
{ flush: "post", deep: !0 }
|
|
6424
6429
|
);
|
|
6425
6430
|
const c = (p) => {
|
|
6426
|
-
const v = p.map((
|
|
6427
|
-
if (!s.value(
|
|
6428
|
-
const
|
|
6431
|
+
const v = p.map((b) => {
|
|
6432
|
+
if (!s.value(b.key)) return b;
|
|
6433
|
+
const g = {
|
|
6429
6434
|
class: "onyx-data-grid-resize-cell",
|
|
6430
|
-
ref: (
|
|
6431
|
-
|
|
6435
|
+
ref: (_) => {
|
|
6436
|
+
_ ? l.value.set(b.key, _) : l.value.delete(b.key);
|
|
6432
6437
|
}
|
|
6433
|
-
}, x = r.value.get(
|
|
6438
|
+
}, x = r.value.get(b.key);
|
|
6434
6439
|
return {
|
|
6435
|
-
...
|
|
6436
|
-
width: x ||
|
|
6437
|
-
thAttributes: he(
|
|
6440
|
+
...b,
|
|
6441
|
+
width: x || b.width,
|
|
6442
|
+
thAttributes: he(g, b.thAttributes)
|
|
6438
6443
|
};
|
|
6439
6444
|
});
|
|
6440
|
-
return v.push({ key:
|
|
6441
|
-
}, d = (p, v,
|
|
6442
|
-
const
|
|
6443
|
-
return !s.value(v.key) ||
|
|
6445
|
+
return v.push({ key: Ot, type: { name: Ot }, label: "" }), v;
|
|
6446
|
+
}, d = (p, v, b) => {
|
|
6447
|
+
const g = p.default?.();
|
|
6448
|
+
return !s.value(v.key) || b ? g : [
|
|
6444
6449
|
re(po, {
|
|
6445
6450
|
min: o,
|
|
6446
6451
|
element: l.value.get(v.key),
|
|
6447
6452
|
active: e.value?.key === v.key,
|
|
6448
6453
|
onStart: () => {
|
|
6449
|
-
e.value = v, Array.from(l.value.entries()).forEach(([x,
|
|
6450
|
-
const { width: h } =
|
|
6454
|
+
e.value = v, Array.from(l.value.entries()).forEach(([x, _]) => {
|
|
6455
|
+
const { width: h } = _.getBoundingClientRect();
|
|
6451
6456
|
r.value.set(x, `${Math.max(o, h)}px`);
|
|
6452
6457
|
});
|
|
6453
6458
|
},
|
|
@@ -6459,7 +6464,7 @@ const Yi = (n, t) => {
|
|
|
6459
6464
|
},
|
|
6460
6465
|
onAutoSize: () => r.value.set(v.key, "max-content")
|
|
6461
6466
|
}),
|
|
6462
|
-
|
|
6467
|
+
g
|
|
6463
6468
|
];
|
|
6464
6469
|
};
|
|
6465
6470
|
return {
|
|
@@ -6476,7 +6481,7 @@ const Yi = (n, t) => {
|
|
|
6476
6481
|
/**
|
|
6477
6482
|
* The filler column stretches the remaining space in case the column widths are smaller than the table's intended width.
|
|
6478
6483
|
*/
|
|
6479
|
-
[
|
|
6484
|
+
[Ot]: {
|
|
6480
6485
|
header: {
|
|
6481
6486
|
thAttributes: { class: "onyx-data-grid-filler-column-cell", "aria-hidden": !0 },
|
|
6482
6487
|
component: () => null
|
|
@@ -6488,9 +6493,9 @@ const Yi = (n, t) => {
|
|
|
6488
6493
|
}
|
|
6489
6494
|
},
|
|
6490
6495
|
header: {
|
|
6491
|
-
wrapper: (p, v, { length:
|
|
6492
|
-
const
|
|
6493
|
-
return d(x, p,
|
|
6496
|
+
wrapper: (p, v, { length: b }) => (g, { slots: x }) => {
|
|
6497
|
+
const _ = v === b - 1, h = p.type.name === Ot;
|
|
6498
|
+
return d(x, p, _ || h);
|
|
6494
6499
|
}
|
|
6495
6500
|
}
|
|
6496
6501
|
};
|
|
@@ -6560,26 +6565,26 @@ const Yi = (n, t) => {
|
|
|
6560
6565
|
let r = [];
|
|
6561
6566
|
const u = m(
|
|
6562
6567
|
() => F(n?.collator) ?? new Intl.Collator(o.locale.value, { numeric: !0 })
|
|
6563
|
-
), c = (
|
|
6564
|
-
const
|
|
6565
|
-
if (
|
|
6566
|
-
return
|
|
6567
|
-
const h = r.find(({ key: k }) =>
|
|
6568
|
+
), c = (g) => {
|
|
6569
|
+
const _ = F(n?.columns)?.[g]?.sortFunc;
|
|
6570
|
+
if (_)
|
|
6571
|
+
return _;
|
|
6572
|
+
const h = r.find(({ key: k }) => g === k)?.type.name ?? "";
|
|
6568
6573
|
return on[h] ? on[h] : Io;
|
|
6569
|
-
}, d = (
|
|
6570
|
-
const { column: x, direction:
|
|
6571
|
-
if (s.value || !x ||
|
|
6572
|
-
return
|
|
6573
|
-
const h =
|
|
6574
|
-
return
|
|
6575
|
-
}, p = (
|
|
6576
|
-
const
|
|
6574
|
+
}, d = (g) => {
|
|
6575
|
+
const { column: x, direction: _ } = e.value;
|
|
6576
|
+
if (s.value || !x || _ === "none")
|
|
6577
|
+
return g;
|
|
6578
|
+
const h = _ === "asc" ? 1 : -1, k = c(x);
|
|
6579
|
+
return g.sort((B, C) => k(B[x], C[x], u.value) * h), g;
|
|
6580
|
+
}, p = (g, x = !1) => {
|
|
6581
|
+
const _ = e.value.column === g ? mo(e.value.direction, x) : mo(void 0, x), h = _ !== "none" ? g : void 0;
|
|
6577
6582
|
e.value = {
|
|
6578
|
-
direction:
|
|
6583
|
+
direction: _,
|
|
6579
6584
|
column: h
|
|
6580
6585
|
};
|
|
6581
|
-
}, v = m(() => (
|
|
6582
|
-
const
|
|
6586
|
+
}, v = m(() => (g, x) => e.value.column === g && e.value.direction === x), b = (g, x) => {
|
|
6587
|
+
const _ = {
|
|
6583
6588
|
none: qa,
|
|
6584
6589
|
asc: mn,
|
|
6585
6590
|
desc: yn
|
|
@@ -6587,11 +6592,11 @@ const Yi = (n, t) => {
|
|
|
6587
6592
|
return re(
|
|
6588
6593
|
Ke,
|
|
6589
6594
|
{
|
|
6590
|
-
active: v.value(
|
|
6591
|
-
onClick: () => e.value = { column:
|
|
6595
|
+
active: v.value(g, x),
|
|
6596
|
+
onClick: () => e.value = { column: g, direction: x }
|
|
6592
6597
|
},
|
|
6593
6598
|
() => [
|
|
6594
|
-
re(z, { icon:
|
|
6599
|
+
re(z, { icon: _[x] }),
|
|
6595
6600
|
o.t.value(`dataGrid.head.sorting.menu.${x}`)
|
|
6596
6601
|
]
|
|
6597
6602
|
);
|
|
@@ -6605,35 +6610,35 @@ const Yi = (n, t) => {
|
|
|
6605
6610
|
modifyColumns: [
|
|
6606
6611
|
{
|
|
6607
6612
|
// save final column config
|
|
6608
|
-
func: (
|
|
6613
|
+
func: (g) => r = g,
|
|
6609
6614
|
order: -1 / 0
|
|
6610
6615
|
}
|
|
6611
6616
|
],
|
|
6612
6617
|
header: {
|
|
6613
|
-
actions: ({ key:
|
|
6618
|
+
actions: ({ key: g, label: x }) => l.value(g) ? [
|
|
6614
6619
|
{
|
|
6615
6620
|
iconComponent: re(nn, {
|
|
6616
6621
|
columnLabel: x,
|
|
6617
|
-
sortDirection: e.value.column ===
|
|
6618
|
-
onClick: () => p(
|
|
6622
|
+
sortDirection: e.value.column === g ? e.value.direction : void 0,
|
|
6623
|
+
onClick: () => p(g)
|
|
6619
6624
|
}),
|
|
6620
6625
|
menuItems: [
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6626
|
+
b(g, "none"),
|
|
6627
|
+
b(g, "asc"),
|
|
6628
|
+
b(g, "desc")
|
|
6624
6629
|
]
|
|
6625
6630
|
},
|
|
6626
|
-
e.value.column ===
|
|
6631
|
+
e.value.column === g && e.value.direction && e.value.direction !== "none" ? {
|
|
6627
6632
|
iconComponent: {
|
|
6628
6633
|
iconComponent: re(nn, {
|
|
6629
6634
|
columnLabel: x,
|
|
6630
|
-
sortDirection: e.value.column ===
|
|
6631
|
-
onClick: () => p(
|
|
6635
|
+
sortDirection: e.value.column === g ? e.value.direction : void 0,
|
|
6636
|
+
onClick: () => p(g, !0)
|
|
6632
6637
|
}),
|
|
6633
6638
|
alwaysShowInHeader: !0
|
|
6634
6639
|
}
|
|
6635
6640
|
} : null
|
|
6636
|
-
].filter((
|
|
6641
|
+
].filter((_) => _ !== null) : []
|
|
6637
6642
|
}
|
|
6638
6643
|
};
|
|
6639
6644
|
}, Fc = Symbol("StickyColumns"), Pc = (n) => () => {
|
|
@@ -6642,8 +6647,8 @@ const Yi = (n, t) => {
|
|
|
6642
6647
|
if (!("ResizeObserver" in window)) return;
|
|
6643
6648
|
const p = new ResizeObserver(() => {
|
|
6644
6649
|
Object.entries(l.value).forEach(
|
|
6645
|
-
([v,
|
|
6646
|
-
), t.value.forEach((v,
|
|
6650
|
+
([v, b]) => o.value[v] = b.getBoundingClientRect().width
|
|
6651
|
+
), t.value.forEach((v, b) => c(v, b));
|
|
6647
6652
|
});
|
|
6648
6653
|
J(
|
|
6649
6654
|
l,
|
|
@@ -6655,27 +6660,27 @@ const Yi = (n, t) => {
|
|
|
6655
6660
|
});
|
|
6656
6661
|
const c = (p, v) => {
|
|
6657
6662
|
if (!n) return;
|
|
6658
|
-
const
|
|
6659
|
-
document.body.style.setProperty(u(p), `${
|
|
6663
|
+
const b = t.value.map((g) => o.value[g]).reduce((g, x, _) => _ < v ? g + x : g, 0);
|
|
6664
|
+
document.body.style.setProperty(u(p), `${b}px`);
|
|
6660
6665
|
}, d = (p) => {
|
|
6661
|
-
const v = p.scrollWidth - p.clientWidth,
|
|
6662
|
-
r.value = e.value === "left" &&
|
|
6666
|
+
const v = p.scrollWidth - p.clientWidth, b = Math.round(p.scrollLeft);
|
|
6667
|
+
r.value = e.value === "left" && b > 0 || e.value === "right" && b < v;
|
|
6663
6668
|
};
|
|
6664
6669
|
return {
|
|
6665
6670
|
name: Fc,
|
|
6666
6671
|
watch: [e, t, r],
|
|
6667
6672
|
modifyColumns: {
|
|
6668
6673
|
func: (p) => {
|
|
6669
|
-
const v = p.filter((
|
|
6674
|
+
const v = p.filter((g) => t.value.includes(g.key)).map((g) => {
|
|
6670
6675
|
const x = e.value === "left" ? {
|
|
6671
6676
|
right: "auto",
|
|
6672
|
-
left: `var(${u(
|
|
6677
|
+
left: `var(${u(g.key)})`
|
|
6673
6678
|
} : {
|
|
6674
6679
|
left: "auto",
|
|
6675
|
-
right: `var(${u(
|
|
6680
|
+
right: `var(${u(g.key)})`
|
|
6676
6681
|
};
|
|
6677
6682
|
return {
|
|
6678
|
-
...
|
|
6683
|
+
...g,
|
|
6679
6684
|
thAttributes: he(
|
|
6680
6685
|
{
|
|
6681
6686
|
style: x,
|
|
@@ -6684,11 +6689,11 @@ const Yi = (n, t) => {
|
|
|
6684
6689
|
[e.value]: !0,
|
|
6685
6690
|
isScrolled: r.value
|
|
6686
6691
|
},
|
|
6687
|
-
ref: (
|
|
6688
|
-
|
|
6692
|
+
ref: (_) => {
|
|
6693
|
+
_ ? l.value[g.key] = _ : delete l.value[g.key];
|
|
6689
6694
|
}
|
|
6690
6695
|
},
|
|
6691
|
-
|
|
6696
|
+
g.thAttributes
|
|
6692
6697
|
),
|
|
6693
6698
|
tdAttributes: {
|
|
6694
6699
|
style: x,
|
|
@@ -6699,8 +6704,8 @@ const Yi = (n, t) => {
|
|
|
6699
6704
|
}
|
|
6700
6705
|
}
|
|
6701
6706
|
};
|
|
6702
|
-
}),
|
|
6703
|
-
return e.value === "left" ? [...v, ...
|
|
6707
|
+
}), b = p.filter((g) => !t.value.includes(g.key));
|
|
6708
|
+
return e.value === "left" ? [...v, ...b] : [...b, ...v.slice().reverse()];
|
|
6704
6709
|
}
|
|
6705
6710
|
},
|
|
6706
6711
|
scrollContainerAttributes: () => ({
|
|
@@ -6718,14 +6723,14 @@ const Yi = (n, t) => {
|
|
|
6718
6723
|
FALLBACK_RENDER_VALUE: Bo,
|
|
6719
6724
|
NUMBER_RENDERER: ea,
|
|
6720
6725
|
SKELETON_RENDERER: la,
|
|
6721
|
-
STRING_RENDERER:
|
|
6726
|
+
STRING_RENDERER: Oo,
|
|
6722
6727
|
TIMESTAMP_RENDERER: aa,
|
|
6723
6728
|
TIME_RENDERER: na,
|
|
6724
6729
|
createRenderer: ra,
|
|
6725
|
-
createTypeRenderer:
|
|
6730
|
+
createTypeRenderer: Me,
|
|
6726
6731
|
dateFormatter: St,
|
|
6727
6732
|
numberFormatter: Qn,
|
|
6728
|
-
stringFormatter:
|
|
6733
|
+
stringFormatter: Mo,
|
|
6729
6734
|
useFiltering: Xi,
|
|
6730
6735
|
useHideColumns: Ic,
|
|
6731
6736
|
usePagination: Bc,
|
|
@@ -6764,27 +6769,27 @@ const Yi = (n, t) => {
|
|
|
6764
6769
|
},
|
|
6765
6770
|
emits: ["update:modelValue", "validityChange"],
|
|
6766
6771
|
setup(n, { emit: t }) {
|
|
6767
|
-
const e = n, o = t, { rootAttrs: l, restAttrs: s } = we(), { vCustomValidity: r, errorMessages: u } = Je({ props: e, emit: o }), c = m(() => Te(e.success)), d = m(() => Te(e.message)), { densityClass: p } = U(e), { disabled: v, showError:
|
|
6768
|
-
const
|
|
6769
|
-
if (!co(
|
|
6770
|
-
const L =
|
|
6772
|
+
const e = n, o = t, { rootAttrs: l, restAttrs: s } = we(), { vCustomValidity: r, errorMessages: u } = Je({ props: e, emit: o }), c = m(() => Te(e.success)), d = m(() => Te(e.message)), { densityClass: p } = U(e), { disabled: v, showError: b } = ke(e), g = ae(e), x = $t(b), _ = m(() => (C) => {
|
|
6773
|
+
const A = C != null && C != null ? new Date(C) : void 0;
|
|
6774
|
+
if (!co(A)) return;
|
|
6775
|
+
const L = A.toISOString().split("T")[0];
|
|
6771
6776
|
if (e.type === "date") return L;
|
|
6772
|
-
const P =
|
|
6777
|
+
const P = A.getHours().toString().padStart(2, "0"), H = A.getMinutes().toString().padStart(2, "0");
|
|
6773
6778
|
return `${L}T${P}:${H}`;
|
|
6774
6779
|
}), h = oe({
|
|
6775
6780
|
props: e,
|
|
6776
6781
|
emit: o,
|
|
6777
6782
|
key: "modelValue"
|
|
6778
6783
|
}), k = m({
|
|
6779
|
-
get: () =>
|
|
6784
|
+
get: () => _.value(h.value),
|
|
6780
6785
|
set: (C) => {
|
|
6781
|
-
const
|
|
6782
|
-
h.value = co(
|
|
6786
|
+
const A = new Date(C ?? "");
|
|
6787
|
+
h.value = co(A) ? A.toISOString() : void 0;
|
|
6783
6788
|
}
|
|
6784
6789
|
}), B = Q("inputRef");
|
|
6785
|
-
return Ie(B, e), (C,
|
|
6790
|
+
return Ie(B, e), (C, A) => a(g) ? (i(), f(
|
|
6786
6791
|
"div",
|
|
6787
|
-
|
|
6792
|
+
M({
|
|
6788
6793
|
key: 0,
|
|
6789
6794
|
class: ["onyx-component", "onyx-datepicker-skeleton", a(p)]
|
|
6790
6795
|
}, a(l)),
|
|
@@ -6793,18 +6798,18 @@ const Yi = (n, t) => {
|
|
|
6793
6798
|
key: 0,
|
|
6794
6799
|
class: "onyx-datepicker-skeleton__label"
|
|
6795
6800
|
})),
|
|
6796
|
-
|
|
6801
|
+
O(X, { class: "onyx-datepicker-skeleton__input" })
|
|
6797
6802
|
],
|
|
6798
6803
|
16
|
|
6799
6804
|
/* FULL_PROPS */
|
|
6800
6805
|
)) : (i(), f(
|
|
6801
6806
|
"div",
|
|
6802
|
-
|
|
6807
|
+
M({
|
|
6803
6808
|
key: 1,
|
|
6804
6809
|
class: ["onyx-component", "onyx-datepicker", a(p), a(x)]
|
|
6805
6810
|
}, a(l)),
|
|
6806
6811
|
[
|
|
6807
|
-
|
|
6812
|
+
O(Ct, M(e, {
|
|
6808
6813
|
"error-messages": a(u),
|
|
6809
6814
|
"success-messages": c.value,
|
|
6810
6815
|
message: d.value
|
|
@@ -6816,11 +6821,11 @@ const Yi = (n, t) => {
|
|
|
6816
6821
|
class: "onyx-datepicker__loading",
|
|
6817
6822
|
type: "circle"
|
|
6818
6823
|
})) : S("v-if", !0),
|
|
6819
|
-
Se((i(), f("input",
|
|
6824
|
+
Se((i(), f("input", M({
|
|
6820
6825
|
id: L,
|
|
6821
6826
|
key: e.type,
|
|
6822
6827
|
ref: "inputRef",
|
|
6823
|
-
"onUpdate:modelValue":
|
|
6828
|
+
"onUpdate:modelValue": A[0] || (A[0] = (P) => k.value = P),
|
|
6824
6829
|
class: ["onyx-datepicker__native", { "onyx-datepicker__native--success": c.value }],
|
|
6825
6830
|
type: e.type,
|
|
6826
6831
|
required: e.required,
|
|
@@ -6830,8 +6835,8 @@ const Yi = (n, t) => {
|
|
|
6830
6835
|
disabled: a(v) || e.loading,
|
|
6831
6836
|
"aria-label": e.hideLabel ? e.label : void 0,
|
|
6832
6837
|
title: e.hideLabel ? e.label : void 0,
|
|
6833
|
-
min:
|
|
6834
|
-
max:
|
|
6838
|
+
min: _.value(e.min),
|
|
6839
|
+
max: _.value(e.max)
|
|
6835
6840
|
}, a(s)), null, 16, Hc)), [
|
|
6836
6841
|
[cn, k.value],
|
|
6837
6842
|
[a(r)]
|
|
@@ -6869,9 +6874,9 @@ const Yi = (n, t) => {
|
|
|
6869
6874
|
key: "open",
|
|
6870
6875
|
default: !1
|
|
6871
6876
|
});
|
|
6872
|
-
return (c, d) => (i(), w(So,
|
|
6877
|
+
return (c, d) => (i(), w(So, M(e, {
|
|
6873
6878
|
open: a(u),
|
|
6874
|
-
"onUpdate:open": d[1] || (d[1] = (p) =>
|
|
6879
|
+
"onUpdate:open": d[1] || (d[1] = (p) => Ae(u) ? u.value = p : null),
|
|
6875
6880
|
class: ["onyx-dialog", a(r)]
|
|
6876
6881
|
}), {
|
|
6877
6882
|
default: $(({ trigger: p }) => [
|
|
@@ -6884,7 +6889,7 @@ const Yi = (n, t) => {
|
|
|
6884
6889
|
E(c.$slots, "headline", {
|
|
6885
6890
|
label: e.label
|
|
6886
6891
|
}, () => [
|
|
6887
|
-
|
|
6892
|
+
O(Ve, { is: "h2" }, {
|
|
6888
6893
|
default: $(() => [
|
|
6889
6894
|
Y(
|
|
6890
6895
|
I(e.label),
|
|
@@ -6971,7 +6976,7 @@ const Yi = (n, t) => {
|
|
|
6971
6976
|
}), { restAttrs: r, rootAttrs: u } = we();
|
|
6972
6977
|
return (c, d) => (i(), f(
|
|
6973
6978
|
"figure",
|
|
6974
|
-
|
|
6979
|
+
M(a(u), {
|
|
6975
6980
|
class: [
|
|
6976
6981
|
"onyx-component",
|
|
6977
6982
|
"onyx-image",
|
|
@@ -6979,7 +6984,7 @@ const Yi = (n, t) => {
|
|
|
6979
6984
|
]
|
|
6980
6985
|
}),
|
|
6981
6986
|
[
|
|
6982
|
-
a(e) ? (i(), w(X,
|
|
6987
|
+
a(e) ? (i(), w(X, M({
|
|
6983
6988
|
key: 0,
|
|
6984
6989
|
class: "onyx-image__source",
|
|
6985
6990
|
style: s.value
|
|
@@ -6987,14 +6992,14 @@ const Yi = (n, t) => {
|
|
|
6987
6992
|
K,
|
|
6988
6993
|
{ key: 1 },
|
|
6989
6994
|
[
|
|
6990
|
-
y("img",
|
|
6995
|
+
y("img", M({
|
|
6991
6996
|
class: ["onyx-image__source", { "onyx-image__source--light": l.value.dark }]
|
|
6992
6997
|
}, { ...a(r), ...t }, {
|
|
6993
6998
|
src: l.value.light,
|
|
6994
6999
|
alt: t.alt,
|
|
6995
7000
|
onError: d[0] || (d[0] = (p) => o.value = !0)
|
|
6996
7001
|
}), null, 16, Yc),
|
|
6997
|
-
l.value.dark ? (i(), f("img",
|
|
7002
|
+
l.value.dark ? (i(), f("img", M({
|
|
6998
7003
|
key: 0,
|
|
6999
7004
|
class: "onyx-image__source onyx-image__source--dark"
|
|
7000
7005
|
}, { ...a(r), ...t }, {
|
|
@@ -7004,13 +7009,13 @@ const Yi = (n, t) => {
|
|
|
7004
7009
|
}), null, 16, Jc)) : S("v-if", !0),
|
|
7005
7010
|
o.value ? (i(), f(
|
|
7006
7011
|
"div",
|
|
7007
|
-
|
|
7012
|
+
M({
|
|
7008
7013
|
key: 1,
|
|
7009
7014
|
class: "onyx-image__error",
|
|
7010
7015
|
style: s.value
|
|
7011
7016
|
}, a(r)),
|
|
7012
7017
|
[
|
|
7013
|
-
|
|
7018
|
+
O(z, {
|
|
7014
7019
|
icon: a(Ka),
|
|
7015
7020
|
size: "32px"
|
|
7016
7021
|
}, null, 8, ["icon"]),
|
|
@@ -7118,9 +7123,9 @@ const Yi = (n, t) => {
|
|
|
7118
7123
|
props: o,
|
|
7119
7124
|
emit: l,
|
|
7120
7125
|
default: ""
|
|
7121
|
-
}), { rootAttrs: u, restAttrs: c } = we(), { t: d } = W(), { maxLength: p, maxLengthError: v } = ma({ modelValue: r, props: o }),
|
|
7126
|
+
}), { rootAttrs: u, restAttrs: c } = we(), { t: d } = W(), { maxLength: p, maxLengthError: v } = ma({ modelValue: r, props: o }), b = m(() => o.error ?? v.value), { vCustomValidity: g, errorMessages: x } = Je({ props: o, emit: l, error: b }), _ = m(() => Te(o.success)), h = m(() => Te(o.message)), { densityClass: k } = U(o), B = m(() => o.pattern instanceof RegExp ? o.pattern.source : o.pattern), C = Q("inputRef");
|
|
7122
7127
|
t({ input: C });
|
|
7123
|
-
const { disabled:
|
|
7128
|
+
const { disabled: A, showError: L } = ke(o), P = ae(o), H = $t(L);
|
|
7124
7129
|
Ie(C, o);
|
|
7125
7130
|
const Z = oe({
|
|
7126
7131
|
props: o,
|
|
@@ -7130,7 +7135,7 @@ const Yi = (n, t) => {
|
|
|
7130
7135
|
}), se = m(() => o.type === "password" && Z.value ? "text" : o.type);
|
|
7131
7136
|
return (V, G) => a(P) ? (i(), f(
|
|
7132
7137
|
"div",
|
|
7133
|
-
|
|
7138
|
+
M({
|
|
7134
7139
|
key: 0,
|
|
7135
7140
|
class: ["onyx-component", "onyx-input-skeleton", a(k)]
|
|
7136
7141
|
}, a(u)),
|
|
@@ -7139,20 +7144,20 @@ const Yi = (n, t) => {
|
|
|
7139
7144
|
key: 0,
|
|
7140
7145
|
class: "onyx-input-skeleton__label"
|
|
7141
7146
|
})),
|
|
7142
|
-
|
|
7147
|
+
O(X, { class: "onyx-input-skeleton__input" })
|
|
7143
7148
|
],
|
|
7144
7149
|
16
|
|
7145
7150
|
/* FULL_PROPS */
|
|
7146
7151
|
)) : (i(), f(
|
|
7147
7152
|
"div",
|
|
7148
|
-
|
|
7153
|
+
M({
|
|
7149
7154
|
key: 1,
|
|
7150
7155
|
class: ["onyx-component", "onyx-input", a(k), a(H)]
|
|
7151
7156
|
}, a(u)),
|
|
7152
7157
|
[
|
|
7153
|
-
|
|
7158
|
+
O(Ct, M(o, {
|
|
7154
7159
|
"error-messages": a(x),
|
|
7155
|
-
"success-messages":
|
|
7160
|
+
"success-messages": _.value,
|
|
7156
7161
|
message: h.value
|
|
7157
7162
|
}), {
|
|
7158
7163
|
default: $(({ id: te }) => [
|
|
@@ -7168,10 +7173,10 @@ const Yi = (n, t) => {
|
|
|
7168
7173
|
class: "onyx-input__loading",
|
|
7169
7174
|
type: "circle"
|
|
7170
7175
|
})) : S("v-if", !0),
|
|
7171
|
-
Se(y("input",
|
|
7176
|
+
Se(y("input", M({
|
|
7172
7177
|
id: te,
|
|
7173
7178
|
ref: "inputRef",
|
|
7174
|
-
"onUpdate:modelValue": G[0] || (G[0] = (q) =>
|
|
7179
|
+
"onUpdate:modelValue": G[0] || (G[0] = (q) => Ae(r) ? r.value = q : null),
|
|
7175
7180
|
placeholder: o.placeholder,
|
|
7176
7181
|
class: "onyx-input__native",
|
|
7177
7182
|
type: se.value,
|
|
@@ -7182,14 +7187,14 @@ const Yi = (n, t) => {
|
|
|
7182
7187
|
name: o.name,
|
|
7183
7188
|
pattern: B.value,
|
|
7184
7189
|
readonly: o.readonly,
|
|
7185
|
-
disabled: a(
|
|
7190
|
+
disabled: a(A) || o.loading,
|
|
7186
7191
|
maxlength: a(p),
|
|
7187
7192
|
minlength: o.minlength,
|
|
7188
7193
|
"aria-label": o.hideLabel ? o.label : void 0,
|
|
7189
7194
|
title: o.hideLabel ? o.label : void 0
|
|
7190
7195
|
}, a(c)), null, 16, eu), [
|
|
7191
7196
|
[cn, a(r)],
|
|
7192
|
-
[a(
|
|
7197
|
+
[a(g)]
|
|
7193
7198
|
]),
|
|
7194
7199
|
!o.hideClearIcon && a(r) !== "" ? (i(), f("button", {
|
|
7195
7200
|
key: 2,
|
|
@@ -7200,9 +7205,9 @@ const Yi = (n, t) => {
|
|
|
7200
7205
|
tabindex: "-1",
|
|
7201
7206
|
onClick: G[1] || (G[1] = () => r.value = "")
|
|
7202
7207
|
}, [
|
|
7203
|
-
|
|
7208
|
+
O(z, { icon: a(We) }, null, 8, ["icon"])
|
|
7204
7209
|
], 8, tu)) : S("v-if", !0),
|
|
7205
|
-
!o.hideSuccessIcon &&
|
|
7210
|
+
!o.hideSuccessIcon && _.value ? (i(), w(z, {
|
|
7206
7211
|
key: 3,
|
|
7207
7212
|
class: "onyx-input__check-icon",
|
|
7208
7213
|
icon: a(wt),
|
|
@@ -7244,11 +7249,11 @@ const Yi = (n, t) => {
|
|
|
7244
7249
|
const t = n;
|
|
7245
7250
|
return (e, o) => (i(), w(
|
|
7246
7251
|
pt,
|
|
7247
|
-
|
|
7252
|
+
M({ class: "onyx-component onyx-link" }, t),
|
|
7248
7253
|
{
|
|
7249
7254
|
default: $(() => [
|
|
7250
7255
|
E(e.$slots, "default"),
|
|
7251
|
-
|
|
7256
|
+
O(
|
|
7252
7257
|
Gn,
|
|
7253
7258
|
Ne(Qe(t)),
|
|
7254
7259
|
null,
|
|
@@ -7283,8 +7288,8 @@ const Yi = (n, t) => {
|
|
|
7283
7288
|
disabled: e.disabled,
|
|
7284
7289
|
onClick: r[0] || (r[0] = (u) => o("update:open", !e.open))
|
|
7285
7290
|
}, [
|
|
7286
|
-
|
|
7287
|
-
icon: e.open ? a(
|
|
7291
|
+
O(z, {
|
|
7292
|
+
icon: e.open ? a(bo) : e.icon
|
|
7288
7293
|
}, null, 8, ["icon"])
|
|
7289
7294
|
], 10, lu),
|
|
7290
7295
|
Se(y(
|
|
@@ -7338,7 +7343,7 @@ const Yi = (n, t) => {
|
|
|
7338
7343
|
emits: ["update:open"],
|
|
7339
7344
|
setup(n, { emit: t }) {
|
|
7340
7345
|
const e = n, o = t, l = ue(), { t: s } = W(), { densityClass: r } = U(e), u = me(), c = m(() => !!l.description);
|
|
7341
|
-
return (d, p) => (i(), w(En,
|
|
7346
|
+
return (d, p) => (i(), w(En, M(e, {
|
|
7342
7347
|
modal: "",
|
|
7343
7348
|
class: ["onyx-modal", a(r)],
|
|
7344
7349
|
"aria-describedby": c.value ? a(u) : void 0,
|
|
@@ -7351,7 +7356,7 @@ const Yi = (n, t) => {
|
|
|
7351
7356
|
E(d.$slots, "headline", {
|
|
7352
7357
|
label: e.label
|
|
7353
7358
|
}, () => [
|
|
7354
|
-
|
|
7359
|
+
O(Ve, { is: "h2" }, {
|
|
7355
7360
|
default: $(() => [
|
|
7356
7361
|
Y(
|
|
7357
7362
|
I(e.label),
|
|
@@ -7404,7 +7409,7 @@ const Yi = (n, t) => {
|
|
|
7404
7409
|
},
|
|
7405
7410
|
setup(n) {
|
|
7406
7411
|
const t = n, { t: e } = W(), o = m(() => t.label ?? e.value("navigation.goToHome")), l = m(() => nt(t.link));
|
|
7407
|
-
return (s, r) => (i(), w(pt,
|
|
7412
|
+
return (s, r) => (i(), w(pt, M(l.value, {
|
|
7408
7413
|
class: "onyx-component onyx-nav-app-area",
|
|
7409
7414
|
"aria-label": o.value
|
|
7410
7415
|
}), {
|
|
@@ -7453,22 +7458,22 @@ const Yi = (n, t) => {
|
|
|
7453
7458
|
}, d = () => {
|
|
7454
7459
|
s.value && (o("update:modelValue", s.value), o("update:open", !1));
|
|
7455
7460
|
};
|
|
7456
|
-
return (p, v) => (i(), w(va,
|
|
7461
|
+
return (p, v) => (i(), w(va, M(e, {
|
|
7457
7462
|
open: e.open,
|
|
7458
7463
|
class: "onyx-select-dialog",
|
|
7459
7464
|
label: e.label,
|
|
7460
|
-
"onUpdate:open": v[1] || (v[1] = (
|
|
7465
|
+
"onUpdate:open": v[1] || (v[1] = (b) => o("update:open", b))
|
|
7461
7466
|
}), xe({
|
|
7462
7467
|
footer: $(() => [
|
|
7463
|
-
|
|
7468
|
+
O(Ur, null, {
|
|
7464
7469
|
default: $(() => [
|
|
7465
|
-
|
|
7470
|
+
O(ct, {
|
|
7466
7471
|
label: a(r)("cancel"),
|
|
7467
7472
|
mode: "plain",
|
|
7468
7473
|
color: "neutral",
|
|
7469
|
-
onClick: v[0] || (v[0] = (
|
|
7474
|
+
onClick: v[0] || (v[0] = (b) => o("update:open", !1))
|
|
7470
7475
|
}, null, 8, ["label"]),
|
|
7471
|
-
|
|
7476
|
+
O(ct, {
|
|
7472
7477
|
label: a(r)("apply"),
|
|
7473
7478
|
type: "submit",
|
|
7474
7479
|
form: a(u)
|
|
@@ -7494,21 +7499,21 @@ const Yi = (n, t) => {
|
|
|
7494
7499
|
(i(!0), f(
|
|
7495
7500
|
K,
|
|
7496
7501
|
null,
|
|
7497
|
-
ce(e.options, (
|
|
7498
|
-
key:
|
|
7502
|
+
ce(e.options, (b) => (i(), f("label", {
|
|
7503
|
+
key: b.value
|
|
7499
7504
|
}, [
|
|
7500
|
-
|
|
7505
|
+
O(
|
|
7501
7506
|
Kn,
|
|
7502
7507
|
{ class: "onyx-select-dialog__option" },
|
|
7503
7508
|
{
|
|
7504
7509
|
default: $(() => [
|
|
7505
|
-
|
|
7510
|
+
b.icon ? (i(), w(z, {
|
|
7506
7511
|
key: 0,
|
|
7507
|
-
icon:
|
|
7512
|
+
icon: b.icon,
|
|
7508
7513
|
class: "onyx-select-dialog__icon"
|
|
7509
7514
|
}, null, 8, ["icon"])) : S("v-if", !0),
|
|
7510
7515
|
y("div", null, [
|
|
7511
|
-
|
|
7516
|
+
O(
|
|
7512
7517
|
et,
|
|
7513
7518
|
{ is: "div" },
|
|
7514
7519
|
{
|
|
@@ -7516,10 +7521,10 @@ const Yi = (n, t) => {
|
|
|
7516
7521
|
y("input", {
|
|
7517
7522
|
type: "radio",
|
|
7518
7523
|
name: "color-scheme",
|
|
7519
|
-
autofocus: e.modelValue ===
|
|
7520
|
-
value:
|
|
7521
|
-
checked: e.modelValue ===
|
|
7522
|
-
"aria-label":
|
|
7524
|
+
autofocus: e.modelValue === b.value,
|
|
7525
|
+
value: b.value,
|
|
7526
|
+
checked: e.modelValue === b.value,
|
|
7527
|
+
"aria-label": b.label,
|
|
7523
7528
|
required: ""
|
|
7524
7529
|
}, null, 8, bu)
|
|
7525
7530
|
]),
|
|
@@ -7532,14 +7537,14 @@ const Yi = (n, t) => {
|
|
|
7532
7537
|
y(
|
|
7533
7538
|
"span",
|
|
7534
7539
|
gu,
|
|
7535
|
-
I(
|
|
7540
|
+
I(b.label),
|
|
7536
7541
|
1
|
|
7537
7542
|
/* TEXT */
|
|
7538
7543
|
),
|
|
7539
|
-
|
|
7544
|
+
b.description ? (i(), f(
|
|
7540
7545
|
"p",
|
|
7541
7546
|
_u,
|
|
7542
|
-
I(
|
|
7547
|
+
I(b.description),
|
|
7543
7548
|
1
|
|
7544
7549
|
/* TEXT */
|
|
7545
7550
|
)) : S("v-if", !0)
|
|
@@ -7602,7 +7607,7 @@ const Yi = (n, t) => {
|
|
|
7602
7607
|
description: l.value("colorScheme.dark.description")
|
|
7603
7608
|
}
|
|
7604
7609
|
]);
|
|
7605
|
-
return (r, u) => (i(), w(ha,
|
|
7610
|
+
return (r, u) => (i(), w(ha, M({ class: "onyx-color-scheme-dialog" }, e, {
|
|
7606
7611
|
label: a(l)("colorScheme.headline"),
|
|
7607
7612
|
options: s.value,
|
|
7608
7613
|
open: e.open,
|
|
@@ -7633,7 +7638,7 @@ const Yi = (n, t) => {
|
|
|
7633
7638
|
onClick: u[2] || (u[2] = (c) => s.value = !0)
|
|
7634
7639
|
}, {
|
|
7635
7640
|
default: $(() => [
|
|
7636
|
-
|
|
7641
|
+
O(z, { icon: a(Ya) }, null, 8, ["icon"]),
|
|
7637
7642
|
y("div", null, [
|
|
7638
7643
|
Y(
|
|
7639
7644
|
I(a(l)("colorScheme.appearance")) + ": ",
|
|
@@ -7649,7 +7654,7 @@ const Yi = (n, t) => {
|
|
|
7649
7654
|
)
|
|
7650
7655
|
]),
|
|
7651
7656
|
(i(), w(ut, { to: "body" }, [
|
|
7652
|
-
|
|
7657
|
+
O(Su, {
|
|
7653
7658
|
open: s.value,
|
|
7654
7659
|
"onUpdate:open": u[0] || (u[0] = (c) => s.value = c),
|
|
7655
7660
|
"model-value": e.modelValue,
|
|
@@ -7675,7 +7680,7 @@ const Yi = (n, t) => {
|
|
|
7675
7680
|
onClick: c[2] || (c[2] = (d) => s.value = !0)
|
|
7676
7681
|
}, {
|
|
7677
7682
|
default: $(() => [
|
|
7678
|
-
|
|
7683
|
+
O(z, { icon: a(Ja) }, null, 8, ["icon"]),
|
|
7679
7684
|
y("div", null, [
|
|
7680
7685
|
Y(
|
|
7681
7686
|
I(a(l)("languageSelect.label")) + ": ",
|
|
@@ -7691,7 +7696,7 @@ const Yi = (n, t) => {
|
|
|
7691
7696
|
)
|
|
7692
7697
|
]),
|
|
7693
7698
|
(i(), w(ut, { to: "body" }, [
|
|
7694
|
-
|
|
7699
|
+
O(a(ha), {
|
|
7695
7700
|
open: s.value,
|
|
7696
7701
|
"onUpdate:open": c[0] || (c[0] = (d) => s.value = d),
|
|
7697
7702
|
"model-value": e.modelValue,
|
|
@@ -7728,7 +7733,7 @@ const Yi = (n, t) => {
|
|
|
7728
7733
|
},
|
|
7729
7734
|
setup(n) {
|
|
7730
7735
|
const t = n, e = ue(), o = m(() => !!e.children);
|
|
7731
|
-
return (l, s) => (i(), w(Ke,
|
|
7736
|
+
return (l, s) => (i(), w(Ke, M(t, {
|
|
7732
7737
|
link: o.value && t.context !== "navbar" ? void 0 : t.link,
|
|
7733
7738
|
class: {
|
|
7734
7739
|
"onyx-nav-item": !0,
|
|
@@ -7753,7 +7758,7 @@ const Yi = (n, t) => {
|
|
|
7753
7758
|
} : void 0
|
|
7754
7759
|
]), 1040, ["link", "class", "open"]));
|
|
7755
7760
|
}
|
|
7756
|
-
}), Bu = { class: "onyx-nav-item-wrapper__controls" },
|
|
7761
|
+
}), Bu = { class: "onyx-nav-item-wrapper__controls" }, Mu = {
|
|
7757
7762
|
role: "menu",
|
|
7758
7763
|
class: "onyx-nav-item-wrapper__mobile-children"
|
|
7759
7764
|
}, ft = /* @__PURE__ */ T({
|
|
@@ -7772,19 +7777,19 @@ const Yi = (n, t) => {
|
|
|
7772
7777
|
emit: o,
|
|
7773
7778
|
key: "open",
|
|
7774
7779
|
default: !1
|
|
7775
|
-
}), { restAttrs: u, rootAttrs: c } = we(), d = m(() => !!l.children), { isActive: p } = dt(), v = m(() => e.active !== "auto" ? e.active : p.value(e.link)),
|
|
7780
|
+
}), { restAttrs: u, rootAttrs: c } = we(), d = m(() => !!l.children), { isActive: p } = dt(), v = m(() => e.active !== "auto" ? e.active : p.value(e.link)), b = be(
|
|
7776
7781
|
Gt,
|
|
7777
7782
|
m(() => !1)
|
|
7778
|
-
),
|
|
7783
|
+
), g = be(fa, void 0), x = be(an, !0);
|
|
7779
7784
|
Ue(an, !1);
|
|
7780
|
-
const { componentRef:
|
|
7785
|
+
const { componentRef: _, isVisible: h } = x ? Pn(ya) : { isVisible: ie(!0) };
|
|
7781
7786
|
return (k, B) => (i(), f(
|
|
7782
7787
|
K,
|
|
7783
7788
|
null,
|
|
7784
7789
|
[
|
|
7785
|
-
a(
|
|
7790
|
+
a(b) && a(r) ? (i(), f(
|
|
7786
7791
|
"div",
|
|
7787
|
-
|
|
7792
|
+
M({
|
|
7788
7793
|
key: 0,
|
|
7789
7794
|
class: {
|
|
7790
7795
|
"onyx-component": !0,
|
|
@@ -7794,7 +7799,7 @@ const Yi = (n, t) => {
|
|
|
7794
7799
|
}, a(c)),
|
|
7795
7800
|
[
|
|
7796
7801
|
y("div", Bu, [
|
|
7797
|
-
|
|
7802
|
+
O(ct, {
|
|
7798
7803
|
label: a(s)("back"),
|
|
7799
7804
|
mode: "plain",
|
|
7800
7805
|
color: "neutral",
|
|
@@ -7805,7 +7810,7 @@ const Yi = (n, t) => {
|
|
|
7805
7810
|
K,
|
|
7806
7811
|
{ key: 0 },
|
|
7807
7812
|
[
|
|
7808
|
-
|
|
7813
|
+
O(tt, M(a(he)(e, a(u)), {
|
|
7809
7814
|
active: v.value,
|
|
7810
7815
|
context: "mobile"
|
|
7811
7816
|
}), {
|
|
@@ -7815,19 +7820,19 @@ const Yi = (n, t) => {
|
|
|
7815
7820
|
_: 3
|
|
7816
7821
|
/* FORWARDED */
|
|
7817
7822
|
}, 16, ["active"]),
|
|
7818
|
-
|
|
7823
|
+
O(Lt)
|
|
7819
7824
|
],
|
|
7820
7825
|
64
|
|
7821
7826
|
/* STABLE_FRAGMENT */
|
|
7822
7827
|
)) : S("v-if", !0)
|
|
7823
7828
|
]),
|
|
7824
|
-
y("ul",
|
|
7829
|
+
y("ul", Mu, [
|
|
7825
7830
|
E(k.$slots, "children")
|
|
7826
7831
|
])
|
|
7827
7832
|
],
|
|
7828
7833
|
16
|
|
7829
7834
|
/* FULL_PROPS */
|
|
7830
|
-
)) : a(
|
|
7835
|
+
)) : a(b) ? (i(), w(tt, M({ key: 1 }, a(he)(e, k.$attrs), {
|
|
7831
7836
|
active: v.value,
|
|
7832
7837
|
context: "mobile",
|
|
7833
7838
|
onClick: B[1] || (B[1] = (C) => d.value && (r.value = !0))
|
|
@@ -7845,13 +7850,13 @@ const Yi = (n, t) => {
|
|
|
7845
7850
|
]),
|
|
7846
7851
|
key: "0"
|
|
7847
7852
|
} : void 0
|
|
7848
|
-
]), 1040, ["active"])) : a(x) && d.value && a(h) ? (i(), w(Ye,
|
|
7853
|
+
]), 1040, ["active"])) : a(x) && d.value && a(h) ? (i(), w(Ye, M({ key: 2 }, a(c), {
|
|
7849
7854
|
label: a(s)("navItemOptionsLabel", { label: e.label })
|
|
7850
7855
|
}), {
|
|
7851
7856
|
button: $(({ trigger: C }) => [
|
|
7852
|
-
|
|
7857
|
+
O(tt, M(a(he)(a(u), e, C), {
|
|
7853
7858
|
ref_key: "componentRef",
|
|
7854
|
-
ref:
|
|
7859
|
+
ref: _,
|
|
7855
7860
|
active: v.value,
|
|
7856
7861
|
context: "navbar"
|
|
7857
7862
|
}), xe({
|
|
@@ -7875,9 +7880,9 @@ const Yi = (n, t) => {
|
|
|
7875
7880
|
]),
|
|
7876
7881
|
_: 3
|
|
7877
7882
|
/* FORWARDED */
|
|
7878
|
-
}, 16, ["label"])) : a(x) && a(h) ? (i(), w(tt,
|
|
7883
|
+
}, 16, ["label"])) : a(x) && a(h) ? (i(), w(tt, M({ key: 3 }, a(he)(e, k.$attrs), {
|
|
7879
7884
|
ref_key: "componentRef",
|
|
7880
|
-
ref:
|
|
7885
|
+
ref: _,
|
|
7881
7886
|
active: v.value,
|
|
7882
7887
|
context: "navbar"
|
|
7883
7888
|
}), {
|
|
@@ -7886,7 +7891,7 @@ const Yi = (n, t) => {
|
|
|
7886
7891
|
]),
|
|
7887
7892
|
_: 3
|
|
7888
7893
|
/* FORWARDED */
|
|
7889
|
-
}, 16, ["active"])) : a(h) ? (i(), w(tt,
|
|
7894
|
+
}, 16, ["active"])) : a(h) ? (i(), w(tt, M({ key: 4 }, a(he)(e, k.$attrs), {
|
|
7890
7895
|
active: v.value,
|
|
7891
7896
|
context: "list"
|
|
7892
7897
|
}), xe({
|
|
@@ -7904,11 +7909,11 @@ const Yi = (n, t) => {
|
|
|
7904
7909
|
key: "0"
|
|
7905
7910
|
} : void 0
|
|
7906
7911
|
]), 1040, ["active"])) : S("v-if", !0),
|
|
7907
|
-
a(x) && !a(
|
|
7912
|
+
a(x) && !a(b) && a(g) ? (i(), w(ut, {
|
|
7908
7913
|
key: 5,
|
|
7909
|
-
to: a(
|
|
7914
|
+
to: a(g)
|
|
7910
7915
|
}, [
|
|
7911
|
-
a(h) ? S("v-if", !0) : (i(), w(tt,
|
|
7916
|
+
a(h) ? S("v-if", !0) : (i(), w(tt, M({ key: 0 }, a(he)(e, k.$attrs), {
|
|
7912
7917
|
active: v.value,
|
|
7913
7918
|
context: "list"
|
|
7914
7919
|
}), xe({
|
|
@@ -7932,7 +7937,7 @@ const Yi = (n, t) => {
|
|
|
7932
7937
|
/* STABLE_FRAGMENT */
|
|
7933
7938
|
));
|
|
7934
7939
|
}
|
|
7935
|
-
}),
|
|
7940
|
+
}), Ou = (n) => {
|
|
7936
7941
|
const t = D(), e = D(Zt(new Date(n.value).getTime())), o = m(() => e.value === 0);
|
|
7937
7942
|
return J(
|
|
7938
7943
|
n,
|
|
@@ -7948,7 +7953,7 @@ const Yi = (n, t) => {
|
|
|
7948
7953
|
/**
|
|
7949
7954
|
* Time (in milliseconds) that the timer has left.
|
|
7950
7955
|
*/
|
|
7951
|
-
timeLeft:
|
|
7956
|
+
timeLeft: At(e),
|
|
7952
7957
|
/**
|
|
7953
7958
|
* Whether the timer is ended.
|
|
7954
7959
|
*/
|
|
@@ -7960,7 +7965,7 @@ const Yi = (n, t) => {
|
|
|
7960
7965
|
}, ba = (n) => {
|
|
7961
7966
|
const t = Math.floor(n / 6e4 / 60), e = Math.floor(n / 6e4 % 60), o = Math.floor(n % 6e4 / 1e3);
|
|
7962
7967
|
return { hours: t, minutes: e, seconds: o };
|
|
7963
|
-
},
|
|
7968
|
+
}, Au = (n, t) => {
|
|
7964
7969
|
const { hours: e, minutes: o, seconds: l } = ba(n), s = (c) => c.toString().padStart(2, "0");
|
|
7965
7970
|
let r = "", u = Xt(t.formatToParts(n, "seconds"));
|
|
7966
7971
|
return o > 0 && (u = Xt(t.formatToParts(n, "minutes"))), e > 0 && (u = Xt(t.formatToParts(n, "hours")), r = `${s(e)}:`), `${r}${s(o)}:${s(l)} ${u}`;
|
|
@@ -7979,9 +7984,9 @@ const Yi = (n, t) => {
|
|
|
7979
7984
|
},
|
|
7980
7985
|
emits: ["timerEnded"],
|
|
7981
7986
|
setup(n, { expose: t, emit: e }) {
|
|
7982
|
-
const o = n, l = e, { locale: s } = W(), { timeLeft: r, isEnded: u } =
|
|
7987
|
+
const o = n, l = e, { locale: s } = W(), { timeLeft: r, isEnded: u } = Ou(m(() => o.endTime)), c = m(
|
|
7983
7988
|
() => new Intl.RelativeTimeFormat(s.value, { numeric: "always", style: "short" })
|
|
7984
|
-
), d = m(() =>
|
|
7989
|
+
), d = m(() => Au(r.value, c.value));
|
|
7985
7990
|
return Le(() => u.value && l("timerEnded")), t({
|
|
7986
7991
|
/**
|
|
7987
7992
|
* Time (in milliseconds) that the timer has left.
|
|
@@ -8044,7 +8049,7 @@ const Yi = (n, t) => {
|
|
|
8044
8049
|
)) : (i(), w(Ye, {
|
|
8045
8050
|
key: 1,
|
|
8046
8051
|
open: a(s),
|
|
8047
|
-
"onUpdate:open": c[0] || (c[0] = (d) =>
|
|
8052
|
+
"onUpdate:open": c[0] || (c[0] = (d) => Ae(s) ? s.value = d : null),
|
|
8048
8053
|
label: a(r)("navigation.userMenuLabel"),
|
|
8049
8054
|
alignment: "right",
|
|
8050
8055
|
disabled: n.disabled
|
|
@@ -8098,7 +8103,7 @@ const Yi = (n, t) => {
|
|
|
8098
8103
|
);
|
|
8099
8104
|
return (c, d) => (i(), w(Vu, {
|
|
8100
8105
|
"flyout-open": a(s),
|
|
8101
|
-
"onUpdate:flyoutOpen": d[0] || (d[0] = (p) =>
|
|
8106
|
+
"onUpdate:flyoutOpen": d[0] || (d[0] = (p) => Ae(s) ? s.value = p : null),
|
|
8102
8107
|
class: R(["onyx-component onyx-user-menu", { "onyx-user-menu--mobile": a(u) }]),
|
|
8103
8108
|
"is-mobile": a(u),
|
|
8104
8109
|
disabled: n.disabled
|
|
@@ -8106,14 +8111,14 @@ const Yi = (n, t) => {
|
|
|
8106
8111
|
button: $(({ trigger: p }) => [
|
|
8107
8112
|
y(
|
|
8108
8113
|
"button",
|
|
8109
|
-
|
|
8114
|
+
M({
|
|
8110
8115
|
class: "onyx-user-menu__trigger onyx-text",
|
|
8111
8116
|
type: "button"
|
|
8112
8117
|
}, p),
|
|
8113
8118
|
[
|
|
8114
|
-
|
|
8119
|
+
O(
|
|
8115
8120
|
Rt,
|
|
8116
|
-
|
|
8121
|
+
M(r.value, { size: "24px" }),
|
|
8117
8122
|
null,
|
|
8118
8123
|
16
|
|
8119
8124
|
/* FULL_PROPS */
|
|
@@ -8132,9 +8137,9 @@ const Yi = (n, t) => {
|
|
|
8132
8137
|
]),
|
|
8133
8138
|
header: $(() => [
|
|
8134
8139
|
y("div", Fu, [
|
|
8135
|
-
|
|
8140
|
+
O(
|
|
8136
8141
|
Rt,
|
|
8137
|
-
|
|
8142
|
+
M(r.value, { size: "48px" }),
|
|
8138
8143
|
null,
|
|
8139
8144
|
16
|
|
8140
8145
|
/* FULL_PROPS */
|
|
@@ -8199,12 +8204,12 @@ const Yi = (n, t) => {
|
|
|
8199
8204
|
setup(n, { expose: t, emit: e }) {
|
|
8200
8205
|
const o = n, l = e, s = ue(), r = Q("navBarRef"), { width: u } = qe(r), { t: c } = W(), { currentRoute: d } = dt(), {
|
|
8201
8206
|
elements: { nav: p }
|
|
8202
|
-
} = Es({ navigationName: ie(() => o.appName) }), v = D(!1),
|
|
8207
|
+
} = Es({ navigationName: ie(() => o.appName) }), v = D(!1), b = D(!1), g = (h, k) => k !== 0 && k < h, x = m(() => typeof o.mobile == "number" ? g(o.mobile, u.value) : typeof o.mobile == "string" ? g(ht[o.mobile], u.value) : o.mobile);
|
|
8203
8208
|
Ue(Gt, x), Ue(fa, Q("moreListRef"));
|
|
8204
|
-
const
|
|
8205
|
-
v.value = !1,
|
|
8209
|
+
const _ = () => {
|
|
8210
|
+
v.value = !1, b.value = !1;
|
|
8206
8211
|
};
|
|
8207
|
-
return J(d, () =>
|
|
8212
|
+
return J(d, () => _(), { deep: !0 }), t({
|
|
8208
8213
|
/**
|
|
8209
8214
|
* Closes the mobile burger and context menu.
|
|
8210
8215
|
* Useful if you want to e.g. close them when a nav item is clicked.
|
|
@@ -8219,7 +8224,7 @@ const Yi = (n, t) => {
|
|
|
8219
8224
|
* watch(() => route.path, () => navBar.value?.closeMobileMenus());
|
|
8220
8225
|
* ```
|
|
8221
8226
|
*/
|
|
8222
|
-
closeMobileMenus:
|
|
8227
|
+
closeMobileMenus: _
|
|
8223
8228
|
}), (h, k) => (i(), f(
|
|
8224
8229
|
"header",
|
|
8225
8230
|
{
|
|
@@ -8228,9 +8233,9 @@ const Yi = (n, t) => {
|
|
|
8228
8233
|
},
|
|
8229
8234
|
[
|
|
8230
8235
|
y("div", Ku, [
|
|
8231
|
-
x.value && s.mobileActivePage && !v.value && !
|
|
8236
|
+
x.value && s.mobileActivePage && !v.value && !b.value ? (i(), f("span", Wu, [
|
|
8232
8237
|
E(h.$slots, "mobileActivePage")
|
|
8233
|
-
])) : o.appName || o.logoUrl || s.appArea ? (i(), w(vu,
|
|
8238
|
+
])) : o.appName || o.logoUrl || s.appArea ? (i(), w(vu, M({
|
|
8234
8239
|
key: 1,
|
|
8235
8240
|
class: "onyx-nav-bar__app",
|
|
8236
8241
|
"app-name": o.appName,
|
|
@@ -8259,7 +8264,7 @@ const Yi = (n, t) => {
|
|
|
8259
8264
|
open: v.value,
|
|
8260
8265
|
"onUpdate:open": [
|
|
8261
8266
|
k[1] || (k[1] = (B) => v.value = B),
|
|
8262
|
-
k[2] || (k[2] = (B) =>
|
|
8267
|
+
k[2] || (k[2] = (B) => b.value = !1)
|
|
8263
8268
|
],
|
|
8264
8269
|
class: "onyx-nav-bar__burger",
|
|
8265
8270
|
icon: a(Za),
|
|
@@ -8269,7 +8274,7 @@ const Yi = (n, t) => {
|
|
|
8269
8274
|
default: $(() => [
|
|
8270
8275
|
y(
|
|
8271
8276
|
"nav",
|
|
8272
|
-
|
|
8277
|
+
M({ class: "onyx-nav-bar__nav--mobile" }, a(p)),
|
|
8273
8278
|
[
|
|
8274
8279
|
y("ul", ju, [
|
|
8275
8280
|
E(h.$slots, "default")
|
|
@@ -8283,12 +8288,12 @@ const Yi = (n, t) => {
|
|
|
8283
8288
|
/* FORWARDED */
|
|
8284
8289
|
}, 8, ["open", "icon", "label", "headline"])) : (i(), f(
|
|
8285
8290
|
"nav",
|
|
8286
|
-
|
|
8291
|
+
M({
|
|
8287
8292
|
key: 1,
|
|
8288
8293
|
class: "onyx-nav-bar__nav"
|
|
8289
8294
|
}, a(p)),
|
|
8290
8295
|
[
|
|
8291
|
-
|
|
8296
|
+
O(qn, {
|
|
8292
8297
|
is: "ul",
|
|
8293
8298
|
role: "menubar",
|
|
8294
8299
|
"injection-key": a(ya)
|
|
@@ -8305,11 +8310,11 @@ const Yi = (n, t) => {
|
|
|
8305
8310
|
)
|
|
8306
8311
|
]),
|
|
8307
8312
|
more: $(({ attributes: B, hiddenElements: C }) => [
|
|
8308
|
-
|
|
8313
|
+
O(Ye, M({
|
|
8309
8314
|
label: a(c)("navigation.showMoreNavItemsLabel")
|
|
8310
8315
|
}, B), {
|
|
8311
|
-
button: $(({ trigger:
|
|
8312
|
-
|
|
8316
|
+
button: $(({ trigger: A }) => [
|
|
8317
|
+
O(tt, M(A, {
|
|
8313
8318
|
label: a(c)("navigation.moreNavItems", { n: C }),
|
|
8314
8319
|
context: "navbar"
|
|
8315
8320
|
}), null, 16, ["label"])
|
|
@@ -8348,12 +8353,12 @@ const Yi = (n, t) => {
|
|
|
8348
8353
|
])) : S("v-if", !0),
|
|
8349
8354
|
s.contextArea ? (i(), w(ln, {
|
|
8350
8355
|
key: 1,
|
|
8351
|
-
open:
|
|
8356
|
+
open: b.value,
|
|
8352
8357
|
"onUpdate:open": [
|
|
8353
|
-
k[3] || (k[3] = (B) =>
|
|
8358
|
+
k[3] || (k[3] = (B) => b.value = B),
|
|
8354
8359
|
k[4] || (k[4] = (B) => v.value = !1)
|
|
8355
8360
|
],
|
|
8356
|
-
icon: a(
|
|
8361
|
+
icon: a(ho),
|
|
8357
8362
|
label: a(c)("navigation.toggleContextMenu")
|
|
8358
8363
|
}, {
|
|
8359
8364
|
default: $(() => [
|
|
@@ -8445,11 +8450,11 @@ const Yi = (n, t) => {
|
|
|
8445
8450
|
},
|
|
8446
8451
|
[
|
|
8447
8452
|
a(l) ? (i(), f("div", od, [
|
|
8448
|
-
|
|
8453
|
+
O(X, { class: "onyx-notification-card-skeleton__header" }),
|
|
8449
8454
|
(i(), f(
|
|
8450
8455
|
K,
|
|
8451
8456
|
null,
|
|
8452
|
-
ce(3, (p) =>
|
|
8457
|
+
ce(3, (p) => O(X, {
|
|
8453
8458
|
key: p,
|
|
8454
8459
|
class: "onyx-notification-card-skeleton__content"
|
|
8455
8460
|
})),
|
|
@@ -8465,7 +8470,7 @@ const Yi = (n, t) => {
|
|
|
8465
8470
|
class: "onyx-notification-card__icon",
|
|
8466
8471
|
icon: t.icon
|
|
8467
8472
|
}, null, 8, ["icon"])) : S("v-if", !0),
|
|
8468
|
-
|
|
8473
|
+
O(Ve, { is: "h3" }, {
|
|
8469
8474
|
default: $(() => [
|
|
8470
8475
|
Y(
|
|
8471
8476
|
I(t.headline),
|
|
@@ -8485,16 +8490,10 @@ const Yi = (n, t) => {
|
|
|
8485
8490
|
e.headerActions ? (i(), w(Ye, {
|
|
8486
8491
|
key: 1,
|
|
8487
8492
|
class: "onyx-notification-card__more-actions",
|
|
8488
|
-
label: a(r)("
|
|
8493
|
+
label: a(r)("flyoutMenu.moreActions"),
|
|
8489
8494
|
trigger: "click",
|
|
8490
8495
|
alignment: "right"
|
|
8491
8496
|
}, {
|
|
8492
|
-
button: $(({ trigger: p }) => [
|
|
8493
|
-
A($e, O(p, {
|
|
8494
|
-
label: a(r)("notificationCard.toggleActions"),
|
|
8495
|
-
icon: a(bo)
|
|
8496
|
-
}), null, 16, ["label", "icon"])
|
|
8497
|
-
]),
|
|
8498
8497
|
options: $(() => [
|
|
8499
8498
|
E(c.$slots, "headerActions")
|
|
8500
8499
|
]),
|
|
@@ -8699,10 +8698,10 @@ const Yi = (n, t) => {
|
|
|
8699
8698
|
const p = d + 1;
|
|
8700
8699
|
let v = "default";
|
|
8701
8700
|
p === e.modelValue ? v = "active" : p < e.modelValue ? v = "completed" : p <= r.value - 1 && (v = "visited");
|
|
8702
|
-
const
|
|
8701
|
+
const b = v === "default" && p !== r.value;
|
|
8703
8702
|
return {
|
|
8704
8703
|
value: p,
|
|
8705
|
-
disabled:
|
|
8704
|
+
disabled: b,
|
|
8706
8705
|
status: v,
|
|
8707
8706
|
skeleton: s.value,
|
|
8708
8707
|
// allow user to override step properties so he has full control, therefore we add "...step" at the very end
|
|
@@ -8730,7 +8729,7 @@ const Yi = (n, t) => {
|
|
|
8730
8729
|
key: p.value
|
|
8731
8730
|
},
|
|
8732
8731
|
[
|
|
8733
|
-
|
|
8732
|
+
O(bd, M({ ref_for: !0 }, p, {
|
|
8734
8733
|
onClick: (v) => o("update:modelValue", p.value)
|
|
8735
8734
|
}), {
|
|
8736
8735
|
default: $(() => [
|
|
@@ -8778,20 +8777,20 @@ const Yi = (n, t) => {
|
|
|
8778
8777
|
},
|
|
8779
8778
|
emits: ["validityChange"],
|
|
8780
8779
|
setup(n, { expose: t, emit: e }) {
|
|
8781
|
-
const o = n, l = e, { rootAttrs: s, restAttrs: r } = we(), { vCustomValidity: u, errorMessages: c } = Je({ props: o, emit: l }), { densityClass: d } = U(o), { disabled: p } = ke(o), v = ae(o),
|
|
8782
|
-
return t({ input:
|
|
8780
|
+
const o = n, l = e, { rootAttrs: s, restAttrs: r } = we(), { vCustomValidity: u, errorMessages: c } = Je({ props: o, emit: l }), { densityClass: d } = U(o), { disabled: p } = ke(o), v = ae(o), b = Q("inputRef");
|
|
8781
|
+
return t({ input: b }), Ie(b, o), (g, x) => a(v) ? (i(), f(
|
|
8783
8782
|
"div",
|
|
8784
|
-
|
|
8783
|
+
M({
|
|
8785
8784
|
key: 0,
|
|
8786
8785
|
class: ["onyx-component", "onyx-radio-button-skeleton", a(d)]
|
|
8787
8786
|
}, a(s)),
|
|
8788
8787
|
[
|
|
8789
|
-
|
|
8790
|
-
|
|
8788
|
+
O(X, { class: "onyx-radio-button-skeleton__input" }),
|
|
8789
|
+
O(X, { class: "onyx-radio-button-skeleton__label" })
|
|
8791
8790
|
],
|
|
8792
8791
|
16
|
|
8793
8792
|
/* FULL_PROPS */
|
|
8794
|
-
)) : (i(), w(Co,
|
|
8793
|
+
)) : (i(), w(Co, M({
|
|
8795
8794
|
key: 1,
|
|
8796
8795
|
disabled: a(p),
|
|
8797
8796
|
"error-messages": a(c)
|
|
@@ -8807,7 +8806,7 @@ const Yi = (n, t) => {
|
|
|
8807
8806
|
key: 0,
|
|
8808
8807
|
class: "onyx-radio-button__loading",
|
|
8809
8808
|
type: "circle"
|
|
8810
|
-
})) : Se((i(), f("input",
|
|
8809
|
+
})) : Se((i(), f("input", M({
|
|
8811
8810
|
key: 1,
|
|
8812
8811
|
ref: "inputRef",
|
|
8813
8812
|
class: "onyx-radio-button__selector",
|
|
@@ -8866,19 +8865,19 @@ const Yi = (n, t) => {
|
|
|
8866
8865
|
props: o,
|
|
8867
8866
|
emit: p,
|
|
8868
8867
|
key: "modelValue"
|
|
8869
|
-
}),
|
|
8870
|
-
x && (v.value =
|
|
8871
|
-
},
|
|
8868
|
+
}), b = (x, _) => {
|
|
8869
|
+
x && (v.value = _);
|
|
8870
|
+
}, g = Q("radiobuttonsRef");
|
|
8872
8871
|
return t({
|
|
8873
|
-
inputs: m(() => _t(
|
|
8874
|
-
}), (x,
|
|
8872
|
+
inputs: m(() => _t(g.value).flatMap((_) => _?.input).filter((_) => !!_))
|
|
8873
|
+
}), (x, _) => (i(), f("fieldset", {
|
|
8875
8874
|
class: R(["onyx-component", "onyx-radio-group", a(l), a(c)]),
|
|
8876
8875
|
disabled: a(s),
|
|
8877
8876
|
role: "radiogroup",
|
|
8878
8877
|
"aria-label": o.label
|
|
8879
8878
|
}, [
|
|
8880
8879
|
o.hideLabel ? S("v-if", !0) : (i(), f("legend", kd, [
|
|
8881
|
-
|
|
8880
|
+
O(Ve, {
|
|
8882
8881
|
is: "h3",
|
|
8883
8882
|
class: R(a(u))
|
|
8884
8883
|
}, {
|
|
@@ -8920,7 +8919,7 @@ const Yi = (n, t) => {
|
|
|
8920
8919
|
)) : S("v-if", !0) : (i(!0), f(
|
|
8921
8920
|
K,
|
|
8922
8921
|
{ key: 0 },
|
|
8923
|
-
ce(o.options, (h, k) => (i(), w(sn,
|
|
8922
|
+
ce(o.options, (h, k) => (i(), w(sn, M({
|
|
8924
8923
|
key: h.value.toString()
|
|
8925
8924
|
}, { ref_for: !0 }, h, {
|
|
8926
8925
|
ref_for: !0,
|
|
@@ -8931,7 +8930,7 @@ const Yi = (n, t) => {
|
|
|
8931
8930
|
required: o.required,
|
|
8932
8931
|
truncation: h.truncation ?? o.truncation,
|
|
8933
8932
|
onValidityChange: (B) => k === 0 && p("validityChange", B),
|
|
8934
|
-
onChange: (B) =>
|
|
8933
|
+
onChange: (B) => b(B, h.value)
|
|
8935
8934
|
}), null, 16, ["name", "error", "checked", "required", "truncation", "onValidityChange", "onChange"]))),
|
|
8936
8935
|
128
|
|
8937
8936
|
/* KEYED_FRAGMENT */
|
|
@@ -8965,13 +8964,13 @@ const Yi = (n, t) => {
|
|
|
8965
8964
|
const { rootAttrs: s, restAttrs: r } = we();
|
|
8966
8965
|
return (u, c) => (i(), f(
|
|
8967
8966
|
"div",
|
|
8968
|
-
|
|
8967
|
+
M(a(s), {
|
|
8969
8968
|
class: ["onyx-component", "onyx-segmented-control-element", a(e)]
|
|
8970
8969
|
}),
|
|
8971
8970
|
[
|
|
8972
|
-
|
|
8971
|
+
O(et, null, {
|
|
8973
8972
|
default: $(() => [
|
|
8974
|
-
y("input",
|
|
8973
|
+
y("input", M(a(r), {
|
|
8975
8974
|
id: t.value.toString(),
|
|
8976
8975
|
ref: "inputRef",
|
|
8977
8976
|
name: t.name,
|
|
@@ -9040,7 +9039,7 @@ const Yi = (n, t) => {
|
|
|
9040
9039
|
(i(!0), f(
|
|
9041
9040
|
K,
|
|
9042
9041
|
null,
|
|
9043
|
-
ce(n.options, (p) => (i(), w(Ed,
|
|
9042
|
+
ce(n.options, (p) => (i(), w(Ed, M({
|
|
9044
9043
|
key: p.value.toString()
|
|
9045
9044
|
}, { ref_for: !0 }, p, {
|
|
9046
9045
|
name: e.name,
|
|
@@ -9069,7 +9068,7 @@ const Yi = (n, t) => {
|
|
|
9069
9068
|
e.value,
|
|
9070
9069
|
l.value ? "onyx-sidebar-item--active" : ""
|
|
9071
9070
|
]);
|
|
9072
|
-
return (u, c) => s.value ? (i(), w(pt,
|
|
9071
|
+
return (u, c) => s.value ? (i(), w(pt, M({
|
|
9073
9072
|
key: 0,
|
|
9074
9073
|
class: r.value
|
|
9075
9074
|
}, s.value), {
|
|
@@ -9092,7 +9091,7 @@ const Yi = (n, t) => {
|
|
|
9092
9091
|
/* CLASS */
|
|
9093
9092
|
));
|
|
9094
9093
|
}
|
|
9095
|
-
}), Bd = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.618 11.626H8.936l3.094-3.094-1.064-1.056-4.899 4.898 4.9 4.9 1.063-1.064-3.094-3.086h8.682z"/></svg>',
|
|
9094
|
+
}), Bd = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.618 11.626H8.936l3.094-3.094-1.064-1.056-4.899 4.898 4.9 4.9 1.063-1.064-3.094-3.086h8.682z"/></svg>', Md = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.026 7.476 11.97 8.532l3.086 3.094H6.382v1.498h8.674L11.97 16.21l1.056 1.063 4.9-4.898z"/></svg>', Od = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.743 3.038H5.258A2.26 2.26 0 0 0 3 5.295V18.78a2.26 2.26 0 0 0 2.258 2.258H18.75a2.25 2.25 0 0 0 2.25-2.25V5.295a2.26 2.26 0 0 0-2.258-2.257M4.5 18.78V5.295c0-.42.338-.757.758-.757H8.25v15H5.258a.755.755 0 0 1-.758-.758m15 .008c0 .412-.337.75-.75.75h-9v-15h8.993c.42 0 .757.337.757.757z"/><path d="m15.218 8.558-3.48 3.48 3.48 3.48 1.064-1.058-2.422-2.423 2.422-2.422z"/></svg>', Ad = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.743 3.038H5.258A2.26 2.26 0 0 0 3 5.295V18.78a2.26 2.26 0 0 0 2.258 2.258H18.75a2.25 2.25 0 0 0 2.25-2.25V5.295a2.26 2.26 0 0 0-2.258-2.257M4.5 18.78V5.295c0-.42.338-.757.758-.757H8.25v15H5.258a.755.755 0 0 1-.758-.758m15 .008c0 .412-.337.75-.75.75h-9v-15h8.993c.42 0 .757.337.757.757z"/><path d="m12.27 9.615 2.423 2.422-2.423 2.423 1.058 1.057 3.48-3.48-3.48-3.48z"/></svg>', Td = ["aria-label"], Id = {
|
|
9096
9095
|
key: 0,
|
|
9097
9096
|
class: "onyx-sidebar__header"
|
|
9098
9097
|
}, Rd = { class: "onyx-sidebar__body" }, Dd = {
|
|
@@ -9119,20 +9118,20 @@ const Yi = (n, t) => {
|
|
|
9119
9118
|
onAutoSize: () => d.value = void 0,
|
|
9120
9119
|
alignment: e.alignment === "left" ? "right" : "left"
|
|
9121
9120
|
})
|
|
9122
|
-
), { width:
|
|
9123
|
-
if (!e.collapseSidebar ||
|
|
9121
|
+
), { width: b } = qe(), g = m(() => {
|
|
9122
|
+
if (!e.collapseSidebar || b.value === 0) return !1;
|
|
9124
9123
|
const k = typeof e.collapseSidebar == "number" ? e.collapseSidebar : ht[e.collapseSidebar];
|
|
9125
|
-
return
|
|
9126
|
-
}), x = D(!1),
|
|
9124
|
+
return b.value <= k;
|
|
9125
|
+
}), x = D(!1), _ = m({
|
|
9127
9126
|
get: () => typeof e.temporary?.open == "boolean" ? e.temporary.open : x.value,
|
|
9128
9127
|
set: (k) => {
|
|
9129
9128
|
x.value = k, k || o("close");
|
|
9130
9129
|
}
|
|
9131
9130
|
}), h = me();
|
|
9132
9131
|
return J(
|
|
9133
|
-
[
|
|
9132
|
+
[g, () => e.temporary],
|
|
9134
9133
|
() => {
|
|
9135
|
-
if (!
|
|
9134
|
+
if (!g.value || e.temporary) {
|
|
9136
9135
|
r.remove(h);
|
|
9137
9136
|
return;
|
|
9138
9137
|
}
|
|
@@ -9141,14 +9140,14 @@ const Yi = (n, t) => {
|
|
|
9141
9140
|
id: h,
|
|
9142
9141
|
label: e.label,
|
|
9143
9142
|
hideLabel: !0,
|
|
9144
|
-
icon: e.alignment === "right" ?
|
|
9143
|
+
icon: e.alignment === "right" ? Od : Ad,
|
|
9145
9144
|
ifOption: {
|
|
9146
9145
|
hideLabel: !1,
|
|
9147
|
-
icon: e.alignment === "right" ? Bd :
|
|
9146
|
+
icon: e.alignment === "right" ? Bd : Md
|
|
9148
9147
|
},
|
|
9149
9148
|
alignment: e.alignment,
|
|
9150
9149
|
onClick: () => {
|
|
9151
|
-
|
|
9150
|
+
_.value = !_.value;
|
|
9152
9151
|
}
|
|
9153
9152
|
}))
|
|
9154
9153
|
);
|
|
@@ -9156,7 +9155,7 @@ const Yi = (n, t) => {
|
|
|
9156
9155
|
{ immediate: !0 }
|
|
9157
9156
|
), Vt(() => {
|
|
9158
9157
|
r.remove(h);
|
|
9159
|
-
}), (k, B) => !e.temporary && !
|
|
9158
|
+
}), (k, B) => !e.temporary && !g.value ? (i(), f("aside", {
|
|
9160
9159
|
key: 0,
|
|
9161
9160
|
ref: "sidebarRef",
|
|
9162
9161
|
class: R([
|
|
@@ -9178,14 +9177,14 @@ const Yi = (n, t) => {
|
|
|
9178
9177
|
l.footer ? (i(), f("footer", Dd, [
|
|
9179
9178
|
E(k.$slots, "footer")
|
|
9180
9179
|
])) : S("v-if", !0),
|
|
9181
|
-
e.resizable ? (i(), w(po,
|
|
9180
|
+
e.resizable ? (i(), w(po, M({
|
|
9182
9181
|
key: 2,
|
|
9183
9182
|
element: u.value
|
|
9184
9183
|
}, v.value), null, 16, ["element"])) : S("v-if", !0)
|
|
9185
|
-
], 14, Td)) : (i(), w(va,
|
|
9184
|
+
], 14, Td)) : (i(), w(va, M({ key: 1 }, e.temporary, {
|
|
9186
9185
|
ref: "modalRef",
|
|
9187
|
-
open:
|
|
9188
|
-
"onUpdate:open": B[0] || (B[0] = (C) =>
|
|
9186
|
+
open: _.value,
|
|
9187
|
+
"onUpdate:open": B[0] || (B[0] = (C) => _.value = C),
|
|
9189
9188
|
class: [
|
|
9190
9189
|
"onyx-sidebar",
|
|
9191
9190
|
"onyx-sidebar--temporary",
|
|
@@ -9201,7 +9200,7 @@ const Yi = (n, t) => {
|
|
|
9201
9200
|
}), xe({
|
|
9202
9201
|
default: $(() => [
|
|
9203
9202
|
E(k.$slots, "default"),
|
|
9204
|
-
e.resizable ? (i(), w(po,
|
|
9203
|
+
e.resizable ? (i(), w(po, M({
|
|
9205
9204
|
key: 0,
|
|
9206
9205
|
element: c.value
|
|
9207
9206
|
}, v.value), null, 16, ["element"])) : S("v-if", !0)
|
|
@@ -9271,53 +9270,53 @@ const Yi = (n, t) => {
|
|
|
9271
9270
|
},
|
|
9272
9271
|
emits: ["validityChange", "update:modelValue"],
|
|
9273
9272
|
setup(n, { expose: t, emit: e }) {
|
|
9274
|
-
const o = n, l = e, { t: s, locale: r } = W(), u = Q("inputRef"), { disabled: c, showError: d } = ke(o), p = ae(o), v = $t(d), { densityClass:
|
|
9273
|
+
const o = n, l = e, { t: s, locale: r } = W(), u = Q("inputRef"), { disabled: c, showError: d } = ke(o), p = ae(o), v = $t(d), { densityClass: b } = U(o), { vCustomValidity: g, errorMessages: x } = Je({ props: o, emit: l }), _ = m(() => Te(o.success)), h = m(() => Te(o.message)), { rootAttrs: k, restAttrs: B } = we(), C = D(!1), A = oe({
|
|
9275
9274
|
props: o,
|
|
9276
9275
|
emit: l,
|
|
9277
9276
|
key: "modelValue"
|
|
9278
|
-
}), L = D(), P = m(() => Z.value(
|
|
9277
|
+
}), L = D(), P = m(() => Z.value(A.value)), H = m(() => (q) => o.precision !== void 0 && q != null ? Zo(q, o.precision) : q?.toString() ?? ""), Z = m(() => (q) => q == null || Number.isNaN(q) ? "" : o.formatNumber ? typeof o.formatNumber == "boolean" ? o.precision ? q.toLocaleString(r.value, {
|
|
9279
9278
|
minimumFractionDigits: o.precision,
|
|
9280
9279
|
maximumFractionDigits: o.precision
|
|
9281
9280
|
}) : q.toLocaleString(r.value) : o.formatNumber(q) : o.precision ? Zo(q, o.precision) : String(q));
|
|
9282
9281
|
Le(() => {
|
|
9283
|
-
L.value = H.value(
|
|
9282
|
+
L.value = H.value(A.value);
|
|
9284
9283
|
});
|
|
9285
9284
|
const se = (q) => {
|
|
9286
9285
|
C.value = !0;
|
|
9287
|
-
const N =
|
|
9288
|
-
|
|
9286
|
+
const N = A.value || 0, ge = (q === "stepUp" ? 1 : -1) * o.stepSize, le = parseFloat(H.value(N + ge));
|
|
9287
|
+
A.value = To(le, o.min, o.max);
|
|
9289
9288
|
}, V = () => {
|
|
9290
9289
|
if (C.value = !0, L.value == null) {
|
|
9291
|
-
|
|
9290
|
+
A.value = void 0;
|
|
9292
9291
|
return;
|
|
9293
9292
|
}
|
|
9294
|
-
L.value = H.value(parseFloat(L.value)),
|
|
9293
|
+
L.value = H.value(parseFloat(L.value)), A.value = parseFloat(L.value);
|
|
9295
9294
|
}, G = m(() => s.value("stepper.increment", { stepSize: o.stepSize })), te = m(() => s.value("stepper.decrement", { stepSize: o.stepSize }));
|
|
9296
9295
|
return t({ input: u }), Ie(u, o), (q, N) => a(p) ? (i(), f(
|
|
9297
9296
|
"div",
|
|
9298
|
-
|
|
9297
|
+
M({
|
|
9299
9298
|
key: 0,
|
|
9300
|
-
class: ["onyx-component", "onyx-stepper-skeleton", a(
|
|
9299
|
+
class: ["onyx-component", "onyx-stepper-skeleton", a(b)]
|
|
9301
9300
|
}, a(k)),
|
|
9302
9301
|
[
|
|
9303
9302
|
o.hideLabel ? S("v-if", !0) : (i(), w(X, {
|
|
9304
9303
|
key: 0,
|
|
9305
9304
|
class: "onyx-stepper-skeleton__label"
|
|
9306
9305
|
})),
|
|
9307
|
-
|
|
9306
|
+
O(X, { class: "onyx-stepper-skeleton__input" })
|
|
9308
9307
|
],
|
|
9309
9308
|
16
|
|
9310
9309
|
/* FULL_PROPS */
|
|
9311
9310
|
)) : (i(), f(
|
|
9312
9311
|
"div",
|
|
9313
|
-
|
|
9312
|
+
M({
|
|
9314
9313
|
key: 1,
|
|
9315
|
-
class: ["onyx-component", "onyx-stepper", a(
|
|
9314
|
+
class: ["onyx-component", "onyx-stepper", a(b), a(v)]
|
|
9316
9315
|
}, a(k)),
|
|
9317
9316
|
[
|
|
9318
|
-
|
|
9317
|
+
O(Ct, M(o, {
|
|
9319
9318
|
message: h.value,
|
|
9320
|
-
"success-messages":
|
|
9319
|
+
"success-messages": _.value,
|
|
9321
9320
|
"error-messages": a(x)
|
|
9322
9321
|
}), {
|
|
9323
9322
|
default: $(({ id: ge }) => [
|
|
@@ -9326,18 +9325,18 @@ const Yi = (n, t) => {
|
|
|
9326
9325
|
key: 0,
|
|
9327
9326
|
type: "button",
|
|
9328
9327
|
class: "onyx-stepper__counter",
|
|
9329
|
-
disabled: a(c) || n.readonly || o.loading || o.min !== void 0 && a(
|
|
9328
|
+
disabled: a(c) || n.readonly || o.loading || o.min !== void 0 && a(A) !== void 0 && a(A) !== null && a(A) <= o.min,
|
|
9330
9329
|
"aria-label": te.value,
|
|
9331
9330
|
tabindex: "-1",
|
|
9332
9331
|
onClick: N[0] || (N[0] = (le) => se("stepDown"))
|
|
9333
9332
|
}, [
|
|
9334
|
-
|
|
9333
|
+
O(z, { icon: a(Qa) }, null, 8, ["icon"])
|
|
9335
9334
|
], 8, Vd)),
|
|
9336
9335
|
o.loading ? (i(), w(ze, {
|
|
9337
9336
|
key: 1,
|
|
9338
9337
|
class: "onyx-stepper__loading",
|
|
9339
9338
|
type: "circle"
|
|
9340
|
-
})) : Se((i(), f("input",
|
|
9339
|
+
})) : Se((i(), f("input", M({
|
|
9341
9340
|
key: 2,
|
|
9342
9341
|
id: ge,
|
|
9343
9342
|
ref: "inputRef",
|
|
@@ -9364,7 +9363,7 @@ const Yi = (n, t) => {
|
|
|
9364
9363
|
]
|
|
9365
9364
|
}), null, 16, zd)), [
|
|
9366
9365
|
[fo, L.value],
|
|
9367
|
-
[a(
|
|
9366
|
+
[a(g)]
|
|
9368
9367
|
]),
|
|
9369
9368
|
y(
|
|
9370
9369
|
"p",
|
|
@@ -9377,12 +9376,12 @@ const Yi = (n, t) => {
|
|
|
9377
9376
|
key: 3,
|
|
9378
9377
|
type: "button",
|
|
9379
9378
|
class: "onyx-stepper__counter",
|
|
9380
|
-
disabled: a(c) || n.readonly || o.loading || o.max !== void 0 && a(
|
|
9379
|
+
disabled: a(c) || n.readonly || o.loading || o.max !== void 0 && a(A) !== void 0 && a(A) !== null && a(A) >= o.max,
|
|
9381
9380
|
"aria-label": G.value,
|
|
9382
9381
|
tabindex: "-1",
|
|
9383
9382
|
onClick: N[5] || (N[5] = (le) => se("stepUp"))
|
|
9384
9383
|
}, [
|
|
9385
|
-
|
|
9384
|
+
O(z, { icon: a(el) }, null, 8, ["icon"])
|
|
9386
9385
|
], 8, Pd))
|
|
9387
9386
|
])
|
|
9388
9387
|
]),
|
|
@@ -9414,7 +9413,7 @@ const Yi = (n, t) => {
|
|
|
9414
9413
|
},
|
|
9415
9414
|
emits: ["update:modelValue", "validityChange"],
|
|
9416
9415
|
setup(n, { expose: t, emit: e }) {
|
|
9417
|
-
const o = n, l = e, { rootAttrs: s, restAttrs: r } = we(), { densityClass: u } = U(o), { disabled: c, showError: d, requiredMarker: p } = ke(o), { requiredMarkerClass: v, requiredTypeClass:
|
|
9416
|
+
const o = n, l = e, { rootAttrs: s, restAttrs: r } = we(), { densityClass: u } = U(o), { disabled: c, showError: d, requiredMarker: p } = ke(o), { requiredMarkerClass: v, requiredTypeClass: b } = Ut(o, p), { vCustomValidity: g, errorMessages: x } = Je({ props: o, emit: l }), _ = m(
|
|
9418
9417
|
() => d.value !== !1 ? x.value : void 0
|
|
9419
9418
|
), h = m(() => o.hideLabel && o.label || void 0), k = ae(o), B = oe({
|
|
9420
9419
|
props: o,
|
|
@@ -9422,15 +9421,15 @@ const Yi = (n, t) => {
|
|
|
9422
9421
|
key: "modelValue",
|
|
9423
9422
|
default: !1
|
|
9424
9423
|
}), C = Q("inputRef");
|
|
9425
|
-
return t({ input: C }), Ie(C, o), (
|
|
9424
|
+
return t({ input: C }), Ie(C, o), (A, L) => a(k) ? (i(), f(
|
|
9426
9425
|
"div",
|
|
9427
|
-
|
|
9426
|
+
M({
|
|
9428
9427
|
key: 0,
|
|
9429
9428
|
class: ["onyx-component", "onyx-switch-skeleton", a(u)]
|
|
9430
9429
|
}, a(s)),
|
|
9431
9430
|
[
|
|
9432
9431
|
y("span", Hd, [
|
|
9433
|
-
|
|
9432
|
+
O(X, { class: "onyx-switch-skeleton__input" })
|
|
9434
9433
|
]),
|
|
9435
9434
|
o.hideLabel ? S("v-if", !0) : (i(), w(X, {
|
|
9436
9435
|
key: 0,
|
|
@@ -9439,19 +9438,19 @@ const Yi = (n, t) => {
|
|
|
9439
9438
|
],
|
|
9440
9439
|
16
|
|
9441
9440
|
/* FULL_PROPS */
|
|
9442
|
-
)) : (i(), w(Co,
|
|
9441
|
+
)) : (i(), w(Co, M({
|
|
9443
9442
|
key: 1,
|
|
9444
9443
|
disabled: a(c),
|
|
9445
|
-
"error-messages":
|
|
9444
|
+
"error-messages": _.value
|
|
9446
9445
|
}, a(s)), {
|
|
9447
9446
|
default: $(() => [
|
|
9448
9447
|
y("label", {
|
|
9449
|
-
class: R(["onyx-component onyx-switch", [a(
|
|
9448
|
+
class: R(["onyx-component onyx-switch", [a(b), a(u)]]),
|
|
9450
9449
|
title: h.value
|
|
9451
9450
|
}, [
|
|
9452
|
-
Se(y("input",
|
|
9451
|
+
Se(y("input", M({
|
|
9453
9452
|
ref: "inputRef",
|
|
9454
|
-
"onUpdate:modelValue": L[0] || (L[0] = (P) =>
|
|
9453
|
+
"onUpdate:modelValue": L[0] || (L[0] = (P) => Ae(B) ? B.value = P : null),
|
|
9455
9454
|
type: "checkbox",
|
|
9456
9455
|
role: "switch",
|
|
9457
9456
|
class: { "onyx-switch__input": !0, "onyx-switch__loading": o.loading },
|
|
@@ -9461,7 +9460,7 @@ const Yi = (n, t) => {
|
|
|
9461
9460
|
autofocus: o.autofocus
|
|
9462
9461
|
}, a(r)), null, 16, qd), [
|
|
9463
9462
|
[rn, a(B)],
|
|
9464
|
-
[a(
|
|
9463
|
+
[a(g)]
|
|
9465
9464
|
]),
|
|
9466
9465
|
y("span", Kd, [
|
|
9467
9466
|
y("span", Wd, [
|
|
@@ -9534,10 +9533,10 @@ const Yi = (n, t) => {
|
|
|
9534
9533
|
K,
|
|
9535
9534
|
null,
|
|
9536
9535
|
[
|
|
9537
|
-
a(l) ? (i(), w(X,
|
|
9536
|
+
a(l) ? (i(), w(X, M({
|
|
9538
9537
|
key: 0,
|
|
9539
9538
|
class: ["onyx-tab-skeleton", a(e), s.value]
|
|
9540
|
-
}, r.value), null, 16, ["class"])) : (i(), f("button",
|
|
9539
|
+
}, r.value), null, 16, ["class"])) : (i(), f("button", M({
|
|
9541
9540
|
key: 1,
|
|
9542
9541
|
class: [
|
|
9543
9542
|
"onyx-component",
|
|
@@ -9567,7 +9566,7 @@ const Yi = (n, t) => {
|
|
|
9567
9566
|
}, [
|
|
9568
9567
|
r.value?.["aria-selected"] ? (i(), f(
|
|
9569
9568
|
"div",
|
|
9570
|
-
|
|
9569
|
+
M({ key: 0 }, a(o)?.headless.elements.tabpanel.value({ value: t.value }), { class: "onyx-tab__panel" }),
|
|
9571
9570
|
[
|
|
9572
9571
|
E(u.$slots, "default")
|
|
9573
9572
|
],
|
|
@@ -9619,7 +9618,7 @@ const Yi = (n, t) => {
|
|
|
9619
9618
|
[
|
|
9620
9619
|
y(
|
|
9621
9620
|
"div",
|
|
9622
|
-
|
|
9621
|
+
M(a(r).elements.tablist.value, { class: "onyx-tabs__tablist" }),
|
|
9623
9622
|
[
|
|
9624
9623
|
E(c.$slots, "default")
|
|
9625
9624
|
],
|
|
@@ -9665,7 +9664,7 @@ const Yi = (n, t) => {
|
|
|
9665
9664
|
"application/gzip",
|
|
9666
9665
|
"application/x-bzip2"
|
|
9667
9666
|
].includes(t.type) ? ml : t.type.startsWith("text/") ? yl : e : e);
|
|
9668
|
-
return (l, s) => (i(), w(z,
|
|
9667
|
+
return (l, s) => (i(), w(z, M(t, { icon: o.value }), null, 16, ["icon"]));
|
|
9669
9668
|
}
|
|
9670
9669
|
}), ep = ["aria-label"], tp = { class: "onyx-file-card__content" }, op = { class: "onyx-file-card__wrapper onyx-truncation-ellipsis" }, np = {
|
|
9671
9670
|
class: "onyx-file-card__icon",
|
|
@@ -9694,7 +9693,7 @@ const Yi = (n, t) => {
|
|
|
9694
9693
|
if (e.link)
|
|
9695
9694
|
return nt(e.link);
|
|
9696
9695
|
});
|
|
9697
|
-
return (v,
|
|
9696
|
+
return (v, b) => a(u) ? (i(), w(X, {
|
|
9698
9697
|
key: 0,
|
|
9699
9698
|
class: R(["onyx-file-card-skeleton", a(s)])
|
|
9700
9699
|
}, null, 8, ["class"])) : (i(), w(Kn, {
|
|
@@ -9845,7 +9844,7 @@ const Yi = (n, t) => {
|
|
|
9845
9844
|
};
|
|
9846
9845
|
function yp(n, t) {
|
|
9847
9846
|
return i(), f("svg", mp, [...t[0] || (t[0] = [
|
|
9848
|
-
|
|
9847
|
+
Aa('<circle cx="292.60911" cy="213" r="213" fill="var(--onyx-error-svg-background-color-circle)"></circle><path d="M31.39089,151.64237c0,77.49789,48.6181,140.20819,108.70073,140.20819" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color)"></path><path d="M140.09162,291.85056c0-78.36865,54.255-141.78356,121.30372-141.78356" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color-primary)"></path><path d="M70.77521,158.66768c0,73.61476,31.00285,133.18288,69.31641,133.18288" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color-primary)"></path><path d="M140.09162,291.85056c0-100.13772,62.7103-181.16788,140.20819-181.16788" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color)"></path><ellipse cx="198.60911" cy="424.5" rx="187" ry="25.43993" fill="var(--onyx-error-svg-background-color-accent)"></ellipse><ellipse cx="198.60911" cy="424.5" rx="157" ry="21.35866" opacity="0.1"></ellipse><ellipse cx="836.60911" cy="660.5" rx="283" ry="38.5" fill="var(--onyx-error-svg-background-color-accent)"></ellipse><ellipse cx="310.60911" cy="645.5" rx="170" ry="23.12721" fill="var(--onyx-error-svg-background-color-accent)"></ellipse><path d="M494,726.5c90,23,263-30,282-90" transform="translate(-31.39089 -100.5)" fill="none" stroke="var(--onyx-error-svg-background-color-cable)" stroke-miterlimit="10" stroke-width="2"></path><path d="M341,359.5s130-36,138,80-107,149-17,172" transform="translate(-31.39089 -100.5)" fill="none" stroke="var(--onyx-error-svg-background-color-cable)" stroke-miterlimit="10" stroke-width="2"></path><path d="M215.40233,637.78332s39.0723-10.82,41.47675,24.04449-32.15951,44.78287-5.10946,51.69566" transform="translate(-31.39089 -100.5)" fill="none" stroke="var(--onyx-error-svg-background-color-cable)" stroke-miterlimit="10" stroke-width="2"></path><path d="M810.09554,663.73988,802.218,714.03505s-38.78182,20.60284-11.51335,21.20881,155.73324,0,155.73324,0,24.84461,0-14.54318-21.81478l-7.87756-52.719Z" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color)"></path><path d="M785.21906,734.69812c6.193-5.51039,16.9989-11.252,16.9989-11.252l7.87756-50.2952,113.9216.10717,7.87756,49.582c9.185,5.08711,14.8749,8.987,18.20362,11.97818,5.05882-1.15422,10.58716-5.44353-18.20362-21.38921l-7.87756-52.719-113.9216,3.02983L802.218,714.03506S769.62985,731.34968,785.21906,734.69812Z" transform="translate(-31.39089 -100.5)" opacity="0.1"></path><rect x="578.43291" y="212.68859" width="513.25314" height="357.51989" rx="18.04568" fill="var(--onyx-error-svg-background-color)"></rect><rect x="595.70294" y="231.77652" width="478.71308" height="267.83694" fill="var(--onyx-error-svg-background-color-accent)"></rect><circle cx="835.05948" cy="223.29299" r="3.02983" fill="var(--onyx-error-svg-background-color-device-controls)"></circle><path d="M1123.07694,621.32226V652.6628a18.04341,18.04341,0,0,1-18.04568,18.04568H627.86949A18.04341,18.04341,0,0,1,609.8238,652.6628V621.32226Z" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color)"></path><polygon points="968.978 667.466 968.978 673.526 642.968 673.526 642.968 668.678 643.417 667.466 651.452 645.651 962.312 645.651 968.978 667.466" fill="var(--onyx-error-svg-background-color)"></polygon><path d="M1125.828,762.03359c-.59383,2.539-2.83591,5.21743-7.90178,7.75032-18.179,9.08949-55.1429-2.42386-55.1429-2.42386s-28.4804-4.84773-28.4804-17.573a22.72457,22.72457,0,0,1,2.49658-1.48459c7.64294-4.04351,32.98449-14.02122,77.9177.42248a18.73921,18.73921,0,0,1,8.54106,5.59715C1125.07908,756.45353,1126.50669,759.15715,1125.828,762.03359Z" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color)"></path><path d="M1125.828,762.03359c-22.251,8.526-42.0843,9.1622-62.43871-4.975-10.26507-7.12617-19.59089-8.88955-26.58979-8.75618,7.64294-4.04351,32.98449-14.02122,77.9177.42248a18.73921,18.73921,0,0,1,8.54106,5.59715C1125.07908,756.45353,1126.50669,759.15715,1125.828,762.03359Z" transform="translate(-31.39089 -100.5)" opacity="0.1"></path><ellipse cx="1066.53846" cy="654.13477" rx="7.87756" ry="2.42386" fill="var(--onyx-error-svg-background-color-device-controls)"></ellipse><circle cx="835.05948" cy="545.66686" r="11.51335" fill="var(--onyx-error-svg-background-color-device-controls)"></circle><polygon points="968.978 667.466 968.978 673.526 642.968 673.526 642.968 668.678 643.417 667.466 968.978 667.466" opacity="0.1"></polygon><rect x="108.60911" y="159" width="208" height="242" fill="var(--onyx-error-svg-background-color)"></rect><rect x="87.60911" y="135" width="250" height="86" fill="var(--onyx-error-svg-background-color-accent)"></rect><rect x="87.60911" y="237" width="250" height="86" fill="var(--onyx-error-svg-background-color-accent)"></rect><rect x="87.60911" y="339" width="250" height="86" fill="var(--onyx-error-svg-background-color-accent)"></rect><rect x="271.60911" y="150" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)" opacity="0.4"></rect><rect x="294.60911" y="150" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)" opacity="0.8"></rect><rect x="317.60911" y="150" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)"></rect><rect x="271.60911" y="251" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)" opacity="0.4"></rect><rect x="294.60911" y="251" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)" opacity="0.8"></rect><rect x="317.60911" y="251" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)"></rect><rect x="271.60911" y="352" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)" opacity="0.4"></rect><rect x="294.60911" y="352" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)" opacity="0.8"></rect><rect x="317.60911" y="352" width="16" height="16" fill="var(--onyx-error-svg-background-color-primary)"></rect><circle cx="316.60911" cy="538" r="79" fill="var(--onyx-error-svg-background-color)"></circle><rect x="280.60911" y="600" width="24" height="43" fill="var(--onyx-error-svg-background-color)"></rect><rect x="328.60911" y="600" width="24" height="43" fill="var(--onyx-error-svg-background-color)"></rect><ellipse cx="300.60911" cy="643.5" rx="20" ry="7.5" fill="var(--onyx-error-svg-background-color)"></ellipse><ellipse cx="348.60911" cy="642.5" rx="20" ry="7.5" fill="var(--onyx-error-svg-background-color)"></ellipse><circle cx="318.60911" cy="518" r="27" fill="var(--onyx-error-svg-background-color-face)"></circle><circle cx="318.60911" cy="518" r="9" fill="var(--onyx-error-svg-background-color-accent)"></circle><path d="M271.36733,565.03228c-6.37889-28.56758,14.01185-57.43392,45.544-64.47477s62.2651,10.41,68.644,38.9776-14.51861,39.10379-46.05075,46.14464S277.74622,593.59986,271.36733,565.03228Z" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color-primary)"></path><ellipse cx="417.21511" cy="611.34365" rx="39.5" ry="12.40027" transform="translate(-238.28665 112.98044) rotate(-23.17116)" fill="var(--onyx-error-svg-background-color)"></ellipse><ellipse cx="269.21511" cy="664.34365" rx="39.5" ry="12.40027" transform="translate(-271.07969 59.02084) rotate(-23.17116)" fill="var(--onyx-error-svg-background-color)"></ellipse><path d="M394,661.5c0,7.732-19.90861,23-42,23s-43-14.268-43-22,20.90861-6,43-6S394,653.768,394,661.5Z" transform="translate(-31.39089 -100.5)" fill="var(--onyx-error-svg-background-color-face)"></path>', 48)
|
|
9849
9848
|
])]);
|
|
9850
9849
|
}
|
|
9851
9850
|
const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
@@ -9959,7 +9958,7 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
9959
9958
|
props: e,
|
|
9960
9959
|
emit: o,
|
|
9961
9960
|
key: "modelValue"
|
|
9962
|
-
}),
|
|
9961
|
+
}), b = Q("inputRef"), g = m(() => _t(v.value ?? []).filter((G) => G != null)), x = D(!1), _ = m(() => g.value.map((V, G) => {
|
|
9963
9962
|
if (e.accept && !dp(V, e.accept))
|
|
9964
9963
|
return {
|
|
9965
9964
|
text: r.value("fileUpload.status.fileTypeError", {
|
|
@@ -9974,7 +9973,7 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
9974
9973
|
}),
|
|
9975
9974
|
color: "danger"
|
|
9976
9975
|
};
|
|
9977
|
-
const te =
|
|
9976
|
+
const te = g.value.slice(0, G + 1).reduce((q, N) => q + N.size, 0);
|
|
9978
9977
|
if (e.maxTotalSize && te > uo(e.maxTotalSize))
|
|
9979
9978
|
return {
|
|
9980
9979
|
text: r.value("fileUpload.status.maxFileSizeError", {
|
|
@@ -9987,28 +9986,28 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
9987
9986
|
text: r.value("fileUpload.status.maxCountError", { count: e.maxCount }),
|
|
9988
9987
|
color: "danger"
|
|
9989
9988
|
};
|
|
9990
|
-
})), h = m(() =>
|
|
9989
|
+
})), h = m(() => g.value.map((V, G) => ({
|
|
9991
9990
|
file: V,
|
|
9992
9991
|
props: {
|
|
9993
9992
|
filename: V.name,
|
|
9994
9993
|
size: V.size,
|
|
9995
9994
|
type: V.type,
|
|
9996
9995
|
link: Z(V),
|
|
9997
|
-
status:
|
|
9996
|
+
status: _.value[G]
|
|
9998
9997
|
}
|
|
9999
9998
|
}))), k = (V) => {
|
|
10000
9999
|
let G;
|
|
10001
|
-
e.multiple ? e.replace ? G = V.slice() : G =
|
|
10000
|
+
e.multiple ? e.replace ? G = V.slice() : G = g.value.concat(V) : G = V[0], v.value = G;
|
|
10002
10001
|
}, B = (V) => {
|
|
10003
10002
|
if (e.multiple) {
|
|
10004
|
-
const G =
|
|
10003
|
+
const G = g.value.filter((te) => te !== V);
|
|
10005
10004
|
v.value = G;
|
|
10006
10005
|
} else
|
|
10007
10006
|
v.value = void 0;
|
|
10008
10007
|
}, C = (V) => {
|
|
10009
10008
|
const G = V.target, te = Array.from(G.files ?? []);
|
|
10010
10009
|
k(te), G.value = "";
|
|
10011
|
-
},
|
|
10010
|
+
}, A = m(() => e.size === "large" || (e.maxSize || e.maxTotalSize || e.maxCount || e.accept?.length) && e.size !== "small"), L = D(!1), P = (V) => {
|
|
10012
10011
|
if (s.value) return;
|
|
10013
10012
|
L.value = !1;
|
|
10014
10013
|
const G = Array.from(V.dataTransfer?.files ?? []);
|
|
@@ -10021,13 +10020,13 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10021
10020
|
} catch {
|
|
10022
10021
|
return;
|
|
10023
10022
|
}
|
|
10024
|
-
}, se = m(() => e.listType === "hidden" || !
|
|
10023
|
+
}, se = m(() => e.listType === "hidden" || !g.value.length ? !1 : e.listType === "button" ? !x.value : !0);
|
|
10025
10024
|
return (V, G) => a(l) ? (i(), w(X, {
|
|
10026
10025
|
key: 0,
|
|
10027
10026
|
class: R(["onyx-file-upload-skeleton", `onyx-file-upload-skeleton--${e.size}`, a(u)])
|
|
10028
10027
|
}, null, 8, ["class"])) : (i(), f(
|
|
10029
10028
|
"div",
|
|
10030
|
-
|
|
10029
|
+
M({
|
|
10031
10030
|
key: 1,
|
|
10032
10031
|
class: ["onyx-component", "onyx-file-upload-wrapper", a(u)]
|
|
10033
10032
|
}, a(d)),
|
|
@@ -10045,14 +10044,14 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10045
10044
|
onDragover: G[1] || (G[1] = Re(() => {
|
|
10046
10045
|
}, ["prevent"])),
|
|
10047
10046
|
onDrop: Re(P, ["prevent"]),
|
|
10048
|
-
onClick: G[2] || (G[2] = (te) =>
|
|
10047
|
+
onClick: G[2] || (G[2] = (te) => b.value?.click())
|
|
10049
10048
|
}, [
|
|
10050
10049
|
e.size === "large" ? (i(), w(a(fp), {
|
|
10051
10050
|
key: 0,
|
|
10052
10051
|
disabled: a(s),
|
|
10053
10052
|
active: L.value
|
|
10054
10053
|
}, null, 8, ["disabled", "active"])) : (i(), f("div", hp, [
|
|
10055
|
-
|
|
10054
|
+
O(z, { icon: a(fl) }, null, 8, ["icon"]),
|
|
10056
10055
|
y(
|
|
10057
10056
|
"span",
|
|
10058
10057
|
null,
|
|
@@ -10061,7 +10060,7 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10061
10060
|
/* TEXT */
|
|
10062
10061
|
)
|
|
10063
10062
|
])),
|
|
10064
|
-
|
|
10063
|
+
A.value ? (i(), f("div", bp, [
|
|
10065
10064
|
e.size === "large" ? (i(), f("p", gp, [
|
|
10066
10065
|
y(
|
|
10067
10066
|
"u",
|
|
@@ -10136,7 +10135,7 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10136
10135
|
)) : S("v-if", !0)
|
|
10137
10136
|
])) : S("v-if", !0)
|
|
10138
10137
|
], 42, vp),
|
|
10139
|
-
y("input",
|
|
10138
|
+
y("input", M({
|
|
10140
10139
|
ref: "inputRef",
|
|
10141
10140
|
"aria-hidden": "true",
|
|
10142
10141
|
tabindex: "-1",
|
|
@@ -10147,7 +10146,7 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10147
10146
|
disabled: a(s),
|
|
10148
10147
|
name: e.name
|
|
10149
10148
|
}, a(c), { onChange: C }), null, 16, wp),
|
|
10150
|
-
e.listType === "button" &&
|
|
10149
|
+
e.listType === "button" && g.value.length ? (i(), w($e, {
|
|
10151
10150
|
key: 0,
|
|
10152
10151
|
class: "onyx-file-upload__list-button",
|
|
10153
10152
|
label: x.value ? a(r)("fileUpload.revealFilesButton") : a(r)("fileUpload.hideFilesButton"),
|
|
@@ -10171,12 +10170,12 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10171
10170
|
file: te.file,
|
|
10172
10171
|
props: te.props
|
|
10173
10172
|
}, () => [
|
|
10174
|
-
|
|
10173
|
+
O(
|
|
10175
10174
|
up,
|
|
10176
|
-
|
|
10175
|
+
M({ ref_for: !0 }, te.props),
|
|
10177
10176
|
{
|
|
10178
10177
|
actions: $(() => [
|
|
10179
|
-
|
|
10178
|
+
O(bt, {
|
|
10180
10179
|
color: "danger",
|
|
10181
10180
|
icon: a(vl),
|
|
10182
10181
|
label: a(r)("fileUpload.removeFile"),
|
|
@@ -10222,7 +10221,7 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10222
10221
|
}), r = m(
|
|
10223
10222
|
() => s.value ? l.value("filterTag.clickToRemove", { label: e.label }) : l.value("filterTag.clickToAdd", { label: e.label })
|
|
10224
10223
|
), u = ae(e);
|
|
10225
|
-
return (c, d) => (i(), w(ot,
|
|
10224
|
+
return (c, d) => (i(), w(ot, M(e, {
|
|
10226
10225
|
clickable: { label: r.value, actionIcon: a(s) ? a(We) : void 0 },
|
|
10227
10226
|
class: "onyx-filter-tag",
|
|
10228
10227
|
skeleton: a(u),
|
|
@@ -10266,19 +10265,19 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10266
10265
|
emit: l,
|
|
10267
10266
|
key: "modelValue",
|
|
10268
10267
|
default: ""
|
|
10269
|
-
}), { rootAttrs: r, restAttrs: u } = we(), { maxLength: c, maxLengthError: d } = ma({ props: o, modelValue: s }), p = m(() => o.error ?? d.value), { vCustomValidity: v, errorMessages:
|
|
10268
|
+
}), { rootAttrs: r, restAttrs: u } = we(), { maxLength: c, maxLengthError: d } = ma({ props: o, modelValue: s }), p = m(() => o.error ?? d.value), { vCustomValidity: v, errorMessages: b } = Je({ props: o, emit: l, error: p }), { densityClass: g } = U(o), x = m(() => Te(o.success)), _ = m(() => Te(o.message)), h = m(() => {
|
|
10270
10269
|
if (!o.autosize) return;
|
|
10271
10270
|
const H = o.autosize.min ? Math.max(o.autosize.min, 2) : void 0, Z = o.autosize.max;
|
|
10272
10271
|
return [H ? `--min-autosize-rows: ${H}` : "", `--max-autosize-rows: ${Z ?? "unset"}`];
|
|
10273
10272
|
}), k = (H) => {
|
|
10274
10273
|
const Z = H.target;
|
|
10275
10274
|
Z.parentElement?.setAttribute("data-autosize-value", Z.value);
|
|
10276
|
-
}, { disabled: B, showError: C } = ke(o),
|
|
10277
|
-
return t({ input: P }), Ie(P, o), (H, Z) => a(
|
|
10275
|
+
}, { disabled: B, showError: C } = ke(o), A = ae(o), L = $t(C), P = Q("inputRef");
|
|
10276
|
+
return t({ input: P }), Ie(P, o), (H, Z) => a(A) ? (i(), f(
|
|
10278
10277
|
"div",
|
|
10279
|
-
|
|
10278
|
+
M({
|
|
10280
10279
|
key: 0,
|
|
10281
|
-
class: ["onyx-component", "onyx-textarea-skeleton", a(
|
|
10280
|
+
class: ["onyx-component", "onyx-textarea-skeleton", a(g)],
|
|
10282
10281
|
style: h.value
|
|
10283
10282
|
}, a(r)),
|
|
10284
10283
|
[
|
|
@@ -10286,32 +10285,32 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10286
10285
|
key: 0,
|
|
10287
10286
|
class: "onyx-textarea-skeleton__label"
|
|
10288
10287
|
})),
|
|
10289
|
-
|
|
10288
|
+
O(X, { class: "onyx-textarea-skeleton__input" })
|
|
10290
10289
|
],
|
|
10291
10290
|
16
|
|
10292
10291
|
/* FULL_PROPS */
|
|
10293
10292
|
)) : (i(), f(
|
|
10294
10293
|
"div",
|
|
10295
|
-
|
|
10294
|
+
M({
|
|
10296
10295
|
key: 1,
|
|
10297
|
-
class: ["onyx-component", "onyx-textarea", a(L), a(
|
|
10296
|
+
class: ["onyx-component", "onyx-textarea", a(L), a(g)],
|
|
10298
10297
|
style: h.value
|
|
10299
10298
|
}, a(r)),
|
|
10300
10299
|
[
|
|
10301
|
-
|
|
10302
|
-
message:
|
|
10300
|
+
O(Ct, M(o, {
|
|
10301
|
+
message: _.value,
|
|
10303
10302
|
"success-messages": x.value,
|
|
10304
|
-
"error-messages": a(
|
|
10303
|
+
"error-messages": a(b)
|
|
10305
10304
|
}), {
|
|
10306
10305
|
default: $(({ id: se }) => [
|
|
10307
10306
|
y("div", {
|
|
10308
10307
|
class: "onyx-textarea__wrapper",
|
|
10309
10308
|
"data-autosize-value": a(s)
|
|
10310
10309
|
}, [
|
|
10311
|
-
Se(y("textarea",
|
|
10310
|
+
Se(y("textarea", M({
|
|
10312
10311
|
id: se,
|
|
10313
10312
|
ref: "inputRef",
|
|
10314
|
-
"onUpdate:modelValue": Z[0] || (Z[0] = (V) =>
|
|
10313
|
+
"onUpdate:modelValue": Z[0] || (Z[0] = (V) => Ae(s) ? s.value = V : null),
|
|
10315
10314
|
class: ["onyx-textarea__native", { "onyx-textarea__native--no-resize": o.disableManualResize }],
|
|
10316
10315
|
placeholder: o.placeholder,
|
|
10317
10316
|
required: o.required,
|
|
@@ -10338,7 +10337,7 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10338
10337
|
/* FULL_PROPS */
|
|
10339
10338
|
));
|
|
10340
10339
|
}
|
|
10341
|
-
}), Ep = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%20viewBox='0%200%20821%20922'%3e%3cpath%20d='M48.16%2024.48c-1.44-8.17-3.21-14.28-7.18-17.56-3.54-2.93-8.5-3.5-17.09-1.98C7.91%207.75%204.61%2013.23%207.84%2031.58c2.62%2014.87%206.4%2020.29%2016.3%2020.29%202.28%200%204.89-.29%207.89-.82%2016.05-2.83%2019.36-8.3%2016.14-26.58zm-27.8-2.67c0-.12.02-.28.03-.42.68-4.95%202.64-5.5%207.57-5.5%206.58%200%207.88.97%207.88%2012.14%200%203.14-.11%205.45-.41%207.18h-.01v.11c-.77%204.27-2.77%204.78-7.45%204.78-6.58%200-7.88-.97-7.88-12.06%200-2.59.07-4.61.26-6.22h.02z'%20style='fill:%2300adba;fill-rule:nonzero'%20transform='translate(-129.658%20-79.541)scale(19.29)'/%3e%3cpath%20d='M48.12%2024.46c-1.44-8.15-3.2-14.25-7.17-17.52-3.53-2.92-8.48-3.51-17.05-2-.18.03-.78.14-.95.17l-2.37%2015.21c.81-3.96%202.83-4.43%207.37-4.43%206.57%200%207.86.97%207.86%2012.11%200%202.78-.09%204.91-.31%206.55l12.62-10.1z'%20style='fill:url(%23a);fill-rule:nonzero'%20transform='translate(-129.658%20-79.541)scale(19.29)'/%3e%3cpath%20d='M7.84%2031.5c1.44%208.15%203.13%2014.27%207.09%2017.54%203.53%202.92%208.48%203.51%2017.05%202%20.18-.03.78-.14.95-.17l2.37-15.21c-.81%203.96-2.83%204.43-7.37%204.43-6.57%200-7.86-.97-7.86-12.11%200-2.78.09-4.91.31-6.55L7.84%2031.51z'%20style='fill:url(%23b);fill-rule:nonzero'%20transform='translate(-129.658%20-79.541)scale(19.29)'/%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='0'%20x2='1'%20y1='0'%20y2='0'%20gradientTransform='rotate(20%20-28.968%2063.083)scale(30.27)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20style='stop-color:%23018da0;stop-opacity:1'/%3e%3cstop%20offset='.14'%20style='stop-color:%23018da0;stop-opacity:1'/%3e%3cstop%20offset='.77'%20style='stop-color:%2300adba;stop-opacity:1'/%3e%3cstop%20offset='1'%20style='stop-color:%2300adba;stop-opacity:1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='0'%20x2='1'%20y1='0'%20y2='0'%20gradientTransform='rotate(-160%2021.757%2017.96)scale(30.2)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20style='stop-color:%23018da0;stop-opacity:1'/%3e%3cstop%20offset='.14'%20style='stop-color:%23018da0;stop-opacity:1'/%3e%3cstop%20offset='.77'%20style='stop-color:%2300adba;stop-opacity:1'/%3e%3cstop%20offset='1'%20style='stop-color:%2300adba;stop-opacity:1'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", Bp = { class: "parent" },
|
|
10340
|
+
}), Ep = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%20viewBox='0%200%20821%20922'%3e%3cpath%20d='M48.16%2024.48c-1.44-8.17-3.21-14.28-7.18-17.56-3.54-2.93-8.5-3.5-17.09-1.98C7.91%207.75%204.61%2013.23%207.84%2031.58c2.62%2014.87%206.4%2020.29%2016.3%2020.29%202.28%200%204.89-.29%207.89-.82%2016.05-2.83%2019.36-8.3%2016.14-26.58zm-27.8-2.67c0-.12.02-.28.03-.42.68-4.95%202.64-5.5%207.57-5.5%206.58%200%207.88.97%207.88%2012.14%200%203.14-.11%205.45-.41%207.18h-.01v.11c-.77%204.27-2.77%204.78-7.45%204.78-6.58%200-7.88-.97-7.88-12.06%200-2.59.07-4.61.26-6.22h.02z'%20style='fill:%2300adba;fill-rule:nonzero'%20transform='translate(-129.658%20-79.541)scale(19.29)'/%3e%3cpath%20d='M48.12%2024.46c-1.44-8.15-3.2-14.25-7.17-17.52-3.53-2.92-8.48-3.51-17.05-2-.18.03-.78.14-.95.17l-2.37%2015.21c.81-3.96%202.83-4.43%207.37-4.43%206.57%200%207.86.97%207.86%2012.11%200%202.78-.09%204.91-.31%206.55l12.62-10.1z'%20style='fill:url(%23a);fill-rule:nonzero'%20transform='translate(-129.658%20-79.541)scale(19.29)'/%3e%3cpath%20d='M7.84%2031.5c1.44%208.15%203.13%2014.27%207.09%2017.54%203.53%202.92%208.48%203.51%2017.05%202%20.18-.03.78-.14.95-.17l2.37-15.21c-.81%203.96-2.83%204.43-7.37%204.43-6.57%200-7.86-.97-7.86-12.11%200-2.78.09-4.91.31-6.55L7.84%2031.51z'%20style='fill:url(%23b);fill-rule:nonzero'%20transform='translate(-129.658%20-79.541)scale(19.29)'/%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='0'%20x2='1'%20y1='0'%20y2='0'%20gradientTransform='rotate(20%20-28.968%2063.083)scale(30.27)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20style='stop-color:%23018da0;stop-opacity:1'/%3e%3cstop%20offset='.14'%20style='stop-color:%23018da0;stop-opacity:1'/%3e%3cstop%20offset='.77'%20style='stop-color:%2300adba;stop-opacity:1'/%3e%3cstop%20offset='1'%20style='stop-color:%2300adba;stop-opacity:1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='0'%20x2='1'%20y1='0'%20y2='0'%20gradientTransform='rotate(-160%2021.757%2017.96)scale(30.2)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20style='stop-color:%23018da0;stop-opacity:1'/%3e%3cstop%20offset='.14'%20style='stop-color:%23018da0;stop-opacity:1'/%3e%3cstop%20offset='.77'%20style='stop-color:%2300adba;stop-opacity:1'/%3e%3cstop%20offset='1'%20style='stop-color:%2300adba;stop-opacity:1'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", Bp = { class: "parent" }, Mp = { class: "showcase__flex grid--row1" }, Op = { class: "showcase__flex grid--tags" }, Ap = { class: "showcase__flex grid--row2" }, Tp = { class: "showcase__flex grid--row3" }, Ip = { class: "showcase__flex grid--row4" }, Rp = /* @__PURE__ */ T({
|
|
10342
10341
|
__name: "ComponentShowcase",
|
|
10343
10342
|
props: {
|
|
10344
10343
|
dark: { type: Boolean },
|
|
@@ -10375,13 +10374,13 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10375
10374
|
class: R(["showcase onyx-text", { dark: t.value }])
|
|
10376
10375
|
},
|
|
10377
10376
|
[
|
|
10378
|
-
y("div",
|
|
10379
|
-
|
|
10377
|
+
y("div", Mp, [
|
|
10378
|
+
O(ua, {
|
|
10380
10379
|
modelValue: s.value.pagination,
|
|
10381
10380
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => s.value.pagination = d),
|
|
10382
10381
|
pages: 6
|
|
10383
10382
|
}, null, 8, ["modelValue"]),
|
|
10384
|
-
|
|
10383
|
+
O(ca, {
|
|
10385
10384
|
modelValue: s.value.select,
|
|
10386
10385
|
"onUpdate:modelValue": c[1] || (c[1] = (d) => s.value.select = d),
|
|
10387
10386
|
class: "showcase__select",
|
|
@@ -10393,13 +10392,13 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10393
10392
|
"with-search": "",
|
|
10394
10393
|
"hide-label": ""
|
|
10395
10394
|
}, null, 8, ["modelValue", "options"]),
|
|
10396
|
-
|
|
10395
|
+
O(Yd, {
|
|
10397
10396
|
modelValue: t.value,
|
|
10398
10397
|
"onUpdate:modelValue": c[2] || (c[2] = (d) => t.value = d),
|
|
10399
10398
|
label: "Dark mode"
|
|
10400
10399
|
}, null, 8, ["modelValue"])
|
|
10401
10400
|
]),
|
|
10402
|
-
|
|
10401
|
+
O(Zn, {
|
|
10403
10402
|
class: "grid--table",
|
|
10404
10403
|
striped: ""
|
|
10405
10404
|
}, {
|
|
@@ -10506,7 +10505,7 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10506
10505
|
_: 1
|
|
10507
10506
|
/* STABLE */
|
|
10508
10507
|
}),
|
|
10509
|
-
|
|
10508
|
+
O(Cp, {
|
|
10510
10509
|
modelValue: s.value.textarea,
|
|
10511
10510
|
"onUpdate:modelValue": c[3] || (c[3] = (d) => s.value.textarea = d),
|
|
10512
10511
|
class: "grid--textarea",
|
|
@@ -10515,14 +10514,14 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10515
10514
|
placeholder: "Enter free text here",
|
|
10516
10515
|
autosize: { min: 7, max: 14 }
|
|
10517
10516
|
}, null, 8, ["modelValue"]),
|
|
10518
|
-
|
|
10517
|
+
O(zn, {
|
|
10519
10518
|
class: "grid--toast",
|
|
10520
10519
|
headline: "Toast notification",
|
|
10521
10520
|
description: "Description",
|
|
10522
10521
|
duration: 0
|
|
10523
10522
|
}),
|
|
10524
|
-
y("div",
|
|
10525
|
-
|
|
10523
|
+
y("div", Op, [
|
|
10524
|
+
O(Pt, null, {
|
|
10526
10525
|
default: $(() => [...c[15] || (c[15] = [
|
|
10527
10526
|
Y(
|
|
10528
10527
|
"Badge",
|
|
@@ -10533,25 +10532,25 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10533
10532
|
_: 1
|
|
10534
10533
|
/* STABLE */
|
|
10535
10534
|
}),
|
|
10536
|
-
|
|
10537
|
-
|
|
10535
|
+
O(ot, { label: "Tag" }),
|
|
10536
|
+
O(ot, {
|
|
10538
10537
|
label: "Tag",
|
|
10539
10538
|
color: "primary"
|
|
10540
10539
|
}),
|
|
10541
|
-
|
|
10540
|
+
O(ot, {
|
|
10542
10541
|
label: "Tag",
|
|
10543
10542
|
color: "danger"
|
|
10544
10543
|
}),
|
|
10545
|
-
|
|
10544
|
+
O(ot, {
|
|
10546
10545
|
label: "Tag",
|
|
10547
10546
|
color: "warning"
|
|
10548
10547
|
}),
|
|
10549
|
-
|
|
10548
|
+
O(ot, {
|
|
10550
10549
|
label: "Tag",
|
|
10551
10550
|
color: "success"
|
|
10552
10551
|
})
|
|
10553
10552
|
]),
|
|
10554
|
-
|
|
10553
|
+
O(Jo, {
|
|
10555
10554
|
modelValue: s.value.checkboxGroup,
|
|
10556
10555
|
"onUpdate:modelValue": c[4] || (c[4] = (d) => s.value.checkboxGroup = d),
|
|
10557
10556
|
class: "grid--checkboxes",
|
|
@@ -10560,13 +10559,13 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10560
10559
|
options: a(o),
|
|
10561
10560
|
"with-check-all": ""
|
|
10562
10561
|
}, null, 8, ["modelValue", "options"]),
|
|
10563
|
-
y("div",
|
|
10564
|
-
|
|
10562
|
+
y("div", Ap, [
|
|
10563
|
+
O(Vr, null, {
|
|
10565
10564
|
default: $(() => [
|
|
10566
10565
|
(i(), f(
|
|
10567
10566
|
K,
|
|
10568
10567
|
null,
|
|
10569
|
-
ce(r, (d) =>
|
|
10568
|
+
ce(r, (d) => O(Rt, {
|
|
10570
10569
|
key: d.name,
|
|
10571
10570
|
"full-name": d.name,
|
|
10572
10571
|
src: d.avatar,
|
|
@@ -10575,7 +10574,7 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10575
10574
|
64
|
|
10576
10575
|
/* STABLE_FRAGMENT */
|
|
10577
10576
|
)),
|
|
10578
|
-
|
|
10577
|
+
O(Rt, {
|
|
10579
10578
|
"full-name": "Three others",
|
|
10580
10579
|
initials: "+3",
|
|
10581
10580
|
size: "32px"
|
|
@@ -10584,7 +10583,7 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10584
10583
|
_: 1
|
|
10585
10584
|
/* STABLE */
|
|
10586
10585
|
}),
|
|
10587
|
-
|
|
10586
|
+
O(wd, {
|
|
10588
10587
|
modelValue: s.value.radioGroup,
|
|
10589
10588
|
"onUpdate:modelValue": c[5] || (c[5] = (d) => s.value.radioGroup = d),
|
|
10590
10589
|
label: "Radio group",
|
|
@@ -10594,25 +10593,25 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10594
10593
|
}, null, 8, ["modelValue", "options"])
|
|
10595
10594
|
]),
|
|
10596
10595
|
y("div", Tp, [
|
|
10597
|
-
|
|
10596
|
+
O(ou, {
|
|
10598
10597
|
label: "Input",
|
|
10599
10598
|
placeholder: "Example input",
|
|
10600
10599
|
"hide-label": ""
|
|
10601
10600
|
}),
|
|
10602
|
-
|
|
10601
|
+
O(bt, {
|
|
10603
10602
|
icon: a(hl),
|
|
10604
10603
|
label: "Icon button"
|
|
10605
10604
|
}, null, 8, ["icon"]),
|
|
10606
|
-
|
|
10605
|
+
O(ct, {
|
|
10607
10606
|
icon: a(bl),
|
|
10608
10607
|
label: "Button",
|
|
10609
10608
|
color: "neutral"
|
|
10610
10609
|
}, null, 8, ["icon"]),
|
|
10611
|
-
|
|
10610
|
+
O(ct, {
|
|
10612
10611
|
icon: a(wt),
|
|
10613
10612
|
label: "Button"
|
|
10614
10613
|
}, null, 8, ["icon"]),
|
|
10615
|
-
|
|
10614
|
+
O(Ud, {
|
|
10616
10615
|
modelValue: s.value.stepper,
|
|
10617
10616
|
"onUpdate:modelValue": c[6] || (c[6] = (d) => s.value.stepper = d),
|
|
10618
10617
|
label: "Stepper",
|
|
@@ -10628,7 +10627,7 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10628
10627
|
-1
|
|
10629
10628
|
/* CACHED */
|
|
10630
10629
|
)),
|
|
10631
|
-
|
|
10630
|
+
O(Jo, {
|
|
10632
10631
|
label: "Checkbox group (skeleton)",
|
|
10633
10632
|
"hide-label": "",
|
|
10634
10633
|
orientation: "horizontal",
|
|
@@ -10636,13 +10635,13 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10636
10635
|
options: []
|
|
10637
10636
|
})
|
|
10638
10637
|
]),
|
|
10639
|
-
|
|
10638
|
+
O(ed, {
|
|
10640
10639
|
class: "grid--nav",
|
|
10641
10640
|
"app-name": "Nav bar",
|
|
10642
10641
|
"logo-url": a(Ep)
|
|
10643
10642
|
}, {
|
|
10644
10643
|
contextArea: $(() => [
|
|
10645
|
-
|
|
10644
|
+
O(qu, {
|
|
10646
10645
|
description: "Company Name",
|
|
10647
10646
|
"full-name": "Jane Doe"
|
|
10648
10647
|
}, {
|
|
@@ -10661,9 +10660,9 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10661
10660
|
)
|
|
10662
10661
|
])]),
|
|
10663
10662
|
default: $(() => [
|
|
10664
|
-
|
|
10663
|
+
O(Ke, null, {
|
|
10665
10664
|
default: $(() => [
|
|
10666
|
-
|
|
10665
|
+
O(z, { icon: a(gl) }, null, 8, ["icon"]),
|
|
10667
10666
|
c[17] || (c[17] = Y(
|
|
10668
10667
|
" Settings ",
|
|
10669
10668
|
-1
|
|
@@ -10673,13 +10672,13 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10673
10672
|
_: 1
|
|
10674
10673
|
/* STABLE */
|
|
10675
10674
|
}),
|
|
10676
|
-
|
|
10675
|
+
O(Cu, {
|
|
10677
10676
|
"model-value": t.value ? "dark" : "light",
|
|
10678
10677
|
"onUpdate:modelValue": c[7] || (c[7] = (d) => t.value = d === "dark")
|
|
10679
10678
|
}, null, 8, ["model-value"]),
|
|
10680
|
-
|
|
10679
|
+
O(Ke, { color: "danger" }, {
|
|
10681
10680
|
default: $(() => [
|
|
10682
|
-
|
|
10681
|
+
O(z, { icon: a(_l) }, null, 8, ["icon"]),
|
|
10683
10682
|
c[18] || (c[18] = Y(
|
|
10684
10683
|
" Logout ",
|
|
10685
10684
|
-1
|
|
@@ -10695,19 +10694,19 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10695
10694
|
})
|
|
10696
10695
|
]),
|
|
10697
10696
|
default: $(() => [
|
|
10698
|
-
|
|
10697
|
+
O(ft, {
|
|
10699
10698
|
label: "Page 1",
|
|
10700
10699
|
active: ""
|
|
10701
10700
|
}),
|
|
10702
|
-
|
|
10701
|
+
O(ft, { label: "Page 2" }, {
|
|
10703
10702
|
children: $(() => [
|
|
10704
|
-
|
|
10705
|
-
|
|
10703
|
+
O(ft, { label: "Subpage 1" }),
|
|
10704
|
+
O(ft, { label: "Subpage 2" })
|
|
10706
10705
|
]),
|
|
10707
10706
|
_: 1
|
|
10708
10707
|
/* STABLE */
|
|
10709
10708
|
}),
|
|
10710
|
-
|
|
10709
|
+
O(ft, {
|
|
10711
10710
|
label: "Page 3",
|
|
10712
10711
|
link: { href: "https://onyx.schwarz", target: "_blank" }
|
|
10713
10712
|
})
|
|
@@ -10721,7 +10720,7 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10721
10720
|
)
|
|
10722
10721
|
]));
|
|
10723
10722
|
}
|
|
10724
|
-
}), Bm = /* @__PURE__ */ Ft(Rp, [["__scopeId", "data-v-c46b11f7"]]),
|
|
10723
|
+
}), Bm = /* @__PURE__ */ Ft(Rp, [["__scopeId", "data-v-c46b11f7"]]), Mm = (n) => {
|
|
10725
10724
|
Ce(() => {
|
|
10726
10725
|
J([n], () => {
|
|
10727
10726
|
const t = document.documentElement, e = "onyx-transition-active", o = () => {
|
|
@@ -10730,11 +10729,11 @@ const $m = /* @__PURE__ */ Ft(pp, [["render", yp]]), fp = /* @__PURE__ */ T({
|
|
|
10730
10729
|
t.addEventListener("transitionend", o, { once: !0 }), t.classList.add(e);
|
|
10731
10730
|
});
|
|
10732
10731
|
});
|
|
10733
|
-
},
|
|
10732
|
+
}, Om = ["primary", "neutral", "danger", "warning", "success", "info"], Am = ["small", "default", "large"], Tm = ["ellipsis", "multiline"], Im = ["horizontal", "vertical"], Rm = (n = {}) => ({
|
|
10734
10733
|
install: (t) => {
|
|
10735
10734
|
ms(t, n.i18n);
|
|
10736
10735
|
const e = t.runWithContext(() => W());
|
|
10737
|
-
t.provide(Fn, Br()), t.provide(Ln, Qs()), t.provide(Vn, br()), n.router && t.provide(
|
|
10736
|
+
t.provide(Fn, Br()), t.provide(Ln, Qs()), t.provide(Vn, br()), n.router && t.provide(On, n.router), t.mixin({
|
|
10738
10737
|
beforeMount: () => {
|
|
10739
10738
|
Le(() => {
|
|
10740
10739
|
Dp(e.t.value("optional"));
|
|
@@ -10770,7 +10769,7 @@ export {
|
|
|
10770
10769
|
fa as NAV_BAR_MORE_LIST_TARGET_INJECTION_KEY,
|
|
10771
10770
|
Vn as NOTIFICATIONS_PROVIDER_INJECTION_KEY,
|
|
10772
10771
|
ht as ONYX_BREAKPOINTS,
|
|
10773
|
-
|
|
10772
|
+
Om as ONYX_COLORS,
|
|
10774
10773
|
Im as ORIENTATIONS,
|
|
10775
10774
|
Fp as OnyxAccordion,
|
|
10776
10775
|
Pp as OnyxAccordionItem,
|
|
@@ -10860,21 +10859,21 @@ export {
|
|
|
10860
10859
|
ot as OnyxTag,
|
|
10861
10860
|
Cp as OnyxTextarea,
|
|
10862
10861
|
im as OnyxTimer,
|
|
10863
|
-
|
|
10862
|
+
Ar as OnyxToast,
|
|
10864
10863
|
zn as OnyxToastMessage,
|
|
10865
10864
|
gt as OnyxTooltip,
|
|
10866
10865
|
jp as OnyxUnstableCalendar,
|
|
10867
10866
|
qu as OnyxUserMenu,
|
|
10868
10867
|
et as OnyxVisuallyHidden,
|
|
10869
10868
|
pm as PROGRESS_ITEM_STATUS,
|
|
10870
|
-
|
|
10869
|
+
On as ROUTER_INJECTION_KEY,
|
|
10871
10870
|
vm as SELECT_ALIGNMENTS,
|
|
10872
10871
|
_m as SIDEBAR_ALIGNMENT,
|
|
10873
10872
|
ee as SKELETON_INJECTED_SYMBOL,
|
|
10874
10873
|
Sm as SUPPORTED_FILE_TYPE_ICON_MEDIA_TYPES,
|
|
10875
10874
|
xm as SYSTEM_BUTTON_COLORS,
|
|
10876
10875
|
ga as TABS_INJECTION_KEY,
|
|
10877
|
-
|
|
10876
|
+
Am as TEXT_SIZES,
|
|
10878
10877
|
Fn as TOAST_PROVIDER_INJECTION_KEY,
|
|
10879
10878
|
Tm as TRUNCATION_TYPES,
|
|
10880
10879
|
Yp as createFeature,
|
|
@@ -10884,7 +10883,7 @@ export {
|
|
|
10884
10883
|
Yi as createTableColumnGroups,
|
|
10885
10884
|
Br as createToastProvider,
|
|
10886
10885
|
nt as extractLinkProps,
|
|
10887
|
-
|
|
10886
|
+
Mn as isInternalLink,
|
|
10888
10887
|
Bn as normalizedIncludes,
|
|
10889
10888
|
ms as provideI18n,
|
|
10890
10889
|
zt as provideSkeletonContext,
|
|
@@ -10897,6 +10896,6 @@ export {
|
|
|
10897
10896
|
gr as useNotification,
|
|
10898
10897
|
ia as useScrollEnd,
|
|
10899
10898
|
ae as useSkeletonContext,
|
|
10900
|
-
|
|
10901
|
-
|
|
10899
|
+
Mm as useThemeTransition,
|
|
10900
|
+
Mr as useToast
|
|
10902
10901
|
};
|