sit-onyx 1.4.0-dev-20251110081753 → 1.4.0-dev-20251111093451
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/OnyxBasicDialog/OnyxBasicDialog.d.vue.ts +6 -1
- package/dist/components/OnyxGlobalSearch/OnyxGlobalSearch.d.vue.ts +106 -0
- package/dist/components/OnyxGlobalSearch/types.d.ts +24 -0
- package/dist/components/OnyxGlobalSearchGroup/OnyxGlobalSearchGroup.d.vue.ts +22 -0
- package/dist/components/OnyxGlobalSearchGroup/types.d.ts +11 -0
- package/dist/components/OnyxGlobalSearchOption/OnyxGlobalSearchOption.d.vue.ts +32 -0
- package/dist/components/OnyxGlobalSearchOption/types.d.ts +23 -0
- package/dist/i18n/locales/de-DE.json +13 -0
- package/dist/i18n/locales/en-US.json +13 -0
- package/dist/i18n/locales/en-US.json.d.ts +13 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.esm-bundler.js +1025 -614
- package/dist/index.esm-bundler.js.map +1 -1
- package/dist/index.js +4409 -4078
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/src/styles/grid.scss +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, provide, inject, toRef, ref, watch, defineComponent, watchEffect, toRefs, createElementBlock, openBlock, normalizeClass, renderSlot, onMounted, createBlock, resolveDynamicComponent, withCtx, createVNode, createElementVNode, withModifiers, readonly, reactive, onBeforeMount, onBeforeUnmount, useId, toValue, nextTick, unref, shallowRef, useTemplateRef, createCommentVNode, createTextVNode, toDisplayString, normalizeProps, mergeProps, Fragment, useAttrs, isProxy, toRaw, customRef, onUnmounted, normalizeStyle, useSlots, createSlots, renderList, toHandlers, resolveComponent, withDirectives, guardReactiveProps, vShow, Teleport, vModelCheckbox, vModelText, h, vModelDynamic, withKeys, createStaticVNode, useModel } from "vue";
|
|
2
|
-
import { iconChevronDownSmall, iconCircleAttention, iconXSmall, iconMoreVertical, iconX, iconMoreHorizontalSmall, iconCircleCheck, iconCircleX, iconCircleInformation, iconUser, iconArrowSmallUpRight, iconChevronRightSmall, iconArrowSmallLeft, iconMoreHorizontal, iconHome, iconChevronLeftSmall, iconFileCopy, iconSearch, iconCheck, iconSearchX, iconChevronDownUp, iconCheckSmall, iconPlusSmall, iconEyeDisabled, iconListArrowUp, iconListArrowDown, iconArrowsSort, iconCircleBlock,
|
|
2
|
+
import { iconChevronDownSmall, iconCircleAttention, iconXSmall, iconMoreVertical, iconX, iconMoreHorizontalSmall, iconCircleCheck, iconCircleX, iconCircleInformation, iconUser, iconArrowSmallUpRight, iconChevronRightSmall, iconArrowSmallLeft, iconMoreHorizontal, iconHome, iconChevronLeftSmall, iconFileCopy, iconSearch, iconCheck, iconSearchX, iconChevronDownUp, iconCheckSmall, iconPlusSmall, iconEyeDisabled, iconListArrowUp, iconListArrowDown, iconArrowsSort, iconCircleBlock, iconEyeClosed, iconEye, iconFileDisabled, iconCircleContrast, iconTranslate, iconMenu, iconNotificationFlag, iconPlus, iconMinus, iconMinusSmall, iconFile, iconFilePdf, iconFileCsv, iconAudio, iconVideocam, iconPicture, iconFileRtf, iconFilePpt, iconFileXls, iconFileXlsx, iconFileDoc, iconFileGlobe, iconFileArchive, iconFileText, iconTrash, iconCloudArrowUp, iconShareIos, iconSettings, iconLogout, iconArrowSmallRight } from "@sit-onyx/icons";
|
|
3
3
|
const DENSITIES = ["compact", "default", "cozy"];
|
|
4
4
|
const useDensity = (props) => ({
|
|
5
5
|
densityClass: computed(() => ({ [`onyx-density-${props.density}`]: !!props.density }))
|
|
@@ -49,7 +49,7 @@ const useVModel = (options) => {
|
|
|
49
49
|
};
|
|
50
50
|
const ACCORDION_INJECTION_KEY = Symbol();
|
|
51
51
|
const ACCORDION_TYPES = ["default", "nested-large", "nested-small", "card"];
|
|
52
|
-
const _sfc_main$
|
|
52
|
+
const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
53
53
|
__name: "OnyxAccordion",
|
|
54
54
|
props: {
|
|
55
55
|
density: { type: null, required: false },
|
|
@@ -119,7 +119,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
119
119
|
}
|
|
120
120
|
return target;
|
|
121
121
|
};
|
|
122
|
-
function _sfc_render$
|
|
122
|
+
function _sfc_render$1N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
123
123
|
return openBlock(), createElementBlock(
|
|
124
124
|
"div",
|
|
125
125
|
{
|
|
@@ -137,7 +137,7 @@ function _sfc_render$1K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
137
137
|
/* CLASS */
|
|
138
138
|
);
|
|
139
139
|
}
|
|
140
|
-
const OnyxAccordion = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
140
|
+
const OnyxAccordion = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["render", _sfc_render$1N], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAccordion/OnyxAccordion.vue"]]);
|
|
141
141
|
const ONYX_BREAKPOINTS = {
|
|
142
142
|
"2xs": 320,
|
|
143
143
|
xs: 577,
|
|
@@ -150,7 +150,7 @@ const ONYX_BREAKPOINTS = {
|
|
|
150
150
|
md: ONYX_BREAKPOINTS.lg - 1,
|
|
151
151
|
lg: ONYX_BREAKPOINTS.xl - 1
|
|
152
152
|
});
|
|
153
|
-
const _sfc_main$
|
|
153
|
+
const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
154
154
|
__name: "OnyxIcon",
|
|
155
155
|
props: {
|
|
156
156
|
size: { type: null, required: false },
|
|
@@ -166,8 +166,8 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
166
166
|
return __returned__;
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
|
-
const _hoisted_1$
|
|
170
|
-
function _sfc_render$
|
|
169
|
+
const _hoisted_1$1h = ["innerHTML"];
|
|
170
|
+
function _sfc_render$1M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
171
171
|
return openBlock(), createElementBlock("figure", {
|
|
172
172
|
class: normalizeClass({
|
|
173
173
|
"onyx-component": true,
|
|
@@ -178,9 +178,9 @@ function _sfc_render$1J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
178
178
|
}),
|
|
179
179
|
"aria-hidden": "true",
|
|
180
180
|
innerHTML: $setup.props.icon
|
|
181
|
-
}, null, 10, _hoisted_1$
|
|
181
|
+
}, null, 10, _hoisted_1$1h);
|
|
182
182
|
}
|
|
183
|
-
const OnyxIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
183
|
+
const OnyxIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["render", _sfc_render$1M], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxIcon/OnyxIcon.vue"]]);
|
|
184
184
|
const isAlreadyTriggered = /* @__PURE__ */ new Set();
|
|
185
185
|
const IDLE_TIMEOUT = 200;
|
|
186
186
|
const onIdleCallback = globalThis.window && "requestIdleCallback" in globalThis.window ? globalThis.window.requestIdleCallback : (cb, _) => setTimeout(cb, 0);
|
|
@@ -196,7 +196,7 @@ const requestAnimationSync = (animationName) => {
|
|
|
196
196
|
isAlreadyTriggered.add(animationName);
|
|
197
197
|
onIdleCallback(() => syncAnimations(animationName), { timeout: IDLE_TIMEOUT });
|
|
198
198
|
};
|
|
199
|
-
const _sfc_main$
|
|
199
|
+
const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
200
200
|
__name: "OnyxSkeleton",
|
|
201
201
|
setup(__props, { expose: __expose }) {
|
|
202
202
|
__expose();
|
|
@@ -206,15 +206,15 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
206
206
|
return __returned__;
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
|
-
const _hoisted_1$
|
|
209
|
+
const _hoisted_1$1g = {
|
|
210
210
|
"aria-hidden": "true",
|
|
211
211
|
class: "onyx-component onyx-skeleton"
|
|
212
212
|
};
|
|
213
|
-
function _sfc_render$
|
|
214
|
-
return openBlock(), createElementBlock("figure", _hoisted_1$
|
|
213
|
+
function _sfc_render$1L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
214
|
+
return openBlock(), createElementBlock("figure", _hoisted_1$1g);
|
|
215
215
|
}
|
|
216
|
-
const OnyxSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
217
|
-
const _sfc_main$
|
|
216
|
+
const OnyxSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$1L], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSkeleton/OnyxSkeleton.vue"]]);
|
|
217
|
+
const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
218
218
|
__name: "OnyxAccordionItem",
|
|
219
219
|
props: {
|
|
220
220
|
density: { type: null, required: false },
|
|
@@ -251,11 +251,11 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
|
251
251
|
return __returned__;
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
|
-
const _hoisted_1$
|
|
255
|
-
const _hoisted_2$
|
|
256
|
-
const _hoisted_3$
|
|
257
|
-
const _hoisted_4$
|
|
258
|
-
function _sfc_render$
|
|
254
|
+
const _hoisted_1$1f = ["open"];
|
|
255
|
+
const _hoisted_2$V = ["id", "tabindex", "aria-expanded", "aria-controls", "aria-disabled"];
|
|
256
|
+
const _hoisted_3$B = { class: "onyx-accordion-item__header-content" };
|
|
257
|
+
const _hoisted_4$o = ["id", "aria-labelledby"];
|
|
258
|
+
function _sfc_render$1K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
259
259
|
return $setup.showSkeleton ? (openBlock(), createBlock(resolveDynamicComponent($setup.type === "card" ? $setup.OnyxSkeleton : "div"), {
|
|
260
260
|
key: 0,
|
|
261
261
|
class: normalizeClass([
|
|
@@ -291,14 +291,14 @@ function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
291
291
|
"aria-disabled": $setup.isDisabled,
|
|
292
292
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => $setup.isOpen = !$setup.isOpen, ["prevent"]))
|
|
293
293
|
}, [
|
|
294
|
-
createElementVNode("div", _hoisted_3$
|
|
294
|
+
createElementVNode("div", _hoisted_3$B, [
|
|
295
295
|
renderSlot(_ctx.$slots, "header")
|
|
296
296
|
]),
|
|
297
297
|
createVNode($setup["OnyxIcon"], {
|
|
298
298
|
icon: $setup.iconChevronDownSmall,
|
|
299
299
|
class: "onyx-accordion-item__header-icon"
|
|
300
300
|
}, null, 8, ["icon"])
|
|
301
|
-
], 8, _hoisted_2$
|
|
301
|
+
], 8, _hoisted_2$V),
|
|
302
302
|
createElementVNode("div", {
|
|
303
303
|
id: $setup.panelId,
|
|
304
304
|
class: "onyx-accordion-item__panel",
|
|
@@ -306,10 +306,10 @@ function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
306
306
|
"aria-labelledby": $setup.headerId
|
|
307
307
|
}, [
|
|
308
308
|
renderSlot(_ctx.$slots, "default")
|
|
309
|
-
], 8, _hoisted_4$
|
|
310
|
-
], 10, _hoisted_1$
|
|
309
|
+
], 8, _hoisted_4$o)
|
|
310
|
+
], 10, _hoisted_1$1f));
|
|
311
311
|
}
|
|
312
|
-
const OnyxAccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
312
|
+
const OnyxAccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["render", _sfc_render$1K], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAccordionItem/OnyxAccordionItem.vue"]]);
|
|
313
313
|
const DATETIME_FORMATS = {
|
|
314
314
|
date: { dateStyle: "medium" },
|
|
315
315
|
"datetime-local": { dateStyle: "medium", timeStyle: "short" },
|
|
@@ -357,7 +357,8 @@ const globalFAB = { "label": "Global actions" };
|
|
|
357
357
|
const calendar = { "todayButton": { "label": "Today", "tooltip": "Jump to today" }, "calendarWeek": "CW", "calendarWeekButtonLabel": "Select calendar week {weekNumber}", "previousMonthButton": "Previous month", "nextMonthButton": "Next month" };
|
|
358
358
|
const flyoutMenu = { "moreActions": "More actions", "toggleActions": { "click": "Click to toggle action visibility", "hover": "Hover/Focus to toggle action visibility" } };
|
|
359
359
|
const slider = { "decreaseValueBy": "Decrease value by {n}", "increaseValueBy": "Increase value by {n}", "changeValue": "Change value" };
|
|
360
|
-
const codeTabs = { "label": "Code snippets", "copySnippet": "Copy code", "copied": "Copied!", "tabLabel": "Code" };
|
|
360
|
+
const codeTabs = { "label": "Code snippets", "copySnippet": "Copy code", "copied": "Copied!", "failed": "Failed!", "tabLabel": "Code" };
|
|
361
|
+
const globalSearch = { "label": "Global search", "searchResults": "Search results", "input": { "label": "Search for content", "placeholder": "Search..." }, "shortcuts": { "move": "Navigate", "select": "Select" } };
|
|
361
362
|
const enUS = {
|
|
362
363
|
yes,
|
|
363
364
|
no,
|
|
@@ -392,7 +393,8 @@ const enUS = {
|
|
|
392
393
|
calendar,
|
|
393
394
|
flyoutMenu,
|
|
394
395
|
slider,
|
|
395
|
-
codeTabs
|
|
396
|
+
codeTabs,
|
|
397
|
+
globalSearch
|
|
396
398
|
};
|
|
397
399
|
const NUMBER_FORMATS = {
|
|
398
400
|
decimal: { style: "decimal" }
|
|
@@ -918,6 +920,10 @@ const createListbox = createBuilder(
|
|
|
918
920
|
}
|
|
919
921
|
return descendantKeyIdMap.get(value);
|
|
920
922
|
};
|
|
923
|
+
const getOptionValueById = (id) => {
|
|
924
|
+
const entries = Array.from(descendantKeyIdMap.entries());
|
|
925
|
+
return entries.find(([_value, key]) => key === id)?.[0];
|
|
926
|
+
};
|
|
921
927
|
const isFocused = ref(false);
|
|
922
928
|
watchEffect(async () => {
|
|
923
929
|
if (!isExpanded.value || options.activeOption.value == void 0 || !isFocused.value && !options.controlled) {
|
|
@@ -1011,7 +1017,8 @@ const createListbox = createBuilder(
|
|
|
1011
1017
|
isFocused
|
|
1012
1018
|
},
|
|
1013
1019
|
internals: {
|
|
1014
|
-
getOptionId
|
|
1020
|
+
getOptionId,
|
|
1021
|
+
getOptionValueById
|
|
1015
1022
|
}
|
|
1016
1023
|
};
|
|
1017
1024
|
}
|
|
@@ -1130,7 +1137,7 @@ const createComboBox = createBuilder(
|
|
|
1130
1137
|
});
|
|
1131
1138
|
const {
|
|
1132
1139
|
elements: { option, group, listbox },
|
|
1133
|
-
internals: { getOptionId }
|
|
1140
|
+
internals: { getOptionId, getOptionValueById }
|
|
1134
1141
|
} = createListbox({
|
|
1135
1142
|
label: listLabel,
|
|
1136
1143
|
description: listDescription,
|
|
@@ -1181,7 +1188,8 @@ const createComboBox = createBuilder(
|
|
|
1181
1188
|
tabindex: "-1",
|
|
1182
1189
|
onClick: () => onToggle?.()
|
|
1183
1190
|
}))
|
|
1184
|
-
}
|
|
1191
|
+
},
|
|
1192
|
+
internals: { getOptionId, getOptionValueById }
|
|
1185
1193
|
};
|
|
1186
1194
|
}
|
|
1187
1195
|
);
|
|
@@ -2134,7 +2142,7 @@ const createTooltip = createBuilder(({ debounce: debounce2, isVisible }) => {
|
|
|
2134
2142
|
}
|
|
2135
2143
|
};
|
|
2136
2144
|
});
|
|
2137
|
-
const _sfc_main$
|
|
2145
|
+
const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
2138
2146
|
__name: "OnyxBasicDialog",
|
|
2139
2147
|
props: {
|
|
2140
2148
|
density: { type: null, required: false },
|
|
@@ -2147,7 +2155,6 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
2147
2155
|
},
|
|
2148
2156
|
emits: ["update:open"],
|
|
2149
2157
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2150
|
-
__expose();
|
|
2151
2158
|
const props = __props;
|
|
2152
2159
|
const emit = __emit;
|
|
2153
2160
|
const dialog2 = useTemplateRef("dialogRef");
|
|
@@ -2185,17 +2192,23 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
2185
2192
|
disabled: computed(() => !open.value || props.nonDismissible),
|
|
2186
2193
|
listener: (event) => wasKeyPressed(event, { key: "Escape" }) && emit("update:open", false)
|
|
2187
2194
|
});
|
|
2195
|
+
__expose({
|
|
2196
|
+
/**
|
|
2197
|
+
* Template ref to the internal `<dialog>` element.
|
|
2198
|
+
*/
|
|
2199
|
+
dialog: dialog2
|
|
2200
|
+
});
|
|
2188
2201
|
const __returned__ = { props, emit, dialog: dialog2, densityClass, open, openDialog, content };
|
|
2189
2202
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
2190
2203
|
return __returned__;
|
|
2191
2204
|
}
|
|
2192
2205
|
});
|
|
2193
|
-
const _hoisted_1$
|
|
2194
|
-
const _hoisted_2$
|
|
2206
|
+
const _hoisted_1$1e = ["aria-modal", "aria-label", "role"];
|
|
2207
|
+
const _hoisted_2$U = {
|
|
2195
2208
|
ref: "contentRef",
|
|
2196
2209
|
class: "onyx-basic-dialog__content"
|
|
2197
2210
|
};
|
|
2198
|
-
function _sfc_render$
|
|
2211
|
+
function _sfc_render$1J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2199
2212
|
return $setup.props.open ? (openBlock(), createElementBlock("dialog", {
|
|
2200
2213
|
key: 0,
|
|
2201
2214
|
ref: "dialogRef",
|
|
@@ -2214,16 +2227,16 @@ function _sfc_render$1G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2214
2227
|
}, [
|
|
2215
2228
|
createElementVNode(
|
|
2216
2229
|
"div",
|
|
2217
|
-
_hoisted_2$
|
|
2230
|
+
_hoisted_2$U,
|
|
2218
2231
|
[
|
|
2219
2232
|
renderSlot(_ctx.$slots, "default")
|
|
2220
2233
|
],
|
|
2221
2234
|
512
|
|
2222
2235
|
/* NEED_PATCH */
|
|
2223
2236
|
)
|
|
2224
|
-
], 42, _hoisted_1$
|
|
2237
|
+
], 42, _hoisted_1$1e)) : createCommentVNode("v-if", true);
|
|
2225
2238
|
}
|
|
2226
|
-
const OnyxBasicDialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2239
|
+
const OnyxBasicDialog = /* @__PURE__ */ _export_sfc(_sfc_main$1J, [["render", _sfc_render$1J], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBasicDialog/OnyxBasicDialog.vue"]]);
|
|
2227
2240
|
const normalizedIncludes = (haystack, needle) => {
|
|
2228
2241
|
const haystackNormalized = removeDiacritics(haystack.toLowerCase());
|
|
2229
2242
|
const needleNormalized = removeDiacritics(needle.toLowerCase());
|
|
@@ -2305,7 +2318,7 @@ const normalizeHref = (href) => {
|
|
|
2305
2318
|
return value.replace(/\/+$/, "");
|
|
2306
2319
|
};
|
|
2307
2320
|
const ROUTER_INJECTION_KEY = Symbol();
|
|
2308
|
-
const _sfc_main$
|
|
2321
|
+
const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
2309
2322
|
__name: "OnyxVisuallyHidden",
|
|
2310
2323
|
props: {
|
|
2311
2324
|
is: { type: String, required: false, default: "span" }
|
|
@@ -2318,7 +2331,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
2318
2331
|
return __returned__;
|
|
2319
2332
|
}
|
|
2320
2333
|
});
|
|
2321
|
-
function _sfc_render$
|
|
2334
|
+
function _sfc_render$1I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2322
2335
|
return openBlock(), createBlock(resolveDynamicComponent($setup.props.is), { class: "onyx-component onyx-visually-hidden" }, {
|
|
2323
2336
|
default: withCtx(() => [
|
|
2324
2337
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -2327,8 +2340,8 @@ function _sfc_render$1F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2327
2340
|
/* FORWARDED */
|
|
2328
2341
|
});
|
|
2329
2342
|
}
|
|
2330
|
-
const OnyxVisuallyHidden = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2331
|
-
const _sfc_main$
|
|
2343
|
+
const OnyxVisuallyHidden = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$1I], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxVisuallyHidden/OnyxVisuallyHidden.vue"]]);
|
|
2344
|
+
const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
2332
2345
|
__name: "OnyxRouterLink",
|
|
2333
2346
|
props: {
|
|
2334
2347
|
href: { type: String, required: true },
|
|
@@ -2344,8 +2357,8 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
2344
2357
|
return __returned__;
|
|
2345
2358
|
}
|
|
2346
2359
|
});
|
|
2347
|
-
const _hoisted_1$
|
|
2348
|
-
function _sfc_render$
|
|
2360
|
+
const _hoisted_1$1d = ["href", "target", "rel"];
|
|
2361
|
+
function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2349
2362
|
return openBlock(), createElementBlock("a", {
|
|
2350
2363
|
class: normalizeClass([
|
|
2351
2364
|
"onyx-component",
|
|
@@ -2369,10 +2382,10 @@ function _sfc_render$1E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2369
2382
|
_: 1
|
|
2370
2383
|
/* STABLE */
|
|
2371
2384
|
})) : createCommentVNode("v-if", true)
|
|
2372
|
-
], 10, _hoisted_1$
|
|
2385
|
+
], 10, _hoisted_1$1d);
|
|
2373
2386
|
}
|
|
2374
|
-
const OnyxRouterLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2375
|
-
const _sfc_main$
|
|
2387
|
+
const OnyxRouterLink = /* @__PURE__ */ _export_sfc(_sfc_main$1H, [["render", _sfc_render$1H], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxRouterLink/OnyxRouterLink.vue"]]);
|
|
2388
|
+
const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
2376
2389
|
__name: "OnyxHeadline",
|
|
2377
2390
|
props: {
|
|
2378
2391
|
is: { type: null, required: true },
|
|
@@ -2397,7 +2410,7 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
2397
2410
|
return __returned__;
|
|
2398
2411
|
}
|
|
2399
2412
|
});
|
|
2400
|
-
function _sfc_render$
|
|
2413
|
+
function _sfc_render$1G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2401
2414
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
2402
2415
|
key: 0,
|
|
2403
2416
|
class: normalizeClass(["onyx-headline-skeleton", `onyx-headline-skeleton--${$setup.showAs}`])
|
|
@@ -2437,7 +2450,7 @@ function _sfc_render$1D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2437
2450
|
/* FORWARDED */
|
|
2438
2451
|
}, 8, ["id", "class"]));
|
|
2439
2452
|
}
|
|
2440
|
-
const OnyxHeadline = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2453
|
+
const OnyxHeadline = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$1G], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxHeadline/OnyxHeadline.vue"]]);
|
|
2441
2454
|
const useAutofocus = (inputRef, props) => {
|
|
2442
2455
|
if (!props.autofocus) {
|
|
2443
2456
|
return;
|
|
@@ -2488,7 +2501,7 @@ const useFormContext = (props) => {
|
|
|
2488
2501
|
DEFAULT_FORM_INJECTION_CONTEXT
|
|
2489
2502
|
)(toRef(props));
|
|
2490
2503
|
};
|
|
2491
|
-
const _sfc_main$
|
|
2504
|
+
const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
2492
2505
|
__name: "ButtonOrLinkLayout",
|
|
2493
2506
|
props: {
|
|
2494
2507
|
disabled: { type: [Boolean, Symbol], required: false },
|
|
@@ -2511,8 +2524,8 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
2511
2524
|
return __returned__;
|
|
2512
2525
|
}
|
|
2513
2526
|
});
|
|
2514
|
-
const _hoisted_1$
|
|
2515
|
-
function _sfc_render$
|
|
2527
|
+
const _hoisted_1$1c = ["disabled", "type", "autofocus"];
|
|
2528
|
+
function _sfc_render$1F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2516
2529
|
return $setup.linkProps ? (openBlock(), createBlock(
|
|
2517
2530
|
$setup["OnyxRouterLink"],
|
|
2518
2531
|
normalizeProps(mergeProps({ key: 0 }, $setup.linkProps)),
|
|
@@ -2533,10 +2546,10 @@ function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2533
2546
|
autofocus: $setup.props.autofocus
|
|
2534
2547
|
}, [
|
|
2535
2548
|
renderSlot(_ctx.$slots, "default")
|
|
2536
|
-
], 8, _hoisted_1$
|
|
2549
|
+
], 8, _hoisted_1$1c));
|
|
2537
2550
|
}
|
|
2538
|
-
const ButtonOrLinkLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2539
|
-
const _sfc_main$
|
|
2551
|
+
const ButtonOrLinkLayout = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1F], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxButton/ButtonOrLinkLayout.vue"]]);
|
|
2552
|
+
const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
2540
2553
|
__name: "OnyxSystemButton",
|
|
2541
2554
|
props: {
|
|
2542
2555
|
disabled: { type: [Boolean, Symbol], required: false, default: FORM_INJECTED_SYMBOL },
|
|
@@ -2557,7 +2570,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
2557
2570
|
return __returned__;
|
|
2558
2571
|
}
|
|
2559
2572
|
});
|
|
2560
|
-
function _sfc_render$
|
|
2573
|
+
function _sfc_render$1E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2561
2574
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
2562
2575
|
key: 0,
|
|
2563
2576
|
class: normalizeClass(["onyx-system-button-skeleton", $setup.props.icon ? "" : "onyx-system-button-skeleton--text"])
|
|
@@ -2589,8 +2602,8 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2589
2602
|
/* STABLE */
|
|
2590
2603
|
}, 16, ["class", "aria-label", "title"]));
|
|
2591
2604
|
}
|
|
2592
|
-
const OnyxSystemButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2593
|
-
const _sfc_main$
|
|
2605
|
+
const OnyxSystemButton = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$1E], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSystemButton/OnyxSystemButton.vue"]]);
|
|
2606
|
+
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
2594
2607
|
__name: "OnyxAlertModal",
|
|
2595
2608
|
props: {
|
|
2596
2609
|
density: { type: null, required: false },
|
|
@@ -2615,11 +2628,11 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
2615
2628
|
return __returned__;
|
|
2616
2629
|
}
|
|
2617
2630
|
});
|
|
2618
|
-
const _hoisted_1$
|
|
2619
|
-
const _hoisted_2$
|
|
2620
|
-
const _hoisted_3$
|
|
2621
|
-
const _hoisted_4$
|
|
2622
|
-
function _sfc_render$
|
|
2631
|
+
const _hoisted_1$1b = { class: "onyx-alert-modal__content" };
|
|
2632
|
+
const _hoisted_2$T = { class: "onyx-alert-modal__headline" };
|
|
2633
|
+
const _hoisted_3$A = ["id"];
|
|
2634
|
+
const _hoisted_4$n = { class: "onyx-alert-modal__actions" };
|
|
2635
|
+
function _sfc_render$1D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2623
2636
|
return openBlock(), createBlock($setup["OnyxBasicDialog"], mergeProps({
|
|
2624
2637
|
class: ["onyx-alert-modal", $setup.densityClass]
|
|
2625
2638
|
}, $setup.dialogProps, {
|
|
@@ -2629,7 +2642,7 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2629
2642
|
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => $setup.emit("update:open", $event))
|
|
2630
2643
|
}), {
|
|
2631
2644
|
default: withCtx(() => [
|
|
2632
|
-
createElementVNode("div", _hoisted_1$
|
|
2645
|
+
createElementVNode("div", _hoisted_1$1b, [
|
|
2633
2646
|
$setup.props.icon ? (openBlock(), createBlock(
|
|
2634
2647
|
$setup["OnyxIcon"],
|
|
2635
2648
|
mergeProps({
|
|
@@ -2641,7 +2654,7 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2641
2654
|
/* FULL_PROPS */
|
|
2642
2655
|
)) : createCommentVNode("v-if", true),
|
|
2643
2656
|
createElementVNode("div", null, [
|
|
2644
|
-
createElementVNode("div", _hoisted_2$
|
|
2657
|
+
createElementVNode("div", _hoisted_2$T, [
|
|
2645
2658
|
renderSlot(_ctx.$slots, "headline", {
|
|
2646
2659
|
label: $setup.props.label
|
|
2647
2660
|
}, () => [
|
|
@@ -2669,10 +2682,10 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2669
2682
|
class: "onyx-alert-modal__body onyx-truncation"
|
|
2670
2683
|
}, [
|
|
2671
2684
|
renderSlot(_ctx.$slots, "default")
|
|
2672
|
-
], 8, _hoisted_3$
|
|
2685
|
+
], 8, _hoisted_3$A)
|
|
2673
2686
|
])
|
|
2674
2687
|
]),
|
|
2675
|
-
createElementVNode("div", _hoisted_4$
|
|
2688
|
+
createElementVNode("div", _hoisted_4$n, [
|
|
2676
2689
|
renderSlot(_ctx.$slots, "actions")
|
|
2677
2690
|
])
|
|
2678
2691
|
]),
|
|
@@ -2680,7 +2693,7 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2680
2693
|
/* FORWARDED */
|
|
2681
2694
|
}, 16, ["class", "aria-describedby"]);
|
|
2682
2695
|
}
|
|
2683
|
-
const OnyxAlertModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2696
|
+
const OnyxAlertModal = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$1D], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAlertModal/OnyxAlertModal.vue"]]);
|
|
2684
2697
|
const useRootAttrs = () => {
|
|
2685
2698
|
const attrs = useAttrs();
|
|
2686
2699
|
const rootAttrs = computed(
|
|
@@ -2762,7 +2775,7 @@ const mergeVueProps = (...args) => args.reduce((prev, curr) => {
|
|
|
2762
2775
|
merged.ref = mergedRef;
|
|
2763
2776
|
return merged;
|
|
2764
2777
|
}, {});
|
|
2765
|
-
const _sfc_main$
|
|
2778
|
+
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
2766
2779
|
__name: "OnyxFABButton",
|
|
2767
2780
|
props: {
|
|
2768
2781
|
density: { type: null, required: false },
|
|
@@ -2782,11 +2795,11 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
2782
2795
|
return __returned__;
|
|
2783
2796
|
}
|
|
2784
2797
|
});
|
|
2785
|
-
const _hoisted_1$
|
|
2798
|
+
const _hoisted_1$1a = {
|
|
2786
2799
|
key: 1,
|
|
2787
2800
|
class: "onyx-fab-button__label"
|
|
2788
2801
|
};
|
|
2789
|
-
function _sfc_render$
|
|
2802
|
+
function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2790
2803
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
2791
2804
|
key: 0,
|
|
2792
2805
|
class: normalizeClass(["onyx-fab-button-skeleton", $setup.densityClass])
|
|
@@ -2804,7 +2817,7 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2804
2817
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
2805
2818
|
!$setup.props.hideLabel ? (openBlock(), createElementBlock(
|
|
2806
2819
|
"span",
|
|
2807
|
-
_hoisted_1$
|
|
2820
|
+
_hoisted_1$1a,
|
|
2808
2821
|
toDisplayString($setup.props.label),
|
|
2809
2822
|
1
|
|
2810
2823
|
/* TEXT */
|
|
@@ -2814,7 +2827,7 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2814
2827
|
/* STABLE */
|
|
2815
2828
|
}, 8, ["class", "title", "aria-label", "link"]));
|
|
2816
2829
|
}
|
|
2817
|
-
const OnyxFABButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2830
|
+
const OnyxFABButton = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["render", _sfc_render$1C], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFABButton/OnyxFABButton.vue"]]);
|
|
2818
2831
|
const useResizeObserver = (target, options) => {
|
|
2819
2832
|
const box = options?.box ?? "content-box";
|
|
2820
2833
|
const width = ref(0);
|
|
@@ -3126,7 +3139,7 @@ function useSticky(options) {
|
|
|
3126
3139
|
});
|
|
3127
3140
|
return { stickyStyles, scrolledOut, isSticky, checkVisibilityOnScroll };
|
|
3128
3141
|
}
|
|
3129
|
-
const _sfc_main$
|
|
3142
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
3130
3143
|
__name: "OnyxBasicPopover",
|
|
3131
3144
|
props: {
|
|
3132
3145
|
label: { type: String, required: true },
|
|
@@ -3284,8 +3297,8 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
3284
3297
|
return __returned__;
|
|
3285
3298
|
}
|
|
3286
3299
|
});
|
|
3287
|
-
const _hoisted_1$
|
|
3288
|
-
function _sfc_render$
|
|
3300
|
+
const _hoisted_1$19 = ["role", "aria-label"];
|
|
3301
|
+
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3289
3302
|
return openBlock(), createElementBlock(
|
|
3290
3303
|
"div",
|
|
3291
3304
|
{
|
|
@@ -3304,14 +3317,14 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3304
3317
|
style: normalizeStyle(!$setup.isSticky ? $setup.popoverStyles : $setup.stickyStyles)
|
|
3305
3318
|
}, [
|
|
3306
3319
|
renderSlot(_ctx.$slots, "content")
|
|
3307
|
-
], 14, _hoisted_1$
|
|
3320
|
+
], 14, _hoisted_1$19)
|
|
3308
3321
|
],
|
|
3309
3322
|
4
|
|
3310
3323
|
/* STYLE */
|
|
3311
3324
|
);
|
|
3312
3325
|
}
|
|
3313
|
-
const OnyxBasicPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3314
|
-
const _sfc_main$
|
|
3326
|
+
const OnyxBasicPopover = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1B], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBasicPopover/OnyxBasicPopover.vue"]]);
|
|
3327
|
+
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
3315
3328
|
__name: "OnyxFlyoutMenu",
|
|
3316
3329
|
props: {
|
|
3317
3330
|
alignment: { type: String, required: false, default: "auto" },
|
|
@@ -3353,9 +3366,9 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
3353
3366
|
return __returned__;
|
|
3354
3367
|
}
|
|
3355
3368
|
});
|
|
3356
|
-
const _hoisted_1$
|
|
3357
|
-
const _hoisted_2$
|
|
3358
|
-
function _sfc_render$
|
|
3369
|
+
const _hoisted_1$18 = { class: "onyx-flyout-menu__list-header" };
|
|
3370
|
+
const _hoisted_2$S = { class: "onyx-flyout-menu__list-footer" };
|
|
3371
|
+
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3359
3372
|
return openBlock(), createBlock($setup["OnyxBasicPopover"], mergeProps($setup.mergeVueProps($setup.root, { ref: $setup.popover }), {
|
|
3360
3373
|
class: "onyx-component onyx-flyout-menu",
|
|
3361
3374
|
open: $setup.isExpanded,
|
|
@@ -3364,7 +3377,7 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3364
3377
|
disabled: $props.disabled
|
|
3365
3378
|
}), createSlots({
|
|
3366
3379
|
content: withCtx(() => [
|
|
3367
|
-
createElementVNode("div", _hoisted_1$
|
|
3380
|
+
createElementVNode("div", _hoisted_1$18, [
|
|
3368
3381
|
renderSlot(_ctx.$slots, "header")
|
|
3369
3382
|
]),
|
|
3370
3383
|
$setup.slots.options ? (openBlock(), createElementBlock(
|
|
@@ -3376,7 +3389,7 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3376
3389
|
16
|
|
3377
3390
|
/* FULL_PROPS */
|
|
3378
3391
|
)) : createCommentVNode("v-if", true),
|
|
3379
|
-
createElementVNode("div", _hoisted_2$
|
|
3392
|
+
createElementVNode("div", _hoisted_2$S, [
|
|
3380
3393
|
renderSlot(_ctx.$slots, "footer")
|
|
3381
3394
|
])
|
|
3382
3395
|
]),
|
|
@@ -3397,8 +3410,8 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3397
3410
|
} : void 0
|
|
3398
3411
|
]), 1040, ["open", "label", "alignment", "disabled"]);
|
|
3399
3412
|
}
|
|
3400
|
-
const OnyxFlyoutMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3401
|
-
const _sfc_main$
|
|
3413
|
+
const OnyxFlyoutMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1A], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue"]]);
|
|
3414
|
+
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
3402
3415
|
__name: "OnyxFAB",
|
|
3403
3416
|
props: {
|
|
3404
3417
|
density: { type: null, required: false },
|
|
@@ -3437,7 +3450,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
3437
3450
|
return __returned__;
|
|
3438
3451
|
}
|
|
3439
3452
|
});
|
|
3440
|
-
function _sfc_render$
|
|
3453
|
+
function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3441
3454
|
return !$setup.hasOptions || $setup.skeleton ? (openBlock(), createBlock($setup["OnyxFABButton"], mergeProps({
|
|
3442
3455
|
key: 0,
|
|
3443
3456
|
class: ["onyx-fab", `onyx-fab--${$setup.props.alignment}`]
|
|
@@ -3467,8 +3480,8 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3467
3480
|
/* FORWARDED */
|
|
3468
3481
|
}, 8, ["open", "label", "class", "alignment"]));
|
|
3469
3482
|
}
|
|
3470
|
-
const OnyxFAB = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3471
|
-
const _sfc_main$
|
|
3483
|
+
const OnyxFAB = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1z], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFAB/OnyxFAB.vue"]]);
|
|
3484
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
3472
3485
|
__name: "OnyxFABItem",
|
|
3473
3486
|
props: {
|
|
3474
3487
|
density: { type: null, required: false },
|
|
@@ -3491,7 +3504,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
3491
3504
|
return __returned__;
|
|
3492
3505
|
}
|
|
3493
3506
|
});
|
|
3494
|
-
function _sfc_render$
|
|
3507
|
+
function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3495
3508
|
return openBlock(), createElementBlock(
|
|
3496
3509
|
"li",
|
|
3497
3510
|
mergeProps({
|
|
@@ -3506,7 +3519,7 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3506
3519
|
/* FULL_PROPS */
|
|
3507
3520
|
);
|
|
3508
3521
|
}
|
|
3509
|
-
const OnyxFABItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3522
|
+
const OnyxFABItem = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$1y], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFABItem/OnyxFABItem.vue"]]);
|
|
3510
3523
|
const GLOBAL_FAB_PROVIDER_INJECTION_KEY = Symbol();
|
|
3511
3524
|
const createGlobalFABProvider = () => {
|
|
3512
3525
|
const items = shallowRef([]);
|
|
@@ -3543,7 +3556,7 @@ const useGlobalFAB = () => {
|
|
|
3543
3556
|
);
|
|
3544
3557
|
return globalFABProvider;
|
|
3545
3558
|
};
|
|
3546
|
-
const _sfc_main$
|
|
3559
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
3547
3560
|
__name: "OnyxGlobalFAB",
|
|
3548
3561
|
setup(__props, { expose: __expose }) {
|
|
3549
3562
|
__expose();
|
|
@@ -3557,7 +3570,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
3557
3570
|
return __returned__;
|
|
3558
3571
|
}
|
|
3559
3572
|
});
|
|
3560
|
-
function _sfc_render$
|
|
3573
|
+
function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3561
3574
|
return $setup.globalFAB.items.value.length === 1 ? (openBlock(), createBlock(
|
|
3562
3575
|
$setup["OnyxFAB"],
|
|
3563
3576
|
normalizeProps(mergeProps({ key: 0 }, $setup.globalFAB.items.value[0].value)),
|
|
@@ -3592,14 +3605,14 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3592
3605
|
/* STABLE */
|
|
3593
3606
|
}, 8, ["label", "alignment"])) : createCommentVNode("v-if", true);
|
|
3594
3607
|
}
|
|
3595
|
-
const OnyxGlobalFAB = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3596
|
-
const _sfc_main$
|
|
3597
|
-
const _hoisted_1$
|
|
3608
|
+
const OnyxGlobalFAB = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$1x], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxGlobalFAB/OnyxGlobalFAB.vue"]]);
|
|
3609
|
+
const _sfc_main$1w = {};
|
|
3610
|
+
const _hoisted_1$17 = {
|
|
3598
3611
|
class: "onyx-component onyx-circle-spinner",
|
|
3599
3612
|
viewBox: "0 0 50 50"
|
|
3600
3613
|
};
|
|
3601
|
-
function _sfc_render$
|
|
3602
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
3614
|
+
function _sfc_render$1w(_ctx, _cache) {
|
|
3615
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$17, [..._cache[0] || (_cache[0] = [
|
|
3603
3616
|
createElementVNode(
|
|
3604
3617
|
"circle",
|
|
3605
3618
|
{
|
|
@@ -3614,11 +3627,11 @@ function _sfc_render$1t(_ctx, _cache) {
|
|
|
3614
3627
|
)
|
|
3615
3628
|
])]);
|
|
3616
3629
|
}
|
|
3617
|
-
const OnyxCircleSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3618
|
-
const _sfc_main$
|
|
3619
|
-
const _hoisted_1$
|
|
3620
|
-
function _sfc_render$
|
|
3621
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3630
|
+
const OnyxCircleSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1w], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxLoadingIndicator/OnyxCircleSpinner.vue"]]);
|
|
3631
|
+
const _sfc_main$1v = {};
|
|
3632
|
+
const _hoisted_1$16 = { class: "onyx-component onyx-loading-dots" };
|
|
3633
|
+
function _sfc_render$1v(_ctx, _cache) {
|
|
3634
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [..._cache[0] || (_cache[0] = [
|
|
3622
3635
|
createElementVNode(
|
|
3623
3636
|
"span",
|
|
3624
3637
|
{ class: "onyx-loading-dots__center" },
|
|
@@ -3628,8 +3641,8 @@ function _sfc_render$1s(_ctx, _cache) {
|
|
|
3628
3641
|
)
|
|
3629
3642
|
])]);
|
|
3630
3643
|
}
|
|
3631
|
-
const OnyxLoadingDots = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3632
|
-
const _sfc_main$
|
|
3644
|
+
const OnyxLoadingDots = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$1v], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxLoadingIndicator/OnyxLoadingDots.vue"]]);
|
|
3645
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
3633
3646
|
__name: "OnyxLoadingIndicator",
|
|
3634
3647
|
props: {
|
|
3635
3648
|
type: { type: String, required: false, default: "dots" }
|
|
@@ -3642,10 +3655,10 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
3642
3655
|
return __returned__;
|
|
3643
3656
|
}
|
|
3644
3657
|
});
|
|
3645
|
-
function _sfc_render$
|
|
3658
|
+
function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3646
3659
|
return $setup.props.type === "circle" ? (openBlock(), createBlock($setup["OnyxCircleSpinner"], { key: 0 })) : $setup.props.type === "dots" ? (openBlock(), createBlock($setup["OnyxLoadingDots"], { key: 1 })) : createCommentVNode("v-if", true);
|
|
3647
3660
|
}
|
|
3648
|
-
const OnyxLoadingIndicator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3661
|
+
const OnyxLoadingIndicator = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$1u], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxLoadingIndicator/OnyxLoadingIndicator.vue"]]);
|
|
3649
3662
|
const useRipple = (container) => {
|
|
3650
3663
|
const isPointerDown = ref(false);
|
|
3651
3664
|
const ripples = reactive(/* @__PURE__ */ new Map());
|
|
@@ -3692,7 +3705,7 @@ const useRipple = (container) => {
|
|
|
3692
3705
|
});
|
|
3693
3706
|
return { isPointerDown, ripples, startRipple, hideRipples, hideRipple, events };
|
|
3694
3707
|
};
|
|
3695
|
-
const _sfc_main$
|
|
3708
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
3696
3709
|
__name: "OnyxRipple",
|
|
3697
3710
|
setup(__props, { expose: __expose }) {
|
|
3698
3711
|
const rippleTrigger = useTemplateRef("rippleTriggerRef");
|
|
@@ -3705,16 +3718,16 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
3705
3718
|
return __returned__;
|
|
3706
3719
|
}
|
|
3707
3720
|
});
|
|
3708
|
-
const _hoisted_1$
|
|
3721
|
+
const _hoisted_1$15 = {
|
|
3709
3722
|
ref: "rippleTriggerRef",
|
|
3710
3723
|
class: "onyx-component onyx-ripple",
|
|
3711
3724
|
"aria-hidden": "true"
|
|
3712
3725
|
};
|
|
3713
|
-
const _hoisted_2$
|
|
3714
|
-
function _sfc_render$
|
|
3726
|
+
const _hoisted_2$R = ["data-rippleid"];
|
|
3727
|
+
function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3715
3728
|
return openBlock(), createElementBlock(
|
|
3716
3729
|
"span",
|
|
3717
|
-
_hoisted_1$
|
|
3730
|
+
_hoisted_1$15,
|
|
3718
3731
|
[
|
|
3719
3732
|
(openBlock(true), createElementBlock(
|
|
3720
3733
|
Fragment,
|
|
@@ -3729,7 +3742,7 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3729
3742
|
}),
|
|
3730
3743
|
"data-rippleid": key,
|
|
3731
3744
|
onAnimationend: _cache[0] || (_cache[0] = ($event) => $setup.hideRipple($event.target))
|
|
3732
|
-
}, null, 44, _hoisted_2$
|
|
3745
|
+
}, null, 44, _hoisted_2$R);
|
|
3733
3746
|
}),
|
|
3734
3747
|
128
|
|
3735
3748
|
/* KEYED_FRAGMENT */
|
|
@@ -3739,8 +3752,8 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3739
3752
|
/* NEED_PATCH */
|
|
3740
3753
|
);
|
|
3741
3754
|
}
|
|
3742
|
-
const OnyxRipple = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3743
|
-
const _sfc_main$
|
|
3755
|
+
const OnyxRipple = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1t], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxRipple/OnyxRipple.vue"]]);
|
|
3756
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
3744
3757
|
__name: "OnyxButton",
|
|
3745
3758
|
props: {
|
|
3746
3759
|
density: { type: null, required: false },
|
|
@@ -3770,8 +3783,8 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
3770
3783
|
return __returned__;
|
|
3771
3784
|
}
|
|
3772
3785
|
});
|
|
3773
|
-
const _hoisted_1$
|
|
3774
|
-
function _sfc_render$
|
|
3786
|
+
const _hoisted_1$14 = { class: "onyx-button__label onyx-truncation-ellipsis" };
|
|
3787
|
+
function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3775
3788
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
3776
3789
|
key: 0,
|
|
3777
3790
|
class: normalizeClass(["onyx-button-skeleton", $setup.densityClass])
|
|
@@ -3808,7 +3821,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3808
3821
|
})) : createCommentVNode("v-if", true),
|
|
3809
3822
|
createElementVNode(
|
|
3810
3823
|
"span",
|
|
3811
|
-
_hoisted_1$
|
|
3824
|
+
_hoisted_1$14,
|
|
3812
3825
|
toDisplayString($setup.props.label),
|
|
3813
3826
|
1
|
|
3814
3827
|
/* TEXT */
|
|
@@ -3823,8 +3836,8 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3823
3836
|
/* STABLE */
|
|
3824
3837
|
}, 16, ["class", "aria-label"]));
|
|
3825
3838
|
}
|
|
3826
|
-
const OnyxButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3827
|
-
const _sfc_main$
|
|
3839
|
+
const OnyxButton = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", _sfc_render$1s], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxButton/OnyxButton.vue"]]);
|
|
3840
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
3828
3841
|
__name: "OnyxInfoCard",
|
|
3829
3842
|
props: {
|
|
3830
3843
|
density: { type: null, required: false },
|
|
@@ -3851,16 +3864,16 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
3851
3864
|
return __returned__;
|
|
3852
3865
|
}
|
|
3853
3866
|
});
|
|
3854
|
-
const _hoisted_1$
|
|
3855
|
-
const _hoisted_2$
|
|
3867
|
+
const _hoisted_1$13 = { class: "onyx-info-card__content" };
|
|
3868
|
+
const _hoisted_2$Q = {
|
|
3856
3869
|
key: 3,
|
|
3857
3870
|
class: "onyx-info-card__description onyx-text--small"
|
|
3858
3871
|
};
|
|
3859
|
-
const _hoisted_3$
|
|
3872
|
+
const _hoisted_3$z = {
|
|
3860
3873
|
key: 4,
|
|
3861
3874
|
class: "onyx-info-card__buttons onyx-density-compact"
|
|
3862
3875
|
};
|
|
3863
|
-
function _sfc_render$
|
|
3876
|
+
function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3864
3877
|
return openBlock(), createElementBlock(
|
|
3865
3878
|
"div",
|
|
3866
3879
|
{
|
|
@@ -3872,7 +3885,7 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3872
3885
|
class: "onyx-info-card__icon",
|
|
3873
3886
|
icon: $setup.props.icon
|
|
3874
3887
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
3875
|
-
createElementVNode("div", _hoisted_1$
|
|
3888
|
+
createElementVNode("div", _hoisted_1$13, [
|
|
3876
3889
|
$setup.props.headline ? (openBlock(), createBlock($setup["OnyxHeadline"], {
|
|
3877
3890
|
key: 0,
|
|
3878
3891
|
is: "h3",
|
|
@@ -3915,10 +3928,10 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3915
3928
|
color: $setup.systemButtonColor,
|
|
3916
3929
|
onClick: _cache[0] || (_cache[0] = ($event) => $setup.emit("close"))
|
|
3917
3930
|
}, null, 8, ["icon", "label", "color"])) : createCommentVNode("v-if", true),
|
|
3918
|
-
!!$setup.slots.default ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
3931
|
+
!!$setup.slots.default ? (openBlock(), createElementBlock("p", _hoisted_2$Q, [
|
|
3919
3932
|
renderSlot(_ctx.$slots, "default")
|
|
3920
3933
|
])) : createCommentVNode("v-if", true),
|
|
3921
|
-
!!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
3934
|
+
!!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
3922
3935
|
renderSlot(_ctx.$slots, "buttons")
|
|
3923
3936
|
])) : createCommentVNode("v-if", true)
|
|
3924
3937
|
])
|
|
@@ -3927,8 +3940,8 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3927
3940
|
/* CLASS */
|
|
3928
3941
|
);
|
|
3929
3942
|
}
|
|
3930
|
-
const OnyxInfoCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3931
|
-
const _sfc_main$
|
|
3943
|
+
const OnyxInfoCard = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1r], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxInfoCard/OnyxInfoCard.vue"]]);
|
|
3944
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
3932
3945
|
__name: "OnyxNotificationMessage",
|
|
3933
3946
|
props: {
|
|
3934
3947
|
headline: { type: String, required: true },
|
|
@@ -3946,7 +3959,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
3946
3959
|
return __returned__;
|
|
3947
3960
|
}
|
|
3948
3961
|
});
|
|
3949
|
-
function _sfc_render$
|
|
3962
|
+
function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3950
3963
|
return openBlock(), createBlock($setup["OnyxInfoCard"], {
|
|
3951
3964
|
class: normalizeClass(["onyx-component onyx-notification-message", [
|
|
3952
3965
|
"onyx-component",
|
|
@@ -3979,7 +3992,7 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3979
3992
|
} : void 0
|
|
3980
3993
|
]), 1032, ["class", "headline", "icon", "style", "aria-label"]);
|
|
3981
3994
|
}
|
|
3982
|
-
const OnyxNotificationMessage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3995
|
+
const OnyxNotificationMessage = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1q], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNotificationMessage/OnyxNotificationMessage.vue"]]);
|
|
3983
3996
|
const NOTIFICATIONS_PROVIDER_INJECTION_KEY = Symbol();
|
|
3984
3997
|
const createNotificationsProvider = () => {
|
|
3985
3998
|
let nextId = 1;
|
|
@@ -4024,7 +4037,7 @@ const useNotification = () => {
|
|
|
4024
4037
|
);
|
|
4025
4038
|
return notificationsProvider;
|
|
4026
4039
|
};
|
|
4027
|
-
const _sfc_main$
|
|
4040
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
4028
4041
|
__name: "OnyxNotifications",
|
|
4029
4042
|
setup(__props, { expose: __expose }) {
|
|
4030
4043
|
__expose();
|
|
@@ -4034,15 +4047,15 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
4034
4047
|
return __returned__;
|
|
4035
4048
|
}
|
|
4036
4049
|
});
|
|
4037
|
-
const _hoisted_1
|
|
4050
|
+
const _hoisted_1$12 = {
|
|
4038
4051
|
key: 0,
|
|
4039
4052
|
class: "onyx-component onyx-notifications",
|
|
4040
4053
|
role: "presentation",
|
|
4041
4054
|
"aria-live": "polite",
|
|
4042
4055
|
open: ""
|
|
4043
4056
|
};
|
|
4044
|
-
function _sfc_render$
|
|
4045
|
-
return $setup.notificationProvider.notifications.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1
|
|
4057
|
+
function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4058
|
+
return $setup.notificationProvider.notifications.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1$12, [
|
|
4046
4059
|
(openBlock(true), createElementBlock(
|
|
4047
4060
|
Fragment,
|
|
4048
4061
|
null,
|
|
@@ -4094,8 +4107,8 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4094
4107
|
))
|
|
4095
4108
|
])) : createCommentVNode("v-if", true);
|
|
4096
4109
|
}
|
|
4097
|
-
const OnyxNotifications = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4098
|
-
const _sfc_main$
|
|
4110
|
+
const OnyxNotifications = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1p], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNotifications/OnyxNotifications.vue"]]);
|
|
4111
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
4099
4112
|
__name: "OnyxToastMessage",
|
|
4100
4113
|
props: {
|
|
4101
4114
|
density: { type: null, required: false },
|
|
@@ -4131,33 +4144,33 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
4131
4144
|
return __returned__;
|
|
4132
4145
|
}
|
|
4133
4146
|
});
|
|
4134
|
-
const _hoisted_1$
|
|
4135
|
-
const _hoisted_2$
|
|
4136
|
-
const _hoisted_3$
|
|
4137
|
-
const _hoisted_4$
|
|
4138
|
-
const _hoisted_5$
|
|
4139
|
-
const _hoisted_6$
|
|
4147
|
+
const _hoisted_1$11 = { class: "onyx-toast-message__wrapper" };
|
|
4148
|
+
const _hoisted_2$P = { class: "onyx-toast-message__content onyx-truncation-ellipsis" };
|
|
4149
|
+
const _hoisted_3$y = { class: "onyx-toast-message__headline onyx-text" };
|
|
4150
|
+
const _hoisted_4$m = { class: "onyx-truncation-ellipsis" };
|
|
4151
|
+
const _hoisted_5$g = ["aria-label"];
|
|
4152
|
+
const _hoisted_6$b = {
|
|
4140
4153
|
key: 0,
|
|
4141
4154
|
class: "onyx-toast-message__description onyx-text--small onyx-truncation-multiline",
|
|
4142
4155
|
tabindex: "0"
|
|
4143
4156
|
};
|
|
4144
|
-
function _sfc_render$
|
|
4157
|
+
function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4145
4158
|
return openBlock(), createBlock(resolveDynamicComponent($setup.props.clickable ? "button" : "div"), {
|
|
4146
4159
|
class: normalizeClass(["onyx-component onyx-toast-message", [`onyx-toast-message--${$setup.props.color}`, $setup.densityClass]]),
|
|
4147
4160
|
role: $setup.props.color === "danger" || $setup.props.color === "warning" ? "alert" : "status",
|
|
4148
4161
|
"aria-label": $setup.props.clickable ? $setup.props.headline : void 0
|
|
4149
4162
|
}, {
|
|
4150
4163
|
default: withCtx(() => [
|
|
4151
|
-
createElementVNode("div", _hoisted_1$
|
|
4164
|
+
createElementVNode("div", _hoisted_1$11, [
|
|
4152
4165
|
$setup.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
4153
4166
|
key: 0,
|
|
4154
4167
|
icon: $setup.icon
|
|
4155
4168
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
4156
|
-
createElementVNode("div", _hoisted_2$
|
|
4157
|
-
createElementVNode("div", _hoisted_3$
|
|
4169
|
+
createElementVNode("div", _hoisted_2$P, [
|
|
4170
|
+
createElementVNode("div", _hoisted_3$y, [
|
|
4158
4171
|
createElementVNode(
|
|
4159
4172
|
"span",
|
|
4160
|
-
_hoisted_4$
|
|
4173
|
+
_hoisted_4$m,
|
|
4161
4174
|
toDisplayString($setup.props.headline),
|
|
4162
4175
|
1
|
|
4163
4176
|
/* TEXT */
|
|
@@ -4170,11 +4183,11 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4170
4183
|
onClick: _cache[0] || (_cache[0] = ($event) => $setup.emit("close"))
|
|
4171
4184
|
}, [
|
|
4172
4185
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconXSmall }, null, 8, ["icon"])
|
|
4173
|
-
], 8, _hoisted_5$
|
|
4186
|
+
], 8, _hoisted_5$g)) : createCommentVNode("v-if", true)
|
|
4174
4187
|
]),
|
|
4175
4188
|
$setup.props.description ? (openBlock(), createElementBlock(
|
|
4176
4189
|
"p",
|
|
4177
|
-
_hoisted_6$
|
|
4190
|
+
_hoisted_6$b,
|
|
4178
4191
|
toDisplayString($setup.props.description),
|
|
4179
4192
|
1
|
|
4180
4193
|
/* TEXT */
|
|
@@ -4199,7 +4212,7 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4199
4212
|
/* STABLE */
|
|
4200
4213
|
}, 8, ["class", "role", "aria-label"]);
|
|
4201
4214
|
}
|
|
4202
|
-
const OnyxToastMessage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4215
|
+
const OnyxToastMessage = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$1o], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxToastMessage/OnyxToastMessage.vue"]]);
|
|
4203
4216
|
const TOAST_PROVIDER_INJECTION_KEY = Symbol();
|
|
4204
4217
|
const createToastProvider = () => {
|
|
4205
4218
|
let nextId = 1;
|
|
@@ -4242,7 +4255,7 @@ const useToast = () => {
|
|
|
4242
4255
|
);
|
|
4243
4256
|
return toastProvider;
|
|
4244
4257
|
};
|
|
4245
|
-
const _sfc_main$
|
|
4258
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
4246
4259
|
__name: "OnyxToast",
|
|
4247
4260
|
setup(__props, { expose: __expose }) {
|
|
4248
4261
|
__expose();
|
|
@@ -4252,15 +4265,15 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
4252
4265
|
return __returned__;
|
|
4253
4266
|
}
|
|
4254
4267
|
});
|
|
4255
|
-
const _hoisted_1$
|
|
4268
|
+
const _hoisted_1$10 = {
|
|
4256
4269
|
key: 0,
|
|
4257
4270
|
class: "onyx-component onyx-toast",
|
|
4258
4271
|
role: "presentation",
|
|
4259
4272
|
"aria-live": "polite",
|
|
4260
4273
|
open: ""
|
|
4261
4274
|
};
|
|
4262
|
-
function _sfc_render$
|
|
4263
|
-
return $setup.toastProvider.toasts.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1$
|
|
4275
|
+
function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4276
|
+
return $setup.toastProvider.toasts.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1$10, [
|
|
4264
4277
|
(openBlock(true), createElementBlock(
|
|
4265
4278
|
Fragment,
|
|
4266
4279
|
null,
|
|
@@ -4278,8 +4291,8 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4278
4291
|
))
|
|
4279
4292
|
])) : createCommentVNode("v-if", true);
|
|
4280
4293
|
}
|
|
4281
|
-
const OnyxToast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4282
|
-
const _sfc_main$
|
|
4294
|
+
const OnyxToast = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1n], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxToast/OnyxToast.vue"]]);
|
|
4295
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
4283
4296
|
__name: "OnyxAppLayout",
|
|
4284
4297
|
props: {
|
|
4285
4298
|
navBarAlignment: { type: String, required: false, default: "top" }
|
|
@@ -4293,22 +4306,22 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
4293
4306
|
return __returned__;
|
|
4294
4307
|
}
|
|
4295
4308
|
});
|
|
4296
|
-
const _hoisted_1
|
|
4309
|
+
const _hoisted_1$$ = {
|
|
4297
4310
|
key: 0,
|
|
4298
4311
|
class: "onyx-app__nav"
|
|
4299
4312
|
};
|
|
4300
|
-
const _hoisted_2$
|
|
4301
|
-
function _sfc_render$
|
|
4313
|
+
const _hoisted_2$O = { class: "onyx-app__page" };
|
|
4314
|
+
function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4302
4315
|
return openBlock(), createElementBlock(
|
|
4303
4316
|
"div",
|
|
4304
4317
|
{
|
|
4305
4318
|
class: normalizeClass(["onyx-component onyx-app", { "onyx-app--horizontal": $setup.props.navBarAlignment === "left" }])
|
|
4306
4319
|
},
|
|
4307
4320
|
[
|
|
4308
|
-
$setup.slots.navBar ? (openBlock(), createElementBlock("div", _hoisted_1
|
|
4321
|
+
$setup.slots.navBar ? (openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
4309
4322
|
renderSlot(_ctx.$slots, "navBar")
|
|
4310
4323
|
])) : createCommentVNode("v-if", true),
|
|
4311
|
-
createElementVNode("div", _hoisted_2$
|
|
4324
|
+
createElementVNode("div", _hoisted_2$O, [
|
|
4312
4325
|
renderSlot(_ctx.$slots, "default")
|
|
4313
4326
|
]),
|
|
4314
4327
|
createVNode($setup["OnyxToast"]),
|
|
@@ -4319,8 +4332,8 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4319
4332
|
/* CLASS */
|
|
4320
4333
|
);
|
|
4321
4334
|
}
|
|
4322
|
-
const OnyxAppLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4323
|
-
const _sfc_main$
|
|
4335
|
+
const OnyxAppLayout = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1m], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAppLayout/OnyxAppLayout.vue"]]);
|
|
4336
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
4324
4337
|
__name: "OnyxAvatar",
|
|
4325
4338
|
props: {
|
|
4326
4339
|
size: { type: null, required: false, default: "48px" },
|
|
@@ -4354,13 +4367,13 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
4354
4367
|
return __returned__;
|
|
4355
4368
|
}
|
|
4356
4369
|
});
|
|
4357
|
-
const _hoisted_1$
|
|
4358
|
-
const _hoisted_2$
|
|
4359
|
-
const _hoisted_3$
|
|
4370
|
+
const _hoisted_1$_ = ["title", "aria-label"];
|
|
4371
|
+
const _hoisted_2$N = ["src", "alt"];
|
|
4372
|
+
const _hoisted_3$x = {
|
|
4360
4373
|
key: 0,
|
|
4361
4374
|
class: "onyx-avatar__initials"
|
|
4362
4375
|
};
|
|
4363
|
-
function _sfc_render$
|
|
4376
|
+
function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4364
4377
|
return openBlock(), createElementBlock("figure", {
|
|
4365
4378
|
class: normalizeClass([
|
|
4366
4379
|
"onyx-component",
|
|
@@ -4377,13 +4390,13 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4377
4390
|
src: $setup.props.src,
|
|
4378
4391
|
alt: $setup.ariaLabel,
|
|
4379
4392
|
onError: _cache[0] || (_cache[0] = ($event) => $setup.hasImageError = true)
|
|
4380
|
-
}, null, 40, _hoisted_2$
|
|
4393
|
+
}, null, 40, _hoisted_2$N)) : (openBlock(), createElementBlock(
|
|
4381
4394
|
Fragment,
|
|
4382
4395
|
{ key: 1 },
|
|
4383
4396
|
[
|
|
4384
4397
|
$setup.initials ? (openBlock(), createElementBlock(
|
|
4385
4398
|
"div",
|
|
4386
|
-
_hoisted_3$
|
|
4399
|
+
_hoisted_3$x,
|
|
4387
4400
|
toDisplayString($setup.initials),
|
|
4388
4401
|
1
|
|
4389
4402
|
/* TEXT */
|
|
@@ -4396,10 +4409,10 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4396
4409
|
64
|
|
4397
4410
|
/* STABLE_FRAGMENT */
|
|
4398
4411
|
))
|
|
4399
|
-
], 10, _hoisted_1$
|
|
4412
|
+
], 10, _hoisted_1$_);
|
|
4400
4413
|
}
|
|
4401
|
-
const OnyxAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4402
|
-
const _sfc_main$
|
|
4414
|
+
const OnyxAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1l], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAvatar/OnyxAvatar.vue"]]);
|
|
4415
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
4403
4416
|
__name: "OnyxAvatarStack",
|
|
4404
4417
|
setup(__props, { expose: __expose }) {
|
|
4405
4418
|
__expose();
|
|
@@ -4408,14 +4421,14 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
4408
4421
|
return __returned__;
|
|
4409
4422
|
}
|
|
4410
4423
|
});
|
|
4411
|
-
const _hoisted_1$
|
|
4412
|
-
function _sfc_render$
|
|
4413
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4424
|
+
const _hoisted_1$Z = { class: "onyx-component onyx-avatar-stack" };
|
|
4425
|
+
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4426
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
4414
4427
|
renderSlot(_ctx.$slots, "default")
|
|
4415
4428
|
]);
|
|
4416
4429
|
}
|
|
4417
|
-
const OnyxAvatarStack = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4418
|
-
const _sfc_main$
|
|
4430
|
+
const OnyxAvatarStack = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1k], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAvatarStack/OnyxAvatarStack.vue"]]);
|
|
4431
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
4419
4432
|
__name: "OnyxBadge",
|
|
4420
4433
|
props: {
|
|
4421
4434
|
density: { type: null, required: false },
|
|
@@ -4432,7 +4445,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
4432
4445
|
return __returned__;
|
|
4433
4446
|
}
|
|
4434
4447
|
});
|
|
4435
|
-
function _sfc_render$
|
|
4448
|
+
function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4436
4449
|
return openBlock(), createElementBlock(
|
|
4437
4450
|
"div",
|
|
4438
4451
|
{
|
|
@@ -4463,8 +4476,8 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4463
4476
|
/* CLASS */
|
|
4464
4477
|
);
|
|
4465
4478
|
}
|
|
4466
|
-
const OnyxBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4467
|
-
const _sfc_main$
|
|
4479
|
+
const OnyxBadge = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1j], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBadge/OnyxBadge.vue"]]);
|
|
4480
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
4468
4481
|
__name: "OnyxBottomBar",
|
|
4469
4482
|
props: {
|
|
4470
4483
|
density: { type: null, required: false },
|
|
@@ -4479,10 +4492,10 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
4479
4492
|
return __returned__;
|
|
4480
4493
|
}
|
|
4481
4494
|
});
|
|
4482
|
-
const _hoisted_1$
|
|
4483
|
-
const _hoisted_2$
|
|
4484
|
-
const _hoisted_3$
|
|
4485
|
-
function _sfc_render$
|
|
4495
|
+
const _hoisted_1$Y = { class: "onyx-bottom-bar__content onyx-grid-container" };
|
|
4496
|
+
const _hoisted_2$M = { class: "onyx-bottom-bar__content--left" };
|
|
4497
|
+
const _hoisted_3$w = { class: "onyx-bottom-bar__content--right" };
|
|
4498
|
+
function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4486
4499
|
return openBlock(), createElementBlock(
|
|
4487
4500
|
"div",
|
|
4488
4501
|
{
|
|
@@ -4494,11 +4507,11 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4494
4507
|
])
|
|
4495
4508
|
},
|
|
4496
4509
|
[
|
|
4497
|
-
createElementVNode("div", _hoisted_1$
|
|
4498
|
-
createElementVNode("div", _hoisted_2$
|
|
4510
|
+
createElementVNode("div", _hoisted_1$Y, [
|
|
4511
|
+
createElementVNode("div", _hoisted_2$M, [
|
|
4499
4512
|
renderSlot(_ctx.$slots, "left")
|
|
4500
4513
|
]),
|
|
4501
|
-
createElementVNode("div", _hoisted_3$
|
|
4514
|
+
createElementVNode("div", _hoisted_3$w, [
|
|
4502
4515
|
renderSlot(_ctx.$slots, "default")
|
|
4503
4516
|
])
|
|
4504
4517
|
])
|
|
@@ -4507,7 +4520,7 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4507
4520
|
/* CLASS */
|
|
4508
4521
|
);
|
|
4509
4522
|
}
|
|
4510
|
-
const OnyxBottomBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4523
|
+
const OnyxBottomBar = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1i], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBottomBar/OnyxBottomBar.vue"]]);
|
|
4511
4524
|
const useMoreList = (options) => {
|
|
4512
4525
|
const visibleElements = ref();
|
|
4513
4526
|
const hiddenElements = ref();
|
|
@@ -4602,7 +4615,7 @@ const useMoreListChild = (injectionKey) => {
|
|
|
4602
4615
|
};
|
|
4603
4616
|
const BREADCRUMB_MORE_LIST_INJECTION_KEY = Symbol();
|
|
4604
4617
|
const BREADCRUMB_MORE_LIST_TARGET_INJECTION_KEY = Symbol();
|
|
4605
|
-
const _sfc_main$
|
|
4618
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
4606
4619
|
__name: "OnyxExternalLinkIcon",
|
|
4607
4620
|
props: {
|
|
4608
4621
|
href: { type: String, required: false },
|
|
@@ -4623,7 +4636,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
4623
4636
|
return __returned__;
|
|
4624
4637
|
}
|
|
4625
4638
|
});
|
|
4626
|
-
function _sfc_render$
|
|
4639
|
+
function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4627
4640
|
return $setup.isVisible ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
4628
4641
|
key: 0,
|
|
4629
4642
|
class: "onyx-component onyx-external-link-icon",
|
|
@@ -4631,8 +4644,8 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4631
4644
|
size: "16px"
|
|
4632
4645
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true);
|
|
4633
4646
|
}
|
|
4634
|
-
const OnyxExternalLinkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4635
|
-
const _sfc_main$
|
|
4647
|
+
const OnyxExternalLinkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1h], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxExternalLinkIcon/OnyxExternalLinkIcon.vue"]]);
|
|
4648
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
4636
4649
|
__name: "OnyxListItem",
|
|
4637
4650
|
props: {
|
|
4638
4651
|
density: { type: null, required: false },
|
|
@@ -4651,7 +4664,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
4651
4664
|
return __returned__;
|
|
4652
4665
|
}
|
|
4653
4666
|
});
|
|
4654
|
-
function _sfc_render$
|
|
4667
|
+
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4655
4668
|
return openBlock(), createElementBlock(
|
|
4656
4669
|
"li",
|
|
4657
4670
|
{
|
|
@@ -4673,8 +4686,8 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4673
4686
|
/* CLASS */
|
|
4674
4687
|
);
|
|
4675
4688
|
}
|
|
4676
|
-
const OnyxListItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4677
|
-
const _sfc_main$
|
|
4689
|
+
const OnyxListItem = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$1g], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxListItem/OnyxListItem.vue"]]);
|
|
4690
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
4678
4691
|
...{ inheritAttrs: false },
|
|
4679
4692
|
__name: "OnyxMenuItem",
|
|
4680
4693
|
props: {
|
|
@@ -4753,17 +4766,17 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
4753
4766
|
return __returned__;
|
|
4754
4767
|
}
|
|
4755
4768
|
});
|
|
4756
|
-
const _hoisted_1$
|
|
4757
|
-
const _hoisted_2$
|
|
4769
|
+
const _hoisted_1$X = { class: "onyx-truncation-ellipsis" };
|
|
4770
|
+
const _hoisted_2$L = {
|
|
4758
4771
|
key: 0,
|
|
4759
4772
|
class: "onyx-menu-item__chevron"
|
|
4760
4773
|
};
|
|
4761
|
-
const _hoisted_3$
|
|
4774
|
+
const _hoisted_3$v = {
|
|
4762
4775
|
key: 0,
|
|
4763
4776
|
role: "menu",
|
|
4764
4777
|
class: "onyx-menu-item__children"
|
|
4765
4778
|
};
|
|
4766
|
-
function _sfc_render$
|
|
4779
|
+
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4767
4780
|
const _component_OnyxMenuItem = resolveComponent("OnyxMenuItem", true);
|
|
4768
4781
|
return openBlock(), createBlock($setup["OnyxListItem"], mergeProps({
|
|
4769
4782
|
selected: $setup.isActive,
|
|
@@ -4784,7 +4797,7 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4784
4797
|
createElementVNode("span", null, [
|
|
4785
4798
|
createElementVNode(
|
|
4786
4799
|
"span",
|
|
4787
|
-
_hoisted_1$
|
|
4800
|
+
_hoisted_1$X,
|
|
4788
4801
|
toDisplayString($setup.props.label),
|
|
4789
4802
|
1
|
|
4790
4803
|
/* TEXT */
|
|
@@ -4798,7 +4811,7 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4798
4811
|
)
|
|
4799
4812
|
])
|
|
4800
4813
|
]),
|
|
4801
|
-
$setup.hasChildren ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4814
|
+
$setup.hasChildren ? (openBlock(), createElementBlock("div", _hoisted_2$L, [
|
|
4802
4815
|
createVNode($setup["OnyxIcon"], {
|
|
4803
4816
|
icon: $setup.iconChevronRightSmall,
|
|
4804
4817
|
size: "24px"
|
|
@@ -4812,7 +4825,7 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4812
4825
|
]),
|
|
4813
4826
|
$setup.hasChildren ? withDirectives((openBlock(), createElementBlock(
|
|
4814
4827
|
"ul",
|
|
4815
|
-
_hoisted_3$
|
|
4828
|
+
_hoisted_3$v,
|
|
4816
4829
|
[
|
|
4817
4830
|
createVNode(
|
|
4818
4831
|
_component_OnyxMenuItem,
|
|
@@ -4849,8 +4862,8 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4849
4862
|
/* FORWARDED */
|
|
4850
4863
|
}, 16, ["selected", "active", "color", "disabled", "class"]);
|
|
4851
4864
|
}
|
|
4852
|
-
const OnyxMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4853
|
-
const _sfc_main$
|
|
4865
|
+
const OnyxMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_render$1f], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.vue"]]);
|
|
4866
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
4854
4867
|
...{ inheritAttrs: false },
|
|
4855
4868
|
__name: "OnyxBreadcrumbItem",
|
|
4856
4869
|
props: {
|
|
@@ -4876,7 +4889,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
4876
4889
|
return __returned__;
|
|
4877
4890
|
}
|
|
4878
4891
|
});
|
|
4879
|
-
function _sfc_render$
|
|
4892
|
+
function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4880
4893
|
return openBlock(), createElementBlock(
|
|
4881
4894
|
Fragment,
|
|
4882
4895
|
null,
|
|
@@ -4936,8 +4949,8 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4936
4949
|
/* STABLE_FRAGMENT */
|
|
4937
4950
|
);
|
|
4938
4951
|
}
|
|
4939
|
-
const OnyxBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4940
|
-
const _sfc_main$
|
|
4952
|
+
const OnyxBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$1e], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBreadcrumbItem/OnyxBreadcrumbItem.vue"]]);
|
|
4953
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
4941
4954
|
__name: "OnyxMoreList",
|
|
4942
4955
|
props: {
|
|
4943
4956
|
injectionKey: { type: [Symbol, Object], required: true },
|
|
@@ -4970,7 +4983,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
4970
4983
|
return __returned__;
|
|
4971
4984
|
}
|
|
4972
4985
|
});
|
|
4973
|
-
function _sfc_render$
|
|
4986
|
+
function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4974
4987
|
return openBlock(), createBlock(
|
|
4975
4988
|
resolveDynamicComponent($setup.props.is),
|
|
4976
4989
|
{
|
|
@@ -5010,8 +5023,8 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5010
5023
|
/* NEED_PATCH */
|
|
5011
5024
|
);
|
|
5012
5025
|
}
|
|
5013
|
-
const OnyxMoreList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5014
|
-
const _sfc_main$
|
|
5026
|
+
const OnyxMoreList = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$1d], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxMoreList/OnyxMoreList.vue"]]);
|
|
5027
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
5015
5028
|
__name: "OnyxBreadcrumb",
|
|
5016
5029
|
props: {
|
|
5017
5030
|
density: { type: null, required: false },
|
|
@@ -5037,13 +5050,13 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
5037
5050
|
return __returned__;
|
|
5038
5051
|
}
|
|
5039
5052
|
});
|
|
5040
|
-
const _hoisted_1$
|
|
5041
|
-
const _hoisted_2$
|
|
5053
|
+
const _hoisted_1$W = ["aria-label", "aria-hidden"];
|
|
5054
|
+
const _hoisted_2$K = {
|
|
5042
5055
|
class: "onyx-breadcrumb__list onyx-grid-container",
|
|
5043
5056
|
role: "menu"
|
|
5044
5057
|
};
|
|
5045
|
-
const _hoisted_3$
|
|
5046
|
-
function _sfc_render$
|
|
5058
|
+
const _hoisted_3$u = { ref: "moreListRef" };
|
|
5059
|
+
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5047
5060
|
return openBlock(), createElementBlock("nav", {
|
|
5048
5061
|
class: normalizeClass([
|
|
5049
5062
|
"onyx-component",
|
|
@@ -5054,7 +5067,7 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5054
5067
|
"aria-label": $setup.t("breadcrumb.label"),
|
|
5055
5068
|
"aria-hidden": $setup.props.skeleton
|
|
5056
5069
|
}, [
|
|
5057
|
-
createElementVNode("ol", _hoisted_2$
|
|
5070
|
+
createElementVNode("ol", _hoisted_2$K, [
|
|
5058
5071
|
createVNode($setup["OnyxBreadcrumbItem"], {
|
|
5059
5072
|
class: "onyx-breadcrumb__home",
|
|
5060
5073
|
href: $setup.props.home?.link ?? "/",
|
|
@@ -5122,7 +5135,7 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5122
5135
|
options: withCtx(() => [
|
|
5123
5136
|
createElementVNode(
|
|
5124
5137
|
"div",
|
|
5125
|
-
_hoisted_3$
|
|
5138
|
+
_hoisted_3$u,
|
|
5126
5139
|
null,
|
|
5127
5140
|
512
|
|
5128
5141
|
/* NEED_PATCH */
|
|
@@ -5136,13 +5149,13 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5136
5149
|
/* FORWARDED */
|
|
5137
5150
|
}, 8, ["injection-key"])
|
|
5138
5151
|
])
|
|
5139
|
-
], 10, _hoisted_1$
|
|
5152
|
+
], 10, _hoisted_1$W);
|
|
5140
5153
|
}
|
|
5141
|
-
const OnyxBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5154
|
+
const OnyxBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$1c], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBreadcrumb/OnyxBreadcrumb.vue"]]);
|
|
5142
5155
|
const BUTTON_TYPES = ["button", "submit", "reset"];
|
|
5143
5156
|
const BUTTON_COLORS = ["primary", "neutral", "danger"];
|
|
5144
5157
|
const BUTTON_MODES = ["default", "outline", "plain"];
|
|
5145
|
-
const _sfc_main$
|
|
5158
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
5146
5159
|
__name: "OnyxCard",
|
|
5147
5160
|
props: {
|
|
5148
5161
|
density: { type: null, required: false },
|
|
@@ -5161,7 +5174,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
5161
5174
|
return __returned__;
|
|
5162
5175
|
}
|
|
5163
5176
|
});
|
|
5164
|
-
function _sfc_render$
|
|
5177
|
+
function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5165
5178
|
return openBlock(), createBlock(resolveDynamicComponent($setup.linkProps ? $setup.OnyxRouterLink : $setup.props.clickable ? "button" : "div"), mergeProps($setup.linkProps, {
|
|
5166
5179
|
class: ["onyx-component", "onyx-card", $setup.densityClass, "onyx-truncation-multiline", "onyx-text"]
|
|
5167
5180
|
}), {
|
|
@@ -5172,8 +5185,8 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5172
5185
|
/* FORWARDED */
|
|
5173
5186
|
}, 16, ["class"]);
|
|
5174
5187
|
}
|
|
5175
|
-
const OnyxCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5176
|
-
const _sfc_main$
|
|
5188
|
+
const OnyxCard = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$1b], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCard/OnyxCard.vue"]]);
|
|
5189
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
5177
5190
|
__name: "OnyxTooltip",
|
|
5178
5191
|
props: {
|
|
5179
5192
|
density: { type: null, required: false },
|
|
@@ -5328,8 +5341,8 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
5328
5341
|
return __returned__;
|
|
5329
5342
|
}
|
|
5330
5343
|
});
|
|
5331
|
-
const _hoisted_1$
|
|
5332
|
-
function _sfc_render$
|
|
5344
|
+
const _hoisted_1$V = { class: "onyx-tooltip--content" };
|
|
5345
|
+
function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5333
5346
|
return openBlock(), createElementBlock(
|
|
5334
5347
|
"div",
|
|
5335
5348
|
{
|
|
@@ -5345,7 +5358,7 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5345
5358
|
style: $setup.tooltipStyles
|
|
5346
5359
|
}),
|
|
5347
5360
|
[
|
|
5348
|
-
createElementVNode("div", _hoisted_1$
|
|
5361
|
+
createElementVNode("div", _hoisted_1$V, [
|
|
5349
5362
|
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
5350
5363
|
key: 0,
|
|
5351
5364
|
icon: $setup.props.icon,
|
|
@@ -5369,8 +5382,8 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5369
5382
|
/* CLASS, STYLE */
|
|
5370
5383
|
);
|
|
5371
5384
|
}
|
|
5372
|
-
const OnyxTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5373
|
-
const _sfc_main$
|
|
5385
|
+
const OnyxTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$1a], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTooltip/OnyxTooltip.vue"]]);
|
|
5386
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
5374
5387
|
__name: "OnyxCalendarCell",
|
|
5375
5388
|
props: {
|
|
5376
5389
|
density: { type: null, required: false },
|
|
@@ -5400,17 +5413,17 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
5400
5413
|
return __returned__;
|
|
5401
5414
|
}
|
|
5402
5415
|
});
|
|
5403
|
-
const _hoisted_1$
|
|
5404
|
-
const _hoisted_2$
|
|
5405
|
-
const _hoisted_3$
|
|
5416
|
+
const _hoisted_1$U = { class: "onyx-calendar-cell__header" };
|
|
5417
|
+
const _hoisted_2$J = { class: "onyx-calendar-cell__date-container" };
|
|
5418
|
+
const _hoisted_3$t = {
|
|
5406
5419
|
key: 1,
|
|
5407
5420
|
class: "onyx-calendar-cell__date"
|
|
5408
5421
|
};
|
|
5409
|
-
const _hoisted_4$
|
|
5422
|
+
const _hoisted_4$l = {
|
|
5410
5423
|
key: 0,
|
|
5411
5424
|
class: "onyx-calendar-cell__main"
|
|
5412
5425
|
};
|
|
5413
|
-
function _sfc_render$
|
|
5426
|
+
function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5414
5427
|
return openBlock(), createElementBlock(
|
|
5415
5428
|
"td",
|
|
5416
5429
|
{
|
|
@@ -5436,8 +5449,8 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5436
5449
|
]
|
|
5437
5450
|
}), {
|
|
5438
5451
|
default: withCtx(() => [
|
|
5439
|
-
createElementVNode("div", _hoisted_1$
|
|
5440
|
-
createElementVNode("div", _hoisted_2$
|
|
5452
|
+
createElementVNode("div", _hoisted_1$U, [
|
|
5453
|
+
createElementVNode("div", _hoisted_2$J, [
|
|
5441
5454
|
$setup.props.tooltipText ? (openBlock(), createBlock($setup["OnyxTooltip"], {
|
|
5442
5455
|
key: 0,
|
|
5443
5456
|
text: $setup.props.tooltipText,
|
|
@@ -5456,14 +5469,14 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5456
5469
|
/* STABLE */
|
|
5457
5470
|
}, 8, ["text"])) : (openBlock(), createElementBlock(
|
|
5458
5471
|
"span",
|
|
5459
|
-
_hoisted_3$
|
|
5472
|
+
_hoisted_3$t,
|
|
5460
5473
|
toDisplayString($setup.props.date),
|
|
5461
5474
|
1
|
|
5462
5475
|
/* TEXT */
|
|
5463
5476
|
))
|
|
5464
5477
|
])
|
|
5465
5478
|
]),
|
|
5466
|
-
!!$setup.slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
5479
|
+
!!$setup.slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$l, [
|
|
5467
5480
|
renderSlot(_ctx.$slots, "default")
|
|
5468
5481
|
])) : createCommentVNode("v-if", true)
|
|
5469
5482
|
]),
|
|
@@ -5475,8 +5488,8 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5475
5488
|
/* CLASS */
|
|
5476
5489
|
);
|
|
5477
5490
|
}
|
|
5478
|
-
const OnyxCalendarCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5479
|
-
const _sfc_main$
|
|
5491
|
+
const OnyxCalendarCell = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$19], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCalendarCell/OnyxCalendarCell.vue"]]);
|
|
5492
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
5480
5493
|
__name: "OnyxIconButton",
|
|
5481
5494
|
props: {
|
|
5482
5495
|
density: { type: null, required: false },
|
|
@@ -5501,7 +5514,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
5501
5514
|
return __returned__;
|
|
5502
5515
|
}
|
|
5503
5516
|
});
|
|
5504
|
-
function _sfc_render$
|
|
5517
|
+
function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5505
5518
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
5506
5519
|
key: 0,
|
|
5507
5520
|
class: normalizeClass(["onyx-icon-button-skeleton", $setup.densityClass])
|
|
@@ -5529,8 +5542,8 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5529
5542
|
/* FORWARDED */
|
|
5530
5543
|
}, 16, ["aria-label", "title", "class"]));
|
|
5531
5544
|
}
|
|
5532
|
-
const OnyxIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5533
|
-
const _sfc_main$
|
|
5545
|
+
const OnyxIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["render", _sfc_render$18], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxIconButton/OnyxIconButton.vue"]]);
|
|
5546
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
5534
5547
|
__name: "OnyxTag",
|
|
5535
5548
|
props: {
|
|
5536
5549
|
density: { type: null, required: false },
|
|
@@ -5557,9 +5570,9 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
5557
5570
|
return __returned__;
|
|
5558
5571
|
}
|
|
5559
5572
|
});
|
|
5560
|
-
const _hoisted_1$
|
|
5561
|
-
const _hoisted_2$
|
|
5562
|
-
function _sfc_render$
|
|
5573
|
+
const _hoisted_1$T = { class: "onyx-text--small onyx-truncation-ellipsis" };
|
|
5574
|
+
const _hoisted_2$I = { class: "onyx-text--small onyx-truncation-ellipsis" };
|
|
5575
|
+
function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5563
5576
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
5564
5577
|
key: 0,
|
|
5565
5578
|
class: normalizeClass(["onyx-tag-skeleton", $setup.densityClass])
|
|
@@ -5582,7 +5595,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5582
5595
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
5583
5596
|
createElementVNode(
|
|
5584
5597
|
"span",
|
|
5585
|
-
_hoisted_1$
|
|
5598
|
+
_hoisted_1$T,
|
|
5586
5599
|
toDisplayString($setup.props.label),
|
|
5587
5600
|
1
|
|
5588
5601
|
/* TEXT */
|
|
@@ -5613,7 +5626,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5613
5626
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
5614
5627
|
createElementVNode(
|
|
5615
5628
|
"span",
|
|
5616
|
-
_hoisted_2$
|
|
5629
|
+
_hoisted_2$I,
|
|
5617
5630
|
toDisplayString($setup.props.label),
|
|
5618
5631
|
1
|
|
5619
5632
|
/* TEXT */
|
|
@@ -5623,10 +5636,10 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5623
5636
|
/* CLASS */
|
|
5624
5637
|
));
|
|
5625
5638
|
}
|
|
5626
|
-
const OnyxTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5627
|
-
const __default__$
|
|
5628
|
-
const _sfc_main$
|
|
5629
|
-
...__default__$
|
|
5639
|
+
const OnyxTag = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", _sfc_render$17], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTag/OnyxTag.vue"]]);
|
|
5640
|
+
const __default__$7 = {};
|
|
5641
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
5642
|
+
...__default__$7,
|
|
5630
5643
|
__name: "OnyxCalendar",
|
|
5631
5644
|
props: {
|
|
5632
5645
|
density: { type: null, required: false },
|
|
@@ -5740,12 +5753,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
5740
5753
|
return __returned__;
|
|
5741
5754
|
}
|
|
5742
5755
|
});
|
|
5743
|
-
const _hoisted_1$
|
|
5744
|
-
const _hoisted_2$
|
|
5745
|
-
const _hoisted_3$
|
|
5746
|
-
const _hoisted_4$
|
|
5747
|
-
const _hoisted_5$
|
|
5748
|
-
function _sfc_render$
|
|
5756
|
+
const _hoisted_1$S = { class: "onyx-calendar__header" };
|
|
5757
|
+
const _hoisted_2$H = { class: "control-container time-control-container" };
|
|
5758
|
+
const _hoisted_3$s = { class: "control-container" };
|
|
5759
|
+
const _hoisted_4$k = { class: "onyx-calendar__body" };
|
|
5760
|
+
const _hoisted_5$f = ["abbr"];
|
|
5761
|
+
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5749
5762
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
5750
5763
|
"div",
|
|
5751
5764
|
{
|
|
@@ -5766,8 +5779,8 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5766
5779
|
class: normalizeClass(["onyx-component", "onyx-calendar", `onyx-calendar--${$setup.calendarSize}`, $setup.densityClass])
|
|
5767
5780
|
},
|
|
5768
5781
|
[
|
|
5769
|
-
createElementVNode("div", _hoisted_1$
|
|
5770
|
-
createElementVNode("div", _hoisted_2$
|
|
5782
|
+
createElementVNode("div", _hoisted_1$S, [
|
|
5783
|
+
createElementVNode("div", _hoisted_2$H, [
|
|
5771
5784
|
createVNode($setup["OnyxSystemButton"], {
|
|
5772
5785
|
label: $setup.t("calendar.todayButton.label"),
|
|
5773
5786
|
class: "control-container__today-btn",
|
|
@@ -5810,11 +5823,11 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5810
5823
|
onClick: _cache[1] || (_cache[1] = ($event) => $setup.goToMonthByOffset(1))
|
|
5811
5824
|
}, null, 8, ["label", "icon", "disabled"])
|
|
5812
5825
|
]),
|
|
5813
|
-
createElementVNode("div", _hoisted_3$
|
|
5826
|
+
createElementVNode("div", _hoisted_3$s, [
|
|
5814
5827
|
renderSlot(_ctx.$slots, "actions")
|
|
5815
5828
|
])
|
|
5816
5829
|
]),
|
|
5817
|
-
createElementVNode("div", _hoisted_4$
|
|
5830
|
+
createElementVNode("div", _hoisted_4$k, [
|
|
5818
5831
|
createElementVNode(
|
|
5819
5832
|
"table",
|
|
5820
5833
|
normalizeProps(guardReactiveProps($setup.tableProps)),
|
|
@@ -5829,7 +5842,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5829
5842
|
key: header,
|
|
5830
5843
|
scope: "col",
|
|
5831
5844
|
abbr: header
|
|
5832
|
-
}, toDisplayString(header), 9, _hoisted_5$
|
|
5845
|
+
}, toDisplayString(header), 9, _hoisted_5$f);
|
|
5833
5846
|
}),
|
|
5834
5847
|
128
|
|
5835
5848
|
/* KEYED_FRAGMENT */
|
|
@@ -5906,7 +5919,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5906
5919
|
/* CLASS */
|
|
5907
5920
|
));
|
|
5908
5921
|
}
|
|
5909
|
-
const OnyxCalendar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5922
|
+
const OnyxCalendar = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$16], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCalendar/OnyxCalendar.vue"]]);
|
|
5910
5923
|
const useRequired = (props, requiredMarker) => ({
|
|
5911
5924
|
/**
|
|
5912
5925
|
* Class that configures which type of required marker is used.
|
|
@@ -6122,7 +6135,7 @@ const formatMinMax = (locale, type, value) => {
|
|
|
6122
6135
|
};
|
|
6123
6136
|
return date.toLocaleString(locale, format);
|
|
6124
6137
|
};
|
|
6125
|
-
const _sfc_main$
|
|
6138
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
6126
6139
|
__name: "OnyxErrorTooltip",
|
|
6127
6140
|
props: {
|
|
6128
6141
|
errorMessages: { type: Object, required: false },
|
|
@@ -6138,16 +6151,16 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
6138
6151
|
return __returned__;
|
|
6139
6152
|
}
|
|
6140
6153
|
});
|
|
6141
|
-
const _hoisted_1$
|
|
6142
|
-
const _hoisted_2$
|
|
6154
|
+
const _hoisted_1$R = { class: "onyx-component" };
|
|
6155
|
+
const _hoisted_2$G = {
|
|
6143
6156
|
key: 0,
|
|
6144
6157
|
ref: "targetRef"
|
|
6145
6158
|
};
|
|
6146
|
-
function _sfc_render$
|
|
6147
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6159
|
+
function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6160
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
6148
6161
|
!$setup.tooltipError || $setup.props.disabled ? (openBlock(), createElementBlock(
|
|
6149
6162
|
"div",
|
|
6150
|
-
_hoisted_2$
|
|
6163
|
+
_hoisted_2$G,
|
|
6151
6164
|
null,
|
|
6152
6165
|
512
|
|
6153
6166
|
/* NEED_PATCH */
|
|
@@ -6180,8 +6193,8 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6180
6193
|
], 8, ["to"])) : createCommentVNode("v-if", true)
|
|
6181
6194
|
]);
|
|
6182
6195
|
}
|
|
6183
|
-
const OnyxErrorTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6184
|
-
const _sfc_main$
|
|
6196
|
+
const OnyxErrorTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$15], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxErrorTooltip/OnyxErrorTooltip.vue"]]);
|
|
6197
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
6185
6198
|
...{ inheritAttrs: false },
|
|
6186
6199
|
__name: "OnyxCheckbox",
|
|
6187
6200
|
props: {
|
|
@@ -6228,10 +6241,10 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
6228
6241
|
return __returned__;
|
|
6229
6242
|
}
|
|
6230
6243
|
});
|
|
6231
|
-
const _hoisted_1$
|
|
6232
|
-
const _hoisted_2$
|
|
6233
|
-
const _hoisted_3$
|
|
6234
|
-
function _sfc_render$
|
|
6244
|
+
const _hoisted_1$Q = ["title"];
|
|
6245
|
+
const _hoisted_2$F = { class: "onyx-checkbox__container" };
|
|
6246
|
+
const _hoisted_3$r = ["aria-label", "indeterminate", "disabled", "required", "value", "autofocus"];
|
|
6247
|
+
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6235
6248
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
6236
6249
|
"div",
|
|
6237
6250
|
mergeProps({
|
|
@@ -6257,7 +6270,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6257
6270
|
class: normalizeClass(["onyx-component onyx-checkbox", [$setup.requiredTypeClass, $setup.densityClass]]),
|
|
6258
6271
|
title: $setup.title
|
|
6259
6272
|
}, [
|
|
6260
|
-
createElementVNode("div", _hoisted_2$
|
|
6273
|
+
createElementVNode("div", _hoisted_2$F, [
|
|
6261
6274
|
$setup.props.loading ? (openBlock(), createBlock($setup["OnyxLoadingIndicator"], {
|
|
6262
6275
|
key: 0,
|
|
6263
6276
|
class: "onyx-checkbox__loading",
|
|
@@ -6274,7 +6287,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6274
6287
|
required: $setup.props.required,
|
|
6275
6288
|
value: $setup.props.value,
|
|
6276
6289
|
autofocus: $setup.props.autofocus
|
|
6277
|
-
}, $setup.restAttrs), null, 16, _hoisted_3$
|
|
6290
|
+
}, $setup.restAttrs), null, 16, _hoisted_3$r)), [
|
|
6278
6291
|
[vModelCheckbox, $setup.isChecked],
|
|
6279
6292
|
[$setup["vCustomValidity"]]
|
|
6280
6293
|
])
|
|
@@ -6310,13 +6323,13 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6310
6323
|
64
|
|
6311
6324
|
/* STABLE_FRAGMENT */
|
|
6312
6325
|
)) : createCommentVNode("v-if", true)
|
|
6313
|
-
], 10, _hoisted_1$
|
|
6326
|
+
], 10, _hoisted_1$Q)
|
|
6314
6327
|
]),
|
|
6315
6328
|
_: 1
|
|
6316
6329
|
/* STABLE */
|
|
6317
6330
|
}, 16, ["disabled", "error-messages"]));
|
|
6318
6331
|
}
|
|
6319
|
-
const OnyxCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6332
|
+
const OnyxCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$14], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCheckbox/OnyxCheckbox.vue"]]);
|
|
6320
6333
|
const useSelectAllCheckboxState = (enabledOptionValues, modelValue) => computed(() => {
|
|
6321
6334
|
const currentValues = modelValue.value.filter(
|
|
6322
6335
|
(value) => enabledOptionValues.value.includes(value)
|
|
@@ -6351,7 +6364,7 @@ const useCheckAll = (enabledOptionValues, modelValue, onChangeCallback) => {
|
|
|
6351
6364
|
}
|
|
6352
6365
|
};
|
|
6353
6366
|
};
|
|
6354
|
-
const _sfc_main$
|
|
6367
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
6355
6368
|
__name: "OnyxInfoTooltip",
|
|
6356
6369
|
props: {
|
|
6357
6370
|
text: { type: String, required: true },
|
|
@@ -6387,9 +6400,9 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
6387
6400
|
return __returned__;
|
|
6388
6401
|
}
|
|
6389
6402
|
});
|
|
6390
|
-
const _hoisted_1$
|
|
6391
|
-
function _sfc_render$
|
|
6392
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
6403
|
+
const _hoisted_1$P = { class: "onyx-component onyx-info-tooltip" };
|
|
6404
|
+
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6405
|
+
return openBlock(), createElementBlock("span", _hoisted_1$P, [
|
|
6393
6406
|
$setup.triggerType === "click" ? (openBlock(), createBlock($setup["OnyxTooltip"], mergeProps({ key: 0 }, $setup.tooltipProps, {
|
|
6394
6407
|
open: $setup.isVisible,
|
|
6395
6408
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => $setup.isVisible = $event)
|
|
@@ -6447,8 +6460,8 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6447
6460
|
))
|
|
6448
6461
|
]);
|
|
6449
6462
|
}
|
|
6450
|
-
const OnyxInfoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6451
|
-
const _sfc_main
|
|
6463
|
+
const OnyxInfoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$13], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxInfoTooltip/OnyxInfoTooltip.vue"]]);
|
|
6464
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
6452
6465
|
__name: "OnyxCheckboxGroup",
|
|
6453
6466
|
props: {
|
|
6454
6467
|
truncation: { type: null, required: false, default: "ellipsis" },
|
|
@@ -6506,18 +6519,18 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
6506
6519
|
return __returned__;
|
|
6507
6520
|
}
|
|
6508
6521
|
});
|
|
6509
|
-
const _hoisted_1$
|
|
6510
|
-
const _hoisted_2$
|
|
6522
|
+
const _hoisted_1$O = ["disabled", "aria-label"];
|
|
6523
|
+
const _hoisted_2$E = {
|
|
6511
6524
|
key: 0,
|
|
6512
6525
|
class: "onyx-checkbox-group__label"
|
|
6513
6526
|
};
|
|
6514
|
-
function _sfc_render
|
|
6527
|
+
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6515
6528
|
return openBlock(), createElementBlock("fieldset", {
|
|
6516
6529
|
class: normalizeClass(["onyx-component", "onyx-checkbox-group", $setup.densityClass]),
|
|
6517
6530
|
disabled: $setup.disabled,
|
|
6518
6531
|
"aria-label": $setup.props.label
|
|
6519
6532
|
}, [
|
|
6520
|
-
!$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
6533
|
+
!$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$E, [
|
|
6521
6534
|
createVNode($setup["OnyxHeadline"], { is: "h3" }, {
|
|
6522
6535
|
default: withCtx(() => [
|
|
6523
6536
|
createTextVNode(
|
|
@@ -6597,12 +6610,12 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6597
6610
|
2
|
|
6598
6611
|
/* CLASS */
|
|
6599
6612
|
)
|
|
6600
|
-
], 10, _hoisted_1$
|
|
6613
|
+
], 10, _hoisted_1$O);
|
|
6601
6614
|
}
|
|
6602
|
-
const OnyxCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
6615
|
+
const OnyxCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$12], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue"]]);
|
|
6603
6616
|
const CODE_TABS_INJECTION_KEY = Symbol();
|
|
6604
6617
|
const TABS_INJECTION_KEY = Symbol();
|
|
6605
|
-
const _sfc_main$
|
|
6618
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
6606
6619
|
...{ inheritAttrs: false },
|
|
6607
6620
|
__name: "OnyxTab",
|
|
6608
6621
|
props: {
|
|
@@ -6633,9 +6646,9 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
6633
6646
|
return __returned__;
|
|
6634
6647
|
}
|
|
6635
6648
|
});
|
|
6636
|
-
const _hoisted_1$
|
|
6637
|
-
const _hoisted_2$
|
|
6638
|
-
function _sfc_render$
|
|
6649
|
+
const _hoisted_1$N = ["disabled"];
|
|
6650
|
+
const _hoisted_2$D = { class: "onyx-tab__label" };
|
|
6651
|
+
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6639
6652
|
return openBlock(), createElementBlock(
|
|
6640
6653
|
Fragment,
|
|
6641
6654
|
null,
|
|
@@ -6656,7 +6669,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6656
6669
|
type: "button",
|
|
6657
6670
|
disabled: $setup.props.disabled
|
|
6658
6671
|
}), [
|
|
6659
|
-
createElementVNode("div", _hoisted_2$
|
|
6672
|
+
createElementVNode("div", _hoisted_2$D, [
|
|
6660
6673
|
renderSlot(_ctx.$slots, "tab", {}, () => [
|
|
6661
6674
|
createTextVNode(
|
|
6662
6675
|
toDisplayString($setup.props.label),
|
|
@@ -6665,7 +6678,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6665
6678
|
)
|
|
6666
6679
|
])
|
|
6667
6680
|
])
|
|
6668
|
-
], 16, _hoisted_1$
|
|
6681
|
+
], 16, _hoisted_1$N)),
|
|
6669
6682
|
$setup.tabsContext?.panel.value ? (openBlock(), createBlock(Teleport, {
|
|
6670
6683
|
key: 2,
|
|
6671
6684
|
to: $setup.tabsContext?.panel.value,
|
|
@@ -6690,10 +6703,10 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6690
6703
|
/* STABLE_FRAGMENT */
|
|
6691
6704
|
);
|
|
6692
6705
|
}
|
|
6693
|
-
const OnyxTab = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6694
|
-
const __default__$
|
|
6695
|
-
const _sfc_main$
|
|
6696
|
-
...__default__$
|
|
6706
|
+
const OnyxTab = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTab/OnyxTab.vue"]]);
|
|
6707
|
+
const __default__$6 = {};
|
|
6708
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
6709
|
+
...__default__$6,
|
|
6697
6710
|
__name: "OnyxCodeTab",
|
|
6698
6711
|
props: {
|
|
6699
6712
|
value: { type: null, required: true },
|
|
@@ -6711,6 +6724,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
6711
6724
|
const tabProps = useForwardProps(props, OnyxTab);
|
|
6712
6725
|
const tabsContext = inject(CODE_TABS_INJECTION_KEY, void 0);
|
|
6713
6726
|
const label = computed(() => props.label ?? t.value("codeTabs.tabLabel"));
|
|
6727
|
+
const skeleton = useSkeletonContext(props);
|
|
6714
6728
|
watch(
|
|
6715
6729
|
[() => props.value, () => props.code],
|
|
6716
6730
|
([newValue, newCode], [oldValue]) => {
|
|
@@ -6728,16 +6742,20 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
6728
6742
|
if (props.disabled != void 0) return props.disabled;
|
|
6729
6743
|
return tabsContext && tabsContext.tabs.value.size <= 1;
|
|
6730
6744
|
});
|
|
6731
|
-
const __returned__ = { props, t, tabProps, tabsContext, label, disabled, OnyxIcon, OnyxTab };
|
|
6745
|
+
const __returned__ = { props, t, tabProps, tabsContext, label, skeleton, disabled, OnyxIcon, OnyxSkeleton, OnyxTab };
|
|
6732
6746
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
6733
6747
|
return __returned__;
|
|
6734
6748
|
}
|
|
6735
6749
|
});
|
|
6736
|
-
const _hoisted_1$
|
|
6750
|
+
const _hoisted_1$M = {
|
|
6751
|
+
key: 0,
|
|
6752
|
+
class: "onyx-code-tab__skeletons"
|
|
6753
|
+
};
|
|
6754
|
+
const _hoisted_2$C = {
|
|
6737
6755
|
key: 0,
|
|
6738
6756
|
class: "onyx-code-tab__language onyx-text--small"
|
|
6739
6757
|
};
|
|
6740
|
-
function _sfc_render$
|
|
6758
|
+
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6741
6759
|
return openBlock(), createBlock($setup["OnyxTab"], mergeProps($setup.tabProps, {
|
|
6742
6760
|
label: $setup.label,
|
|
6743
6761
|
class: "onyx-code-tab",
|
|
@@ -6758,31 +6776,52 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6758
6776
|
])
|
|
6759
6777
|
]),
|
|
6760
6778
|
default: withCtx(() => [
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6779
|
+
$setup.skeleton ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
6780
|
+
(openBlock(), createElementBlock(
|
|
6781
|
+
Fragment,
|
|
6782
|
+
null,
|
|
6783
|
+
renderList(3, (i) => {
|
|
6784
|
+
return createVNode($setup["OnyxSkeleton"], {
|
|
6785
|
+
key: i,
|
|
6786
|
+
class: "onyx-code-tab__skeleton"
|
|
6787
|
+
});
|
|
6788
|
+
}),
|
|
6789
|
+
64
|
|
6790
|
+
/* STABLE_FRAGMENT */
|
|
6791
|
+
))
|
|
6792
|
+
])) : (openBlock(), createElementBlock(
|
|
6793
|
+
Fragment,
|
|
6794
|
+
{ key: 1 },
|
|
6795
|
+
[
|
|
6796
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
6797
|
+
createElementVNode("pre", null, [
|
|
6798
|
+
createElementVNode(
|
|
6799
|
+
"code",
|
|
6800
|
+
null,
|
|
6801
|
+
toDisplayString($setup.props.code),
|
|
6802
|
+
1
|
|
6803
|
+
/* TEXT */
|
|
6804
|
+
)
|
|
6805
|
+
])
|
|
6806
|
+
]),
|
|
6807
|
+
$setup.props.language ? (openBlock(), createElementBlock(
|
|
6808
|
+
"span",
|
|
6809
|
+
_hoisted_2$C,
|
|
6810
|
+
toDisplayString($setup.props.language),
|
|
6767
6811
|
1
|
|
6768
6812
|
/* TEXT */
|
|
6769
|
-
)
|
|
6770
|
-
]
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
_hoisted_1$J,
|
|
6775
|
-
toDisplayString($setup.props.language),
|
|
6776
|
-
1
|
|
6777
|
-
/* TEXT */
|
|
6778
|
-
)) : createCommentVNode("v-if", true)
|
|
6813
|
+
)) : createCommentVNode("v-if", true)
|
|
6814
|
+
],
|
|
6815
|
+
64
|
|
6816
|
+
/* STABLE_FRAGMENT */
|
|
6817
|
+
))
|
|
6779
6818
|
]),
|
|
6780
6819
|
_: 3
|
|
6781
6820
|
/* FORWARDED */
|
|
6782
6821
|
}, 16, ["label", "disabled"]);
|
|
6783
6822
|
}
|
|
6784
|
-
const OnyxCodeTab = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6785
|
-
const _sfc_main
|
|
6823
|
+
const OnyxCodeTab = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCodeTab/OnyxCodeTab.vue"]]);
|
|
6824
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
6786
6825
|
__name: "OnyxTabs",
|
|
6787
6826
|
props: {
|
|
6788
6827
|
density: { type: null, required: false },
|
|
@@ -6821,12 +6860,12 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
6821
6860
|
return __returned__;
|
|
6822
6861
|
}
|
|
6823
6862
|
});
|
|
6824
|
-
const _hoisted_1$
|
|
6825
|
-
const _hoisted_2$
|
|
6863
|
+
const _hoisted_1$L = { class: "onyx-tabs__header" };
|
|
6864
|
+
const _hoisted_2$B = {
|
|
6826
6865
|
key: 0,
|
|
6827
6866
|
class: "onyx-tabs__actions"
|
|
6828
6867
|
};
|
|
6829
|
-
function _sfc_render
|
|
6868
|
+
function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6830
6869
|
return openBlock(), createElementBlock(
|
|
6831
6870
|
"div",
|
|
6832
6871
|
{
|
|
@@ -6839,7 +6878,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6839
6878
|
])
|
|
6840
6879
|
},
|
|
6841
6880
|
[
|
|
6842
|
-
createElementVNode("div", _hoisted_1$
|
|
6881
|
+
createElementVNode("div", _hoisted_1$L, [
|
|
6843
6882
|
createElementVNode(
|
|
6844
6883
|
"div",
|
|
6845
6884
|
mergeProps($setup.headless.elements.tablist.value, { class: "onyx-tabs__tablist" }),
|
|
@@ -6849,7 +6888,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6849
6888
|
16
|
|
6850
6889
|
/* FULL_PROPS */
|
|
6851
6890
|
),
|
|
6852
|
-
$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
6891
|
+
$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
|
|
6853
6892
|
renderSlot(_ctx.$slots, "actions")
|
|
6854
6893
|
])) : createCommentVNode("v-if", true)
|
|
6855
6894
|
])
|
|
@@ -6858,10 +6897,10 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6858
6897
|
/* CLASS */
|
|
6859
6898
|
);
|
|
6860
6899
|
}
|
|
6861
|
-
const OnyxTabs = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
6862
|
-
const __default__$
|
|
6863
|
-
const _sfc_main$
|
|
6864
|
-
...__default__$
|
|
6900
|
+
const OnyxTabs = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTabs/OnyxTabs.vue"]]);
|
|
6901
|
+
const __default__$5 = {};
|
|
6902
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
6903
|
+
...__default__$5,
|
|
6865
6904
|
__name: "OnyxCodeTabs",
|
|
6866
6905
|
props: {
|
|
6867
6906
|
skeleton: { type: Boolean, required: false },
|
|
@@ -6883,21 +6922,26 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
6883
6922
|
const tabs = ref(/* @__PURE__ */ new Map());
|
|
6884
6923
|
provide(CODE_TABS_INJECTION_KEY, { tabs });
|
|
6885
6924
|
const activeTabCode = computed(() => tabs.value.get(modelValue.value));
|
|
6886
|
-
const
|
|
6925
|
+
const copyStatus = ref();
|
|
6887
6926
|
const handleCopy = async () => {
|
|
6888
6927
|
if (!activeTabCode.value) return;
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6928
|
+
try {
|
|
6929
|
+
await navigator.clipboard.writeText(activeTabCode.value);
|
|
6930
|
+
copyStatus.value = "success";
|
|
6931
|
+
} catch {
|
|
6932
|
+
copyStatus.value = "error";
|
|
6933
|
+
} finally {
|
|
6934
|
+
setTimeout(() => copyStatus.value = void 0, 3e3);
|
|
6935
|
+
}
|
|
6892
6936
|
};
|
|
6893
|
-
const __returned__ = { props, emit, t, tabsProps, modelValue, tabs, activeTabCode,
|
|
6937
|
+
const __returned__ = { props, emit, t, tabsProps, modelValue, tabs, activeTabCode, copyStatus, handleCopy, get iconFileCopy() {
|
|
6894
6938
|
return iconFileCopy;
|
|
6895
6939
|
}, OnyxSystemButton, OnyxTabs, OnyxTag };
|
|
6896
6940
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
6897
6941
|
return __returned__;
|
|
6898
6942
|
}
|
|
6899
6943
|
});
|
|
6900
|
-
function _sfc_render$
|
|
6944
|
+
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6901
6945
|
return openBlock(), createBlock($setup["OnyxTabs"], mergeProps($setup.tabsProps, {
|
|
6902
6946
|
modelValue: $setup.modelValue,
|
|
6903
6947
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.modelValue = $event),
|
|
@@ -6907,17 +6951,21 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6907
6951
|
density: "compact"
|
|
6908
6952
|
}), {
|
|
6909
6953
|
actions: withCtx(() => [
|
|
6910
|
-
!$setup.
|
|
6954
|
+
!$setup.copyStatus ? (openBlock(), createBlock($setup["OnyxSystemButton"], {
|
|
6911
6955
|
key: 0,
|
|
6912
6956
|
label: $setup.t("codeTabs.copySnippet"),
|
|
6913
6957
|
icon: $setup.iconFileCopy,
|
|
6914
6958
|
disabled: !$setup.activeTabCode,
|
|
6915
6959
|
onClick: $setup.handleCopy
|
|
6916
|
-
}, null, 8, ["label", "icon", "disabled"])) : (openBlock(), createBlock($setup["OnyxTag"], {
|
|
6960
|
+
}, null, 8, ["label", "icon", "disabled"])) : $setup.copyStatus === "success" ? (openBlock(), createBlock($setup["OnyxTag"], {
|
|
6917
6961
|
key: 1,
|
|
6918
6962
|
label: $setup.t("codeTabs.copied"),
|
|
6919
6963
|
color: "success"
|
|
6920
|
-
}, null, 8, ["label"]))
|
|
6964
|
+
}, null, 8, ["label"])) : $setup.copyStatus === "error" ? (openBlock(), createBlock($setup["OnyxTag"], {
|
|
6965
|
+
key: 2,
|
|
6966
|
+
label: $setup.t("codeTabs.failed"),
|
|
6967
|
+
color: "danger"
|
|
6968
|
+
}, null, 8, ["label"])) : createCommentVNode("v-if", true)
|
|
6921
6969
|
]),
|
|
6922
6970
|
default: withCtx(() => [
|
|
6923
6971
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -6926,13 +6974,13 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6926
6974
|
/* FORWARDED */
|
|
6927
6975
|
}, 16, ["modelValue", "label"]);
|
|
6928
6976
|
}
|
|
6929
|
-
const OnyxCodeTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6977
|
+
const OnyxCodeTabs = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCodeTabs/OnyxCodeTabs.vue"]]);
|
|
6930
6978
|
const escapeCSS = (key) => {
|
|
6931
6979
|
const name = typeof key === "symbol" && key.description ? key.description : String(key);
|
|
6932
6980
|
if (globalThis.window && window.CSS) return CSS.escape(name);
|
|
6933
6981
|
return name.replace(/\W/g, "-");
|
|
6934
6982
|
};
|
|
6935
|
-
const _sfc_main$
|
|
6983
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
6936
6984
|
__name: "OnyxEmpty",
|
|
6937
6985
|
props: {
|
|
6938
6986
|
density: { type: null, required: false }
|
|
@@ -6949,12 +6997,12 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
6949
6997
|
return __returned__;
|
|
6950
6998
|
}
|
|
6951
6999
|
});
|
|
6952
|
-
const _hoisted_1$
|
|
6953
|
-
const _hoisted_2$
|
|
7000
|
+
const _hoisted_1$K = { class: "onyx-empty__label onyx-text onyx-truncation-multiline" };
|
|
7001
|
+
const _hoisted_2$A = {
|
|
6954
7002
|
key: 0,
|
|
6955
7003
|
class: "onyx-empty__buttons"
|
|
6956
7004
|
};
|
|
6957
|
-
function _sfc_render$
|
|
7005
|
+
function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6958
7006
|
return openBlock(), createElementBlock(
|
|
6959
7007
|
"div",
|
|
6960
7008
|
{
|
|
@@ -6967,10 +7015,10 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6967
7015
|
size: "48px"
|
|
6968
7016
|
}, null, 8, ["icon"])
|
|
6969
7017
|
]),
|
|
6970
|
-
createElementVNode("div", _hoisted_1$
|
|
7018
|
+
createElementVNode("div", _hoisted_1$K, [
|
|
6971
7019
|
renderSlot(_ctx.$slots, "default")
|
|
6972
7020
|
]),
|
|
6973
|
-
!!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
7021
|
+
!!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_2$A, [
|
|
6974
7022
|
renderSlot(_ctx.$slots, "buttons")
|
|
6975
7023
|
])) : createCommentVNode("v-if", true)
|
|
6976
7024
|
],
|
|
@@ -6978,8 +7026,8 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6978
7026
|
/* CLASS */
|
|
6979
7027
|
);
|
|
6980
7028
|
}
|
|
6981
|
-
const OnyxEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6982
|
-
const _sfc_main$
|
|
7029
|
+
const OnyxEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxEmpty/OnyxEmpty.vue"]]);
|
|
7030
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
6983
7031
|
__name: "OnyxTable",
|
|
6984
7032
|
props: {
|
|
6985
7033
|
density: { type: null, required: false },
|
|
@@ -7010,16 +7058,16 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
7010
7058
|
return __returned__;
|
|
7011
7059
|
}
|
|
7012
7060
|
});
|
|
7013
|
-
const _hoisted_1$
|
|
7061
|
+
const _hoisted_1$J = {
|
|
7014
7062
|
key: 0,
|
|
7015
7063
|
class: "onyx-table-wrapper__top"
|
|
7016
7064
|
};
|
|
7017
|
-
const _hoisted_2$
|
|
7018
|
-
const _hoisted_3$
|
|
7019
|
-
const _hoisted_4$
|
|
7020
|
-
const _hoisted_5$
|
|
7021
|
-
const _hoisted_6$
|
|
7022
|
-
const _hoisted_7$
|
|
7065
|
+
const _hoisted_2$z = ["id"];
|
|
7066
|
+
const _hoisted_3$q = { class: "onyx-table-wrapper__actions" };
|
|
7067
|
+
const _hoisted_4$j = ["tabindex"];
|
|
7068
|
+
const _hoisted_5$e = ["aria-labelledby"];
|
|
7069
|
+
const _hoisted_6$a = ["span"];
|
|
7070
|
+
const _hoisted_7$6 = {
|
|
7023
7071
|
key: 0,
|
|
7024
7072
|
class: "onyx-table__header"
|
|
7025
7073
|
};
|
|
@@ -7032,7 +7080,7 @@ const _hoisted_13 = {
|
|
|
7032
7080
|
key: 1,
|
|
7033
7081
|
class: "onyx-table-wrapper__bottom"
|
|
7034
7082
|
};
|
|
7035
|
-
function _sfc_render$
|
|
7083
|
+
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7036
7084
|
return openBlock(), createElementBlock(
|
|
7037
7085
|
"div",
|
|
7038
7086
|
{
|
|
@@ -7040,11 +7088,11 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7040
7088
|
style: normalizeStyle($setup.style)
|
|
7041
7089
|
},
|
|
7042
7090
|
[
|
|
7043
|
-
!!$setup.slots.headline || !!$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7091
|
+
!!$setup.slots.headline || !!$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
7044
7092
|
createElementVNode("div", { id: $setup.headlineId }, [
|
|
7045
7093
|
renderSlot(_ctx.$slots, "headline")
|
|
7046
|
-
], 8, _hoisted_2$
|
|
7047
|
-
createElementVNode("div", _hoisted_3$
|
|
7094
|
+
], 8, _hoisted_2$z),
|
|
7095
|
+
createElementVNode("div", _hoisted_3$q, [
|
|
7048
7096
|
renderSlot(_ctx.$slots, "actions")
|
|
7049
7097
|
])
|
|
7050
7098
|
])) : createCommentVNode("v-if", true),
|
|
@@ -7074,12 +7122,12 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7074
7122
|
return openBlock(), createElementBlock("colgroup", {
|
|
7075
7123
|
key: group.key,
|
|
7076
7124
|
span: group.span
|
|
7077
|
-
}, null, 8, _hoisted_6$
|
|
7125
|
+
}, null, 8, _hoisted_6$a);
|
|
7078
7126
|
}),
|
|
7079
7127
|
128
|
|
7080
7128
|
/* KEYED_FRAGMENT */
|
|
7081
7129
|
)),
|
|
7082
|
-
$setup.slots.head ? (openBlock(), createElementBlock("thead", _hoisted_7$
|
|
7130
|
+
$setup.slots.head ? (openBlock(), createElementBlock("thead", _hoisted_7$6, [
|
|
7083
7131
|
$setup.props.columnGroups?.length ? (openBlock(), createElementBlock("tr", _hoisted_8$5, [
|
|
7084
7132
|
(openBlock(true), createElementBlock(
|
|
7085
7133
|
Fragment,
|
|
@@ -7121,8 +7169,8 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7121
7169
|
])
|
|
7122
7170
|
])
|
|
7123
7171
|
])
|
|
7124
|
-
], 10, _hoisted_5$
|
|
7125
|
-
], 16, _hoisted_4$
|
|
7172
|
+
], 10, _hoisted_5$e)
|
|
7173
|
+
], 16, _hoisted_4$j),
|
|
7126
7174
|
!!$setup.slots.bottomLeft || !!$setup.slots.pagination ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
7127
7175
|
createElementVNode("div", null, [
|
|
7128
7176
|
renderSlot(_ctx.$slots, "bottomLeft")
|
|
@@ -7136,8 +7184,8 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7136
7184
|
/* STYLE */
|
|
7137
7185
|
);
|
|
7138
7186
|
}
|
|
7139
|
-
const OnyxTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7140
|
-
const _sfc_main$
|
|
7187
|
+
const OnyxTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTable/OnyxTable.vue"]]);
|
|
7188
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
7141
7189
|
__name: "OnyxDataGridRenderer",
|
|
7142
7190
|
props: {
|
|
7143
7191
|
density: { type: null, required: false },
|
|
@@ -7173,7 +7221,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
7173
7221
|
return __returned__;
|
|
7174
7222
|
}
|
|
7175
7223
|
});
|
|
7176
|
-
function _sfc_render$
|
|
7224
|
+
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7177
7225
|
return openBlock(), createBlock($setup["OnyxTable"], mergeProps({ class: "onyx-data-grid" }, $setup.tableProps, {
|
|
7178
7226
|
"scroll-container-attrs": $setup.mergeVueProps($setup.props.scrollContainerAttrs, { style: $setup.columnStyle })
|
|
7179
7227
|
}), createSlots({
|
|
@@ -7280,8 +7328,8 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7280
7328
|
})
|
|
7281
7329
|
]), 1040, ["scroll-container-attrs"]);
|
|
7282
7330
|
}
|
|
7283
|
-
const OnyxDataGridRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7284
|
-
const _sfc_main$
|
|
7331
|
+
const OnyxDataGridRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDataGrid/OnyxDataGridRenderer/OnyxDataGridRenderer.vue"]]);
|
|
7332
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
7285
7333
|
...{ inheritAttrs: false },
|
|
7286
7334
|
__name: "OnyxMiniSearch",
|
|
7287
7335
|
props: {
|
|
@@ -7321,9 +7369,9 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
7321
7369
|
return __returned__;
|
|
7322
7370
|
}
|
|
7323
7371
|
});
|
|
7324
|
-
const _hoisted_1$
|
|
7325
|
-
const _hoisted_2$
|
|
7326
|
-
function _sfc_render$
|
|
7372
|
+
const _hoisted_1$I = ["autofocus", "placeholder", "aria-label"];
|
|
7373
|
+
const _hoisted_2$y = ["aria-label"];
|
|
7374
|
+
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7327
7375
|
return openBlock(), createElementBlock(
|
|
7328
7376
|
"div",
|
|
7329
7377
|
mergeProps({
|
|
@@ -7342,7 +7390,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7342
7390
|
size: "1"
|
|
7343
7391
|
}, $setup.restAttrs, {
|
|
7344
7392
|
"aria-label": $setup.props.label
|
|
7345
|
-
}), null, 16, _hoisted_1$
|
|
7393
|
+
}), null, 16, _hoisted_1$I), [
|
|
7346
7394
|
[vModelText, $setup.modelValue]
|
|
7347
7395
|
]),
|
|
7348
7396
|
createElementVNode("button", {
|
|
@@ -7355,7 +7403,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7355
7403
|
onClick: _cache[2] || (_cache[2] = ($event) => $setup.emit("clear"))
|
|
7356
7404
|
}, [
|
|
7357
7405
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconXSmall }, null, 8, ["icon"])
|
|
7358
|
-
], 40, _hoisted_2$
|
|
7406
|
+
], 40, _hoisted_2$y),
|
|
7359
7407
|
createVNode($setup["OnyxIcon"], {
|
|
7360
7408
|
class: "onyx-mini-search__icon",
|
|
7361
7409
|
icon: $setup.iconSearch
|
|
@@ -7365,11 +7413,11 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7365
7413
|
/* FULL_PROPS */
|
|
7366
7414
|
);
|
|
7367
7415
|
}
|
|
7368
|
-
const OnyxMiniSearch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7416
|
+
const OnyxMiniSearch = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$W], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxMiniSearch/OnyxMiniSearch.vue"]]);
|
|
7369
7417
|
const prepareMapping = (features, key) => features.flatMap((f) => f[key]).filter((f) => f?.func).sort((a, b) => (a?.order ?? 0) - (b?.order ?? 0));
|
|
7370
7418
|
const applyMapping = (mapping, input2) => mapping.reduce((output, m) => m.func(output), input2);
|
|
7371
7419
|
const DataGridRowOptionsSymbol = Symbol("RowOptions");
|
|
7372
|
-
const _sfc_main$
|
|
7420
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
7373
7421
|
__name: "HeaderCell",
|
|
7374
7422
|
props: {
|
|
7375
7423
|
label: { type: String, required: true }
|
|
@@ -7383,27 +7431,27 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
7383
7431
|
return __returned__;
|
|
7384
7432
|
}
|
|
7385
7433
|
});
|
|
7386
|
-
const _hoisted_1$
|
|
7387
|
-
const _hoisted_2$
|
|
7388
|
-
const _hoisted_3$
|
|
7434
|
+
const _hoisted_1$H = { class: "onyx-component onyx-data-grid-header-cell" };
|
|
7435
|
+
const _hoisted_2$x = { class: "onyx-data-grid-header-cell__label" };
|
|
7436
|
+
const _hoisted_3$p = {
|
|
7389
7437
|
key: 0,
|
|
7390
7438
|
class: "onyx-data-grid-header-cell__actions"
|
|
7391
7439
|
};
|
|
7392
|
-
function _sfc_render$
|
|
7393
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7440
|
+
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7441
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
7394
7442
|
createElementVNode(
|
|
7395
7443
|
"span",
|
|
7396
|
-
_hoisted_2$
|
|
7444
|
+
_hoisted_2$x,
|
|
7397
7445
|
toDisplayString($setup.props.label),
|
|
7398
7446
|
1
|
|
7399
7447
|
/* TEXT */
|
|
7400
7448
|
),
|
|
7401
|
-
$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
7449
|
+
$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_3$p, [
|
|
7402
7450
|
renderSlot(_ctx.$slots, "actions")
|
|
7403
7451
|
])) : createCommentVNode("v-if", true)
|
|
7404
7452
|
]);
|
|
7405
7453
|
}
|
|
7406
|
-
const HeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7454
|
+
const HeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDataGrid/features/HeaderCell.vue"]]);
|
|
7407
7455
|
const FALLBACK_RENDER_VALUE = "-";
|
|
7408
7456
|
const fallback = (opts) => opts?.fallback ?? FALLBACK_RENDER_VALUE;
|
|
7409
7457
|
const createTypeRenderer = (typeRenderer) => Object.freeze(typeRenderer);
|
|
@@ -7896,7 +7944,7 @@ const formatBytesToString = (locale, bytes) => {
|
|
|
7896
7944
|
unitDisplay: "narrow"
|
|
7897
7945
|
}).format(value);
|
|
7898
7946
|
};
|
|
7899
|
-
const _sfc_main$
|
|
7947
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
7900
7948
|
__name: "OnyxInlinePagination",
|
|
7901
7949
|
props: {
|
|
7902
7950
|
density: { type: null, required: false },
|
|
@@ -7948,12 +7996,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
7948
7996
|
return __returned__;
|
|
7949
7997
|
}
|
|
7950
7998
|
});
|
|
7951
|
-
const _hoisted_1$
|
|
7952
|
-
const _hoisted_2$
|
|
7953
|
-
const _hoisted_3$
|
|
7954
|
-
const _hoisted_4$
|
|
7955
|
-
const _hoisted_5$
|
|
7956
|
-
function _sfc_render$
|
|
7999
|
+
const _hoisted_1$G = ["aria-label"];
|
|
8000
|
+
const _hoisted_2$w = ["aria-label", "disabled"];
|
|
8001
|
+
const _hoisted_3$o = ["aria-label", "disabled", "onClick"];
|
|
8002
|
+
const _hoisted_4$i = ["aria-label"];
|
|
8003
|
+
const _hoisted_5$d = ["aria-label", "disabled"];
|
|
8004
|
+
function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7957
8005
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
7958
8006
|
key: 0,
|
|
7959
8007
|
class: normalizeClass([
|
|
@@ -7982,7 +8030,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7982
8030
|
onClick: _cache[0] || (_cache[0] = ($event) => $setup.emit("update:modelValue", $setup.props.modelValue - 1))
|
|
7983
8031
|
}, [
|
|
7984
8032
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronLeftSmall }, null, 8, ["icon"])
|
|
7985
|
-
], 8, _hoisted_2$
|
|
8033
|
+
], 8, _hoisted_2$w),
|
|
7986
8034
|
(openBlock(true), createElementBlock(
|
|
7987
8035
|
Fragment,
|
|
7988
8036
|
null,
|
|
@@ -8001,7 +8049,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8001
8049
|
type: "button",
|
|
8002
8050
|
disabled: $setup.props.disabled,
|
|
8003
8051
|
onClick: ($event) => $setup.emit("update:modelValue", pageNumber)
|
|
8004
|
-
}, toDisplayString(pageNumber), 11, _hoisted_3$
|
|
8052
|
+
}, toDisplayString(pageNumber), 11, _hoisted_3$o)) : (openBlock(), createElementBlock("div", {
|
|
8005
8053
|
key: 1,
|
|
8006
8054
|
class: normalizeClass(["onyx-pagination__more-pages"]),
|
|
8007
8055
|
"aria-label": $setup.t("pagination.morePages")
|
|
@@ -8024,7 +8072,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8024
8072
|
_: 1
|
|
8025
8073
|
/* STABLE */
|
|
8026
8074
|
})
|
|
8027
|
-
], 8, _hoisted_4$
|
|
8075
|
+
], 8, _hoisted_4$i))
|
|
8028
8076
|
],
|
|
8029
8077
|
64
|
|
8030
8078
|
/* STABLE_FRAGMENT */
|
|
@@ -8041,10 +8089,10 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8041
8089
|
onClick: _cache[1] || (_cache[1] = ($event) => $setup.emit("update:modelValue", $setup.props.modelValue + 1))
|
|
8042
8090
|
}, [
|
|
8043
8091
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronRightSmall }, null, 8, ["icon"])
|
|
8044
|
-
], 8, _hoisted_5$
|
|
8045
|
-
], 10, _hoisted_1$
|
|
8092
|
+
], 8, _hoisted_5$d)
|
|
8093
|
+
], 10, _hoisted_1$G));
|
|
8046
8094
|
}
|
|
8047
|
-
const OnyxInlinePagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8095
|
+
const OnyxInlinePagination = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$U], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxPagination/OnyxInlinePagination.vue"]]);
|
|
8048
8096
|
const useErrorClass = (showError) => computed(() => {
|
|
8049
8097
|
if (showError.value === true) {
|
|
8050
8098
|
return "onyx-form-element--immediate-invalid";
|
|
@@ -8054,7 +8102,7 @@ const useErrorClass = (showError) => computed(() => {
|
|
|
8054
8102
|
}
|
|
8055
8103
|
return "onyx-form-element--touched-invalid";
|
|
8056
8104
|
});
|
|
8057
|
-
const _sfc_main$
|
|
8105
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
8058
8106
|
__name: "FormMessage",
|
|
8059
8107
|
props: {
|
|
8060
8108
|
messages: { type: Object, required: true },
|
|
@@ -8068,17 +8116,17 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
8068
8116
|
return __returned__;
|
|
8069
8117
|
}
|
|
8070
8118
|
});
|
|
8071
|
-
const _hoisted_1$
|
|
8119
|
+
const _hoisted_1$F = {
|
|
8072
8120
|
class: /* @__PURE__ */ normalizeClass(["onyx-truncation-ellipsis"])
|
|
8073
8121
|
};
|
|
8074
|
-
function _sfc_render$
|
|
8122
|
+
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8075
8123
|
return openBlock(), createBlock(resolveDynamicComponent($props.messages.hidden ? $setup.OnyxVisuallyHidden : "span"), {
|
|
8076
8124
|
class: normalizeClass(["onyx-component", "onyx-form-message", `onyx-form-message__${$setup.props.type}`])
|
|
8077
8125
|
}, {
|
|
8078
8126
|
default: withCtx(() => [
|
|
8079
8127
|
createElementVNode(
|
|
8080
8128
|
"span",
|
|
8081
|
-
_hoisted_1$
|
|
8129
|
+
_hoisted_1$F,
|
|
8082
8130
|
toDisplayString($setup.props.messages.shortMessage),
|
|
8083
8131
|
1
|
|
8084
8132
|
/* TEXT */
|
|
@@ -8096,8 +8144,8 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8096
8144
|
/* STABLE */
|
|
8097
8145
|
}, 8, ["class"]);
|
|
8098
8146
|
}
|
|
8099
|
-
const FormMessage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8100
|
-
const _sfc_main$
|
|
8147
|
+
const FormMessage = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$T], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFormElement/FormMessage.vue"]]);
|
|
8148
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
8101
8149
|
__name: "OnyxFormElement",
|
|
8102
8150
|
props: {
|
|
8103
8151
|
disabled: { type: [Boolean, Symbol], required: false },
|
|
@@ -8170,17 +8218,17 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
8170
8218
|
return __returned__;
|
|
8171
8219
|
}
|
|
8172
8220
|
});
|
|
8173
|
-
const _hoisted_1$
|
|
8221
|
+
const _hoisted_1$E = {
|
|
8174
8222
|
key: 0,
|
|
8175
8223
|
class: "onyx-form-element__label onyx-text--small"
|
|
8176
8224
|
};
|
|
8177
|
-
const _hoisted_2$
|
|
8178
|
-
const _hoisted_3$
|
|
8225
|
+
const _hoisted_2$v = ["for"];
|
|
8226
|
+
const _hoisted_3$n = {
|
|
8179
8227
|
key: 1,
|
|
8180
8228
|
class: "onyx-form-element__footer onyx-text--small"
|
|
8181
8229
|
};
|
|
8182
|
-
const _hoisted_4$
|
|
8183
|
-
function _sfc_render$
|
|
8230
|
+
const _hoisted_4$h = { class: "onyx-form-element__footer-messages" };
|
|
8231
|
+
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8184
8232
|
return openBlock(), createElementBlock(
|
|
8185
8233
|
"div",
|
|
8186
8234
|
{
|
|
@@ -8192,11 +8240,11 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8192
8240
|
])
|
|
8193
8241
|
},
|
|
8194
8242
|
[
|
|
8195
|
-
!$setup.props.hideLabel ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8243
|
+
!$setup.props.hideLabel ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
8196
8244
|
createElementVNode("label", {
|
|
8197
8245
|
for: $setup.props.id,
|
|
8198
8246
|
class: "onyx-truncation-ellipsis"
|
|
8199
|
-
}, toDisplayString($setup.props.label), 9, _hoisted_2$
|
|
8247
|
+
}, toDisplayString($setup.props.label), 9, _hoisted_2$v),
|
|
8200
8248
|
$setup.props.required ? (openBlock(), createElementBlock(
|
|
8201
8249
|
"span",
|
|
8202
8250
|
{
|
|
@@ -8227,8 +8275,8 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8227
8275
|
renderSlot(_ctx.$slots, "default", {
|
|
8228
8276
|
id: $setup.props.id
|
|
8229
8277
|
}),
|
|
8230
|
-
$setup.footer ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
8231
|
-
createElementVNode("span", _hoisted_4$
|
|
8278
|
+
$setup.footer ? (openBlock(), createElementBlock("div", _hoisted_3$n, [
|
|
8279
|
+
createElementVNode("span", _hoisted_4$h, [
|
|
8232
8280
|
$setup.footer.errorMessages ? (openBlock(), createBlock($setup["FormMessage"], {
|
|
8233
8281
|
key: 0,
|
|
8234
8282
|
class: "onyx-form-element__error-message",
|
|
@@ -8267,8 +8315,8 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8267
8315
|
/* CLASS */
|
|
8268
8316
|
);
|
|
8269
8317
|
}
|
|
8270
|
-
const OnyxFormElement = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8271
|
-
const _sfc_main$
|
|
8318
|
+
const OnyxFormElement = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$S], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFormElement/OnyxFormElement.vue"]]);
|
|
8319
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
8272
8320
|
...{ inheritAttrs: false },
|
|
8273
8321
|
__name: "OnyxSelectInput",
|
|
8274
8322
|
props: {
|
|
@@ -8351,9 +8399,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8351
8399
|
return __returned__;
|
|
8352
8400
|
}
|
|
8353
8401
|
});
|
|
8354
|
-
const _hoisted_1$
|
|
8355
|
-
const _hoisted_2$
|
|
8356
|
-
function _sfc_render$
|
|
8402
|
+
const _hoisted_1$D = ["id", "readonly", "placeholder", "required", "disabled", "aria-label", "title", "value", "autofocus"];
|
|
8403
|
+
const _hoisted_2$u = ["aria-label", "title", "disabled"];
|
|
8404
|
+
function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8357
8405
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
8358
8406
|
"div",
|
|
8359
8407
|
mergeProps({
|
|
@@ -8418,7 +8466,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8418
8466
|
autofocus: $setup.props.autofocus,
|
|
8419
8467
|
autocomplete: "off",
|
|
8420
8468
|
onKeydown: $setup.blockTyping
|
|
8421
|
-
}), null, 16, _hoisted_1$
|
|
8469
|
+
}), null, 16, _hoisted_1$D), [
|
|
8422
8470
|
[$setup["vCustomValidity"]]
|
|
8423
8471
|
]),
|
|
8424
8472
|
$setup.props.textMode === "preview" && $setup.selectionCount > 0 ? (openBlock(), createBlock($setup["OnyxTooltip"], {
|
|
@@ -8457,7 +8505,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8457
8505
|
disabled: $setup.disabled || $setup.props.readonly || $setup.props.loading
|
|
8458
8506
|
}, [
|
|
8459
8507
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronDownUp }, null, 8, ["icon"])
|
|
8460
|
-
], 8, _hoisted_2$
|
|
8508
|
+
], 8, _hoisted_2$u),
|
|
8461
8509
|
!$setup.props.hideSuccessIcon && $setup.successMessages ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
8462
8510
|
key: 2,
|
|
8463
8511
|
class: "onyx-select-input__check-icon",
|
|
@@ -8474,8 +8522,8 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8474
8522
|
/* FULL_PROPS */
|
|
8475
8523
|
));
|
|
8476
8524
|
}
|
|
8477
|
-
const OnyxSelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8478
|
-
const _sfc_main$
|
|
8525
|
+
const OnyxSelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$R], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSelectInput/OnyxSelectInput.vue"]]);
|
|
8526
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
8479
8527
|
__name: "OnyxSelectOption",
|
|
8480
8528
|
props: {
|
|
8481
8529
|
active: { type: Boolean, required: false, default: false },
|
|
@@ -8494,8 +8542,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
8494
8542
|
return __returned__;
|
|
8495
8543
|
}
|
|
8496
8544
|
});
|
|
8497
|
-
const _hoisted_1$
|
|
8498
|
-
function _sfc_render$
|
|
8545
|
+
const _hoisted_1$C = ["checked", "aria-labelledby", "disabled", "indeterminate"];
|
|
8546
|
+
function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8499
8547
|
return openBlock(), createBlock($setup["OnyxListItem"], mergeProps({ class: "onyx-component onyx-select-option" }, $setup.listItemProps, {
|
|
8500
8548
|
checked: !!_ctx.$attrs["aria-checked"],
|
|
8501
8549
|
selected: !!_ctx.$attrs["aria-selected"],
|
|
@@ -8512,7 +8560,7 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8512
8560
|
tabindex: "-1",
|
|
8513
8561
|
class: "onyx-select-option__checkbox",
|
|
8514
8562
|
type: "checkbox"
|
|
8515
|
-
}, null, 8, _hoisted_1$
|
|
8563
|
+
}, null, 8, _hoisted_1$C)) : createCommentVNode("v-if", true),
|
|
8516
8564
|
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
8517
8565
|
key: 1,
|
|
8518
8566
|
icon: $setup.props.icon
|
|
@@ -8533,8 +8581,8 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8533
8581
|
/* FORWARDED */
|
|
8534
8582
|
}, 16, ["checked", "selected", "disabled"]);
|
|
8535
8583
|
}
|
|
8536
|
-
const OnyxSelectOption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8537
|
-
const _sfc_main$
|
|
8584
|
+
const OnyxSelectOption = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$Q], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSelectOption/OnyxSelectOption.vue"]]);
|
|
8585
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
8538
8586
|
__name: "OnyxSelect",
|
|
8539
8587
|
props: {
|
|
8540
8588
|
density: { type: null, required: false },
|
|
@@ -8804,33 +8852,33 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
8804
8852
|
return __returned__;
|
|
8805
8853
|
}
|
|
8806
8854
|
});
|
|
8807
|
-
const _hoisted_1$
|
|
8855
|
+
const _hoisted_1$B = {
|
|
8808
8856
|
ref: "selectRef",
|
|
8809
8857
|
class: "onyx-component onyx-select-wrapper"
|
|
8810
8858
|
};
|
|
8811
|
-
const _hoisted_2$
|
|
8859
|
+
const _hoisted_2$t = {
|
|
8812
8860
|
class: "onyx-select__wrapper",
|
|
8813
8861
|
tabindex: "-1"
|
|
8814
8862
|
};
|
|
8815
|
-
const _hoisted_3$
|
|
8863
|
+
const _hoisted_3$m = {
|
|
8816
8864
|
key: 0,
|
|
8817
8865
|
role: "group",
|
|
8818
8866
|
class: "onyx-select__group"
|
|
8819
8867
|
};
|
|
8820
|
-
const _hoisted_4$
|
|
8868
|
+
const _hoisted_4$g = {
|
|
8821
8869
|
role: "option",
|
|
8822
8870
|
"aria-selected": "false"
|
|
8823
8871
|
};
|
|
8824
|
-
const _hoisted_5$
|
|
8872
|
+
const _hoisted_5$c = {
|
|
8825
8873
|
key: 0,
|
|
8826
8874
|
role: "presentation",
|
|
8827
8875
|
class: "onyx-select__group-name onyx-text--small"
|
|
8828
8876
|
};
|
|
8829
|
-
const _hoisted_6$
|
|
8877
|
+
const _hoisted_6$9 = {
|
|
8830
8878
|
key: 1,
|
|
8831
8879
|
class: "onyx-select__slot"
|
|
8832
8880
|
};
|
|
8833
|
-
const _hoisted_7$
|
|
8881
|
+
const _hoisted_7$5 = {
|
|
8834
8882
|
key: 2,
|
|
8835
8883
|
class: "onyx-select__slot"
|
|
8836
8884
|
};
|
|
@@ -8838,10 +8886,10 @@ const _hoisted_8$4 = {
|
|
|
8838
8886
|
key: 0,
|
|
8839
8887
|
class: "onyx-select__description onyx-text--small"
|
|
8840
8888
|
};
|
|
8841
|
-
function _sfc_render$
|
|
8889
|
+
function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8842
8890
|
return openBlock(), createElementBlock(
|
|
8843
8891
|
"div",
|
|
8844
|
-
_hoisted_1$
|
|
8892
|
+
_hoisted_1$B,
|
|
8845
8893
|
[
|
|
8846
8894
|
createVNode($setup["OnyxBasicPopover"], {
|
|
8847
8895
|
class: normalizeClass($setup.densityClass),
|
|
@@ -8860,7 +8908,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8860
8908
|
}), null, 16, ["show-focus", "autofocus"])
|
|
8861
8909
|
]),
|
|
8862
8910
|
content: withCtx(() => [
|
|
8863
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_2$
|
|
8911
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_2$t, [
|
|
8864
8912
|
$setup.props.withSearch ? (openBlock(), createBlock($setup["OnyxMiniSearch"], mergeProps({
|
|
8865
8913
|
key: 0,
|
|
8866
8914
|
ref: "miniSearchRef",
|
|
@@ -8875,8 +8923,8 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8875
8923
|
"div",
|
|
8876
8924
|
normalizeProps(guardReactiveProps($setup.listbox)),
|
|
8877
8925
|
[
|
|
8878
|
-
$setup.isEmptyMessage ? (openBlock(), createElementBlock("ul", _hoisted_3$
|
|
8879
|
-
createElementVNode("li", _hoisted_4$
|
|
8926
|
+
$setup.isEmptyMessage ? (openBlock(), createElementBlock("ul", _hoisted_3$m, [
|
|
8927
|
+
createElementVNode("li", _hoisted_4$g, [
|
|
8880
8928
|
renderSlot(_ctx.$slots, "empty", { defaultMessage: $setup.isEmptyMessage }, () => [
|
|
8881
8929
|
createVNode($setup["OnyxEmpty"], {
|
|
8882
8930
|
density: $setup.props.density
|
|
@@ -8945,7 +8993,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8945
8993
|
[
|
|
8946
8994
|
group.name !== "" ? (openBlock(), createElementBlock(
|
|
8947
8995
|
"li",
|
|
8948
|
-
_hoisted_5$
|
|
8996
|
+
_hoisted_5$c,
|
|
8949
8997
|
toDisplayString(group.name),
|
|
8950
8998
|
1
|
|
8951
8999
|
/* TEXT */
|
|
@@ -9005,10 +9053,10 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9005
9053
|
16
|
|
9006
9054
|
/* FULL_PROPS */
|
|
9007
9055
|
),
|
|
9008
|
-
$setup.props.lazyLoading?.loading ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
9056
|
+
$setup.props.lazyLoading?.loading ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
|
|
9009
9057
|
createVNode($setup["OnyxLoadingIndicator"], { class: "onyx-select__loading" })
|
|
9010
9058
|
])) : createCommentVNode("v-if", true),
|
|
9011
|
-
$setup.slots.optionsEnd ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
9059
|
+
$setup.slots.optionsEnd ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
|
|
9012
9060
|
renderSlot(_ctx.$slots, "optionsEnd")
|
|
9013
9061
|
])) : createCommentVNode("v-if", true)
|
|
9014
9062
|
])), [
|
|
@@ -9030,9 +9078,9 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9030
9078
|
/* NEED_PATCH */
|
|
9031
9079
|
);
|
|
9032
9080
|
}
|
|
9033
|
-
const OnyxSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9081
|
+
const OnyxSelect = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$P], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSelect/OnyxSelect.vue"]]);
|
|
9034
9082
|
const pageSize = 100;
|
|
9035
|
-
const _sfc_main$
|
|
9083
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
9036
9084
|
__name: "OnyxSelectPagination",
|
|
9037
9085
|
props: {
|
|
9038
9086
|
density: { type: null, required: false },
|
|
@@ -9084,11 +9132,11 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
9084
9132
|
return __returned__;
|
|
9085
9133
|
}
|
|
9086
9134
|
});
|
|
9087
|
-
const _hoisted_1$
|
|
9088
|
-
const _hoisted_2$
|
|
9089
|
-
const _hoisted_3$
|
|
9090
|
-
const _hoisted_4$
|
|
9091
|
-
function _sfc_render$
|
|
9135
|
+
const _hoisted_1$A = ["aria-label"];
|
|
9136
|
+
const _hoisted_2$s = { class: "onyx-pagination__count" };
|
|
9137
|
+
const _hoisted_3$l = ["aria-label", "disabled"];
|
|
9138
|
+
const _hoisted_4$f = ["aria-label", "disabled"];
|
|
9139
|
+
function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9092
9140
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
9093
9141
|
key: 0,
|
|
9094
9142
|
class: normalizeClass(["onyx-pagination-skeleton", "onyx-text", $setup.densityClass])
|
|
@@ -9119,7 +9167,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9119
9167
|
}, null, 8, ["search-term", "label", "list-label", "options", "model-value", "value-label", "disabled"]),
|
|
9120
9168
|
createElementVNode(
|
|
9121
9169
|
"div",
|
|
9122
|
-
_hoisted_2$
|
|
9170
|
+
_hoisted_2$s,
|
|
9123
9171
|
toDisplayString($setup.t("pagination.ofPages", { n: $setup.props.pages, pages: $setup.n($setup.props.pages, "decimal") })),
|
|
9124
9172
|
1
|
|
9125
9173
|
/* TEXT */
|
|
@@ -9132,7 +9180,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9132
9180
|
onClick: _cache[2] || (_cache[2] = ($event) => $setup.emit("update:modelValue", $setup.props.modelValue - 1))
|
|
9133
9181
|
}, [
|
|
9134
9182
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronLeftSmall }, null, 8, ["icon"])
|
|
9135
|
-
], 8, _hoisted_3$
|
|
9183
|
+
], 8, _hoisted_3$l),
|
|
9136
9184
|
createElementVNode("button", {
|
|
9137
9185
|
class: "onyx-pagination__button",
|
|
9138
9186
|
"aria-label": $setup.t("pagination.next"),
|
|
@@ -9141,11 +9189,11 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9141
9189
|
onClick: _cache[3] || (_cache[3] = ($event) => $setup.emit("update:modelValue", $setup.props.modelValue + 1))
|
|
9142
9190
|
}, [
|
|
9143
9191
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronRightSmall }, null, 8, ["icon"])
|
|
9144
|
-
], 8, _hoisted_4$
|
|
9145
|
-
], 14, _hoisted_1$
|
|
9192
|
+
], 8, _hoisted_4$f)
|
|
9193
|
+
], 14, _hoisted_1$A));
|
|
9146
9194
|
}
|
|
9147
|
-
const OnyxSelectPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9148
|
-
const _sfc_main$
|
|
9195
|
+
const OnyxSelectPagination = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$O], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxPagination/OnyxSelectPagination.vue"]]);
|
|
9196
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
9149
9197
|
__name: "OnyxPagination",
|
|
9150
9198
|
props: {
|
|
9151
9199
|
density: { type: null, required: false },
|
|
@@ -9166,7 +9214,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
9166
9214
|
return __returned__;
|
|
9167
9215
|
}
|
|
9168
9216
|
});
|
|
9169
|
-
function _sfc_render$
|
|
9217
|
+
function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9170
9218
|
return $setup.props.type === "inline" ? (openBlock(), createBlock(
|
|
9171
9219
|
$setup["OnyxInlinePagination"],
|
|
9172
9220
|
mergeProps({ key: 0 }, $setup.paginationProps, {
|
|
@@ -9185,7 +9233,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9185
9233
|
/* FULL_PROPS */
|
|
9186
9234
|
));
|
|
9187
9235
|
}
|
|
9188
|
-
const OnyxPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9236
|
+
const OnyxPagination = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$N], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxPagination/OnyxPagination.vue"]]);
|
|
9189
9237
|
const SELECTION_FEATURE = Symbol("Selection");
|
|
9190
9238
|
const SELECTION_MUTATION_ORDER = 1e3;
|
|
9191
9239
|
const useSelection = (options) => createFeature((ctx) => {
|
|
@@ -9463,7 +9511,7 @@ const BASE_FEATURE = (options) => createFeature(({ skeleton }) => {
|
|
|
9463
9511
|
}
|
|
9464
9512
|
};
|
|
9465
9513
|
});
|
|
9466
|
-
const _sfc_main$
|
|
9514
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
9467
9515
|
...{ inheritAttrs: false },
|
|
9468
9516
|
__name: "OnyxDataGrid",
|
|
9469
9517
|
props: {
|
|
@@ -9542,7 +9590,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
9542
9590
|
return __returned__;
|
|
9543
9591
|
}
|
|
9544
9592
|
});
|
|
9545
|
-
function _sfc_render$
|
|
9593
|
+
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9546
9594
|
return openBlock(), createBlock($setup["OnyxDataGridRenderer"], mergeProps(
|
|
9547
9595
|
{
|
|
9548
9596
|
"column-groups": $setup.rendererColumnGroups,
|
|
@@ -9577,7 +9625,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9577
9625
|
} : void 0
|
|
9578
9626
|
]), 1040, ["column-groups", "columns", "rows", "scroll-container-attrs"]);
|
|
9579
9627
|
}
|
|
9580
|
-
const OnyxDataGrid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9628
|
+
const OnyxDataGrid = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$M], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDataGrid/OnyxDataGrid.vue"]]);
|
|
9581
9629
|
const HIDE_COLUMNS_FEATURE = Symbol("HideColumnsFeature");
|
|
9582
9630
|
const HIDDEN_COLUMN = Symbol("HiddenColumn");
|
|
9583
9631
|
const useHideColumns = (options) => createFeature((ctx) => {
|
|
@@ -9683,7 +9731,7 @@ const useHideColumns = (options) => createFeature((ctx) => {
|
|
|
9683
9731
|
}
|
|
9684
9732
|
};
|
|
9685
9733
|
});
|
|
9686
|
-
const _sfc_main$
|
|
9734
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
9687
9735
|
__name: "OnyxResizeHandle",
|
|
9688
9736
|
props: {
|
|
9689
9737
|
element: { type: null, required: true },
|
|
@@ -9758,7 +9806,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
9758
9806
|
return __returned__;
|
|
9759
9807
|
}
|
|
9760
9808
|
});
|
|
9761
|
-
function _sfc_render$
|
|
9809
|
+
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9762
9810
|
return openBlock(), createElementBlock(
|
|
9763
9811
|
"button",
|
|
9764
9812
|
{
|
|
@@ -9792,7 +9840,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9792
9840
|
/* CLASS, NEED_HYDRATION */
|
|
9793
9841
|
);
|
|
9794
9842
|
}
|
|
9795
|
-
const OnyxResizeHandle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9843
|
+
const OnyxResizeHandle = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$L], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxResizeHandle/OnyxResizeHandle.vue"]]);
|
|
9796
9844
|
const RESIZING_FEATURE = Symbol("Resizing");
|
|
9797
9845
|
const FILLER_COLUMN = Symbol("FILLER_COLUMN");
|
|
9798
9846
|
const useResizing = (options) => createFeature((ctx) => {
|
|
@@ -9934,7 +9982,7 @@ const DEFAULT_COMPARES = Object.freeze({
|
|
|
9934
9982
|
skeleton: () => 0,
|
|
9935
9983
|
boolean: BOOLEAN_COMPARE
|
|
9936
9984
|
});
|
|
9937
|
-
const _sfc_main$
|
|
9985
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
9938
9986
|
__name: "SortAction",
|
|
9939
9987
|
props: {
|
|
9940
9988
|
columnLabel: { type: String, required: true },
|
|
@@ -9958,14 +10006,14 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
9958
10006
|
return __returned__;
|
|
9959
10007
|
}
|
|
9960
10008
|
});
|
|
9961
|
-
function _sfc_render$
|
|
10009
|
+
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9962
10010
|
return openBlock(), createBlock($setup["OnyxSystemButton"], {
|
|
9963
10011
|
label: $setup.buttonLabel,
|
|
9964
10012
|
icon: $setup.icon,
|
|
9965
10013
|
color: "medium"
|
|
9966
10014
|
}, null, 8, ["label", "icon"]);
|
|
9967
10015
|
}
|
|
9968
|
-
const SortAction = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10016
|
+
const SortAction = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$K], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDataGrid/features/sorting/SortAction.vue"]]);
|
|
9969
10017
|
const nextSortDirection = (current, skipNone) => {
|
|
9970
10018
|
switch (current) {
|
|
9971
10019
|
case "asc":
|
|
@@ -10208,7 +10256,7 @@ const all = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
10208
10256
|
useSorting,
|
|
10209
10257
|
useStickyColumns
|
|
10210
10258
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10211
|
-
const _sfc_main$
|
|
10259
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
10212
10260
|
...{ inheritAttrs: false },
|
|
10213
10261
|
__name: "OnyxDatePicker",
|
|
10214
10262
|
props: {
|
|
@@ -10275,9 +10323,9 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
10275
10323
|
return __returned__;
|
|
10276
10324
|
}
|
|
10277
10325
|
});
|
|
10278
|
-
const _hoisted_1$
|
|
10279
|
-
const _hoisted_2$
|
|
10280
|
-
function _sfc_render$
|
|
10326
|
+
const _hoisted_1$z = { class: "onyx-datepicker__wrapper" };
|
|
10327
|
+
const _hoisted_2$r = ["id", "type", "required", "autofocus", "name", "readonly", "disabled", "aria-label", "title", "min", "max"];
|
|
10328
|
+
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10281
10329
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
10282
10330
|
"div",
|
|
10283
10331
|
mergeProps({
|
|
@@ -10306,7 +10354,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10306
10354
|
message: $setup.messages
|
|
10307
10355
|
}), {
|
|
10308
10356
|
default: withCtx(({ id: inputId }) => [
|
|
10309
|
-
createElementVNode("div", _hoisted_1$
|
|
10357
|
+
createElementVNode("div", _hoisted_1$z, [
|
|
10310
10358
|
$setup.props.loading ? (openBlock(), createBlock($setup["OnyxLoadingIndicator"], {
|
|
10311
10359
|
key: 0,
|
|
10312
10360
|
class: "onyx-datepicker__loading",
|
|
@@ -10328,7 +10376,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10328
10376
|
title: $setup.props.hideLabel ? $setup.props.label : void 0,
|
|
10329
10377
|
min: $setup.getNormalizedDate($setup.props.min),
|
|
10330
10378
|
max: $setup.getNormalizedDate($setup.props.max)
|
|
10331
|
-
}, $setup.restAttrs), null, 16, _hoisted_2$
|
|
10379
|
+
}, $setup.restAttrs), null, 16, _hoisted_2$r)), [
|
|
10332
10380
|
[vModelDynamic, $setup.value],
|
|
10333
10381
|
[$setup["vCustomValidity"]]
|
|
10334
10382
|
])
|
|
@@ -10342,9 +10390,9 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10342
10390
|
/* FULL_PROPS */
|
|
10343
10391
|
));
|
|
10344
10392
|
}
|
|
10345
|
-
const OnyxDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10393
|
+
const OnyxDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$J], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDatePicker/OnyxDatePicker.vue"]]);
|
|
10346
10394
|
const DIALOG_ALIGNMENTS = ["left", "center", "right"];
|
|
10347
|
-
const _sfc_main$
|
|
10395
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
10348
10396
|
__name: "OnyxDialog",
|
|
10349
10397
|
props: {
|
|
10350
10398
|
density: { type: null, required: false },
|
|
@@ -10378,15 +10426,15 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
10378
10426
|
return __returned__;
|
|
10379
10427
|
}
|
|
10380
10428
|
});
|
|
10381
|
-
const _hoisted_1$
|
|
10382
|
-
const _hoisted_2$
|
|
10383
|
-
const _hoisted_3$
|
|
10384
|
-
const _hoisted_4$
|
|
10385
|
-
const _hoisted_5$
|
|
10429
|
+
const _hoisted_1$y = { class: "onyx-dialog__header" };
|
|
10430
|
+
const _hoisted_2$q = { class: "onyx-dialog__headline" };
|
|
10431
|
+
const _hoisted_3$k = { class: "onyx-dialog__headline-content" };
|
|
10432
|
+
const _hoisted_4$e = { class: "onyx-dialog__body" };
|
|
10433
|
+
const _hoisted_5$b = {
|
|
10386
10434
|
key: 0,
|
|
10387
10435
|
class: "onyx-dialog__footer"
|
|
10388
10436
|
};
|
|
10389
|
-
function _sfc_render$
|
|
10437
|
+
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10390
10438
|
return openBlock(), createBlock($setup["OnyxBasicPopover"], mergeProps($setup.basicPopoverProps, {
|
|
10391
10439
|
open: $setup.isExpanded,
|
|
10392
10440
|
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => $setup.isExpanded = $event),
|
|
@@ -10396,9 +10444,9 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10396
10444
|
renderSlot(_ctx.$slots, "trigger", { trigger })
|
|
10397
10445
|
]),
|
|
10398
10446
|
content: withCtx(() => [
|
|
10399
|
-
createElementVNode("div", _hoisted_1$
|
|
10400
|
-
createElementVNode("div", _hoisted_2$
|
|
10401
|
-
createElementVNode("div", _hoisted_3$
|
|
10447
|
+
createElementVNode("div", _hoisted_1$y, [
|
|
10448
|
+
createElementVNode("div", _hoisted_2$q, [
|
|
10449
|
+
createElementVNode("div", _hoisted_3$k, [
|
|
10402
10450
|
renderSlot(_ctx.$slots, "headline", {
|
|
10403
10451
|
label: $setup.props.label
|
|
10404
10452
|
}, () => [
|
|
@@ -10424,10 +10472,10 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10424
10472
|
}, null, 8, ["label", "icon"])) : createCommentVNode("v-if", true)
|
|
10425
10473
|
])
|
|
10426
10474
|
]),
|
|
10427
|
-
createElementVNode("div", _hoisted_4$
|
|
10475
|
+
createElementVNode("div", _hoisted_4$e, [
|
|
10428
10476
|
renderSlot(_ctx.$slots, "default")
|
|
10429
10477
|
]),
|
|
10430
|
-
!!$setup.slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
10478
|
+
!!$setup.slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
10431
10479
|
renderSlot(_ctx.$slots, "footer")
|
|
10432
10480
|
])) : createCommentVNode("v-if", true)
|
|
10433
10481
|
]),
|
|
@@ -10435,8 +10483,8 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10435
10483
|
/* FORWARDED */
|
|
10436
10484
|
}, 16, ["open", "class"]);
|
|
10437
10485
|
}
|
|
10438
|
-
const OnyxDialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10439
|
-
const _sfc_main$
|
|
10486
|
+
const OnyxDialog = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$I], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDialog/OnyxDialog.vue"]]);
|
|
10487
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
10440
10488
|
__name: "OnyxForm",
|
|
10441
10489
|
props: {
|
|
10442
10490
|
disabled: { type: Boolean, required: false, default: false },
|
|
@@ -10456,7 +10504,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
10456
10504
|
return __returned__;
|
|
10457
10505
|
}
|
|
10458
10506
|
});
|
|
10459
|
-
function _sfc_render$
|
|
10507
|
+
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10460
10508
|
return openBlock(), createElementBlock(
|
|
10461
10509
|
"form",
|
|
10462
10510
|
{
|
|
@@ -10473,119 +10521,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10473
10521
|
/* CLASS */
|
|
10474
10522
|
);
|
|
10475
10523
|
}
|
|
10476
|
-
const OnyxForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10477
|
-
const HEADLINE_TYPES = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
10478
|
-
const ICON_SIZES = ["12px", "16px", "24px", "32px", "48px", "64px", "96px"];
|
|
10479
|
-
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
10480
|
-
...{ inheritAttrs: false },
|
|
10481
|
-
__name: "OnyxImage",
|
|
10482
|
-
props: {
|
|
10483
|
-
src: { type: [String, Object], required: true },
|
|
10484
|
-
alt: { type: String, required: true },
|
|
10485
|
-
width: { type: Number, required: true },
|
|
10486
|
-
height: { type: Number, required: true },
|
|
10487
|
-
loading: { type: String, required: false, default: "lazy" },
|
|
10488
|
-
shape: { type: null, required: false },
|
|
10489
|
-
skeleton: { type: [Symbol, Boolean, Number], required: false, default: SKELETON_INJECTED_SYMBOL }
|
|
10490
|
-
},
|
|
10491
|
-
setup(__props, { expose: __expose }) {
|
|
10492
|
-
__expose();
|
|
10493
|
-
const props = __props;
|
|
10494
|
-
const skeleton = useSkeletonContext(props);
|
|
10495
|
-
const isError = ref(false);
|
|
10496
|
-
watch(
|
|
10497
|
-
() => props.src,
|
|
10498
|
-
() => isError.value = false,
|
|
10499
|
-
{ deep: true }
|
|
10500
|
-
);
|
|
10501
|
-
const imageSrc = computed(() => {
|
|
10502
|
-
if (typeof props.src === "string") return { light: props.src, dark: void 0 };
|
|
10503
|
-
return props.src;
|
|
10504
|
-
});
|
|
10505
|
-
const size = computed(() => {
|
|
10506
|
-
const width = props.shape === "circle" ? Math.min(props.width, props.height) : props.width;
|
|
10507
|
-
const height = props.shape === "circle" ? Math.min(props.width, props.height) : props.height;
|
|
10508
|
-
return { width: `${width}px`, height: `${height}px` };
|
|
10509
|
-
});
|
|
10510
|
-
const { restAttrs, rootAttrs } = useRootAttrs();
|
|
10511
|
-
const __returned__ = { props, skeleton, isError, imageSrc, size, restAttrs, rootAttrs, get iconFileDisabled() {
|
|
10512
|
-
return iconFileDisabled;
|
|
10513
|
-
}, OnyxIcon, OnyxSkeleton };
|
|
10514
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
10515
|
-
return __returned__;
|
|
10516
|
-
}
|
|
10517
|
-
});
|
|
10518
|
-
const _hoisted_1$u = ["src", "alt"];
|
|
10519
|
-
const _hoisted_2$n = ["src", "alt"];
|
|
10520
|
-
const _hoisted_3$h = { class: "onyx-image__alt onyx-text--small" };
|
|
10521
|
-
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10522
|
-
return openBlock(), createElementBlock(
|
|
10523
|
-
"figure",
|
|
10524
|
-
mergeProps($setup.rootAttrs, {
|
|
10525
|
-
class: [
|
|
10526
|
-
"onyx-component",
|
|
10527
|
-
"onyx-image",
|
|
10528
|
-
{ "onyx-image--error": $setup.isError, [`onyx-image--${$setup.props.shape}`]: $setup.props.shape }
|
|
10529
|
-
]
|
|
10530
|
-
}),
|
|
10531
|
-
[
|
|
10532
|
-
$setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], mergeProps({
|
|
10533
|
-
key: 0,
|
|
10534
|
-
class: "onyx-image__source",
|
|
10535
|
-
style: $setup.size
|
|
10536
|
-
}, $setup.restAttrs), null, 16, ["style"])) : (openBlock(), createElementBlock(
|
|
10537
|
-
Fragment,
|
|
10538
|
-
{ key: 1 },
|
|
10539
|
-
[
|
|
10540
|
-
createElementVNode("img", mergeProps({
|
|
10541
|
-
class: ["onyx-image__source", { "onyx-image__source--light": $setup.imageSrc.dark }]
|
|
10542
|
-
}, { ...$setup.restAttrs, ...$setup.props }, {
|
|
10543
|
-
src: $setup.imageSrc.light,
|
|
10544
|
-
alt: $setup.props.alt,
|
|
10545
|
-
onError: _cache[0] || (_cache[0] = ($event) => $setup.isError = true)
|
|
10546
|
-
}), null, 16, _hoisted_1$u),
|
|
10547
|
-
$setup.imageSrc.dark ? (openBlock(), createElementBlock("img", mergeProps({
|
|
10548
|
-
key: 0,
|
|
10549
|
-
class: "onyx-image__source onyx-image__source--dark"
|
|
10550
|
-
}, { ...$setup.restAttrs, ...$setup.props }, {
|
|
10551
|
-
src: $setup.imageSrc.dark,
|
|
10552
|
-
alt: $setup.props.alt,
|
|
10553
|
-
onError: _cache[1] || (_cache[1] = ($event) => $setup.isError = true)
|
|
10554
|
-
}), null, 16, _hoisted_2$n)) : createCommentVNode("v-if", true),
|
|
10555
|
-
$setup.isError ? (openBlock(), createElementBlock(
|
|
10556
|
-
"div",
|
|
10557
|
-
mergeProps({
|
|
10558
|
-
key: 1,
|
|
10559
|
-
class: "onyx-image__error",
|
|
10560
|
-
style: $setup.size
|
|
10561
|
-
}, $setup.restAttrs),
|
|
10562
|
-
[
|
|
10563
|
-
createVNode($setup["OnyxIcon"], {
|
|
10564
|
-
icon: $setup.iconFileDisabled,
|
|
10565
|
-
size: "32px"
|
|
10566
|
-
}, null, 8, ["icon"]),
|
|
10567
|
-
createElementVNode(
|
|
10568
|
-
"div",
|
|
10569
|
-
_hoisted_3$h,
|
|
10570
|
-
toDisplayString($setup.props.alt),
|
|
10571
|
-
1
|
|
10572
|
-
/* TEXT */
|
|
10573
|
-
)
|
|
10574
|
-
],
|
|
10575
|
-
16
|
|
10576
|
-
/* FULL_PROPS */
|
|
10577
|
-
)) : createCommentVNode("v-if", true)
|
|
10578
|
-
],
|
|
10579
|
-
64
|
|
10580
|
-
/* STABLE_FRAGMENT */
|
|
10581
|
-
))
|
|
10582
|
-
],
|
|
10583
|
-
16
|
|
10584
|
-
/* FULL_PROPS */
|
|
10585
|
-
);
|
|
10586
|
-
}
|
|
10587
|
-
const OnyxImage = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$D], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxImage/OnyxImage.vue"]]);
|
|
10588
|
-
const IMAGE_SHAPES = ["rounded", "circle", "clip", "clip-inverted"];
|
|
10524
|
+
const OnyxForm = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$H], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxForm/OnyxForm.vue"]]);
|
|
10589
10525
|
const useLenientMaxLengthValidation = (options) => {
|
|
10590
10526
|
const { t } = injectI18n();
|
|
10591
10527
|
const normalized = computed(() => {
|
|
@@ -10625,7 +10561,7 @@ const MOBILE_NAV_BAR_INJECTION_KEY = Symbol();
|
|
|
10625
10561
|
const NAV_BAR_IS_TOP_LEVEL_INJECTION_KEY = Symbol();
|
|
10626
10562
|
const NAV_BAR_MORE_LIST_INJECTION_KEY = Symbol();
|
|
10627
10563
|
const NAV_BAR_MORE_LIST_TARGET_INJECTION_KEY = Symbol();
|
|
10628
|
-
const _sfc_main$
|
|
10564
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
10629
10565
|
__name: "OnyxSeparator",
|
|
10630
10566
|
props: {
|
|
10631
10567
|
orientation: { type: null, required: false, default: "horizontal" }
|
|
@@ -10642,16 +10578,16 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
10642
10578
|
return __returned__;
|
|
10643
10579
|
}
|
|
10644
10580
|
});
|
|
10645
|
-
const _hoisted_1$
|
|
10646
|
-
function _sfc_render$
|
|
10581
|
+
const _hoisted_1$x = ["aria-orientation"];
|
|
10582
|
+
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10647
10583
|
return openBlock(), createElementBlock("div", {
|
|
10648
10584
|
class: normalizeClass(["onyx-component onyx-separator", { "onyx-separator--vertical": $setup.isVertical }]),
|
|
10649
10585
|
role: "separator",
|
|
10650
10586
|
"aria-orientation": $setup.props.orientation
|
|
10651
|
-
}, null, 10, _hoisted_1$
|
|
10587
|
+
}, null, 10, _hoisted_1$x);
|
|
10652
10588
|
}
|
|
10653
|
-
const OnyxSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10654
|
-
const _sfc_main$
|
|
10589
|
+
const OnyxSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$G], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSeparator/OnyxSeparator.vue"]]);
|
|
10590
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
10655
10591
|
...{ inheritAttrs: false },
|
|
10656
10592
|
__name: "OnyxInput",
|
|
10657
10593
|
props: {
|
|
@@ -10740,10 +10676,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
10740
10676
|
return __returned__;
|
|
10741
10677
|
}
|
|
10742
10678
|
});
|
|
10743
|
-
const _hoisted_1$
|
|
10744
|
-
const _hoisted_2$
|
|
10745
|
-
const _hoisted_3$
|
|
10746
|
-
function _sfc_render$
|
|
10679
|
+
const _hoisted_1$w = { class: "onyx-input__wrapper" };
|
|
10680
|
+
const _hoisted_2$p = ["id", "placeholder", "type", "required", "autocapitalize", "autocomplete", "autofocus", "name", "pattern", "readonly", "disabled", "maxlength", "minlength", "aria-label", "title"];
|
|
10681
|
+
const _hoisted_3$j = ["aria-label", "title"];
|
|
10682
|
+
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10747
10683
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
10748
10684
|
"div",
|
|
10749
10685
|
mergeProps({
|
|
@@ -10772,7 +10708,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10772
10708
|
message: $setup.messages
|
|
10773
10709
|
}), {
|
|
10774
10710
|
default: withCtx(({ id: inputId }) => [
|
|
10775
|
-
createElementVNode("div", _hoisted_1$
|
|
10711
|
+
createElementVNode("div", _hoisted_1$w, [
|
|
10776
10712
|
renderSlot(_ctx.$slots, "leading"),
|
|
10777
10713
|
$setup.slots.leading ? (openBlock(), createBlock($setup["OnyxSeparator"], {
|
|
10778
10714
|
key: 0,
|
|
@@ -10803,7 +10739,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10803
10739
|
minlength: $setup.props.minlength,
|
|
10804
10740
|
"aria-label": $setup.props.hideLabel ? $setup.props.label : void 0,
|
|
10805
10741
|
title: $setup.props.hideLabel ? $setup.props.label : void 0
|
|
10806
|
-
}, $setup.restAttrs), null, 16, _hoisted_2$
|
|
10742
|
+
}, $setup.restAttrs), null, 16, _hoisted_2$p), [
|
|
10807
10743
|
[vModelDynamic, $setup.modelValue],
|
|
10808
10744
|
[$setup["vCustomValidity"]]
|
|
10809
10745
|
]),
|
|
@@ -10817,7 +10753,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10817
10753
|
onClick: _cache[1] || (_cache[1] = () => $setup.modelValue = "")
|
|
10818
10754
|
}, [
|
|
10819
10755
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconXSmall }, null, 8, ["icon"])
|
|
10820
|
-
], 8, _hoisted_3$
|
|
10756
|
+
], 8, _hoisted_3$j)) : createCommentVNode("v-if", true),
|
|
10821
10757
|
!$setup.props.hideSuccessIcon && $setup.successMessages ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
10822
10758
|
key: 3,
|
|
10823
10759
|
class: "onyx-input__check-icon",
|
|
@@ -10849,7 +10785,478 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10849
10785
|
/* FULL_PROPS */
|
|
10850
10786
|
));
|
|
10851
10787
|
}
|
|
10852
|
-
const OnyxInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10788
|
+
const OnyxInput = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$F], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxInput/OnyxInput.vue"]]);
|
|
10789
|
+
const GLOBAL_SEARCH_INJECTION_KEY = Symbol();
|
|
10790
|
+
const __default__$4 = {};
|
|
10791
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
10792
|
+
...__default__$4,
|
|
10793
|
+
__name: "OnyxGlobalSearch",
|
|
10794
|
+
props: {
|
|
10795
|
+
density: { type: null, required: false },
|
|
10796
|
+
open: { type: [Boolean, null], required: false, skipCheck: true },
|
|
10797
|
+
nonDismissible: { type: Boolean, required: false },
|
|
10798
|
+
alert: { type: Boolean, required: false },
|
|
10799
|
+
modelValue: { type: null, required: false },
|
|
10800
|
+
loading: { type: Boolean, required: false }
|
|
10801
|
+
},
|
|
10802
|
+
emits: ["update:modelValue", "update:open"],
|
|
10803
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
10804
|
+
__expose();
|
|
10805
|
+
const props = __props;
|
|
10806
|
+
const emit = __emit;
|
|
10807
|
+
const slots = useSlots();
|
|
10808
|
+
const { t } = injectI18n();
|
|
10809
|
+
const basicDialogProps = useForwardProps(props, OnyxBasicDialog);
|
|
10810
|
+
const searchTerm = useVModel({
|
|
10811
|
+
props,
|
|
10812
|
+
emit,
|
|
10813
|
+
key: "modelValue",
|
|
10814
|
+
default: ""
|
|
10815
|
+
});
|
|
10816
|
+
const dialog2 = useTemplateRef("dialogRef");
|
|
10817
|
+
const dialogElement = computed(() => dialog2.value?.dialog);
|
|
10818
|
+
const activeValue = ref();
|
|
10819
|
+
const getAllOptions = () => {
|
|
10820
|
+
const options = Array.from(dialogElement.value?.querySelectorAll('[role="option"]') ?? []);
|
|
10821
|
+
const activeIndex = activeValue.value ? options.findIndex(
|
|
10822
|
+
(element) => element.id === headless.internals.getOptionId(activeValue.value)
|
|
10823
|
+
) : -1;
|
|
10824
|
+
return { options, activeIndex };
|
|
10825
|
+
};
|
|
10826
|
+
const activateOption = (type) => {
|
|
10827
|
+
const { options, activeIndex } = getAllOptions();
|
|
10828
|
+
let index = 0;
|
|
10829
|
+
if (type === "last") index = options.length - 1;
|
|
10830
|
+
else if (type === "previous") index = activeIndex - 1;
|
|
10831
|
+
else if (type === "next") index = activeIndex + 1;
|
|
10832
|
+
const normalizedIndex = index < 0 ? -1 : index > options.length - 1 ? 0 : index;
|
|
10833
|
+
const id = options.at(normalizedIndex)?.id;
|
|
10834
|
+
activeValue.value = id ? headless.internals.getOptionValueById(id) : void 0;
|
|
10835
|
+
};
|
|
10836
|
+
const onAutocomplete = (input2) => searchTerm.value = input2;
|
|
10837
|
+
const onSelect = (value) => {
|
|
10838
|
+
const id = headless.internals.getOptionId(value);
|
|
10839
|
+
const option = dialogElement.value?.querySelector(`#${id}`);
|
|
10840
|
+
if (!option) return;
|
|
10841
|
+
if ("click" in option && typeof option.click === "function") option.click();
|
|
10842
|
+
};
|
|
10843
|
+
const headless = createComboBox({
|
|
10844
|
+
autocomplete: "list",
|
|
10845
|
+
label: computed(() => t.value("globalSearch.input.label")),
|
|
10846
|
+
listLabel: computed(() => t.value("globalSearch.searchResults")),
|
|
10847
|
+
activeOption: activeValue,
|
|
10848
|
+
isExpanded: true,
|
|
10849
|
+
templateRef: dialogElement,
|
|
10850
|
+
onAutocomplete,
|
|
10851
|
+
onActivateFirst: () => activateOption("first"),
|
|
10852
|
+
onActivateLast: () => activateOption("last"),
|
|
10853
|
+
onActivateNext: () => activateOption("next"),
|
|
10854
|
+
onActivatePrevious: () => activateOption("previous"),
|
|
10855
|
+
onSelect
|
|
10856
|
+
});
|
|
10857
|
+
provide(GLOBAL_SEARCH_INJECTION_KEY, { headless, activeValue });
|
|
10858
|
+
const __returned__ = { props, emit, slots, t, basicDialogProps, searchTerm, dialog: dialog2, dialogElement, activeValue, getAllOptions, activateOption, onAutocomplete, onSelect, headless, get iconSearch() {
|
|
10859
|
+
return iconSearch;
|
|
10860
|
+
}, OnyxBasicDialog, OnyxIcon, OnyxInput, OnyxLoadingIndicator };
|
|
10861
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
10862
|
+
return __returned__;
|
|
10863
|
+
}
|
|
10864
|
+
});
|
|
10865
|
+
const _hoisted_1$v = { class: "onyx-global-search__footer onyx-text--small" };
|
|
10866
|
+
const _hoisted_2$o = { class: "onyx-global-search__shortcut" };
|
|
10867
|
+
const _hoisted_3$i = { class: "onyx-global-search__shortcut-label" };
|
|
10868
|
+
const _hoisted_4$d = { class: "onyx-global-search__shortcut" };
|
|
10869
|
+
const _hoisted_5$a = { class: "onyx-global-search__shortcut-label" };
|
|
10870
|
+
const _hoisted_6$8 = { class: "onyx-global-search__shortcut" };
|
|
10871
|
+
const _hoisted_7$4 = { class: "onyx-global-search__shortcut-label" };
|
|
10872
|
+
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10873
|
+
return openBlock(), createBlock($setup["OnyxBasicDialog"], mergeProps($setup.basicDialogProps, {
|
|
10874
|
+
ref: "dialogRef",
|
|
10875
|
+
label: $setup.t("globalSearch.label"),
|
|
10876
|
+
modal: "",
|
|
10877
|
+
class: "onyx-global-search",
|
|
10878
|
+
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => $setup.emit("update:open", $event))
|
|
10879
|
+
}), {
|
|
10880
|
+
default: withCtx(() => [
|
|
10881
|
+
createVNode($setup["OnyxInput"], mergeProps($setup.headless.elements.input.value, {
|
|
10882
|
+
modelValue: $setup.searchTerm,
|
|
10883
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.searchTerm = $event),
|
|
10884
|
+
label: $setup.t("globalSearch.input.label"),
|
|
10885
|
+
placeholder: $setup.t("globalSearch.input.placeholder"),
|
|
10886
|
+
type: "search",
|
|
10887
|
+
"hide-label": "",
|
|
10888
|
+
autofocus: ""
|
|
10889
|
+
}), {
|
|
10890
|
+
leading: withCtx(() => [
|
|
10891
|
+
$setup.props.loading ? (openBlock(), createBlock($setup["OnyxLoadingIndicator"], {
|
|
10892
|
+
key: 0,
|
|
10893
|
+
type: "circle"
|
|
10894
|
+
})) : (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
10895
|
+
key: 1,
|
|
10896
|
+
icon: $setup.iconSearch
|
|
10897
|
+
}, null, 8, ["icon"]))
|
|
10898
|
+
]),
|
|
10899
|
+
_: 1
|
|
10900
|
+
/* STABLE */
|
|
10901
|
+
}, 16, ["modelValue", "label", "placeholder"]),
|
|
10902
|
+
withDirectives(createElementVNode(
|
|
10903
|
+
"div",
|
|
10904
|
+
mergeProps({ class: "onyx-global-search__body" }, $setup.headless.elements.listbox.value),
|
|
10905
|
+
[
|
|
10906
|
+
renderSlot(_ctx.$slots, "default")
|
|
10907
|
+
],
|
|
10908
|
+
16
|
|
10909
|
+
/* FULL_PROPS */
|
|
10910
|
+
), [
|
|
10911
|
+
[vShow, !!$setup.slots.default]
|
|
10912
|
+
]),
|
|
10913
|
+
withDirectives(createElementVNode(
|
|
10914
|
+
"div",
|
|
10915
|
+
_hoisted_1$v,
|
|
10916
|
+
[
|
|
10917
|
+
createElementVNode("span", _hoisted_2$o, [
|
|
10918
|
+
_cache[2] || (_cache[2] = createElementVNode(
|
|
10919
|
+
"kbd",
|
|
10920
|
+
null,
|
|
10921
|
+
"↑",
|
|
10922
|
+
-1
|
|
10923
|
+
/* CACHED */
|
|
10924
|
+
)),
|
|
10925
|
+
_cache[3] || (_cache[3] = createElementVNode(
|
|
10926
|
+
"kbd",
|
|
10927
|
+
null,
|
|
10928
|
+
"↓",
|
|
10929
|
+
-1
|
|
10930
|
+
/* CACHED */
|
|
10931
|
+
)),
|
|
10932
|
+
createElementVNode(
|
|
10933
|
+
"span",
|
|
10934
|
+
_hoisted_3$i,
|
|
10935
|
+
toDisplayString($setup.t("globalSearch.shortcuts.move")),
|
|
10936
|
+
1
|
|
10937
|
+
/* TEXT */
|
|
10938
|
+
)
|
|
10939
|
+
]),
|
|
10940
|
+
createElementVNode("span", _hoisted_4$d, [
|
|
10941
|
+
_cache[4] || (_cache[4] = createElementVNode(
|
|
10942
|
+
"kbd",
|
|
10943
|
+
null,
|
|
10944
|
+
"↵",
|
|
10945
|
+
-1
|
|
10946
|
+
/* CACHED */
|
|
10947
|
+
)),
|
|
10948
|
+
createElementVNode(
|
|
10949
|
+
"span",
|
|
10950
|
+
_hoisted_5$a,
|
|
10951
|
+
toDisplayString($setup.t("globalSearch.shortcuts.select")),
|
|
10952
|
+
1
|
|
10953
|
+
/* TEXT */
|
|
10954
|
+
)
|
|
10955
|
+
]),
|
|
10956
|
+
createElementVNode("span", _hoisted_6$8, [
|
|
10957
|
+
_cache[5] || (_cache[5] = createElementVNode(
|
|
10958
|
+
"kbd",
|
|
10959
|
+
null,
|
|
10960
|
+
"ESC",
|
|
10961
|
+
-1
|
|
10962
|
+
/* CACHED */
|
|
10963
|
+
)),
|
|
10964
|
+
createElementVNode(
|
|
10965
|
+
"span",
|
|
10966
|
+
_hoisted_7$4,
|
|
10967
|
+
toDisplayString($setup.t("cancel")),
|
|
10968
|
+
1
|
|
10969
|
+
/* TEXT */
|
|
10970
|
+
)
|
|
10971
|
+
])
|
|
10972
|
+
],
|
|
10973
|
+
512
|
|
10974
|
+
/* NEED_PATCH */
|
|
10975
|
+
), [
|
|
10976
|
+
[vShow, !!$setup.slots.default]
|
|
10977
|
+
])
|
|
10978
|
+
]),
|
|
10979
|
+
_: 3
|
|
10980
|
+
/* FORWARDED */
|
|
10981
|
+
}, 16, ["label"]);
|
|
10982
|
+
}
|
|
10983
|
+
const OnyxGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$E], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxGlobalSearch/OnyxGlobalSearch.vue"]]);
|
|
10984
|
+
const __default__$3 = {};
|
|
10985
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
10986
|
+
...__default__$3,
|
|
10987
|
+
__name: "OnyxGlobalSearchOption",
|
|
10988
|
+
props: {
|
|
10989
|
+
density: { type: null, required: false },
|
|
10990
|
+
link: { type: null, required: false },
|
|
10991
|
+
autofocus: { type: Boolean, required: false },
|
|
10992
|
+
label: { type: String, required: true },
|
|
10993
|
+
value: { type: String, required: true },
|
|
10994
|
+
icon: { type: String, required: false },
|
|
10995
|
+
skeleton: { type: [Symbol, Boolean, Number], required: false, default: SKELETON_INJECTED_SYMBOL }
|
|
10996
|
+
},
|
|
10997
|
+
setup(__props, { expose: __expose }) {
|
|
10998
|
+
__expose();
|
|
10999
|
+
const props = __props;
|
|
11000
|
+
const slots = useSlots();
|
|
11001
|
+
const { densityClass } = useDensity(props);
|
|
11002
|
+
const context = inject(GLOBAL_SEARCH_INJECTION_KEY, void 0);
|
|
11003
|
+
const skeleton = useSkeletonContext(props);
|
|
11004
|
+
const __returned__ = { props, slots, densityClass, context, skeleton, ButtonOrLinkLayout, OnyxIcon, OnyxSkeleton };
|
|
11005
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
11006
|
+
return __returned__;
|
|
11007
|
+
}
|
|
11008
|
+
});
|
|
11009
|
+
const _hoisted_1$u = { class: "onyx-global-search-option__content" };
|
|
11010
|
+
const _hoisted_2$n = { class: "onyx-truncation-ellipsis" };
|
|
11011
|
+
const _hoisted_3$h = {
|
|
11012
|
+
key: 0,
|
|
11013
|
+
class: "onyx-global-search-option__trailing"
|
|
11014
|
+
};
|
|
11015
|
+
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11016
|
+
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
11017
|
+
"li",
|
|
11018
|
+
{
|
|
11019
|
+
key: 0,
|
|
11020
|
+
role: "none",
|
|
11021
|
+
class: normalizeClass(["onyx-component", "onyx-global-search-option-skeleton", "onyx-text", $setup.densityClass])
|
|
11022
|
+
},
|
|
11023
|
+
[
|
|
11024
|
+
createElementVNode("div", _hoisted_1$u, [
|
|
11025
|
+
createVNode($setup["OnyxSkeleton"], { class: "onyx-global-search-option-skeleton__icon" }),
|
|
11026
|
+
createVNode($setup["OnyxSkeleton"], { class: "onyx-global-search-option-skeleton__label" })
|
|
11027
|
+
])
|
|
11028
|
+
],
|
|
11029
|
+
2
|
|
11030
|
+
/* CLASS */
|
|
11031
|
+
)) : (openBlock(), createElementBlock(
|
|
11032
|
+
"li",
|
|
11033
|
+
{
|
|
11034
|
+
key: 1,
|
|
11035
|
+
class: normalizeClass(["onyx-component", "onyx-global-search-option", "onyx-text", $setup.densityClass]),
|
|
11036
|
+
role: "none"
|
|
11037
|
+
},
|
|
11038
|
+
[
|
|
11039
|
+
createVNode($setup["ButtonOrLinkLayout"], mergeProps(
|
|
11040
|
+
{
|
|
11041
|
+
class: "onyx-global-search-option__content onyx-truncation-ellipsis",
|
|
11042
|
+
link: $setup.props.link,
|
|
11043
|
+
autofocus: $setup.props.autofocus,
|
|
11044
|
+
tabindex: "-1"
|
|
11045
|
+
},
|
|
11046
|
+
$setup.context?.headless.elements.option.value({
|
|
11047
|
+
label: $setup.props.label,
|
|
11048
|
+
value: $setup.props.value,
|
|
11049
|
+
selected: $setup.context.activeValue.value === $setup.props.value
|
|
11050
|
+
})
|
|
11051
|
+
), {
|
|
11052
|
+
default: withCtx(() => [
|
|
11053
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
11054
|
+
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
11055
|
+
key: 0,
|
|
11056
|
+
class: "onyx-global-search-option__icon",
|
|
11057
|
+
icon: $setup.props.icon,
|
|
11058
|
+
size: "16px"
|
|
11059
|
+
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
11060
|
+
createElementVNode(
|
|
11061
|
+
"span",
|
|
11062
|
+
_hoisted_2$n,
|
|
11063
|
+
toDisplayString($setup.props.label),
|
|
11064
|
+
1
|
|
11065
|
+
/* TEXT */
|
|
11066
|
+
)
|
|
11067
|
+
])
|
|
11068
|
+
]),
|
|
11069
|
+
_: 3
|
|
11070
|
+
/* FORWARDED */
|
|
11071
|
+
}, 16, ["link", "autofocus"]),
|
|
11072
|
+
$setup.slots.trailing ? (openBlock(), createElementBlock("div", _hoisted_3$h, [
|
|
11073
|
+
renderSlot(_ctx.$slots, "trailing")
|
|
11074
|
+
])) : createCommentVNode("v-if", true)
|
|
11075
|
+
],
|
|
11076
|
+
2
|
|
11077
|
+
/* CLASS */
|
|
11078
|
+
));
|
|
11079
|
+
}
|
|
11080
|
+
const OnyxGlobalSearchOption = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$D], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxGlobalSearchOption/OnyxGlobalSearchOption.vue"]]);
|
|
11081
|
+
const __default__$2 = {};
|
|
11082
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
11083
|
+
...__default__$2,
|
|
11084
|
+
__name: "OnyxGlobalSearchGroup",
|
|
11085
|
+
props: {
|
|
11086
|
+
density: { type: null, required: false },
|
|
11087
|
+
label: { type: String, required: true },
|
|
11088
|
+
skeleton: { type: [Boolean, Number], required: false }
|
|
11089
|
+
},
|
|
11090
|
+
setup(__props, { expose: __expose }) {
|
|
11091
|
+
__expose();
|
|
11092
|
+
const props = __props;
|
|
11093
|
+
const { densityClass } = useDensity(props);
|
|
11094
|
+
const context = inject(GLOBAL_SEARCH_INJECTION_KEY, void 0);
|
|
11095
|
+
const skeletonCount = computed(() => {
|
|
11096
|
+
if (!props.skeleton) return 0;
|
|
11097
|
+
return typeof props.skeleton === "number" ? props.skeleton : 3;
|
|
11098
|
+
});
|
|
11099
|
+
const __returned__ = { props, densityClass, context, skeletonCount, OnyxGlobalSearchOption, OnyxHeadline };
|
|
11100
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
11101
|
+
return __returned__;
|
|
11102
|
+
}
|
|
11103
|
+
});
|
|
11104
|
+
const _hoisted_1$t = { "aria-hidden": "true" };
|
|
11105
|
+
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11106
|
+
return openBlock(), createElementBlock(
|
|
11107
|
+
"ul",
|
|
11108
|
+
mergeProps({
|
|
11109
|
+
class: ["onyx-component", "onyx-global-search-group", $setup.densityClass]
|
|
11110
|
+
}, $setup.context?.headless.elements.group.value({ label: $setup.props.label })),
|
|
11111
|
+
[
|
|
11112
|
+
createElementVNode("li", _hoisted_1$t, [
|
|
11113
|
+
createVNode($setup["OnyxHeadline"], {
|
|
11114
|
+
is: "h4",
|
|
11115
|
+
class: "onyx-global-search-group__headline"
|
|
11116
|
+
}, {
|
|
11117
|
+
default: withCtx(() => [
|
|
11118
|
+
createTextVNode(
|
|
11119
|
+
toDisplayString($setup.props.label),
|
|
11120
|
+
1
|
|
11121
|
+
/* TEXT */
|
|
11122
|
+
)
|
|
11123
|
+
]),
|
|
11124
|
+
_: 1
|
|
11125
|
+
/* STABLE */
|
|
11126
|
+
})
|
|
11127
|
+
]),
|
|
11128
|
+
$setup.skeletonCount <= 0 ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(true), createElementBlock(
|
|
11129
|
+
Fragment,
|
|
11130
|
+
{ key: 1 },
|
|
11131
|
+
renderList($setup.skeletonCount, (i) => {
|
|
11132
|
+
return openBlock(), createBlock($setup["OnyxGlobalSearchOption"], {
|
|
11133
|
+
key: `skeleton-${i}`,
|
|
11134
|
+
label: `Skeleton ${i}`,
|
|
11135
|
+
value: `skeleton-${i}`,
|
|
11136
|
+
skeleton: ""
|
|
11137
|
+
}, null, 8, ["label", "value"]);
|
|
11138
|
+
}),
|
|
11139
|
+
128
|
|
11140
|
+
/* KEYED_FRAGMENT */
|
|
11141
|
+
))
|
|
11142
|
+
],
|
|
11143
|
+
16
|
|
11144
|
+
/* FULL_PROPS */
|
|
11145
|
+
);
|
|
11146
|
+
}
|
|
11147
|
+
const OnyxGlobalSearchGroup = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxGlobalSearchGroup/OnyxGlobalSearchGroup.vue"]]);
|
|
11148
|
+
const HEADLINE_TYPES = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
11149
|
+
const ICON_SIZES = ["12px", "16px", "24px", "32px", "48px", "64px", "96px"];
|
|
11150
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
11151
|
+
...{ inheritAttrs: false },
|
|
11152
|
+
__name: "OnyxImage",
|
|
11153
|
+
props: {
|
|
11154
|
+
src: { type: [String, Object], required: true },
|
|
11155
|
+
alt: { type: String, required: true },
|
|
11156
|
+
width: { type: Number, required: true },
|
|
11157
|
+
height: { type: Number, required: true },
|
|
11158
|
+
loading: { type: String, required: false, default: "lazy" },
|
|
11159
|
+
shape: { type: null, required: false },
|
|
11160
|
+
skeleton: { type: [Symbol, Boolean, Number], required: false, default: SKELETON_INJECTED_SYMBOL }
|
|
11161
|
+
},
|
|
11162
|
+
setup(__props, { expose: __expose }) {
|
|
11163
|
+
__expose();
|
|
11164
|
+
const props = __props;
|
|
11165
|
+
const skeleton = useSkeletonContext(props);
|
|
11166
|
+
const isError = ref(false);
|
|
11167
|
+
watch(
|
|
11168
|
+
() => props.src,
|
|
11169
|
+
() => isError.value = false,
|
|
11170
|
+
{ deep: true }
|
|
11171
|
+
);
|
|
11172
|
+
const imageSrc = computed(() => {
|
|
11173
|
+
if (typeof props.src === "string") return { light: props.src, dark: void 0 };
|
|
11174
|
+
return props.src;
|
|
11175
|
+
});
|
|
11176
|
+
const size = computed(() => {
|
|
11177
|
+
const width = props.shape === "circle" ? Math.min(props.width, props.height) : props.width;
|
|
11178
|
+
const height = props.shape === "circle" ? Math.min(props.width, props.height) : props.height;
|
|
11179
|
+
return { width: `${width}px`, height: `${height}px` };
|
|
11180
|
+
});
|
|
11181
|
+
const { restAttrs, rootAttrs } = useRootAttrs();
|
|
11182
|
+
const __returned__ = { props, skeleton, isError, imageSrc, size, restAttrs, rootAttrs, get iconFileDisabled() {
|
|
11183
|
+
return iconFileDisabled;
|
|
11184
|
+
}, OnyxIcon, OnyxSkeleton };
|
|
11185
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
11186
|
+
return __returned__;
|
|
11187
|
+
}
|
|
11188
|
+
});
|
|
11189
|
+
const _hoisted_1$s = ["src", "alt"];
|
|
11190
|
+
const _hoisted_2$m = ["src", "alt"];
|
|
11191
|
+
const _hoisted_3$g = { class: "onyx-image__alt onyx-text--small" };
|
|
11192
|
+
function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11193
|
+
return openBlock(), createElementBlock(
|
|
11194
|
+
"figure",
|
|
11195
|
+
mergeProps($setup.rootAttrs, {
|
|
11196
|
+
class: [
|
|
11197
|
+
"onyx-component",
|
|
11198
|
+
"onyx-image",
|
|
11199
|
+
{ "onyx-image--error": $setup.isError, [`onyx-image--${$setup.props.shape}`]: $setup.props.shape }
|
|
11200
|
+
]
|
|
11201
|
+
}),
|
|
11202
|
+
[
|
|
11203
|
+
$setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], mergeProps({
|
|
11204
|
+
key: 0,
|
|
11205
|
+
class: "onyx-image__source",
|
|
11206
|
+
style: $setup.size
|
|
11207
|
+
}, $setup.restAttrs), null, 16, ["style"])) : (openBlock(), createElementBlock(
|
|
11208
|
+
Fragment,
|
|
11209
|
+
{ key: 1 },
|
|
11210
|
+
[
|
|
11211
|
+
createElementVNode("img", mergeProps({
|
|
11212
|
+
class: ["onyx-image__source", { "onyx-image__source--light": $setup.imageSrc.dark }]
|
|
11213
|
+
}, { ...$setup.restAttrs, ...$setup.props }, {
|
|
11214
|
+
src: $setup.imageSrc.light,
|
|
11215
|
+
alt: $setup.props.alt,
|
|
11216
|
+
onError: _cache[0] || (_cache[0] = ($event) => $setup.isError = true)
|
|
11217
|
+
}), null, 16, _hoisted_1$s),
|
|
11218
|
+
$setup.imageSrc.dark ? (openBlock(), createElementBlock("img", mergeProps({
|
|
11219
|
+
key: 0,
|
|
11220
|
+
class: "onyx-image__source onyx-image__source--dark"
|
|
11221
|
+
}, { ...$setup.restAttrs, ...$setup.props }, {
|
|
11222
|
+
src: $setup.imageSrc.dark,
|
|
11223
|
+
alt: $setup.props.alt,
|
|
11224
|
+
onError: _cache[1] || (_cache[1] = ($event) => $setup.isError = true)
|
|
11225
|
+
}), null, 16, _hoisted_2$m)) : createCommentVNode("v-if", true),
|
|
11226
|
+
$setup.isError ? (openBlock(), createElementBlock(
|
|
11227
|
+
"div",
|
|
11228
|
+
mergeProps({
|
|
11229
|
+
key: 1,
|
|
11230
|
+
class: "onyx-image__error",
|
|
11231
|
+
style: $setup.size
|
|
11232
|
+
}, $setup.restAttrs),
|
|
11233
|
+
[
|
|
11234
|
+
createVNode($setup["OnyxIcon"], {
|
|
11235
|
+
icon: $setup.iconFileDisabled,
|
|
11236
|
+
size: "32px"
|
|
11237
|
+
}, null, 8, ["icon"]),
|
|
11238
|
+
createElementVNode(
|
|
11239
|
+
"div",
|
|
11240
|
+
_hoisted_3$g,
|
|
11241
|
+
toDisplayString($setup.props.alt),
|
|
11242
|
+
1
|
|
11243
|
+
/* TEXT */
|
|
11244
|
+
)
|
|
11245
|
+
],
|
|
11246
|
+
16
|
|
11247
|
+
/* FULL_PROPS */
|
|
11248
|
+
)) : createCommentVNode("v-if", true)
|
|
11249
|
+
],
|
|
11250
|
+
64
|
|
11251
|
+
/* STABLE_FRAGMENT */
|
|
11252
|
+
))
|
|
11253
|
+
],
|
|
11254
|
+
16
|
|
11255
|
+
/* FULL_PROPS */
|
|
11256
|
+
);
|
|
11257
|
+
}
|
|
11258
|
+
const OnyxImage = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$B], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxImage/OnyxImage.vue"]]);
|
|
11259
|
+
const IMAGE_SHAPES = ["rounded", "circle", "clip", "clip-inverted"];
|
|
10853
11260
|
const INPUT_TYPES = ["email", "password", "search", "tel", "text", "url"];
|
|
10854
11261
|
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
10855
11262
|
__name: "OnyxLink",
|
|
@@ -15557,6 +15964,7 @@ export {
|
|
|
15557
15964
|
all as DataGridFeatures,
|
|
15558
15965
|
DataGridRowOptionsSymbol,
|
|
15559
15966
|
GLOBAL_FAB_PROVIDER_INJECTION_KEY,
|
|
15967
|
+
GLOBAL_SEARCH_INJECTION_KEY,
|
|
15560
15968
|
HEADLINE_TYPES,
|
|
15561
15969
|
ICON_SIZES,
|
|
15562
15970
|
IMAGE_SHAPES,
|
|
@@ -15665,6 +16073,9 @@ export {
|
|
|
15665
16073
|
OnyxCalendar as OnyxUnstableCalendar,
|
|
15666
16074
|
OnyxCodeTab as OnyxUnstableCodeTab,
|
|
15667
16075
|
OnyxCodeTabs as OnyxUnstableCodeTabs,
|
|
16076
|
+
OnyxGlobalSearch as OnyxUnstableGlobalSearch,
|
|
16077
|
+
OnyxGlobalSearchGroup as OnyxUnstableGlobalSearchGroup,
|
|
16078
|
+
OnyxGlobalSearchOption as OnyxUnstableGlobalSearchOption,
|
|
15668
16079
|
OnyxSlider as OnyxUnstableSlider,
|
|
15669
16080
|
OnyxSliderControl as OnyxUnstableSliderControl,
|
|
15670
16081
|
OnyxUserMenu,
|