@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
package/README.md
CHANGED
|
@@ -139,39 +139,7 @@ An example for how these types can be used in case of event handling, is shown b
|
|
|
139
139
|
</template>
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
-
### 7.
|
|
143
|
-
|
|
144
|
-
> ⛔️ This feature is deprecated, the methods defined below will not be available in the next major version of `@synergy-design-system/vue`!
|
|
145
|
-
> If you need to call methods on elements, please obtain a reference to the native element as shown below and call the method on the native element itself!
|
|
146
|
-
|
|
147
|
-
Components can have methods (like `focus`, `click`, `stepUp`, etc. ), which trigger an action, if they are called.
|
|
148
|
-
|
|
149
|
-
In Vue they can be used by prefixing each method name with `call`.
|
|
150
|
-
|
|
151
|
-
`focus` -> `callFocus`, `click`-> `callClick`, ...
|
|
152
|
-
|
|
153
|
-
An example for calling such a method in a Vue component is shown here:
|
|
154
|
-
|
|
155
|
-
```html
|
|
156
|
-
<script setup lang="ts">
|
|
157
|
-
import { SynVueInput, SynVueButton } from "@synergy-design-system/vue";
|
|
158
|
-
import { ref } from "vue";
|
|
159
|
-
|
|
160
|
-
const count = ref<InstanceType<typeof SynVueInput> | null>(null);
|
|
161
|
-
|
|
162
|
-
const handleClick = () => {
|
|
163
|
-
// Increment the count via calling the method
|
|
164
|
-
count.value?.callStepUp();
|
|
165
|
-
};
|
|
166
|
-
</script>
|
|
167
|
-
|
|
168
|
-
<template>
|
|
169
|
-
<SynVueInput ref="count" label="My count" type="number" value="5" />
|
|
170
|
-
<SynVueButton @click="handleClick"> Increment </SynVueButton>
|
|
171
|
-
</template>
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
### 7.2. Obtaining a reference to the underlying native element
|
|
142
|
+
### 7. Obtaining a reference to the underlying native element (e.g. for usage of methods)
|
|
175
143
|
|
|
176
144
|
Sometimes, there is a need to interact directly with the underlying native web-component. For this reason, the library exposes a `nativeElement` property for all vue components.
|
|
177
145
|
|
|
@@ -29,11 +29,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
29
29
|
*/
|
|
30
30
|
duration?: number | undefined;
|
|
31
31
|
}>, {
|
|
32
|
-
callHandleOpenChange: () => Promise<void> | undefined;
|
|
33
|
-
callHandleDurationChange: () => void | undefined;
|
|
34
|
-
callShow: () => Promise<void> | undefined;
|
|
35
|
-
callHide: () => Promise<void> | undefined;
|
|
36
|
-
callToast: () => Promise<void> | undefined;
|
|
37
32
|
nativeElement: import("vue").Ref<SynAlert | undefined>;
|
|
38
33
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
34
|
"syn-show": (e: SynShowEvent) => void;
|
|
@@ -19,8 +19,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
19
|
*/
|
|
20
20
|
rel?: string | undefined;
|
|
21
21
|
}>, {
|
|
22
|
-
callHrefChanged: () => void | undefined;
|
|
23
|
-
callHandleSlotChange: () => void | undefined;
|
|
24
22
|
nativeElement: import("vue").Ref<SynBreadcrumbItem | undefined>;
|
|
25
23
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
26
24
|
/**
|
|
@@ -96,14 +96,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
96
96
|
*/
|
|
97
97
|
formTarget?: string | undefined;
|
|
98
98
|
}>, {
|
|
99
|
-
callHandleDisabledChange: () => void | undefined;
|
|
100
|
-
callClick: () => void | undefined;
|
|
101
|
-
callFocus: (options?: FocusOptions | undefined) => void | undefined;
|
|
102
|
-
callBlur: () => void | undefined;
|
|
103
|
-
callCheckValidity: () => boolean | undefined;
|
|
104
|
-
callGetForm: () => HTMLFormElement | null | undefined;
|
|
105
|
-
callReportValidity: () => boolean | undefined;
|
|
106
|
-
callSetCustomValidity: (message: string) => void | undefined;
|
|
107
99
|
nativeElement: import("vue").Ref<SynButton | undefined>;
|
|
108
100
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
109
101
|
"syn-blur": (e: SynBlurEvent) => void;
|
|
@@ -2,18 +2,20 @@ import '@synergy-design-system/components/components/card/card.js';
|
|
|
2
2
|
import type { SynCard } from '@synergy-design-system/components';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
4
4
|
/**
|
|
5
|
-
* Draws the card
|
|
6
|
-
* Can be used
|
|
5
|
+
* Draws the card with sharp edges.
|
|
6
|
+
* Can be used e.g.
|
|
7
|
+
* when nesting multiple syn-cards to create hierarchy.
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
sharp?: boolean | undefined;
|
|
9
10
|
}>, {
|
|
10
11
|
nativeElement: import("vue").Ref<SynCard | undefined>;
|
|
11
12
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
12
13
|
/**
|
|
13
|
-
* Draws the card
|
|
14
|
-
* Can be used
|
|
14
|
+
* Draws the card with sharp edges.
|
|
15
|
+
* Can be used e.g.
|
|
16
|
+
* when nesting multiple syn-cards to create hierarchy.
|
|
15
17
|
*/
|
|
16
|
-
|
|
18
|
+
sharp?: boolean | undefined;
|
|
17
19
|
}>>>, {}, {}>, {
|
|
18
20
|
default?(_: {}): any;
|
|
19
21
|
}>;
|
|
@@ -55,15 +55,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
55
55
|
*/
|
|
56
56
|
modelValue?: boolean | undefined;
|
|
57
57
|
}>, {
|
|
58
|
-
callHandleDisabledChange: () => void | undefined;
|
|
59
|
-
callHandleStateChange: () => void | undefined;
|
|
60
|
-
callClick: () => void | undefined;
|
|
61
|
-
callFocus: (options?: FocusOptions | undefined) => void | undefined;
|
|
62
|
-
callBlur: () => void | undefined;
|
|
63
|
-
callCheckValidity: () => boolean | undefined;
|
|
64
|
-
callGetForm: () => HTMLFormElement | null | undefined;
|
|
65
|
-
callReportValidity: () => boolean | undefined;
|
|
66
|
-
callSetCustomValidity: (message: string) => void | undefined;
|
|
67
58
|
nativeElement: import("vue").Ref<SynCheckbox | undefined>;
|
|
68
59
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
69
60
|
"syn-blur": (e: SynBlurEvent) => void;
|
|
@@ -27,9 +27,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
27
|
*/
|
|
28
28
|
noHeader?: boolean | undefined;
|
|
29
29
|
}>, {
|
|
30
|
-
callHandleOpenChange: () => Promise<void> | undefined;
|
|
31
|
-
callShow: () => Promise<void> | undefined;
|
|
32
|
-
callHide: () => Promise<void> | undefined;
|
|
33
30
|
nativeElement: import("vue").Ref<SynDialog | undefined>;
|
|
34
31
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
32
|
"syn-show": (e: SynShowEvent) => void;
|
|
@@ -6,7 +6,6 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
6
6
|
*/
|
|
7
7
|
vertical?: boolean | undefined;
|
|
8
8
|
}>, {
|
|
9
|
-
callHandleVerticalChange: () => void | undefined;
|
|
10
9
|
nativeElement: import("vue").Ref<SynDivider | undefined>;
|
|
11
10
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
12
11
|
/**
|
|
@@ -37,10 +37,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
37
37
|
*/
|
|
38
38
|
noHeader?: boolean | undefined;
|
|
39
39
|
}>, {
|
|
40
|
-
callHandleOpenChange: () => Promise<void> | undefined;
|
|
41
|
-
callHandleNoModalChange: () => void | undefined;
|
|
42
|
-
callShow: () => Promise<void> | undefined;
|
|
43
|
-
callHide: () => Promise<void> | undefined;
|
|
44
40
|
nativeElement: import("vue").Ref<SynDrawer | undefined>;
|
|
45
41
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
42
|
"syn-show": (e: SynShowEvent) => void;
|
|
@@ -47,19 +47,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
47
47
|
*/
|
|
48
48
|
sync?: SynDropdown['sync'];
|
|
49
49
|
}>, {
|
|
50
|
-
callFocusOnTrigger: () => void | undefined;
|
|
51
|
-
callGetMenu: () => import("@synergy-design-system/components").SynMenu | undefined;
|
|
52
|
-
callHandleTriggerClick: () => void | undefined;
|
|
53
|
-
callHandleTriggerKeyDown: (event: KeyboardEvent) => Promise<void> | undefined;
|
|
54
|
-
callHandleTriggerKeyUp: (event: KeyboardEvent) => void | undefined;
|
|
55
|
-
callHandleTriggerSlotChange: () => void | undefined;
|
|
56
|
-
callUpdateAccessibleTrigger: () => void | undefined;
|
|
57
|
-
callShow: () => Promise<void> | undefined;
|
|
58
|
-
callHide: () => Promise<void> | undefined;
|
|
59
|
-
callReposition: () => void | undefined;
|
|
60
|
-
callAddOpenListeners: () => void | undefined;
|
|
61
|
-
callRemoveOpenListeners: () => void | undefined;
|
|
62
|
-
callHandleOpenChange: () => Promise<void> | undefined;
|
|
63
50
|
nativeElement: import("vue").Ref<SynDropdown | undefined>;
|
|
64
51
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
65
52
|
"syn-show": (e: SynShowEvent) => void;
|
|
@@ -1,47 +1,48 @@
|
|
|
1
1
|
import '@synergy-design-system/components/components/header/header.js';
|
|
2
|
-
import type {
|
|
3
|
-
export type {
|
|
4
|
-
export type {
|
|
2
|
+
import type { SynBurgerMenuClosedEvent, SynBurgerMenuHiddenEvent, SynBurgerMenuOpenEvent, SynHeader } from '@synergy-design-system/components';
|
|
3
|
+
export type { SynBurgerMenuClosedEvent } from '@synergy-design-system/components';
|
|
4
|
+
export type { SynBurgerMenuHiddenEvent } from '@synergy-design-system/components';
|
|
5
|
+
export type { SynBurgerMenuOpenEvent } from '@synergy-design-system/components';
|
|
5
6
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
6
7
|
/**
|
|
7
8
|
* The headers label.
|
|
8
|
-
* If you need to display HTML, use the `
|
|
9
|
+
* If you need to display HTML, use the `label` slot instead.
|
|
9
10
|
*/
|
|
10
11
|
label?: string | undefined;
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
-
The button is added automatically
|
|
13
|
+
* Defines the current visibility and icon of the burger-menu icon.
|
|
14
|
+
The menu button is added automatically if the component finds a syn-side-nav in non-rail mode.
|
|
15
|
+
The following values can be used:
|
|
16
|
+
- hidden: The burger menu is not visible
|
|
17
|
+
- open: The burger menu is visible and shows the close icon
|
|
18
|
+
- closed: The burger menu is visible and shows the open icon
|
|
14
19
|
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Determines whether or not the burger menu is currently visible.
|
|
18
|
-
*/
|
|
19
|
-
burgerMenuVisible?: boolean | undefined;
|
|
20
|
+
burgerMenu?: "open" | "hidden" | "closed" | undefined;
|
|
20
21
|
}>, {
|
|
21
|
-
callHandleBurgerMenuVisible: () => void | undefined;
|
|
22
|
-
callConnectSideNavigation: (sideNav: import("@synergy-design-system/components").SynSideNav) => void | undefined;
|
|
23
22
|
nativeElement: import("vue").Ref<SynHeader | undefined>;
|
|
24
23
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
-
"syn-burger-menu-
|
|
26
|
-
"syn-burger-menu-
|
|
24
|
+
"syn-burger-menu-closed": (e: SynBurgerMenuClosedEvent) => void;
|
|
25
|
+
"syn-burger-menu-hidden": (e: SynBurgerMenuHiddenEvent) => void;
|
|
26
|
+
"syn-burger-menu-open": (e: SynBurgerMenuOpenEvent) => void;
|
|
27
27
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
28
28
|
/**
|
|
29
29
|
* The headers label.
|
|
30
|
-
* If you need to display HTML, use the `
|
|
30
|
+
* If you need to display HTML, use the `label` slot instead.
|
|
31
31
|
*/
|
|
32
32
|
label?: string | undefined;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
|
-
The button is added automatically
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
* Defines the current visibility and icon of the burger-menu icon.
|
|
35
|
+
The menu button is added automatically if the component finds a syn-side-nav in non-rail mode.
|
|
36
|
+
The following values can be used:
|
|
37
|
+
- hidden: The burger menu is not visible
|
|
38
|
+
- open: The burger menu is visible and shows the close icon
|
|
39
|
+
- closed: The burger menu is visible and shows the open icon
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
burgerMenu?: "open" | "hidden" | "closed" | undefined;
|
|
42
42
|
}>>> & {
|
|
43
|
-
"onSyn-burger-menu-
|
|
44
|
-
"onSyn-burger-menu-
|
|
43
|
+
"onSyn-burger-menu-closed"?: ((e: SynBurgerMenuClosedEvent) => any) | undefined;
|
|
44
|
+
"onSyn-burger-menu-hidden"?: ((e: SynBurgerMenuHiddenEvent) => any) | undefined;
|
|
45
|
+
"onSyn-burger-menu-open"?: ((e: SynBurgerMenuOpenEvent) => any) | undefined;
|
|
45
46
|
}, {}, {}>, {
|
|
46
47
|
default?(_: {}): any;
|
|
47
48
|
}>;
|
|
@@ -25,8 +25,6 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
25
25
|
*/
|
|
26
26
|
library?: string | undefined;
|
|
27
27
|
}>, {
|
|
28
|
-
callHandleLabelChange: () => void | undefined;
|
|
29
|
-
callSetIcon: () => Promise<void> | undefined;
|
|
30
28
|
nativeElement: import("vue").Ref<SynIcon | undefined>;
|
|
31
29
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
30
|
"syn-load": (e: SynLoadEvent) => void;
|
|
@@ -52,9 +52,6 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
52
52
|
*/
|
|
53
53
|
disabled?: boolean | undefined;
|
|
54
54
|
}>, {
|
|
55
|
-
callClick: () => void | undefined;
|
|
56
|
-
callFocus: (options?: FocusOptions | undefined) => void | undefined;
|
|
57
|
-
callBlur: () => void | undefined;
|
|
58
55
|
nativeElement: import("vue").Ref<SynIconButton | undefined>;
|
|
59
56
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
57
|
"syn-blur": (e: SynBlurEvent) => void;
|
|
@@ -143,21 +143,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
143
143
|
*/
|
|
144
144
|
modelValue?: string | undefined;
|
|
145
145
|
}>, {
|
|
146
|
-
callHandleDisabledChange: () => void | undefined;
|
|
147
|
-
callHandleStepChange: () => void | undefined;
|
|
148
|
-
callHandleValueChange: () => Promise<void> | undefined;
|
|
149
|
-
callFocus: (options?: FocusOptions | undefined) => void | undefined;
|
|
150
|
-
callBlur: () => void | undefined;
|
|
151
|
-
callSelect: () => void | undefined;
|
|
152
|
-
callSetSelectionRange: (selectionStart: number, selectionEnd: number, selectionDirection?: "none" | "forward" | "backward" | undefined) => void | undefined;
|
|
153
|
-
callSetRangeText: (replacement: string, start?: number | undefined, end?: number | undefined, selectMode?: "select" | "end" | "start" | "preserve" | undefined) => void | undefined;
|
|
154
|
-
callShowPicker: () => void | undefined;
|
|
155
|
-
callStepUp: () => void | undefined;
|
|
156
|
-
callStepDown: () => void | undefined;
|
|
157
|
-
callCheckValidity: () => boolean | undefined;
|
|
158
|
-
callGetForm: () => HTMLFormElement | null | undefined;
|
|
159
|
-
callReportValidity: () => boolean | undefined;
|
|
160
|
-
callSetCustomValidity: (message: string) => void | undefined;
|
|
161
146
|
nativeElement: import("vue").Ref<SynInput | undefined>;
|
|
162
147
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
163
148
|
"syn-blur": (e: SynBlurEvent) => void;
|
|
@@ -24,11 +24,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
24
24
|
*/
|
|
25
25
|
disabled?: boolean | undefined;
|
|
26
26
|
}>, {
|
|
27
|
-
callHandleCheckedChange: () => void | undefined;
|
|
28
|
-
callHandleDisabledChange: () => void | undefined;
|
|
29
|
-
callHandleTypeChange: () => void | undefined;
|
|
30
|
-
callGetTextLabel: () => string | undefined;
|
|
31
|
-
callIsSubmenu: () => boolean | undefined;
|
|
32
27
|
nativeElement: import("vue").Ref<SynMenuItem | undefined>;
|
|
33
28
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
34
29
|
/**
|
|
@@ -38,10 +38,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
38
38
|
*/
|
|
39
39
|
divider?: boolean | undefined;
|
|
40
40
|
}>, {
|
|
41
|
-
callHandleOpenChange: () => void | undefined;
|
|
42
|
-
callBlur: () => void | undefined;
|
|
43
|
-
callClick: () => void | undefined;
|
|
44
|
-
callFocus: (options?: FocusOptions | undefined) => void | undefined;
|
|
45
41
|
nativeElement: import("vue").Ref<SynNavItem | undefined>;
|
|
46
42
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
43
|
"syn-show": (e: SynShowEvent) => void;
|
|
@@ -11,7 +11,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
11
11
|
*/
|
|
12
12
|
label?: string | undefined;
|
|
13
13
|
}>, {
|
|
14
|
-
callHandleDisabledChange: () => void | undefined;
|
|
15
14
|
nativeElement: import("vue").Ref<SynOptgroup | undefined>;
|
|
16
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
17
16
|
/**
|
|
@@ -15,10 +15,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
*/
|
|
16
16
|
disabled?: boolean | undefined;
|
|
17
17
|
}>, {
|
|
18
|
-
callHandleDisabledChange: () => void | undefined;
|
|
19
|
-
callHandleSelectedChange: () => void | undefined;
|
|
20
|
-
callHandleValueChange: () => void | undefined;
|
|
21
|
-
callGetTextLabel: () => string | undefined;
|
|
22
18
|
nativeElement: import("vue").Ref<SynOption | undefined>;
|
|
23
19
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
24
20
|
/**
|
|
@@ -137,7 +137,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
137
137
|
*/
|
|
138
138
|
hoverBridge?: boolean | undefined;
|
|
139
139
|
}>, {
|
|
140
|
-
callReposition: () => void | undefined;
|
|
141
140
|
nativeElement: import("vue").Ref<SynPopup | undefined>;
|
|
142
141
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
143
142
|
"syn-reposition": (e: SynRepositionEvent) => void;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import '@synergy-design-system/components/components/prio-nav/prio-nav.js';
|
|
2
2
|
import type { SynPrioNav } from '@synergy-design-system/components';
|
|
3
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
This will be shown after the priority menu 3 dots link
|
|
7
|
-
*/
|
|
8
|
-
priorityMenuLabel?: string | undefined;
|
|
9
|
-
}>, {
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
|
4
|
+
[x: string]: unknown;
|
|
5
|
+
}>>, {
|
|
10
6
|
nativeElement: import("vue").Ref<SynPrioNav | undefined>;
|
|
11
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
priorityMenuLabel?: string | undefined;
|
|
17
|
-
}>>>, {}, {}>, {
|
|
7
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
|
8
|
+
[x: string]: unknown;
|
|
9
|
+
}>>>>, {
|
|
10
|
+
readonly [x: number]: string;
|
|
11
|
+
} | {}, {}>, {
|
|
18
12
|
default?(_: {}): any;
|
|
19
13
|
}>;
|
|
20
14
|
export default _default;
|
|
@@ -23,12 +17,3 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
23
17
|
$slots: S;
|
|
24
18
|
};
|
|
25
19
|
};
|
|
26
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
-
type __VLS_TypePropsToOption<T> = {
|
|
28
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
-
} : {
|
|
31
|
-
type: import('vue').PropType<T[K]>;
|
|
32
|
-
required: true;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
@@ -19,8 +19,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
19
|
*/
|
|
20
20
|
disabled?: boolean | undefined;
|
|
21
21
|
}>, {
|
|
22
|
-
callHandleCheckedChange: () => void | undefined;
|
|
23
|
-
callHandleDisabledChange: () => void | undefined;
|
|
24
22
|
nativeElement: import("vue").Ref<SynRadio | undefined>;
|
|
25
23
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
24
|
"syn-blur": (e: SynBlurEvent) => void;
|
|
@@ -23,9 +23,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
*/
|
|
24
24
|
pill?: boolean | undefined;
|
|
25
25
|
}>, {
|
|
26
|
-
callHandleDisabledChange: () => void | undefined;
|
|
27
|
-
callFocus: (options?: FocusOptions | undefined) => void | undefined;
|
|
28
|
-
callBlur: () => void | undefined;
|
|
29
26
|
nativeElement: import("vue").Ref<SynRadioButton | undefined>;
|
|
30
27
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
28
|
"syn-blur": (e: SynBlurEvent) => void;
|
|
@@ -46,12 +46,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
46
|
*/
|
|
47
47
|
modelValue?: string | undefined;
|
|
48
48
|
}>, {
|
|
49
|
-
callHandleSizeChange: () => void | undefined;
|
|
50
|
-
callHandleValueChange: () => void | undefined;
|
|
51
|
-
callCheckValidity: () => boolean | undefined;
|
|
52
|
-
callGetForm: () => HTMLFormElement | null | undefined;
|
|
53
|
-
callReportValidity: () => boolean | undefined;
|
|
54
|
-
callSetCustomValidity: (message?: string | undefined) => void | undefined;
|
|
55
49
|
nativeElement: import("vue").Ref<SynRadioGroup | undefined>;
|
|
56
50
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
57
51
|
"syn-invalid": (e: SynInvalidEvent) => void;
|
|
@@ -103,17 +103,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
103
103
|
*/
|
|
104
104
|
modelValue?: string | string[] | undefined;
|
|
105
105
|
}>, {
|
|
106
|
-
callHandleDisabledChange: () => void | undefined;
|
|
107
|
-
callHandleValueChange: () => void | undefined;
|
|
108
|
-
callHandleOpenChange: () => Promise<void> | undefined;
|
|
109
|
-
callShow: () => Promise<void> | undefined;
|
|
110
|
-
callHide: () => Promise<void> | undefined;
|
|
111
|
-
callCheckValidity: () => boolean | undefined;
|
|
112
|
-
callGetForm: () => HTMLFormElement | null | undefined;
|
|
113
|
-
callReportValidity: () => boolean | undefined;
|
|
114
|
-
callSetCustomValidity: (message: string) => void | undefined;
|
|
115
|
-
callFocus: (options?: FocusOptions | undefined) => void | undefined;
|
|
116
|
-
callBlur: () => void | undefined;
|
|
117
106
|
nativeElement: import("vue").Ref<SynSelect | undefined>;
|
|
118
107
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
119
108
|
"syn-show": (e: SynShowEvent) => void;
|
|
@@ -37,11 +37,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
37
37
|
*/
|
|
38
38
|
noFocusTrapping?: boolean | undefined;
|
|
39
39
|
}>, {
|
|
40
|
-
callHandleModeChange: () => void | undefined;
|
|
41
|
-
callHandleOpenChange: () => void | undefined;
|
|
42
|
-
callHandleFocusTrapping: () => void | undefined;
|
|
43
|
-
callShow: () => Promise<void> | undefined;
|
|
44
|
-
callHide: () => Promise<void> | undefined;
|
|
45
40
|
nativeElement: import("vue").Ref<SynSideNav | undefined>;
|
|
46
41
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
42
|
"syn-show": (e: SynShowEvent) => void;
|
|
@@ -49,15 +49,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
49
49
|
*/
|
|
50
50
|
modelValue?: boolean | undefined;
|
|
51
51
|
}>, {
|
|
52
|
-
callHandleCheckedChange: () => void | undefined;
|
|
53
|
-
callHandleDisabledChange: () => void | undefined;
|
|
54
|
-
callClick: () => void | undefined;
|
|
55
|
-
callFocus: (options?: FocusOptions | undefined) => void | undefined;
|
|
56
|
-
callBlur: () => void | undefined;
|
|
57
|
-
callCheckValidity: () => boolean | undefined;
|
|
58
|
-
callGetForm: () => HTMLFormElement | null | undefined;
|
|
59
|
-
callReportValidity: () => boolean | undefined;
|
|
60
|
-
callSetCustomValidity: (message: string) => void | undefined;
|
|
61
52
|
nativeElement: import("vue").Ref<SynSwitch | undefined>;
|
|
62
53
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
63
54
|
"syn-blur": (e: SynBlurEvent) => void;
|
|
@@ -105,113 +105,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
105
105
|
*/
|
|
106
106
|
modelValue?: string | undefined;
|
|
107
107
|
}>, {
|
|
108
|
-
callHandleDisabledChange: () => void | undefined;
|
|
109
|
-
callHandleRowsChange: () => void | undefined;
|
|
110
|
-
callHandleValueChange: () => Promise<void> | undefined;
|
|
111
|
-
callFocus: (options?: FocusOptions | undefined) => void | undefined;
|
|
112
|
-
callBlur: () => void | undefined;
|
|
113
|
-
callSelect: () => void | undefined;
|
|
114
|
-
callScrollPosition: (position?: {
|
|
115
|
-
/**
|
|
116
|
-
* @summary Textareas collect data from the user and allow multiple lines of text.
|
|
117
|
-
* @documentation https://synergy.style/components/textarea
|
|
118
|
-
* @status stable
|
|
119
|
-
* @since 2.0
|
|
120
|
-
*
|
|
121
|
-
* @slot label - The textarea's label. Alternatively, you can use the `label` attribute.
|
|
122
|
-
* @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.
|
|
123
|
-
*
|
|
124
|
-
* @event syn-blur - Emitted when the control loses focus.
|
|
125
|
-
* @event syn-change - Emitted when an alteration to the control's value is committed by the user.
|
|
126
|
-
* @event syn-focus - Emitted when the control gains focus.
|
|
127
|
-
* @event syn-input - Emitted when the control receives input.
|
|
128
|
-
* @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
129
|
-
*
|
|
130
|
-
* @csspart form-control - The form control that wraps the label, input, and help text.
|
|
131
|
-
* @csspart form-control-label - The label's wrapper.
|
|
132
|
-
* @csspart form-control-input - The input's wrapper.
|
|
133
|
-
* @csspart form-control-help-text - The help text's wrapper.
|
|
134
|
-
* @csspart base - The component's base wrapper.
|
|
135
|
-
* @csspart textarea - The internal `<textarea>` control.
|
|
136
|
-
*/
|
|
137
|
-
top?: number | undefined;
|
|
138
|
-
/**
|
|
139
|
-
* @summary Textareas collect data from the user and allow multiple lines of text.
|
|
140
|
-
* @documentation https://synergy.style/components/textarea
|
|
141
|
-
* @status stable
|
|
142
|
-
* @since 2.0
|
|
143
|
-
*
|
|
144
|
-
* @slot label - The textarea's label. Alternatively, you can use the `label` attribute.
|
|
145
|
-
* @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.
|
|
146
|
-
*
|
|
147
|
-
* @event syn-blur - Emitted when the control loses focus.
|
|
148
|
-
* @event syn-change - Emitted when an alteration to the control's value is committed by the user.
|
|
149
|
-
* @event syn-focus - Emitted when the control gains focus.
|
|
150
|
-
* @event syn-input - Emitted when the control receives input.
|
|
151
|
-
* @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
152
|
-
*
|
|
153
|
-
* @csspart form-control - The form control that wraps the label, input, and help text.
|
|
154
|
-
* @csspart form-control-label - The label's wrapper.
|
|
155
|
-
* @csspart form-control-input - The input's wrapper.
|
|
156
|
-
* @csspart form-control-help-text - The help text's wrapper.
|
|
157
|
-
* @csspart base - The component's base wrapper.
|
|
158
|
-
* @csspart textarea - The internal `<textarea>` control.
|
|
159
|
-
*/
|
|
160
|
-
left?: number | undefined;
|
|
161
|
-
} | undefined) => {
|
|
162
|
-
/**
|
|
163
|
-
* @summary Textareas collect data from the user and allow multiple lines of text.
|
|
164
|
-
* @documentation https://synergy.style/components/textarea
|
|
165
|
-
* @status stable
|
|
166
|
-
* @since 2.0
|
|
167
|
-
*
|
|
168
|
-
* @slot label - The textarea's label. Alternatively, you can use the `label` attribute.
|
|
169
|
-
* @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.
|
|
170
|
-
*
|
|
171
|
-
* @event syn-blur - Emitted when the control loses focus.
|
|
172
|
-
* @event syn-change - Emitted when an alteration to the control's value is committed by the user.
|
|
173
|
-
* @event syn-focus - Emitted when the control gains focus.
|
|
174
|
-
* @event syn-input - Emitted when the control receives input.
|
|
175
|
-
* @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
176
|
-
*
|
|
177
|
-
* @csspart form-control - The form control that wraps the label, input, and help text.
|
|
178
|
-
* @csspart form-control-label - The label's wrapper.
|
|
179
|
-
* @csspart form-control-input - The input's wrapper.
|
|
180
|
-
* @csspart form-control-help-text - The help text's wrapper.
|
|
181
|
-
* @csspart base - The component's base wrapper.
|
|
182
|
-
* @csspart textarea - The internal `<textarea>` control.
|
|
183
|
-
*/
|
|
184
|
-
top: number;
|
|
185
|
-
/**
|
|
186
|
-
* @summary Textareas collect data from the user and allow multiple lines of text.
|
|
187
|
-
* @documentation https://synergy.style/components/textarea
|
|
188
|
-
* @status stable
|
|
189
|
-
* @since 2.0
|
|
190
|
-
*
|
|
191
|
-
* @slot label - The textarea's label. Alternatively, you can use the `label` attribute.
|
|
192
|
-
* @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.
|
|
193
|
-
*
|
|
194
|
-
* @event syn-blur - Emitted when the control loses focus.
|
|
195
|
-
* @event syn-change - Emitted when an alteration to the control's value is committed by the user.
|
|
196
|
-
* @event syn-focus - Emitted when the control gains focus.
|
|
197
|
-
* @event syn-input - Emitted when the control receives input.
|
|
198
|
-
* @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
199
|
-
*
|
|
200
|
-
* @csspart form-control - The form control that wraps the label, input, and help text.
|
|
201
|
-
* @csspart form-control-label - The label's wrapper.
|
|
202
|
-
* @csspart form-control-input - The input's wrapper.
|
|
203
|
-
* @csspart form-control-help-text - The help text's wrapper.
|
|
204
|
-
* @csspart base - The component's base wrapper.
|
|
205
|
-
* @csspart textarea - The internal `<textarea>` control.
|
|
206
|
-
*/
|
|
207
|
-
left: number;
|
|
208
|
-
} | undefined;
|
|
209
|
-
callSetSelectionRange: (selectionStart: number, selectionEnd: number, selectionDirection?: "none" | "forward" | "backward" | undefined) => void | undefined;
|
|
210
|
-
callSetRangeText: (replacement: string, start?: number | undefined, end?: number | undefined, selectMode?: "select" | "end" | "start" | "preserve" | undefined) => void | undefined;
|
|
211
|
-
callCheckValidity: () => boolean | undefined;
|
|
212
|
-
callGetForm: () => HTMLFormElement | null | undefined;
|
|
213
|
-
callReportValidity: () => boolean | undefined;
|
|
214
|
-
callSetCustomValidity: (message: string) => void | undefined;
|
|
215
108
|
nativeElement: import("vue").Ref<SynTextarea | undefined>;
|
|
216
109
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
217
110
|
"syn-blur": (e: SynBlurEvent) => void;
|
|
@@ -50,11 +50,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
50
50
|
*/
|
|
51
51
|
hoist?: boolean | undefined;
|
|
52
52
|
}>, {
|
|
53
|
-
callHandleOpenChange: () => Promise<void> | undefined;
|
|
54
|
-
callHandleOptionsChange: () => Promise<void> | undefined;
|
|
55
|
-
callHandleDisabledChange: () => void | undefined;
|
|
56
|
-
callShow: () => Promise<void> | undefined;
|
|
57
|
-
callHide: () => Promise<void> | undefined;
|
|
58
53
|
nativeElement: import("vue").Ref<SynTooltip | undefined>;
|
|
59
54
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
55
|
"syn-show": (e: SynShowEvent) => void;
|
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": "^
|
|
7
|
+
"@synergy-design-system/components": "^2.0.0"
|
|
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": "
|
|
43
|
+
"version": "2.0.0",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@vue/tsconfig": "^0.5.1",
|
|
46
46
|
"vue": "^3.4.24"
|