sit-onyx 1.1.0-dev-20250930101606 → 1.1.0-dev-20250930114848
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/OnyxCalendar/OnyxCalendar.d.vue.ts +1 -1
- package/dist/components/OnyxCalendar/types.d.ts +1 -1
- 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 +748 -742
- package/dist/index.esm-bundler.js.map +1 -1
- package/dist/index.js +2047 -2042
- 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
|
});
|
|
@@ -4464,8 +4466,352 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4464
4466
|
}, 16, ["class"]);
|
|
4465
4467
|
}
|
|
4466
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"]]);
|
|
4469
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
4470
|
+
__name: "OnyxIconButton",
|
|
4471
|
+
props: {
|
|
4472
|
+
density: { type: null, required: false },
|
|
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 }
|
|
4482
|
+
},
|
|
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"],
|
|
4538
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
4539
|
+
__expose();
|
|
4540
|
+
const props = __props;
|
|
4541
|
+
const emit = __emit;
|
|
4542
|
+
const { densityClass } = useDensity(props);
|
|
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
|
|
4566
|
+
);
|
|
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?.();
|
|
4614
|
+
} else {
|
|
4615
|
+
tooltipRef.value?.hidePopover?.();
|
|
4616
|
+
}
|
|
4617
|
+
};
|
|
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
|
+
};
|
|
4630
|
+
});
|
|
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;
|
|
4642
|
+
}
|
|
4643
|
+
watch(
|
|
4644
|
+
[tooltipWidth, toolTipPosition, alignment, alignsWithEdge, isVisible],
|
|
4645
|
+
() => updateAnchorPositionPolyfill(),
|
|
4646
|
+
{ flush: "post", immediate: true }
|
|
4647
|
+
);
|
|
4648
|
+
});
|
|
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"]]);
|
|
4467
4813
|
const __default__ = {};
|
|
4468
|
-
const _sfc_main$
|
|
4814
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
4469
4815
|
...__default__,
|
|
4470
4816
|
__name: "OnyxCalendar",
|
|
4471
4817
|
props: {
|
|
@@ -4486,7 +4832,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
4486
4832
|
const emit = __emit;
|
|
4487
4833
|
const { densityClass } = useDensity(props);
|
|
4488
4834
|
const skeleton = useSkeletonContext(props);
|
|
4489
|
-
const { locale } = injectI18n();
|
|
4835
|
+
const { t, locale } = injectI18n();
|
|
4490
4836
|
const calendarSize = computed(
|
|
4491
4837
|
() => props.size !== "auto" ? props.size : width.value < ONYX_BREAKPOINTS.xs ? "small" : "big"
|
|
4492
4838
|
);
|
|
@@ -4521,23 +4867,23 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
4521
4867
|
const calendarRef = useTemplateRef("calendar");
|
|
4522
4868
|
const { width } = useResizeObserver(calendarRef);
|
|
4523
4869
|
const sizeClass = computed(() => `onyx-calendar--${calendarSize.value}`);
|
|
4524
|
-
const __returned__ = { props, emit, densityClass, skeleton, 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() {
|
|
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() {
|
|
4525
4871
|
return iconChevronLeftSmall;
|
|
4526
4872
|
}, get iconChevronRightSmall() {
|
|
4527
4873
|
return iconChevronRightSmall;
|
|
4528
|
-
}, OnyxHeadline, OnyxSkeleton,
|
|
4874
|
+
}, OnyxHeadline, OnyxIconButton, OnyxSkeleton, OnyxTag };
|
|
4529
4875
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
4530
4876
|
return __returned__;
|
|
4531
4877
|
}
|
|
4532
4878
|
});
|
|
4533
|
-
const _hoisted_1$
|
|
4534
|
-
const _hoisted_2$
|
|
4879
|
+
const _hoisted_1$L = { class: "onyx-calendar__header" };
|
|
4880
|
+
const _hoisted_2$B = { class: "control-container time-control-container" };
|
|
4535
4881
|
const _hoisted_3$p = { class: "control-container" };
|
|
4536
4882
|
const _hoisted_4$i = { class: "onyx-calendar__body" };
|
|
4537
4883
|
const _hoisted_5$d = ["abbr"];
|
|
4538
4884
|
const _hoisted_6$a = { class: "cell-content__number" };
|
|
4539
4885
|
const _hoisted_7$6 = { class: "cell-content__number-display" };
|
|
4540
|
-
function _sfc_render$
|
|
4886
|
+
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4541
4887
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
4542
4888
|
"div",
|
|
4543
4889
|
{
|
|
@@ -4564,21 +4910,23 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4564
4910
|
])
|
|
4565
4911
|
},
|
|
4566
4912
|
[
|
|
4567
|
-
createElementVNode("div", _hoisted_1$
|
|
4568
|
-
createElementVNode("div", _hoisted_2$
|
|
4569
|
-
$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"], {
|
|
4570
4916
|
key: 0,
|
|
4571
|
-
label: "
|
|
4917
|
+
label: $setup.t("calendar.todayButton.label"),
|
|
4572
4918
|
class: "control-container__today-btn",
|
|
4573
4919
|
disabled: $setup.disabled,
|
|
4920
|
+
clickable: $setup.t("calendar.todayButton.tooltip"),
|
|
4574
4921
|
onClick: $setup.goToToday
|
|
4575
|
-
}, null, 8, ["disabled", "onClick"])) : createCommentVNode("v-if", true),
|
|
4576
|
-
createVNode($setup["
|
|
4577
|
-
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",
|
|
4578
4926
|
icon: $setup.iconChevronLeftSmall,
|
|
4579
4927
|
disabled: $setup.disabled,
|
|
4580
4928
|
onClick: $setup.goToPreviousMonth
|
|
4581
|
-
}, null, 8, ["icon", "disabled", "onClick"]),
|
|
4929
|
+
}, null, 8, ["label", "icon", "disabled", "onClick"]),
|
|
4582
4930
|
createVNode($setup["OnyxHeadline"], {
|
|
4583
4931
|
is: "h2",
|
|
4584
4932
|
class: "control-container__date-display"
|
|
@@ -4596,12 +4944,13 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4596
4944
|
_: 1
|
|
4597
4945
|
/* STABLE */
|
|
4598
4946
|
}),
|
|
4599
|
-
createVNode($setup["
|
|
4600
|
-
label: "
|
|
4947
|
+
createVNode($setup["OnyxIconButton"], {
|
|
4948
|
+
label: $setup.t("calendar.nextMonthButton"),
|
|
4949
|
+
color: "neutral",
|
|
4601
4950
|
icon: $setup.iconChevronRightSmall,
|
|
4602
4951
|
disabled: $setup.disabled,
|
|
4603
4952
|
onClick: $setup.goToNextMonth
|
|
4604
|
-
}, null, 8, ["icon", "disabled", "onClick"])
|
|
4953
|
+
}, null, 8, ["label", "icon", "disabled", "onClick"])
|
|
4605
4954
|
]),
|
|
4606
4955
|
createElementVNode("div", _hoisted_3$p, [
|
|
4607
4956
|
renderSlot(_ctx.$slots, "actions")
|
|
@@ -4621,7 +4970,8 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4621
4970
|
return openBlock(), createElementBlock("th", {
|
|
4622
4971
|
key: index,
|
|
4623
4972
|
scope: "col",
|
|
4624
|
-
abbr: day
|
|
4973
|
+
abbr: day,
|
|
4974
|
+
class: "onyx-text--small"
|
|
4625
4975
|
}, toDisplayString(day), 9, _hoisted_5$d);
|
|
4626
4976
|
}),
|
|
4627
4977
|
128
|
|
@@ -4691,7 +5041,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4691
5041
|
/* CLASS */
|
|
4692
5042
|
));
|
|
4693
5043
|
}
|
|
4694
|
-
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"]]);
|
|
4695
5045
|
const useRequired = (props, requiredMarker) => ({
|
|
4696
5046
|
/**
|
|
4697
5047
|
* Class that configures which type of required marker is used.
|
|
@@ -4859,238 +5209,41 @@ const useFormElementError = (options) => {
|
|
|
4859
5209
|
step: options.props.validStepSize
|
|
4860
5210
|
};
|
|
4861
5211
|
if (errorType === "typeMismatch") {
|
|
4862
|
-
const type = TRANSLATED_INPUT_TYPES.includes(options.props.type) ? options.props.type : "generic";
|
|
4863
|
-
return {
|
|
4864
|
-
longMessage: t.value(`validations.typeMismatch.${type}.fullError`, validationData),
|
|
4865
|
-
shortMessage: t.value(`validations.typeMismatch.${type}.preview`, validationData)
|
|
4866
|
-
};
|
|
4867
|
-
}
|
|
4868
|
-
return {
|
|
4869
|
-
longMessage: t.value(`validations.${errorType}.fullError`, validationData),
|
|
4870
|
-
shortMessage: t.value(`validations.${errorType}.preview`, validationData)
|
|
4871
|
-
};
|
|
4872
|
-
});
|
|
4873
|
-
return {
|
|
4874
|
-
/**
|
|
4875
|
-
* Directive to set the custom error message and emit validityChange event.
|
|
4876
|
-
*/
|
|
4877
|
-
vCustomValidity,
|
|
4878
|
-
/**
|
|
4879
|
-
* A custom error or the default translation of the first invalid state if one exists.
|
|
4880
|
-
*/
|
|
4881
|
-
errorMessages
|
|
4882
|
-
};
|
|
4883
|
-
};
|
|
4884
|
-
const formatMinMax = (locale, type, value) => {
|
|
4885
|
-
if (!type || !["date", "datetime-local"].includes(type)) return value?.toString();
|
|
4886
|
-
const date = value != void 0 ? new Date(value) : void 0;
|
|
4887
|
-
if (!isValidDate(date)) return value?.toString();
|
|
4888
|
-
const format = {
|
|
4889
|
-
day: "2-digit",
|
|
4890
|
-
month: "2-digit",
|
|
4891
|
-
year: "numeric",
|
|
4892
|
-
...type === "datetime-local" ? { hour: "2-digit", minute: "2-digit" } : void 0
|
|
4893
|
-
};
|
|
4894
|
-
return date.toLocaleString(locale, format);
|
|
4895
|
-
};
|
|
4896
|
-
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
4897
|
-
__name: "OnyxTooltip",
|
|
4898
|
-
props: {
|
|
4899
|
-
density: { type: null, required: false },
|
|
4900
|
-
text: { type: String, required: false },
|
|
4901
|
-
icon: { type: String, required: false },
|
|
4902
|
-
color: { type: String, required: false, default: "neutral" },
|
|
4903
|
-
position: { type: String, required: false, default: "auto" },
|
|
4904
|
-
alignment: { type: String, required: false, default: "auto" },
|
|
4905
|
-
fitParent: { type: Boolean, required: false, default: false },
|
|
4906
|
-
open: { type: [Boolean, null], required: false, skipCheck: true, default: void 0 },
|
|
4907
|
-
trigger: { type: [String, Object], required: false, default: "hover" },
|
|
4908
|
-
alignsWithEdge: { type: Boolean, required: false, default: false },
|
|
4909
|
-
withoutWedge: { type: Boolean, required: false }
|
|
4910
|
-
},
|
|
4911
|
-
emits: ["update:open"],
|
|
4912
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
4913
|
-
__expose();
|
|
4914
|
-
const props = __props;
|
|
4915
|
-
const emit = __emit;
|
|
4916
|
-
const { densityClass } = useDensity(props);
|
|
4917
|
-
const { t } = injectI18n();
|
|
4918
|
-
const isVisible = useVModel({
|
|
4919
|
-
props,
|
|
4920
|
-
emit,
|
|
4921
|
-
key: "open",
|
|
4922
|
-
default: false
|
|
4923
|
-
});
|
|
4924
|
-
const tooltipOptions = computed(() => ({
|
|
4925
|
-
debounce: 200,
|
|
4926
|
-
...typeof props.trigger === "object" && props.trigger.type === "hover" && props.trigger || {},
|
|
4927
|
-
isVisible
|
|
4928
|
-
}));
|
|
4929
|
-
const toggletipOptions = computed(() => ({
|
|
4930
|
-
toggleLabel: t.value(`tooltip.${props.color}`),
|
|
4931
|
-
...typeof props.trigger === "object" && props.trigger.type === "click" && props.trigger || {},
|
|
4932
|
-
isVisible
|
|
4933
|
-
}));
|
|
4934
|
-
const triggerType = computed(() => {
|
|
4935
|
-
if (typeof props.trigger === "object") return props.trigger.type;
|
|
4936
|
-
return props.trigger;
|
|
4937
|
-
});
|
|
4938
|
-
const toolTipPosition = computed(
|
|
4939
|
-
() => props.position === "auto" ? openDirection.value : props.position
|
|
4940
|
-
);
|
|
4941
|
-
const alignment = computed(
|
|
4942
|
-
() => props.alignment === "auto" ? openAlignment.value : props.alignment
|
|
4943
|
-
);
|
|
4944
|
-
const positionAndAlignment = computed(() => {
|
|
4945
|
-
if ((toolTipPosition.value === "top" || toolTipPosition.value === "bottom") && props.alignsWithEdge) {
|
|
4946
|
-
if (alignment.value === "left") {
|
|
4947
|
-
return `${toolTipPosition.value} x-start`;
|
|
4948
|
-
}
|
|
4949
|
-
if (alignment.value === "right") {
|
|
4950
|
-
return `${toolTipPosition.value} x-end`;
|
|
4951
|
-
}
|
|
4952
|
-
}
|
|
4953
|
-
if (toolTipPosition.value.includes(" ")) {
|
|
4954
|
-
return toolTipPosition.value;
|
|
4955
|
-
}
|
|
4956
|
-
return `${toolTipPosition.value} center`;
|
|
4957
|
-
});
|
|
4958
|
-
const createPattern = () => triggerType.value === "hover" ? createTooltip(tooltipOptions.value) : createToggletip(toggletipOptions.value);
|
|
4959
|
-
const ariaPattern = shallowRef(createPattern());
|
|
4960
|
-
watch(triggerType, () => ariaPattern.value = createPattern());
|
|
4961
|
-
const tooltip2 = computed(() => ariaPattern.value?.elements.tooltip);
|
|
4962
|
-
const triggerElementProps = computed(() => toValue(ariaPattern.value?.elements.trigger));
|
|
4963
|
-
const alignsWithEdge = toRef(() => props.alignsWithEdge);
|
|
4964
|
-
const fitParent = toRef(() => props.fitParent);
|
|
4965
|
-
const tooltipWrapperRef = useTemplateRef("tooltipWrapperRefEl");
|
|
4966
|
-
const tooltipRef = useTemplateRef("tooltipRefEl");
|
|
4967
|
-
const { openDirection, updateOpenDirection } = useOpenDirection(tooltipWrapperRef, "top");
|
|
4968
|
-
const { openAlignment, updateOpenAlignment } = useOpenAlignment(tooltipWrapperRef, tooltipRef);
|
|
4969
|
-
const { leftPosition, topPosition, updateAnchorPositionPolyfill, useragentSupportsAnchorApi } = useAnchorPositionPolyfill({
|
|
4970
|
-
positionedRef: tooltipRef,
|
|
4971
|
-
targetRef: tooltipWrapperRef,
|
|
4972
|
-
positionArea: toolTipPosition,
|
|
4973
|
-
alignment,
|
|
4974
|
-
alignsWithEdge,
|
|
4975
|
-
fitParent
|
|
4976
|
-
});
|
|
4977
|
-
const updateDirections = () => {
|
|
4978
|
-
updateOpenDirection();
|
|
4979
|
-
updateOpenAlignment();
|
|
4980
|
-
};
|
|
4981
|
-
useGlobalEventListener({
|
|
4982
|
-
type: "resize",
|
|
4983
|
-
listener: () => updateDirections()
|
|
4984
|
-
});
|
|
4985
|
-
const handleOpening = (open) => {
|
|
4986
|
-
if (open) {
|
|
4987
|
-
tooltipRef.value?.showPopover?.();
|
|
4988
|
-
} else {
|
|
4989
|
-
tooltipRef.value?.hidePopover?.();
|
|
4990
|
-
}
|
|
4991
|
-
};
|
|
4992
|
-
const tooltipClasses = computed(() => {
|
|
4993
|
-
return {
|
|
4994
|
-
"onyx-tooltip--danger": props.color === "danger",
|
|
4995
|
-
"onyx-tooltip--success": props.color === "success",
|
|
4996
|
-
"onyx-tooltip--fit-parent": props.fitParent,
|
|
4997
|
-
"onyx-tooltip--aligns-with-edge": alignsWithEdge.value,
|
|
4998
|
-
"onyx-tooltip--hidden": !isVisible.value,
|
|
4999
|
-
[`onyx-tooltip--position-${toolTipPosition.value.replace(" ", "-")}`]: true,
|
|
5000
|
-
[`onyx-tooltip--alignment-${alignment.value}`]: true,
|
|
5001
|
-
"onyx-tooltip--dont-support-anchor": !useragentSupportsAnchorApi.value,
|
|
5002
|
-
"onyx-tooltip--without-wedge": props.withoutWedge
|
|
5003
|
-
};
|
|
5004
|
-
});
|
|
5005
|
-
const { width } = useResizeObserver(tooltipWrapperRef);
|
|
5006
|
-
const tooltipWidth = computed(
|
|
5007
|
-
() => props.fitParent && tooltipWrapperRef.value ? `${width.value}px` : "max-content"
|
|
5008
|
-
);
|
|
5009
|
-
onMounted(() => {
|
|
5010
|
-
handleOpening(isVisible.value);
|
|
5011
|
-
updateDirections();
|
|
5012
|
-
});
|
|
5013
|
-
onMounted(() => {
|
|
5014
|
-
if (useragentSupportsAnchorApi.value) {
|
|
5015
|
-
return;
|
|
5016
|
-
}
|
|
5017
|
-
watch(
|
|
5018
|
-
[tooltipWidth, toolTipPosition, alignment, alignsWithEdge, isVisible],
|
|
5019
|
-
() => updateAnchorPositionPolyfill(),
|
|
5020
|
-
{ flush: "post", immediate: true }
|
|
5021
|
-
);
|
|
5022
|
-
});
|
|
5023
|
-
watch(
|
|
5024
|
-
isVisible,
|
|
5025
|
-
async (newVal) => {
|
|
5026
|
-
handleOpening(newVal);
|
|
5027
|
-
updateDirections();
|
|
5028
|
-
},
|
|
5029
|
-
{ flush: "post" }
|
|
5030
|
-
);
|
|
5031
|
-
const anchorName = `--anchor-${useId()}`;
|
|
5032
|
-
const tooltipStyles = computed(() => {
|
|
5033
|
-
if (useragentSupportsAnchorApi.value) {
|
|
5034
|
-
return {
|
|
5035
|
-
width: tooltipWidth.value,
|
|
5036
|
-
"position-anchor": anchorName,
|
|
5037
|
-
"position-area": positionAndAlignment.value
|
|
5038
|
-
};
|
|
5039
|
-
}
|
|
5212
|
+
const type = TRANSLATED_INPUT_TYPES.includes(options.props.type) ? options.props.type : "generic";
|
|
5040
5213
|
return {
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
top: topPosition.value
|
|
5214
|
+
longMessage: t.value(`validations.typeMismatch.${type}.fullError`, validationData),
|
|
5215
|
+
shortMessage: t.value(`validations.typeMismatch.${type}.preview`, validationData)
|
|
5044
5216
|
};
|
|
5045
|
-
}
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
});
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
createTextVNode(
|
|
5076
|
-
toDisplayString($setup.props.text),
|
|
5077
|
-
1
|
|
5078
|
-
/* TEXT */
|
|
5079
|
-
)
|
|
5080
|
-
])
|
|
5081
|
-
])
|
|
5082
|
-
],
|
|
5083
|
-
16
|
|
5084
|
-
/* FULL_PROPS */
|
|
5085
|
-
),
|
|
5086
|
-
renderSlot(_ctx.$slots, "default", { trigger: $setup.triggerElementProps })
|
|
5087
|
-
],
|
|
5088
|
-
6
|
|
5089
|
-
/* CLASS, STYLE */
|
|
5090
|
-
);
|
|
5091
|
-
}
|
|
5092
|
-
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"]]);
|
|
5093
|
-
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({
|
|
5094
5247
|
__name: "OnyxErrorTooltip",
|
|
5095
5248
|
props: {
|
|
5096
5249
|
errorMessages: { type: Object, required: false },
|
|
@@ -5106,16 +5259,16 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
5106
5259
|
return __returned__;
|
|
5107
5260
|
}
|
|
5108
5261
|
});
|
|
5109
|
-
const _hoisted_1$
|
|
5110
|
-
const _hoisted_2$
|
|
5262
|
+
const _hoisted_1$K = { class: "onyx-component" };
|
|
5263
|
+
const _hoisted_2$A = {
|
|
5111
5264
|
key: 0,
|
|
5112
5265
|
ref: "targetRef"
|
|
5113
5266
|
};
|
|
5114
|
-
function _sfc_render
|
|
5115
|
-
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, [
|
|
5116
5269
|
!$setup.tooltipError || $setup.props.disabled ? (openBlock(), createElementBlock(
|
|
5117
5270
|
"div",
|
|
5118
|
-
_hoisted_2$
|
|
5271
|
+
_hoisted_2$A,
|
|
5119
5272
|
null,
|
|
5120
5273
|
512
|
|
5121
5274
|
/* NEED_PATCH */
|
|
@@ -5148,8 +5301,8 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5148
5301
|
], 8, ["to"])) : createCommentVNode("v-if", true)
|
|
5149
5302
|
]);
|
|
5150
5303
|
}
|
|
5151
|
-
const OnyxErrorTooltip = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
5152
|
-
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({
|
|
5153
5306
|
...{ inheritAttrs: false },
|
|
5154
5307
|
__name: "OnyxCheckbox",
|
|
5155
5308
|
props: {
|
|
@@ -5196,10 +5349,10 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
5196
5349
|
return __returned__;
|
|
5197
5350
|
}
|
|
5198
5351
|
});
|
|
5199
|
-
const _hoisted_1$
|
|
5200
|
-
const _hoisted_2$
|
|
5352
|
+
const _hoisted_1$J = ["title"];
|
|
5353
|
+
const _hoisted_2$z = { class: "onyx-checkbox__container" };
|
|
5201
5354
|
const _hoisted_3$o = ["aria-label", "indeterminate", "disabled", "required", "value", "autofocus"];
|
|
5202
|
-
function _sfc_render$
|
|
5355
|
+
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5203
5356
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
5204
5357
|
"div",
|
|
5205
5358
|
mergeProps({
|
|
@@ -5225,7 +5378,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5225
5378
|
class: normalizeClass(["onyx-component onyx-checkbox", [$setup.requiredTypeClass, $setup.densityClass]]),
|
|
5226
5379
|
title: $setup.title
|
|
5227
5380
|
}, [
|
|
5228
|
-
createElementVNode("div", _hoisted_2$
|
|
5381
|
+
createElementVNode("div", _hoisted_2$z, [
|
|
5229
5382
|
$setup.props.loading ? (openBlock(), createBlock($setup["OnyxLoadingIndicator"], {
|
|
5230
5383
|
key: 0,
|
|
5231
5384
|
class: "onyx-checkbox__loading",
|
|
@@ -5278,13 +5431,13 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5278
5431
|
64
|
|
5279
5432
|
/* STABLE_FRAGMENT */
|
|
5280
5433
|
)) : createCommentVNode("v-if", true)
|
|
5281
|
-
], 10, _hoisted_1$
|
|
5434
|
+
], 10, _hoisted_1$J)
|
|
5282
5435
|
]),
|
|
5283
5436
|
_: 1
|
|
5284
5437
|
/* STABLE */
|
|
5285
5438
|
}, 16, ["disabled", "error-messages"]));
|
|
5286
5439
|
}
|
|
5287
|
-
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"]]);
|
|
5288
5441
|
const useSelectAllCheckboxState = (enabledOptionValues, modelValue) => computed(() => {
|
|
5289
5442
|
const currentValues = modelValue.value.filter(
|
|
5290
5443
|
(value) => enabledOptionValues.value.includes(value)
|
|
@@ -5319,7 +5472,7 @@ const useCheckAll = (enabledOptionValues, modelValue, onChangeCallback) => {
|
|
|
5319
5472
|
}
|
|
5320
5473
|
};
|
|
5321
5474
|
};
|
|
5322
|
-
const _sfc_main$
|
|
5475
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
5323
5476
|
__name: "OnyxInfoTooltip",
|
|
5324
5477
|
props: {
|
|
5325
5478
|
text: { type: String, required: true },
|
|
@@ -5354,9 +5507,9 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
5354
5507
|
return __returned__;
|
|
5355
5508
|
}
|
|
5356
5509
|
});
|
|
5357
|
-
const _hoisted_1$
|
|
5358
|
-
function _sfc_render$
|
|
5359
|
-
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, [
|
|
5360
5513
|
$setup.triggerType === "click" ? (openBlock(), createBlock($setup["OnyxTooltip"], mergeProps({ key: 0 }, $setup.props, {
|
|
5361
5514
|
open: $setup.isVisible,
|
|
5362
5515
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => $setup.isVisible = $event)
|
|
@@ -5414,8 +5567,8 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5414
5567
|
))
|
|
5415
5568
|
]);
|
|
5416
5569
|
}
|
|
5417
|
-
const OnyxInfoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5418
|
-
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({
|
|
5419
5572
|
__name: "OnyxCheckboxGroup",
|
|
5420
5573
|
props: {
|
|
5421
5574
|
truncation: { type: null, required: false, default: "ellipsis" },
|
|
@@ -5473,18 +5626,18 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
5473
5626
|
return __returned__;
|
|
5474
5627
|
}
|
|
5475
5628
|
});
|
|
5476
|
-
const _hoisted_1$
|
|
5477
|
-
const _hoisted_2$
|
|
5629
|
+
const _hoisted_1$H = ["disabled", "aria-label"];
|
|
5630
|
+
const _hoisted_2$y = {
|
|
5478
5631
|
key: 0,
|
|
5479
5632
|
class: "onyx-checkbox-group__label"
|
|
5480
5633
|
};
|
|
5481
|
-
function _sfc_render$
|
|
5634
|
+
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5482
5635
|
return openBlock(), createElementBlock("fieldset", {
|
|
5483
5636
|
class: normalizeClass(["onyx-component", "onyx-checkbox-group", $setup.densityClass]),
|
|
5484
5637
|
disabled: $setup.disabled,
|
|
5485
5638
|
"aria-label": $setup.props.label
|
|
5486
5639
|
}, [
|
|
5487
|
-
!$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
5640
|
+
!$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$y, [
|
|
5488
5641
|
createVNode($setup["OnyxHeadline"], { is: "h3" }, {
|
|
5489
5642
|
default: withCtx(() => [
|
|
5490
5643
|
createTextVNode(
|
|
@@ -5564,15 +5717,15 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5564
5717
|
2
|
|
5565
5718
|
/* CLASS */
|
|
5566
5719
|
)
|
|
5567
|
-
], 10, _hoisted_1$
|
|
5720
|
+
], 10, _hoisted_1$H);
|
|
5568
5721
|
}
|
|
5569
|
-
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"]]);
|
|
5570
5723
|
const escapeCSS = (key) => {
|
|
5571
5724
|
const name = typeof key === "symbol" && key.description ? key.description : String(key);
|
|
5572
5725
|
if (globalThis.window && window.CSS) return CSS.escape(name);
|
|
5573
5726
|
return name.replace(/\W/g, "-");
|
|
5574
5727
|
};
|
|
5575
|
-
const _sfc_main$
|
|
5728
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
5576
5729
|
__name: "OnyxEmpty",
|
|
5577
5730
|
props: {
|
|
5578
5731
|
density: { type: null, required: false }
|
|
@@ -5589,12 +5742,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
5589
5742
|
return __returned__;
|
|
5590
5743
|
}
|
|
5591
5744
|
});
|
|
5592
|
-
const _hoisted_1$
|
|
5593
|
-
const _hoisted_2$
|
|
5745
|
+
const _hoisted_1$G = { class: "onyx-empty__label onyx-text onyx-truncation-multiline" };
|
|
5746
|
+
const _hoisted_2$x = {
|
|
5594
5747
|
key: 0,
|
|
5595
5748
|
class: "onyx-empty__buttons"
|
|
5596
5749
|
};
|
|
5597
|
-
function _sfc_render$
|
|
5750
|
+
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5598
5751
|
return openBlock(), createElementBlock(
|
|
5599
5752
|
"div",
|
|
5600
5753
|
{
|
|
@@ -5607,10 +5760,10 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5607
5760
|
size: "48px"
|
|
5608
5761
|
}, null, 8, ["icon"])
|
|
5609
5762
|
]),
|
|
5610
|
-
createElementVNode("div", _hoisted_1$
|
|
5763
|
+
createElementVNode("div", _hoisted_1$G, [
|
|
5611
5764
|
renderSlot(_ctx.$slots, "default")
|
|
5612
5765
|
]),
|
|
5613
|
-
!!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
5766
|
+
!!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
|
|
5614
5767
|
renderSlot(_ctx.$slots, "buttons")
|
|
5615
5768
|
])) : createCommentVNode("v-if", true)
|
|
5616
5769
|
],
|
|
@@ -5618,8 +5771,8 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5618
5771
|
/* CLASS */
|
|
5619
5772
|
);
|
|
5620
5773
|
}
|
|
5621
|
-
const OnyxEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5622
|
-
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({
|
|
5623
5776
|
__name: "OnyxTable",
|
|
5624
5777
|
props: {
|
|
5625
5778
|
density: { type: null, required: false },
|
|
@@ -5649,11 +5802,11 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
5649
5802
|
return __returned__;
|
|
5650
5803
|
}
|
|
5651
5804
|
});
|
|
5652
|
-
const _hoisted_1$
|
|
5805
|
+
const _hoisted_1$F = {
|
|
5653
5806
|
key: 0,
|
|
5654
5807
|
class: "onyx-table-wrapper__top"
|
|
5655
5808
|
};
|
|
5656
|
-
const _hoisted_2$
|
|
5809
|
+
const _hoisted_2$w = ["id"];
|
|
5657
5810
|
const _hoisted_3$n = { class: "onyx-table-wrapper__actions" };
|
|
5658
5811
|
const _hoisted_4$h = ["tabindex"];
|
|
5659
5812
|
const _hoisted_5$c = ["aria-labelledby"];
|
|
@@ -5671,7 +5824,7 @@ const _hoisted_13 = {
|
|
|
5671
5824
|
key: 1,
|
|
5672
5825
|
class: "onyx-table-wrapper__bottom"
|
|
5673
5826
|
};
|
|
5674
|
-
function _sfc_render$
|
|
5827
|
+
function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5675
5828
|
return openBlock(), createElementBlock(
|
|
5676
5829
|
"div",
|
|
5677
5830
|
{
|
|
@@ -5679,10 +5832,10 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5679
5832
|
style: normalizeStyle($setup.style)
|
|
5680
5833
|
},
|
|
5681
5834
|
[
|
|
5682
|
-
!!$setup.slots.headline || !!$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
5835
|
+
!!$setup.slots.headline || !!$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
5683
5836
|
createElementVNode("div", { id: $setup.headlineId }, [
|
|
5684
5837
|
renderSlot(_ctx.$slots, "headline")
|
|
5685
|
-
], 8, _hoisted_2$
|
|
5838
|
+
], 8, _hoisted_2$w),
|
|
5686
5839
|
createElementVNode("div", _hoisted_3$n, [
|
|
5687
5840
|
renderSlot(_ctx.$slots, "actions")
|
|
5688
5841
|
])
|
|
@@ -5774,8 +5927,8 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5774
5927
|
/* STYLE */
|
|
5775
5928
|
);
|
|
5776
5929
|
}
|
|
5777
|
-
const OnyxTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5778
|
-
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({
|
|
5779
5932
|
__name: "OnyxDataGridRenderer",
|
|
5780
5933
|
props: {
|
|
5781
5934
|
density: { type: null, required: false },
|
|
@@ -5809,7 +5962,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
5809
5962
|
return __returned__;
|
|
5810
5963
|
}
|
|
5811
5964
|
});
|
|
5812
|
-
function _sfc_render$
|
|
5965
|
+
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5813
5966
|
return openBlock(), createBlock($setup["OnyxTable"], mergeProps({ class: "onyx-data-grid" }, $setup.props, {
|
|
5814
5967
|
"scroll-container-attrs": $setup.mergeVueProps($setup.props.scrollContainerAttrs, { style: $setup.columnStyle })
|
|
5815
5968
|
}), createSlots({
|
|
@@ -5916,8 +6069,8 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5916
6069
|
})
|
|
5917
6070
|
]), 1040, ["scroll-container-attrs"]);
|
|
5918
6071
|
}
|
|
5919
|
-
const OnyxDataGridRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5920
|
-
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({
|
|
5921
6074
|
...{ inheritAttrs: false },
|
|
5922
6075
|
__name: "OnyxMiniSearch",
|
|
5923
6076
|
props: {
|
|
@@ -5957,9 +6110,9 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
5957
6110
|
return __returned__;
|
|
5958
6111
|
}
|
|
5959
6112
|
});
|
|
5960
|
-
const _hoisted_1$
|
|
5961
|
-
const _hoisted_2$
|
|
5962
|
-
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) {
|
|
5963
6116
|
return openBlock(), createElementBlock(
|
|
5964
6117
|
"div",
|
|
5965
6118
|
mergeProps({
|
|
@@ -5978,7 +6131,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5978
6131
|
size: "1"
|
|
5979
6132
|
}, $setup.restAttrs, {
|
|
5980
6133
|
"aria-label": $setup.props.label
|
|
5981
|
-
}), null, 16, _hoisted_1$
|
|
6134
|
+
}), null, 16, _hoisted_1$E), [
|
|
5982
6135
|
[vModelText, $setup.modelValue]
|
|
5983
6136
|
]),
|
|
5984
6137
|
createElementVNode("button", {
|
|
@@ -5991,7 +6144,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5991
6144
|
onClick: _cache[2] || (_cache[2] = ($event) => $setup.emit("clear"))
|
|
5992
6145
|
}, [
|
|
5993
6146
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconXSmall }, null, 8, ["icon"])
|
|
5994
|
-
], 40, _hoisted_2$
|
|
6147
|
+
], 40, _hoisted_2$v),
|
|
5995
6148
|
createVNode($setup["OnyxIcon"], {
|
|
5996
6149
|
class: "onyx-mini-search__icon",
|
|
5997
6150
|
icon: $setup.iconSearch
|
|
@@ -6001,11 +6154,11 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6001
6154
|
/* FULL_PROPS */
|
|
6002
6155
|
);
|
|
6003
6156
|
}
|
|
6004
|
-
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"]]);
|
|
6005
6158
|
const prepareMapping = (features, key) => features.flatMap((f) => f[key]).filter((f) => f?.func).sort((a, b) => (a?.order ?? 0) - (b?.order ?? 0));
|
|
6006
6159
|
const applyMapping = (mapping, input2) => mapping.reduce((output, m) => m.func(output), input2);
|
|
6007
6160
|
const DataGridRowOptionsSymbol = Symbol("RowOptions");
|
|
6008
|
-
const _sfc_main$
|
|
6161
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
6009
6162
|
__name: "HeaderCell",
|
|
6010
6163
|
props: {
|
|
6011
6164
|
label: { type: String, required: true }
|
|
@@ -6019,17 +6172,17 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
6019
6172
|
return __returned__;
|
|
6020
6173
|
}
|
|
6021
6174
|
});
|
|
6022
|
-
const _hoisted_1$
|
|
6023
|
-
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" };
|
|
6024
6177
|
const _hoisted_3$m = {
|
|
6025
6178
|
key: 0,
|
|
6026
6179
|
class: "onyx-data-grid-header-cell__actions"
|
|
6027
6180
|
};
|
|
6028
|
-
function _sfc_render$
|
|
6029
|
-
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, [
|
|
6030
6183
|
createElementVNode(
|
|
6031
6184
|
"span",
|
|
6032
|
-
_hoisted_2$
|
|
6185
|
+
_hoisted_2$u,
|
|
6033
6186
|
toDisplayString($setup.props.label),
|
|
6034
6187
|
1
|
|
6035
6188
|
/* TEXT */
|
|
@@ -6039,7 +6192,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6039
6192
|
])) : createCommentVNode("v-if", true)
|
|
6040
6193
|
]);
|
|
6041
6194
|
}
|
|
6042
|
-
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"]]);
|
|
6043
6196
|
const FALLBACK_RENDER_VALUE = "-";
|
|
6044
6197
|
const fallback = (opts) => opts?.fallback ?? FALLBACK_RENDER_VALUE;
|
|
6045
6198
|
const createTypeRenderer = (typeRenderer) => Object.freeze(typeRenderer);
|
|
@@ -6541,7 +6694,7 @@ const useErrorClass = (showError) => computed(() => {
|
|
|
6541
6694
|
}
|
|
6542
6695
|
return "onyx-form-element--touched-invalid";
|
|
6543
6696
|
});
|
|
6544
|
-
const _sfc_main$
|
|
6697
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
6545
6698
|
__name: "FormMessage",
|
|
6546
6699
|
props: {
|
|
6547
6700
|
messages: { type: Object, required: true },
|
|
@@ -6555,17 +6708,17 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
6555
6708
|
return __returned__;
|
|
6556
6709
|
}
|
|
6557
6710
|
});
|
|
6558
|
-
const _hoisted_1$
|
|
6711
|
+
const _hoisted_1$C = {
|
|
6559
6712
|
class: /* @__PURE__ */ normalizeClass(["onyx-truncation-ellipsis"])
|
|
6560
6713
|
};
|
|
6561
|
-
function _sfc_render$
|
|
6714
|
+
function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6562
6715
|
return openBlock(), createBlock(resolveDynamicComponent($props.messages.hidden ? $setup.OnyxVisuallyHidden : "span"), {
|
|
6563
6716
|
class: normalizeClass(["onyx-component", "onyx-form-message", `onyx-form-message__${$setup.props.type}`])
|
|
6564
6717
|
}, {
|
|
6565
6718
|
default: withCtx(() => [
|
|
6566
6719
|
createElementVNode(
|
|
6567
6720
|
"span",
|
|
6568
|
-
_hoisted_1$
|
|
6721
|
+
_hoisted_1$C,
|
|
6569
6722
|
toDisplayString($setup.props.messages.shortMessage),
|
|
6570
6723
|
1
|
|
6571
6724
|
/* TEXT */
|
|
@@ -6583,8 +6736,8 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6583
6736
|
/* STABLE */
|
|
6584
6737
|
}, 8, ["class"]);
|
|
6585
6738
|
}
|
|
6586
|
-
const FormMessage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6587
|
-
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({
|
|
6588
6741
|
__name: "OnyxFormElement",
|
|
6589
6742
|
props: {
|
|
6590
6743
|
disabled: { type: [Boolean, Symbol], required: false },
|
|
@@ -6657,17 +6810,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
6657
6810
|
return __returned__;
|
|
6658
6811
|
}
|
|
6659
6812
|
});
|
|
6660
|
-
const _hoisted_1$
|
|
6813
|
+
const _hoisted_1$B = {
|
|
6661
6814
|
key: 0,
|
|
6662
6815
|
class: "onyx-form-element__label onyx-text--small"
|
|
6663
6816
|
};
|
|
6664
|
-
const _hoisted_2$
|
|
6817
|
+
const _hoisted_2$t = ["for"];
|
|
6665
6818
|
const _hoisted_3$l = {
|
|
6666
6819
|
key: 1,
|
|
6667
6820
|
class: "onyx-form-element__footer onyx-text--small"
|
|
6668
6821
|
};
|
|
6669
6822
|
const _hoisted_4$g = { class: "onyx-form-element__footer-messages" };
|
|
6670
|
-
function _sfc_render$
|
|
6823
|
+
function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6671
6824
|
return openBlock(), createElementBlock(
|
|
6672
6825
|
"div",
|
|
6673
6826
|
{
|
|
@@ -6679,11 +6832,11 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6679
6832
|
])
|
|
6680
6833
|
},
|
|
6681
6834
|
[
|
|
6682
|
-
!$setup.props.hideLabel ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6835
|
+
!$setup.props.hideLabel ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
6683
6836
|
createElementVNode("label", {
|
|
6684
6837
|
for: $setup.props.id,
|
|
6685
6838
|
class: "onyx-truncation-ellipsis"
|
|
6686
|
-
}, toDisplayString($setup.props.label), 9, _hoisted_2$
|
|
6839
|
+
}, toDisplayString($setup.props.label), 9, _hoisted_2$t),
|
|
6687
6840
|
$setup.props.required ? (openBlock(), createElementBlock(
|
|
6688
6841
|
"span",
|
|
6689
6842
|
{
|
|
@@ -6754,8 +6907,8 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6754
6907
|
/* CLASS */
|
|
6755
6908
|
);
|
|
6756
6909
|
}
|
|
6757
|
-
const OnyxFormElement = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6758
|
-
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({
|
|
6759
6912
|
...{ inheritAttrs: false },
|
|
6760
6913
|
__name: "OnyxSelectInput",
|
|
6761
6914
|
props: {
|
|
@@ -6837,9 +6990,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
6837
6990
|
return __returned__;
|
|
6838
6991
|
}
|
|
6839
6992
|
});
|
|
6840
|
-
const _hoisted_1$
|
|
6841
|
-
const _hoisted_2$
|
|
6842
|
-
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) {
|
|
6843
6996
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
6844
6997
|
"div",
|
|
6845
6998
|
mergeProps({
|
|
@@ -6904,7 +7057,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6904
7057
|
autofocus: $setup.props.autofocus,
|
|
6905
7058
|
autocomplete: "off",
|
|
6906
7059
|
onKeydown: $setup.blockTyping
|
|
6907
|
-
}), null, 16, _hoisted_1$
|
|
7060
|
+
}), null, 16, _hoisted_1$A), [
|
|
6908
7061
|
[$setup["vCustomValidity"]]
|
|
6909
7062
|
]),
|
|
6910
7063
|
$setup.props.textMode === "preview" && $setup.selectionCount > 0 ? (openBlock(), createBlock($setup["OnyxTooltip"], {
|
|
@@ -6943,7 +7096,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6943
7096
|
disabled: $setup.disabled || $setup.props.readonly || $setup.props.loading
|
|
6944
7097
|
}, [
|
|
6945
7098
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronDownUp }, null, 8, ["icon"])
|
|
6946
|
-
], 8, _hoisted_2$
|
|
7099
|
+
], 8, _hoisted_2$s),
|
|
6947
7100
|
!$setup.props.hideSuccessIcon && $setup.successMessages ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
6948
7101
|
key: 2,
|
|
6949
7102
|
class: "onyx-select-input__check-icon",
|
|
@@ -6960,8 +7113,8 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6960
7113
|
/* FULL_PROPS */
|
|
6961
7114
|
));
|
|
6962
7115
|
}
|
|
6963
|
-
const OnyxSelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6964
|
-
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({
|
|
6965
7118
|
__name: "OnyxSelectOption",
|
|
6966
7119
|
props: {
|
|
6967
7120
|
active: { type: Boolean, required: false, default: false },
|
|
@@ -6979,8 +7132,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
6979
7132
|
return __returned__;
|
|
6980
7133
|
}
|
|
6981
7134
|
});
|
|
6982
|
-
const _hoisted_1$
|
|
6983
|
-
function _sfc_render$
|
|
7135
|
+
const _hoisted_1$z = ["checked", "aria-labelledby", "disabled", "indeterminate"];
|
|
7136
|
+
function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6984
7137
|
return openBlock(), createBlock($setup["OnyxListItem"], mergeProps({ class: "onyx-component onyx-select-option" }, $setup.props, {
|
|
6985
7138
|
checked: !!_ctx.$attrs["aria-checked"],
|
|
6986
7139
|
selected: !!_ctx.$attrs["aria-selected"],
|
|
@@ -6997,7 +7150,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6997
7150
|
tabindex: "-1",
|
|
6998
7151
|
class: "onyx-select-option__checkbox",
|
|
6999
7152
|
type: "checkbox"
|
|
7000
|
-
}, null, 8, _hoisted_1$
|
|
7153
|
+
}, null, 8, _hoisted_1$z)) : createCommentVNode("v-if", true),
|
|
7001
7154
|
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
7002
7155
|
key: 1,
|
|
7003
7156
|
icon: $setup.props.icon
|
|
@@ -7018,8 +7171,8 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7018
7171
|
/* FORWARDED */
|
|
7019
7172
|
}, 16, ["checked", "selected", "disabled"]);
|
|
7020
7173
|
}
|
|
7021
|
-
const OnyxSelectOption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7022
|
-
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({
|
|
7023
7176
|
__name: "OnyxSelect",
|
|
7024
7177
|
props: {
|
|
7025
7178
|
density: { type: null, required: false },
|
|
@@ -7289,11 +7442,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
7289
7442
|
return __returned__;
|
|
7290
7443
|
}
|
|
7291
7444
|
});
|
|
7292
|
-
const _hoisted_1$
|
|
7445
|
+
const _hoisted_1$y = {
|
|
7293
7446
|
ref: "selectRef",
|
|
7294
7447
|
class: "onyx-component onyx-select-wrapper"
|
|
7295
7448
|
};
|
|
7296
|
-
const _hoisted_2$
|
|
7449
|
+
const _hoisted_2$r = {
|
|
7297
7450
|
class: "onyx-select__wrapper",
|
|
7298
7451
|
tabindex: "-1"
|
|
7299
7452
|
};
|
|
@@ -7323,10 +7476,10 @@ const _hoisted_8$4 = {
|
|
|
7323
7476
|
key: 0,
|
|
7324
7477
|
class: "onyx-select__description onyx-text--small"
|
|
7325
7478
|
};
|
|
7326
|
-
function _sfc_render$
|
|
7479
|
+
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7327
7480
|
return openBlock(), createElementBlock(
|
|
7328
7481
|
"div",
|
|
7329
|
-
_hoisted_1$
|
|
7482
|
+
_hoisted_1$y,
|
|
7330
7483
|
[
|
|
7331
7484
|
createVNode($setup["OnyxBasicPopover"], {
|
|
7332
7485
|
class: normalizeClass($setup.densityClass),
|
|
@@ -7345,7 +7498,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7345
7498
|
}), null, 16, ["show-focus", "autofocus"])
|
|
7346
7499
|
]),
|
|
7347
7500
|
content: withCtx(() => [
|
|
7348
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_2$
|
|
7501
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_2$r, [
|
|
7349
7502
|
$setup.props.withSearch ? (openBlock(), createBlock($setup["OnyxMiniSearch"], mergeProps({
|
|
7350
7503
|
key: 0,
|
|
7351
7504
|
ref: "miniSearchRef",
|
|
@@ -7515,9 +7668,9 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7515
7668
|
/* NEED_PATCH */
|
|
7516
7669
|
);
|
|
7517
7670
|
}
|
|
7518
|
-
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"]]);
|
|
7519
7672
|
const pageSize = 100;
|
|
7520
|
-
const _sfc_main$
|
|
7673
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
7521
7674
|
__name: "OnyxSelectPagination",
|
|
7522
7675
|
props: {
|
|
7523
7676
|
density: { type: null, required: false },
|
|
@@ -7568,11 +7721,11 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
7568
7721
|
return __returned__;
|
|
7569
7722
|
}
|
|
7570
7723
|
});
|
|
7571
|
-
const _hoisted_1$
|
|
7572
|
-
const _hoisted_2$
|
|
7724
|
+
const _hoisted_1$x = ["aria-label"];
|
|
7725
|
+
const _hoisted_2$q = { class: "onyx-pagination__count" };
|
|
7573
7726
|
const _hoisted_3$j = ["aria-label", "disabled"];
|
|
7574
7727
|
const _hoisted_4$e = ["aria-label", "disabled"];
|
|
7575
|
-
function _sfc_render$
|
|
7728
|
+
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7576
7729
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
7577
7730
|
key: 0,
|
|
7578
7731
|
class: normalizeClass(["onyx-pagination-skeleton", "onyx-text", $setup.densityClass])
|
|
@@ -7603,7 +7756,7 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7603
7756
|
}, null, 8, ["search-term", "label", "list-label", "options", "model-value", "value-label", "disabled"]),
|
|
7604
7757
|
createElementVNode(
|
|
7605
7758
|
"div",
|
|
7606
|
-
_hoisted_2$
|
|
7759
|
+
_hoisted_2$q,
|
|
7607
7760
|
toDisplayString($setup.t("pagination.ofPages", { n: $setup.props.pages, pages: $setup.n($setup.props.pages, "decimal") })),
|
|
7608
7761
|
1
|
|
7609
7762
|
/* TEXT */
|
|
@@ -7626,10 +7779,10 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7626
7779
|
}, [
|
|
7627
7780
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronRightSmall }, null, 8, ["icon"])
|
|
7628
7781
|
], 8, _hoisted_4$e)
|
|
7629
|
-
], 14, _hoisted_1$
|
|
7782
|
+
], 14, _hoisted_1$x));
|
|
7630
7783
|
}
|
|
7631
|
-
const OnyxSelectPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7632
|
-
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({
|
|
7633
7786
|
__name: "OnyxPagination",
|
|
7634
7787
|
props: {
|
|
7635
7788
|
density: { type: null, required: false },
|
|
@@ -7648,7 +7801,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7648
7801
|
return __returned__;
|
|
7649
7802
|
}
|
|
7650
7803
|
});
|
|
7651
|
-
function _sfc_render$
|
|
7804
|
+
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7652
7805
|
return openBlock(), createBlock(
|
|
7653
7806
|
$setup["OnyxSelectPagination"],
|
|
7654
7807
|
mergeProps($setup.props, {
|
|
@@ -7659,7 +7812,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7659
7812
|
/* FULL_PROPS */
|
|
7660
7813
|
);
|
|
7661
7814
|
}
|
|
7662
|
-
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"]]);
|
|
7663
7816
|
const SELECTION_FEATURE = Symbol("Selection");
|
|
7664
7817
|
const SELECTION_MUTATION_ORDER = 1e3;
|
|
7665
7818
|
const useSelection = (options) => createFeature((ctx) => {
|
|
@@ -7937,7 +8090,7 @@ const BASE_FEATURE = (options) => createFeature(({ skeleton }) => {
|
|
|
7937
8090
|
}
|
|
7938
8091
|
};
|
|
7939
8092
|
});
|
|
7940
|
-
const _sfc_main$
|
|
8093
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
7941
8094
|
...{ inheritAttrs: false },
|
|
7942
8095
|
__name: "OnyxDataGrid",
|
|
7943
8096
|
props: {
|
|
@@ -8015,7 +8168,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
8015
8168
|
return __returned__;
|
|
8016
8169
|
}
|
|
8017
8170
|
});
|
|
8018
|
-
function _sfc_render$
|
|
8171
|
+
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8019
8172
|
return openBlock(), createBlock($setup["OnyxDataGridRenderer"], mergeProps(
|
|
8020
8173
|
{
|
|
8021
8174
|
"column-groups": $setup.rendererColumnGroups,
|
|
@@ -8050,7 +8203,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8050
8203
|
} : void 0
|
|
8051
8204
|
]), 1040, ["column-groups", "columns", "rows", "scroll-container-attrs"]);
|
|
8052
8205
|
}
|
|
8053
|
-
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"]]);
|
|
8054
8207
|
const HIDE_COLUMNS_FEATURE = Symbol("HideColumnsFeature");
|
|
8055
8208
|
const HIDDEN_COLUMN = Symbol("HiddenColumn");
|
|
8056
8209
|
const useHideColumns = (options) => createFeature((ctx) => {
|
|
@@ -8156,7 +8309,7 @@ const useHideColumns = (options) => createFeature((ctx) => {
|
|
|
8156
8309
|
}
|
|
8157
8310
|
};
|
|
8158
8311
|
});
|
|
8159
|
-
const _sfc_main$
|
|
8312
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
8160
8313
|
__name: "OnyxResizeHandle",
|
|
8161
8314
|
props: {
|
|
8162
8315
|
element: { type: null, required: true },
|
|
@@ -8230,7 +8383,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
8230
8383
|
return __returned__;
|
|
8231
8384
|
}
|
|
8232
8385
|
});
|
|
8233
|
-
function _sfc_render$
|
|
8386
|
+
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8234
8387
|
return openBlock(), createElementBlock(
|
|
8235
8388
|
"button",
|
|
8236
8389
|
{
|
|
@@ -8264,7 +8417,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8264
8417
|
/* CLASS, NEED_HYDRATION */
|
|
8265
8418
|
);
|
|
8266
8419
|
}
|
|
8267
|
-
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"]]);
|
|
8268
8421
|
const RESIZING_FEATURE = Symbol("Resizing");
|
|
8269
8422
|
const FILLER_COLUMN = Symbol("FILLER_COLUMN");
|
|
8270
8423
|
const useResizing = (options) => createFeature((ctx) => {
|
|
@@ -8406,7 +8559,7 @@ const DEFAULT_COMPARES = Object.freeze({
|
|
|
8406
8559
|
skeleton: () => 0,
|
|
8407
8560
|
boolean: BOOLEAN_COMPARE
|
|
8408
8561
|
});
|
|
8409
|
-
const _sfc_main$
|
|
8562
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
8410
8563
|
__name: "SortAction",
|
|
8411
8564
|
props: {
|
|
8412
8565
|
columnLabel: { type: String, required: true },
|
|
@@ -8430,14 +8583,14 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
8430
8583
|
return __returned__;
|
|
8431
8584
|
}
|
|
8432
8585
|
});
|
|
8433
|
-
function _sfc_render$
|
|
8586
|
+
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8434
8587
|
return openBlock(), createBlock($setup["OnyxSystemButton"], {
|
|
8435
8588
|
label: $setup.buttonLabel,
|
|
8436
8589
|
icon: $setup.icon,
|
|
8437
8590
|
color: "medium"
|
|
8438
8591
|
}, null, 8, ["label", "icon"]);
|
|
8439
8592
|
}
|
|
8440
|
-
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"]]);
|
|
8441
8594
|
const nextSortDirection = (current, skipNone) => {
|
|
8442
8595
|
switch (current) {
|
|
8443
8596
|
case "asc":
|
|
@@ -8680,7 +8833,7 @@ const all = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
8680
8833
|
useSorting,
|
|
8681
8834
|
useStickyColumns
|
|
8682
8835
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8683
|
-
const _sfc_main$
|
|
8836
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
8684
8837
|
...{ inheritAttrs: false },
|
|
8685
8838
|
__name: "OnyxDatePicker",
|
|
8686
8839
|
props: {
|
|
@@ -8752,9 +8905,9 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
8752
8905
|
return __returned__;
|
|
8753
8906
|
}
|
|
8754
8907
|
});
|
|
8755
|
-
const _hoisted_1$
|
|
8756
|
-
const _hoisted_2$
|
|
8757
|
-
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) {
|
|
8758
8911
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
8759
8912
|
"div",
|
|
8760
8913
|
mergeProps({
|
|
@@ -8783,7 +8936,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8783
8936
|
message: $setup.messages
|
|
8784
8937
|
}), {
|
|
8785
8938
|
default: withCtx(({ id: inputId }) => [
|
|
8786
|
-
createElementVNode("div", _hoisted_1$
|
|
8939
|
+
createElementVNode("div", _hoisted_1$w, [
|
|
8787
8940
|
$setup.props.loading ? (openBlock(), createBlock($setup["OnyxLoadingIndicator"], {
|
|
8788
8941
|
key: 0,
|
|
8789
8942
|
class: "onyx-datepicker__loading",
|
|
@@ -8805,7 +8958,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8805
8958
|
title: $setup.props.hideLabel ? $setup.props.label : void 0,
|
|
8806
8959
|
min: $setup.getNormalizedDate($setup.props.min),
|
|
8807
8960
|
max: $setup.getNormalizedDate($setup.props.max)
|
|
8808
|
-
}, $setup.restAttrs), null, 16, _hoisted_2$
|
|
8961
|
+
}, $setup.restAttrs), null, 16, _hoisted_2$p)), [
|
|
8809
8962
|
[vModelDynamic, $setup.value],
|
|
8810
8963
|
[$setup["vCustomValidity"]]
|
|
8811
8964
|
])
|
|
@@ -8819,9 +8972,9 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8819
8972
|
/* FULL_PROPS */
|
|
8820
8973
|
));
|
|
8821
8974
|
}
|
|
8822
|
-
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"]]);
|
|
8823
8976
|
const DIALOG_ALIGNMENTS = ["left", "center", "right"];
|
|
8824
|
-
const _sfc_main$
|
|
8977
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
8825
8978
|
__name: "OnyxDialog",
|
|
8826
8979
|
props: {
|
|
8827
8980
|
density: { type: null, required: false },
|
|
@@ -8854,15 +9007,15 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
8854
9007
|
return __returned__;
|
|
8855
9008
|
}
|
|
8856
9009
|
});
|
|
8857
|
-
const _hoisted_1$
|
|
8858
|
-
const _hoisted_2$
|
|
9010
|
+
const _hoisted_1$v = { class: "onyx-dialog__header" };
|
|
9011
|
+
const _hoisted_2$o = { class: "onyx-dialog__headline" };
|
|
8859
9012
|
const _hoisted_3$i = { class: "onyx-dialog__headline-content" };
|
|
8860
9013
|
const _hoisted_4$d = { class: "onyx-dialog__body" };
|
|
8861
9014
|
const _hoisted_5$a = {
|
|
8862
9015
|
key: 0,
|
|
8863
9016
|
class: "onyx-dialog__footer"
|
|
8864
9017
|
};
|
|
8865
|
-
function _sfc_render$
|
|
9018
|
+
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8866
9019
|
return openBlock(), createBlock($setup["OnyxBasicPopover"], mergeProps($setup.props, {
|
|
8867
9020
|
open: $setup.isExpanded,
|
|
8868
9021
|
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => $setup.isExpanded = $event),
|
|
@@ -8872,8 +9025,8 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8872
9025
|
renderSlot(_ctx.$slots, "trigger", { trigger })
|
|
8873
9026
|
]),
|
|
8874
9027
|
content: withCtx(() => [
|
|
8875
|
-
createElementVNode("div", _hoisted_1$
|
|
8876
|
-
createElementVNode("div", _hoisted_2$
|
|
9028
|
+
createElementVNode("div", _hoisted_1$v, [
|
|
9029
|
+
createElementVNode("div", _hoisted_2$o, [
|
|
8877
9030
|
createElementVNode("div", _hoisted_3$i, [
|
|
8878
9031
|
renderSlot(_ctx.$slots, "headline", {
|
|
8879
9032
|
label: $setup.props.label
|
|
@@ -8911,101 +9064,48 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8911
9064
|
/* FORWARDED */
|
|
8912
9065
|
}, 16, ["open", "class"]);
|
|
8913
9066
|
}
|
|
8914
|
-
const OnyxDialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8915
|
-
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({
|
|
8916
9069
|
__name: "OnyxForm",
|
|
8917
9070
|
props: {
|
|
8918
9071
|
disabled: { type: Boolean, required: false, default: false },
|
|
8919
9072
|
showError: { type: null, required: false, default: "touched" },
|
|
8920
|
-
requiredMarker: { type: null, required: false },
|
|
8921
|
-
skeleton: { type: Boolean, required: false },
|
|
8922
|
-
density: { type: null, required: false }
|
|
8923
|
-
},
|
|
8924
|
-
setup(__props, { expose: __expose }) {
|
|
8925
|
-
__expose();
|
|
8926
|
-
const props = __props;
|
|
8927
|
-
provideFormContext(props);
|
|
8928
|
-
provideSkeletonContext(props);
|
|
8929
|
-
const { densityClass } = useDensity(props);
|
|
8930
|
-
const __returned__ = { props, densityClass };
|
|
8931
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
8932
|
-
return __returned__;
|
|
8933
|
-
}
|
|
8934
|
-
});
|
|
8935
|
-
function _sfc_render$
|
|
8936
|
-
return openBlock(), createElementBlock(
|
|
8937
|
-
"form",
|
|
8938
|
-
{
|
|
8939
|
-
class: normalizeClass({
|
|
8940
|
-
"onyx-component": true,
|
|
8941
|
-
"onyx-form": true,
|
|
8942
|
-
...$setup.densityClass
|
|
8943
|
-
})
|
|
8944
|
-
},
|
|
8945
|
-
[
|
|
8946
|
-
renderSlot(_ctx.$slots, "default")
|
|
8947
|
-
],
|
|
8948
|
-
2
|
|
8949
|
-
/* CLASS */
|
|
8950
|
-
);
|
|
8951
|
-
}
|
|
8952
|
-
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"]]);
|
|
8953
|
-
const HEADLINE_TYPES = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
8954
|
-
const ICON_SIZES = ["12px", "16px", "24px", "32px", "48px", "64px", "96px"];
|
|
8955
|
-
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
8956
|
-
__name: "OnyxIconButton",
|
|
8957
|
-
props: {
|
|
8958
|
-
density: { type: null, required: false },
|
|
8959
|
-
autofocus: { type: Boolean, required: false },
|
|
8960
|
-
link: { type: null, required: false },
|
|
8961
|
-
label: { type: String, required: true },
|
|
8962
|
-
disabled: { type: [Boolean, Symbol], required: false, default: FORM_INJECTED_SYMBOL },
|
|
8963
|
-
type: { type: null, required: false, default: "button" },
|
|
8964
|
-
color: { type: null, required: false, default: "primary" },
|
|
8965
|
-
loading: { type: Boolean, required: false },
|
|
8966
|
-
icon: { type: String, required: false },
|
|
8967
|
-
skeleton: { type: [Symbol, Boolean, Number], required: false, default: SKELETON_INJECTED_SYMBOL }
|
|
8968
|
-
},
|
|
8969
|
-
setup(__props, { expose: __expose }) {
|
|
8970
|
-
__expose();
|
|
8971
|
-
const props = __props;
|
|
8972
|
-
const { densityClass } = useDensity(props);
|
|
8973
|
-
const skeleton = useSkeletonContext(props);
|
|
8974
|
-
const __returned__ = { props, densityClass, skeleton, ButtonOrLinkLayout, OnyxIcon, OnyxLoadingIndicator, OnyxSkeleton };
|
|
8975
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
8976
|
-
return __returned__;
|
|
8977
|
-
}
|
|
8978
|
-
});
|
|
8979
|
-
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8980
|
-
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
8981
|
-
key: 0,
|
|
8982
|
-
class: normalizeClass(["onyx-icon-button-skeleton", $setup.densityClass])
|
|
8983
|
-
}, null, 8, ["class"])) : (openBlock(), createBlock($setup["ButtonOrLinkLayout"], mergeProps({ key: 1 }, $setup.props, {
|
|
8984
|
-
"aria-label": $setup.props.label,
|
|
8985
|
-
title: $setup.props.label,
|
|
8986
|
-
class: [
|
|
8987
|
-
"onyx-component",
|
|
8988
|
-
"onyx-icon-button",
|
|
8989
|
-
`onyx-icon-button--${$setup.props.color}`,
|
|
8990
|
-
{ "onyx-icon-button--loading": $setup.props.loading },
|
|
8991
|
-
$setup.densityClass
|
|
8992
|
-
]
|
|
8993
|
-
}), {
|
|
8994
|
-
default: withCtx(() => [
|
|
8995
|
-
$setup.props.loading ? (openBlock(), createBlock($setup["OnyxLoadingIndicator"], {
|
|
8996
|
-
key: 0,
|
|
8997
|
-
type: "circle"
|
|
8998
|
-
})) : $setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
8999
|
-
key: 1,
|
|
9000
|
-
icon: $setup.props.icon
|
|
9001
|
-
}, null, 8, ["icon"])) : renderSlot(_ctx.$slots, "default", { key: 2 })
|
|
9002
|
-
]),
|
|
9003
|
-
_: 3
|
|
9004
|
-
/* FORWARDED */
|
|
9005
|
-
}, 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
|
+
);
|
|
9006
9104
|
}
|
|
9007
|
-
const
|
|
9008
|
-
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({
|
|
9009
9109
|
...{ inheritAttrs: false },
|
|
9010
9110
|
__name: "OnyxImage",
|
|
9011
9111
|
props: {
|
|
@@ -9044,10 +9144,10 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
9044
9144
|
return __returned__;
|
|
9045
9145
|
}
|
|
9046
9146
|
});
|
|
9047
|
-
const _hoisted_1$
|
|
9048
|
-
const _hoisted_2$
|
|
9147
|
+
const _hoisted_1$u = ["src", "alt"];
|
|
9148
|
+
const _hoisted_2$n = ["src", "alt"];
|
|
9049
9149
|
const _hoisted_3$h = { class: "onyx-image__alt onyx-text--small" };
|
|
9050
|
-
function _sfc_render$
|
|
9150
|
+
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9051
9151
|
return openBlock(), createElementBlock(
|
|
9052
9152
|
"figure",
|
|
9053
9153
|
mergeProps($setup.rootAttrs, {
|
|
@@ -9072,7 +9172,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9072
9172
|
src: $setup.imageSrc.light,
|
|
9073
9173
|
alt: $setup.props.alt,
|
|
9074
9174
|
onError: _cache[0] || (_cache[0] = ($event) => $setup.isError = true)
|
|
9075
|
-
}), null, 16, _hoisted_1$
|
|
9175
|
+
}), null, 16, _hoisted_1$u),
|
|
9076
9176
|
$setup.imageSrc.dark ? (openBlock(), createElementBlock("img", mergeProps({
|
|
9077
9177
|
key: 0,
|
|
9078
9178
|
class: "onyx-image__source onyx-image__source--dark"
|
|
@@ -9080,7 +9180,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9080
9180
|
src: $setup.imageSrc.dark,
|
|
9081
9181
|
alt: $setup.props.alt,
|
|
9082
9182
|
onError: _cache[1] || (_cache[1] = ($event) => $setup.isError = true)
|
|
9083
|
-
}), null, 16, _hoisted_2$
|
|
9183
|
+
}), null, 16, _hoisted_2$n)) : createCommentVNode("v-if", true),
|
|
9084
9184
|
$setup.isError ? (openBlock(), createElementBlock(
|
|
9085
9185
|
"div",
|
|
9086
9186
|
mergeProps({
|
|
@@ -9113,7 +9213,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9113
9213
|
/* FULL_PROPS */
|
|
9114
9214
|
);
|
|
9115
9215
|
}
|
|
9116
|
-
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"]]);
|
|
9117
9217
|
const IMAGE_SHAPES = ["rounded", "circle", "clip", "clip-inverted"];
|
|
9118
9218
|
const useLenientMaxLengthValidation = (options) => {
|
|
9119
9219
|
const { t } = injectI18n();
|
|
@@ -9154,7 +9254,7 @@ const MOBILE_NAV_BAR_INJECTION_KEY = Symbol();
|
|
|
9154
9254
|
const NAV_BAR_IS_TOP_LEVEL_INJECTION_KEY = Symbol();
|
|
9155
9255
|
const NAV_BAR_MORE_LIST_INJECTION_KEY = Symbol();
|
|
9156
9256
|
const NAV_BAR_MORE_LIST_TARGET_INJECTION_KEY = Symbol();
|
|
9157
|
-
const _sfc_main$
|
|
9257
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
9158
9258
|
__name: "OnyxSeparator",
|
|
9159
9259
|
props: {
|
|
9160
9260
|
orientation: { type: null, required: false, default: "horizontal" }
|
|
@@ -9171,16 +9271,16 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
9171
9271
|
return __returned__;
|
|
9172
9272
|
}
|
|
9173
9273
|
});
|
|
9174
|
-
const _hoisted_1$
|
|
9175
|
-
function _sfc_render$
|
|
9274
|
+
const _hoisted_1$t = ["aria-orientation"];
|
|
9275
|
+
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9176
9276
|
return openBlock(), createElementBlock("div", {
|
|
9177
9277
|
class: normalizeClass(["onyx-component onyx-separator", { "onyx-separator--vertical": $setup.isVertical }]),
|
|
9178
9278
|
role: "separator",
|
|
9179
9279
|
"aria-orientation": $setup.props.orientation
|
|
9180
|
-
}, null, 10, _hoisted_1$
|
|
9280
|
+
}, null, 10, _hoisted_1$t);
|
|
9181
9281
|
}
|
|
9182
|
-
const OnyxSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9183
|
-
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({
|
|
9184
9284
|
...{ inheritAttrs: false },
|
|
9185
9285
|
__name: "OnyxInput",
|
|
9186
9286
|
props: {
|
|
@@ -9268,10 +9368,10 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
9268
9368
|
return __returned__;
|
|
9269
9369
|
}
|
|
9270
9370
|
});
|
|
9271
|
-
const _hoisted_1$
|
|
9272
|
-
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"];
|
|
9273
9373
|
const _hoisted_3$g = ["aria-label", "title"];
|
|
9274
|
-
function _sfc_render$
|
|
9374
|
+
function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9275
9375
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
9276
9376
|
"div",
|
|
9277
9377
|
mergeProps({
|
|
@@ -9300,7 +9400,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9300
9400
|
message: $setup.messages
|
|
9301
9401
|
}), {
|
|
9302
9402
|
default: withCtx(({ id: inputId }) => [
|
|
9303
|
-
createElementVNode("div", _hoisted_1$
|
|
9403
|
+
createElementVNode("div", _hoisted_1$s, [
|
|
9304
9404
|
renderSlot(_ctx.$slots, "leading"),
|
|
9305
9405
|
$setup.slots.leading ? (openBlock(), createBlock($setup["OnyxSeparator"], {
|
|
9306
9406
|
key: 0,
|
|
@@ -9331,7 +9431,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9331
9431
|
minlength: $setup.props.minlength,
|
|
9332
9432
|
"aria-label": $setup.props.hideLabel ? $setup.props.label : void 0,
|
|
9333
9433
|
title: $setup.props.hideLabel ? $setup.props.label : void 0
|
|
9334
|
-
}, $setup.restAttrs), null, 16, _hoisted_2$
|
|
9434
|
+
}, $setup.restAttrs), null, 16, _hoisted_2$m), [
|
|
9335
9435
|
[vModelDynamic, $setup.modelValue],
|
|
9336
9436
|
[$setup["vCustomValidity"]]
|
|
9337
9437
|
]),
|
|
@@ -9377,9 +9477,9 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9377
9477
|
/* FULL_PROPS */
|
|
9378
9478
|
));
|
|
9379
9479
|
}
|
|
9380
|
-
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"]]);
|
|
9381
9481
|
const INPUT_TYPES = ["email", "password", "search", "tel", "text", "url"];
|
|
9382
|
-
const _sfc_main$
|
|
9482
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
9383
9483
|
__name: "OnyxLink",
|
|
9384
9484
|
props: {
|
|
9385
9485
|
href: { type: String, required: false },
|
|
@@ -9394,7 +9494,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
9394
9494
|
return __returned__;
|
|
9395
9495
|
}
|
|
9396
9496
|
});
|
|
9397
|
-
function _sfc_render$
|
|
9497
|
+
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9398
9498
|
return openBlock(), createBlock(
|
|
9399
9499
|
$setup["OnyxRouterLink"],
|
|
9400
9500
|
mergeProps({ class: "onyx-component onyx-link" }, $setup.props),
|
|
@@ -9416,8 +9516,8 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9416
9516
|
/* FULL_PROPS */
|
|
9417
9517
|
);
|
|
9418
9518
|
}
|
|
9419
|
-
const OnyxLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9420
|
-
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({
|
|
9421
9521
|
__name: "OnyxMobileNavButton",
|
|
9422
9522
|
props: {
|
|
9423
9523
|
label: { type: String, required: true },
|
|
@@ -9439,12 +9539,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
9439
9539
|
return __returned__;
|
|
9440
9540
|
}
|
|
9441
9541
|
});
|
|
9442
|
-
const _hoisted_1$
|
|
9443
|
-
const _hoisted_2$
|
|
9542
|
+
const _hoisted_1$r = { class: "onyx-component onyx-mobile-nav-button" };
|
|
9543
|
+
const _hoisted_2$l = ["aria-label", "disabled"];
|
|
9444
9544
|
const _hoisted_3$f = { class: "onyx-mobile-nav-button__flyout" };
|
|
9445
9545
|
const _hoisted_4$c = { class: "onyx-mobile-nav-button__menu" };
|
|
9446
|
-
function _sfc_render$
|
|
9447
|
-
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, [
|
|
9448
9548
|
createElementVNode("button", {
|
|
9449
9549
|
type: "button",
|
|
9450
9550
|
class: normalizeClass(["onyx-mobile-nav-button__trigger", { "onyx-mobile-nav-button__trigger--active": $setup.props.open }]),
|
|
@@ -9455,7 +9555,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9455
9555
|
createVNode($setup["OnyxIcon"], {
|
|
9456
9556
|
icon: $setup.props.open ? $setup.iconX : $setup.props.icon
|
|
9457
9557
|
}, null, 8, ["icon"])
|
|
9458
|
-
], 10, _hoisted_2$
|
|
9558
|
+
], 10, _hoisted_2$l),
|
|
9459
9559
|
withDirectives(createElementVNode(
|
|
9460
9560
|
"div",
|
|
9461
9561
|
_hoisted_3$f,
|
|
@@ -9492,8 +9592,8 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9492
9592
|
})) : createCommentVNode("v-if", true)
|
|
9493
9593
|
]);
|
|
9494
9594
|
}
|
|
9495
|
-
const OnyxMobileNavButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9496
|
-
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({
|
|
9497
9597
|
__name: "OnyxModal",
|
|
9498
9598
|
props: {
|
|
9499
9599
|
density: { type: null, required: false },
|
|
@@ -9519,8 +9619,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
9519
9619
|
return __returned__;
|
|
9520
9620
|
}
|
|
9521
9621
|
});
|
|
9522
|
-
const _hoisted_1$
|
|
9523
|
-
const _hoisted_2$
|
|
9622
|
+
const _hoisted_1$q = { class: "onyx-modal__header" };
|
|
9623
|
+
const _hoisted_2$k = { class: "onyx-modal__headline" };
|
|
9524
9624
|
const _hoisted_3$e = { class: "onyx-modal__headline-content" };
|
|
9525
9625
|
const _hoisted_4$b = ["id"];
|
|
9526
9626
|
const _hoisted_5$9 = { class: "onyx-modal__body" };
|
|
@@ -9528,7 +9628,7 @@ const _hoisted_6$7 = {
|
|
|
9528
9628
|
key: 0,
|
|
9529
9629
|
class: "onyx-modal__footer"
|
|
9530
9630
|
};
|
|
9531
|
-
function _sfc_render$
|
|
9631
|
+
function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9532
9632
|
return openBlock(), createBlock($setup["OnyxBasicDialog"], mergeProps($setup.props, {
|
|
9533
9633
|
modal: "",
|
|
9534
9634
|
class: ["onyx-modal", $setup.densityClass],
|
|
@@ -9536,8 +9636,8 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9536
9636
|
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => $setup.emit("update:open", $event))
|
|
9537
9637
|
}), {
|
|
9538
9638
|
default: withCtx(() => [
|
|
9539
|
-
createElementVNode("div", _hoisted_1$
|
|
9540
|
-
createElementVNode("div", _hoisted_2$
|
|
9639
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
9640
|
+
createElementVNode("div", _hoisted_2$k, [
|
|
9541
9641
|
createElementVNode("div", _hoisted_3$e, [
|
|
9542
9642
|
renderSlot(_ctx.$slots, "headline", {
|
|
9543
9643
|
label: $setup.props.label
|
|
@@ -9582,8 +9682,8 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9582
9682
|
/* FORWARDED */
|
|
9583
9683
|
}, 16, ["class", "aria-describedby"]);
|
|
9584
9684
|
}
|
|
9585
|
-
const OnyxModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9586
|
-
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({
|
|
9587
9687
|
__name: "OnyxNavAppArea",
|
|
9588
9688
|
props: {
|
|
9589
9689
|
link: { type: null, required: false, default: "/" },
|
|
@@ -9602,12 +9702,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
9602
9702
|
return __returned__;
|
|
9603
9703
|
}
|
|
9604
9704
|
});
|
|
9605
|
-
const _hoisted_1$
|
|
9606
|
-
const _hoisted_2$
|
|
9705
|
+
const _hoisted_1$p = ["src", "alt"];
|
|
9706
|
+
const _hoisted_2$j = {
|
|
9607
9707
|
key: 1,
|
|
9608
9708
|
class: "onyx-text-small onyx-truncation-ellipsis"
|
|
9609
9709
|
};
|
|
9610
|
-
function _sfc_render$
|
|
9710
|
+
function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9611
9711
|
return openBlock(), createBlock($setup["OnyxRouterLink"], mergeProps($setup.linkProps, {
|
|
9612
9712
|
class: "onyx-component onyx-nav-app-area",
|
|
9613
9713
|
"aria-label": $setup.buttonLabel
|
|
@@ -9621,10 +9721,10 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9621
9721
|
class: "onyx-nav-app-area__logo",
|
|
9622
9722
|
width: "24",
|
|
9623
9723
|
height: "24"
|
|
9624
|
-
}, null, 8, _hoisted_1$
|
|
9724
|
+
}, null, 8, _hoisted_1$p)) : createCommentVNode("v-if", true),
|
|
9625
9725
|
$setup.props.appName ? (openBlock(), createElementBlock(
|
|
9626
9726
|
"span",
|
|
9627
|
-
_hoisted_2$
|
|
9727
|
+
_hoisted_2$j,
|
|
9628
9728
|
toDisplayString($setup.props.appName),
|
|
9629
9729
|
1
|
|
9630
9730
|
/* TEXT */
|
|
@@ -9635,8 +9735,8 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9635
9735
|
/* FORWARDED */
|
|
9636
9736
|
}, 16, ["aria-label"]);
|
|
9637
9737
|
}
|
|
9638
|
-
const OnyxNavAppArea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9639
|
-
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({
|
|
9640
9740
|
__name: "OnyxSelectDialog",
|
|
9641
9741
|
props: {
|
|
9642
9742
|
open: { type: [Boolean, null], required: false, skipCheck: true, default: false },
|
|
@@ -9669,14 +9769,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
9669
9769
|
return __returned__;
|
|
9670
9770
|
}
|
|
9671
9771
|
});
|
|
9672
|
-
const _hoisted_1$
|
|
9673
|
-
const _hoisted_2$
|
|
9772
|
+
const _hoisted_1$o = ["id"];
|
|
9773
|
+
const _hoisted_2$i = ["autofocus", "value", "checked", "aria-label"];
|
|
9674
9774
|
const _hoisted_3$d = { class: "onyx-select-dialog__label" };
|
|
9675
9775
|
const _hoisted_4$a = {
|
|
9676
9776
|
key: 0,
|
|
9677
9777
|
class: "onyx-text--small"
|
|
9678
9778
|
};
|
|
9679
|
-
function _sfc_render$
|
|
9779
|
+
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9680
9780
|
return openBlock(), createBlock($setup["OnyxModal"], mergeProps($setup.props, {
|
|
9681
9781
|
open: $setup.props.open,
|
|
9682
9782
|
class: "onyx-select-dialog",
|
|
@@ -9746,7 +9846,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9746
9846
|
checked: $setup.props.modelValue === option.value,
|
|
9747
9847
|
"aria-label": option.label,
|
|
9748
9848
|
required: ""
|
|
9749
|
-
}, null, 8, _hoisted_2$
|
|
9849
|
+
}, null, 8, _hoisted_2$i)
|
|
9750
9850
|
]),
|
|
9751
9851
|
_: 2
|
|
9752
9852
|
/* DYNAMIC */
|
|
@@ -9785,7 +9885,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9785
9885
|
32
|
|
9786
9886
|
/* NEED_HYDRATION */
|
|
9787
9887
|
)
|
|
9788
|
-
], 40, _hoisted_1$
|
|
9888
|
+
], 40, _hoisted_1$o)
|
|
9789
9889
|
]),
|
|
9790
9890
|
_: 2
|
|
9791
9891
|
/* DYNAMIC */
|
|
@@ -9799,11 +9899,11 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9799
9899
|
} : void 0
|
|
9800
9900
|
]), 1040, ["open", "label"]);
|
|
9801
9901
|
}
|
|
9802
|
-
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"]]);
|
|
9803
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>';
|
|
9804
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>';
|
|
9805
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>';
|
|
9806
|
-
const _sfc_main$
|
|
9906
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
9807
9907
|
__name: "OnyxColorSchemeDialog",
|
|
9808
9908
|
props: {
|
|
9809
9909
|
open: { type: [Boolean, null], required: false, skipCheck: true, default: false },
|
|
@@ -9843,7 +9943,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
9843
9943
|
return __returned__;
|
|
9844
9944
|
}
|
|
9845
9945
|
});
|
|
9846
|
-
function _sfc_render$
|
|
9946
|
+
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9847
9947
|
return openBlock(), createBlock($setup["OnyxSelectDialog"], mergeProps({ class: "onyx-color-scheme-dialog" }, $setup.props, {
|
|
9848
9948
|
label: $setup.t("colorScheme.headline"),
|
|
9849
9949
|
options: $setup.options,
|
|
@@ -9862,8 +9962,8 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9862
9962
|
/* STABLE */
|
|
9863
9963
|
}, 16, ["label", "options", "open"]);
|
|
9864
9964
|
}
|
|
9865
|
-
const OnyxColorSchemeDialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9866
|
-
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({
|
|
9867
9967
|
__name: "OnyxColorSchemeMenuItem",
|
|
9868
9968
|
props: {
|
|
9869
9969
|
modelValue: { type: String, required: true }
|
|
@@ -9882,8 +9982,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
9882
9982
|
return __returned__;
|
|
9883
9983
|
}
|
|
9884
9984
|
});
|
|
9885
|
-
const _hoisted_1$
|
|
9886
|
-
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) {
|
|
9887
9987
|
return openBlock(), createBlock($setup["OnyxMenuItem"], {
|
|
9888
9988
|
class: "onyx-component onyx-color-scheme-menu-item",
|
|
9889
9989
|
onClick: _cache[2] || (_cache[2] = ($event) => $setup.isOpen = true)
|
|
@@ -9898,7 +9998,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9898
9998
|
),
|
|
9899
9999
|
createElementVNode(
|
|
9900
10000
|
"span",
|
|
9901
|
-
_hoisted_1$
|
|
10001
|
+
_hoisted_1$n,
|
|
9902
10002
|
toDisplayString($setup.t(`colorScheme.${$setup.props.modelValue}.label`)),
|
|
9903
10003
|
1
|
|
9904
10004
|
/* TEXT */
|
|
@@ -9917,8 +10017,8 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9917
10017
|
/* STABLE */
|
|
9918
10018
|
});
|
|
9919
10019
|
}
|
|
9920
|
-
const OnyxColorSchemeMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9921
|
-
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({
|
|
9922
10022
|
__name: "OnyxLanguageMenuItem",
|
|
9923
10023
|
props: {
|
|
9924
10024
|
modelValue: { type: null, required: true },
|
|
@@ -9943,8 +10043,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
9943
10043
|
return __returned__;
|
|
9944
10044
|
}
|
|
9945
10045
|
});
|
|
9946
|
-
const _hoisted_1$
|
|
9947
|
-
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) {
|
|
9948
10048
|
return openBlock(), createBlock($setup["OnyxMenuItem"], {
|
|
9949
10049
|
class: "onyx-component onyx-language-menu-item",
|
|
9950
10050
|
onClick: _cache[2] || (_cache[2] = ($event) => $setup.isOpen = true)
|
|
@@ -9959,7 +10059,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9959
10059
|
),
|
|
9960
10060
|
createElementVNode(
|
|
9961
10061
|
"span",
|
|
9962
|
-
_hoisted_1$
|
|
10062
|
+
_hoisted_1$m,
|
|
9963
10063
|
toDisplayString($setup.currentValueLabel),
|
|
9964
10064
|
1
|
|
9965
10065
|
/* TEXT */
|
|
@@ -9990,8 +10090,8 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9990
10090
|
/* STABLE */
|
|
9991
10091
|
});
|
|
9992
10092
|
}
|
|
9993
|
-
const OnyxLanguageMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9994
|
-
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({
|
|
9995
10095
|
__name: "OnyxNavItemFacade",
|
|
9996
10096
|
props: {
|
|
9997
10097
|
link: { type: null, required: false },
|
|
@@ -10012,7 +10112,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
10012
10112
|
return __returned__;
|
|
10013
10113
|
}
|
|
10014
10114
|
});
|
|
10015
|
-
function _sfc_render$
|
|
10115
|
+
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10016
10116
|
return openBlock(), createBlock($setup["OnyxMenuItem"], mergeProps($setup.props, {
|
|
10017
10117
|
link: $setup.hasChildren && $setup.props.context !== "navbar" ? void 0 : $setup.props.link,
|
|
10018
10118
|
class: {
|
|
@@ -10038,8 +10138,8 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10038
10138
|
} : void 0
|
|
10039
10139
|
]), 1040, ["link", "class", "open"]);
|
|
10040
10140
|
}
|
|
10041
|
-
const OnyxNavItemFacade = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10042
|
-
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({
|
|
10043
10143
|
...{ inheritAttrs: false },
|
|
10044
10144
|
__name: "OnyxNavItem",
|
|
10045
10145
|
props: {
|
|
@@ -10085,12 +10185,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
10085
10185
|
return __returned__;
|
|
10086
10186
|
}
|
|
10087
10187
|
});
|
|
10088
|
-
const _hoisted_1$
|
|
10089
|
-
const _hoisted_2$
|
|
10188
|
+
const _hoisted_1$l = { class: "onyx-nav-item-wrapper__controls" };
|
|
10189
|
+
const _hoisted_2$h = {
|
|
10090
10190
|
role: "menu",
|
|
10091
10191
|
class: "onyx-nav-item-wrapper__mobile-children"
|
|
10092
10192
|
};
|
|
10093
|
-
function _sfc_render$
|
|
10193
|
+
function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10094
10194
|
return openBlock(), createElementBlock(
|
|
10095
10195
|
Fragment,
|
|
10096
10196
|
null,
|
|
@@ -10106,7 +10206,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10106
10206
|
}
|
|
10107
10207
|
}, $setup.rootAttrs),
|
|
10108
10208
|
[
|
|
10109
|
-
createElementVNode("div", _hoisted_1$
|
|
10209
|
+
createElementVNode("div", _hoisted_1$l, [
|
|
10110
10210
|
createVNode($setup["OnyxButton"], {
|
|
10111
10211
|
label: $setup.t("back"),
|
|
10112
10212
|
mode: "plain",
|
|
@@ -10134,7 +10234,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10134
10234
|
/* STABLE_FRAGMENT */
|
|
10135
10235
|
)) : createCommentVNode("v-if", true)
|
|
10136
10236
|
]),
|
|
10137
|
-
createElementVNode("ul", _hoisted_2$
|
|
10237
|
+
createElementVNode("ul", _hoisted_2$h, [
|
|
10138
10238
|
renderSlot(_ctx.$slots, "children")
|
|
10139
10239
|
])
|
|
10140
10240
|
],
|
|
@@ -10243,7 +10343,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10243
10343
|
/* STABLE_FRAGMENT */
|
|
10244
10344
|
);
|
|
10245
10345
|
}
|
|
10246
|
-
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"]]);
|
|
10247
10347
|
const useTimer = (endTime) => {
|
|
10248
10348
|
const intervalId = ref();
|
|
10249
10349
|
const timeLeft = ref(calculateTimeLeft(new Date(endTime.value).getTime()));
|
|
@@ -10304,7 +10404,7 @@ const timeToDurationString = (timeLeft) => {
|
|
|
10304
10404
|
const { hours, minutes, seconds } = getTimeFragments(timeLeft);
|
|
10305
10405
|
return `PT${hours}H${minutes}M${seconds}S`;
|
|
10306
10406
|
};
|
|
10307
|
-
const _sfc_main$
|
|
10407
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
10308
10408
|
__name: "OnyxTimer",
|
|
10309
10409
|
props: {
|
|
10310
10410
|
endTime: { type: null, required: true },
|
|
@@ -10335,13 +10435,13 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
10335
10435
|
return __returned__;
|
|
10336
10436
|
}
|
|
10337
10437
|
});
|
|
10338
|
-
const _hoisted_1$
|
|
10339
|
-
const _hoisted_2$
|
|
10438
|
+
const _hoisted_1$k = ["aria-label"];
|
|
10439
|
+
const _hoisted_2$g = {
|
|
10340
10440
|
key: 0,
|
|
10341
10441
|
class: "onyx-timer__label"
|
|
10342
10442
|
};
|
|
10343
10443
|
const _hoisted_3$c = ["datetime"];
|
|
10344
|
-
function _sfc_render$
|
|
10444
|
+
function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10345
10445
|
return openBlock(), createElementBlock("div", {
|
|
10346
10446
|
class: "onyx-component onyx-timer onyx-text onyx-truncation-ellipsis",
|
|
10347
10447
|
role: "timer",
|
|
@@ -10349,7 +10449,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10349
10449
|
}, [
|
|
10350
10450
|
!$setup.props.hideLabel ? (openBlock(), createElementBlock(
|
|
10351
10451
|
"span",
|
|
10352
|
-
_hoisted_2$
|
|
10452
|
+
_hoisted_2$g,
|
|
10353
10453
|
toDisplayString($setup.props.label),
|
|
10354
10454
|
1
|
|
10355
10455
|
/* TEXT */
|
|
@@ -10358,10 +10458,10 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10358
10458
|
datetime: $setup.timeToDurationString($setup.timeLeft),
|
|
10359
10459
|
class: "onyx-timer__time"
|
|
10360
10460
|
}, toDisplayString($setup.formattedTime), 9, _hoisted_3$c)
|
|
10361
|
-
], 8, _hoisted_1$
|
|
10461
|
+
], 8, _hoisted_1$k);
|
|
10362
10462
|
}
|
|
10363
|
-
const OnyxTimer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10364
|
-
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({
|
|
10365
10465
|
__name: "UserMenuLayout",
|
|
10366
10466
|
props: {
|
|
10367
10467
|
isMobile: { type: Boolean, required: true },
|
|
@@ -10386,10 +10486,10 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
10386
10486
|
return __returned__;
|
|
10387
10487
|
}
|
|
10388
10488
|
});
|
|
10389
|
-
const _hoisted_1$
|
|
10390
|
-
const _hoisted_2$
|
|
10391
|
-
function _sfc_render$
|
|
10392
|
-
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, [
|
|
10393
10493
|
$setup.props.isMobile ? (openBlock(), createElementBlock(
|
|
10394
10494
|
Fragment,
|
|
10395
10495
|
{ key: 0 },
|
|
@@ -10433,7 +10533,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10433
10533
|
!!$setup.slots.footer ? {
|
|
10434
10534
|
name: "footer",
|
|
10435
10535
|
fn: withCtx(() => [
|
|
10436
|
-
createElementVNode("div", _hoisted_2$
|
|
10536
|
+
createElementVNode("div", _hoisted_2$f, [
|
|
10437
10537
|
renderSlot(_ctx.$slots, "footer")
|
|
10438
10538
|
])
|
|
10439
10539
|
]),
|
|
@@ -10442,8 +10542,8 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10442
10542
|
]), 1032, ["open", "label", "disabled"]))
|
|
10443
10543
|
]);
|
|
10444
10544
|
}
|
|
10445
|
-
const UserMenuLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10446
|
-
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({
|
|
10447
10547
|
__name: "OnyxUserMenu",
|
|
10448
10548
|
props: {
|
|
10449
10549
|
fullName: { type: String, required: true },
|
|
@@ -10477,8 +10577,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10477
10577
|
return __returned__;
|
|
10478
10578
|
}
|
|
10479
10579
|
});
|
|
10480
|
-
const _hoisted_1$
|
|
10481
|
-
const _hoisted_2$
|
|
10580
|
+
const _hoisted_1$i = { class: "onyx-truncation-ellipsis" };
|
|
10581
|
+
const _hoisted_2$e = { class: "onyx-user-menu__header" };
|
|
10482
10582
|
const _hoisted_3$b = { class: "onyx-truncation-ellipsis" };
|
|
10483
10583
|
const _hoisted_4$9 = { class: "onyx-user-menu__username onyx-text onyx-truncation-ellipsis" };
|
|
10484
10584
|
const _hoisted_5$8 = {
|
|
@@ -10486,7 +10586,7 @@ const _hoisted_5$8 = {
|
|
|
10486
10586
|
class: "onyx-user-menu__description onyx-text--small onyx-truncation-ellipsis"
|
|
10487
10587
|
};
|
|
10488
10588
|
const _hoisted_6$6 = { class: "onyx-user-menu__options" };
|
|
10489
|
-
function _sfc_render$
|
|
10589
|
+
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10490
10590
|
return openBlock(), createBlock($setup["UserMenuLayout"], {
|
|
10491
10591
|
"flyout-open": $setup.flyoutOpen,
|
|
10492
10592
|
"onUpdate:flyoutOpen": _cache[0] || (_cache[0] = ($event) => $setup.flyoutOpen = $event),
|
|
@@ -10511,7 +10611,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10511
10611
|
),
|
|
10512
10612
|
createElementVNode(
|
|
10513
10613
|
"span",
|
|
10514
|
-
_hoisted_1$
|
|
10614
|
+
_hoisted_1$i,
|
|
10515
10615
|
toDisplayString($setup.props.fullName),
|
|
10516
10616
|
1
|
|
10517
10617
|
/* TEXT */
|
|
@@ -10522,7 +10622,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10522
10622
|
)
|
|
10523
10623
|
]),
|
|
10524
10624
|
header: withCtx(() => [
|
|
10525
|
-
createElementVNode("div", _hoisted_2$
|
|
10625
|
+
createElementVNode("div", _hoisted_2$e, [
|
|
10526
10626
|
createVNode(
|
|
10527
10627
|
$setup["OnyxAvatar"],
|
|
10528
10628
|
mergeProps($setup.avatar, { size: "48px" }),
|
|
@@ -10565,8 +10665,8 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10565
10665
|
} : void 0
|
|
10566
10666
|
]), 1032, ["flyout-open", "class", "is-mobile", "disabled"]);
|
|
10567
10667
|
}
|
|
10568
|
-
const OnyxUserMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10569
|
-
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({
|
|
10570
10670
|
__name: "OnyxNavBar",
|
|
10571
10671
|
props: {
|
|
10572
10672
|
appName: { type: String, required: false },
|
|
@@ -10636,8 +10736,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
10636
10736
|
return __returned__;
|
|
10637
10737
|
}
|
|
10638
10738
|
});
|
|
10639
|
-
const _hoisted_1$
|
|
10640
|
-
const _hoisted_2$
|
|
10739
|
+
const _hoisted_1$h = { class: "onyx-nav-bar__content onyx-grid-container" };
|
|
10740
|
+
const _hoisted_2$d = {
|
|
10641
10741
|
key: 0,
|
|
10642
10742
|
class: "onyx-nav-bar__mobile-page onyx-truncation-ellipsis"
|
|
10643
10743
|
};
|
|
@@ -10656,7 +10756,7 @@ const _hoisted_8$3 = {
|
|
|
10656
10756
|
key: 1,
|
|
10657
10757
|
class: "onyx-nav-bar__context"
|
|
10658
10758
|
};
|
|
10659
|
-
function _sfc_render$
|
|
10759
|
+
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10660
10760
|
return openBlock(), createElementBlock(
|
|
10661
10761
|
"header",
|
|
10662
10762
|
{
|
|
@@ -10664,8 +10764,8 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10664
10764
|
class: normalizeClass(["onyx-component onyx-nav-bar", { "onyx-nav-bar--mobile": $setup.actualIsMobile }])
|
|
10665
10765
|
},
|
|
10666
10766
|
[
|
|
10667
|
-
createElementVNode("div", _hoisted_1$
|
|
10668
|
-
$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, [
|
|
10669
10769
|
renderSlot(_ctx.$slots, "mobileActivePage")
|
|
10670
10770
|
])) : $setup.props.appName || $setup.props.logoUrl || $setup.slots.appArea ? (openBlock(), createBlock($setup["OnyxNavAppArea"], mergeProps({
|
|
10671
10771
|
key: 1,
|
|
@@ -10815,7 +10915,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10815
10915
|
/* CLASS */
|
|
10816
10916
|
);
|
|
10817
10917
|
}
|
|
10818
|
-
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"]]);
|
|
10819
10919
|
const useRelativeTimeFormat = (options) => {
|
|
10820
10920
|
const { locale, t } = injectI18n();
|
|
10821
10921
|
const format = computed(() => new Intl.RelativeTimeFormat(locale.value, unref(options.options)));
|
|
@@ -10863,7 +10963,7 @@ const useRelativeTimeFormat = (options) => {
|
|
|
10863
10963
|
timeAgo
|
|
10864
10964
|
};
|
|
10865
10965
|
};
|
|
10866
|
-
const _sfc_main$
|
|
10966
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
10867
10967
|
__name: "OnyxNotificationCard",
|
|
10868
10968
|
props: {
|
|
10869
10969
|
density: { type: null, required: false },
|
|
@@ -10891,11 +10991,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
10891
10991
|
return __returned__;
|
|
10892
10992
|
}
|
|
10893
10993
|
});
|
|
10894
|
-
const _hoisted_1$
|
|
10994
|
+
const _hoisted_1$g = {
|
|
10895
10995
|
key: 0,
|
|
10896
10996
|
class: "onyx-notification-card-skeleton"
|
|
10897
10997
|
};
|
|
10898
|
-
const _hoisted_2$
|
|
10998
|
+
const _hoisted_2$c = {
|
|
10899
10999
|
key: 1,
|
|
10900
11000
|
class: "onyx-notification-card__content"
|
|
10901
11001
|
};
|
|
@@ -10908,14 +11008,14 @@ const _hoisted_8$2 = {
|
|
|
10908
11008
|
key: 0,
|
|
10909
11009
|
class: "onyx-notification-card__actions onyx-density-compact"
|
|
10910
11010
|
};
|
|
10911
|
-
function _sfc_render$
|
|
11011
|
+
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10912
11012
|
return openBlock(), createElementBlock(
|
|
10913
11013
|
"div",
|
|
10914
11014
|
{
|
|
10915
11015
|
class: normalizeClass(["onyx-component", "onyx-notification-card", $setup.densityClass])
|
|
10916
11016
|
},
|
|
10917
11017
|
[
|
|
10918
|
-
$setup.skeleton ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11018
|
+
$setup.skeleton ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
10919
11019
|
createVNode($setup["OnyxSkeleton"], { class: "onyx-notification-card-skeleton__header" }),
|
|
10920
11020
|
(openBlock(), createElementBlock(
|
|
10921
11021
|
Fragment,
|
|
@@ -10929,7 +11029,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10929
11029
|
64
|
|
10930
11030
|
/* STABLE_FRAGMENT */
|
|
10931
11031
|
))
|
|
10932
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11032
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_2$c, [
|
|
10933
11033
|
createElementVNode("div", null, [
|
|
10934
11034
|
createElementVNode("div", _hoisted_3$9, [
|
|
10935
11035
|
createElementVNode("div", _hoisted_4$7, [
|
|
@@ -11005,8 +11105,8 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11005
11105
|
/* CLASS */
|
|
11006
11106
|
);
|
|
11007
11107
|
}
|
|
11008
|
-
const OnyxNotificationCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11009
|
-
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({
|
|
11010
11110
|
__name: "OnyxNotificationDot",
|
|
11011
11111
|
props: {
|
|
11012
11112
|
hidden: { type: Boolean, required: false, default: false },
|
|
@@ -11020,9 +11120,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
11020
11120
|
return __returned__;
|
|
11021
11121
|
}
|
|
11022
11122
|
});
|
|
11023
|
-
const _hoisted_1$
|
|
11024
|
-
function _sfc_render$
|
|
11025
|
-
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, [
|
|
11026
11126
|
renderSlot(_ctx.$slots, "default"),
|
|
11027
11127
|
!$setup.props.hidden ? (openBlock(), createBlock($setup["OnyxBadge"], {
|
|
11028
11128
|
key: 0,
|
|
@@ -11032,8 +11132,8 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11032
11132
|
}, null, 8, ["color"])) : createCommentVNode("v-if", true)
|
|
11033
11133
|
]);
|
|
11034
11134
|
}
|
|
11035
|
-
const OnyxNotificationDot = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11036
|
-
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({
|
|
11037
11137
|
__name: "OnyxPageLayout",
|
|
11038
11138
|
props: {
|
|
11039
11139
|
skeleton: { type: Boolean, required: false },
|
|
@@ -11050,11 +11150,11 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
11050
11150
|
return __returned__;
|
|
11051
11151
|
}
|
|
11052
11152
|
});
|
|
11053
|
-
const _hoisted_1$
|
|
11153
|
+
const _hoisted_1$e = {
|
|
11054
11154
|
key: 0,
|
|
11055
11155
|
class: "onyx-page__sidebar"
|
|
11056
11156
|
};
|
|
11057
|
-
const _hoisted_2$
|
|
11157
|
+
const _hoisted_2$b = { class: "onyx-page__main" };
|
|
11058
11158
|
const _hoisted_3$8 = {
|
|
11059
11159
|
key: 1,
|
|
11060
11160
|
class: "onyx-page__sidebar onyx-page__sidebar--right"
|
|
@@ -11063,7 +11163,7 @@ const _hoisted_4$6 = {
|
|
|
11063
11163
|
key: 2,
|
|
11064
11164
|
class: "onyx-page__footer"
|
|
11065
11165
|
};
|
|
11066
|
-
function _sfc_render$
|
|
11166
|
+
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11067
11167
|
return openBlock(), createElementBlock(
|
|
11068
11168
|
"div",
|
|
11069
11169
|
{
|
|
@@ -11074,10 +11174,10 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11074
11174
|
]])
|
|
11075
11175
|
},
|
|
11076
11176
|
[
|
|
11077
|
-
$setup.slots.sidebar ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11177
|
+
$setup.slots.sidebar ? (openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
11078
11178
|
renderSlot(_ctx.$slots, "sidebar")
|
|
11079
11179
|
])) : createCommentVNode("v-if", true),
|
|
11080
|
-
createElementVNode("main", _hoisted_2$
|
|
11180
|
+
createElementVNode("main", _hoisted_2$b, [
|
|
11081
11181
|
createElementVNode(
|
|
11082
11182
|
"div",
|
|
11083
11183
|
{
|
|
@@ -11101,8 +11201,8 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11101
11201
|
/* CLASS */
|
|
11102
11202
|
);
|
|
11103
11203
|
}
|
|
11104
|
-
const OnyxPageLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11105
|
-
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({
|
|
11106
11206
|
__name: "OnyxProgressItem",
|
|
11107
11207
|
props: {
|
|
11108
11208
|
density: { type: null, required: false },
|
|
@@ -11128,10 +11228,10 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
11128
11228
|
return __returned__;
|
|
11129
11229
|
}
|
|
11130
11230
|
});
|
|
11131
|
-
const _hoisted_1$
|
|
11132
|
-
const _hoisted_2$
|
|
11231
|
+
const _hoisted_1$d = ["disabled"];
|
|
11232
|
+
const _hoisted_2$a = { class: "onyx-progress-item__indicator" };
|
|
11133
11233
|
const _hoisted_3$7 = { class: "onyx-progress-item__label" };
|
|
11134
|
-
function _sfc_render$
|
|
11234
|
+
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11135
11235
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
11136
11236
|
key: 0,
|
|
11137
11237
|
class: normalizeClass(["onyx-progress-item-skeleton", "onyx-text", $setup.densityClass])
|
|
@@ -11147,7 +11247,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11147
11247
|
type: "button",
|
|
11148
11248
|
disabled: $setup.props.disabled
|
|
11149
11249
|
}, [
|
|
11150
|
-
createElementVNode("span", _hoisted_2$
|
|
11250
|
+
createElementVNode("span", _hoisted_2$a, [
|
|
11151
11251
|
$setup.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
11152
11252
|
key: 0,
|
|
11153
11253
|
icon: $setup.icon
|
|
@@ -11176,9 +11276,9 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11176
11276
|
)
|
|
11177
11277
|
])
|
|
11178
11278
|
])
|
|
11179
|
-
], 10, _hoisted_1$
|
|
11279
|
+
], 10, _hoisted_1$d));
|
|
11180
11280
|
}
|
|
11181
|
-
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"]]);
|
|
11182
11282
|
const PROGRESS_ITEM_STATUS = [
|
|
11183
11283
|
"default",
|
|
11184
11284
|
"active",
|
|
@@ -11186,7 +11286,7 @@ const PROGRESS_ITEM_STATUS = [
|
|
|
11186
11286
|
"visited",
|
|
11187
11287
|
"invalid"
|
|
11188
11288
|
];
|
|
11189
|
-
const _sfc_main$
|
|
11289
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
11190
11290
|
__name: "OnyxProgressSteps",
|
|
11191
11291
|
props: {
|
|
11192
11292
|
density: { type: null, required: false },
|
|
@@ -11241,8 +11341,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
11241
11341
|
return __returned__;
|
|
11242
11342
|
}
|
|
11243
11343
|
});
|
|
11244
|
-
const _hoisted_1$
|
|
11245
|
-
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) {
|
|
11246
11346
|
return openBlock(), createElementBlock(
|
|
11247
11347
|
"div",
|
|
11248
11348
|
{
|
|
@@ -11254,7 +11354,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11254
11354
|
])
|
|
11255
11355
|
},
|
|
11256
11356
|
[
|
|
11257
|
-
createElementVNode("div", _hoisted_1$
|
|
11357
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
11258
11358
|
(openBlock(true), createElementBlock(
|
|
11259
11359
|
Fragment,
|
|
11260
11360
|
null,
|
|
@@ -11294,8 +11394,8 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11294
11394
|
/* CLASS */
|
|
11295
11395
|
);
|
|
11296
11396
|
}
|
|
11297
|
-
const OnyxProgressSteps = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11298
|
-
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({
|
|
11299
11399
|
...{ inheritAttrs: false },
|
|
11300
11400
|
__name: "OnyxRadioButton",
|
|
11301
11401
|
props: {
|
|
@@ -11330,8 +11430,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
11330
11430
|
return __returned__;
|
|
11331
11431
|
}
|
|
11332
11432
|
});
|
|
11333
|
-
const _hoisted_1$
|
|
11334
|
-
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) {
|
|
11335
11435
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
11336
11436
|
"div",
|
|
11337
11437
|
mergeProps({
|
|
@@ -11371,7 +11471,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11371
11471
|
checked: $setup.props.checked,
|
|
11372
11472
|
disabled: $setup.disabled,
|
|
11373
11473
|
autofocus: $setup.props.autofocus
|
|
11374
|
-
}, $setup.restAttrs), null, 16, _hoisted_1$
|
|
11474
|
+
}, $setup.restAttrs), null, 16, _hoisted_1$b)), [
|
|
11375
11475
|
[$setup["vCustomValidity"]]
|
|
11376
11476
|
]),
|
|
11377
11477
|
createElementVNode(
|
|
@@ -11392,8 +11492,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11392
11492
|
/* STABLE */
|
|
11393
11493
|
}, 16, ["disabled", "error-messages"]));
|
|
11394
11494
|
}
|
|
11395
|
-
const OnyxRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11396
|
-
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({
|
|
11397
11497
|
__name: "OnyxRadioGroup",
|
|
11398
11498
|
props: {
|
|
11399
11499
|
truncation: { type: null, required: false, default: "ellipsis" },
|
|
@@ -11440,19 +11540,19 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11440
11540
|
return __returned__;
|
|
11441
11541
|
}
|
|
11442
11542
|
});
|
|
11443
|
-
const _hoisted_1$
|
|
11444
|
-
const _hoisted_2$
|
|
11543
|
+
const _hoisted_1$a = ["disabled", "aria-label"];
|
|
11544
|
+
const _hoisted_2$9 = {
|
|
11445
11545
|
key: 0,
|
|
11446
11546
|
class: "onyx-radio-group__label"
|
|
11447
11547
|
};
|
|
11448
|
-
function _sfc_render$
|
|
11548
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11449
11549
|
return openBlock(), createElementBlock("fieldset", {
|
|
11450
11550
|
class: normalizeClass(["onyx-component", "onyx-radio-group", $setup.densityClass, $setup.requiredTypeClass]),
|
|
11451
11551
|
disabled: $setup.disabled,
|
|
11452
11552
|
role: "radiogroup",
|
|
11453
11553
|
"aria-label": $setup.props.label
|
|
11454
11554
|
}, [
|
|
11455
|
-
!$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
11555
|
+
!$setup.props.hideLabel ? (openBlock(), createElementBlock("legend", _hoisted_2$9, [
|
|
11456
11556
|
createVNode($setup["OnyxHeadline"], {
|
|
11457
11557
|
is: "h3",
|
|
11458
11558
|
class: normalizeClass($setup.requiredMarkerClass)
|
|
@@ -11519,11 +11619,11 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11519
11619
|
2
|
|
11520
11620
|
/* CLASS */
|
|
11521
11621
|
)
|
|
11522
|
-
], 10, _hoisted_1$
|
|
11622
|
+
], 10, _hoisted_1$a);
|
|
11523
11623
|
}
|
|
11524
|
-
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"]]);
|
|
11525
11625
|
const LINK_TARGETS = ["_self", "_blank", "_parent", "_top"];
|
|
11526
|
-
const _sfc_main$
|
|
11626
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
11527
11627
|
...{ inheritAttrs: false },
|
|
11528
11628
|
__name: "OnyxSegmentedControlElement",
|
|
11529
11629
|
props: {
|
|
@@ -11550,13 +11650,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
11550
11650
|
return __returned__;
|
|
11551
11651
|
}
|
|
11552
11652
|
});
|
|
11553
|
-
const _hoisted_1$
|
|
11554
|
-
const _hoisted_2$
|
|
11653
|
+
const _hoisted_1$9 = ["id", "name", "value", "disabled", "aria-label", "autofocus", "checked"];
|
|
11654
|
+
const _hoisted_2$8 = ["for"];
|
|
11555
11655
|
const _hoisted_3$6 = {
|
|
11556
11656
|
key: 1,
|
|
11557
11657
|
class: "onyx-segmented-control-element__text"
|
|
11558
11658
|
};
|
|
11559
|
-
function _sfc_render$
|
|
11659
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11560
11660
|
return openBlock(), createElementBlock(
|
|
11561
11661
|
"div",
|
|
11562
11662
|
mergeProps($setup.rootAttrs, {
|
|
@@ -11576,7 +11676,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11576
11676
|
"aria-label": $setup.props.label,
|
|
11577
11677
|
autofocus: $setup.props.autofocus,
|
|
11578
11678
|
checked: $setup.props.checked
|
|
11579
|
-
}), null, 16, _hoisted_1$
|
|
11679
|
+
}), null, 16, _hoisted_1$9)
|
|
11580
11680
|
]),
|
|
11581
11681
|
_: 1
|
|
11582
11682
|
/* STABLE */
|
|
@@ -11597,14 +11697,14 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11597
11697
|
1
|
|
11598
11698
|
/* TEXT */
|
|
11599
11699
|
)) : createCommentVNode("v-if", true)
|
|
11600
|
-
], 8, _hoisted_2$
|
|
11700
|
+
], 8, _hoisted_2$8)
|
|
11601
11701
|
],
|
|
11602
11702
|
16
|
|
11603
11703
|
/* FULL_PROPS */
|
|
11604
11704
|
);
|
|
11605
11705
|
}
|
|
11606
|
-
const OnyxSegmentedControlElement = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11607
|
-
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({
|
|
11608
11708
|
__name: "OnyxSegmentedControl",
|
|
11609
11709
|
props: {
|
|
11610
11710
|
density: { type: null, required: false },
|
|
@@ -11633,7 +11733,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11633
11733
|
return __returned__;
|
|
11634
11734
|
}
|
|
11635
11735
|
});
|
|
11636
|
-
function _sfc_render$
|
|
11736
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11637
11737
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
11638
11738
|
key: 0,
|
|
11639
11739
|
class: normalizeClass(["onyx-segmented-control-skeleton", $setup.densityClass])
|
|
@@ -11664,10 +11764,10 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11664
11764
|
/* CLASS */
|
|
11665
11765
|
));
|
|
11666
11766
|
}
|
|
11667
|
-
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"]]);
|
|
11668
11768
|
const SELECT_ALIGNMENTS = ["full", "left", "right"];
|
|
11669
11769
|
const MULTISELECT_TEXT_MODE = ["summary", "preview"];
|
|
11670
|
-
const _sfc_main$
|
|
11770
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
11671
11771
|
__name: "OnyxSidebarItem",
|
|
11672
11772
|
props: {
|
|
11673
11773
|
density: { type: null, required: false },
|
|
@@ -11695,7 +11795,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
11695
11795
|
return __returned__;
|
|
11696
11796
|
}
|
|
11697
11797
|
});
|
|
11698
|
-
function _sfc_render$
|
|
11798
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11699
11799
|
return $setup.link ? (openBlock(), createBlock($setup["OnyxRouterLink"], mergeProps({
|
|
11700
11800
|
key: 0,
|
|
11701
11801
|
class: $setup.classes
|
|
@@ -11719,12 +11819,12 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11719
11819
|
/* CLASS */
|
|
11720
11820
|
));
|
|
11721
11821
|
}
|
|
11722
|
-
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"]]);
|
|
11723
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>';
|
|
11724
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>';
|
|
11725
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>';
|
|
11726
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>';
|
|
11727
|
-
const _sfc_main$
|
|
11827
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
11728
11828
|
__name: "OnyxSidebar",
|
|
11729
11829
|
props: {
|
|
11730
11830
|
density: { type: null, required: false },
|
|
@@ -11812,8 +11912,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
11812
11912
|
return __returned__;
|
|
11813
11913
|
}
|
|
11814
11914
|
});
|
|
11815
|
-
const _hoisted_1$
|
|
11816
|
-
const _hoisted_2$
|
|
11915
|
+
const _hoisted_1$8 = ["aria-label"];
|
|
11916
|
+
const _hoisted_2$7 = {
|
|
11817
11917
|
key: 0,
|
|
11818
11918
|
class: "onyx-sidebar__header"
|
|
11819
11919
|
};
|
|
@@ -11823,7 +11923,7 @@ const _hoisted_4$5 = {
|
|
|
11823
11923
|
class: "onyx-sidebar__footer"
|
|
11824
11924
|
};
|
|
11825
11925
|
const _hoisted_5$5 = { class: "onyx-sidebar__footer" };
|
|
11826
|
-
function _sfc_render$
|
|
11926
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11827
11927
|
return !$setup.props.temporary && !$setup.shouldCollapse ? (openBlock(), createElementBlock("aside", {
|
|
11828
11928
|
key: 0,
|
|
11829
11929
|
ref: "sidebarRef",
|
|
@@ -11837,7 +11937,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11837
11937
|
"aria-label": $setup.props.label,
|
|
11838
11938
|
style: normalizeStyle($setup.widthStyle)
|
|
11839
11939
|
}, [
|
|
11840
|
-
!!$setup.slots.header ? (openBlock(), createElementBlock("header", _hoisted_2$
|
|
11940
|
+
!!$setup.slots.header ? (openBlock(), createElementBlock("header", _hoisted_2$7, [
|
|
11841
11941
|
renderSlot(_ctx.$slots, "header")
|
|
11842
11942
|
])) : createCommentVNode("v-if", true),
|
|
11843
11943
|
createElementVNode("div", _hoisted_3$5, [
|
|
@@ -11850,7 +11950,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11850
11950
|
key: 2,
|
|
11851
11951
|
element: $setup.sidebarElement
|
|
11852
11952
|
}, $setup.resizeHandleProps), null, 16, ["element"])) : createCommentVNode("v-if", true)
|
|
11853
|
-
], 14, _hoisted_1$
|
|
11953
|
+
], 14, _hoisted_1$8)) : (openBlock(), createBlock($setup["OnyxModal"], mergeProps({ key: 1 }, $setup.props.temporary, {
|
|
11854
11954
|
ref: "modalRef",
|
|
11855
11955
|
open: $setup.isModalOpen,
|
|
11856
11956
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => $setup.isModalOpen = $event),
|
|
@@ -11902,9 +12002,9 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11902
12002
|
} : void 0
|
|
11903
12003
|
]), 1040, ["open", "class", "label", "density", "style", "alignment"]));
|
|
11904
12004
|
}
|
|
11905
|
-
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"]]);
|
|
11906
12006
|
const SIDEBAR_ALIGNMENT = ["left", "right"];
|
|
11907
|
-
const _sfc_main$
|
|
12007
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
11908
12008
|
...{ inheritAttrs: false },
|
|
11909
12009
|
__name: "OnyxStepper",
|
|
11910
12010
|
props: {
|
|
@@ -12021,15 +12121,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
12021
12121
|
return __returned__;
|
|
12022
12122
|
}
|
|
12023
12123
|
});
|
|
12024
|
-
const _hoisted_1$
|
|
12025
|
-
const _hoisted_2$
|
|
12124
|
+
const _hoisted_1$7 = { class: "onyx-stepper__wrapper" };
|
|
12125
|
+
const _hoisted_2$6 = ["disabled", "aria-label"];
|
|
12026
12126
|
const _hoisted_3$4 = ["id", "aria-label", "autofocus", "disabled", "min", "max", "name", "placeholder", "readonly", "required", "step", "title"];
|
|
12027
12127
|
const _hoisted_4$4 = {
|
|
12028
12128
|
class: "onyx-stepper__display",
|
|
12029
12129
|
"aria-hidden": "true"
|
|
12030
12130
|
};
|
|
12031
12131
|
const _hoisted_5$4 = ["disabled", "aria-label"];
|
|
12032
|
-
function _sfc_render$
|
|
12132
|
+
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12033
12133
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
12034
12134
|
"div",
|
|
12035
12135
|
mergeProps({
|
|
@@ -12058,7 +12158,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12058
12158
|
"error-messages": $setup.errorMessages
|
|
12059
12159
|
}), {
|
|
12060
12160
|
default: withCtx(({ id: inputId }) => [
|
|
12061
|
-
createElementVNode("div", _hoisted_1$
|
|
12161
|
+
createElementVNode("div", _hoisted_1$7, [
|
|
12062
12162
|
!$setup.props.hideButtons ? (openBlock(), createElementBlock("button", {
|
|
12063
12163
|
key: 0,
|
|
12064
12164
|
type: "button",
|
|
@@ -12069,7 +12169,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12069
12169
|
onClick: _cache[0] || (_cache[0] = ($event) => $setup.handleClick("stepDown"))
|
|
12070
12170
|
}, [
|
|
12071
12171
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconMinus }, null, 8, ["icon"])
|
|
12072
|
-
], 8, _hoisted_2$
|
|
12172
|
+
], 8, _hoisted_2$6)) : createCommentVNode("v-if", true),
|
|
12073
12173
|
$setup.props.loading ? (openBlock(), createBlock($setup["OnyxLoadingIndicator"], {
|
|
12074
12174
|
key: 1,
|
|
12075
12175
|
class: "onyx-stepper__loading",
|
|
@@ -12131,8 +12231,8 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12131
12231
|
/* FULL_PROPS */
|
|
12132
12232
|
));
|
|
12133
12233
|
}
|
|
12134
|
-
const OnyxStepper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12135
|
-
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({
|
|
12136
12236
|
...{ inheritAttrs: false },
|
|
12137
12237
|
__name: "OnyxSwitch",
|
|
12138
12238
|
props: {
|
|
@@ -12182,13 +12282,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
12182
12282
|
return __returned__;
|
|
12183
12283
|
}
|
|
12184
12284
|
});
|
|
12185
|
-
const _hoisted_1$
|
|
12186
|
-
const _hoisted_2$
|
|
12285
|
+
const _hoisted_1$6 = { class: "onyx-switch-skeleton__click-area" };
|
|
12286
|
+
const _hoisted_2$5 = ["title"];
|
|
12187
12287
|
const _hoisted_3$3 = ["aria-label", "disabled", "required", "autofocus"];
|
|
12188
12288
|
const _hoisted_4$3 = { class: "onyx-switch__click-area" };
|
|
12189
12289
|
const _hoisted_5$3 = { class: "onyx-switch__container" };
|
|
12190
12290
|
const _hoisted_6$3 = { class: "onyx-switch__icon" };
|
|
12191
|
-
function _sfc_render$
|
|
12291
|
+
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12192
12292
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
12193
12293
|
"div",
|
|
12194
12294
|
mergeProps({
|
|
@@ -12196,7 +12296,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12196
12296
|
class: ["onyx-component", "onyx-switch-skeleton", $setup.densityClass]
|
|
12197
12297
|
}, $setup.rootAttrs),
|
|
12198
12298
|
[
|
|
12199
|
-
createElementVNode("span", _hoisted_1$
|
|
12299
|
+
createElementVNode("span", _hoisted_1$6, [
|
|
12200
12300
|
createVNode($setup["OnyxSkeleton"], { class: "onyx-switch-skeleton__input" })
|
|
12201
12301
|
]),
|
|
12202
12302
|
!$setup.props.hideLabel ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
@@ -12275,16 +12375,16 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12275
12375
|
2
|
|
12276
12376
|
/* CLASS */
|
|
12277
12377
|
)) : createCommentVNode("v-if", true)
|
|
12278
|
-
], 10, _hoisted_2$
|
|
12378
|
+
], 10, _hoisted_2$5)
|
|
12279
12379
|
]),
|
|
12280
12380
|
_: 1
|
|
12281
12381
|
/* STABLE */
|
|
12282
12382
|
}, 16, ["disabled", "error-messages"]));
|
|
12283
12383
|
}
|
|
12284
|
-
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"]]);
|
|
12285
12385
|
const SYSTEM_BUTTON_COLORS = ["intense", "soft", "medium"];
|
|
12286
12386
|
const TABS_INJECTION_KEY = Symbol();
|
|
12287
|
-
const _sfc_main$
|
|
12387
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
12288
12388
|
__name: "OnyxTab",
|
|
12289
12389
|
props: {
|
|
12290
12390
|
density: { type: null, required: false },
|
|
@@ -12311,9 +12411,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
12311
12411
|
return __returned__;
|
|
12312
12412
|
}
|
|
12313
12413
|
});
|
|
12314
|
-
const _hoisted_1$
|
|
12315
|
-
const _hoisted_2$
|
|
12316
|
-
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) {
|
|
12317
12417
|
return openBlock(), createElementBlock(
|
|
12318
12418
|
Fragment,
|
|
12319
12419
|
null,
|
|
@@ -12334,7 +12434,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12334
12434
|
type: "button",
|
|
12335
12435
|
disabled: $setup.props.disabled
|
|
12336
12436
|
}), [
|
|
12337
|
-
createElementVNode("div", _hoisted_2$
|
|
12437
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
12338
12438
|
renderSlot(_ctx.$slots, "tab", {}, () => [
|
|
12339
12439
|
createTextVNode(
|
|
12340
12440
|
toDisplayString($setup.props.label),
|
|
@@ -12343,7 +12443,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12343
12443
|
)
|
|
12344
12444
|
])
|
|
12345
12445
|
])
|
|
12346
|
-
], 16, _hoisted_1$
|
|
12446
|
+
], 16, _hoisted_1$5)),
|
|
12347
12447
|
$setup.tabsContext?.panel.value ? (openBlock(), createBlock(Teleport, {
|
|
12348
12448
|
key: 2,
|
|
12349
12449
|
to: $setup.tabsContext?.panel.value,
|
|
@@ -12364,8 +12464,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12364
12464
|
/* STABLE_FRAGMENT */
|
|
12365
12465
|
);
|
|
12366
12466
|
}
|
|
12367
|
-
const OnyxTab = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12368
|
-
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({
|
|
12369
12469
|
__name: "OnyxTabs",
|
|
12370
12470
|
props: {
|
|
12371
12471
|
density: { type: null, required: false },
|
|
@@ -12403,7 +12503,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
12403
12503
|
return __returned__;
|
|
12404
12504
|
}
|
|
12405
12505
|
});
|
|
12406
|
-
function _sfc_render$
|
|
12506
|
+
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12407
12507
|
return openBlock(), createElementBlock(
|
|
12408
12508
|
"div",
|
|
12409
12509
|
{
|
|
@@ -12430,101 +12530,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12430
12530
|
/* CLASS */
|
|
12431
12531
|
);
|
|
12432
12532
|
}
|
|
12433
|
-
const OnyxTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12434
|
-
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
12435
|
-
__name: "OnyxTag",
|
|
12436
|
-
props: {
|
|
12437
|
-
density: { type: null, required: false },
|
|
12438
|
-
label: { type: String, required: true },
|
|
12439
|
-
color: { type: null, required: false, default: "neutral" },
|
|
12440
|
-
icon: { type: String, required: false },
|
|
12441
|
-
clickable: { type: [String, Object], required: false },
|
|
12442
|
-
skeleton: { type: [Symbol, Boolean, Number], required: false, default: SKELETON_INJECTED_SYMBOL }
|
|
12443
|
-
},
|
|
12444
|
-
setup(__props, { expose: __expose }) {
|
|
12445
|
-
__expose();
|
|
12446
|
-
const props = __props;
|
|
12447
|
-
const { densityClass } = useDensity(props);
|
|
12448
|
-
const skeleton = useSkeletonContext(props);
|
|
12449
|
-
const tagClasses = computed(() => [
|
|
12450
|
-
"onyx-component",
|
|
12451
|
-
"onyx-tag",
|
|
12452
|
-
`onyx-tag--${props.color}`,
|
|
12453
|
-
{ "onyx-tag--interactive": props.clickable },
|
|
12454
|
-
densityClass.value
|
|
12455
|
-
]);
|
|
12456
|
-
const __returned__ = { props, densityClass, skeleton, tagClasses, OnyxIcon, OnyxSkeleton, OnyxTooltip };
|
|
12457
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
12458
|
-
return __returned__;
|
|
12459
|
-
}
|
|
12460
|
-
});
|
|
12461
|
-
const _hoisted_1$5 = { class: "onyx-text onyx-truncation-ellipsis" };
|
|
12462
|
-
const _hoisted_2$4 = { class: "onyx-text onyx-truncation-ellipsis" };
|
|
12463
|
-
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12464
|
-
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
12465
|
-
key: 0,
|
|
12466
|
-
class: normalizeClass(["onyx-tag-skeleton", $setup.densityClass])
|
|
12467
|
-
}, null, 8, ["class"])) : $setup.props.clickable ? (openBlock(), createBlock($setup["OnyxTooltip"], {
|
|
12468
|
-
key: 1,
|
|
12469
|
-
text: typeof $setup.props.clickable === "object" ? $setup.props.clickable.label : $setup.props.clickable
|
|
12470
|
-
}, {
|
|
12471
|
-
default: withCtx(({ trigger }) => [
|
|
12472
|
-
createElementVNode(
|
|
12473
|
-
"button",
|
|
12474
|
-
mergeProps(trigger, {
|
|
12475
|
-
class: $setup.tagClasses,
|
|
12476
|
-
type: "button"
|
|
12477
|
-
}),
|
|
12478
|
-
[
|
|
12479
|
-
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
12480
|
-
key: 0,
|
|
12481
|
-
icon: $setup.props.icon,
|
|
12482
|
-
inline: ""
|
|
12483
|
-
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
12484
|
-
createElementVNode(
|
|
12485
|
-
"span",
|
|
12486
|
-
_hoisted_1$5,
|
|
12487
|
-
toDisplayString($setup.props.label),
|
|
12488
|
-
1
|
|
12489
|
-
/* TEXT */
|
|
12490
|
-
),
|
|
12491
|
-
typeof $setup.props.clickable === "object" && $setup.props.clickable.actionIcon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
12492
|
-
key: 1,
|
|
12493
|
-
icon: $setup.props.clickable.actionIcon,
|
|
12494
|
-
inline: ""
|
|
12495
|
-
}, null, 8, ["icon"])) : createCommentVNode("v-if", true)
|
|
12496
|
-
],
|
|
12497
|
-
16
|
|
12498
|
-
/* FULL_PROPS */
|
|
12499
|
-
)
|
|
12500
|
-
]),
|
|
12501
|
-
_: 1
|
|
12502
|
-
/* STABLE */
|
|
12503
|
-
}, 8, ["text"])) : (openBlock(), createElementBlock(
|
|
12504
|
-
"div",
|
|
12505
|
-
{
|
|
12506
|
-
key: 2,
|
|
12507
|
-
class: normalizeClass($setup.tagClasses)
|
|
12508
|
-
},
|
|
12509
|
-
[
|
|
12510
|
-
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
12511
|
-
key: 0,
|
|
12512
|
-
icon: $setup.props.icon,
|
|
12513
|
-
inline: ""
|
|
12514
|
-
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
12515
|
-
createElementVNode(
|
|
12516
|
-
"span",
|
|
12517
|
-
_hoisted_2$4,
|
|
12518
|
-
toDisplayString($setup.props.label),
|
|
12519
|
-
1
|
|
12520
|
-
/* TEXT */
|
|
12521
|
-
)
|
|
12522
|
-
],
|
|
12523
|
-
2
|
|
12524
|
-
/* CLASS */
|
|
12525
|
-
));
|
|
12526
|
-
}
|
|
12527
|
-
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"]]);
|
|
12528
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>';
|
|
12529
12535
|
const useFileSize = () => {
|
|
12530
12536
|
const { locale } = injectI18n();
|