@synergy-design-system/vue 1.23.0 → 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.
- package/README.md +27 -1
- package/dist/components/SynVueAlert.vue.d.ts +2 -2
- package/dist/components/SynVueBadge.vue.d.ts +4 -1
- package/dist/components/SynVueButton.vue.d.ts +1 -2
- package/dist/components/SynVueButtonGroup.vue.d.ts +4 -1
- package/dist/components/SynVueCheckbox.vue.d.ts +2 -2
- package/dist/components/SynVueDialog.vue.d.ts +2 -4
- package/dist/components/SynVueDivider.vue.d.ts +2 -0
- package/dist/components/SynVueDrawer.vue.d.ts +2 -4
- package/dist/components/SynVueDropdown.vue.d.ts +1 -1
- package/dist/components/SynVueHeader.vue.d.ts +2 -6
- package/dist/components/SynVueIcon.vue.d.ts +1 -0
- package/dist/components/SynVueIconButton.vue.d.ts +1 -0
- package/dist/components/SynVueInput.vue.d.ts +3 -10
- package/dist/components/SynVueMenu.vue.d.ts +4 -2
- package/dist/components/SynVueMenuItem.vue.d.ts +2 -3
- package/dist/components/SynVueMenuLabel.vue.d.ts +4 -1
- package/dist/components/SynVueNavItem.vue.d.ts +2 -4
- package/dist/components/SynVueOptgroup.vue.d.ts +2 -3
- package/dist/components/SynVueOption.vue.d.ts +2 -2
- package/dist/components/SynVuePopup.vue.d.ts +2 -2
- package/dist/components/SynVuePrioNav.vue.d.ts +4 -1
- package/dist/components/SynVueProgressBar.vue.d.ts +4 -1
- package/dist/components/SynVueProgressRing.vue.d.ts +4 -1
- package/dist/components/SynVueRadio.vue.d.ts +2 -1
- package/dist/components/SynVueRadioButton.vue.d.ts +2 -3
- package/dist/components/SynVueRadioGroup.vue.d.ts +2 -3
- package/dist/components/SynVueSelect.vue.d.ts +2 -6
- package/dist/components/SynVueSideNav.vue.d.ts +2 -2
- package/dist/components/SynVueSpinner.vue.d.ts +4 -1
- package/dist/components/SynVueSwitch.vue.d.ts +2 -2
- package/dist/components/SynVueTag.vue.d.ts +4 -2
- package/dist/components/SynVueTextarea.vue.d.ts +3 -3
- package/dist/components/SynVueTooltip.vue.d.ts +2 -2
- package/package.json +2 -2
- package/src/components/SynVueAlert.vue +8 -8
- package/src/components/SynVueBadge.vue +3 -2
- package/src/components/SynVueButton.vue +11 -12
- package/src/components/SynVueButtonGroup.vue +3 -2
- package/src/components/SynVueCheckbox.vue +12 -12
- package/src/components/SynVueDialog.vue +6 -8
- package/src/components/SynVueDivider.vue +4 -3
- package/src/components/SynVueDrawer.vue +7 -9
- package/src/components/SynVueDropdown.vue +16 -16
- package/src/components/SynVueHeader.vue +5 -9
- package/src/components/SynVueIcon.vue +5 -4
- package/src/components/SynVueIconButton.vue +6 -5
- package/src/components/SynVueInput.vue +19 -26
- package/src/components/SynVueMenu.vue +3 -2
- package/src/components/SynVueMenuItem.vue +8 -10
- package/src/components/SynVueMenuLabel.vue +3 -2
- package/src/components/SynVueNavItem.vue +7 -9
- package/src/components/SynVueOptgroup.vue +4 -6
- package/src/components/SynVueOption.vue +7 -8
- package/src/components/SynVuePopup.vue +4 -4
- package/src/components/SynVuePrioNav.vue +3 -2
- package/src/components/SynVueProgressBar.vue +3 -2
- package/src/components/SynVueProgressRing.vue +3 -2
- package/src/components/SynVueRadio.vue +5 -4
- package/src/components/SynVueRadioButton.vue +6 -7
- package/src/components/SynVueRadioGroup.vue +9 -10
- package/src/components/SynVueSelect.vue +14 -18
- package/src/components/SynVueSideNav.vue +8 -8
- package/src/components/SynVueSpinner.vue +3 -2
- package/src/components/SynVueSwitch.vue +12 -12
- package/src/components/SynVueTag.vue +3 -2
- package/src/components/SynVueTextarea.vue +17 -17
- package/src/components/SynVueTooltip.vue +8 -8
|
@@ -58,46 +58,46 @@ import type {
|
|
|
58
58
|
} from '@synergy-design-system/components';
|
|
59
59
|
|
|
60
60
|
// DOM Reference to the element
|
|
61
|
-
const
|
|
61
|
+
const nativeElement = ref<SynSelect>();
|
|
62
62
|
|
|
63
63
|
// Map methods
|
|
64
|
-
const callHandleDisabledChange = (...args: Parameters<SynSelect['handleDisabledChange']>) =>
|
|
65
|
-
const callHandleValueChange = (...args: Parameters<SynSelect['handleValueChange']>) =>
|
|
66
|
-
const callHandleOpenChange = (...args: Parameters<SynSelect['handleOpenChange']>) =>
|
|
64
|
+
const callHandleDisabledChange = (...args: Parameters<SynSelect['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
|
|
65
|
+
const callHandleValueChange = (...args: Parameters<SynSelect['handleValueChange']>) => nativeElement.value?.handleValueChange(...args);
|
|
66
|
+
const callHandleOpenChange = (...args: Parameters<SynSelect['handleOpenChange']>) => nativeElement.value?.handleOpenChange(...args);
|
|
67
67
|
/**
|
|
68
68
|
* Shows the listbox.
|
|
69
69
|
*/
|
|
70
|
-
const callShow = (...args: Parameters<SynSelect['show']>) =>
|
|
70
|
+
const callShow = (...args: Parameters<SynSelect['show']>) => nativeElement.value?.show(...args);
|
|
71
71
|
/**
|
|
72
72
|
* Hides the listbox.
|
|
73
73
|
*/
|
|
74
|
-
const callHide = (...args: Parameters<SynSelect['hide']>) =>
|
|
74
|
+
const callHide = (...args: Parameters<SynSelect['hide']>) => nativeElement.value?.hide(...args);
|
|
75
75
|
/**
|
|
76
76
|
* Checks for validity but does not show a validation message.
|
|
77
77
|
* Returns `true` when valid and `false` when invalid.
|
|
78
78
|
*/
|
|
79
|
-
const callCheckValidity = (...args: Parameters<SynSelect['checkValidity']>) =>
|
|
79
|
+
const callCheckValidity = (...args: Parameters<SynSelect['checkValidity']>) => nativeElement.value?.checkValidity(...args);
|
|
80
80
|
/**
|
|
81
81
|
* Gets the associated form, if one exists.
|
|
82
82
|
*/
|
|
83
|
-
const callGetForm = (...args: Parameters<SynSelect['getForm']>) =>
|
|
83
|
+
const callGetForm = (...args: Parameters<SynSelect['getForm']>) => nativeElement.value?.getForm(...args);
|
|
84
84
|
/**
|
|
85
85
|
* Checks for validity and shows the browser's validation message if the control is invalid.
|
|
86
86
|
*/
|
|
87
|
-
const callReportValidity = (...args: Parameters<SynSelect['reportValidity']>) =>
|
|
87
|
+
const callReportValidity = (...args: Parameters<SynSelect['reportValidity']>) => nativeElement.value?.reportValidity(...args);
|
|
88
88
|
/**
|
|
89
89
|
* Sets a custom validation message.
|
|
90
90
|
* Pass an empty string to restore validity.
|
|
91
91
|
*/
|
|
92
|
-
const callSetCustomValidity = (...args: Parameters<SynSelect['setCustomValidity']>) =>
|
|
92
|
+
const callSetCustomValidity = (...args: Parameters<SynSelect['setCustomValidity']>) => nativeElement.value?.setCustomValidity(...args);
|
|
93
93
|
/**
|
|
94
94
|
* Sets focus on the control.
|
|
95
95
|
*/
|
|
96
|
-
const callFocus = (...args: Parameters<SynSelect['focus']>) =>
|
|
96
|
+
const callFocus = (...args: Parameters<SynSelect['focus']>) => nativeElement.value?.focus(...args);
|
|
97
97
|
/**
|
|
98
98
|
* Removes focus from the control.
|
|
99
99
|
*/
|
|
100
|
-
const callBlur = (...args: Parameters<SynSelect['blur']>) =>
|
|
100
|
+
const callBlur = (...args: Parameters<SynSelect['blur']>) => nativeElement.value?.blur(...args);
|
|
101
101
|
|
|
102
102
|
defineExpose({
|
|
103
103
|
callHandleDisabledChange,
|
|
@@ -111,6 +111,7 @@ defineExpose({
|
|
|
111
111
|
callSetCustomValidity,
|
|
112
112
|
callFocus,
|
|
113
113
|
callBlur,
|
|
114
|
+
nativeElement,
|
|
114
115
|
});
|
|
115
116
|
|
|
116
117
|
// Map attributes
|
|
@@ -312,7 +313,7 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
|
312
313
|
:value="typeof props.modelValue !== 'undefined' ? props.modelValue : typeof props.value !== 'undefined' ? props.value : undefined"
|
|
313
314
|
@syn-clear="$emit('syn-clear', $event)"
|
|
314
315
|
v-bind="visibleProps"
|
|
315
|
-
ref="
|
|
316
|
+
ref="nativeElement"
|
|
316
317
|
@syn-input="$emit('update:modelValue', $event.target.value); $emit('syn-input', $event)"
|
|
317
318
|
@syn-focus="$emit('syn-focus', $event)"
|
|
318
319
|
@syn-blur="$emit('syn-blur', $event)"
|
|
@@ -323,10 +324,5 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
|
323
324
|
@syn-invalid="$emit('syn-invalid', $event)"
|
|
324
325
|
>
|
|
325
326
|
<slot />
|
|
326
|
-
<slot name="label" />
|
|
327
|
-
<slot name="prefix" />
|
|
328
|
-
<slot name="clear-icon" />
|
|
329
|
-
<slot name="expand-icon" />
|
|
330
|
-
<slot name="help-text" />
|
|
331
327
|
</syn-select>
|
|
332
328
|
</template>
|
|
@@ -57,20 +57,20 @@ import type {
|
|
|
57
57
|
} from '@synergy-design-system/components';
|
|
58
58
|
|
|
59
59
|
// DOM Reference to the element
|
|
60
|
-
const
|
|
60
|
+
const nativeElement = ref<SynSideNav>();
|
|
61
61
|
|
|
62
62
|
// Map methods
|
|
63
|
-
const callHandleModeChange = (...args: Parameters<SynSideNav['handleModeChange']>) =>
|
|
64
|
-
const callHandleOpenChange = (...args: Parameters<SynSideNav['handleOpenChange']>) =>
|
|
65
|
-
const callHandleFocusTrapping = (...args: Parameters<SynSideNav['handleFocusTrapping']>) =>
|
|
63
|
+
const callHandleModeChange = (...args: Parameters<SynSideNav['handleModeChange']>) => nativeElement.value?.handleModeChange(...args);
|
|
64
|
+
const callHandleOpenChange = (...args: Parameters<SynSideNav['handleOpenChange']>) => nativeElement.value?.handleOpenChange(...args);
|
|
65
|
+
const callHandleFocusTrapping = (...args: Parameters<SynSideNav['handleFocusTrapping']>) => nativeElement.value?.handleFocusTrapping(...args);
|
|
66
66
|
/**
|
|
67
67
|
* Shows the side-nav.
|
|
68
68
|
*/
|
|
69
|
-
const callShow = (...args: Parameters<SynSideNav['show']>) =>
|
|
69
|
+
const callShow = (...args: Parameters<SynSideNav['show']>) => nativeElement.value?.show(...args);
|
|
70
70
|
/**
|
|
71
71
|
* Hides the side-nav
|
|
72
72
|
*/
|
|
73
|
-
const callHide = (...args: Parameters<SynSideNav['hide']>) =>
|
|
73
|
+
const callHide = (...args: Parameters<SynSideNav['hide']>) => nativeElement.value?.hide(...args);
|
|
74
74
|
|
|
75
75
|
defineExpose({
|
|
76
76
|
callHandleModeChange,
|
|
@@ -78,6 +78,7 @@ defineExpose({
|
|
|
78
78
|
callHandleFocusTrapping,
|
|
79
79
|
callShow,
|
|
80
80
|
callHide,
|
|
81
|
+
nativeElement,
|
|
81
82
|
});
|
|
82
83
|
|
|
83
84
|
// Map attributes
|
|
@@ -161,7 +162,7 @@ export type { SynAfterHideEvent } from '@synergy-design-system/components';
|
|
|
161
162
|
<template>
|
|
162
163
|
<syn-side-nav
|
|
163
164
|
v-bind="visibleProps"
|
|
164
|
-
ref="
|
|
165
|
+
ref="nativeElement"
|
|
165
166
|
@syn-show="$emit('syn-show', $event)"
|
|
166
167
|
@syn-after-show="$emit('syn-after-show', $event)"
|
|
167
168
|
|
|
@@ -169,6 +170,5 @@ export type { SynAfterHideEvent } from '@synergy-design-system/components';
|
|
|
169
170
|
@syn-after-hide="$emit('syn-after-hide', $event)"
|
|
170
171
|
>
|
|
171
172
|
<slot />
|
|
172
|
-
<slot name="footer" />
|
|
173
173
|
</syn-side-nav>
|
|
174
174
|
</template>
|
|
@@ -23,12 +23,13 @@ import '@synergy-design-system/components/components/spinner/spinner.js';
|
|
|
23
23
|
import type { SynSpinner } from '@synergy-design-system/components';
|
|
24
24
|
|
|
25
25
|
// DOM Reference to the element
|
|
26
|
-
const
|
|
26
|
+
const nativeElement = ref<SynSpinner>();
|
|
27
27
|
|
|
28
28
|
// Map methods
|
|
29
29
|
|
|
30
30
|
defineExpose({
|
|
31
31
|
|
|
32
|
+
nativeElement,
|
|
32
33
|
});
|
|
33
34
|
|
|
34
35
|
// Map attributes
|
|
@@ -56,6 +57,6 @@ defineEmits<{
|
|
|
56
57
|
<syn-spinner
|
|
57
58
|
|
|
58
59
|
v-bind="visibleProps"
|
|
59
|
-
ref="
|
|
60
|
+
ref="nativeElement"
|
|
60
61
|
/>
|
|
61
62
|
</template>
|
|
@@ -38,41 +38,41 @@ import type {
|
|
|
38
38
|
} from '@synergy-design-system/components';
|
|
39
39
|
|
|
40
40
|
// DOM Reference to the element
|
|
41
|
-
const
|
|
41
|
+
const nativeElement = ref<SynSwitch>();
|
|
42
42
|
|
|
43
43
|
// Map methods
|
|
44
|
-
const callHandleCheckedChange = (...args: Parameters<SynSwitch['handleCheckedChange']>) =>
|
|
45
|
-
const callHandleDisabledChange = (...args: Parameters<SynSwitch['handleDisabledChange']>) =>
|
|
44
|
+
const callHandleCheckedChange = (...args: Parameters<SynSwitch['handleCheckedChange']>) => nativeElement.value?.handleCheckedChange(...args);
|
|
45
|
+
const callHandleDisabledChange = (...args: Parameters<SynSwitch['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
|
|
46
46
|
/**
|
|
47
47
|
* Simulates a click on the switch.
|
|
48
48
|
*/
|
|
49
|
-
const callClick = (...args: Parameters<SynSwitch['click']>) =>
|
|
49
|
+
const callClick = (...args: Parameters<SynSwitch['click']>) => nativeElement.value?.click(...args);
|
|
50
50
|
/**
|
|
51
51
|
* Sets focus on the switch.
|
|
52
52
|
*/
|
|
53
|
-
const callFocus = (...args: Parameters<SynSwitch['focus']>) =>
|
|
53
|
+
const callFocus = (...args: Parameters<SynSwitch['focus']>) => nativeElement.value?.focus(...args);
|
|
54
54
|
/**
|
|
55
55
|
* Removes focus from the switch.
|
|
56
56
|
*/
|
|
57
|
-
const callBlur = (...args: Parameters<SynSwitch['blur']>) =>
|
|
57
|
+
const callBlur = (...args: Parameters<SynSwitch['blur']>) => nativeElement.value?.blur(...args);
|
|
58
58
|
/**
|
|
59
59
|
* Checks for validity but does not show a validation message.
|
|
60
60
|
* Returns `true` when valid and `false` when invalid.
|
|
61
61
|
*/
|
|
62
|
-
const callCheckValidity = (...args: Parameters<SynSwitch['checkValidity']>) =>
|
|
62
|
+
const callCheckValidity = (...args: Parameters<SynSwitch['checkValidity']>) => nativeElement.value?.checkValidity(...args);
|
|
63
63
|
/**
|
|
64
64
|
* Gets the associated form, if one exists.
|
|
65
65
|
*/
|
|
66
|
-
const callGetForm = (...args: Parameters<SynSwitch['getForm']>) =>
|
|
66
|
+
const callGetForm = (...args: Parameters<SynSwitch['getForm']>) => nativeElement.value?.getForm(...args);
|
|
67
67
|
/**
|
|
68
68
|
* Checks for validity and shows the browser's validation message if the control is invalid.
|
|
69
69
|
*/
|
|
70
|
-
const callReportValidity = (...args: Parameters<SynSwitch['reportValidity']>) =>
|
|
70
|
+
const callReportValidity = (...args: Parameters<SynSwitch['reportValidity']>) => nativeElement.value?.reportValidity(...args);
|
|
71
71
|
/**
|
|
72
72
|
* Sets a custom validation message.
|
|
73
73
|
* Pass an empty string to restore validity.
|
|
74
74
|
*/
|
|
75
|
-
const callSetCustomValidity = (...args: Parameters<SynSwitch['setCustomValidity']>) =>
|
|
75
|
+
const callSetCustomValidity = (...args: Parameters<SynSwitch['setCustomValidity']>) => nativeElement.value?.setCustomValidity(...args);
|
|
76
76
|
|
|
77
77
|
defineExpose({
|
|
78
78
|
callHandleCheckedChange,
|
|
@@ -84,6 +84,7 @@ defineExpose({
|
|
|
84
84
|
callGetForm,
|
|
85
85
|
callReportValidity,
|
|
86
86
|
callSetCustomValidity,
|
|
87
|
+
nativeElement,
|
|
87
88
|
});
|
|
88
89
|
|
|
89
90
|
// Map attributes
|
|
@@ -196,7 +197,7 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
|
196
197
|
<template>
|
|
197
198
|
<syn-switch
|
|
198
199
|
v-bind="visibleProps"
|
|
199
|
-
ref="
|
|
200
|
+
ref="nativeElement"
|
|
200
201
|
:checked="typeof props.modelValue !== 'undefined' ? props.modelValue : typeof props.checked !== 'undefined' ? props.checked : undefined"
|
|
201
202
|
@syn-blur="$emit('syn-blur', $event)"
|
|
202
203
|
@syn-change="$emit('syn-change', $event)"
|
|
@@ -205,6 +206,5 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
|
205
206
|
@syn-invalid="$emit('syn-invalid', $event)"
|
|
206
207
|
>
|
|
207
208
|
<slot />
|
|
208
|
-
<slot name="help-text" />
|
|
209
209
|
</syn-switch>
|
|
210
210
|
</template>
|
|
@@ -28,12 +28,13 @@ import '@synergy-design-system/components/components/tag/tag.js';
|
|
|
28
28
|
import type { SynRemoveEvent, SynTag } from '@synergy-design-system/components';
|
|
29
29
|
|
|
30
30
|
// DOM Reference to the element
|
|
31
|
-
const
|
|
31
|
+
const nativeElement = ref<SynTag>();
|
|
32
32
|
|
|
33
33
|
// Map methods
|
|
34
34
|
|
|
35
35
|
defineExpose({
|
|
36
36
|
|
|
37
|
+
nativeElement,
|
|
37
38
|
});
|
|
38
39
|
|
|
39
40
|
// Map attributes
|
|
@@ -76,7 +77,7 @@ export type { SynRemoveEvent } from '@synergy-design-system/components';
|
|
|
76
77
|
<syn-tag
|
|
77
78
|
v-bind="visibleProps"
|
|
78
79
|
|
|
79
|
-
ref="
|
|
80
|
+
ref="nativeElement"
|
|
80
81
|
@syn-remove="$emit('syn-remove', $event)"
|
|
81
82
|
>
|
|
82
83
|
<slot />
|
|
@@ -35,54 +35,54 @@ import type {
|
|
|
35
35
|
} from '@synergy-design-system/components';
|
|
36
36
|
|
|
37
37
|
// DOM Reference to the element
|
|
38
|
-
const
|
|
38
|
+
const nativeElement = ref<SynTextarea>();
|
|
39
39
|
|
|
40
40
|
// Map methods
|
|
41
|
-
const callHandleDisabledChange = (...args: Parameters<SynTextarea['handleDisabledChange']>) =>
|
|
42
|
-
const callHandleRowsChange = (...args: Parameters<SynTextarea['handleRowsChange']>) =>
|
|
43
|
-
const callHandleValueChange = (...args: Parameters<SynTextarea['handleValueChange']>) =>
|
|
41
|
+
const callHandleDisabledChange = (...args: Parameters<SynTextarea['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
|
|
42
|
+
const callHandleRowsChange = (...args: Parameters<SynTextarea['handleRowsChange']>) => nativeElement.value?.handleRowsChange(...args);
|
|
43
|
+
const callHandleValueChange = (...args: Parameters<SynTextarea['handleValueChange']>) => nativeElement.value?.handleValueChange(...args);
|
|
44
44
|
/**
|
|
45
45
|
* Sets focus on the textarea.
|
|
46
46
|
*/
|
|
47
|
-
const callFocus = (...args: Parameters<SynTextarea['focus']>) =>
|
|
47
|
+
const callFocus = (...args: Parameters<SynTextarea['focus']>) => nativeElement.value?.focus(...args);
|
|
48
48
|
/**
|
|
49
49
|
* Removes focus from the textarea.
|
|
50
50
|
*/
|
|
51
|
-
const callBlur = (...args: Parameters<SynTextarea['blur']>) =>
|
|
51
|
+
const callBlur = (...args: Parameters<SynTextarea['blur']>) => nativeElement.value?.blur(...args);
|
|
52
52
|
/**
|
|
53
53
|
* Selects all the text in the textarea.
|
|
54
54
|
*/
|
|
55
|
-
const callSelect = (...args: Parameters<SynTextarea['select']>) =>
|
|
55
|
+
const callSelect = (...args: Parameters<SynTextarea['select']>) => nativeElement.value?.select(...args);
|
|
56
56
|
/**
|
|
57
57
|
* Gets or sets the textarea's scroll position.
|
|
58
58
|
*/
|
|
59
|
-
const callScrollPosition = (...args: Parameters<SynTextarea['scrollPosition']>) =>
|
|
59
|
+
const callScrollPosition = (...args: Parameters<SynTextarea['scrollPosition']>) => nativeElement.value?.scrollPosition(...args);
|
|
60
60
|
/**
|
|
61
61
|
* Sets the start and end positions of the text selection (0-based).
|
|
62
62
|
*/
|
|
63
|
-
const callSetSelectionRange = (...args: Parameters<SynTextarea['setSelectionRange']>) =>
|
|
63
|
+
const callSetSelectionRange = (...args: Parameters<SynTextarea['setSelectionRange']>) => nativeElement.value?.setSelectionRange(...args);
|
|
64
64
|
/**
|
|
65
65
|
* Replaces a range of text with a new string.
|
|
66
66
|
*/
|
|
67
|
-
const callSetRangeText = (...args: Parameters<SynTextarea['setRangeText']>) =>
|
|
67
|
+
const callSetRangeText = (...args: Parameters<SynTextarea['setRangeText']>) => nativeElement.value?.setRangeText(...args);
|
|
68
68
|
/**
|
|
69
69
|
* Checks for validity but does not show a validation message.
|
|
70
70
|
* Returns `true` when valid and `false` when invalid.
|
|
71
71
|
*/
|
|
72
|
-
const callCheckValidity = (...args: Parameters<SynTextarea['checkValidity']>) =>
|
|
72
|
+
const callCheckValidity = (...args: Parameters<SynTextarea['checkValidity']>) => nativeElement.value?.checkValidity(...args);
|
|
73
73
|
/**
|
|
74
74
|
* Gets the associated form, if one exists.
|
|
75
75
|
*/
|
|
76
|
-
const callGetForm = (...args: Parameters<SynTextarea['getForm']>) =>
|
|
76
|
+
const callGetForm = (...args: Parameters<SynTextarea['getForm']>) => nativeElement.value?.getForm(...args);
|
|
77
77
|
/**
|
|
78
78
|
* Checks for validity and shows the browser's validation message if the control is invalid.
|
|
79
79
|
*/
|
|
80
|
-
const callReportValidity = (...args: Parameters<SynTextarea['reportValidity']>) =>
|
|
80
|
+
const callReportValidity = (...args: Parameters<SynTextarea['reportValidity']>) => nativeElement.value?.reportValidity(...args);
|
|
81
81
|
/**
|
|
82
82
|
* Sets a custom validation message.
|
|
83
83
|
* Pass an empty string to restore validity.
|
|
84
84
|
*/
|
|
85
|
-
const callSetCustomValidity = (...args: Parameters<SynTextarea['setCustomValidity']>) =>
|
|
85
|
+
const callSetCustomValidity = (...args: Parameters<SynTextarea['setCustomValidity']>) => nativeElement.value?.setCustomValidity(...args);
|
|
86
86
|
|
|
87
87
|
defineExpose({
|
|
88
88
|
callHandleDisabledChange,
|
|
@@ -98,6 +98,7 @@ defineExpose({
|
|
|
98
98
|
callGetForm,
|
|
99
99
|
callReportValidity,
|
|
100
100
|
callSetCustomValidity,
|
|
101
|
+
nativeElement,
|
|
101
102
|
});
|
|
102
103
|
|
|
103
104
|
// Map attributes
|
|
@@ -279,7 +280,7 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
|
279
280
|
<template>
|
|
280
281
|
<syn-textarea
|
|
281
282
|
v-bind="visibleProps"
|
|
282
|
-
ref="
|
|
283
|
+
ref="nativeElement"
|
|
283
284
|
:value="typeof props.modelValue !== 'undefined' ? props.modelValue : typeof props.value !== 'undefined' ? props.value : undefined"
|
|
284
285
|
@syn-blur="$emit('syn-blur', $event)"
|
|
285
286
|
@syn-change="$emit('syn-change', $event)"
|
|
@@ -287,7 +288,6 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
|
287
288
|
@syn-input="$emit('update:modelValue', $event.target.value); $emit('syn-input', $event)"
|
|
288
289
|
@syn-invalid="$emit('syn-invalid', $event)"
|
|
289
290
|
>
|
|
290
|
-
<slot
|
|
291
|
-
<slot name="help-text" />
|
|
291
|
+
<slot />
|
|
292
292
|
</syn-textarea>
|
|
293
293
|
</template>
|
|
@@ -41,20 +41,20 @@ import type {
|
|
|
41
41
|
} from '@synergy-design-system/components';
|
|
42
42
|
|
|
43
43
|
// DOM Reference to the element
|
|
44
|
-
const
|
|
44
|
+
const nativeElement = ref<SynTooltip>();
|
|
45
45
|
|
|
46
46
|
// Map methods
|
|
47
|
-
const callHandleOpenChange = (...args: Parameters<SynTooltip['handleOpenChange']>) =>
|
|
48
|
-
const callHandleOptionsChange = (...args: Parameters<SynTooltip['handleOptionsChange']>) =>
|
|
49
|
-
const callHandleDisabledChange = (...args: Parameters<SynTooltip['handleDisabledChange']>) =>
|
|
47
|
+
const callHandleOpenChange = (...args: Parameters<SynTooltip['handleOpenChange']>) => nativeElement.value?.handleOpenChange(...args);
|
|
48
|
+
const callHandleOptionsChange = (...args: Parameters<SynTooltip['handleOptionsChange']>) => nativeElement.value?.handleOptionsChange(...args);
|
|
49
|
+
const callHandleDisabledChange = (...args: Parameters<SynTooltip['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
|
|
50
50
|
/**
|
|
51
51
|
* Shows the tooltip.
|
|
52
52
|
*/
|
|
53
|
-
const callShow = (...args: Parameters<SynTooltip['show']>) =>
|
|
53
|
+
const callShow = (...args: Parameters<SynTooltip['show']>) => nativeElement.value?.show(...args);
|
|
54
54
|
/**
|
|
55
55
|
* Hides the tooltip
|
|
56
56
|
*/
|
|
57
|
-
const callHide = (...args: Parameters<SynTooltip['hide']>) =>
|
|
57
|
+
const callHide = (...args: Parameters<SynTooltip['hide']>) => nativeElement.value?.hide(...args);
|
|
58
58
|
|
|
59
59
|
defineExpose({
|
|
60
60
|
callHandleOpenChange,
|
|
@@ -62,6 +62,7 @@ defineExpose({
|
|
|
62
62
|
callHandleDisabledChange,
|
|
63
63
|
callShow,
|
|
64
64
|
callHide,
|
|
65
|
+
nativeElement,
|
|
65
66
|
});
|
|
66
67
|
|
|
67
68
|
// Map attributes
|
|
@@ -163,7 +164,7 @@ export type { SynAfterHideEvent } from '@synergy-design-system/components';
|
|
|
163
164
|
<template>
|
|
164
165
|
<syn-tooltip
|
|
165
166
|
v-bind="visibleProps"
|
|
166
|
-
ref="
|
|
167
|
+
ref="nativeElement"
|
|
167
168
|
@syn-show="$emit('syn-show', $event)"
|
|
168
169
|
@syn-after-show="$emit('syn-after-show', $event)"
|
|
169
170
|
|
|
@@ -171,6 +172,5 @@ export type { SynAfterHideEvent } from '@synergy-design-system/components';
|
|
|
171
172
|
@syn-after-hide="$emit('syn-after-hide', $event)"
|
|
172
173
|
>
|
|
173
174
|
<slot />
|
|
174
|
-
<slot name="content" />
|
|
175
175
|
</syn-tooltip>
|
|
176
176
|
</template>
|