@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.
Files changed (84) hide show
  1. package/dist/components/SynVueAccordion.vue.d.ts +12 -12
  2. package/dist/components/SynVueAlert.vue.d.ts +13 -9
  3. package/dist/components/SynVueBadge.vue.d.ts +4 -4
  4. package/dist/components/SynVueBreadcrumbItem.vue.d.ts +12 -12
  5. package/dist/components/SynVueButton.vue.d.ts +62 -59
  6. package/dist/components/SynVueCard.vue.d.ts +8 -8
  7. package/dist/components/SynVueCheckbox.vue.d.ts +40 -35
  8. package/dist/components/SynVueDetails.vue.d.ts +23 -19
  9. package/dist/components/SynVueDialog.vue.d.ts +7 -1
  10. package/dist/components/SynVueDivider.vue.d.ts +4 -4
  11. package/dist/components/SynVueDrawer.vue.d.ts +11 -5
  12. package/dist/components/SynVueDropdown.vue.d.ts +21 -17
  13. package/dist/components/SynVueFile.vue.d.ts +40 -35
  14. package/dist/components/SynVueHeader.vue.d.ts +10 -7
  15. package/dist/components/SynVueIcon.vue.d.ts +13 -11
  16. package/dist/components/SynVueIconButton.vue.d.ts +37 -35
  17. package/dist/components/SynVueInput.vue.d.ts +115 -109
  18. package/dist/components/SynVueMenu.vue.d.ts +2 -1
  19. package/dist/components/SynVueMenuItem.vue.d.ts +24 -24
  20. package/dist/components/SynVueNavItem.vue.d.ts +13 -9
  21. package/dist/components/SynVueOptgroup.vue.d.ts +10 -10
  22. package/dist/components/SynVueOption.vue.d.ts +4 -4
  23. package/dist/components/SynVuePopup.vue.d.ts +34 -33
  24. package/dist/components/SynVueProgressBar.vue.d.ts +12 -12
  25. package/dist/components/SynVueProgressRing.vue.d.ts +8 -8
  26. package/dist/components/SynVueRadio.vue.d.ts +13 -11
  27. package/dist/components/SynVueRadioButton.vue.d.ts +17 -15
  28. package/dist/components/SynVueRadioGroup.vue.d.ts +32 -29
  29. package/dist/components/SynVueRange.vue.d.ts +57 -51
  30. package/dist/components/SynVueRangeTick.vue.d.ts +4 -4
  31. package/dist/components/SynVueSelect.vue.d.ts +55 -45
  32. package/dist/components/SynVueSideNav.vue.d.ts +5 -1
  33. package/dist/components/SynVueSwitch.vue.d.ts +40 -35
  34. package/dist/components/SynVueTab.vue.d.ts +20 -19
  35. package/dist/components/SynVueTabGroup.vue.d.ts +21 -19
  36. package/dist/components/SynVueTabPanel.vue.d.ts +8 -8
  37. package/dist/components/SynVueTag.vue.d.ts +10 -9
  38. package/dist/components/SynVueTextarea.vue.d.ts +86 -81
  39. package/dist/components/SynVueTooltip.vue.d.ts +29 -25
  40. package/package.json +2 -2
  41. package/src/components/SynVueAccordion.vue +16 -21
  42. package/src/components/SynVueAlert.vue +29 -29
  43. package/src/components/SynVueBadge.vue +10 -15
  44. package/src/components/SynVueBreadcrumb.vue +8 -13
  45. package/src/components/SynVueBreadcrumbItem.vue +16 -21
  46. package/src/components/SynVueButton.vue +66 -67
  47. package/src/components/SynVueButtonGroup.vue +8 -13
  48. package/src/components/SynVueCard.vue +12 -17
  49. package/src/components/SynVueCheckbox.vue +64 -53
  50. package/src/components/SynVueDetails.vue +35 -35
  51. package/src/components/SynVueDialog.vue +33 -31
  52. package/src/components/SynVueDivider.vue +9 -14
  53. package/src/components/SynVueDrawer.vue +37 -35
  54. package/src/components/SynVueDropdown.vue +37 -37
  55. package/src/components/SynVueFile.vue +69 -58
  56. package/src/components/SynVueHeader.vue +23 -24
  57. package/src/components/SynVueIcon.vue +26 -25
  58. package/src/components/SynVueIconButton.vue +42 -41
  59. package/src/components/SynVueInput.vue +123 -111
  60. package/src/components/SynVueMenu.vue +6 -9
  61. package/src/components/SynVueMenuItem.vue +24 -29
  62. package/src/components/SynVueMenuLabel.vue +2 -6
  63. package/src/components/SynVueNavItem.vue +32 -32
  64. package/src/components/SynVueOptgroup.vue +14 -19
  65. package/src/components/SynVueOption.vue +11 -16
  66. package/src/components/SynVuePopup.vue +51 -52
  67. package/src/components/SynVuePrioNav.vue +2 -6
  68. package/src/components/SynVueProgressBar.vue +16 -21
  69. package/src/components/SynVueProgressRing.vue +13 -18
  70. package/src/components/SynVueRadio.vue +23 -23
  71. package/src/components/SynVueRadioButton.vue +26 -26
  72. package/src/components/SynVueRadioGroup.vue +52 -43
  73. package/src/components/SynVueRange.vue +77 -65
  74. package/src/components/SynVueRangeTick.vue +10 -15
  75. package/src/components/SynVueSelect.vue +90 -74
  76. package/src/components/SynVueSideNav.vue +24 -24
  77. package/src/components/SynVueSpinner.vue +1 -5
  78. package/src/components/SynVueSwitch.vue +63 -52
  79. package/src/components/SynVueTab.vue +25 -26
  80. package/src/components/SynVueTabGroup.vue +31 -31
  81. package/src/components/SynVueTabPanel.vue +13 -18
  82. package/src/components/SynVueTag.vue +18 -19
  83. package/src/components/SynVueTextarea.vue +99 -88
  84. package/src/components/SynVueTooltip.vue +41 -41
@@ -1,5 +1,10 @@
1
1
  import '@synergy-design-system/components/components/textarea/textarea.js';
2
- import type { SynBlurEvent, SynChangeEvent, SynFocusEvent, SynInputEvent, SynInvalidEvent, SynTextarea } from '@synergy-design-system/components';
2
+ import type { SynBlurEvent } from '@synergy-design-system/components';
3
+ import type { SynChangeEvent } from '@synergy-design-system/components';
4
+ import type { SynFocusEvent } from '@synergy-design-system/components';
5
+ import type { SynInputEvent } from '@synergy-design-system/components';
6
+ import type { SynInvalidEvent } from '@synergy-design-system/components';
7
+ import type { SynTextarea } from '@synergy-design-system/components';
3
8
  export type { SynBlurEvent } from '@synergy-design-system/components';
4
9
  export type { SynChangeEvent } from '@synergy-design-system/components';
5
10
  export type { SynFocusEvent } from '@synergy-design-system/components';
@@ -8,46 +13,46 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
8
13
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
9
14
  title?: SynTextarea["title"];
10
15
  /**
11
- * The name of the textarea, submitted as a name/value pair with form data.
12
- */
16
+ * The name of the textarea, submitted as a name/value pair with form data.
17
+ */
13
18
  name?: SynTextarea["name"];
14
19
  /**
15
- * The current value of the textarea, submitted as a name/value pair with form data.
16
- */
20
+ * The current value of the textarea, submitted as a name/value pair with form data.
21
+ */
17
22
  value?: SynTextarea["value"];
18
23
  /**
19
- * The textarea's size.
20
- */
24
+ * The textarea's size.
25
+ */
21
26
  size?: SynTextarea["size"];
22
27
  /**
23
- * The textarea's label.
24
- * If you need to display HTML, use the `label` slot instead.
25
- */
28
+ * The textarea's label.
29
+ * If you need to display HTML, use the `label` slot instead.
30
+ */
26
31
  label?: SynTextarea["label"];
27
32
  /**
28
- * The textarea's help text.
29
- * If you need to display HTML, use the `help-text` slot instead.
30
- */
33
+ * The textarea's help text.
34
+ * If you need to display HTML, use the `help-text` slot instead.
35
+ */
31
36
  helpText?: SynTextarea["helpText"];
32
37
  /**
33
- * Placeholder text to show as a hint when the input is empty.
34
- */
38
+ * Placeholder text to show as a hint when the input is empty.
39
+ */
35
40
  placeholder?: SynTextarea["placeholder"];
36
41
  /**
37
- * The number of rows to display by default.
38
- */
42
+ * The number of rows to display by default.
43
+ */
39
44
  rows?: SynTextarea["rows"];
40
45
  /**
41
- * Controls how the textarea can be resized.
42
- */
46
+ * Controls how the textarea can be resized.
47
+ */
43
48
  resize?: SynTextarea["resize"];
44
49
  /**
45
- * Disables the textarea.
46
- */
50
+ * Disables the textarea.
51
+ */
47
52
  disabled?: SynTextarea["disabled"];
48
53
  /**
49
- * Makes the textarea readonly.
50
- */
54
+ * Makes the textarea readonly.
55
+ */
51
56
  readonly?: SynTextarea["readonly"];
52
57
  /**
53
58
  * By default, form controls are associated with the nearest containing `<form>` element.
@@ -58,24 +63,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
58
63
  */
59
64
  form?: SynTextarea["form"];
60
65
  /**
61
- * Makes the textarea a required field.
62
- */
66
+ * Makes the textarea a required field.
67
+ */
63
68
  required?: SynTextarea["required"];
64
69
  /**
65
- * The minimum length of input that will be considered valid.
66
- */
70
+ * The minimum length of input that will be considered valid.
71
+ */
67
72
  minlength?: SynTextarea["minlength"];
68
73
  /**
69
- * The maximum length of input that will be considered valid.
70
- */
74
+ * The maximum length of input that will be considered valid.
75
+ */
71
76
  maxlength?: SynTextarea["maxlength"];
72
77
  /**
73
- * Controls whether and how text input is automatically capitalized as it is entered by the user.
74
- */
78
+ * Controls whether and how text input is automatically capitalized as it is entered by the user.
79
+ */
75
80
  autocapitalize?: SynTextarea["autocapitalize"];
76
81
  /**
77
- * Indicates whether the browser's autocorrect feature is on or off.
78
- */
82
+ * Indicates whether the browser's autocorrect feature is on or off.
83
+ */
79
84
  autocorrect?: SynTextarea["autocorrect"];
80
85
  /**
81
86
  * Specifies what permission the browser has to provide assistance in filling out form field values.
@@ -84,16 +89,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
84
89
  */
85
90
  autocomplete?: SynTextarea["autocomplete"];
86
91
  /**
87
- * Indicates that the input should receive focus on page load.
88
- */
92
+ * Indicates that the input should receive focus on page load.
93
+ */
89
94
  autofocus?: SynTextarea["autofocus"];
90
95
  /**
91
- * Used to customize the label or icon of the Enter key on virtual keyboards.
92
- */
96
+ * Used to customize the label or icon of the Enter key on virtual keyboards.
97
+ */
93
98
  enterkeyhint?: SynTextarea["enterkeyhint"];
94
99
  /**
95
- * Enables spell checking on the textarea.
96
- */
100
+ * Enables spell checking on the textarea.
101
+ */
97
102
  spellcheck?: SynTextarea["spellcheck"];
98
103
  /**
99
104
  * Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual
@@ -101,8 +106,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
101
106
  */
102
107
  inputmode?: SynTextarea["inputmode"];
103
108
  /**
104
- * Support for two way data binding
105
- */
109
+ * Support for two way data binding
110
+ */
106
111
  modelValue?: SynTextarea["value"];
107
112
  }>, {
108
113
  nativeElement: import("vue").Ref<SynTextarea | undefined>;
@@ -116,46 +121,46 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
116
121
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
117
122
  title?: SynTextarea["title"];
118
123
  /**
119
- * The name of the textarea, submitted as a name/value pair with form data.
120
- */
124
+ * The name of the textarea, submitted as a name/value pair with form data.
125
+ */
121
126
  name?: SynTextarea["name"];
122
127
  /**
123
- * The current value of the textarea, submitted as a name/value pair with form data.
124
- */
128
+ * The current value of the textarea, submitted as a name/value pair with form data.
129
+ */
125
130
  value?: SynTextarea["value"];
126
131
  /**
127
- * The textarea's size.
128
- */
132
+ * The textarea's size.
133
+ */
129
134
  size?: SynTextarea["size"];
130
135
  /**
131
- * The textarea's label.
132
- * If you need to display HTML, use the `label` slot instead.
133
- */
136
+ * The textarea's label.
137
+ * If you need to display HTML, use the `label` slot instead.
138
+ */
134
139
  label?: SynTextarea["label"];
135
140
  /**
136
- * The textarea's help text.
137
- * If you need to display HTML, use the `help-text` slot instead.
138
- */
141
+ * The textarea's help text.
142
+ * If you need to display HTML, use the `help-text` slot instead.
143
+ */
139
144
  helpText?: SynTextarea["helpText"];
140
145
  /**
141
- * Placeholder text to show as a hint when the input is empty.
142
- */
146
+ * Placeholder text to show as a hint when the input is empty.
147
+ */
143
148
  placeholder?: SynTextarea["placeholder"];
144
149
  /**
145
- * The number of rows to display by default.
146
- */
150
+ * The number of rows to display by default.
151
+ */
147
152
  rows?: SynTextarea["rows"];
148
153
  /**
149
- * Controls how the textarea can be resized.
150
- */
154
+ * Controls how the textarea can be resized.
155
+ */
151
156
  resize?: SynTextarea["resize"];
152
157
  /**
153
- * Disables the textarea.
154
- */
158
+ * Disables the textarea.
159
+ */
155
160
  disabled?: SynTextarea["disabled"];
156
161
  /**
157
- * Makes the textarea readonly.
158
- */
162
+ * Makes the textarea readonly.
163
+ */
159
164
  readonly?: SynTextarea["readonly"];
160
165
  /**
161
166
  * By default, form controls are associated with the nearest containing `<form>` element.
@@ -166,24 +171,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
166
171
  */
167
172
  form?: SynTextarea["form"];
168
173
  /**
169
- * Makes the textarea a required field.
170
- */
174
+ * Makes the textarea a required field.
175
+ */
171
176
  required?: SynTextarea["required"];
172
177
  /**
173
- * The minimum length of input that will be considered valid.
174
- */
178
+ * The minimum length of input that will be considered valid.
179
+ */
175
180
  minlength?: SynTextarea["minlength"];
176
181
  /**
177
- * The maximum length of input that will be considered valid.
178
- */
182
+ * The maximum length of input that will be considered valid.
183
+ */
179
184
  maxlength?: SynTextarea["maxlength"];
180
185
  /**
181
- * Controls whether and how text input is automatically capitalized as it is entered by the user.
182
- */
186
+ * Controls whether and how text input is automatically capitalized as it is entered by the user.
187
+ */
183
188
  autocapitalize?: SynTextarea["autocapitalize"];
184
189
  /**
185
- * Indicates whether the browser's autocorrect feature is on or off.
186
- */
190
+ * Indicates whether the browser's autocorrect feature is on or off.
191
+ */
187
192
  autocorrect?: SynTextarea["autocorrect"];
188
193
  /**
189
194
  * Specifies what permission the browser has to provide assistance in filling out form field values.
@@ -192,16 +197,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
192
197
  */
193
198
  autocomplete?: SynTextarea["autocomplete"];
194
199
  /**
195
- * Indicates that the input should receive focus on page load.
196
- */
200
+ * Indicates that the input should receive focus on page load.
201
+ */
197
202
  autofocus?: SynTextarea["autofocus"];
198
203
  /**
199
- * Used to customize the label or icon of the Enter key on virtual keyboards.
200
- */
204
+ * Used to customize the label or icon of the Enter key on virtual keyboards.
205
+ */
201
206
  enterkeyhint?: SynTextarea["enterkeyhint"];
202
207
  /**
203
- * Enables spell checking on the textarea.
204
- */
208
+ * Enables spell checking on the textarea.
209
+ */
205
210
  spellcheck?: SynTextarea["spellcheck"];
206
211
  /**
207
212
  * Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual
@@ -209,8 +214,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
209
214
  */
210
215
  inputmode?: SynTextarea["inputmode"];
211
216
  /**
212
- * Support for two way data binding
213
- */
217
+ * Support for two way data binding
218
+ */
214
219
  modelValue?: SynTextarea["value"];
215
220
  }>>> & {
216
221
  "onSyn-blur"?: ((e: SynBlurEvent) => any) | undefined;
@@ -1,14 +1,18 @@
1
1
  import '@synergy-design-system/components/components/tooltip/tooltip.js';
2
- import type { SynAfterHideEvent, SynAfterShowEvent, SynHideEvent, SynShowEvent, SynTooltip } from '@synergy-design-system/components';
2
+ import type { SynShowEvent } from '@synergy-design-system/components';
3
+ import type { SynAfterShowEvent } from '@synergy-design-system/components';
4
+ import type { SynHideEvent } from '@synergy-design-system/components';
5
+ import type { SynAfterHideEvent } from '@synergy-design-system/components';
6
+ import type { SynTooltip } from '@synergy-design-system/components';
3
7
  export type { SynShowEvent } from '@synergy-design-system/components';
4
8
  export type { SynAfterShowEvent } from '@synergy-design-system/components';
5
9
  export type { SynHideEvent } from '@synergy-design-system/components';
6
10
  export type { SynAfterHideEvent } from '@synergy-design-system/components';
7
11
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
8
12
  /**
9
- * The tooltip's content.
10
- * If you need to display HTML, use the `content` slot instead.
11
- */
13
+ * The tooltip's content.
14
+ * If you need to display HTML, use the `content` slot instead.
15
+ */
12
16
  content?: SynTooltip["content"];
13
17
  /**
14
18
  * The preferred placement of the tooltip.
@@ -17,21 +21,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
17
21
  */
18
22
  placement?: SynTooltip["placement"];
19
23
  /**
20
- * Disables the tooltip so it won't show when triggered.
21
- */
24
+ * Disables the tooltip so it won't show when triggered.
25
+ */
22
26
  disabled?: SynTooltip["disabled"];
23
27
  /**
24
- * The distance in pixels from which to offset the tooltip away from its target.
25
- */
28
+ * The distance in pixels from which to offset the tooltip away from its target.
29
+ */
26
30
  distance?: SynTooltip["distance"];
27
31
  /**
28
- * Indicates whether or not the tooltip is open.
29
- * You can use this in lieu of the show/hide methods.
30
- */
32
+ * Indicates whether or not the tooltip is open.
33
+ * You can use this in lieu of the show/hide methods.
34
+ */
31
35
  open?: SynTooltip["open"];
32
36
  /**
33
- * The distance in pixels from which to offset the tooltip along its target.
34
- */
37
+ * The distance in pixels from which to offset the tooltip along its target.
38
+ */
35
39
  skidding?: SynTooltip["skidding"];
36
40
  /**
37
41
  * Controls how the tooltip is activated.
@@ -58,9 +62,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
58
62
  "syn-after-hide": (e: SynAfterHideEvent) => void;
59
63
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
60
64
  /**
61
- * The tooltip's content.
62
- * If you need to display HTML, use the `content` slot instead.
63
- */
65
+ * The tooltip's content.
66
+ * If you need to display HTML, use the `content` slot instead.
67
+ */
64
68
  content?: SynTooltip["content"];
65
69
  /**
66
70
  * The preferred placement of the tooltip.
@@ -69,21 +73,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
69
73
  */
70
74
  placement?: SynTooltip["placement"];
71
75
  /**
72
- * Disables the tooltip so it won't show when triggered.
73
- */
76
+ * Disables the tooltip so it won't show when triggered.
77
+ */
74
78
  disabled?: SynTooltip["disabled"];
75
79
  /**
76
- * The distance in pixels from which to offset the tooltip away from its target.
77
- */
80
+ * The distance in pixels from which to offset the tooltip away from its target.
81
+ */
78
82
  distance?: SynTooltip["distance"];
79
83
  /**
80
- * Indicates whether or not the tooltip is open.
81
- * You can use this in lieu of the show/hide methods.
82
- */
84
+ * Indicates whether or not the tooltip is open.
85
+ * You can use this in lieu of the show/hide methods.
86
+ */
83
87
  open?: SynTooltip["open"];
84
88
  /**
85
- * The distance in pixels from which to offset the tooltip along its target.
86
- */
89
+ * The distance in pixels from which to offset the tooltip along its target.
90
+ */
87
91
  skidding?: SynTooltip["skidding"];
88
92
  /**
89
93
  * Controls how the tooltip is activated.
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": "^2.7.2"
7
+ "@synergy-design-system/components": "^2.7.3"
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": "2.7.2",
43
+ "version": "2.7.3",
44
44
  "devDependencies": {
45
45
  "@vue/tsconfig": "^0.5.1",
46
46
  "vue": "^3.4.38"
@@ -31,39 +31,34 @@ defineExpose({
31
31
  // Map attributes
32
32
  const props = defineProps<{
33
33
  /**
34
- * Indicates whether or not multiple `<syn-detail>` elements can be open at the same time.
35
- */
36
- 'closeOthers'?: SynAccordion['closeOthers'];
34
+ * Indicates whether or not multiple `<syn-detail>` elements can be open at the same time.
35
+ */
36
+ closeOthers?: SynAccordion['closeOthers'];
37
37
 
38
38
  /**
39
- * Draws the accordion and the slotted `<syn-details>` as contained elements.
40
- */
41
- 'contained'?: SynAccordion['contained'];
39
+ * Draws the accordion and the slotted `<syn-details>` as contained elements.
40
+ */
41
+ contained?: SynAccordion['contained'];
42
42
 
43
43
  /**
44
- * The size that should be applied to all slotted `<syn-details>` elements
45
- */
46
- 'size'?: SynAccordion['size'];
44
+ * The size that should be applied to all slotted `<syn-details>` elements
45
+ */
46
+ size?: SynAccordion['size'];
47
47
  }>();
48
48
 
49
49
  // Make sure prop binding only forwards the props that are actually there.
50
50
  // This is needed because :param="param" also adds an empty attribute
51
51
  // when using web-components, which breaks optional arguments like size in SynInput
52
52
  // @see https://github.com/vuejs/core/issues/5190#issuecomment-1003112498
53
- const visibleProps = computed(() => Object.fromEntries(
54
- Object
55
- .entries(props)
56
- .filter(([, value]) => typeof value !== 'undefined'),
57
- ));
58
-
53
+ const visibleProps = computed(() =>
54
+ Object.fromEntries(
55
+ Object.entries(props).filter(([, value]) => typeof value !== 'undefined'),
56
+ ),
57
+ );
59
58
  </script>
60
59
 
61
60
  <template>
62
- <syn-accordion
63
-
64
- v-bind="visibleProps"
65
- ref="nativeElement"
66
- >
67
- <slot />
61
+ <syn-accordion v-bind="visibleProps" ref="nativeElement">
62
+ <slot></slot>
68
63
  </syn-accordion>
69
64
  </template>
@@ -33,9 +33,11 @@
33
33
  import { computed, ref } from 'vue';
34
34
  import '@synergy-design-system/components/components/alert/alert.js';
35
35
 
36
- import type {
37
- SynAfterHideEvent, SynAfterShowEvent, SynAlert, SynHideEvent, SynShowEvent,
38
- } from '@synergy-design-system/components';
36
+ import type { SynShowEvent } from '@synergy-design-system/components';
37
+ import type { SynAfterShowEvent } from '@synergy-design-system/components';
38
+ import type { SynHideEvent } from '@synergy-design-system/components';
39
+ import type { SynAfterHideEvent } from '@synergy-design-system/components';
40
+ import type { SynAlert } from '@synergy-design-system/components';
39
41
 
40
42
  // DOM Reference to the element
41
43
  const nativeElement = ref<SynAlert>();
@@ -51,17 +53,17 @@ const props = defineProps<{
51
53
  * You can toggle this attribute to show and hide the alert, or you can
52
54
  use the `show()` and `hide()` methods and this attribute will reflect the alert's open state.
53
55
  */
54
- 'open'?: SynAlert['open'];
56
+ open?: SynAlert['open'];
55
57
 
56
58
  /**
57
- * Enables a close button that allows the user to dismiss the alert.
58
- */
59
- 'closable'?: SynAlert['closable'];
59
+ * Enables a close button that allows the user to dismiss the alert.
60
+ */
61
+ closable?: SynAlert['closable'];
60
62
 
61
63
  /**
62
- * The alert's theme variant.
63
- */
64
- 'variant'?: SynAlert['variant'];
64
+ * The alert's theme variant.
65
+ */
66
+ variant?: SynAlert['variant'];
65
67
 
66
68
  /**
67
69
  * The length of time, in milliseconds, the alert will show before closing itself.
@@ -71,39 +73,39 @@ the alert before it closes (e.g.
71
73
  * Defaults to `Infinity`, meaning
72
74
  the alert will not close on its own.
73
75
  */
74
- 'duration'?: SynAlert['duration'];
76
+ duration?: SynAlert['duration'];
75
77
  }>();
76
78
 
77
79
  // Make sure prop binding only forwards the props that are actually there.
78
80
  // This is needed because :param="param" also adds an empty attribute
79
81
  // when using web-components, which breaks optional arguments like size in SynInput
80
82
  // @see https://github.com/vuejs/core/issues/5190#issuecomment-1003112498
81
- const visibleProps = computed(() => Object.fromEntries(
82
- Object
83
- .entries(props)
84
- .filter(([, value]) => typeof value !== 'undefined'),
85
- ));
83
+ const visibleProps = computed(() =>
84
+ Object.fromEntries(
85
+ Object.entries(props).filter(([, value]) => typeof value !== 'undefined'),
86
+ ),
87
+ );
86
88
 
87
89
  // Map events
88
90
  defineEmits<{
89
91
  /**
90
- * Emitted when the alert opens.
91
- */
92
+ * Emitted when the alert opens.
93
+ */
92
94
  'syn-show': [e: SynShowEvent];
93
95
 
94
96
  /**
95
- * Emitted after the alert opens and all animations are complete.
96
- */
97
+ * Emitted after the alert opens and all animations are complete.
98
+ */
97
99
  'syn-after-show': [e: SynAfterShowEvent];
98
100
 
99
101
  /**
100
- * Emitted when the alert closes.
101
- */
102
+ * Emitted when the alert closes.
103
+ */
102
104
  'syn-hide': [e: SynHideEvent];
103
105
 
104
106
  /**
105
- * Emitted after the alert closes and all animations are complete.
106
- */
107
+ * Emitted after the alert closes and all animations are complete.
108
+ */
107
109
  'syn-after-hide': [e: SynAfterHideEvent];
108
110
  }>();
109
111
  </script>
@@ -117,14 +119,12 @@ export type { SynAfterHideEvent } from '@synergy-design-system/components';
117
119
 
118
120
  <template>
119
121
  <syn-alert
120
- v-bind="visibleProps"
121
- ref="nativeElement"
122
122
  @syn-show="$emit('syn-show', $event)"
123
123
  @syn-after-show="$emit('syn-after-show', $event)"
124
-
125
124
  @syn-hide="$emit('syn-hide', $event)"
126
125
  @syn-after-hide="$emit('syn-after-hide', $event)"
127
- >
128
- <slot />
126
+ v-bind="visibleProps"
127
+ ref="nativeElement">
128
+ <slot></slot>
129
129
  </syn-alert>
130
130
  </template>
@@ -30,29 +30,24 @@ defineExpose({
30
30
  // Map attributes
31
31
  const props = defineProps<{
32
32
  /**
33
- * The badge's theme variant.
34
- */
35
- 'variant'?: SynBadge['variant'];
33
+ * The badge's theme variant.
34
+ */
35
+ variant?: SynBadge['variant'];
36
36
  }>();
37
37
 
38
38
  // Make sure prop binding only forwards the props that are actually there.
39
39
  // This is needed because :param="param" also adds an empty attribute
40
40
  // when using web-components, which breaks optional arguments like size in SynInput
41
41
  // @see https://github.com/vuejs/core/issues/5190#issuecomment-1003112498
42
- const visibleProps = computed(() => Object.fromEntries(
43
- Object
44
- .entries(props)
45
- .filter(([, value]) => typeof value !== 'undefined'),
46
- ));
47
-
42
+ const visibleProps = computed(() =>
43
+ Object.fromEntries(
44
+ Object.entries(props).filter(([, value]) => typeof value !== 'undefined'),
45
+ ),
46
+ );
48
47
  </script>
49
48
 
50
49
  <template>
51
- <syn-badge
52
-
53
- v-bind="visibleProps"
54
- ref="nativeElement"
55
- >
56
- <slot />
50
+ <syn-badge v-bind="visibleProps" ref="nativeElement">
51
+ <slot></slot>
57
52
  </syn-badge>
58
53
  </template>
@@ -37,27 +37,22 @@ const props = defineProps<{
37
37
  * This will not be shown on the screen, but it will be announced by
38
38
  screen readers and other assistive devices to provide more context for users.
39
39
  */
40
- 'label'?: SynBreadcrumb['label'];
40
+ label?: SynBreadcrumb['label'];
41
41
  }>();
42
42
 
43
43
  // Make sure prop binding only forwards the props that are actually there.
44
44
  // This is needed because :param="param" also adds an empty attribute
45
45
  // when using web-components, which breaks optional arguments like size in SynInput
46
46
  // @see https://github.com/vuejs/core/issues/5190#issuecomment-1003112498
47
- const visibleProps = computed(() => Object.fromEntries(
48
- Object
49
- .entries(props)
50
- .filter(([, value]) => typeof value !== 'undefined'),
51
- ));
52
-
47
+ const visibleProps = computed(() =>
48
+ Object.fromEntries(
49
+ Object.entries(props).filter(([, value]) => typeof value !== 'undefined'),
50
+ ),
51
+ );
53
52
  </script>
54
53
 
55
54
  <template>
56
- <syn-breadcrumb
57
-
58
- v-bind="visibleProps"
59
- ref="nativeElement"
60
- >
61
- <slot />
55
+ <syn-breadcrumb v-bind="visibleProps" ref="nativeElement">
56
+ <slot></slot>
62
57
  </syn-breadcrumb>
63
58
  </template>