sit-onyx 1.1.0-dev-20250930080442 → 1.1.0-dev-20250930084752
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 +34 -0
- package/dist/components/OnyxCalendar/types.d.ts +45 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm-bundler.js +679 -217
- package/dist/index.esm-bundler.js.map +1 -1
- package/dist/index.js +3844 -3495
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed, provide, inject, toRef, ref, watch, defineComponent, watchEffect, toRefs, createElementBlock, openBlock, normalizeClass, renderSlot, onMounted, createBlock, resolveDynamicComponent, withCtx, createVNode, createElementVNode, withModifiers, readonly, reactive, onBeforeMount, onBeforeUnmount, useId, toValue, unref, shallowRef,
|
|
2
|
-
import { iconChevronDownSmall, iconCircleAttention, iconXSmall, iconX, iconMoreHorizontalSmall, iconCircleCheck, iconCircleX, iconCircleInformation, iconUser, iconArrowSmallUpRight, iconChevronRightSmall, iconArrowSmallLeft, iconMoreHorizontal, iconHome, iconSearch, iconCheck, iconSearchX, iconChevronDownUp, iconCheckSmall,
|
|
1
|
+
import { computed, provide, inject, toRef, ref, watch, defineComponent, watchEffect, toRefs, createElementBlock, openBlock, normalizeClass, renderSlot, onMounted, createBlock, resolveDynamicComponent, withCtx, createVNode, createElementVNode, withModifiers, readonly, reactive, onBeforeMount, onBeforeUnmount, useId, toValue, nextTick, unref, shallowRef, useTemplateRef, createCommentVNode, createTextVNode, toDisplayString, normalizeProps, mergeProps, Fragment, useAttrs, isProxy, toRaw, customRef, onUnmounted, normalizeStyle, useSlots, createSlots, renderList, toHandlers, resolveComponent, withDirectives, guardReactiveProps, vShow, Teleport, vModelCheckbox, vModelText, h, vModelDynamic, withKeys, createStaticVNode, useModel } from "vue";
|
|
2
|
+
import { iconChevronDownSmall, iconCircleAttention, iconXSmall, iconX, iconMoreHorizontalSmall, iconCircleCheck, iconCircleX, iconCircleInformation, iconUser, iconArrowSmallUpRight, iconChevronRightSmall, iconArrowSmallLeft, iconMoreHorizontal, iconHome, iconChevronLeftSmall, iconSearch, iconCheck, iconSearchX, iconChevronDownUp, iconCheckSmall, iconPlusSmall, iconEyeDisabled, iconListArrowUp, iconListArrowDown, iconArrowsSort, iconCircleBlock, iconFileDisabled, iconEyeClosed, iconEye, iconCircleContrast, iconTranslate, iconMoreVertical, iconMenu, iconNotificationFlag, iconPlus, iconMinus, iconFile, iconFilePdf, iconFileCsv, iconAudio, iconVideocam, iconPicture, iconFileRtf, iconFilePpt, iconFileXls, iconFileXlsx, iconFileDoc, iconFileGlobe, iconFileArchive, iconFileText, iconTrash, iconCloudArrowUp, iconShareIos, iconSettings, iconLogout, iconArrowSmallRight } from "@sit-onyx/icons";
|
|
3
3
|
const DENSITIES = ["compact", "default", "cozy"];
|
|
4
4
|
const useDensity = (props) => ({
|
|
5
5
|
densityClass: computed(() => ({ [`onyx-density-${props.density}`]: !!props.density }))
|
|
@@ -49,7 +49,7 @@ const useVModel = (options) => {
|
|
|
49
49
|
};
|
|
50
50
|
const ACCORDION_INJECTION_KEY = Symbol();
|
|
51
51
|
const ACCORDION_TYPES = ["default", "nested-large", "nested-small", "card"];
|
|
52
|
-
const _sfc_main$
|
|
52
|
+
const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
53
53
|
__name: "OnyxAccordion",
|
|
54
54
|
props: {
|
|
55
55
|
density: { type: null, required: false },
|
|
@@ -119,7 +119,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
119
119
|
}
|
|
120
120
|
return target;
|
|
121
121
|
};
|
|
122
|
-
function _sfc_render$
|
|
122
|
+
function _sfc_render$1E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
123
123
|
return openBlock(), createElementBlock(
|
|
124
124
|
"div",
|
|
125
125
|
{
|
|
@@ -137,7 +137,7 @@ function _sfc_render$1D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
137
137
|
/* CLASS */
|
|
138
138
|
);
|
|
139
139
|
}
|
|
140
|
-
const OnyxAccordion = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
140
|
+
const OnyxAccordion = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$1E], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAccordion/OnyxAccordion.vue"]]);
|
|
141
141
|
const ONYX_BREAKPOINTS = {
|
|
142
142
|
"2xs": 320,
|
|
143
143
|
xs: 577,
|
|
@@ -150,7 +150,7 @@ const ONYX_BREAKPOINTS = {
|
|
|
150
150
|
md: ONYX_BREAKPOINTS.lg - 1,
|
|
151
151
|
lg: ONYX_BREAKPOINTS.xl - 1
|
|
152
152
|
});
|
|
153
|
-
const _sfc_main$
|
|
153
|
+
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
154
154
|
__name: "OnyxIcon",
|
|
155
155
|
props: {
|
|
156
156
|
size: { type: null, required: false },
|
|
@@ -166,8 +166,8 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
166
166
|
return __returned__;
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
|
-
const _hoisted_1$
|
|
170
|
-
function _sfc_render$
|
|
169
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
170
|
+
function _sfc_render$1D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
171
171
|
return openBlock(), createElementBlock("figure", {
|
|
172
172
|
class: normalizeClass({
|
|
173
173
|
"onyx-component": true,
|
|
@@ -178,9 +178,9 @@ function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
178
178
|
}),
|
|
179
179
|
"aria-hidden": "true",
|
|
180
180
|
innerHTML: $setup.props.icon
|
|
181
|
-
}, null, 10, _hoisted_1$
|
|
181
|
+
}, null, 10, _hoisted_1$19);
|
|
182
182
|
}
|
|
183
|
-
const OnyxIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
183
|
+
const OnyxIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$1D], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxIcon/OnyxIcon.vue"]]);
|
|
184
184
|
const isAlreadyTriggered = /* @__PURE__ */ new Set();
|
|
185
185
|
const IDLE_TIMEOUT = 200;
|
|
186
186
|
const onIdleCallback = globalThis.window && "requestIdleCallback" in globalThis.window ? globalThis.window.requestIdleCallback : (cb, _) => setTimeout(cb, 0);
|
|
@@ -196,7 +196,7 @@ const requestAnimationSync = (animationName) => {
|
|
|
196
196
|
isAlreadyTriggered.add(animationName);
|
|
197
197
|
onIdleCallback(() => syncAnimations(animationName), { timeout: IDLE_TIMEOUT });
|
|
198
198
|
};
|
|
199
|
-
const _sfc_main$
|
|
199
|
+
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
200
200
|
__name: "OnyxSkeleton",
|
|
201
201
|
setup(__props, { expose: __expose }) {
|
|
202
202
|
__expose();
|
|
@@ -206,15 +206,15 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
206
206
|
return __returned__;
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
|
-
const _hoisted_1$
|
|
209
|
+
const _hoisted_1$18 = {
|
|
210
210
|
"aria-hidden": "true",
|
|
211
211
|
class: "onyx-component onyx-skeleton"
|
|
212
212
|
};
|
|
213
|
-
function _sfc_render$
|
|
214
|
-
return openBlock(), createElementBlock("figure", _hoisted_1$
|
|
213
|
+
function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
214
|
+
return openBlock(), createElementBlock("figure", _hoisted_1$18);
|
|
215
215
|
}
|
|
216
|
-
const OnyxSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
217
|
-
const _sfc_main$
|
|
216
|
+
const OnyxSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["render", _sfc_render$1C], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSkeleton/OnyxSkeleton.vue"]]);
|
|
217
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
218
218
|
__name: "OnyxAccordionItem",
|
|
219
219
|
props: {
|
|
220
220
|
density: { type: null, required: false },
|
|
@@ -251,11 +251,11 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
251
251
|
return __returned__;
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
|
-
const _hoisted_1$
|
|
255
|
-
const _hoisted_2$
|
|
256
|
-
const _hoisted_3$
|
|
257
|
-
const _hoisted_4$
|
|
258
|
-
function _sfc_render$
|
|
254
|
+
const _hoisted_1$17 = ["open"];
|
|
255
|
+
const _hoisted_2$O = ["id", "tabindex", "aria-expanded", "aria-controls", "aria-disabled"];
|
|
256
|
+
const _hoisted_3$x = { class: "onyx-accordion-item__header-content" };
|
|
257
|
+
const _hoisted_4$l = ["id", "aria-labelledby"];
|
|
258
|
+
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
259
259
|
return $setup.showSkeleton ? (openBlock(), createBlock(resolveDynamicComponent($setup.type === "card" ? $setup.OnyxSkeleton : "div"), {
|
|
260
260
|
key: 0,
|
|
261
261
|
class: normalizeClass([
|
|
@@ -291,14 +291,14 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
291
291
|
"aria-disabled": $setup.isDisabled,
|
|
292
292
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => $setup.isOpen = !$setup.isOpen, ["prevent"]))
|
|
293
293
|
}, [
|
|
294
|
-
createElementVNode("div", _hoisted_3$
|
|
294
|
+
createElementVNode("div", _hoisted_3$x, [
|
|
295
295
|
renderSlot(_ctx.$slots, "header")
|
|
296
296
|
]),
|
|
297
297
|
createVNode($setup["OnyxIcon"], {
|
|
298
298
|
icon: $setup.iconChevronDownSmall,
|
|
299
299
|
class: "onyx-accordion-item__header-icon"
|
|
300
300
|
}, null, 8, ["icon"])
|
|
301
|
-
], 8, _hoisted_2$
|
|
301
|
+
], 8, _hoisted_2$O),
|
|
302
302
|
createElementVNode("div", {
|
|
303
303
|
id: $setup.panelId,
|
|
304
304
|
class: "onyx-accordion-item__panel",
|
|
@@ -306,10 +306,10 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
306
306
|
"aria-labelledby": $setup.headerId
|
|
307
307
|
}, [
|
|
308
308
|
renderSlot(_ctx.$slots, "default")
|
|
309
|
-
], 8, _hoisted_4$
|
|
310
|
-
], 10, _hoisted_1$
|
|
309
|
+
], 8, _hoisted_4$l)
|
|
310
|
+
], 10, _hoisted_1$17));
|
|
311
311
|
}
|
|
312
|
-
const OnyxAccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
312
|
+
const OnyxAccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1B], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAccordionItem/OnyxAccordionItem.vue"]]);
|
|
313
313
|
const DATETIME_FORMATS = {
|
|
314
314
|
date: { dateStyle: "medium" },
|
|
315
315
|
"datetime-local": { dateStyle: "medium", timeStyle: "short" },
|
|
@@ -476,6 +476,239 @@ function createElRef() {
|
|
|
476
476
|
get: () => elementRef.value
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
|
+
const getDayIndex = (dayName) => {
|
|
480
|
+
const days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];
|
|
481
|
+
return days.indexOf(dayName);
|
|
482
|
+
};
|
|
483
|
+
const getNormalizedDayIndex = (date, weekStartDay) => {
|
|
484
|
+
const day = date.getDay();
|
|
485
|
+
const start = getDayIndex(weekStartDay);
|
|
486
|
+
const normalizedDay = day === 0 ? 6 : day - 1;
|
|
487
|
+
return (normalizedDay - start + 7) % 7;
|
|
488
|
+
};
|
|
489
|
+
const getMidnightDate = (date) => {
|
|
490
|
+
const newDate = new Date(date);
|
|
491
|
+
newDate.setHours(0, 0, 0, 0);
|
|
492
|
+
return newDate;
|
|
493
|
+
};
|
|
494
|
+
const initializeDate = (options) => {
|
|
495
|
+
const min = options.min ? getMidnightDate(new Date(options.min)) : null;
|
|
496
|
+
const max = options.max ? getMidnightDate(new Date(options.max)) : null;
|
|
497
|
+
const today = getMidnightDate(/* @__PURE__ */ new Date());
|
|
498
|
+
let initialDate = options.initialDate ? getMidnightDate(new Date(options.initialDate)) : today;
|
|
499
|
+
if (min && initialDate < min) initialDate = min;
|
|
500
|
+
if (max && initialDate > max) initialDate = max;
|
|
501
|
+
return initialDate;
|
|
502
|
+
};
|
|
503
|
+
const _unstableCreateCalendar = createBuilder((options) => {
|
|
504
|
+
const dayNames = computed(() => {
|
|
505
|
+
const days = Array.from({ length: 7 }, (_, i) => {
|
|
506
|
+
const date = new Date(2024, 0, 1 + i);
|
|
507
|
+
return date;
|
|
508
|
+
});
|
|
509
|
+
const formatStyle = options.calendarSize === "big" ? "long" : "short";
|
|
510
|
+
const formatter = new Intl.DateTimeFormat(toValue(options.locale), { weekday: formatStyle });
|
|
511
|
+
return days.map((day) => formatter.format(day));
|
|
512
|
+
});
|
|
513
|
+
const initialValue = initializeDate({
|
|
514
|
+
initialDate: toValue(options.initialDate),
|
|
515
|
+
min: toValue(options.min),
|
|
516
|
+
max: toValue(options.max)
|
|
517
|
+
});
|
|
518
|
+
const currentDate = ref(initialValue);
|
|
519
|
+
const focusedDate = ref(initialValue);
|
|
520
|
+
const selectedDate = ref(null);
|
|
521
|
+
const currentYear = computed(() => currentDate.value.getFullYear());
|
|
522
|
+
const currentMonth = computed(() => currentDate.value.getMonth());
|
|
523
|
+
const isToday = (date) => getMidnightDate(date).getTime() === getMidnightDate(/* @__PURE__ */ new Date()).getTime();
|
|
524
|
+
const isSelected = (date) => !!selectedDate.value && getMidnightDate(date).getTime() === getMidnightDate(selectedDate.value).getTime();
|
|
525
|
+
const isFocused = (date) => !!focusedDate.value && getMidnightDate(date).getTime() === getMidnightDate(focusedDate.value).getTime();
|
|
526
|
+
const isWeekend = (date) => {
|
|
527
|
+
const day = date.getDay();
|
|
528
|
+
return day === 0 || day === 6;
|
|
529
|
+
};
|
|
530
|
+
const isDisabled = (date) => {
|
|
531
|
+
const min = toValue(options.min);
|
|
532
|
+
const max = toValue(options.max);
|
|
533
|
+
const disabledFlag = !!toValue(options.disabled);
|
|
534
|
+
const dateAtMidnight = getMidnightDate(date);
|
|
535
|
+
const minCheck = min ? dateAtMidnight < getMidnightDate(min) : false;
|
|
536
|
+
const maxCheck = max ? dateAtMidnight > getMidnightDate(max) : false;
|
|
537
|
+
return disabledFlag || minCheck || maxCheck;
|
|
538
|
+
};
|
|
539
|
+
const generateCalendar = (year, month) => {
|
|
540
|
+
const weekStartDay = toValue(options.weekStartDay) ?? "Monday";
|
|
541
|
+
const firstDay = new Date(year, month, 1);
|
|
542
|
+
const lastDay = new Date(year, month + 1, 0);
|
|
543
|
+
const startDayIndex = getDayIndex(weekStartDay);
|
|
544
|
+
const offset = (firstDay.getDay() + 6) % 7;
|
|
545
|
+
const startOffset = (offset - startDayIndex + 7) % 7;
|
|
546
|
+
const calendarDays = [];
|
|
547
|
+
const prevMonthLastDay = new Date(year, month, 0);
|
|
548
|
+
for (let i = startOffset; i > 0; i--) {
|
|
549
|
+
const day = new Date(prevMonthLastDay);
|
|
550
|
+
day.setDate(prevMonthLastDay.getDate() - i + 1);
|
|
551
|
+
calendarDays.push({ date: day, isCurrentMonth: false, isDisabled: isDisabled(day) });
|
|
552
|
+
}
|
|
553
|
+
for (let i = 1; i <= lastDay.getDate(); i++) {
|
|
554
|
+
const day = new Date(year, month, i);
|
|
555
|
+
calendarDays.push({ date: day, isCurrentMonth: true, isDisabled: isDisabled(day) });
|
|
556
|
+
}
|
|
557
|
+
const daysInNextMonth = 42 - calendarDays.length;
|
|
558
|
+
for (let i = 1; i <= daysInNextMonth; i++) {
|
|
559
|
+
const day = new Date(year, month + 1, i);
|
|
560
|
+
calendarDays.push({ date: day, isCurrentMonth: false, isDisabled: isDisabled(day) });
|
|
561
|
+
}
|
|
562
|
+
const weeks2 = [];
|
|
563
|
+
for (let i = 0; i < calendarDays.length; i += 7) {
|
|
564
|
+
weeks2.push(calendarDays.slice(i, i + 7));
|
|
565
|
+
}
|
|
566
|
+
return weeks2;
|
|
567
|
+
};
|
|
568
|
+
const weeks = computed(() => generateCalendar(currentYear.value, currentMonth.value));
|
|
569
|
+
const goToDate = (date) => {
|
|
570
|
+
const midnightDate = getMidnightDate(date);
|
|
571
|
+
currentDate.value = midnightDate;
|
|
572
|
+
selectedDate.value = midnightDate;
|
|
573
|
+
focusedDate.value = midnightDate;
|
|
574
|
+
};
|
|
575
|
+
const handleKeyNavigation = async (event) => {
|
|
576
|
+
if (!focusedDate.value || toValue(options.disabled)) return;
|
|
577
|
+
const { min, max } = options;
|
|
578
|
+
const newDate = new Date(focusedDate.value);
|
|
579
|
+
let handled = false;
|
|
580
|
+
switch (event.key) {
|
|
581
|
+
case "ArrowUp":
|
|
582
|
+
newDate.setDate(newDate.getDate() - 7);
|
|
583
|
+
handled = true;
|
|
584
|
+
break;
|
|
585
|
+
case "ArrowDown":
|
|
586
|
+
newDate.setDate(newDate.getDate() + 7);
|
|
587
|
+
handled = true;
|
|
588
|
+
break;
|
|
589
|
+
case "ArrowLeft":
|
|
590
|
+
newDate.setDate(newDate.getDate() - 1);
|
|
591
|
+
handled = true;
|
|
592
|
+
break;
|
|
593
|
+
case "ArrowRight":
|
|
594
|
+
newDate.setDate(newDate.getDate() + 1);
|
|
595
|
+
handled = true;
|
|
596
|
+
break;
|
|
597
|
+
case "Home":
|
|
598
|
+
if (options.weekStartDay) {
|
|
599
|
+
const idx = getNormalizedDayIndex(newDate, toValue(options.weekStartDay));
|
|
600
|
+
newDate.setDate(newDate.getDate() - idx);
|
|
601
|
+
}
|
|
602
|
+
handled = true;
|
|
603
|
+
break;
|
|
604
|
+
case "End":
|
|
605
|
+
if (options.weekStartDay) {
|
|
606
|
+
const idx = getNormalizedDayIndex(newDate, toValue(options.weekStartDay));
|
|
607
|
+
newDate.setDate(newDate.getDate() + (6 - idx));
|
|
608
|
+
}
|
|
609
|
+
handled = true;
|
|
610
|
+
break;
|
|
611
|
+
case "PageUp":
|
|
612
|
+
newDate.setMonth(newDate.getMonth() - (event.shiftKey ? 12 : 1));
|
|
613
|
+
handled = true;
|
|
614
|
+
break;
|
|
615
|
+
case "PageDown":
|
|
616
|
+
newDate.setMonth(newDate.getMonth() + (event.shiftKey ? 12 : 1));
|
|
617
|
+
handled = true;
|
|
618
|
+
break;
|
|
619
|
+
}
|
|
620
|
+
const isDateValid = (d) => {
|
|
621
|
+
const minDate = toValue(min);
|
|
622
|
+
const maxDate = toValue(max);
|
|
623
|
+
const md = getMidnightDate(d);
|
|
624
|
+
return !(minDate && md < getMidnightDate(minDate)) && !(maxDate && md > getMidnightDate(maxDate));
|
|
625
|
+
};
|
|
626
|
+
if (handled) {
|
|
627
|
+
event.preventDefault();
|
|
628
|
+
if (isDateValid(newDate)) {
|
|
629
|
+
focusedDate.value = newDate;
|
|
630
|
+
if (newDate.getMonth() !== currentDate.value.getMonth()) {
|
|
631
|
+
currentDate.value = getMidnightDate(
|
|
632
|
+
new Date(newDate.getFullYear(), newDate.getMonth(), 1)
|
|
633
|
+
);
|
|
634
|
+
await nextTick();
|
|
635
|
+
}
|
|
636
|
+
const dateKey = focusedDate.value.toISOString().slice(0, 10);
|
|
637
|
+
options.buttonRefs.value[dateKey]?.focus();
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
};
|
|
641
|
+
const weekdays = computed(() => {
|
|
642
|
+
const weekStartDay = toValue(options.weekStartDay);
|
|
643
|
+
if (!weekStartDay) return [];
|
|
644
|
+
const days = toValue(dayNames);
|
|
645
|
+
const start = getDayIndex(weekStartDay);
|
|
646
|
+
return days.slice(start).concat(days.slice(0, start));
|
|
647
|
+
});
|
|
648
|
+
watch(selectedDate, (newDate) => {
|
|
649
|
+
if (newDate) focusedDate.value = getMidnightDate(newDate);
|
|
650
|
+
});
|
|
651
|
+
const calendarId = useId();
|
|
652
|
+
return {
|
|
653
|
+
elements: {
|
|
654
|
+
table: computed(() => ({
|
|
655
|
+
role: "grid",
|
|
656
|
+
"aria-labelledby": `calendar-${calendarId}`,
|
|
657
|
+
onKeydown: (e) => handleKeyNavigation(e)
|
|
658
|
+
})),
|
|
659
|
+
cell: computed(
|
|
660
|
+
() => (day) => day.date ? {
|
|
661
|
+
role: "gridcell",
|
|
662
|
+
"aria-selected": isSelected(day.date),
|
|
663
|
+
"aria-disabled": day.isDisabled || toValue(options.disabled),
|
|
664
|
+
class: {
|
|
665
|
+
"other-month": !day.isCurrentMonth,
|
|
666
|
+
"is-disabled": day.isDisabled,
|
|
667
|
+
today: isToday(day.date),
|
|
668
|
+
selected: isSelected(day.date),
|
|
669
|
+
weekend: isWeekend(day.date)
|
|
670
|
+
}
|
|
671
|
+
} : {}
|
|
672
|
+
),
|
|
673
|
+
button: computed(
|
|
674
|
+
() => (day) => day.date ? {
|
|
675
|
+
tabindex: isFocused(day.date) && !day.isDisabled ? "0" : "-1",
|
|
676
|
+
disabled: day.isDisabled || toValue(options.disabled),
|
|
677
|
+
class: "cell-content",
|
|
678
|
+
"data-date": day.date.toISOString().slice(0, 10),
|
|
679
|
+
onClick: () => !day.isDisabled && goToDate(day.date)
|
|
680
|
+
} : {}
|
|
681
|
+
)
|
|
682
|
+
},
|
|
683
|
+
state: {
|
|
684
|
+
selectedDate,
|
|
685
|
+
focusedDate,
|
|
686
|
+
currentYear,
|
|
687
|
+
currentMonth,
|
|
688
|
+
weeks,
|
|
689
|
+
weekdays
|
|
690
|
+
},
|
|
691
|
+
internals: {
|
|
692
|
+
isToday,
|
|
693
|
+
isSelected,
|
|
694
|
+
isFocused,
|
|
695
|
+
isWeekend,
|
|
696
|
+
isDisabled,
|
|
697
|
+
goToDate,
|
|
698
|
+
goToPreviousMonth: () => currentDate.value = getMidnightDate(
|
|
699
|
+
new Date(currentYear.value, currentMonth.value - 1, 1)
|
|
700
|
+
),
|
|
701
|
+
goToNextMonth: () => currentDate.value = getMidnightDate(
|
|
702
|
+
new Date(currentYear.value, currentMonth.value + 1, 1)
|
|
703
|
+
),
|
|
704
|
+
goToToday: () => {
|
|
705
|
+
const today = getMidnightDate(/* @__PURE__ */ new Date());
|
|
706
|
+
currentDate.value = today;
|
|
707
|
+
focusedDate.value = today;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
};
|
|
711
|
+
});
|
|
479
712
|
const isSubsetMatching = (subset, target) => Object.entries(subset).every(
|
|
480
713
|
([key, value]) => target[key] === value
|
|
481
714
|
);
|
|
@@ -1226,7 +1459,7 @@ const createTooltip = createBuilder(({ debounce: debounce2, isVisible }) => {
|
|
|
1226
1459
|
}
|
|
1227
1460
|
};
|
|
1228
1461
|
});
|
|
1229
|
-
const _sfc_main$
|
|
1462
|
+
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
1230
1463
|
__name: "OnyxBasicDialog",
|
|
1231
1464
|
props: {
|
|
1232
1465
|
density: { type: null, required: false },
|
|
@@ -1282,12 +1515,12 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
1282
1515
|
return __returned__;
|
|
1283
1516
|
}
|
|
1284
1517
|
});
|
|
1285
|
-
const _hoisted_1$
|
|
1286
|
-
const _hoisted_2$
|
|
1518
|
+
const _hoisted_1$16 = ["aria-modal", "aria-label", "role"];
|
|
1519
|
+
const _hoisted_2$N = {
|
|
1287
1520
|
ref: "contentRef",
|
|
1288
1521
|
class: "onyx-basic-dialog__content"
|
|
1289
1522
|
};
|
|
1290
|
-
function _sfc_render$
|
|
1523
|
+
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1291
1524
|
return $setup.props.open ? (openBlock(), createElementBlock("dialog", {
|
|
1292
1525
|
key: 0,
|
|
1293
1526
|
ref: "dialogRef",
|
|
@@ -1306,16 +1539,16 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1306
1539
|
}, [
|
|
1307
1540
|
createElementVNode(
|
|
1308
1541
|
"div",
|
|
1309
|
-
_hoisted_2$
|
|
1542
|
+
_hoisted_2$N,
|
|
1310
1543
|
[
|
|
1311
1544
|
renderSlot(_ctx.$slots, "default")
|
|
1312
1545
|
],
|
|
1313
1546
|
512
|
|
1314
1547
|
/* NEED_PATCH */
|
|
1315
1548
|
)
|
|
1316
|
-
], 42, _hoisted_1$
|
|
1549
|
+
], 42, _hoisted_1$16)) : createCommentVNode("v-if", true);
|
|
1317
1550
|
}
|
|
1318
|
-
const OnyxBasicDialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1551
|
+
const OnyxBasicDialog = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1A], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBasicDialog/OnyxBasicDialog.vue"]]);
|
|
1319
1552
|
const normalizedIncludes = (haystack, needle) => {
|
|
1320
1553
|
const haystackNormalized = removeDiacritics(haystack.toLowerCase());
|
|
1321
1554
|
const needleNormalized = removeDiacritics(needle.toLowerCase());
|
|
@@ -1397,7 +1630,7 @@ const normalizeHref = (href) => {
|
|
|
1397
1630
|
return value.replace(/\/+$/, "");
|
|
1398
1631
|
};
|
|
1399
1632
|
const ROUTER_INJECTION_KEY = Symbol();
|
|
1400
|
-
const _sfc_main$
|
|
1633
|
+
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
1401
1634
|
__name: "OnyxVisuallyHidden",
|
|
1402
1635
|
props: {
|
|
1403
1636
|
is: { type: String, required: false, default: "span" }
|
|
@@ -1410,7 +1643,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
1410
1643
|
return __returned__;
|
|
1411
1644
|
}
|
|
1412
1645
|
});
|
|
1413
|
-
function _sfc_render$
|
|
1646
|
+
function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1414
1647
|
return openBlock(), createBlock(resolveDynamicComponent($setup.props.is), { class: "onyx-component onyx-visually-hidden" }, {
|
|
1415
1648
|
default: withCtx(() => [
|
|
1416
1649
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -1419,8 +1652,8 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1419
1652
|
/* FORWARDED */
|
|
1420
1653
|
});
|
|
1421
1654
|
}
|
|
1422
|
-
const OnyxVisuallyHidden = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1423
|
-
const _sfc_main$
|
|
1655
|
+
const OnyxVisuallyHidden = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1z], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxVisuallyHidden/OnyxVisuallyHidden.vue"]]);
|
|
1656
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
1424
1657
|
__name: "OnyxRouterLink",
|
|
1425
1658
|
props: {
|
|
1426
1659
|
href: { type: String, required: true },
|
|
@@ -1436,8 +1669,8 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
1436
1669
|
return __returned__;
|
|
1437
1670
|
}
|
|
1438
1671
|
});
|
|
1439
|
-
const _hoisted_1$
|
|
1440
|
-
function _sfc_render$
|
|
1672
|
+
const _hoisted_1$15 = ["href", "target", "rel"];
|
|
1673
|
+
function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1441
1674
|
return openBlock(), createElementBlock("a", {
|
|
1442
1675
|
class: normalizeClass([
|
|
1443
1676
|
"onyx-component",
|
|
@@ -1461,10 +1694,10 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1461
1694
|
_: 1
|
|
1462
1695
|
/* STABLE */
|
|
1463
1696
|
})) : createCommentVNode("v-if", true)
|
|
1464
|
-
], 10, _hoisted_1$
|
|
1697
|
+
], 10, _hoisted_1$15);
|
|
1465
1698
|
}
|
|
1466
|
-
const OnyxRouterLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1467
|
-
const _sfc_main$
|
|
1699
|
+
const OnyxRouterLink = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$1y], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxRouterLink/OnyxRouterLink.vue"]]);
|
|
1700
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
1468
1701
|
__name: "OnyxHeadline",
|
|
1469
1702
|
props: {
|
|
1470
1703
|
is: { type: null, required: true },
|
|
@@ -1489,7 +1722,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
1489
1722
|
return __returned__;
|
|
1490
1723
|
}
|
|
1491
1724
|
});
|
|
1492
|
-
function _sfc_render$
|
|
1725
|
+
function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1493
1726
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
1494
1727
|
key: 0,
|
|
1495
1728
|
class: normalizeClass(["onyx-headline-skeleton", `onyx-headline-skeleton--${$setup.showAs}`])
|
|
@@ -1529,7 +1762,7 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1529
1762
|
/* FORWARDED */
|
|
1530
1763
|
}, 8, ["id", "class"]));
|
|
1531
1764
|
}
|
|
1532
|
-
const OnyxHeadline = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1765
|
+
const OnyxHeadline = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$1x], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxHeadline/OnyxHeadline.vue"]]);
|
|
1533
1766
|
const useAutofocus = (inputRef, props) => {
|
|
1534
1767
|
if (!props.autofocus) {
|
|
1535
1768
|
return;
|
|
@@ -1580,7 +1813,7 @@ const useFormContext = (props) => {
|
|
|
1580
1813
|
DEFAULT_FORM_INJECTION_CONTEXT
|
|
1581
1814
|
)(toRef(props));
|
|
1582
1815
|
};
|
|
1583
|
-
const _sfc_main$
|
|
1816
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
1584
1817
|
__name: "ButtonOrLinkLayout",
|
|
1585
1818
|
props: {
|
|
1586
1819
|
disabled: { type: [Boolean, Symbol], required: false },
|
|
@@ -1603,8 +1836,8 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
1603
1836
|
return __returned__;
|
|
1604
1837
|
}
|
|
1605
1838
|
});
|
|
1606
|
-
const _hoisted_1$
|
|
1607
|
-
function _sfc_render$
|
|
1839
|
+
const _hoisted_1$14 = ["disabled", "type", "autofocus"];
|
|
1840
|
+
function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1608
1841
|
return $setup.linkProps ? (openBlock(), createBlock(
|
|
1609
1842
|
$setup["OnyxRouterLink"],
|
|
1610
1843
|
normalizeProps(mergeProps({ key: 0 }, $setup.linkProps)),
|
|
@@ -1625,10 +1858,10 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1625
1858
|
autofocus: $setup.props.autofocus
|
|
1626
1859
|
}, [
|
|
1627
1860
|
renderSlot(_ctx.$slots, "default")
|
|
1628
|
-
], 8, _hoisted_1$
|
|
1861
|
+
], 8, _hoisted_1$14));
|
|
1629
1862
|
}
|
|
1630
|
-
const ButtonOrLinkLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1631
|
-
const _sfc_main$
|
|
1863
|
+
const ButtonOrLinkLayout = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1w], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxButton/ButtonOrLinkLayout.vue"]]);
|
|
1864
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
1632
1865
|
__name: "OnyxSystemButton",
|
|
1633
1866
|
props: {
|
|
1634
1867
|
disabled: { type: [Boolean, Symbol], required: false, default: FORM_INJECTED_SYMBOL },
|
|
@@ -1648,7 +1881,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
1648
1881
|
return __returned__;
|
|
1649
1882
|
}
|
|
1650
1883
|
});
|
|
1651
|
-
function _sfc_render$
|
|
1884
|
+
function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1652
1885
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
1653
1886
|
key: 0,
|
|
1654
1887
|
class: normalizeClass(["onyx-system-button-skeleton", $setup.props.icon ? "" : "onyx-system-button-skeleton--text"])
|
|
@@ -1680,8 +1913,8 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1680
1913
|
/* STABLE */
|
|
1681
1914
|
}, 16, ["class", "aria-label", "title"]));
|
|
1682
1915
|
}
|
|
1683
|
-
const OnyxSystemButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1684
|
-
const _sfc_main$
|
|
1916
|
+
const OnyxSystemButton = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$1v], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSystemButton/OnyxSystemButton.vue"]]);
|
|
1917
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
1685
1918
|
__name: "OnyxAlertModal",
|
|
1686
1919
|
props: {
|
|
1687
1920
|
density: { type: null, required: false },
|
|
@@ -1705,11 +1938,11 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
1705
1938
|
return __returned__;
|
|
1706
1939
|
}
|
|
1707
1940
|
});
|
|
1708
|
-
const _hoisted_1$
|
|
1709
|
-
const _hoisted_2$
|
|
1710
|
-
const _hoisted_3$
|
|
1711
|
-
const _hoisted_4$
|
|
1712
|
-
function _sfc_render$
|
|
1941
|
+
const _hoisted_1$13 = { class: "onyx-alert-modal__content" };
|
|
1942
|
+
const _hoisted_2$M = { class: "onyx-alert-modal__headline" };
|
|
1943
|
+
const _hoisted_3$w = ["id"];
|
|
1944
|
+
const _hoisted_4$k = { class: "onyx-alert-modal__actions" };
|
|
1945
|
+
function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1713
1946
|
return openBlock(), createBlock($setup["OnyxBasicDialog"], mergeProps({
|
|
1714
1947
|
class: ["onyx-alert-modal", $setup.densityClass]
|
|
1715
1948
|
}, $setup.props, {
|
|
@@ -1719,7 +1952,7 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1719
1952
|
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => $setup.emit("update:open", $event))
|
|
1720
1953
|
}), {
|
|
1721
1954
|
default: withCtx(() => [
|
|
1722
|
-
createElementVNode("div", _hoisted_1$
|
|
1955
|
+
createElementVNode("div", _hoisted_1$13, [
|
|
1723
1956
|
$setup.props.icon ? (openBlock(), createBlock(
|
|
1724
1957
|
$setup["OnyxIcon"],
|
|
1725
1958
|
mergeProps({
|
|
@@ -1731,7 +1964,7 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1731
1964
|
/* FULL_PROPS */
|
|
1732
1965
|
)) : createCommentVNode("v-if", true),
|
|
1733
1966
|
createElementVNode("div", null, [
|
|
1734
|
-
createElementVNode("div", _hoisted_2$
|
|
1967
|
+
createElementVNode("div", _hoisted_2$M, [
|
|
1735
1968
|
renderSlot(_ctx.$slots, "headline", {
|
|
1736
1969
|
label: $setup.props.label
|
|
1737
1970
|
}, () => [
|
|
@@ -1759,10 +1992,10 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1759
1992
|
class: "onyx-alert-modal__body onyx-truncation"
|
|
1760
1993
|
}, [
|
|
1761
1994
|
renderSlot(_ctx.$slots, "default")
|
|
1762
|
-
], 8, _hoisted_3$
|
|
1995
|
+
], 8, _hoisted_3$w)
|
|
1763
1996
|
])
|
|
1764
1997
|
]),
|
|
1765
|
-
createElementVNode("div", _hoisted_4$
|
|
1998
|
+
createElementVNode("div", _hoisted_4$k, [
|
|
1766
1999
|
renderSlot(_ctx.$slots, "actions")
|
|
1767
2000
|
])
|
|
1768
2001
|
]),
|
|
@@ -1770,7 +2003,7 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1770
2003
|
/* FORWARDED */
|
|
1771
2004
|
}, 16, ["class", "aria-describedby"]);
|
|
1772
2005
|
}
|
|
1773
|
-
const OnyxAlertModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2006
|
+
const OnyxAlertModal = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$1u], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAlertModal/OnyxAlertModal.vue"]]);
|
|
1774
2007
|
const useRootAttrs = () => {
|
|
1775
2008
|
const attrs = useAttrs();
|
|
1776
2009
|
const rootAttrs = computed(
|
|
@@ -1852,7 +2085,7 @@ const mergeVueProps = (...args) => args.reduce((prev, curr) => {
|
|
|
1852
2085
|
merged.ref = mergedRef;
|
|
1853
2086
|
return merged;
|
|
1854
2087
|
}, {});
|
|
1855
|
-
const _sfc_main$
|
|
2088
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
1856
2089
|
__name: "OnyxFABButton",
|
|
1857
2090
|
props: {
|
|
1858
2091
|
density: { type: null, required: false },
|
|
@@ -1872,11 +2105,11 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
1872
2105
|
return __returned__;
|
|
1873
2106
|
}
|
|
1874
2107
|
});
|
|
1875
|
-
const _hoisted_1$
|
|
2108
|
+
const _hoisted_1$12 = {
|
|
1876
2109
|
key: 1,
|
|
1877
2110
|
class: "onyx-fab-button__label"
|
|
1878
2111
|
};
|
|
1879
|
-
function _sfc_render$
|
|
2112
|
+
function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1880
2113
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
1881
2114
|
key: 0,
|
|
1882
2115
|
class: normalizeClass(["onyx-fab-button-skeleton", $setup.densityClass])
|
|
@@ -1894,7 +2127,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1894
2127
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
1895
2128
|
!$setup.props.hideLabel ? (openBlock(), createElementBlock(
|
|
1896
2129
|
"span",
|
|
1897
|
-
_hoisted_1$
|
|
2130
|
+
_hoisted_1$12,
|
|
1898
2131
|
toDisplayString($setup.props.label),
|
|
1899
2132
|
1
|
|
1900
2133
|
/* TEXT */
|
|
@@ -1904,7 +2137,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1904
2137
|
/* STABLE */
|
|
1905
2138
|
}, 8, ["class", "title", "aria-label", "link"]));
|
|
1906
2139
|
}
|
|
1907
|
-
const OnyxFABButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2140
|
+
const OnyxFABButton = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1t], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFABButton/OnyxFABButton.vue"]]);
|
|
1908
2141
|
const useResizeObserver = (target, options) => {
|
|
1909
2142
|
const box = options?.box ?? "content-box";
|
|
1910
2143
|
const width = ref(0);
|
|
@@ -2140,7 +2373,7 @@ const findParentWithHiddenOverflow = (element) => {
|
|
|
2140
2373
|
}
|
|
2141
2374
|
return element.parentElement ? findParentWithHiddenOverflow(element.parentElement) : void 0;
|
|
2142
2375
|
};
|
|
2143
|
-
const _sfc_main$
|
|
2376
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
2144
2377
|
__name: "OnyxBasicPopover",
|
|
2145
2378
|
props: {
|
|
2146
2379
|
label: { type: String, required: true },
|
|
@@ -2286,8 +2519,8 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
2286
2519
|
return __returned__;
|
|
2287
2520
|
}
|
|
2288
2521
|
});
|
|
2289
|
-
const _hoisted_1$
|
|
2290
|
-
function _sfc_render$
|
|
2522
|
+
const _hoisted_1$11 = ["role", "aria-label"];
|
|
2523
|
+
function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2291
2524
|
return openBlock(), createElementBlock(
|
|
2292
2525
|
"div",
|
|
2293
2526
|
{
|
|
@@ -2306,14 +2539,14 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2306
2539
|
style: normalizeStyle($setup.popoverStyles)
|
|
2307
2540
|
}, [
|
|
2308
2541
|
renderSlot(_ctx.$slots, "content")
|
|
2309
|
-
], 14, _hoisted_1$
|
|
2542
|
+
], 14, _hoisted_1$11)
|
|
2310
2543
|
],
|
|
2311
2544
|
4
|
|
2312
2545
|
/* STYLE */
|
|
2313
2546
|
);
|
|
2314
2547
|
}
|
|
2315
|
-
const OnyxBasicPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2316
|
-
const _sfc_main$
|
|
2548
|
+
const OnyxBasicPopover = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", _sfc_render$1s], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBasicPopover/OnyxBasicPopover.vue"]]);
|
|
2549
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
2317
2550
|
__name: "OnyxFlyoutMenu",
|
|
2318
2551
|
props: {
|
|
2319
2552
|
alignment: { type: String, required: false, default: "auto" },
|
|
@@ -2352,9 +2585,9 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
2352
2585
|
return __returned__;
|
|
2353
2586
|
}
|
|
2354
2587
|
});
|
|
2355
|
-
const _hoisted_1
|
|
2356
|
-
const _hoisted_2$
|
|
2357
|
-
function _sfc_render$
|
|
2588
|
+
const _hoisted_1$10 = { class: "onyx-flyout-menu__list-header" };
|
|
2589
|
+
const _hoisted_2$L = { class: "onyx-flyout-menu__list-footer" };
|
|
2590
|
+
function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2358
2591
|
return openBlock(), createBlock($setup["OnyxBasicPopover"], mergeProps($setup.mergeVueProps($setup.root, { ref: $setup.popover }), {
|
|
2359
2592
|
class: "onyx-component onyx-flyout-menu",
|
|
2360
2593
|
open: $setup.isExpanded,
|
|
@@ -2363,7 +2596,7 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2363
2596
|
disabled: $props.disabled
|
|
2364
2597
|
}), createSlots({
|
|
2365
2598
|
content: withCtx(() => [
|
|
2366
|
-
createElementVNode("div", _hoisted_1
|
|
2599
|
+
createElementVNode("div", _hoisted_1$10, [
|
|
2367
2600
|
renderSlot(_ctx.$slots, "header")
|
|
2368
2601
|
]),
|
|
2369
2602
|
$setup.slots.options ? (openBlock(), createElementBlock(
|
|
@@ -2375,7 +2608,7 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2375
2608
|
16
|
|
2376
2609
|
/* FULL_PROPS */
|
|
2377
2610
|
)) : createCommentVNode("v-if", true),
|
|
2378
|
-
createElementVNode("div", _hoisted_2$
|
|
2611
|
+
createElementVNode("div", _hoisted_2$L, [
|
|
2379
2612
|
renderSlot(_ctx.$slots, "footer")
|
|
2380
2613
|
])
|
|
2381
2614
|
]),
|
|
@@ -2391,8 +2624,8 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2391
2624
|
} : void 0
|
|
2392
2625
|
]), 1040, ["open", "label", "alignment", "disabled"]);
|
|
2393
2626
|
}
|
|
2394
|
-
const OnyxFlyoutMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2395
|
-
const _sfc_main$
|
|
2627
|
+
const OnyxFlyoutMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1r], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue"]]);
|
|
2628
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
2396
2629
|
__name: "OnyxFAB",
|
|
2397
2630
|
props: {
|
|
2398
2631
|
density: { type: null, required: false },
|
|
@@ -2430,7 +2663,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
2430
2663
|
return __returned__;
|
|
2431
2664
|
}
|
|
2432
2665
|
});
|
|
2433
|
-
function _sfc_render$
|
|
2666
|
+
function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2434
2667
|
return !$setup.hasOptions || $setup.skeleton ? (openBlock(), createBlock($setup["OnyxFABButton"], mergeProps({
|
|
2435
2668
|
key: 0,
|
|
2436
2669
|
class: ["onyx-fab", `onyx-fab--${$setup.props.alignment}`]
|
|
@@ -2460,8 +2693,8 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2460
2693
|
/* FORWARDED */
|
|
2461
2694
|
}, 8, ["open", "label", "class", "alignment"]));
|
|
2462
2695
|
}
|
|
2463
|
-
const OnyxFAB = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2464
|
-
const _sfc_main$
|
|
2696
|
+
const OnyxFAB = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1q], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFAB/OnyxFAB.vue"]]);
|
|
2697
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
2465
2698
|
__name: "OnyxFABItem",
|
|
2466
2699
|
props: {
|
|
2467
2700
|
density: { type: null, required: false },
|
|
@@ -2484,7 +2717,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
2484
2717
|
return __returned__;
|
|
2485
2718
|
}
|
|
2486
2719
|
});
|
|
2487
|
-
function _sfc_render$
|
|
2720
|
+
function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2488
2721
|
return openBlock(), createElementBlock(
|
|
2489
2722
|
"li",
|
|
2490
2723
|
mergeProps({
|
|
@@ -2499,7 +2732,7 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2499
2732
|
/* FULL_PROPS */
|
|
2500
2733
|
);
|
|
2501
2734
|
}
|
|
2502
|
-
const OnyxFABItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2735
|
+
const OnyxFABItem = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1p], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFABItem/OnyxFABItem.vue"]]);
|
|
2503
2736
|
const GLOBAL_FAB_PROVIDER_INJECTION_KEY = Symbol();
|
|
2504
2737
|
const createGlobalFABProvider = () => {
|
|
2505
2738
|
const items = shallowRef([]);
|
|
@@ -2536,7 +2769,7 @@ const useGlobalFAB = () => {
|
|
|
2536
2769
|
);
|
|
2537
2770
|
return globalFABProvider;
|
|
2538
2771
|
};
|
|
2539
|
-
const _sfc_main$
|
|
2772
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
2540
2773
|
__name: "OnyxGlobalFAB",
|
|
2541
2774
|
setup(__props, { expose: __expose }) {
|
|
2542
2775
|
__expose();
|
|
@@ -2550,7 +2783,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
2550
2783
|
return __returned__;
|
|
2551
2784
|
}
|
|
2552
2785
|
});
|
|
2553
|
-
function _sfc_render$
|
|
2786
|
+
function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2554
2787
|
return $setup.globalFAB.items.value.length === 1 ? (openBlock(), createBlock(
|
|
2555
2788
|
$setup["OnyxFAB"],
|
|
2556
2789
|
normalizeProps(mergeProps({ key: 0 }, $setup.globalFAB.items.value[0].value)),
|
|
@@ -2585,14 +2818,14 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2585
2818
|
/* STABLE */
|
|
2586
2819
|
}, 8, ["label", "alignment"])) : createCommentVNode("v-if", true);
|
|
2587
2820
|
}
|
|
2588
|
-
const OnyxGlobalFAB = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2589
|
-
const _sfc_main$
|
|
2590
|
-
const _hoisted_1
|
|
2821
|
+
const OnyxGlobalFAB = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$1o], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxGlobalFAB/OnyxGlobalFAB.vue"]]);
|
|
2822
|
+
const _sfc_main$1n = {};
|
|
2823
|
+
const _hoisted_1$$ = {
|
|
2591
2824
|
class: "onyx-component onyx-circle-spinner",
|
|
2592
2825
|
viewBox: "0 0 50 50"
|
|
2593
2826
|
};
|
|
2594
|
-
function _sfc_render$
|
|
2595
|
-
return openBlock(), createElementBlock("svg", _hoisted_1
|
|
2827
|
+
function _sfc_render$1n(_ctx, _cache) {
|
|
2828
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$$, [..._cache[0] || (_cache[0] = [
|
|
2596
2829
|
createElementVNode(
|
|
2597
2830
|
"circle",
|
|
2598
2831
|
{
|
|
@@ -2607,11 +2840,11 @@ function _sfc_render$1m(_ctx, _cache) {
|
|
|
2607
2840
|
)
|
|
2608
2841
|
])]);
|
|
2609
2842
|
}
|
|
2610
|
-
const OnyxCircleSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2611
|
-
const _sfc_main$
|
|
2612
|
-
const _hoisted_1$
|
|
2613
|
-
function _sfc_render$
|
|
2614
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2843
|
+
const OnyxCircleSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1n], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxLoadingIndicator/OnyxCircleSpinner.vue"]]);
|
|
2844
|
+
const _sfc_main$1m = {};
|
|
2845
|
+
const _hoisted_1$_ = { class: "onyx-component onyx-loading-dots" };
|
|
2846
|
+
function _sfc_render$1m(_ctx, _cache) {
|
|
2847
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [..._cache[0] || (_cache[0] = [
|
|
2615
2848
|
createElementVNode(
|
|
2616
2849
|
"span",
|
|
2617
2850
|
{ class: "onyx-loading-dots__center" },
|
|
@@ -2621,8 +2854,8 @@ function _sfc_render$1l(_ctx, _cache) {
|
|
|
2621
2854
|
)
|
|
2622
2855
|
])]);
|
|
2623
2856
|
}
|
|
2624
|
-
const OnyxLoadingDots = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2625
|
-
const _sfc_main$
|
|
2857
|
+
const OnyxLoadingDots = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1m], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxLoadingIndicator/OnyxLoadingDots.vue"]]);
|
|
2858
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
2626
2859
|
__name: "OnyxLoadingIndicator",
|
|
2627
2860
|
props: {
|
|
2628
2861
|
type: { type: String, required: false, default: "dots" }
|
|
@@ -2635,10 +2868,10 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
2635
2868
|
return __returned__;
|
|
2636
2869
|
}
|
|
2637
2870
|
});
|
|
2638
|
-
function _sfc_render$
|
|
2871
|
+
function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2639
2872
|
return $setup.props.type === "circle" ? (openBlock(), createBlock($setup["OnyxCircleSpinner"], { key: 0 })) : $setup.props.type === "dots" ? (openBlock(), createBlock($setup["OnyxLoadingDots"], { key: 1 })) : createCommentVNode("v-if", true);
|
|
2640
2873
|
}
|
|
2641
|
-
const OnyxLoadingIndicator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2874
|
+
const OnyxLoadingIndicator = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1l], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxLoadingIndicator/OnyxLoadingIndicator.vue"]]);
|
|
2642
2875
|
const useRipple = (container) => {
|
|
2643
2876
|
const isPointerDown = ref(false);
|
|
2644
2877
|
const ripples = reactive(/* @__PURE__ */ new Map());
|
|
@@ -2685,7 +2918,7 @@ const useRipple = (container) => {
|
|
|
2685
2918
|
});
|
|
2686
2919
|
return { isPointerDown, ripples, startRipple, hideRipples, hideRipple, events };
|
|
2687
2920
|
};
|
|
2688
|
-
const _sfc_main$
|
|
2921
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
2689
2922
|
__name: "OnyxRipple",
|
|
2690
2923
|
setup(__props, { expose: __expose }) {
|
|
2691
2924
|
const rippleTrigger = useTemplateRef("rippleTriggerRef");
|
|
@@ -2698,16 +2931,16 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
2698
2931
|
return __returned__;
|
|
2699
2932
|
}
|
|
2700
2933
|
});
|
|
2701
|
-
const _hoisted_1$
|
|
2934
|
+
const _hoisted_1$Z = {
|
|
2702
2935
|
ref: "rippleTriggerRef",
|
|
2703
2936
|
class: "onyx-component onyx-ripple",
|
|
2704
2937
|
"aria-hidden": "true"
|
|
2705
2938
|
};
|
|
2706
|
-
const _hoisted_2$
|
|
2707
|
-
function _sfc_render$
|
|
2939
|
+
const _hoisted_2$K = ["data-rippleid"];
|
|
2940
|
+
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2708
2941
|
return openBlock(), createElementBlock(
|
|
2709
2942
|
"span",
|
|
2710
|
-
_hoisted_1$
|
|
2943
|
+
_hoisted_1$Z,
|
|
2711
2944
|
[
|
|
2712
2945
|
(openBlock(true), createElementBlock(
|
|
2713
2946
|
Fragment,
|
|
@@ -2722,7 +2955,7 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2722
2955
|
}),
|
|
2723
2956
|
"data-rippleid": key,
|
|
2724
2957
|
onAnimationend: _cache[0] || (_cache[0] = ($event) => $setup.hideRipple($event.target))
|
|
2725
|
-
}, null, 44, _hoisted_2$
|
|
2958
|
+
}, null, 44, _hoisted_2$K);
|
|
2726
2959
|
}),
|
|
2727
2960
|
128
|
|
2728
2961
|
/* KEYED_FRAGMENT */
|
|
@@ -2732,8 +2965,8 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2732
2965
|
/* NEED_PATCH */
|
|
2733
2966
|
);
|
|
2734
2967
|
}
|
|
2735
|
-
const OnyxRipple = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2736
|
-
const _sfc_main$
|
|
2968
|
+
const OnyxRipple = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1k], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxRipple/OnyxRipple.vue"]]);
|
|
2969
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
2737
2970
|
__name: "OnyxButton",
|
|
2738
2971
|
props: {
|
|
2739
2972
|
density: { type: null, required: false },
|
|
@@ -2762,8 +2995,8 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
2762
2995
|
return __returned__;
|
|
2763
2996
|
}
|
|
2764
2997
|
});
|
|
2765
|
-
const _hoisted_1$
|
|
2766
|
-
function _sfc_render$
|
|
2998
|
+
const _hoisted_1$Y = { class: "onyx-button__label onyx-truncation-ellipsis" };
|
|
2999
|
+
function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2767
3000
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
2768
3001
|
key: 0,
|
|
2769
3002
|
class: normalizeClass(["onyx-button-skeleton", $setup.densityClass])
|
|
@@ -2800,7 +3033,7 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2800
3033
|
})) : createCommentVNode("v-if", true),
|
|
2801
3034
|
createElementVNode(
|
|
2802
3035
|
"span",
|
|
2803
|
-
_hoisted_1$
|
|
3036
|
+
_hoisted_1$Y,
|
|
2804
3037
|
toDisplayString($setup.props.label),
|
|
2805
3038
|
1
|
|
2806
3039
|
/* TEXT */
|
|
@@ -2815,8 +3048,8 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2815
3048
|
/* STABLE */
|
|
2816
3049
|
}, 16, ["class", "aria-label"]));
|
|
2817
3050
|
}
|
|
2818
|
-
const OnyxButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2819
|
-
const _sfc_main$
|
|
3051
|
+
const OnyxButton = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1j], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxButton/OnyxButton.vue"]]);
|
|
3052
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
2820
3053
|
__name: "OnyxInfoCard",
|
|
2821
3054
|
props: {
|
|
2822
3055
|
density: { type: null, required: false },
|
|
@@ -2840,16 +3073,16 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
2840
3073
|
return __returned__;
|
|
2841
3074
|
}
|
|
2842
3075
|
});
|
|
2843
|
-
const _hoisted_1$
|
|
2844
|
-
const _hoisted_2$
|
|
3076
|
+
const _hoisted_1$X = { class: "onyx-info-card__content" };
|
|
3077
|
+
const _hoisted_2$J = {
|
|
2845
3078
|
key: 2,
|
|
2846
3079
|
class: "onyx-info-card__description onyx-text--small"
|
|
2847
3080
|
};
|
|
2848
|
-
const _hoisted_3$
|
|
3081
|
+
const _hoisted_3$v = {
|
|
2849
3082
|
key: 3,
|
|
2850
3083
|
class: "onyx-info-card__buttons onyx-density-compact"
|
|
2851
3084
|
};
|
|
2852
|
-
function _sfc_render$
|
|
3085
|
+
function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2853
3086
|
return openBlock(), createElementBlock(
|
|
2854
3087
|
"div",
|
|
2855
3088
|
{
|
|
@@ -2861,7 +3094,7 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2861
3094
|
class: "onyx-info-card__icon",
|
|
2862
3095
|
icon: $setup.props.icon
|
|
2863
3096
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
2864
|
-
createElementVNode("div", _hoisted_1$
|
|
3097
|
+
createElementVNode("div", _hoisted_1$X, [
|
|
2865
3098
|
$setup.props.headline ? (openBlock(), createBlock($setup["OnyxHeadline"], {
|
|
2866
3099
|
key: 0,
|
|
2867
3100
|
is: "h3",
|
|
@@ -2885,10 +3118,10 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2885
3118
|
color: $setup.props.color === "neutral" ? "soft" : "medium",
|
|
2886
3119
|
onClick: _cache[0] || (_cache[0] = ($event) => $setup.emit("close"))
|
|
2887
3120
|
}, null, 8, ["icon", "label", "color"])) : createCommentVNode("v-if", true),
|
|
2888
|
-
!!$setup.slots.default ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
3121
|
+
!!$setup.slots.default ? (openBlock(), createElementBlock("p", _hoisted_2$J, [
|
|
2889
3122
|
renderSlot(_ctx.$slots, "default")
|
|
2890
3123
|
])) : createCommentVNode("v-if", true),
|
|
2891
|
-
!!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
3124
|
+
!!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
|
|
2892
3125
|
renderSlot(_ctx.$slots, "buttons")
|
|
2893
3126
|
])) : createCommentVNode("v-if", true)
|
|
2894
3127
|
])
|
|
@@ -2897,8 +3130,8 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2897
3130
|
/* CLASS */
|
|
2898
3131
|
);
|
|
2899
3132
|
}
|
|
2900
|
-
const OnyxInfoCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2901
|
-
const _sfc_main$
|
|
3133
|
+
const OnyxInfoCard = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1i], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxInfoCard/OnyxInfoCard.vue"]]);
|
|
3134
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
2902
3135
|
__name: "OnyxNotificationMessage",
|
|
2903
3136
|
props: {
|
|
2904
3137
|
headline: { type: String, required: true },
|
|
@@ -2916,7 +3149,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
2916
3149
|
return __returned__;
|
|
2917
3150
|
}
|
|
2918
3151
|
});
|
|
2919
|
-
function _sfc_render$
|
|
3152
|
+
function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2920
3153
|
return openBlock(), createBlock($setup["OnyxInfoCard"], {
|
|
2921
3154
|
class: normalizeClass(["onyx-component onyx-notification-message", [
|
|
2922
3155
|
"onyx-component",
|
|
@@ -2949,7 +3182,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2949
3182
|
} : void 0
|
|
2950
3183
|
]), 1032, ["class", "headline", "icon", "style", "aria-label"]);
|
|
2951
3184
|
}
|
|
2952
|
-
const OnyxNotificationMessage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3185
|
+
const OnyxNotificationMessage = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1h], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNotificationMessage/OnyxNotificationMessage.vue"]]);
|
|
2953
3186
|
const NOTIFICATIONS_PROVIDER_INJECTION_KEY = Symbol();
|
|
2954
3187
|
const createNotificationsProvider = () => {
|
|
2955
3188
|
let nextId = 1;
|
|
@@ -2994,7 +3227,7 @@ const useNotification = () => {
|
|
|
2994
3227
|
);
|
|
2995
3228
|
return notificationsProvider;
|
|
2996
3229
|
};
|
|
2997
|
-
const _sfc_main$
|
|
3230
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
2998
3231
|
__name: "OnyxNotifications",
|
|
2999
3232
|
setup(__props, { expose: __expose }) {
|
|
3000
3233
|
__expose();
|
|
@@ -3004,15 +3237,15 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
3004
3237
|
return __returned__;
|
|
3005
3238
|
}
|
|
3006
3239
|
});
|
|
3007
|
-
const _hoisted_1$
|
|
3240
|
+
const _hoisted_1$W = {
|
|
3008
3241
|
key: 0,
|
|
3009
3242
|
class: "onyx-component onyx-notifications",
|
|
3010
3243
|
role: "presentation",
|
|
3011
3244
|
"aria-live": "polite",
|
|
3012
3245
|
open: ""
|
|
3013
3246
|
};
|
|
3014
|
-
function _sfc_render$
|
|
3015
|
-
return $setup.notificationProvider.notifications.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1$
|
|
3247
|
+
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3248
|
+
return $setup.notificationProvider.notifications.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1$W, [
|
|
3016
3249
|
(openBlock(true), createElementBlock(
|
|
3017
3250
|
Fragment,
|
|
3018
3251
|
null,
|
|
@@ -3064,8 +3297,8 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3064
3297
|
))
|
|
3065
3298
|
])) : createCommentVNode("v-if", true);
|
|
3066
3299
|
}
|
|
3067
|
-
const OnyxNotifications = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3068
|
-
const _sfc_main$
|
|
3300
|
+
const OnyxNotifications = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$1g], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNotifications/OnyxNotifications.vue"]]);
|
|
3301
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
3069
3302
|
__name: "OnyxToastMessage",
|
|
3070
3303
|
props: {
|
|
3071
3304
|
density: { type: null, required: false },
|
|
@@ -3101,33 +3334,33 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
3101
3334
|
return __returned__;
|
|
3102
3335
|
}
|
|
3103
3336
|
});
|
|
3104
|
-
const _hoisted_1$
|
|
3105
|
-
const _hoisted_2$
|
|
3106
|
-
const _hoisted_3$
|
|
3107
|
-
const _hoisted_4$
|
|
3108
|
-
const _hoisted_5$
|
|
3109
|
-
const _hoisted_6$
|
|
3337
|
+
const _hoisted_1$V = { class: "onyx-toast-message__wrapper" };
|
|
3338
|
+
const _hoisted_2$I = { class: "onyx-toast-message__content onyx-truncation-ellipsis" };
|
|
3339
|
+
const _hoisted_3$u = { class: "onyx-toast-message__headline onyx-text" };
|
|
3340
|
+
const _hoisted_4$j = { class: "onyx-truncation-ellipsis" };
|
|
3341
|
+
const _hoisted_5$e = ["aria-label"];
|
|
3342
|
+
const _hoisted_6$b = {
|
|
3110
3343
|
key: 0,
|
|
3111
3344
|
class: "onyx-toast-message__description onyx-text--small onyx-truncation-multiline",
|
|
3112
3345
|
tabindex: "0"
|
|
3113
3346
|
};
|
|
3114
|
-
function _sfc_render$
|
|
3347
|
+
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3115
3348
|
return openBlock(), createBlock(resolveDynamicComponent($setup.props.clickable ? "button" : "div"), {
|
|
3116
3349
|
class: normalizeClass(["onyx-component onyx-toast-message", [`onyx-toast-message--${$setup.props.color}`, $setup.densityClass]]),
|
|
3117
3350
|
role: $setup.props.color === "danger" || $setup.props.color === "warning" ? "alert" : "status",
|
|
3118
3351
|
"aria-label": $setup.props.clickable ? $setup.props.headline : void 0
|
|
3119
3352
|
}, {
|
|
3120
3353
|
default: withCtx(() => [
|
|
3121
|
-
createElementVNode("div", _hoisted_1$
|
|
3354
|
+
createElementVNode("div", _hoisted_1$V, [
|
|
3122
3355
|
$setup.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
3123
3356
|
key: 0,
|
|
3124
3357
|
icon: $setup.icon
|
|
3125
3358
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
3126
|
-
createElementVNode("div", _hoisted_2$
|
|
3127
|
-
createElementVNode("div", _hoisted_3$
|
|
3359
|
+
createElementVNode("div", _hoisted_2$I, [
|
|
3360
|
+
createElementVNode("div", _hoisted_3$u, [
|
|
3128
3361
|
createElementVNode(
|
|
3129
3362
|
"span",
|
|
3130
|
-
_hoisted_4$
|
|
3363
|
+
_hoisted_4$j,
|
|
3131
3364
|
toDisplayString($setup.props.headline),
|
|
3132
3365
|
1
|
|
3133
3366
|
/* TEXT */
|
|
@@ -3140,11 +3373,11 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3140
3373
|
onClick: _cache[0] || (_cache[0] = ($event) => $setup.emit("close"))
|
|
3141
3374
|
}, [
|
|
3142
3375
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconXSmall }, null, 8, ["icon"])
|
|
3143
|
-
], 8, _hoisted_5$
|
|
3376
|
+
], 8, _hoisted_5$e)) : createCommentVNode("v-if", true)
|
|
3144
3377
|
]),
|
|
3145
3378
|
$setup.props.description ? (openBlock(), createElementBlock(
|
|
3146
3379
|
"p",
|
|
3147
|
-
_hoisted_6$
|
|
3380
|
+
_hoisted_6$b,
|
|
3148
3381
|
toDisplayString($setup.props.description),
|
|
3149
3382
|
1
|
|
3150
3383
|
/* TEXT */
|
|
@@ -3169,7 +3402,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3169
3402
|
/* STABLE */
|
|
3170
3403
|
}, 8, ["class", "role", "aria-label"]);
|
|
3171
3404
|
}
|
|
3172
|
-
const OnyxToastMessage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3405
|
+
const OnyxToastMessage = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_render$1f], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxToastMessage/OnyxToastMessage.vue"]]);
|
|
3173
3406
|
const TOAST_PROVIDER_INJECTION_KEY = Symbol();
|
|
3174
3407
|
const createToastProvider = () => {
|
|
3175
3408
|
let nextId = 1;
|
|
@@ -3212,7 +3445,7 @@ const useToast = () => {
|
|
|
3212
3445
|
);
|
|
3213
3446
|
return toastProvider;
|
|
3214
3447
|
};
|
|
3215
|
-
const _sfc_main$
|
|
3448
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
3216
3449
|
__name: "OnyxToast",
|
|
3217
3450
|
setup(__props, { expose: __expose }) {
|
|
3218
3451
|
__expose();
|
|
@@ -3222,15 +3455,15 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
3222
3455
|
return __returned__;
|
|
3223
3456
|
}
|
|
3224
3457
|
});
|
|
3225
|
-
const _hoisted_1$
|
|
3458
|
+
const _hoisted_1$U = {
|
|
3226
3459
|
key: 0,
|
|
3227
3460
|
class: "onyx-component onyx-toast",
|
|
3228
3461
|
role: "presentation",
|
|
3229
3462
|
"aria-live": "polite",
|
|
3230
3463
|
open: ""
|
|
3231
3464
|
};
|
|
3232
|
-
function _sfc_render$
|
|
3233
|
-
return $setup.toastProvider.toasts.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1$
|
|
3465
|
+
function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3466
|
+
return $setup.toastProvider.toasts.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1$U, [
|
|
3234
3467
|
(openBlock(true), createElementBlock(
|
|
3235
3468
|
Fragment,
|
|
3236
3469
|
null,
|
|
@@ -3248,8 +3481,8 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3248
3481
|
))
|
|
3249
3482
|
])) : createCommentVNode("v-if", true);
|
|
3250
3483
|
}
|
|
3251
|
-
const OnyxToast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3252
|
-
const _sfc_main$
|
|
3484
|
+
const OnyxToast = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$1e], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxToast/OnyxToast.vue"]]);
|
|
3485
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
3253
3486
|
__name: "OnyxAppLayout",
|
|
3254
3487
|
props: {
|
|
3255
3488
|
navBarAlignment: { type: String, required: false, default: "top" }
|
|
@@ -3263,22 +3496,22 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
3263
3496
|
return __returned__;
|
|
3264
3497
|
}
|
|
3265
3498
|
});
|
|
3266
|
-
const _hoisted_1$
|
|
3499
|
+
const _hoisted_1$T = {
|
|
3267
3500
|
key: 0,
|
|
3268
3501
|
class: "onyx-app__nav"
|
|
3269
3502
|
};
|
|
3270
|
-
const _hoisted_2$
|
|
3271
|
-
function _sfc_render$
|
|
3503
|
+
const _hoisted_2$H = { class: "onyx-app__page" };
|
|
3504
|
+
function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3272
3505
|
return openBlock(), createElementBlock(
|
|
3273
3506
|
"div",
|
|
3274
3507
|
{
|
|
3275
3508
|
class: normalizeClass(["onyx-component onyx-app", { "onyx-app--horizontal": $setup.props.navBarAlignment === "left" }])
|
|
3276
3509
|
},
|
|
3277
3510
|
[
|
|
3278
|
-
$setup.slots.navBar ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3511
|
+
$setup.slots.navBar ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
3279
3512
|
renderSlot(_ctx.$slots, "navBar")
|
|
3280
3513
|
])) : createCommentVNode("v-if", true),
|
|
3281
|
-
createElementVNode("div", _hoisted_2$
|
|
3514
|
+
createElementVNode("div", _hoisted_2$H, [
|
|
3282
3515
|
renderSlot(_ctx.$slots, "default")
|
|
3283
3516
|
]),
|
|
3284
3517
|
createVNode($setup["OnyxToast"]),
|
|
@@ -3289,8 +3522,8 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3289
3522
|
/* CLASS */
|
|
3290
3523
|
);
|
|
3291
3524
|
}
|
|
3292
|
-
const OnyxAppLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3293
|
-
const _sfc_main$
|
|
3525
|
+
const OnyxAppLayout = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$1d], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAppLayout/OnyxAppLayout.vue"]]);
|
|
3526
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
3294
3527
|
__name: "OnyxAvatar",
|
|
3295
3528
|
props: {
|
|
3296
3529
|
size: { type: null, required: false, default: "48px" },
|
|
@@ -3324,13 +3557,13 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
3324
3557
|
return __returned__;
|
|
3325
3558
|
}
|
|
3326
3559
|
});
|
|
3327
|
-
const _hoisted_1$
|
|
3328
|
-
const _hoisted_2$
|
|
3329
|
-
const _hoisted_3$
|
|
3560
|
+
const _hoisted_1$S = ["title", "aria-label"];
|
|
3561
|
+
const _hoisted_2$G = ["src", "alt"];
|
|
3562
|
+
const _hoisted_3$t = {
|
|
3330
3563
|
key: 0,
|
|
3331
3564
|
class: "onyx-avatar__initials"
|
|
3332
3565
|
};
|
|
3333
|
-
function _sfc_render$
|
|
3566
|
+
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3334
3567
|
return openBlock(), createElementBlock("figure", {
|
|
3335
3568
|
class: normalizeClass([
|
|
3336
3569
|
"onyx-component",
|
|
@@ -3347,13 +3580,13 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3347
3580
|
src: $setup.props.src,
|
|
3348
3581
|
alt: $setup.ariaLabel,
|
|
3349
3582
|
onError: _cache[0] || (_cache[0] = ($event) => $setup.hasImageError = true)
|
|
3350
|
-
}, null, 40, _hoisted_2$
|
|
3583
|
+
}, null, 40, _hoisted_2$G)) : (openBlock(), createElementBlock(
|
|
3351
3584
|
Fragment,
|
|
3352
3585
|
{ key: 1 },
|
|
3353
3586
|
[
|
|
3354
3587
|
$setup.initials ? (openBlock(), createElementBlock(
|
|
3355
3588
|
"div",
|
|
3356
|
-
_hoisted_3$
|
|
3589
|
+
_hoisted_3$t,
|
|
3357
3590
|
toDisplayString($setup.initials),
|
|
3358
3591
|
1
|
|
3359
3592
|
/* TEXT */
|
|
@@ -3366,10 +3599,10 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3366
3599
|
64
|
|
3367
3600
|
/* STABLE_FRAGMENT */
|
|
3368
3601
|
))
|
|
3369
|
-
], 10, _hoisted_1$
|
|
3602
|
+
], 10, _hoisted_1$S);
|
|
3370
3603
|
}
|
|
3371
|
-
const OnyxAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3372
|
-
const _sfc_main$
|
|
3604
|
+
const OnyxAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$1c], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAvatar/OnyxAvatar.vue"]]);
|
|
3605
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
3373
3606
|
__name: "OnyxAvatarStack",
|
|
3374
3607
|
setup(__props, { expose: __expose }) {
|
|
3375
3608
|
__expose();
|
|
@@ -3378,14 +3611,14 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
3378
3611
|
return __returned__;
|
|
3379
3612
|
}
|
|
3380
3613
|
});
|
|
3381
|
-
const _hoisted_1$
|
|
3382
|
-
function _sfc_render$
|
|
3383
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3614
|
+
const _hoisted_1$R = { class: "onyx-component onyx-avatar-stack" };
|
|
3615
|
+
function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3616
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
3384
3617
|
renderSlot(_ctx.$slots, "default")
|
|
3385
3618
|
]);
|
|
3386
3619
|
}
|
|
3387
|
-
const OnyxAvatarStack = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3388
|
-
const _sfc_main$
|
|
3620
|
+
const OnyxAvatarStack = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$1b], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAvatarStack/OnyxAvatarStack.vue"]]);
|
|
3621
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
3389
3622
|
__name: "OnyxBadge",
|
|
3390
3623
|
props: {
|
|
3391
3624
|
density: { type: null, required: false },
|
|
@@ -3402,7 +3635,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
3402
3635
|
return __returned__;
|
|
3403
3636
|
}
|
|
3404
3637
|
});
|
|
3405
|
-
function _sfc_render$
|
|
3638
|
+
function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3406
3639
|
return openBlock(), createElementBlock(
|
|
3407
3640
|
"div",
|
|
3408
3641
|
{
|
|
@@ -3433,8 +3666,8 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3433
3666
|
/* CLASS */
|
|
3434
3667
|
);
|
|
3435
3668
|
}
|
|
3436
|
-
const OnyxBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3437
|
-
const _sfc_main$
|
|
3669
|
+
const OnyxBadge = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$1a], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBadge/OnyxBadge.vue"]]);
|
|
3670
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
3438
3671
|
__name: "OnyxBottomBar",
|
|
3439
3672
|
props: {
|
|
3440
3673
|
density: { type: null, required: false },
|
|
@@ -3449,10 +3682,10 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
3449
3682
|
return __returned__;
|
|
3450
3683
|
}
|
|
3451
3684
|
});
|
|
3452
|
-
const _hoisted_1$
|
|
3453
|
-
const _hoisted_2$
|
|
3454
|
-
const _hoisted_3$
|
|
3455
|
-
function _sfc_render$
|
|
3685
|
+
const _hoisted_1$Q = { class: "onyx-bottom-bar__content onyx-grid-container" };
|
|
3686
|
+
const _hoisted_2$F = { class: "onyx-bottom-bar__content--left" };
|
|
3687
|
+
const _hoisted_3$s = { class: "onyx-bottom-bar__content--right" };
|
|
3688
|
+
function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3456
3689
|
return openBlock(), createElementBlock(
|
|
3457
3690
|
"div",
|
|
3458
3691
|
{
|
|
@@ -3464,11 +3697,11 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3464
3697
|
])
|
|
3465
3698
|
},
|
|
3466
3699
|
[
|
|
3467
|
-
createElementVNode("div", _hoisted_1$
|
|
3468
|
-
createElementVNode("div", _hoisted_2$
|
|
3700
|
+
createElementVNode("div", _hoisted_1$Q, [
|
|
3701
|
+
createElementVNode("div", _hoisted_2$F, [
|
|
3469
3702
|
renderSlot(_ctx.$slots, "left")
|
|
3470
3703
|
]),
|
|
3471
|
-
createElementVNode("div", _hoisted_3$
|
|
3704
|
+
createElementVNode("div", _hoisted_3$s, [
|
|
3472
3705
|
renderSlot(_ctx.$slots, "default")
|
|
3473
3706
|
])
|
|
3474
3707
|
])
|
|
@@ -3477,7 +3710,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3477
3710
|
/* CLASS */
|
|
3478
3711
|
);
|
|
3479
3712
|
}
|
|
3480
|
-
const OnyxBottomBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3713
|
+
const OnyxBottomBar = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$19], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBottomBar/OnyxBottomBar.vue"]]);
|
|
3481
3714
|
const useMoreList = (options) => {
|
|
3482
3715
|
const visibleElements = ref();
|
|
3483
3716
|
const hiddenElements = ref();
|
|
@@ -3572,7 +3805,7 @@ const useMoreListChild = (injectionKey) => {
|
|
|
3572
3805
|
};
|
|
3573
3806
|
const BREADCRUMB_MORE_LIST_INJECTION_KEY = Symbol();
|
|
3574
3807
|
const BREADCRUMB_MORE_LIST_TARGET_INJECTION_KEY = Symbol();
|
|
3575
|
-
const _sfc_main$
|
|
3808
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
3576
3809
|
__name: "OnyxExternalLinkIcon",
|
|
3577
3810
|
props: {
|
|
3578
3811
|
href: { type: String, required: false },
|
|
@@ -3593,7 +3826,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
3593
3826
|
return __returned__;
|
|
3594
3827
|
}
|
|
3595
3828
|
});
|
|
3596
|
-
function _sfc_render$
|
|
3829
|
+
function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3597
3830
|
return $setup.isVisible ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
3598
3831
|
key: 0,
|
|
3599
3832
|
class: "onyx-component onyx-external-link-icon",
|
|
@@ -3601,8 +3834,8 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3601
3834
|
size: "16px"
|
|
3602
3835
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true);
|
|
3603
3836
|
}
|
|
3604
|
-
const OnyxExternalLinkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3605
|
-
const _sfc_main$
|
|
3837
|
+
const OnyxExternalLinkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["render", _sfc_render$18], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxExternalLinkIcon/OnyxExternalLinkIcon.vue"]]);
|
|
3838
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
3606
3839
|
__name: "OnyxListItem",
|
|
3607
3840
|
props: {
|
|
3608
3841
|
density: { type: null, required: false },
|
|
@@ -3621,7 +3854,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
3621
3854
|
return __returned__;
|
|
3622
3855
|
}
|
|
3623
3856
|
});
|
|
3624
|
-
function _sfc_render$
|
|
3857
|
+
function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3625
3858
|
return openBlock(), createElementBlock(
|
|
3626
3859
|
"li",
|
|
3627
3860
|
{
|
|
@@ -3643,8 +3876,8 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3643
3876
|
/* CLASS */
|
|
3644
3877
|
);
|
|
3645
3878
|
}
|
|
3646
|
-
const OnyxListItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3647
|
-
const _sfc_main$
|
|
3879
|
+
const OnyxListItem = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", _sfc_render$17], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxListItem/OnyxListItem.vue"]]);
|
|
3880
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
3648
3881
|
...{ inheritAttrs: false },
|
|
3649
3882
|
__name: "OnyxMenuItem",
|
|
3650
3883
|
props: {
|
|
@@ -3723,17 +3956,17 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
3723
3956
|
return __returned__;
|
|
3724
3957
|
}
|
|
3725
3958
|
});
|
|
3726
|
-
const _hoisted_1$
|
|
3727
|
-
const _hoisted_2$
|
|
3959
|
+
const _hoisted_1$P = { class: "onyx-truncation-ellipsis" };
|
|
3960
|
+
const _hoisted_2$E = {
|
|
3728
3961
|
key: 0,
|
|
3729
3962
|
class: "onyx-menu-item__chevron"
|
|
3730
3963
|
};
|
|
3731
|
-
const _hoisted_3$
|
|
3964
|
+
const _hoisted_3$r = {
|
|
3732
3965
|
key: 0,
|
|
3733
3966
|
role: "menu",
|
|
3734
3967
|
class: "onyx-menu-item__children"
|
|
3735
3968
|
};
|
|
3736
|
-
function _sfc_render$
|
|
3969
|
+
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3737
3970
|
const _component_OnyxMenuItem = resolveComponent("OnyxMenuItem", true);
|
|
3738
3971
|
return openBlock(), createBlock($setup["OnyxListItem"], mergeProps({
|
|
3739
3972
|
selected: $setup.isActive,
|
|
@@ -3754,7 +3987,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3754
3987
|
createElementVNode("span", null, [
|
|
3755
3988
|
createElementVNode(
|
|
3756
3989
|
"span",
|
|
3757
|
-
_hoisted_1$
|
|
3990
|
+
_hoisted_1$P,
|
|
3758
3991
|
toDisplayString($setup.props.label),
|
|
3759
3992
|
1
|
|
3760
3993
|
/* TEXT */
|
|
@@ -3768,7 +4001,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3768
4001
|
)
|
|
3769
4002
|
])
|
|
3770
4003
|
]),
|
|
3771
|
-
$setup.hasChildren ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4004
|
+
$setup.hasChildren ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
3772
4005
|
createVNode($setup["OnyxIcon"], {
|
|
3773
4006
|
icon: $setup.iconChevronRightSmall,
|
|
3774
4007
|
size: "24px"
|
|
@@ -3782,7 +4015,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3782
4015
|
]),
|
|
3783
4016
|
$setup.hasChildren ? withDirectives((openBlock(), createElementBlock(
|
|
3784
4017
|
"ul",
|
|
3785
|
-
_hoisted_3$
|
|
4018
|
+
_hoisted_3$r,
|
|
3786
4019
|
[
|
|
3787
4020
|
createVNode(
|
|
3788
4021
|
_component_OnyxMenuItem,
|
|
@@ -3819,8 +4052,8 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3819
4052
|
/* FORWARDED */
|
|
3820
4053
|
}, 16, ["selected", "active", "color", "disabled", "class"]);
|
|
3821
4054
|
}
|
|
3822
|
-
const OnyxMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3823
|
-
const _sfc_main$
|
|
4055
|
+
const OnyxMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$16], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.vue"]]);
|
|
4056
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
3824
4057
|
...{ inheritAttrs: false },
|
|
3825
4058
|
__name: "OnyxBreadcrumbItem",
|
|
3826
4059
|
props: {
|
|
@@ -3846,7 +4079,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3846
4079
|
return __returned__;
|
|
3847
4080
|
}
|
|
3848
4081
|
});
|
|
3849
|
-
function _sfc_render$
|
|
4082
|
+
function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3850
4083
|
return openBlock(), createElementBlock(
|
|
3851
4084
|
Fragment,
|
|
3852
4085
|
null,
|
|
@@ -3906,8 +4139,8 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3906
4139
|
/* STABLE_FRAGMENT */
|
|
3907
4140
|
);
|
|
3908
4141
|
}
|
|
3909
|
-
const OnyxBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3910
|
-
const _sfc_main$
|
|
4142
|
+
const OnyxBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$15], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBreadcrumbItem/OnyxBreadcrumbItem.vue"]]);
|
|
4143
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
3911
4144
|
__name: "OnyxMoreList",
|
|
3912
4145
|
props: {
|
|
3913
4146
|
injectionKey: { type: [Symbol, Object], required: true },
|
|
@@ -3940,7 +4173,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3940
4173
|
return __returned__;
|
|
3941
4174
|
}
|
|
3942
4175
|
});
|
|
3943
|
-
function _sfc_render$
|
|
4176
|
+
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3944
4177
|
return openBlock(), createBlock(
|
|
3945
4178
|
resolveDynamicComponent($setup.props.is),
|
|
3946
4179
|
{
|
|
@@ -3980,8 +4213,8 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3980
4213
|
/* NEED_PATCH */
|
|
3981
4214
|
);
|
|
3982
4215
|
}
|
|
3983
|
-
const OnyxMoreList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3984
|
-
const _sfc_main$
|
|
4216
|
+
const OnyxMoreList = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$14], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxMoreList/OnyxMoreList.vue"]]);
|
|
4217
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
3985
4218
|
__name: "OnyxBreadcrumb",
|
|
3986
4219
|
props: {
|
|
3987
4220
|
density: { type: null, required: false },
|
|
@@ -4007,13 +4240,13 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
4007
4240
|
return __returned__;
|
|
4008
4241
|
}
|
|
4009
4242
|
});
|
|
4010
|
-
const _hoisted_1$
|
|
4011
|
-
const _hoisted_2$
|
|
4243
|
+
const _hoisted_1$O = ["aria-label", "aria-hidden"];
|
|
4244
|
+
const _hoisted_2$D = {
|
|
4012
4245
|
class: "onyx-breadcrumb__list onyx-grid-container",
|
|
4013
4246
|
role: "menu"
|
|
4014
4247
|
};
|
|
4015
|
-
const _hoisted_3$
|
|
4016
|
-
function _sfc_render$
|
|
4248
|
+
const _hoisted_3$q = { ref: "moreListRef" };
|
|
4249
|
+
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4017
4250
|
return openBlock(), createElementBlock("nav", {
|
|
4018
4251
|
class: normalizeClass([
|
|
4019
4252
|
"onyx-component",
|
|
@@ -4024,7 +4257,7 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4024
4257
|
"aria-label": $setup.t("breadcrumb.label"),
|
|
4025
4258
|
"aria-hidden": $setup.props.skeleton
|
|
4026
4259
|
}, [
|
|
4027
|
-
createElementVNode("ol", _hoisted_2$
|
|
4260
|
+
createElementVNode("ol", _hoisted_2$D, [
|
|
4028
4261
|
createVNode($setup["OnyxBreadcrumbItem"], {
|
|
4029
4262
|
class: "onyx-breadcrumb__home",
|
|
4030
4263
|
href: $setup.props.home?.link ?? "/",
|
|
@@ -4092,7 +4325,7 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4092
4325
|
options: withCtx(() => [
|
|
4093
4326
|
createElementVNode(
|
|
4094
4327
|
"div",
|
|
4095
|
-
_hoisted_3$
|
|
4328
|
+
_hoisted_3$q,
|
|
4096
4329
|
null,
|
|
4097
4330
|
512
|
|
4098
4331
|
/* NEED_PATCH */
|
|
@@ -4106,13 +4339,13 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4106
4339
|
/* FORWARDED */
|
|
4107
4340
|
}, 8, ["injection-key"])
|
|
4108
4341
|
])
|
|
4109
|
-
], 10, _hoisted_1$
|
|
4342
|
+
], 10, _hoisted_1$O);
|
|
4110
4343
|
}
|
|
4111
|
-
const OnyxBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4344
|
+
const OnyxBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$13], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBreadcrumb/OnyxBreadcrumb.vue"]]);
|
|
4112
4345
|
const BUTTON_TYPES = ["button", "submit", "reset"];
|
|
4113
4346
|
const BUTTON_COLORS = ["primary", "neutral", "danger"];
|
|
4114
4347
|
const BUTTON_MODES = ["default", "outline", "plain"];
|
|
4115
|
-
const _sfc_main$
|
|
4348
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
4116
4349
|
__name: "OnyxCard",
|
|
4117
4350
|
props: {
|
|
4118
4351
|
density: { type: null, required: false },
|
|
@@ -4131,7 +4364,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
4131
4364
|
return __returned__;
|
|
4132
4365
|
}
|
|
4133
4366
|
});
|
|
4134
|
-
function _sfc_render$
|
|
4367
|
+
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4135
4368
|
return openBlock(), createBlock(resolveDynamicComponent($setup.linkProps ? $setup.OnyxRouterLink : $setup.props.clickable ? "button" : "div"), mergeProps($setup.linkProps, {
|
|
4136
4369
|
class: ["onyx-component", "onyx-card", $setup.densityClass, "onyx-truncation-multiline", "onyx-text"]
|
|
4137
4370
|
}), {
|
|
@@ -4142,7 +4375,235 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4142
4375
|
/* FORWARDED */
|
|
4143
4376
|
}, 16, ["class"]);
|
|
4144
4377
|
}
|
|
4145
|
-
const OnyxCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4378
|
+
const OnyxCard = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$12], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCard/OnyxCard.vue"]]);
|
|
4379
|
+
const __default__ = {};
|
|
4380
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
4381
|
+
...__default__,
|
|
4382
|
+
__name: "OnyxCalendar",
|
|
4383
|
+
props: {
|
|
4384
|
+
density: { type: null, required: false },
|
|
4385
|
+
disabled: { type: Boolean, required: false, default: false },
|
|
4386
|
+
min: { type: Date, required: false },
|
|
4387
|
+
max: { type: Date, required: false },
|
|
4388
|
+
weekStartDay: { type: String, required: false, default: "Monday" },
|
|
4389
|
+
initialDate: { type: Date, required: false },
|
|
4390
|
+
size: { type: String, required: false, default: "auto" },
|
|
4391
|
+
skeleton: { type: [Symbol, Boolean, Number], required: false, default: SKELETON_INJECTED_SYMBOL },
|
|
4392
|
+
selection: { type: String, required: false, default: "single" }
|
|
4393
|
+
},
|
|
4394
|
+
emits: ["update:selectedDate"],
|
|
4395
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
4396
|
+
__expose();
|
|
4397
|
+
const props = __props;
|
|
4398
|
+
const emit = __emit;
|
|
4399
|
+
const { densityClass } = useDensity(props);
|
|
4400
|
+
const skeleton = useSkeletonContext(props);
|
|
4401
|
+
const { locale } = injectI18n();
|
|
4402
|
+
const calendarSize = computed(
|
|
4403
|
+
() => props.size !== "auto" ? props.size : width.value < ONYX_BREAKPOINTS.xs ? "small" : "big"
|
|
4404
|
+
);
|
|
4405
|
+
const buttonRefs = ref({});
|
|
4406
|
+
const setButtonRef = (el, dateKey) => {
|
|
4407
|
+
if (el) {
|
|
4408
|
+
buttonRefs.value[dateKey] = el;
|
|
4409
|
+
} else {
|
|
4410
|
+
delete buttonRefs.value[dateKey];
|
|
4411
|
+
}
|
|
4412
|
+
};
|
|
4413
|
+
const { disabled, min, max, initialDate, weekStartDay } = toRefs(props);
|
|
4414
|
+
const {
|
|
4415
|
+
state: { currentYear, currentMonth, selectedDate, weeks, weekdays },
|
|
4416
|
+
elements: { table: tableProps, cell: cellProps, button: buttonProps },
|
|
4417
|
+
internals: { goToPreviousMonth, goToNextMonth, goToToday }
|
|
4418
|
+
} = _unstableCreateCalendar({
|
|
4419
|
+
disabled,
|
|
4420
|
+
min,
|
|
4421
|
+
max,
|
|
4422
|
+
initialDate,
|
|
4423
|
+
locale,
|
|
4424
|
+
calendarSize,
|
|
4425
|
+
buttonRefs,
|
|
4426
|
+
weekStartDay
|
|
4427
|
+
});
|
|
4428
|
+
watch(selectedDate, (newDate) => {
|
|
4429
|
+
if (newDate) {
|
|
4430
|
+
emit("update:selectedDate", newDate);
|
|
4431
|
+
}
|
|
4432
|
+
});
|
|
4433
|
+
const calendarRef = useTemplateRef("calendar");
|
|
4434
|
+
const { width } = useResizeObserver(calendarRef);
|
|
4435
|
+
const sizeClass = computed(() => `onyx-calendar--${calendarSize.value}`);
|
|
4436
|
+
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() {
|
|
4437
|
+
return iconChevronLeftSmall;
|
|
4438
|
+
}, get iconChevronRightSmall() {
|
|
4439
|
+
return iconChevronRightSmall;
|
|
4440
|
+
}, OnyxHeadline, OnyxSkeleton, OnyxSystemButton };
|
|
4441
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
4442
|
+
return __returned__;
|
|
4443
|
+
}
|
|
4444
|
+
});
|
|
4445
|
+
const _hoisted_1$N = { class: "onyx-calendar__header" };
|
|
4446
|
+
const _hoisted_2$C = { class: "control-container time-control-container" };
|
|
4447
|
+
const _hoisted_3$p = { class: "control-container" };
|
|
4448
|
+
const _hoisted_4$i = { class: "onyx-calendar__body" };
|
|
4449
|
+
const _hoisted_5$d = ["abbr"];
|
|
4450
|
+
const _hoisted_6$a = { class: "cell-content__number" };
|
|
4451
|
+
const _hoisted_7$6 = { class: "cell-content__number-display" };
|
|
4452
|
+
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4453
|
+
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
4454
|
+
"div",
|
|
4455
|
+
{
|
|
4456
|
+
key: 0,
|
|
4457
|
+
class: normalizeClass(["onyx-component", "onyx-calendar-skeleton", $setup.densityClass])
|
|
4458
|
+
},
|
|
4459
|
+
[
|
|
4460
|
+
createVNode($setup["OnyxSkeleton"], { class: "onyx-calendar-skeleton__header" }),
|
|
4461
|
+
createVNode($setup["OnyxSkeleton"], { class: "onyx-calendar-skeleton__body" })
|
|
4462
|
+
],
|
|
4463
|
+
2
|
|
4464
|
+
/* CLASS */
|
|
4465
|
+
)) : (openBlock(), createElementBlock(
|
|
4466
|
+
"div",
|
|
4467
|
+
{
|
|
4468
|
+
key: 1,
|
|
4469
|
+
ref: "calendar",
|
|
4470
|
+
class: normalizeClass([
|
|
4471
|
+
"onyx-component",
|
|
4472
|
+
"onyx-calendar",
|
|
4473
|
+
$setup.sizeClass,
|
|
4474
|
+
$setup.densityClass,
|
|
4475
|
+
{ "onyx-calendar--disabled": $setup.disabled }
|
|
4476
|
+
])
|
|
4477
|
+
},
|
|
4478
|
+
[
|
|
4479
|
+
createElementVNode("div", _hoisted_1$N, [
|
|
4480
|
+
createElementVNode("div", _hoisted_2$C, [
|
|
4481
|
+
$setup.calendarSize !== "small" ? (openBlock(), createBlock($setup["OnyxSystemButton"], {
|
|
4482
|
+
key: 0,
|
|
4483
|
+
label: "Today",
|
|
4484
|
+
class: "control-container__today-btn",
|
|
4485
|
+
disabled: $setup.disabled,
|
|
4486
|
+
onClick: $setup.goToToday
|
|
4487
|
+
}, null, 8, ["disabled", "onClick"])) : createCommentVNode("v-if", true),
|
|
4488
|
+
createVNode($setup["OnyxSystemButton"], {
|
|
4489
|
+
label: "previous Month",
|
|
4490
|
+
icon: $setup.iconChevronLeftSmall,
|
|
4491
|
+
disabled: $setup.disabled,
|
|
4492
|
+
onClick: $setup.goToPreviousMonth
|
|
4493
|
+
}, null, 8, ["icon", "disabled", "onClick"]),
|
|
4494
|
+
createVNode($setup["OnyxHeadline"], {
|
|
4495
|
+
is: "h2",
|
|
4496
|
+
class: "control-container__date-display"
|
|
4497
|
+
}, {
|
|
4498
|
+
default: withCtx(() => [
|
|
4499
|
+
createTextVNode(
|
|
4500
|
+
toDisplayString(new Date($setup.currentYear, $setup.currentMonth).toLocaleDateString($setup.locale, {
|
|
4501
|
+
month: "long",
|
|
4502
|
+
year: "numeric"
|
|
4503
|
+
})),
|
|
4504
|
+
1
|
|
4505
|
+
/* TEXT */
|
|
4506
|
+
)
|
|
4507
|
+
]),
|
|
4508
|
+
_: 1
|
|
4509
|
+
/* STABLE */
|
|
4510
|
+
}),
|
|
4511
|
+
createVNode($setup["OnyxSystemButton"], {
|
|
4512
|
+
label: "next Month",
|
|
4513
|
+
icon: $setup.iconChevronRightSmall,
|
|
4514
|
+
disabled: $setup.disabled,
|
|
4515
|
+
onClick: $setup.goToNextMonth
|
|
4516
|
+
}, null, 8, ["icon", "disabled", "onClick"])
|
|
4517
|
+
]),
|
|
4518
|
+
createElementVNode("div", _hoisted_3$p, [
|
|
4519
|
+
renderSlot(_ctx.$slots, "actions")
|
|
4520
|
+
])
|
|
4521
|
+
]),
|
|
4522
|
+
createElementVNode("div", _hoisted_4$i, [
|
|
4523
|
+
createElementVNode(
|
|
4524
|
+
"table",
|
|
4525
|
+
normalizeProps(guardReactiveProps($setup.tableProps)),
|
|
4526
|
+
[
|
|
4527
|
+
createElementVNode("thead", null, [
|
|
4528
|
+
createElementVNode("tr", null, [
|
|
4529
|
+
(openBlock(true), createElementBlock(
|
|
4530
|
+
Fragment,
|
|
4531
|
+
null,
|
|
4532
|
+
renderList($setup.weekdays, (day, index) => {
|
|
4533
|
+
return openBlock(), createElementBlock("th", {
|
|
4534
|
+
key: index,
|
|
4535
|
+
scope: "col",
|
|
4536
|
+
abbr: day
|
|
4537
|
+
}, toDisplayString(day), 9, _hoisted_5$d);
|
|
4538
|
+
}),
|
|
4539
|
+
128
|
|
4540
|
+
/* KEYED_FRAGMENT */
|
|
4541
|
+
))
|
|
4542
|
+
])
|
|
4543
|
+
]),
|
|
4544
|
+
createElementVNode("tbody", null, [
|
|
4545
|
+
(openBlock(true), createElementBlock(
|
|
4546
|
+
Fragment,
|
|
4547
|
+
null,
|
|
4548
|
+
renderList($setup.weeks, (week, weekIndex) => {
|
|
4549
|
+
return openBlock(), createElementBlock("tr", { key: weekIndex }, [
|
|
4550
|
+
(openBlock(true), createElementBlock(
|
|
4551
|
+
Fragment,
|
|
4552
|
+
null,
|
|
4553
|
+
renderList(week, (day, dayIndex) => {
|
|
4554
|
+
return openBlock(), createElementBlock(
|
|
4555
|
+
"td",
|
|
4556
|
+
mergeProps({ key: dayIndex }, { ref_for: true }, $setup.cellProps(day)),
|
|
4557
|
+
[
|
|
4558
|
+
day.date ? (openBlock(), createElementBlock(
|
|
4559
|
+
"button",
|
|
4560
|
+
mergeProps({
|
|
4561
|
+
key: 0,
|
|
4562
|
+
ref_for: true
|
|
4563
|
+
}, $setup.buttonProps(day), {
|
|
4564
|
+
ref_for: true,
|
|
4565
|
+
ref: (el) => $setup.setButtonRef(el, day.date?.toISOString().slice(0, 10)),
|
|
4566
|
+
type: "button"
|
|
4567
|
+
}),
|
|
4568
|
+
[
|
|
4569
|
+
createElementVNode("span", _hoisted_6$a, [
|
|
4570
|
+
createElementVNode(
|
|
4571
|
+
"span",
|
|
4572
|
+
_hoisted_7$6,
|
|
4573
|
+
toDisplayString(day.date.getDate()),
|
|
4574
|
+
1
|
|
4575
|
+
/* TEXT */
|
|
4576
|
+
)
|
|
4577
|
+
])
|
|
4578
|
+
],
|
|
4579
|
+
16
|
|
4580
|
+
/* FULL_PROPS */
|
|
4581
|
+
)) : createCommentVNode("v-if", true)
|
|
4582
|
+
],
|
|
4583
|
+
16
|
|
4584
|
+
/* FULL_PROPS */
|
|
4585
|
+
);
|
|
4586
|
+
}),
|
|
4587
|
+
128
|
|
4588
|
+
/* KEYED_FRAGMENT */
|
|
4589
|
+
))
|
|
4590
|
+
]);
|
|
4591
|
+
}),
|
|
4592
|
+
128
|
|
4593
|
+
/* KEYED_FRAGMENT */
|
|
4594
|
+
))
|
|
4595
|
+
])
|
|
4596
|
+
],
|
|
4597
|
+
16
|
|
4598
|
+
/* FULL_PROPS */
|
|
4599
|
+
)
|
|
4600
|
+
])
|
|
4601
|
+
],
|
|
4602
|
+
2
|
|
4603
|
+
/* CLASS */
|
|
4604
|
+
));
|
|
4605
|
+
}
|
|
4606
|
+
const OnyxCalendar = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCalendar/OnyxCalendar.vue"]]);
|
|
4146
4607
|
const useRequired = (props, requiredMarker) => ({
|
|
4147
4608
|
/**
|
|
4148
4609
|
* Class that configures which type of required marker is used.
|
|
@@ -13464,6 +13925,7 @@ export {
|
|
|
13464
13925
|
OnyxToast,
|
|
13465
13926
|
OnyxToastMessage,
|
|
13466
13927
|
OnyxTooltip,
|
|
13928
|
+
OnyxCalendar as OnyxUnstableCalendar,
|
|
13467
13929
|
OnyxUserMenu,
|
|
13468
13930
|
OnyxVisuallyHidden,
|
|
13469
13931
|
PROGRESS_ITEM_STATUS,
|