sit-onyx 1.2.0-dev-20251016073921 → 1.2.0-dev-20251016092305

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.
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes } from 'vue';
2
2
  import { SkeletonInjected } from '../../composables/useSkeletonState.js';
3
- import { IfExtends, IfNotEmpty, MaybePick, RecordValues, UnionByKey } from '../../types/index.js';
3
+ import { IfExtends, IfNotEmpty, MaybeUnwrap, RecordValues, UnionByKey } from '../../types/index.js';
4
4
  import { OnyxHeadlineProps } from '../OnyxHeadline/types.js';
5
5
  import { OnyxTableProps } from '../OnyxTable/types.js';
6
6
  import { BASE_FEATURE } from './features/base/base.js';
@@ -21,7 +21,7 @@ export type MaybeArray<T> = T | Array<T>;
21
21
  * Unwraps the typeRenderers from the given feature(s).
22
22
  *
23
23
  */
24
- export type ColumnTypesFromFeatures<TFeatures extends MaybeArray<DataGridFeature<any, any, any>>> = IfExtends<RecordValues<MapTypeRenderOptions<IfNotEmpty<MaybePick<UnionByKey<ReturnType<TFeatures extends any[] ? TFeatures[number] : TFeatures>>, "typeRenderer">>>>, ColumnConfigTypeOption<PropertyKey, unknown>>;
24
+ export type ColumnTypesFromFeatures<TFeatures extends MaybeArray<DataGridFeature<any, any, any>>> = IfExtends<RecordValues<MapTypeRenderOptions<IfNotEmpty<MaybeUnwrap<UnionByKey<ReturnType<TFeatures extends any[] ? TFeatures[number] : TFeatures>>, "typeRenderer">>>>, ColumnConfigTypeOption<PropertyKey, unknown>>;
25
25
  /**
26
26
  * @experimental The DataGrid is still working in progress and the props will change in the future.
27
27
  */
@@ -17,7 +17,7 @@ declare function __VLS_template(): {
17
17
  };
18
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
19
  declare const __VLS_component: import('vue').DefineComponent<OnyxLinkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OnyxLinkProps> & Readonly<{}>, {
20
- target: import('../../index.js', { with: { "resolution-mode": "import" } }).LinkTarget;
20
+ target: import('../OnyxRouterLink/types.js', { with: { "resolution-mode": "import" } }).LinkTarget;
21
21
  withExternalIcon: boolean | "auto";
22
22
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLAnchorElement>;
23
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -468,6 +468,17 @@ const replacePlaceholders = (message, placeholders) => {
468
468
  replacedMessage = replacedMessage.replace(/{'(.*?)'}/g, "$1");
469
469
  return replacedMessage.replace(/{.*}\s?/gi, "");
470
470
  };
471
+ const useForwardProps = (props, target) => {
472
+ const keys = new Set(Object.keys(target.props ?? {}));
473
+ if (!target.props) {
474
+ userConsole?.error(
475
+ `The provided component does not have props. Please ensure that the target component is a valid Vue component. Functional components without defined properties are not supported.`
476
+ );
477
+ }
478
+ return computed(
479
+ () => Object.fromEntries(Object.entries(props).filter(([key]) => keys.has(key)))
480
+ );
481
+ };
471
482
  const createBuilder = (builder) => builder;
472
483
  function createElRef() {
473
484
  const elementRef = shallowRef();
@@ -1941,8 +1952,9 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
1941
1952
  setup(__props, { expose: __expose }) {
1942
1953
  __expose();
1943
1954
  const props = __props;
1955
+ const buttonOrLinkLayoutProps = useForwardProps(props, ButtonOrLinkLayout);
1944
1956
  const skeleton = useSkeletonContext(props);
1945
- const __returned__ = { props, skeleton, ButtonOrLinkLayout, OnyxIcon, OnyxSkeleton };
1957
+ const __returned__ = { props, buttonOrLinkLayoutProps, skeleton, ButtonOrLinkLayout, OnyxIcon, OnyxSkeleton };
1946
1958
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
1947
1959
  return __returned__;
1948
1960
  }
@@ -1951,7 +1963,7 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
1951
1963
  return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
1952
1964
  key: 0,
1953
1965
  class: normalizeClass(["onyx-system-button-skeleton", $setup.props.icon ? "" : "onyx-system-button-skeleton--text"])
1954
- }, null, 8, ["class"])) : (openBlock(), createBlock($setup["ButtonOrLinkLayout"], mergeProps({ key: 1 }, $setup.props, {
1966
+ }, null, 8, ["class"])) : (openBlock(), createBlock($setup["ButtonOrLinkLayout"], mergeProps({ key: 1 }, $setup.buttonOrLinkLayoutProps, {
1955
1967
  type: "button",
1956
1968
  class: ["onyx-system-button", "onyx-text--small", `onyx-system-button--${$setup.props.color}`],
1957
1969
  "aria-label": $setup.props.label,
@@ -1993,11 +2005,12 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
1993
2005
  setup(__props, { expose: __expose, emit: __emit }) {
1994
2006
  __expose();
1995
2007
  const props = __props;
2008
+ const dialogProps = useForwardProps(props, OnyxBasicDialog);
1996
2009
  const emit = __emit;
1997
2010
  const { t } = injectI18n();
1998
2011
  const { densityClass } = useDensity(props);
1999
2012
  const describedById = useId();
2000
- const __returned__ = { props, emit, t, densityClass, describedById, get iconXSmall() {
2013
+ const __returned__ = { props, dialogProps, emit, t, densityClass, describedById, get iconXSmall() {
2001
2014
  return iconXSmall;
2002
2015
  }, OnyxBasicDialog, OnyxHeadline, OnyxIcon, OnyxSystemButton };
2003
2016
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
@@ -2011,7 +2024,7 @@ const _hoisted_4$l = { class: "onyx-alert-modal__actions" };
2011
2024
  function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
2012
2025
  return openBlock(), createBlock($setup["OnyxBasicDialog"], mergeProps({
2013
2026
  class: ["onyx-alert-modal", $setup.densityClass]
2014
- }, $setup.props, {
2027
+ }, $setup.dialogProps, {
2015
2028
  "aria-describedby": $setup.describedById,
2016
2029
  modal: "",
2017
2030
  alert: "",
@@ -2807,6 +2820,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
2807
2820
  const slots = useSlots();
2808
2821
  const { densityClass } = useDensity(props);
2809
2822
  const skeleton = useSkeletonContext(props);
2823
+ const fabButtonProps = useForwardProps(props, OnyxFABButton);
2810
2824
  const isExpanded = useVModel({
2811
2825
  props,
2812
2826
  emit,
@@ -2818,7 +2832,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
2818
2832
  if (!hasOptions.value) return props.icon;
2819
2833
  return isExpanded.value ? iconX : iconMoreHorizontalSmall;
2820
2834
  });
2821
- const __returned__ = { props, emit, slots, densityClass, skeleton, isExpanded, hasOptions, triggerIcon, get mergeVueProps() {
2835
+ const __returned__ = { props, emit, slots, densityClass, skeleton, fabButtonProps, isExpanded, hasOptions, triggerIcon, get mergeVueProps() {
2822
2836
  return mergeVueProps;
2823
2837
  }, OnyxFABButton, OnyxFlyoutMenu };
2824
2838
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
@@ -2829,7 +2843,7 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
2829
2843
  return !$setup.hasOptions || $setup.skeleton ? (openBlock(), createBlock($setup["OnyxFABButton"], mergeProps({
2830
2844
  key: 0,
2831
2845
  class: ["onyx-fab", `onyx-fab--${$setup.props.alignment}`]
2832
- }, $setup.props, {
2846
+ }, $setup.fabButtonProps, {
2833
2847
  icon: $setup.triggerIcon,
2834
2848
  skeleton: $setup.skeleton
2835
2849
  }), null, 16, ["class", "icon", "skeleton"])) : (openBlock(), createBlock($setup["OnyxFlyoutMenu"], {
@@ -3147,12 +3161,13 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
3147
3161
  setup(__props, { expose: __expose }) {
3148
3162
  __expose();
3149
3163
  const props = __props;
3164
+ const forwardProps = useForwardProps(props, ButtonOrLinkLayout);
3150
3165
  const { densityClass } = useDensity(props);
3151
3166
  const { disabled } = useFormContext(props);
3152
3167
  const skeleton = useSkeletonContext(props);
3153
3168
  const ripple = useTemplateRef("rippleRef");
3154
3169
  const rippleEvents = computed(() => ripple.value?.events ?? {});
3155
- const __returned__ = { props, densityClass, disabled, skeleton, ripple, rippleEvents, OnyxIcon, OnyxLoadingIndicator, OnyxRipple, OnyxSkeleton, ButtonOrLinkLayout };
3170
+ const __returned__ = { props, forwardProps, densityClass, disabled, skeleton, ripple, rippleEvents, OnyxIcon, OnyxLoadingIndicator, OnyxRipple, OnyxSkeleton, ButtonOrLinkLayout };
3156
3171
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
3157
3172
  return __returned__;
3158
3173
  }
@@ -3162,7 +3177,7 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
3162
3177
  return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
3163
3178
  key: 0,
3164
3179
  class: normalizeClass(["onyx-button-skeleton", $setup.densityClass])
3165
- }, null, 8, ["class"])) : (openBlock(), createBlock($setup["ButtonOrLinkLayout"], mergeProps({ key: 1 }, $setup.props, {
3180
+ }, null, 8, ["class"])) : (openBlock(), createBlock($setup["ButtonOrLinkLayout"], mergeProps({ key: 1 }, $setup.forwardProps, {
3166
3181
  class: [
3167
3182
  "onyx-component",
3168
3183
  "onyx-button",
@@ -4669,7 +4684,8 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
4669
4684
  const props = __props;
4670
4685
  const { densityClass } = useDensity(props);
4671
4686
  const skeleton = useSkeletonContext(props);
4672
- const __returned__ = { props, densityClass, skeleton, ButtonOrLinkLayout, OnyxIcon, OnyxLoadingIndicator, OnyxSkeleton };
4687
+ const forwardProps = useForwardProps(props, ButtonOrLinkLayout);
4688
+ const __returned__ = { props, densityClass, skeleton, forwardProps, ButtonOrLinkLayout, OnyxIcon, OnyxLoadingIndicator, OnyxSkeleton };
4673
4689
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
4674
4690
  return __returned__;
4675
4691
  }
@@ -4678,7 +4694,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
4678
4694
  return $setup.skeleton ? (openBlock(), createBlock($setup["OnyxSkeleton"], {
4679
4695
  key: 0,
4680
4696
  class: normalizeClass(["onyx-icon-button-skeleton", $setup.densityClass])
4681
- }, null, 8, ["class"])) : (openBlock(), createBlock($setup["ButtonOrLinkLayout"], mergeProps({ key: 1 }, $setup.props, {
4697
+ }, null, 8, ["class"])) : (openBlock(), createBlock($setup["ButtonOrLinkLayout"], mergeProps({ key: 1 }, $setup.forwardProps, {
4682
4698
  "aria-label": $setup.props.label,
4683
4699
  title: $setup.props.label,
4684
4700
  class: [
@@ -5700,11 +5716,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
5700
5716
  emit,
5701
5717
  key: "open"
5702
5718
  });
5719
+ const tooltipProps = useForwardProps(props, OnyxTooltip);
5703
5720
  const triggerType = computed(() => {
5704
5721
  if (typeof props.trigger === "object") return props.trigger.type;
5705
5722
  return props.trigger;
5706
5723
  });
5707
- const __returned__ = { props, emit, isVisible, triggerType, get iconCircleInformation() {
5724
+ const __returned__ = { props, emit, isVisible, tooltipProps, triggerType, get iconCircleInformation() {
5708
5725
  return iconCircleInformation;
5709
5726
  }, OnyxIcon, OnyxSystemButton, OnyxTooltip, OnyxVisuallyHidden };
5710
5727
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
@@ -5714,7 +5731,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
5714
5731
  const _hoisted_1$I = { class: "onyx-component onyx-info-tooltip" };
5715
5732
  function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
5716
5733
  return openBlock(), createElementBlock("span", _hoisted_1$I, [
5717
- $setup.triggerType === "click" ? (openBlock(), createBlock($setup["OnyxTooltip"], mergeProps({ key: 0 }, $setup.props, {
5734
+ $setup.triggerType === "click" ? (openBlock(), createBlock($setup["OnyxTooltip"], mergeProps({ key: 0 }, $setup.tooltipProps, {
5718
5735
  open: $setup.isVisible,
5719
5736
  "onUpdate:open": _cache[0] || (_cache[0] = ($event) => $setup.isVisible = $event)
5720
5737
  }), {
@@ -5735,7 +5752,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
5735
5752
  Fragment,
5736
5753
  { key: 1 },
5737
5754
  [
5738
- createVNode($setup["OnyxTooltip"], mergeProps($setup.props, {
5755
+ createVNode($setup["OnyxTooltip"], mergeProps($setup.tooltipProps, {
5739
5756
  open: $setup.isVisible,
5740
5757
  "onUpdate:open": _cache[1] || (_cache[1] = ($event) => $setup.isVisible = $event),
5741
5758
  "aria-hidden": "true"
@@ -6148,6 +6165,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
6148
6165
  __expose();
6149
6166
  const props = __props;
6150
6167
  const slots = useSlots();
6168
+ const tableProps = useForwardProps(props, OnyxTable);
6151
6169
  const columnStyle = computed(() => {
6152
6170
  return {
6153
6171
  "--onyx-data-grid-column-count": props.columns.length,
@@ -6159,7 +6177,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
6159
6177
  }).join(" ")
6160
6178
  };
6161
6179
  });
6162
- const __returned__ = { props, slots, columnStyle, get mergeVueProps() {
6180
+ const __returned__ = { props, slots, tableProps, columnStyle, get mergeVueProps() {
6163
6181
  return mergeVueProps;
6164
6182
  }, OnyxTable };
6165
6183
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
@@ -6167,7 +6185,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
6167
6185
  }
6168
6186
  });
6169
6187
  function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
6170
- return openBlock(), createBlock($setup["OnyxTable"], mergeProps({ class: "onyx-data-grid" }, $setup.props, {
6188
+ return openBlock(), createBlock($setup["OnyxTable"], mergeProps({ class: "onyx-data-grid" }, $setup.tableProps, {
6171
6189
  "scroll-container-attrs": $setup.mergeVueProps($setup.props.scrollContainerAttrs, { style: $setup.columnStyle })
6172
6190
  }), createSlots({
6173
6191
  head: withCtx(() => [
@@ -7151,6 +7169,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
7151
7169
  const { disabled, showError } = useFormContext(props);
7152
7170
  const skeleton = useSkeletonContext(props);
7153
7171
  const errorClass = useErrorClass(showError);
7172
+ const formElementProps = useForwardProps(props, OnyxFormElement);
7154
7173
  const selectionCount = computed(() => {
7155
7174
  return props.modelValue ? props.modelValue.length : 0;
7156
7175
  });
@@ -7185,7 +7204,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
7185
7204
  event.preventDefault();
7186
7205
  };
7187
7206
  useAutofocus(input2, props);
7188
- const __returned__ = { rootAttrs, restAttrs, props, emit, t, vCustomValidity, errorMessages, successMessages, messages, disabled, showError, skeleton, errorClass, selectionCount, selectionText, wasTouched, densityClass, input: input2, navigationalKeys, blockTyping, get iconCheckSmall() {
7207
+ const __returned__ = { rootAttrs, restAttrs, props, emit, t, vCustomValidity, errorMessages, successMessages, messages, disabled, showError, skeleton, errorClass, formElementProps, selectionCount, selectionText, wasTouched, densityClass, input: input2, navigationalKeys, blockTyping, get iconCheckSmall() {
7189
7208
  return iconCheckSmall;
7190
7209
  }, get iconChevronDownUp() {
7191
7210
  return iconChevronDownUp;
@@ -7225,7 +7244,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
7225
7244
  ]
7226
7245
  }, $setup.rootAttrs),
7227
7246
  [
7228
- createVNode($setup["OnyxFormElement"], mergeProps($setup.props, {
7247
+ createVNode($setup["OnyxFormElement"], mergeProps($setup.formElementProps, {
7229
7248
  message: $setup.messages,
7230
7249
  "success-messages": $setup.successMessages,
7231
7250
  "error-messages": $setup.errorMessages
@@ -7331,14 +7350,15 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
7331
7350
  setup(__props, { expose: __expose }) {
7332
7351
  __expose();
7333
7352
  const props = __props;
7334
- const __returned__ = { props, OnyxIcon, OnyxListItem };
7353
+ const listItemProps = useForwardProps(props, OnyxListItem);
7354
+ const __returned__ = { props, listItemProps, OnyxIcon, OnyxListItem };
7335
7355
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
7336
7356
  return __returned__;
7337
7357
  }
7338
7358
  });
7339
7359
  const _hoisted_1$z = ["checked", "aria-labelledby", "disabled", "indeterminate"];
7340
7360
  function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
7341
- return openBlock(), createBlock($setup["OnyxListItem"], mergeProps({ class: "onyx-component onyx-select-option" }, $setup.props, {
7361
+ return openBlock(), createBlock($setup["OnyxListItem"], mergeProps({ class: "onyx-component onyx-select-option" }, $setup.listItemProps, {
7342
7362
  checked: !!_ctx.$attrs["aria-checked"],
7343
7363
  selected: !!_ctx.$attrs["aria-selected"],
7344
7364
  disabled: !!_ctx.$attrs["aria-disabled"]
@@ -8000,7 +8020,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
8000
8020
  __expose();
8001
8021
  const props = __props;
8002
8022
  const emit = __emit;
8003
- const __returned__ = { props, emit, OnyxSelectPagination };
8023
+ const selectPaginationProps = useForwardProps(props, OnyxSelectPagination);
8024
+ const __returned__ = { props, emit, selectPaginationProps, OnyxSelectPagination };
8004
8025
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
8005
8026
  return __returned__;
8006
8027
  }
@@ -8008,7 +8029,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
8008
8029
  function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
8009
8030
  return openBlock(), createBlock(
8010
8031
  $setup["OnyxSelectPagination"],
8011
- mergeProps($setup.props, {
8032
+ mergeProps($setup.selectPaginationProps, {
8012
8033
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.emit("update:modelValue", $event))
8013
8034
  }),
8014
8035
  null,
@@ -9079,6 +9100,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
9079
9100
  const { disabled, showError } = useFormContext(props);
9080
9101
  const skeleton = useSkeletonContext(props);
9081
9102
  const errorClass = useErrorClass(showError);
9103
+ const formElementProps = useForwardProps(props, OnyxFormElement);
9082
9104
  const getNormalizedDate = computed(() => {
9083
9105
  return (value2) => {
9084
9106
  const date = value2 != void 0 && value2 != null ? new Date(value2) : void 0;
@@ -9104,7 +9126,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
9104
9126
  });
9105
9127
  const input2 = useTemplateRef("inputRef");
9106
9128
  useAutofocus(input2, props);
9107
- const __returned__ = { props, emit, rootAttrs, restAttrs, vCustomValidity, errorMessages, successMessages, messages, densityClass, disabled, showError, skeleton, errorClass, getNormalizedDate, modelValue, value, input: input2, OnyxFormElement, OnyxLoadingIndicator, OnyxSkeleton };
9129
+ const __returned__ = { props, emit, rootAttrs, restAttrs, vCustomValidity, errorMessages, successMessages, messages, densityClass, disabled, showError, skeleton, errorClass, formElementProps, getNormalizedDate, modelValue, value, input: input2, OnyxFormElement, OnyxLoadingIndicator, OnyxSkeleton };
9108
9130
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
9109
9131
  return __returned__;
9110
9132
  }
@@ -9134,7 +9156,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
9134
9156
  class: ["onyx-component", "onyx-datepicker", $setup.densityClass, $setup.errorClass]
9135
9157
  }, $setup.rootAttrs),
9136
9158
  [
9137
- createVNode($setup["OnyxFormElement"], mergeProps($setup.props, {
9159
+ createVNode($setup["OnyxFormElement"], mergeProps($setup.formElementProps, {
9138
9160
  "error-messages": $setup.errorMessages,
9139
9161
  "success-messages": $setup.successMessages,
9140
9162
  message: $setup.messages
@@ -9198,13 +9220,14 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
9198
9220
  const slots = useSlots();
9199
9221
  const { t } = injectI18n();
9200
9222
  const { densityClass } = useDensity(props);
9223
+ const basicPopoverProps = useForwardProps(props, OnyxBasicPopover);
9201
9224
  const isExpanded = useVModel({
9202
9225
  props,
9203
9226
  emit,
9204
9227
  key: "open",
9205
9228
  default: false
9206
9229
  });
9207
- const __returned__ = { props, emit, slots, t, densityClass, isExpanded, get iconXSmall() {
9230
+ const __returned__ = { props, emit, slots, t, densityClass, basicPopoverProps, isExpanded, get iconXSmall() {
9208
9231
  return iconXSmall;
9209
9232
  }, OnyxBasicPopover, OnyxHeadline, OnyxSystemButton };
9210
9233
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
@@ -9220,7 +9243,7 @@ const _hoisted_5$a = {
9220
9243
  class: "onyx-dialog__footer"
9221
9244
  };
9222
9245
  function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
9223
- return openBlock(), createBlock($setup["OnyxBasicPopover"], mergeProps($setup.props, {
9246
+ return openBlock(), createBlock($setup["OnyxBasicPopover"], mergeProps($setup.basicPopoverProps, {
9224
9247
  open: $setup.isExpanded,
9225
9248
  "onUpdate:open": _cache[1] || (_cache[1] = ($event) => $setup.isExpanded = $event),
9226
9249
  class: ["onyx-dialog", $setup.densityClass]
@@ -9530,6 +9553,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
9530
9553
  default: ""
9531
9554
  });
9532
9555
  const { rootAttrs, restAttrs } = useRootAttrs();
9556
+ const formElementProps = useForwardProps(props, OnyxFormElement);
9533
9557
  const { t } = injectI18n();
9534
9558
  const { maxLength, maxLengthError } = useLenientMaxLengthValidation({ modelValue, props });
9535
9559
  const error = computed(() => props.error ?? maxLengthError.value);
@@ -9559,7 +9583,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
9559
9583
  }
9560
9584
  return props.type;
9561
9585
  });
9562
- const __returned__ = { props, emit, slots, modelValue, rootAttrs, restAttrs, t, maxLength, maxLengthError, error, vCustomValidity, errorMessages, successMessages, messages, densityClass, patternSource, input: input2, disabled, showError, skeleton, errorClass, showPassword, displayType, get iconCheckSmall() {
9586
+ const __returned__ = { props, emit, slots, modelValue, rootAttrs, restAttrs, formElementProps, t, maxLength, maxLengthError, error, vCustomValidity, errorMessages, successMessages, messages, densityClass, patternSource, input: input2, disabled, showError, skeleton, errorClass, showPassword, displayType, get iconCheckSmall() {
9563
9587
  return iconCheckSmall;
9564
9588
  }, get iconEye() {
9565
9589
  return iconEye;
@@ -9598,7 +9622,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
9598
9622
  class: ["onyx-component", "onyx-input", $setup.densityClass, $setup.errorClass]
9599
9623
  }, $setup.rootAttrs),
9600
9624
  [
9601
- createVNode($setup["OnyxFormElement"], mergeProps($setup.props, {
9625
+ createVNode($setup["OnyxFormElement"], mergeProps($setup.formElementProps, {
9602
9626
  "error-messages": $setup.errorMessages,
9603
9627
  "success-messages": $setup.successMessages,
9604
9628
  message: $setup.messages
@@ -9693,7 +9717,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
9693
9717
  setup(__props, { expose: __expose }) {
9694
9718
  __expose();
9695
9719
  const props = __props;
9696
- const __returned__ = { props, OnyxExternalLinkIcon, OnyxRouterLink };
9720
+ const routerLinkProps = useForwardProps(props, OnyxRouterLink);
9721
+ const externalLinkIconProps = useForwardProps(props, OnyxExternalLinkIcon);
9722
+ const __returned__ = { props, routerLinkProps, externalLinkIconProps, OnyxExternalLinkIcon, OnyxRouterLink };
9697
9723
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
9698
9724
  return __returned__;
9699
9725
  }
@@ -9701,13 +9727,13 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
9701
9727
  function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
9702
9728
  return openBlock(), createBlock(
9703
9729
  $setup["OnyxRouterLink"],
9704
- mergeProps({ class: "onyx-component onyx-link" }, $setup.props),
9730
+ mergeProps({ class: "onyx-component onyx-link" }, $setup.routerLinkProps),
9705
9731
  {
9706
9732
  default: withCtx(() => [
9707
9733
  renderSlot(_ctx.$slots, "default"),
9708
9734
  createVNode(
9709
9735
  $setup["OnyxExternalLinkIcon"],
9710
- normalizeProps(guardReactiveProps($setup.props)),
9736
+ normalizeProps(guardReactiveProps($setup.externalLinkIconProps)),
9711
9737
  null,
9712
9738
  16
9713
9739
  /* FULL_PROPS */
@@ -9814,9 +9840,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
9814
9840
  const slots = useSlots();
9815
9841
  const { t } = injectI18n();
9816
9842
  const { densityClass } = useDensity(props);
9843
+ const basicDialogProps = useForwardProps(props, OnyxBasicDialog);
9817
9844
  const descriptionId = useId();
9818
9845
  const hasDescription = computed(() => !!slots.description);
9819
- const __returned__ = { props, emit, slots, t, densityClass, descriptionId, hasDescription, get iconXSmall() {
9846
+ const __returned__ = { props, emit, slots, t, densityClass, basicDialogProps, descriptionId, hasDescription, get iconXSmall() {
9820
9847
  return iconXSmall;
9821
9848
  }, OnyxBasicDialog, OnyxHeadline, OnyxSystemButton };
9822
9849
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
@@ -9833,7 +9860,7 @@ const _hoisted_6$7 = {
9833
9860
  class: "onyx-modal__footer"
9834
9861
  };
9835
9862
  function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
9836
- return openBlock(), createBlock($setup["OnyxBasicDialog"], mergeProps($setup.props, {
9863
+ return openBlock(), createBlock($setup["OnyxBasicDialog"], mergeProps($setup.basicDialogProps, {
9837
9864
  modal: "",
9838
9865
  class: ["onyx-modal", $setup.densityClass],
9839
9866
  "aria-describedby": $setup.hasDescription ? $setup.descriptionId : void 0,
@@ -9955,6 +9982,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
9955
9982
  const props = __props;
9956
9983
  const emit = __emit;
9957
9984
  const slots = useSlots();
9985
+ const modalProps = useForwardProps(props, OnyxModal);
9958
9986
  const currentValue = ref();
9959
9987
  watchEffect(() => currentValue.value = props.modelValue);
9960
9988
  const { t } = injectI18n();
@@ -9968,7 +9996,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
9968
9996
  emit("update:modelValue", currentValue.value);
9969
9997
  emit("update:open", false);
9970
9998
  };
9971
- const __returned__ = { props, emit, slots, currentValue, t, formId, handleChange, handleApply, OnyxBottomBar, OnyxButton, OnyxCard, OnyxIcon, OnyxModal, OnyxVisuallyHidden };
9999
+ const __returned__ = { props, emit, slots, modalProps, currentValue, t, formId, handleChange, handleApply, OnyxBottomBar, OnyxButton, OnyxCard, OnyxIcon, OnyxModal, OnyxVisuallyHidden };
9972
10000
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
9973
10001
  return __returned__;
9974
10002
  }
@@ -9981,7 +10009,7 @@ const _hoisted_4$a = {
9981
10009
  class: "onyx-text--small"
9982
10010
  };
9983
10011
  function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
9984
- return openBlock(), createBlock($setup["OnyxModal"], mergeProps($setup.props, {
10012
+ return openBlock(), createBlock($setup["OnyxModal"], mergeProps($setup.modalProps, {
9985
10013
  open: $setup.props.open,
9986
10014
  class: "onyx-select-dialog",
9987
10015
  label: $setup.props.label,
@@ -10120,6 +10148,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
10120
10148
  const props = __props;
10121
10149
  const emit = __emit;
10122
10150
  const { t } = injectI18n();
10151
+ const selectDialogProps = useForwardProps(props, OnyxSelectDialog);
10123
10152
  const options = computed(() => {
10124
10153
  return [
10125
10154
  {
@@ -10142,13 +10171,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
10142
10171
  }
10143
10172
  ];
10144
10173
  });
10145
- const __returned__ = { props, emit, t, options, OnyxSelectDialog };
10174
+ const __returned__ = { props, emit, t, selectDialogProps, options, OnyxSelectDialog };
10146
10175
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
10147
10176
  return __returned__;
10148
10177
  }
10149
10178
  });
10150
10179
  function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
10151
- return openBlock(), createBlock($setup["OnyxSelectDialog"], mergeProps({ class: "onyx-color-scheme-dialog" }, $setup.props, {
10180
+ return openBlock(), createBlock($setup["OnyxSelectDialog"], mergeProps({ class: "onyx-color-scheme-dialog" }, $setup.selectDialogProps, {
10152
10181
  label: $setup.t("colorScheme.headline"),
10153
10182
  options: $setup.options,
10154
10183
  open: $setup.props.open,
@@ -10310,14 +10339,15 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
10310
10339
  __expose();
10311
10340
  const props = __props;
10312
10341
  const slots = useSlots();
10342
+ const menuItemProps = useForwardProps(props, OnyxMenuItem);
10313
10343
  const hasChildren = computed(() => !!slots.children);
10314
- const __returned__ = { props, slots, hasChildren, OnyxMenuItem };
10344
+ const __returned__ = { props, slots, menuItemProps, hasChildren, OnyxMenuItem };
10315
10345
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
10316
10346
  return __returned__;
10317
10347
  }
10318
10348
  });
10319
10349
  function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
10320
- return openBlock(), createBlock($setup["OnyxMenuItem"], mergeProps($setup.props, {
10350
+ return openBlock(), createBlock($setup["OnyxMenuItem"], mergeProps($setup.menuItemProps, {
10321
10351
  link: $setup.hasChildren && $setup.props.context !== "navbar" ? void 0 : $setup.props.link,
10322
10352
  class: {
10323
10353
  "onyx-nav-item": true,
@@ -12245,6 +12275,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
12245
12275
  const { vCustomValidity, errorMessages } = useFormElementError({ props, emit });
12246
12276
  const successMessages = computed(() => getFormMessages(props.success));
12247
12277
  const messages = computed(() => getFormMessages(props.message));
12278
+ const formElementProps = useForwardProps(props, OnyxFormElement);
12248
12279
  const { rootAttrs, restAttrs } = useRootAttrs();
12249
12280
  const wasTouched = ref(false);
12250
12281
  const modelValue = useVModel({
@@ -12308,7 +12339,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
12308
12339
  const decrementLabel = computed(() => t.value("stepper.decrement", { stepSize: props.stepSize }));
12309
12340
  __expose({ input: input2 });
12310
12341
  useAutofocus(input2, props);
12311
- const __returned__ = { props, emit, t, locale, input: input2, disabled, showError, skeleton, errorClass, densityClass, vCustomValidity, errorMessages, successMessages, messages, rootAttrs, restAttrs, wasTouched, modelValue, inputValue, displayValue, getFormattedValue, getDisplayValue, handleClick, handleChange, incrementLabel, decrementLabel, get iconMinus() {
12342
+ const __returned__ = { props, emit, t, locale, input: input2, disabled, showError, skeleton, errorClass, densityClass, vCustomValidity, errorMessages, successMessages, messages, formElementProps, rootAttrs, restAttrs, wasTouched, modelValue, inputValue, displayValue, getFormattedValue, getDisplayValue, handleClick, handleChange, incrementLabel, decrementLabel, get iconMinus() {
12312
12343
  return iconMinus;
12313
12344
  }, get iconPlus() {
12314
12345
  return iconPlus;
@@ -12348,7 +12379,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
12348
12379
  class: ["onyx-component", "onyx-stepper", $setup.densityClass, $setup.errorClass]
12349
12380
  }, $setup.rootAttrs),
12350
12381
  [
12351
- createVNode($setup["OnyxFormElement"], mergeProps($setup.props, {
12382
+ createVNode($setup["OnyxFormElement"], mergeProps($setup.formElementProps, {
12352
12383
  message: $setup.messages,
12353
12384
  "success-messages": $setup.successMessages,
12354
12385
  "error-messages": $setup.errorMessages
@@ -12754,6 +12785,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
12754
12785
  setup(__props, { expose: __expose }) {
12755
12786
  __expose();
12756
12787
  const props = __props;
12788
+ const iconProps = useForwardProps(props, OnyxIcon);
12757
12789
  const FALLBACK_ICON = iconFile;
12758
12790
  const icon = computed(() => {
12759
12791
  if (!props.type) return FALLBACK_ICON;
@@ -12793,13 +12825,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
12793
12825
  if (props.type.startsWith("text/")) return iconFileText;
12794
12826
  return FALLBACK_ICON;
12795
12827
  });
12796
- const __returned__ = { props, FALLBACK_ICON, icon, OnyxIcon };
12828
+ const __returned__ = { props, iconProps, FALLBACK_ICON, icon, OnyxIcon };
12797
12829
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
12798
12830
  return __returned__;
12799
12831
  }
12800
12832
  });
12801
12833
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
12802
- return openBlock(), createBlock($setup["OnyxIcon"], mergeProps($setup.props, { icon: $setup.icon }), null, 16, ["icon"]);
12834
+ return openBlock(), createBlock($setup["OnyxIcon"], mergeProps($setup.iconProps, { icon: $setup.icon }), null, 16, ["icon"]);
12803
12835
  }
12804
12836
  const OnyxFileTypeIcon = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__file", "/home/runner/work/onyx/onyx/packages/sit-onyx/src/components/OnyxFileTypeIcon/OnyxFileTypeIcon.vue"]]);
12805
12837
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
@@ -13476,6 +13508,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
13476
13508
  const props = __props;
13477
13509
  const emit = __emit;
13478
13510
  const { t } = injectI18n();
13511
+ const tagProps = useForwardProps(props, OnyxTag);
13479
13512
  const active = useVModel({
13480
13513
  props,
13481
13514
  emit,
@@ -13486,7 +13519,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
13486
13519
  () => active.value ? t.value("filterTag.clickToRemove", { label: props.label }) : t.value("filterTag.clickToAdd", { label: props.label })
13487
13520
  );
13488
13521
  const skeleton = useSkeletonContext(props);
13489
- const __returned__ = { props, emit, t, active, tooltipLabel, skeleton, get iconXSmall() {
13522
+ const __returned__ = { props, emit, t, tagProps, active, tooltipLabel, skeleton, get iconXSmall() {
13490
13523
  return iconXSmall;
13491
13524
  }, OnyxTag };
13492
13525
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
@@ -13494,7 +13527,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
13494
13527
  }
13495
13528
  });
13496
13529
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
13497
- return openBlock(), createBlock($setup["OnyxTag"], mergeProps($setup.props, {
13530
+ return openBlock(), createBlock($setup["OnyxTag"], mergeProps($setup.tagProps, {
13498
13531
  clickable: { label: $setup.tooltipLabel, actionIcon: $setup.active ? $setup.iconXSmall : void 0 },
13499
13532
  class: "onyx-filter-tag",
13500
13533
  skeleton: $setup.skeleton,
@@ -13543,6 +13576,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
13543
13576
  default: ""
13544
13577
  });
13545
13578
  const { rootAttrs, restAttrs } = useRootAttrs();
13579
+ const formElementProps = useForwardProps(props, OnyxFormElement);
13546
13580
  const { maxLength, maxLengthError } = useLenientMaxLengthValidation({ props, modelValue });
13547
13581
  const error = computed(() => props.error ?? maxLengthError.value);
13548
13582
  const { vCustomValidity, errorMessages } = useFormElementError({ props, emit, error });
@@ -13565,7 +13599,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
13565
13599
  const input2 = useTemplateRef("inputRef");
13566
13600
  __expose({ input: input2 });
13567
13601
  useAutofocus(input2, props);
13568
- const __returned__ = { props, emit, modelValue, rootAttrs, restAttrs, maxLength, maxLengthError, error, vCustomValidity, errorMessages, densityClass, successMessages, messages, autosizeMinMaxStyles, handleInput, disabled, showError, skeleton, errorClass, input: input2, OnyxFormElement, OnyxSkeleton };
13602
+ const __returned__ = { props, emit, modelValue, rootAttrs, restAttrs, formElementProps, maxLength, maxLengthError, error, vCustomValidity, errorMessages, densityClass, successMessages, messages, autosizeMinMaxStyles, handleInput, disabled, showError, skeleton, errorClass, input: input2, OnyxFormElement, OnyxSkeleton };
13569
13603
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
13570
13604
  return __returned__;
13571
13605
  }
@@ -13597,7 +13631,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
13597
13631
  style: $setup.autosizeMinMaxStyles
13598
13632
  }, $setup.rootAttrs),
13599
13633
  [
13600
- createVNode($setup["OnyxFormElement"], mergeProps($setup.props, {
13634
+ createVNode($setup["OnyxFormElement"], mergeProps($setup.formElementProps, {
13601
13635
  message: $setup.messages,
13602
13636
  "success-messages": $setup.successMessages,
13603
13637
  "error-messages": $setup.errorMessages