sit-onyx 1.3.0-dev-20251027202432 → 1.3.0-dev-20251028081106
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/OnyxSlider/OnyxSlider.d.vue.ts +21 -0
- package/dist/components/OnyxSlider/types.d.ts +106 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm-bundler.js +1641 -655
- package/dist/index.esm-bundler.js.map +1 -1
- package/dist/index.js +3850 -3104
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -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, iconSearch, iconCheck, iconSearchX, iconChevronDownUp, iconCheckSmall, iconPlusSmall, iconEyeDisabled, iconListArrowUp, iconListArrowDown, iconArrowsSort, iconCircleBlock, iconFileDisabled, iconEyeClosed, iconEye, iconCircleContrast, iconTranslate, iconMenu, iconNotificationFlag, iconPlus, iconMinus, iconFile, iconFilePdf, iconFileCsv, iconAudio, iconVideocam, iconPicture, iconFileRtf, iconFilePpt, iconFileXls, iconFileXlsx, iconFileDoc, iconFileGlobe, iconFileArchive, iconFileText, iconTrash, iconCloudArrowUp, iconShareIos, iconSettings, iconLogout, iconArrowSmallRight } from "@sit-onyx/icons";
|
|
2
|
+
import { iconChevronDownSmall, iconCircleAttention, iconXSmall, iconMoreVertical, iconX, iconMoreHorizontalSmall, iconCircleCheck, iconCircleX, iconCircleInformation, iconUser, iconArrowSmallUpRight, iconChevronRightSmall, iconArrowSmallLeft, iconMoreHorizontal, iconHome, iconChevronLeftSmall, iconSearch, iconCheck, iconSearchX, iconChevronDownUp, iconCheckSmall, iconPlusSmall, iconEyeDisabled, iconListArrowUp, iconListArrowDown, iconArrowsSort, iconCircleBlock, iconFileDisabled, iconEyeClosed, iconEye, iconCircleContrast, iconTranslate, iconMenu, iconNotificationFlag, iconMinusSmall, iconPlus, iconMinus, 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$1H = /* @__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$1H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
123
123
|
return openBlock(), createElementBlock(
|
|
124
124
|
"div",
|
|
125
125
|
{
|
|
@@ -137,7 +137,7 @@ function _sfc_render$1G(_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$1H, [["render", _sfc_render$1H], ["__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$1G = /* @__PURE__ */ defineComponent({
|
|
154
154
|
__name: "OnyxIcon",
|
|
155
155
|
props: {
|
|
156
156
|
size: { type: null, required: false },
|
|
@@ -166,8 +166,8 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
166
166
|
return __returned__;
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
|
-
const _hoisted_1$
|
|
170
|
-
function _sfc_render$
|
|
169
|
+
const _hoisted_1$1c = ["innerHTML"];
|
|
170
|
+
function _sfc_render$1G(_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$1F(_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$1c);
|
|
182
182
|
}
|
|
183
|
-
const OnyxIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
183
|
+
const OnyxIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$1G], ["__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$1F = /* @__PURE__ */ defineComponent({
|
|
200
200
|
__name: "OnyxSkeleton",
|
|
201
201
|
setup(__props, { expose: __expose }) {
|
|
202
202
|
__expose();
|
|
@@ -206,15 +206,15 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
206
206
|
return __returned__;
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
|
-
const _hoisted_1$
|
|
209
|
+
const _hoisted_1$1b = {
|
|
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$1F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
214
|
+
return openBlock(), createElementBlock("figure", _hoisted_1$1b);
|
|
215
215
|
}
|
|
216
|
-
const OnyxSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
217
|
-
const _sfc_main$
|
|
216
|
+
const OnyxSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1F], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSkeleton/OnyxSkeleton.vue"]]);
|
|
217
|
+
const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
218
218
|
__name: "OnyxAccordionItem",
|
|
219
219
|
props: {
|
|
220
220
|
density: { type: null, required: false },
|
|
@@ -251,11 +251,11 @@ const _sfc_main$1D = /* @__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$1a = ["open"];
|
|
255
|
+
const _hoisted_2$R = ["id", "tabindex", "aria-expanded", "aria-controls", "aria-disabled"];
|
|
256
|
+
const _hoisted_3$A = { class: "onyx-accordion-item__header-content" };
|
|
257
|
+
const _hoisted_4$o = ["id", "aria-labelledby"];
|
|
258
|
+
function _sfc_render$1E(_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$1D(_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$A, [
|
|
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$R),
|
|
302
302
|
createElementVNode("div", {
|
|
303
303
|
id: $setup.panelId,
|
|
304
304
|
class: "onyx-accordion-item__panel",
|
|
@@ -306,10 +306,10 @@ function _sfc_render$1D(_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$1a));
|
|
311
311
|
}
|
|
312
|
-
const OnyxAccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
312
|
+
const OnyxAccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$1E], ["__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" },
|
|
@@ -1323,7 +1323,34 @@ const MathUtils = {
|
|
|
1323
1323
|
/**
|
|
1324
1324
|
* Ensures that a given `number` is or is between a given `min` and `max`.
|
|
1325
1325
|
*/
|
|
1326
|
-
clamp: (number, min, max) => Math.max(Math.min(number, max), min)
|
|
1326
|
+
clamp: (number, min, max) => Math.max(Math.min(number, max), min),
|
|
1327
|
+
/**
|
|
1328
|
+
* Returns the count of decimal places in a number.
|
|
1329
|
+
* @param number - The number to check.
|
|
1330
|
+
* @returns The count of decimal places.
|
|
1331
|
+
*
|
|
1332
|
+
* decimals(1.23); // 2
|
|
1333
|
+
* decimals(10); // 0
|
|
1334
|
+
*/
|
|
1335
|
+
decimalsCount: (number) => String(number).split(".")[1]?.length ?? 0,
|
|
1336
|
+
/**
|
|
1337
|
+
* Converts a value within a range to a percentage (0-100).
|
|
1338
|
+
*
|
|
1339
|
+
* @param value - The value to convert.
|
|
1340
|
+
* @param min - The minimum allowed value.
|
|
1341
|
+
* @param max - The maximum allowed value.
|
|
1342
|
+
* @returns The percentage representation of the value.
|
|
1343
|
+
*/
|
|
1344
|
+
valueToPercent: (value, min, max) => (value - min) * 100 / (max - min),
|
|
1345
|
+
/**
|
|
1346
|
+
* Converts a percentage (0-100) to a value within a range.
|
|
1347
|
+
*
|
|
1348
|
+
* @param percent - The percentage to convert.
|
|
1349
|
+
* @param min - The minimum allowed value.
|
|
1350
|
+
* @param max - The maximum allowed value.
|
|
1351
|
+
* @returns The value representation of the percentage.
|
|
1352
|
+
*/
|
|
1353
|
+
percentToValue: (percent, min, max) => (max - min) * percent + min
|
|
1327
1354
|
};
|
|
1328
1355
|
const createNavigationMenu = createBuilder(({ navigationName }) => {
|
|
1329
1356
|
const navId = useId();
|
|
@@ -1362,6 +1389,594 @@ const createNavigationMenu = createBuilder(({ navigationName }) => {
|
|
|
1362
1389
|
}
|
|
1363
1390
|
};
|
|
1364
1391
|
});
|
|
1392
|
+
const areArraysEqual = (arrayA, arrayB, comparer = (a, b) => a === b) => arrayA.length === arrayB.length && arrayA.every((value, index) => comparer(value, arrayB[index]));
|
|
1393
|
+
const isFocusVisible = (element) => {
|
|
1394
|
+
try {
|
|
1395
|
+
return element.matches(":focus-visible");
|
|
1396
|
+
} catch {
|
|
1397
|
+
return false;
|
|
1398
|
+
}
|
|
1399
|
+
};
|
|
1400
|
+
const isTouchEvent = (event) => "touches" in event || "changedTouches" in event || "targetTouches" in event;
|
|
1401
|
+
const DRAG_MOVE_THRESHOLD = 2;
|
|
1402
|
+
const KEY = {
|
|
1403
|
+
Up: "ArrowUp",
|
|
1404
|
+
Down: "ArrowDown",
|
|
1405
|
+
Left: "ArrowLeft",
|
|
1406
|
+
Right: "ArrowRight",
|
|
1407
|
+
PageUp: "PageUp",
|
|
1408
|
+
PageDown: "PageDown",
|
|
1409
|
+
Home: "Home",
|
|
1410
|
+
End: "End"
|
|
1411
|
+
};
|
|
1412
|
+
const NAVIGATION_KEYS = /* @__PURE__ */ new Set([
|
|
1413
|
+
KEY.Up,
|
|
1414
|
+
KEY.Down,
|
|
1415
|
+
KEY.Left,
|
|
1416
|
+
KEY.Right,
|
|
1417
|
+
KEY.PageUp,
|
|
1418
|
+
KEY.PageDown,
|
|
1419
|
+
KEY.Home,
|
|
1420
|
+
KEY.End
|
|
1421
|
+
]);
|
|
1422
|
+
const INCREMENT_KEYS = /* @__PURE__ */ new Set([KEY.Right, KEY.Up, KEY.PageUp]);
|
|
1423
|
+
const DECREMENT_KEYS = /* @__PURE__ */ new Set([KEY.Left, KEY.Down, KEY.PageDown]);
|
|
1424
|
+
const TRACK_CALCULATION_STRATEGIES = {
|
|
1425
|
+
horizontal: (rect, coords) => MathUtils.clamp((coords.x - rect.left) / rect.width, 0, 1),
|
|
1426
|
+
vertical: (rect, coords) => MathUtils.clamp((rect.bottom - coords.y) / rect.height, 0, 1)
|
|
1427
|
+
};
|
|
1428
|
+
const readThumbIndex = (event) => Number(event.currentTarget?.dataset.index ?? -1);
|
|
1429
|
+
const roundToStep = (value, step, min) => Number((Math.round((value - min) / step) * step + min).toFixed(MathUtils.decimalsCount(step)));
|
|
1430
|
+
const normalizeValues = (values, min, max, step) => {
|
|
1431
|
+
if (!values.length) return [min];
|
|
1432
|
+
return values.map((value) => {
|
|
1433
|
+
const clamped = MathUtils.clamp(value, min, max);
|
|
1434
|
+
return roundToStep(clamped, step, min);
|
|
1435
|
+
}).sort((a, b) => a - b);
|
|
1436
|
+
};
|
|
1437
|
+
const findClosestIndex = (values, currentValue) => {
|
|
1438
|
+
const result = values.reduce((acc, value, index) => {
|
|
1439
|
+
const distance = Math.abs(currentValue - value);
|
|
1440
|
+
if (!acc || distance <= acc.closestDistance) {
|
|
1441
|
+
return {
|
|
1442
|
+
closestIndex: index,
|
|
1443
|
+
closestDistance: distance
|
|
1444
|
+
};
|
|
1445
|
+
}
|
|
1446
|
+
return acc;
|
|
1447
|
+
}, null);
|
|
1448
|
+
return result.closestIndex;
|
|
1449
|
+
};
|
|
1450
|
+
const adjustValueByIndex = ({
|
|
1451
|
+
values,
|
|
1452
|
+
newValue,
|
|
1453
|
+
index
|
|
1454
|
+
}) => values.map((value, i) => i === index ? newValue : value).sort((a, b) => a - b);
|
|
1455
|
+
const asc = (a, b) => a - b;
|
|
1456
|
+
const valueToArray = (value) => Array.isArray(value) ? value : [value];
|
|
1457
|
+
const _unstableCreateSlider = createBuilder(
|
|
1458
|
+
(options) => {
|
|
1459
|
+
const sliderRef = createElRef();
|
|
1460
|
+
const min = computed(() => unref(options.min) ?? 0);
|
|
1461
|
+
const max = computed(() => unref(options.max) ?? 100);
|
|
1462
|
+
const step = computed(() => unref(options.step) ?? 1);
|
|
1463
|
+
const values = computed(() => {
|
|
1464
|
+
const rawValues = unref(options.value);
|
|
1465
|
+
if (Array.isArray(rawValues)) {
|
|
1466
|
+
if (!rawValues?.length) {
|
|
1467
|
+
return [min.value];
|
|
1468
|
+
}
|
|
1469
|
+
return normalizeValues(rawValues, min.value, max.value, step.value);
|
|
1470
|
+
} else {
|
|
1471
|
+
if (typeof rawValues !== "number") {
|
|
1472
|
+
return [min.value];
|
|
1473
|
+
}
|
|
1474
|
+
return normalizeValues([rawValues], min.value, max.value, step.value);
|
|
1475
|
+
}
|
|
1476
|
+
});
|
|
1477
|
+
const shiftStep = computed(() => {
|
|
1478
|
+
const shiftStep2 = unref(options.shiftStep);
|
|
1479
|
+
if (typeof shiftStep2 !== "undefined") {
|
|
1480
|
+
return shiftStep2;
|
|
1481
|
+
}
|
|
1482
|
+
const stepMultiple = Math.max(1, Math.round((max.value - min.value) * 0.1 / step.value));
|
|
1483
|
+
return stepMultiple * step.value;
|
|
1484
|
+
});
|
|
1485
|
+
const isDisabled = computed(() => unref(options.disabled) ?? false);
|
|
1486
|
+
const marks = computed(() => unref(options.marks) ?? false);
|
|
1487
|
+
const label = computed(() => unref(options.label));
|
|
1488
|
+
const orientation = computed(() => unref(options.orientation) ?? "horizontal");
|
|
1489
|
+
const isDiscrete = computed(() => unref(options.discrete) ?? false);
|
|
1490
|
+
let touchId = null;
|
|
1491
|
+
let movesSinceStart = 0;
|
|
1492
|
+
let lastChangedValue = null;
|
|
1493
|
+
let previousActiveIndex = null;
|
|
1494
|
+
const isDragging = ref(false);
|
|
1495
|
+
const activeThumbIndex = ref(-1);
|
|
1496
|
+
const focusedThumbIndex = ref(-1);
|
|
1497
|
+
const isRange = computed(() => {
|
|
1498
|
+
const unrefValues = unref(options.value);
|
|
1499
|
+
return Array.isArray(unrefValues) && unrefValues.length > 1;
|
|
1500
|
+
});
|
|
1501
|
+
const marksList = computed(() => {
|
|
1502
|
+
if (marks.value === false) return [];
|
|
1503
|
+
if (marks.value && Array.isArray(marks.value)) {
|
|
1504
|
+
return marks.value.map((mark) => typeof mark === "number" ? { value: mark } : mark).filter((mark) => mark.value >= min.value && mark.value <= max.value).sort((a, b) => asc(a.value, b.value));
|
|
1505
|
+
}
|
|
1506
|
+
if (step.value && step.value > 0) {
|
|
1507
|
+
return [...Array(Math.floor((max.value - min.value) / step.value + 1))].map((_, index) => ({
|
|
1508
|
+
value: min.value + step.value * index
|
|
1509
|
+
}));
|
|
1510
|
+
}
|
|
1511
|
+
return [];
|
|
1512
|
+
});
|
|
1513
|
+
const axis = computed(
|
|
1514
|
+
() => orientation.value === "vertical" ? { position: "bottom", size: "height", cross: "width" } : { position: "left", size: "width", cross: "height" }
|
|
1515
|
+
);
|
|
1516
|
+
const marksValues = computed(() => marksList.value.map((mark) => mark.value));
|
|
1517
|
+
const emitChange = (next) => {
|
|
1518
|
+
if (!areArraysEqual(values.value, next)) {
|
|
1519
|
+
const nextValue = isRange.value ? next : next[0];
|
|
1520
|
+
if (typeof nextValue !== "undefined") {
|
|
1521
|
+
options.onChange?.(nextValue);
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
lastChangedValue = next;
|
|
1525
|
+
};
|
|
1526
|
+
const emitCommit = (fallback2) => {
|
|
1527
|
+
const valueWithFallback = lastChangedValue ?? fallback2;
|
|
1528
|
+
const nextValue = isRange.value ? valueWithFallback : valueWithFallback[0];
|
|
1529
|
+
if (typeof nextValue !== "undefined") {
|
|
1530
|
+
options.onCommit?.(nextValue);
|
|
1531
|
+
}
|
|
1532
|
+
};
|
|
1533
|
+
const ensureFocusOnThumb = (options2) => {
|
|
1534
|
+
const { index, shouldSetActive = false } = options2;
|
|
1535
|
+
const slider = sliderRef.value;
|
|
1536
|
+
if (!slider) return;
|
|
1537
|
+
if (slider.contains(document.activeElement) && Number(document.activeElement?.getAttribute("data-index")) !== index) {
|
|
1538
|
+
slider.querySelector(`[type="range"][data-index="${index}"]`)?.focus();
|
|
1539
|
+
}
|
|
1540
|
+
if (shouldSetActive) {
|
|
1541
|
+
activeThumbIndex.value = index;
|
|
1542
|
+
}
|
|
1543
|
+
};
|
|
1544
|
+
const eventToCoords = (event, touchId2) => {
|
|
1545
|
+
if (touchId2 !== void 0 && isTouchEvent(event)) {
|
|
1546
|
+
for (let i = 0; i < event.changedTouches.length; i += 1) {
|
|
1547
|
+
const touch = event.changedTouches[i];
|
|
1548
|
+
if (touch && touch.identifier === touchId2) {
|
|
1549
|
+
return {
|
|
1550
|
+
x: touch.clientX,
|
|
1551
|
+
y: touch.clientY
|
|
1552
|
+
};
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
return false;
|
|
1556
|
+
}
|
|
1557
|
+
const mouseEvent = event;
|
|
1558
|
+
return {
|
|
1559
|
+
x: mouseEvent.clientX,
|
|
1560
|
+
y: mouseEvent.clientY
|
|
1561
|
+
};
|
|
1562
|
+
};
|
|
1563
|
+
const getNextFromCoords = (opts) => {
|
|
1564
|
+
const { coords, isMoving = false } = opts;
|
|
1565
|
+
const slider = sliderRef.value;
|
|
1566
|
+
if (!slider) return null;
|
|
1567
|
+
const rect = slider.getBoundingClientRect();
|
|
1568
|
+
const mainSize = orientation.value === "vertical" ? rect.height : rect.width;
|
|
1569
|
+
if (mainSize <= 0) return null;
|
|
1570
|
+
const percent = TRACK_CALCULATION_STRATEGIES[orientation.value](rect, coords);
|
|
1571
|
+
const raw = MathUtils.percentToValue(percent, min.value, max.value);
|
|
1572
|
+
const snapped = !isDiscrete.value ? roundToStep(raw, step.value, min.value) : marksValues.value[findClosestIndex(marksValues.value, raw)];
|
|
1573
|
+
if (typeof snapped !== "number") return null;
|
|
1574
|
+
const candidate = MathUtils.clamp(snapped, min.value, max.value);
|
|
1575
|
+
if (!isRange.value) {
|
|
1576
|
+
return { newValue: candidate, activeIndex: 0 };
|
|
1577
|
+
}
|
|
1578
|
+
const closestIndex = findClosestIndex(values.value, candidate);
|
|
1579
|
+
const index = isMoving && previousActiveIndex != null ? previousActiveIndex : closestIndex;
|
|
1580
|
+
const adjustedValues = adjustValueByIndex({
|
|
1581
|
+
values: values.value,
|
|
1582
|
+
newValue: candidate,
|
|
1583
|
+
index
|
|
1584
|
+
});
|
|
1585
|
+
const adjustedIndex = findClosestIndex(adjustedValues, candidate);
|
|
1586
|
+
previousActiveIndex = adjustedIndex;
|
|
1587
|
+
return { newValue: adjustedValues, activeIndex: adjustedIndex };
|
|
1588
|
+
};
|
|
1589
|
+
const commitValueFromEvent = (event, input2) => {
|
|
1590
|
+
const index = readThumbIndex(event);
|
|
1591
|
+
const current = values.value[index];
|
|
1592
|
+
if (typeof current !== "number") {
|
|
1593
|
+
return;
|
|
1594
|
+
}
|
|
1595
|
+
const useMarks = isDiscrete.value && marksList.value.length > 0;
|
|
1596
|
+
const snapByMarks = (candidate) => {
|
|
1597
|
+
const list = marksList.value;
|
|
1598
|
+
const first = list[0];
|
|
1599
|
+
const last = list.at(-1);
|
|
1600
|
+
if (!first || !last) {
|
|
1601
|
+
return current;
|
|
1602
|
+
}
|
|
1603
|
+
if (candidate <= first.value) {
|
|
1604
|
+
return first.value;
|
|
1605
|
+
}
|
|
1606
|
+
if (candidate >= last.value) {
|
|
1607
|
+
return last.value;
|
|
1608
|
+
}
|
|
1609
|
+
const pos = marksValues.value.indexOf(current);
|
|
1610
|
+
const neighbor = candidate < current ? list[pos - 1] : list[pos + 1];
|
|
1611
|
+
return neighbor?.value ?? current;
|
|
1612
|
+
};
|
|
1613
|
+
const scalar = MathUtils.clamp(useMarks ? snapByMarks(input2) : input2, min.value, max.value);
|
|
1614
|
+
const nextValues = isRange.value ? adjustValueByIndex({ values: values.value, newValue: scalar, index }) : [scalar];
|
|
1615
|
+
if (isRange.value) {
|
|
1616
|
+
const activeIndex = nextValues.indexOf(scalar);
|
|
1617
|
+
ensureFocusOnThumb({ index: activeIndex, shouldSetActive: true });
|
|
1618
|
+
}
|
|
1619
|
+
focusedThumbIndex.value = index;
|
|
1620
|
+
if (!areArraysEqual(values.value, nextValues)) {
|
|
1621
|
+
emitChange(nextValues);
|
|
1622
|
+
}
|
|
1623
|
+
emitCommit(nextValues);
|
|
1624
|
+
};
|
|
1625
|
+
const handlePointerEnd = (event) => {
|
|
1626
|
+
const coords = eventToCoords(event, touchId);
|
|
1627
|
+
isDragging.value = false;
|
|
1628
|
+
if (!coords) {
|
|
1629
|
+
return;
|
|
1630
|
+
}
|
|
1631
|
+
const next = getNextFromCoords({ coords, isMoving: true });
|
|
1632
|
+
if (!next) {
|
|
1633
|
+
return;
|
|
1634
|
+
}
|
|
1635
|
+
const { newValue } = next;
|
|
1636
|
+
activeThumbIndex.value = -1;
|
|
1637
|
+
emitCommit(valueToArray(newValue));
|
|
1638
|
+
movesSinceStart = 0;
|
|
1639
|
+
touchId = null;
|
|
1640
|
+
stopPointerListening();
|
|
1641
|
+
};
|
|
1642
|
+
const handlePointerMove = (event) => {
|
|
1643
|
+
const coords = eventToCoords(event, touchId);
|
|
1644
|
+
if (!coords) return;
|
|
1645
|
+
movesSinceStart += 1;
|
|
1646
|
+
if (event.type === "mousemove" && event.buttons === 0) {
|
|
1647
|
+
handlePointerEnd(event);
|
|
1648
|
+
return;
|
|
1649
|
+
}
|
|
1650
|
+
const nextState = getNextFromCoords({ coords, isMoving: true });
|
|
1651
|
+
if (!nextState) {
|
|
1652
|
+
handlePointerEnd(event);
|
|
1653
|
+
return;
|
|
1654
|
+
}
|
|
1655
|
+
const { newValue, activeIndex } = nextState;
|
|
1656
|
+
if (!isDragging.value && movesSinceStart > DRAG_MOVE_THRESHOLD) {
|
|
1657
|
+
isDragging.value = true;
|
|
1658
|
+
}
|
|
1659
|
+
ensureFocusOnThumb({ index: activeIndex, shouldSetActive: true });
|
|
1660
|
+
emitChange(valueToArray(newValue));
|
|
1661
|
+
isDragging.value = true;
|
|
1662
|
+
};
|
|
1663
|
+
const handlePointerStart = (event) => {
|
|
1664
|
+
if (isDisabled.value) {
|
|
1665
|
+
return;
|
|
1666
|
+
}
|
|
1667
|
+
const touch = event.changedTouches[0];
|
|
1668
|
+
if (touch !== null && touch !== void 0) {
|
|
1669
|
+
touchId = touch.identifier;
|
|
1670
|
+
}
|
|
1671
|
+
const coords = eventToCoords(event, touchId);
|
|
1672
|
+
if (coords) {
|
|
1673
|
+
const nextState = getNextFromCoords({ coords, isMoving: false });
|
|
1674
|
+
if (nextState) {
|
|
1675
|
+
const { newValue, activeIndex } = nextState;
|
|
1676
|
+
ensureFocusOnThumb({ index: activeIndex, shouldSetActive: true });
|
|
1677
|
+
emitChange(valueToArray(newValue));
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
movesSinceStart = 0;
|
|
1681
|
+
document.addEventListener("touchmove", handlePointerMove, {
|
|
1682
|
+
passive: true
|
|
1683
|
+
});
|
|
1684
|
+
document.addEventListener("touchend", handlePointerEnd);
|
|
1685
|
+
};
|
|
1686
|
+
const stopPointerListening = () => {
|
|
1687
|
+
document.removeEventListener("mousemove", handlePointerMove);
|
|
1688
|
+
document.removeEventListener("mouseup", handlePointerEnd);
|
|
1689
|
+
document.removeEventListener("touchmove", handlePointerMove);
|
|
1690
|
+
document.removeEventListener("touchend", handlePointerEnd);
|
|
1691
|
+
};
|
|
1692
|
+
const handleRootMousedown = (event) => {
|
|
1693
|
+
if (isDisabled.value) {
|
|
1694
|
+
return;
|
|
1695
|
+
}
|
|
1696
|
+
if (event.button !== 0) {
|
|
1697
|
+
return;
|
|
1698
|
+
}
|
|
1699
|
+
if (event.defaultPrevented) {
|
|
1700
|
+
return;
|
|
1701
|
+
}
|
|
1702
|
+
event.preventDefault();
|
|
1703
|
+
const coords = eventToCoords(event, touchId);
|
|
1704
|
+
if (coords) {
|
|
1705
|
+
const nextState = getNextFromCoords({ coords });
|
|
1706
|
+
if (nextState) {
|
|
1707
|
+
const { newValue, activeIndex } = nextState;
|
|
1708
|
+
ensureFocusOnThumb({ index: activeIndex, shouldSetActive: true });
|
|
1709
|
+
emitChange(valueToArray(newValue));
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
movesSinceStart = 0;
|
|
1713
|
+
document.addEventListener("mousemove", handlePointerMove, {
|
|
1714
|
+
passive: true
|
|
1715
|
+
});
|
|
1716
|
+
document.addEventListener("mouseup", handlePointerEnd);
|
|
1717
|
+
};
|
|
1718
|
+
const handleHiddenInputChange = (event) => {
|
|
1719
|
+
if (isDisabled.value) {
|
|
1720
|
+
return;
|
|
1721
|
+
}
|
|
1722
|
+
const value = event.target.valueAsNumber;
|
|
1723
|
+
commitValueFromEvent(event, value);
|
|
1724
|
+
};
|
|
1725
|
+
const handleHiddenInputFocus = (event) => {
|
|
1726
|
+
const index = readThumbIndex(event);
|
|
1727
|
+
if (isFocusVisible(event.target)) {
|
|
1728
|
+
focusedThumbIndex.value = index;
|
|
1729
|
+
activeThumbIndex.value = index;
|
|
1730
|
+
}
|
|
1731
|
+
};
|
|
1732
|
+
const handleHiddenInputBlur = (event) => {
|
|
1733
|
+
if (!isFocusVisible(event.target)) {
|
|
1734
|
+
focusedThumbIndex.value = -1;
|
|
1735
|
+
activeThumbIndex.value = -1;
|
|
1736
|
+
}
|
|
1737
|
+
};
|
|
1738
|
+
const handleHiddenInputKeydown = (event) => {
|
|
1739
|
+
if (!NAVIGATION_KEYS.has(event.key)) return;
|
|
1740
|
+
event.preventDefault();
|
|
1741
|
+
const index = readThumbIndex(event);
|
|
1742
|
+
const value = values.value[index];
|
|
1743
|
+
if (typeof value !== "number") {
|
|
1744
|
+
return;
|
|
1745
|
+
}
|
|
1746
|
+
if (!isDiscrete.value) {
|
|
1747
|
+
const stepSize = event.shiftKey ? shiftStep.value : step.value;
|
|
1748
|
+
if (event.key === "Home") return commitValueFromEvent(event, min.value);
|
|
1749
|
+
if (event.key === "End") return commitValueFromEvent(event, max.value);
|
|
1750
|
+
if (INCREMENT_KEYS.has(event.key)) {
|
|
1751
|
+
const next = MathUtils.clamp(value + stepSize, min.value, max.value);
|
|
1752
|
+
if (next !== value) commitValueFromEvent(event, next);
|
|
1753
|
+
return;
|
|
1754
|
+
}
|
|
1755
|
+
if (DECREMENT_KEYS.has(event.key)) {
|
|
1756
|
+
const next = MathUtils.clamp(value - stepSize, min.value, max.value);
|
|
1757
|
+
if (next !== value) commitValueFromEvent(event, next);
|
|
1758
|
+
return;
|
|
1759
|
+
}
|
|
1760
|
+
return;
|
|
1761
|
+
} else {
|
|
1762
|
+
const values2 = marksValues.value;
|
|
1763
|
+
const lastIndex = values2.length - 1;
|
|
1764
|
+
const currentIndex = values2.indexOf(value);
|
|
1765
|
+
const first = values2[0];
|
|
1766
|
+
const last = values2[lastIndex];
|
|
1767
|
+
if (event.key === "Home" && typeof first === "number")
|
|
1768
|
+
return commitValueFromEvent(event, first);
|
|
1769
|
+
if (event.key === "End" && typeof last === "number")
|
|
1770
|
+
return commitValueFromEvent(event, last);
|
|
1771
|
+
if (INCREMENT_KEYS.has(event.key)) {
|
|
1772
|
+
const nextIdx = currentIndex < 0 ? 0 : Math.min(lastIndex, currentIndex + 1);
|
|
1773
|
+
const next = values2[nextIdx];
|
|
1774
|
+
if (next !== value && typeof next === "number") commitValueFromEvent(event, next);
|
|
1775
|
+
return;
|
|
1776
|
+
}
|
|
1777
|
+
if (DECREMENT_KEYS.has(event.key)) {
|
|
1778
|
+
const nextIdx = currentIndex < 0 ? 0 : Math.max(0, currentIndex - 1);
|
|
1779
|
+
const next = values2[nextIdx];
|
|
1780
|
+
if (next !== value && typeof next === "number") commitValueFromEvent(event, next);
|
|
1781
|
+
return;
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
};
|
|
1785
|
+
const trackOffset = computed(
|
|
1786
|
+
() => MathUtils.valueToPercent(
|
|
1787
|
+
isRange.value && values.value[0] ? values.value[0] : min.value,
|
|
1788
|
+
min.value,
|
|
1789
|
+
max.value
|
|
1790
|
+
)
|
|
1791
|
+
);
|
|
1792
|
+
const trackLength = computed(
|
|
1793
|
+
() => MathUtils.valueToPercent(values.value.at(-1) ?? 0, min.value, max.value) - trackOffset.value
|
|
1794
|
+
);
|
|
1795
|
+
const trackStyle = computed(() => ({
|
|
1796
|
+
[axis.value.position]: `${trackOffset.value}%`,
|
|
1797
|
+
[axis.value.size]: `${trackLength.value}%`
|
|
1798
|
+
}));
|
|
1799
|
+
const isMarkActive = computed(() => (markValue) => {
|
|
1800
|
+
if (isRange.value) {
|
|
1801
|
+
const minValue = Math.min(...values.value);
|
|
1802
|
+
const maxValue = Math.max(...values.value);
|
|
1803
|
+
return markValue >= minValue && markValue <= maxValue;
|
|
1804
|
+
}
|
|
1805
|
+
const currentValue = values.value[0];
|
|
1806
|
+
return markValue <= currentValue;
|
|
1807
|
+
});
|
|
1808
|
+
onBeforeUnmount(stopPointerListening);
|
|
1809
|
+
watch(
|
|
1810
|
+
() => isDisabled.value,
|
|
1811
|
+
() => {
|
|
1812
|
+
if (isDisabled.value) {
|
|
1813
|
+
isDragging.value = false;
|
|
1814
|
+
activeThumbIndex.value = -1;
|
|
1815
|
+
focusedThumbIndex.value = -1;
|
|
1816
|
+
stopPointerListening();
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
);
|
|
1820
|
+
return {
|
|
1821
|
+
elements: {
|
|
1822
|
+
/**
|
|
1823
|
+
* Root slider container element
|
|
1824
|
+
*/
|
|
1825
|
+
root: computed(() => ({
|
|
1826
|
+
ref: sliderRef,
|
|
1827
|
+
style: { touchAction: orientation.value === "vertical" ? "pan-x" : "pan-y" },
|
|
1828
|
+
onMousedown: handleRootMousedown,
|
|
1829
|
+
onTouchstart: handlePointerStart
|
|
1830
|
+
})),
|
|
1831
|
+
/**
|
|
1832
|
+
* Individual thumb elements for each value (span)
|
|
1833
|
+
*/
|
|
1834
|
+
thumbContainer: computed(() => (data) => ({
|
|
1835
|
+
"data-index": data.index,
|
|
1836
|
+
style: {
|
|
1837
|
+
[axis.value.position]: `${MathUtils.valueToPercent(data.value, min.value, max.value)}%`
|
|
1838
|
+
}
|
|
1839
|
+
})),
|
|
1840
|
+
/**
|
|
1841
|
+
* Visually hidden input inside each thumb for accessibility
|
|
1842
|
+
*/
|
|
1843
|
+
thumbInput: computed(() => (data) => ({
|
|
1844
|
+
min: min.value,
|
|
1845
|
+
max: max.value,
|
|
1846
|
+
value: data.value,
|
|
1847
|
+
role: "slider",
|
|
1848
|
+
type: "range",
|
|
1849
|
+
"aria-label": label.value,
|
|
1850
|
+
"aria-valuemin": min.value,
|
|
1851
|
+
"aria-valuemax": max.value,
|
|
1852
|
+
"aria-valuenow": data.value,
|
|
1853
|
+
"aria-orientation": orientation.value,
|
|
1854
|
+
"data-index": data.index,
|
|
1855
|
+
tabIndex: isDisabled.value ? -1 : 0,
|
|
1856
|
+
step: isDiscrete.value && marks.value ? "any" : step.value ?? void 0,
|
|
1857
|
+
disabled: typeof isDisabled.value === "boolean" ? isDisabled.value : false,
|
|
1858
|
+
onChange: handleHiddenInputChange,
|
|
1859
|
+
onFocus: handleHiddenInputFocus,
|
|
1860
|
+
onBlur: handleHiddenInputBlur,
|
|
1861
|
+
onKeydown: handleHiddenInputKeydown
|
|
1862
|
+
})),
|
|
1863
|
+
/**
|
|
1864
|
+
* Mark elements
|
|
1865
|
+
*/
|
|
1866
|
+
mark: computed(() => (data) => ({
|
|
1867
|
+
"data-value": data.value,
|
|
1868
|
+
"aria-hidden": true,
|
|
1869
|
+
style: {
|
|
1870
|
+
[axis.value.position]: `${MathUtils.clamp(MathUtils.valueToPercent(data.value, min.value, max.value), 0, 100)}%`
|
|
1871
|
+
}
|
|
1872
|
+
})),
|
|
1873
|
+
/**
|
|
1874
|
+
* Label for each mark
|
|
1875
|
+
*/
|
|
1876
|
+
markLabel: computed(() => (data) => ({
|
|
1877
|
+
"data-value": data.value,
|
|
1878
|
+
style: {
|
|
1879
|
+
[axis.value.position]: `${MathUtils.valueToPercent(data.value, min.value, max.value)}%`
|
|
1880
|
+
},
|
|
1881
|
+
"aria-hidden": true
|
|
1882
|
+
})),
|
|
1883
|
+
/**
|
|
1884
|
+
* Track element representing the selected range
|
|
1885
|
+
*/
|
|
1886
|
+
track: computed(() => ({
|
|
1887
|
+
role: "presentation",
|
|
1888
|
+
"aria-hidden": true,
|
|
1889
|
+
style: trackStyle.value
|
|
1890
|
+
})),
|
|
1891
|
+
/**
|
|
1892
|
+
* Rail element representing the full slider range
|
|
1893
|
+
*/
|
|
1894
|
+
rail: computed(() => ({
|
|
1895
|
+
role: "presentation",
|
|
1896
|
+
"aria-hidden": true
|
|
1897
|
+
}))
|
|
1898
|
+
},
|
|
1899
|
+
state: {
|
|
1900
|
+
/**
|
|
1901
|
+
* True if the slider is currently being dragged.
|
|
1902
|
+
*/
|
|
1903
|
+
isDragging,
|
|
1904
|
+
/**
|
|
1905
|
+
* Index of the currently active thumb.
|
|
1906
|
+
* Thumb could be active even if not dragging (e.g. click on the rail to move the thumb there).
|
|
1907
|
+
* `-1` if no thumb is active.
|
|
1908
|
+
*/
|
|
1909
|
+
activeThumbIndex,
|
|
1910
|
+
/**
|
|
1911
|
+
* Index of the thumb that is currently focused.
|
|
1912
|
+
* `-1` if no thumb is focused.
|
|
1913
|
+
*/
|
|
1914
|
+
focusedThumbIndex,
|
|
1915
|
+
/**
|
|
1916
|
+
* `true` if the slider is a range slider (with two or more thumbs).
|
|
1917
|
+
*/
|
|
1918
|
+
isRange,
|
|
1919
|
+
/**
|
|
1920
|
+
* Offset of the track as a percentage (0-100).
|
|
1921
|
+
*/
|
|
1922
|
+
trackOffset,
|
|
1923
|
+
/**
|
|
1924
|
+
* Length of the track as a percentage (0-100).
|
|
1925
|
+
*/
|
|
1926
|
+
trackLength,
|
|
1927
|
+
/**
|
|
1928
|
+
* List of marks to display on the slider.
|
|
1929
|
+
* - If marks option is `true`, marks are generated based on the step value.
|
|
1930
|
+
* - If marks option is an array of numbers or objects, it is used as provided (filtered to be within range).
|
|
1931
|
+
* - If marks option is `false`, no marks are shown.
|
|
1932
|
+
*/
|
|
1933
|
+
marksList
|
|
1934
|
+
},
|
|
1935
|
+
internals: {
|
|
1936
|
+
/**
|
|
1937
|
+
* Converts a value from the slider's range to a percentage (0-100).
|
|
1938
|
+
* @param value - value to convert
|
|
1939
|
+
* @returns percentage representation of the value
|
|
1940
|
+
*/
|
|
1941
|
+
valueToPercent: computed(
|
|
1942
|
+
() => (value) => MathUtils.valueToPercent(value, min.value, max.value)
|
|
1943
|
+
),
|
|
1944
|
+
/**
|
|
1945
|
+
* Checks if a given mark value is active (i.e., within the selected range).
|
|
1946
|
+
* Use case: when rendering marks, to determine if a mark is covered by the selected range.
|
|
1947
|
+
*
|
|
1948
|
+
* @param markValue - value of the mark to check
|
|
1949
|
+
* @returns `true` if the mark is active, `false` otherwise
|
|
1950
|
+
*/
|
|
1951
|
+
isMarkActive,
|
|
1952
|
+
/**
|
|
1953
|
+
* Clamps a value to the slider's range.
|
|
1954
|
+
* @param value - value to clamp
|
|
1955
|
+
* @returns clamped value
|
|
1956
|
+
*/
|
|
1957
|
+
clampValue: computed(() => (value) => MathUtils.clamp(value, min.value, max.value)),
|
|
1958
|
+
/**
|
|
1959
|
+
* Main axis properties based on orientation.
|
|
1960
|
+
*/
|
|
1961
|
+
axis,
|
|
1962
|
+
/**
|
|
1963
|
+
* Rounds a value to the nearest valid step.
|
|
1964
|
+
* @param value - value to round
|
|
1965
|
+
* @returns rounded value
|
|
1966
|
+
*/
|
|
1967
|
+
roundToStep: computed(
|
|
1968
|
+
() => (value) => !isDiscrete.value ? roundToStep(value, step.value, min.value) : marksValues.value[findClosestIndex(marksValues.value, value)]
|
|
1969
|
+
),
|
|
1970
|
+
/**
|
|
1971
|
+
* Normalizes an array of values to ensure they are within min/max bounds,
|
|
1972
|
+
*/
|
|
1973
|
+
normalizeValues: computed(
|
|
1974
|
+
() => (values2) => normalizeValues(values2, min.value, max.value, step.value)
|
|
1975
|
+
)
|
|
1976
|
+
}
|
|
1977
|
+
};
|
|
1978
|
+
}
|
|
1979
|
+
);
|
|
1365
1980
|
const createTabs = createBuilder((options) => {
|
|
1366
1981
|
const idMap = /* @__PURE__ */ new Map();
|
|
1367
1982
|
const getId = (value) => {
|
|
@@ -1542,7 +2157,7 @@ const createTooltip = createBuilder(({ debounce: debounce2, isVisible }) => {
|
|
|
1542
2157
|
}
|
|
1543
2158
|
};
|
|
1544
2159
|
});
|
|
1545
|
-
const _sfc_main$
|
|
2160
|
+
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
1546
2161
|
__name: "OnyxBasicDialog",
|
|
1547
2162
|
props: {
|
|
1548
2163
|
density: { type: null, required: false },
|
|
@@ -1598,12 +2213,12 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
1598
2213
|
return __returned__;
|
|
1599
2214
|
}
|
|
1600
2215
|
});
|
|
1601
|
-
const _hoisted_1$
|
|
1602
|
-
const _hoisted_2$
|
|
2216
|
+
const _hoisted_1$19 = ["aria-modal", "aria-label", "role"];
|
|
2217
|
+
const _hoisted_2$Q = {
|
|
1603
2218
|
ref: "contentRef",
|
|
1604
2219
|
class: "onyx-basic-dialog__content"
|
|
1605
2220
|
};
|
|
1606
|
-
function _sfc_render$
|
|
2221
|
+
function _sfc_render$1D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1607
2222
|
return $setup.props.open ? (openBlock(), createElementBlock("dialog", {
|
|
1608
2223
|
key: 0,
|
|
1609
2224
|
ref: "dialogRef",
|
|
@@ -1622,16 +2237,16 @@ function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1622
2237
|
}, [
|
|
1623
2238
|
createElementVNode(
|
|
1624
2239
|
"div",
|
|
1625
|
-
_hoisted_2$
|
|
2240
|
+
_hoisted_2$Q,
|
|
1626
2241
|
[
|
|
1627
2242
|
renderSlot(_ctx.$slots, "default")
|
|
1628
2243
|
],
|
|
1629
2244
|
512
|
|
1630
2245
|
/* NEED_PATCH */
|
|
1631
2246
|
)
|
|
1632
|
-
], 42, _hoisted_1$
|
|
2247
|
+
], 42, _hoisted_1$19)) : createCommentVNode("v-if", true);
|
|
1633
2248
|
}
|
|
1634
|
-
const OnyxBasicDialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2249
|
+
const OnyxBasicDialog = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$1D], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBasicDialog/OnyxBasicDialog.vue"]]);
|
|
1635
2250
|
const normalizedIncludes = (haystack, needle) => {
|
|
1636
2251
|
const haystackNormalized = removeDiacritics(haystack.toLowerCase());
|
|
1637
2252
|
const needleNormalized = removeDiacritics(needle.toLowerCase());
|
|
@@ -1713,7 +2328,7 @@ const normalizeHref = (href) => {
|
|
|
1713
2328
|
return value.replace(/\/+$/, "");
|
|
1714
2329
|
};
|
|
1715
2330
|
const ROUTER_INJECTION_KEY = Symbol();
|
|
1716
|
-
const _sfc_main$
|
|
2331
|
+
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
1717
2332
|
__name: "OnyxVisuallyHidden",
|
|
1718
2333
|
props: {
|
|
1719
2334
|
is: { type: String, required: false, default: "span" }
|
|
@@ -1726,7 +2341,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
1726
2341
|
return __returned__;
|
|
1727
2342
|
}
|
|
1728
2343
|
});
|
|
1729
|
-
function _sfc_render$
|
|
2344
|
+
function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1730
2345
|
return openBlock(), createBlock(resolveDynamicComponent($setup.props.is), { class: "onyx-component onyx-visually-hidden" }, {
|
|
1731
2346
|
default: withCtx(() => [
|
|
1732
2347
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -1735,8 +2350,8 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1735
2350
|
/* FORWARDED */
|
|
1736
2351
|
});
|
|
1737
2352
|
}
|
|
1738
|
-
const OnyxVisuallyHidden = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1739
|
-
const _sfc_main$
|
|
2353
|
+
const OnyxVisuallyHidden = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["render", _sfc_render$1C], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxVisuallyHidden/OnyxVisuallyHidden.vue"]]);
|
|
2354
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
1740
2355
|
__name: "OnyxRouterLink",
|
|
1741
2356
|
props: {
|
|
1742
2357
|
href: { type: String, required: true },
|
|
@@ -1752,8 +2367,8 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
1752
2367
|
return __returned__;
|
|
1753
2368
|
}
|
|
1754
2369
|
});
|
|
1755
|
-
const _hoisted_1$
|
|
1756
|
-
function _sfc_render$
|
|
2370
|
+
const _hoisted_1$18 = ["href", "target", "rel"];
|
|
2371
|
+
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1757
2372
|
return openBlock(), createElementBlock("a", {
|
|
1758
2373
|
class: normalizeClass([
|
|
1759
2374
|
"onyx-component",
|
|
@@ -1777,10 +2392,10 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1777
2392
|
_: 1
|
|
1778
2393
|
/* STABLE */
|
|
1779
2394
|
})) : createCommentVNode("v-if", true)
|
|
1780
|
-
], 10, _hoisted_1$
|
|
2395
|
+
], 10, _hoisted_1$18);
|
|
1781
2396
|
}
|
|
1782
|
-
const OnyxRouterLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1783
|
-
const _sfc_main$
|
|
2397
|
+
const OnyxRouterLink = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1B], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxRouterLink/OnyxRouterLink.vue"]]);
|
|
2398
|
+
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
1784
2399
|
__name: "OnyxHeadline",
|
|
1785
2400
|
props: {
|
|
1786
2401
|
is: { type: null, required: true },
|
|
@@ -1805,7 +2420,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
1805
2420
|
return __returned__;
|
|
1806
2421
|
}
|
|
1807
2422
|
});
|
|
1808
|
-
function _sfc_render$
|
|
2423
|
+
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1809
2424
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
1810
2425
|
key: 0,
|
|
1811
2426
|
class: normalizeClass(["onyx-headline-skeleton", `onyx-headline-skeleton--${$setup.showAs}`])
|
|
@@ -1845,7 +2460,7 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1845
2460
|
/* FORWARDED */
|
|
1846
2461
|
}, 8, ["id", "class"]));
|
|
1847
2462
|
}
|
|
1848
|
-
const OnyxHeadline = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2463
|
+
const OnyxHeadline = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1A], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxHeadline/OnyxHeadline.vue"]]);
|
|
1849
2464
|
const useAutofocus = (inputRef, props) => {
|
|
1850
2465
|
if (!props.autofocus) {
|
|
1851
2466
|
return;
|
|
@@ -1896,7 +2511,7 @@ const useFormContext = (props) => {
|
|
|
1896
2511
|
DEFAULT_FORM_INJECTION_CONTEXT
|
|
1897
2512
|
)(toRef(props));
|
|
1898
2513
|
};
|
|
1899
|
-
const _sfc_main$
|
|
2514
|
+
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
1900
2515
|
__name: "ButtonOrLinkLayout",
|
|
1901
2516
|
props: {
|
|
1902
2517
|
disabled: { type: [Boolean, Symbol], required: false },
|
|
@@ -1919,8 +2534,8 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
1919
2534
|
return __returned__;
|
|
1920
2535
|
}
|
|
1921
2536
|
});
|
|
1922
|
-
const _hoisted_1$
|
|
1923
|
-
function _sfc_render$
|
|
2537
|
+
const _hoisted_1$17 = ["disabled", "type", "autofocus"];
|
|
2538
|
+
function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1924
2539
|
return $setup.linkProps ? (openBlock(), createBlock(
|
|
1925
2540
|
$setup["OnyxRouterLink"],
|
|
1926
2541
|
normalizeProps(mergeProps({ key: 0 }, $setup.linkProps)),
|
|
@@ -1941,10 +2556,10 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1941
2556
|
autofocus: $setup.props.autofocus
|
|
1942
2557
|
}, [
|
|
1943
2558
|
renderSlot(_ctx.$slots, "default")
|
|
1944
|
-
], 8, _hoisted_1$
|
|
2559
|
+
], 8, _hoisted_1$17));
|
|
1945
2560
|
}
|
|
1946
|
-
const ButtonOrLinkLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1947
|
-
const _sfc_main$
|
|
2561
|
+
const ButtonOrLinkLayout = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1z], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxButton/ButtonOrLinkLayout.vue"]]);
|
|
2562
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
1948
2563
|
__name: "OnyxSystemButton",
|
|
1949
2564
|
props: {
|
|
1950
2565
|
disabled: { type: [Boolean, Symbol], required: false, default: FORM_INJECTED_SYMBOL },
|
|
@@ -1965,7 +2580,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
1965
2580
|
return __returned__;
|
|
1966
2581
|
}
|
|
1967
2582
|
});
|
|
1968
|
-
function _sfc_render$
|
|
2583
|
+
function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1969
2584
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
1970
2585
|
key: 0,
|
|
1971
2586
|
class: normalizeClass(["onyx-system-button-skeleton", $setup.props.icon ? "" : "onyx-system-button-skeleton--text"])
|
|
@@ -1997,8 +2612,8 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1997
2612
|
/* STABLE */
|
|
1998
2613
|
}, 16, ["class", "aria-label", "title"]));
|
|
1999
2614
|
}
|
|
2000
|
-
const OnyxSystemButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2001
|
-
const _sfc_main$
|
|
2615
|
+
const OnyxSystemButton = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$1y], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSystemButton/OnyxSystemButton.vue"]]);
|
|
2616
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
2002
2617
|
__name: "OnyxAlertModal",
|
|
2003
2618
|
props: {
|
|
2004
2619
|
density: { type: null, required: false },
|
|
@@ -2023,11 +2638,11 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
2023
2638
|
return __returned__;
|
|
2024
2639
|
}
|
|
2025
2640
|
});
|
|
2026
|
-
const _hoisted_1$
|
|
2027
|
-
const _hoisted_2$
|
|
2028
|
-
const _hoisted_3$
|
|
2029
|
-
const _hoisted_4$
|
|
2030
|
-
function _sfc_render$
|
|
2641
|
+
const _hoisted_1$16 = { class: "onyx-alert-modal__content" };
|
|
2642
|
+
const _hoisted_2$P = { class: "onyx-alert-modal__headline" };
|
|
2643
|
+
const _hoisted_3$z = ["id"];
|
|
2644
|
+
const _hoisted_4$n = { class: "onyx-alert-modal__actions" };
|
|
2645
|
+
function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2031
2646
|
return openBlock(), createBlock($setup["OnyxBasicDialog"], mergeProps({
|
|
2032
2647
|
class: ["onyx-alert-modal", $setup.densityClass]
|
|
2033
2648
|
}, $setup.dialogProps, {
|
|
@@ -2037,7 +2652,7 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2037
2652
|
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => $setup.emit("update:open", $event))
|
|
2038
2653
|
}), {
|
|
2039
2654
|
default: withCtx(() => [
|
|
2040
|
-
createElementVNode("div", _hoisted_1$
|
|
2655
|
+
createElementVNode("div", _hoisted_1$16, [
|
|
2041
2656
|
$setup.props.icon ? (openBlock(), createBlock(
|
|
2042
2657
|
$setup["OnyxIcon"],
|
|
2043
2658
|
mergeProps({
|
|
@@ -2049,7 +2664,7 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2049
2664
|
/* FULL_PROPS */
|
|
2050
2665
|
)) : createCommentVNode("v-if", true),
|
|
2051
2666
|
createElementVNode("div", null, [
|
|
2052
|
-
createElementVNode("div", _hoisted_2$
|
|
2667
|
+
createElementVNode("div", _hoisted_2$P, [
|
|
2053
2668
|
renderSlot(_ctx.$slots, "headline", {
|
|
2054
2669
|
label: $setup.props.label
|
|
2055
2670
|
}, () => [
|
|
@@ -2077,10 +2692,10 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2077
2692
|
class: "onyx-alert-modal__body onyx-truncation"
|
|
2078
2693
|
}, [
|
|
2079
2694
|
renderSlot(_ctx.$slots, "default")
|
|
2080
|
-
], 8, _hoisted_3$
|
|
2695
|
+
], 8, _hoisted_3$z)
|
|
2081
2696
|
])
|
|
2082
2697
|
]),
|
|
2083
|
-
createElementVNode("div", _hoisted_4$
|
|
2698
|
+
createElementVNode("div", _hoisted_4$n, [
|
|
2084
2699
|
renderSlot(_ctx.$slots, "actions")
|
|
2085
2700
|
])
|
|
2086
2701
|
]),
|
|
@@ -2088,7 +2703,7 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2088
2703
|
/* FORWARDED */
|
|
2089
2704
|
}, 16, ["class", "aria-describedby"]);
|
|
2090
2705
|
}
|
|
2091
|
-
const OnyxAlertModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2706
|
+
const OnyxAlertModal = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$1x], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAlertModal/OnyxAlertModal.vue"]]);
|
|
2092
2707
|
const useRootAttrs = () => {
|
|
2093
2708
|
const attrs = useAttrs();
|
|
2094
2709
|
const rootAttrs = computed(
|
|
@@ -2170,7 +2785,7 @@ const mergeVueProps = (...args) => args.reduce((prev, curr) => {
|
|
|
2170
2785
|
merged.ref = mergedRef;
|
|
2171
2786
|
return merged;
|
|
2172
2787
|
}, {});
|
|
2173
|
-
const _sfc_main$
|
|
2788
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
2174
2789
|
__name: "OnyxFABButton",
|
|
2175
2790
|
props: {
|
|
2176
2791
|
density: { type: null, required: false },
|
|
@@ -2190,11 +2805,11 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
2190
2805
|
return __returned__;
|
|
2191
2806
|
}
|
|
2192
2807
|
});
|
|
2193
|
-
const _hoisted_1$
|
|
2808
|
+
const _hoisted_1$15 = {
|
|
2194
2809
|
key: 1,
|
|
2195
2810
|
class: "onyx-fab-button__label"
|
|
2196
2811
|
};
|
|
2197
|
-
function _sfc_render$
|
|
2812
|
+
function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2198
2813
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
2199
2814
|
key: 0,
|
|
2200
2815
|
class: normalizeClass(["onyx-fab-button-skeleton", $setup.densityClass])
|
|
@@ -2212,7 +2827,7 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2212
2827
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
2213
2828
|
!$setup.props.hideLabel ? (openBlock(), createElementBlock(
|
|
2214
2829
|
"span",
|
|
2215
|
-
_hoisted_1$
|
|
2830
|
+
_hoisted_1$15,
|
|
2216
2831
|
toDisplayString($setup.props.label),
|
|
2217
2832
|
1
|
|
2218
2833
|
/* TEXT */
|
|
@@ -2222,7 +2837,7 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2222
2837
|
/* STABLE */
|
|
2223
2838
|
}, 8, ["class", "title", "aria-label", "link"]));
|
|
2224
2839
|
}
|
|
2225
|
-
const OnyxFABButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2840
|
+
const OnyxFABButton = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1w], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFABButton/OnyxFABButton.vue"]]);
|
|
2226
2841
|
const useResizeObserver = (target, options) => {
|
|
2227
2842
|
const box = options?.box ?? "content-box";
|
|
2228
2843
|
const width = ref(0);
|
|
@@ -2534,7 +3149,7 @@ function useSticky(options) {
|
|
|
2534
3149
|
});
|
|
2535
3150
|
return { stickyStyles, scrolledOut, isSticky, checkVisibilityOnScroll };
|
|
2536
3151
|
}
|
|
2537
|
-
const _sfc_main$
|
|
3152
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
2538
3153
|
__name: "OnyxBasicPopover",
|
|
2539
3154
|
props: {
|
|
2540
3155
|
label: { type: String, required: true },
|
|
@@ -2692,8 +3307,8 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
2692
3307
|
return __returned__;
|
|
2693
3308
|
}
|
|
2694
3309
|
});
|
|
2695
|
-
const _hoisted_1$
|
|
2696
|
-
function _sfc_render$
|
|
3310
|
+
const _hoisted_1$14 = ["role", "aria-label"];
|
|
3311
|
+
function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2697
3312
|
return openBlock(), createElementBlock(
|
|
2698
3313
|
"div",
|
|
2699
3314
|
{
|
|
@@ -2712,14 +3327,14 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2712
3327
|
style: normalizeStyle(!$setup.isSticky ? $setup.popoverStyles : $setup.stickyStyles)
|
|
2713
3328
|
}, [
|
|
2714
3329
|
renderSlot(_ctx.$slots, "content")
|
|
2715
|
-
], 14, _hoisted_1$
|
|
3330
|
+
], 14, _hoisted_1$14)
|
|
2716
3331
|
],
|
|
2717
3332
|
4
|
|
2718
3333
|
/* STYLE */
|
|
2719
3334
|
);
|
|
2720
3335
|
}
|
|
2721
|
-
const OnyxBasicPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2722
|
-
const _sfc_main$
|
|
3336
|
+
const OnyxBasicPopover = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$1v], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBasicPopover/OnyxBasicPopover.vue"]]);
|
|
3337
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
2723
3338
|
__name: "OnyxFlyoutMenu",
|
|
2724
3339
|
props: {
|
|
2725
3340
|
alignment: { type: String, required: false, default: "auto" },
|
|
@@ -2761,9 +3376,9 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
2761
3376
|
return __returned__;
|
|
2762
3377
|
}
|
|
2763
3378
|
});
|
|
2764
|
-
const _hoisted_1$
|
|
2765
|
-
const _hoisted_2$
|
|
2766
|
-
function _sfc_render$
|
|
3379
|
+
const _hoisted_1$13 = { class: "onyx-flyout-menu__list-header" };
|
|
3380
|
+
const _hoisted_2$O = { class: "onyx-flyout-menu__list-footer" };
|
|
3381
|
+
function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2767
3382
|
return openBlock(), createBlock($setup["OnyxBasicPopover"], mergeProps($setup.mergeVueProps($setup.root, { ref: $setup.popover }), {
|
|
2768
3383
|
class: "onyx-component onyx-flyout-menu",
|
|
2769
3384
|
open: $setup.isExpanded,
|
|
@@ -2772,7 +3387,7 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2772
3387
|
disabled: $props.disabled
|
|
2773
3388
|
}), createSlots({
|
|
2774
3389
|
content: withCtx(() => [
|
|
2775
|
-
createElementVNode("div", _hoisted_1$
|
|
3390
|
+
createElementVNode("div", _hoisted_1$13, [
|
|
2776
3391
|
renderSlot(_ctx.$slots, "header")
|
|
2777
3392
|
]),
|
|
2778
3393
|
$setup.slots.options ? (openBlock(), createElementBlock(
|
|
@@ -2784,7 +3399,7 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2784
3399
|
16
|
|
2785
3400
|
/* FULL_PROPS */
|
|
2786
3401
|
)) : createCommentVNode("v-if", true),
|
|
2787
|
-
createElementVNode("div", _hoisted_2$
|
|
3402
|
+
createElementVNode("div", _hoisted_2$O, [
|
|
2788
3403
|
renderSlot(_ctx.$slots, "footer")
|
|
2789
3404
|
])
|
|
2790
3405
|
]),
|
|
@@ -2805,8 +3420,8 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2805
3420
|
} : void 0
|
|
2806
3421
|
]), 1040, ["open", "label", "alignment", "disabled"]);
|
|
2807
3422
|
}
|
|
2808
|
-
const OnyxFlyoutMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2809
|
-
const _sfc_main$
|
|
3423
|
+
const OnyxFlyoutMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$1u], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue"]]);
|
|
3424
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
2810
3425
|
__name: "OnyxFAB",
|
|
2811
3426
|
props: {
|
|
2812
3427
|
density: { type: null, required: false },
|
|
@@ -2845,7 +3460,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
2845
3460
|
return __returned__;
|
|
2846
3461
|
}
|
|
2847
3462
|
});
|
|
2848
|
-
function _sfc_render$
|
|
3463
|
+
function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2849
3464
|
return !$setup.hasOptions || $setup.skeleton ? (openBlock(), createBlock($setup["OnyxFABButton"], mergeProps({
|
|
2850
3465
|
key: 0,
|
|
2851
3466
|
class: ["onyx-fab", `onyx-fab--${$setup.props.alignment}`]
|
|
@@ -2875,8 +3490,8 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2875
3490
|
/* FORWARDED */
|
|
2876
3491
|
}, 8, ["open", "label", "class", "alignment"]));
|
|
2877
3492
|
}
|
|
2878
|
-
const OnyxFAB = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2879
|
-
const _sfc_main$
|
|
3493
|
+
const OnyxFAB = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1t], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFAB/OnyxFAB.vue"]]);
|
|
3494
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
2880
3495
|
__name: "OnyxFABItem",
|
|
2881
3496
|
props: {
|
|
2882
3497
|
density: { type: null, required: false },
|
|
@@ -2899,7 +3514,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
2899
3514
|
return __returned__;
|
|
2900
3515
|
}
|
|
2901
3516
|
});
|
|
2902
|
-
function _sfc_render$
|
|
3517
|
+
function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2903
3518
|
return openBlock(), createElementBlock(
|
|
2904
3519
|
"li",
|
|
2905
3520
|
mergeProps({
|
|
@@ -2914,7 +3529,7 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2914
3529
|
/* FULL_PROPS */
|
|
2915
3530
|
);
|
|
2916
3531
|
}
|
|
2917
|
-
const OnyxFABItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3532
|
+
const OnyxFABItem = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", _sfc_render$1s], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFABItem/OnyxFABItem.vue"]]);
|
|
2918
3533
|
const GLOBAL_FAB_PROVIDER_INJECTION_KEY = Symbol();
|
|
2919
3534
|
const createGlobalFABProvider = () => {
|
|
2920
3535
|
const items = shallowRef([]);
|
|
@@ -2951,7 +3566,7 @@ const useGlobalFAB = () => {
|
|
|
2951
3566
|
);
|
|
2952
3567
|
return globalFABProvider;
|
|
2953
3568
|
};
|
|
2954
|
-
const _sfc_main$
|
|
3569
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
2955
3570
|
__name: "OnyxGlobalFAB",
|
|
2956
3571
|
setup(__props, { expose: __expose }) {
|
|
2957
3572
|
__expose();
|
|
@@ -2965,7 +3580,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
2965
3580
|
return __returned__;
|
|
2966
3581
|
}
|
|
2967
3582
|
});
|
|
2968
|
-
function _sfc_render$
|
|
3583
|
+
function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2969
3584
|
return $setup.globalFAB.items.value.length === 1 ? (openBlock(), createBlock(
|
|
2970
3585
|
$setup["OnyxFAB"],
|
|
2971
3586
|
normalizeProps(mergeProps({ key: 0 }, $setup.globalFAB.items.value[0].value)),
|
|
@@ -3000,14 +3615,14 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3000
3615
|
/* STABLE */
|
|
3001
3616
|
}, 8, ["label", "alignment"])) : createCommentVNode("v-if", true);
|
|
3002
3617
|
}
|
|
3003
|
-
const OnyxGlobalFAB = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3004
|
-
const _sfc_main$
|
|
3005
|
-
const _hoisted_1$
|
|
3618
|
+
const OnyxGlobalFAB = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1r], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxGlobalFAB/OnyxGlobalFAB.vue"]]);
|
|
3619
|
+
const _sfc_main$1q = {};
|
|
3620
|
+
const _hoisted_1$12 = {
|
|
3006
3621
|
class: "onyx-component onyx-circle-spinner",
|
|
3007
3622
|
viewBox: "0 0 50 50"
|
|
3008
3623
|
};
|
|
3009
|
-
function _sfc_render$
|
|
3010
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
3624
|
+
function _sfc_render$1q(_ctx, _cache) {
|
|
3625
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$12, [..._cache[0] || (_cache[0] = [
|
|
3011
3626
|
createElementVNode(
|
|
3012
3627
|
"circle",
|
|
3013
3628
|
{
|
|
@@ -3022,11 +3637,11 @@ function _sfc_render$1p(_ctx, _cache) {
|
|
|
3022
3637
|
)
|
|
3023
3638
|
])]);
|
|
3024
3639
|
}
|
|
3025
|
-
const OnyxCircleSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3026
|
-
const _sfc_main$
|
|
3027
|
-
const _hoisted_1$
|
|
3028
|
-
function _sfc_render$
|
|
3029
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3640
|
+
const OnyxCircleSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1q], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxLoadingIndicator/OnyxCircleSpinner.vue"]]);
|
|
3641
|
+
const _sfc_main$1p = {};
|
|
3642
|
+
const _hoisted_1$11 = { class: "onyx-component onyx-loading-dots" };
|
|
3643
|
+
function _sfc_render$1p(_ctx, _cache) {
|
|
3644
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [..._cache[0] || (_cache[0] = [
|
|
3030
3645
|
createElementVNode(
|
|
3031
3646
|
"span",
|
|
3032
3647
|
{ class: "onyx-loading-dots__center" },
|
|
@@ -3036,8 +3651,8 @@ function _sfc_render$1o(_ctx, _cache) {
|
|
|
3036
3651
|
)
|
|
3037
3652
|
])]);
|
|
3038
3653
|
}
|
|
3039
|
-
const OnyxLoadingDots = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3040
|
-
const _sfc_main$
|
|
3654
|
+
const OnyxLoadingDots = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1p], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxLoadingIndicator/OnyxLoadingDots.vue"]]);
|
|
3655
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
3041
3656
|
__name: "OnyxLoadingIndicator",
|
|
3042
3657
|
props: {
|
|
3043
3658
|
type: { type: String, required: false, default: "dots" }
|
|
@@ -3050,10 +3665,10 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
3050
3665
|
return __returned__;
|
|
3051
3666
|
}
|
|
3052
3667
|
});
|
|
3053
|
-
function _sfc_render$
|
|
3668
|
+
function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3054
3669
|
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);
|
|
3055
3670
|
}
|
|
3056
|
-
const OnyxLoadingIndicator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3671
|
+
const OnyxLoadingIndicator = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$1o], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxLoadingIndicator/OnyxLoadingIndicator.vue"]]);
|
|
3057
3672
|
const useRipple = (container) => {
|
|
3058
3673
|
const isPointerDown = ref(false);
|
|
3059
3674
|
const ripples = reactive(/* @__PURE__ */ new Map());
|
|
@@ -3100,7 +3715,7 @@ const useRipple = (container) => {
|
|
|
3100
3715
|
});
|
|
3101
3716
|
return { isPointerDown, ripples, startRipple, hideRipples, hideRipple, events };
|
|
3102
3717
|
};
|
|
3103
|
-
const _sfc_main$
|
|
3718
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
3104
3719
|
__name: "OnyxRipple",
|
|
3105
3720
|
setup(__props, { expose: __expose }) {
|
|
3106
3721
|
const rippleTrigger = useTemplateRef("rippleTriggerRef");
|
|
@@ -3113,16 +3728,16 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
3113
3728
|
return __returned__;
|
|
3114
3729
|
}
|
|
3115
3730
|
});
|
|
3116
|
-
const _hoisted_1
|
|
3731
|
+
const _hoisted_1$10 = {
|
|
3117
3732
|
ref: "rippleTriggerRef",
|
|
3118
3733
|
class: "onyx-component onyx-ripple",
|
|
3119
3734
|
"aria-hidden": "true"
|
|
3120
3735
|
};
|
|
3121
|
-
const _hoisted_2$
|
|
3122
|
-
function _sfc_render$
|
|
3736
|
+
const _hoisted_2$N = ["data-rippleid"];
|
|
3737
|
+
function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3123
3738
|
return openBlock(), createElementBlock(
|
|
3124
3739
|
"span",
|
|
3125
|
-
_hoisted_1
|
|
3740
|
+
_hoisted_1$10,
|
|
3126
3741
|
[
|
|
3127
3742
|
(openBlock(true), createElementBlock(
|
|
3128
3743
|
Fragment,
|
|
@@ -3137,7 +3752,7 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3137
3752
|
}),
|
|
3138
3753
|
"data-rippleid": key,
|
|
3139
3754
|
onAnimationend: _cache[0] || (_cache[0] = ($event) => $setup.hideRipple($event.target))
|
|
3140
|
-
}, null, 44, _hoisted_2$
|
|
3755
|
+
}, null, 44, _hoisted_2$N);
|
|
3141
3756
|
}),
|
|
3142
3757
|
128
|
|
3143
3758
|
/* KEYED_FRAGMENT */
|
|
@@ -3147,8 +3762,8 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3147
3762
|
/* NEED_PATCH */
|
|
3148
3763
|
);
|
|
3149
3764
|
}
|
|
3150
|
-
const OnyxRipple = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3151
|
-
const _sfc_main$
|
|
3765
|
+
const OnyxRipple = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1n], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxRipple/OnyxRipple.vue"]]);
|
|
3766
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
3152
3767
|
__name: "OnyxButton",
|
|
3153
3768
|
props: {
|
|
3154
3769
|
density: { type: null, required: false },
|
|
@@ -3178,8 +3793,8 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
3178
3793
|
return __returned__;
|
|
3179
3794
|
}
|
|
3180
3795
|
});
|
|
3181
|
-
const _hoisted_1
|
|
3182
|
-
function _sfc_render$
|
|
3796
|
+
const _hoisted_1$$ = { class: "onyx-button__label onyx-truncation-ellipsis" };
|
|
3797
|
+
function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3183
3798
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
3184
3799
|
key: 0,
|
|
3185
3800
|
class: normalizeClass(["onyx-button-skeleton", $setup.densityClass])
|
|
@@ -3216,7 +3831,7 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3216
3831
|
})) : createCommentVNode("v-if", true),
|
|
3217
3832
|
createElementVNode(
|
|
3218
3833
|
"span",
|
|
3219
|
-
_hoisted_1
|
|
3834
|
+
_hoisted_1$$,
|
|
3220
3835
|
toDisplayString($setup.props.label),
|
|
3221
3836
|
1
|
|
3222
3837
|
/* TEXT */
|
|
@@ -3231,8 +3846,8 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3231
3846
|
/* STABLE */
|
|
3232
3847
|
}, 16, ["class", "aria-label"]));
|
|
3233
3848
|
}
|
|
3234
|
-
const OnyxButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3235
|
-
const _sfc_main$
|
|
3849
|
+
const OnyxButton = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1m], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxButton/OnyxButton.vue"]]);
|
|
3850
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
3236
3851
|
__name: "OnyxInfoCard",
|
|
3237
3852
|
props: {
|
|
3238
3853
|
density: { type: null, required: false },
|
|
@@ -3259,16 +3874,16 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
3259
3874
|
return __returned__;
|
|
3260
3875
|
}
|
|
3261
3876
|
});
|
|
3262
|
-
const _hoisted_1$
|
|
3263
|
-
const _hoisted_2$
|
|
3877
|
+
const _hoisted_1$_ = { class: "onyx-info-card__content" };
|
|
3878
|
+
const _hoisted_2$M = {
|
|
3264
3879
|
key: 3,
|
|
3265
3880
|
class: "onyx-info-card__description onyx-text--small"
|
|
3266
3881
|
};
|
|
3267
|
-
const _hoisted_3$
|
|
3882
|
+
const _hoisted_3$y = {
|
|
3268
3883
|
key: 4,
|
|
3269
3884
|
class: "onyx-info-card__buttons onyx-density-compact"
|
|
3270
3885
|
};
|
|
3271
|
-
function _sfc_render$
|
|
3886
|
+
function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3272
3887
|
return openBlock(), createElementBlock(
|
|
3273
3888
|
"div",
|
|
3274
3889
|
{
|
|
@@ -3280,7 +3895,7 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3280
3895
|
class: "onyx-info-card__icon",
|
|
3281
3896
|
icon: $setup.props.icon
|
|
3282
3897
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
3283
|
-
createElementVNode("div", _hoisted_1$
|
|
3898
|
+
createElementVNode("div", _hoisted_1$_, [
|
|
3284
3899
|
$setup.props.headline ? (openBlock(), createBlock($setup["OnyxHeadline"], {
|
|
3285
3900
|
key: 0,
|
|
3286
3901
|
is: "h3",
|
|
@@ -3323,10 +3938,10 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3323
3938
|
color: $setup.systemButtonColor,
|
|
3324
3939
|
onClick: _cache[0] || (_cache[0] = ($event) => $setup.emit("close"))
|
|
3325
3940
|
}, null, 8, ["icon", "label", "color"])) : createCommentVNode("v-if", true),
|
|
3326
|
-
!!$setup.slots.default ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
3941
|
+
!!$setup.slots.default ? (openBlock(), createElementBlock("p", _hoisted_2$M, [
|
|
3327
3942
|
renderSlot(_ctx.$slots, "default")
|
|
3328
3943
|
])) : createCommentVNode("v-if", true),
|
|
3329
|
-
!!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
3944
|
+
!!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
3330
3945
|
renderSlot(_ctx.$slots, "buttons")
|
|
3331
3946
|
])) : createCommentVNode("v-if", true)
|
|
3332
3947
|
])
|
|
@@ -3335,8 +3950,8 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3335
3950
|
/* CLASS */
|
|
3336
3951
|
);
|
|
3337
3952
|
}
|
|
3338
|
-
const OnyxInfoCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3339
|
-
const _sfc_main$
|
|
3953
|
+
const OnyxInfoCard = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1l], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxInfoCard/OnyxInfoCard.vue"]]);
|
|
3954
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
3340
3955
|
__name: "OnyxNotificationMessage",
|
|
3341
3956
|
props: {
|
|
3342
3957
|
headline: { type: String, required: true },
|
|
@@ -3354,7 +3969,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
3354
3969
|
return __returned__;
|
|
3355
3970
|
}
|
|
3356
3971
|
});
|
|
3357
|
-
function _sfc_render$
|
|
3972
|
+
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3358
3973
|
return openBlock(), createBlock($setup["OnyxInfoCard"], {
|
|
3359
3974
|
class: normalizeClass(["onyx-component onyx-notification-message", [
|
|
3360
3975
|
"onyx-component",
|
|
@@ -3387,7 +4002,7 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3387
4002
|
} : void 0
|
|
3388
4003
|
]), 1032, ["class", "headline", "icon", "style", "aria-label"]);
|
|
3389
4004
|
}
|
|
3390
|
-
const OnyxNotificationMessage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4005
|
+
const OnyxNotificationMessage = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1k], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNotificationMessage/OnyxNotificationMessage.vue"]]);
|
|
3391
4006
|
const NOTIFICATIONS_PROVIDER_INJECTION_KEY = Symbol();
|
|
3392
4007
|
const createNotificationsProvider = () => {
|
|
3393
4008
|
let nextId = 1;
|
|
@@ -3432,7 +4047,7 @@ const useNotification = () => {
|
|
|
3432
4047
|
);
|
|
3433
4048
|
return notificationsProvider;
|
|
3434
4049
|
};
|
|
3435
|
-
const _sfc_main$
|
|
4050
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
3436
4051
|
__name: "OnyxNotifications",
|
|
3437
4052
|
setup(__props, { expose: __expose }) {
|
|
3438
4053
|
__expose();
|
|
@@ -3442,15 +4057,15 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
3442
4057
|
return __returned__;
|
|
3443
4058
|
}
|
|
3444
4059
|
});
|
|
3445
|
-
const _hoisted_1$
|
|
4060
|
+
const _hoisted_1$Z = {
|
|
3446
4061
|
key: 0,
|
|
3447
4062
|
class: "onyx-component onyx-notifications",
|
|
3448
4063
|
role: "presentation",
|
|
3449
4064
|
"aria-live": "polite",
|
|
3450
4065
|
open: ""
|
|
3451
4066
|
};
|
|
3452
|
-
function _sfc_render$
|
|
3453
|
-
return $setup.notificationProvider.notifications.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1$
|
|
4067
|
+
function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4068
|
+
return $setup.notificationProvider.notifications.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1$Z, [
|
|
3454
4069
|
(openBlock(true), createElementBlock(
|
|
3455
4070
|
Fragment,
|
|
3456
4071
|
null,
|
|
@@ -3502,8 +4117,8 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3502
4117
|
))
|
|
3503
4118
|
])) : createCommentVNode("v-if", true);
|
|
3504
4119
|
}
|
|
3505
|
-
const OnyxNotifications = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3506
|
-
const _sfc_main$
|
|
4120
|
+
const OnyxNotifications = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1j], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNotifications/OnyxNotifications.vue"]]);
|
|
4121
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
3507
4122
|
__name: "OnyxToastMessage",
|
|
3508
4123
|
props: {
|
|
3509
4124
|
density: { type: null, required: false },
|
|
@@ -3539,33 +4154,33 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
3539
4154
|
return __returned__;
|
|
3540
4155
|
}
|
|
3541
4156
|
});
|
|
3542
|
-
const _hoisted_1$
|
|
3543
|
-
const _hoisted_2$
|
|
3544
|
-
const _hoisted_3$
|
|
3545
|
-
const _hoisted_4$
|
|
3546
|
-
const _hoisted_5$
|
|
3547
|
-
const _hoisted_6$
|
|
4157
|
+
const _hoisted_1$Y = { class: "onyx-toast-message__wrapper" };
|
|
4158
|
+
const _hoisted_2$L = { class: "onyx-toast-message__content onyx-truncation-ellipsis" };
|
|
4159
|
+
const _hoisted_3$x = { class: "onyx-toast-message__headline onyx-text" };
|
|
4160
|
+
const _hoisted_4$m = { class: "onyx-truncation-ellipsis" };
|
|
4161
|
+
const _hoisted_5$g = ["aria-label"];
|
|
4162
|
+
const _hoisted_6$c = {
|
|
3548
4163
|
key: 0,
|
|
3549
4164
|
class: "onyx-toast-message__description onyx-text--small onyx-truncation-multiline",
|
|
3550
4165
|
tabindex: "0"
|
|
3551
4166
|
};
|
|
3552
|
-
function _sfc_render$
|
|
4167
|
+
function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3553
4168
|
return openBlock(), createBlock(resolveDynamicComponent($setup.props.clickable ? "button" : "div"), {
|
|
3554
4169
|
class: normalizeClass(["onyx-component onyx-toast-message", [`onyx-toast-message--${$setup.props.color}`, $setup.densityClass]]),
|
|
3555
4170
|
role: $setup.props.color === "danger" || $setup.props.color === "warning" ? "alert" : "status",
|
|
3556
4171
|
"aria-label": $setup.props.clickable ? $setup.props.headline : void 0
|
|
3557
4172
|
}, {
|
|
3558
4173
|
default: withCtx(() => [
|
|
3559
|
-
createElementVNode("div", _hoisted_1$
|
|
4174
|
+
createElementVNode("div", _hoisted_1$Y, [
|
|
3560
4175
|
$setup.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
3561
4176
|
key: 0,
|
|
3562
4177
|
icon: $setup.icon
|
|
3563
4178
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
3564
|
-
createElementVNode("div", _hoisted_2$
|
|
3565
|
-
createElementVNode("div", _hoisted_3$
|
|
4179
|
+
createElementVNode("div", _hoisted_2$L, [
|
|
4180
|
+
createElementVNode("div", _hoisted_3$x, [
|
|
3566
4181
|
createElementVNode(
|
|
3567
4182
|
"span",
|
|
3568
|
-
_hoisted_4$
|
|
4183
|
+
_hoisted_4$m,
|
|
3569
4184
|
toDisplayString($setup.props.headline),
|
|
3570
4185
|
1
|
|
3571
4186
|
/* TEXT */
|
|
@@ -3578,11 +4193,11 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3578
4193
|
onClick: _cache[0] || (_cache[0] = ($event) => $setup.emit("close"))
|
|
3579
4194
|
}, [
|
|
3580
4195
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconXSmall }, null, 8, ["icon"])
|
|
3581
|
-
], 8, _hoisted_5$
|
|
4196
|
+
], 8, _hoisted_5$g)) : createCommentVNode("v-if", true)
|
|
3582
4197
|
]),
|
|
3583
4198
|
$setup.props.description ? (openBlock(), createElementBlock(
|
|
3584
4199
|
"p",
|
|
3585
|
-
_hoisted_6$
|
|
4200
|
+
_hoisted_6$c,
|
|
3586
4201
|
toDisplayString($setup.props.description),
|
|
3587
4202
|
1
|
|
3588
4203
|
/* TEXT */
|
|
@@ -3607,7 +4222,7 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3607
4222
|
/* STABLE */
|
|
3608
4223
|
}, 8, ["class", "role", "aria-label"]);
|
|
3609
4224
|
}
|
|
3610
|
-
const OnyxToastMessage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4225
|
+
const OnyxToastMessage = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1i], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxToastMessage/OnyxToastMessage.vue"]]);
|
|
3611
4226
|
const TOAST_PROVIDER_INJECTION_KEY = Symbol();
|
|
3612
4227
|
const createToastProvider = () => {
|
|
3613
4228
|
let nextId = 1;
|
|
@@ -3650,7 +4265,7 @@ const useToast = () => {
|
|
|
3650
4265
|
);
|
|
3651
4266
|
return toastProvider;
|
|
3652
4267
|
};
|
|
3653
|
-
const _sfc_main$
|
|
4268
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
3654
4269
|
__name: "OnyxToast",
|
|
3655
4270
|
setup(__props, { expose: __expose }) {
|
|
3656
4271
|
__expose();
|
|
@@ -3660,15 +4275,15 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
3660
4275
|
return __returned__;
|
|
3661
4276
|
}
|
|
3662
4277
|
});
|
|
3663
|
-
const _hoisted_1$
|
|
4278
|
+
const _hoisted_1$X = {
|
|
3664
4279
|
key: 0,
|
|
3665
4280
|
class: "onyx-component onyx-toast",
|
|
3666
4281
|
role: "presentation",
|
|
3667
4282
|
"aria-live": "polite",
|
|
3668
4283
|
open: ""
|
|
3669
4284
|
};
|
|
3670
|
-
function _sfc_render$
|
|
3671
|
-
return $setup.toastProvider.toasts.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1$
|
|
4285
|
+
function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4286
|
+
return $setup.toastProvider.toasts.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1$X, [
|
|
3672
4287
|
(openBlock(true), createElementBlock(
|
|
3673
4288
|
Fragment,
|
|
3674
4289
|
null,
|
|
@@ -3686,8 +4301,8 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3686
4301
|
))
|
|
3687
4302
|
])) : createCommentVNode("v-if", true);
|
|
3688
4303
|
}
|
|
3689
|
-
const OnyxToast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3690
|
-
const _sfc_main$
|
|
4304
|
+
const OnyxToast = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1h], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxToast/OnyxToast.vue"]]);
|
|
4305
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
3691
4306
|
__name: "OnyxAppLayout",
|
|
3692
4307
|
props: {
|
|
3693
4308
|
navBarAlignment: { type: String, required: false, default: "top" }
|
|
@@ -3701,22 +4316,22 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
3701
4316
|
return __returned__;
|
|
3702
4317
|
}
|
|
3703
4318
|
});
|
|
3704
|
-
const _hoisted_1$
|
|
4319
|
+
const _hoisted_1$W = {
|
|
3705
4320
|
key: 0,
|
|
3706
4321
|
class: "onyx-app__nav"
|
|
3707
4322
|
};
|
|
3708
|
-
const _hoisted_2$
|
|
3709
|
-
function _sfc_render$
|
|
4323
|
+
const _hoisted_2$K = { class: "onyx-app__page" };
|
|
4324
|
+
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3710
4325
|
return openBlock(), createElementBlock(
|
|
3711
4326
|
"div",
|
|
3712
4327
|
{
|
|
3713
4328
|
class: normalizeClass(["onyx-component onyx-app", { "onyx-app--horizontal": $setup.props.navBarAlignment === "left" }])
|
|
3714
4329
|
},
|
|
3715
4330
|
[
|
|
3716
|
-
$setup.slots.navBar ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4331
|
+
$setup.slots.navBar ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
3717
4332
|
renderSlot(_ctx.$slots, "navBar")
|
|
3718
4333
|
])) : createCommentVNode("v-if", true),
|
|
3719
|
-
createElementVNode("div", _hoisted_2$
|
|
4334
|
+
createElementVNode("div", _hoisted_2$K, [
|
|
3720
4335
|
renderSlot(_ctx.$slots, "default")
|
|
3721
4336
|
]),
|
|
3722
4337
|
createVNode($setup["OnyxToast"]),
|
|
@@ -3727,8 +4342,8 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3727
4342
|
/* CLASS */
|
|
3728
4343
|
);
|
|
3729
4344
|
}
|
|
3730
|
-
const OnyxAppLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3731
|
-
const _sfc_main$
|
|
4345
|
+
const OnyxAppLayout = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$1g], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAppLayout/OnyxAppLayout.vue"]]);
|
|
4346
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
3732
4347
|
__name: "OnyxAvatar",
|
|
3733
4348
|
props: {
|
|
3734
4349
|
size: { type: null, required: false, default: "48px" },
|
|
@@ -3762,13 +4377,13 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
3762
4377
|
return __returned__;
|
|
3763
4378
|
}
|
|
3764
4379
|
});
|
|
3765
|
-
const _hoisted_1$
|
|
3766
|
-
const _hoisted_2$
|
|
3767
|
-
const _hoisted_3$
|
|
4380
|
+
const _hoisted_1$V = ["title", "aria-label"];
|
|
4381
|
+
const _hoisted_2$J = ["src", "alt"];
|
|
4382
|
+
const _hoisted_3$w = {
|
|
3768
4383
|
key: 0,
|
|
3769
4384
|
class: "onyx-avatar__initials"
|
|
3770
4385
|
};
|
|
3771
|
-
function _sfc_render$
|
|
4386
|
+
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3772
4387
|
return openBlock(), createElementBlock("figure", {
|
|
3773
4388
|
class: normalizeClass([
|
|
3774
4389
|
"onyx-component",
|
|
@@ -3785,13 +4400,13 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3785
4400
|
src: $setup.props.src,
|
|
3786
4401
|
alt: $setup.ariaLabel,
|
|
3787
4402
|
onError: _cache[0] || (_cache[0] = ($event) => $setup.hasImageError = true)
|
|
3788
|
-
}, null, 40, _hoisted_2$
|
|
4403
|
+
}, null, 40, _hoisted_2$J)) : (openBlock(), createElementBlock(
|
|
3789
4404
|
Fragment,
|
|
3790
4405
|
{ key: 1 },
|
|
3791
4406
|
[
|
|
3792
4407
|
$setup.initials ? (openBlock(), createElementBlock(
|
|
3793
4408
|
"div",
|
|
3794
|
-
_hoisted_3$
|
|
4409
|
+
_hoisted_3$w,
|
|
3795
4410
|
toDisplayString($setup.initials),
|
|
3796
4411
|
1
|
|
3797
4412
|
/* TEXT */
|
|
@@ -3804,10 +4419,10 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3804
4419
|
64
|
|
3805
4420
|
/* STABLE_FRAGMENT */
|
|
3806
4421
|
))
|
|
3807
|
-
], 10, _hoisted_1$
|
|
4422
|
+
], 10, _hoisted_1$V);
|
|
3808
4423
|
}
|
|
3809
|
-
const OnyxAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3810
|
-
const _sfc_main$
|
|
4424
|
+
const OnyxAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_render$1f], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAvatar/OnyxAvatar.vue"]]);
|
|
4425
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
3811
4426
|
__name: "OnyxAvatarStack",
|
|
3812
4427
|
setup(__props, { expose: __expose }) {
|
|
3813
4428
|
__expose();
|
|
@@ -3816,14 +4431,14 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
3816
4431
|
return __returned__;
|
|
3817
4432
|
}
|
|
3818
4433
|
});
|
|
3819
|
-
const _hoisted_1$
|
|
3820
|
-
function _sfc_render$
|
|
3821
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4434
|
+
const _hoisted_1$U = { class: "onyx-component onyx-avatar-stack" };
|
|
4435
|
+
function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4436
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
3822
4437
|
renderSlot(_ctx.$slots, "default")
|
|
3823
4438
|
]);
|
|
3824
4439
|
}
|
|
3825
|
-
const OnyxAvatarStack = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3826
|
-
const _sfc_main$
|
|
4440
|
+
const OnyxAvatarStack = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$1e], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAvatarStack/OnyxAvatarStack.vue"]]);
|
|
4441
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
3827
4442
|
__name: "OnyxBadge",
|
|
3828
4443
|
props: {
|
|
3829
4444
|
density: { type: null, required: false },
|
|
@@ -3840,7 +4455,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
3840
4455
|
return __returned__;
|
|
3841
4456
|
}
|
|
3842
4457
|
});
|
|
3843
|
-
function _sfc_render$
|
|
4458
|
+
function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3844
4459
|
return openBlock(), createElementBlock(
|
|
3845
4460
|
"div",
|
|
3846
4461
|
{
|
|
@@ -3871,8 +4486,8 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3871
4486
|
/* CLASS */
|
|
3872
4487
|
);
|
|
3873
4488
|
}
|
|
3874
|
-
const OnyxBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3875
|
-
const _sfc_main$
|
|
4489
|
+
const OnyxBadge = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$1d], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBadge/OnyxBadge.vue"]]);
|
|
4490
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
3876
4491
|
__name: "OnyxBottomBar",
|
|
3877
4492
|
props: {
|
|
3878
4493
|
density: { type: null, required: false },
|
|
@@ -3887,10 +4502,10 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
3887
4502
|
return __returned__;
|
|
3888
4503
|
}
|
|
3889
4504
|
});
|
|
3890
|
-
const _hoisted_1$
|
|
3891
|
-
const _hoisted_2$
|
|
3892
|
-
const _hoisted_3$
|
|
3893
|
-
function _sfc_render$
|
|
4505
|
+
const _hoisted_1$T = { class: "onyx-bottom-bar__content onyx-grid-container" };
|
|
4506
|
+
const _hoisted_2$I = { class: "onyx-bottom-bar__content--left" };
|
|
4507
|
+
const _hoisted_3$v = { class: "onyx-bottom-bar__content--right" };
|
|
4508
|
+
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3894
4509
|
return openBlock(), createElementBlock(
|
|
3895
4510
|
"div",
|
|
3896
4511
|
{
|
|
@@ -3902,11 +4517,11 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3902
4517
|
])
|
|
3903
4518
|
},
|
|
3904
4519
|
[
|
|
3905
|
-
createElementVNode("div", _hoisted_1$
|
|
3906
|
-
createElementVNode("div", _hoisted_2$
|
|
4520
|
+
createElementVNode("div", _hoisted_1$T, [
|
|
4521
|
+
createElementVNode("div", _hoisted_2$I, [
|
|
3907
4522
|
renderSlot(_ctx.$slots, "left")
|
|
3908
4523
|
]),
|
|
3909
|
-
createElementVNode("div", _hoisted_3$
|
|
4524
|
+
createElementVNode("div", _hoisted_3$v, [
|
|
3910
4525
|
renderSlot(_ctx.$slots, "default")
|
|
3911
4526
|
])
|
|
3912
4527
|
])
|
|
@@ -3915,7 +4530,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3915
4530
|
/* CLASS */
|
|
3916
4531
|
);
|
|
3917
4532
|
}
|
|
3918
|
-
const OnyxBottomBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4533
|
+
const OnyxBottomBar = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$1c], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBottomBar/OnyxBottomBar.vue"]]);
|
|
3919
4534
|
const useMoreList = (options) => {
|
|
3920
4535
|
const visibleElements = ref();
|
|
3921
4536
|
const hiddenElements = ref();
|
|
@@ -4010,7 +4625,7 @@ const useMoreListChild = (injectionKey) => {
|
|
|
4010
4625
|
};
|
|
4011
4626
|
const BREADCRUMB_MORE_LIST_INJECTION_KEY = Symbol();
|
|
4012
4627
|
const BREADCRUMB_MORE_LIST_TARGET_INJECTION_KEY = Symbol();
|
|
4013
|
-
const _sfc_main$
|
|
4628
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
4014
4629
|
__name: "OnyxExternalLinkIcon",
|
|
4015
4630
|
props: {
|
|
4016
4631
|
href: { type: String, required: false },
|
|
@@ -4031,7 +4646,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
4031
4646
|
return __returned__;
|
|
4032
4647
|
}
|
|
4033
4648
|
});
|
|
4034
|
-
function _sfc_render$
|
|
4649
|
+
function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4035
4650
|
return $setup.isVisible ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
4036
4651
|
key: 0,
|
|
4037
4652
|
class: "onyx-component onyx-external-link-icon",
|
|
@@ -4039,8 +4654,8 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4039
4654
|
size: "16px"
|
|
4040
4655
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true);
|
|
4041
4656
|
}
|
|
4042
|
-
const OnyxExternalLinkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4043
|
-
const _sfc_main$
|
|
4657
|
+
const OnyxExternalLinkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$1b], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxExternalLinkIcon/OnyxExternalLinkIcon.vue"]]);
|
|
4658
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
4044
4659
|
__name: "OnyxListItem",
|
|
4045
4660
|
props: {
|
|
4046
4661
|
density: { type: null, required: false },
|
|
@@ -4059,7 +4674,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
4059
4674
|
return __returned__;
|
|
4060
4675
|
}
|
|
4061
4676
|
});
|
|
4062
|
-
function _sfc_render$
|
|
4677
|
+
function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4063
4678
|
return openBlock(), createElementBlock(
|
|
4064
4679
|
"li",
|
|
4065
4680
|
{
|
|
@@ -4081,8 +4696,8 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4081
4696
|
/* CLASS */
|
|
4082
4697
|
);
|
|
4083
4698
|
}
|
|
4084
|
-
const OnyxListItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4085
|
-
const _sfc_main$
|
|
4699
|
+
const OnyxListItem = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$1a], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxListItem/OnyxListItem.vue"]]);
|
|
4700
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
4086
4701
|
...{ inheritAttrs: false },
|
|
4087
4702
|
__name: "OnyxMenuItem",
|
|
4088
4703
|
props: {
|
|
@@ -4161,17 +4776,17 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
4161
4776
|
return __returned__;
|
|
4162
4777
|
}
|
|
4163
4778
|
});
|
|
4164
|
-
const _hoisted_1$
|
|
4165
|
-
const _hoisted_2$
|
|
4779
|
+
const _hoisted_1$S = { class: "onyx-truncation-ellipsis" };
|
|
4780
|
+
const _hoisted_2$H = {
|
|
4166
4781
|
key: 0,
|
|
4167
4782
|
class: "onyx-menu-item__chevron"
|
|
4168
4783
|
};
|
|
4169
|
-
const _hoisted_3$
|
|
4784
|
+
const _hoisted_3$u = {
|
|
4170
4785
|
key: 0,
|
|
4171
4786
|
role: "menu",
|
|
4172
4787
|
class: "onyx-menu-item__children"
|
|
4173
4788
|
};
|
|
4174
|
-
function _sfc_render$
|
|
4789
|
+
function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4175
4790
|
const _component_OnyxMenuItem = resolveComponent("OnyxMenuItem", true);
|
|
4176
4791
|
return openBlock(), createBlock($setup["OnyxListItem"], mergeProps({
|
|
4177
4792
|
selected: $setup.isActive,
|
|
@@ -4192,7 +4807,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4192
4807
|
createElementVNode("span", null, [
|
|
4193
4808
|
createElementVNode(
|
|
4194
4809
|
"span",
|
|
4195
|
-
_hoisted_1$
|
|
4810
|
+
_hoisted_1$S,
|
|
4196
4811
|
toDisplayString($setup.props.label),
|
|
4197
4812
|
1
|
|
4198
4813
|
/* TEXT */
|
|
@@ -4206,7 +4821,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4206
4821
|
)
|
|
4207
4822
|
])
|
|
4208
4823
|
]),
|
|
4209
|
-
$setup.hasChildren ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4824
|
+
$setup.hasChildren ? (openBlock(), createElementBlock("div", _hoisted_2$H, [
|
|
4210
4825
|
createVNode($setup["OnyxIcon"], {
|
|
4211
4826
|
icon: $setup.iconChevronRightSmall,
|
|
4212
4827
|
size: "24px"
|
|
@@ -4220,7 +4835,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4220
4835
|
]),
|
|
4221
4836
|
$setup.hasChildren ? withDirectives((openBlock(), createElementBlock(
|
|
4222
4837
|
"ul",
|
|
4223
|
-
_hoisted_3$
|
|
4838
|
+
_hoisted_3$u,
|
|
4224
4839
|
[
|
|
4225
4840
|
createVNode(
|
|
4226
4841
|
_component_OnyxMenuItem,
|
|
@@ -4257,8 +4872,8 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4257
4872
|
/* FORWARDED */
|
|
4258
4873
|
}, 16, ["selected", "active", "color", "disabled", "class"]);
|
|
4259
4874
|
}
|
|
4260
|
-
const OnyxMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4261
|
-
const _sfc_main$
|
|
4875
|
+
const OnyxMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$19], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.vue"]]);
|
|
4876
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
4262
4877
|
...{ inheritAttrs: false },
|
|
4263
4878
|
__name: "OnyxBreadcrumbItem",
|
|
4264
4879
|
props: {
|
|
@@ -4284,7 +4899,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
4284
4899
|
return __returned__;
|
|
4285
4900
|
}
|
|
4286
4901
|
});
|
|
4287
|
-
function _sfc_render$
|
|
4902
|
+
function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4288
4903
|
return openBlock(), createElementBlock(
|
|
4289
4904
|
Fragment,
|
|
4290
4905
|
null,
|
|
@@ -4344,8 +4959,8 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4344
4959
|
/* STABLE_FRAGMENT */
|
|
4345
4960
|
);
|
|
4346
4961
|
}
|
|
4347
|
-
const OnyxBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4348
|
-
const _sfc_main$
|
|
4962
|
+
const OnyxBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["render", _sfc_render$18], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBreadcrumbItem/OnyxBreadcrumbItem.vue"]]);
|
|
4963
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
4349
4964
|
__name: "OnyxMoreList",
|
|
4350
4965
|
props: {
|
|
4351
4966
|
injectionKey: { type: [Symbol, Object], required: true },
|
|
@@ -4378,7 +4993,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
4378
4993
|
return __returned__;
|
|
4379
4994
|
}
|
|
4380
4995
|
});
|
|
4381
|
-
function _sfc_render$
|
|
4996
|
+
function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4382
4997
|
return openBlock(), createBlock(
|
|
4383
4998
|
resolveDynamicComponent($setup.props.is),
|
|
4384
4999
|
{
|
|
@@ -4418,8 +5033,8 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4418
5033
|
/* NEED_PATCH */
|
|
4419
5034
|
);
|
|
4420
5035
|
}
|
|
4421
|
-
const OnyxMoreList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4422
|
-
const _sfc_main$
|
|
5036
|
+
const OnyxMoreList = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", _sfc_render$17], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxMoreList/OnyxMoreList.vue"]]);
|
|
5037
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
4423
5038
|
__name: "OnyxBreadcrumb",
|
|
4424
5039
|
props: {
|
|
4425
5040
|
density: { type: null, required: false },
|
|
@@ -4445,13 +5060,13 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
4445
5060
|
return __returned__;
|
|
4446
5061
|
}
|
|
4447
5062
|
});
|
|
4448
|
-
const _hoisted_1$
|
|
4449
|
-
const _hoisted_2$
|
|
5063
|
+
const _hoisted_1$R = ["aria-label", "aria-hidden"];
|
|
5064
|
+
const _hoisted_2$G = {
|
|
4450
5065
|
class: "onyx-breadcrumb__list onyx-grid-container",
|
|
4451
5066
|
role: "menu"
|
|
4452
5067
|
};
|
|
4453
|
-
const _hoisted_3$
|
|
4454
|
-
function _sfc_render$
|
|
5068
|
+
const _hoisted_3$t = { ref: "moreListRef" };
|
|
5069
|
+
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4455
5070
|
return openBlock(), createElementBlock("nav", {
|
|
4456
5071
|
class: normalizeClass([
|
|
4457
5072
|
"onyx-component",
|
|
@@ -4462,7 +5077,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4462
5077
|
"aria-label": $setup.t("breadcrumb.label"),
|
|
4463
5078
|
"aria-hidden": $setup.props.skeleton
|
|
4464
5079
|
}, [
|
|
4465
|
-
createElementVNode("ol", _hoisted_2$
|
|
5080
|
+
createElementVNode("ol", _hoisted_2$G, [
|
|
4466
5081
|
createVNode($setup["OnyxBreadcrumbItem"], {
|
|
4467
5082
|
class: "onyx-breadcrumb__home",
|
|
4468
5083
|
href: $setup.props.home?.link ?? "/",
|
|
@@ -4530,7 +5145,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4530
5145
|
options: withCtx(() => [
|
|
4531
5146
|
createElementVNode(
|
|
4532
5147
|
"div",
|
|
4533
|
-
_hoisted_3$
|
|
5148
|
+
_hoisted_3$t,
|
|
4534
5149
|
null,
|
|
4535
5150
|
512
|
|
4536
5151
|
/* NEED_PATCH */
|
|
@@ -4544,13 +5159,13 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4544
5159
|
/* FORWARDED */
|
|
4545
5160
|
}, 8, ["injection-key"])
|
|
4546
5161
|
])
|
|
4547
|
-
], 10, _hoisted_1$
|
|
5162
|
+
], 10, _hoisted_1$R);
|
|
4548
5163
|
}
|
|
4549
|
-
const OnyxBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5164
|
+
const OnyxBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$16], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBreadcrumb/OnyxBreadcrumb.vue"]]);
|
|
4550
5165
|
const BUTTON_TYPES = ["button", "submit", "reset"];
|
|
4551
5166
|
const BUTTON_COLORS = ["primary", "neutral", "danger"];
|
|
4552
5167
|
const BUTTON_MODES = ["default", "outline", "plain"];
|
|
4553
|
-
const _sfc_main$
|
|
5168
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
4554
5169
|
__name: "OnyxCard",
|
|
4555
5170
|
props: {
|
|
4556
5171
|
density: { type: null, required: false },
|
|
@@ -4569,7 +5184,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
4569
5184
|
return __returned__;
|
|
4570
5185
|
}
|
|
4571
5186
|
});
|
|
4572
|
-
function _sfc_render$
|
|
5187
|
+
function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4573
5188
|
return openBlock(), createBlock(resolveDynamicComponent($setup.linkProps ? $setup.OnyxRouterLink : $setup.props.clickable ? "button" : "div"), mergeProps($setup.linkProps, {
|
|
4574
5189
|
class: ["onyx-component", "onyx-card", $setup.densityClass, "onyx-truncation-multiline", "onyx-text"]
|
|
4575
5190
|
}), {
|
|
@@ -4580,8 +5195,8 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4580
5195
|
/* FORWARDED */
|
|
4581
5196
|
}, 16, ["class"]);
|
|
4582
5197
|
}
|
|
4583
|
-
const OnyxCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4584
|
-
const _sfc_main$
|
|
5198
|
+
const OnyxCard = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$15], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCard/OnyxCard.vue"]]);
|
|
5199
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
4585
5200
|
__name: "OnyxCalendarCell",
|
|
4586
5201
|
props: {
|
|
4587
5202
|
density: { type: null, required: false },
|
|
@@ -4610,14 +5225,14 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
4610
5225
|
return __returned__;
|
|
4611
5226
|
}
|
|
4612
5227
|
});
|
|
4613
|
-
const _hoisted_1$
|
|
4614
|
-
const _hoisted_2$
|
|
4615
|
-
const _hoisted_3$
|
|
4616
|
-
const _hoisted_4$
|
|
5228
|
+
const _hoisted_1$Q = { class: "onyx-calendar-cell__header" };
|
|
5229
|
+
const _hoisted_2$F = { class: "onyx-calendar-cell__date-container" };
|
|
5230
|
+
const _hoisted_3$s = { class: "onyx-calendar-cell__date" };
|
|
5231
|
+
const _hoisted_4$l = {
|
|
4617
5232
|
key: 0,
|
|
4618
5233
|
class: "onyx-calendar-cell__main"
|
|
4619
5234
|
};
|
|
4620
|
-
function _sfc_render$
|
|
5235
|
+
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4621
5236
|
return openBlock(), createElementBlock(
|
|
4622
5237
|
"td",
|
|
4623
5238
|
{
|
|
@@ -4643,18 +5258,18 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4643
5258
|
]
|
|
4644
5259
|
}), {
|
|
4645
5260
|
default: withCtx(() => [
|
|
4646
|
-
createElementVNode("div", _hoisted_1$
|
|
4647
|
-
createElementVNode("div", _hoisted_2$
|
|
5261
|
+
createElementVNode("div", _hoisted_1$Q, [
|
|
5262
|
+
createElementVNode("div", _hoisted_2$F, [
|
|
4648
5263
|
createElementVNode(
|
|
4649
5264
|
"span",
|
|
4650
|
-
_hoisted_3$
|
|
5265
|
+
_hoisted_3$s,
|
|
4651
5266
|
toDisplayString($setup.props.date),
|
|
4652
5267
|
1
|
|
4653
5268
|
/* TEXT */
|
|
4654
5269
|
)
|
|
4655
5270
|
])
|
|
4656
5271
|
]),
|
|
4657
|
-
!!$setup.slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
5272
|
+
!!$setup.slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$l, [
|
|
4658
5273
|
renderSlot(_ctx.$slots, "default")
|
|
4659
5274
|
])) : createCommentVNode("v-if", true)
|
|
4660
5275
|
]),
|
|
@@ -4666,8 +5281,8 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4666
5281
|
/* CLASS */
|
|
4667
5282
|
);
|
|
4668
5283
|
}
|
|
4669
|
-
const OnyxCalendarCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4670
|
-
const _sfc_main$
|
|
5284
|
+
const OnyxCalendarCell = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$14], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCalendarCell/OnyxCalendarCell.vue"]]);
|
|
5285
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
4671
5286
|
__name: "OnyxIconButton",
|
|
4672
5287
|
props: {
|
|
4673
5288
|
density: { type: null, required: false },
|
|
@@ -4692,7 +5307,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
4692
5307
|
return __returned__;
|
|
4693
5308
|
}
|
|
4694
5309
|
});
|
|
4695
|
-
function _sfc_render$
|
|
5310
|
+
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4696
5311
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
4697
5312
|
key: 0,
|
|
4698
5313
|
class: normalizeClass(["onyx-icon-button-skeleton", $setup.densityClass])
|
|
@@ -4720,8 +5335,8 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4720
5335
|
/* FORWARDED */
|
|
4721
5336
|
}, 16, ["aria-label", "title", "class"]));
|
|
4722
5337
|
}
|
|
4723
|
-
const OnyxIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4724
|
-
const _sfc_main$
|
|
5338
|
+
const OnyxIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$13], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxIconButton/OnyxIconButton.vue"]]);
|
|
5339
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
4725
5340
|
__name: "OnyxTooltip",
|
|
4726
5341
|
props: {
|
|
4727
5342
|
density: { type: null, required: false },
|
|
@@ -4876,8 +5491,8 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
4876
5491
|
return __returned__;
|
|
4877
5492
|
}
|
|
4878
5493
|
});
|
|
4879
|
-
const _hoisted_1$
|
|
4880
|
-
function _sfc_render$
|
|
5494
|
+
const _hoisted_1$P = { class: "onyx-tooltip--content" };
|
|
5495
|
+
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4881
5496
|
return openBlock(), createElementBlock(
|
|
4882
5497
|
"div",
|
|
4883
5498
|
{
|
|
@@ -4893,7 +5508,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4893
5508
|
style: $setup.tooltipStyles
|
|
4894
5509
|
}),
|
|
4895
5510
|
[
|
|
4896
|
-
createElementVNode("div", _hoisted_1$
|
|
5511
|
+
createElementVNode("div", _hoisted_1$P, [
|
|
4897
5512
|
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
4898
5513
|
key: 0,
|
|
4899
5514
|
icon: $setup.props.icon,
|
|
@@ -4917,8 +5532,8 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4917
5532
|
/* CLASS, STYLE */
|
|
4918
5533
|
);
|
|
4919
5534
|
}
|
|
4920
|
-
const OnyxTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4921
|
-
const _sfc_main$
|
|
5535
|
+
const OnyxTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$12], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTooltip/OnyxTooltip.vue"]]);
|
|
5536
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
4922
5537
|
__name: "OnyxTag",
|
|
4923
5538
|
props: {
|
|
4924
5539
|
density: { type: null, required: false },
|
|
@@ -4945,9 +5560,9 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
4945
5560
|
return __returned__;
|
|
4946
5561
|
}
|
|
4947
5562
|
});
|
|
4948
|
-
const _hoisted_1$
|
|
4949
|
-
const _hoisted_2$
|
|
4950
|
-
function _sfc_render$
|
|
5563
|
+
const _hoisted_1$O = { class: "onyx-text onyx-truncation-ellipsis" };
|
|
5564
|
+
const _hoisted_2$E = { class: "onyx-text onyx-truncation-ellipsis" };
|
|
5565
|
+
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4951
5566
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
4952
5567
|
key: 0,
|
|
4953
5568
|
class: normalizeClass(["onyx-tag-skeleton", $setup.densityClass])
|
|
@@ -4970,7 +5585,7 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4970
5585
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
4971
5586
|
createElementVNode(
|
|
4972
5587
|
"span",
|
|
4973
|
-
_hoisted_1$
|
|
5588
|
+
_hoisted_1$O,
|
|
4974
5589
|
toDisplayString($setup.props.label),
|
|
4975
5590
|
1
|
|
4976
5591
|
/* TEXT */
|
|
@@ -5001,7 +5616,7 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5001
5616
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
5002
5617
|
createElementVNode(
|
|
5003
5618
|
"span",
|
|
5004
|
-
_hoisted_2$
|
|
5619
|
+
_hoisted_2$E,
|
|
5005
5620
|
toDisplayString($setup.props.label),
|
|
5006
5621
|
1
|
|
5007
5622
|
/* TEXT */
|
|
@@ -5011,10 +5626,10 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5011
5626
|
/* CLASS */
|
|
5012
5627
|
));
|
|
5013
5628
|
}
|
|
5014
|
-
const OnyxTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5015
|
-
const __default__ = {};
|
|
5016
|
-
const _sfc_main
|
|
5017
|
-
...__default__,
|
|
5629
|
+
const OnyxTag = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTag/OnyxTag.vue"]]);
|
|
5630
|
+
const __default__$1 = {};
|
|
5631
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
5632
|
+
...__default__$1,
|
|
5018
5633
|
__name: "OnyxCalendar",
|
|
5019
5634
|
props: {
|
|
5020
5635
|
density: { type: null, required: false },
|
|
@@ -5104,16 +5719,16 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
5104
5719
|
return __returned__;
|
|
5105
5720
|
}
|
|
5106
5721
|
});
|
|
5107
|
-
const _hoisted_1$
|
|
5108
|
-
const _hoisted_2$
|
|
5109
|
-
const _hoisted_3$
|
|
5110
|
-
const _hoisted_4$
|
|
5111
|
-
const _hoisted_5$
|
|
5112
|
-
const _hoisted_6$
|
|
5722
|
+
const _hoisted_1$N = { class: "onyx-calendar__header" };
|
|
5723
|
+
const _hoisted_2$D = { class: "control-container time-control-container" };
|
|
5724
|
+
const _hoisted_3$r = { class: "control-container" };
|
|
5725
|
+
const _hoisted_4$k = { class: "onyx-calendar__body" };
|
|
5726
|
+
const _hoisted_5$f = ["abbr"];
|
|
5727
|
+
const _hoisted_6$b = {
|
|
5113
5728
|
key: 0,
|
|
5114
5729
|
scope: "row"
|
|
5115
5730
|
};
|
|
5116
|
-
function _sfc_render
|
|
5731
|
+
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5117
5732
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
5118
5733
|
"div",
|
|
5119
5734
|
{
|
|
@@ -5134,8 +5749,8 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5134
5749
|
class: normalizeClass(["onyx-component", "onyx-calendar", `onyx-calendar--${$setup.calendarSize}`, $setup.densityClass])
|
|
5135
5750
|
},
|
|
5136
5751
|
[
|
|
5137
|
-
createElementVNode("div", _hoisted_1$
|
|
5138
|
-
createElementVNode("div", _hoisted_2$
|
|
5752
|
+
createElementVNode("div", _hoisted_1$N, [
|
|
5753
|
+
createElementVNode("div", _hoisted_2$D, [
|
|
5139
5754
|
$setup.calendarSize !== "small" ? (openBlock(), createBlock($setup["OnyxTag"], {
|
|
5140
5755
|
key: 0,
|
|
5141
5756
|
label: $setup.t("calendar.todayButton.label"),
|
|
@@ -5173,11 +5788,11 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5173
5788
|
onClick: _cache[1] || (_cache[1] = ($event) => $setup.goToMonthByOffset(1))
|
|
5174
5789
|
}, null, 8, ["label", "icon", "disabled"])
|
|
5175
5790
|
]),
|
|
5176
|
-
createElementVNode("div", _hoisted_3$
|
|
5791
|
+
createElementVNode("div", _hoisted_3$r, [
|
|
5177
5792
|
renderSlot(_ctx.$slots, "actions")
|
|
5178
5793
|
])
|
|
5179
5794
|
]),
|
|
5180
|
-
createElementVNode("div", _hoisted_4$
|
|
5795
|
+
createElementVNode("div", _hoisted_4$k, [
|
|
5181
5796
|
createElementVNode(
|
|
5182
5797
|
"table",
|
|
5183
5798
|
normalizeProps(guardReactiveProps($setup.tableProps)),
|
|
@@ -5192,7 +5807,7 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5192
5807
|
key: header,
|
|
5193
5808
|
scope: "col",
|
|
5194
5809
|
abbr: header
|
|
5195
|
-
}, toDisplayString(header), 9, _hoisted_5$
|
|
5810
|
+
}, toDisplayString(header), 9, _hoisted_5$f);
|
|
5196
5811
|
}),
|
|
5197
5812
|
128
|
|
5198
5813
|
/* KEYED_FRAGMENT */
|
|
@@ -5209,7 +5824,7 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5209
5824
|
}, [
|
|
5210
5825
|
$setup.showCalendarWeeks ? (openBlock(), createElementBlock(
|
|
5211
5826
|
"th",
|
|
5212
|
-
_hoisted_6$
|
|
5827
|
+
_hoisted_6$b,
|
|
5213
5828
|
toDisplayString(week.weekNumber),
|
|
5214
5829
|
1
|
|
5215
5830
|
/* TEXT */
|
|
@@ -5265,7 +5880,7 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5265
5880
|
/* CLASS */
|
|
5266
5881
|
));
|
|
5267
5882
|
}
|
|
5268
|
-
const OnyxCalendar = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
5883
|
+
const OnyxCalendar = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCalendar/OnyxCalendar.vue"]]);
|
|
5269
5884
|
const useRequired = (props, requiredMarker) => ({
|
|
5270
5885
|
/**
|
|
5271
5886
|
* Class that configures which type of required marker is used.
|
|
@@ -5481,7 +6096,7 @@ const formatMinMax = (locale, type, value) => {
|
|
|
5481
6096
|
};
|
|
5482
6097
|
return date.toLocaleString(locale, format);
|
|
5483
6098
|
};
|
|
5484
|
-
const _sfc_main
|
|
6099
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
5485
6100
|
__name: "OnyxErrorTooltip",
|
|
5486
6101
|
props: {
|
|
5487
6102
|
errorMessages: { type: Object, required: false },
|
|
@@ -5497,16 +6112,16 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
5497
6112
|
return __returned__;
|
|
5498
6113
|
}
|
|
5499
6114
|
});
|
|
5500
|
-
const _hoisted_1$
|
|
5501
|
-
const _hoisted_2$
|
|
6115
|
+
const _hoisted_1$M = { class: "onyx-component" };
|
|
6116
|
+
const _hoisted_2$C = {
|
|
5502
6117
|
key: 0,
|
|
5503
6118
|
ref: "targetRef"
|
|
5504
6119
|
};
|
|
5505
|
-
function _sfc_render
|
|
5506
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6120
|
+
function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6121
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
5507
6122
|
!$setup.tooltipError || $setup.props.disabled ? (openBlock(), createElementBlock(
|
|
5508
6123
|
"div",
|
|
5509
|
-
_hoisted_2$
|
|
6124
|
+
_hoisted_2$C,
|
|
5510
6125
|
null,
|
|
5511
6126
|
512
|
|
5512
6127
|
/* NEED_PATCH */
|
|
@@ -5539,8 +6154,8 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5539
6154
|
], 8, ["to"])) : createCommentVNode("v-if", true)
|
|
5540
6155
|
]);
|
|
5541
6156
|
}
|
|
5542
|
-
const OnyxErrorTooltip = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
5543
|
-
const _sfc_main$
|
|
6157
|
+
const OnyxErrorTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxErrorTooltip/OnyxErrorTooltip.vue"]]);
|
|
6158
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
5544
6159
|
...{ inheritAttrs: false },
|
|
5545
6160
|
__name: "OnyxCheckbox",
|
|
5546
6161
|
props: {
|
|
@@ -5587,10 +6202,10 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
5587
6202
|
return __returned__;
|
|
5588
6203
|
}
|
|
5589
6204
|
});
|
|
5590
|
-
const _hoisted_1$
|
|
5591
|
-
const _hoisted_2$
|
|
5592
|
-
const _hoisted_3$
|
|
5593
|
-
function _sfc_render$
|
|
6205
|
+
const _hoisted_1$L = ["title"];
|
|
6206
|
+
const _hoisted_2$B = { class: "onyx-checkbox__container" };
|
|
6207
|
+
const _hoisted_3$q = ["aria-label", "indeterminate", "disabled", "required", "value", "autofocus"];
|
|
6208
|
+
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5594
6209
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
5595
6210
|
"div",
|
|
5596
6211
|
mergeProps({
|
|
@@ -5616,7 +6231,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5616
6231
|
class: normalizeClass(["onyx-component onyx-checkbox", [$setup.requiredTypeClass, $setup.densityClass]]),
|
|
5617
6232
|
title: $setup.title
|
|
5618
6233
|
}, [
|
|
5619
|
-
createElementVNode("div", _hoisted_2$
|
|
6234
|
+
createElementVNode("div", _hoisted_2$B, [
|
|
5620
6235
|
$setup.props.loading ? (openBlock(), createBlock($setup["OnyxLoadingIndicator"], {
|
|
5621
6236
|
key: 0,
|
|
5622
6237
|
class: "onyx-checkbox__loading",
|
|
@@ -5633,7 +6248,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5633
6248
|
required: $setup.props.required,
|
|
5634
6249
|
value: $setup.props.value,
|
|
5635
6250
|
autofocus: $setup.props.autofocus
|
|
5636
|
-
}, $setup.restAttrs), null, 16, _hoisted_3$
|
|
6251
|
+
}, $setup.restAttrs), null, 16, _hoisted_3$q)), [
|
|
5637
6252
|
[vModelCheckbox, $setup.isChecked],
|
|
5638
6253
|
[$setup["vCustomValidity"]]
|
|
5639
6254
|
])
|
|
@@ -5669,13 +6284,13 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5669
6284
|
64
|
|
5670
6285
|
/* STABLE_FRAGMENT */
|
|
5671
6286
|
)) : createCommentVNode("v-if", true)
|
|
5672
|
-
], 10, _hoisted_1$
|
|
6287
|
+
], 10, _hoisted_1$L)
|
|
5673
6288
|
]),
|
|
5674
6289
|
_: 1
|
|
5675
6290
|
/* STABLE */
|
|
5676
6291
|
}, 16, ["disabled", "error-messages"]));
|
|
5677
6292
|
}
|
|
5678
|
-
const OnyxCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6293
|
+
const OnyxCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCheckbox/OnyxCheckbox.vue"]]);
|
|
5679
6294
|
const useSelectAllCheckboxState = (enabledOptionValues, modelValue) => computed(() => {
|
|
5680
6295
|
const currentValues = modelValue.value.filter(
|
|
5681
6296
|
(value) => enabledOptionValues.value.includes(value)
|
|
@@ -5710,7 +6325,7 @@ const useCheckAll = (enabledOptionValues, modelValue, onChangeCallback) => {
|
|
|
5710
6325
|
}
|
|
5711
6326
|
};
|
|
5712
6327
|
};
|
|
5713
|
-
const _sfc_main$
|
|
6328
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
5714
6329
|
__name: "OnyxInfoTooltip",
|
|
5715
6330
|
props: {
|
|
5716
6331
|
text: { type: String, required: true },
|
|
@@ -5746,9 +6361,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
5746
6361
|
return __returned__;
|
|
5747
6362
|
}
|
|
5748
6363
|
});
|
|
5749
|
-
const _hoisted_1$
|
|
5750
|
-
function _sfc_render$
|
|
5751
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
6364
|
+
const _hoisted_1$K = { class: "onyx-component onyx-info-tooltip" };
|
|
6365
|
+
function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6366
|
+
return openBlock(), createElementBlock("span", _hoisted_1$K, [
|
|
5752
6367
|
$setup.triggerType === "click" ? (openBlock(), createBlock($setup["OnyxTooltip"], mergeProps({ key: 0 }, $setup.tooltipProps, {
|
|
5753
6368
|
open: $setup.isVisible,
|
|
5754
6369
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => $setup.isVisible = $event)
|
|
@@ -5806,8 +6421,8 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5806
6421
|
))
|
|
5807
6422
|
]);
|
|
5808
6423
|
}
|
|
5809
|
-
const OnyxInfoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5810
|
-
const _sfc_main$
|
|
6424
|
+
const OnyxInfoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxInfoTooltip/OnyxInfoTooltip.vue"]]);
|
|
6425
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
5811
6426
|
__name: "OnyxCheckboxGroup",
|
|
5812
6427
|
props: {
|
|
5813
6428
|
truncation: { type: null, required: false, default: "ellipsis" },
|
|
@@ -5865,18 +6480,18 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
5865
6480
|
return __returned__;
|
|
5866
6481
|
}
|
|
5867
6482
|
});
|
|
5868
|
-
const _hoisted_1$
|
|
5869
|
-
const _hoisted_2$
|
|
6483
|
+
const _hoisted_1$J = ["disabled", "aria-label"];
|
|
6484
|
+
const _hoisted_2$A = {
|
|
5870
6485
|
key: 0,
|
|
5871
6486
|
class: "onyx-checkbox-group__label"
|
|
5872
6487
|
};
|
|
5873
|
-
function _sfc_render$
|
|
6488
|
+
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5874
6489
|
return openBlock(), createElementBlock("fieldset", {
|
|
5875
6490
|
class: normalizeClass(["onyx-component", "onyx-checkbox-group", $setup.densityClass]),
|
|
5876
6491
|
disabled: $setup.disabled,
|
|
5877
6492
|
"aria-label": $setup.props.label
|
|
5878
6493
|
}, [
|
|
5879
|
-
!$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
6494
|
+
!$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$A, [
|
|
5880
6495
|
createVNode($setup["OnyxHeadline"], { is: "h3" }, {
|
|
5881
6496
|
default: withCtx(() => [
|
|
5882
6497
|
createTextVNode(
|
|
@@ -5956,15 +6571,15 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5956
6571
|
2
|
|
5957
6572
|
/* CLASS */
|
|
5958
6573
|
)
|
|
5959
|
-
], 10, _hoisted_1$
|
|
6574
|
+
], 10, _hoisted_1$J);
|
|
5960
6575
|
}
|
|
5961
|
-
const OnyxCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6576
|
+
const OnyxCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue"]]);
|
|
5962
6577
|
const escapeCSS = (key) => {
|
|
5963
6578
|
const name = typeof key === "symbol" && key.description ? key.description : String(key);
|
|
5964
6579
|
if (globalThis.window && window.CSS) return CSS.escape(name);
|
|
5965
6580
|
return name.replace(/\W/g, "-");
|
|
5966
6581
|
};
|
|
5967
|
-
const _sfc_main$
|
|
6582
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
5968
6583
|
__name: "OnyxEmpty",
|
|
5969
6584
|
props: {
|
|
5970
6585
|
density: { type: null, required: false }
|
|
@@ -5981,12 +6596,12 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
5981
6596
|
return __returned__;
|
|
5982
6597
|
}
|
|
5983
6598
|
});
|
|
5984
|
-
const _hoisted_1$
|
|
5985
|
-
const _hoisted_2$
|
|
6599
|
+
const _hoisted_1$I = { class: "onyx-empty__label onyx-text onyx-truncation-multiline" };
|
|
6600
|
+
const _hoisted_2$z = {
|
|
5986
6601
|
key: 0,
|
|
5987
6602
|
class: "onyx-empty__buttons"
|
|
5988
6603
|
};
|
|
5989
|
-
function _sfc_render$
|
|
6604
|
+
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5990
6605
|
return openBlock(), createElementBlock(
|
|
5991
6606
|
"div",
|
|
5992
6607
|
{
|
|
@@ -5999,10 +6614,10 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5999
6614
|
size: "48px"
|
|
6000
6615
|
}, null, 8, ["icon"])
|
|
6001
6616
|
]),
|
|
6002
|
-
createElementVNode("div", _hoisted_1$
|
|
6617
|
+
createElementVNode("div", _hoisted_1$I, [
|
|
6003
6618
|
renderSlot(_ctx.$slots, "default")
|
|
6004
6619
|
]),
|
|
6005
|
-
!!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
6620
|
+
!!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
|
|
6006
6621
|
renderSlot(_ctx.$slots, "buttons")
|
|
6007
6622
|
])) : createCommentVNode("v-if", true)
|
|
6008
6623
|
],
|
|
@@ -6010,8 +6625,8 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6010
6625
|
/* CLASS */
|
|
6011
6626
|
);
|
|
6012
6627
|
}
|
|
6013
|
-
const OnyxEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6014
|
-
const _sfc_main$
|
|
6628
|
+
const OnyxEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxEmpty/OnyxEmpty.vue"]]);
|
|
6629
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
6015
6630
|
__name: "OnyxTable",
|
|
6016
6631
|
props: {
|
|
6017
6632
|
density: { type: null, required: false },
|
|
@@ -6042,15 +6657,15 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
6042
6657
|
return __returned__;
|
|
6043
6658
|
}
|
|
6044
6659
|
});
|
|
6045
|
-
const _hoisted_1$
|
|
6660
|
+
const _hoisted_1$H = {
|
|
6046
6661
|
key: 0,
|
|
6047
6662
|
class: "onyx-table-wrapper__top"
|
|
6048
6663
|
};
|
|
6049
|
-
const _hoisted_2$
|
|
6050
|
-
const _hoisted_3$
|
|
6051
|
-
const _hoisted_4$
|
|
6052
|
-
const _hoisted_5$
|
|
6053
|
-
const _hoisted_6$
|
|
6664
|
+
const _hoisted_2$y = ["id"];
|
|
6665
|
+
const _hoisted_3$p = { class: "onyx-table-wrapper__actions" };
|
|
6666
|
+
const _hoisted_4$j = ["tabindex"];
|
|
6667
|
+
const _hoisted_5$e = ["aria-labelledby"];
|
|
6668
|
+
const _hoisted_6$a = ["span"];
|
|
6054
6669
|
const _hoisted_7$5 = {
|
|
6055
6670
|
key: 0,
|
|
6056
6671
|
class: "onyx-table__header"
|
|
@@ -6064,7 +6679,7 @@ const _hoisted_13 = {
|
|
|
6064
6679
|
key: 1,
|
|
6065
6680
|
class: "onyx-table-wrapper__bottom"
|
|
6066
6681
|
};
|
|
6067
|
-
function _sfc_render$
|
|
6682
|
+
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6068
6683
|
return openBlock(), createElementBlock(
|
|
6069
6684
|
"div",
|
|
6070
6685
|
{
|
|
@@ -6072,11 +6687,11 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6072
6687
|
style: normalizeStyle($setup.style)
|
|
6073
6688
|
},
|
|
6074
6689
|
[
|
|
6075
|
-
!!$setup.slots.headline || !!$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6690
|
+
!!$setup.slots.headline || !!$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
6076
6691
|
createElementVNode("div", { id: $setup.headlineId }, [
|
|
6077
6692
|
renderSlot(_ctx.$slots, "headline")
|
|
6078
|
-
], 8, _hoisted_2$
|
|
6079
|
-
createElementVNode("div", _hoisted_3$
|
|
6693
|
+
], 8, _hoisted_2$y),
|
|
6694
|
+
createElementVNode("div", _hoisted_3$p, [
|
|
6080
6695
|
renderSlot(_ctx.$slots, "actions")
|
|
6081
6696
|
])
|
|
6082
6697
|
])) : createCommentVNode("v-if", true),
|
|
@@ -6106,7 +6721,7 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6106
6721
|
return openBlock(), createElementBlock("colgroup", {
|
|
6107
6722
|
key: group.key,
|
|
6108
6723
|
span: group.span
|
|
6109
|
-
}, null, 8, _hoisted_6$
|
|
6724
|
+
}, null, 8, _hoisted_6$a);
|
|
6110
6725
|
}),
|
|
6111
6726
|
128
|
|
6112
6727
|
/* KEYED_FRAGMENT */
|
|
@@ -6153,8 +6768,8 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6153
6768
|
])
|
|
6154
6769
|
])
|
|
6155
6770
|
])
|
|
6156
|
-
], 10, _hoisted_5$
|
|
6157
|
-
], 16, _hoisted_4$
|
|
6771
|
+
], 10, _hoisted_5$e)
|
|
6772
|
+
], 16, _hoisted_4$j),
|
|
6158
6773
|
!!$setup.slots.bottomLeft || !!$setup.slots.pagination ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
6159
6774
|
createElementVNode("div", null, [
|
|
6160
6775
|
renderSlot(_ctx.$slots, "bottomLeft")
|
|
@@ -6168,8 +6783,8 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6168
6783
|
/* STYLE */
|
|
6169
6784
|
);
|
|
6170
6785
|
}
|
|
6171
|
-
const OnyxTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6172
|
-
const _sfc_main$
|
|
6786
|
+
const OnyxTable = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$W], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTable/OnyxTable.vue"]]);
|
|
6787
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
6173
6788
|
__name: "OnyxDataGridRenderer",
|
|
6174
6789
|
props: {
|
|
6175
6790
|
density: { type: null, required: false },
|
|
@@ -6205,7 +6820,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
6205
6820
|
return __returned__;
|
|
6206
6821
|
}
|
|
6207
6822
|
});
|
|
6208
|
-
function _sfc_render$
|
|
6823
|
+
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6209
6824
|
return openBlock(), createBlock($setup["OnyxTable"], mergeProps({ class: "onyx-data-grid" }, $setup.tableProps, {
|
|
6210
6825
|
"scroll-container-attrs": $setup.mergeVueProps($setup.props.scrollContainerAttrs, { style: $setup.columnStyle })
|
|
6211
6826
|
}), createSlots({
|
|
@@ -6312,8 +6927,8 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6312
6927
|
})
|
|
6313
6928
|
]), 1040, ["scroll-container-attrs"]);
|
|
6314
6929
|
}
|
|
6315
|
-
const OnyxDataGridRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6316
|
-
const _sfc_main$
|
|
6930
|
+
const OnyxDataGridRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDataGrid/OnyxDataGridRenderer/OnyxDataGridRenderer.vue"]]);
|
|
6931
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
6317
6932
|
...{ inheritAttrs: false },
|
|
6318
6933
|
__name: "OnyxMiniSearch",
|
|
6319
6934
|
props: {
|
|
@@ -6353,9 +6968,9 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
6353
6968
|
return __returned__;
|
|
6354
6969
|
}
|
|
6355
6970
|
});
|
|
6356
|
-
const _hoisted_1$
|
|
6357
|
-
const _hoisted_2$
|
|
6358
|
-
function _sfc_render$
|
|
6971
|
+
const _hoisted_1$G = ["autofocus", "placeholder", "aria-label"];
|
|
6972
|
+
const _hoisted_2$x = ["aria-label"];
|
|
6973
|
+
function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6359
6974
|
return openBlock(), createElementBlock(
|
|
6360
6975
|
"div",
|
|
6361
6976
|
mergeProps({
|
|
@@ -6374,7 +6989,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6374
6989
|
size: "1"
|
|
6375
6990
|
}, $setup.restAttrs, {
|
|
6376
6991
|
"aria-label": $setup.props.label
|
|
6377
|
-
}), null, 16, _hoisted_1$
|
|
6992
|
+
}), null, 16, _hoisted_1$G), [
|
|
6378
6993
|
[vModelText, $setup.modelValue]
|
|
6379
6994
|
]),
|
|
6380
6995
|
createElementVNode("button", {
|
|
@@ -6387,7 +7002,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6387
7002
|
onClick: _cache[2] || (_cache[2] = ($event) => $setup.emit("clear"))
|
|
6388
7003
|
}, [
|
|
6389
7004
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconXSmall }, null, 8, ["icon"])
|
|
6390
|
-
], 40, _hoisted_2$
|
|
7005
|
+
], 40, _hoisted_2$x),
|
|
6391
7006
|
createVNode($setup["OnyxIcon"], {
|
|
6392
7007
|
class: "onyx-mini-search__icon",
|
|
6393
7008
|
icon: $setup.iconSearch
|
|
@@ -6397,11 +7012,11 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6397
7012
|
/* FULL_PROPS */
|
|
6398
7013
|
);
|
|
6399
7014
|
}
|
|
6400
|
-
const OnyxMiniSearch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7015
|
+
const OnyxMiniSearch = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$U], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxMiniSearch/OnyxMiniSearch.vue"]]);
|
|
6401
7016
|
const prepareMapping = (features, key) => features.flatMap((f) => f[key]).filter((f) => f?.func).sort((a, b) => (a?.order ?? 0) - (b?.order ?? 0));
|
|
6402
7017
|
const applyMapping = (mapping, input2) => mapping.reduce((output, m) => m.func(output), input2);
|
|
6403
7018
|
const DataGridRowOptionsSymbol = Symbol("RowOptions");
|
|
6404
|
-
const _sfc_main$
|
|
7019
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
6405
7020
|
__name: "HeaderCell",
|
|
6406
7021
|
props: {
|
|
6407
7022
|
label: { type: String, required: true }
|
|
@@ -6415,27 +7030,27 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
6415
7030
|
return __returned__;
|
|
6416
7031
|
}
|
|
6417
7032
|
});
|
|
6418
|
-
const _hoisted_1$
|
|
6419
|
-
const _hoisted_2$
|
|
6420
|
-
const _hoisted_3$
|
|
7033
|
+
const _hoisted_1$F = { class: "onyx-component onyx-data-grid-header-cell" };
|
|
7034
|
+
const _hoisted_2$w = { class: "onyx-data-grid-header-cell__label" };
|
|
7035
|
+
const _hoisted_3$o = {
|
|
6421
7036
|
key: 0,
|
|
6422
7037
|
class: "onyx-data-grid-header-cell__actions"
|
|
6423
7038
|
};
|
|
6424
|
-
function _sfc_render$
|
|
6425
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7039
|
+
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7040
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
6426
7041
|
createElementVNode(
|
|
6427
7042
|
"span",
|
|
6428
|
-
_hoisted_2$
|
|
7043
|
+
_hoisted_2$w,
|
|
6429
7044
|
toDisplayString($setup.props.label),
|
|
6430
7045
|
1
|
|
6431
7046
|
/* TEXT */
|
|
6432
7047
|
),
|
|
6433
|
-
$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
7048
|
+
$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
6434
7049
|
renderSlot(_ctx.$slots, "actions")
|
|
6435
7050
|
])) : createCommentVNode("v-if", true)
|
|
6436
7051
|
]);
|
|
6437
7052
|
}
|
|
6438
|
-
const HeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7053
|
+
const HeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$T], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDataGrid/features/HeaderCell.vue"]]);
|
|
6439
7054
|
const FALLBACK_RENDER_VALUE = "-";
|
|
6440
7055
|
const fallback = (opts) => opts?.fallback ?? FALLBACK_RENDER_VALUE;
|
|
6441
7056
|
const createTypeRenderer = (typeRenderer) => Object.freeze(typeRenderer);
|
|
@@ -6928,7 +7543,7 @@ const formatBytesToString = (locale, bytes) => {
|
|
|
6928
7543
|
unitDisplay: "narrow"
|
|
6929
7544
|
}).format(value);
|
|
6930
7545
|
};
|
|
6931
|
-
const _sfc_main$
|
|
7546
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
6932
7547
|
__name: "OnyxInlinePagination",
|
|
6933
7548
|
props: {
|
|
6934
7549
|
density: { type: null, required: false },
|
|
@@ -6980,12 +7595,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
6980
7595
|
return __returned__;
|
|
6981
7596
|
}
|
|
6982
7597
|
});
|
|
6983
|
-
const _hoisted_1$
|
|
6984
|
-
const _hoisted_2$
|
|
6985
|
-
const _hoisted_3$
|
|
6986
|
-
const _hoisted_4$
|
|
6987
|
-
const _hoisted_5$
|
|
6988
|
-
function _sfc_render$
|
|
7598
|
+
const _hoisted_1$E = ["aria-label"];
|
|
7599
|
+
const _hoisted_2$v = ["aria-label", "disabled"];
|
|
7600
|
+
const _hoisted_3$n = ["aria-label", "disabled", "onClick"];
|
|
7601
|
+
const _hoisted_4$i = ["aria-label"];
|
|
7602
|
+
const _hoisted_5$d = ["aria-label", "disabled"];
|
|
7603
|
+
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6989
7604
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
6990
7605
|
key: 0,
|
|
6991
7606
|
class: normalizeClass([
|
|
@@ -7014,7 +7629,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7014
7629
|
onClick: _cache[0] || (_cache[0] = ($event) => $setup.emit("update:modelValue", $setup.props.modelValue - 1))
|
|
7015
7630
|
}, [
|
|
7016
7631
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronLeftSmall }, null, 8, ["icon"])
|
|
7017
|
-
], 8, _hoisted_2$
|
|
7632
|
+
], 8, _hoisted_2$v),
|
|
7018
7633
|
(openBlock(true), createElementBlock(
|
|
7019
7634
|
Fragment,
|
|
7020
7635
|
null,
|
|
@@ -7033,7 +7648,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7033
7648
|
type: "button",
|
|
7034
7649
|
disabled: $setup.props.disabled,
|
|
7035
7650
|
onClick: ($event) => $setup.emit("update:modelValue", pageNumber)
|
|
7036
|
-
}, toDisplayString(pageNumber), 11, _hoisted_3$
|
|
7651
|
+
}, toDisplayString(pageNumber), 11, _hoisted_3$n)) : (openBlock(), createElementBlock("div", {
|
|
7037
7652
|
key: 1,
|
|
7038
7653
|
class: normalizeClass(["onyx-pagination__more-pages"]),
|
|
7039
7654
|
"aria-label": $setup.t("pagination.morePages")
|
|
@@ -7056,7 +7671,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7056
7671
|
_: 1
|
|
7057
7672
|
/* STABLE */
|
|
7058
7673
|
})
|
|
7059
|
-
], 8, _hoisted_4$
|
|
7674
|
+
], 8, _hoisted_4$i))
|
|
7060
7675
|
],
|
|
7061
7676
|
64
|
|
7062
7677
|
/* STABLE_FRAGMENT */
|
|
@@ -7073,10 +7688,10 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7073
7688
|
onClick: _cache[1] || (_cache[1] = ($event) => $setup.emit("update:modelValue", $setup.props.modelValue + 1))
|
|
7074
7689
|
}, [
|
|
7075
7690
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronRightSmall }, null, 8, ["icon"])
|
|
7076
|
-
], 8, _hoisted_5$
|
|
7077
|
-
], 10, _hoisted_1$
|
|
7691
|
+
], 8, _hoisted_5$d)
|
|
7692
|
+
], 10, _hoisted_1$E));
|
|
7078
7693
|
}
|
|
7079
|
-
const OnyxInlinePagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7694
|
+
const OnyxInlinePagination = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$S], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxPagination/OnyxInlinePagination.vue"]]);
|
|
7080
7695
|
const useErrorClass = (showError) => computed(() => {
|
|
7081
7696
|
if (showError.value === true) {
|
|
7082
7697
|
return "onyx-form-element--immediate-invalid";
|
|
@@ -7086,7 +7701,7 @@ const useErrorClass = (showError) => computed(() => {
|
|
|
7086
7701
|
}
|
|
7087
7702
|
return "onyx-form-element--touched-invalid";
|
|
7088
7703
|
});
|
|
7089
|
-
const _sfc_main$
|
|
7704
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
7090
7705
|
__name: "FormMessage",
|
|
7091
7706
|
props: {
|
|
7092
7707
|
messages: { type: Object, required: true },
|
|
@@ -7100,17 +7715,17 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
7100
7715
|
return __returned__;
|
|
7101
7716
|
}
|
|
7102
7717
|
});
|
|
7103
|
-
const _hoisted_1$
|
|
7718
|
+
const _hoisted_1$D = {
|
|
7104
7719
|
class: /* @__PURE__ */ normalizeClass(["onyx-truncation-ellipsis"])
|
|
7105
7720
|
};
|
|
7106
|
-
function _sfc_render$
|
|
7721
|
+
function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7107
7722
|
return openBlock(), createBlock(resolveDynamicComponent($props.messages.hidden ? $setup.OnyxVisuallyHidden : "span"), {
|
|
7108
7723
|
class: normalizeClass(["onyx-component", "onyx-form-message", `onyx-form-message__${$setup.props.type}`])
|
|
7109
7724
|
}, {
|
|
7110
7725
|
default: withCtx(() => [
|
|
7111
7726
|
createElementVNode(
|
|
7112
7727
|
"span",
|
|
7113
|
-
_hoisted_1$
|
|
7728
|
+
_hoisted_1$D,
|
|
7114
7729
|
toDisplayString($setup.props.messages.shortMessage),
|
|
7115
7730
|
1
|
|
7116
7731
|
/* TEXT */
|
|
@@ -7128,8 +7743,8 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7128
7743
|
/* STABLE */
|
|
7129
7744
|
}, 8, ["class"]);
|
|
7130
7745
|
}
|
|
7131
|
-
const FormMessage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7132
|
-
const _sfc_main$
|
|
7746
|
+
const FormMessage = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$R], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFormElement/FormMessage.vue"]]);
|
|
7747
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
7133
7748
|
__name: "OnyxFormElement",
|
|
7134
7749
|
props: {
|
|
7135
7750
|
disabled: { type: [Boolean, Symbol], required: false },
|
|
@@ -7202,17 +7817,17 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
7202
7817
|
return __returned__;
|
|
7203
7818
|
}
|
|
7204
7819
|
});
|
|
7205
|
-
const _hoisted_1$
|
|
7820
|
+
const _hoisted_1$C = {
|
|
7206
7821
|
key: 0,
|
|
7207
7822
|
class: "onyx-form-element__label onyx-text--small"
|
|
7208
7823
|
};
|
|
7209
|
-
const _hoisted_2$
|
|
7210
|
-
const _hoisted_3$
|
|
7824
|
+
const _hoisted_2$u = ["for"];
|
|
7825
|
+
const _hoisted_3$m = {
|
|
7211
7826
|
key: 1,
|
|
7212
7827
|
class: "onyx-form-element__footer onyx-text--small"
|
|
7213
7828
|
};
|
|
7214
|
-
const _hoisted_4$
|
|
7215
|
-
function _sfc_render$
|
|
7829
|
+
const _hoisted_4$h = { class: "onyx-form-element__footer-messages" };
|
|
7830
|
+
function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7216
7831
|
return openBlock(), createElementBlock(
|
|
7217
7832
|
"div",
|
|
7218
7833
|
{
|
|
@@ -7224,11 +7839,11 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7224
7839
|
])
|
|
7225
7840
|
},
|
|
7226
7841
|
[
|
|
7227
|
-
!$setup.props.hideLabel ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7842
|
+
!$setup.props.hideLabel ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
7228
7843
|
createElementVNode("label", {
|
|
7229
7844
|
for: $setup.props.id,
|
|
7230
7845
|
class: "onyx-truncation-ellipsis"
|
|
7231
|
-
}, toDisplayString($setup.props.label), 9, _hoisted_2$
|
|
7846
|
+
}, toDisplayString($setup.props.label), 9, _hoisted_2$u),
|
|
7232
7847
|
$setup.props.required ? (openBlock(), createElementBlock(
|
|
7233
7848
|
"span",
|
|
7234
7849
|
{
|
|
@@ -7259,8 +7874,8 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7259
7874
|
renderSlot(_ctx.$slots, "default", {
|
|
7260
7875
|
id: $setup.props.id
|
|
7261
7876
|
}),
|
|
7262
|
-
$setup.footer ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
7263
|
-
createElementVNode("span", _hoisted_4$
|
|
7877
|
+
$setup.footer ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
|
|
7878
|
+
createElementVNode("span", _hoisted_4$h, [
|
|
7264
7879
|
$setup.footer.errorMessages ? (openBlock(), createBlock($setup["FormMessage"], {
|
|
7265
7880
|
key: 0,
|
|
7266
7881
|
class: "onyx-form-element__error-message",
|
|
@@ -7299,8 +7914,8 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7299
7914
|
/* CLASS */
|
|
7300
7915
|
);
|
|
7301
7916
|
}
|
|
7302
|
-
const OnyxFormElement = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7303
|
-
const _sfc_main$
|
|
7917
|
+
const OnyxFormElement = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$Q], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFormElement/OnyxFormElement.vue"]]);
|
|
7918
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
7304
7919
|
...{ inheritAttrs: false },
|
|
7305
7920
|
__name: "OnyxSelectInput",
|
|
7306
7921
|
props: {
|
|
@@ -7383,9 +7998,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
7383
7998
|
return __returned__;
|
|
7384
7999
|
}
|
|
7385
8000
|
});
|
|
7386
|
-
const _hoisted_1$
|
|
7387
|
-
const _hoisted_2$
|
|
7388
|
-
function _sfc_render$
|
|
8001
|
+
const _hoisted_1$B = ["id", "readonly", "placeholder", "required", "disabled", "aria-label", "title", "value", "autofocus"];
|
|
8002
|
+
const _hoisted_2$t = ["aria-label", "title", "disabled"];
|
|
8003
|
+
function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7389
8004
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
7390
8005
|
"div",
|
|
7391
8006
|
mergeProps({
|
|
@@ -7450,7 +8065,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7450
8065
|
autofocus: $setup.props.autofocus,
|
|
7451
8066
|
autocomplete: "off",
|
|
7452
8067
|
onKeydown: $setup.blockTyping
|
|
7453
|
-
}), null, 16, _hoisted_1$
|
|
8068
|
+
}), null, 16, _hoisted_1$B), [
|
|
7454
8069
|
[$setup["vCustomValidity"]]
|
|
7455
8070
|
]),
|
|
7456
8071
|
$setup.props.textMode === "preview" && $setup.selectionCount > 0 ? (openBlock(), createBlock($setup["OnyxTooltip"], {
|
|
@@ -7489,7 +8104,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7489
8104
|
disabled: $setup.disabled || $setup.props.readonly || $setup.props.loading
|
|
7490
8105
|
}, [
|
|
7491
8106
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronDownUp }, null, 8, ["icon"])
|
|
7492
|
-
], 8, _hoisted_2$
|
|
8107
|
+
], 8, _hoisted_2$t),
|
|
7493
8108
|
!$setup.props.hideSuccessIcon && $setup.successMessages ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
7494
8109
|
key: 2,
|
|
7495
8110
|
class: "onyx-select-input__check-icon",
|
|
@@ -7506,8 +8121,8 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7506
8121
|
/* FULL_PROPS */
|
|
7507
8122
|
));
|
|
7508
8123
|
}
|
|
7509
|
-
const OnyxSelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7510
|
-
const _sfc_main$
|
|
8124
|
+
const OnyxSelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$P], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSelectInput/OnyxSelectInput.vue"]]);
|
|
8125
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
7511
8126
|
__name: "OnyxSelectOption",
|
|
7512
8127
|
props: {
|
|
7513
8128
|
active: { type: Boolean, required: false, default: false },
|
|
@@ -7526,8 +8141,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
7526
8141
|
return __returned__;
|
|
7527
8142
|
}
|
|
7528
8143
|
});
|
|
7529
|
-
const _hoisted_1$
|
|
7530
|
-
function _sfc_render$
|
|
8144
|
+
const _hoisted_1$A = ["checked", "aria-labelledby", "disabled", "indeterminate"];
|
|
8145
|
+
function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7531
8146
|
return openBlock(), createBlock($setup["OnyxListItem"], mergeProps({ class: "onyx-component onyx-select-option" }, $setup.listItemProps, {
|
|
7532
8147
|
checked: !!_ctx.$attrs["aria-checked"],
|
|
7533
8148
|
selected: !!_ctx.$attrs["aria-selected"],
|
|
@@ -7544,7 +8159,7 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7544
8159
|
tabindex: "-1",
|
|
7545
8160
|
class: "onyx-select-option__checkbox",
|
|
7546
8161
|
type: "checkbox"
|
|
7547
|
-
}, null, 8, _hoisted_1$
|
|
8162
|
+
}, null, 8, _hoisted_1$A)) : createCommentVNode("v-if", true),
|
|
7548
8163
|
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
7549
8164
|
key: 1,
|
|
7550
8165
|
icon: $setup.props.icon
|
|
@@ -7565,8 +8180,8 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7565
8180
|
/* FORWARDED */
|
|
7566
8181
|
}, 16, ["checked", "selected", "disabled"]);
|
|
7567
8182
|
}
|
|
7568
|
-
const OnyxSelectOption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7569
|
-
const _sfc_main$
|
|
8183
|
+
const OnyxSelectOption = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$O], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSelectOption/OnyxSelectOption.vue"]]);
|
|
8184
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
7570
8185
|
__name: "OnyxSelect",
|
|
7571
8186
|
props: {
|
|
7572
8187
|
density: { type: null, required: false },
|
|
@@ -7836,29 +8451,29 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7836
8451
|
return __returned__;
|
|
7837
8452
|
}
|
|
7838
8453
|
});
|
|
7839
|
-
const _hoisted_1$
|
|
8454
|
+
const _hoisted_1$z = {
|
|
7840
8455
|
ref: "selectRef",
|
|
7841
8456
|
class: "onyx-component onyx-select-wrapper"
|
|
7842
8457
|
};
|
|
7843
|
-
const _hoisted_2$
|
|
8458
|
+
const _hoisted_2$s = {
|
|
7844
8459
|
class: "onyx-select__wrapper",
|
|
7845
8460
|
tabindex: "-1"
|
|
7846
8461
|
};
|
|
7847
|
-
const _hoisted_3$
|
|
8462
|
+
const _hoisted_3$l = {
|
|
7848
8463
|
key: 0,
|
|
7849
8464
|
role: "group",
|
|
7850
8465
|
class: "onyx-select__group"
|
|
7851
8466
|
};
|
|
7852
|
-
const _hoisted_4$
|
|
8467
|
+
const _hoisted_4$g = {
|
|
7853
8468
|
role: "option",
|
|
7854
8469
|
"aria-selected": "false"
|
|
7855
8470
|
};
|
|
7856
|
-
const _hoisted_5$
|
|
8471
|
+
const _hoisted_5$c = {
|
|
7857
8472
|
key: 0,
|
|
7858
8473
|
role: "presentation",
|
|
7859
8474
|
class: "onyx-select__group-name onyx-text--small"
|
|
7860
8475
|
};
|
|
7861
|
-
const _hoisted_6$
|
|
8476
|
+
const _hoisted_6$9 = {
|
|
7862
8477
|
key: 1,
|
|
7863
8478
|
class: "onyx-select__slot"
|
|
7864
8479
|
};
|
|
@@ -7870,10 +8485,10 @@ const _hoisted_8$4 = {
|
|
|
7870
8485
|
key: 0,
|
|
7871
8486
|
class: "onyx-select__description onyx-text--small"
|
|
7872
8487
|
};
|
|
7873
|
-
function _sfc_render$
|
|
8488
|
+
function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7874
8489
|
return openBlock(), createElementBlock(
|
|
7875
8490
|
"div",
|
|
7876
|
-
_hoisted_1$
|
|
8491
|
+
_hoisted_1$z,
|
|
7877
8492
|
[
|
|
7878
8493
|
createVNode($setup["OnyxBasicPopover"], {
|
|
7879
8494
|
class: normalizeClass($setup.densityClass),
|
|
@@ -7892,7 +8507,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7892
8507
|
}), null, 16, ["show-focus", "autofocus"])
|
|
7893
8508
|
]),
|
|
7894
8509
|
content: withCtx(() => [
|
|
7895
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_2$
|
|
8510
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_2$s, [
|
|
7896
8511
|
$setup.props.withSearch ? (openBlock(), createBlock($setup["OnyxMiniSearch"], mergeProps({
|
|
7897
8512
|
key: 0,
|
|
7898
8513
|
ref: "miniSearchRef",
|
|
@@ -7907,8 +8522,8 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7907
8522
|
"div",
|
|
7908
8523
|
normalizeProps(guardReactiveProps($setup.listbox)),
|
|
7909
8524
|
[
|
|
7910
|
-
$setup.isEmptyMessage ? (openBlock(), createElementBlock("ul", _hoisted_3$
|
|
7911
|
-
createElementVNode("li", _hoisted_4$
|
|
8525
|
+
$setup.isEmptyMessage ? (openBlock(), createElementBlock("ul", _hoisted_3$l, [
|
|
8526
|
+
createElementVNode("li", _hoisted_4$g, [
|
|
7912
8527
|
renderSlot(_ctx.$slots, "empty", { defaultMessage: $setup.isEmptyMessage }, () => [
|
|
7913
8528
|
createVNode($setup["OnyxEmpty"], {
|
|
7914
8529
|
density: $setup.props.density
|
|
@@ -7977,7 +8592,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7977
8592
|
[
|
|
7978
8593
|
group.name !== "" ? (openBlock(), createElementBlock(
|
|
7979
8594
|
"li",
|
|
7980
|
-
_hoisted_5$
|
|
8595
|
+
_hoisted_5$c,
|
|
7981
8596
|
toDisplayString(group.name),
|
|
7982
8597
|
1
|
|
7983
8598
|
/* TEXT */
|
|
@@ -8037,7 +8652,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8037
8652
|
16
|
|
8038
8653
|
/* FULL_PROPS */
|
|
8039
8654
|
),
|
|
8040
|
-
$setup.props.lazyLoading?.loading ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
8655
|
+
$setup.props.lazyLoading?.loading ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
|
|
8041
8656
|
createVNode($setup["OnyxLoadingIndicator"], { class: "onyx-select__loading" })
|
|
8042
8657
|
])) : createCommentVNode("v-if", true),
|
|
8043
8658
|
$setup.slots.optionsEnd ? (openBlock(), createElementBlock("div", _hoisted_7$4, [
|
|
@@ -8062,9 +8677,9 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8062
8677
|
/* NEED_PATCH */
|
|
8063
8678
|
);
|
|
8064
8679
|
}
|
|
8065
|
-
const OnyxSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8680
|
+
const OnyxSelect = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$N], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSelect/OnyxSelect.vue"]]);
|
|
8066
8681
|
const pageSize = 100;
|
|
8067
|
-
const _sfc_main$
|
|
8682
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
8068
8683
|
__name: "OnyxSelectPagination",
|
|
8069
8684
|
props: {
|
|
8070
8685
|
density: { type: null, required: false },
|
|
@@ -8116,11 +8731,11 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
8116
8731
|
return __returned__;
|
|
8117
8732
|
}
|
|
8118
8733
|
});
|
|
8119
|
-
const _hoisted_1$
|
|
8120
|
-
const _hoisted_2$
|
|
8121
|
-
const _hoisted_3$
|
|
8122
|
-
const _hoisted_4$
|
|
8123
|
-
function _sfc_render$
|
|
8734
|
+
const _hoisted_1$y = ["aria-label"];
|
|
8735
|
+
const _hoisted_2$r = { class: "onyx-pagination__count" };
|
|
8736
|
+
const _hoisted_3$k = ["aria-label", "disabled"];
|
|
8737
|
+
const _hoisted_4$f = ["aria-label", "disabled"];
|
|
8738
|
+
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8124
8739
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
8125
8740
|
key: 0,
|
|
8126
8741
|
class: normalizeClass(["onyx-pagination-skeleton", "onyx-text", $setup.densityClass])
|
|
@@ -8151,7 +8766,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8151
8766
|
}, null, 8, ["search-term", "label", "list-label", "options", "model-value", "value-label", "disabled"]),
|
|
8152
8767
|
createElementVNode(
|
|
8153
8768
|
"div",
|
|
8154
|
-
_hoisted_2$
|
|
8769
|
+
_hoisted_2$r,
|
|
8155
8770
|
toDisplayString($setup.t("pagination.ofPages", { n: $setup.props.pages, pages: $setup.n($setup.props.pages, "decimal") })),
|
|
8156
8771
|
1
|
|
8157
8772
|
/* TEXT */
|
|
@@ -8164,7 +8779,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8164
8779
|
onClick: _cache[2] || (_cache[2] = ($event) => $setup.emit("update:modelValue", $setup.props.modelValue - 1))
|
|
8165
8780
|
}, [
|
|
8166
8781
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronLeftSmall }, null, 8, ["icon"])
|
|
8167
|
-
], 8, _hoisted_3$
|
|
8782
|
+
], 8, _hoisted_3$k),
|
|
8168
8783
|
createElementVNode("button", {
|
|
8169
8784
|
class: "onyx-pagination__button",
|
|
8170
8785
|
"aria-label": $setup.t("pagination.next"),
|
|
@@ -8173,11 +8788,11 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8173
8788
|
onClick: _cache[3] || (_cache[3] = ($event) => $setup.emit("update:modelValue", $setup.props.modelValue + 1))
|
|
8174
8789
|
}, [
|
|
8175
8790
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronRightSmall }, null, 8, ["icon"])
|
|
8176
|
-
], 8, _hoisted_4$
|
|
8177
|
-
], 14, _hoisted_1$
|
|
8791
|
+
], 8, _hoisted_4$f)
|
|
8792
|
+
], 14, _hoisted_1$y));
|
|
8178
8793
|
}
|
|
8179
|
-
const OnyxSelectPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8180
|
-
const _sfc_main$
|
|
8794
|
+
const OnyxSelectPagination = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$M], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxPagination/OnyxSelectPagination.vue"]]);
|
|
8795
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
8181
8796
|
__name: "OnyxPagination",
|
|
8182
8797
|
props: {
|
|
8183
8798
|
density: { type: null, required: false },
|
|
@@ -8198,7 +8813,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
8198
8813
|
return __returned__;
|
|
8199
8814
|
}
|
|
8200
8815
|
});
|
|
8201
|
-
function _sfc_render$
|
|
8816
|
+
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8202
8817
|
return $setup.props.type === "inline" ? (openBlock(), createBlock(
|
|
8203
8818
|
$setup["OnyxInlinePagination"],
|
|
8204
8819
|
mergeProps({ key: 0 }, $setup.paginationProps, {
|
|
@@ -8217,7 +8832,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8217
8832
|
/* FULL_PROPS */
|
|
8218
8833
|
));
|
|
8219
8834
|
}
|
|
8220
|
-
const OnyxPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8835
|
+
const OnyxPagination = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$L], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxPagination/OnyxPagination.vue"]]);
|
|
8221
8836
|
const SELECTION_FEATURE = Symbol("Selection");
|
|
8222
8837
|
const SELECTION_MUTATION_ORDER = 1e3;
|
|
8223
8838
|
const useSelection = (options) => createFeature((ctx) => {
|
|
@@ -8495,7 +9110,7 @@ const BASE_FEATURE = (options) => createFeature(({ skeleton }) => {
|
|
|
8495
9110
|
}
|
|
8496
9111
|
};
|
|
8497
9112
|
});
|
|
8498
|
-
const _sfc_main$
|
|
9113
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
8499
9114
|
...{ inheritAttrs: false },
|
|
8500
9115
|
__name: "OnyxDataGrid",
|
|
8501
9116
|
props: {
|
|
@@ -8574,7 +9189,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
8574
9189
|
return __returned__;
|
|
8575
9190
|
}
|
|
8576
9191
|
});
|
|
8577
|
-
function _sfc_render$
|
|
9192
|
+
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8578
9193
|
return openBlock(), createBlock($setup["OnyxDataGridRenderer"], mergeProps(
|
|
8579
9194
|
{
|
|
8580
9195
|
"column-groups": $setup.rendererColumnGroups,
|
|
@@ -8609,7 +9224,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8609
9224
|
} : void 0
|
|
8610
9225
|
]), 1040, ["column-groups", "columns", "rows", "scroll-container-attrs"]);
|
|
8611
9226
|
}
|
|
8612
|
-
const OnyxDataGrid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9227
|
+
const OnyxDataGrid = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$K], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDataGrid/OnyxDataGrid.vue"]]);
|
|
8613
9228
|
const HIDE_COLUMNS_FEATURE = Symbol("HideColumnsFeature");
|
|
8614
9229
|
const HIDDEN_COLUMN = Symbol("HiddenColumn");
|
|
8615
9230
|
const useHideColumns = (options) => createFeature((ctx) => {
|
|
@@ -8715,7 +9330,7 @@ const useHideColumns = (options) => createFeature((ctx) => {
|
|
|
8715
9330
|
}
|
|
8716
9331
|
};
|
|
8717
9332
|
});
|
|
8718
|
-
const _sfc_main$
|
|
9333
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
8719
9334
|
__name: "OnyxResizeHandle",
|
|
8720
9335
|
props: {
|
|
8721
9336
|
element: { type: null, required: true },
|
|
@@ -8790,7 +9405,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
8790
9405
|
return __returned__;
|
|
8791
9406
|
}
|
|
8792
9407
|
});
|
|
8793
|
-
function _sfc_render$
|
|
9408
|
+
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8794
9409
|
return openBlock(), createElementBlock(
|
|
8795
9410
|
"button",
|
|
8796
9411
|
{
|
|
@@ -8824,7 +9439,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8824
9439
|
/* CLASS, NEED_HYDRATION */
|
|
8825
9440
|
);
|
|
8826
9441
|
}
|
|
8827
|
-
const OnyxResizeHandle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9442
|
+
const OnyxResizeHandle = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$J], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxResizeHandle/OnyxResizeHandle.vue"]]);
|
|
8828
9443
|
const RESIZING_FEATURE = Symbol("Resizing");
|
|
8829
9444
|
const FILLER_COLUMN = Symbol("FILLER_COLUMN");
|
|
8830
9445
|
const useResizing = (options) => createFeature((ctx) => {
|
|
@@ -8966,7 +9581,7 @@ const DEFAULT_COMPARES = Object.freeze({
|
|
|
8966
9581
|
skeleton: () => 0,
|
|
8967
9582
|
boolean: BOOLEAN_COMPARE
|
|
8968
9583
|
});
|
|
8969
|
-
const _sfc_main$
|
|
9584
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
8970
9585
|
__name: "SortAction",
|
|
8971
9586
|
props: {
|
|
8972
9587
|
columnLabel: { type: String, required: true },
|
|
@@ -8990,14 +9605,14 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
8990
9605
|
return __returned__;
|
|
8991
9606
|
}
|
|
8992
9607
|
});
|
|
8993
|
-
function _sfc_render$
|
|
9608
|
+
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8994
9609
|
return openBlock(), createBlock($setup["OnyxSystemButton"], {
|
|
8995
9610
|
label: $setup.buttonLabel,
|
|
8996
9611
|
icon: $setup.icon,
|
|
8997
9612
|
color: "medium"
|
|
8998
9613
|
}, null, 8, ["label", "icon"]);
|
|
8999
9614
|
}
|
|
9000
|
-
const SortAction = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9615
|
+
const SortAction = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$I], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDataGrid/features/sorting/SortAction.vue"]]);
|
|
9001
9616
|
const nextSortDirection = (current, skipNone) => {
|
|
9002
9617
|
switch (current) {
|
|
9003
9618
|
case "asc":
|
|
@@ -9240,7 +9855,7 @@ const all = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
9240
9855
|
useSorting,
|
|
9241
9856
|
useStickyColumns
|
|
9242
9857
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9243
|
-
const _sfc_main$
|
|
9858
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
9244
9859
|
...{ inheritAttrs: false },
|
|
9245
9860
|
__name: "OnyxDatePicker",
|
|
9246
9861
|
props: {
|
|
@@ -9307,9 +9922,9 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
9307
9922
|
return __returned__;
|
|
9308
9923
|
}
|
|
9309
9924
|
});
|
|
9310
|
-
const _hoisted_1$
|
|
9311
|
-
const _hoisted_2$
|
|
9312
|
-
function _sfc_render$
|
|
9925
|
+
const _hoisted_1$x = { class: "onyx-datepicker__wrapper" };
|
|
9926
|
+
const _hoisted_2$q = ["id", "type", "required", "autofocus", "name", "readonly", "disabled", "aria-label", "title", "min", "max"];
|
|
9927
|
+
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9313
9928
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
9314
9929
|
"div",
|
|
9315
9930
|
mergeProps({
|
|
@@ -9338,7 +9953,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9338
9953
|
message: $setup.messages
|
|
9339
9954
|
}), {
|
|
9340
9955
|
default: withCtx(({ id: inputId }) => [
|
|
9341
|
-
createElementVNode("div", _hoisted_1$
|
|
9956
|
+
createElementVNode("div", _hoisted_1$x, [
|
|
9342
9957
|
$setup.props.loading ? (openBlock(), createBlock($setup["OnyxLoadingIndicator"], {
|
|
9343
9958
|
key: 0,
|
|
9344
9959
|
class: "onyx-datepicker__loading",
|
|
@@ -9360,7 +9975,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9360
9975
|
title: $setup.props.hideLabel ? $setup.props.label : void 0,
|
|
9361
9976
|
min: $setup.getNormalizedDate($setup.props.min),
|
|
9362
9977
|
max: $setup.getNormalizedDate($setup.props.max)
|
|
9363
|
-
}, $setup.restAttrs), null, 16, _hoisted_2$
|
|
9978
|
+
}, $setup.restAttrs), null, 16, _hoisted_2$q)), [
|
|
9364
9979
|
[vModelDynamic, $setup.value],
|
|
9365
9980
|
[$setup["vCustomValidity"]]
|
|
9366
9981
|
])
|
|
@@ -9374,9 +9989,9 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9374
9989
|
/* FULL_PROPS */
|
|
9375
9990
|
));
|
|
9376
9991
|
}
|
|
9377
|
-
const OnyxDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9992
|
+
const OnyxDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$H], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDatePicker/OnyxDatePicker.vue"]]);
|
|
9378
9993
|
const DIALOG_ALIGNMENTS = ["left", "center", "right"];
|
|
9379
|
-
const _sfc_main$
|
|
9994
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
9380
9995
|
__name: "OnyxDialog",
|
|
9381
9996
|
props: {
|
|
9382
9997
|
density: { type: null, required: false },
|
|
@@ -9410,15 +10025,15 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
9410
10025
|
return __returned__;
|
|
9411
10026
|
}
|
|
9412
10027
|
});
|
|
9413
|
-
const _hoisted_1$
|
|
9414
|
-
const _hoisted_2$
|
|
9415
|
-
const _hoisted_3$
|
|
9416
|
-
const _hoisted_4$
|
|
9417
|
-
const _hoisted_5$
|
|
10028
|
+
const _hoisted_1$w = { class: "onyx-dialog__header" };
|
|
10029
|
+
const _hoisted_2$p = { class: "onyx-dialog__headline" };
|
|
10030
|
+
const _hoisted_3$j = { class: "onyx-dialog__headline-content" };
|
|
10031
|
+
const _hoisted_4$e = { class: "onyx-dialog__body" };
|
|
10032
|
+
const _hoisted_5$b = {
|
|
9418
10033
|
key: 0,
|
|
9419
10034
|
class: "onyx-dialog__footer"
|
|
9420
10035
|
};
|
|
9421
|
-
function _sfc_render$
|
|
10036
|
+
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9422
10037
|
return openBlock(), createBlock($setup["OnyxBasicPopover"], mergeProps($setup.basicPopoverProps, {
|
|
9423
10038
|
open: $setup.isExpanded,
|
|
9424
10039
|
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => $setup.isExpanded = $event),
|
|
@@ -9428,9 +10043,9 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9428
10043
|
renderSlot(_ctx.$slots, "trigger", { trigger })
|
|
9429
10044
|
]),
|
|
9430
10045
|
content: withCtx(() => [
|
|
9431
|
-
createElementVNode("div", _hoisted_1$
|
|
9432
|
-
createElementVNode("div", _hoisted_2$
|
|
9433
|
-
createElementVNode("div", _hoisted_3$
|
|
10046
|
+
createElementVNode("div", _hoisted_1$w, [
|
|
10047
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
10048
|
+
createElementVNode("div", _hoisted_3$j, [
|
|
9434
10049
|
renderSlot(_ctx.$slots, "headline", {
|
|
9435
10050
|
label: $setup.props.label
|
|
9436
10051
|
}, () => [
|
|
@@ -9456,10 +10071,10 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9456
10071
|
}, null, 8, ["label", "icon"])) : createCommentVNode("v-if", true)
|
|
9457
10072
|
])
|
|
9458
10073
|
]),
|
|
9459
|
-
createElementVNode("div", _hoisted_4$
|
|
10074
|
+
createElementVNode("div", _hoisted_4$e, [
|
|
9460
10075
|
renderSlot(_ctx.$slots, "default")
|
|
9461
10076
|
]),
|
|
9462
|
-
!!$setup.slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
10077
|
+
!!$setup.slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
9463
10078
|
renderSlot(_ctx.$slots, "footer")
|
|
9464
10079
|
])) : createCommentVNode("v-if", true)
|
|
9465
10080
|
]),
|
|
@@ -9467,8 +10082,8 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9467
10082
|
/* FORWARDED */
|
|
9468
10083
|
}, 16, ["open", "class"]);
|
|
9469
10084
|
}
|
|
9470
|
-
const OnyxDialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9471
|
-
const _sfc_main$
|
|
10085
|
+
const OnyxDialog = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$G], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDialog/OnyxDialog.vue"]]);
|
|
10086
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
9472
10087
|
__name: "OnyxForm",
|
|
9473
10088
|
props: {
|
|
9474
10089
|
disabled: { type: Boolean, required: false, default: false },
|
|
@@ -9488,7 +10103,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
9488
10103
|
return __returned__;
|
|
9489
10104
|
}
|
|
9490
10105
|
});
|
|
9491
|
-
function _sfc_render$
|
|
10106
|
+
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9492
10107
|
return openBlock(), createElementBlock(
|
|
9493
10108
|
"form",
|
|
9494
10109
|
{
|
|
@@ -9505,10 +10120,10 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9505
10120
|
/* CLASS */
|
|
9506
10121
|
);
|
|
9507
10122
|
}
|
|
9508
|
-
const OnyxForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10123
|
+
const OnyxForm = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$F], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxForm/OnyxForm.vue"]]);
|
|
9509
10124
|
const HEADLINE_TYPES = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
9510
10125
|
const ICON_SIZES = ["12px", "16px", "24px", "32px", "48px", "64px", "96px"];
|
|
9511
|
-
const _sfc_main$
|
|
10126
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
9512
10127
|
...{ inheritAttrs: false },
|
|
9513
10128
|
__name: "OnyxImage",
|
|
9514
10129
|
props: {
|
|
@@ -9547,10 +10162,10 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
9547
10162
|
return __returned__;
|
|
9548
10163
|
}
|
|
9549
10164
|
});
|
|
9550
|
-
const _hoisted_1$
|
|
9551
|
-
const _hoisted_2$
|
|
9552
|
-
const _hoisted_3$
|
|
9553
|
-
function _sfc_render$
|
|
10165
|
+
const _hoisted_1$v = ["src", "alt"];
|
|
10166
|
+
const _hoisted_2$o = ["src", "alt"];
|
|
10167
|
+
const _hoisted_3$i = { class: "onyx-image__alt onyx-text--small" };
|
|
10168
|
+
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9554
10169
|
return openBlock(), createElementBlock(
|
|
9555
10170
|
"figure",
|
|
9556
10171
|
mergeProps($setup.rootAttrs, {
|
|
@@ -9575,7 +10190,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9575
10190
|
src: $setup.imageSrc.light,
|
|
9576
10191
|
alt: $setup.props.alt,
|
|
9577
10192
|
onError: _cache[0] || (_cache[0] = ($event) => $setup.isError = true)
|
|
9578
|
-
}), null, 16, _hoisted_1$
|
|
10193
|
+
}), null, 16, _hoisted_1$v),
|
|
9579
10194
|
$setup.imageSrc.dark ? (openBlock(), createElementBlock("img", mergeProps({
|
|
9580
10195
|
key: 0,
|
|
9581
10196
|
class: "onyx-image__source onyx-image__source--dark"
|
|
@@ -9583,7 +10198,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9583
10198
|
src: $setup.imageSrc.dark,
|
|
9584
10199
|
alt: $setup.props.alt,
|
|
9585
10200
|
onError: _cache[1] || (_cache[1] = ($event) => $setup.isError = true)
|
|
9586
|
-
}), null, 16, _hoisted_2$
|
|
10201
|
+
}), null, 16, _hoisted_2$o)) : createCommentVNode("v-if", true),
|
|
9587
10202
|
$setup.isError ? (openBlock(), createElementBlock(
|
|
9588
10203
|
"div",
|
|
9589
10204
|
mergeProps({
|
|
@@ -9598,7 +10213,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9598
10213
|
}, null, 8, ["icon"]),
|
|
9599
10214
|
createElementVNode(
|
|
9600
10215
|
"div",
|
|
9601
|
-
_hoisted_3$
|
|
10216
|
+
_hoisted_3$i,
|
|
9602
10217
|
toDisplayString($setup.props.alt),
|
|
9603
10218
|
1
|
|
9604
10219
|
/* TEXT */
|
|
@@ -9616,7 +10231,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9616
10231
|
/* FULL_PROPS */
|
|
9617
10232
|
);
|
|
9618
10233
|
}
|
|
9619
|
-
const OnyxImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10234
|
+
const OnyxImage = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$E], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxImage/OnyxImage.vue"]]);
|
|
9620
10235
|
const IMAGE_SHAPES = ["rounded", "circle", "clip", "clip-inverted"];
|
|
9621
10236
|
const useLenientMaxLengthValidation = (options) => {
|
|
9622
10237
|
const { t } = injectI18n();
|
|
@@ -9657,7 +10272,7 @@ const MOBILE_NAV_BAR_INJECTION_KEY = Symbol();
|
|
|
9657
10272
|
const NAV_BAR_IS_TOP_LEVEL_INJECTION_KEY = Symbol();
|
|
9658
10273
|
const NAV_BAR_MORE_LIST_INJECTION_KEY = Symbol();
|
|
9659
10274
|
const NAV_BAR_MORE_LIST_TARGET_INJECTION_KEY = Symbol();
|
|
9660
|
-
const _sfc_main$
|
|
10275
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
9661
10276
|
__name: "OnyxSeparator",
|
|
9662
10277
|
props: {
|
|
9663
10278
|
orientation: { type: null, required: false, default: "horizontal" }
|
|
@@ -9674,16 +10289,16 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
9674
10289
|
return __returned__;
|
|
9675
10290
|
}
|
|
9676
10291
|
});
|
|
9677
|
-
const _hoisted_1$
|
|
9678
|
-
function _sfc_render$
|
|
10292
|
+
const _hoisted_1$u = ["aria-orientation"];
|
|
10293
|
+
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9679
10294
|
return openBlock(), createElementBlock("div", {
|
|
9680
10295
|
class: normalizeClass(["onyx-component onyx-separator", { "onyx-separator--vertical": $setup.isVertical }]),
|
|
9681
10296
|
role: "separator",
|
|
9682
10297
|
"aria-orientation": $setup.props.orientation
|
|
9683
|
-
}, null, 10, _hoisted_1$
|
|
10298
|
+
}, null, 10, _hoisted_1$u);
|
|
9684
10299
|
}
|
|
9685
|
-
const OnyxSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9686
|
-
const _sfc_main$
|
|
10300
|
+
const OnyxSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$D], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSeparator/OnyxSeparator.vue"]]);
|
|
10301
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
9687
10302
|
...{ inheritAttrs: false },
|
|
9688
10303
|
__name: "OnyxInput",
|
|
9689
10304
|
props: {
|
|
@@ -9772,10 +10387,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
9772
10387
|
return __returned__;
|
|
9773
10388
|
}
|
|
9774
10389
|
});
|
|
9775
|
-
const _hoisted_1$
|
|
9776
|
-
const _hoisted_2$
|
|
9777
|
-
const _hoisted_3$
|
|
9778
|
-
function _sfc_render$
|
|
10390
|
+
const _hoisted_1$t = { class: "onyx-input__wrapper" };
|
|
10391
|
+
const _hoisted_2$n = ["id", "placeholder", "type", "required", "autocapitalize", "autocomplete", "autofocus", "name", "pattern", "readonly", "disabled", "maxlength", "minlength", "aria-label", "title"];
|
|
10392
|
+
const _hoisted_3$h = ["aria-label", "title"];
|
|
10393
|
+
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9779
10394
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
9780
10395
|
"div",
|
|
9781
10396
|
mergeProps({
|
|
@@ -9804,7 +10419,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9804
10419
|
message: $setup.messages
|
|
9805
10420
|
}), {
|
|
9806
10421
|
default: withCtx(({ id: inputId }) => [
|
|
9807
|
-
createElementVNode("div", _hoisted_1$
|
|
10422
|
+
createElementVNode("div", _hoisted_1$t, [
|
|
9808
10423
|
renderSlot(_ctx.$slots, "leading"),
|
|
9809
10424
|
$setup.slots.leading ? (openBlock(), createBlock($setup["OnyxSeparator"], {
|
|
9810
10425
|
key: 0,
|
|
@@ -9835,7 +10450,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9835
10450
|
minlength: $setup.props.minlength,
|
|
9836
10451
|
"aria-label": $setup.props.hideLabel ? $setup.props.label : void 0,
|
|
9837
10452
|
title: $setup.props.hideLabel ? $setup.props.label : void 0
|
|
9838
|
-
}, $setup.restAttrs), null, 16, _hoisted_2$
|
|
10453
|
+
}, $setup.restAttrs), null, 16, _hoisted_2$n), [
|
|
9839
10454
|
[vModelDynamic, $setup.modelValue],
|
|
9840
10455
|
[$setup["vCustomValidity"]]
|
|
9841
10456
|
]),
|
|
@@ -9849,7 +10464,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9849
10464
|
onClick: _cache[1] || (_cache[1] = () => $setup.modelValue = "")
|
|
9850
10465
|
}, [
|
|
9851
10466
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconXSmall }, null, 8, ["icon"])
|
|
9852
|
-
], 8, _hoisted_3$
|
|
10467
|
+
], 8, _hoisted_3$h)) : createCommentVNode("v-if", true),
|
|
9853
10468
|
!$setup.props.hideSuccessIcon && $setup.successMessages ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
9854
10469
|
key: 3,
|
|
9855
10470
|
class: "onyx-input__check-icon",
|
|
@@ -9881,9 +10496,9 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9881
10496
|
/* FULL_PROPS */
|
|
9882
10497
|
));
|
|
9883
10498
|
}
|
|
9884
|
-
const OnyxInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10499
|
+
const OnyxInput = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxInput/OnyxInput.vue"]]);
|
|
9885
10500
|
const INPUT_TYPES = ["email", "password", "search", "tel", "text", "url"];
|
|
9886
|
-
const _sfc_main$
|
|
10501
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
9887
10502
|
__name: "OnyxLink",
|
|
9888
10503
|
props: {
|
|
9889
10504
|
href: { type: String, required: false },
|
|
@@ -9900,7 +10515,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
9900
10515
|
return __returned__;
|
|
9901
10516
|
}
|
|
9902
10517
|
});
|
|
9903
|
-
function _sfc_render$
|
|
10518
|
+
function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9904
10519
|
return openBlock(), createBlock(
|
|
9905
10520
|
$setup["OnyxRouterLink"],
|
|
9906
10521
|
mergeProps({ class: "onyx-component onyx-link" }, $setup.routerLinkProps),
|
|
@@ -9922,8 +10537,8 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9922
10537
|
/* FULL_PROPS */
|
|
9923
10538
|
);
|
|
9924
10539
|
}
|
|
9925
|
-
const OnyxLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9926
|
-
const _sfc_main$
|
|
10540
|
+
const OnyxLink = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$B], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxLink/OnyxLink.vue"]]);
|
|
10541
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
9927
10542
|
__name: "OnyxMobileNavButton",
|
|
9928
10543
|
props: {
|
|
9929
10544
|
label: { type: String, required: true },
|
|
@@ -9945,12 +10560,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
9945
10560
|
return __returned__;
|
|
9946
10561
|
}
|
|
9947
10562
|
});
|
|
9948
|
-
const _hoisted_1$
|
|
9949
|
-
const _hoisted_2$
|
|
9950
|
-
const _hoisted_3$
|
|
9951
|
-
const _hoisted_4$
|
|
9952
|
-
function _sfc_render$
|
|
9953
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10563
|
+
const _hoisted_1$s = { class: "onyx-component onyx-mobile-nav-button" };
|
|
10564
|
+
const _hoisted_2$m = ["aria-label", "disabled"];
|
|
10565
|
+
const _hoisted_3$g = { class: "onyx-mobile-nav-button__flyout" };
|
|
10566
|
+
const _hoisted_4$d = { class: "onyx-mobile-nav-button__menu" };
|
|
10567
|
+
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10568
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
9954
10569
|
createElementVNode("button", {
|
|
9955
10570
|
type: "button",
|
|
9956
10571
|
class: normalizeClass(["onyx-mobile-nav-button__trigger", { "onyx-mobile-nav-button__trigger--active": $setup.props.open }]),
|
|
@@ -9961,12 +10576,12 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9961
10576
|
createVNode($setup["OnyxIcon"], {
|
|
9962
10577
|
icon: $setup.props.open ? $setup.iconX : $setup.props.icon
|
|
9963
10578
|
}, null, 8, ["icon"])
|
|
9964
|
-
], 10, _hoisted_2$
|
|
10579
|
+
], 10, _hoisted_2$m),
|
|
9965
10580
|
withDirectives(createElementVNode(
|
|
9966
10581
|
"div",
|
|
9967
|
-
_hoisted_3$
|
|
10582
|
+
_hoisted_3$g,
|
|
9968
10583
|
[
|
|
9969
|
-
createElementVNode("div", _hoisted_4$
|
|
10584
|
+
createElementVNode("div", _hoisted_4$d, [
|
|
9970
10585
|
$setup.props.headline ? (openBlock(), createBlock($setup["OnyxHeadline"], {
|
|
9971
10586
|
key: 0,
|
|
9972
10587
|
is: "h2",
|
|
@@ -9998,8 +10613,8 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9998
10613
|
})) : createCommentVNode("v-if", true)
|
|
9999
10614
|
]);
|
|
10000
10615
|
}
|
|
10001
|
-
const OnyxMobileNavButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10002
|
-
const _sfc_main$
|
|
10616
|
+
const OnyxMobileNavButton = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$A], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxMobileNavButton/OnyxMobileNavButton.vue"]]);
|
|
10617
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
10003
10618
|
__name: "OnyxModal",
|
|
10004
10619
|
props: {
|
|
10005
10620
|
density: { type: null, required: false },
|
|
@@ -10026,16 +10641,16 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
10026
10641
|
return __returned__;
|
|
10027
10642
|
}
|
|
10028
10643
|
});
|
|
10029
|
-
const _hoisted_1$
|
|
10030
|
-
const _hoisted_2$
|
|
10031
|
-
const _hoisted_3$
|
|
10032
|
-
const _hoisted_4$
|
|
10033
|
-
const _hoisted_5$
|
|
10034
|
-
const _hoisted_6$
|
|
10644
|
+
const _hoisted_1$r = { class: "onyx-modal__header" };
|
|
10645
|
+
const _hoisted_2$l = { class: "onyx-modal__headline" };
|
|
10646
|
+
const _hoisted_3$f = { class: "onyx-modal__headline-content" };
|
|
10647
|
+
const _hoisted_4$c = ["id"];
|
|
10648
|
+
const _hoisted_5$a = { class: "onyx-modal__body" };
|
|
10649
|
+
const _hoisted_6$8 = {
|
|
10035
10650
|
key: 0,
|
|
10036
10651
|
class: "onyx-modal__footer"
|
|
10037
10652
|
};
|
|
10038
|
-
function _sfc_render$
|
|
10653
|
+
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10039
10654
|
return openBlock(), createBlock($setup["OnyxBasicDialog"], mergeProps($setup.basicDialogProps, {
|
|
10040
10655
|
modal: "",
|
|
10041
10656
|
class: ["onyx-modal", $setup.densityClass],
|
|
@@ -10043,9 +10658,9 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10043
10658
|
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => $setup.emit("update:open", $event))
|
|
10044
10659
|
}), {
|
|
10045
10660
|
default: withCtx(() => [
|
|
10046
|
-
createElementVNode("div", _hoisted_1$
|
|
10047
|
-
createElementVNode("div", _hoisted_2$
|
|
10048
|
-
createElementVNode("div", _hoisted_3$
|
|
10661
|
+
createElementVNode("div", _hoisted_1$r, [
|
|
10662
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
10663
|
+
createElementVNode("div", _hoisted_3$f, [
|
|
10049
10664
|
renderSlot(_ctx.$slots, "headline", {
|
|
10050
10665
|
label: $setup.props.label
|
|
10051
10666
|
}, () => [
|
|
@@ -10076,12 +10691,12 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10076
10691
|
class: "onyx-modal__description onyx-text--small"
|
|
10077
10692
|
}, [
|
|
10078
10693
|
renderSlot(_ctx.$slots, "description")
|
|
10079
|
-
], 8, _hoisted_4$
|
|
10694
|
+
], 8, _hoisted_4$c)) : createCommentVNode("v-if", true)
|
|
10080
10695
|
]),
|
|
10081
|
-
createElementVNode("div", _hoisted_5$
|
|
10696
|
+
createElementVNode("div", _hoisted_5$a, [
|
|
10082
10697
|
renderSlot(_ctx.$slots, "default")
|
|
10083
10698
|
]),
|
|
10084
|
-
!!$setup.slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
10699
|
+
!!$setup.slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
|
|
10085
10700
|
renderSlot(_ctx.$slots, "footer")
|
|
10086
10701
|
])) : createCommentVNode("v-if", true)
|
|
10087
10702
|
]),
|
|
@@ -10089,8 +10704,8 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10089
10704
|
/* FORWARDED */
|
|
10090
10705
|
}, 16, ["class", "aria-describedby"]);
|
|
10091
10706
|
}
|
|
10092
|
-
const OnyxModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10093
|
-
const _sfc_main$
|
|
10707
|
+
const OnyxModal = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxModal/OnyxModal.vue"]]);
|
|
10708
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
10094
10709
|
__name: "OnyxNavAppArea",
|
|
10095
10710
|
props: {
|
|
10096
10711
|
link: { type: null, required: false, default: "/" },
|
|
@@ -10109,12 +10724,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
10109
10724
|
return __returned__;
|
|
10110
10725
|
}
|
|
10111
10726
|
});
|
|
10112
|
-
const _hoisted_1$
|
|
10113
|
-
const _hoisted_2$
|
|
10727
|
+
const _hoisted_1$q = ["src", "alt"];
|
|
10728
|
+
const _hoisted_2$k = {
|
|
10114
10729
|
key: 1,
|
|
10115
10730
|
class: "onyx-text-small onyx-truncation-ellipsis"
|
|
10116
10731
|
};
|
|
10117
|
-
function _sfc_render$
|
|
10732
|
+
function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10118
10733
|
return openBlock(), createBlock($setup["OnyxRouterLink"], mergeProps($setup.linkProps, {
|
|
10119
10734
|
class: "onyx-component onyx-nav-app-area",
|
|
10120
10735
|
"aria-label": $setup.buttonLabel
|
|
@@ -10128,10 +10743,10 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10128
10743
|
class: "onyx-nav-app-area__logo",
|
|
10129
10744
|
width: "24",
|
|
10130
10745
|
height: "24"
|
|
10131
|
-
}, null, 8, _hoisted_1$
|
|
10746
|
+
}, null, 8, _hoisted_1$q)) : createCommentVNode("v-if", true),
|
|
10132
10747
|
$setup.props.appName ? (openBlock(), createElementBlock(
|
|
10133
10748
|
"span",
|
|
10134
|
-
_hoisted_2$
|
|
10749
|
+
_hoisted_2$k,
|
|
10135
10750
|
toDisplayString($setup.props.appName),
|
|
10136
10751
|
1
|
|
10137
10752
|
/* TEXT */
|
|
@@ -10142,8 +10757,8 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10142
10757
|
/* FORWARDED */
|
|
10143
10758
|
}, 16, ["aria-label"]);
|
|
10144
10759
|
}
|
|
10145
|
-
const OnyxNavAppArea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10146
|
-
const _sfc_main$
|
|
10760
|
+
const OnyxNavAppArea = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$y], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavAppArea/OnyxNavAppArea.vue"]]);
|
|
10761
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
10147
10762
|
__name: "OnyxSelectDialog",
|
|
10148
10763
|
props: {
|
|
10149
10764
|
open: { type: [Boolean, null], required: false, skipCheck: true, default: false },
|
|
@@ -10177,14 +10792,14 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
10177
10792
|
return __returned__;
|
|
10178
10793
|
}
|
|
10179
10794
|
});
|
|
10180
|
-
const _hoisted_1$
|
|
10181
|
-
const _hoisted_2$
|
|
10182
|
-
const _hoisted_3$
|
|
10183
|
-
const _hoisted_4$
|
|
10795
|
+
const _hoisted_1$p = ["id"];
|
|
10796
|
+
const _hoisted_2$j = ["autofocus", "value", "checked", "aria-label"];
|
|
10797
|
+
const _hoisted_3$e = { class: "onyx-select-dialog__label" };
|
|
10798
|
+
const _hoisted_4$b = {
|
|
10184
10799
|
key: 0,
|
|
10185
10800
|
class: "onyx-text--small"
|
|
10186
10801
|
};
|
|
10187
|
-
function _sfc_render$
|
|
10802
|
+
function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10188
10803
|
return openBlock(), createBlock($setup["OnyxModal"], mergeProps($setup.modalProps, {
|
|
10189
10804
|
open: $setup.props.open,
|
|
10190
10805
|
class: "onyx-select-dialog",
|
|
@@ -10254,7 +10869,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10254
10869
|
checked: $setup.props.modelValue === option.value,
|
|
10255
10870
|
"aria-label": option.label,
|
|
10256
10871
|
required: ""
|
|
10257
|
-
}, null, 8, _hoisted_2$
|
|
10872
|
+
}, null, 8, _hoisted_2$j)
|
|
10258
10873
|
]),
|
|
10259
10874
|
_: 2
|
|
10260
10875
|
/* DYNAMIC */
|
|
@@ -10264,14 +10879,14 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10264
10879
|
),
|
|
10265
10880
|
createElementVNode(
|
|
10266
10881
|
"span",
|
|
10267
|
-
_hoisted_3$
|
|
10882
|
+
_hoisted_3$e,
|
|
10268
10883
|
toDisplayString(option.label),
|
|
10269
10884
|
1
|
|
10270
10885
|
/* TEXT */
|
|
10271
10886
|
),
|
|
10272
10887
|
option.description ? (openBlock(), createElementBlock(
|
|
10273
10888
|
"p",
|
|
10274
|
-
_hoisted_4$
|
|
10889
|
+
_hoisted_4$b,
|
|
10275
10890
|
toDisplayString(option.description),
|
|
10276
10891
|
1
|
|
10277
10892
|
/* TEXT */
|
|
@@ -10293,7 +10908,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10293
10908
|
32
|
|
10294
10909
|
/* NEED_HYDRATION */
|
|
10295
10910
|
)
|
|
10296
|
-
], 40, _hoisted_1$
|
|
10911
|
+
], 40, _hoisted_1$p)
|
|
10297
10912
|
]),
|
|
10298
10913
|
_: 2
|
|
10299
10914
|
/* DYNAMIC */
|
|
@@ -10307,11 +10922,11 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10307
10922
|
} : void 0
|
|
10308
10923
|
]), 1040, ["open", "label"]);
|
|
10309
10924
|
}
|
|
10310
|
-
const OnyxSelectDialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10925
|
+
const OnyxSelectDialog = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$x], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSelectDialog/OnyxSelectDialog.vue"]]);
|
|
10311
10926
|
const autoImage = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 206 110"><g clip-path="url(#auto-a)"><mask id="auto-d" fill="var(--onyx-color-neutral-grayscale-white)"><path d="M0 4a4 4 0 0 1 4-4h99v110H4a4 4 0 0 1-4-4z"/></mask><path fill="var(--onyx-color-neutral-steel-1200)" d="M0 4a4 4 0 0 1 4-4h99v110H4a4 4 0 0 1-4-4z"/><g filter="url(#auto-b)"><mask id="auto-c" fill="var(--onyx-color-neutral-grayscale-white)"><path d="M0 26h46v84H0z"/></mask><path fill="var(--onyx-color-neutral-steel-1100)" d="M0 26h46v84H0z"/><path fill="var(--onyx-color-neutral-steel-900)" d="M46 26h-1v84h2V26z" mask="url(#auto-c)"/></g><path fill="var(--onyx-color-neutral-steel-1100)" stroke="var(--onyx-color-neutral-steel-900)" d="M.5.5h281v25H.5z"/><path fill="var(--onyx-color-onyx-500)" d="M10 12.5a2.5 2.5 0 0 1 2.5-2.5h35a2.5 2.5 0 0 1 0 5h-35a2.5 2.5 0 0 1-2.5-2.5"/><path fill="var(--onyx-color-neutral-steel-900)" d="M68 12.5a2.5 2.5 0 0 1 2.5-2.5h34a2.5 2.5 0 1 1 0 5h-34a2.5 2.5 0 0 1-2.5-2.5M59 43a7 7 0 0 1 7-7h54a7 7 0 1 1 0 14H66a7 7 0 0 1-7-7m0 19a2 2 0 0 1 2-2h85a2 2 0 1 1 0 4H61a2 2 0 0 1-2-2m0 10a2 2 0 0 1 2-2h120a2 2 0 1 1 0 4H61a2 2 0 0 1-2-2m0 10a2 2 0 0 1 2-2h95a2 2 0 1 1 0 4H61a2 2 0 0 1-2-2"/></g><path fill="var(--onyx-color-neutral-steel-900)" d="M-1 4a5 5 0 0 1 5-5h99v2H4a3 3 0 0 0-3 3zm104 107H4a5 5 0 0 1-5-5h2a3 3 0 0 0 3 3h99zm-99 0a5 5 0 0 1-5-5V4a5 5 0 0 1 5-5v2a3 3 0 0 0-3 3v102a3 3 0 0 0 3 3zM103 0v110z" mask="url(#auto-d)"/><g clip-path="url(#auto-e)"><mask id="auto-f" fill="var(--onyx-color-neutral-grayscale-white)"><path d="M103 0h99a4 4 0 0 1 4 4v102a4 4 0 0 1-4 4h-99z"/></mask><path fill="var(--onyx-color-neutral-steel-100)" d="M103 0h99a4 4 0 0 1 4 4v102a4 4 0 0 1-4 4h-99z"/><path fill="var(--onyx-color-neutral-grayscale-white)" stroke="var(--onyx-color-neutral-steel-300)" d="M.5.5h281v25H.5z"/><path fill="var(--onyx-color-neutral-steel-300)" d="M68 12.5a2.5 2.5 0 0 1 2.5-2.5h34a2.5 2.5 0 1 1 0 5h-34a2.5 2.5 0 0 1-2.5-2.5m48 0a2.5 2.5 0 0 1 2.5-2.5h33a2.5 2.5 0 1 1 0 5h-33a2.5 2.5 0 0 1-2.5-2.5m47 0a2.5 2.5 0 0 1 2.5-2.5h34a2.5 2.5 0 1 1 0 5h-34a2.5 2.5 0 0 1-2.5-2.5M59 43a7 7 0 0 1 7-7h54a7 7 0 1 1 0 14H66a7 7 0 0 1-7-7m0 19a2 2 0 0 1 2-2h85a2 2 0 1 1 0 4H61a2 2 0 0 1-2-2m0 10a2 2 0 0 1 2-2h120a2 2 0 1 1 0 4H61a2 2 0 0 1-2-2m0 10a2 2 0 0 1 2-2h95a2 2 0 1 1 0 4H61a2 2 0 0 1-2-2"/></g><path fill="var(--onyx-color-neutral-steel-300)" d="M103-1h99a5 5 0 0 1 5 5h-2a3 3 0 0 0-3-3h-99zm104 107a5 5 0 0 1-5 5h-99v-2h99a3 3 0 0 0 3-3zm-104 4V0zM202-1a5 5 0 0 1 5 5v102a5 5 0 0 1-5 5v-2a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3z" mask="url(#auto-f)"/><defs><clipPath id="auto-a"><path fill="var(--onyx-color-neutral-grayscale-white)" d="M0 4a4 4 0 0 1 4-4h99v110H4a4 4 0 0 1-4-4z"/></clipPath><clipPath id="auto-e"><path fill="var(--onyx-color-neutral-grayscale-white)" d="M103 0h99a4 4 0 0 1 4 4v102a4 4 0 0 1-4 4h-99z"/></clipPath><filter id="auto-b" width="62" height="100" x="-6" y="18" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dx="2"/><feGaussianBlur stdDeviation="4"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_16217_22720"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_16217_22720" result="shape"/></filter></defs></svg>';
|
|
10312
10927
|
const darkImage = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 206 110"><g clip-path="url(#dark-a)"><path fill="var(--onyx-color-neutral-steel-1200)" d="M0 4a4 4 0 0 1 4-4h198a4 4 0 0 1 4 4v102a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z"/><g filter="url(#dark-b)"><mask id="dark-c" fill="#fff"><path d="M0 26h46v84H0z"/></mask><path fill="var(--onyx-color-neutral-steel-1100)" d="M0 26h46v84H0z"/><path fill="var(--onyx-color-neutral-steel-900)" d="M46 26h-1v84h2V26z" mask="url(#dark-c)"/></g><path fill="var(--onyx-color-neutral-steel-1100)" stroke="var(--onyx-color-neutral-steel-900)" d="M.5.5h281v25H.5z"/><path fill="var(--onyx-color-onyx-500)" d="M10 12.5a2.5 2.5 0 0 1 2.5-2.5h35a2.5 2.5 0 0 1 0 5h-35a2.5 2.5 0 0 1-2.5-2.5"/><path fill="var(--onyx-color-neutral-steel-900)" d="M68 12.5a2.5 2.5 0 0 1 2.5-2.5h34a2.5 2.5 0 1 1 0 5h-34a2.5 2.5 0 0 1-2.5-2.5m48 0a2.5 2.5 0 0 1 2.5-2.5h33a2.5 2.5 0 1 1 0 5h-33a2.5 2.5 0 0 1-2.5-2.5m47 0a2.5 2.5 0 0 1 2.5-2.5h34a2.5 2.5 0 1 1 0 5h-34a2.5 2.5 0 0 1-2.5-2.5M59 43a7 7 0 0 1 7-7h54a7 7 0 1 1 0 14H66a7 7 0 0 1-7-7m0 19a2 2 0 0 1 2-2h85a2 2 0 1 1 0 4H61a2 2 0 0 1-2-2m0 10a2 2 0 0 1 2-2h120a2 2 0 1 1 0 4H61a2 2 0 0 1-2-2m0 10a2 2 0 0 1 2-2h95a2 2 0 1 1 0 4H61a2 2 0 0 1-2-2"/></g><path stroke="var(--onyx-color-neutral-steel-900)" d="M4 .5h198a3.5 3.5 0 0 1 3.5 3.5v102a3.5 3.5 0 0 1-3.5 3.5H4A3.5 3.5 0 0 1 .5 106V4A3.5 3.5 0 0 1 4 .5Z"/><defs><clipPath id="dark-a"><path fill="#fff" d="M0 4a4 4 0 0 1 4-4h198a4 4 0 0 1 4 4v102a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z"/></clipPath><filter id="dark-b" width="62" height="100" x="-6" y="18" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dx="2"/><feGaussianBlur stdDeviation="4"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_16217_22757"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_16217_22757" result="shape"/></filter></defs></svg>';
|
|
10313
10928
|
const lightImage = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 206 110"><g clip-path="url(#light-a)"><path fill="var(--onyx-color-neutral-steel-100)" d="M0 4a4 4 0 0 1 4-4h198a4 4 0 0 1 4 4v102a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z"/><g filter="url(#light-b)"><mask id="light-c" fill="var(--onyx-color-neutral-grayscale-white)"><path d="M0 26h46v84H0z"/></mask><path fill="var(--onyx-color-neutral-grayscale-white)" d="M0 26h46v84H0z"/><path fill="var(--onyx-color-neutral-steel-300)" d="M46 26h-1v84h2V26z" mask="url(#light-c)"/></g><path fill="var(--onyx-color-neutral-grayscale-white)" stroke="var(--onyx-color-neutral-steel-300)" d="M.5.5h281v25H.5z"/><path fill="var(--onyx-color-onyx-500)" d="M10 12.5a2.5 2.5 0 0 1 2.5-2.5h35a2.5 2.5 0 0 1 0 5h-35a2.5 2.5 0 0 1-2.5-2.5"/><path fill="var(--onyx-color-neutral-steel-300)" d="M68 12.5a2.5 2.5 0 0 1 2.5-2.5h34a2.5 2.5 0 1 1 0 5h-34a2.5 2.5 0 0 1-2.5-2.5m48 0a2.5 2.5 0 0 1 2.5-2.5h33a2.5 2.5 0 1 1 0 5h-33a2.5 2.5 0 0 1-2.5-2.5m47 0a2.5 2.5 0 0 1 2.5-2.5h34a2.5 2.5 0 1 1 0 5h-34a2.5 2.5 0 0 1-2.5-2.5M59 43a7 7 0 0 1 7-7h54a7 7 0 1 1 0 14H66a7 7 0 0 1-7-7m0 19a2 2 0 0 1 2-2h85a2 2 0 1 1 0 4H61a2 2 0 0 1-2-2m0 10a2 2 0 0 1 2-2h120a2 2 0 1 1 0 4H61a2 2 0 0 1-2-2m0 10a2 2 0 0 1 2-2h95a2 2 0 1 1 0 4H61a2 2 0 0 1-2-2"/></g><path stroke="var(--onyx-color-neutral-steel-300)" d="M4 .5h198a3.5 3.5 0 0 1 3.5 3.5v102a3.5 3.5 0 0 1-3.5 3.5H4A3.5 3.5 0 0 1 .5 106V4A3.5 3.5 0 0 1 4 .5Z"/><defs><clipPath id="light-a"><path fill="var(--onyx-color-neutral-grayscale-white)" d="M0 4a4 4 0 0 1 4-4h198a4 4 0 0 1 4 4v102a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z"/></clipPath><filter id="light-b" width="62" height="100" x="-6" y="18" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dx="2"/><feGaussianBlur stdDeviation="4"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_16217_22745"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_16217_22745" result="shape"/></filter></defs></svg>';
|
|
10314
|
-
const _sfc_main$
|
|
10929
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
10315
10930
|
__name: "OnyxColorSchemeDialog",
|
|
10316
10931
|
props: {
|
|
10317
10932
|
open: { type: [Boolean, null], required: false, skipCheck: true, default: false },
|
|
@@ -10352,7 +10967,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
10352
10967
|
return __returned__;
|
|
10353
10968
|
}
|
|
10354
10969
|
});
|
|
10355
|
-
function _sfc_render$
|
|
10970
|
+
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10356
10971
|
return openBlock(), createBlock($setup["OnyxSelectDialog"], mergeProps({ class: "onyx-color-scheme-dialog" }, $setup.selectDialogProps, {
|
|
10357
10972
|
label: $setup.t("colorScheme.headline"),
|
|
10358
10973
|
options: $setup.options,
|
|
@@ -10371,8 +10986,8 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10371
10986
|
/* STABLE */
|
|
10372
10987
|
}, 16, ["label", "options", "open"]);
|
|
10373
10988
|
}
|
|
10374
|
-
const OnyxColorSchemeDialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10375
|
-
const _sfc_main$
|
|
10989
|
+
const OnyxColorSchemeDialog = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$w], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxColorSchemeDialog/OnyxColorSchemeDialog.vue"]]);
|
|
10990
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
10376
10991
|
__name: "OnyxColorSchemeMenuItem",
|
|
10377
10992
|
props: {
|
|
10378
10993
|
modelValue: { type: String, required: true }
|
|
@@ -10391,8 +11006,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
10391
11006
|
return __returned__;
|
|
10392
11007
|
}
|
|
10393
11008
|
});
|
|
10394
|
-
const _hoisted_1$
|
|
10395
|
-
function _sfc_render$
|
|
11009
|
+
const _hoisted_1$o = { class: "onyx-color-scheme-menu-item__value" };
|
|
11010
|
+
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10396
11011
|
return openBlock(), createBlock($setup["OnyxMenuItem"], {
|
|
10397
11012
|
class: "onyx-component onyx-color-scheme-menu-item",
|
|
10398
11013
|
onClick: _cache[2] || (_cache[2] = ($event) => $setup.isOpen = true)
|
|
@@ -10407,7 +11022,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10407
11022
|
),
|
|
10408
11023
|
createElementVNode(
|
|
10409
11024
|
"span",
|
|
10410
|
-
_hoisted_1$
|
|
11025
|
+
_hoisted_1$o,
|
|
10411
11026
|
toDisplayString($setup.t(`colorScheme.${$setup.props.modelValue}.label`)),
|
|
10412
11027
|
1
|
|
10413
11028
|
/* TEXT */
|
|
@@ -10426,8 +11041,8 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10426
11041
|
/* STABLE */
|
|
10427
11042
|
});
|
|
10428
11043
|
}
|
|
10429
|
-
const OnyxColorSchemeMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10430
|
-
const _sfc_main$
|
|
11044
|
+
const OnyxColorSchemeMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$v], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/OnyxColorSchemeMenuItem.vue"]]);
|
|
11045
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
10431
11046
|
__name: "OnyxLanguageMenuItem",
|
|
10432
11047
|
props: {
|
|
10433
11048
|
modelValue: { type: null, required: true },
|
|
@@ -10452,8 +11067,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
10452
11067
|
return __returned__;
|
|
10453
11068
|
}
|
|
10454
11069
|
});
|
|
10455
|
-
const _hoisted_1$
|
|
10456
|
-
function _sfc_render$
|
|
11070
|
+
const _hoisted_1$n = { class: "onyx-language-menu-item__value" };
|
|
11071
|
+
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10457
11072
|
return openBlock(), createBlock($setup["OnyxMenuItem"], {
|
|
10458
11073
|
class: "onyx-component onyx-language-menu-item",
|
|
10459
11074
|
onClick: _cache[2] || (_cache[2] = ($event) => $setup.isOpen = true)
|
|
@@ -10468,7 +11083,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10468
11083
|
),
|
|
10469
11084
|
createElementVNode(
|
|
10470
11085
|
"span",
|
|
10471
|
-
_hoisted_1$
|
|
11086
|
+
_hoisted_1$n,
|
|
10472
11087
|
toDisplayString($setup.currentValueLabel),
|
|
10473
11088
|
1
|
|
10474
11089
|
/* TEXT */
|
|
@@ -10499,8 +11114,8 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10499
11114
|
/* STABLE */
|
|
10500
11115
|
});
|
|
10501
11116
|
}
|
|
10502
|
-
const OnyxLanguageMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10503
|
-
const _sfc_main$
|
|
11117
|
+
const OnyxLanguageMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$u], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxLanguageMenuItem/OnyxLanguageMenuItem.vue"]]);
|
|
11118
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
10504
11119
|
__name: "OnyxNavItemFacade",
|
|
10505
11120
|
props: {
|
|
10506
11121
|
link: { type: null, required: false },
|
|
@@ -10522,7 +11137,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
10522
11137
|
return __returned__;
|
|
10523
11138
|
}
|
|
10524
11139
|
});
|
|
10525
|
-
function _sfc_render$
|
|
11140
|
+
function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10526
11141
|
return openBlock(), createBlock($setup["OnyxMenuItem"], mergeProps($setup.menuItemProps, {
|
|
10527
11142
|
link: $setup.hasChildren && $setup.props.context !== "navbar" ? void 0 : $setup.props.link,
|
|
10528
11143
|
class: {
|
|
@@ -10548,8 +11163,8 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10548
11163
|
} : void 0
|
|
10549
11164
|
]), 1040, ["link", "class", "open"]);
|
|
10550
11165
|
}
|
|
10551
|
-
const OnyxNavItemFacade = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10552
|
-
const _sfc_main$
|
|
11166
|
+
const OnyxNavItemFacade = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$t], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxNavItemFacade/OnyxNavItemFacade.vue"]]);
|
|
11167
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
10553
11168
|
...{ inheritAttrs: false },
|
|
10554
11169
|
__name: "OnyxNavItem",
|
|
10555
11170
|
props: {
|
|
@@ -10595,12 +11210,12 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
10595
11210
|
return __returned__;
|
|
10596
11211
|
}
|
|
10597
11212
|
});
|
|
10598
|
-
const _hoisted_1$
|
|
10599
|
-
const _hoisted_2$
|
|
11213
|
+
const _hoisted_1$m = { class: "onyx-nav-item-wrapper__controls" };
|
|
11214
|
+
const _hoisted_2$i = {
|
|
10600
11215
|
role: "menu",
|
|
10601
11216
|
class: "onyx-nav-item-wrapper__mobile-children"
|
|
10602
11217
|
};
|
|
10603
|
-
function _sfc_render$
|
|
11218
|
+
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10604
11219
|
return openBlock(), createElementBlock(
|
|
10605
11220
|
Fragment,
|
|
10606
11221
|
null,
|
|
@@ -10616,7 +11231,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10616
11231
|
}
|
|
10617
11232
|
}, $setup.rootAttrs),
|
|
10618
11233
|
[
|
|
10619
|
-
createElementVNode("div", _hoisted_1$
|
|
11234
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
10620
11235
|
createVNode($setup["OnyxButton"], {
|
|
10621
11236
|
label: $setup.t("back"),
|
|
10622
11237
|
mode: "plain",
|
|
@@ -10644,7 +11259,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10644
11259
|
/* STABLE_FRAGMENT */
|
|
10645
11260
|
)) : createCommentVNode("v-if", true)
|
|
10646
11261
|
]),
|
|
10647
|
-
createElementVNode("ul", _hoisted_2$
|
|
11262
|
+
createElementVNode("ul", _hoisted_2$i, [
|
|
10648
11263
|
renderSlot(_ctx.$slots, "children")
|
|
10649
11264
|
])
|
|
10650
11265
|
],
|
|
@@ -10753,7 +11368,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10753
11368
|
/* STABLE_FRAGMENT */
|
|
10754
11369
|
);
|
|
10755
11370
|
}
|
|
10756
|
-
const OnyxNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11371
|
+
const OnyxNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxNavItem/OnyxNavItem.vue"]]);
|
|
10757
11372
|
const useTimer = (endTime) => {
|
|
10758
11373
|
const intervalId = ref();
|
|
10759
11374
|
const timeLeft = ref(calculateTimeLeft(new Date(endTime.value).getTime()));
|
|
@@ -10814,7 +11429,7 @@ const timeToDurationString = (timeLeft) => {
|
|
|
10814
11429
|
const { hours, minutes, seconds } = getTimeFragments(timeLeft);
|
|
10815
11430
|
return `PT${hours}H${minutes}M${seconds}S`;
|
|
10816
11431
|
};
|
|
10817
|
-
const _sfc_main$
|
|
11432
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
10818
11433
|
__name: "OnyxTimer",
|
|
10819
11434
|
props: {
|
|
10820
11435
|
endTime: { type: null, required: true },
|
|
@@ -10845,13 +11460,13 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
10845
11460
|
return __returned__;
|
|
10846
11461
|
}
|
|
10847
11462
|
});
|
|
10848
|
-
const _hoisted_1$
|
|
10849
|
-
const _hoisted_2$
|
|
11463
|
+
const _hoisted_1$l = ["aria-label"];
|
|
11464
|
+
const _hoisted_2$h = {
|
|
10850
11465
|
key: 0,
|
|
10851
11466
|
class: "onyx-timer__label"
|
|
10852
11467
|
};
|
|
10853
|
-
const _hoisted_3$
|
|
10854
|
-
function _sfc_render$
|
|
11468
|
+
const _hoisted_3$d = ["datetime"];
|
|
11469
|
+
function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10855
11470
|
return openBlock(), createElementBlock("div", {
|
|
10856
11471
|
class: "onyx-component onyx-timer onyx-text onyx-truncation-ellipsis",
|
|
10857
11472
|
role: "timer",
|
|
@@ -10859,7 +11474,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10859
11474
|
}, [
|
|
10860
11475
|
!$setup.props.hideLabel ? (openBlock(), createElementBlock(
|
|
10861
11476
|
"span",
|
|
10862
|
-
_hoisted_2$
|
|
11477
|
+
_hoisted_2$h,
|
|
10863
11478
|
toDisplayString($setup.props.label),
|
|
10864
11479
|
1
|
|
10865
11480
|
/* TEXT */
|
|
@@ -10867,11 +11482,11 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10867
11482
|
createElementVNode("time", {
|
|
10868
11483
|
datetime: $setup.timeToDurationString($setup.timeLeft),
|
|
10869
11484
|
class: "onyx-timer__time"
|
|
10870
|
-
}, toDisplayString($setup.formattedTime), 9, _hoisted_3$
|
|
10871
|
-
], 8, _hoisted_1$
|
|
11485
|
+
}, toDisplayString($setup.formattedTime), 9, _hoisted_3$d)
|
|
11486
|
+
], 8, _hoisted_1$l);
|
|
10872
11487
|
}
|
|
10873
|
-
const OnyxTimer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10874
|
-
const _sfc_main$
|
|
11488
|
+
const OnyxTimer = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxTimer/OnyxTimer.vue"]]);
|
|
11489
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
10875
11490
|
__name: "UserMenuLayout",
|
|
10876
11491
|
props: {
|
|
10877
11492
|
isMobile: { type: Boolean, required: true },
|
|
@@ -10896,10 +11511,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10896
11511
|
return __returned__;
|
|
10897
11512
|
}
|
|
10898
11513
|
});
|
|
10899
|
-
const _hoisted_1$
|
|
10900
|
-
const _hoisted_2$
|
|
10901
|
-
function _sfc_render$
|
|
10902
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11514
|
+
const _hoisted_1$k = { class: "onyx-component" };
|
|
11515
|
+
const _hoisted_2$g = { class: "onyx-user-menu__footer onyx-text--small" };
|
|
11516
|
+
function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11517
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
10903
11518
|
$setup.props.isMobile ? (openBlock(), createElementBlock(
|
|
10904
11519
|
Fragment,
|
|
10905
11520
|
{ key: 0 },
|
|
@@ -10943,7 +11558,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10943
11558
|
!!$setup.slots.footer ? {
|
|
10944
11559
|
name: "footer",
|
|
10945
11560
|
fn: withCtx(() => [
|
|
10946
|
-
createElementVNode("div", _hoisted_2$
|
|
11561
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
10947
11562
|
renderSlot(_ctx.$slots, "footer")
|
|
10948
11563
|
])
|
|
10949
11564
|
]),
|
|
@@ -10952,8 +11567,8 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10952
11567
|
]), 1032, ["open", "label", "disabled"]))
|
|
10953
11568
|
]);
|
|
10954
11569
|
}
|
|
10955
|
-
const UserMenuLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10956
|
-
const _sfc_main$
|
|
11570
|
+
const UserMenuLayout = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.vue"]]);
|
|
11571
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
10957
11572
|
__name: "OnyxUserMenu",
|
|
10958
11573
|
props: {
|
|
10959
11574
|
fullName: { type: String, required: true },
|
|
@@ -10987,16 +11602,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
10987
11602
|
return __returned__;
|
|
10988
11603
|
}
|
|
10989
11604
|
});
|
|
10990
|
-
const _hoisted_1$
|
|
10991
|
-
const _hoisted_2$
|
|
10992
|
-
const _hoisted_3$
|
|
10993
|
-
const _hoisted_4$
|
|
10994
|
-
const _hoisted_5$
|
|
11605
|
+
const _hoisted_1$j = { class: "onyx-truncation-ellipsis" };
|
|
11606
|
+
const _hoisted_2$f = { class: "onyx-user-menu__header" };
|
|
11607
|
+
const _hoisted_3$c = { class: "onyx-truncation-ellipsis" };
|
|
11608
|
+
const _hoisted_4$a = { class: "onyx-user-menu__username onyx-text onyx-truncation-ellipsis" };
|
|
11609
|
+
const _hoisted_5$9 = {
|
|
10995
11610
|
key: 0,
|
|
10996
11611
|
class: "onyx-user-menu__description onyx-text--small onyx-truncation-ellipsis"
|
|
10997
11612
|
};
|
|
10998
|
-
const _hoisted_6$
|
|
10999
|
-
function _sfc_render$
|
|
11613
|
+
const _hoisted_6$7 = { class: "onyx-user-menu__options" };
|
|
11614
|
+
function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11000
11615
|
return openBlock(), createBlock($setup["UserMenuLayout"], {
|
|
11001
11616
|
"flyout-open": $setup.flyoutOpen,
|
|
11002
11617
|
"onUpdate:flyoutOpen": _cache[0] || (_cache[0] = ($event) => $setup.flyoutOpen = $event),
|
|
@@ -11021,7 +11636,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11021
11636
|
),
|
|
11022
11637
|
createElementVNode(
|
|
11023
11638
|
"span",
|
|
11024
|
-
_hoisted_1$
|
|
11639
|
+
_hoisted_1$j,
|
|
11025
11640
|
toDisplayString($setup.props.fullName),
|
|
11026
11641
|
1
|
|
11027
11642
|
/* TEXT */
|
|
@@ -11032,7 +11647,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11032
11647
|
)
|
|
11033
11648
|
]),
|
|
11034
11649
|
header: withCtx(() => [
|
|
11035
|
-
createElementVNode("div", _hoisted_2$
|
|
11650
|
+
createElementVNode("div", _hoisted_2$f, [
|
|
11036
11651
|
createVNode(
|
|
11037
11652
|
$setup["OnyxAvatar"],
|
|
11038
11653
|
mergeProps($setup.avatar, { size: "48px" }),
|
|
@@ -11040,17 +11655,17 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11040
11655
|
16
|
|
11041
11656
|
/* FULL_PROPS */
|
|
11042
11657
|
),
|
|
11043
|
-
createElementVNode("div", _hoisted_3$
|
|
11658
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
11044
11659
|
createElementVNode(
|
|
11045
11660
|
"div",
|
|
11046
|
-
_hoisted_4$
|
|
11661
|
+
_hoisted_4$a,
|
|
11047
11662
|
toDisplayString($setup.props.fullName),
|
|
11048
11663
|
1
|
|
11049
11664
|
/* TEXT */
|
|
11050
11665
|
),
|
|
11051
11666
|
$setup.props.description ? (openBlock(), createElementBlock(
|
|
11052
11667
|
"div",
|
|
11053
|
-
_hoisted_5$
|
|
11668
|
+
_hoisted_5$9,
|
|
11054
11669
|
toDisplayString($setup.props.description),
|
|
11055
11670
|
1
|
|
11056
11671
|
/* TEXT */
|
|
@@ -11059,7 +11674,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11059
11674
|
])
|
|
11060
11675
|
]),
|
|
11061
11676
|
options: withCtx(() => [
|
|
11062
|
-
createElementVNode("div", _hoisted_6$
|
|
11677
|
+
createElementVNode("div", _hoisted_6$7, [
|
|
11063
11678
|
renderSlot(_ctx.$slots, "default")
|
|
11064
11679
|
])
|
|
11065
11680
|
]),
|
|
@@ -11075,8 +11690,8 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11075
11690
|
} : void 0
|
|
11076
11691
|
]), 1032, ["flyout-open", "class", "is-mobile", "disabled"]);
|
|
11077
11692
|
}
|
|
11078
|
-
const OnyxUserMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11079
|
-
const _sfc_main$
|
|
11693
|
+
const OnyxUserMenu = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.vue"]]);
|
|
11694
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
11080
11695
|
__name: "OnyxNavBar",
|
|
11081
11696
|
props: {
|
|
11082
11697
|
appName: { type: String, required: false },
|
|
@@ -11146,18 +11761,18 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
11146
11761
|
return __returned__;
|
|
11147
11762
|
}
|
|
11148
11763
|
});
|
|
11149
|
-
const _hoisted_1$
|
|
11150
|
-
const _hoisted_2$
|
|
11764
|
+
const _hoisted_1$i = { class: "onyx-nav-bar__content onyx-grid-container" };
|
|
11765
|
+
const _hoisted_2$e = {
|
|
11151
11766
|
key: 0,
|
|
11152
11767
|
class: "onyx-nav-bar__mobile-page onyx-truncation-ellipsis"
|
|
11153
11768
|
};
|
|
11154
|
-
const _hoisted_3$
|
|
11155
|
-
const _hoisted_4$
|
|
11156
|
-
const _hoisted_5$
|
|
11769
|
+
const _hoisted_3$b = { role: "menubar" };
|
|
11770
|
+
const _hoisted_4$9 = { ref: "moreListRef" };
|
|
11771
|
+
const _hoisted_5$8 = {
|
|
11157
11772
|
key: 0,
|
|
11158
11773
|
class: "onyx-nav-bar__mobile-context"
|
|
11159
11774
|
};
|
|
11160
|
-
const _hoisted_6$
|
|
11775
|
+
const _hoisted_6$6 = {
|
|
11161
11776
|
key: 0,
|
|
11162
11777
|
class: "onyx-nav-bar__mobile-global-context"
|
|
11163
11778
|
};
|
|
@@ -11166,7 +11781,7 @@ const _hoisted_8$3 = {
|
|
|
11166
11781
|
key: 1,
|
|
11167
11782
|
class: "onyx-nav-bar__context"
|
|
11168
11783
|
};
|
|
11169
|
-
function _sfc_render$
|
|
11784
|
+
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11170
11785
|
return openBlock(), createElementBlock(
|
|
11171
11786
|
"header",
|
|
11172
11787
|
{
|
|
@@ -11174,8 +11789,8 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11174
11789
|
class: normalizeClass(["onyx-component onyx-nav-bar", { "onyx-nav-bar--mobile": $setup.actualIsMobile }])
|
|
11175
11790
|
},
|
|
11176
11791
|
[
|
|
11177
|
-
createElementVNode("div", _hoisted_1$
|
|
11178
|
-
$setup.actualIsMobile && $setup.slots.mobileActivePage && !$setup.isBurgerOpen && !$setup.isContextOpen ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
11792
|
+
createElementVNode("div", _hoisted_1$i, [
|
|
11793
|
+
$setup.actualIsMobile && $setup.slots.mobileActivePage && !$setup.isBurgerOpen && !$setup.isContextOpen ? (openBlock(), createElementBlock("span", _hoisted_2$e, [
|
|
11179
11794
|
renderSlot(_ctx.$slots, "mobileActivePage")
|
|
11180
11795
|
])) : $setup.props.appName || $setup.props.logoUrl || $setup.slots.appArea ? (openBlock(), createBlock($setup["OnyxNavAppArea"], mergeProps({
|
|
11181
11796
|
key: 1,
|
|
@@ -11218,7 +11833,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11218
11833
|
"nav",
|
|
11219
11834
|
mergeProps({ class: "onyx-nav-bar__nav--mobile" }, $setup.nav),
|
|
11220
11835
|
[
|
|
11221
|
-
createElementVNode("ul", _hoisted_3$
|
|
11836
|
+
createElementVNode("ul", _hoisted_3$b, [
|
|
11222
11837
|
renderSlot(_ctx.$slots, "default")
|
|
11223
11838
|
])
|
|
11224
11839
|
],
|
|
@@ -11264,7 +11879,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11264
11879
|
options: withCtx(() => [
|
|
11265
11880
|
createElementVNode(
|
|
11266
11881
|
"div",
|
|
11267
|
-
_hoisted_4$
|
|
11882
|
+
_hoisted_4$9,
|
|
11268
11883
|
null,
|
|
11269
11884
|
512
|
|
11270
11885
|
/* NEED_PATCH */
|
|
@@ -11289,8 +11904,8 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11289
11904
|
Fragment,
|
|
11290
11905
|
{ key: 4 },
|
|
11291
11906
|
[
|
|
11292
|
-
$setup.actualIsMobile ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
11293
|
-
$setup.slots.globalContextArea ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
11907
|
+
$setup.actualIsMobile ? (openBlock(), createElementBlock("div", _hoisted_5$8, [
|
|
11908
|
+
$setup.slots.globalContextArea ? (openBlock(), createElementBlock("div", _hoisted_6$6, [
|
|
11294
11909
|
renderSlot(_ctx.$slots, "globalContextArea")
|
|
11295
11910
|
])) : createCommentVNode("v-if", true),
|
|
11296
11911
|
$setup.slots.contextArea ? (openBlock(), createBlock($setup["OnyxMobileNavButton"], {
|
|
@@ -11325,7 +11940,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11325
11940
|
/* CLASS */
|
|
11326
11941
|
);
|
|
11327
11942
|
}
|
|
11328
|
-
const OnyxNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11943
|
+
const OnyxNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/OnyxNavBar.vue"]]);
|
|
11329
11944
|
const useRelativeTimeFormat = (options) => {
|
|
11330
11945
|
const { locale, t } = injectI18n();
|
|
11331
11946
|
const format = computed(() => new Intl.RelativeTimeFormat(locale.value, unref(options.options)));
|
|
@@ -11373,7 +11988,7 @@ const useRelativeTimeFormat = (options) => {
|
|
|
11373
11988
|
timeAgo
|
|
11374
11989
|
};
|
|
11375
11990
|
};
|
|
11376
|
-
const _sfc_main$
|
|
11991
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
11377
11992
|
__name: "OnyxNotificationCard",
|
|
11378
11993
|
props: {
|
|
11379
11994
|
density: { type: null, required: false },
|
|
@@ -11399,31 +12014,31 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
11399
12014
|
return __returned__;
|
|
11400
12015
|
}
|
|
11401
12016
|
});
|
|
11402
|
-
const _hoisted_1$
|
|
12017
|
+
const _hoisted_1$h = {
|
|
11403
12018
|
key: 0,
|
|
11404
12019
|
class: "onyx-notification-card-skeleton"
|
|
11405
12020
|
};
|
|
11406
|
-
const _hoisted_2$
|
|
12021
|
+
const _hoisted_2$d = {
|
|
11407
12022
|
key: 1,
|
|
11408
12023
|
class: "onyx-notification-card__content"
|
|
11409
12024
|
};
|
|
11410
|
-
const _hoisted_3$
|
|
11411
|
-
const _hoisted_4$
|
|
11412
|
-
const _hoisted_5$
|
|
11413
|
-
const _hoisted_6$
|
|
12025
|
+
const _hoisted_3$a = { class: "onyx-notification-card__header" };
|
|
12026
|
+
const _hoisted_4$8 = { class: "onyx-notification-card__header-container" };
|
|
12027
|
+
const _hoisted_5$7 = { class: "onyx-notification-card__header-container" };
|
|
12028
|
+
const _hoisted_6$5 = { class: "onyx-notification-card__created-at onyx-text--small" };
|
|
11414
12029
|
const _hoisted_7$2 = { class: "onyx-notification-card__description onyx-text onyx-truncation-multiline" };
|
|
11415
12030
|
const _hoisted_8$2 = {
|
|
11416
12031
|
key: 0,
|
|
11417
12032
|
class: "onyx-notification-card__actions onyx-density-compact"
|
|
11418
12033
|
};
|
|
11419
|
-
function _sfc_render$
|
|
12034
|
+
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11420
12035
|
return openBlock(), createElementBlock(
|
|
11421
12036
|
"div",
|
|
11422
12037
|
{
|
|
11423
12038
|
class: normalizeClass(["onyx-component", "onyx-notification-card", $setup.densityClass])
|
|
11424
12039
|
},
|
|
11425
12040
|
[
|
|
11426
|
-
$setup.skeleton ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12041
|
+
$setup.skeleton ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
11427
12042
|
createVNode($setup["OnyxSkeleton"], { class: "onyx-notification-card-skeleton__header" }),
|
|
11428
12043
|
(openBlock(), createElementBlock(
|
|
11429
12044
|
Fragment,
|
|
@@ -11437,10 +12052,10 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11437
12052
|
64
|
|
11438
12053
|
/* STABLE_FRAGMENT */
|
|
11439
12054
|
))
|
|
11440
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12055
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_2$d, [
|
|
11441
12056
|
createElementVNode("div", null, [
|
|
11442
|
-
createElementVNode("div", _hoisted_3$
|
|
11443
|
-
createElementVNode("div", _hoisted_4$
|
|
12057
|
+
createElementVNode("div", _hoisted_3$a, [
|
|
12058
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
11444
12059
|
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
11445
12060
|
key: 0,
|
|
11446
12061
|
class: "onyx-notification-card__icon",
|
|
@@ -11458,7 +12073,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11458
12073
|
/* STABLE */
|
|
11459
12074
|
})
|
|
11460
12075
|
]),
|
|
11461
|
-
createElementVNode("div", _hoisted_5$
|
|
12076
|
+
createElementVNode("div", _hoisted_5$7, [
|
|
11462
12077
|
$setup.props.unread ? (openBlock(), createBlock($setup["OnyxBadge"], {
|
|
11463
12078
|
key: 0,
|
|
11464
12079
|
dot: ""
|
|
@@ -11478,7 +12093,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11478
12093
|
}, 8, ["label"])) : createCommentVNode("v-if", true)
|
|
11479
12094
|
])
|
|
11480
12095
|
]),
|
|
11481
|
-
createElementVNode("div", _hoisted_6$
|
|
12096
|
+
createElementVNode("div", _hoisted_6$5, [
|
|
11482
12097
|
createElementVNode(
|
|
11483
12098
|
"span",
|
|
11484
12099
|
null,
|
|
@@ -11507,8 +12122,8 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11507
12122
|
/* CLASS */
|
|
11508
12123
|
);
|
|
11509
12124
|
}
|
|
11510
|
-
const OnyxNotificationCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11511
|
-
const _sfc_main$
|
|
12125
|
+
const OnyxNotificationCard = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNotificationCard/OnyxNotificationCard.vue"]]);
|
|
12126
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
11512
12127
|
__name: "OnyxNotificationDot",
|
|
11513
12128
|
props: {
|
|
11514
12129
|
hidden: { type: Boolean, required: false, default: false },
|
|
@@ -11522,9 +12137,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
11522
12137
|
return __returned__;
|
|
11523
12138
|
}
|
|
11524
12139
|
});
|
|
11525
|
-
const _hoisted_1$
|
|
11526
|
-
function _sfc_render$
|
|
11527
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12140
|
+
const _hoisted_1$g = { class: "onyx-component onyx-notification-dot" };
|
|
12141
|
+
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12142
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
11528
12143
|
renderSlot(_ctx.$slots, "default"),
|
|
11529
12144
|
!$setup.props.hidden ? (openBlock(), createBlock($setup["OnyxBadge"], {
|
|
11530
12145
|
key: 0,
|
|
@@ -11534,8 +12149,8 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11534
12149
|
}, null, 8, ["color"])) : createCommentVNode("v-if", true)
|
|
11535
12150
|
]);
|
|
11536
12151
|
}
|
|
11537
|
-
const OnyxNotificationDot = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11538
|
-
const _sfc_main$
|
|
12152
|
+
const OnyxNotificationDot = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNotificationDot/OnyxNotificationDot.vue"]]);
|
|
12153
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
11539
12154
|
__name: "OnyxPageLayout",
|
|
11540
12155
|
props: {
|
|
11541
12156
|
skeleton: { type: Boolean, required: false },
|
|
@@ -11552,20 +12167,20 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
11552
12167
|
return __returned__;
|
|
11553
12168
|
}
|
|
11554
12169
|
});
|
|
11555
|
-
const _hoisted_1$
|
|
12170
|
+
const _hoisted_1$f = {
|
|
11556
12171
|
key: 0,
|
|
11557
12172
|
class: "onyx-page__sidebar"
|
|
11558
12173
|
};
|
|
11559
|
-
const _hoisted_2$
|
|
11560
|
-
const _hoisted_3$
|
|
12174
|
+
const _hoisted_2$c = { class: "onyx-page__main" };
|
|
12175
|
+
const _hoisted_3$9 = {
|
|
11561
12176
|
key: 1,
|
|
11562
12177
|
class: "onyx-page__sidebar onyx-page__sidebar--right"
|
|
11563
12178
|
};
|
|
11564
|
-
const _hoisted_4$
|
|
12179
|
+
const _hoisted_4$7 = {
|
|
11565
12180
|
key: 2,
|
|
11566
12181
|
class: "onyx-page__footer"
|
|
11567
12182
|
};
|
|
11568
|
-
function _sfc_render$
|
|
12183
|
+
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11569
12184
|
return openBlock(), createElementBlock(
|
|
11570
12185
|
"div",
|
|
11571
12186
|
{
|
|
@@ -11576,10 +12191,10 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11576
12191
|
]])
|
|
11577
12192
|
},
|
|
11578
12193
|
[
|
|
11579
|
-
$setup.slots.sidebar ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12194
|
+
$setup.slots.sidebar ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
11580
12195
|
renderSlot(_ctx.$slots, "sidebar")
|
|
11581
12196
|
])) : createCommentVNode("v-if", true),
|
|
11582
|
-
createElementVNode("main", _hoisted_2$
|
|
12197
|
+
createElementVNode("main", _hoisted_2$c, [
|
|
11583
12198
|
createElementVNode(
|
|
11584
12199
|
"div",
|
|
11585
12200
|
{
|
|
@@ -11592,10 +12207,10 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11592
12207
|
/* CLASS */
|
|
11593
12208
|
)
|
|
11594
12209
|
]),
|
|
11595
|
-
$setup.slots.sidebarRight ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
12210
|
+
$setup.slots.sidebarRight ? (openBlock(), createElementBlock("div", _hoisted_3$9, [
|
|
11596
12211
|
renderSlot(_ctx.$slots, "sidebarRight")
|
|
11597
12212
|
])) : createCommentVNode("v-if", true),
|
|
11598
|
-
$setup.slots.footer ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12213
|
+
$setup.slots.footer ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
|
|
11599
12214
|
renderSlot(_ctx.$slots, "footer")
|
|
11600
12215
|
])) : createCommentVNode("v-if", true)
|
|
11601
12216
|
],
|
|
@@ -11603,8 +12218,8 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11603
12218
|
/* CLASS */
|
|
11604
12219
|
);
|
|
11605
12220
|
}
|
|
11606
|
-
const OnyxPageLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11607
|
-
const _sfc_main$
|
|
12221
|
+
const OnyxPageLayout = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxPageLayout/OnyxPageLayout.vue"]]);
|
|
12222
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
11608
12223
|
__name: "OnyxProgressItem",
|
|
11609
12224
|
props: {
|
|
11610
12225
|
density: { type: null, required: false },
|
|
@@ -11630,10 +12245,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
11630
12245
|
return __returned__;
|
|
11631
12246
|
}
|
|
11632
12247
|
});
|
|
11633
|
-
const _hoisted_1$
|
|
11634
|
-
const _hoisted_2$
|
|
11635
|
-
const _hoisted_3$
|
|
11636
|
-
function _sfc_render$
|
|
12248
|
+
const _hoisted_1$e = ["disabled"];
|
|
12249
|
+
const _hoisted_2$b = { class: "onyx-progress-item__indicator" };
|
|
12250
|
+
const _hoisted_3$8 = { class: "onyx-progress-item__label" };
|
|
12251
|
+
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11637
12252
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
11638
12253
|
key: 0,
|
|
11639
12254
|
class: normalizeClass(["onyx-progress-item-skeleton", "onyx-text", $setup.densityClass])
|
|
@@ -11649,7 +12264,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11649
12264
|
type: "button",
|
|
11650
12265
|
disabled: $setup.props.disabled
|
|
11651
12266
|
}, [
|
|
11652
|
-
createElementVNode("span", _hoisted_2$
|
|
12267
|
+
createElementVNode("span", _hoisted_2$b, [
|
|
11653
12268
|
$setup.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
11654
12269
|
key: 0,
|
|
11655
12270
|
icon: $setup.icon
|
|
@@ -11667,7 +12282,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11667
12282
|
/* STABLE_FRAGMENT */
|
|
11668
12283
|
))
|
|
11669
12284
|
]),
|
|
11670
|
-
createElementVNode("div", _hoisted_3$
|
|
12285
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
11671
12286
|
renderSlot(_ctx.$slots, "default", {
|
|
11672
12287
|
label: $setup.props.label
|
|
11673
12288
|
}, () => [
|
|
@@ -11678,9 +12293,9 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11678
12293
|
)
|
|
11679
12294
|
])
|
|
11680
12295
|
])
|
|
11681
|
-
], 10, _hoisted_1$
|
|
12296
|
+
], 10, _hoisted_1$e));
|
|
11682
12297
|
}
|
|
11683
|
-
const OnyxProgressItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12298
|
+
const OnyxProgressItem = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxProgressItem/OnyxProgressItem.vue"]]);
|
|
11684
12299
|
const PROGRESS_ITEM_STATUS = [
|
|
11685
12300
|
"default",
|
|
11686
12301
|
"active",
|
|
@@ -11688,7 +12303,7 @@ const PROGRESS_ITEM_STATUS = [
|
|
|
11688
12303
|
"visited",
|
|
11689
12304
|
"invalid"
|
|
11690
12305
|
];
|
|
11691
|
-
const _sfc_main$
|
|
12306
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
11692
12307
|
__name: "OnyxProgressSteps",
|
|
11693
12308
|
props: {
|
|
11694
12309
|
density: { type: null, required: false },
|
|
@@ -11743,8 +12358,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
11743
12358
|
return __returned__;
|
|
11744
12359
|
}
|
|
11745
12360
|
});
|
|
11746
|
-
const _hoisted_1$
|
|
11747
|
-
function _sfc_render$
|
|
12361
|
+
const _hoisted_1$d = { class: "onyx-progress-steps__scroll-container" };
|
|
12362
|
+
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11748
12363
|
return openBlock(), createElementBlock(
|
|
11749
12364
|
"div",
|
|
11750
12365
|
{
|
|
@@ -11756,7 +12371,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11756
12371
|
])
|
|
11757
12372
|
},
|
|
11758
12373
|
[
|
|
11759
|
-
createElementVNode("div", _hoisted_1$
|
|
12374
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
11760
12375
|
(openBlock(true), createElementBlock(
|
|
11761
12376
|
Fragment,
|
|
11762
12377
|
null,
|
|
@@ -11796,8 +12411,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11796
12411
|
/* CLASS */
|
|
11797
12412
|
);
|
|
11798
12413
|
}
|
|
11799
|
-
const OnyxProgressSteps = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11800
|
-
const _sfc_main$
|
|
12414
|
+
const OnyxProgressSteps = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxProgressSteps/OnyxProgressSteps.vue"]]);
|
|
12415
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
11801
12416
|
...{ inheritAttrs: false },
|
|
11802
12417
|
__name: "OnyxRadioButton",
|
|
11803
12418
|
props: {
|
|
@@ -11832,8 +12447,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11832
12447
|
return __returned__;
|
|
11833
12448
|
}
|
|
11834
12449
|
});
|
|
11835
|
-
const _hoisted_1$
|
|
11836
|
-
function _sfc_render$
|
|
12450
|
+
const _hoisted_1$c = ["required", "name", "value", "checked", "disabled", "autofocus"];
|
|
12451
|
+
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11837
12452
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
11838
12453
|
"div",
|
|
11839
12454
|
mergeProps({
|
|
@@ -11873,7 +12488,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11873
12488
|
checked: $setup.props.checked,
|
|
11874
12489
|
disabled: $setup.disabled,
|
|
11875
12490
|
autofocus: $setup.props.autofocus
|
|
11876
|
-
}, $setup.restAttrs), null, 16, _hoisted_1$
|
|
12491
|
+
}, $setup.restAttrs), null, 16, _hoisted_1$c)), [
|
|
11877
12492
|
[$setup["vCustomValidity"]]
|
|
11878
12493
|
]),
|
|
11879
12494
|
createElementVNode(
|
|
@@ -11894,8 +12509,8 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11894
12509
|
/* STABLE */
|
|
11895
12510
|
}, 16, ["disabled", "error-messages"]));
|
|
11896
12511
|
}
|
|
11897
|
-
const OnyxRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11898
|
-
const _sfc_main$
|
|
12512
|
+
const OnyxRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxRadioButton/OnyxRadioButton.vue"]]);
|
|
12513
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
11899
12514
|
__name: "OnyxRadioGroup",
|
|
11900
12515
|
props: {
|
|
11901
12516
|
truncation: { type: null, required: false, default: "ellipsis" },
|
|
@@ -11942,19 +12557,19 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
11942
12557
|
return __returned__;
|
|
11943
12558
|
}
|
|
11944
12559
|
});
|
|
11945
|
-
const _hoisted_1$
|
|
11946
|
-
const _hoisted_2$
|
|
12560
|
+
const _hoisted_1$b = ["disabled", "aria-label"];
|
|
12561
|
+
const _hoisted_2$a = {
|
|
11947
12562
|
key: 0,
|
|
11948
12563
|
class: "onyx-radio-group__label"
|
|
11949
12564
|
};
|
|
11950
|
-
function _sfc_render$
|
|
12565
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11951
12566
|
return openBlock(), createElementBlock("fieldset", {
|
|
11952
12567
|
class: normalizeClass(["onyx-component", "onyx-radio-group", $setup.densityClass, $setup.requiredTypeClass]),
|
|
11953
12568
|
disabled: $setup.disabled,
|
|
11954
12569
|
role: "radiogroup",
|
|
11955
12570
|
"aria-label": $setup.props.label
|
|
11956
12571
|
}, [
|
|
11957
|
-
!$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
12572
|
+
!$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$a, [
|
|
11958
12573
|
createVNode($setup["OnyxHeadline"], {
|
|
11959
12574
|
is: "h3",
|
|
11960
12575
|
class: normalizeClass($setup.requiredMarkerClass)
|
|
@@ -12021,11 +12636,11 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12021
12636
|
2
|
|
12022
12637
|
/* CLASS */
|
|
12023
12638
|
)
|
|
12024
|
-
], 10, _hoisted_1$
|
|
12639
|
+
], 10, _hoisted_1$b);
|
|
12025
12640
|
}
|
|
12026
|
-
const OnyxRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12641
|
+
const OnyxRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxRadioGroup/OnyxRadioGroup.vue"]]);
|
|
12027
12642
|
const LINK_TARGETS = ["_self", "_blank", "_parent", "_top"];
|
|
12028
|
-
const _sfc_main$
|
|
12643
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
12029
12644
|
...{ inheritAttrs: false },
|
|
12030
12645
|
__name: "OnyxSegmentedControlElement",
|
|
12031
12646
|
props: {
|
|
@@ -12052,13 +12667,13 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
12052
12667
|
return __returned__;
|
|
12053
12668
|
}
|
|
12054
12669
|
});
|
|
12055
|
-
const _hoisted_1$
|
|
12056
|
-
const _hoisted_2$
|
|
12057
|
-
const _hoisted_3$
|
|
12670
|
+
const _hoisted_1$a = ["id", "name", "value", "disabled", "aria-label", "autofocus", "checked"];
|
|
12671
|
+
const _hoisted_2$9 = ["for"];
|
|
12672
|
+
const _hoisted_3$7 = {
|
|
12058
12673
|
key: 1,
|
|
12059
12674
|
class: "onyx-segmented-control-element__text"
|
|
12060
12675
|
};
|
|
12061
|
-
function _sfc_render$
|
|
12676
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12062
12677
|
return openBlock(), createElementBlock(
|
|
12063
12678
|
"div",
|
|
12064
12679
|
mergeProps($setup.rootAttrs, {
|
|
@@ -12078,7 +12693,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12078
12693
|
"aria-label": $setup.props.label,
|
|
12079
12694
|
autofocus: $setup.props.autofocus,
|
|
12080
12695
|
checked: $setup.props.checked
|
|
12081
|
-
}), null, 16, _hoisted_1$
|
|
12696
|
+
}), null, 16, _hoisted_1$a)
|
|
12082
12697
|
]),
|
|
12083
12698
|
_: 1
|
|
12084
12699
|
/* STABLE */
|
|
@@ -12094,19 +12709,19 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12094
12709
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
12095
12710
|
!$setup.props.hideLabel ? (openBlock(), createElementBlock(
|
|
12096
12711
|
"p",
|
|
12097
|
-
_hoisted_3$
|
|
12712
|
+
_hoisted_3$7,
|
|
12098
12713
|
toDisplayString($setup.props.label),
|
|
12099
12714
|
1
|
|
12100
12715
|
/* TEXT */
|
|
12101
12716
|
)) : createCommentVNode("v-if", true)
|
|
12102
|
-
], 8, _hoisted_2$
|
|
12717
|
+
], 8, _hoisted_2$9)
|
|
12103
12718
|
],
|
|
12104
12719
|
16
|
|
12105
12720
|
/* FULL_PROPS */
|
|
12106
12721
|
);
|
|
12107
12722
|
}
|
|
12108
|
-
const OnyxSegmentedControlElement = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12109
|
-
const _sfc_main$
|
|
12723
|
+
const OnyxSegmentedControlElement = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSegmentedControlElement/OnyxSegmentedControlElement.vue"]]);
|
|
12724
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
12110
12725
|
__name: "OnyxSegmentedControl",
|
|
12111
12726
|
props: {
|
|
12112
12727
|
density: { type: null, required: false },
|
|
@@ -12135,7 +12750,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
12135
12750
|
return __returned__;
|
|
12136
12751
|
}
|
|
12137
12752
|
});
|
|
12138
|
-
function _sfc_render$
|
|
12753
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12139
12754
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
12140
12755
|
key: 0,
|
|
12141
12756
|
class: normalizeClass(["onyx-segmented-control-skeleton", $setup.densityClass])
|
|
@@ -12166,10 +12781,10 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12166
12781
|
/* CLASS */
|
|
12167
12782
|
));
|
|
12168
12783
|
}
|
|
12169
|
-
const OnyxSegmentedControl = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12784
|
+
const OnyxSegmentedControl = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSegmentedControl/OnyxSegmentedControl.vue"]]);
|
|
12170
12785
|
const SELECT_ALIGNMENTS = ["full", "left", "right"];
|
|
12171
12786
|
const MULTISELECT_TEXT_MODE = ["summary", "preview"];
|
|
12172
|
-
const _sfc_main$
|
|
12787
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
12173
12788
|
__name: "OnyxSidebarItem",
|
|
12174
12789
|
props: {
|
|
12175
12790
|
density: { type: null, required: false },
|
|
@@ -12197,7 +12812,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
12197
12812
|
return __returned__;
|
|
12198
12813
|
}
|
|
12199
12814
|
});
|
|
12200
|
-
function _sfc_render$
|
|
12815
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12201
12816
|
return $setup.link ? (openBlock(), createBlock($setup["OnyxRouterLink"], mergeProps({
|
|
12202
12817
|
key: 0,
|
|
12203
12818
|
class: $setup.classes
|
|
@@ -12221,12 +12836,12 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12221
12836
|
/* CLASS */
|
|
12222
12837
|
));
|
|
12223
12838
|
}
|
|
12224
|
-
const OnyxSidebarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12839
|
+
const OnyxSidebarItem = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSidebar/modules/OnyxSidebarItem/OnyxSidebarItem.vue"]]);
|
|
12225
12840
|
const arrowSmallLeft = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.618 11.626H8.936l3.094-3.094-1.064-1.056-4.899 4.898 4.9 4.9 1.063-1.064-3.094-3.086h8.682z"/></svg>';
|
|
12226
12841
|
const arrowSmallRight = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.026 7.476 11.97 8.532l3.086 3.094H6.382v1.498h8.674L11.97 16.21l1.056 1.063 4.9-4.898z"/></svg>';
|
|
12227
12842
|
const sidebarArrowLeft = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.743 3.038H5.258A2.26 2.26 0 0 0 3 5.295V18.78a2.26 2.26 0 0 0 2.258 2.258H18.75a2.25 2.25 0 0 0 2.25-2.25V5.295a2.26 2.26 0 0 0-2.258-2.257M4.5 18.78V5.295c0-.42.338-.757.758-.757H8.25v15H5.258a.755.755 0 0 1-.758-.758m15 .008c0 .412-.337.75-.75.75h-9v-15h8.993c.42 0 .757.337.757.757z"/><path d="m15.218 8.558-3.48 3.48 3.48 3.48 1.064-1.058-2.422-2.423 2.422-2.422z"/></svg>';
|
|
12228
12843
|
const sidebarArrowRight = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.743 3.038H5.258A2.26 2.26 0 0 0 3 5.295V18.78a2.26 2.26 0 0 0 2.258 2.258H18.75a2.25 2.25 0 0 0 2.25-2.25V5.295a2.26 2.26 0 0 0-2.258-2.257M4.5 18.78V5.295c0-.42.338-.757.758-.757H8.25v15H5.258a.755.755 0 0 1-.758-.758m15 .008c0 .412-.337.75-.75.75h-9v-15h8.993c.42 0 .757.337.757.757z"/><path d="m12.27 9.615 2.423 2.422-2.423 2.423 1.058 1.057 3.48-3.48-3.48-3.48z"/></svg>';
|
|
12229
|
-
const _sfc_main$
|
|
12844
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
12230
12845
|
__name: "OnyxSidebar",
|
|
12231
12846
|
props: {
|
|
12232
12847
|
density: { type: null, required: false },
|
|
@@ -12314,18 +12929,18 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
12314
12929
|
return __returned__;
|
|
12315
12930
|
}
|
|
12316
12931
|
});
|
|
12317
|
-
const _hoisted_1$
|
|
12318
|
-
const _hoisted_2$
|
|
12932
|
+
const _hoisted_1$9 = ["aria-label"];
|
|
12933
|
+
const _hoisted_2$8 = {
|
|
12319
12934
|
key: 0,
|
|
12320
12935
|
class: "onyx-sidebar__header"
|
|
12321
12936
|
};
|
|
12322
|
-
const _hoisted_3$
|
|
12323
|
-
const _hoisted_4$
|
|
12937
|
+
const _hoisted_3$6 = { class: "onyx-sidebar__body" };
|
|
12938
|
+
const _hoisted_4$6 = {
|
|
12324
12939
|
key: 1,
|
|
12325
12940
|
class: "onyx-sidebar__footer"
|
|
12326
12941
|
};
|
|
12327
|
-
const _hoisted_5$
|
|
12328
|
-
function _sfc_render$
|
|
12942
|
+
const _hoisted_5$6 = { class: "onyx-sidebar__footer" };
|
|
12943
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12329
12944
|
return !$setup.props.temporary && !$setup.shouldCollapse ? (openBlock(), createElementBlock("aside", {
|
|
12330
12945
|
key: 0,
|
|
12331
12946
|
ref: "sidebarRef",
|
|
@@ -12339,20 +12954,20 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12339
12954
|
"aria-label": $setup.props.label,
|
|
12340
12955
|
style: normalizeStyle($setup.widthStyle)
|
|
12341
12956
|
}, [
|
|
12342
|
-
!!$setup.slots.header ? (openBlock(), createElementBlock("header", _hoisted_2$
|
|
12957
|
+
!!$setup.slots.header ? (openBlock(), createElementBlock("header", _hoisted_2$8, [
|
|
12343
12958
|
renderSlot(_ctx.$slots, "header")
|
|
12344
12959
|
])) : createCommentVNode("v-if", true),
|
|
12345
|
-
createElementVNode("div", _hoisted_3$
|
|
12960
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
12346
12961
|
renderSlot(_ctx.$slots, "default")
|
|
12347
12962
|
]),
|
|
12348
|
-
!!$setup.slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_4$
|
|
12963
|
+
!!$setup.slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_4$6, [
|
|
12349
12964
|
renderSlot(_ctx.$slots, "footer")
|
|
12350
12965
|
])) : createCommentVNode("v-if", true),
|
|
12351
12966
|
$setup.props.resizable ? (openBlock(), createBlock($setup["OnyxResizeHandle"], mergeProps({
|
|
12352
12967
|
key: 2,
|
|
12353
12968
|
element: $setup.sidebarElement
|
|
12354
12969
|
}, $setup.resizeHandleProps), null, 16, ["element"])) : createCommentVNode("v-if", true)
|
|
12355
|
-
], 14, _hoisted_1$
|
|
12970
|
+
], 14, _hoisted_1$9)) : (openBlock(), createBlock($setup["OnyxModal"], mergeProps({ key: 1 }, $setup.props.temporary, {
|
|
12356
12971
|
ref: "modalRef",
|
|
12357
12972
|
open: $setup.isModalOpen,
|
|
12358
12973
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => $setup.isModalOpen = $event),
|
|
@@ -12396,7 +13011,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12396
13011
|
!!$setup.slots.footer ? {
|
|
12397
13012
|
name: "footer",
|
|
12398
13013
|
fn: withCtx(() => [
|
|
12399
|
-
createElementVNode("div", _hoisted_5$
|
|
13014
|
+
createElementVNode("div", _hoisted_5$6, [
|
|
12400
13015
|
renderSlot(_ctx.$slots, "footer")
|
|
12401
13016
|
])
|
|
12402
13017
|
]),
|
|
@@ -12404,8 +13019,376 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12404
13019
|
} : void 0
|
|
12405
13020
|
]), 1040, ["open", "class", "label", "density", "style", "alignment"]));
|
|
12406
13021
|
}
|
|
12407
|
-
const OnyxSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13022
|
+
const OnyxSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSidebar/OnyxSidebar.vue"]]);
|
|
12408
13023
|
const SIDEBAR_ALIGNMENT = ["left", "right"];
|
|
13024
|
+
const __default__ = {};
|
|
13025
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
13026
|
+
...__default__,
|
|
13027
|
+
__name: "OnyxSlider",
|
|
13028
|
+
props: {
|
|
13029
|
+
error: { type: [String, Object], required: false },
|
|
13030
|
+
disabled: { type: [Boolean, Symbol], required: false, default: FORM_INJECTED_SYMBOL },
|
|
13031
|
+
showError: { type: null, required: false, default: FORM_INJECTED_SYMBOL },
|
|
13032
|
+
density: { type: null, required: false },
|
|
13033
|
+
autofocus: { type: Boolean, required: false },
|
|
13034
|
+
id: { type: String, required: false },
|
|
13035
|
+
name: { type: String, required: false },
|
|
13036
|
+
label: { type: String, required: true },
|
|
13037
|
+
labelTooltip: { type: String, required: false },
|
|
13038
|
+
hideLabel: { type: Boolean, required: false },
|
|
13039
|
+
skeleton: { type: [Symbol, Boolean, Number], required: false, default: SKELETON_INJECTED_SYMBOL },
|
|
13040
|
+
errorMessages: { type: Object, required: false },
|
|
13041
|
+
message: { type: Object, required: false },
|
|
13042
|
+
successMessages: { type: Object, required: false },
|
|
13043
|
+
mode: { type: null, required: false, default: () => "single" },
|
|
13044
|
+
modelValue: { type: null, required: true },
|
|
13045
|
+
min: { type: Number, required: false, default: 0 },
|
|
13046
|
+
max: { type: Number, required: false, default: 100 },
|
|
13047
|
+
step: { type: Number, required: false, default: 1 },
|
|
13048
|
+
shiftStep: { type: Number, required: false, default: (props) => {
|
|
13049
|
+
const min = props.min ?? 0;
|
|
13050
|
+
const max = props.max ?? 100;
|
|
13051
|
+
const step = props.step ?? 1;
|
|
13052
|
+
const stepMultiple = Math.max(1, Math.round((max - min) * 0.1 / step));
|
|
13053
|
+
return stepMultiple * step;
|
|
13054
|
+
} },
|
|
13055
|
+
marks: { type: [Array, Boolean], required: false, default: false },
|
|
13056
|
+
control: { type: null, required: false },
|
|
13057
|
+
orientation: { type: null, required: false, default: "horizontal" },
|
|
13058
|
+
disableTooltip: { type: Boolean, required: false },
|
|
13059
|
+
discrete: { type: Boolean, required: false }
|
|
13060
|
+
},
|
|
13061
|
+
emits: ["validityChange", "update:modelValue"],
|
|
13062
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
13063
|
+
__expose();
|
|
13064
|
+
const adjustMarkPosition = (percentage) => {
|
|
13065
|
+
if (percentage <= 0) {
|
|
13066
|
+
return "calc(0.25rem)";
|
|
13067
|
+
}
|
|
13068
|
+
if (percentage >= 100) {
|
|
13069
|
+
return "calc(100% - 0.25rem)";
|
|
13070
|
+
}
|
|
13071
|
+
return `${percentage}%`;
|
|
13072
|
+
};
|
|
13073
|
+
const props = __props;
|
|
13074
|
+
const emit = __emit;
|
|
13075
|
+
const modelValue = useVModel({
|
|
13076
|
+
props,
|
|
13077
|
+
emit,
|
|
13078
|
+
key: "modelValue"
|
|
13079
|
+
});
|
|
13080
|
+
const { vCustomValidity, errorMessages } = useFormElementError({ props, emit });
|
|
13081
|
+
const formElementProps = useForwardProps(props, OnyxFormElement);
|
|
13082
|
+
const messages = computed(() => getFormMessages(props.message));
|
|
13083
|
+
const { densityClass } = useDensity(props);
|
|
13084
|
+
const { disabled, showError } = useFormContext(props);
|
|
13085
|
+
const errorClass = useErrorClass(showError);
|
|
13086
|
+
const skeleton = useSkeletonContext(props);
|
|
13087
|
+
const handleChange = (values) => {
|
|
13088
|
+
emit("update:modelValue", values);
|
|
13089
|
+
};
|
|
13090
|
+
const handleDecreaseByIcon = () => {
|
|
13091
|
+
if (disabled.value) return;
|
|
13092
|
+
if (props.mode === "single") {
|
|
13093
|
+
const currentValue = Number(modelValue.value ?? props.min);
|
|
13094
|
+
const stepValue = props.shiftStep ?? props.step ?? 1;
|
|
13095
|
+
const newValue = Math.max(currentValue - stepValue, props.min);
|
|
13096
|
+
handleChange(newValue);
|
|
13097
|
+
}
|
|
13098
|
+
};
|
|
13099
|
+
const handleIncreaseByIcon = () => {
|
|
13100
|
+
if (disabled.value) return;
|
|
13101
|
+
if (props.mode === "single") {
|
|
13102
|
+
const currentValue = Number(modelValue.value ?? props.min);
|
|
13103
|
+
const stepValue = props.shiftStep ?? props.step ?? 1;
|
|
13104
|
+
const newValue = Math.min(currentValue + stepValue, props.max);
|
|
13105
|
+
handleChange(newValue);
|
|
13106
|
+
}
|
|
13107
|
+
};
|
|
13108
|
+
const { min, max, step, marks, orientation, label, discrete, shiftStep } = toRefs(props);
|
|
13109
|
+
const thumbs = computed(
|
|
13110
|
+
() => Array.isArray(modelValue.value) ? modelValue.value : [modelValue.value]
|
|
13111
|
+
);
|
|
13112
|
+
const {
|
|
13113
|
+
elements: { root, rail, track, thumbContainer, thumbInput, mark, markLabel },
|
|
13114
|
+
state: { focusedThumbIndex, activeThumbIndex, marksList },
|
|
13115
|
+
internals: { isMarkActive, valueToPercent, axis, normalizeValues: normalizeValues2 }
|
|
13116
|
+
} = _unstableCreateSlider({
|
|
13117
|
+
value: modelValue,
|
|
13118
|
+
min,
|
|
13119
|
+
max,
|
|
13120
|
+
step,
|
|
13121
|
+
label,
|
|
13122
|
+
marks,
|
|
13123
|
+
orientation,
|
|
13124
|
+
discrete,
|
|
13125
|
+
disabled,
|
|
13126
|
+
shiftStep,
|
|
13127
|
+
onChange: handleChange
|
|
13128
|
+
});
|
|
13129
|
+
watch(
|
|
13130
|
+
() => [props.min, props.max, props.step, props.mode],
|
|
13131
|
+
() => {
|
|
13132
|
+
const normalized = normalizeValues2.value(
|
|
13133
|
+
props.mode === "range" ? [Number(modelValue.value)] : modelValue.value
|
|
13134
|
+
);
|
|
13135
|
+
handleChange(props.mode === "range" ? normalized : normalized[0]);
|
|
13136
|
+
}
|
|
13137
|
+
);
|
|
13138
|
+
const isValueControl = computed(() => props.control === "value");
|
|
13139
|
+
const isIconControl = computed(() => props.control === "icon" && props.mode === "single");
|
|
13140
|
+
const __returned__ = { adjustMarkPosition, props, emit, modelValue, vCustomValidity, errorMessages, formElementProps, messages, densityClass, disabled, showError, errorClass, skeleton, handleChange, handleDecreaseByIcon, handleIncreaseByIcon, min, max, step, marks, orientation, label, discrete, shiftStep, thumbs, root, rail, track, thumbContainer, thumbInput, mark, markLabel, focusedThumbIndex, activeThumbIndex, marksList, isMarkActive, valueToPercent, axis, normalizeValues: normalizeValues2, isValueControl, isIconControl, get iconMinusSmall() {
|
|
13141
|
+
return iconMinusSmall;
|
|
13142
|
+
}, get iconPlusSmall() {
|
|
13143
|
+
return iconPlusSmall;
|
|
13144
|
+
}, get applyLimits() {
|
|
13145
|
+
return applyLimits;
|
|
13146
|
+
}, OnyxFormElement, OnyxIconButton, OnyxSkeleton, OnyxTooltip, OnyxVisuallyHidden };
|
|
13147
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
13148
|
+
return __returned__;
|
|
13149
|
+
}
|
|
13150
|
+
});
|
|
13151
|
+
const _hoisted_1$8 = { class: "onyx-slider__container" };
|
|
13152
|
+
const _hoisted_2$7 = {
|
|
13153
|
+
key: 0,
|
|
13154
|
+
class: "onyx-slider__value-control-container",
|
|
13155
|
+
role: "img",
|
|
13156
|
+
tabindex: "-1"
|
|
13157
|
+
};
|
|
13158
|
+
const _hoisted_3$5 = {
|
|
13159
|
+
key: 1,
|
|
13160
|
+
class: "onyx-slider__icon-control-container"
|
|
13161
|
+
};
|
|
13162
|
+
const _hoisted_4$5 = ["disabled", "aria-label", "autofocus"];
|
|
13163
|
+
const _hoisted_5$5 = {
|
|
13164
|
+
key: 2,
|
|
13165
|
+
class: "onyx-slider__value-control-container",
|
|
13166
|
+
role: "img",
|
|
13167
|
+
tabindex: "-1"
|
|
13168
|
+
};
|
|
13169
|
+
const _hoisted_6$4 = {
|
|
13170
|
+
key: 3,
|
|
13171
|
+
class: "onyx-slider__icon-control-container"
|
|
13172
|
+
};
|
|
13173
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13174
|
+
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
13175
|
+
"div",
|
|
13176
|
+
{
|
|
13177
|
+
key: 0,
|
|
13178
|
+
class: normalizeClass([
|
|
13179
|
+
"onyx-component",
|
|
13180
|
+
"onyx-slider-skeleton",
|
|
13181
|
+
$setup.densityClass,
|
|
13182
|
+
{
|
|
13183
|
+
"onyx-slider-skeleton--vertical": $setup.props.orientation === "vertical"
|
|
13184
|
+
}
|
|
13185
|
+
])
|
|
13186
|
+
},
|
|
13187
|
+
[
|
|
13188
|
+
!$setup.props.hideLabel ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
13189
|
+
key: 0,
|
|
13190
|
+
class: "onyx-slider-skeleton__label"
|
|
13191
|
+
})) : createCommentVNode("v-if", true),
|
|
13192
|
+
createVNode($setup["OnyxSkeleton"], { class: "onyx-slider-skeleton__block" })
|
|
13193
|
+
],
|
|
13194
|
+
2
|
|
13195
|
+
/* CLASS */
|
|
13196
|
+
)) : (openBlock(), createElementBlock(
|
|
13197
|
+
"div",
|
|
13198
|
+
{
|
|
13199
|
+
key: 1,
|
|
13200
|
+
class: normalizeClass(["onyx-component onyx-slider", [
|
|
13201
|
+
{
|
|
13202
|
+
"onyx-slider--vertical": $setup.props.orientation === "vertical",
|
|
13203
|
+
"onyx-slider--disabled": $setup.disabled,
|
|
13204
|
+
"onyx-slider--is-active": $setup.activeThumbIndex !== -1
|
|
13205
|
+
},
|
|
13206
|
+
$setup.densityClass,
|
|
13207
|
+
$setup.errorClass
|
|
13208
|
+
]])
|
|
13209
|
+
},
|
|
13210
|
+
[
|
|
13211
|
+
createVNode($setup["OnyxFormElement"], mergeProps({
|
|
13212
|
+
label: $setup.props.label
|
|
13213
|
+
}, $setup.formElementProps, {
|
|
13214
|
+
class: "onyx-slider__form-element",
|
|
13215
|
+
message: $setup.messages,
|
|
13216
|
+
"error-messages": $setup.errorMessages
|
|
13217
|
+
}), {
|
|
13218
|
+
default: withCtx(({ id: inputId }) => [
|
|
13219
|
+
createElementVNode("div", _hoisted_1$8, [
|
|
13220
|
+
$setup.isValueControl ? (openBlock(), createElementBlock(
|
|
13221
|
+
"div",
|
|
13222
|
+
_hoisted_2$7,
|
|
13223
|
+
toDisplayString($setup.min),
|
|
13224
|
+
1
|
|
13225
|
+
/* TEXT */
|
|
13226
|
+
)) : createCommentVNode("v-if", true),
|
|
13227
|
+
$setup.isIconControl ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
|
|
13228
|
+
createVNode($setup["OnyxIconButton"], {
|
|
13229
|
+
disabled: $setup.disabled || Number($setup.modelValue ?? $setup.props.min) <= $setup.props.min,
|
|
13230
|
+
label: $setup.props.label || inputId,
|
|
13231
|
+
color: "neutral",
|
|
13232
|
+
icon: $setup.iconMinusSmall,
|
|
13233
|
+
tabindex: "0",
|
|
13234
|
+
onClick: $setup.handleDecreaseByIcon
|
|
13235
|
+
}, null, 8, ["disabled", "label", "icon"])
|
|
13236
|
+
])) : createCommentVNode("v-if", true),
|
|
13237
|
+
createElementVNode(
|
|
13238
|
+
"span",
|
|
13239
|
+
mergeProps({ class: "onyx-slider__root" }, $setup.root, {
|
|
13240
|
+
onTouchstartPassive: _cache[0] || (_cache[0] = (...args) => $setup.root.onTouchstart && $setup.root.onTouchstart(...args))
|
|
13241
|
+
}),
|
|
13242
|
+
[
|
|
13243
|
+
createElementVNode(
|
|
13244
|
+
"span",
|
|
13245
|
+
mergeProps({ class: "onyx-slider__rail" }, $setup.rail),
|
|
13246
|
+
null,
|
|
13247
|
+
16
|
|
13248
|
+
/* FULL_PROPS */
|
|
13249
|
+
),
|
|
13250
|
+
createElementVNode(
|
|
13251
|
+
"span",
|
|
13252
|
+
mergeProps({ class: "onyx-slider__track" }, $setup.track),
|
|
13253
|
+
null,
|
|
13254
|
+
16
|
|
13255
|
+
/* FULL_PROPS */
|
|
13256
|
+
),
|
|
13257
|
+
(openBlock(true), createElementBlock(
|
|
13258
|
+
Fragment,
|
|
13259
|
+
null,
|
|
13260
|
+
renderList($setup.marksList, (markItem) => {
|
|
13261
|
+
return openBlock(), createElementBlock(
|
|
13262
|
+
Fragment,
|
|
13263
|
+
{
|
|
13264
|
+
key: markItem.value
|
|
13265
|
+
},
|
|
13266
|
+
[
|
|
13267
|
+
createElementVNode(
|
|
13268
|
+
"span",
|
|
13269
|
+
mergeProps({
|
|
13270
|
+
class: ["onyx-slider__mark", { "onyx-slider__mark--active": $setup.isMarkActive(markItem.value) }]
|
|
13271
|
+
}, { ref_for: true }, $setup.mark({ value: markItem.value, label: markItem.label }), {
|
|
13272
|
+
style: {
|
|
13273
|
+
[$setup.axis.position]: `${$setup.adjustMarkPosition($setup.applyLimits($setup.valueToPercent(markItem.value), 0, 100))}`
|
|
13274
|
+
}
|
|
13275
|
+
}),
|
|
13276
|
+
null,
|
|
13277
|
+
16
|
|
13278
|
+
/* FULL_PROPS */
|
|
13279
|
+
),
|
|
13280
|
+
markItem.label ? (openBlock(), createElementBlock(
|
|
13281
|
+
"span",
|
|
13282
|
+
mergeProps({
|
|
13283
|
+
key: 0,
|
|
13284
|
+
class: "onyx-slider__mark-label"
|
|
13285
|
+
}, { ref_for: true }, $setup.markLabel({ value: markItem.value })),
|
|
13286
|
+
toDisplayString(markItem.label),
|
|
13287
|
+
17
|
|
13288
|
+
/* TEXT, FULL_PROPS */
|
|
13289
|
+
)) : createCommentVNode("v-if", true)
|
|
13290
|
+
],
|
|
13291
|
+
64
|
|
13292
|
+
/* STABLE_FRAGMENT */
|
|
13293
|
+
);
|
|
13294
|
+
}),
|
|
13295
|
+
128
|
|
13296
|
+
/* KEYED_FRAGMENT */
|
|
13297
|
+
)),
|
|
13298
|
+
(openBlock(true), createElementBlock(
|
|
13299
|
+
Fragment,
|
|
13300
|
+
null,
|
|
13301
|
+
renderList($setup.thumbs, (value, index) => {
|
|
13302
|
+
return openBlock(), createElementBlock(
|
|
13303
|
+
"span",
|
|
13304
|
+
mergeProps({ key: index }, { ref_for: true }, $setup.thumbContainer({ value, index }), {
|
|
13305
|
+
class: ["onyx-slider__thumb", {
|
|
13306
|
+
"is-focus": $setup.focusedThumbIndex === index,
|
|
13307
|
+
"is-active": $setup.activeThumbIndex === index
|
|
13308
|
+
}]
|
|
13309
|
+
}),
|
|
13310
|
+
[
|
|
13311
|
+
createVNode($setup["OnyxTooltip"], {
|
|
13312
|
+
open: !$setup.props.disableTooltip && $setup.activeThumbIndex === index,
|
|
13313
|
+
text: String(value),
|
|
13314
|
+
position: $setup.props.orientation === "vertical" ? "right" : "bottom",
|
|
13315
|
+
alignment: "auto",
|
|
13316
|
+
class: "onyx-slider__thumb-tooltip"
|
|
13317
|
+
}, {
|
|
13318
|
+
default: withCtx(({ trigger }) => [
|
|
13319
|
+
createElementVNode(
|
|
13320
|
+
"span",
|
|
13321
|
+
mergeProps({ ref_for: true }, trigger),
|
|
13322
|
+
[
|
|
13323
|
+
createVNode(
|
|
13324
|
+
$setup["OnyxVisuallyHidden"],
|
|
13325
|
+
null,
|
|
13326
|
+
{
|
|
13327
|
+
default: withCtx(() => [
|
|
13328
|
+
withDirectives(createElementVNode("input", mergeProps({ class: "onyx-slider__native" }, { ref_for: true }, $setup.thumbInput({ value, index }), {
|
|
13329
|
+
disabled: $setup.disabled,
|
|
13330
|
+
"aria-label": $setup.props.label || inputId,
|
|
13331
|
+
autofocus: $setup.props.autofocus && index === 0
|
|
13332
|
+
}), null, 16, _hoisted_4$5), [
|
|
13333
|
+
[$setup["vCustomValidity"]]
|
|
13334
|
+
])
|
|
13335
|
+
]),
|
|
13336
|
+
_: 2
|
|
13337
|
+
/* DYNAMIC */
|
|
13338
|
+
},
|
|
13339
|
+
1024
|
|
13340
|
+
/* DYNAMIC_SLOTS */
|
|
13341
|
+
)
|
|
13342
|
+
],
|
|
13343
|
+
16
|
|
13344
|
+
/* FULL_PROPS */
|
|
13345
|
+
)
|
|
13346
|
+
]),
|
|
13347
|
+
_: 2
|
|
13348
|
+
/* DYNAMIC */
|
|
13349
|
+
}, 1032, ["open", "text", "position"])
|
|
13350
|
+
],
|
|
13351
|
+
16
|
|
13352
|
+
/* FULL_PROPS */
|
|
13353
|
+
);
|
|
13354
|
+
}),
|
|
13355
|
+
128
|
|
13356
|
+
/* KEYED_FRAGMENT */
|
|
13357
|
+
))
|
|
13358
|
+
],
|
|
13359
|
+
16
|
|
13360
|
+
/* FULL_PROPS */
|
|
13361
|
+
),
|
|
13362
|
+
$setup.isValueControl ? (openBlock(), createElementBlock(
|
|
13363
|
+
"div",
|
|
13364
|
+
_hoisted_5$5,
|
|
13365
|
+
toDisplayString($setup.max),
|
|
13366
|
+
1
|
|
13367
|
+
/* TEXT */
|
|
13368
|
+
)) : createCommentVNode("v-if", true),
|
|
13369
|
+
$setup.isIconControl ? (openBlock(), createElementBlock("div", _hoisted_6$4, [
|
|
13370
|
+
createVNode($setup["OnyxIconButton"], {
|
|
13371
|
+
disabled: $setup.disabled || Number($setup.modelValue ?? $setup.props.min) >= $setup.props.max,
|
|
13372
|
+
label: "Increase",
|
|
13373
|
+
color: "neutral",
|
|
13374
|
+
icon: $setup.iconPlusSmall,
|
|
13375
|
+
tabindex: "0",
|
|
13376
|
+
onClick: $setup.handleIncreaseByIcon
|
|
13377
|
+
}, null, 8, ["disabled", "icon"])
|
|
13378
|
+
])) : createCommentVNode("v-if", true)
|
|
13379
|
+
])
|
|
13380
|
+
]),
|
|
13381
|
+
_: 1
|
|
13382
|
+
/* STABLE */
|
|
13383
|
+
}, 16, ["label", "message", "error-messages"])
|
|
13384
|
+
],
|
|
13385
|
+
2
|
|
13386
|
+
/* CLASS */
|
|
13387
|
+
));
|
|
13388
|
+
}
|
|
13389
|
+
const OnyxSlider = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSlider/OnyxSlider.vue"]]);
|
|
13390
|
+
const SLIDER_CONTROLS = ["icon", "value", "input"];
|
|
13391
|
+
const SLIDER_MODES = ["single", "range"];
|
|
12409
13392
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
12410
13393
|
...{ inheritAttrs: false },
|
|
12411
13394
|
__name: "OnyxStepper",
|
|
@@ -14427,6 +15410,7 @@ export {
|
|
|
14427
15410
|
OnyxToastMessage,
|
|
14428
15411
|
OnyxTooltip,
|
|
14429
15412
|
OnyxCalendar as OnyxUnstableCalendar,
|
|
15413
|
+
OnyxSlider as OnyxUnstableSlider,
|
|
14430
15414
|
OnyxUserMenu,
|
|
14431
15415
|
OnyxVisuallyHidden,
|
|
14432
15416
|
PROGRESS_ITEM_STATUS,
|
|
@@ -14434,6 +15418,8 @@ export {
|
|
|
14434
15418
|
SELECT_ALIGNMENTS,
|
|
14435
15419
|
SIDEBAR_ALIGNMENT,
|
|
14436
15420
|
SKELETON_INJECTED_SYMBOL,
|
|
15421
|
+
SLIDER_CONTROLS,
|
|
15422
|
+
SLIDER_MODES,
|
|
14437
15423
|
SUPPORTED_FILE_TYPE_ICON_MEDIA_TYPES,
|
|
14438
15424
|
SYSTEM_BUTTON_COLORS,
|
|
14439
15425
|
TABS_INJECTION_KEY,
|