@synergy-design-system/vue 2.7.2 → 2.7.3
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/dist/components/SynVueAccordion.vue.d.ts +12 -12
- package/dist/components/SynVueAlert.vue.d.ts +13 -9
- package/dist/components/SynVueBadge.vue.d.ts +4 -4
- package/dist/components/SynVueBreadcrumbItem.vue.d.ts +12 -12
- package/dist/components/SynVueButton.vue.d.ts +62 -59
- package/dist/components/SynVueCard.vue.d.ts +8 -8
- package/dist/components/SynVueCheckbox.vue.d.ts +40 -35
- package/dist/components/SynVueDetails.vue.d.ts +23 -19
- package/dist/components/SynVueDialog.vue.d.ts +7 -1
- package/dist/components/SynVueDivider.vue.d.ts +4 -4
- package/dist/components/SynVueDrawer.vue.d.ts +11 -5
- package/dist/components/SynVueDropdown.vue.d.ts +21 -17
- package/dist/components/SynVueFile.vue.d.ts +40 -35
- package/dist/components/SynVueHeader.vue.d.ts +10 -7
- package/dist/components/SynVueIcon.vue.d.ts +13 -11
- package/dist/components/SynVueIconButton.vue.d.ts +37 -35
- package/dist/components/SynVueInput.vue.d.ts +115 -109
- package/dist/components/SynVueMenu.vue.d.ts +2 -1
- package/dist/components/SynVueMenuItem.vue.d.ts +24 -24
- package/dist/components/SynVueNavItem.vue.d.ts +13 -9
- package/dist/components/SynVueOptgroup.vue.d.ts +10 -10
- package/dist/components/SynVueOption.vue.d.ts +4 -4
- package/dist/components/SynVuePopup.vue.d.ts +34 -33
- package/dist/components/SynVueProgressBar.vue.d.ts +12 -12
- package/dist/components/SynVueProgressRing.vue.d.ts +8 -8
- package/dist/components/SynVueRadio.vue.d.ts +13 -11
- package/dist/components/SynVueRadioButton.vue.d.ts +17 -15
- package/dist/components/SynVueRadioGroup.vue.d.ts +32 -29
- package/dist/components/SynVueRange.vue.d.ts +57 -51
- package/dist/components/SynVueRangeTick.vue.d.ts +4 -4
- package/dist/components/SynVueSelect.vue.d.ts +55 -45
- package/dist/components/SynVueSideNav.vue.d.ts +5 -1
- package/dist/components/SynVueSwitch.vue.d.ts +40 -35
- package/dist/components/SynVueTab.vue.d.ts +20 -19
- package/dist/components/SynVueTabGroup.vue.d.ts +21 -19
- package/dist/components/SynVueTabPanel.vue.d.ts +8 -8
- package/dist/components/SynVueTag.vue.d.ts +10 -9
- package/dist/components/SynVueTextarea.vue.d.ts +86 -81
- package/dist/components/SynVueTooltip.vue.d.ts +29 -25
- package/package.json +2 -2
- package/src/components/SynVueAccordion.vue +16 -21
- package/src/components/SynVueAlert.vue +29 -29
- package/src/components/SynVueBadge.vue +10 -15
- package/src/components/SynVueBreadcrumb.vue +8 -13
- package/src/components/SynVueBreadcrumbItem.vue +16 -21
- package/src/components/SynVueButton.vue +66 -67
- package/src/components/SynVueButtonGroup.vue +8 -13
- package/src/components/SynVueCard.vue +12 -17
- package/src/components/SynVueCheckbox.vue +64 -53
- package/src/components/SynVueDetails.vue +35 -35
- package/src/components/SynVueDialog.vue +33 -31
- package/src/components/SynVueDivider.vue +9 -14
- package/src/components/SynVueDrawer.vue +37 -35
- package/src/components/SynVueDropdown.vue +37 -37
- package/src/components/SynVueFile.vue +69 -58
- package/src/components/SynVueHeader.vue +23 -24
- package/src/components/SynVueIcon.vue +26 -25
- package/src/components/SynVueIconButton.vue +42 -41
- package/src/components/SynVueInput.vue +123 -111
- package/src/components/SynVueMenu.vue +6 -9
- package/src/components/SynVueMenuItem.vue +24 -29
- package/src/components/SynVueMenuLabel.vue +2 -6
- package/src/components/SynVueNavItem.vue +32 -32
- package/src/components/SynVueOptgroup.vue +14 -19
- package/src/components/SynVueOption.vue +11 -16
- package/src/components/SynVuePopup.vue +51 -52
- package/src/components/SynVuePrioNav.vue +2 -6
- package/src/components/SynVueProgressBar.vue +16 -21
- package/src/components/SynVueProgressRing.vue +13 -18
- package/src/components/SynVueRadio.vue +23 -23
- package/src/components/SynVueRadioButton.vue +26 -26
- package/src/components/SynVueRadioGroup.vue +52 -43
- package/src/components/SynVueRange.vue +77 -65
- package/src/components/SynVueRangeTick.vue +10 -15
- package/src/components/SynVueSelect.vue +90 -74
- package/src/components/SynVueSideNav.vue +24 -24
- package/src/components/SynVueSpinner.vue +1 -5
- package/src/components/SynVueSwitch.vue +63 -52
- package/src/components/SynVueTab.vue +25 -26
- package/src/components/SynVueTabGroup.vue +31 -31
- package/src/components/SynVueTabPanel.vue +13 -18
- package/src/components/SynVueTag.vue +18 -19
- package/src/components/SynVueTextarea.vue +99 -88
- package/src/components/SynVueTooltip.vue +41 -41
|
@@ -36,9 +36,11 @@
|
|
|
36
36
|
import { computed, ref } from 'vue';
|
|
37
37
|
import '@synergy-design-system/components/components/tooltip/tooltip.js';
|
|
38
38
|
|
|
39
|
-
import type {
|
|
40
|
-
|
|
41
|
-
} from '@synergy-design-system/components';
|
|
39
|
+
import type { SynShowEvent } from '@synergy-design-system/components';
|
|
40
|
+
import type { SynAfterShowEvent } from '@synergy-design-system/components';
|
|
41
|
+
import type { SynHideEvent } from '@synergy-design-system/components';
|
|
42
|
+
import type { SynAfterHideEvent } from '@synergy-design-system/components';
|
|
43
|
+
import type { SynTooltip } from '@synergy-design-system/components';
|
|
42
44
|
|
|
43
45
|
// DOM Reference to the element
|
|
44
46
|
const nativeElement = ref<SynTooltip>();
|
|
@@ -50,38 +52,38 @@ defineExpose({
|
|
|
50
52
|
// Map attributes
|
|
51
53
|
const props = defineProps<{
|
|
52
54
|
/**
|
|
53
|
-
* The tooltip's content.
|
|
54
|
-
* If you need to display HTML, use the `content` slot instead.
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
* The tooltip's content.
|
|
56
|
+
* If you need to display HTML, use the `content` slot instead.
|
|
57
|
+
*/
|
|
58
|
+
content?: SynTooltip['content'];
|
|
57
59
|
|
|
58
60
|
/**
|
|
59
61
|
* The preferred placement of the tooltip.
|
|
60
62
|
* Note that the actual placement may vary as needed to keep the tooltip
|
|
61
63
|
inside of the viewport.
|
|
62
64
|
*/
|
|
63
|
-
|
|
65
|
+
placement?: SynTooltip['placement'];
|
|
64
66
|
|
|
65
67
|
/**
|
|
66
|
-
* Disables the tooltip so it won't show when triggered.
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
* Disables the tooltip so it won't show when triggered.
|
|
69
|
+
*/
|
|
70
|
+
disabled?: SynTooltip['disabled'];
|
|
69
71
|
|
|
70
72
|
/**
|
|
71
|
-
* The distance in pixels from which to offset the tooltip away from its target.
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
* The distance in pixels from which to offset the tooltip away from its target.
|
|
74
|
+
*/
|
|
75
|
+
distance?: SynTooltip['distance'];
|
|
74
76
|
|
|
75
77
|
/**
|
|
76
|
-
* Indicates whether or not the tooltip is open.
|
|
77
|
-
* You can use this in lieu of the show/hide methods.
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
* Indicates whether or not the tooltip is open.
|
|
79
|
+
* You can use this in lieu of the show/hide methods.
|
|
80
|
+
*/
|
|
81
|
+
open?: SynTooltip['open'];
|
|
80
82
|
|
|
81
83
|
/**
|
|
82
|
-
* The distance in pixels from which to offset the tooltip along its target.
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
* The distance in pixels from which to offset the tooltip along its target.
|
|
85
|
+
*/
|
|
86
|
+
skidding?: SynTooltip['skidding'];
|
|
85
87
|
|
|
86
88
|
/**
|
|
87
89
|
* Controls how the tooltip is activated.
|
|
@@ -91,7 +93,7 @@ options can be passed by separating them with a space.
|
|
|
91
93
|
* When manual is used, the tooltip must be activated
|
|
92
94
|
programmatically.
|
|
93
95
|
*/
|
|
94
|
-
|
|
96
|
+
trigger?: SynTooltip['trigger'];
|
|
95
97
|
|
|
96
98
|
/**
|
|
97
99
|
* Enable this option to prevent the tooltip from being clipped when the component is placed inside a container with
|
|
@@ -99,39 +101,39 @@ programmatically.
|
|
|
99
101
|
* Hoisting uses a fixed positioning strategy that works in many, but not all,
|
|
100
102
|
scenarios.
|
|
101
103
|
*/
|
|
102
|
-
|
|
104
|
+
hoist?: SynTooltip['hoist'];
|
|
103
105
|
}>();
|
|
104
106
|
|
|
105
107
|
// Make sure prop binding only forwards the props that are actually there.
|
|
106
108
|
// This is needed because :param="param" also adds an empty attribute
|
|
107
109
|
// when using web-components, which breaks optional arguments like size in SynInput
|
|
108
110
|
// @see https://github.com/vuejs/core/issues/5190#issuecomment-1003112498
|
|
109
|
-
const visibleProps = computed(() =>
|
|
110
|
-
Object
|
|
111
|
-
.entries(props)
|
|
112
|
-
|
|
113
|
-
)
|
|
111
|
+
const visibleProps = computed(() =>
|
|
112
|
+
Object.fromEntries(
|
|
113
|
+
Object.entries(props).filter(([, value]) => typeof value !== 'undefined'),
|
|
114
|
+
),
|
|
115
|
+
);
|
|
114
116
|
|
|
115
117
|
// Map events
|
|
116
118
|
defineEmits<{
|
|
117
119
|
/**
|
|
118
|
-
* Emitted when the tooltip begins to show.
|
|
119
|
-
|
|
120
|
+
* Emitted when the tooltip begins to show.
|
|
121
|
+
*/
|
|
120
122
|
'syn-show': [e: SynShowEvent];
|
|
121
123
|
|
|
122
124
|
/**
|
|
123
|
-
* Emitted after the tooltip has shown and all animations are complete.
|
|
124
|
-
|
|
125
|
+
* Emitted after the tooltip has shown and all animations are complete.
|
|
126
|
+
*/
|
|
125
127
|
'syn-after-show': [e: SynAfterShowEvent];
|
|
126
128
|
|
|
127
129
|
/**
|
|
128
|
-
* Emitted when the tooltip begins to hide.
|
|
129
|
-
|
|
130
|
+
* Emitted when the tooltip begins to hide.
|
|
131
|
+
*/
|
|
130
132
|
'syn-hide': [e: SynHideEvent];
|
|
131
133
|
|
|
132
134
|
/**
|
|
133
|
-
* Emitted after the tooltip has hidden and all animations are complete.
|
|
134
|
-
|
|
135
|
+
* Emitted after the tooltip has hidden and all animations are complete.
|
|
136
|
+
*/
|
|
135
137
|
'syn-after-hide': [e: SynAfterHideEvent];
|
|
136
138
|
}>();
|
|
137
139
|
</script>
|
|
@@ -145,14 +147,12 @@ export type { SynAfterHideEvent } from '@synergy-design-system/components';
|
|
|
145
147
|
|
|
146
148
|
<template>
|
|
147
149
|
<syn-tooltip
|
|
148
|
-
v-bind="visibleProps"
|
|
149
|
-
ref="nativeElement"
|
|
150
150
|
@syn-show="$emit('syn-show', $event)"
|
|
151
151
|
@syn-after-show="$emit('syn-after-show', $event)"
|
|
152
|
-
|
|
153
152
|
@syn-hide="$emit('syn-hide', $event)"
|
|
154
153
|
@syn-after-hide="$emit('syn-after-hide', $event)"
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
v-bind="visibleProps"
|
|
155
|
+
ref="nativeElement">
|
|
156
|
+
<slot></slot>
|
|
157
157
|
</syn-tooltip>
|
|
158
158
|
</template>
|