@synergy-design-system/vue 1.23.1 → 1.24.0

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.
Files changed (68) hide show
  1. package/README.md +27 -1
  2. package/dist/components/SynVueAlert.vue.d.ts +2 -2
  3. package/dist/components/SynVueBadge.vue.d.ts +4 -1
  4. package/dist/components/SynVueButton.vue.d.ts +1 -2
  5. package/dist/components/SynVueButtonGroup.vue.d.ts +4 -1
  6. package/dist/components/SynVueCheckbox.vue.d.ts +2 -2
  7. package/dist/components/SynVueDialog.vue.d.ts +2 -4
  8. package/dist/components/SynVueDivider.vue.d.ts +2 -0
  9. package/dist/components/SynVueDrawer.vue.d.ts +2 -4
  10. package/dist/components/SynVueDropdown.vue.d.ts +1 -1
  11. package/dist/components/SynVueHeader.vue.d.ts +2 -6
  12. package/dist/components/SynVueIcon.vue.d.ts +1 -0
  13. package/dist/components/SynVueIconButton.vue.d.ts +1 -0
  14. package/dist/components/SynVueInput.vue.d.ts +3 -10
  15. package/dist/components/SynVueMenu.vue.d.ts +4 -2
  16. package/dist/components/SynVueMenuItem.vue.d.ts +2 -3
  17. package/dist/components/SynVueMenuLabel.vue.d.ts +4 -1
  18. package/dist/components/SynVueNavItem.vue.d.ts +2 -4
  19. package/dist/components/SynVueOptgroup.vue.d.ts +2 -3
  20. package/dist/components/SynVueOption.vue.d.ts +2 -2
  21. package/dist/components/SynVuePopup.vue.d.ts +2 -2
  22. package/dist/components/SynVuePrioNav.vue.d.ts +4 -1
  23. package/dist/components/SynVueProgressBar.vue.d.ts +4 -1
  24. package/dist/components/SynVueProgressRing.vue.d.ts +4 -1
  25. package/dist/components/SynVueRadio.vue.d.ts +2 -1
  26. package/dist/components/SynVueRadioButton.vue.d.ts +2 -3
  27. package/dist/components/SynVueRadioGroup.vue.d.ts +2 -3
  28. package/dist/components/SynVueSelect.vue.d.ts +2 -6
  29. package/dist/components/SynVueSideNav.vue.d.ts +2 -2
  30. package/dist/components/SynVueSpinner.vue.d.ts +4 -1
  31. package/dist/components/SynVueSwitch.vue.d.ts +2 -2
  32. package/dist/components/SynVueTag.vue.d.ts +4 -2
  33. package/dist/components/SynVueTextarea.vue.d.ts +3 -3
  34. package/dist/components/SynVueTooltip.vue.d.ts +2 -2
  35. package/package.json +2 -2
  36. package/src/components/SynVueAlert.vue +8 -8
  37. package/src/components/SynVueBadge.vue +3 -2
  38. package/src/components/SynVueButton.vue +11 -12
  39. package/src/components/SynVueButtonGroup.vue +3 -2
  40. package/src/components/SynVueCheckbox.vue +12 -12
  41. package/src/components/SynVueDialog.vue +6 -8
  42. package/src/components/SynVueDivider.vue +4 -3
  43. package/src/components/SynVueDrawer.vue +7 -9
  44. package/src/components/SynVueDropdown.vue +16 -16
  45. package/src/components/SynVueHeader.vue +5 -9
  46. package/src/components/SynVueIcon.vue +5 -4
  47. package/src/components/SynVueIconButton.vue +6 -5
  48. package/src/components/SynVueInput.vue +19 -26
  49. package/src/components/SynVueMenu.vue +3 -2
  50. package/src/components/SynVueMenuItem.vue +8 -10
  51. package/src/components/SynVueMenuLabel.vue +3 -2
  52. package/src/components/SynVueNavItem.vue +7 -9
  53. package/src/components/SynVueOptgroup.vue +4 -6
  54. package/src/components/SynVueOption.vue +7 -8
  55. package/src/components/SynVuePopup.vue +4 -4
  56. package/src/components/SynVuePrioNav.vue +3 -2
  57. package/src/components/SynVueProgressBar.vue +3 -2
  58. package/src/components/SynVueProgressRing.vue +3 -2
  59. package/src/components/SynVueRadio.vue +5 -4
  60. package/src/components/SynVueRadioButton.vue +6 -7
  61. package/src/components/SynVueRadioGroup.vue +9 -10
  62. package/src/components/SynVueSelect.vue +14 -18
  63. package/src/components/SynVueSideNav.vue +8 -8
  64. package/src/components/SynVueSpinner.vue +3 -2
  65. package/src/components/SynVueSwitch.vue +12 -12
  66. package/src/components/SynVueTag.vue +3 -2
  67. package/src/components/SynVueTextarea.vue +17 -17
  68. package/src/components/SynVueTooltip.vue +8 -8
@@ -23,15 +23,16 @@ import '@synergy-design-system/components/components/icon/icon.js';
23
23
  import type { SynErrorEvent, SynIcon, SynLoadEvent } from '@synergy-design-system/components';
24
24
 
25
25
  // DOM Reference to the element
26
- const element = ref<SynIcon>();
26
+ const nativeElement = ref<SynIcon>();
27
27
 
28
28
  // Map methods
29
- const callHandleLabelChange = (...args: Parameters<SynIcon['handleLabelChange']>) => element.value?.handleLabelChange(...args);
30
- const callSetIcon = (...args: Parameters<SynIcon['setIcon']>) => element.value?.setIcon(...args);
29
+ const callHandleLabelChange = (...args: Parameters<SynIcon['handleLabelChange']>) => nativeElement.value?.handleLabelChange(...args);
30
+ const callSetIcon = (...args: Parameters<SynIcon['setIcon']>) => nativeElement.value?.setIcon(...args);
31
31
 
32
32
  defineExpose({
33
33
  callHandleLabelChange,
34
34
  callSetIcon,
35
+ nativeElement,
35
36
  });
36
37
 
37
38
  // Map attributes
@@ -96,7 +97,7 @@ export type { SynErrorEvent } from '@synergy-design-system/components';
96
97
  <template>
97
98
  <syn-icon
98
99
  v-bind="visibleProps"
99
- ref="element"
100
+ ref="nativeElement"
100
101
 
101
102
  @syn-load="$emit('syn-load', $event)"
102
103
  @syn-error="$emit('syn-error', $event)"
@@ -24,26 +24,27 @@ import '@synergy-design-system/components/components/icon-button/icon-button.js'
24
24
  import type { SynBlurEvent, SynFocusEvent, SynIconButton } from '@synergy-design-system/components';
25
25
 
26
26
  // DOM Reference to the element
27
- const element = ref<SynIconButton>();
27
+ const nativeElement = ref<SynIconButton>();
28
28
 
29
29
  // Map methods
30
30
  /**
31
31
  * Simulates a click on the icon button.
32
32
  */
33
- const callClick = (...args: Parameters<SynIconButton['click']>) => element.value?.click(...args);
33
+ const callClick = (...args: Parameters<SynIconButton['click']>) => nativeElement.value?.click(...args);
34
34
  /**
35
35
  * Sets focus on the icon button.
36
36
  */
37
- const callFocus = (...args: Parameters<SynIconButton['focus']>) => element.value?.focus(...args);
37
+ const callFocus = (...args: Parameters<SynIconButton['focus']>) => nativeElement.value?.focus(...args);
38
38
  /**
39
39
  * Removes focus from the icon button.
40
40
  */
41
- const callBlur = (...args: Parameters<SynIconButton['blur']>) => element.value?.blur(...args);
41
+ const callBlur = (...args: Parameters<SynIconButton['blur']>) => nativeElement.value?.blur(...args);
42
42
 
43
43
  defineExpose({
44
44
  callClick,
45
45
  callFocus,
46
46
  callBlur,
47
+ nativeElement,
47
48
  });
48
49
 
49
50
  // Map attributes
@@ -139,7 +140,7 @@ export type { SynFocusEvent } from '@synergy-design-system/components';
139
140
  <template>
140
141
  <syn-icon-button
141
142
  v-bind="visibleProps"
142
- ref="element"
143
+ ref="nativeElement"
143
144
 
144
145
  @syn-blur="$emit('syn-blur', $event)"
145
146
  @syn-focus="$emit('syn-focus', $event)"
@@ -54,62 +54,62 @@ import type {
54
54
  } from '@synergy-design-system/components';
55
55
 
56
56
  // DOM Reference to the element
57
- const element = ref<SynInput>();
57
+ const nativeElement = ref<SynInput>();
58
58
 
59
59
  // Map methods
60
- const callHandleDisabledChange = (...args: Parameters<SynInput['handleDisabledChange']>) => element.value?.handleDisabledChange(...args);
61
- const callHandleStepChange = (...args: Parameters<SynInput['handleStepChange']>) => element.value?.handleStepChange(...args);
62
- const callHandleValueChange = (...args: Parameters<SynInput['handleValueChange']>) => element.value?.handleValueChange(...args);
60
+ const callHandleDisabledChange = (...args: Parameters<SynInput['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
61
+ const callHandleStepChange = (...args: Parameters<SynInput['handleStepChange']>) => nativeElement.value?.handleStepChange(...args);
62
+ const callHandleValueChange = (...args: Parameters<SynInput['handleValueChange']>) => nativeElement.value?.handleValueChange(...args);
63
63
  /**
64
64
  * Sets focus on the input.
65
65
  */
66
- const callFocus = (...args: Parameters<SynInput['focus']>) => element.value?.focus(...args);
66
+ const callFocus = (...args: Parameters<SynInput['focus']>) => nativeElement.value?.focus(...args);
67
67
  /**
68
68
  * Removes focus from the input.
69
69
  */
70
- const callBlur = (...args: Parameters<SynInput['blur']>) => element.value?.blur(...args);
70
+ const callBlur = (...args: Parameters<SynInput['blur']>) => nativeElement.value?.blur(...args);
71
71
  /**
72
72
  * Selects all the text in the input.
73
73
  */
74
- const callSelect = (...args: Parameters<SynInput['select']>) => element.value?.select(...args);
74
+ const callSelect = (...args: Parameters<SynInput['select']>) => nativeElement.value?.select(...args);
75
75
  /**
76
76
  * Sets the start and end positions of the text selection (0-based).
77
77
  */
78
- const callSetSelectionRange = (...args: Parameters<SynInput['setSelectionRange']>) => element.value?.setSelectionRange(...args);
78
+ const callSetSelectionRange = (...args: Parameters<SynInput['setSelectionRange']>) => nativeElement.value?.setSelectionRange(...args);
79
79
  /**
80
80
  * Replaces a range of text with a new string.
81
81
  */
82
- const callSetRangeText = (...args: Parameters<SynInput['setRangeText']>) => element.value?.setRangeText(...args);
82
+ const callSetRangeText = (...args: Parameters<SynInput['setRangeText']>) => nativeElement.value?.setRangeText(...args);
83
83
  /**
84
84
  * Displays the browser picker for an input element (only works if the browser supports it for the input type).
85
85
  */
86
- const callShowPicker = (...args: Parameters<SynInput['showPicker']>) => element.value?.showPicker(...args);
86
+ const callShowPicker = (...args: Parameters<SynInput['showPicker']>) => nativeElement.value?.showPicker(...args);
87
87
  /**
88
88
  * Increments the value of a numeric input type by the value of the step attribute.
89
89
  */
90
- const callStepUp = (...args: Parameters<SynInput['stepUp']>) => element.value?.stepUp(...args);
90
+ const callStepUp = (...args: Parameters<SynInput['stepUp']>) => nativeElement.value?.stepUp(...args);
91
91
  /**
92
92
  * Decrements the value of a numeric input type by the value of the step attribute.
93
93
  */
94
- const callStepDown = (...args: Parameters<SynInput['stepDown']>) => element.value?.stepDown(...args);
94
+ const callStepDown = (...args: Parameters<SynInput['stepDown']>) => nativeElement.value?.stepDown(...args);
95
95
  /**
96
96
  * Checks for validity but does not show a validation message.
97
97
  * Returns `true` when valid and `false` when invalid.
98
98
  */
99
- const callCheckValidity = (...args: Parameters<SynInput['checkValidity']>) => element.value?.checkValidity(...args);
99
+ const callCheckValidity = (...args: Parameters<SynInput['checkValidity']>) => nativeElement.value?.checkValidity(...args);
100
100
  /**
101
101
  * Gets the associated form, if one exists.
102
102
  */
103
- const callGetForm = (...args: Parameters<SynInput['getForm']>) => element.value?.getForm(...args);
103
+ const callGetForm = (...args: Parameters<SynInput['getForm']>) => nativeElement.value?.getForm(...args);
104
104
  /**
105
105
  * Checks for validity and shows the browser's validation message if the control is invalid.
106
106
  */
107
- const callReportValidity = (...args: Parameters<SynInput['reportValidity']>) => element.value?.reportValidity(...args);
107
+ const callReportValidity = (...args: Parameters<SynInput['reportValidity']>) => nativeElement.value?.reportValidity(...args);
108
108
  /**
109
109
  * Sets a custom validation message.
110
110
  * Pass an empty string to restore validity.
111
111
  */
112
- const callSetCustomValidity = (...args: Parameters<SynInput['setCustomValidity']>) => element.value?.setCustomValidity(...args);
112
+ const callSetCustomValidity = (...args: Parameters<SynInput['setCustomValidity']>) => nativeElement.value?.setCustomValidity(...args);
113
113
 
114
114
  defineExpose({
115
115
  callHandleDisabledChange,
@@ -127,6 +127,7 @@ defineExpose({
127
127
  callGetForm,
128
128
  callReportValidity,
129
129
  callSetCustomValidity,
130
+ nativeElement,
130
131
  });
131
132
 
132
133
  // Map attributes
@@ -358,7 +359,7 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
358
359
  <template>
359
360
  <syn-input
360
361
  v-bind="visibleProps"
361
- ref="element"
362
+ ref="nativeElement"
362
363
  :value="typeof props.modelValue !== 'undefined' ? props.modelValue : typeof props.value !== 'undefined' ? props.value : undefined"
363
364
  @syn-blur="$emit('syn-blur', $event)"
364
365
  @syn-change="$emit('syn-change', $event)"
@@ -367,14 +368,6 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
367
368
  @syn-input="$emit('update:modelValue', $event.target.value); $emit('syn-input', $event)"
368
369
  @syn-invalid="$emit('syn-invalid', $event)"
369
370
  >
370
- <slot name="label" />
371
- <slot name="prefix" />
372
- <slot name="suffix" />
373
- <slot name="clear-icon" />
374
- <slot name="show-password-icon" />
375
- <slot name="hide-password-icon" />
376
- <slot name="help-text" />
377
- <slot name="increment-number-stepper" />
378
- <slot name="decrement-number-stepper" />
371
+ <slot />
379
372
  </syn-input>
380
373
  </template>
@@ -21,12 +21,13 @@ import '@synergy-design-system/components/components/menu/menu.js';
21
21
  import type { SynMenu, SynSelectEvent } from '@synergy-design-system/components';
22
22
 
23
23
  // DOM Reference to the element
24
- const element = ref<SynMenu>();
24
+ const nativeElement = ref<SynMenu>();
25
25
 
26
26
  // Map methods
27
27
 
28
28
  defineExpose({
29
29
 
30
+ nativeElement,
30
31
  });
31
32
 
32
33
  // Map attributes
@@ -61,7 +62,7 @@ export type { SynSelectEvent } from '@synergy-design-system/components';
61
62
  <syn-menu
62
63
  v-bind="visibleProps"
63
64
 
64
- ref="element"
65
+ ref="nativeElement"
65
66
  @syn-select="$emit('syn-select', $event)"
66
67
  >
67
68
  <slot />
@@ -37,17 +37,17 @@ import '@synergy-design-system/components/components/menu-item/menu-item.js';
37
37
  import type { SynMenuItem } from '@synergy-design-system/components';
38
38
 
39
39
  // DOM Reference to the element
40
- const element = ref<SynMenuItem>();
40
+ const nativeElement = ref<SynMenuItem>();
41
41
 
42
42
  // Map methods
43
- const callHandleCheckedChange = (...args: Parameters<SynMenuItem['handleCheckedChange']>) => element.value?.handleCheckedChange(...args);
44
- const callHandleDisabledChange = (...args: Parameters<SynMenuItem['handleDisabledChange']>) => element.value?.handleDisabledChange(...args);
45
- const callHandleTypeChange = (...args: Parameters<SynMenuItem['handleTypeChange']>) => element.value?.handleTypeChange(...args);
43
+ const callHandleCheckedChange = (...args: Parameters<SynMenuItem['handleCheckedChange']>) => nativeElement.value?.handleCheckedChange(...args);
44
+ const callHandleDisabledChange = (...args: Parameters<SynMenuItem['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
45
+ const callHandleTypeChange = (...args: Parameters<SynMenuItem['handleTypeChange']>) => nativeElement.value?.handleTypeChange(...args);
46
46
  /**
47
47
  * Returns a text label based on the contents of the menu item's default slot.
48
48
  */
49
- const callGetTextLabel = (...args: Parameters<SynMenuItem['getTextLabel']>) => element.value?.getTextLabel(...args);
50
- const callIsSubmenu = (...args: Parameters<SynMenuItem['isSubmenu']>) => element.value?.isSubmenu(...args);
49
+ const callGetTextLabel = (...args: Parameters<SynMenuItem['getTextLabel']>) => nativeElement.value?.getTextLabel(...args);
50
+ const callIsSubmenu = (...args: Parameters<SynMenuItem['isSubmenu']>) => nativeElement.value?.isSubmenu(...args);
51
51
 
52
52
  defineExpose({
53
53
  callHandleCheckedChange,
@@ -55,6 +55,7 @@ defineExpose({
55
55
  callHandleTypeChange,
56
56
  callGetTextLabel,
57
57
  callIsSubmenu,
58
+ nativeElement,
58
59
  });
59
60
 
60
61
  // Map attributes
@@ -107,11 +108,8 @@ defineEmits<{
107
108
  <syn-menu-item
108
109
 
109
110
  v-bind="visibleProps"
110
- ref="element"
111
+ ref="nativeElement"
111
112
  >
112
113
  <slot />
113
- <slot name="prefix" />
114
- <slot name="suffix" />
115
- <slot name="submenu" />
116
114
  </syn-menu-item>
117
115
  </template>
@@ -27,12 +27,13 @@ import '@synergy-design-system/components/components/menu-label/menu-label.js';
27
27
  import type { SynMenuLabel } from '@synergy-design-system/components';
28
28
 
29
29
  // DOM Reference to the element
30
- const element = ref<SynMenuLabel>();
30
+ const nativeElement = ref<SynMenuLabel>();
31
31
 
32
32
  // Map methods
33
33
 
34
34
  defineExpose({
35
35
 
36
+ nativeElement,
36
37
  });
37
38
 
38
39
  // Map attributes
@@ -60,7 +61,7 @@ defineEmits<{
60
61
  <syn-menu-label
61
62
 
62
63
  v-bind="visibleProps"
63
- ref="element"
64
+ ref="nativeElement"
64
65
  >
65
66
  <slot />
66
67
  </syn-menu-label>
@@ -58,28 +58,29 @@ import type {
58
58
  } from '@synergy-design-system/components';
59
59
 
60
60
  // DOM Reference to the element
61
- const element = ref<SynNavItem>();
61
+ const nativeElement = ref<SynNavItem>();
62
62
 
63
63
  // Map methods
64
- const callHandleOpenChange = (...args: Parameters<SynNavItem['handleOpenChange']>) => element.value?.handleOpenChange(...args);
64
+ const callHandleOpenChange = (...args: Parameters<SynNavItem['handleOpenChange']>) => nativeElement.value?.handleOpenChange(...args);
65
65
  /**
66
66
  * Removes focus from the button.
67
67
  */
68
- const callBlur = (...args: Parameters<SynNavItem['blur']>) => element.value?.blur(...args);
68
+ const callBlur = (...args: Parameters<SynNavItem['blur']>) => nativeElement.value?.blur(...args);
69
69
  /**
70
70
  * Simulates a click on the nav-items button, link or summary.
71
71
  */
72
- const callClick = (...args: Parameters<SynNavItem['click']>) => element.value?.click(...args);
72
+ const callClick = (...args: Parameters<SynNavItem['click']>) => nativeElement.value?.click(...args);
73
73
  /**
74
74
  * Sets focus on the nav-item
75
75
  */
76
- const callFocus = (...args: Parameters<SynNavItem['focus']>) => element.value?.focus(...args);
76
+ const callFocus = (...args: Parameters<SynNavItem['focus']>) => nativeElement.value?.focus(...args);
77
77
 
78
78
  defineExpose({
79
79
  callHandleOpenChange,
80
80
  callBlur,
81
81
  callClick,
82
82
  callFocus,
83
+ nativeElement,
83
84
  });
84
85
 
85
86
  // Map attributes
@@ -168,7 +169,7 @@ export type { SynFocusEvent } from '@synergy-design-system/components';
168
169
  <template>
169
170
  <syn-nav-item
170
171
  v-bind="visibleProps"
171
- ref="element"
172
+ ref="nativeElement"
172
173
  @syn-show="$emit('syn-show', $event)"
173
174
  @syn-hide="$emit('syn-hide', $event)"
174
175
 
@@ -176,8 +177,5 @@ export type { SynFocusEvent } from '@synergy-design-system/components';
176
177
  @syn-focus="$emit('syn-focus', $event)"
177
178
  >
178
179
  <slot />
179
- <slot name="prefix" />
180
- <slot name="suffix" />
181
- <slot name="children" />
182
180
  </syn-nav-item>
183
181
  </template>
@@ -33,13 +33,14 @@ import '@synergy-design-system/components/components/optgroup/optgroup.js';
33
33
  import type { SynOptgroup } from '@synergy-design-system/components';
34
34
 
35
35
  // DOM Reference to the element
36
- const element = ref<SynOptgroup>();
36
+ const nativeElement = ref<SynOptgroup>();
37
37
 
38
38
  // Map methods
39
- const callHandleDisabledChange = (...args: Parameters<SynOptgroup['handleDisabledChange']>) => element.value?.handleDisabledChange(...args);
39
+ const callHandleDisabledChange = (...args: Parameters<SynOptgroup['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
40
40
 
41
41
  defineExpose({
42
42
  callHandleDisabledChange,
43
+ nativeElement,
43
44
  });
44
45
 
45
46
  // Map attributes
@@ -76,11 +77,8 @@ defineEmits<{
76
77
  <syn-optgroup
77
78
 
78
79
  v-bind="visibleProps"
79
- ref="element"
80
+ ref="nativeElement"
80
81
  >
81
82
  <slot />
82
- <slot name="prefix" />
83
- <slot name="label" />
84
- <slot name="suffix" />
85
83
  </syn-optgroup>
86
84
  </template>
@@ -29,22 +29,23 @@ import '@synergy-design-system/components/components/option/option.js';
29
29
  import type { SynOption } from '@synergy-design-system/components';
30
30
 
31
31
  // DOM Reference to the element
32
- const element = ref<SynOption>();
32
+ const nativeElement = ref<SynOption>();
33
33
 
34
34
  // Map methods
35
- const callHandleDisabledChange = (...args: Parameters<SynOption['handleDisabledChange']>) => element.value?.handleDisabledChange(...args);
36
- const callHandleSelectedChange = (...args: Parameters<SynOption['handleSelectedChange']>) => element.value?.handleSelectedChange(...args);
37
- const callHandleValueChange = (...args: Parameters<SynOption['handleValueChange']>) => element.value?.handleValueChange(...args);
35
+ const callHandleDisabledChange = (...args: Parameters<SynOption['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
36
+ const callHandleSelectedChange = (...args: Parameters<SynOption['handleSelectedChange']>) => nativeElement.value?.handleSelectedChange(...args);
37
+ const callHandleValueChange = (...args: Parameters<SynOption['handleValueChange']>) => nativeElement.value?.handleValueChange(...args);
38
38
  /**
39
39
  * Returns a plain text label based on the option's content.
40
40
  */
41
- const callGetTextLabel = (...args: Parameters<SynOption['getTextLabel']>) => element.value?.getTextLabel(...args);
41
+ const callGetTextLabel = (...args: Parameters<SynOption['getTextLabel']>) => nativeElement.value?.getTextLabel(...args);
42
42
 
43
43
  defineExpose({
44
44
  callHandleDisabledChange,
45
45
  callHandleSelectedChange,
46
46
  callHandleValueChange,
47
47
  callGetTextLabel,
48
+ nativeElement,
48
49
  });
49
50
 
50
51
  // Map attributes
@@ -85,10 +86,8 @@ defineEmits<{
85
86
  <syn-option
86
87
 
87
88
  v-bind="visibleProps"
88
- ref="element"
89
+ ref="nativeElement"
89
90
  >
90
91
  <slot />
91
- <slot name="prefix" />
92
- <slot name="suffix" />
93
92
  </syn-option>
94
93
  </template>
@@ -40,16 +40,17 @@ import '@synergy-design-system/components/components/popup/popup.js';
40
40
  import type { SynPopup, SynRepositionEvent } from '@synergy-design-system/components';
41
41
 
42
42
  // DOM Reference to the element
43
- const element = ref<SynPopup>();
43
+ const nativeElement = ref<SynPopup>();
44
44
 
45
45
  // Map methods
46
46
  /**
47
47
  * Forces the popup to recalculate and reposition itself.
48
48
  */
49
- const callReposition = (...args: Parameters<SynPopup['reposition']>) => element.value?.reposition(...args);
49
+ const callReposition = (...args: Parameters<SynPopup['reposition']>) => nativeElement.value?.reposition(...args);
50
50
 
51
51
  defineExpose({
52
52
  callReposition,
53
+ nativeElement,
53
54
  });
54
55
 
55
56
  // Map attributes
@@ -239,10 +240,9 @@ export type { SynRepositionEvent } from '@synergy-design-system/components';
239
240
  <syn-popup
240
241
  v-bind="visibleProps"
241
242
 
242
- ref="element"
243
+ ref="nativeElement"
243
244
  @syn-reposition="$emit('syn-reposition', $event)"
244
245
  >
245
246
  <slot />
246
- <slot name="anchor" />
247
247
  </syn-popup>
248
248
  </template>
@@ -45,12 +45,13 @@ import '@synergy-design-system/components/components/prio-nav/prio-nav.js';
45
45
  import type { SynPrioNav } from '@synergy-design-system/components';
46
46
 
47
47
  // DOM Reference to the element
48
- const element = ref<SynPrioNav>();
48
+ const nativeElement = ref<SynPrioNav>();
49
49
 
50
50
  // Map methods
51
51
 
52
52
  defineExpose({
53
53
 
54
+ nativeElement,
54
55
  });
55
56
 
56
57
  // Map attributes
@@ -82,7 +83,7 @@ defineEmits<{
82
83
  <syn-prio-nav
83
84
 
84
85
  v-bind="visibleProps"
85
- ref="element"
86
+ ref="nativeElement"
86
87
  >
87
88
  <slot />
88
89
  </syn-prio-nav>
@@ -29,12 +29,13 @@ import '@synergy-design-system/components/components/progress-bar/progress-bar.j
29
29
  import type { SynProgressBar } from '@synergy-design-system/components';
30
30
 
31
31
  // DOM Reference to the element
32
- const element = ref<SynProgressBar>();
32
+ const nativeElement = ref<SynProgressBar>();
33
33
 
34
34
  // Map methods
35
35
 
36
36
  defineExpose({
37
37
 
38
+ nativeElement,
38
39
  });
39
40
 
40
41
  // Map attributes
@@ -75,7 +76,7 @@ defineEmits<{
75
76
  <syn-progress-bar
76
77
 
77
78
  v-bind="visibleProps"
78
- ref="element"
79
+ ref="nativeElement"
79
80
  >
80
81
  <slot />
81
82
  </syn-progress-bar>
@@ -29,12 +29,13 @@ import '@synergy-design-system/components/components/progress-ring/progress-ring
29
29
  import type { SynProgressRing } from '@synergy-design-system/components';
30
30
 
31
31
  // DOM Reference to the element
32
- const element = ref<SynProgressRing>();
32
+ const nativeElement = ref<SynProgressRing>();
33
33
 
34
34
  // Map methods
35
35
 
36
36
  defineExpose({
37
37
 
38
+ nativeElement,
38
39
  });
39
40
 
40
41
  // Map attributes
@@ -70,7 +71,7 @@ defineEmits<{
70
71
  <syn-progress-ring
71
72
 
72
73
  v-bind="visibleProps"
73
- ref="element"
74
+ ref="nativeElement"
74
75
  >
75
76
  <slot />
76
77
  </syn-progress-ring>
@@ -30,15 +30,16 @@ import '@synergy-design-system/components/components/radio/radio.js';
30
30
  import type { SynBlurEvent, SynFocusEvent, SynRadio } from '@synergy-design-system/components';
31
31
 
32
32
  // DOM Reference to the element
33
- const element = ref<SynRadio>();
33
+ const nativeElement = ref<SynRadio>();
34
34
 
35
35
  // Map methods
36
- const callHandleCheckedChange = (...args: Parameters<SynRadio['handleCheckedChange']>) => element.value?.handleCheckedChange(...args);
37
- const callHandleDisabledChange = (...args: Parameters<SynRadio['handleDisabledChange']>) => element.value?.handleDisabledChange(...args);
36
+ const callHandleCheckedChange = (...args: Parameters<SynRadio['handleCheckedChange']>) => nativeElement.value?.handleCheckedChange(...args);
37
+ const callHandleDisabledChange = (...args: Parameters<SynRadio['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
38
38
 
39
39
  defineExpose({
40
40
  callHandleCheckedChange,
41
41
  callHandleDisabledChange,
42
+ nativeElement,
42
43
  });
43
44
 
44
45
  // Map attributes
@@ -94,7 +95,7 @@ export type { SynFocusEvent } from '@synergy-design-system/components';
94
95
  <template>
95
96
  <syn-radio
96
97
  v-bind="visibleProps"
97
- ref="element"
98
+ ref="nativeElement"
98
99
 
99
100
  @syn-blur="$emit('syn-blur', $event)"
100
101
  @syn-focus="$emit('syn-focus', $event)"
@@ -31,23 +31,24 @@ import '@synergy-design-system/components/components/radio-button/radio-button.j
31
31
  import type { SynBlurEvent, SynFocusEvent, SynRadioButton } from '@synergy-design-system/components';
32
32
 
33
33
  // DOM Reference to the element
34
- const element = ref<SynRadioButton>();
34
+ const nativeElement = ref<SynRadioButton>();
35
35
 
36
36
  // Map methods
37
- const callHandleDisabledChange = (...args: Parameters<SynRadioButton['handleDisabledChange']>) => element.value?.handleDisabledChange(...args);
37
+ const callHandleDisabledChange = (...args: Parameters<SynRadioButton['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
38
38
  /**
39
39
  * Sets focus on the radio button.
40
40
  */
41
- const callFocus = (...args: Parameters<SynRadioButton['focus']>) => element.value?.focus(...args);
41
+ const callFocus = (...args: Parameters<SynRadioButton['focus']>) => nativeElement.value?.focus(...args);
42
42
  /**
43
43
  * Removes focus from the radio button.
44
44
  */
45
- const callBlur = (...args: Parameters<SynRadioButton['blur']>) => element.value?.blur(...args);
45
+ const callBlur = (...args: Parameters<SynRadioButton['blur']>) => nativeElement.value?.blur(...args);
46
46
 
47
47
  defineExpose({
48
48
  callHandleDisabledChange,
49
49
  callFocus,
50
50
  callBlur,
51
+ nativeElement,
51
52
  });
52
53
 
53
54
  // Map attributes
@@ -103,13 +104,11 @@ export type { SynFocusEvent } from '@synergy-design-system/components';
103
104
  <template>
104
105
  <syn-radio-button
105
106
  v-bind="visibleProps"
106
- ref="element"
107
+ ref="nativeElement"
107
108
 
108
109
  @syn-blur="$emit('syn-blur', $event)"
109
110
  @syn-focus="$emit('syn-focus', $event)"
110
111
  >
111
112
  <slot />
112
- <slot name="prefix" />
113
- <slot name="suffix" />
114
113
  </syn-radio-button>
115
114
  </template>
@@ -37,29 +37,29 @@ import type {
37
37
  } from '@synergy-design-system/components';
38
38
 
39
39
  // DOM Reference to the element
40
- const element = ref<SynRadioGroup>();
40
+ const nativeElement = ref<SynRadioGroup>();
41
41
 
42
42
  // Map methods
43
- const callHandleSizeChange = (...args: Parameters<SynRadioGroup['handleSizeChange']>) => element.value?.handleSizeChange(...args);
44
- const callHandleValueChange = (...args: Parameters<SynRadioGroup['handleValueChange']>) => element.value?.handleValueChange(...args);
43
+ const callHandleSizeChange = (...args: Parameters<SynRadioGroup['handleSizeChange']>) => nativeElement.value?.handleSizeChange(...args);
44
+ const callHandleValueChange = (...args: Parameters<SynRadioGroup['handleValueChange']>) => nativeElement.value?.handleValueChange(...args);
45
45
  /**
46
46
  * Checks for validity but does not show a validation message.
47
47
  * Returns `true` when valid and `false` when invalid.
48
48
  */
49
- const callCheckValidity = (...args: Parameters<SynRadioGroup['checkValidity']>) => element.value?.checkValidity(...args);
49
+ const callCheckValidity = (...args: Parameters<SynRadioGroup['checkValidity']>) => nativeElement.value?.checkValidity(...args);
50
50
  /**
51
51
  * Gets the associated form, if one exists.
52
52
  */
53
- const callGetForm = (...args: Parameters<SynRadioGroup['getForm']>) => element.value?.getForm(...args);
53
+ const callGetForm = (...args: Parameters<SynRadioGroup['getForm']>) => nativeElement.value?.getForm(...args);
54
54
  /**
55
55
  * Checks for validity and shows the browser's validation message if the control is invalid.
56
56
  */
57
- const callReportValidity = (...args: Parameters<SynRadioGroup['reportValidity']>) => element.value?.reportValidity(...args);
57
+ const callReportValidity = (...args: Parameters<SynRadioGroup['reportValidity']>) => nativeElement.value?.reportValidity(...args);
58
58
  /**
59
59
  * Sets a custom validation message.
60
60
  * Pass an empty string to restore validity.
61
61
  */
62
- const callSetCustomValidity = (...args: Parameters<SynRadioGroup['setCustomValidity']>) => element.value?.setCustomValidity(...args);
62
+ const callSetCustomValidity = (...args: Parameters<SynRadioGroup['setCustomValidity']>) => nativeElement.value?.setCustomValidity(...args);
63
63
 
64
64
  defineExpose({
65
65
  callHandleSizeChange,
@@ -68,6 +68,7 @@ defineExpose({
68
68
  callGetForm,
69
69
  callReportValidity,
70
70
  callSetCustomValidity,
71
+ nativeElement,
71
72
  });
72
73
 
73
74
  // Map attributes
@@ -165,14 +166,12 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
165
166
  <template>
166
167
  <syn-radio-group
167
168
  v-bind="visibleProps"
168
- ref="element"
169
+ ref="nativeElement"
169
170
  :value="typeof props.modelValue !== 'undefined' ? props.modelValue : typeof props.value !== 'undefined' ? props.value : undefined"
170
171
  @syn-change="$emit('syn-change', $event)"
171
172
  @syn-input="$emit('update:modelValue', $event.target.value); $emit('syn-input', $event)"
172
173
  @syn-invalid="$emit('syn-invalid', $event)"
173
174
  >
174
175
  <slot />
175
- <slot name="label" />
176
- <slot name="help-text" />
177
176
  </syn-radio-group>
178
177
  </template>