sit-onyx 1.5.0 → 1.6.0-dev-20251216104923
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/OnyxAccordion/OnyxAccordion.d.vue.ts +1 -1
- package/dist/components/OnyxAccordionItem/OnyxAccordionItem.d.vue.ts +2 -2
- package/dist/components/OnyxAlertModal/OnyxAlertModal.d.vue.ts +3 -3
- package/dist/components/OnyxAppLayout/OnyxAppLayout.d.vue.ts +2 -2
- package/dist/components/OnyxAvatar/OnyxAvatar.d.vue.ts +2 -2
- package/dist/components/OnyxAvatarStack/OnyxAvatarStack.d.vue.ts +1 -1
- package/dist/components/OnyxBadge/OnyxBadge.d.vue.ts +2 -2
- package/dist/components/OnyxBasicDialog/OnyxBasicDialog.d.vue.ts +5 -5
- package/dist/components/OnyxBasicPopover/OnyxBasicPopover.d.vue.ts +6 -6
- package/dist/components/OnyxBottomBar/OnyxBottomBar.d.vue.ts +2 -2
- package/dist/components/OnyxBreadcrumb/OnyxBreadcrumb.d.vue.ts +2 -2
- package/dist/components/OnyxBreadcrumbItem/OnyxBreadcrumbItem.d.vue.ts +2 -2
- package/dist/components/OnyxButton/ButtonOrLinkLayout.d.vue.ts +2 -2
- package/dist/components/OnyxButton/OnyxButton.d.vue.ts +7 -7
- package/dist/components/OnyxCalendar/OnyxCalendar.d.vue.ts +1 -1
- package/dist/components/OnyxCalendarCell/OnyxCalendarCell.d.vue.ts +2 -2
- package/dist/components/OnyxCard/OnyxCard.d.vue.ts +2 -2
- package/dist/components/OnyxCheckbox/OnyxCheckbox.d.vue.ts +2 -2
- package/dist/components/OnyxCheckboxGroup/OnyxCheckboxGroup.d.vue.ts +2 -2
- package/dist/components/OnyxCodeTab/OnyxCodeTab.d.vue.ts +2 -2
- package/dist/components/OnyxCodeTabs/OnyxCodeTabs.d.vue.ts +1 -1
- package/dist/components/OnyxDataGrid/OnyxDataGrid.d.vue.ts +1 -1
- package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/OnyxDataGridRenderer.d.vue.ts +1 -1
- package/dist/components/OnyxDataGrid/features/HeaderCell.d.vue.ts +1 -1
- package/dist/components/OnyxDataGrid/features/pagination/pagination.d.ts +3 -0
- package/dist/components/OnyxDataGrid/features/pagination/types.d.ts +9 -0
- package/dist/components/OnyxDataGrid/features/sorting/SortAction.d.vue.ts +1 -1
- package/dist/components/OnyxDatePicker/OnyxDatePicker.d.vue.ts +3 -3
- package/dist/components/OnyxDialog/OnyxDialog.d.vue.ts +3 -3
- package/dist/components/OnyxEmpty/OnyxEmpty.d.vue.ts +1 -1
- package/dist/components/OnyxErrorTooltip/OnyxErrorTooltip.d.vue.ts +1 -1
- package/dist/components/OnyxExternalLinkIcon/OnyxExternalLinkIcon.d.vue.ts +2 -2
- package/dist/components/OnyxFAB/OnyxFAB.d.vue.ts +3 -3
- package/dist/components/OnyxFABButton/OnyxFABButton.d.vue.ts +2 -2
- package/dist/components/OnyxFABItem/OnyxFABItem.d.vue.ts +1 -1
- package/dist/components/OnyxFileCard/OnyxFileCard.d.vue.ts +3 -3
- package/dist/components/OnyxFileTypeIcon/OnyxFileTypeIcon.d.vue.ts +1 -1
- package/dist/components/OnyxFileUpload/OnyxFileUpload.d.vue.ts +1 -1
- package/dist/components/OnyxFilterTag/OnyxFilterTag.d.vue.ts +3 -3
- package/dist/components/OnyxForm/OnyxForm.d.vue.ts +2 -2
- package/dist/components/OnyxFormElement/FormMessage.d.vue.ts +1 -1
- package/dist/components/OnyxFormElement/OnyxFormElement.d.vue.ts +1 -1
- package/dist/components/OnyxGlobalFAB/OnyxGlobalFAB.d.vue.ts +1 -1
- package/dist/components/OnyxGlobalSearch/OnyxGlobalSearch.d.vue.ts +20 -20
- package/dist/components/OnyxGlobalSearchGroup/OnyxGlobalSearchGroup.d.vue.ts +1 -1
- package/dist/components/OnyxGlobalSearchOption/OnyxGlobalSearchOption.d.vue.ts +2 -2
- package/dist/components/OnyxHeadline/OnyxHeadline.d.vue.ts +2 -2
- package/dist/components/OnyxIcon/OnyxIcon.d.vue.ts +1 -1
- package/dist/components/OnyxIconButton/OnyxIconButton.d.vue.ts +2 -2
- package/dist/components/OnyxImage/OnyxImage.d.vue.ts +2 -2
- package/dist/components/OnyxInfoCard/OnyxInfoCard.d.vue.ts +3 -3
- package/dist/components/OnyxInfoTooltip/OnyxInfoTooltip.d.vue.ts +3 -3
- package/dist/components/OnyxInput/OnyxInput.d.vue.ts +5 -5
- package/dist/components/OnyxItemsPerPage/OnyxItemsPerPage.d.vue.ts +14 -0
- package/dist/components/OnyxItemsPerPage/types.d.ts +35 -0
- package/dist/components/OnyxLink/OnyxLink.d.vue.ts +2 -2
- package/dist/components/OnyxListItem/OnyxListItem.d.vue.ts +2 -2
- package/dist/components/OnyxLoadingIndicator/OnyxCircleSpinner.d.vue.ts +1 -1
- package/dist/components/OnyxLoadingIndicator/OnyxLoadingDots.d.vue.ts +1 -1
- package/dist/components/OnyxLoadingIndicator/OnyxLoadingIndicator.d.vue.ts +2 -2
- package/dist/components/OnyxMiniSearch/OnyxMiniSearch.d.vue.ts +4 -4
- package/dist/components/OnyxMobileNavButton/OnyxMobileNavButton.d.vue.ts +3 -3
- package/dist/components/OnyxModal/OnyxModal.d.vue.ts +3 -3
- package/dist/components/OnyxMoreList/OnyxMoreList.d.vue.ts +4 -4
- package/dist/components/OnyxNavAppArea/OnyxNavAppArea.d.vue.ts +2 -2
- package/dist/components/OnyxNavBar/OnyxNavBar.d.vue.ts +4 -4
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/OnyxColorSchemeDialog.d.vue.ts +3 -3
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/OnyxColorSchemeMenuItem.d.vue.ts +3 -3
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.d.vue.ts +1 -1
- package/dist/components/OnyxNavBar/modules/OnyxLanguageMenuItem/OnyxLanguageMenuItem.d.vue.ts +1 -1
- package/dist/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.d.vue.ts +64 -64
- package/dist/components/OnyxNavBar/modules/OnyxNavItem/OnyxNavItem.d.vue.ts +29 -29
- package/dist/components/OnyxNavBar/modules/OnyxNavItemFacade/OnyxNavItemFacade.d.vue.ts +1 -1
- package/dist/components/OnyxNavBar/modules/OnyxTimer/OnyxTimer.d.vue.ts +5 -5
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.d.vue.ts +3 -3
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.d.vue.ts +2 -2
- package/dist/components/OnyxNotificationCard/OnyxNotificationCard.d.vue.ts +2 -2
- package/dist/components/OnyxNotificationDot/OnyxNotificationDot.d.vue.ts +2 -2
- package/dist/components/OnyxNotificationMessage/OnyxNotificationMessage.d.vue.ts +3 -3
- package/dist/components/OnyxNotifications/OnyxNotifications.d.vue.ts +1 -1
- package/dist/components/OnyxPageLayout/OnyxPageLayout.d.vue.ts +2 -2
- package/dist/components/OnyxPagination/OnyxInlinePagination.d.vue.ts +3 -3
- package/dist/components/OnyxPagination/OnyxPagination.d.vue.ts +3 -3
- package/dist/components/OnyxPagination/OnyxSelectPagination.d.vue.ts +3 -3
- package/dist/components/OnyxProgressItem/OnyxProgressItem.d.vue.ts +2 -2
- package/dist/components/OnyxProgressSteps/OnyxProgressSteps.d.vue.ts +3 -3
- package/dist/components/OnyxRadioButton/OnyxRadioButton.d.vue.ts +2 -2
- package/dist/components/OnyxRadioGroup/OnyxRadioGroup.d.vue.ts +2 -2
- package/dist/components/OnyxResizeHandle/OnyxResizeHandle.d.vue.ts +3 -3
- package/dist/components/OnyxRipple/OnyxRipple.d.vue.ts +3 -3
- package/dist/components/OnyxRouterLink/OnyxRouterLink.d.vue.ts +2 -2
- package/dist/components/OnyxSegmentedControl/OnyxSegmentedControl.d.vue.ts +1 -1
- package/dist/components/OnyxSegmentedControlElement/OnyxSegmentedControlElement.d.vue.ts +2 -2
- package/dist/components/OnyxSelect/OnyxSelect.d.vue.ts +1 -1
- package/dist/components/OnyxSelectDialog/OnyxSelectDialog.d.vue.ts +1 -1
- package/dist/components/OnyxSelectInput/OnyxSelectInput.d.vue.ts +2 -2
- package/dist/components/OnyxSelectOption/OnyxSelectOption.d.vue.ts +2 -2
- package/dist/components/OnyxSeparator/OnyxSeparator.d.vue.ts +2 -2
- package/dist/components/OnyxSidebar/OnyxSidebar.d.vue.ts +31 -31
- package/dist/components/OnyxSidebar/modules/OnyxSidebarItem/OnyxSidebarItem.d.vue.ts +2 -2
- package/dist/components/OnyxSkeleton/OnyxSkeleton.d.vue.ts +1 -1
- package/dist/components/OnyxSlider/OnyxSlider.d.vue.ts +1 -1
- package/dist/components/OnyxSliderControl/OnyxSliderControl.d.vue.ts +4 -4
- package/dist/components/OnyxStepper/OnyxStepper.d.vue.ts +5 -5
- package/dist/components/OnyxSwitch/OnyxSwitch.d.vue.ts +5 -5
- package/dist/components/OnyxSystemButton/OnyxSystemButton.d.vue.ts +2 -2
- package/dist/components/OnyxTab/OnyxTab.d.vue.ts +2 -2
- package/dist/components/OnyxTable/OnyxTable.d.vue.ts +2 -2
- package/dist/components/OnyxTabs/OnyxTabs.d.vue.ts +1 -1
- package/dist/components/OnyxTag/OnyxTag.d.vue.ts +2 -2
- package/dist/components/OnyxTextarea/OnyxTextarea.d.vue.ts +5 -5
- package/dist/components/OnyxTimepicker/OnyxTimepicker.d.vue.ts +39 -39
- package/dist/components/OnyxTimepicker/OnyxTimepickerInput.d.vue.ts +3 -3
- package/dist/components/OnyxToast/OnyxToast.d.vue.ts +1 -1
- package/dist/components/OnyxToastMessage/OnyxToastMessage.d.vue.ts +3 -3
- package/dist/components/OnyxTooltip/OnyxTooltip.d.vue.ts +3 -3
- package/dist/components/OnyxVisuallyHidden/OnyxVisuallyHidden.d.vue.ts +2 -2
- package/dist/components/examples/ComponentShowcase/ComponentShowcase.d.vue.ts +3 -3
- package/dist/components/illustrations/OnyxErrorSVG/OnyxErrorSVG.d.vue.ts +1 -1
- package/dist/components/illustrations/OnyxFileUploadSVG/OnyxFileUploadSVG.d.vue.ts +1 -1
- package/dist/i18n/locales/de-DE.json +6 -0
- package/dist/i18n/locales/en-US.json +6 -0
- package/dist/i18n/locales/en-US.json.d.ts +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm-bundler.js +560 -464
- package/dist/index.esm-bundler.js.map +1 -1
- package/dist/index.js +3014 -2945
- package/dist/style.css +1 -1
- package/package.json +7 -7
|
@@ -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$1Q = /* @__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$1Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
123
123
|
return openBlock(), createElementBlock(
|
|
124
124
|
"div",
|
|
125
125
|
{
|
|
@@ -137,7 +137,7 @@ function _sfc_render$1P(_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$1Q, [["render", _sfc_render$1Q], ["__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$1P = /* @__PURE__ */ defineComponent({
|
|
154
154
|
__name: "OnyxIcon",
|
|
155
155
|
props: {
|
|
156
156
|
size: { type: null, required: false },
|
|
@@ -166,8 +166,8 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
166
166
|
return __returned__;
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
|
-
const _hoisted_1$
|
|
170
|
-
function _sfc_render$
|
|
169
|
+
const _hoisted_1$1m = ["innerHTML"];
|
|
170
|
+
function _sfc_render$1P(_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$1O(_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$1m);
|
|
182
182
|
}
|
|
183
|
-
const OnyxIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
183
|
+
const OnyxIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1P, [["render", _sfc_render$1P], ["__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$1O = /* @__PURE__ */ defineComponent({
|
|
200
200
|
__name: "OnyxSkeleton",
|
|
201
201
|
setup(__props, { expose: __expose }) {
|
|
202
202
|
__expose();
|
|
@@ -206,15 +206,15 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
206
206
|
return __returned__;
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
|
-
const _hoisted_1$
|
|
209
|
+
const _hoisted_1$1l = {
|
|
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$1O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
214
|
+
return openBlock(), createElementBlock("figure", _hoisted_1$1l);
|
|
215
215
|
}
|
|
216
|
-
const OnyxSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
217
|
-
const _sfc_main$
|
|
216
|
+
const OnyxSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["render", _sfc_render$1O], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSkeleton/OnyxSkeleton.vue"]]);
|
|
217
|
+
const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
218
218
|
__name: "OnyxAccordionItem",
|
|
219
219
|
props: {
|
|
220
220
|
density: { type: null, required: false },
|
|
@@ -251,11 +251,11 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
251
251
|
return __returned__;
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
|
-
const _hoisted_1$
|
|
254
|
+
const _hoisted_1$1k = ["open"];
|
|
255
255
|
const _hoisted_2$Y = ["id", "tabindex", "aria-expanded", "aria-controls", "aria-disabled"];
|
|
256
256
|
const _hoisted_3$C = { class: "onyx-accordion-item__header-content" };
|
|
257
257
|
const _hoisted_4$p = ["id", "aria-labelledby"];
|
|
258
|
-
function _sfc_render$
|
|
258
|
+
function _sfc_render$1N(_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([
|
|
@@ -307,9 +307,9 @@ function _sfc_render$1M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
307
307
|
}, [
|
|
308
308
|
renderSlot(_ctx.$slots, "default")
|
|
309
309
|
], 8, _hoisted_4$p)
|
|
310
|
-
], 10, _hoisted_1$
|
|
310
|
+
], 10, _hoisted_1$1k));
|
|
311
311
|
}
|
|
312
|
-
const OnyxAccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
312
|
+
const OnyxAccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["render", _sfc_render$1N], ["__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" },
|
|
@@ -360,6 +360,7 @@ const slider = { "decreaseValueBy": "Decrease value by {n}", "increaseValueBy":
|
|
|
360
360
|
const codeTabs = { "label": "Code snippets", "copySnippet": "Copy code", "copied": "Copied!", "failed": "Failed!", "tabLabel": "Code" };
|
|
361
361
|
const globalSearch = { "label": "Global search", "searchResults": "Search results", "input": { "label": "Search for content", "placeholder": "Search..." }, "shortcuts": { "move": "Navigate", "select": "Select" }, "system": "System" };
|
|
362
362
|
const timepicker = { "placeholder": { "hour": "HH", "minute": "MM", "second": "SS" }, "labels": { "iconButton": "Open Timepicker", "popover": "Timepicker Popover", "hour": "Hour", "minute": "Minute", "second": "Second" } };
|
|
363
|
+
const itemsPerPage = { "label": "Items per page", "select": { "listLabel": "Select number of items per page" } };
|
|
363
364
|
const enUS = {
|
|
364
365
|
yes,
|
|
365
366
|
no,
|
|
@@ -396,7 +397,8 @@ const enUS = {
|
|
|
396
397
|
slider,
|
|
397
398
|
codeTabs,
|
|
398
399
|
globalSearch,
|
|
399
|
-
timepicker
|
|
400
|
+
timepicker,
|
|
401
|
+
itemsPerPage
|
|
400
402
|
};
|
|
401
403
|
const NUMBER_FORMATS = {
|
|
402
404
|
decimal: { style: "decimal" }
|
|
@@ -1876,7 +1878,7 @@ const createTooltip = createBuilder(({ debounce: debounce2, isVisible }) => {
|
|
|
1876
1878
|
}
|
|
1877
1879
|
};
|
|
1878
1880
|
});
|
|
1879
|
-
const _sfc_main$
|
|
1881
|
+
const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
1880
1882
|
__name: "OnyxBasicDialog",
|
|
1881
1883
|
props: {
|
|
1882
1884
|
density: { type: null, required: false },
|
|
@@ -1937,12 +1939,12 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
|
1937
1939
|
return __returned__;
|
|
1938
1940
|
}
|
|
1939
1941
|
});
|
|
1940
|
-
const _hoisted_1$
|
|
1942
|
+
const _hoisted_1$1j = ["aria-modal", "aria-label", "role"];
|
|
1941
1943
|
const _hoisted_2$X = {
|
|
1942
1944
|
ref: "contentRef",
|
|
1943
1945
|
class: "onyx-basic-dialog__content"
|
|
1944
1946
|
};
|
|
1945
|
-
function _sfc_render$
|
|
1947
|
+
function _sfc_render$1M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1946
1948
|
return $setup.props.open ? (openBlock(), createElementBlock("dialog", {
|
|
1947
1949
|
key: 0,
|
|
1948
1950
|
ref: "dialogRef",
|
|
@@ -1968,9 +1970,9 @@ function _sfc_render$1L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1968
1970
|
512
|
|
1969
1971
|
/* NEED_PATCH */
|
|
1970
1972
|
)
|
|
1971
|
-
], 42, _hoisted_1$
|
|
1973
|
+
], 42, _hoisted_1$1j)) : createCommentVNode("v-if", true);
|
|
1972
1974
|
}
|
|
1973
|
-
const OnyxBasicDialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1975
|
+
const OnyxBasicDialog = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["render", _sfc_render$1M], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBasicDialog/OnyxBasicDialog.vue"]]);
|
|
1974
1976
|
const normalizedIncludes = (haystack, needle) => {
|
|
1975
1977
|
const haystackNormalized = removeDiacritics(haystack.toLowerCase());
|
|
1976
1978
|
const needleNormalized = removeDiacritics(needle.toLowerCase());
|
|
@@ -2052,7 +2054,7 @@ const normalizeHref = (href) => {
|
|
|
2052
2054
|
return value.replace(/\/+$/, "");
|
|
2053
2055
|
};
|
|
2054
2056
|
const ROUTER_INJECTION_KEY = Symbol();
|
|
2055
|
-
const _sfc_main$
|
|
2057
|
+
const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
2056
2058
|
__name: "OnyxVisuallyHidden",
|
|
2057
2059
|
props: {
|
|
2058
2060
|
is: { type: String, required: false, default: "span" }
|
|
@@ -2065,7 +2067,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
2065
2067
|
return __returned__;
|
|
2066
2068
|
}
|
|
2067
2069
|
});
|
|
2068
|
-
function _sfc_render$
|
|
2070
|
+
function _sfc_render$1L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2069
2071
|
return openBlock(), createBlock(resolveDynamicComponent($setup.props.is), { class: "onyx-component onyx-visually-hidden" }, {
|
|
2070
2072
|
default: withCtx(() => [
|
|
2071
2073
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -2074,8 +2076,8 @@ function _sfc_render$1K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2074
2076
|
/* FORWARDED */
|
|
2075
2077
|
});
|
|
2076
2078
|
}
|
|
2077
|
-
const OnyxVisuallyHidden = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2078
|
-
const _sfc_main$
|
|
2079
|
+
const OnyxVisuallyHidden = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$1L], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxVisuallyHidden/OnyxVisuallyHidden.vue"]]);
|
|
2080
|
+
const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
2079
2081
|
__name: "OnyxRouterLink",
|
|
2080
2082
|
props: {
|
|
2081
2083
|
href: { type: String, required: true },
|
|
@@ -2091,8 +2093,8 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
2091
2093
|
return __returned__;
|
|
2092
2094
|
}
|
|
2093
2095
|
});
|
|
2094
|
-
const _hoisted_1$
|
|
2095
|
-
function _sfc_render$
|
|
2096
|
+
const _hoisted_1$1i = ["href", "target", "rel"];
|
|
2097
|
+
function _sfc_render$1K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2096
2098
|
return openBlock(), createElementBlock("a", {
|
|
2097
2099
|
class: normalizeClass([
|
|
2098
2100
|
"onyx-component",
|
|
@@ -2116,10 +2118,10 @@ function _sfc_render$1J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2116
2118
|
_: 1
|
|
2117
2119
|
/* STABLE */
|
|
2118
2120
|
})) : createCommentVNode("v-if", true)
|
|
2119
|
-
], 10, _hoisted_1$
|
|
2121
|
+
], 10, _hoisted_1$1i);
|
|
2120
2122
|
}
|
|
2121
|
-
const OnyxRouterLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2122
|
-
const _sfc_main$
|
|
2123
|
+
const OnyxRouterLink = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["render", _sfc_render$1K], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxRouterLink/OnyxRouterLink.vue"]]);
|
|
2124
|
+
const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
2123
2125
|
__name: "OnyxHeadline",
|
|
2124
2126
|
props: {
|
|
2125
2127
|
is: { type: null, required: true },
|
|
@@ -2144,7 +2146,7 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
2144
2146
|
return __returned__;
|
|
2145
2147
|
}
|
|
2146
2148
|
});
|
|
2147
|
-
function _sfc_render$
|
|
2149
|
+
function _sfc_render$1J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2148
2150
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
2149
2151
|
key: 0,
|
|
2150
2152
|
class: normalizeClass(["onyx-headline-skeleton", `onyx-headline-skeleton--${$setup.showAs}`])
|
|
@@ -2184,7 +2186,7 @@ function _sfc_render$1I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2184
2186
|
/* FORWARDED */
|
|
2185
2187
|
}, 8, ["id", "class"]));
|
|
2186
2188
|
}
|
|
2187
|
-
const OnyxHeadline = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2189
|
+
const OnyxHeadline = /* @__PURE__ */ _export_sfc(_sfc_main$1J, [["render", _sfc_render$1J], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxHeadline/OnyxHeadline.vue"]]);
|
|
2188
2190
|
const useAutofocus = (inputRef, props) => {
|
|
2189
2191
|
if (!props.autofocus) {
|
|
2190
2192
|
return;
|
|
@@ -2235,7 +2237,7 @@ const useFormContext = (props) => {
|
|
|
2235
2237
|
DEFAULT_FORM_INJECTION_CONTEXT
|
|
2236
2238
|
)(toRef(props));
|
|
2237
2239
|
};
|
|
2238
|
-
const _sfc_main$
|
|
2240
|
+
const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
2239
2241
|
__name: "ButtonOrLinkLayout",
|
|
2240
2242
|
props: {
|
|
2241
2243
|
disabled: { type: [Boolean, Symbol], required: false },
|
|
@@ -2258,8 +2260,8 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
|
2258
2260
|
return __returned__;
|
|
2259
2261
|
}
|
|
2260
2262
|
});
|
|
2261
|
-
const _hoisted_1$
|
|
2262
|
-
function _sfc_render$
|
|
2263
|
+
const _hoisted_1$1h = ["disabled", "type", "autofocus"];
|
|
2264
|
+
function _sfc_render$1I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2263
2265
|
return $setup.linkProps ? (openBlock(), createBlock(
|
|
2264
2266
|
$setup["OnyxRouterLink"],
|
|
2265
2267
|
normalizeProps(mergeProps({ key: 0 }, $setup.linkProps)),
|
|
@@ -2280,10 +2282,10 @@ function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2280
2282
|
autofocus: $setup.props.autofocus
|
|
2281
2283
|
}, [
|
|
2282
2284
|
renderSlot(_ctx.$slots, "default")
|
|
2283
|
-
], 8, _hoisted_1$
|
|
2285
|
+
], 8, _hoisted_1$1h));
|
|
2284
2286
|
}
|
|
2285
|
-
const ButtonOrLinkLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2286
|
-
const _sfc_main$
|
|
2287
|
+
const ButtonOrLinkLayout = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$1I], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxButton/ButtonOrLinkLayout.vue"]]);
|
|
2288
|
+
const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
2287
2289
|
__name: "OnyxSystemButton",
|
|
2288
2290
|
props: {
|
|
2289
2291
|
disabled: { type: [Boolean, Symbol], required: false, default: FORM_INJECTED_SYMBOL },
|
|
@@ -2304,11 +2306,11 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
2304
2306
|
return __returned__;
|
|
2305
2307
|
}
|
|
2306
2308
|
});
|
|
2307
|
-
const _hoisted_1$
|
|
2309
|
+
const _hoisted_1$1g = {
|
|
2308
2310
|
key: 1,
|
|
2309
2311
|
class: "onyx-truncation-ellipsis"
|
|
2310
2312
|
};
|
|
2311
|
-
function _sfc_render$
|
|
2313
|
+
function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2312
2314
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
2313
2315
|
key: 0,
|
|
2314
2316
|
class: normalizeClass(["onyx-system-button-skeleton", $setup.props.icon ? "" : "onyx-system-button-skeleton--text"])
|
|
@@ -2324,7 +2326,7 @@ function _sfc_render$1G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2324
2326
|
icon: $setup.props.icon
|
|
2325
2327
|
}, null, 8, ["icon"])) : (openBlock(), createElementBlock(
|
|
2326
2328
|
"span",
|
|
2327
|
-
_hoisted_1$
|
|
2329
|
+
_hoisted_1$1g,
|
|
2328
2330
|
toDisplayString($setup.props.label),
|
|
2329
2331
|
1
|
|
2330
2332
|
/* TEXT */
|
|
@@ -2334,8 +2336,8 @@ function _sfc_render$1G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2334
2336
|
/* STABLE */
|
|
2335
2337
|
}, 16, ["class", "aria-label", "title"]));
|
|
2336
2338
|
}
|
|
2337
|
-
const OnyxSystemButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2338
|
-
const _sfc_main$
|
|
2339
|
+
const OnyxSystemButton = /* @__PURE__ */ _export_sfc(_sfc_main$1H, [["render", _sfc_render$1H], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSystemButton/OnyxSystemButton.vue"]]);
|
|
2340
|
+
const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
2339
2341
|
__name: "OnyxAlertModal",
|
|
2340
2342
|
props: {
|
|
2341
2343
|
density: { type: null, required: false },
|
|
@@ -2360,11 +2362,11 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
2360
2362
|
return __returned__;
|
|
2361
2363
|
}
|
|
2362
2364
|
});
|
|
2363
|
-
const _hoisted_1$
|
|
2365
|
+
const _hoisted_1$1f = { class: "onyx-alert-modal__content" };
|
|
2364
2366
|
const _hoisted_2$W = { class: "onyx-alert-modal__headline" };
|
|
2365
2367
|
const _hoisted_3$B = ["id"];
|
|
2366
2368
|
const _hoisted_4$o = { class: "onyx-alert-modal__actions" };
|
|
2367
|
-
function _sfc_render$
|
|
2369
|
+
function _sfc_render$1G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2368
2370
|
return openBlock(), createBlock($setup["OnyxBasicDialog"], mergeProps({
|
|
2369
2371
|
class: ["onyx-alert-modal", $setup.densityClass]
|
|
2370
2372
|
}, $setup.dialogProps, {
|
|
@@ -2374,7 +2376,7 @@ function _sfc_render$1F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2374
2376
|
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => $setup.emit("update:open", $event))
|
|
2375
2377
|
}), {
|
|
2376
2378
|
default: withCtx(() => [
|
|
2377
|
-
createElementVNode("div", _hoisted_1$
|
|
2379
|
+
createElementVNode("div", _hoisted_1$1f, [
|
|
2378
2380
|
$setup.props.icon ? (openBlock(), createBlock(
|
|
2379
2381
|
$setup["OnyxIcon"],
|
|
2380
2382
|
mergeProps({
|
|
@@ -2425,7 +2427,7 @@ function _sfc_render$1F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2425
2427
|
/* FORWARDED */
|
|
2426
2428
|
}, 16, ["class", "aria-describedby"]);
|
|
2427
2429
|
}
|
|
2428
|
-
const OnyxAlertModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2430
|
+
const OnyxAlertModal = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$1G], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAlertModal/OnyxAlertModal.vue"]]);
|
|
2429
2431
|
const useRootAttrs = () => {
|
|
2430
2432
|
const attrs = useAttrs();
|
|
2431
2433
|
const rootAttrs = computed(
|
|
@@ -2507,7 +2509,7 @@ const mergeVueProps = (...args) => args.reduce((prev, curr) => {
|
|
|
2507
2509
|
merged.ref = mergedRef;
|
|
2508
2510
|
return merged;
|
|
2509
2511
|
}, {});
|
|
2510
|
-
const _sfc_main$
|
|
2512
|
+
const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
2511
2513
|
__name: "OnyxFABButton",
|
|
2512
2514
|
props: {
|
|
2513
2515
|
density: { type: null, required: false },
|
|
@@ -2527,11 +2529,11 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
2527
2529
|
return __returned__;
|
|
2528
2530
|
}
|
|
2529
2531
|
});
|
|
2530
|
-
const _hoisted_1$
|
|
2532
|
+
const _hoisted_1$1e = {
|
|
2531
2533
|
key: 1,
|
|
2532
2534
|
class: "onyx-fab-button__label"
|
|
2533
2535
|
};
|
|
2534
|
-
function _sfc_render$
|
|
2536
|
+
function _sfc_render$1F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2535
2537
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
2536
2538
|
key: 0,
|
|
2537
2539
|
class: normalizeClass(["onyx-fab-button-skeleton", $setup.densityClass])
|
|
@@ -2549,7 +2551,7 @@ function _sfc_render$1E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2549
2551
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
2550
2552
|
!$setup.props.hideLabel ? (openBlock(), createElementBlock(
|
|
2551
2553
|
"span",
|
|
2552
|
-
_hoisted_1$
|
|
2554
|
+
_hoisted_1$1e,
|
|
2553
2555
|
toDisplayString($setup.props.label),
|
|
2554
2556
|
1
|
|
2555
2557
|
/* TEXT */
|
|
@@ -2559,7 +2561,7 @@ function _sfc_render$1E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2559
2561
|
/* STABLE */
|
|
2560
2562
|
}, 8, ["class", "title", "aria-label", "link"]));
|
|
2561
2563
|
}
|
|
2562
|
-
const OnyxFABButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2564
|
+
const OnyxFABButton = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1F], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFABButton/OnyxFABButton.vue"]]);
|
|
2563
2565
|
const useResizeObserver = (target, options) => {
|
|
2564
2566
|
const box = options?.box ?? "content-box";
|
|
2565
2567
|
const width = ref(0);
|
|
@@ -2769,7 +2771,7 @@ const useOpenDirection = (element, defaultDirection = "bottom") => {
|
|
|
2769
2771
|
}
|
|
2770
2772
|
const overflowParentRect = findParentWithHiddenOverflow(el)?.getBoundingClientRect();
|
|
2771
2773
|
const elementRect = el.getBoundingClientRect();
|
|
2772
|
-
const parentTop = overflowParentRect?.top ??
|
|
2774
|
+
const parentTop = overflowParentRect?.top ?? 0;
|
|
2773
2775
|
const parentBottom = overflowParentRect?.bottom ?? window.visualViewport?.height ?? 0;
|
|
2774
2776
|
const freeSpaceBelow = parentBottom - elementRect.bottom;
|
|
2775
2777
|
const freeSpaceAbove = elementRect.top - parentTop;
|
|
@@ -2871,7 +2873,7 @@ function useSticky(options) {
|
|
|
2871
2873
|
});
|
|
2872
2874
|
return { stickyStyles, scrolledOut, isSticky, checkVisibilityOnScroll };
|
|
2873
2875
|
}
|
|
2874
|
-
const _sfc_main$
|
|
2876
|
+
const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
2875
2877
|
__name: "OnyxBasicPopover",
|
|
2876
2878
|
props: {
|
|
2877
2879
|
label: { type: String, required: true },
|
|
@@ -3029,8 +3031,8 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
3029
3031
|
return __returned__;
|
|
3030
3032
|
}
|
|
3031
3033
|
});
|
|
3032
|
-
const _hoisted_1$
|
|
3033
|
-
function _sfc_render$
|
|
3034
|
+
const _hoisted_1$1d = ["role", "aria-label"];
|
|
3035
|
+
function _sfc_render$1E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3034
3036
|
return openBlock(), createElementBlock(
|
|
3035
3037
|
"div",
|
|
3036
3038
|
{
|
|
@@ -3049,14 +3051,14 @@ function _sfc_render$1D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3049
3051
|
style: normalizeStyle(!$setup.isSticky ? $setup.popoverStyles : $setup.stickyStyles)
|
|
3050
3052
|
}, [
|
|
3051
3053
|
renderSlot(_ctx.$slots, "content")
|
|
3052
|
-
], 14, _hoisted_1$
|
|
3054
|
+
], 14, _hoisted_1$1d)
|
|
3053
3055
|
],
|
|
3054
3056
|
4
|
|
3055
3057
|
/* STYLE */
|
|
3056
3058
|
);
|
|
3057
3059
|
}
|
|
3058
|
-
const OnyxBasicPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3059
|
-
const _sfc_main$
|
|
3060
|
+
const OnyxBasicPopover = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$1E], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBasicPopover/OnyxBasicPopover.vue"]]);
|
|
3061
|
+
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
3060
3062
|
__name: "OnyxFlyoutMenu",
|
|
3061
3063
|
props: {
|
|
3062
3064
|
alignment: { type: String, required: false, default: "auto" },
|
|
@@ -3098,9 +3100,9 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
3098
3100
|
return __returned__;
|
|
3099
3101
|
}
|
|
3100
3102
|
});
|
|
3101
|
-
const _hoisted_1$
|
|
3103
|
+
const _hoisted_1$1c = { class: "onyx-flyout-menu__list-header" };
|
|
3102
3104
|
const _hoisted_2$V = { class: "onyx-flyout-menu__list-footer" };
|
|
3103
|
-
function _sfc_render$
|
|
3105
|
+
function _sfc_render$1D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3104
3106
|
return openBlock(), createBlock($setup["OnyxBasicPopover"], mergeProps($setup.mergeVueProps($setup.root, { ref: $setup.popover }), {
|
|
3105
3107
|
class: "onyx-component onyx-flyout-menu",
|
|
3106
3108
|
open: $setup.isExpanded,
|
|
@@ -3109,7 +3111,7 @@ function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3109
3111
|
disabled: $props.disabled
|
|
3110
3112
|
}), createSlots({
|
|
3111
3113
|
content: withCtx(() => [
|
|
3112
|
-
createElementVNode("div", _hoisted_1$
|
|
3114
|
+
createElementVNode("div", _hoisted_1$1c, [
|
|
3113
3115
|
renderSlot(_ctx.$slots, "header")
|
|
3114
3116
|
]),
|
|
3115
3117
|
$setup.slots.options ? (openBlock(), createElementBlock(
|
|
@@ -3142,8 +3144,8 @@ function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3142
3144
|
} : void 0
|
|
3143
3145
|
]), 1040, ["open", "label", "alignment", "disabled"]);
|
|
3144
3146
|
}
|
|
3145
|
-
const OnyxFlyoutMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3146
|
-
const _sfc_main$
|
|
3147
|
+
const OnyxFlyoutMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$1D], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue"]]);
|
|
3148
|
+
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
3147
3149
|
__name: "OnyxFAB",
|
|
3148
3150
|
props: {
|
|
3149
3151
|
density: { type: null, required: false },
|
|
@@ -3182,7 +3184,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
3182
3184
|
return __returned__;
|
|
3183
3185
|
}
|
|
3184
3186
|
});
|
|
3185
|
-
function _sfc_render$
|
|
3187
|
+
function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3186
3188
|
return !$setup.hasOptions || $setup.skeleton ? (openBlock(), createBlock($setup["OnyxFABButton"], mergeProps({
|
|
3187
3189
|
key: 0,
|
|
3188
3190
|
class: ["onyx-fab", `onyx-fab--${$setup.props.alignment}`]
|
|
@@ -3212,8 +3214,8 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3212
3214
|
/* FORWARDED */
|
|
3213
3215
|
}, 8, ["open", "label", "class", "alignment"]));
|
|
3214
3216
|
}
|
|
3215
|
-
const OnyxFAB = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3216
|
-
const _sfc_main$
|
|
3217
|
+
const OnyxFAB = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["render", _sfc_render$1C], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFAB/OnyxFAB.vue"]]);
|
|
3218
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
3217
3219
|
__name: "OnyxFABItem",
|
|
3218
3220
|
props: {
|
|
3219
3221
|
density: { type: null, required: false },
|
|
@@ -3236,7 +3238,7 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
3236
3238
|
return __returned__;
|
|
3237
3239
|
}
|
|
3238
3240
|
});
|
|
3239
|
-
function _sfc_render$
|
|
3241
|
+
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3240
3242
|
return openBlock(), createElementBlock(
|
|
3241
3243
|
"li",
|
|
3242
3244
|
mergeProps({
|
|
@@ -3251,7 +3253,7 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3251
3253
|
/* FULL_PROPS */
|
|
3252
3254
|
);
|
|
3253
3255
|
}
|
|
3254
|
-
const OnyxFABItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3256
|
+
const OnyxFABItem = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1B], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFABItem/OnyxFABItem.vue"]]);
|
|
3255
3257
|
const GLOBAL_FAB_PROVIDER_INJECTION_KEY = Symbol();
|
|
3256
3258
|
const createGlobalFABProvider = () => {
|
|
3257
3259
|
const items = shallowRef([]);
|
|
@@ -3288,7 +3290,7 @@ const useGlobalFAB = () => {
|
|
|
3288
3290
|
);
|
|
3289
3291
|
return globalFABProvider;
|
|
3290
3292
|
};
|
|
3291
|
-
const _sfc_main$
|
|
3293
|
+
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
3292
3294
|
__name: "OnyxGlobalFAB",
|
|
3293
3295
|
setup(__props, { expose: __expose }) {
|
|
3294
3296
|
__expose();
|
|
@@ -3302,7 +3304,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
3302
3304
|
return __returned__;
|
|
3303
3305
|
}
|
|
3304
3306
|
});
|
|
3305
|
-
function _sfc_render$
|
|
3307
|
+
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3306
3308
|
return $setup.globalFAB.items.value.length === 1 ? (openBlock(), createBlock(
|
|
3307
3309
|
$setup["OnyxFAB"],
|
|
3308
3310
|
normalizeProps(mergeProps({ key: 0 }, $setup.globalFAB.items.value[0].value)),
|
|
@@ -3337,14 +3339,14 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3337
3339
|
/* STABLE */
|
|
3338
3340
|
}, 8, ["label", "alignment"])) : createCommentVNode("v-if", true);
|
|
3339
3341
|
}
|
|
3340
|
-
const OnyxGlobalFAB = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3341
|
-
const _sfc_main$
|
|
3342
|
-
const _hoisted_1$
|
|
3342
|
+
const OnyxGlobalFAB = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1A], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxGlobalFAB/OnyxGlobalFAB.vue"]]);
|
|
3343
|
+
const _sfc_main$1z = {};
|
|
3344
|
+
const _hoisted_1$1b = {
|
|
3343
3345
|
class: "onyx-component onyx-circle-spinner",
|
|
3344
3346
|
viewBox: "0 0 50 50"
|
|
3345
3347
|
};
|
|
3346
|
-
function _sfc_render$
|
|
3347
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
3348
|
+
function _sfc_render$1z(_ctx, _cache) {
|
|
3349
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$1b, [..._cache[0] || (_cache[0] = [
|
|
3348
3350
|
createElementVNode(
|
|
3349
3351
|
"circle",
|
|
3350
3352
|
{
|
|
@@ -3359,11 +3361,11 @@ function _sfc_render$1y(_ctx, _cache) {
|
|
|
3359
3361
|
)
|
|
3360
3362
|
])]);
|
|
3361
3363
|
}
|
|
3362
|
-
const OnyxCircleSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3363
|
-
const _sfc_main$
|
|
3364
|
-
const _hoisted_1$
|
|
3365
|
-
function _sfc_render$
|
|
3366
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3364
|
+
const OnyxCircleSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1z], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxLoadingIndicator/OnyxCircleSpinner.vue"]]);
|
|
3365
|
+
const _sfc_main$1y = {};
|
|
3366
|
+
const _hoisted_1$1a = { class: "onyx-component onyx-loading-dots" };
|
|
3367
|
+
function _sfc_render$1y(_ctx, _cache) {
|
|
3368
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1a, [..._cache[0] || (_cache[0] = [
|
|
3367
3369
|
createElementVNode(
|
|
3368
3370
|
"span",
|
|
3369
3371
|
{ class: "onyx-loading-dots__center" },
|
|
@@ -3373,8 +3375,8 @@ function _sfc_render$1x(_ctx, _cache) {
|
|
|
3373
3375
|
)
|
|
3374
3376
|
])]);
|
|
3375
3377
|
}
|
|
3376
|
-
const OnyxLoadingDots = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3377
|
-
const _sfc_main$
|
|
3378
|
+
const OnyxLoadingDots = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$1y], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxLoadingIndicator/OnyxLoadingDots.vue"]]);
|
|
3379
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
3378
3380
|
__name: "OnyxLoadingIndicator",
|
|
3379
3381
|
props: {
|
|
3380
3382
|
type: { type: String, required: false, default: "dots" }
|
|
@@ -3387,10 +3389,10 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
3387
3389
|
return __returned__;
|
|
3388
3390
|
}
|
|
3389
3391
|
});
|
|
3390
|
-
function _sfc_render$
|
|
3392
|
+
function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3391
3393
|
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);
|
|
3392
3394
|
}
|
|
3393
|
-
const OnyxLoadingIndicator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3395
|
+
const OnyxLoadingIndicator = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$1x], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxLoadingIndicator/OnyxLoadingIndicator.vue"]]);
|
|
3394
3396
|
const useRipple = (container) => {
|
|
3395
3397
|
const isPointerDown = ref(false);
|
|
3396
3398
|
const ripples = reactive(/* @__PURE__ */ new Map());
|
|
@@ -3437,7 +3439,7 @@ const useRipple = (container) => {
|
|
|
3437
3439
|
});
|
|
3438
3440
|
return { isPointerDown, ripples, startRipple, hideRipples, hideRipple, events };
|
|
3439
3441
|
};
|
|
3440
|
-
const _sfc_main$
|
|
3442
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
3441
3443
|
__name: "OnyxRipple",
|
|
3442
3444
|
setup(__props, { expose: __expose }) {
|
|
3443
3445
|
const rippleTrigger = useTemplateRef("rippleTriggerRef");
|
|
@@ -3450,16 +3452,16 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
3450
3452
|
return __returned__;
|
|
3451
3453
|
}
|
|
3452
3454
|
});
|
|
3453
|
-
const _hoisted_1$
|
|
3455
|
+
const _hoisted_1$19 = {
|
|
3454
3456
|
ref: "rippleTriggerRef",
|
|
3455
3457
|
class: "onyx-component onyx-ripple",
|
|
3456
3458
|
"aria-hidden": "true"
|
|
3457
3459
|
};
|
|
3458
3460
|
const _hoisted_2$U = ["data-rippleid"];
|
|
3459
|
-
function _sfc_render$
|
|
3461
|
+
function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3460
3462
|
return openBlock(), createElementBlock(
|
|
3461
3463
|
"span",
|
|
3462
|
-
_hoisted_1$
|
|
3464
|
+
_hoisted_1$19,
|
|
3463
3465
|
[
|
|
3464
3466
|
(openBlock(true), createElementBlock(
|
|
3465
3467
|
Fragment,
|
|
@@ -3484,8 +3486,8 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3484
3486
|
/* NEED_PATCH */
|
|
3485
3487
|
);
|
|
3486
3488
|
}
|
|
3487
|
-
const OnyxRipple = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3488
|
-
const _sfc_main$
|
|
3489
|
+
const OnyxRipple = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1w], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxRipple/OnyxRipple.vue"]]);
|
|
3490
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
3489
3491
|
__name: "OnyxButton",
|
|
3490
3492
|
props: {
|
|
3491
3493
|
density: { type: null, required: false },
|
|
@@ -3515,8 +3517,8 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
3515
3517
|
return __returned__;
|
|
3516
3518
|
}
|
|
3517
3519
|
});
|
|
3518
|
-
const _hoisted_1$
|
|
3519
|
-
function _sfc_render$
|
|
3520
|
+
const _hoisted_1$18 = { class: "onyx-button__label onyx-truncation-ellipsis" };
|
|
3521
|
+
function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3520
3522
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
3521
3523
|
key: 0,
|
|
3522
3524
|
class: normalizeClass(["onyx-button-skeleton", $setup.densityClass])
|
|
@@ -3553,7 +3555,7 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3553
3555
|
})) : createCommentVNode("v-if", true),
|
|
3554
3556
|
createElementVNode(
|
|
3555
3557
|
"span",
|
|
3556
|
-
_hoisted_1$
|
|
3558
|
+
_hoisted_1$18,
|
|
3557
3559
|
toDisplayString($setup.props.label),
|
|
3558
3560
|
1
|
|
3559
3561
|
/* TEXT */
|
|
@@ -3568,8 +3570,8 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3568
3570
|
/* STABLE */
|
|
3569
3571
|
}, 16, ["class", "aria-label"]));
|
|
3570
3572
|
}
|
|
3571
|
-
const OnyxButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3572
|
-
const _sfc_main$
|
|
3573
|
+
const OnyxButton = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$1v], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxButton/OnyxButton.vue"]]);
|
|
3574
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
3573
3575
|
__name: "OnyxInfoCard",
|
|
3574
3576
|
props: {
|
|
3575
3577
|
density: { type: null, required: false },
|
|
@@ -3596,7 +3598,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
3596
3598
|
return __returned__;
|
|
3597
3599
|
}
|
|
3598
3600
|
});
|
|
3599
|
-
const _hoisted_1$
|
|
3601
|
+
const _hoisted_1$17 = { class: "onyx-info-card__content" };
|
|
3600
3602
|
const _hoisted_2$T = {
|
|
3601
3603
|
key: 3,
|
|
3602
3604
|
class: "onyx-info-card__description onyx-text--small"
|
|
@@ -3605,7 +3607,7 @@ const _hoisted_3$A = {
|
|
|
3605
3607
|
key: 4,
|
|
3606
3608
|
class: "onyx-info-card__buttons onyx-density-compact"
|
|
3607
3609
|
};
|
|
3608
|
-
function _sfc_render$
|
|
3610
|
+
function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3609
3611
|
return openBlock(), createElementBlock(
|
|
3610
3612
|
"div",
|
|
3611
3613
|
{
|
|
@@ -3617,7 +3619,7 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3617
3619
|
class: "onyx-info-card__icon",
|
|
3618
3620
|
icon: $setup.props.icon
|
|
3619
3621
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
3620
|
-
createElementVNode("div", _hoisted_1$
|
|
3622
|
+
createElementVNode("div", _hoisted_1$17, [
|
|
3621
3623
|
$setup.props.headline ? (openBlock(), createBlock($setup["OnyxHeadline"], {
|
|
3622
3624
|
key: 0,
|
|
3623
3625
|
is: "h3",
|
|
@@ -3672,8 +3674,8 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3672
3674
|
/* CLASS */
|
|
3673
3675
|
);
|
|
3674
3676
|
}
|
|
3675
|
-
const OnyxInfoCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3676
|
-
const _sfc_main$
|
|
3677
|
+
const OnyxInfoCard = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$1u], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxInfoCard/OnyxInfoCard.vue"]]);
|
|
3678
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
3677
3679
|
__name: "OnyxNotificationMessage",
|
|
3678
3680
|
props: {
|
|
3679
3681
|
headline: { type: String, required: true },
|
|
@@ -3691,7 +3693,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
3691
3693
|
return __returned__;
|
|
3692
3694
|
}
|
|
3693
3695
|
});
|
|
3694
|
-
function _sfc_render$
|
|
3696
|
+
function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3695
3697
|
return openBlock(), createBlock($setup["OnyxInfoCard"], {
|
|
3696
3698
|
class: normalizeClass(["onyx-component onyx-notification-message", [
|
|
3697
3699
|
"onyx-component",
|
|
@@ -3724,7 +3726,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3724
3726
|
} : void 0
|
|
3725
3727
|
]), 1032, ["class", "headline", "icon", "style", "aria-label"]);
|
|
3726
3728
|
}
|
|
3727
|
-
const OnyxNotificationMessage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3729
|
+
const OnyxNotificationMessage = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1t], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNotificationMessage/OnyxNotificationMessage.vue"]]);
|
|
3728
3730
|
const NOTIFICATIONS_PROVIDER_INJECTION_KEY = Symbol();
|
|
3729
3731
|
const createNotificationsProvider = () => {
|
|
3730
3732
|
let nextId = 1;
|
|
@@ -3769,7 +3771,7 @@ const useNotification = () => {
|
|
|
3769
3771
|
);
|
|
3770
3772
|
return notificationsProvider;
|
|
3771
3773
|
};
|
|
3772
|
-
const _sfc_main$
|
|
3774
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
3773
3775
|
__name: "OnyxNotifications",
|
|
3774
3776
|
setup(__props, { expose: __expose }) {
|
|
3775
3777
|
__expose();
|
|
@@ -3779,15 +3781,15 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
3779
3781
|
return __returned__;
|
|
3780
3782
|
}
|
|
3781
3783
|
});
|
|
3782
|
-
const _hoisted_1$
|
|
3784
|
+
const _hoisted_1$16 = {
|
|
3783
3785
|
key: 0,
|
|
3784
3786
|
class: "onyx-component onyx-notifications",
|
|
3785
3787
|
role: "presentation",
|
|
3786
3788
|
"aria-live": "polite",
|
|
3787
3789
|
open: ""
|
|
3788
3790
|
};
|
|
3789
|
-
function _sfc_render$
|
|
3790
|
-
return $setup.notificationProvider.notifications.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1$
|
|
3791
|
+
function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3792
|
+
return $setup.notificationProvider.notifications.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1$16, [
|
|
3791
3793
|
(openBlock(true), createElementBlock(
|
|
3792
3794
|
Fragment,
|
|
3793
3795
|
null,
|
|
@@ -3839,8 +3841,8 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3839
3841
|
))
|
|
3840
3842
|
])) : createCommentVNode("v-if", true);
|
|
3841
3843
|
}
|
|
3842
|
-
const OnyxNotifications = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3843
|
-
const _sfc_main$
|
|
3844
|
+
const OnyxNotifications = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", _sfc_render$1s], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNotifications/OnyxNotifications.vue"]]);
|
|
3845
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
3844
3846
|
__name: "OnyxToastMessage",
|
|
3845
3847
|
props: {
|
|
3846
3848
|
density: { type: null, required: false },
|
|
@@ -3876,7 +3878,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
3876
3878
|
return __returned__;
|
|
3877
3879
|
}
|
|
3878
3880
|
});
|
|
3879
|
-
const _hoisted_1$
|
|
3881
|
+
const _hoisted_1$15 = { class: "onyx-toast-message__wrapper" };
|
|
3880
3882
|
const _hoisted_2$S = { class: "onyx-toast-message__content onyx-truncation-ellipsis" };
|
|
3881
3883
|
const _hoisted_3$z = { class: "onyx-toast-message__headline onyx-text" };
|
|
3882
3884
|
const _hoisted_4$n = { class: "onyx-truncation-ellipsis" };
|
|
@@ -3886,14 +3888,14 @@ const _hoisted_6$b = {
|
|
|
3886
3888
|
class: "onyx-toast-message__description onyx-text--small onyx-truncation-multiline",
|
|
3887
3889
|
tabindex: "0"
|
|
3888
3890
|
};
|
|
3889
|
-
function _sfc_render$
|
|
3891
|
+
function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3890
3892
|
return openBlock(), createBlock(resolveDynamicComponent($setup.props.clickable ? "button" : "div"), {
|
|
3891
3893
|
class: normalizeClass(["onyx-component onyx-toast-message", [`onyx-toast-message--${$setup.props.color}`, $setup.densityClass]]),
|
|
3892
3894
|
role: $setup.props.color === "danger" || $setup.props.color === "warning" ? "alert" : "status",
|
|
3893
3895
|
"aria-label": $setup.props.clickable ? $setup.props.headline : void 0
|
|
3894
3896
|
}, {
|
|
3895
3897
|
default: withCtx(() => [
|
|
3896
|
-
createElementVNode("div", _hoisted_1$
|
|
3898
|
+
createElementVNode("div", _hoisted_1$15, [
|
|
3897
3899
|
$setup.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
3898
3900
|
key: 0,
|
|
3899
3901
|
icon: $setup.icon
|
|
@@ -3944,7 +3946,7 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3944
3946
|
/* STABLE */
|
|
3945
3947
|
}, 8, ["class", "role", "aria-label"]);
|
|
3946
3948
|
}
|
|
3947
|
-
const OnyxToastMessage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3949
|
+
const OnyxToastMessage = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1r], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxToastMessage/OnyxToastMessage.vue"]]);
|
|
3948
3950
|
const TOAST_PROVIDER_INJECTION_KEY = Symbol();
|
|
3949
3951
|
const createToastProvider = () => {
|
|
3950
3952
|
let nextId = 1;
|
|
@@ -3987,7 +3989,7 @@ const useToast = () => {
|
|
|
3987
3989
|
);
|
|
3988
3990
|
return toastProvider;
|
|
3989
3991
|
};
|
|
3990
|
-
const _sfc_main$
|
|
3992
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
3991
3993
|
__name: "OnyxToast",
|
|
3992
3994
|
setup(__props, { expose: __expose }) {
|
|
3993
3995
|
__expose();
|
|
@@ -3997,15 +3999,15 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
3997
3999
|
return __returned__;
|
|
3998
4000
|
}
|
|
3999
4001
|
});
|
|
4000
|
-
const _hoisted_1$
|
|
4002
|
+
const _hoisted_1$14 = {
|
|
4001
4003
|
key: 0,
|
|
4002
4004
|
class: "onyx-component onyx-toast",
|
|
4003
4005
|
role: "presentation",
|
|
4004
4006
|
"aria-live": "polite",
|
|
4005
4007
|
open: ""
|
|
4006
4008
|
};
|
|
4007
|
-
function _sfc_render$
|
|
4008
|
-
return $setup.toastProvider.toasts.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1$
|
|
4009
|
+
function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4010
|
+
return $setup.toastProvider.toasts.value.length ? (openBlock(), createElementBlock("dialog", _hoisted_1$14, [
|
|
4009
4011
|
(openBlock(true), createElementBlock(
|
|
4010
4012
|
Fragment,
|
|
4011
4013
|
null,
|
|
@@ -4023,8 +4025,8 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4023
4025
|
))
|
|
4024
4026
|
])) : createCommentVNode("v-if", true);
|
|
4025
4027
|
}
|
|
4026
|
-
const OnyxToast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4027
|
-
const _sfc_main$
|
|
4028
|
+
const OnyxToast = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1q], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxToast/OnyxToast.vue"]]);
|
|
4029
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
4028
4030
|
__name: "OnyxAppLayout",
|
|
4029
4031
|
props: {
|
|
4030
4032
|
navBarAlignment: { type: String, required: false, default: "top" }
|
|
@@ -4038,19 +4040,19 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
4038
4040
|
return __returned__;
|
|
4039
4041
|
}
|
|
4040
4042
|
});
|
|
4041
|
-
const _hoisted_1$
|
|
4043
|
+
const _hoisted_1$13 = {
|
|
4042
4044
|
key: 0,
|
|
4043
4045
|
class: "onyx-app__nav"
|
|
4044
4046
|
};
|
|
4045
4047
|
const _hoisted_2$R = { class: "onyx-app__page" };
|
|
4046
|
-
function _sfc_render$
|
|
4048
|
+
function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4047
4049
|
return openBlock(), createElementBlock(
|
|
4048
4050
|
"div",
|
|
4049
4051
|
{
|
|
4050
4052
|
class: normalizeClass(["onyx-component onyx-app", { "onyx-app--horizontal": $setup.props.navBarAlignment === "left" }])
|
|
4051
4053
|
},
|
|
4052
4054
|
[
|
|
4053
|
-
$setup.slots.navBar ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4055
|
+
$setup.slots.navBar ? (openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
4054
4056
|
renderSlot(_ctx.$slots, "navBar")
|
|
4055
4057
|
])) : createCommentVNode("v-if", true),
|
|
4056
4058
|
createElementVNode("div", _hoisted_2$R, [
|
|
@@ -4064,8 +4066,8 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4064
4066
|
/* CLASS */
|
|
4065
4067
|
);
|
|
4066
4068
|
}
|
|
4067
|
-
const OnyxAppLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4068
|
-
const _sfc_main$
|
|
4069
|
+
const OnyxAppLayout = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1p], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAppLayout/OnyxAppLayout.vue"]]);
|
|
4070
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
4069
4071
|
__name: "OnyxAvatar",
|
|
4070
4072
|
props: {
|
|
4071
4073
|
size: { type: null, required: false, default: "48px" },
|
|
@@ -4099,13 +4101,13 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
4099
4101
|
return __returned__;
|
|
4100
4102
|
}
|
|
4101
4103
|
});
|
|
4102
|
-
const _hoisted_1$
|
|
4104
|
+
const _hoisted_1$12 = ["title", "aria-label"];
|
|
4103
4105
|
const _hoisted_2$Q = ["src", "alt"];
|
|
4104
4106
|
const _hoisted_3$y = {
|
|
4105
4107
|
key: 0,
|
|
4106
4108
|
class: "onyx-avatar__initials"
|
|
4107
4109
|
};
|
|
4108
|
-
function _sfc_render$
|
|
4110
|
+
function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4109
4111
|
return openBlock(), createElementBlock("figure", {
|
|
4110
4112
|
class: normalizeClass([
|
|
4111
4113
|
"onyx-component",
|
|
@@ -4141,10 +4143,10 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4141
4143
|
64
|
|
4142
4144
|
/* STABLE_FRAGMENT */
|
|
4143
4145
|
))
|
|
4144
|
-
], 10, _hoisted_1$
|
|
4146
|
+
], 10, _hoisted_1$12);
|
|
4145
4147
|
}
|
|
4146
|
-
const OnyxAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4147
|
-
const _sfc_main$
|
|
4148
|
+
const OnyxAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$1o], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAvatar/OnyxAvatar.vue"]]);
|
|
4149
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
4148
4150
|
__name: "OnyxAvatarStack",
|
|
4149
4151
|
setup(__props, { expose: __expose }) {
|
|
4150
4152
|
__expose();
|
|
@@ -4153,14 +4155,14 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
4153
4155
|
return __returned__;
|
|
4154
4156
|
}
|
|
4155
4157
|
});
|
|
4156
|
-
const _hoisted_1$
|
|
4157
|
-
function _sfc_render$
|
|
4158
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4158
|
+
const _hoisted_1$11 = { class: "onyx-component onyx-avatar-stack" };
|
|
4159
|
+
function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4160
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
4159
4161
|
renderSlot(_ctx.$slots, "default")
|
|
4160
4162
|
]);
|
|
4161
4163
|
}
|
|
4162
|
-
const OnyxAvatarStack = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4163
|
-
const _sfc_main$
|
|
4164
|
+
const OnyxAvatarStack = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1n], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxAvatarStack/OnyxAvatarStack.vue"]]);
|
|
4165
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
4164
4166
|
__name: "OnyxBadge",
|
|
4165
4167
|
props: {
|
|
4166
4168
|
density: { type: null, required: false },
|
|
@@ -4177,7 +4179,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
4177
4179
|
return __returned__;
|
|
4178
4180
|
}
|
|
4179
4181
|
});
|
|
4180
|
-
function _sfc_render$
|
|
4182
|
+
function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4181
4183
|
return openBlock(), createElementBlock(
|
|
4182
4184
|
"div",
|
|
4183
4185
|
{
|
|
@@ -4208,8 +4210,8 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4208
4210
|
/* CLASS */
|
|
4209
4211
|
);
|
|
4210
4212
|
}
|
|
4211
|
-
const OnyxBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4212
|
-
const _sfc_main$
|
|
4213
|
+
const OnyxBadge = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1m], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBadge/OnyxBadge.vue"]]);
|
|
4214
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
4213
4215
|
__name: "OnyxBottomBar",
|
|
4214
4216
|
props: {
|
|
4215
4217
|
density: { type: null, required: false },
|
|
@@ -4224,10 +4226,10 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
4224
4226
|
return __returned__;
|
|
4225
4227
|
}
|
|
4226
4228
|
});
|
|
4227
|
-
const _hoisted_1
|
|
4229
|
+
const _hoisted_1$10 = { class: "onyx-bottom-bar__content onyx-grid-container" };
|
|
4228
4230
|
const _hoisted_2$P = { class: "onyx-bottom-bar__content--left" };
|
|
4229
4231
|
const _hoisted_3$x = { class: "onyx-bottom-bar__content--right" };
|
|
4230
|
-
function _sfc_render$
|
|
4232
|
+
function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4231
4233
|
return openBlock(), createElementBlock(
|
|
4232
4234
|
"div",
|
|
4233
4235
|
{
|
|
@@ -4239,7 +4241,7 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4239
4241
|
])
|
|
4240
4242
|
},
|
|
4241
4243
|
[
|
|
4242
|
-
createElementVNode("div", _hoisted_1
|
|
4244
|
+
createElementVNode("div", _hoisted_1$10, [
|
|
4243
4245
|
createElementVNode("div", _hoisted_2$P, [
|
|
4244
4246
|
renderSlot(_ctx.$slots, "left")
|
|
4245
4247
|
]),
|
|
@@ -4252,7 +4254,7 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4252
4254
|
/* CLASS */
|
|
4253
4255
|
);
|
|
4254
4256
|
}
|
|
4255
|
-
const OnyxBottomBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4257
|
+
const OnyxBottomBar = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1l], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBottomBar/OnyxBottomBar.vue"]]);
|
|
4256
4258
|
const useMoreList = (options) => {
|
|
4257
4259
|
const visibleElements = ref();
|
|
4258
4260
|
const hiddenElements = ref();
|
|
@@ -4347,7 +4349,7 @@ const useMoreListChild = (injectionKey) => {
|
|
|
4347
4349
|
};
|
|
4348
4350
|
const BREADCRUMB_MORE_LIST_INJECTION_KEY = Symbol();
|
|
4349
4351
|
const BREADCRUMB_MORE_LIST_TARGET_INJECTION_KEY = Symbol();
|
|
4350
|
-
const _sfc_main$
|
|
4352
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
4351
4353
|
__name: "OnyxExternalLinkIcon",
|
|
4352
4354
|
props: {
|
|
4353
4355
|
href: { type: String, required: false },
|
|
@@ -4368,7 +4370,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
4368
4370
|
return __returned__;
|
|
4369
4371
|
}
|
|
4370
4372
|
});
|
|
4371
|
-
function _sfc_render$
|
|
4373
|
+
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4372
4374
|
return $setup.isVisible ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
4373
4375
|
key: 0,
|
|
4374
4376
|
class: "onyx-component onyx-external-link-icon",
|
|
@@ -4376,8 +4378,8 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4376
4378
|
size: "16px"
|
|
4377
4379
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true);
|
|
4378
4380
|
}
|
|
4379
|
-
const OnyxExternalLinkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4380
|
-
const _sfc_main$
|
|
4381
|
+
const OnyxExternalLinkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1k], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxExternalLinkIcon/OnyxExternalLinkIcon.vue"]]);
|
|
4382
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
4381
4383
|
__name: "OnyxListItem",
|
|
4382
4384
|
props: {
|
|
4383
4385
|
density: { type: null, required: false },
|
|
@@ -4396,7 +4398,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
4396
4398
|
return __returned__;
|
|
4397
4399
|
}
|
|
4398
4400
|
});
|
|
4399
|
-
function _sfc_render$
|
|
4401
|
+
function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4400
4402
|
return openBlock(), createElementBlock(
|
|
4401
4403
|
"li",
|
|
4402
4404
|
{
|
|
@@ -4418,8 +4420,8 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4418
4420
|
/* CLASS */
|
|
4419
4421
|
);
|
|
4420
4422
|
}
|
|
4421
|
-
const OnyxListItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4422
|
-
const _sfc_main$
|
|
4423
|
+
const OnyxListItem = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1j], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxListItem/OnyxListItem.vue"]]);
|
|
4424
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
4423
4425
|
...{ inheritAttrs: false },
|
|
4424
4426
|
__name: "OnyxMenuItem",
|
|
4425
4427
|
props: {
|
|
@@ -4498,7 +4500,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
4498
4500
|
return __returned__;
|
|
4499
4501
|
}
|
|
4500
4502
|
});
|
|
4501
|
-
const _hoisted_1
|
|
4503
|
+
const _hoisted_1$$ = { class: "onyx-truncation-ellipsis" };
|
|
4502
4504
|
const _hoisted_2$O = {
|
|
4503
4505
|
key: 0,
|
|
4504
4506
|
class: "onyx-menu-item__chevron"
|
|
@@ -4508,7 +4510,7 @@ const _hoisted_3$w = {
|
|
|
4508
4510
|
role: "menu",
|
|
4509
4511
|
class: "onyx-menu-item__children"
|
|
4510
4512
|
};
|
|
4511
|
-
function _sfc_render$
|
|
4513
|
+
function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4512
4514
|
const _component_OnyxMenuItem = resolveComponent("OnyxMenuItem", true);
|
|
4513
4515
|
return openBlock(), createBlock($setup["OnyxListItem"], mergeProps({
|
|
4514
4516
|
selected: $setup.isActive,
|
|
@@ -4529,7 +4531,7 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4529
4531
|
createElementVNode("span", null, [
|
|
4530
4532
|
createElementVNode(
|
|
4531
4533
|
"span",
|
|
4532
|
-
_hoisted_1
|
|
4534
|
+
_hoisted_1$$,
|
|
4533
4535
|
toDisplayString($setup.props.label),
|
|
4534
4536
|
1
|
|
4535
4537
|
/* TEXT */
|
|
@@ -4594,8 +4596,8 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4594
4596
|
/* FORWARDED */
|
|
4595
4597
|
}, 16, ["selected", "active", "color", "disabled", "class"]);
|
|
4596
4598
|
}
|
|
4597
|
-
const OnyxMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4598
|
-
const _sfc_main$
|
|
4599
|
+
const OnyxMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1i], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.vue"]]);
|
|
4600
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
4599
4601
|
...{ inheritAttrs: false },
|
|
4600
4602
|
__name: "OnyxBreadcrumbItem",
|
|
4601
4603
|
props: {
|
|
@@ -4621,7 +4623,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
4621
4623
|
return __returned__;
|
|
4622
4624
|
}
|
|
4623
4625
|
});
|
|
4624
|
-
function _sfc_render$
|
|
4626
|
+
function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4625
4627
|
return openBlock(), createElementBlock(
|
|
4626
4628
|
Fragment,
|
|
4627
4629
|
null,
|
|
@@ -4681,8 +4683,8 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4681
4683
|
/* STABLE_FRAGMENT */
|
|
4682
4684
|
);
|
|
4683
4685
|
}
|
|
4684
|
-
const OnyxBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4685
|
-
const _sfc_main$
|
|
4686
|
+
const OnyxBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1h], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBreadcrumbItem/OnyxBreadcrumbItem.vue"]]);
|
|
4687
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
4686
4688
|
__name: "OnyxMoreList",
|
|
4687
4689
|
props: {
|
|
4688
4690
|
injectionKey: { type: [Symbol, Object], required: true },
|
|
@@ -4715,7 +4717,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
4715
4717
|
return __returned__;
|
|
4716
4718
|
}
|
|
4717
4719
|
});
|
|
4718
|
-
function _sfc_render$
|
|
4720
|
+
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4719
4721
|
return openBlock(), createBlock(
|
|
4720
4722
|
resolveDynamicComponent($setup.props.is),
|
|
4721
4723
|
{
|
|
@@ -4755,8 +4757,8 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4755
4757
|
/* NEED_PATCH */
|
|
4756
4758
|
);
|
|
4757
4759
|
}
|
|
4758
|
-
const OnyxMoreList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4759
|
-
const _sfc_main$
|
|
4760
|
+
const OnyxMoreList = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$1g], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxMoreList/OnyxMoreList.vue"]]);
|
|
4761
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
4760
4762
|
__name: "OnyxBreadcrumb",
|
|
4761
4763
|
props: {
|
|
4762
4764
|
density: { type: null, required: false },
|
|
@@ -4782,13 +4784,13 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
4782
4784
|
return __returned__;
|
|
4783
4785
|
}
|
|
4784
4786
|
});
|
|
4785
|
-
const _hoisted_1$
|
|
4787
|
+
const _hoisted_1$_ = ["aria-label", "aria-hidden"];
|
|
4786
4788
|
const _hoisted_2$N = {
|
|
4787
4789
|
class: "onyx-breadcrumb__list onyx-grid-container",
|
|
4788
4790
|
role: "menu"
|
|
4789
4791
|
};
|
|
4790
4792
|
const _hoisted_3$v = { ref: "moreListRef" };
|
|
4791
|
-
function _sfc_render$
|
|
4793
|
+
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4792
4794
|
return openBlock(), createElementBlock("nav", {
|
|
4793
4795
|
class: normalizeClass([
|
|
4794
4796
|
"onyx-component",
|
|
@@ -4881,13 +4883,13 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4881
4883
|
/* FORWARDED */
|
|
4882
4884
|
}, 8, ["injection-key"])
|
|
4883
4885
|
])
|
|
4884
|
-
], 10, _hoisted_1$
|
|
4886
|
+
], 10, _hoisted_1$_);
|
|
4885
4887
|
}
|
|
4886
|
-
const OnyxBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4888
|
+
const OnyxBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_render$1f], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxBreadcrumb/OnyxBreadcrumb.vue"]]);
|
|
4887
4889
|
const BUTTON_TYPES = ["button", "submit", "reset"];
|
|
4888
4890
|
const BUTTON_COLORS = ["primary", "neutral", "danger"];
|
|
4889
4891
|
const BUTTON_MODES = ["default", "outline", "plain"];
|
|
4890
|
-
const _sfc_main$
|
|
4892
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
4891
4893
|
__name: "OnyxCard",
|
|
4892
4894
|
props: {
|
|
4893
4895
|
density: { type: null, required: false },
|
|
@@ -4906,7 +4908,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
4906
4908
|
return __returned__;
|
|
4907
4909
|
}
|
|
4908
4910
|
});
|
|
4909
|
-
function _sfc_render$
|
|
4911
|
+
function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4910
4912
|
return openBlock(), createBlock(resolveDynamicComponent($setup.linkProps ? $setup.OnyxRouterLink : $setup.props.clickable ? "button" : "div"), mergeProps($setup.linkProps, {
|
|
4911
4913
|
class: ["onyx-component", "onyx-card", $setup.densityClass, "onyx-truncation-multiline", "onyx-text"]
|
|
4912
4914
|
}), {
|
|
@@ -4917,8 +4919,8 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4917
4919
|
/* FORWARDED */
|
|
4918
4920
|
}, 16, ["class"]);
|
|
4919
4921
|
}
|
|
4920
|
-
const OnyxCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4921
|
-
const _sfc_main$
|
|
4922
|
+
const OnyxCard = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$1e], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCard/OnyxCard.vue"]]);
|
|
4923
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
4922
4924
|
__name: "OnyxTooltip",
|
|
4923
4925
|
props: {
|
|
4924
4926
|
density: { type: null, required: false },
|
|
@@ -5073,8 +5075,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
5073
5075
|
return __returned__;
|
|
5074
5076
|
}
|
|
5075
5077
|
});
|
|
5076
|
-
const _hoisted_1$
|
|
5077
|
-
function _sfc_render$
|
|
5078
|
+
const _hoisted_1$Z = { class: "onyx-tooltip--content" };
|
|
5079
|
+
function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5078
5080
|
return openBlock(), createElementBlock(
|
|
5079
5081
|
"div",
|
|
5080
5082
|
{
|
|
@@ -5090,7 +5092,7 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5090
5092
|
style: $setup.tooltipStyles
|
|
5091
5093
|
}),
|
|
5092
5094
|
[
|
|
5093
|
-
createElementVNode("div", _hoisted_1$
|
|
5095
|
+
createElementVNode("div", _hoisted_1$Z, [
|
|
5094
5096
|
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
5095
5097
|
key: 0,
|
|
5096
5098
|
icon: $setup.props.icon,
|
|
@@ -5114,8 +5116,8 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5114
5116
|
/* CLASS, STYLE */
|
|
5115
5117
|
);
|
|
5116
5118
|
}
|
|
5117
|
-
const OnyxTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5118
|
-
const _sfc_main$
|
|
5119
|
+
const OnyxTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$1d], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTooltip/OnyxTooltip.vue"]]);
|
|
5120
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
5119
5121
|
__name: "OnyxCalendarCell",
|
|
5120
5122
|
props: {
|
|
5121
5123
|
density: { type: null, required: false },
|
|
@@ -5145,7 +5147,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
5145
5147
|
return __returned__;
|
|
5146
5148
|
}
|
|
5147
5149
|
});
|
|
5148
|
-
const _hoisted_1$
|
|
5150
|
+
const _hoisted_1$Y = { class: "onyx-calendar-cell__header" };
|
|
5149
5151
|
const _hoisted_2$M = { class: "onyx-calendar-cell__date-container" };
|
|
5150
5152
|
const _hoisted_3$u = {
|
|
5151
5153
|
key: 1,
|
|
@@ -5155,7 +5157,7 @@ const _hoisted_4$m = {
|
|
|
5155
5157
|
key: 0,
|
|
5156
5158
|
class: "onyx-calendar-cell__main"
|
|
5157
5159
|
};
|
|
5158
|
-
function _sfc_render$
|
|
5160
|
+
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5159
5161
|
return openBlock(), createElementBlock(
|
|
5160
5162
|
"td",
|
|
5161
5163
|
{
|
|
@@ -5181,7 +5183,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5181
5183
|
]
|
|
5182
5184
|
}), {
|
|
5183
5185
|
default: withCtx(() => [
|
|
5184
|
-
createElementVNode("div", _hoisted_1$
|
|
5186
|
+
createElementVNode("div", _hoisted_1$Y, [
|
|
5185
5187
|
createElementVNode("div", _hoisted_2$M, [
|
|
5186
5188
|
$setup.props.tooltipText ? (openBlock(), createBlock($setup["OnyxTooltip"], {
|
|
5187
5189
|
key: 0,
|
|
@@ -5220,8 +5222,8 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5220
5222
|
/* CLASS */
|
|
5221
5223
|
);
|
|
5222
5224
|
}
|
|
5223
|
-
const OnyxCalendarCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5224
|
-
const _sfc_main$
|
|
5225
|
+
const OnyxCalendarCell = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$1c], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCalendarCell/OnyxCalendarCell.vue"]]);
|
|
5226
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
5225
5227
|
__name: "OnyxIconButton",
|
|
5226
5228
|
props: {
|
|
5227
5229
|
density: { type: null, required: false },
|
|
@@ -5246,7 +5248,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
5246
5248
|
return __returned__;
|
|
5247
5249
|
}
|
|
5248
5250
|
});
|
|
5249
|
-
function _sfc_render$
|
|
5251
|
+
function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5250
5252
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
5251
5253
|
key: 0,
|
|
5252
5254
|
class: normalizeClass(["onyx-icon-button-skeleton", $setup.densityClass])
|
|
@@ -5274,8 +5276,8 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5274
5276
|
/* FORWARDED */
|
|
5275
5277
|
}, 16, ["aria-label", "title", "class"]));
|
|
5276
5278
|
}
|
|
5277
|
-
const OnyxIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5278
|
-
const _sfc_main$
|
|
5279
|
+
const OnyxIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$1b], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxIconButton/OnyxIconButton.vue"]]);
|
|
5280
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
5279
5281
|
__name: "OnyxTag",
|
|
5280
5282
|
props: {
|
|
5281
5283
|
density: { type: null, required: false },
|
|
@@ -5302,9 +5304,9 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
5302
5304
|
return __returned__;
|
|
5303
5305
|
}
|
|
5304
5306
|
});
|
|
5305
|
-
const _hoisted_1$
|
|
5307
|
+
const _hoisted_1$X = { class: "onyx-text--small onyx-truncation-ellipsis" };
|
|
5306
5308
|
const _hoisted_2$L = { class: "onyx-text--small onyx-truncation-ellipsis" };
|
|
5307
|
-
function _sfc_render$
|
|
5309
|
+
function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5308
5310
|
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
5309
5311
|
key: 0,
|
|
5310
5312
|
class: normalizeClass(["onyx-tag-skeleton", $setup.densityClass])
|
|
@@ -5327,7 +5329,7 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5327
5329
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
5328
5330
|
createElementVNode(
|
|
5329
5331
|
"span",
|
|
5330
|
-
_hoisted_1$
|
|
5332
|
+
_hoisted_1$X,
|
|
5331
5333
|
toDisplayString($setup.props.label),
|
|
5332
5334
|
1
|
|
5333
5335
|
/* TEXT */
|
|
@@ -5368,10 +5370,10 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5368
5370
|
/* CLASS */
|
|
5369
5371
|
));
|
|
5370
5372
|
}
|
|
5371
|
-
const OnyxTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5372
|
-
const __default__$
|
|
5373
|
-
const _sfc_main$
|
|
5374
|
-
...__default__$
|
|
5373
|
+
const OnyxTag = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$1a], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTag/OnyxTag.vue"]]);
|
|
5374
|
+
const __default__$8 = {};
|
|
5375
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
5376
|
+
...__default__$8,
|
|
5375
5377
|
__name: "OnyxCalendar",
|
|
5376
5378
|
props: {
|
|
5377
5379
|
density: { type: null, required: false },
|
|
@@ -5485,12 +5487,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
5485
5487
|
return __returned__;
|
|
5486
5488
|
}
|
|
5487
5489
|
});
|
|
5488
|
-
const _hoisted_1$
|
|
5490
|
+
const _hoisted_1$W = { class: "onyx-calendar__header" };
|
|
5489
5491
|
const _hoisted_2$K = { class: "control-container time-control-container" };
|
|
5490
5492
|
const _hoisted_3$t = { class: "control-container" };
|
|
5491
5493
|
const _hoisted_4$l = { class: "onyx-calendar__body" };
|
|
5492
5494
|
const _hoisted_5$g = ["abbr"];
|
|
5493
|
-
function _sfc_render$
|
|
5495
|
+
function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5494
5496
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
5495
5497
|
"div",
|
|
5496
5498
|
{
|
|
@@ -5511,7 +5513,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5511
5513
|
class: normalizeClass(["onyx-component", "onyx-calendar", `onyx-calendar--${$setup.calendarSize}`, $setup.densityClass])
|
|
5512
5514
|
},
|
|
5513
5515
|
[
|
|
5514
|
-
createElementVNode("div", _hoisted_1$
|
|
5516
|
+
createElementVNode("div", _hoisted_1$W, [
|
|
5515
5517
|
createElementVNode("div", _hoisted_2$K, [
|
|
5516
5518
|
createVNode($setup["OnyxSystemButton"], {
|
|
5517
5519
|
label: $setup.t("calendar.todayButton.label"),
|
|
@@ -5651,7 +5653,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5651
5653
|
/* CLASS */
|
|
5652
5654
|
));
|
|
5653
5655
|
}
|
|
5654
|
-
const OnyxCalendar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5656
|
+
const OnyxCalendar = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$19], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCalendar/OnyxCalendar.vue"]]);
|
|
5655
5657
|
const useRequired = (props, requiredMarker) => ({
|
|
5656
5658
|
/**
|
|
5657
5659
|
* Class that configures which type of required marker is used.
|
|
@@ -5867,7 +5869,7 @@ const formatMinMax = (locale, type, value) => {
|
|
|
5867
5869
|
};
|
|
5868
5870
|
return date.toLocaleString(locale, format);
|
|
5869
5871
|
};
|
|
5870
|
-
const _sfc_main$
|
|
5872
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
5871
5873
|
__name: "OnyxErrorTooltip",
|
|
5872
5874
|
props: {
|
|
5873
5875
|
errorMessages: { type: Object, required: false },
|
|
@@ -5883,13 +5885,13 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
5883
5885
|
return __returned__;
|
|
5884
5886
|
}
|
|
5885
5887
|
});
|
|
5886
|
-
const _hoisted_1$
|
|
5888
|
+
const _hoisted_1$V = { class: "onyx-component" };
|
|
5887
5889
|
const _hoisted_2$J = {
|
|
5888
5890
|
key: 0,
|
|
5889
5891
|
ref: "targetRef"
|
|
5890
5892
|
};
|
|
5891
|
-
function _sfc_render$
|
|
5892
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5893
|
+
function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5894
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
5893
5895
|
!$setup.tooltipError || $setup.props.disabled ? (openBlock(), createElementBlock(
|
|
5894
5896
|
"div",
|
|
5895
5897
|
_hoisted_2$J,
|
|
@@ -5925,8 +5927,8 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5925
5927
|
], 8, ["to"])) : createCommentVNode("v-if", true)
|
|
5926
5928
|
]);
|
|
5927
5929
|
}
|
|
5928
|
-
const OnyxErrorTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5929
|
-
const _sfc_main$
|
|
5930
|
+
const OnyxErrorTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["render", _sfc_render$18], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxErrorTooltip/OnyxErrorTooltip.vue"]]);
|
|
5931
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
5930
5932
|
...{ inheritAttrs: false },
|
|
5931
5933
|
__name: "OnyxCheckbox",
|
|
5932
5934
|
props: {
|
|
@@ -5973,10 +5975,10 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
5973
5975
|
return __returned__;
|
|
5974
5976
|
}
|
|
5975
5977
|
});
|
|
5976
|
-
const _hoisted_1$
|
|
5978
|
+
const _hoisted_1$U = ["title"];
|
|
5977
5979
|
const _hoisted_2$I = { class: "onyx-checkbox__container" };
|
|
5978
5980
|
const _hoisted_3$s = ["aria-label", "indeterminate", "disabled", "required", "value", "autofocus"];
|
|
5979
|
-
function _sfc_render$
|
|
5981
|
+
function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5980
5982
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
5981
5983
|
"div",
|
|
5982
5984
|
mergeProps({
|
|
@@ -6055,13 +6057,13 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6055
6057
|
64
|
|
6056
6058
|
/* STABLE_FRAGMENT */
|
|
6057
6059
|
)) : createCommentVNode("v-if", true)
|
|
6058
|
-
], 10, _hoisted_1$
|
|
6060
|
+
], 10, _hoisted_1$U)
|
|
6059
6061
|
]),
|
|
6060
6062
|
_: 1
|
|
6061
6063
|
/* STABLE */
|
|
6062
6064
|
}, 16, ["disabled", "error-messages"]));
|
|
6063
6065
|
}
|
|
6064
|
-
const OnyxCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6066
|
+
const OnyxCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", _sfc_render$17], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCheckbox/OnyxCheckbox.vue"]]);
|
|
6065
6067
|
const useSelectAllCheckboxState = (enabledOptionValues, modelValue) => computed(() => {
|
|
6066
6068
|
const currentValues = modelValue.value.filter(
|
|
6067
6069
|
(value) => enabledOptionValues.value.includes(value)
|
|
@@ -6096,7 +6098,7 @@ const useCheckAll = (enabledOptionValues, modelValue, onChangeCallback) => {
|
|
|
6096
6098
|
}
|
|
6097
6099
|
};
|
|
6098
6100
|
};
|
|
6099
|
-
const _sfc_main$
|
|
6101
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
6100
6102
|
__name: "OnyxInfoTooltip",
|
|
6101
6103
|
props: {
|
|
6102
6104
|
text: { type: String, required: true },
|
|
@@ -6132,9 +6134,9 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
6132
6134
|
return __returned__;
|
|
6133
6135
|
}
|
|
6134
6136
|
});
|
|
6135
|
-
const _hoisted_1$
|
|
6136
|
-
function _sfc_render$
|
|
6137
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
6137
|
+
const _hoisted_1$T = { class: "onyx-component onyx-info-tooltip" };
|
|
6138
|
+
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6139
|
+
return openBlock(), createElementBlock("span", _hoisted_1$T, [
|
|
6138
6140
|
$setup.triggerType === "click" ? (openBlock(), createBlock($setup["OnyxTooltip"], mergeProps({ key: 0 }, $setup.tooltipProps, {
|
|
6139
6141
|
open: $setup.isVisible,
|
|
6140
6142
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => $setup.isVisible = $event)
|
|
@@ -6192,8 +6194,8 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6192
6194
|
))
|
|
6193
6195
|
]);
|
|
6194
6196
|
}
|
|
6195
|
-
const OnyxInfoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6196
|
-
const _sfc_main$
|
|
6197
|
+
const OnyxInfoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$16], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxInfoTooltip/OnyxInfoTooltip.vue"]]);
|
|
6198
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
6197
6199
|
__name: "OnyxCheckboxGroup",
|
|
6198
6200
|
props: {
|
|
6199
6201
|
truncation: { type: null, required: false, default: "ellipsis" },
|
|
@@ -6251,12 +6253,12 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
6251
6253
|
return __returned__;
|
|
6252
6254
|
}
|
|
6253
6255
|
});
|
|
6254
|
-
const _hoisted_1$
|
|
6256
|
+
const _hoisted_1$S = ["disabled", "aria-label"];
|
|
6255
6257
|
const _hoisted_2$H = {
|
|
6256
6258
|
key: 0,
|
|
6257
6259
|
class: "onyx-checkbox-group__label"
|
|
6258
6260
|
};
|
|
6259
|
-
function _sfc_render$
|
|
6261
|
+
function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6260
6262
|
return openBlock(), createElementBlock("fieldset", {
|
|
6261
6263
|
class: normalizeClass(["onyx-component", "onyx-checkbox-group", $setup.densityClass]),
|
|
6262
6264
|
disabled: $setup.disabled,
|
|
@@ -6342,12 +6344,12 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6342
6344
|
2
|
|
6343
6345
|
/* CLASS */
|
|
6344
6346
|
)
|
|
6345
|
-
], 10, _hoisted_1$
|
|
6347
|
+
], 10, _hoisted_1$S);
|
|
6346
6348
|
}
|
|
6347
|
-
const OnyxCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6349
|
+
const OnyxCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$15], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue"]]);
|
|
6348
6350
|
const CODE_TABS_INJECTION_KEY = Symbol();
|
|
6349
6351
|
const TABS_INJECTION_KEY = Symbol();
|
|
6350
|
-
const _sfc_main$
|
|
6352
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
6351
6353
|
...{ inheritAttrs: false },
|
|
6352
6354
|
__name: "OnyxTab",
|
|
6353
6355
|
props: {
|
|
@@ -6378,9 +6380,9 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
6378
6380
|
return __returned__;
|
|
6379
6381
|
}
|
|
6380
6382
|
});
|
|
6381
|
-
const _hoisted_1$
|
|
6383
|
+
const _hoisted_1$R = ["disabled"];
|
|
6382
6384
|
const _hoisted_2$G = { class: "onyx-tab__label" };
|
|
6383
|
-
function _sfc_render$
|
|
6385
|
+
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6384
6386
|
return openBlock(), createElementBlock(
|
|
6385
6387
|
Fragment,
|
|
6386
6388
|
null,
|
|
@@ -6410,7 +6412,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6410
6412
|
)
|
|
6411
6413
|
])
|
|
6412
6414
|
])
|
|
6413
|
-
], 16, _hoisted_1$
|
|
6415
|
+
], 16, _hoisted_1$R)),
|
|
6414
6416
|
$setup.tabsContext?.panel.value ? (openBlock(), createBlock(Teleport, {
|
|
6415
6417
|
key: 2,
|
|
6416
6418
|
to: $setup.tabsContext?.panel.value,
|
|
@@ -6435,10 +6437,10 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6435
6437
|
/* STABLE_FRAGMENT */
|
|
6436
6438
|
);
|
|
6437
6439
|
}
|
|
6438
|
-
const OnyxTab = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6439
|
-
const __default__$
|
|
6440
|
-
const _sfc_main$
|
|
6441
|
-
...__default__$
|
|
6440
|
+
const OnyxTab = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$14], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTab/OnyxTab.vue"]]);
|
|
6441
|
+
const __default__$7 = {};
|
|
6442
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
6443
|
+
...__default__$7,
|
|
6442
6444
|
__name: "OnyxCodeTab",
|
|
6443
6445
|
props: {
|
|
6444
6446
|
value: { type: null, required: true },
|
|
@@ -6479,7 +6481,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
6479
6481
|
return __returned__;
|
|
6480
6482
|
}
|
|
6481
6483
|
});
|
|
6482
|
-
const _hoisted_1$
|
|
6484
|
+
const _hoisted_1$Q = {
|
|
6483
6485
|
key: 0,
|
|
6484
6486
|
class: "onyx-code-tab__skeletons"
|
|
6485
6487
|
};
|
|
@@ -6487,7 +6489,7 @@ const _hoisted_2$F = {
|
|
|
6487
6489
|
key: 0,
|
|
6488
6490
|
class: "onyx-code-tab__language onyx-text--small"
|
|
6489
6491
|
};
|
|
6490
|
-
function _sfc_render$
|
|
6492
|
+
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6491
6493
|
return openBlock(), createBlock($setup["OnyxTab"], mergeProps($setup.tabProps, {
|
|
6492
6494
|
label: $setup.label,
|
|
6493
6495
|
class: "onyx-code-tab",
|
|
@@ -6508,7 +6510,7 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6508
6510
|
])
|
|
6509
6511
|
]),
|
|
6510
6512
|
default: withCtx(() => [
|
|
6511
|
-
$setup.skeleton ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6513
|
+
$setup.skeleton ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
6512
6514
|
(openBlock(), createElementBlock(
|
|
6513
6515
|
Fragment,
|
|
6514
6516
|
null,
|
|
@@ -6552,8 +6554,8 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6552
6554
|
/* FORWARDED */
|
|
6553
6555
|
}, 16, ["label", "disabled"]);
|
|
6554
6556
|
}
|
|
6555
|
-
const OnyxCodeTab = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6556
|
-
const _sfc_main$
|
|
6557
|
+
const OnyxCodeTab = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$13], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCodeTab/OnyxCodeTab.vue"]]);
|
|
6558
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
6557
6559
|
__name: "OnyxTabs",
|
|
6558
6560
|
props: {
|
|
6559
6561
|
density: { type: null, required: false },
|
|
@@ -6592,12 +6594,12 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
6592
6594
|
return __returned__;
|
|
6593
6595
|
}
|
|
6594
6596
|
});
|
|
6595
|
-
const _hoisted_1$
|
|
6597
|
+
const _hoisted_1$P = { class: "onyx-tabs__header" };
|
|
6596
6598
|
const _hoisted_2$E = {
|
|
6597
6599
|
key: 0,
|
|
6598
6600
|
class: "onyx-tabs__actions"
|
|
6599
6601
|
};
|
|
6600
|
-
function _sfc_render$
|
|
6602
|
+
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6601
6603
|
return openBlock(), createElementBlock(
|
|
6602
6604
|
"div",
|
|
6603
6605
|
{
|
|
@@ -6610,7 +6612,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6610
6612
|
])
|
|
6611
6613
|
},
|
|
6612
6614
|
[
|
|
6613
|
-
createElementVNode("div", _hoisted_1$
|
|
6615
|
+
createElementVNode("div", _hoisted_1$P, [
|
|
6614
6616
|
createElementVNode(
|
|
6615
6617
|
"div",
|
|
6616
6618
|
mergeProps($setup.headless.elements.tablist.value, { class: "onyx-tabs__tablist" }),
|
|
@@ -6629,10 +6631,10 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6629
6631
|
/* CLASS */
|
|
6630
6632
|
);
|
|
6631
6633
|
}
|
|
6632
|
-
const OnyxTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6633
|
-
const __default__$
|
|
6634
|
-
const _sfc_main$
|
|
6635
|
-
...__default__$
|
|
6634
|
+
const OnyxTabs = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$12], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTabs/OnyxTabs.vue"]]);
|
|
6635
|
+
const __default__$6 = {};
|
|
6636
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
6637
|
+
...__default__$6,
|
|
6636
6638
|
__name: "OnyxCodeTabs",
|
|
6637
6639
|
props: {
|
|
6638
6640
|
skeleton: { type: Boolean, required: false },
|
|
@@ -6673,7 +6675,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
6673
6675
|
return __returned__;
|
|
6674
6676
|
}
|
|
6675
6677
|
});
|
|
6676
|
-
function _sfc_render$
|
|
6678
|
+
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6677
6679
|
return openBlock(), createBlock($setup["OnyxTabs"], mergeProps($setup.tabsProps, {
|
|
6678
6680
|
modelValue: $setup.modelValue,
|
|
6679
6681
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.modelValue = $event),
|
|
@@ -6706,13 +6708,13 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6706
6708
|
/* FORWARDED */
|
|
6707
6709
|
}, 16, ["modelValue", "label"]);
|
|
6708
6710
|
}
|
|
6709
|
-
const OnyxCodeTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6711
|
+
const OnyxCodeTabs = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxCodeTabs/OnyxCodeTabs.vue"]]);
|
|
6710
6712
|
const escapeCSS = (key) => {
|
|
6711
6713
|
const name = typeof key === "symbol" && key.description ? key.description : String(key);
|
|
6712
6714
|
if (globalThis.window && window.CSS) return CSS.escape(name);
|
|
6713
6715
|
return name.replace(/\W/g, "-");
|
|
6714
6716
|
};
|
|
6715
|
-
const _sfc_main
|
|
6717
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
6716
6718
|
__name: "OnyxEmpty",
|
|
6717
6719
|
props: {
|
|
6718
6720
|
density: { type: null, required: false }
|
|
@@ -6729,12 +6731,12 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
6729
6731
|
return __returned__;
|
|
6730
6732
|
}
|
|
6731
6733
|
});
|
|
6732
|
-
const _hoisted_1$
|
|
6734
|
+
const _hoisted_1$O = { class: "onyx-empty__label onyx-text onyx-truncation-multiline" };
|
|
6733
6735
|
const _hoisted_2$D = {
|
|
6734
6736
|
key: 0,
|
|
6735
6737
|
class: "onyx-empty__buttons"
|
|
6736
6738
|
};
|
|
6737
|
-
function _sfc_render
|
|
6739
|
+
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6738
6740
|
return openBlock(), createElementBlock(
|
|
6739
6741
|
"div",
|
|
6740
6742
|
{
|
|
@@ -6747,7 +6749,7 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6747
6749
|
size: "48px"
|
|
6748
6750
|
}, null, 8, ["icon"])
|
|
6749
6751
|
]),
|
|
6750
|
-
createElementVNode("div", _hoisted_1$
|
|
6752
|
+
createElementVNode("div", _hoisted_1$O, [
|
|
6751
6753
|
renderSlot(_ctx.$slots, "default")
|
|
6752
6754
|
]),
|
|
6753
6755
|
!!$setup.slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
|
|
@@ -6758,8 +6760,8 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6758
6760
|
/* CLASS */
|
|
6759
6761
|
);
|
|
6760
6762
|
}
|
|
6761
|
-
const OnyxEmpty = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
6762
|
-
const _sfc_main
|
|
6763
|
+
const OnyxEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxEmpty/OnyxEmpty.vue"]]);
|
|
6764
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
6763
6765
|
__name: "OnyxTable",
|
|
6764
6766
|
props: {
|
|
6765
6767
|
density: { type: null, required: false },
|
|
@@ -6790,7 +6792,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
6790
6792
|
return __returned__;
|
|
6791
6793
|
}
|
|
6792
6794
|
});
|
|
6793
|
-
const _hoisted_1$
|
|
6795
|
+
const _hoisted_1$N = {
|
|
6794
6796
|
key: 0,
|
|
6795
6797
|
class: "onyx-table-wrapper__top"
|
|
6796
6798
|
};
|
|
@@ -6812,7 +6814,7 @@ const _hoisted_13 = {
|
|
|
6812
6814
|
key: 1,
|
|
6813
6815
|
class: "onyx-table-wrapper__bottom"
|
|
6814
6816
|
};
|
|
6815
|
-
function _sfc_render
|
|
6817
|
+
function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6816
6818
|
return openBlock(), createElementBlock(
|
|
6817
6819
|
"div",
|
|
6818
6820
|
{
|
|
@@ -6820,7 +6822,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6820
6822
|
style: normalizeStyle($setup.style)
|
|
6821
6823
|
},
|
|
6822
6824
|
[
|
|
6823
|
-
!!$setup.slots.headline || !!$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6825
|
+
!!$setup.slots.headline || !!$setup.slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
6824
6826
|
createElementVNode("div", { id: $setup.headlineId }, [
|
|
6825
6827
|
renderSlot(_ctx.$slots, "headline")
|
|
6826
6828
|
], 8, _hoisted_2$C),
|
|
@@ -6917,8 +6919,8 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6917
6919
|
/* CLASS, STYLE */
|
|
6918
6920
|
);
|
|
6919
6921
|
}
|
|
6920
|
-
const OnyxTable = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
6921
|
-
const _sfc_main$
|
|
6922
|
+
const OnyxTable = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxTable/OnyxTable.vue"]]);
|
|
6923
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
6922
6924
|
__name: "OnyxDataGridRenderer",
|
|
6923
6925
|
props: {
|
|
6924
6926
|
density: { type: null, required: false },
|
|
@@ -6955,7 +6957,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
6955
6957
|
return __returned__;
|
|
6956
6958
|
}
|
|
6957
6959
|
});
|
|
6958
|
-
function _sfc_render$
|
|
6960
|
+
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6959
6961
|
return openBlock(), createBlock($setup["OnyxTable"], mergeProps({ class: "onyx-data-grid" }, $setup.tableProps, {
|
|
6960
6962
|
"scroll-container-attrs": $setup.mergeVueProps($setup.props.scrollContainerAttrs, { style: $setup.columnStyle })
|
|
6961
6963
|
}), createSlots({
|
|
@@ -7062,8 +7064,8 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7062
7064
|
})
|
|
7063
7065
|
]), 1040, ["scroll-container-attrs"]);
|
|
7064
7066
|
}
|
|
7065
|
-
const OnyxDataGridRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7066
|
-
const _sfc_main$
|
|
7067
|
+
const OnyxDataGridRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDataGrid/OnyxDataGridRenderer/OnyxDataGridRenderer.vue"]]);
|
|
7068
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
7067
7069
|
...{ inheritAttrs: false },
|
|
7068
7070
|
__name: "OnyxMiniSearch",
|
|
7069
7071
|
props: {
|
|
@@ -7103,9 +7105,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
7103
7105
|
return __returned__;
|
|
7104
7106
|
}
|
|
7105
7107
|
});
|
|
7106
|
-
const _hoisted_1$
|
|
7108
|
+
const _hoisted_1$M = ["autofocus", "placeholder", "aria-label"];
|
|
7107
7109
|
const _hoisted_2$B = ["aria-label"];
|
|
7108
|
-
function _sfc_render$
|
|
7110
|
+
function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7109
7111
|
return openBlock(), createElementBlock(
|
|
7110
7112
|
"div",
|
|
7111
7113
|
mergeProps({
|
|
@@ -7124,7 +7126,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7124
7126
|
size: "1"
|
|
7125
7127
|
}, $setup.restAttrs, {
|
|
7126
7128
|
"aria-label": $setup.props.label
|
|
7127
|
-
}), null, 16, _hoisted_1$
|
|
7129
|
+
}), null, 16, _hoisted_1$M), [
|
|
7128
7130
|
[vModelText, $setup.modelValue]
|
|
7129
7131
|
]),
|
|
7130
7132
|
createElementVNode("button", {
|
|
@@ -7147,11 +7149,11 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7147
7149
|
/* FULL_PROPS */
|
|
7148
7150
|
);
|
|
7149
7151
|
}
|
|
7150
|
-
const OnyxMiniSearch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7152
|
+
const OnyxMiniSearch = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxMiniSearch/OnyxMiniSearch.vue"]]);
|
|
7151
7153
|
const prepareMapping = (features, key) => features.flatMap((f) => f[key]).filter((f) => f?.func).sort((a, b) => (a?.order ?? 0) - (b?.order ?? 0));
|
|
7152
7154
|
const applyMapping = (mapping, input2) => mapping.reduce((output, m) => m.func(output), input2);
|
|
7153
7155
|
const DataGridRowOptionsSymbol = Symbol("RowOptions");
|
|
7154
|
-
const _sfc_main$
|
|
7156
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
7155
7157
|
__name: "HeaderCell",
|
|
7156
7158
|
props: {
|
|
7157
7159
|
label: { type: String, required: true }
|
|
@@ -7165,14 +7167,14 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
7165
7167
|
return __returned__;
|
|
7166
7168
|
}
|
|
7167
7169
|
});
|
|
7168
|
-
const _hoisted_1$
|
|
7170
|
+
const _hoisted_1$L = { class: "onyx-component onyx-data-grid-header-cell" };
|
|
7169
7171
|
const _hoisted_2$A = { class: "onyx-data-grid-header-cell__label" };
|
|
7170
7172
|
const _hoisted_3$q = {
|
|
7171
7173
|
key: 0,
|
|
7172
7174
|
class: "onyx-data-grid-header-cell__actions"
|
|
7173
7175
|
};
|
|
7174
|
-
function _sfc_render$
|
|
7175
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7176
|
+
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7177
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
7176
7178
|
createElementVNode(
|
|
7177
7179
|
"span",
|
|
7178
7180
|
_hoisted_2$A,
|
|
@@ -7185,7 +7187,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7185
7187
|
])) : createCommentVNode("v-if", true)
|
|
7186
7188
|
]);
|
|
7187
7189
|
}
|
|
7188
|
-
const HeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7190
|
+
const HeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxDataGrid/features/HeaderCell.vue"]]);
|
|
7189
7191
|
const FALLBACK_RENDER_VALUE = "-";
|
|
7190
7192
|
const fallback = (opts) => opts?.fallback ?? FALLBACK_RENDER_VALUE;
|
|
7191
7193
|
const createTypeRenderer = (typeRenderer) => Object.freeze(typeRenderer);
|
|
@@ -7678,169 +7680,20 @@ const formatBytesToString = (locale, bytes) => {
|
|
|
7678
7680
|
unitDisplay: "narrow"
|
|
7679
7681
|
}).format(value);
|
|
7680
7682
|
};
|
|
7681
|
-
const
|
|
7682
|
-
|
|
7683
|
+
const useErrorClass = (showError) => computed(() => {
|
|
7684
|
+
if (showError.value === true) {
|
|
7685
|
+
return "onyx-form-element--immediate-invalid";
|
|
7686
|
+
}
|
|
7687
|
+
if (showError.value === false) {
|
|
7688
|
+
return "onyx-form-element--suppress-invalid";
|
|
7689
|
+
}
|
|
7690
|
+
return "onyx-form-element--touched-invalid";
|
|
7691
|
+
});
|
|
7692
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
7693
|
+
__name: "FormMessage",
|
|
7683
7694
|
props: {
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
pages: { type: Number, required: true },
|
|
7687
|
-
disabled: { type: Boolean, required: false },
|
|
7688
|
-
skeleton: { type: [Symbol, Boolean, Number], required: false, default: SKELETON_INJECTED_SYMBOL },
|
|
7689
|
-
type: { type: String, required: false }
|
|
7690
|
-
},
|
|
7691
|
-
emits: ["update:modelValue"],
|
|
7692
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
7693
|
-
__expose();
|
|
7694
|
-
const props = __props;
|
|
7695
|
-
const emit = __emit;
|
|
7696
|
-
const { t } = injectI18n();
|
|
7697
|
-
const { densityClass } = useDensity(props);
|
|
7698
|
-
const skeleton = useSkeletonContext(props);
|
|
7699
|
-
const hasReachedMin = computed(() => props.modelValue <= 1);
|
|
7700
|
-
const hasReachedMax = computed(() => props.modelValue >= props.pages);
|
|
7701
|
-
const displayPagesNumbers = computed(() => {
|
|
7702
|
-
const currentPage = props.modelValue;
|
|
7703
|
-
const totalPages = props.pages;
|
|
7704
|
-
const pagesToShow = /* @__PURE__ */ new Set();
|
|
7705
|
-
pagesToShow.add(1);
|
|
7706
|
-
pagesToShow.add(totalPages);
|
|
7707
|
-
pagesToShow.add(currentPage);
|
|
7708
|
-
pagesToShow.add(currentPage - 1);
|
|
7709
|
-
pagesToShow.add(currentPage + 1);
|
|
7710
|
-
if (currentPage === 1) pagesToShow.add(3);
|
|
7711
|
-
if (currentPage === totalPages) pagesToShow.add(totalPages - 2);
|
|
7712
|
-
const uniqueSortedPages = Array.from(pagesToShow).filter((page) => page >= 1 && page <= totalPages).sort((a, b) => a - b);
|
|
7713
|
-
const finalPages = [];
|
|
7714
|
-
let lastPageAdded = null;
|
|
7715
|
-
for (const page of uniqueSortedPages) {
|
|
7716
|
-
if (lastPageAdded !== null && page > lastPageAdded + 1) {
|
|
7717
|
-
finalPages.push("morePages");
|
|
7718
|
-
}
|
|
7719
|
-
finalPages.push(page);
|
|
7720
|
-
lastPageAdded = page;
|
|
7721
|
-
}
|
|
7722
|
-
return finalPages;
|
|
7723
|
-
});
|
|
7724
|
-
const __returned__ = { props, emit, t, densityClass, skeleton, hasReachedMin, hasReachedMax, displayPagesNumbers, get iconChevronLeftSmall() {
|
|
7725
|
-
return iconChevronLeftSmall;
|
|
7726
|
-
}, get iconChevronRightSmall() {
|
|
7727
|
-
return iconChevronRightSmall;
|
|
7728
|
-
}, OnyxIcon, OnyxSkeleton, OnyxVisuallyHidden };
|
|
7729
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
7730
|
-
return __returned__;
|
|
7731
|
-
}
|
|
7732
|
-
});
|
|
7733
|
-
const _hoisted_1$J = ["aria-label"];
|
|
7734
|
-
const _hoisted_2$z = ["aria-label", "disabled"];
|
|
7735
|
-
const _hoisted_3$p = ["aria-label", "disabled", "onClick"];
|
|
7736
|
-
const _hoisted_4$j = ["aria-label"];
|
|
7737
|
-
const _hoisted_5$e = ["aria-label", "disabled"];
|
|
7738
|
-
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7739
|
-
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
7740
|
-
key: 0,
|
|
7741
|
-
class: normalizeClass([
|
|
7742
|
-
"onyx-pagination-skeleton",
|
|
7743
|
-
"onyx-pagination-skeleton--inline",
|
|
7744
|
-
"onyx-text",
|
|
7745
|
-
$setup.densityClass
|
|
7746
|
-
])
|
|
7747
|
-
}, null, 8, ["class"])) : (openBlock(), createElementBlock("div", {
|
|
7748
|
-
key: 1,
|
|
7749
|
-
class: normalizeClass([
|
|
7750
|
-
"onyx-component",
|
|
7751
|
-
"onyx-pagination",
|
|
7752
|
-
"onyx-pagination--inline",
|
|
7753
|
-
"onyx-text",
|
|
7754
|
-
$setup.densityClass
|
|
7755
|
-
]),
|
|
7756
|
-
role: "group",
|
|
7757
|
-
"aria-label": $setup.t("pagination.label")
|
|
7758
|
-
}, [
|
|
7759
|
-
createElementVNode("button", {
|
|
7760
|
-
class: "onyx-pagination__navigate-button",
|
|
7761
|
-
"aria-label": $setup.t("pagination.previous"),
|
|
7762
|
-
type: "button",
|
|
7763
|
-
disabled: $setup.props.disabled || $setup.hasReachedMin,
|
|
7764
|
-
onClick: _cache[0] || (_cache[0] = ($event) => $setup.emit("update:modelValue", $setup.props.modelValue - 1))
|
|
7765
|
-
}, [
|
|
7766
|
-
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronLeftSmall }, null, 8, ["icon"])
|
|
7767
|
-
], 8, _hoisted_2$z),
|
|
7768
|
-
(openBlock(true), createElementBlock(
|
|
7769
|
-
Fragment,
|
|
7770
|
-
null,
|
|
7771
|
-
renderList($setup.displayPagesNumbers, (pageNumber) => {
|
|
7772
|
-
return openBlock(), createElementBlock(
|
|
7773
|
-
Fragment,
|
|
7774
|
-
{ key: pageNumber },
|
|
7775
|
-
[
|
|
7776
|
-
typeof pageNumber === "number" ? (openBlock(), createElementBlock("button", {
|
|
7777
|
-
key: 0,
|
|
7778
|
-
class: normalizeClass([
|
|
7779
|
-
"onyx-pagination__page-button",
|
|
7780
|
-
{ "onyx-pagination__page-button--active": pageNumber === $setup.props.modelValue }
|
|
7781
|
-
]),
|
|
7782
|
-
"aria-label": $setup.t("pagination.buttonLabel", { page: pageNumber }),
|
|
7783
|
-
type: "button",
|
|
7784
|
-
disabled: $setup.props.disabled,
|
|
7785
|
-
onClick: ($event) => $setup.emit("update:modelValue", pageNumber)
|
|
7786
|
-
}, toDisplayString(pageNumber), 11, _hoisted_3$p)) : (openBlock(), createElementBlock("div", {
|
|
7787
|
-
key: 1,
|
|
7788
|
-
class: normalizeClass(["onyx-pagination__more-pages"]),
|
|
7789
|
-
"aria-label": $setup.t("pagination.morePages")
|
|
7790
|
-
}, [
|
|
7791
|
-
_cache[2] || (_cache[2] = createElementVNode(
|
|
7792
|
-
"span",
|
|
7793
|
-
{ "aria-hidden": "true" },
|
|
7794
|
-
"...",
|
|
7795
|
-
-1
|
|
7796
|
-
/* CACHED */
|
|
7797
|
-
)),
|
|
7798
|
-
createVNode($setup["OnyxVisuallyHidden"], null, {
|
|
7799
|
-
default: withCtx(() => [
|
|
7800
|
-
createTextVNode(
|
|
7801
|
-
toDisplayString($setup.t("pagination.morePages")),
|
|
7802
|
-
1
|
|
7803
|
-
/* TEXT */
|
|
7804
|
-
)
|
|
7805
|
-
]),
|
|
7806
|
-
_: 1
|
|
7807
|
-
/* STABLE */
|
|
7808
|
-
})
|
|
7809
|
-
], 8, _hoisted_4$j))
|
|
7810
|
-
],
|
|
7811
|
-
64
|
|
7812
|
-
/* STABLE_FRAGMENT */
|
|
7813
|
-
);
|
|
7814
|
-
}),
|
|
7815
|
-
128
|
|
7816
|
-
/* KEYED_FRAGMENT */
|
|
7817
|
-
)),
|
|
7818
|
-
createElementVNode("button", {
|
|
7819
|
-
class: "onyx-pagination__navigate-button",
|
|
7820
|
-
"aria-label": $setup.t("pagination.next"),
|
|
7821
|
-
type: "button",
|
|
7822
|
-
disabled: $setup.props.disabled || $setup.hasReachedMax,
|
|
7823
|
-
onClick: _cache[1] || (_cache[1] = ($event) => $setup.emit("update:modelValue", $setup.props.modelValue + 1))
|
|
7824
|
-
}, [
|
|
7825
|
-
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronRightSmall }, null, 8, ["icon"])
|
|
7826
|
-
], 8, _hoisted_5$e)
|
|
7827
|
-
], 10, _hoisted_1$J));
|
|
7828
|
-
}
|
|
7829
|
-
const OnyxInlinePagination = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$W], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxPagination/OnyxInlinePagination.vue"]]);
|
|
7830
|
-
const useErrorClass = (showError) => computed(() => {
|
|
7831
|
-
if (showError.value === true) {
|
|
7832
|
-
return "onyx-form-element--immediate-invalid";
|
|
7833
|
-
}
|
|
7834
|
-
if (showError.value === false) {
|
|
7835
|
-
return "onyx-form-element--suppress-invalid";
|
|
7836
|
-
}
|
|
7837
|
-
return "onyx-form-element--touched-invalid";
|
|
7838
|
-
});
|
|
7839
|
-
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
7840
|
-
__name: "FormMessage",
|
|
7841
|
-
props: {
|
|
7842
|
-
messages: { type: Object, required: true },
|
|
7843
|
-
type: { type: String, required: true }
|
|
7695
|
+
messages: { type: Object, required: true },
|
|
7696
|
+
type: { type: String, required: true }
|
|
7844
7697
|
},
|
|
7845
7698
|
setup(__props, { expose: __expose }) {
|
|
7846
7699
|
__expose();
|
|
@@ -7850,17 +7703,17 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
7850
7703
|
return __returned__;
|
|
7851
7704
|
}
|
|
7852
7705
|
});
|
|
7853
|
-
const _hoisted_1$
|
|
7706
|
+
const _hoisted_1$K = {
|
|
7854
7707
|
class: /* @__PURE__ */ normalizeClass(["onyx-truncation-ellipsis"])
|
|
7855
7708
|
};
|
|
7856
|
-
function _sfc_render$
|
|
7709
|
+
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7857
7710
|
return openBlock(), createBlock(resolveDynamicComponent($props.messages.hidden ? $setup.OnyxVisuallyHidden : "span"), {
|
|
7858
7711
|
class: normalizeClass(["onyx-component", "onyx-form-message", `onyx-form-message__${$setup.props.type}`])
|
|
7859
7712
|
}, {
|
|
7860
7713
|
default: withCtx(() => [
|
|
7861
7714
|
createElementVNode(
|
|
7862
7715
|
"span",
|
|
7863
|
-
_hoisted_1$
|
|
7716
|
+
_hoisted_1$K,
|
|
7864
7717
|
toDisplayString($setup.props.messages.shortMessage),
|
|
7865
7718
|
1
|
|
7866
7719
|
/* TEXT */
|
|
@@ -7878,8 +7731,8 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7878
7731
|
/* STABLE */
|
|
7879
7732
|
}, 8, ["class"]);
|
|
7880
7733
|
}
|
|
7881
|
-
const FormMessage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7882
|
-
const _sfc_main$
|
|
7734
|
+
const FormMessage = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFormElement/FormMessage.vue"]]);
|
|
7735
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
7883
7736
|
__name: "OnyxFormElement",
|
|
7884
7737
|
props: {
|
|
7885
7738
|
disabled: { type: [Boolean, Symbol], required: false },
|
|
@@ -7952,17 +7805,17 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
7952
7805
|
return __returned__;
|
|
7953
7806
|
}
|
|
7954
7807
|
});
|
|
7955
|
-
const _hoisted_1$
|
|
7808
|
+
const _hoisted_1$J = {
|
|
7956
7809
|
key: 0,
|
|
7957
7810
|
class: "onyx-form-element__label onyx-text--small"
|
|
7958
7811
|
};
|
|
7959
|
-
const _hoisted_2$
|
|
7960
|
-
const _hoisted_3$
|
|
7812
|
+
const _hoisted_2$z = ["for"];
|
|
7813
|
+
const _hoisted_3$p = {
|
|
7961
7814
|
key: 1,
|
|
7962
7815
|
class: "onyx-form-element__footer onyx-text--small"
|
|
7963
7816
|
};
|
|
7964
|
-
const _hoisted_4$
|
|
7965
|
-
function _sfc_render$
|
|
7817
|
+
const _hoisted_4$j = { class: "onyx-form-element__footer-messages" };
|
|
7818
|
+
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7966
7819
|
return openBlock(), createElementBlock(
|
|
7967
7820
|
"div",
|
|
7968
7821
|
{
|
|
@@ -7974,11 +7827,11 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7974
7827
|
])
|
|
7975
7828
|
},
|
|
7976
7829
|
[
|
|
7977
|
-
!$setup.props.hideLabel ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7830
|
+
!$setup.props.hideLabel ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
7978
7831
|
createElementVNode("label", {
|
|
7979
7832
|
for: $setup.props.id,
|
|
7980
7833
|
class: "onyx-truncation-ellipsis"
|
|
7981
|
-
}, toDisplayString($setup.props.label), 9, _hoisted_2$
|
|
7834
|
+
}, toDisplayString($setup.props.label), 9, _hoisted_2$z),
|
|
7982
7835
|
$setup.props.required ? (openBlock(), createElementBlock(
|
|
7983
7836
|
"span",
|
|
7984
7837
|
{
|
|
@@ -8009,8 +7862,8 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8009
7862
|
renderSlot(_ctx.$slots, "default", {
|
|
8010
7863
|
id: $setup.props.id
|
|
8011
7864
|
}),
|
|
8012
|
-
$setup.footer ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
8013
|
-
createElementVNode("span", _hoisted_4$
|
|
7865
|
+
$setup.footer ? (openBlock(), createElementBlock("div", _hoisted_3$p, [
|
|
7866
|
+
createElementVNode("span", _hoisted_4$j, [
|
|
8014
7867
|
$setup.footer.errorMessages ? (openBlock(), createBlock($setup["FormMessage"], {
|
|
8015
7868
|
key: 0,
|
|
8016
7869
|
class: "onyx-form-element__error-message",
|
|
@@ -8049,8 +7902,8 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8049
7902
|
/* CLASS */
|
|
8050
7903
|
);
|
|
8051
7904
|
}
|
|
8052
|
-
const OnyxFormElement = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8053
|
-
const _sfc_main$
|
|
7905
|
+
const OnyxFormElement = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$W], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFormElement/OnyxFormElement.vue"]]);
|
|
7906
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
8054
7907
|
...{ inheritAttrs: false },
|
|
8055
7908
|
__name: "OnyxSelectInput",
|
|
8056
7909
|
props: {
|
|
@@ -8133,9 +7986,9 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
8133
7986
|
return __returned__;
|
|
8134
7987
|
}
|
|
8135
7988
|
});
|
|
8136
|
-
const _hoisted_1$
|
|
8137
|
-
const _hoisted_2$
|
|
8138
|
-
function _sfc_render$
|
|
7989
|
+
const _hoisted_1$I = ["id", "readonly", "placeholder", "required", "disabled", "aria-label", "title", "value", "autofocus"];
|
|
7990
|
+
const _hoisted_2$y = ["aria-label", "title", "disabled"];
|
|
7991
|
+
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8139
7992
|
return $setup.skeleton ? (openBlock(), createElementBlock(
|
|
8140
7993
|
"div",
|
|
8141
7994
|
mergeProps({
|
|
@@ -8200,7 +8053,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8200
8053
|
autofocus: $setup.props.autofocus,
|
|
8201
8054
|
autocomplete: "off",
|
|
8202
8055
|
onKeydown: $setup.blockTyping
|
|
8203
|
-
}), null, 16, _hoisted_1$
|
|
8056
|
+
}), null, 16, _hoisted_1$I), [
|
|
8204
8057
|
[$setup["vCustomValidity"]]
|
|
8205
8058
|
]),
|
|
8206
8059
|
$setup.props.textMode === "preview" && $setup.selectionCount > 0 ? (openBlock(), createBlock($setup["OnyxTooltip"], {
|
|
@@ -8239,7 +8092,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8239
8092
|
disabled: $setup.disabled || $setup.props.readonly || $setup.props.loading
|
|
8240
8093
|
}, [
|
|
8241
8094
|
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronDownUp }, null, 8, ["icon"])
|
|
8242
|
-
], 8, _hoisted_2$
|
|
8095
|
+
], 8, _hoisted_2$y),
|
|
8243
8096
|
!$setup.props.hideSuccessIcon && $setup.successMessages ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
8244
8097
|
key: 2,
|
|
8245
8098
|
class: "onyx-select-input__check-icon",
|
|
@@ -8256,8 +8109,8 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8256
8109
|
/* FULL_PROPS */
|
|
8257
8110
|
));
|
|
8258
8111
|
}
|
|
8259
|
-
const OnyxSelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8260
|
-
const _sfc_main$
|
|
8112
|
+
const OnyxSelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSelectInput/OnyxSelectInput.vue"]]);
|
|
8113
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
8261
8114
|
__name: "OnyxSelectOption",
|
|
8262
8115
|
props: {
|
|
8263
8116
|
active: { type: Boolean, required: false, default: false },
|
|
@@ -8276,8 +8129,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
8276
8129
|
return __returned__;
|
|
8277
8130
|
}
|
|
8278
8131
|
});
|
|
8279
|
-
const _hoisted_1$
|
|
8280
|
-
function _sfc_render$
|
|
8132
|
+
const _hoisted_1$H = ["checked", "aria-labelledby", "disabled", "indeterminate"];
|
|
8133
|
+
function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8281
8134
|
return openBlock(), createBlock($setup["OnyxListItem"], mergeProps({ class: "onyx-component onyx-select-option" }, $setup.listItemProps, {
|
|
8282
8135
|
checked: !!_ctx.$attrs["aria-checked"],
|
|
8283
8136
|
selected: !!_ctx.$attrs["aria-selected"],
|
|
@@ -8294,7 +8147,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8294
8147
|
tabindex: "-1",
|
|
8295
8148
|
class: "onyx-select-option__checkbox",
|
|
8296
8149
|
type: "checkbox"
|
|
8297
|
-
}, null, 8, _hoisted_1$
|
|
8150
|
+
}, null, 8, _hoisted_1$H)) : createCommentVNode("v-if", true),
|
|
8298
8151
|
$setup.props.icon ? (openBlock(), createBlock($setup["OnyxIcon"], {
|
|
8299
8152
|
key: 1,
|
|
8300
8153
|
icon: $setup.props.icon
|
|
@@ -8315,8 +8168,8 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8315
8168
|
/* FORWARDED */
|
|
8316
8169
|
}, 16, ["checked", "selected", "disabled"]);
|
|
8317
8170
|
}
|
|
8318
|
-
const OnyxSelectOption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8319
|
-
const _sfc_main$
|
|
8171
|
+
const OnyxSelectOption = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$U], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSelectOption/OnyxSelectOption.vue"]]);
|
|
8172
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
8320
8173
|
__name: "OnyxSelect",
|
|
8321
8174
|
props: {
|
|
8322
8175
|
density: { type: null, required: false },
|
|
@@ -8586,24 +8439,24 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
8586
8439
|
return __returned__;
|
|
8587
8440
|
}
|
|
8588
8441
|
});
|
|
8589
|
-
const _hoisted_1$
|
|
8442
|
+
const _hoisted_1$G = {
|
|
8590
8443
|
ref: "selectRef",
|
|
8591
8444
|
class: "onyx-component onyx-select-wrapper"
|
|
8592
8445
|
};
|
|
8593
|
-
const _hoisted_2$
|
|
8446
|
+
const _hoisted_2$x = {
|
|
8594
8447
|
class: "onyx-select__wrapper",
|
|
8595
8448
|
tabindex: "-1"
|
|
8596
8449
|
};
|
|
8597
|
-
const _hoisted_3$
|
|
8450
|
+
const _hoisted_3$o = {
|
|
8598
8451
|
key: 0,
|
|
8599
8452
|
role: "group",
|
|
8600
8453
|
class: "onyx-select__group"
|
|
8601
8454
|
};
|
|
8602
|
-
const _hoisted_4$
|
|
8455
|
+
const _hoisted_4$i = {
|
|
8603
8456
|
role: "option",
|
|
8604
8457
|
"aria-selected": "false"
|
|
8605
8458
|
};
|
|
8606
|
-
const _hoisted_5$
|
|
8459
|
+
const _hoisted_5$e = {
|
|
8607
8460
|
key: 0,
|
|
8608
8461
|
role: "presentation",
|
|
8609
8462
|
class: "onyx-select__group-name onyx-text--small"
|
|
@@ -8620,10 +8473,10 @@ const _hoisted_8$4 = {
|
|
|
8620
8473
|
key: 0,
|
|
8621
8474
|
class: "onyx-select__description onyx-text--small"
|
|
8622
8475
|
};
|
|
8623
|
-
function _sfc_render$
|
|
8476
|
+
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8624
8477
|
return openBlock(), createElementBlock(
|
|
8625
8478
|
"div",
|
|
8626
|
-
_hoisted_1$
|
|
8479
|
+
_hoisted_1$G,
|
|
8627
8480
|
[
|
|
8628
8481
|
createVNode($setup["OnyxBasicPopover"], {
|
|
8629
8482
|
class: normalizeClass($setup.densityClass),
|
|
@@ -8642,7 +8495,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8642
8495
|
}), null, 16, ["show-focus", "autofocus"])
|
|
8643
8496
|
]),
|
|
8644
8497
|
content: withCtx(() => [
|
|
8645
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_2$
|
|
8498
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_2$x, [
|
|
8646
8499
|
$setup.props.withSearch ? (openBlock(), createBlock($setup["OnyxMiniSearch"], mergeProps({
|
|
8647
8500
|
key: 0,
|
|
8648
8501
|
ref: "miniSearchRef",
|
|
@@ -8657,8 +8510,8 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8657
8510
|
"div",
|
|
8658
8511
|
normalizeProps(guardReactiveProps($setup.listbox)),
|
|
8659
8512
|
[
|
|
8660
|
-
$setup.isEmptyMessage ? (openBlock(), createElementBlock("ul", _hoisted_3$
|
|
8661
|
-
createElementVNode("li", _hoisted_4$
|
|
8513
|
+
$setup.isEmptyMessage ? (openBlock(), createElementBlock("ul", _hoisted_3$o, [
|
|
8514
|
+
createElementVNode("li", _hoisted_4$i, [
|
|
8662
8515
|
renderSlot(_ctx.$slots, "empty", { defaultMessage: $setup.isEmptyMessage }, () => [
|
|
8663
8516
|
createVNode($setup["OnyxEmpty"], {
|
|
8664
8517
|
density: $setup.props.density
|
|
@@ -8727,7 +8580,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8727
8580
|
[
|
|
8728
8581
|
group.name !== "" ? (openBlock(), createElementBlock(
|
|
8729
8582
|
"li",
|
|
8730
|
-
_hoisted_5$
|
|
8583
|
+
_hoisted_5$e,
|
|
8731
8584
|
toDisplayString(group.name),
|
|
8732
8585
|
1
|
|
8733
8586
|
/* TEXT */
|
|
@@ -8812,7 +8665,233 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8812
8665
|
/* NEED_PATCH */
|
|
8813
8666
|
);
|
|
8814
8667
|
}
|
|
8815
|
-
const OnyxSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8668
|
+
const OnyxSelect = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$T], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxSelect/OnyxSelect.vue"]]);
|
|
8669
|
+
const __default__$5 = {};
|
|
8670
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
8671
|
+
...__default__$5,
|
|
8672
|
+
__name: "OnyxItemsPerPage",
|
|
8673
|
+
props: {
|
|
8674
|
+
density: { type: null, required: false },
|
|
8675
|
+
modelValue: { type: Number, required: true },
|
|
8676
|
+
options: { type: Array, required: true },
|
|
8677
|
+
disabled: { type: Boolean, required: false },
|
|
8678
|
+
labelAlignment: { type: String, required: false, default: "right" },
|
|
8679
|
+
skeleton: { type: [Symbol, Boolean, Number], required: false, default: SKELETON_INJECTED_SYMBOL },
|
|
8680
|
+
hideLabel: { type: Boolean, required: false }
|
|
8681
|
+
},
|
|
8682
|
+
emits: ["update:modelValue"],
|
|
8683
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
8684
|
+
__expose();
|
|
8685
|
+
const props = __props;
|
|
8686
|
+
const emit = __emit;
|
|
8687
|
+
const { t } = injectI18n();
|
|
8688
|
+
const { densityClass } = useDensity(props);
|
|
8689
|
+
const skeleton = useSkeletonContext(props);
|
|
8690
|
+
const modelValue = useVModel({
|
|
8691
|
+
key: "modelValue",
|
|
8692
|
+
props,
|
|
8693
|
+
emit
|
|
8694
|
+
});
|
|
8695
|
+
const selectOptions = computed(
|
|
8696
|
+
() => props.options.map((option) => ({ label: option.toString(), value: option }))
|
|
8697
|
+
);
|
|
8698
|
+
const id = useId();
|
|
8699
|
+
const __returned__ = { props, emit, t, densityClass, skeleton, modelValue, selectOptions, id, OnyxSelect, OnyxSkeleton };
|
|
8700
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
8701
|
+
return __returned__;
|
|
8702
|
+
}
|
|
8703
|
+
});
|
|
8704
|
+
const _hoisted_1$F = ["for"];
|
|
8705
|
+
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8706
|
+
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
8707
|
+
key: 0,
|
|
8708
|
+
class: normalizeClass(["onyx-items-per-page-skeleton", "onyx-text", $setup.densityClass])
|
|
8709
|
+
}, null, 8, ["class"])) : (openBlock(), createElementBlock(
|
|
8710
|
+
"div",
|
|
8711
|
+
{
|
|
8712
|
+
key: 1,
|
|
8713
|
+
class: normalizeClass([
|
|
8714
|
+
"onyx-component",
|
|
8715
|
+
"onyx-items-per-page",
|
|
8716
|
+
{ "onyx-items-per-page--reverse": $setup.props.labelAlignment === "left" },
|
|
8717
|
+
$setup.densityClass
|
|
8718
|
+
]),
|
|
8719
|
+
style: normalizeStyle({ "--onyx-items-per-page-character-count": $setup.modelValue.toString().length })
|
|
8720
|
+
},
|
|
8721
|
+
[
|
|
8722
|
+
createVNode($setup["OnyxSelect"], {
|
|
8723
|
+
id: $setup.id,
|
|
8724
|
+
modelValue: $setup.modelValue,
|
|
8725
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.modelValue = $event),
|
|
8726
|
+
options: $setup.selectOptions,
|
|
8727
|
+
disabled: $setup.props.disabled,
|
|
8728
|
+
"hide-label": "",
|
|
8729
|
+
"with-search": "",
|
|
8730
|
+
label: $setup.t("itemsPerPage.label"),
|
|
8731
|
+
"list-label": $setup.t("itemsPerPage.select.listLabel"),
|
|
8732
|
+
class: "onyx-items-per-page__select",
|
|
8733
|
+
alignment: $setup.props.labelAlignment === "right" || $setup.props.hideLabel ? "left" : "right"
|
|
8734
|
+
}, null, 8, ["id", "modelValue", "options", "disabled", "label", "list-label", "alignment"]),
|
|
8735
|
+
!$setup.props.hideLabel ? (openBlock(), createElementBlock("label", {
|
|
8736
|
+
key: 0,
|
|
8737
|
+
for: $setup.id,
|
|
8738
|
+
class: normalizeClass(["onyx-items-per-page__label", "onyx-truncation-ellipsis"])
|
|
8739
|
+
}, toDisplayString($setup.t("itemsPerPage.label")), 9, _hoisted_1$F)) : createCommentVNode("v-if", true)
|
|
8740
|
+
],
|
|
8741
|
+
6
|
|
8742
|
+
/* CLASS, STYLE */
|
|
8743
|
+
));
|
|
8744
|
+
}
|
|
8745
|
+
const OnyxItemsPerPage = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$S], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxItemsPerPage/OnyxItemsPerPage.vue"]]);
|
|
8746
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
8747
|
+
__name: "OnyxInlinePagination",
|
|
8748
|
+
props: {
|
|
8749
|
+
density: { type: null, required: false },
|
|
8750
|
+
modelValue: { type: Number, required: true },
|
|
8751
|
+
pages: { type: Number, required: true },
|
|
8752
|
+
disabled: { type: Boolean, required: false },
|
|
8753
|
+
skeleton: { type: [Symbol, Boolean, Number], required: false, default: SKELETON_INJECTED_SYMBOL },
|
|
8754
|
+
type: { type: String, required: false }
|
|
8755
|
+
},
|
|
8756
|
+
emits: ["update:modelValue"],
|
|
8757
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
8758
|
+
__expose();
|
|
8759
|
+
const props = __props;
|
|
8760
|
+
const emit = __emit;
|
|
8761
|
+
const { t } = injectI18n();
|
|
8762
|
+
const { densityClass } = useDensity(props);
|
|
8763
|
+
const skeleton = useSkeletonContext(props);
|
|
8764
|
+
const hasReachedMin = computed(() => props.modelValue <= 1);
|
|
8765
|
+
const hasReachedMax = computed(() => props.modelValue >= props.pages);
|
|
8766
|
+
const displayPagesNumbers = computed(() => {
|
|
8767
|
+
const currentPage = props.modelValue;
|
|
8768
|
+
const totalPages = props.pages;
|
|
8769
|
+
const pagesToShow = /* @__PURE__ */ new Set();
|
|
8770
|
+
pagesToShow.add(1);
|
|
8771
|
+
pagesToShow.add(totalPages);
|
|
8772
|
+
pagesToShow.add(currentPage);
|
|
8773
|
+
pagesToShow.add(currentPage - 1);
|
|
8774
|
+
pagesToShow.add(currentPage + 1);
|
|
8775
|
+
if (currentPage === 1) pagesToShow.add(3);
|
|
8776
|
+
if (currentPage === totalPages) pagesToShow.add(totalPages - 2);
|
|
8777
|
+
const uniqueSortedPages = Array.from(pagesToShow).filter((page) => page >= 1 && page <= totalPages).sort((a, b) => a - b);
|
|
8778
|
+
const finalPages = [];
|
|
8779
|
+
let lastPageAdded = null;
|
|
8780
|
+
for (const page of uniqueSortedPages) {
|
|
8781
|
+
if (lastPageAdded !== null && page > lastPageAdded + 1) {
|
|
8782
|
+
finalPages.push("morePages");
|
|
8783
|
+
}
|
|
8784
|
+
finalPages.push(page);
|
|
8785
|
+
lastPageAdded = page;
|
|
8786
|
+
}
|
|
8787
|
+
return finalPages;
|
|
8788
|
+
});
|
|
8789
|
+
const __returned__ = { props, emit, t, densityClass, skeleton, hasReachedMin, hasReachedMax, displayPagesNumbers, get iconChevronLeftSmall() {
|
|
8790
|
+
return iconChevronLeftSmall;
|
|
8791
|
+
}, get iconChevronRightSmall() {
|
|
8792
|
+
return iconChevronRightSmall;
|
|
8793
|
+
}, OnyxIcon, OnyxSkeleton, OnyxVisuallyHidden };
|
|
8794
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
8795
|
+
return __returned__;
|
|
8796
|
+
}
|
|
8797
|
+
});
|
|
8798
|
+
const _hoisted_1$E = ["aria-label"];
|
|
8799
|
+
const _hoisted_2$w = ["aria-label", "disabled"];
|
|
8800
|
+
const _hoisted_3$n = ["aria-label", "disabled", "onClick"];
|
|
8801
|
+
const _hoisted_4$h = ["aria-label"];
|
|
8802
|
+
const _hoisted_5$d = ["aria-label", "disabled"];
|
|
8803
|
+
function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8804
|
+
return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
|
|
8805
|
+
key: 0,
|
|
8806
|
+
class: normalizeClass([
|
|
8807
|
+
"onyx-pagination-skeleton",
|
|
8808
|
+
"onyx-pagination-skeleton--inline",
|
|
8809
|
+
"onyx-text",
|
|
8810
|
+
$setup.densityClass
|
|
8811
|
+
])
|
|
8812
|
+
}, null, 8, ["class"])) : (openBlock(), createElementBlock("div", {
|
|
8813
|
+
key: 1,
|
|
8814
|
+
class: normalizeClass([
|
|
8815
|
+
"onyx-component",
|
|
8816
|
+
"onyx-pagination",
|
|
8817
|
+
"onyx-pagination--inline",
|
|
8818
|
+
"onyx-text",
|
|
8819
|
+
$setup.densityClass
|
|
8820
|
+
]),
|
|
8821
|
+
role: "group",
|
|
8822
|
+
"aria-label": $setup.t("pagination.label")
|
|
8823
|
+
}, [
|
|
8824
|
+
createElementVNode("button", {
|
|
8825
|
+
class: "onyx-pagination__navigate-button",
|
|
8826
|
+
"aria-label": $setup.t("pagination.previous"),
|
|
8827
|
+
type: "button",
|
|
8828
|
+
disabled: $setup.props.disabled || $setup.hasReachedMin,
|
|
8829
|
+
onClick: _cache[0] || (_cache[0] = ($event) => $setup.emit("update:modelValue", $setup.props.modelValue - 1))
|
|
8830
|
+
}, [
|
|
8831
|
+
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronLeftSmall }, null, 8, ["icon"])
|
|
8832
|
+
], 8, _hoisted_2$w),
|
|
8833
|
+
(openBlock(true), createElementBlock(
|
|
8834
|
+
Fragment,
|
|
8835
|
+
null,
|
|
8836
|
+
renderList($setup.displayPagesNumbers, (pageNumber) => {
|
|
8837
|
+
return openBlock(), createElementBlock(
|
|
8838
|
+
Fragment,
|
|
8839
|
+
{ key: pageNumber },
|
|
8840
|
+
[
|
|
8841
|
+
typeof pageNumber === "number" ? (openBlock(), createElementBlock("button", {
|
|
8842
|
+
key: 0,
|
|
8843
|
+
class: normalizeClass([
|
|
8844
|
+
"onyx-pagination__page-button",
|
|
8845
|
+
{ "onyx-pagination__page-button--active": pageNumber === $setup.props.modelValue }
|
|
8846
|
+
]),
|
|
8847
|
+
"aria-label": $setup.t("pagination.buttonLabel", { page: pageNumber }),
|
|
8848
|
+
type: "button",
|
|
8849
|
+
disabled: $setup.props.disabled,
|
|
8850
|
+
onClick: ($event) => $setup.emit("update:modelValue", pageNumber)
|
|
8851
|
+
}, toDisplayString(pageNumber), 11, _hoisted_3$n)) : (openBlock(), createElementBlock("div", {
|
|
8852
|
+
key: 1,
|
|
8853
|
+
class: normalizeClass(["onyx-pagination__more-pages"]),
|
|
8854
|
+
"aria-label": $setup.t("pagination.morePages")
|
|
8855
|
+
}, [
|
|
8856
|
+
_cache[2] || (_cache[2] = createElementVNode(
|
|
8857
|
+
"span",
|
|
8858
|
+
{ "aria-hidden": "true" },
|
|
8859
|
+
"...",
|
|
8860
|
+
-1
|
|
8861
|
+
/* CACHED */
|
|
8862
|
+
)),
|
|
8863
|
+
createVNode($setup["OnyxVisuallyHidden"], null, {
|
|
8864
|
+
default: withCtx(() => [
|
|
8865
|
+
createTextVNode(
|
|
8866
|
+
toDisplayString($setup.t("pagination.morePages")),
|
|
8867
|
+
1
|
|
8868
|
+
/* TEXT */
|
|
8869
|
+
)
|
|
8870
|
+
]),
|
|
8871
|
+
_: 1
|
|
8872
|
+
/* STABLE */
|
|
8873
|
+
})
|
|
8874
|
+
], 8, _hoisted_4$h))
|
|
8875
|
+
],
|
|
8876
|
+
64
|
|
8877
|
+
/* STABLE_FRAGMENT */
|
|
8878
|
+
);
|
|
8879
|
+
}),
|
|
8880
|
+
128
|
|
8881
|
+
/* KEYED_FRAGMENT */
|
|
8882
|
+
)),
|
|
8883
|
+
createElementVNode("button", {
|
|
8884
|
+
class: "onyx-pagination__navigate-button",
|
|
8885
|
+
"aria-label": $setup.t("pagination.next"),
|
|
8886
|
+
type: "button",
|
|
8887
|
+
disabled: $setup.props.disabled || $setup.hasReachedMax,
|
|
8888
|
+
onClick: _cache[1] || (_cache[1] = ($event) => $setup.emit("update:modelValue", $setup.props.modelValue + 1))
|
|
8889
|
+
}, [
|
|
8890
|
+
createVNode($setup["OnyxIcon"], { icon: $setup.iconChevronRightSmall }, null, 8, ["icon"])
|
|
8891
|
+
], 8, _hoisted_5$d)
|
|
8892
|
+
], 10, _hoisted_1$E));
|
|
8893
|
+
}
|
|
8894
|
+
const OnyxInlinePagination = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$R], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxPagination/OnyxInlinePagination.vue"]]);
|
|
8816
8895
|
const pageSize = 100;
|
|
8817
8896
|
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
8818
8897
|
__name: "OnyxSelectPagination",
|
|
@@ -9083,6 +9162,7 @@ const usePagination = (options = {}) => createFeature((ctx) => {
|
|
|
9083
9162
|
);
|
|
9084
9163
|
const isLastPage = computed(() => state.value.current >= state.value.pages);
|
|
9085
9164
|
const loading = computed(() => options.loading?.value ?? false);
|
|
9165
|
+
const skeleton = computed(() => ctx.skeleton.value && !shouldShowPagination.value);
|
|
9086
9166
|
const type = options.type ?? "select";
|
|
9087
9167
|
const scrollContainer = ref();
|
|
9088
9168
|
const { vScrollEnd, isScrollEnd } = useScrollEnd({
|
|
@@ -9163,17 +9243,32 @@ const usePagination = (options = {}) => createFeature((ctx) => {
|
|
|
9163
9243
|
slots: {
|
|
9164
9244
|
pagination: () => {
|
|
9165
9245
|
if (!isEnabled.value() || type !== "select") return [];
|
|
9166
|
-
|
|
9167
|
-
if (!shouldShowPagination.value && !skeleton) return [];
|
|
9246
|
+
if (!shouldShowPagination.value && !skeleton.value) return [];
|
|
9168
9247
|
return [
|
|
9169
9248
|
h(OnyxPagination, {
|
|
9170
9249
|
modelValue: state.value.current,
|
|
9171
9250
|
pages: state.value.pages,
|
|
9172
9251
|
disabled: isDisabled.value,
|
|
9173
|
-
skeleton,
|
|
9252
|
+
skeleton: skeleton.value,
|
|
9174
9253
|
"onUpdate:modelValue": (newPage) => state.value.current = newPage
|
|
9175
9254
|
})
|
|
9176
9255
|
];
|
|
9256
|
+
},
|
|
9257
|
+
bottomLeft: () => {
|
|
9258
|
+
if (!isEnabled.value() || !options.itemsPerPage?.length) return [];
|
|
9259
|
+
if (!shouldShowPagination.value && !skeleton.value) return [];
|
|
9260
|
+
return [
|
|
9261
|
+
h(OnyxItemsPerPage, {
|
|
9262
|
+
modelValue: state.value.pageSize,
|
|
9263
|
+
options: options.itemsPerPage,
|
|
9264
|
+
disabled: isDisabled.value,
|
|
9265
|
+
skeleton: skeleton.value,
|
|
9266
|
+
"onUpdate:modelValue": (newPageSize) => {
|
|
9267
|
+
state.value.pageSize = newPageSize;
|
|
9268
|
+
state.value.current = 1;
|
|
9269
|
+
}
|
|
9270
|
+
})
|
|
9271
|
+
];
|
|
9177
9272
|
}
|
|
9178
9273
|
},
|
|
9179
9274
|
scrollContainerAttributes: () => ({
|
|
@@ -16280,6 +16375,7 @@ export {
|
|
|
16280
16375
|
OnyxGlobalSearch as OnyxUnstableGlobalSearch,
|
|
16281
16376
|
OnyxGlobalSearchGroup as OnyxUnstableGlobalSearchGroup,
|
|
16282
16377
|
OnyxGlobalSearchOption as OnyxUnstableGlobalSearchOption,
|
|
16378
|
+
OnyxItemsPerPage as OnyxUnstableItemsPerPage,
|
|
16283
16379
|
OnyxSlider as OnyxUnstableSlider,
|
|
16284
16380
|
OnyxSliderControl as OnyxUnstableSliderControl,
|
|
16285
16381
|
OnyxTimepicker as OnyxUnstableTimepicker,
|