@synergy-design-system/vue 1.27.0 → 2.0.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 +1 -33
- package/dist/components/SynVueAlert.vue.d.ts +0 -5
- package/dist/components/SynVueBreadcrumbItem.vue.d.ts +0 -2
- package/dist/components/SynVueButton.vue.d.ts +0 -8
- package/dist/components/SynVueCard.vue.d.ts +8 -6
- package/dist/components/SynVueCheckbox.vue.d.ts +0 -9
- package/dist/components/SynVueDialog.vue.d.ts +0 -3
- package/dist/components/SynVueDivider.vue.d.ts +0 -1
- package/dist/components/SynVueDrawer.vue.d.ts +0 -4
- package/dist/components/SynVueDropdown.vue.d.ts +0 -13
- package/dist/components/SynVueHeader.vue.d.ts +26 -25
- package/dist/components/SynVueIcon.vue.d.ts +0 -2
- package/dist/components/SynVueIconButton.vue.d.ts +0 -3
- package/dist/components/SynVueInput.vue.d.ts +0 -15
- package/dist/components/SynVueMenuItem.vue.d.ts +0 -5
- package/dist/components/SynVueNavItem.vue.d.ts +0 -4
- package/dist/components/SynVueOptgroup.vue.d.ts +0 -1
- package/dist/components/SynVueOption.vue.d.ts +0 -4
- package/dist/components/SynVuePopup.vue.d.ts +0 -1
- package/dist/components/SynVuePrioNav.vue.d.ts +8 -23
- package/dist/components/SynVueRadio.vue.d.ts +0 -2
- package/dist/components/SynVueRadioButton.vue.d.ts +0 -3
- package/dist/components/SynVueRadioGroup.vue.d.ts +0 -6
- package/dist/components/SynVueSelect.vue.d.ts +0 -11
- package/dist/components/SynVueSideNav.vue.d.ts +0 -5
- package/dist/components/SynVueSwitch.vue.d.ts +0 -9
- package/dist/components/SynVueTextarea.vue.d.ts +0 -107
- package/dist/components/SynVueTooltip.vue.d.ts +0 -5
- package/package.json +2 -2
- package/src/components/SynVueAlert.vue +0 -26
- package/src/components/SynVueBadge.vue +0 -3
- package/src/components/SynVueBreadcrumb.vue +0 -3
- package/src/components/SynVueBreadcrumbItem.vue +0 -6
- package/src/components/SynVueButton.vue +0 -41
- package/src/components/SynVueButtonGroup.vue +0 -3
- package/src/components/SynVueCard.vue +4 -6
- package/src/components/SynVueCheckbox.vue +0 -45
- package/src/components/SynVueDialog.vue +0 -14
- package/src/components/SynVueDivider.vue +0 -4
- package/src/components/SynVueDrawer.vue +0 -16
- package/src/components/SynVueDropdown.vue +0 -39
- package/src/components/SynVueHeader.vue +37 -39
- package/src/components/SynVueIcon.vue +0 -6
- package/src/components/SynVueIconButton.vue +0 -17
- package/src/components/SynVueInput.vue +0 -70
- package/src/components/SynVueMenu.vue +0 -3
- package/src/components/SynVueMenuItem.vue +0 -15
- package/src/components/SynVueMenuLabel.vue +0 -3
- package/src/components/SynVueNavItem.vue +0 -19
- package/src/components/SynVueOptgroup.vue +0 -4
- package/src/components/SynVueOption.vue +0 -13
- package/src/components/SynVuePopup.vue +0 -7
- package/src/components/SynVuePrioNav.vue +1 -8
- package/src/components/SynVueProgressBar.vue +0 -3
- package/src/components/SynVueProgressRing.vue +0 -3
- package/src/components/SynVueRadio.vue +0 -6
- package/src/components/SynVueRadioButton.vue +0 -14
- package/src/components/SynVueRadioGroup.vue +0 -28
- package/src/components/SynVueSelect.vue +0 -50
- package/src/components/SynVueSideNav.vue +0 -18
- package/src/components/SynVueSpinner.vue +0 -3
- package/src/components/SynVueSwitch.vue +0 -43
- package/src/components/SynVueTag.vue +0 -3
- package/src/components/SynVueTextarea.vue +0 -60
- package/src/components/SynVueTooltip.vue +0 -18
|
@@ -40,33 +40,7 @@ import type {
|
|
|
40
40
|
// DOM Reference to the element
|
|
41
41
|
const nativeElement = ref<SynAlert>();
|
|
42
42
|
|
|
43
|
-
// Map methods
|
|
44
|
-
const callHandleOpenChange = (...args: Parameters<SynAlert['handleOpenChange']>) => nativeElement.value?.handleOpenChange(...args);
|
|
45
|
-
const callHandleDurationChange = (...args: Parameters<SynAlert['handleDurationChange']>) => nativeElement.value?.handleDurationChange(...args);
|
|
46
|
-
/**
|
|
47
|
-
* Shows the alert.
|
|
48
|
-
*/
|
|
49
|
-
const callShow = (...args: Parameters<SynAlert['show']>) => nativeElement.value?.show(...args);
|
|
50
|
-
/**
|
|
51
|
-
* Hides the alert
|
|
52
|
-
*/
|
|
53
|
-
const callHide = (...args: Parameters<SynAlert['hide']>) => nativeElement.value?.hide(...args);
|
|
54
|
-
/**
|
|
55
|
-
* Displays the alert as a toast notification.
|
|
56
|
-
* This will move the alert out of its position in the DOM and, when
|
|
57
|
-
dismissed, it will be removed from the DOM completely.
|
|
58
|
-
* By storing a reference to the alert, you can reuse it by
|
|
59
|
-
calling this method again.
|
|
60
|
-
* The returned promise will resolve after the alert is hidden.
|
|
61
|
-
*/
|
|
62
|
-
const callToast = (...args: Parameters<SynAlert['toast']>) => nativeElement.value?.toast(...args);
|
|
63
|
-
|
|
64
43
|
defineExpose({
|
|
65
|
-
callHandleOpenChange,
|
|
66
|
-
callHandleDurationChange,
|
|
67
|
-
callShow,
|
|
68
|
-
callHide,
|
|
69
|
-
callToast,
|
|
70
44
|
nativeElement,
|
|
71
45
|
});
|
|
72
46
|
|
|
@@ -31,13 +31,7 @@ import type { SynBreadcrumbItem } from '@synergy-design-system/components';
|
|
|
31
31
|
// DOM Reference to the element
|
|
32
32
|
const nativeElement = ref<SynBreadcrumbItem>();
|
|
33
33
|
|
|
34
|
-
// Map methods
|
|
35
|
-
const callHrefChanged = (...args: Parameters<SynBreadcrumbItem['hrefChanged']>) => nativeElement.value?.hrefChanged(...args);
|
|
36
|
-
const callHandleSlotChange = (...args: Parameters<SynBreadcrumbItem['handleSlotChange']>) => nativeElement.value?.handleSlotChange(...args);
|
|
37
|
-
|
|
38
34
|
defineExpose({
|
|
39
|
-
callHrefChanged,
|
|
40
|
-
callHandleSlotChange,
|
|
41
35
|
nativeElement,
|
|
42
36
|
});
|
|
43
37
|
|
|
@@ -39,48 +39,7 @@ import type {
|
|
|
39
39
|
// DOM Reference to the element
|
|
40
40
|
const nativeElement = ref<SynButton>();
|
|
41
41
|
|
|
42
|
-
// Map methods
|
|
43
|
-
const callHandleDisabledChange = (...args: Parameters<SynButton['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
|
|
44
|
-
/**
|
|
45
|
-
* Simulates a click on the button.
|
|
46
|
-
*/
|
|
47
|
-
const callClick = (...args: Parameters<SynButton['click']>) => nativeElement.value?.click(...args);
|
|
48
|
-
/**
|
|
49
|
-
* Sets focus on the button.
|
|
50
|
-
*/
|
|
51
|
-
const callFocus = (...args: Parameters<SynButton['focus']>) => nativeElement.value?.focus(...args);
|
|
52
|
-
/**
|
|
53
|
-
* Removes focus from the button.
|
|
54
|
-
*/
|
|
55
|
-
const callBlur = (...args: Parameters<SynButton['blur']>) => nativeElement.value?.blur(...args);
|
|
56
|
-
/**
|
|
57
|
-
* Checks for validity but does not show a validation message.
|
|
58
|
-
* Returns `true` when valid and `false` when invalid.
|
|
59
|
-
*/
|
|
60
|
-
const callCheckValidity = (...args: Parameters<SynButton['checkValidity']>) => nativeElement.value?.checkValidity(...args);
|
|
61
|
-
/**
|
|
62
|
-
* Gets the associated form, if one exists.
|
|
63
|
-
*/
|
|
64
|
-
const callGetForm = (...args: Parameters<SynButton['getForm']>) => nativeElement.value?.getForm(...args);
|
|
65
|
-
/**
|
|
66
|
-
* Checks for validity and shows the browser's validation message if the control is invalid.
|
|
67
|
-
*/
|
|
68
|
-
const callReportValidity = (...args: Parameters<SynButton['reportValidity']>) => nativeElement.value?.reportValidity(...args);
|
|
69
|
-
/**
|
|
70
|
-
* Sets a custom validation message.
|
|
71
|
-
* Pass an empty string to restore validity.
|
|
72
|
-
*/
|
|
73
|
-
const callSetCustomValidity = (...args: Parameters<SynButton['setCustomValidity']>) => nativeElement.value?.setCustomValidity(...args);
|
|
74
|
-
|
|
75
42
|
defineExpose({
|
|
76
|
-
callHandleDisabledChange,
|
|
77
|
-
callClick,
|
|
78
|
-
callFocus,
|
|
79
|
-
callBlur,
|
|
80
|
-
callCheckValidity,
|
|
81
|
-
callGetForm,
|
|
82
|
-
callReportValidity,
|
|
83
|
-
callSetCustomValidity,
|
|
84
43
|
nativeElement,
|
|
85
44
|
});
|
|
86
45
|
|
|
@@ -35,20 +35,18 @@ import type { SynCard } from '@synergy-design-system/components';
|
|
|
35
35
|
// DOM Reference to the element
|
|
36
36
|
const nativeElement = ref<SynCard>();
|
|
37
37
|
|
|
38
|
-
// Map methods
|
|
39
|
-
|
|
40
38
|
defineExpose({
|
|
41
|
-
|
|
42
39
|
nativeElement,
|
|
43
40
|
});
|
|
44
41
|
|
|
45
42
|
// Map attributes
|
|
46
43
|
const props = defineProps<{
|
|
47
44
|
/**
|
|
48
|
-
* Draws the card
|
|
49
|
-
* Can be used
|
|
45
|
+
* Draws the card with sharp edges.
|
|
46
|
+
* Can be used e.g.
|
|
47
|
+
* when nesting multiple syn-cards to create hierarchy.
|
|
50
48
|
*/
|
|
51
|
-
'
|
|
49
|
+
'sharp'?: SynCard['sharp'];
|
|
52
50
|
}>();
|
|
53
51
|
|
|
54
52
|
// Make sure prop binding only forwards the props that are actually there.
|
|
@@ -41,52 +41,7 @@ import type {
|
|
|
41
41
|
// DOM Reference to the element
|
|
42
42
|
const nativeElement = ref<SynCheckbox>();
|
|
43
43
|
|
|
44
|
-
// Map methods
|
|
45
|
-
const callHandleDisabledChange = (...args: Parameters<SynCheckbox['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
|
|
46
|
-
const callHandleStateChange = (...args: Parameters<SynCheckbox['handleStateChange']>) => nativeElement.value?.handleStateChange(...args);
|
|
47
|
-
/**
|
|
48
|
-
* Simulates a click on the checkbox.
|
|
49
|
-
*/
|
|
50
|
-
const callClick = (...args: Parameters<SynCheckbox['click']>) => nativeElement.value?.click(...args);
|
|
51
|
-
/**
|
|
52
|
-
* Sets focus on the checkbox.
|
|
53
|
-
*/
|
|
54
|
-
const callFocus = (...args: Parameters<SynCheckbox['focus']>) => nativeElement.value?.focus(...args);
|
|
55
|
-
/**
|
|
56
|
-
* Removes focus from the checkbox.
|
|
57
|
-
*/
|
|
58
|
-
const callBlur = (...args: Parameters<SynCheckbox['blur']>) => nativeElement.value?.blur(...args);
|
|
59
|
-
/**
|
|
60
|
-
* Checks for validity but does not show a validation message.
|
|
61
|
-
* Returns `true` when valid and `false` when invalid.
|
|
62
|
-
*/
|
|
63
|
-
const callCheckValidity = (...args: Parameters<SynCheckbox['checkValidity']>) => nativeElement.value?.checkValidity(...args);
|
|
64
|
-
/**
|
|
65
|
-
* Gets the associated form, if one exists.
|
|
66
|
-
*/
|
|
67
|
-
const callGetForm = (...args: Parameters<SynCheckbox['getForm']>) => nativeElement.value?.getForm(...args);
|
|
68
|
-
/**
|
|
69
|
-
* Checks for validity and shows the browser's validation message if the control is invalid.
|
|
70
|
-
*/
|
|
71
|
-
const callReportValidity = (...args: Parameters<SynCheckbox['reportValidity']>) => nativeElement.value?.reportValidity(...args);
|
|
72
|
-
/**
|
|
73
|
-
* Sets a custom validation message.
|
|
74
|
-
* The value provided will be shown to the user when the form is submitted.
|
|
75
|
-
* To clear
|
|
76
|
-
the custom validation message, call this method with an empty string.
|
|
77
|
-
*/
|
|
78
|
-
const callSetCustomValidity = (...args: Parameters<SynCheckbox['setCustomValidity']>) => nativeElement.value?.setCustomValidity(...args);
|
|
79
|
-
|
|
80
44
|
defineExpose({
|
|
81
|
-
callHandleDisabledChange,
|
|
82
|
-
callHandleStateChange,
|
|
83
|
-
callClick,
|
|
84
|
-
callFocus,
|
|
85
|
-
callBlur,
|
|
86
|
-
callCheckValidity,
|
|
87
|
-
callGetForm,
|
|
88
|
-
callReportValidity,
|
|
89
|
-
callSetCustomValidity,
|
|
90
45
|
nativeElement,
|
|
91
46
|
});
|
|
92
47
|
|
|
@@ -65,21 +65,7 @@ import type {
|
|
|
65
65
|
// DOM Reference to the element
|
|
66
66
|
const nativeElement = ref<SynDialog>();
|
|
67
67
|
|
|
68
|
-
// Map methods
|
|
69
|
-
const callHandleOpenChange = (...args: Parameters<SynDialog['handleOpenChange']>) => nativeElement.value?.handleOpenChange(...args);
|
|
70
|
-
/**
|
|
71
|
-
* Shows the dialog.
|
|
72
|
-
*/
|
|
73
|
-
const callShow = (...args: Parameters<SynDialog['show']>) => nativeElement.value?.show(...args);
|
|
74
|
-
/**
|
|
75
|
-
* Hides the dialog
|
|
76
|
-
*/
|
|
77
|
-
const callHide = (...args: Parameters<SynDialog['hide']>) => nativeElement.value?.hide(...args);
|
|
78
|
-
|
|
79
68
|
defineExpose({
|
|
80
|
-
callHandleOpenChange,
|
|
81
|
-
callShow,
|
|
82
|
-
callHide,
|
|
83
69
|
nativeElement,
|
|
84
70
|
});
|
|
85
71
|
|
|
@@ -23,11 +23,7 @@ import type { SynDivider } from '@synergy-design-system/components';
|
|
|
23
23
|
// DOM Reference to the element
|
|
24
24
|
const nativeElement = ref<SynDivider>();
|
|
25
25
|
|
|
26
|
-
// Map methods
|
|
27
|
-
const callHandleVerticalChange = (...args: Parameters<SynDivider['handleVerticalChange']>) => nativeElement.value?.handleVerticalChange(...args);
|
|
28
|
-
|
|
29
26
|
defineExpose({
|
|
30
|
-
callHandleVerticalChange,
|
|
31
27
|
nativeElement,
|
|
32
28
|
});
|
|
33
29
|
|
|
@@ -72,23 +72,7 @@ import type {
|
|
|
72
72
|
// DOM Reference to the element
|
|
73
73
|
const nativeElement = ref<SynDrawer>();
|
|
74
74
|
|
|
75
|
-
// Map methods
|
|
76
|
-
const callHandleOpenChange = (...args: Parameters<SynDrawer['handleOpenChange']>) => nativeElement.value?.handleOpenChange(...args);
|
|
77
|
-
const callHandleNoModalChange = (...args: Parameters<SynDrawer['handleNoModalChange']>) => nativeElement.value?.handleNoModalChange(...args);
|
|
78
|
-
/**
|
|
79
|
-
* Shows the drawer.
|
|
80
|
-
*/
|
|
81
|
-
const callShow = (...args: Parameters<SynDrawer['show']>) => nativeElement.value?.show(...args);
|
|
82
|
-
/**
|
|
83
|
-
* Hides the drawer
|
|
84
|
-
*/
|
|
85
|
-
const callHide = (...args: Parameters<SynDrawer['hide']>) => nativeElement.value?.hide(...args);
|
|
86
|
-
|
|
87
75
|
defineExpose({
|
|
88
|
-
callHandleOpenChange,
|
|
89
|
-
callHandleNoModalChange,
|
|
90
|
-
callShow,
|
|
91
|
-
callHide,
|
|
92
76
|
nativeElement,
|
|
93
77
|
});
|
|
94
78
|
|
|
@@ -38,46 +38,7 @@ import type {
|
|
|
38
38
|
// DOM Reference to the element
|
|
39
39
|
const nativeElement = ref<SynDropdown>();
|
|
40
40
|
|
|
41
|
-
// Map methods
|
|
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
|
-
/**
|
|
50
|
-
* Shows the dropdown panel.
|
|
51
|
-
*/
|
|
52
|
-
const callShow = (...args: Parameters<SynDropdown['show']>) => nativeElement.value?.show(...args);
|
|
53
|
-
/**
|
|
54
|
-
* Hides the dropdown panel
|
|
55
|
-
*/
|
|
56
|
-
const callHide = (...args: Parameters<SynDropdown['hide']>) => nativeElement.value?.hide(...args);
|
|
57
|
-
/**
|
|
58
|
-
* Instructs the dropdown menu to reposition.
|
|
59
|
-
* Useful when the position or size of the trigger changes when the menu
|
|
60
|
-
is activated.
|
|
61
|
-
*/
|
|
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
|
-
|
|
67
41
|
defineExpose({
|
|
68
|
-
callFocusOnTrigger,
|
|
69
|
-
callGetMenu,
|
|
70
|
-
callHandleTriggerClick,
|
|
71
|
-
callHandleTriggerKeyDown,
|
|
72
|
-
callHandleTriggerKeyUp,
|
|
73
|
-
callHandleTriggerSlotChange,
|
|
74
|
-
callUpdateAccessibleTrigger,
|
|
75
|
-
callShow,
|
|
76
|
-
callHide,
|
|
77
|
-
callReposition,
|
|
78
|
-
callAddOpenListeners,
|
|
79
|
-
callRemoveOpenListeners,
|
|
80
|
-
callHandleOpenChange,
|
|
81
42
|
nativeElement,
|
|
82
43
|
});
|
|
83
44
|
|
|
@@ -13,18 +13,21 @@
|
|
|
13
13
|
* @status stable
|
|
14
14
|
* @since 1.10.0
|
|
15
15
|
*
|
|
16
|
-
* @slot - The label for the header
|
|
17
|
-
* @slot logo - The logo that should be displayed. Will fall back to the SICK logo if not provided
|
|
18
|
-
* @slot meta-navigation - The meta-navigation is used to add various application toolbar icons
|
|
16
|
+
* @slot label - The label for the header
|
|
17
|
+
* @slot logo - The logo that should be displayed. Will fall back to the SICK logo if not provided
|
|
18
|
+
* @slot meta-navigation - The meta-navigation is used to add various application toolbar icons
|
|
19
19
|
* Best used with `<syn-icon-button />` and `<syn-drop-down />`
|
|
20
20
|
* @slot navigation - This slot can be used to add an optional horizontal navigation
|
|
21
|
-
* @slot
|
|
22
|
-
*
|
|
21
|
+
* @slot open-burger-menu-icon - An icon to use in lieu of the default burger-menu=open state.
|
|
22
|
+
* The default close icon is a 'x'.
|
|
23
|
+
* @slot closed-burger-menu-icon - An icon to use in lieu of the default burger-menu=closed state.
|
|
24
|
+
* The default open icon is a burger menu.
|
|
23
25
|
*
|
|
24
|
-
* @event syn-burger-menu-
|
|
25
|
-
* @event syn-burger-menu-
|
|
26
|
+
* @event syn-burger-menu-closed - Emitted when the burger menu is toggled to closed
|
|
27
|
+
* @event syn-burger-menu-hidden - Emitted when the burger menu is toggled to hidden
|
|
28
|
+
* @event syn-burger-menu-open - Emitted when the burger menu is toggled to open
|
|
26
29
|
*
|
|
27
|
-
* @csspart base - The component's base wrapper
|
|
30
|
+
* @csspart base - The component's base wrapper
|
|
28
31
|
* @csspart content - The wrapper most content items reside
|
|
29
32
|
* @csspart logo - The wrapper the application logo resides in
|
|
30
33
|
* @csspart label - The element wrapping the application name
|
|
@@ -35,25 +38,14 @@
|
|
|
35
38
|
import { computed, ref } from 'vue';
|
|
36
39
|
import '@synergy-design-system/components/components/header/header.js';
|
|
37
40
|
|
|
38
|
-
import type {
|
|
41
|
+
import type {
|
|
42
|
+
SynBurgerMenuClosedEvent, SynBurgerMenuHiddenEvent, SynBurgerMenuOpenEvent, SynHeader,
|
|
43
|
+
} from '@synergy-design-system/components';
|
|
39
44
|
|
|
40
45
|
// DOM Reference to the element
|
|
41
46
|
const nativeElement = ref<SynHeader>();
|
|
42
47
|
|
|
43
|
-
// Map methods
|
|
44
|
-
const callHandleBurgerMenuVisible = (...args: Parameters<SynHeader['handleBurgerMenuVisible']>) => nativeElement.value?.handleBurgerMenuVisible(...args);
|
|
45
|
-
/**
|
|
46
|
-
* Connect a `syn-side-nav` to add automatic interaction of the header with the side navigation
|
|
47
|
-
like showing the burger menu icon and open / close handling.
|
|
48
|
-
|
|
49
|
-
If no side navigation is connected, the header will use the first `syn-side-nav` element it
|
|
50
|
-
finds.
|
|
51
|
-
*/
|
|
52
|
-
const callConnectSideNavigation = (...args: Parameters<SynHeader['connectSideNavigation']>) => nativeElement.value?.connectSideNavigation(...args);
|
|
53
|
-
|
|
54
48
|
defineExpose({
|
|
55
|
-
callHandleBurgerMenuVisible,
|
|
56
|
-
callConnectSideNavigation,
|
|
57
49
|
nativeElement,
|
|
58
50
|
});
|
|
59
51
|
|
|
@@ -61,20 +53,19 @@ defineExpose({
|
|
|
61
53
|
const props = defineProps<{
|
|
62
54
|
/**
|
|
63
55
|
* The headers label.
|
|
64
|
-
* If you need to display HTML, use the `
|
|
56
|
+
* If you need to display HTML, use the `label` slot instead.
|
|
65
57
|
*/
|
|
66
58
|
'label'?: SynHeader['label'];
|
|
67
59
|
|
|
68
60
|
/**
|
|
69
|
-
*
|
|
70
|
-
The button is added automatically
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
* Determines whether or not the burger menu is currently visible.
|
|
61
|
+
* Defines the current visibility and icon of the burger-menu icon.
|
|
62
|
+
The menu button is added automatically if the component finds a syn-side-nav in non-rail mode.
|
|
63
|
+
The following values can be used:
|
|
64
|
+
- hidden: The burger menu is not visible
|
|
65
|
+
- open: The burger menu is visible and shows the close icon
|
|
66
|
+
- closed: The burger menu is visible and shows the open icon
|
|
76
67
|
*/
|
|
77
|
-
'
|
|
68
|
+
'burgerMenu'?: SynHeader['burgerMenu'];
|
|
78
69
|
}>();
|
|
79
70
|
|
|
80
71
|
// Make sure prop binding only forwards the props that are actually there.
|
|
@@ -90,29 +81,36 @@ const visibleProps = computed(() => Object.fromEntries(
|
|
|
90
81
|
// Map events
|
|
91
82
|
defineEmits<{
|
|
92
83
|
/**
|
|
93
|
-
* Emitted when the burger menu
|
|
84
|
+
* Emitted when the burger menu is toggled to closed
|
|
85
|
+
*/
|
|
86
|
+
'syn-burger-menu-closed': [e: SynBurgerMenuClosedEvent];
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Emitted when the burger menu is toggled to hidden
|
|
94
90
|
*/
|
|
95
|
-
'syn-burger-menu-
|
|
91
|
+
'syn-burger-menu-hidden': [e: SynBurgerMenuHiddenEvent];
|
|
96
92
|
|
|
97
93
|
/**
|
|
98
|
-
* Emitted when the burger menu
|
|
94
|
+
* Emitted when the burger menu is toggled to open
|
|
99
95
|
*/
|
|
100
|
-
'syn-burger-menu-
|
|
96
|
+
'syn-burger-menu-open': [e: SynBurgerMenuOpenEvent];
|
|
101
97
|
}>();
|
|
102
98
|
</script>
|
|
103
99
|
|
|
104
100
|
<script lang="ts">
|
|
105
|
-
export type {
|
|
106
|
-
export type {
|
|
101
|
+
export type { SynBurgerMenuClosedEvent } from '@synergy-design-system/components';
|
|
102
|
+
export type { SynBurgerMenuHiddenEvent } from '@synergy-design-system/components';
|
|
103
|
+
export type { SynBurgerMenuOpenEvent } from '@synergy-design-system/components';
|
|
107
104
|
</script>
|
|
108
105
|
|
|
109
106
|
<template>
|
|
110
107
|
<syn-header
|
|
111
108
|
v-bind="visibleProps"
|
|
112
109
|
ref="nativeElement"
|
|
110
|
+
@syn-burger-menu-closed="$emit('syn-burger-menu-closed', $event)"
|
|
113
111
|
|
|
114
|
-
@syn-burger-menu-
|
|
115
|
-
@syn-burger-menu-
|
|
112
|
+
@syn-burger-menu-hidden="$emit('syn-burger-menu-hidden', $event)"
|
|
113
|
+
@syn-burger-menu-open="$emit('syn-burger-menu-open', $event)"
|
|
116
114
|
>
|
|
117
115
|
<slot />
|
|
118
116
|
</syn-header>
|
|
@@ -25,13 +25,7 @@ import type { SynErrorEvent, SynIcon, SynLoadEvent } from '@synergy-design-syste
|
|
|
25
25
|
// DOM Reference to the element
|
|
26
26
|
const nativeElement = ref<SynIcon>();
|
|
27
27
|
|
|
28
|
-
// Map methods
|
|
29
|
-
const callHandleLabelChange = (...args: Parameters<SynIcon['handleLabelChange']>) => nativeElement.value?.handleLabelChange(...args);
|
|
30
|
-
const callSetIcon = (...args: Parameters<SynIcon['setIcon']>) => nativeElement.value?.setIcon(...args);
|
|
31
|
-
|
|
32
28
|
defineExpose({
|
|
33
|
-
callHandleLabelChange,
|
|
34
|
-
callSetIcon,
|
|
35
29
|
nativeElement,
|
|
36
30
|
});
|
|
37
31
|
|
|
@@ -26,24 +26,7 @@ import type { SynBlurEvent, SynFocusEvent, SynIconButton } from '@synergy-design
|
|
|
26
26
|
// DOM Reference to the element
|
|
27
27
|
const nativeElement = ref<SynIconButton>();
|
|
28
28
|
|
|
29
|
-
// Map methods
|
|
30
|
-
/**
|
|
31
|
-
* Simulates a click on the icon button.
|
|
32
|
-
*/
|
|
33
|
-
const callClick = (...args: Parameters<SynIconButton['click']>) => nativeElement.value?.click(...args);
|
|
34
|
-
/**
|
|
35
|
-
* Sets focus on the icon button.
|
|
36
|
-
*/
|
|
37
|
-
const callFocus = (...args: Parameters<SynIconButton['focus']>) => nativeElement.value?.focus(...args);
|
|
38
|
-
/**
|
|
39
|
-
* Removes focus from the icon button.
|
|
40
|
-
*/
|
|
41
|
-
const callBlur = (...args: Parameters<SynIconButton['blur']>) => nativeElement.value?.blur(...args);
|
|
42
|
-
|
|
43
29
|
defineExpose({
|
|
44
|
-
callClick,
|
|
45
|
-
callFocus,
|
|
46
|
-
callBlur,
|
|
47
30
|
nativeElement,
|
|
48
31
|
});
|
|
49
32
|
|
|
@@ -56,77 +56,7 @@ import type {
|
|
|
56
56
|
// DOM Reference to the element
|
|
57
57
|
const nativeElement = ref<SynInput>();
|
|
58
58
|
|
|
59
|
-
// Map methods
|
|
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
|
-
/**
|
|
64
|
-
* Sets focus on the input.
|
|
65
|
-
*/
|
|
66
|
-
const callFocus = (...args: Parameters<SynInput['focus']>) => nativeElement.value?.focus(...args);
|
|
67
|
-
/**
|
|
68
|
-
* Removes focus from the input.
|
|
69
|
-
*/
|
|
70
|
-
const callBlur = (...args: Parameters<SynInput['blur']>) => nativeElement.value?.blur(...args);
|
|
71
|
-
/**
|
|
72
|
-
* Selects all the text in the input.
|
|
73
|
-
*/
|
|
74
|
-
const callSelect = (...args: Parameters<SynInput['select']>) => nativeElement.value?.select(...args);
|
|
75
|
-
/**
|
|
76
|
-
* Sets the start and end positions of the text selection (0-based).
|
|
77
|
-
*/
|
|
78
|
-
const callSetSelectionRange = (...args: Parameters<SynInput['setSelectionRange']>) => nativeElement.value?.setSelectionRange(...args);
|
|
79
|
-
/**
|
|
80
|
-
* Replaces a range of text with a new string.
|
|
81
|
-
*/
|
|
82
|
-
const callSetRangeText = (...args: Parameters<SynInput['setRangeText']>) => nativeElement.value?.setRangeText(...args);
|
|
83
|
-
/**
|
|
84
|
-
* Displays the browser picker for an input element (only works if the browser supports it for the input type).
|
|
85
|
-
*/
|
|
86
|
-
const callShowPicker = (...args: Parameters<SynInput['showPicker']>) => nativeElement.value?.showPicker(...args);
|
|
87
|
-
/**
|
|
88
|
-
* Increments the value of a numeric input type by the value of the step attribute.
|
|
89
|
-
*/
|
|
90
|
-
const callStepUp = (...args: Parameters<SynInput['stepUp']>) => nativeElement.value?.stepUp(...args);
|
|
91
|
-
/**
|
|
92
|
-
* Decrements the value of a numeric input type by the value of the step attribute.
|
|
93
|
-
*/
|
|
94
|
-
const callStepDown = (...args: Parameters<SynInput['stepDown']>) => nativeElement.value?.stepDown(...args);
|
|
95
|
-
/**
|
|
96
|
-
* Checks for validity but does not show a validation message.
|
|
97
|
-
* Returns `true` when valid and `false` when invalid.
|
|
98
|
-
*/
|
|
99
|
-
const callCheckValidity = (...args: Parameters<SynInput['checkValidity']>) => nativeElement.value?.checkValidity(...args);
|
|
100
|
-
/**
|
|
101
|
-
* Gets the associated form, if one exists.
|
|
102
|
-
*/
|
|
103
|
-
const callGetForm = (...args: Parameters<SynInput['getForm']>) => nativeElement.value?.getForm(...args);
|
|
104
|
-
/**
|
|
105
|
-
* Checks for validity and shows the browser's validation message if the control is invalid.
|
|
106
|
-
*/
|
|
107
|
-
const callReportValidity = (...args: Parameters<SynInput['reportValidity']>) => nativeElement.value?.reportValidity(...args);
|
|
108
|
-
/**
|
|
109
|
-
* Sets a custom validation message.
|
|
110
|
-
* Pass an empty string to restore validity.
|
|
111
|
-
*/
|
|
112
|
-
const callSetCustomValidity = (...args: Parameters<SynInput['setCustomValidity']>) => nativeElement.value?.setCustomValidity(...args);
|
|
113
|
-
|
|
114
59
|
defineExpose({
|
|
115
|
-
callHandleDisabledChange,
|
|
116
|
-
callHandleStepChange,
|
|
117
|
-
callHandleValueChange,
|
|
118
|
-
callFocus,
|
|
119
|
-
callBlur,
|
|
120
|
-
callSelect,
|
|
121
|
-
callSetSelectionRange,
|
|
122
|
-
callSetRangeText,
|
|
123
|
-
callShowPicker,
|
|
124
|
-
callStepUp,
|
|
125
|
-
callStepDown,
|
|
126
|
-
callCheckValidity,
|
|
127
|
-
callGetForm,
|
|
128
|
-
callReportValidity,
|
|
129
|
-
callSetCustomValidity,
|
|
130
60
|
nativeElement,
|
|
131
61
|
});
|
|
132
62
|
|
|
@@ -39,22 +39,7 @@ import type { SynMenuItem } from '@synergy-design-system/components';
|
|
|
39
39
|
// DOM Reference to the element
|
|
40
40
|
const nativeElement = ref<SynMenuItem>();
|
|
41
41
|
|
|
42
|
-
// Map methods
|
|
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
|
-
/**
|
|
47
|
-
* Returns a text label based on the contents of the menu item's default slot.
|
|
48
|
-
*/
|
|
49
|
-
const callGetTextLabel = (...args: Parameters<SynMenuItem['getTextLabel']>) => nativeElement.value?.getTextLabel(...args);
|
|
50
|
-
const callIsSubmenu = (...args: Parameters<SynMenuItem['isSubmenu']>) => nativeElement.value?.isSubmenu(...args);
|
|
51
|
-
|
|
52
42
|
defineExpose({
|
|
53
|
-
callHandleCheckedChange,
|
|
54
|
-
callHandleDisabledChange,
|
|
55
|
-
callHandleTypeChange,
|
|
56
|
-
callGetTextLabel,
|
|
57
|
-
callIsSubmenu,
|
|
58
43
|
nativeElement,
|
|
59
44
|
});
|
|
60
45
|
|
|
@@ -60,26 +60,7 @@ import type {
|
|
|
60
60
|
// DOM Reference to the element
|
|
61
61
|
const nativeElement = ref<SynNavItem>();
|
|
62
62
|
|
|
63
|
-
// Map methods
|
|
64
|
-
const callHandleOpenChange = (...args: Parameters<SynNavItem['handleOpenChange']>) => nativeElement.value?.handleOpenChange(...args);
|
|
65
|
-
/**
|
|
66
|
-
* Removes focus from the button.
|
|
67
|
-
*/
|
|
68
|
-
const callBlur = (...args: Parameters<SynNavItem['blur']>) => nativeElement.value?.blur(...args);
|
|
69
|
-
/**
|
|
70
|
-
* Simulates a click on the nav-items button, link or summary.
|
|
71
|
-
*/
|
|
72
|
-
const callClick = (...args: Parameters<SynNavItem['click']>) => nativeElement.value?.click(...args);
|
|
73
|
-
/**
|
|
74
|
-
* Sets focus on the nav-item
|
|
75
|
-
*/
|
|
76
|
-
const callFocus = (...args: Parameters<SynNavItem['focus']>) => nativeElement.value?.focus(...args);
|
|
77
|
-
|
|
78
63
|
defineExpose({
|
|
79
|
-
callHandleOpenChange,
|
|
80
|
-
callBlur,
|
|
81
|
-
callClick,
|
|
82
|
-
callFocus,
|
|
83
64
|
nativeElement,
|
|
84
65
|
});
|
|
85
66
|
|
|
@@ -35,11 +35,7 @@ import type { SynOptgroup } from '@synergy-design-system/components';
|
|
|
35
35
|
// DOM Reference to the element
|
|
36
36
|
const nativeElement = ref<SynOptgroup>();
|
|
37
37
|
|
|
38
|
-
// Map methods
|
|
39
|
-
const callHandleDisabledChange = (...args: Parameters<SynOptgroup['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
|
|
40
|
-
|
|
41
38
|
defineExpose({
|
|
42
|
-
callHandleDisabledChange,
|
|
43
39
|
nativeElement,
|
|
44
40
|
});
|
|
45
41
|
|