sit-onyx 1.1.0-dev-20250930094642 → 1.1.0-dev-20250930114305
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/OnyxBasicPopover/OnyxBasicPopover.d.vue.ts +1 -0
- package/dist/components/OnyxBasicPopover/types.d.ts +2 -0
- package/dist/components/OnyxCalendar/OnyxCalendar.d.vue.ts +1 -1
- package/dist/components/OnyxCalendar/types.d.ts +1 -1
- package/dist/components/OnyxDialog/OnyxDialog.d.vue.ts +1 -0
- package/dist/components/OnyxListItem/OnyxListItem.d.vue.ts +1 -1
- package/dist/components/OnyxResizeHandle/OnyxResizeHandle.d.vue.ts +4 -4
- package/dist/composables/useClipping.d.ts +16 -0
- package/dist/i18n/locales/de-DE.json +5 -0
- package/dist/i18n/locales/en-US.json +8 -0
- package/dist/i18n/locales/en-US.json.d.ts +8 -0
- package/dist/index.esm-bundler.js +900 -805
- package/dist/index.esm-bundler.js.map +1 -1
- package/dist/index.js +2677 -2612
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -355,6 +355,7 @@ const notificationCard = { "moreActions": "More actions", "toggleActions": "Togg
|
|
|
355
355
|
const resizeHandle = { "label": "Drag to change width" };
|
|
356
356
|
const fileUpload = { "select": "Select", "clickToUpload": "Click to select", "orDragAndDrop": "or drag and drop file", "maxFileSize": "Maximum file size", "inTotal": "in total", "maxFileCount": "Maximum {n} files to select in total", "allowedFileTypes": "Allowed file types: {types}", "hideFilesButton": "Hide all files", "revealFilesButton": "Show all files", "removeFile": "Remove file", "status": { "fileTypeError": "File with extension '.{extension}' is invalid", "fileSizeError": "File exceeds maximum allowed size of {size}", "maxFileSizeError": "Total size of all files exceeds maximum allowed of {size}", "maxCountError": "Number of files exceeds maximum allowed of {count}" } };
|
|
357
357
|
const globalFAB = { "label": "Global actions" };
|
|
358
|
+
const calendar = { "todayButton": { "label": "Today", "tooltip": "Jump to today" }, "previousMonthButton": "Previous month", "nextMonthButton": "Next month" };
|
|
358
359
|
const enUS = {
|
|
359
360
|
yes,
|
|
360
361
|
no,
|
|
@@ -386,7 +387,8 @@ const enUS = {
|
|
|
386
387
|
notificationCard,
|
|
387
388
|
resizeHandle,
|
|
388
389
|
fileUpload,
|
|
389
|
-
globalFAB
|
|
390
|
+
globalFAB,
|
|
391
|
+
calendar
|
|
390
392
|
};
|
|
391
393
|
const NUMBER_FORMATS = {
|
|
392
394
|
decimal: { style: "decimal" }
|
|
@@ -506,7 +508,7 @@ const _unstableCreateCalendar = createBuilder((options) => {
|
|
|
506
508
|
const date = new Date(2024, 0, 1 + i);
|
|
507
509
|
return date;
|
|
508
510
|
});
|
|
509
|
-
const formatStyle = options.calendarSize === "big" ? "long" : "short";
|
|
511
|
+
const formatStyle = toValue(options.calendarSize) === "big" ? "long" : "short";
|
|
510
512
|
const formatter = new Intl.DateTimeFormat(toValue(options.locale), { weekday: formatStyle });
|
|
511
513
|
return days.map((day) => formatter.format(day));
|
|
512
514
|
});
|
|
@@ -2294,6 +2296,82 @@ const useAnchorPositionPolyfill = ({
|
|
|
2294
2296
|
useragentSupportsAnchorApi
|
|
2295
2297
|
};
|
|
2296
2298
|
};
|
|
2299
|
+
function useClipping(options) {
|
|
2300
|
+
const clippingStyles = ref();
|
|
2301
|
+
const scrolledOut = ref();
|
|
2302
|
+
const isClipping = ref(false);
|
|
2303
|
+
const checkVisibilityOnScroll = () => {
|
|
2304
|
+
const MIN_DISTANCE_TO_BORDER = 16;
|
|
2305
|
+
const MARGIN = 8;
|
|
2306
|
+
if (!options.popoverRef.value || !options.popoverWrapperRef.value || !options.isVisible.value)
|
|
2307
|
+
return;
|
|
2308
|
+
if (isClipping.value) {
|
|
2309
|
+
const popoverRect = options.popoverRef.value.getBoundingClientRect();
|
|
2310
|
+
const wrapperRect = options.popoverWrapperRef.value.getBoundingClientRect();
|
|
2311
|
+
const requiredHeight = popoverRect.height + MIN_DISTANCE_TO_BORDER + MARGIN;
|
|
2312
|
+
if (options.popoverPosition.value.includes("top")) {
|
|
2313
|
+
if (scrolledOut.value === "top" && wrapperRect.top > requiredHeight) {
|
|
2314
|
+
isClipping.value = false;
|
|
2315
|
+
return;
|
|
2316
|
+
}
|
|
2317
|
+
if (scrolledOut.value === "bottom" && wrapperRect.top + MARGIN < window.innerHeight) {
|
|
2318
|
+
isClipping.value = false;
|
|
2319
|
+
return;
|
|
2320
|
+
}
|
|
2321
|
+
} else if (options.popoverPosition.value.includes("bottom")) {
|
|
2322
|
+
if (scrolledOut.value === "top" && wrapperRect.bottom > MARGIN) {
|
|
2323
|
+
isClipping.value = false;
|
|
2324
|
+
return;
|
|
2325
|
+
}
|
|
2326
|
+
if (scrolledOut.value === "bottom" && window.innerHeight - wrapperRect.bottom > requiredHeight) {
|
|
2327
|
+
isClipping.value = false;
|
|
2328
|
+
return;
|
|
2329
|
+
}
|
|
2330
|
+
} else {
|
|
2331
|
+
if (scrolledOut.value === "top" && wrapperRect.top + MIN_DISTANCE_TO_BORDER > popoverRect.height) {
|
|
2332
|
+
isClipping.value = false;
|
|
2333
|
+
return;
|
|
2334
|
+
}
|
|
2335
|
+
if (scrolledOut.value === "bottom" && wrapperRect.bottom + MIN_DISTANCE_TO_BORDER < window.innerHeight) {
|
|
2336
|
+
isClipping.value = false;
|
|
2337
|
+
return;
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
} else {
|
|
2341
|
+
const rect = options.popoverRef.value.getBoundingClientRect();
|
|
2342
|
+
const isTooHigh = rect.top < MIN_DISTANCE_TO_BORDER;
|
|
2343
|
+
const isTooLow = rect.bottom > window.innerHeight - MIN_DISTANCE_TO_BORDER;
|
|
2344
|
+
if (isTooHigh || isTooLow) {
|
|
2345
|
+
isClipping.value = true;
|
|
2346
|
+
if (isTooHigh) {
|
|
2347
|
+
scrolledOut.value = "top";
|
|
2348
|
+
clippingStyles.value = { left: rect.left + "px", top: "var(--onyx-density-md)" };
|
|
2349
|
+
} else if (isTooLow) {
|
|
2350
|
+
scrolledOut.value = "bottom";
|
|
2351
|
+
clippingStyles.value = { left: rect.left + "px", bottom: "var(--onyx-density-md)" };
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2355
|
+
};
|
|
2356
|
+
const disableClipping = computed(() => {
|
|
2357
|
+
return !options.clipping.value || !options.isVisible.value;
|
|
2358
|
+
});
|
|
2359
|
+
useGlobalEventListener({
|
|
2360
|
+
type: "scroll",
|
|
2361
|
+
listener: () => checkVisibilityOnScroll(),
|
|
2362
|
+
disabled: disableClipping
|
|
2363
|
+
});
|
|
2364
|
+
useGlobalEventListener({
|
|
2365
|
+
type: "resize",
|
|
2366
|
+
listener: () => checkVisibilityOnScroll(),
|
|
2367
|
+
disabled: disableClipping
|
|
2368
|
+
});
|
|
2369
|
+
onMounted(async () => {
|
|
2370
|
+
await nextTick();
|
|
2371
|
+
if (!disableClipping.value) checkVisibilityOnScroll();
|
|
2372
|
+
});
|
|
2373
|
+
return { clippingStyles, scrolledOut, isClipping, checkVisibilityOnScroll };
|
|
2374
|
+
}
|
|
2297
2375
|
const useOpenAlignment = (element, tooltipElement, defaultPosition = "center") => {
|
|
2298
2376
|
const minMargin = 16;
|
|
2299
2377
|
const openAlignment = ref(defaultPosition);
|
|
@@ -2382,7 +2460,8 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
2382
2460
|
alignment: { type: String, required: false, default: "auto" },
|
|
2383
2461
|
fitParent: { type: Boolean, required: false },
|
|
2384
2462
|
disabled: { type: Boolean, required: false },
|
|
2385
|
-
role: { type: String, required: false, default: "dialog" }
|
|
2463
|
+
role: { type: String, required: false, default: "dialog" },
|
|
2464
|
+
clipping: { type: Boolean, required: false, default: false }
|
|
2386
2465
|
},
|
|
2387
2466
|
emits: ["update:open"],
|
|
2388
2467
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -2413,13 +2492,16 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
2413
2492
|
const positionAndAlignment = computed(() => {
|
|
2414
2493
|
if (popoverPosition.value === "top" || popoverPosition.value === "bottom") {
|
|
2415
2494
|
if (popoverAlignment.value === "left") {
|
|
2416
|
-
return popoverPosition.value
|
|
2495
|
+
return `${popoverPosition.value} span-right`;
|
|
2417
2496
|
}
|
|
2418
2497
|
if (popoverAlignment.value === "right") {
|
|
2419
|
-
return popoverPosition.value
|
|
2498
|
+
return `${popoverPosition.value} span-left`;
|
|
2420
2499
|
}
|
|
2421
2500
|
}
|
|
2422
|
-
|
|
2501
|
+
if (popoverPosition.value.includes(" ")) {
|
|
2502
|
+
return popoverPosition.value;
|
|
2503
|
+
}
|
|
2504
|
+
return `${popoverPosition.value} center`;
|
|
2423
2505
|
});
|
|
2424
2506
|
const popoverRef = useTemplateRef("popover");
|
|
2425
2507
|
const popoverWrapperRef = useTemplateRef("popoverWrapper");
|
|
@@ -2450,6 +2532,13 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
2450
2532
|
updateOpenDirection();
|
|
2451
2533
|
updateOpenAlignment();
|
|
2452
2534
|
};
|
|
2535
|
+
const { clippingStyles, isClipping } = useClipping({
|
|
2536
|
+
popoverRef,
|
|
2537
|
+
popoverWrapperRef,
|
|
2538
|
+
popoverPosition,
|
|
2539
|
+
isVisible,
|
|
2540
|
+
clipping: computed(() => props.clipping)
|
|
2541
|
+
});
|
|
2453
2542
|
useGlobalEventListener({
|
|
2454
2543
|
type: "resize",
|
|
2455
2544
|
listener: () => updateDirections()
|
|
@@ -2484,6 +2573,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
2484
2573
|
[`onyx-basic-popover__dialog--alignment-${popoverAlignment.value}`]: true,
|
|
2485
2574
|
"onyx-basic-popover__dialog--fitparent": props.fitParent,
|
|
2486
2575
|
"onyx-basic-popover__dialog--disabled": disabled.value,
|
|
2576
|
+
"onyx-basic-popover__dialog--clipping": isClipping.value,
|
|
2487
2577
|
"onyx-basic-popover__dialog--dont-support-anchor": !useragentSupportsAnchorApi.value
|
|
2488
2578
|
};
|
|
2489
2579
|
});
|
|
@@ -2514,7 +2604,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
2514
2604
|
top: topPosition.value
|
|
2515
2605
|
};
|
|
2516
2606
|
});
|
|
2517
|
-
const __returned__ = { props, emit, _isVisible, isVisible, popoverPosition, popoverAlignment, disabled, positionAndAlignment, popoverRef, popoverWrapperRef, openDirection, updateOpenDirection, openAlignment, updateOpenAlignment, leftPosition, topPosition, updateAnchorPositionPolyfill, useragentSupportsAnchorApi, width, handleOpening, updateDirections, toggle, trigger, id, anchorName, popoverClasses, popoverStyles };
|
|
2607
|
+
const __returned__ = { props, emit, _isVisible, isVisible, popoverPosition, popoverAlignment, disabled, positionAndAlignment, popoverRef, popoverWrapperRef, openDirection, updateOpenDirection, openAlignment, updateOpenAlignment, leftPosition, topPosition, updateAnchorPositionPolyfill, useragentSupportsAnchorApi, width, handleOpening, updateDirections, clippingStyles, isClipping, toggle, trigger, id, anchorName, popoverClasses, popoverStyles };
|
|
2518
2608
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
2519
2609
|
return __returned__;
|
|
2520
2610
|
}
|
|
@@ -2536,7 +2626,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2536
2626
|
"aria-label": $setup.props.label,
|
|
2537
2627
|
popover: "manual",
|
|
2538
2628
|
class: normalizeClass(["onyx-basic-popover__dialog", $setup.popoverClasses]),
|
|
2539
|
-
style: normalizeStyle($setup.popoverStyles)
|
|
2629
|
+
style: normalizeStyle(!$setup.isClipping ? $setup.popoverStyles : $setup.clippingStyles)
|
|
2540
2630
|
}, [
|
|
2541
2631
|
renderSlot(_ctx.$slots, "content")
|
|
2542
2632
|
], 14, _hoisted_1$11)
|
|
@@ -4376,86 +4466,430 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4376
4466
|
}, 16, ["class"]);
|
|
4377
4467
|
}
|
|
4378
4468
|
const OnyxCard = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$12], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCard/OnyxCard.vue"]]);
|
|
4379
|
-
const __default__ = {};
|
|
4380
4469
|
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
4381
|
-
|
|
4382
|
-
__name: "OnyxCalendar",
|
|
4470
|
+
__name: "OnyxIconButton",
|
|
4383
4471
|
props: {
|
|
4384
4472
|
density: { type: null, required: false },
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4473
|
+
autofocus: { type: Boolean, required: false },
|
|
4474
|
+
link: { type: null, required: false },
|
|
4475
|
+
label: { type: String, required: true },
|
|
4476
|
+
disabled: { type: [Boolean, Symbol], required: false, default: FORM_INJECTED_SYMBOL },
|
|
4477
|
+
type: { type: null, required: false, default: "button" },
|
|
4478
|
+
color: { type: null, required: false, default: "primary" },
|
|
4479
|
+
loading: { type: Boolean, required: false },
|
|
4480
|
+
icon: { type: String, required: false },
|
|
4481
|
+
skeleton: { type: [Symbol, Boolean, Number], required: false, default: SKELETON_INJECTED_SYMBOL }
|
|
4393
4482
|
},
|
|
4394
|
-
|
|
4483
|
+
setup(__props, { expose: __expose }) {
|
|
4484
|
+
__expose();
|
|
4485
|
+
const props = __props;
|
|
4486
|
+
const { densityClass } = useDensity(props);
|
|
4487
|
+
const skeleton = useSkeletonContext(props);
|
|
4488
|
+
const __returned__ = { props, densityClass, skeleton, ButtonOrLinkLayout, OnyxIcon, OnyxLoadingIndicator, OnyxSkeleton };
|
|
4489
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
4490
|
+
return __returned__;
|
|
4491
|
+
}
|
|
4492
|
+
});
|
|
4493
|
+
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4494
|
+
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
4495
|
+
key: 0,
|
|
4496
|
+
class: normalizeClass(["onyx-icon-button-skeleton", $setup.densityClass])
|
|
4497
|
+
}, null, 8, ["class"])) : (openBlock(), createBlock($setup["ButtonOrLinkLayout"], mergeProps({ key: 1 }, $setup.props, {
|
|
4498
|
+
"aria-label": $setup.props.label,
|
|
4499
|
+
title: $setup.props.label,
|
|
4500
|
+
class: [
|
|
4501
|
+
"onyx-component",
|
|
4502
|
+
"onyx-icon-button",
|
|
4503
|
+
`onyx-icon-button--${$setup.props.color}`,
|
|
4504
|
+
{ "onyx-icon-button--loading": $setup.props.loading },
|
|
4505
|
+
$setup.densityClass
|
|
4506
|
+
]
|
|
4507
|
+
}), {
|
|
4508
|
+
default: withCtx(() => [
|
|
4509
|
+
$setup.props.loading ? (openBlock(), createBlock($setup["OnyxLoadingIndicator"], {
|
|
4510
|
+
key: 0,
|
|
4511
|
+
type: "circle"
|
|
4512
|
+
})) : $setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
4513
|
+
key: 1,
|
|
4514
|
+
icon: $setup.props.icon
|
|
4515
|
+
}, null, 8, ["icon"])) : renderSlot(_ctx.$slots, "default", { key: 2 })
|
|
4516
|
+
]),
|
|
4517
|
+
_: 3
|
|
4518
|
+
/* FORWARDED */
|
|
4519
|
+
}, 16, ["aria-label", "title", "class"]));
|
|
4520
|
+
}
|
|
4521
|
+
const OnyxIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxIconButton/OnyxIconButton.vue"]]);
|
|
4522
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
4523
|
+
__name: "OnyxTooltip",
|
|
4524
|
+
props: {
|
|
4525
|
+
density: { type: null, required: false },
|
|
4526
|
+
text: { type: String, required: false },
|
|
4527
|
+
icon: { type: String, required: false },
|
|
4528
|
+
color: { type: String, required: false, default: "neutral" },
|
|
4529
|
+
position: { type: String, required: false, default: "auto" },
|
|
4530
|
+
alignment: { type: String, required: false, default: "auto" },
|
|
4531
|
+
fitParent: { type: Boolean, required: false, default: false },
|
|
4532
|
+
open: { type: [Boolean, null], required: false, skipCheck: true, default: void 0 },
|
|
4533
|
+
trigger: { type: [String, Object], required: false, default: "hover" },
|
|
4534
|
+
alignsWithEdge: { type: Boolean, required: false, default: false },
|
|
4535
|
+
withoutWedge: { type: Boolean, required: false }
|
|
4536
|
+
},
|
|
4537
|
+
emits: ["update:open"],
|
|
4395
4538
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
4396
4539
|
__expose();
|
|
4397
4540
|
const props = __props;
|
|
4398
4541
|
const emit = __emit;
|
|
4399
4542
|
const { densityClass } = useDensity(props);
|
|
4400
|
-
const
|
|
4401
|
-
const
|
|
4402
|
-
|
|
4403
|
-
|
|
4543
|
+
const { t } = injectI18n();
|
|
4544
|
+
const isVisible = useVModel({
|
|
4545
|
+
props,
|
|
4546
|
+
emit,
|
|
4547
|
+
key: "open",
|
|
4548
|
+
default: false
|
|
4549
|
+
});
|
|
4550
|
+
const tooltipOptions = computed(() => ({
|
|
4551
|
+
debounce: 200,
|
|
4552
|
+
...typeof props.trigger === "object" && props.trigger.type === "hover" && props.trigger || {},
|
|
4553
|
+
isVisible
|
|
4554
|
+
}));
|
|
4555
|
+
const toggletipOptions = computed(() => ({
|
|
4556
|
+
toggleLabel: t.value(`tooltip.${props.color}`),
|
|
4557
|
+
...typeof props.trigger === "object" && props.trigger.type === "click" && props.trigger || {},
|
|
4558
|
+
isVisible
|
|
4559
|
+
}));
|
|
4560
|
+
const triggerType = computed(() => {
|
|
4561
|
+
if (typeof props.trigger === "object") return props.trigger.type;
|
|
4562
|
+
return props.trigger;
|
|
4563
|
+
});
|
|
4564
|
+
const toolTipPosition = computed(
|
|
4565
|
+
() => props.position === "auto" ? openDirection.value : props.position
|
|
4404
4566
|
);
|
|
4405
|
-
const
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4567
|
+
const alignment = computed(
|
|
4568
|
+
() => props.alignment === "auto" ? openAlignment.value : props.alignment
|
|
4569
|
+
);
|
|
4570
|
+
const positionAndAlignment = computed(() => {
|
|
4571
|
+
if ((toolTipPosition.value === "top" || toolTipPosition.value === "bottom") && props.alignsWithEdge) {
|
|
4572
|
+
if (alignment.value === "left") {
|
|
4573
|
+
return `${toolTipPosition.value} x-start`;
|
|
4574
|
+
}
|
|
4575
|
+
if (alignment.value === "right") {
|
|
4576
|
+
return `${toolTipPosition.value} x-end`;
|
|
4577
|
+
}
|
|
4578
|
+
}
|
|
4579
|
+
if (toolTipPosition.value.includes(" ")) {
|
|
4580
|
+
return toolTipPosition.value;
|
|
4581
|
+
}
|
|
4582
|
+
return `${toolTipPosition.value} center`;
|
|
4583
|
+
});
|
|
4584
|
+
const createPattern = () => triggerType.value === "hover" ? createTooltip(tooltipOptions.value) : createToggletip(toggletipOptions.value);
|
|
4585
|
+
const ariaPattern = shallowRef(createPattern());
|
|
4586
|
+
watch(triggerType, () => ariaPattern.value = createPattern());
|
|
4587
|
+
const tooltip2 = computed(() => ariaPattern.value?.elements.tooltip);
|
|
4588
|
+
const triggerElementProps = computed(() => toValue(ariaPattern.value?.elements.trigger));
|
|
4589
|
+
const alignsWithEdge = toRef(() => props.alignsWithEdge);
|
|
4590
|
+
const fitParent = toRef(() => props.fitParent);
|
|
4591
|
+
const tooltipWrapperRef = useTemplateRef("tooltipWrapperRefEl");
|
|
4592
|
+
const tooltipRef = useTemplateRef("tooltipRefEl");
|
|
4593
|
+
const { openDirection, updateOpenDirection } = useOpenDirection(tooltipWrapperRef, "top");
|
|
4594
|
+
const { openAlignment, updateOpenAlignment } = useOpenAlignment(tooltipWrapperRef, tooltipRef);
|
|
4595
|
+
const { leftPosition, topPosition, updateAnchorPositionPolyfill, useragentSupportsAnchorApi } = useAnchorPositionPolyfill({
|
|
4596
|
+
positionedRef: tooltipRef,
|
|
4597
|
+
targetRef: tooltipWrapperRef,
|
|
4598
|
+
positionArea: toolTipPosition,
|
|
4599
|
+
alignment,
|
|
4600
|
+
alignsWithEdge,
|
|
4601
|
+
fitParent
|
|
4602
|
+
});
|
|
4603
|
+
const updateDirections = () => {
|
|
4604
|
+
updateOpenDirection();
|
|
4605
|
+
updateOpenAlignment();
|
|
4606
|
+
};
|
|
4607
|
+
useGlobalEventListener({
|
|
4608
|
+
type: "resize",
|
|
4609
|
+
listener: () => updateDirections()
|
|
4610
|
+
});
|
|
4611
|
+
const handleOpening = (open) => {
|
|
4612
|
+
if (open) {
|
|
4613
|
+
tooltipRef.value?.showPopover?.();
|
|
4409
4614
|
} else {
|
|
4410
|
-
|
|
4615
|
+
tooltipRef.value?.hidePopover?.();
|
|
4411
4616
|
}
|
|
4412
4617
|
};
|
|
4413
|
-
const
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
buttonRefs,
|
|
4426
|
-
weekStartDay
|
|
4618
|
+
const tooltipClasses = computed(() => {
|
|
4619
|
+
return {
|
|
4620
|
+
"onyx-tooltip--danger": props.color === "danger",
|
|
4621
|
+
"onyx-tooltip--success": props.color === "success",
|
|
4622
|
+
"onyx-tooltip--fit-parent": props.fitParent,
|
|
4623
|
+
"onyx-tooltip--aligns-with-edge": alignsWithEdge.value,
|
|
4624
|
+
"onyx-tooltip--hidden": !isVisible.value,
|
|
4625
|
+
[`onyx-tooltip--position-${toolTipPosition.value.replace(" ", "-")}`]: true,
|
|
4626
|
+
[`onyx-tooltip--alignment-${alignment.value}`]: true,
|
|
4627
|
+
"onyx-tooltip--dont-support-anchor": !useragentSupportsAnchorApi.value,
|
|
4628
|
+
"onyx-tooltip--without-wedge": props.withoutWedge
|
|
4629
|
+
};
|
|
4427
4630
|
});
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4631
|
+
const { width } = useResizeObserver(tooltipWrapperRef);
|
|
4632
|
+
const tooltipWidth = computed(
|
|
4633
|
+
() => props.fitParent && tooltipWrapperRef.value ? `${width.value}px` : "max-content"
|
|
4634
|
+
);
|
|
4635
|
+
onMounted(() => {
|
|
4636
|
+
handleOpening(isVisible.value);
|
|
4637
|
+
updateDirections();
|
|
4638
|
+
});
|
|
4639
|
+
onMounted(() => {
|
|
4640
|
+
if (useragentSupportsAnchorApi.value) {
|
|
4641
|
+
return;
|
|
4431
4642
|
}
|
|
4643
|
+
watch(
|
|
4644
|
+
[tooltipWidth, toolTipPosition, alignment, alignsWithEdge, isVisible],
|
|
4645
|
+
() => updateAnchorPositionPolyfill(),
|
|
4646
|
+
{ flush: "post", immediate: true }
|
|
4647
|
+
);
|
|
4432
4648
|
});
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4649
|
+
watch(
|
|
4650
|
+
isVisible,
|
|
4651
|
+
async (newVal) => {
|
|
4652
|
+
handleOpening(newVal);
|
|
4653
|
+
updateDirections();
|
|
4654
|
+
},
|
|
4655
|
+
{ flush: "post" }
|
|
4656
|
+
);
|
|
4657
|
+
const anchorName = `--anchor-${useId()}`;
|
|
4658
|
+
const tooltipStyles = computed(() => {
|
|
4659
|
+
if (useragentSupportsAnchorApi.value) {
|
|
4660
|
+
return {
|
|
4661
|
+
width: tooltipWidth.value,
|
|
4662
|
+
"position-anchor": anchorName,
|
|
4663
|
+
"position-area": positionAndAlignment.value
|
|
4664
|
+
};
|
|
4665
|
+
}
|
|
4666
|
+
return {
|
|
4667
|
+
width: tooltipWidth.value,
|
|
4668
|
+
left: leftPosition.value,
|
|
4669
|
+
top: topPosition.value
|
|
4670
|
+
};
|
|
4671
|
+
});
|
|
4672
|
+
const __returned__ = { props, emit, densityClass, t, isVisible, tooltipOptions, toggletipOptions, triggerType, toolTipPosition, alignment, positionAndAlignment, createPattern, ariaPattern, tooltip: tooltip2, triggerElementProps, alignsWithEdge, fitParent, tooltipWrapperRef, tooltipRef, openDirection, updateOpenDirection, openAlignment, updateOpenAlignment, leftPosition, topPosition, updateAnchorPositionPolyfill, useragentSupportsAnchorApi, updateDirections, handleOpening, tooltipClasses, width, tooltipWidth, anchorName, tooltipStyles, OnyxIcon };
|
|
4673
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
4674
|
+
return __returned__;
|
|
4675
|
+
}
|
|
4676
|
+
});
|
|
4677
|
+
const _hoisted_1$N = { class: "onyx-tooltip--content" };
|
|
4678
|
+
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4679
|
+
return openBlock(), createElementBlock(
|
|
4680
|
+
"div",
|
|
4681
|
+
{
|
|
4682
|
+
ref: "tooltipWrapperRefEl",
|
|
4683
|
+
class: normalizeClass(["onyx-component", "onyx-tooltip-wrapper", $setup.densityClass]),
|
|
4684
|
+
style: normalizeStyle(`anchor-name: ${$setup.anchorName}`)
|
|
4685
|
+
},
|
|
4686
|
+
[
|
|
4687
|
+
createElementVNode(
|
|
4688
|
+
"div",
|
|
4689
|
+
mergeProps({ ref: "tooltipRefEl" }, $setup.tooltip, {
|
|
4690
|
+
class: ["onyx-tooltip", "onyx-text--small", "onyx-truncation-multiline", $setup.tooltipClasses],
|
|
4691
|
+
style: $setup.tooltipStyles
|
|
4692
|
+
}),
|
|
4693
|
+
[
|
|
4694
|
+
createElementVNode("div", _hoisted_1$N, [
|
|
4695
|
+
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
4696
|
+
key: 0,
|
|
4697
|
+
icon: $setup.props.icon,
|
|
4698
|
+
size: "16px"
|
|
4699
|
+
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
4700
|
+
renderSlot(_ctx.$slots, "tooltip", {}, () => [
|
|
4701
|
+
createTextVNode(
|
|
4702
|
+
toDisplayString($setup.props.text),
|
|
4703
|
+
1
|
|
4704
|
+
/* TEXT */
|
|
4705
|
+
)
|
|
4706
|
+
])
|
|
4707
|
+
])
|
|
4708
|
+
],
|
|
4709
|
+
16
|
|
4710
|
+
/* FULL_PROPS */
|
|
4711
|
+
),
|
|
4712
|
+
renderSlot(_ctx.$slots, "default", { trigger: $setup.triggerElementProps })
|
|
4713
|
+
],
|
|
4714
|
+
6
|
|
4715
|
+
/* CLASS, STYLE */
|
|
4716
|
+
);
|
|
4717
|
+
}
|
|
4718
|
+
const OnyxTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTooltip/OnyxTooltip.vue"]]);
|
|
4719
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
4720
|
+
__name: "OnyxTag",
|
|
4721
|
+
props: {
|
|
4722
|
+
density: { type: null, required: false },
|
|
4723
|
+
label: { type: String, required: true },
|
|
4724
|
+
color: { type: null, required: false, default: "neutral" },
|
|
4725
|
+
icon: { type: String, required: false },
|
|
4726
|
+
clickable: { type: [String, Object], required: false },
|
|
4727
|
+
skeleton: { type: [Symbol, Boolean, Number], required: false, default: SKELETON_INJECTED_SYMBOL }
|
|
4728
|
+
},
|
|
4729
|
+
setup(__props, { expose: __expose }) {
|
|
4730
|
+
__expose();
|
|
4731
|
+
const props = __props;
|
|
4732
|
+
const { densityClass } = useDensity(props);
|
|
4733
|
+
const skeleton = useSkeletonContext(props);
|
|
4734
|
+
const tagClasses = computed(() => [
|
|
4735
|
+
"onyx-component",
|
|
4736
|
+
"onyx-tag",
|
|
4737
|
+
`onyx-tag--${props.color}`,
|
|
4738
|
+
{ "onyx-tag--interactive": props.clickable },
|
|
4739
|
+
densityClass.value
|
|
4740
|
+
]);
|
|
4741
|
+
const __returned__ = { props, densityClass, skeleton, tagClasses, OnyxIcon, OnyxSkeleton, OnyxTooltip };
|
|
4742
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
4743
|
+
return __returned__;
|
|
4744
|
+
}
|
|
4745
|
+
});
|
|
4746
|
+
const _hoisted_1$M = { class: "onyx-text onyx-truncation-ellipsis" };
|
|
4747
|
+
const _hoisted_2$C = { class: "onyx-text onyx-truncation-ellipsis" };
|
|
4748
|
+
function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4749
|
+
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
4750
|
+
key: 0,
|
|
4751
|
+
class: normalizeClass(["onyx-tag-skeleton", $setup.densityClass])
|
|
4752
|
+
}, null, 8, ["class"])) : $setup.props.clickable ? (openBlock(), createBlock($setup["OnyxTooltip"], {
|
|
4753
|
+
key: 1,
|
|
4754
|
+
text: typeof $setup.props.clickable === "object" ? $setup.props.clickable.label : $setup.props.clickable
|
|
4755
|
+
}, {
|
|
4756
|
+
default: withCtx(({ trigger }) => [
|
|
4757
|
+
createElementVNode(
|
|
4758
|
+
"button",
|
|
4759
|
+
mergeProps(trigger, {
|
|
4760
|
+
class: $setup.tagClasses,
|
|
4761
|
+
type: "button"
|
|
4762
|
+
}),
|
|
4763
|
+
[
|
|
4764
|
+
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
4765
|
+
key: 0,
|
|
4766
|
+
icon: $setup.props.icon,
|
|
4767
|
+
inline: ""
|
|
4768
|
+
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
4769
|
+
createElementVNode(
|
|
4770
|
+
"span",
|
|
4771
|
+
_hoisted_1$M,
|
|
4772
|
+
toDisplayString($setup.props.label),
|
|
4773
|
+
1
|
|
4774
|
+
/* TEXT */
|
|
4775
|
+
),
|
|
4776
|
+
typeof $setup.props.clickable === "object" && $setup.props.clickable.actionIcon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
4777
|
+
key: 1,
|
|
4778
|
+
icon: $setup.props.clickable.actionIcon,
|
|
4779
|
+
inline: ""
|
|
4780
|
+
}, null, 8, ["icon"])) : createCommentVNode("v-if", true)
|
|
4781
|
+
],
|
|
4782
|
+
16
|
|
4783
|
+
/* FULL_PROPS */
|
|
4784
|
+
)
|
|
4785
|
+
]),
|
|
4786
|
+
_: 1
|
|
4787
|
+
/* STABLE */
|
|
4788
|
+
}, 8, ["text"])) : (openBlock(), createElementBlock(
|
|
4789
|
+
"div",
|
|
4790
|
+
{
|
|
4791
|
+
key: 2,
|
|
4792
|
+
class: normalizeClass($setup.tagClasses)
|
|
4793
|
+
},
|
|
4794
|
+
[
|
|
4795
|
+
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
4796
|
+
key: 0,
|
|
4797
|
+
icon: $setup.props.icon,
|
|
4798
|
+
inline: ""
|
|
4799
|
+
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
4800
|
+
createElementVNode(
|
|
4801
|
+
"span",
|
|
4802
|
+
_hoisted_2$C,
|
|
4803
|
+
toDisplayString($setup.props.label),
|
|
4804
|
+
1
|
|
4805
|
+
/* TEXT */
|
|
4806
|
+
)
|
|
4807
|
+
],
|
|
4808
|
+
2
|
|
4809
|
+
/* CLASS */
|
|
4810
|
+
));
|
|
4811
|
+
}
|
|
4812
|
+
const OnyxTag = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTag/OnyxTag.vue"]]);
|
|
4813
|
+
const __default__ = {};
|
|
4814
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
4815
|
+
...__default__,
|
|
4816
|
+
__name: "OnyxCalendar",
|
|
4817
|
+
props: {
|
|
4818
|
+
density: { type: null, required: false },
|
|
4819
|
+
disabled: { type: Boolean, required: false, default: false },
|
|
4820
|
+
min: { type: Date, required: false },
|
|
4821
|
+
max: { type: Date, required: false },
|
|
4822
|
+
weekStartDay: { type: String, required: false, default: "Monday" },
|
|
4823
|
+
initialDate: { type: Date, required: false },
|
|
4824
|
+
size: { type: String, required: false, default: "auto" },
|
|
4825
|
+
skeleton: { type: [Symbol, Boolean, Number], required: false, default: SKELETON_INJECTED_SYMBOL },
|
|
4826
|
+
selection: { type: String, required: false, default: "single" }
|
|
4827
|
+
},
|
|
4828
|
+
emits: ["update:selectedDate"],
|
|
4829
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
4830
|
+
__expose();
|
|
4831
|
+
const props = __props;
|
|
4832
|
+
const emit = __emit;
|
|
4833
|
+
const { densityClass } = useDensity(props);
|
|
4834
|
+
const skeleton = useSkeletonContext(props);
|
|
4835
|
+
const { t, locale } = injectI18n();
|
|
4836
|
+
const calendarSize = computed(
|
|
4837
|
+
() => props.size !== "auto" ? props.size : width.value < ONYX_BREAKPOINTS.xs ? "small" : "big"
|
|
4838
|
+
);
|
|
4839
|
+
const buttonRefs = ref({});
|
|
4840
|
+
const setButtonRef = (el, dateKey) => {
|
|
4841
|
+
if (el) {
|
|
4842
|
+
buttonRefs.value[dateKey] = el;
|
|
4843
|
+
} else {
|
|
4844
|
+
delete buttonRefs.value[dateKey];
|
|
4845
|
+
}
|
|
4846
|
+
};
|
|
4847
|
+
const { disabled, min, max, initialDate, weekStartDay } = toRefs(props);
|
|
4848
|
+
const {
|
|
4849
|
+
state: { currentYear, currentMonth, selectedDate, weeks, weekdays },
|
|
4850
|
+
elements: { table: tableProps, cell: cellProps, button: buttonProps },
|
|
4851
|
+
internals: { goToPreviousMonth, goToNextMonth, goToToday }
|
|
4852
|
+
} = _unstableCreateCalendar({
|
|
4853
|
+
disabled,
|
|
4854
|
+
min,
|
|
4855
|
+
max,
|
|
4856
|
+
initialDate,
|
|
4857
|
+
locale,
|
|
4858
|
+
calendarSize,
|
|
4859
|
+
buttonRefs,
|
|
4860
|
+
weekStartDay
|
|
4861
|
+
});
|
|
4862
|
+
watch(selectedDate, (newDate) => {
|
|
4863
|
+
if (newDate) {
|
|
4864
|
+
emit("update:selectedDate", newDate);
|
|
4865
|
+
}
|
|
4866
|
+
});
|
|
4867
|
+
const calendarRef = useTemplateRef("calendar");
|
|
4868
|
+
const { width } = useResizeObserver(calendarRef);
|
|
4869
|
+
const sizeClass = computed(() => `onyx-calendar--${calendarSize.value}`);
|
|
4870
|
+
const __returned__ = { props, emit, densityClass, skeleton, t, locale, calendarSize, buttonRefs, setButtonRef, disabled, min, max, initialDate, weekStartDay, currentYear, currentMonth, selectedDate, weeks, weekdays, tableProps, cellProps, buttonProps, goToPreviousMonth, goToNextMonth, goToToday, calendarRef, width, sizeClass, get iconChevronLeftSmall() {
|
|
4871
|
+
return iconChevronLeftSmall;
|
|
4872
|
+
}, get iconChevronRightSmall() {
|
|
4873
|
+
return iconChevronRightSmall;
|
|
4874
|
+
}, OnyxHeadline, OnyxIconButton, OnyxSkeleton, OnyxTag };
|
|
4875
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
4876
|
+
return __returned__;
|
|
4877
|
+
}
|
|
4878
|
+
});
|
|
4879
|
+
const _hoisted_1$L = { class: "onyx-calendar__header" };
|
|
4880
|
+
const _hoisted_2$B = { class: "control-container time-control-container" };
|
|
4881
|
+
const _hoisted_3$p = { class: "control-container" };
|
|
4882
|
+
const _hoisted_4$i = { class: "onyx-calendar__body" };
|
|
4883
|
+
const _hoisted_5$d = ["abbr"];
|
|
4884
|
+
const _hoisted_6$a = { class: "cell-content__number" };
|
|
4885
|
+
const _hoisted_7$6 = { class: "cell-content__number-display" };
|
|
4886
|
+
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4887
|
+
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
4888
|
+
"div",
|
|
4889
|
+
{
|
|
4890
|
+
key: 0,
|
|
4891
|
+
class: normalizeClass(["onyx-component", "onyx-calendar-skeleton", $setup.densityClass])
|
|
4892
|
+
},
|
|
4459
4893
|
[
|
|
4460
4894
|
createVNode($setup["OnyxSkeleton"], { class: "onyx-calendar-skeleton__header" }),
|
|
4461
4895
|
createVNode($setup["OnyxSkeleton"], { class: "onyx-calendar-skeleton__body" })
|
|
@@ -4476,21 +4910,23 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4476
4910
|
])
|
|
4477
4911
|
},
|
|
4478
4912
|
[
|
|
4479
|
-
createElementVNode("div", _hoisted_1$
|
|
4480
|
-
createElementVNode("div", _hoisted_2$
|
|
4481
|
-
$setup.calendarSize !== "small" ? (openBlock(), createBlock($setup["
|
|
4913
|
+
createElementVNode("div", _hoisted_1$L, [
|
|
4914
|
+
createElementVNode("div", _hoisted_2$B, [
|
|
4915
|
+
$setup.calendarSize !== "small" ? (openBlock(), createBlock($setup["OnyxTag"], {
|
|
4482
4916
|
key: 0,
|
|
4483
|
-
label: "
|
|
4917
|
+
label: $setup.t("calendar.todayButton.label"),
|
|
4484
4918
|
class: "control-container__today-btn",
|
|
4485
4919
|
disabled: $setup.disabled,
|
|
4920
|
+
clickable: $setup.t("calendar.todayButton.tooltip"),
|
|
4486
4921
|
onClick: $setup.goToToday
|
|
4487
|
-
}, null, 8, ["disabled", "onClick"])) : createCommentVNode("v-if", true),
|
|
4488
|
-
createVNode($setup["
|
|
4489
|
-
label: "
|
|
4922
|
+
}, null, 8, ["label", "disabled", "clickable", "onClick"])) : createCommentVNode("v-if", true),
|
|
4923
|
+
createVNode($setup["OnyxIconButton"], {
|
|
4924
|
+
label: $setup.t("calendar.previousMonthButton"),
|
|
4925
|
+
color: "neutral",
|
|
4490
4926
|
icon: $setup.iconChevronLeftSmall,
|
|
4491
4927
|
disabled: $setup.disabled,
|
|
4492
4928
|
onClick: $setup.goToPreviousMonth
|
|
4493
|
-
}, null, 8, ["icon", "disabled", "onClick"]),
|
|
4929
|
+
}, null, 8, ["label", "icon", "disabled", "onClick"]),
|
|
4494
4930
|
createVNode($setup["OnyxHeadline"], {
|
|
4495
4931
|
is: "h2",
|
|
4496
4932
|
class: "control-container__date-display"
|
|
@@ -4508,12 +4944,13 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4508
4944
|
_: 1
|
|
4509
4945
|
/* STABLE */
|
|
4510
4946
|
}),
|
|
4511
|
-
createVNode($setup["
|
|
4512
|
-
label: "
|
|
4947
|
+
createVNode($setup["OnyxIconButton"], {
|
|
4948
|
+
label: $setup.t("calendar.nextMonthButton"),
|
|
4949
|
+
color: "neutral",
|
|
4513
4950
|
icon: $setup.iconChevronRightSmall,
|
|
4514
4951
|
disabled: $setup.disabled,
|
|
4515
4952
|
onClick: $setup.goToNextMonth
|
|
4516
|
-
}, null, 8, ["icon", "disabled", "onClick"])
|
|
4953
|
+
}, null, 8, ["label", "icon", "disabled", "onClick"])
|
|
4517
4954
|
]),
|
|
4518
4955
|
createElementVNode("div", _hoisted_3$p, [
|
|
4519
4956
|
renderSlot(_ctx.$slots, "actions")
|
|
@@ -4533,7 +4970,8 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4533
4970
|
return openBlock(), createElementBlock("th", {
|
|
4534
4971
|
key: index,
|
|
4535
4972
|
scope: "col",
|
|
4536
|
-
abbr: day
|
|
4973
|
+
abbr: day,
|
|
4974
|
+
class: "onyx-text--small"
|
|
4537
4975
|
}, toDisplayString(day), 9, _hoisted_5$d);
|
|
4538
4976
|
}),
|
|
4539
4977
|
128
|
|
@@ -4603,7 +5041,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4603
5041
|
/* CLASS */
|
|
4604
5042
|
));
|
|
4605
5043
|
}
|
|
4606
|
-
const OnyxCalendar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5044
|
+
const OnyxCalendar = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCalendar/OnyxCalendar.vue"]]);
|
|
4607
5045
|
const useRequired = (props, requiredMarker) => ({
|
|
4608
5046
|
/**
|
|
4609
5047
|
* Class that configures which type of required marker is used.
|
|
@@ -4771,238 +5209,41 @@ const useFormElementError = (options) => {
|
|
|
4771
5209
|
step: options.props.validStepSize
|
|
4772
5210
|
};
|
|
4773
5211
|
if (errorType === "typeMismatch") {
|
|
4774
|
-
const type = TRANSLATED_INPUT_TYPES.includes(options.props.type) ? options.props.type : "generic";
|
|
4775
|
-
return {
|
|
4776
|
-
longMessage: t.value(`validations.typeMismatch.${type}.fullError`, validationData),
|
|
4777
|
-
shortMessage: t.value(`validations.typeMismatch.${type}.preview`, validationData)
|
|
4778
|
-
};
|
|
4779
|
-
}
|
|
4780
|
-
return {
|
|
4781
|
-
longMessage: t.value(`validations.${errorType}.fullError`, validationData),
|
|
4782
|
-
shortMessage: t.value(`validations.${errorType}.preview`, validationData)
|
|
4783
|
-
};
|
|
4784
|
-
});
|
|
4785
|
-
return {
|
|
4786
|
-
/**
|
|
4787
|
-
* Directive to set the custom error message and emit validityChange event.
|
|
4788
|
-
*/
|
|
4789
|
-
vCustomValidity,
|
|
4790
|
-
/**
|
|
4791
|
-
* A custom error or the default translation of the first invalid state if one exists.
|
|
4792
|
-
*/
|
|
4793
|
-
errorMessages
|
|
4794
|
-
};
|
|
4795
|
-
};
|
|
4796
|
-
const formatMinMax = (locale, type, value) => {
|
|
4797
|
-
if (!type || !["date", "datetime-local"].includes(type)) return value?.toString();
|
|
4798
|
-
const date = value != void 0 ? new Date(value) : void 0;
|
|
4799
|
-
if (!isValidDate(date)) return value?.toString();
|
|
4800
|
-
const format = {
|
|
4801
|
-
day: "2-digit",
|
|
4802
|
-
month: "2-digit",
|
|
4803
|
-
year: "numeric",
|
|
4804
|
-
...type === "datetime-local" ? { hour: "2-digit", minute: "2-digit" } : void 0
|
|
4805
|
-
};
|
|
4806
|
-
return date.toLocaleString(locale, format);
|
|
4807
|
-
};
|
|
4808
|
-
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
4809
|
-
__name: "OnyxTooltip",
|
|
4810
|
-
props: {
|
|
4811
|
-
density: { type: null, required: false },
|
|
4812
|
-
text: { type: String, required: false },
|
|
4813
|
-
icon: { type: String, required: false },
|
|
4814
|
-
color: { type: String, required: false, default: "neutral" },
|
|
4815
|
-
position: { type: String, required: false, default: "auto" },
|
|
4816
|
-
alignment: { type: String, required: false, default: "auto" },
|
|
4817
|
-
fitParent: { type: Boolean, required: false, default: false },
|
|
4818
|
-
open: { type: [Boolean, null], required: false, skipCheck: true, default: void 0 },
|
|
4819
|
-
trigger: { type: [String, Object], required: false, default: "hover" },
|
|
4820
|
-
alignsWithEdge: { type: Boolean, required: false, default: false },
|
|
4821
|
-
withoutWedge: { type: Boolean, required: false }
|
|
4822
|
-
},
|
|
4823
|
-
emits: ["update:open"],
|
|
4824
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
4825
|
-
__expose();
|
|
4826
|
-
const props = __props;
|
|
4827
|
-
const emit = __emit;
|
|
4828
|
-
const { densityClass } = useDensity(props);
|
|
4829
|
-
const { t } = injectI18n();
|
|
4830
|
-
const isVisible = useVModel({
|
|
4831
|
-
props,
|
|
4832
|
-
emit,
|
|
4833
|
-
key: "open",
|
|
4834
|
-
default: false
|
|
4835
|
-
});
|
|
4836
|
-
const tooltipOptions = computed(() => ({
|
|
4837
|
-
debounce: 200,
|
|
4838
|
-
...typeof props.trigger === "object" && props.trigger.type === "hover" && props.trigger || {},
|
|
4839
|
-
isVisible
|
|
4840
|
-
}));
|
|
4841
|
-
const toggletipOptions = computed(() => ({
|
|
4842
|
-
toggleLabel: t.value(`tooltip.${props.color}`),
|
|
4843
|
-
...typeof props.trigger === "object" && props.trigger.type === "click" && props.trigger || {},
|
|
4844
|
-
isVisible
|
|
4845
|
-
}));
|
|
4846
|
-
const triggerType = computed(() => {
|
|
4847
|
-
if (typeof props.trigger === "object") return props.trigger.type;
|
|
4848
|
-
return props.trigger;
|
|
4849
|
-
});
|
|
4850
|
-
const toolTipPosition = computed(
|
|
4851
|
-
() => props.position === "auto" ? openDirection.value : props.position
|
|
4852
|
-
);
|
|
4853
|
-
const alignment = computed(
|
|
4854
|
-
() => props.alignment === "auto" ? openAlignment.value : props.alignment
|
|
4855
|
-
);
|
|
4856
|
-
const positionAndAlignment = computed(() => {
|
|
4857
|
-
if ((toolTipPosition.value === "top" || toolTipPosition.value === "bottom") && props.alignsWithEdge) {
|
|
4858
|
-
if (alignment.value === "left") {
|
|
4859
|
-
return `${toolTipPosition.value} x-start`;
|
|
4860
|
-
}
|
|
4861
|
-
if (alignment.value === "right") {
|
|
4862
|
-
return `${toolTipPosition.value} x-end`;
|
|
4863
|
-
}
|
|
4864
|
-
}
|
|
4865
|
-
if (toolTipPosition.value.includes(" ")) {
|
|
4866
|
-
return toolTipPosition.value;
|
|
4867
|
-
}
|
|
4868
|
-
return `${toolTipPosition.value} center`;
|
|
4869
|
-
});
|
|
4870
|
-
const createPattern = () => triggerType.value === "hover" ? createTooltip(tooltipOptions.value) : createToggletip(toggletipOptions.value);
|
|
4871
|
-
const ariaPattern = shallowRef(createPattern());
|
|
4872
|
-
watch(triggerType, () => ariaPattern.value = createPattern());
|
|
4873
|
-
const tooltip2 = computed(() => ariaPattern.value?.elements.tooltip);
|
|
4874
|
-
const triggerElementProps = computed(() => toValue(ariaPattern.value?.elements.trigger));
|
|
4875
|
-
const alignsWithEdge = toRef(() => props.alignsWithEdge);
|
|
4876
|
-
const fitParent = toRef(() => props.fitParent);
|
|
4877
|
-
const tooltipWrapperRef = useTemplateRef("tooltipWrapperRefEl");
|
|
4878
|
-
const tooltipRef = useTemplateRef("tooltipRefEl");
|
|
4879
|
-
const { openDirection, updateOpenDirection } = useOpenDirection(tooltipWrapperRef, "top");
|
|
4880
|
-
const { openAlignment, updateOpenAlignment } = useOpenAlignment(tooltipWrapperRef, tooltipRef);
|
|
4881
|
-
const { leftPosition, topPosition, updateAnchorPositionPolyfill, useragentSupportsAnchorApi } = useAnchorPositionPolyfill({
|
|
4882
|
-
positionedRef: tooltipRef,
|
|
4883
|
-
targetRef: tooltipWrapperRef,
|
|
4884
|
-
positionArea: toolTipPosition,
|
|
4885
|
-
alignment,
|
|
4886
|
-
alignsWithEdge,
|
|
4887
|
-
fitParent
|
|
4888
|
-
});
|
|
4889
|
-
const updateDirections = () => {
|
|
4890
|
-
updateOpenDirection();
|
|
4891
|
-
updateOpenAlignment();
|
|
4892
|
-
};
|
|
4893
|
-
useGlobalEventListener({
|
|
4894
|
-
type: "resize",
|
|
4895
|
-
listener: () => updateDirections()
|
|
4896
|
-
});
|
|
4897
|
-
const handleOpening = (open) => {
|
|
4898
|
-
if (open) {
|
|
4899
|
-
tooltipRef.value?.showPopover?.();
|
|
4900
|
-
} else {
|
|
4901
|
-
tooltipRef.value?.hidePopover?.();
|
|
4902
|
-
}
|
|
4903
|
-
};
|
|
4904
|
-
const tooltipClasses = computed(() => {
|
|
4905
|
-
return {
|
|
4906
|
-
"onyx-tooltip--danger": props.color === "danger",
|
|
4907
|
-
"onyx-tooltip--success": props.color === "success",
|
|
4908
|
-
"onyx-tooltip--fit-parent": props.fitParent,
|
|
4909
|
-
"onyx-tooltip--aligns-with-edge": alignsWithEdge.value,
|
|
4910
|
-
"onyx-tooltip--hidden": !isVisible.value,
|
|
4911
|
-
[`onyx-tooltip--position-${toolTipPosition.value.replace(" ", "-")}`]: true,
|
|
4912
|
-
[`onyx-tooltip--alignment-${alignment.value}`]: true,
|
|
4913
|
-
"onyx-tooltip--dont-support-anchor": !useragentSupportsAnchorApi.value,
|
|
4914
|
-
"onyx-tooltip--without-wedge": props.withoutWedge
|
|
4915
|
-
};
|
|
4916
|
-
});
|
|
4917
|
-
const { width } = useResizeObserver(tooltipWrapperRef);
|
|
4918
|
-
const tooltipWidth = computed(
|
|
4919
|
-
() => props.fitParent && tooltipWrapperRef.value ? `${width.value}px` : "max-content"
|
|
4920
|
-
);
|
|
4921
|
-
onMounted(() => {
|
|
4922
|
-
handleOpening(isVisible.value);
|
|
4923
|
-
updateDirections();
|
|
4924
|
-
});
|
|
4925
|
-
onMounted(() => {
|
|
4926
|
-
if (useragentSupportsAnchorApi.value) {
|
|
4927
|
-
return;
|
|
4928
|
-
}
|
|
4929
|
-
watch(
|
|
4930
|
-
[tooltipWidth, toolTipPosition, alignment, alignsWithEdge, isVisible],
|
|
4931
|
-
() => updateAnchorPositionPolyfill(),
|
|
4932
|
-
{ flush: "post", immediate: true }
|
|
4933
|
-
);
|
|
4934
|
-
});
|
|
4935
|
-
watch(
|
|
4936
|
-
isVisible,
|
|
4937
|
-
async (newVal) => {
|
|
4938
|
-
handleOpening(newVal);
|
|
4939
|
-
updateDirections();
|
|
4940
|
-
},
|
|
4941
|
-
{ flush: "post" }
|
|
4942
|
-
);
|
|
4943
|
-
const anchorName = `--anchor-${useId()}`;
|
|
4944
|
-
const tooltipStyles = computed(() => {
|
|
4945
|
-
if (useragentSupportsAnchorApi.value) {
|
|
4946
|
-
return {
|
|
4947
|
-
width: tooltipWidth.value,
|
|
4948
|
-
"position-anchor": anchorName,
|
|
4949
|
-
"position-area": positionAndAlignment.value
|
|
4950
|
-
};
|
|
4951
|
-
}
|
|
5212
|
+
const type = TRANSLATED_INPUT_TYPES.includes(options.props.type) ? options.props.type : "generic";
|
|
4952
5213
|
return {
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
top: topPosition.value
|
|
5214
|
+
longMessage: t.value(`validations.typeMismatch.${type}.fullError`, validationData),
|
|
5215
|
+
shortMessage: t.value(`validations.typeMismatch.${type}.preview`, validationData)
|
|
4956
5216
|
};
|
|
4957
|
-
}
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
});
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
createTextVNode(
|
|
4988
|
-
toDisplayString($setup.props.text),
|
|
4989
|
-
1
|
|
4990
|
-
/* TEXT */
|
|
4991
|
-
)
|
|
4992
|
-
])
|
|
4993
|
-
])
|
|
4994
|
-
],
|
|
4995
|
-
16
|
|
4996
|
-
/* FULL_PROPS */
|
|
4997
|
-
),
|
|
4998
|
-
renderSlot(_ctx.$slots, "default", { trigger: $setup.triggerElementProps })
|
|
4999
|
-
],
|
|
5000
|
-
6
|
|
5001
|
-
/* CLASS, STYLE */
|
|
5002
|
-
);
|
|
5003
|
-
}
|
|
5004
|
-
const OnyxTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTooltip/OnyxTooltip.vue"]]);
|
|
5005
|
-
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
5217
|
+
}
|
|
5218
|
+
return {
|
|
5219
|
+
longMessage: t.value(`validations.${errorType}.fullError`, validationData),
|
|
5220
|
+
shortMessage: t.value(`validations.${errorType}.preview`, validationData)
|
|
5221
|
+
};
|
|
5222
|
+
});
|
|
5223
|
+
return {
|
|
5224
|
+
/**
|
|
5225
|
+
* Directive to set the custom error message and emit validityChange event.
|
|
5226
|
+
*/
|
|
5227
|
+
vCustomValidity,
|
|
5228
|
+
/**
|
|
5229
|
+
* A custom error or the default translation of the first invalid state if one exists.
|
|
5230
|
+
*/
|
|
5231
|
+
errorMessages
|
|
5232
|
+
};
|
|
5233
|
+
};
|
|
5234
|
+
const formatMinMax = (locale, type, value) => {
|
|
5235
|
+
if (!type || !["date", "datetime-local"].includes(type)) return value?.toString();
|
|
5236
|
+
const date = value != void 0 ? new Date(value) : void 0;
|
|
5237
|
+
if (!isValidDate(date)) return value?.toString();
|
|
5238
|
+
const format = {
|
|
5239
|
+
day: "2-digit",
|
|
5240
|
+
month: "2-digit",
|
|
5241
|
+
year: "numeric",
|
|
5242
|
+
...type === "datetime-local" ? { hour: "2-digit", minute: "2-digit" } : void 0
|
|
5243
|
+
};
|
|
5244
|
+
return date.toLocaleString(locale, format);
|
|
5245
|
+
};
|
|
5246
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
5006
5247
|
__name: "OnyxErrorTooltip",
|
|
5007
5248
|
props: {
|
|
5008
5249
|
errorMessages: { type: Object, required: false },
|
|
@@ -5018,16 +5259,16 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
5018
5259
|
return __returned__;
|
|
5019
5260
|
}
|
|
5020
5261
|
});
|
|
5021
|
-
const _hoisted_1$
|
|
5022
|
-
const _hoisted_2$
|
|
5262
|
+
const _hoisted_1$K = { class: "onyx-component" };
|
|
5263
|
+
const _hoisted_2$A = {
|
|
5023
5264
|
key: 0,
|
|
5024
5265
|
ref: "targetRef"
|
|
5025
5266
|
};
|
|
5026
|
-
function _sfc_render
|
|
5027
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5267
|
+
function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5268
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
5028
5269
|
!$setup.tooltipError || $setup.props.disabled ? (openBlock(), createElementBlock(
|
|
5029
5270
|
"div",
|
|
5030
|
-
_hoisted_2$
|
|
5271
|
+
_hoisted_2$A,
|
|
5031
5272
|
null,
|
|
5032
5273
|
512
|
|
5033
5274
|
/* NEED_PATCH */
|
|
@@ -5060,8 +5301,8 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5060
5301
|
], 8, ["to"])) : createCommentVNode("v-if", true)
|
|
5061
5302
|
]);
|
|
5062
5303
|
}
|
|
5063
|
-
const OnyxErrorTooltip = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
5064
|
-
const _sfc_main$
|
|
5304
|
+
const OnyxErrorTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxErrorTooltip/OnyxErrorTooltip.vue"]]);
|
|
5305
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
5065
5306
|
...{ inheritAttrs: false },
|
|
5066
5307
|
__name: "OnyxCheckbox",
|
|
5067
5308
|
props: {
|
|
@@ -5108,10 +5349,10 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
5108
5349
|
return __returned__;
|
|
5109
5350
|
}
|
|
5110
5351
|
});
|
|
5111
|
-
const _hoisted_1$
|
|
5112
|
-
const _hoisted_2$
|
|
5352
|
+
const _hoisted_1$J = ["title"];
|
|
5353
|
+
const _hoisted_2$z = { class: "onyx-checkbox__container" };
|
|
5113
5354
|
const _hoisted_3$o = ["aria-label", "indeterminate", "disabled", "required", "value", "autofocus"];
|
|
5114
|
-
function _sfc_render$
|
|
5355
|
+
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5115
5356
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
5116
5357
|
"div",
|
|
5117
5358
|
mergeProps({
|
|
@@ -5137,7 +5378,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5137
5378
|
class: normalizeClass(["onyx-component onyx-checkbox", [$setup.requiredTypeClass, $setup.densityClass]]),
|
|
5138
5379
|
title: $setup.title
|
|
5139
5380
|
}, [
|
|
5140
|
-
createElementVNode("div", _hoisted_2$
|
|
5381
|
+
createElementVNode("div", _hoisted_2$z, [
|
|
5141
5382
|
$setup.props.loading ? (openBlock(), createBlock($setup["OnyxLoadingIndicator"], {
|
|
5142
5383
|
key: 0,
|
|
5143
5384
|
class: "onyx-checkbox__loading",
|
|
@@ -5190,13 +5431,13 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5190
5431
|
64
|
|
5191
5432
|
/* STABLE_FRAGMENT */
|
|
5192
5433
|
)) : createCommentVNode("v-if", true)
|
|
5193
|
-
], 10, _hoisted_1$
|
|
5434
|
+
], 10, _hoisted_1$J)
|
|
5194
5435
|
]),
|
|
5195
5436
|
_: 1
|
|
5196
5437
|
/* STABLE */
|
|
5197
5438
|
}, 16, ["disabled", "error-messages"]));
|
|
5198
5439
|
}
|
|
5199
|
-
const OnyxCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5440
|
+
const OnyxCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCheckbox/OnyxCheckbox.vue"]]);
|
|
5200
5441
|
const useSelectAllCheckboxState = (enabledOptionValues, modelValue) => computed(() => {
|
|
5201
5442
|
const currentValues = modelValue.value.filter(
|
|
5202
5443
|
(value) => enabledOptionValues.value.includes(value)
|
|
@@ -5231,7 +5472,7 @@ const useCheckAll = (enabledOptionValues, modelValue, onChangeCallback) => {
|
|
|
5231
5472
|
}
|
|
5232
5473
|
};
|
|
5233
5474
|
};
|
|
5234
|
-
const _sfc_main$
|
|
5475
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
5235
5476
|
__name: "OnyxInfoTooltip",
|
|
5236
5477
|
props: {
|
|
5237
5478
|
text: { type: String, required: true },
|
|
@@ -5266,9 +5507,9 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
5266
5507
|
return __returned__;
|
|
5267
5508
|
}
|
|
5268
5509
|
});
|
|
5269
|
-
const _hoisted_1$
|
|
5270
|
-
function _sfc_render$
|
|
5271
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
5510
|
+
const _hoisted_1$I = { class: "onyx-component onyx-info-tooltip" };
|
|
5511
|
+
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5512
|
+
return openBlock(), createElementBlock("span", _hoisted_1$I, [
|
|
5272
5513
|
$setup.triggerType === "click" ? (openBlock(), createBlock($setup["OnyxTooltip"], mergeProps({ key: 0 }, $setup.props, {
|
|
5273
5514
|
open: $setup.isVisible,
|
|
5274
5515
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => $setup.isVisible = $event)
|
|
@@ -5326,8 +5567,8 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5326
5567
|
))
|
|
5327
5568
|
]);
|
|
5328
5569
|
}
|
|
5329
|
-
const OnyxInfoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5330
|
-
const _sfc_main$
|
|
5570
|
+
const OnyxInfoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxInfoTooltip/OnyxInfoTooltip.vue"]]);
|
|
5571
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
5331
5572
|
__name: "OnyxCheckboxGroup",
|
|
5332
5573
|
props: {
|
|
5333
5574
|
truncation: { type: null, required: false, default: "ellipsis" },
|
|
@@ -5385,18 +5626,18 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
5385
5626
|
return __returned__;
|
|
5386
5627
|
}
|
|
5387
5628
|
});
|
|
5388
|
-
const _hoisted_1$
|
|
5389
|
-
const _hoisted_2$
|
|
5629
|
+
const _hoisted_1$H = ["disabled", "aria-label"];
|
|
5630
|
+
const _hoisted_2$y = {
|
|
5390
5631
|
key: 0,
|
|
5391
5632
|
class: "onyx-checkbox-group__label"
|
|
5392
5633
|
};
|
|
5393
|
-
function _sfc_render$
|
|
5634
|
+
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5394
5635
|
return openBlock(), createElementBlock("fieldset", {
|
|
5395
5636
|
class: normalizeClass(["onyx-component", "onyx-checkbox-group", $setup.densityClass]),
|
|
5396
5637
|
disabled: $setup.disabled,
|
|
5397
5638
|
"aria-label": $setup.props.label
|
|
5398
5639
|
}, [
|
|
5399
|
-
!$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
5640
|
+
!$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$y, [
|
|
5400
5641
|
createVNode($setup["OnyxHeadline"], { is: "h3" }, {
|
|
5401
5642
|
default: withCtx(() => [
|
|
5402
5643
|
createTextVNode(
|
|
@@ -5476,15 +5717,15 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5476
5717
|
2
|
|
5477
5718
|
/* CLASS */
|
|
5478
5719
|
)
|
|
5479
|
-
], 10, _hoisted_1$
|
|
5720
|
+
], 10, _hoisted_1$H);
|
|
5480
5721
|
}
|
|
5481
|
-
const OnyxCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5722
|
+
const OnyxCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$W], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue"]]);
|
|
5482
5723
|
const escapeCSS = (key) => {
|
|
5483
5724
|
const name = typeof key === "symbol" && key.description ? key.description : String(key);
|
|
5484
5725
|
if (globalThis.window && window.CSS) return CSS.escape(name);
|
|
5485
5726
|
return name.replace(/\W/g, "-");
|
|
5486
5727
|
};
|
|
5487
|
-
const _sfc_main$
|
|
5728
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
5488
5729
|
__name: "OnyxEmpty",
|
|
5489
5730
|
props: {
|
|
5490
5731
|
density: { type: null, required: false }
|
|
@@ -5501,12 +5742,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
5501
5742
|
return __returned__;
|
|
5502
5743
|
}
|
|
5503
5744
|
});
|
|
5504
|
-
const _hoisted_1$
|
|
5505
|
-
const _hoisted_2$
|
|
5745
|
+
const _hoisted_1$G = { class: "onyx-empty__label onyx-text onyx-truncation-multiline" };
|
|
5746
|
+
const _hoisted_2$x = {
|
|
5506
5747
|
key: 0,
|
|
5507
5748
|
class: "onyx-empty__buttons"
|
|
5508
5749
|
};
|
|
5509
|
-
function _sfc_render$
|
|
5750
|
+
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5510
5751
|
return openBlock(), createElementBlock(
|
|
5511
5752
|
"div",
|
|
5512
5753
|
{
|
|
@@ -5519,10 +5760,10 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5519
5760
|
size: "48px"
|
|
5520
5761
|
}, null, 8, ["icon"])
|
|
5521
5762
|
]),
|
|
5522
|
-
createElementVNode("div", _hoisted_1$
|
|
5763
|
+
createElementVNode("div", _hoisted_1$G, [
|
|
5523
5764
|
renderSlot(_ctx.$slots, "default")
|
|
5524
5765
|
]),
|
|
5525
|
-
!!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
5766
|
+
!!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
|
|
5526
5767
|
renderSlot(_ctx.$slots, "buttons")
|
|
5527
5768
|
])) : createCommentVNode("v-if", true)
|
|
5528
5769
|
],
|
|
@@ -5530,8 +5771,8 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5530
5771
|
/* CLASS */
|
|
5531
5772
|
);
|
|
5532
5773
|
}
|
|
5533
|
-
const OnyxEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5534
|
-
const _sfc_main$
|
|
5774
|
+
const OnyxEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxEmpty/OnyxEmpty.vue"]]);
|
|
5775
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
5535
5776
|
__name: "OnyxTable",
|
|
5536
5777
|
props: {
|
|
5537
5778
|
density: { type: null, required: false },
|
|
@@ -5561,11 +5802,11 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
5561
5802
|
return __returned__;
|
|
5562
5803
|
}
|
|
5563
5804
|
});
|
|
5564
|
-
const _hoisted_1$
|
|
5805
|
+
const _hoisted_1$F = {
|
|
5565
5806
|
key: 0,
|
|
5566
5807
|
class: "onyx-table-wrapper__top"
|
|
5567
5808
|
};
|
|
5568
|
-
const _hoisted_2$
|
|
5809
|
+
const _hoisted_2$w = ["id"];
|
|
5569
5810
|
const _hoisted_3$n = { class: "onyx-table-wrapper__actions" };
|
|
5570
5811
|
const _hoisted_4$h = ["tabindex"];
|
|
5571
5812
|
const _hoisted_5$c = ["aria-labelledby"];
|
|
@@ -5583,7 +5824,7 @@ const _hoisted_13 = {
|
|
|
5583
5824
|
key: 1,
|
|
5584
5825
|
class: "onyx-table-wrapper__bottom"
|
|
5585
5826
|
};
|
|
5586
|
-
function _sfc_render$
|
|
5827
|
+
function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5587
5828
|
return openBlock(), createElementBlock(
|
|
5588
5829
|
"div",
|
|
5589
5830
|
{
|
|
@@ -5591,10 +5832,10 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5591
5832
|
style: normalizeStyle($setup.style)
|
|
5592
5833
|
},
|
|
5593
5834
|
[
|
|
5594
|
-
!!$setup.slots.headline || !!$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
5835
|
+
!!$setup.slots.headline || !!$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
5595
5836
|
createElementVNode("div", { id: $setup.headlineId }, [
|
|
5596
5837
|
renderSlot(_ctx.$slots, "headline")
|
|
5597
|
-
], 8, _hoisted_2$
|
|
5838
|
+
], 8, _hoisted_2$w),
|
|
5598
5839
|
createElementVNode("div", _hoisted_3$n, [
|
|
5599
5840
|
renderSlot(_ctx.$slots, "actions")
|
|
5600
5841
|
])
|
|
@@ -5686,8 +5927,8 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5686
5927
|
/* STYLE */
|
|
5687
5928
|
);
|
|
5688
5929
|
}
|
|
5689
|
-
const OnyxTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5690
|
-
const _sfc_main$
|
|
5930
|
+
const OnyxTable = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$U], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTable/OnyxTable.vue"]]);
|
|
5931
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
5691
5932
|
__name: "OnyxDataGridRenderer",
|
|
5692
5933
|
props: {
|
|
5693
5934
|
density: { type: null, required: false },
|
|
@@ -5721,7 +5962,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
5721
5962
|
return __returned__;
|
|
5722
5963
|
}
|
|
5723
5964
|
});
|
|
5724
|
-
function _sfc_render$
|
|
5965
|
+
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5725
5966
|
return openBlock(), createBlock($setup["OnyxTable"], mergeProps({ class: "onyx-data-grid" }, $setup.props, {
|
|
5726
5967
|
"scroll-container-attrs": $setup.mergeVueProps($setup.props.scrollContainerAttrs, { style: $setup.columnStyle })
|
|
5727
5968
|
}), createSlots({
|
|
@@ -5828,8 +6069,8 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5828
6069
|
})
|
|
5829
6070
|
]), 1040, ["scroll-container-attrs"]);
|
|
5830
6071
|
}
|
|
5831
|
-
const OnyxDataGridRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5832
|
-
const _sfc_main$
|
|
6072
|
+
const OnyxDataGridRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$T], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDataGrid/OnyxDataGridRenderer/OnyxDataGridRenderer.vue"]]);
|
|
6073
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
5833
6074
|
...{ inheritAttrs: false },
|
|
5834
6075
|
__name: "OnyxMiniSearch",
|
|
5835
6076
|
props: {
|
|
@@ -5869,9 +6110,9 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
5869
6110
|
return __returned__;
|
|
5870
6111
|
}
|
|
5871
6112
|
});
|
|
5872
|
-
const _hoisted_1$
|
|
5873
|
-
const _hoisted_2$
|
|
5874
|
-
function _sfc_render$
|
|
6113
|
+
const _hoisted_1$E = ["autofocus", "placeholder", "aria-label"];
|
|
6114
|
+
const _hoisted_2$v = ["aria-label"];
|
|
6115
|
+
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5875
6116
|
return openBlock(), createElementBlock(
|
|
5876
6117
|
"div",
|
|
5877
6118
|
mergeProps({
|
|
@@ -5890,7 +6131,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5890
6131
|
size: "1"
|
|
5891
6132
|
}, $setup.restAttrs, {
|
|
5892
6133
|
"aria-label": $setup.props.label
|
|
5893
|
-
}), null, 16, _hoisted_1$
|
|
6134
|
+
}), null, 16, _hoisted_1$E), [
|
|
5894
6135
|
[vModelText, $setup.modelValue]
|
|
5895
6136
|
]),
|
|
5896
6137
|
createElementVNode("button", {
|
|
@@ -5903,7 +6144,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5903
6144
|
onClick: _cache[2] || (_cache[2] = ($event) => $setup.emit("clear"))
|
|
5904
6145
|
}, [
|
|
5905
6146
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconXSmall }, null, 8, ["icon"])
|
|
5906
|
-
], 40, _hoisted_2$
|
|
6147
|
+
], 40, _hoisted_2$v),
|
|
5907
6148
|
createVNode($setup["OnyxIcon"], {
|
|
5908
6149
|
class: "onyx-mini-search__icon",
|
|
5909
6150
|
icon: $setup.iconSearch
|
|
@@ -5913,11 +6154,11 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5913
6154
|
/* FULL_PROPS */
|
|
5914
6155
|
);
|
|
5915
6156
|
}
|
|
5916
|
-
const OnyxMiniSearch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6157
|
+
const OnyxMiniSearch = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$S], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxMiniSearch/OnyxMiniSearch.vue"]]);
|
|
5917
6158
|
const prepareMapping = (features, key) => features.flatMap((f) => f[key]).filter((f) => f?.func).sort((a, b) => (a?.order ?? 0) - (b?.order ?? 0));
|
|
5918
6159
|
const applyMapping = (mapping, input2) => mapping.reduce((output, m) => m.func(output), input2);
|
|
5919
6160
|
const DataGridRowOptionsSymbol = Symbol("RowOptions");
|
|
5920
|
-
const _sfc_main$
|
|
6161
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
5921
6162
|
__name: "HeaderCell",
|
|
5922
6163
|
props: {
|
|
5923
6164
|
label: { type: String, required: true }
|
|
@@ -5931,17 +6172,17 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
5931
6172
|
return __returned__;
|
|
5932
6173
|
}
|
|
5933
6174
|
});
|
|
5934
|
-
const _hoisted_1$
|
|
5935
|
-
const _hoisted_2$
|
|
6175
|
+
const _hoisted_1$D = { class: "onyx-component onyx-data-grid-header-cell" };
|
|
6176
|
+
const _hoisted_2$u = { class: "onyx-data-grid-header-cell__label" };
|
|
5936
6177
|
const _hoisted_3$m = {
|
|
5937
6178
|
key: 0,
|
|
5938
6179
|
class: "onyx-data-grid-header-cell__actions"
|
|
5939
6180
|
};
|
|
5940
|
-
function _sfc_render$
|
|
5941
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6181
|
+
function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6182
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
5942
6183
|
createElementVNode(
|
|
5943
6184
|
"span",
|
|
5944
|
-
_hoisted_2$
|
|
6185
|
+
_hoisted_2$u,
|
|
5945
6186
|
toDisplayString($setup.props.label),
|
|
5946
6187
|
1
|
|
5947
6188
|
/* TEXT */
|
|
@@ -5951,7 +6192,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5951
6192
|
])) : createCommentVNode("v-if", true)
|
|
5952
6193
|
]);
|
|
5953
6194
|
}
|
|
5954
|
-
const HeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6195
|
+
const HeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$R], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDataGrid/features/HeaderCell.vue"]]);
|
|
5955
6196
|
const FALLBACK_RENDER_VALUE = "-";
|
|
5956
6197
|
const fallback = (opts) => opts?.fallback ?? FALLBACK_RENDER_VALUE;
|
|
5957
6198
|
const createTypeRenderer = (typeRenderer) => Object.freeze(typeRenderer);
|
|
@@ -6453,7 +6694,7 @@ const useErrorClass = (showError) => computed(() => {
|
|
|
6453
6694
|
}
|
|
6454
6695
|
return "onyx-form-element--touched-invalid";
|
|
6455
6696
|
});
|
|
6456
|
-
const _sfc_main$
|
|
6697
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
6457
6698
|
__name: "FormMessage",
|
|
6458
6699
|
props: {
|
|
6459
6700
|
messages: { type: Object, required: true },
|
|
@@ -6467,17 +6708,17 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
6467
6708
|
return __returned__;
|
|
6468
6709
|
}
|
|
6469
6710
|
});
|
|
6470
|
-
const _hoisted_1$
|
|
6711
|
+
const _hoisted_1$C = {
|
|
6471
6712
|
class: /* @__PURE__ */ normalizeClass(["onyx-truncation-ellipsis"])
|
|
6472
6713
|
};
|
|
6473
|
-
function _sfc_render$
|
|
6714
|
+
function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6474
6715
|
return openBlock(), createBlock(resolveDynamicComponent($props.messages.hidden ? $setup.OnyxVisuallyHidden : "span"), {
|
|
6475
6716
|
class: normalizeClass(["onyx-component", "onyx-form-message", `onyx-form-message__${$setup.props.type}`])
|
|
6476
6717
|
}, {
|
|
6477
6718
|
default: withCtx(() => [
|
|
6478
6719
|
createElementVNode(
|
|
6479
6720
|
"span",
|
|
6480
|
-
_hoisted_1$
|
|
6721
|
+
_hoisted_1$C,
|
|
6481
6722
|
toDisplayString($setup.props.messages.shortMessage),
|
|
6482
6723
|
1
|
|
6483
6724
|
/* TEXT */
|
|
@@ -6495,8 +6736,8 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6495
6736
|
/* STABLE */
|
|
6496
6737
|
}, 8, ["class"]);
|
|
6497
6738
|
}
|
|
6498
|
-
const FormMessage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6499
|
-
const _sfc_main$
|
|
6739
|
+
const FormMessage = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$Q], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFormElement/FormMessage.vue"]]);
|
|
6740
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
6500
6741
|
__name: "OnyxFormElement",
|
|
6501
6742
|
props: {
|
|
6502
6743
|
disabled: { type: [Boolean, Symbol], required: false },
|
|
@@ -6569,17 +6810,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
6569
6810
|
return __returned__;
|
|
6570
6811
|
}
|
|
6571
6812
|
});
|
|
6572
|
-
const _hoisted_1$
|
|
6813
|
+
const _hoisted_1$B = {
|
|
6573
6814
|
key: 0,
|
|
6574
6815
|
class: "onyx-form-element__label onyx-text--small"
|
|
6575
6816
|
};
|
|
6576
|
-
const _hoisted_2$
|
|
6817
|
+
const _hoisted_2$t = ["for"];
|
|
6577
6818
|
const _hoisted_3$l = {
|
|
6578
6819
|
key: 1,
|
|
6579
6820
|
class: "onyx-form-element__footer onyx-text--small"
|
|
6580
6821
|
};
|
|
6581
6822
|
const _hoisted_4$g = { class: "onyx-form-element__footer-messages" };
|
|
6582
|
-
function _sfc_render$
|
|
6823
|
+
function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6583
6824
|
return openBlock(), createElementBlock(
|
|
6584
6825
|
"div",
|
|
6585
6826
|
{
|
|
@@ -6591,11 +6832,11 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6591
6832
|
])
|
|
6592
6833
|
},
|
|
6593
6834
|
[
|
|
6594
|
-
!$setup.props.hideLabel ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6835
|
+
!$setup.props.hideLabel ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
6595
6836
|
createElementVNode("label", {
|
|
6596
6837
|
for: $setup.props.id,
|
|
6597
6838
|
class: "onyx-truncation-ellipsis"
|
|
6598
|
-
}, toDisplayString($setup.props.label), 9, _hoisted_2$
|
|
6839
|
+
}, toDisplayString($setup.props.label), 9, _hoisted_2$t),
|
|
6599
6840
|
$setup.props.required ? (openBlock(), createElementBlock(
|
|
6600
6841
|
"span",
|
|
6601
6842
|
{
|
|
@@ -6666,8 +6907,8 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6666
6907
|
/* CLASS */
|
|
6667
6908
|
);
|
|
6668
6909
|
}
|
|
6669
|
-
const OnyxFormElement = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6670
|
-
const _sfc_main$
|
|
6910
|
+
const OnyxFormElement = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$P], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFormElement/OnyxFormElement.vue"]]);
|
|
6911
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
6671
6912
|
...{ inheritAttrs: false },
|
|
6672
6913
|
__name: "OnyxSelectInput",
|
|
6673
6914
|
props: {
|
|
@@ -6749,9 +6990,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
6749
6990
|
return __returned__;
|
|
6750
6991
|
}
|
|
6751
6992
|
});
|
|
6752
|
-
const _hoisted_1$
|
|
6753
|
-
const _hoisted_2$
|
|
6754
|
-
function _sfc_render$
|
|
6993
|
+
const _hoisted_1$A = ["id", "readonly", "placeholder", "required", "disabled", "aria-label", "title", "value", "autofocus"];
|
|
6994
|
+
const _hoisted_2$s = ["aria-label", "title", "disabled"];
|
|
6995
|
+
function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6755
6996
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
6756
6997
|
"div",
|
|
6757
6998
|
mergeProps({
|
|
@@ -6816,7 +7057,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6816
7057
|
autofocus: $setup.props.autofocus,
|
|
6817
7058
|
autocomplete: "off",
|
|
6818
7059
|
onKeydown: $setup.blockTyping
|
|
6819
|
-
}), null, 16, _hoisted_1$
|
|
7060
|
+
}), null, 16, _hoisted_1$A), [
|
|
6820
7061
|
[$setup["vCustomValidity"]]
|
|
6821
7062
|
]),
|
|
6822
7063
|
$setup.props.textMode === "preview" && $setup.selectionCount > 0 ? (openBlock(), createBlock($setup["OnyxTooltip"], {
|
|
@@ -6855,7 +7096,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6855
7096
|
disabled: $setup.disabled || $setup.props.readonly || $setup.props.loading
|
|
6856
7097
|
}, [
|
|
6857
7098
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronDownUp }, null, 8, ["icon"])
|
|
6858
|
-
], 8, _hoisted_2$
|
|
7099
|
+
], 8, _hoisted_2$s),
|
|
6859
7100
|
!$setup.props.hideSuccessIcon && $setup.successMessages ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
6860
7101
|
key: 2,
|
|
6861
7102
|
class: "onyx-select-input__check-icon",
|
|
@@ -6872,8 +7113,8 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6872
7113
|
/* FULL_PROPS */
|
|
6873
7114
|
));
|
|
6874
7115
|
}
|
|
6875
|
-
const OnyxSelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6876
|
-
const _sfc_main$
|
|
7116
|
+
const OnyxSelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$O], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSelectInput/OnyxSelectInput.vue"]]);
|
|
7117
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
6877
7118
|
__name: "OnyxSelectOption",
|
|
6878
7119
|
props: {
|
|
6879
7120
|
active: { type: Boolean, required: false, default: false },
|
|
@@ -6891,8 +7132,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
6891
7132
|
return __returned__;
|
|
6892
7133
|
}
|
|
6893
7134
|
});
|
|
6894
|
-
const _hoisted_1$
|
|
6895
|
-
function _sfc_render$
|
|
7135
|
+
const _hoisted_1$z = ["checked", "aria-labelledby", "disabled", "indeterminate"];
|
|
7136
|
+
function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6896
7137
|
return openBlock(), createBlock($setup["OnyxListItem"], mergeProps({ class: "onyx-component onyx-select-option" }, $setup.props, {
|
|
6897
7138
|
checked: !!_ctx.$attrs["aria-checked"],
|
|
6898
7139
|
selected: !!_ctx.$attrs["aria-selected"],
|
|
@@ -6909,7 +7150,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6909
7150
|
tabindex: "-1",
|
|
6910
7151
|
class: "onyx-select-option__checkbox",
|
|
6911
7152
|
type: "checkbox"
|
|
6912
|
-
}, null, 8, _hoisted_1$
|
|
7153
|
+
}, null, 8, _hoisted_1$z)) : createCommentVNode("v-if", true),
|
|
6913
7154
|
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
6914
7155
|
key: 1,
|
|
6915
7156
|
icon: $setup.props.icon
|
|
@@ -6930,8 +7171,8 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6930
7171
|
/* FORWARDED */
|
|
6931
7172
|
}, 16, ["checked", "selected", "disabled"]);
|
|
6932
7173
|
}
|
|
6933
|
-
const OnyxSelectOption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6934
|
-
const _sfc_main$
|
|
7174
|
+
const OnyxSelectOption = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$N], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSelectOption/OnyxSelectOption.vue"]]);
|
|
7175
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
6935
7176
|
__name: "OnyxSelect",
|
|
6936
7177
|
props: {
|
|
6937
7178
|
density: { type: null, required: false },
|
|
@@ -7201,11 +7442,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
7201
7442
|
return __returned__;
|
|
7202
7443
|
}
|
|
7203
7444
|
});
|
|
7204
|
-
const _hoisted_1$
|
|
7445
|
+
const _hoisted_1$y = {
|
|
7205
7446
|
ref: "selectRef",
|
|
7206
7447
|
class: "onyx-component onyx-select-wrapper"
|
|
7207
7448
|
};
|
|
7208
|
-
const _hoisted_2$
|
|
7449
|
+
const _hoisted_2$r = {
|
|
7209
7450
|
class: "onyx-select__wrapper",
|
|
7210
7451
|
tabindex: "-1"
|
|
7211
7452
|
};
|
|
@@ -7235,10 +7476,10 @@ const _hoisted_8$4 = {
|
|
|
7235
7476
|
key: 0,
|
|
7236
7477
|
class: "onyx-select__description onyx-text--small"
|
|
7237
7478
|
};
|
|
7238
|
-
function _sfc_render$
|
|
7479
|
+
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7239
7480
|
return openBlock(), createElementBlock(
|
|
7240
7481
|
"div",
|
|
7241
|
-
_hoisted_1$
|
|
7482
|
+
_hoisted_1$y,
|
|
7242
7483
|
[
|
|
7243
7484
|
createVNode($setup["OnyxBasicPopover"], {
|
|
7244
7485
|
class: normalizeClass($setup.densityClass),
|
|
@@ -7257,7 +7498,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7257
7498
|
}), null, 16, ["show-focus", "autofocus"])
|
|
7258
7499
|
]),
|
|
7259
7500
|
content: withCtx(() => [
|
|
7260
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_2$
|
|
7501
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_2$r, [
|
|
7261
7502
|
$setup.props.withSearch ? (openBlock(), createBlock($setup["OnyxMiniSearch"], mergeProps({
|
|
7262
7503
|
key: 0,
|
|
7263
7504
|
ref: "miniSearchRef",
|
|
@@ -7427,9 +7668,9 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7427
7668
|
/* NEED_PATCH */
|
|
7428
7669
|
);
|
|
7429
7670
|
}
|
|
7430
|
-
const OnyxSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7671
|
+
const OnyxSelect = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$M], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSelect/OnyxSelect.vue"]]);
|
|
7431
7672
|
const pageSize = 100;
|
|
7432
|
-
const _sfc_main$
|
|
7673
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
7433
7674
|
__name: "OnyxSelectPagination",
|
|
7434
7675
|
props: {
|
|
7435
7676
|
density: { type: null, required: false },
|
|
@@ -7480,11 +7721,11 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
7480
7721
|
return __returned__;
|
|
7481
7722
|
}
|
|
7482
7723
|
});
|
|
7483
|
-
const _hoisted_1$
|
|
7484
|
-
const _hoisted_2$
|
|
7724
|
+
const _hoisted_1$x = ["aria-label"];
|
|
7725
|
+
const _hoisted_2$q = { class: "onyx-pagination__count" };
|
|
7485
7726
|
const _hoisted_3$j = ["aria-label", "disabled"];
|
|
7486
7727
|
const _hoisted_4$e = ["aria-label", "disabled"];
|
|
7487
|
-
function _sfc_render$
|
|
7728
|
+
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7488
7729
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
7489
7730
|
key: 0,
|
|
7490
7731
|
class: normalizeClass(["onyx-pagination-skeleton", "onyx-text", $setup.densityClass])
|
|
@@ -7515,7 +7756,7 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7515
7756
|
}, null, 8, ["search-term", "label", "list-label", "options", "model-value", "value-label", "disabled"]),
|
|
7516
7757
|
createElementVNode(
|
|
7517
7758
|
"div",
|
|
7518
|
-
_hoisted_2$
|
|
7759
|
+
_hoisted_2$q,
|
|
7519
7760
|
toDisplayString($setup.t("pagination.ofPages", { n: $setup.props.pages, pages: $setup.n($setup.props.pages, "decimal") })),
|
|
7520
7761
|
1
|
|
7521
7762
|
/* TEXT */
|
|
@@ -7538,10 +7779,10 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7538
7779
|
}, [
|
|
7539
7780
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronRightSmall }, null, 8, ["icon"])
|
|
7540
7781
|
], 8, _hoisted_4$e)
|
|
7541
|
-
], 14, _hoisted_1$
|
|
7782
|
+
], 14, _hoisted_1$x));
|
|
7542
7783
|
}
|
|
7543
|
-
const OnyxSelectPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7544
|
-
const _sfc_main$
|
|
7784
|
+
const OnyxSelectPagination = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$L], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxPagination/OnyxSelectPagination.vue"]]);
|
|
7785
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
7545
7786
|
__name: "OnyxPagination",
|
|
7546
7787
|
props: {
|
|
7547
7788
|
density: { type: null, required: false },
|
|
@@ -7560,7 +7801,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7560
7801
|
return __returned__;
|
|
7561
7802
|
}
|
|
7562
7803
|
});
|
|
7563
|
-
function _sfc_render$
|
|
7804
|
+
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7564
7805
|
return openBlock(), createBlock(
|
|
7565
7806
|
$setup["OnyxSelectPagination"],
|
|
7566
7807
|
mergeProps($setup.props, {
|
|
@@ -7571,7 +7812,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7571
7812
|
/* FULL_PROPS */
|
|
7572
7813
|
);
|
|
7573
7814
|
}
|
|
7574
|
-
const OnyxPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7815
|
+
const OnyxPagination = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$K], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxPagination/OnyxPagination.vue"]]);
|
|
7575
7816
|
const SELECTION_FEATURE = Symbol("Selection");
|
|
7576
7817
|
const SELECTION_MUTATION_ORDER = 1e3;
|
|
7577
7818
|
const useSelection = (options) => createFeature((ctx) => {
|
|
@@ -7849,7 +8090,7 @@ const BASE_FEATURE = (options) => createFeature(({ skeleton }) => {
|
|
|
7849
8090
|
}
|
|
7850
8091
|
};
|
|
7851
8092
|
});
|
|
7852
|
-
const _sfc_main$
|
|
8093
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
7853
8094
|
...{ inheritAttrs: false },
|
|
7854
8095
|
__name: "OnyxDataGrid",
|
|
7855
8096
|
props: {
|
|
@@ -7927,7 +8168,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
7927
8168
|
return __returned__;
|
|
7928
8169
|
}
|
|
7929
8170
|
});
|
|
7930
|
-
function _sfc_render$
|
|
8171
|
+
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7931
8172
|
return openBlock(), createBlock($setup["OnyxDataGridRenderer"], mergeProps(
|
|
7932
8173
|
{
|
|
7933
8174
|
"column-groups": $setup.rendererColumnGroups,
|
|
@@ -7962,7 +8203,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7962
8203
|
} : void 0
|
|
7963
8204
|
]), 1040, ["column-groups", "columns", "rows", "scroll-container-attrs"]);
|
|
7964
8205
|
}
|
|
7965
|
-
const OnyxDataGrid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8206
|
+
const OnyxDataGrid = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$J], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDataGrid/OnyxDataGrid.vue"]]);
|
|
7966
8207
|
const HIDE_COLUMNS_FEATURE = Symbol("HideColumnsFeature");
|
|
7967
8208
|
const HIDDEN_COLUMN = Symbol("HiddenColumn");
|
|
7968
8209
|
const useHideColumns = (options) => createFeature((ctx) => {
|
|
@@ -8068,7 +8309,7 @@ const useHideColumns = (options) => createFeature((ctx) => {
|
|
|
8068
8309
|
}
|
|
8069
8310
|
};
|
|
8070
8311
|
});
|
|
8071
|
-
const _sfc_main$
|
|
8312
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
8072
8313
|
__name: "OnyxResizeHandle",
|
|
8073
8314
|
props: {
|
|
8074
8315
|
element: { type: null, required: true },
|
|
@@ -8142,7 +8383,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
8142
8383
|
return __returned__;
|
|
8143
8384
|
}
|
|
8144
8385
|
});
|
|
8145
|
-
function _sfc_render$
|
|
8386
|
+
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8146
8387
|
return openBlock(), createElementBlock(
|
|
8147
8388
|
"button",
|
|
8148
8389
|
{
|
|
@@ -8176,7 +8417,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8176
8417
|
/* CLASS, NEED_HYDRATION */
|
|
8177
8418
|
);
|
|
8178
8419
|
}
|
|
8179
|
-
const OnyxResizeHandle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8420
|
+
const OnyxResizeHandle = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$I], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxResizeHandle/OnyxResizeHandle.vue"]]);
|
|
8180
8421
|
const RESIZING_FEATURE = Symbol("Resizing");
|
|
8181
8422
|
const FILLER_COLUMN = Symbol("FILLER_COLUMN");
|
|
8182
8423
|
const useResizing = (options) => createFeature((ctx) => {
|
|
@@ -8318,7 +8559,7 @@ const DEFAULT_COMPARES = Object.freeze({
|
|
|
8318
8559
|
skeleton: () => 0,
|
|
8319
8560
|
boolean: BOOLEAN_COMPARE
|
|
8320
8561
|
});
|
|
8321
|
-
const _sfc_main$
|
|
8562
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
8322
8563
|
__name: "SortAction",
|
|
8323
8564
|
props: {
|
|
8324
8565
|
columnLabel: { type: String, required: true },
|
|
@@ -8342,14 +8583,14 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
8342
8583
|
return __returned__;
|
|
8343
8584
|
}
|
|
8344
8585
|
});
|
|
8345
|
-
function _sfc_render$
|
|
8586
|
+
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8346
8587
|
return openBlock(), createBlock($setup["OnyxSystemButton"], {
|
|
8347
8588
|
label: $setup.buttonLabel,
|
|
8348
8589
|
icon: $setup.icon,
|
|
8349
8590
|
color: "medium"
|
|
8350
8591
|
}, null, 8, ["label", "icon"]);
|
|
8351
8592
|
}
|
|
8352
|
-
const SortAction = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8593
|
+
const SortAction = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$H], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDataGrid/features/sorting/SortAction.vue"]]);
|
|
8353
8594
|
const nextSortDirection = (current, skipNone) => {
|
|
8354
8595
|
switch (current) {
|
|
8355
8596
|
case "asc":
|
|
@@ -8592,7 +8833,7 @@ const all = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
8592
8833
|
useSorting,
|
|
8593
8834
|
useStickyColumns
|
|
8594
8835
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8595
|
-
const _sfc_main$
|
|
8836
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
8596
8837
|
...{ inheritAttrs: false },
|
|
8597
8838
|
__name: "OnyxDatePicker",
|
|
8598
8839
|
props: {
|
|
@@ -8664,9 +8905,9 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
8664
8905
|
return __returned__;
|
|
8665
8906
|
}
|
|
8666
8907
|
});
|
|
8667
|
-
const _hoisted_1$
|
|
8668
|
-
const _hoisted_2$
|
|
8669
|
-
function _sfc_render$
|
|
8908
|
+
const _hoisted_1$w = { class: "onyx-datepicker__wrapper" };
|
|
8909
|
+
const _hoisted_2$p = ["id", "type", "required", "autofocus", "name", "readonly", "disabled", "aria-label", "title", "min", "max"];
|
|
8910
|
+
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8670
8911
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
8671
8912
|
"div",
|
|
8672
8913
|
mergeProps({
|
|
@@ -8695,7 +8936,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8695
8936
|
message: $setup.messages
|
|
8696
8937
|
}), {
|
|
8697
8938
|
default: withCtx(({ id: inputId }) => [
|
|
8698
|
-
createElementVNode("div", _hoisted_1$
|
|
8939
|
+
createElementVNode("div", _hoisted_1$w, [
|
|
8699
8940
|
$setup.props.loading ? (openBlock(), createBlock($setup["OnyxLoadingIndicator"], {
|
|
8700
8941
|
key: 0,
|
|
8701
8942
|
class: "onyx-datepicker__loading",
|
|
@@ -8717,7 +8958,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8717
8958
|
title: $setup.props.hideLabel ? $setup.props.label : void 0,
|
|
8718
8959
|
min: $setup.getNormalizedDate($setup.props.min),
|
|
8719
8960
|
max: $setup.getNormalizedDate($setup.props.max)
|
|
8720
|
-
}, $setup.restAttrs), null, 16, _hoisted_2$
|
|
8961
|
+
}, $setup.restAttrs), null, 16, _hoisted_2$p)), [
|
|
8721
8962
|
[vModelDynamic, $setup.value],
|
|
8722
8963
|
[$setup["vCustomValidity"]]
|
|
8723
8964
|
])
|
|
@@ -8731,9 +8972,9 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8731
8972
|
/* FULL_PROPS */
|
|
8732
8973
|
));
|
|
8733
8974
|
}
|
|
8734
|
-
const OnyxDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8975
|
+
const OnyxDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$G], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDatePicker/OnyxDatePicker.vue"]]);
|
|
8735
8976
|
const DIALOG_ALIGNMENTS = ["left", "center", "right"];
|
|
8736
|
-
const _sfc_main$
|
|
8977
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
8737
8978
|
__name: "OnyxDialog",
|
|
8738
8979
|
props: {
|
|
8739
8980
|
density: { type: null, required: false },
|
|
@@ -8742,6 +8983,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
8742
8983
|
position: { type: String, required: false },
|
|
8743
8984
|
alignment: { type: String, required: false },
|
|
8744
8985
|
disabled: { type: Boolean, required: false },
|
|
8986
|
+
clipping: { type: Boolean, required: false, default: true },
|
|
8745
8987
|
nonDismissible: { type: Boolean, required: false }
|
|
8746
8988
|
},
|
|
8747
8989
|
emits: ["update:open"],
|
|
@@ -8765,15 +9007,15 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
8765
9007
|
return __returned__;
|
|
8766
9008
|
}
|
|
8767
9009
|
});
|
|
8768
|
-
const _hoisted_1$
|
|
8769
|
-
const _hoisted_2$
|
|
9010
|
+
const _hoisted_1$v = { class: "onyx-dialog__header" };
|
|
9011
|
+
const _hoisted_2$o = { class: "onyx-dialog__headline" };
|
|
8770
9012
|
const _hoisted_3$i = { class: "onyx-dialog__headline-content" };
|
|
8771
9013
|
const _hoisted_4$d = { class: "onyx-dialog__body" };
|
|
8772
9014
|
const _hoisted_5$a = {
|
|
8773
9015
|
key: 0,
|
|
8774
9016
|
class: "onyx-dialog__footer"
|
|
8775
9017
|
};
|
|
8776
|
-
function _sfc_render$
|
|
9018
|
+
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8777
9019
|
return openBlock(), createBlock($setup["OnyxBasicPopover"], mergeProps($setup.props, {
|
|
8778
9020
|
open: $setup.isExpanded,
|
|
8779
9021
|
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => $setup.isExpanded = $event),
|
|
@@ -8783,8 +9025,8 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8783
9025
|
renderSlot(_ctx.$slots, "trigger", { trigger })
|
|
8784
9026
|
]),
|
|
8785
9027
|
content: withCtx(() => [
|
|
8786
|
-
createElementVNode("div", _hoisted_1$
|
|
8787
|
-
createElementVNode("div", _hoisted_2$
|
|
9028
|
+
createElementVNode("div", _hoisted_1$v, [
|
|
9029
|
+
createElementVNode("div", _hoisted_2$o, [
|
|
8788
9030
|
createElementVNode("div", _hoisted_3$i, [
|
|
8789
9031
|
renderSlot(_ctx.$slots, "headline", {
|
|
8790
9032
|
label: $setup.props.label
|
|
@@ -8822,101 +9064,48 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8822
9064
|
/* FORWARDED */
|
|
8823
9065
|
}, 16, ["open", "class"]);
|
|
8824
9066
|
}
|
|
8825
|
-
const OnyxDialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8826
|
-
const _sfc_main$
|
|
9067
|
+
const OnyxDialog = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$F], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDialog/OnyxDialog.vue"]]);
|
|
9068
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
8827
9069
|
__name: "OnyxForm",
|
|
8828
9070
|
props: {
|
|
8829
9071
|
disabled: { type: Boolean, required: false, default: false },
|
|
8830
9072
|
showError: { type: null, required: false, default: "touched" },
|
|
8831
|
-
requiredMarker: { type: null, required: false },
|
|
8832
|
-
skeleton: { type: Boolean, required: false },
|
|
8833
|
-
density: { type: null, required: false }
|
|
8834
|
-
},
|
|
8835
|
-
setup(__props, { expose: __expose }) {
|
|
8836
|
-
__expose();
|
|
8837
|
-
const props = __props;
|
|
8838
|
-
provideFormContext(props);
|
|
8839
|
-
provideSkeletonContext(props);
|
|
8840
|
-
const { densityClass } = useDensity(props);
|
|
8841
|
-
const __returned__ = { props, densityClass };
|
|
8842
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
8843
|
-
return __returned__;
|
|
8844
|
-
}
|
|
8845
|
-
});
|
|
8846
|
-
function _sfc_render$
|
|
8847
|
-
return openBlock(), createElementBlock(
|
|
8848
|
-
"form",
|
|
8849
|
-
{
|
|
8850
|
-
class: normalizeClass({
|
|
8851
|
-
"onyx-component": true,
|
|
8852
|
-
"onyx-form": true,
|
|
8853
|
-
...$setup.densityClass
|
|
8854
|
-
})
|
|
8855
|
-
},
|
|
8856
|
-
[
|
|
8857
|
-
renderSlot(_ctx.$slots, "default")
|
|
8858
|
-
],
|
|
8859
|
-
2
|
|
8860
|
-
/* CLASS */
|
|
8861
|
-
);
|
|
8862
|
-
}
|
|
8863
|
-
const OnyxForm = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$G], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxForm/OnyxForm.vue"]]);
|
|
8864
|
-
const HEADLINE_TYPES = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
8865
|
-
const ICON_SIZES = ["12px", "16px", "24px", "32px", "48px", "64px", "96px"];
|
|
8866
|
-
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
8867
|
-
__name: "OnyxIconButton",
|
|
8868
|
-
props: {
|
|
8869
|
-
density: { type: null, required: false },
|
|
8870
|
-
autofocus: { type: Boolean, required: false },
|
|
8871
|
-
link: { type: null, required: false },
|
|
8872
|
-
label: { type: String, required: true },
|
|
8873
|
-
disabled: { type: [Boolean, Symbol], required: false, default: FORM_INJECTED_SYMBOL },
|
|
8874
|
-
type: { type: null, required: false, default: "button" },
|
|
8875
|
-
color: { type: null, required: false, default: "primary" },
|
|
8876
|
-
loading: { type: Boolean, required: false },
|
|
8877
|
-
icon: { type: String, required: false },
|
|
8878
|
-
skeleton: { type: [Symbol, Boolean, Number], required: false, default: SKELETON_INJECTED_SYMBOL }
|
|
8879
|
-
},
|
|
8880
|
-
setup(__props, { expose: __expose }) {
|
|
8881
|
-
__expose();
|
|
8882
|
-
const props = __props;
|
|
8883
|
-
const { densityClass } = useDensity(props);
|
|
8884
|
-
const skeleton = useSkeletonContext(props);
|
|
8885
|
-
const __returned__ = { props, densityClass, skeleton, ButtonOrLinkLayout, OnyxIcon, OnyxLoadingIndicator, OnyxSkeleton };
|
|
8886
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
8887
|
-
return __returned__;
|
|
8888
|
-
}
|
|
8889
|
-
});
|
|
8890
|
-
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8891
|
-
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
8892
|
-
key: 0,
|
|
8893
|
-
class: normalizeClass(["onyx-icon-button-skeleton", $setup.densityClass])
|
|
8894
|
-
}, null, 8, ["class"])) : (openBlock(), createBlock($setup["ButtonOrLinkLayout"], mergeProps({ key: 1 }, $setup.props, {
|
|
8895
|
-
"aria-label": $setup.props.label,
|
|
8896
|
-
title: $setup.props.label,
|
|
8897
|
-
class: [
|
|
8898
|
-
"onyx-component",
|
|
8899
|
-
"onyx-icon-button",
|
|
8900
|
-
`onyx-icon-button--${$setup.props.color}`,
|
|
8901
|
-
{ "onyx-icon-button--loading": $setup.props.loading },
|
|
8902
|
-
$setup.densityClass
|
|
8903
|
-
]
|
|
8904
|
-
}), {
|
|
8905
|
-
default: withCtx(() => [
|
|
8906
|
-
$setup.props.loading ? (openBlock(), createBlock($setup["OnyxLoadingIndicator"], {
|
|
8907
|
-
key: 0,
|
|
8908
|
-
type: "circle"
|
|
8909
|
-
})) : $setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
8910
|
-
key: 1,
|
|
8911
|
-
icon: $setup.props.icon
|
|
8912
|
-
}, null, 8, ["icon"])) : renderSlot(_ctx.$slots, "default", { key: 2 })
|
|
8913
|
-
]),
|
|
8914
|
-
_: 3
|
|
8915
|
-
/* FORWARDED */
|
|
8916
|
-
}, 16, ["aria-label", "title", "class"]));
|
|
9073
|
+
requiredMarker: { type: null, required: false },
|
|
9074
|
+
skeleton: { type: Boolean, required: false },
|
|
9075
|
+
density: { type: null, required: false }
|
|
9076
|
+
},
|
|
9077
|
+
setup(__props, { expose: __expose }) {
|
|
9078
|
+
__expose();
|
|
9079
|
+
const props = __props;
|
|
9080
|
+
provideFormContext(props);
|
|
9081
|
+
provideSkeletonContext(props);
|
|
9082
|
+
const { densityClass } = useDensity(props);
|
|
9083
|
+
const __returned__ = { props, densityClass };
|
|
9084
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
9085
|
+
return __returned__;
|
|
9086
|
+
}
|
|
9087
|
+
});
|
|
9088
|
+
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9089
|
+
return openBlock(), createElementBlock(
|
|
9090
|
+
"form",
|
|
9091
|
+
{
|
|
9092
|
+
class: normalizeClass({
|
|
9093
|
+
"onyx-component": true,
|
|
9094
|
+
"onyx-form": true,
|
|
9095
|
+
...$setup.densityClass
|
|
9096
|
+
})
|
|
9097
|
+
},
|
|
9098
|
+
[
|
|
9099
|
+
renderSlot(_ctx.$slots, "default")
|
|
9100
|
+
],
|
|
9101
|
+
2
|
|
9102
|
+
/* CLASS */
|
|
9103
|
+
);
|
|
8917
9104
|
}
|
|
8918
|
-
const
|
|
8919
|
-
const
|
|
9105
|
+
const OnyxForm = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$E], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxForm/OnyxForm.vue"]]);
|
|
9106
|
+
const HEADLINE_TYPES = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
9107
|
+
const ICON_SIZES = ["12px", "16px", "24px", "32px", "48px", "64px", "96px"];
|
|
9108
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
8920
9109
|
...{ inheritAttrs: false },
|
|
8921
9110
|
__name: "OnyxImage",
|
|
8922
9111
|
props: {
|
|
@@ -8955,10 +9144,10 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
8955
9144
|
return __returned__;
|
|
8956
9145
|
}
|
|
8957
9146
|
});
|
|
8958
|
-
const _hoisted_1$
|
|
8959
|
-
const _hoisted_2$
|
|
9147
|
+
const _hoisted_1$u = ["src", "alt"];
|
|
9148
|
+
const _hoisted_2$n = ["src", "alt"];
|
|
8960
9149
|
const _hoisted_3$h = { class: "onyx-image__alt onyx-text--small" };
|
|
8961
|
-
function _sfc_render$
|
|
9150
|
+
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8962
9151
|
return openBlock(), createElementBlock(
|
|
8963
9152
|
"figure",
|
|
8964
9153
|
mergeProps($setup.rootAttrs, {
|
|
@@ -8983,7 +9172,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8983
9172
|
src: $setup.imageSrc.light,
|
|
8984
9173
|
alt: $setup.props.alt,
|
|
8985
9174
|
onError: _cache[0] || (_cache[0] = ($event) => $setup.isError = true)
|
|
8986
|
-
}), null, 16, _hoisted_1$
|
|
9175
|
+
}), null, 16, _hoisted_1$u),
|
|
8987
9176
|
$setup.imageSrc.dark ? (openBlock(), createElementBlock("img", mergeProps({
|
|
8988
9177
|
key: 0,
|
|
8989
9178
|
class: "onyx-image__source onyx-image__source--dark"
|
|
@@ -8991,7 +9180,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8991
9180
|
src: $setup.imageSrc.dark,
|
|
8992
9181
|
alt: $setup.props.alt,
|
|
8993
9182
|
onError: _cache[1] || (_cache[1] = ($event) => $setup.isError = true)
|
|
8994
|
-
}), null, 16, _hoisted_2$
|
|
9183
|
+
}), null, 16, _hoisted_2$n)) : createCommentVNode("v-if", true),
|
|
8995
9184
|
$setup.isError ? (openBlock(), createElementBlock(
|
|
8996
9185
|
"div",
|
|
8997
9186
|
mergeProps({
|
|
@@ -9024,7 +9213,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9024
9213
|
/* FULL_PROPS */
|
|
9025
9214
|
);
|
|
9026
9215
|
}
|
|
9027
|
-
const OnyxImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9216
|
+
const OnyxImage = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$D], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxImage/OnyxImage.vue"]]);
|
|
9028
9217
|
const IMAGE_SHAPES = ["rounded", "circle", "clip", "clip-inverted"];
|
|
9029
9218
|
const useLenientMaxLengthValidation = (options) => {
|
|
9030
9219
|
const { t } = injectI18n();
|
|
@@ -9065,7 +9254,7 @@ const MOBILE_NAV_BAR_INJECTION_KEY = Symbol();
|
|
|
9065
9254
|
const NAV_BAR_IS_TOP_LEVEL_INJECTION_KEY = Symbol();
|
|
9066
9255
|
const NAV_BAR_MORE_LIST_INJECTION_KEY = Symbol();
|
|
9067
9256
|
const NAV_BAR_MORE_LIST_TARGET_INJECTION_KEY = Symbol();
|
|
9068
|
-
const _sfc_main$
|
|
9257
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
9069
9258
|
__name: "OnyxSeparator",
|
|
9070
9259
|
props: {
|
|
9071
9260
|
orientation: { type: null, required: false, default: "horizontal" }
|
|
@@ -9082,16 +9271,16 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
9082
9271
|
return __returned__;
|
|
9083
9272
|
}
|
|
9084
9273
|
});
|
|
9085
|
-
const _hoisted_1$
|
|
9086
|
-
function _sfc_render$
|
|
9274
|
+
const _hoisted_1$t = ["aria-orientation"];
|
|
9275
|
+
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9087
9276
|
return openBlock(), createElementBlock("div", {
|
|
9088
9277
|
class: normalizeClass(["onyx-component onyx-separator", { "onyx-separator--vertical": $setup.isVertical }]),
|
|
9089
9278
|
role: "separator",
|
|
9090
9279
|
"aria-orientation": $setup.props.orientation
|
|
9091
|
-
}, null, 10, _hoisted_1$
|
|
9280
|
+
}, null, 10, _hoisted_1$t);
|
|
9092
9281
|
}
|
|
9093
|
-
const OnyxSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9094
|
-
const _sfc_main$
|
|
9282
|
+
const OnyxSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSeparator/OnyxSeparator.vue"]]);
|
|
9283
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
9095
9284
|
...{ inheritAttrs: false },
|
|
9096
9285
|
__name: "OnyxInput",
|
|
9097
9286
|
props: {
|
|
@@ -9179,10 +9368,10 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
9179
9368
|
return __returned__;
|
|
9180
9369
|
}
|
|
9181
9370
|
});
|
|
9182
|
-
const _hoisted_1$
|
|
9183
|
-
const _hoisted_2$
|
|
9371
|
+
const _hoisted_1$s = { class: "onyx-input__wrapper" };
|
|
9372
|
+
const _hoisted_2$m = ["id", "placeholder", "type", "required", "autocapitalize", "autocomplete", "autofocus", "name", "pattern", "readonly", "disabled", "maxlength", "minlength", "aria-label", "title"];
|
|
9184
9373
|
const _hoisted_3$g = ["aria-label", "title"];
|
|
9185
|
-
function _sfc_render$
|
|
9374
|
+
function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9186
9375
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
9187
9376
|
"div",
|
|
9188
9377
|
mergeProps({
|
|
@@ -9211,7 +9400,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9211
9400
|
message: $setup.messages
|
|
9212
9401
|
}), {
|
|
9213
9402
|
default: withCtx(({ id: inputId }) => [
|
|
9214
|
-
createElementVNode("div", _hoisted_1$
|
|
9403
|
+
createElementVNode("div", _hoisted_1$s, [
|
|
9215
9404
|
renderSlot(_ctx.$slots, "leading"),
|
|
9216
9405
|
$setup.slots.leading ? (openBlock(), createBlock($setup["OnyxSeparator"], {
|
|
9217
9406
|
key: 0,
|
|
@@ -9242,7 +9431,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9242
9431
|
minlength: $setup.props.minlength,
|
|
9243
9432
|
"aria-label": $setup.props.hideLabel ? $setup.props.label : void 0,
|
|
9244
9433
|
title: $setup.props.hideLabel ? $setup.props.label : void 0
|
|
9245
|
-
}, $setup.restAttrs), null, 16, _hoisted_2$
|
|
9434
|
+
}, $setup.restAttrs), null, 16, _hoisted_2$m), [
|
|
9246
9435
|
[vModelDynamic, $setup.modelValue],
|
|
9247
9436
|
[$setup["vCustomValidity"]]
|
|
9248
9437
|
]),
|
|
@@ -9288,9 +9477,9 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9288
9477
|
/* FULL_PROPS */
|
|
9289
9478
|
));
|
|
9290
9479
|
}
|
|
9291
|
-
const OnyxInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9480
|
+
const OnyxInput = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$B], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxInput/OnyxInput.vue"]]);
|
|
9292
9481
|
const INPUT_TYPES = ["email", "password", "search", "tel", "text", "url"];
|
|
9293
|
-
const _sfc_main$
|
|
9482
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
9294
9483
|
__name: "OnyxLink",
|
|
9295
9484
|
props: {
|
|
9296
9485
|
href: { type: String, required: false },
|
|
@@ -9305,7 +9494,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
9305
9494
|
return __returned__;
|
|
9306
9495
|
}
|
|
9307
9496
|
});
|
|
9308
|
-
function _sfc_render$
|
|
9497
|
+
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9309
9498
|
return openBlock(), createBlock(
|
|
9310
9499
|
$setup["OnyxRouterLink"],
|
|
9311
9500
|
mergeProps({ class: "onyx-component onyx-link" }, $setup.props),
|
|
@@ -9327,8 +9516,8 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9327
9516
|
/* FULL_PROPS */
|
|
9328
9517
|
);
|
|
9329
9518
|
}
|
|
9330
|
-
const OnyxLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9331
|
-
const _sfc_main$
|
|
9519
|
+
const OnyxLink = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$A], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxLink/OnyxLink.vue"]]);
|
|
9520
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
9332
9521
|
__name: "OnyxMobileNavButton",
|
|
9333
9522
|
props: {
|
|
9334
9523
|
label: { type: String, required: true },
|
|
@@ -9350,12 +9539,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
9350
9539
|
return __returned__;
|
|
9351
9540
|
}
|
|
9352
9541
|
});
|
|
9353
|
-
const _hoisted_1$
|
|
9354
|
-
const _hoisted_2$
|
|
9542
|
+
const _hoisted_1$r = { class: "onyx-component onyx-mobile-nav-button" };
|
|
9543
|
+
const _hoisted_2$l = ["aria-label", "disabled"];
|
|
9355
9544
|
const _hoisted_3$f = { class: "onyx-mobile-nav-button__flyout" };
|
|
9356
9545
|
const _hoisted_4$c = { class: "onyx-mobile-nav-button__menu" };
|
|
9357
|
-
function _sfc_render$
|
|
9358
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9546
|
+
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9547
|
+
return openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
9359
9548
|
createElementVNode("button", {
|
|
9360
9549
|
type: "button",
|
|
9361
9550
|
class: normalizeClass(["onyx-mobile-nav-button__trigger", { "onyx-mobile-nav-button__trigger--active": $setup.props.open }]),
|
|
@@ -9366,7 +9555,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9366
9555
|
createVNode($setup["OnyxIcon"], {
|
|
9367
9556
|
icon: $setup.props.open ? $setup.iconX : $setup.props.icon
|
|
9368
9557
|
}, null, 8, ["icon"])
|
|
9369
|
-
], 10, _hoisted_2$
|
|
9558
|
+
], 10, _hoisted_2$l),
|
|
9370
9559
|
withDirectives(createElementVNode(
|
|
9371
9560
|
"div",
|
|
9372
9561
|
_hoisted_3$f,
|
|
@@ -9403,8 +9592,8 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9403
9592
|
})) : createCommentVNode("v-if", true)
|
|
9404
9593
|
]);
|
|
9405
9594
|
}
|
|
9406
|
-
const OnyxMobileNavButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9407
|
-
const _sfc_main$
|
|
9595
|
+
const OnyxMobileNavButton = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxMobileNavButton/OnyxMobileNavButton.vue"]]);
|
|
9596
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
9408
9597
|
__name: "OnyxModal",
|
|
9409
9598
|
props: {
|
|
9410
9599
|
density: { type: null, required: false },
|
|
@@ -9430,8 +9619,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
9430
9619
|
return __returned__;
|
|
9431
9620
|
}
|
|
9432
9621
|
});
|
|
9433
|
-
const _hoisted_1$
|
|
9434
|
-
const _hoisted_2$
|
|
9622
|
+
const _hoisted_1$q = { class: "onyx-modal__header" };
|
|
9623
|
+
const _hoisted_2$k = { class: "onyx-modal__headline" };
|
|
9435
9624
|
const _hoisted_3$e = { class: "onyx-modal__headline-content" };
|
|
9436
9625
|
const _hoisted_4$b = ["id"];
|
|
9437
9626
|
const _hoisted_5$9 = { class: "onyx-modal__body" };
|
|
@@ -9439,7 +9628,7 @@ const _hoisted_6$7 = {
|
|
|
9439
9628
|
key: 0,
|
|
9440
9629
|
class: "onyx-modal__footer"
|
|
9441
9630
|
};
|
|
9442
|
-
function _sfc_render$
|
|
9631
|
+
function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9443
9632
|
return openBlock(), createBlock($setup["OnyxBasicDialog"], mergeProps($setup.props, {
|
|
9444
9633
|
modal: "",
|
|
9445
9634
|
class: ["onyx-modal", $setup.densityClass],
|
|
@@ -9447,8 +9636,8 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9447
9636
|
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => $setup.emit("update:open", $event))
|
|
9448
9637
|
}), {
|
|
9449
9638
|
default: withCtx(() => [
|
|
9450
|
-
createElementVNode("div", _hoisted_1$
|
|
9451
|
-
createElementVNode("div", _hoisted_2$
|
|
9639
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
9640
|
+
createElementVNode("div", _hoisted_2$k, [
|
|
9452
9641
|
createElementVNode("div", _hoisted_3$e, [
|
|
9453
9642
|
renderSlot(_ctx.$slots, "headline", {
|
|
9454
9643
|
label: $setup.props.label
|
|
@@ -9493,8 +9682,8 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9493
9682
|
/* FORWARDED */
|
|
9494
9683
|
}, 16, ["class", "aria-describedby"]);
|
|
9495
9684
|
}
|
|
9496
|
-
const OnyxModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9497
|
-
const _sfc_main$
|
|
9685
|
+
const OnyxModal = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$y], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxModal/OnyxModal.vue"]]);
|
|
9686
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
9498
9687
|
__name: "OnyxNavAppArea",
|
|
9499
9688
|
props: {
|
|
9500
9689
|
link: { type: null, required: false, default: "/" },
|
|
@@ -9513,12 +9702,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
9513
9702
|
return __returned__;
|
|
9514
9703
|
}
|
|
9515
9704
|
});
|
|
9516
|
-
const _hoisted_1$
|
|
9517
|
-
const _hoisted_2$
|
|
9705
|
+
const _hoisted_1$p = ["src", "alt"];
|
|
9706
|
+
const _hoisted_2$j = {
|
|
9518
9707
|
key: 1,
|
|
9519
9708
|
class: "onyx-text-small onyx-truncation-ellipsis"
|
|
9520
9709
|
};
|
|
9521
|
-
function _sfc_render$
|
|
9710
|
+
function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9522
9711
|
return openBlock(), createBlock($setup["OnyxRouterLink"], mergeProps($setup.linkProps, {
|
|
9523
9712
|
class: "onyx-component onyx-nav-app-area",
|
|
9524
9713
|
"aria-label": $setup.buttonLabel
|
|
@@ -9532,10 +9721,10 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9532
9721
|
class: "onyx-nav-app-area__logo",
|
|
9533
9722
|
width: "24",
|
|
9534
9723
|
height: "24"
|
|
9535
|
-
}, null, 8, _hoisted_1$
|
|
9724
|
+
}, null, 8, _hoisted_1$p)) : createCommentVNode("v-if", true),
|
|
9536
9725
|
$setup.props.appName ? (openBlock(), createElementBlock(
|
|
9537
9726
|
"span",
|
|
9538
|
-
_hoisted_2$
|
|
9727
|
+
_hoisted_2$j,
|
|
9539
9728
|
toDisplayString($setup.props.appName),
|
|
9540
9729
|
1
|
|
9541
9730
|
/* TEXT */
|
|
@@ -9546,8 +9735,8 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9546
9735
|
/* FORWARDED */
|
|
9547
9736
|
}, 16, ["aria-label"]);
|
|
9548
9737
|
}
|
|
9549
|
-
const OnyxNavAppArea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9550
|
-
const _sfc_main$
|
|
9738
|
+
const OnyxNavAppArea = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$x], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavAppArea/OnyxNavAppArea.vue"]]);
|
|
9739
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
9551
9740
|
__name: "OnyxSelectDialog",
|
|
9552
9741
|
props: {
|
|
9553
9742
|
open: { type: [Boolean, null], required: false, skipCheck: true, default: false },
|
|
@@ -9580,14 +9769,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
9580
9769
|
return __returned__;
|
|
9581
9770
|
}
|
|
9582
9771
|
});
|
|
9583
|
-
const _hoisted_1$
|
|
9584
|
-
const _hoisted_2$
|
|
9772
|
+
const _hoisted_1$o = ["id"];
|
|
9773
|
+
const _hoisted_2$i = ["autofocus", "value", "checked", "aria-label"];
|
|
9585
9774
|
const _hoisted_3$d = { class: "onyx-select-dialog__label" };
|
|
9586
9775
|
const _hoisted_4$a = {
|
|
9587
9776
|
key: 0,
|
|
9588
9777
|
class: "onyx-text--small"
|
|
9589
9778
|
};
|
|
9590
|
-
function _sfc_render$
|
|
9779
|
+
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9591
9780
|
return openBlock(), createBlock($setup["OnyxModal"], mergeProps($setup.props, {
|
|
9592
9781
|
open: $setup.props.open,
|
|
9593
9782
|
class: "onyx-select-dialog",
|
|
@@ -9657,7 +9846,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9657
9846
|
checked: $setup.props.modelValue === option.value,
|
|
9658
9847
|
"aria-label": option.label,
|
|
9659
9848
|
required: ""
|
|
9660
|
-
}, null, 8, _hoisted_2$
|
|
9849
|
+
}, null, 8, _hoisted_2$i)
|
|
9661
9850
|
]),
|
|
9662
9851
|
_: 2
|
|
9663
9852
|
/* DYNAMIC */
|
|
@@ -9696,7 +9885,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9696
9885
|
32
|
|
9697
9886
|
/* NEED_HYDRATION */
|
|
9698
9887
|
)
|
|
9699
|
-
], 40, _hoisted_1$
|
|
9888
|
+
], 40, _hoisted_1$o)
|
|
9700
9889
|
]),
|
|
9701
9890
|
_: 2
|
|
9702
9891
|
/* DYNAMIC */
|
|
@@ -9710,11 +9899,11 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9710
9899
|
} : void 0
|
|
9711
9900
|
]), 1040, ["open", "label"]);
|
|
9712
9901
|
}
|
|
9713
|
-
const OnyxSelectDialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9902
|
+
const OnyxSelectDialog = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$w], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSelectDialog/OnyxSelectDialog.vue"]]);
|
|
9714
9903
|
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>';
|
|
9715
9904
|
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>';
|
|
9716
9905
|
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>';
|
|
9717
|
-
const _sfc_main$
|
|
9906
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
9718
9907
|
__name: "OnyxColorSchemeDialog",
|
|
9719
9908
|
props: {
|
|
9720
9909
|
open: { type: [Boolean, null], required: false, skipCheck: true, default: false },
|
|
@@ -9754,7 +9943,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
9754
9943
|
return __returned__;
|
|
9755
9944
|
}
|
|
9756
9945
|
});
|
|
9757
|
-
function _sfc_render$
|
|
9946
|
+
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9758
9947
|
return openBlock(), createBlock($setup["OnyxSelectDialog"], mergeProps({ class: "onyx-color-scheme-dialog" }, $setup.props, {
|
|
9759
9948
|
label: $setup.t("colorScheme.headline"),
|
|
9760
9949
|
options: $setup.options,
|
|
@@ -9773,8 +9962,8 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9773
9962
|
/* STABLE */
|
|
9774
9963
|
}, 16, ["label", "options", "open"]);
|
|
9775
9964
|
}
|
|
9776
|
-
const OnyxColorSchemeDialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9777
|
-
const _sfc_main$
|
|
9965
|
+
const OnyxColorSchemeDialog = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$v], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxColorSchemeDialog/OnyxColorSchemeDialog.vue"]]);
|
|
9966
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
9778
9967
|
__name: "OnyxColorSchemeMenuItem",
|
|
9779
9968
|
props: {
|
|
9780
9969
|
modelValue: { type: String, required: true }
|
|
@@ -9793,8 +9982,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
9793
9982
|
return __returned__;
|
|
9794
9983
|
}
|
|
9795
9984
|
});
|
|
9796
|
-
const _hoisted_1$
|
|
9797
|
-
function _sfc_render$
|
|
9985
|
+
const _hoisted_1$n = { class: "onyx-color-scheme-menu-item__value" };
|
|
9986
|
+
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9798
9987
|
return openBlock(), createBlock($setup["OnyxMenuItem"], {
|
|
9799
9988
|
class: "onyx-component onyx-color-scheme-menu-item",
|
|
9800
9989
|
onClick: _cache[2] || (_cache[2] = ($event) => $setup.isOpen = true)
|
|
@@ -9809,7 +9998,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9809
9998
|
),
|
|
9810
9999
|
createElementVNode(
|
|
9811
10000
|
"span",
|
|
9812
|
-
_hoisted_1$
|
|
10001
|
+
_hoisted_1$n,
|
|
9813
10002
|
toDisplayString($setup.t(`colorScheme.${$setup.props.modelValue}.label`)),
|
|
9814
10003
|
1
|
|
9815
10004
|
/* TEXT */
|
|
@@ -9828,8 +10017,8 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9828
10017
|
/* STABLE */
|
|
9829
10018
|
});
|
|
9830
10019
|
}
|
|
9831
|
-
const OnyxColorSchemeMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9832
|
-
const _sfc_main$
|
|
10020
|
+
const OnyxColorSchemeMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$u], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/OnyxColorSchemeMenuItem.vue"]]);
|
|
10021
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
9833
10022
|
__name: "OnyxLanguageMenuItem",
|
|
9834
10023
|
props: {
|
|
9835
10024
|
modelValue: { type: null, required: true },
|
|
@@ -9854,8 +10043,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
9854
10043
|
return __returned__;
|
|
9855
10044
|
}
|
|
9856
10045
|
});
|
|
9857
|
-
const _hoisted_1$
|
|
9858
|
-
function _sfc_render$
|
|
10046
|
+
const _hoisted_1$m = { class: "onyx-language-menu-item__value" };
|
|
10047
|
+
function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9859
10048
|
return openBlock(), createBlock($setup["OnyxMenuItem"], {
|
|
9860
10049
|
class: "onyx-component onyx-language-menu-item",
|
|
9861
10050
|
onClick: _cache[2] || (_cache[2] = ($event) => $setup.isOpen = true)
|
|
@@ -9870,7 +10059,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9870
10059
|
),
|
|
9871
10060
|
createElementVNode(
|
|
9872
10061
|
"span",
|
|
9873
|
-
_hoisted_1$
|
|
10062
|
+
_hoisted_1$m,
|
|
9874
10063
|
toDisplayString($setup.currentValueLabel),
|
|
9875
10064
|
1
|
|
9876
10065
|
/* TEXT */
|
|
@@ -9901,8 +10090,8 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9901
10090
|
/* STABLE */
|
|
9902
10091
|
});
|
|
9903
10092
|
}
|
|
9904
|
-
const OnyxLanguageMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9905
|
-
const _sfc_main$
|
|
10093
|
+
const OnyxLanguageMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$t], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxLanguageMenuItem/OnyxLanguageMenuItem.vue"]]);
|
|
10094
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
9906
10095
|
__name: "OnyxNavItemFacade",
|
|
9907
10096
|
props: {
|
|
9908
10097
|
link: { type: null, required: false },
|
|
@@ -9923,7 +10112,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
9923
10112
|
return __returned__;
|
|
9924
10113
|
}
|
|
9925
10114
|
});
|
|
9926
|
-
function _sfc_render$
|
|
10115
|
+
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9927
10116
|
return openBlock(), createBlock($setup["OnyxMenuItem"], mergeProps($setup.props, {
|
|
9928
10117
|
link: $setup.hasChildren && $setup.props.context !== "navbar" ? void 0 : $setup.props.link,
|
|
9929
10118
|
class: {
|
|
@@ -9949,8 +10138,8 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9949
10138
|
} : void 0
|
|
9950
10139
|
]), 1040, ["link", "class", "open"]);
|
|
9951
10140
|
}
|
|
9952
|
-
const OnyxNavItemFacade = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9953
|
-
const _sfc_main$
|
|
10141
|
+
const OnyxNavItemFacade = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxNavItemFacade/OnyxNavItemFacade.vue"]]);
|
|
10142
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
9954
10143
|
...{ inheritAttrs: false },
|
|
9955
10144
|
__name: "OnyxNavItem",
|
|
9956
10145
|
props: {
|
|
@@ -9996,12 +10185,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
9996
10185
|
return __returned__;
|
|
9997
10186
|
}
|
|
9998
10187
|
});
|
|
9999
|
-
const _hoisted_1$
|
|
10000
|
-
const _hoisted_2$
|
|
10188
|
+
const _hoisted_1$l = { class: "onyx-nav-item-wrapper__controls" };
|
|
10189
|
+
const _hoisted_2$h = {
|
|
10001
10190
|
role: "menu",
|
|
10002
10191
|
class: "onyx-nav-item-wrapper__mobile-children"
|
|
10003
10192
|
};
|
|
10004
|
-
function _sfc_render$
|
|
10193
|
+
function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10005
10194
|
return openBlock(), createElementBlock(
|
|
10006
10195
|
Fragment,
|
|
10007
10196
|
null,
|
|
@@ -10017,7 +10206,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10017
10206
|
}
|
|
10018
10207
|
}, $setup.rootAttrs),
|
|
10019
10208
|
[
|
|
10020
|
-
createElementVNode("div", _hoisted_1$
|
|
10209
|
+
createElementVNode("div", _hoisted_1$l, [
|
|
10021
10210
|
createVNode($setup["OnyxButton"], {
|
|
10022
10211
|
label: $setup.t("back"),
|
|
10023
10212
|
mode: "plain",
|
|
@@ -10045,7 +10234,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10045
10234
|
/* STABLE_FRAGMENT */
|
|
10046
10235
|
)) : createCommentVNode("v-if", true)
|
|
10047
10236
|
]),
|
|
10048
|
-
createElementVNode("ul", _hoisted_2$
|
|
10237
|
+
createElementVNode("ul", _hoisted_2$h, [
|
|
10049
10238
|
renderSlot(_ctx.$slots, "children")
|
|
10050
10239
|
])
|
|
10051
10240
|
],
|
|
@@ -10154,7 +10343,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10154
10343
|
/* STABLE_FRAGMENT */
|
|
10155
10344
|
);
|
|
10156
10345
|
}
|
|
10157
|
-
const OnyxNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10346
|
+
const OnyxNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxNavItem/OnyxNavItem.vue"]]);
|
|
10158
10347
|
const useTimer = (endTime) => {
|
|
10159
10348
|
const intervalId = ref();
|
|
10160
10349
|
const timeLeft = ref(calculateTimeLeft(new Date(endTime.value).getTime()));
|
|
@@ -10215,7 +10404,7 @@ const timeToDurationString = (timeLeft) => {
|
|
|
10215
10404
|
const { hours, minutes, seconds } = getTimeFragments(timeLeft);
|
|
10216
10405
|
return `PT${hours}H${minutes}M${seconds}S`;
|
|
10217
10406
|
};
|
|
10218
|
-
const _sfc_main$
|
|
10407
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
10219
10408
|
__name: "OnyxTimer",
|
|
10220
10409
|
props: {
|
|
10221
10410
|
endTime: { type: null, required: true },
|
|
@@ -10246,13 +10435,13 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
10246
10435
|
return __returned__;
|
|
10247
10436
|
}
|
|
10248
10437
|
});
|
|
10249
|
-
const _hoisted_1$
|
|
10250
|
-
const _hoisted_2$
|
|
10438
|
+
const _hoisted_1$k = ["aria-label"];
|
|
10439
|
+
const _hoisted_2$g = {
|
|
10251
10440
|
key: 0,
|
|
10252
10441
|
class: "onyx-timer__label"
|
|
10253
10442
|
};
|
|
10254
10443
|
const _hoisted_3$c = ["datetime"];
|
|
10255
|
-
function _sfc_render$
|
|
10444
|
+
function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10256
10445
|
return openBlock(), createElementBlock("div", {
|
|
10257
10446
|
class: "onyx-component onyx-timer onyx-text onyx-truncation-ellipsis",
|
|
10258
10447
|
role: "timer",
|
|
@@ -10260,7 +10449,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10260
10449
|
}, [
|
|
10261
10450
|
!$setup.props.hideLabel ? (openBlock(), createElementBlock(
|
|
10262
10451
|
"span",
|
|
10263
|
-
_hoisted_2$
|
|
10452
|
+
_hoisted_2$g,
|
|
10264
10453
|
toDisplayString($setup.props.label),
|
|
10265
10454
|
1
|
|
10266
10455
|
/* TEXT */
|
|
@@ -10269,10 +10458,10 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10269
10458
|
datetime: $setup.timeToDurationString($setup.timeLeft),
|
|
10270
10459
|
class: "onyx-timer__time"
|
|
10271
10460
|
}, toDisplayString($setup.formattedTime), 9, _hoisted_3$c)
|
|
10272
|
-
], 8, _hoisted_1$
|
|
10461
|
+
], 8, _hoisted_1$k);
|
|
10273
10462
|
}
|
|
10274
|
-
const OnyxTimer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10275
|
-
const _sfc_main$
|
|
10463
|
+
const OnyxTimer = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxTimer/OnyxTimer.vue"]]);
|
|
10464
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
10276
10465
|
__name: "UserMenuLayout",
|
|
10277
10466
|
props: {
|
|
10278
10467
|
isMobile: { type: Boolean, required: true },
|
|
@@ -10297,10 +10486,10 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
10297
10486
|
return __returned__;
|
|
10298
10487
|
}
|
|
10299
10488
|
});
|
|
10300
|
-
const _hoisted_1$
|
|
10301
|
-
const _hoisted_2$
|
|
10302
|
-
function _sfc_render$
|
|
10303
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10489
|
+
const _hoisted_1$j = { class: "onyx-component" };
|
|
10490
|
+
const _hoisted_2$f = { class: "onyx-user-menu__footer onyx-text--small" };
|
|
10491
|
+
function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10492
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
10304
10493
|
$setup.props.isMobile ? (openBlock(), createElementBlock(
|
|
10305
10494
|
Fragment,
|
|
10306
10495
|
{ key: 0 },
|
|
@@ -10344,7 +10533,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10344
10533
|
!!$setup.slots.footer ? {
|
|
10345
10534
|
name: "footer",
|
|
10346
10535
|
fn: withCtx(() => [
|
|
10347
|
-
createElementVNode("div", _hoisted_2$
|
|
10536
|
+
createElementVNode("div", _hoisted_2$f, [
|
|
10348
10537
|
renderSlot(_ctx.$slots, "footer")
|
|
10349
10538
|
])
|
|
10350
10539
|
]),
|
|
@@ -10353,8 +10542,8 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10353
10542
|
]), 1032, ["open", "label", "disabled"]))
|
|
10354
10543
|
]);
|
|
10355
10544
|
}
|
|
10356
|
-
const UserMenuLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10357
|
-
const _sfc_main$
|
|
10545
|
+
const UserMenuLayout = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.vue"]]);
|
|
10546
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
10358
10547
|
__name: "OnyxUserMenu",
|
|
10359
10548
|
props: {
|
|
10360
10549
|
fullName: { type: String, required: true },
|
|
@@ -10388,8 +10577,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10388
10577
|
return __returned__;
|
|
10389
10578
|
}
|
|
10390
10579
|
});
|
|
10391
|
-
const _hoisted_1$
|
|
10392
|
-
const _hoisted_2$
|
|
10580
|
+
const _hoisted_1$i = { class: "onyx-truncation-ellipsis" };
|
|
10581
|
+
const _hoisted_2$e = { class: "onyx-user-menu__header" };
|
|
10393
10582
|
const _hoisted_3$b = { class: "onyx-truncation-ellipsis" };
|
|
10394
10583
|
const _hoisted_4$9 = { class: "onyx-user-menu__username onyx-text onyx-truncation-ellipsis" };
|
|
10395
10584
|
const _hoisted_5$8 = {
|
|
@@ -10397,7 +10586,7 @@ const _hoisted_5$8 = {
|
|
|
10397
10586
|
class: "onyx-user-menu__description onyx-text--small onyx-truncation-ellipsis"
|
|
10398
10587
|
};
|
|
10399
10588
|
const _hoisted_6$6 = { class: "onyx-user-menu__options" };
|
|
10400
|
-
function _sfc_render$
|
|
10589
|
+
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10401
10590
|
return openBlock(), createBlock($setup["UserMenuLayout"], {
|
|
10402
10591
|
"flyout-open": $setup.flyoutOpen,
|
|
10403
10592
|
"onUpdate:flyoutOpen": _cache[0] || (_cache[0] = ($event) => $setup.flyoutOpen = $event),
|
|
@@ -10422,7 +10611,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10422
10611
|
),
|
|
10423
10612
|
createElementVNode(
|
|
10424
10613
|
"span",
|
|
10425
|
-
_hoisted_1$
|
|
10614
|
+
_hoisted_1$i,
|
|
10426
10615
|
toDisplayString($setup.props.fullName),
|
|
10427
10616
|
1
|
|
10428
10617
|
/* TEXT */
|
|
@@ -10433,7 +10622,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10433
10622
|
)
|
|
10434
10623
|
]),
|
|
10435
10624
|
header: withCtx(() => [
|
|
10436
|
-
createElementVNode("div", _hoisted_2$
|
|
10625
|
+
createElementVNode("div", _hoisted_2$e, [
|
|
10437
10626
|
createVNode(
|
|
10438
10627
|
$setup["OnyxAvatar"],
|
|
10439
10628
|
mergeProps($setup.avatar, { size: "48px" }),
|
|
@@ -10476,8 +10665,8 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10476
10665
|
} : void 0
|
|
10477
10666
|
]), 1032, ["flyout-open", "class", "is-mobile", "disabled"]);
|
|
10478
10667
|
}
|
|
10479
|
-
const OnyxUserMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10480
|
-
const _sfc_main$
|
|
10668
|
+
const OnyxUserMenu = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.vue"]]);
|
|
10669
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
10481
10670
|
__name: "OnyxNavBar",
|
|
10482
10671
|
props: {
|
|
10483
10672
|
appName: { type: String, required: false },
|
|
@@ -10547,8 +10736,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
10547
10736
|
return __returned__;
|
|
10548
10737
|
}
|
|
10549
10738
|
});
|
|
10550
|
-
const _hoisted_1$
|
|
10551
|
-
const _hoisted_2$
|
|
10739
|
+
const _hoisted_1$h = { class: "onyx-nav-bar__content onyx-grid-container" };
|
|
10740
|
+
const _hoisted_2$d = {
|
|
10552
10741
|
key: 0,
|
|
10553
10742
|
class: "onyx-nav-bar__mobile-page onyx-truncation-ellipsis"
|
|
10554
10743
|
};
|
|
@@ -10567,7 +10756,7 @@ const _hoisted_8$3 = {
|
|
|
10567
10756
|
key: 1,
|
|
10568
10757
|
class: "onyx-nav-bar__context"
|
|
10569
10758
|
};
|
|
10570
|
-
function _sfc_render$
|
|
10759
|
+
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10571
10760
|
return openBlock(), createElementBlock(
|
|
10572
10761
|
"header",
|
|
10573
10762
|
{
|
|
@@ -10575,8 +10764,8 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10575
10764
|
class: normalizeClass(["onyx-component onyx-nav-bar", { "onyx-nav-bar--mobile": $setup.actualIsMobile }])
|
|
10576
10765
|
},
|
|
10577
10766
|
[
|
|
10578
|
-
createElementVNode("div", _hoisted_1$
|
|
10579
|
-
$setup.actualIsMobile && $setup.slots.mobileActivePage && !$setup.isBurgerOpen && !$setup.isContextOpen ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
10767
|
+
createElementVNode("div", _hoisted_1$h, [
|
|
10768
|
+
$setup.actualIsMobile && $setup.slots.mobileActivePage && !$setup.isBurgerOpen && !$setup.isContextOpen ? (openBlock(), createElementBlock("span", _hoisted_2$d, [
|
|
10580
10769
|
renderSlot(_ctx.$slots, "mobileActivePage")
|
|
10581
10770
|
])) : $setup.props.appName || $setup.props.logoUrl || $setup.slots.appArea ? (openBlock(), createBlock($setup["OnyxNavAppArea"], mergeProps({
|
|
10582
10771
|
key: 1,
|
|
@@ -10726,7 +10915,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10726
10915
|
/* CLASS */
|
|
10727
10916
|
);
|
|
10728
10917
|
}
|
|
10729
|
-
const OnyxNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10918
|
+
const OnyxNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/OnyxNavBar.vue"]]);
|
|
10730
10919
|
const useRelativeTimeFormat = (options) => {
|
|
10731
10920
|
const { locale, t } = injectI18n();
|
|
10732
10921
|
const format = computed(() => new Intl.RelativeTimeFormat(locale.value, unref(options.options)));
|
|
@@ -10774,7 +10963,7 @@ const useRelativeTimeFormat = (options) => {
|
|
|
10774
10963
|
timeAgo
|
|
10775
10964
|
};
|
|
10776
10965
|
};
|
|
10777
|
-
const _sfc_main$
|
|
10966
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
10778
10967
|
__name: "OnyxNotificationCard",
|
|
10779
10968
|
props: {
|
|
10780
10969
|
density: { type: null, required: false },
|
|
@@ -10802,11 +10991,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
10802
10991
|
return __returned__;
|
|
10803
10992
|
}
|
|
10804
10993
|
});
|
|
10805
|
-
const _hoisted_1$
|
|
10994
|
+
const _hoisted_1$g = {
|
|
10806
10995
|
key: 0,
|
|
10807
10996
|
class: "onyx-notification-card-skeleton"
|
|
10808
10997
|
};
|
|
10809
|
-
const _hoisted_2$
|
|
10998
|
+
const _hoisted_2$c = {
|
|
10810
10999
|
key: 1,
|
|
10811
11000
|
class: "onyx-notification-card__content"
|
|
10812
11001
|
};
|
|
@@ -10819,14 +11008,14 @@ const _hoisted_8$2 = {
|
|
|
10819
11008
|
key: 0,
|
|
10820
11009
|
class: "onyx-notification-card__actions onyx-density-compact"
|
|
10821
11010
|
};
|
|
10822
|
-
function _sfc_render$
|
|
11011
|
+
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10823
11012
|
return openBlock(), createElementBlock(
|
|
10824
11013
|
"div",
|
|
10825
11014
|
{
|
|
10826
11015
|
class: normalizeClass(["onyx-component", "onyx-notification-card", $setup.densityClass])
|
|
10827
11016
|
},
|
|
10828
11017
|
[
|
|
10829
|
-
$setup.skeleton ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11018
|
+
$setup.skeleton ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
10830
11019
|
createVNode($setup["OnyxSkeleton"], { class: "onyx-notification-card-skeleton__header" }),
|
|
10831
11020
|
(openBlock(), createElementBlock(
|
|
10832
11021
|
Fragment,
|
|
@@ -10840,7 +11029,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10840
11029
|
64
|
|
10841
11030
|
/* STABLE_FRAGMENT */
|
|
10842
11031
|
))
|
|
10843
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11032
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_2$c, [
|
|
10844
11033
|
createElementVNode("div", null, [
|
|
10845
11034
|
createElementVNode("div", _hoisted_3$9, [
|
|
10846
11035
|
createElementVNode("div", _hoisted_4$7, [
|
|
@@ -10916,8 +11105,8 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10916
11105
|
/* CLASS */
|
|
10917
11106
|
);
|
|
10918
11107
|
}
|
|
10919
|
-
const OnyxNotificationCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10920
|
-
const _sfc_main$
|
|
11108
|
+
const OnyxNotificationCard = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNotificationCard/OnyxNotificationCard.vue"]]);
|
|
11109
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
10921
11110
|
__name: "OnyxNotificationDot",
|
|
10922
11111
|
props: {
|
|
10923
11112
|
hidden: { type: Boolean, required: false, default: false },
|
|
@@ -10931,9 +11120,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
10931
11120
|
return __returned__;
|
|
10932
11121
|
}
|
|
10933
11122
|
});
|
|
10934
|
-
const _hoisted_1$
|
|
10935
|
-
function _sfc_render$
|
|
10936
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11123
|
+
const _hoisted_1$f = { class: "onyx-component onyx-notification-dot" };
|
|
11124
|
+
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11125
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
10937
11126
|
renderSlot(_ctx.$slots, "default"),
|
|
10938
11127
|
!$setup.props.hidden ? (openBlock(), createBlock($setup["OnyxBadge"], {
|
|
10939
11128
|
key: 0,
|
|
@@ -10943,8 +11132,8 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10943
11132
|
}, null, 8, ["color"])) : createCommentVNode("v-if", true)
|
|
10944
11133
|
]);
|
|
10945
11134
|
}
|
|
10946
|
-
const OnyxNotificationDot = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10947
|
-
const _sfc_main$
|
|
11135
|
+
const OnyxNotificationDot = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNotificationDot/OnyxNotificationDot.vue"]]);
|
|
11136
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
10948
11137
|
__name: "OnyxPageLayout",
|
|
10949
11138
|
props: {
|
|
10950
11139
|
skeleton: { type: Boolean, required: false },
|
|
@@ -10961,11 +11150,11 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
10961
11150
|
return __returned__;
|
|
10962
11151
|
}
|
|
10963
11152
|
});
|
|
10964
|
-
const _hoisted_1$
|
|
11153
|
+
const _hoisted_1$e = {
|
|
10965
11154
|
key: 0,
|
|
10966
11155
|
class: "onyx-page__sidebar"
|
|
10967
11156
|
};
|
|
10968
|
-
const _hoisted_2$
|
|
11157
|
+
const _hoisted_2$b = { class: "onyx-page__main" };
|
|
10969
11158
|
const _hoisted_3$8 = {
|
|
10970
11159
|
key: 1,
|
|
10971
11160
|
class: "onyx-page__sidebar onyx-page__sidebar--right"
|
|
@@ -10974,7 +11163,7 @@ const _hoisted_4$6 = {
|
|
|
10974
11163
|
key: 2,
|
|
10975
11164
|
class: "onyx-page__footer"
|
|
10976
11165
|
};
|
|
10977
|
-
function _sfc_render$
|
|
11166
|
+
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10978
11167
|
return openBlock(), createElementBlock(
|
|
10979
11168
|
"div",
|
|
10980
11169
|
{
|
|
@@ -10985,10 +11174,10 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10985
11174
|
]])
|
|
10986
11175
|
},
|
|
10987
11176
|
[
|
|
10988
|
-
$setup.slots.sidebar ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11177
|
+
$setup.slots.sidebar ? (openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
10989
11178
|
renderSlot(_ctx.$slots, "sidebar")
|
|
10990
11179
|
])) : createCommentVNode("v-if", true),
|
|
10991
|
-
createElementVNode("main", _hoisted_2$
|
|
11180
|
+
createElementVNode("main", _hoisted_2$b, [
|
|
10992
11181
|
createElementVNode(
|
|
10993
11182
|
"div",
|
|
10994
11183
|
{
|
|
@@ -11012,8 +11201,8 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11012
11201
|
/* CLASS */
|
|
11013
11202
|
);
|
|
11014
11203
|
}
|
|
11015
|
-
const OnyxPageLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11016
|
-
const _sfc_main$
|
|
11204
|
+
const OnyxPageLayout = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxPageLayout/OnyxPageLayout.vue"]]);
|
|
11205
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
11017
11206
|
__name: "OnyxProgressItem",
|
|
11018
11207
|
props: {
|
|
11019
11208
|
density: { type: null, required: false },
|
|
@@ -11039,10 +11228,10 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
11039
11228
|
return __returned__;
|
|
11040
11229
|
}
|
|
11041
11230
|
});
|
|
11042
|
-
const _hoisted_1$
|
|
11043
|
-
const _hoisted_2$
|
|
11231
|
+
const _hoisted_1$d = ["disabled"];
|
|
11232
|
+
const _hoisted_2$a = { class: "onyx-progress-item__indicator" };
|
|
11044
11233
|
const _hoisted_3$7 = { class: "onyx-progress-item__label" };
|
|
11045
|
-
function _sfc_render$
|
|
11234
|
+
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11046
11235
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
11047
11236
|
key: 0,
|
|
11048
11237
|
class: normalizeClass(["onyx-progress-item-skeleton", "onyx-text", $setup.densityClass])
|
|
@@ -11058,7 +11247,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11058
11247
|
type: "button",
|
|
11059
11248
|
disabled: $setup.props.disabled
|
|
11060
11249
|
}, [
|
|
11061
|
-
createElementVNode("span", _hoisted_2$
|
|
11250
|
+
createElementVNode("span", _hoisted_2$a, [
|
|
11062
11251
|
$setup.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
11063
11252
|
key: 0,
|
|
11064
11253
|
icon: $setup.icon
|
|
@@ -11087,9 +11276,9 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11087
11276
|
)
|
|
11088
11277
|
])
|
|
11089
11278
|
])
|
|
11090
|
-
], 10, _hoisted_1$
|
|
11279
|
+
], 10, _hoisted_1$d));
|
|
11091
11280
|
}
|
|
11092
|
-
const OnyxProgressItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11281
|
+
const OnyxProgressItem = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxProgressItem/OnyxProgressItem.vue"]]);
|
|
11093
11282
|
const PROGRESS_ITEM_STATUS = [
|
|
11094
11283
|
"default",
|
|
11095
11284
|
"active",
|
|
@@ -11097,7 +11286,7 @@ const PROGRESS_ITEM_STATUS = [
|
|
|
11097
11286
|
"visited",
|
|
11098
11287
|
"invalid"
|
|
11099
11288
|
];
|
|
11100
|
-
const _sfc_main$
|
|
11289
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
11101
11290
|
__name: "OnyxProgressSteps",
|
|
11102
11291
|
props: {
|
|
11103
11292
|
density: { type: null, required: false },
|
|
@@ -11152,8 +11341,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
11152
11341
|
return __returned__;
|
|
11153
11342
|
}
|
|
11154
11343
|
});
|
|
11155
|
-
const _hoisted_1$
|
|
11156
|
-
function _sfc_render$
|
|
11344
|
+
const _hoisted_1$c = { class: "onyx-progress-steps__scroll-container" };
|
|
11345
|
+
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11157
11346
|
return openBlock(), createElementBlock(
|
|
11158
11347
|
"div",
|
|
11159
11348
|
{
|
|
@@ -11165,7 +11354,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11165
11354
|
])
|
|
11166
11355
|
},
|
|
11167
11356
|
[
|
|
11168
|
-
createElementVNode("div", _hoisted_1$
|
|
11357
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
11169
11358
|
(openBlock(true), createElementBlock(
|
|
11170
11359
|
Fragment,
|
|
11171
11360
|
null,
|
|
@@ -11205,8 +11394,8 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11205
11394
|
/* CLASS */
|
|
11206
11395
|
);
|
|
11207
11396
|
}
|
|
11208
|
-
const OnyxProgressSteps = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11209
|
-
const _sfc_main$
|
|
11397
|
+
const OnyxProgressSteps = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxProgressSteps/OnyxProgressSteps.vue"]]);
|
|
11398
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
11210
11399
|
...{ inheritAttrs: false },
|
|
11211
11400
|
__name: "OnyxRadioButton",
|
|
11212
11401
|
props: {
|
|
@@ -11241,8 +11430,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
11241
11430
|
return __returned__;
|
|
11242
11431
|
}
|
|
11243
11432
|
});
|
|
11244
|
-
const _hoisted_1$
|
|
11245
|
-
function _sfc_render$
|
|
11433
|
+
const _hoisted_1$b = ["required", "name", "value", "checked", "disabled", "autofocus"];
|
|
11434
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11246
11435
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
11247
11436
|
"div",
|
|
11248
11437
|
mergeProps({
|
|
@@ -11282,7 +11471,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11282
11471
|
checked: $setup.props.checked,
|
|
11283
11472
|
disabled: $setup.disabled,
|
|
11284
11473
|
autofocus: $setup.props.autofocus
|
|
11285
|
-
}, $setup.restAttrs), null, 16, _hoisted_1$
|
|
11474
|
+
}, $setup.restAttrs), null, 16, _hoisted_1$b)), [
|
|
11286
11475
|
[$setup["vCustomValidity"]]
|
|
11287
11476
|
]),
|
|
11288
11477
|
createElementVNode(
|
|
@@ -11303,8 +11492,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11303
11492
|
/* STABLE */
|
|
11304
11493
|
}, 16, ["disabled", "error-messages"]));
|
|
11305
11494
|
}
|
|
11306
|
-
const OnyxRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11307
|
-
const _sfc_main$
|
|
11495
|
+
const OnyxRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxRadioButton/OnyxRadioButton.vue"]]);
|
|
11496
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
11308
11497
|
__name: "OnyxRadioGroup",
|
|
11309
11498
|
props: {
|
|
11310
11499
|
truncation: { type: null, required: false, default: "ellipsis" },
|
|
@@ -11351,19 +11540,19 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11351
11540
|
return __returned__;
|
|
11352
11541
|
}
|
|
11353
11542
|
});
|
|
11354
|
-
const _hoisted_1$
|
|
11355
|
-
const _hoisted_2$
|
|
11543
|
+
const _hoisted_1$a = ["disabled", "aria-label"];
|
|
11544
|
+
const _hoisted_2$9 = {
|
|
11356
11545
|
key: 0,
|
|
11357
11546
|
class: "onyx-radio-group__label"
|
|
11358
11547
|
};
|
|
11359
|
-
function _sfc_render$
|
|
11548
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11360
11549
|
return openBlock(), createElementBlock("fieldset", {
|
|
11361
11550
|
class: normalizeClass(["onyx-component", "onyx-radio-group", $setup.densityClass, $setup.requiredTypeClass]),
|
|
11362
11551
|
disabled: $setup.disabled,
|
|
11363
11552
|
role: "radiogroup",
|
|
11364
11553
|
"aria-label": $setup.props.label
|
|
11365
11554
|
}, [
|
|
11366
|
-
!$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
11555
|
+
!$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$9, [
|
|
11367
11556
|
createVNode($setup["OnyxHeadline"], {
|
|
11368
11557
|
is: "h3",
|
|
11369
11558
|
class: normalizeClass($setup.requiredMarkerClass)
|
|
@@ -11430,11 +11619,11 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11430
11619
|
2
|
|
11431
11620
|
/* CLASS */
|
|
11432
11621
|
)
|
|
11433
|
-
], 10, _hoisted_1$
|
|
11622
|
+
], 10, _hoisted_1$a);
|
|
11434
11623
|
}
|
|
11435
|
-
const OnyxRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11624
|
+
const OnyxRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxRadioGroup/OnyxRadioGroup.vue"]]);
|
|
11436
11625
|
const LINK_TARGETS = ["_self", "_blank", "_parent", "_top"];
|
|
11437
|
-
const _sfc_main$
|
|
11626
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
11438
11627
|
...{ inheritAttrs: false },
|
|
11439
11628
|
__name: "OnyxSegmentedControlElement",
|
|
11440
11629
|
props: {
|
|
@@ -11461,13 +11650,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
11461
11650
|
return __returned__;
|
|
11462
11651
|
}
|
|
11463
11652
|
});
|
|
11464
|
-
const _hoisted_1$
|
|
11465
|
-
const _hoisted_2$
|
|
11653
|
+
const _hoisted_1$9 = ["id", "name", "value", "disabled", "aria-label", "autofocus", "checked"];
|
|
11654
|
+
const _hoisted_2$8 = ["for"];
|
|
11466
11655
|
const _hoisted_3$6 = {
|
|
11467
11656
|
key: 1,
|
|
11468
11657
|
class: "onyx-segmented-control-element__text"
|
|
11469
11658
|
};
|
|
11470
|
-
function _sfc_render$
|
|
11659
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11471
11660
|
return openBlock(), createElementBlock(
|
|
11472
11661
|
"div",
|
|
11473
11662
|
mergeProps($setup.rootAttrs, {
|
|
@@ -11487,7 +11676,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11487
11676
|
"aria-label": $setup.props.label,
|
|
11488
11677
|
autofocus: $setup.props.autofocus,
|
|
11489
11678
|
checked: $setup.props.checked
|
|
11490
|
-
}), null, 16, _hoisted_1$
|
|
11679
|
+
}), null, 16, _hoisted_1$9)
|
|
11491
11680
|
]),
|
|
11492
11681
|
_: 1
|
|
11493
11682
|
/* STABLE */
|
|
@@ -11508,14 +11697,14 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11508
11697
|
1
|
|
11509
11698
|
/* TEXT */
|
|
11510
11699
|
)) : createCommentVNode("v-if", true)
|
|
11511
|
-
], 8, _hoisted_2$
|
|
11700
|
+
], 8, _hoisted_2$8)
|
|
11512
11701
|
],
|
|
11513
11702
|
16
|
|
11514
11703
|
/* FULL_PROPS */
|
|
11515
11704
|
);
|
|
11516
11705
|
}
|
|
11517
|
-
const OnyxSegmentedControlElement = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11518
|
-
const _sfc_main$
|
|
11706
|
+
const OnyxSegmentedControlElement = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSegmentedControlElement/OnyxSegmentedControlElement.vue"]]);
|
|
11707
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
11519
11708
|
__name: "OnyxSegmentedControl",
|
|
11520
11709
|
props: {
|
|
11521
11710
|
density: { type: null, required: false },
|
|
@@ -11544,7 +11733,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11544
11733
|
return __returned__;
|
|
11545
11734
|
}
|
|
11546
11735
|
});
|
|
11547
|
-
function _sfc_render$
|
|
11736
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11548
11737
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
11549
11738
|
key: 0,
|
|
11550
11739
|
class: normalizeClass(["onyx-segmented-control-skeleton", $setup.densityClass])
|
|
@@ -11575,10 +11764,10 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11575
11764
|
/* CLASS */
|
|
11576
11765
|
));
|
|
11577
11766
|
}
|
|
11578
|
-
const OnyxSegmentedControl = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11767
|
+
const OnyxSegmentedControl = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSegmentedControl/OnyxSegmentedControl.vue"]]);
|
|
11579
11768
|
const SELECT_ALIGNMENTS = ["full", "left", "right"];
|
|
11580
11769
|
const MULTISELECT_TEXT_MODE = ["summary", "preview"];
|
|
11581
|
-
const _sfc_main$
|
|
11770
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
11582
11771
|
__name: "OnyxSidebarItem",
|
|
11583
11772
|
props: {
|
|
11584
11773
|
density: { type: null, required: false },
|
|
@@ -11606,7 +11795,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
11606
11795
|
return __returned__;
|
|
11607
11796
|
}
|
|
11608
11797
|
});
|
|
11609
|
-
function _sfc_render$
|
|
11798
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11610
11799
|
return $setup.link ? (openBlock(), createBlock($setup["OnyxRouterLink"], mergeProps({
|
|
11611
11800
|
key: 0,
|
|
11612
11801
|
class: $setup.classes
|
|
@@ -11630,12 +11819,12 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11630
11819
|
/* CLASS */
|
|
11631
11820
|
));
|
|
11632
11821
|
}
|
|
11633
|
-
const OnyxSidebarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11822
|
+
const OnyxSidebarItem = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSidebar/modules/OnyxSidebarItem/OnyxSidebarItem.vue"]]);
|
|
11634
11823
|
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>';
|
|
11635
11824
|
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>';
|
|
11636
11825
|
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>';
|
|
11637
11826
|
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>';
|
|
11638
|
-
const _sfc_main$
|
|
11827
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
11639
11828
|
__name: "OnyxSidebar",
|
|
11640
11829
|
props: {
|
|
11641
11830
|
density: { type: null, required: false },
|
|
@@ -11723,8 +11912,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
11723
11912
|
return __returned__;
|
|
11724
11913
|
}
|
|
11725
11914
|
});
|
|
11726
|
-
const _hoisted_1$
|
|
11727
|
-
const _hoisted_2$
|
|
11915
|
+
const _hoisted_1$8 = ["aria-label"];
|
|
11916
|
+
const _hoisted_2$7 = {
|
|
11728
11917
|
key: 0,
|
|
11729
11918
|
class: "onyx-sidebar__header"
|
|
11730
11919
|
};
|
|
@@ -11734,7 +11923,7 @@ const _hoisted_4$5 = {
|
|
|
11734
11923
|
class: "onyx-sidebar__footer"
|
|
11735
11924
|
};
|
|
11736
11925
|
const _hoisted_5$5 = { class: "onyx-sidebar__footer" };
|
|
11737
|
-
function _sfc_render$
|
|
11926
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11738
11927
|
return !$setup.props.temporary && !$setup.shouldCollapse ? (openBlock(), createElementBlock("aside", {
|
|
11739
11928
|
key: 0,
|
|
11740
11929
|
ref: "sidebarRef",
|
|
@@ -11748,7 +11937,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11748
11937
|
"aria-label": $setup.props.label,
|
|
11749
11938
|
style: normalizeStyle($setup.widthStyle)
|
|
11750
11939
|
}, [
|
|
11751
|
-
!!$setup.slots.header ? (openBlock(), createElementBlock("header", _hoisted_2$
|
|
11940
|
+
!!$setup.slots.header ? (openBlock(), createElementBlock("header", _hoisted_2$7, [
|
|
11752
11941
|
renderSlot(_ctx.$slots, "header")
|
|
11753
11942
|
])) : createCommentVNode("v-if", true),
|
|
11754
11943
|
createElementVNode("div", _hoisted_3$5, [
|
|
@@ -11761,7 +11950,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11761
11950
|
key: 2,
|
|
11762
11951
|
element: $setup.sidebarElement
|
|
11763
11952
|
}, $setup.resizeHandleProps), null, 16, ["element"])) : createCommentVNode("v-if", true)
|
|
11764
|
-
], 14, _hoisted_1$
|
|
11953
|
+
], 14, _hoisted_1$8)) : (openBlock(), createBlock($setup["OnyxModal"], mergeProps({ key: 1 }, $setup.props.temporary, {
|
|
11765
11954
|
ref: "modalRef",
|
|
11766
11955
|
open: $setup.isModalOpen,
|
|
11767
11956
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => $setup.isModalOpen = $event),
|
|
@@ -11813,9 +12002,9 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11813
12002
|
} : void 0
|
|
11814
12003
|
]), 1040, ["open", "class", "label", "density", "style", "alignment"]));
|
|
11815
12004
|
}
|
|
11816
|
-
const OnyxSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12005
|
+
const OnyxSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSidebar/OnyxSidebar.vue"]]);
|
|
11817
12006
|
const SIDEBAR_ALIGNMENT = ["left", "right"];
|
|
11818
|
-
const _sfc_main$
|
|
12007
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
11819
12008
|
...{ inheritAttrs: false },
|
|
11820
12009
|
__name: "OnyxStepper",
|
|
11821
12010
|
props: {
|
|
@@ -11932,15 +12121,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
11932
12121
|
return __returned__;
|
|
11933
12122
|
}
|
|
11934
12123
|
});
|
|
11935
|
-
const _hoisted_1$
|
|
11936
|
-
const _hoisted_2$
|
|
12124
|
+
const _hoisted_1$7 = { class: "onyx-stepper__wrapper" };
|
|
12125
|
+
const _hoisted_2$6 = ["disabled", "aria-label"];
|
|
11937
12126
|
const _hoisted_3$4 = ["id", "aria-label", "autofocus", "disabled", "min", "max", "name", "placeholder", "readonly", "required", "step", "title"];
|
|
11938
12127
|
const _hoisted_4$4 = {
|
|
11939
12128
|
class: "onyx-stepper__display",
|
|
11940
12129
|
"aria-hidden": "true"
|
|
11941
12130
|
};
|
|
11942
12131
|
const _hoisted_5$4 = ["disabled", "aria-label"];
|
|
11943
|
-
function _sfc_render$
|
|
12132
|
+
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11944
12133
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
11945
12134
|
"div",
|
|
11946
12135
|
mergeProps({
|
|
@@ -11969,7 +12158,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11969
12158
|
"error-messages": $setup.errorMessages
|
|
11970
12159
|
}), {
|
|
11971
12160
|
default: withCtx(({ id: inputId }) => [
|
|
11972
|
-
createElementVNode("div", _hoisted_1$
|
|
12161
|
+
createElementVNode("div", _hoisted_1$7, [
|
|
11973
12162
|
!$setup.props.hideButtons ? (openBlock(), createElementBlock("button", {
|
|
11974
12163
|
key: 0,
|
|
11975
12164
|
type: "button",
|
|
@@ -11980,7 +12169,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11980
12169
|
onClick: _cache[0] || (_cache[0] = ($event) => $setup.handleClick("stepDown"))
|
|
11981
12170
|
}, [
|
|
11982
12171
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconMinus }, null, 8, ["icon"])
|
|
11983
|
-
], 8, _hoisted_2$
|
|
12172
|
+
], 8, _hoisted_2$6)) : createCommentVNode("v-if", true),
|
|
11984
12173
|
$setup.props.loading ? (openBlock(), createBlock($setup["OnyxLoadingIndicator"], {
|
|
11985
12174
|
key: 1,
|
|
11986
12175
|
class: "onyx-stepper__loading",
|
|
@@ -12042,8 +12231,8 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12042
12231
|
/* FULL_PROPS */
|
|
12043
12232
|
));
|
|
12044
12233
|
}
|
|
12045
|
-
const OnyxStepper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12046
|
-
const _sfc_main$
|
|
12234
|
+
const OnyxStepper = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxStepper/OnyxStepper.vue"]]);
|
|
12235
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
12047
12236
|
...{ inheritAttrs: false },
|
|
12048
12237
|
__name: "OnyxSwitch",
|
|
12049
12238
|
props: {
|
|
@@ -12093,13 +12282,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
12093
12282
|
return __returned__;
|
|
12094
12283
|
}
|
|
12095
12284
|
});
|
|
12096
|
-
const _hoisted_1$
|
|
12097
|
-
const _hoisted_2$
|
|
12285
|
+
const _hoisted_1$6 = { class: "onyx-switch-skeleton__click-area" };
|
|
12286
|
+
const _hoisted_2$5 = ["title"];
|
|
12098
12287
|
const _hoisted_3$3 = ["aria-label", "disabled", "required", "autofocus"];
|
|
12099
12288
|
const _hoisted_4$3 = { class: "onyx-switch__click-area" };
|
|
12100
12289
|
const _hoisted_5$3 = { class: "onyx-switch__container" };
|
|
12101
12290
|
const _hoisted_6$3 = { class: "onyx-switch__icon" };
|
|
12102
|
-
function _sfc_render$
|
|
12291
|
+
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12103
12292
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
12104
12293
|
"div",
|
|
12105
12294
|
mergeProps({
|
|
@@ -12107,7 +12296,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12107
12296
|
class: ["onyx-component", "onyx-switch-skeleton", $setup.densityClass]
|
|
12108
12297
|
}, $setup.rootAttrs),
|
|
12109
12298
|
[
|
|
12110
|
-
createElementVNode("span", _hoisted_1$
|
|
12299
|
+
createElementVNode("span", _hoisted_1$6, [
|
|
12111
12300
|
createVNode($setup["OnyxSkeleton"], { class: "onyx-switch-skeleton__input" })
|
|
12112
12301
|
]),
|
|
12113
12302
|
!$setup.props.hideLabel ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
@@ -12186,16 +12375,16 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12186
12375
|
2
|
|
12187
12376
|
/* CLASS */
|
|
12188
12377
|
)) : createCommentVNode("v-if", true)
|
|
12189
|
-
], 10, _hoisted_2$
|
|
12378
|
+
], 10, _hoisted_2$5)
|
|
12190
12379
|
]),
|
|
12191
12380
|
_: 1
|
|
12192
12381
|
/* STABLE */
|
|
12193
12382
|
}, 16, ["disabled", "error-messages"]));
|
|
12194
12383
|
}
|
|
12195
|
-
const OnyxSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12384
|
+
const OnyxSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSwitch/OnyxSwitch.vue"]]);
|
|
12196
12385
|
const SYSTEM_BUTTON_COLORS = ["intense", "soft", "medium"];
|
|
12197
12386
|
const TABS_INJECTION_KEY = Symbol();
|
|
12198
|
-
const _sfc_main$
|
|
12387
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
12199
12388
|
__name: "OnyxTab",
|
|
12200
12389
|
props: {
|
|
12201
12390
|
density: { type: null, required: false },
|
|
@@ -12222,9 +12411,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
12222
12411
|
return __returned__;
|
|
12223
12412
|
}
|
|
12224
12413
|
});
|
|
12225
|
-
const _hoisted_1$
|
|
12226
|
-
const _hoisted_2$
|
|
12227
|
-
function _sfc_render$
|
|
12414
|
+
const _hoisted_1$5 = ["disabled"];
|
|
12415
|
+
const _hoisted_2$4 = { class: "onyx-tab__label" };
|
|
12416
|
+
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12228
12417
|
return openBlock(), createElementBlock(
|
|
12229
12418
|
Fragment,
|
|
12230
12419
|
null,
|
|
@@ -12245,7 +12434,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12245
12434
|
type: "button",
|
|
12246
12435
|
disabled: $setup.props.disabled
|
|
12247
12436
|
}), [
|
|
12248
|
-
createElementVNode("div", _hoisted_2$
|
|
12437
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
12249
12438
|
renderSlot(_ctx.$slots, "tab", {}, () => [
|
|
12250
12439
|
createTextVNode(
|
|
12251
12440
|
toDisplayString($setup.props.label),
|
|
@@ -12254,7 +12443,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12254
12443
|
)
|
|
12255
12444
|
])
|
|
12256
12445
|
])
|
|
12257
|
-
], 16, _hoisted_1$
|
|
12446
|
+
], 16, _hoisted_1$5)),
|
|
12258
12447
|
$setup.tabsContext?.panel.value ? (openBlock(), createBlock(Teleport, {
|
|
12259
12448
|
key: 2,
|
|
12260
12449
|
to: $setup.tabsContext?.panel.value,
|
|
@@ -12275,8 +12464,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12275
12464
|
/* STABLE_FRAGMENT */
|
|
12276
12465
|
);
|
|
12277
12466
|
}
|
|
12278
|
-
const OnyxTab = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12279
|
-
const _sfc_main$
|
|
12467
|
+
const OnyxTab = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTab/OnyxTab.vue"]]);
|
|
12468
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
12280
12469
|
__name: "OnyxTabs",
|
|
12281
12470
|
props: {
|
|
12282
12471
|
density: { type: null, required: false },
|
|
@@ -12314,7 +12503,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
12314
12503
|
return __returned__;
|
|
12315
12504
|
}
|
|
12316
12505
|
});
|
|
12317
|
-
function _sfc_render$
|
|
12506
|
+
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12318
12507
|
return openBlock(), createElementBlock(
|
|
12319
12508
|
"div",
|
|
12320
12509
|
{
|
|
@@ -12341,101 +12530,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12341
12530
|
/* CLASS */
|
|
12342
12531
|
);
|
|
12343
12532
|
}
|
|
12344
|
-
const OnyxTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12345
|
-
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
12346
|
-
__name: "OnyxTag",
|
|
12347
|
-
props: {
|
|
12348
|
-
density: { type: null, required: false },
|
|
12349
|
-
label: { type: String, required: true },
|
|
12350
|
-
color: { type: null, required: false, default: "neutral" },
|
|
12351
|
-
icon: { type: String, required: false },
|
|
12352
|
-
clickable: { type: [String, Object], required: false },
|
|
12353
|
-
skeleton: { type: [Symbol, Boolean, Number], required: false, default: SKELETON_INJECTED_SYMBOL }
|
|
12354
|
-
},
|
|
12355
|
-
setup(__props, { expose: __expose }) {
|
|
12356
|
-
__expose();
|
|
12357
|
-
const props = __props;
|
|
12358
|
-
const { densityClass } = useDensity(props);
|
|
12359
|
-
const skeleton = useSkeletonContext(props);
|
|
12360
|
-
const tagClasses = computed(() => [
|
|
12361
|
-
"onyx-component",
|
|
12362
|
-
"onyx-tag",
|
|
12363
|
-
`onyx-tag--${props.color}`,
|
|
12364
|
-
{ "onyx-tag--interactive": props.clickable },
|
|
12365
|
-
densityClass.value
|
|
12366
|
-
]);
|
|
12367
|
-
const __returned__ = { props, densityClass, skeleton, tagClasses, OnyxIcon, OnyxSkeleton, OnyxTooltip };
|
|
12368
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
12369
|
-
return __returned__;
|
|
12370
|
-
}
|
|
12371
|
-
});
|
|
12372
|
-
const _hoisted_1$5 = { class: "onyx-text onyx-truncation-ellipsis" };
|
|
12373
|
-
const _hoisted_2$4 = { class: "onyx-text onyx-truncation-ellipsis" };
|
|
12374
|
-
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12375
|
-
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
12376
|
-
key: 0,
|
|
12377
|
-
class: normalizeClass(["onyx-tag-skeleton", $setup.densityClass])
|
|
12378
|
-
}, null, 8, ["class"])) : $setup.props.clickable ? (openBlock(), createBlock($setup["OnyxTooltip"], {
|
|
12379
|
-
key: 1,
|
|
12380
|
-
text: typeof $setup.props.clickable === "object" ? $setup.props.clickable.label : $setup.props.clickable
|
|
12381
|
-
}, {
|
|
12382
|
-
default: withCtx(({ trigger }) => [
|
|
12383
|
-
createElementVNode(
|
|
12384
|
-
"button",
|
|
12385
|
-
mergeProps(trigger, {
|
|
12386
|
-
class: $setup.tagClasses,
|
|
12387
|
-
type: "button"
|
|
12388
|
-
}),
|
|
12389
|
-
[
|
|
12390
|
-
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
12391
|
-
key: 0,
|
|
12392
|
-
icon: $setup.props.icon,
|
|
12393
|
-
inline: ""
|
|
12394
|
-
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
12395
|
-
createElementVNode(
|
|
12396
|
-
"span",
|
|
12397
|
-
_hoisted_1$5,
|
|
12398
|
-
toDisplayString($setup.props.label),
|
|
12399
|
-
1
|
|
12400
|
-
/* TEXT */
|
|
12401
|
-
),
|
|
12402
|
-
typeof $setup.props.clickable === "object" && $setup.props.clickable.actionIcon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
12403
|
-
key: 1,
|
|
12404
|
-
icon: $setup.props.clickable.actionIcon,
|
|
12405
|
-
inline: ""
|
|
12406
|
-
}, null, 8, ["icon"])) : createCommentVNode("v-if", true)
|
|
12407
|
-
],
|
|
12408
|
-
16
|
|
12409
|
-
/* FULL_PROPS */
|
|
12410
|
-
)
|
|
12411
|
-
]),
|
|
12412
|
-
_: 1
|
|
12413
|
-
/* STABLE */
|
|
12414
|
-
}, 8, ["text"])) : (openBlock(), createElementBlock(
|
|
12415
|
-
"div",
|
|
12416
|
-
{
|
|
12417
|
-
key: 2,
|
|
12418
|
-
class: normalizeClass($setup.tagClasses)
|
|
12419
|
-
},
|
|
12420
|
-
[
|
|
12421
|
-
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
12422
|
-
key: 0,
|
|
12423
|
-
icon: $setup.props.icon,
|
|
12424
|
-
inline: ""
|
|
12425
|
-
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
12426
|
-
createElementVNode(
|
|
12427
|
-
"span",
|
|
12428
|
-
_hoisted_2$4,
|
|
12429
|
-
toDisplayString($setup.props.label),
|
|
12430
|
-
1
|
|
12431
|
-
/* TEXT */
|
|
12432
|
-
)
|
|
12433
|
-
],
|
|
12434
|
-
2
|
|
12435
|
-
/* CLASS */
|
|
12436
|
-
));
|
|
12437
|
-
}
|
|
12438
|
-
const OnyxTag = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTag/OnyxTag.vue"]]);
|
|
12533
|
+
const OnyxTabs = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTabs/OnyxTabs.vue"]]);
|
|
12439
12534
|
const circleAttention = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.25 16.5h1.5V18h-1.5zM12.75 6h-1.5v8.25h1.5z"/><path fill-rule="evenodd" d="M12 1.5a10.5 10.5 0 1 0 0 21 10.5 10.5 0 0 0 0-21m6.364 16.864A9 9 0 1 1 21 12a8.94 8.94 0 0 1-2.636 6.364" clip-rule="evenodd"/></svg>';
|
|
12440
12535
|
const useFileSize = () => {
|
|
12441
12536
|
const { locale } = injectI18n();
|