@synergy-design-system/vue 1.23.1 → 1.24.1
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
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import '@synergy-design-system/components/components/spinner/spinner.js';
|
|
2
|
+
import type { SynSpinner } from '@synergy-design-system/components';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
|
3
4
|
[x: string]: unknown;
|
|
4
|
-
}>>, {
|
|
5
|
+
}>>, {
|
|
6
|
+
nativeElement: import("vue").Ref<SynSpinner | undefined>;
|
|
7
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
|
5
8
|
[x: string]: unknown;
|
|
6
9
|
}>>>>, {
|
|
7
10
|
readonly [x: number]: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@synergy-design-system/components/components/switch/switch.js';
|
|
2
|
-
import type { SynBlurEvent, SynChangeEvent, SynFocusEvent, SynInputEvent, SynInvalidEvent } from '@synergy-design-system/components';
|
|
2
|
+
import type { SynBlurEvent, SynChangeEvent, SynFocusEvent, SynInputEvent, SynInvalidEvent, SynSwitch } from '@synergy-design-system/components';
|
|
3
3
|
export type { SynBlurEvent } from '@synergy-design-system/components';
|
|
4
4
|
export type { SynChangeEvent } from '@synergy-design-system/components';
|
|
5
5
|
export type { SynInputEvent } from '@synergy-design-system/components';
|
|
@@ -58,6 +58,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
58
58
|
callGetForm: () => HTMLFormElement | null | undefined;
|
|
59
59
|
callReportValidity: () => boolean | undefined;
|
|
60
60
|
callSetCustomValidity: (message: string) => void | undefined;
|
|
61
|
+
nativeElement: import("vue").Ref<SynSwitch | undefined>;
|
|
61
62
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
62
63
|
"syn-blur": (e: SynBlurEvent) => void;
|
|
63
64
|
"syn-focus": (e: SynFocusEvent) => void;
|
|
@@ -117,7 +118,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
117
118
|
"onUpdate:modelValue"?: ((newValue: boolean) => any) | undefined;
|
|
118
119
|
}, {}, {}>, {
|
|
119
120
|
default?(_: {}): any;
|
|
120
|
-
"help-text"?(_: {}): any;
|
|
121
121
|
}>;
|
|
122
122
|
export default _default;
|
|
123
123
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@synergy-design-system/components/components/tag/tag.js';
|
|
2
|
-
import type { SynRemoveEvent } from '@synergy-design-system/components';
|
|
2
|
+
import type { SynRemoveEvent, SynTag } from '@synergy-design-system/components';
|
|
3
3
|
export type { SynRemoveEvent } from '@synergy-design-system/components';
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
5
5
|
/**
|
|
@@ -10,7 +10,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
10
10
|
* Makes the tag removable and shows a remove button.
|
|
11
11
|
*/
|
|
12
12
|
removable?: boolean | undefined;
|
|
13
|
-
}>, {
|
|
13
|
+
}>, {
|
|
14
|
+
nativeElement: import("vue").Ref<SynTag | undefined>;
|
|
15
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
16
|
"syn-remove": (e: SynRemoveEvent) => void;
|
|
15
17
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
16
18
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@synergy-design-system/components/components/textarea/textarea.js';
|
|
2
|
-
import type { SynBlurEvent, SynChangeEvent, SynFocusEvent, SynInputEvent, SynInvalidEvent } from '@synergy-design-system/components';
|
|
2
|
+
import type { SynBlurEvent, SynChangeEvent, SynFocusEvent, SynInputEvent, SynInvalidEvent, SynTextarea } from '@synergy-design-system/components';
|
|
3
3
|
export type { SynBlurEvent } from '@synergy-design-system/components';
|
|
4
4
|
export type { SynChangeEvent } from '@synergy-design-system/components';
|
|
5
5
|
export type { SynFocusEvent } from '@synergy-design-system/components';
|
|
@@ -212,6 +212,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
212
212
|
callGetForm: () => HTMLFormElement | null | undefined;
|
|
213
213
|
callReportValidity: () => boolean | undefined;
|
|
214
214
|
callSetCustomValidity: (message: string) => void | undefined;
|
|
215
|
+
nativeElement: import("vue").Ref<SynTextarea | undefined>;
|
|
215
216
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
216
217
|
"syn-blur": (e: SynBlurEvent) => void;
|
|
217
218
|
"syn-focus": (e: SynFocusEvent) => void;
|
|
@@ -326,8 +327,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
326
327
|
"onSyn-input"?: ((e: SynInputEvent) => any) | undefined;
|
|
327
328
|
"onUpdate:modelValue"?: ((newValue: string) => any) | undefined;
|
|
328
329
|
}, {}, {}>, {
|
|
329
|
-
|
|
330
|
-
"help-text"?(_: {}): any;
|
|
330
|
+
default?(_: {}): any;
|
|
331
331
|
}>;
|
|
332
332
|
export default _default;
|
|
333
333
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@synergy-design-system/components/components/tooltip/tooltip.js';
|
|
2
|
-
import type { SynAfterHideEvent, SynAfterShowEvent, SynHideEvent, SynShowEvent } from '@synergy-design-system/components';
|
|
2
|
+
import type { SynAfterHideEvent, SynAfterShowEvent, SynHideEvent, SynShowEvent, SynTooltip } from '@synergy-design-system/components';
|
|
3
3
|
export type { SynShowEvent } from '@synergy-design-system/components';
|
|
4
4
|
export type { SynAfterShowEvent } from '@synergy-design-system/components';
|
|
5
5
|
export type { SynHideEvent } from '@synergy-design-system/components';
|
|
@@ -55,6 +55,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
55
55
|
callHandleDisabledChange: () => void | undefined;
|
|
56
56
|
callShow: () => Promise<void> | undefined;
|
|
57
57
|
callHide: () => Promise<void> | undefined;
|
|
58
|
+
nativeElement: import("vue").Ref<SynTooltip | undefined>;
|
|
58
59
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
59
60
|
"syn-show": (e: SynShowEvent) => void;
|
|
60
61
|
"syn-after-show": (e: SynAfterShowEvent) => void;
|
|
@@ -112,7 +113,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
112
113
|
"onSyn-after-hide"?: ((e: SynAfterHideEvent) => any) | undefined;
|
|
113
114
|
}, {}, {}>, {
|
|
114
115
|
default?(_: {}): any;
|
|
115
|
-
content?(_: {}): any;
|
|
116
116
|
}>;
|
|
117
117
|
export default _default;
|
|
118
118
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://www.sick.com"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@synergy-design-system/components": "^1.
|
|
7
|
+
"@synergy-design-system/components": "^1.24.1"
|
|
8
8
|
},
|
|
9
9
|
"description": "Vue3 wrappers for the Synergy Design System",
|
|
10
10
|
"exports": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"directory": "packages/vue"
|
|
41
41
|
},
|
|
42
42
|
"type": "module",
|
|
43
|
-
"version": "1.
|
|
43
|
+
"version": "1.24.1",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@vue/tsconfig": "^0.5.1",
|
|
46
46
|
"vue": "^3.4.24"
|
|
@@ -38,19 +38,19 @@ import type {
|
|
|
38
38
|
} from '@synergy-design-system/components';
|
|
39
39
|
|
|
40
40
|
// DOM Reference to the element
|
|
41
|
-
const
|
|
41
|
+
const nativeElement = ref<SynAlert>();
|
|
42
42
|
|
|
43
43
|
// Map methods
|
|
44
|
-
const callHandleOpenChange = (...args: Parameters<SynAlert['handleOpenChange']>) =>
|
|
45
|
-
const callHandleDurationChange = (...args: Parameters<SynAlert['handleDurationChange']>) =>
|
|
44
|
+
const callHandleOpenChange = (...args: Parameters<SynAlert['handleOpenChange']>) => nativeElement.value?.handleOpenChange(...args);
|
|
45
|
+
const callHandleDurationChange = (...args: Parameters<SynAlert['handleDurationChange']>) => nativeElement.value?.handleDurationChange(...args);
|
|
46
46
|
/**
|
|
47
47
|
* Shows the alert.
|
|
48
48
|
*/
|
|
49
|
-
const callShow = (...args: Parameters<SynAlert['show']>) =>
|
|
49
|
+
const callShow = (...args: Parameters<SynAlert['show']>) => nativeElement.value?.show(...args);
|
|
50
50
|
/**
|
|
51
51
|
* Hides the alert
|
|
52
52
|
*/
|
|
53
|
-
const callHide = (...args: Parameters<SynAlert['hide']>) =>
|
|
53
|
+
const callHide = (...args: Parameters<SynAlert['hide']>) => nativeElement.value?.hide(...args);
|
|
54
54
|
/**
|
|
55
55
|
* Displays the alert as a toast notification.
|
|
56
56
|
* This will move the alert out of its position in the DOM and, when
|
|
@@ -59,7 +59,7 @@ dismissed, it will be removed from the DOM completely.
|
|
|
59
59
|
calling this method again.
|
|
60
60
|
* The returned promise will resolve after the alert is hidden.
|
|
61
61
|
*/
|
|
62
|
-
const callToast = (...args: Parameters<SynAlert['toast']>) =>
|
|
62
|
+
const callToast = (...args: Parameters<SynAlert['toast']>) => nativeElement.value?.toast(...args);
|
|
63
63
|
|
|
64
64
|
defineExpose({
|
|
65
65
|
callHandleOpenChange,
|
|
@@ -67,6 +67,7 @@ defineExpose({
|
|
|
67
67
|
callShow,
|
|
68
68
|
callHide,
|
|
69
69
|
callToast,
|
|
70
|
+
nativeElement,
|
|
70
71
|
});
|
|
71
72
|
|
|
72
73
|
// Map attributes
|
|
@@ -143,7 +144,7 @@ export type { SynAfterHideEvent } from '@synergy-design-system/components';
|
|
|
143
144
|
<template>
|
|
144
145
|
<syn-alert
|
|
145
146
|
v-bind="visibleProps"
|
|
146
|
-
ref="
|
|
147
|
+
ref="nativeElement"
|
|
147
148
|
@syn-show="$emit('syn-show', $event)"
|
|
148
149
|
@syn-after-show="$emit('syn-after-show', $event)"
|
|
149
150
|
|
|
@@ -151,6 +152,5 @@ export type { SynAfterHideEvent } from '@synergy-design-system/components';
|
|
|
151
152
|
@syn-after-hide="$emit('syn-after-hide', $event)"
|
|
152
153
|
>
|
|
153
154
|
<slot />
|
|
154
|
-
<slot name="icon" />
|
|
155
155
|
</syn-alert>
|
|
156
156
|
</template>
|
|
@@ -21,12 +21,13 @@ import '@synergy-design-system/components/components/badge/badge.js';
|
|
|
21
21
|
import type { SynBadge } from '@synergy-design-system/components';
|
|
22
22
|
|
|
23
23
|
// DOM Reference to the element
|
|
24
|
-
const
|
|
24
|
+
const nativeElement = ref<SynBadge>();
|
|
25
25
|
|
|
26
26
|
// Map methods
|
|
27
27
|
|
|
28
28
|
defineExpose({
|
|
29
29
|
|
|
30
|
+
nativeElement,
|
|
30
31
|
});
|
|
31
32
|
|
|
32
33
|
// Map attributes
|
|
@@ -57,7 +58,7 @@ defineEmits<{
|
|
|
57
58
|
<syn-badge
|
|
58
59
|
|
|
59
60
|
v-bind="visibleProps"
|
|
60
|
-
ref="
|
|
61
|
+
ref="nativeElement"
|
|
61
62
|
>
|
|
62
63
|
<slot />
|
|
63
64
|
</syn-badge>
|
|
@@ -37,40 +37,40 @@ import type {
|
|
|
37
37
|
} from '@synergy-design-system/components';
|
|
38
38
|
|
|
39
39
|
// DOM Reference to the element
|
|
40
|
-
const
|
|
40
|
+
const nativeElement = ref<SynButton>();
|
|
41
41
|
|
|
42
42
|
// Map methods
|
|
43
|
-
const callHandleDisabledChange = (...args: Parameters<SynButton['handleDisabledChange']>) =>
|
|
43
|
+
const callHandleDisabledChange = (...args: Parameters<SynButton['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
|
|
44
44
|
/**
|
|
45
45
|
* Simulates a click on the button.
|
|
46
46
|
*/
|
|
47
|
-
const callClick = (...args: Parameters<SynButton['click']>) =>
|
|
47
|
+
const callClick = (...args: Parameters<SynButton['click']>) => nativeElement.value?.click(...args);
|
|
48
48
|
/**
|
|
49
49
|
* Sets focus on the button.
|
|
50
50
|
*/
|
|
51
|
-
const callFocus = (...args: Parameters<SynButton['focus']>) =>
|
|
51
|
+
const callFocus = (...args: Parameters<SynButton['focus']>) => nativeElement.value?.focus(...args);
|
|
52
52
|
/**
|
|
53
53
|
* Removes focus from the button.
|
|
54
54
|
*/
|
|
55
|
-
const callBlur = (...args: Parameters<SynButton['blur']>) =>
|
|
55
|
+
const callBlur = (...args: Parameters<SynButton['blur']>) => nativeElement.value?.blur(...args);
|
|
56
56
|
/**
|
|
57
57
|
* Checks for validity but does not show a validation message.
|
|
58
58
|
* Returns `true` when valid and `false` when invalid.
|
|
59
59
|
*/
|
|
60
|
-
const callCheckValidity = (...args: Parameters<SynButton['checkValidity']>) =>
|
|
60
|
+
const callCheckValidity = (...args: Parameters<SynButton['checkValidity']>) => nativeElement.value?.checkValidity(...args);
|
|
61
61
|
/**
|
|
62
62
|
* Gets the associated form, if one exists.
|
|
63
63
|
*/
|
|
64
|
-
const callGetForm = (...args: Parameters<SynButton['getForm']>) =>
|
|
64
|
+
const callGetForm = (...args: Parameters<SynButton['getForm']>) => nativeElement.value?.getForm(...args);
|
|
65
65
|
/**
|
|
66
66
|
* Checks for validity and shows the browser's validation message if the control is invalid.
|
|
67
67
|
*/
|
|
68
|
-
const callReportValidity = (...args: Parameters<SynButton['reportValidity']>) =>
|
|
68
|
+
const callReportValidity = (...args: Parameters<SynButton['reportValidity']>) => nativeElement.value?.reportValidity(...args);
|
|
69
69
|
/**
|
|
70
70
|
* Sets a custom validation message.
|
|
71
71
|
* Pass an empty string to restore validity.
|
|
72
72
|
*/
|
|
73
|
-
const callSetCustomValidity = (...args: Parameters<SynButton['setCustomValidity']>) =>
|
|
73
|
+
const callSetCustomValidity = (...args: Parameters<SynButton['setCustomValidity']>) => nativeElement.value?.setCustomValidity(...args);
|
|
74
74
|
|
|
75
75
|
defineExpose({
|
|
76
76
|
callHandleDisabledChange,
|
|
@@ -81,6 +81,7 @@ defineExpose({
|
|
|
81
81
|
callGetForm,
|
|
82
82
|
callReportValidity,
|
|
83
83
|
callSetCustomValidity,
|
|
84
|
+
nativeElement,
|
|
84
85
|
});
|
|
85
86
|
|
|
86
87
|
// Map attributes
|
|
@@ -234,14 +235,12 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
|
234
235
|
<template>
|
|
235
236
|
<syn-button
|
|
236
237
|
v-bind="visibleProps"
|
|
237
|
-
ref="
|
|
238
|
+
ref="nativeElement"
|
|
238
239
|
@syn-blur="$emit('syn-blur', $event)"
|
|
239
240
|
|
|
240
241
|
@syn-focus="$emit('syn-focus', $event)"
|
|
241
242
|
@syn-invalid="$emit('syn-invalid', $event)"
|
|
242
243
|
>
|
|
243
244
|
<slot />
|
|
244
|
-
<slot name="prefix" />
|
|
245
|
-
<slot name="suffix" />
|
|
246
245
|
</syn-button>
|
|
247
246
|
</template>
|
|
@@ -21,12 +21,13 @@ import '@synergy-design-system/components/components/button-group/button-group.j
|
|
|
21
21
|
import type { SynButtonGroup } from '@synergy-design-system/components';
|
|
22
22
|
|
|
23
23
|
// DOM Reference to the element
|
|
24
|
-
const
|
|
24
|
+
const nativeElement = ref<SynButtonGroup>();
|
|
25
25
|
|
|
26
26
|
// Map methods
|
|
27
27
|
|
|
28
28
|
defineExpose({
|
|
29
29
|
|
|
30
|
+
nativeElement,
|
|
30
31
|
});
|
|
31
32
|
|
|
32
33
|
// Map attributes
|
|
@@ -59,7 +60,7 @@ defineEmits<{
|
|
|
59
60
|
<syn-button-group
|
|
60
61
|
|
|
61
62
|
v-bind="visibleProps"
|
|
62
|
-
ref="
|
|
63
|
+
ref="nativeElement"
|
|
63
64
|
>
|
|
64
65
|
<slot />
|
|
65
66
|
</syn-button-group>
|
|
@@ -39,43 +39,43 @@ import type {
|
|
|
39
39
|
} from '@synergy-design-system/components';
|
|
40
40
|
|
|
41
41
|
// DOM Reference to the element
|
|
42
|
-
const
|
|
42
|
+
const nativeElement = ref<SynCheckbox>();
|
|
43
43
|
|
|
44
44
|
// Map methods
|
|
45
|
-
const callHandleDisabledChange = (...args: Parameters<SynCheckbox['handleDisabledChange']>) =>
|
|
46
|
-
const callHandleStateChange = (...args: Parameters<SynCheckbox['handleStateChange']>) =>
|
|
45
|
+
const callHandleDisabledChange = (...args: Parameters<SynCheckbox['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
|
|
46
|
+
const callHandleStateChange = (...args: Parameters<SynCheckbox['handleStateChange']>) => nativeElement.value?.handleStateChange(...args);
|
|
47
47
|
/**
|
|
48
48
|
* Simulates a click on the checkbox.
|
|
49
49
|
*/
|
|
50
|
-
const callClick = (...args: Parameters<SynCheckbox['click']>) =>
|
|
50
|
+
const callClick = (...args: Parameters<SynCheckbox['click']>) => nativeElement.value?.click(...args);
|
|
51
51
|
/**
|
|
52
52
|
* Sets focus on the checkbox.
|
|
53
53
|
*/
|
|
54
|
-
const callFocus = (...args: Parameters<SynCheckbox['focus']>) =>
|
|
54
|
+
const callFocus = (...args: Parameters<SynCheckbox['focus']>) => nativeElement.value?.focus(...args);
|
|
55
55
|
/**
|
|
56
56
|
* Removes focus from the checkbox.
|
|
57
57
|
*/
|
|
58
|
-
const callBlur = (...args: Parameters<SynCheckbox['blur']>) =>
|
|
58
|
+
const callBlur = (...args: Parameters<SynCheckbox['blur']>) => nativeElement.value?.blur(...args);
|
|
59
59
|
/**
|
|
60
60
|
* Checks for validity but does not show a validation message.
|
|
61
61
|
* Returns `true` when valid and `false` when invalid.
|
|
62
62
|
*/
|
|
63
|
-
const callCheckValidity = (...args: Parameters<SynCheckbox['checkValidity']>) =>
|
|
63
|
+
const callCheckValidity = (...args: Parameters<SynCheckbox['checkValidity']>) => nativeElement.value?.checkValidity(...args);
|
|
64
64
|
/**
|
|
65
65
|
* Gets the associated form, if one exists.
|
|
66
66
|
*/
|
|
67
|
-
const callGetForm = (...args: Parameters<SynCheckbox['getForm']>) =>
|
|
67
|
+
const callGetForm = (...args: Parameters<SynCheckbox['getForm']>) => nativeElement.value?.getForm(...args);
|
|
68
68
|
/**
|
|
69
69
|
* Checks for validity and shows the browser's validation message if the control is invalid.
|
|
70
70
|
*/
|
|
71
|
-
const callReportValidity = (...args: Parameters<SynCheckbox['reportValidity']>) =>
|
|
71
|
+
const callReportValidity = (...args: Parameters<SynCheckbox['reportValidity']>) => nativeElement.value?.reportValidity(...args);
|
|
72
72
|
/**
|
|
73
73
|
* Sets a custom validation message.
|
|
74
74
|
* The value provided will be shown to the user when the form is submitted.
|
|
75
75
|
* To clear
|
|
76
76
|
the custom validation message, call this method with an empty string.
|
|
77
77
|
*/
|
|
78
|
-
const callSetCustomValidity = (...args: Parameters<SynCheckbox['setCustomValidity']>) =>
|
|
78
|
+
const callSetCustomValidity = (...args: Parameters<SynCheckbox['setCustomValidity']>) => nativeElement.value?.setCustomValidity(...args);
|
|
79
79
|
|
|
80
80
|
defineExpose({
|
|
81
81
|
callHandleDisabledChange,
|
|
@@ -87,6 +87,7 @@ defineExpose({
|
|
|
87
87
|
callGetForm,
|
|
88
88
|
callReportValidity,
|
|
89
89
|
callSetCustomValidity,
|
|
90
|
+
nativeElement,
|
|
90
91
|
});
|
|
91
92
|
|
|
92
93
|
// Map attributes
|
|
@@ -206,7 +207,7 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
|
206
207
|
<template>
|
|
207
208
|
<syn-checkbox
|
|
208
209
|
v-bind="visibleProps"
|
|
209
|
-
ref="
|
|
210
|
+
ref="nativeElement"
|
|
210
211
|
:checked="typeof props.modelValue !== 'undefined' ? props.modelValue : typeof props.checked !== 'undefined' ? props.checked : undefined"
|
|
211
212
|
@syn-blur="$emit('syn-blur', $event)"
|
|
212
213
|
@syn-change="$emit('syn-change', $event)"
|
|
@@ -215,6 +216,5 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
|
215
216
|
@syn-invalid="$emit('syn-invalid', $event)"
|
|
216
217
|
>
|
|
217
218
|
<slot />
|
|
218
|
-
<slot name="help-text" />
|
|
219
219
|
</syn-checkbox>
|
|
220
220
|
</template>
|
|
@@ -63,23 +63,24 @@ import type {
|
|
|
63
63
|
} from '@synergy-design-system/components';
|
|
64
64
|
|
|
65
65
|
// DOM Reference to the element
|
|
66
|
-
const
|
|
66
|
+
const nativeElement = ref<SynDialog>();
|
|
67
67
|
|
|
68
68
|
// Map methods
|
|
69
|
-
const callHandleOpenChange = (...args: Parameters<SynDialog['handleOpenChange']>) =>
|
|
69
|
+
const callHandleOpenChange = (...args: Parameters<SynDialog['handleOpenChange']>) => nativeElement.value?.handleOpenChange(...args);
|
|
70
70
|
/**
|
|
71
71
|
* Shows the dialog.
|
|
72
72
|
*/
|
|
73
|
-
const callShow = (...args: Parameters<SynDialog['show']>) =>
|
|
73
|
+
const callShow = (...args: Parameters<SynDialog['show']>) => nativeElement.value?.show(...args);
|
|
74
74
|
/**
|
|
75
75
|
* Hides the dialog
|
|
76
76
|
*/
|
|
77
|
-
const callHide = (...args: Parameters<SynDialog['hide']>) =>
|
|
77
|
+
const callHide = (...args: Parameters<SynDialog['hide']>) => nativeElement.value?.hide(...args);
|
|
78
78
|
|
|
79
79
|
defineExpose({
|
|
80
80
|
callHandleOpenChange,
|
|
81
81
|
callShow,
|
|
82
82
|
callHide,
|
|
83
|
+
nativeElement,
|
|
83
84
|
});
|
|
84
85
|
|
|
85
86
|
// Map attributes
|
|
@@ -166,7 +167,7 @@ export type { SynRequestCloseEvent } from '@synergy-design-system/components';
|
|
|
166
167
|
<template>
|
|
167
168
|
<syn-dialog
|
|
168
169
|
v-bind="visibleProps"
|
|
169
|
-
ref="
|
|
170
|
+
ref="nativeElement"
|
|
170
171
|
@syn-show="$emit('syn-show', $event)"
|
|
171
172
|
@syn-after-show="$emit('syn-after-show', $event)"
|
|
172
173
|
@syn-hide="$emit('syn-hide', $event)"
|
|
@@ -176,8 +177,5 @@ export type { SynRequestCloseEvent } from '@synergy-design-system/components';
|
|
|
176
177
|
@syn-request-close="$emit('syn-request-close', $event)"
|
|
177
178
|
>
|
|
178
179
|
<slot />
|
|
179
|
-
<slot name="label" />
|
|
180
|
-
<slot name="header-actions" />
|
|
181
|
-
<slot name="footer" />
|
|
182
180
|
</syn-dialog>
|
|
183
181
|
</template>
|
|
@@ -21,13 +21,14 @@ import '@synergy-design-system/components/components/divider/divider.js';
|
|
|
21
21
|
import type { SynDivider } from '@synergy-design-system/components';
|
|
22
22
|
|
|
23
23
|
// DOM Reference to the element
|
|
24
|
-
const
|
|
24
|
+
const nativeElement = ref<SynDivider>();
|
|
25
25
|
|
|
26
26
|
// Map methods
|
|
27
|
-
const callHandleVerticalChange = (...args: Parameters<SynDivider['handleVerticalChange']>) =>
|
|
27
|
+
const callHandleVerticalChange = (...args: Parameters<SynDivider['handleVerticalChange']>) => nativeElement.value?.handleVerticalChange(...args);
|
|
28
28
|
|
|
29
29
|
defineExpose({
|
|
30
30
|
callHandleVerticalChange,
|
|
31
|
+
nativeElement,
|
|
31
32
|
});
|
|
32
33
|
|
|
33
34
|
// Map attributes
|
|
@@ -58,6 +59,6 @@ defineEmits<{
|
|
|
58
59
|
<syn-divider
|
|
59
60
|
|
|
60
61
|
v-bind="visibleProps"
|
|
61
|
-
ref="
|
|
62
|
+
ref="nativeElement"
|
|
62
63
|
/>
|
|
63
64
|
</template>
|
|
@@ -70,25 +70,26 @@ import type {
|
|
|
70
70
|
} from '@synergy-design-system/components';
|
|
71
71
|
|
|
72
72
|
// DOM Reference to the element
|
|
73
|
-
const
|
|
73
|
+
const nativeElement = ref<SynDrawer>();
|
|
74
74
|
|
|
75
75
|
// Map methods
|
|
76
|
-
const callHandleOpenChange = (...args: Parameters<SynDrawer['handleOpenChange']>) =>
|
|
77
|
-
const callHandleNoModalChange = (...args: Parameters<SynDrawer['handleNoModalChange']>) =>
|
|
76
|
+
const callHandleOpenChange = (...args: Parameters<SynDrawer['handleOpenChange']>) => nativeElement.value?.handleOpenChange(...args);
|
|
77
|
+
const callHandleNoModalChange = (...args: Parameters<SynDrawer['handleNoModalChange']>) => nativeElement.value?.handleNoModalChange(...args);
|
|
78
78
|
/**
|
|
79
79
|
* Shows the drawer.
|
|
80
80
|
*/
|
|
81
|
-
const callShow = (...args: Parameters<SynDrawer['show']>) =>
|
|
81
|
+
const callShow = (...args: Parameters<SynDrawer['show']>) => nativeElement.value?.show(...args);
|
|
82
82
|
/**
|
|
83
83
|
* Hides the drawer
|
|
84
84
|
*/
|
|
85
|
-
const callHide = (...args: Parameters<SynDrawer['hide']>) =>
|
|
85
|
+
const callHide = (...args: Parameters<SynDrawer['hide']>) => nativeElement.value?.hide(...args);
|
|
86
86
|
|
|
87
87
|
defineExpose({
|
|
88
88
|
callHandleOpenChange,
|
|
89
89
|
callHandleNoModalChange,
|
|
90
90
|
callShow,
|
|
91
91
|
callHide,
|
|
92
|
+
nativeElement,
|
|
92
93
|
});
|
|
93
94
|
|
|
94
95
|
// Map attributes
|
|
@@ -187,7 +188,7 @@ export type { SynRequestCloseEvent } from '@synergy-design-system/components';
|
|
|
187
188
|
<template>
|
|
188
189
|
<syn-drawer
|
|
189
190
|
v-bind="visibleProps"
|
|
190
|
-
ref="
|
|
191
|
+
ref="nativeElement"
|
|
191
192
|
@syn-show="$emit('syn-show', $event)"
|
|
192
193
|
@syn-after-show="$emit('syn-after-show', $event)"
|
|
193
194
|
@syn-hide="$emit('syn-hide', $event)"
|
|
@@ -197,8 +198,5 @@ export type { SynRequestCloseEvent } from '@synergy-design-system/components';
|
|
|
197
198
|
@syn-request-close="$emit('syn-request-close', $event)"
|
|
198
199
|
>
|
|
199
200
|
<slot />
|
|
200
|
-
<slot name="label" />
|
|
201
|
-
<slot name="header-actions" />
|
|
202
|
-
<slot name="footer" />
|
|
203
201
|
</syn-drawer>
|
|
204
202
|
</template>
|
|
@@ -36,33 +36,33 @@ import type {
|
|
|
36
36
|
} from '@synergy-design-system/components';
|
|
37
37
|
|
|
38
38
|
// DOM Reference to the element
|
|
39
|
-
const
|
|
39
|
+
const nativeElement = ref<SynDropdown>();
|
|
40
40
|
|
|
41
41
|
// Map methods
|
|
42
|
-
const callFocusOnTrigger = (...args: Parameters<SynDropdown['focusOnTrigger']>) =>
|
|
43
|
-
const callGetMenu = (...args: Parameters<SynDropdown['getMenu']>) =>
|
|
44
|
-
const callHandleTriggerClick = (...args: Parameters<SynDropdown['handleTriggerClick']>) =>
|
|
45
|
-
const callHandleTriggerKeyDown = (...args: Parameters<SynDropdown['handleTriggerKeyDown']>) =>
|
|
46
|
-
const callHandleTriggerKeyUp = (...args: Parameters<SynDropdown['handleTriggerKeyUp']>) =>
|
|
47
|
-
const callHandleTriggerSlotChange = (...args: Parameters<SynDropdown['handleTriggerSlotChange']>) =>
|
|
48
|
-
const callUpdateAccessibleTrigger = (...args: Parameters<SynDropdown['updateAccessibleTrigger']>) =>
|
|
42
|
+
const callFocusOnTrigger = (...args: Parameters<SynDropdown['focusOnTrigger']>) => nativeElement.value?.focusOnTrigger(...args);
|
|
43
|
+
const callGetMenu = (...args: Parameters<SynDropdown['getMenu']>) => nativeElement.value?.getMenu(...args);
|
|
44
|
+
const callHandleTriggerClick = (...args: Parameters<SynDropdown['handleTriggerClick']>) => nativeElement.value?.handleTriggerClick(...args);
|
|
45
|
+
const callHandleTriggerKeyDown = (...args: Parameters<SynDropdown['handleTriggerKeyDown']>) => nativeElement.value?.handleTriggerKeyDown(...args);
|
|
46
|
+
const callHandleTriggerKeyUp = (...args: Parameters<SynDropdown['handleTriggerKeyUp']>) => nativeElement.value?.handleTriggerKeyUp(...args);
|
|
47
|
+
const callHandleTriggerSlotChange = (...args: Parameters<SynDropdown['handleTriggerSlotChange']>) => nativeElement.value?.handleTriggerSlotChange(...args);
|
|
48
|
+
const callUpdateAccessibleTrigger = (...args: Parameters<SynDropdown['updateAccessibleTrigger']>) => nativeElement.value?.updateAccessibleTrigger(...args);
|
|
49
49
|
/**
|
|
50
50
|
* Shows the dropdown panel.
|
|
51
51
|
*/
|
|
52
|
-
const callShow = (...args: Parameters<SynDropdown['show']>) =>
|
|
52
|
+
const callShow = (...args: Parameters<SynDropdown['show']>) => nativeElement.value?.show(...args);
|
|
53
53
|
/**
|
|
54
54
|
* Hides the dropdown panel
|
|
55
55
|
*/
|
|
56
|
-
const callHide = (...args: Parameters<SynDropdown['hide']>) =>
|
|
56
|
+
const callHide = (...args: Parameters<SynDropdown['hide']>) => nativeElement.value?.hide(...args);
|
|
57
57
|
/**
|
|
58
58
|
* Instructs the dropdown menu to reposition.
|
|
59
59
|
* Useful when the position or size of the trigger changes when the menu
|
|
60
60
|
is activated.
|
|
61
61
|
*/
|
|
62
|
-
const callReposition = (...args: Parameters<SynDropdown['reposition']>) =>
|
|
63
|
-
const callAddOpenListeners = (...args: Parameters<SynDropdown['addOpenListeners']>) =>
|
|
64
|
-
const callRemoveOpenListeners = (...args: Parameters<SynDropdown['removeOpenListeners']>) =>
|
|
65
|
-
const callHandleOpenChange = (...args: Parameters<SynDropdown['handleOpenChange']>) =>
|
|
62
|
+
const callReposition = (...args: Parameters<SynDropdown['reposition']>) => nativeElement.value?.reposition(...args);
|
|
63
|
+
const callAddOpenListeners = (...args: Parameters<SynDropdown['addOpenListeners']>) => nativeElement.value?.addOpenListeners(...args);
|
|
64
|
+
const callRemoveOpenListeners = (...args: Parameters<SynDropdown['removeOpenListeners']>) => nativeElement.value?.removeOpenListeners(...args);
|
|
65
|
+
const callHandleOpenChange = (...args: Parameters<SynDropdown['handleOpenChange']>) => nativeElement.value?.handleOpenChange(...args);
|
|
66
66
|
|
|
67
67
|
defineExpose({
|
|
68
68
|
callFocusOnTrigger,
|
|
@@ -78,6 +78,7 @@ defineExpose({
|
|
|
78
78
|
callAddOpenListeners,
|
|
79
79
|
callRemoveOpenListeners,
|
|
80
80
|
callHandleOpenChange,
|
|
81
|
+
nativeElement,
|
|
81
82
|
});
|
|
82
83
|
|
|
83
84
|
// Map attributes
|
|
@@ -176,7 +177,7 @@ export type { SynAfterHideEvent } from '@synergy-design-system/components';
|
|
|
176
177
|
<template>
|
|
177
178
|
<syn-dropdown
|
|
178
179
|
v-bind="visibleProps"
|
|
179
|
-
ref="
|
|
180
|
+
ref="nativeElement"
|
|
180
181
|
@syn-show="$emit('syn-show', $event)"
|
|
181
182
|
@syn-after-show="$emit('syn-after-show', $event)"
|
|
182
183
|
|
|
@@ -184,6 +185,5 @@ export type { SynAfterHideEvent } from '@synergy-design-system/components';
|
|
|
184
185
|
@syn-after-hide="$emit('syn-after-hide', $event)"
|
|
185
186
|
>
|
|
186
187
|
<slot />
|
|
187
|
-
<slot name="trigger" />
|
|
188
188
|
</syn-dropdown>
|
|
189
189
|
</template>
|
|
@@ -38,10 +38,10 @@ import '@synergy-design-system/components/components/header/header.js';
|
|
|
38
38
|
import type { SynBurgerMenuHideEvent, SynBurgerMenuShowEvent, SynHeader } from '@synergy-design-system/components';
|
|
39
39
|
|
|
40
40
|
// DOM Reference to the element
|
|
41
|
-
const
|
|
41
|
+
const nativeElement = ref<SynHeader>();
|
|
42
42
|
|
|
43
43
|
// Map methods
|
|
44
|
-
const callHandleBurgerMenuVisible = (...args: Parameters<SynHeader['handleBurgerMenuVisible']>) =>
|
|
44
|
+
const callHandleBurgerMenuVisible = (...args: Parameters<SynHeader['handleBurgerMenuVisible']>) => nativeElement.value?.handleBurgerMenuVisible(...args);
|
|
45
45
|
/**
|
|
46
46
|
* Connect a `syn-side-nav` to add automatic interaction of the header with the side navigation
|
|
47
47
|
like showing the burger menu icon and open / close handling.
|
|
@@ -49,11 +49,12 @@ like showing the burger menu icon and open / close handling.
|
|
|
49
49
|
If no side navigation is connected, the header will use the first `syn-side-nav` element it
|
|
50
50
|
finds.
|
|
51
51
|
*/
|
|
52
|
-
const callConnectSideNavigation = (...args: Parameters<SynHeader['connectSideNavigation']>) =>
|
|
52
|
+
const callConnectSideNavigation = (...args: Parameters<SynHeader['connectSideNavigation']>) => nativeElement.value?.connectSideNavigation(...args);
|
|
53
53
|
|
|
54
54
|
defineExpose({
|
|
55
55
|
callHandleBurgerMenuVisible,
|
|
56
56
|
callConnectSideNavigation,
|
|
57
|
+
nativeElement,
|
|
57
58
|
});
|
|
58
59
|
|
|
59
60
|
// Map attributes
|
|
@@ -108,16 +109,11 @@ export type { SynBurgerMenuHideEvent } from '@synergy-design-system/components';
|
|
|
108
109
|
<template>
|
|
109
110
|
<syn-header
|
|
110
111
|
v-bind="visibleProps"
|
|
111
|
-
ref="
|
|
112
|
+
ref="nativeElement"
|
|
112
113
|
|
|
113
114
|
@syn-burger-menu-show="$emit('syn-burger-menu-show', $event)"
|
|
114
115
|
@syn-burger-menu-hide="$emit('syn-burger-menu-hide', $event)"
|
|
115
116
|
>
|
|
116
117
|
<slot />
|
|
117
|
-
<slot name="logo" />
|
|
118
|
-
<slot name="meta-navigation" />
|
|
119
|
-
<slot name="navigation" />
|
|
120
|
-
<slot name="show-burger-menu" />
|
|
121
|
-
<slot name="hide-burger-menu" />
|
|
122
118
|
</syn-header>
|
|
123
119
|
</template>
|