@synergy-design-system/mcp 1.41.2 → 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/CHANGELOG.md +26 -0
- package/README.md +43 -8
- package/dist/build/assets.js +1 -0
- package/dist/build/static.js +15 -7
- package/dist/build/styles.js +1 -0
- package/dist/build/tokens.js +1 -0
- package/dist/tools/asset-info.js +4 -4
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.js +1 -0
- package/dist/tools/migration-info.d.ts +10 -1
- package/dist/tools/migration-info.js +74 -12
- package/dist/tools/migration-list.d.ts +10 -0
- package/dist/tools/migration-list.js +122 -0
- package/dist/utilities/migration.d.ts +3 -1
- package/dist/utilities/migration.js +25 -2
- package/metadata/checksum.txt +1 -1
- package/metadata/packages/angular/README.md +1 -1
- package/metadata/packages/assets/BREAKING_CHANGES.md +305 -0
- package/metadata/packages/assets/CHANGELOG.md +18 -0
- package/metadata/packages/assets/README.md +39 -22
- package/metadata/packages/components/components/syn-alert/component.custom.styles.ts +20 -20
- package/metadata/packages/components/components/syn-badge/component.custom.styles.ts +10 -10
- package/metadata/packages/components/components/syn-breadcrumb-item/component.custom.styles.ts +1 -1
- package/metadata/packages/components/components/syn-button/component.custom.styles.ts +24 -24
- package/metadata/packages/components/components/syn-checkbox/component.custom.styles.ts +7 -7
- package/metadata/packages/components/components/syn-combobox/component.angular.ts +0 -17
- package/metadata/packages/components/components/syn-combobox/component.ts +0 -9
- package/metadata/packages/components/components/syn-combobox/component.vue +0 -9
- package/metadata/packages/components/components/syn-details/component.custom.styles.ts +1 -1
- package/metadata/packages/components/components/syn-dialog/component.custom.styles.ts +1 -1
- package/metadata/packages/components/components/syn-dropdown/component.angular.ts +0 -17
- package/metadata/packages/components/components/syn-dropdown/component.ts +0 -8
- package/metadata/packages/components/components/syn-dropdown/component.vue +0 -9
- package/metadata/packages/components/components/syn-file/component.styles.ts +6 -6
- package/metadata/packages/components/components/syn-header/component.styles.ts +7 -7
- package/metadata/packages/components/components/syn-icon-button/component.custom.styles.ts +8 -8
- package/metadata/packages/components/components/syn-input/component.custom.styles.ts +3 -3
- package/metadata/packages/components/components/syn-input/component.ts +2 -3
- package/metadata/packages/components/components/syn-menu-item/component.custom.styles.ts +11 -11
- package/metadata/packages/components/components/syn-nav-item/component.styles.ts +3 -3
- package/metadata/packages/components/components/syn-optgroup/component.styles.ts +1 -1
- package/metadata/packages/components/components/syn-option/component.custom.styles.ts +13 -13
- package/metadata/packages/components/components/syn-popup/component.angular.ts +0 -16
- package/metadata/packages/components/components/syn-popup/component.ts +3 -10
- package/metadata/packages/components/components/syn-popup/component.vue +0 -10
- package/metadata/packages/components/components/syn-progress-bar/component.custom.styles.ts +2 -2
- package/metadata/packages/components/components/syn-progress-ring/component.custom.styles.ts +2 -2
- package/metadata/packages/components/components/syn-radio/component.custom.styles.ts +7 -7
- package/metadata/packages/components/components/syn-range/component.styles.ts +9 -9
- package/metadata/packages/components/components/syn-range/component.ts +0 -1
- package/metadata/packages/components/components/syn-range-tick/component.styles.ts +1 -1
- package/metadata/packages/components/components/syn-select/component.angular.ts +0 -17
- package/metadata/packages/components/components/syn-select/component.ts +0 -8
- package/metadata/packages/components/components/syn-select/component.vue +0 -9
- package/metadata/packages/components/components/syn-side-nav/component.angular.ts +0 -21
- package/metadata/packages/components/components/syn-side-nav/component.ts +1 -36
- package/metadata/packages/components/components/syn-side-nav/component.vue +0 -13
- package/metadata/packages/components/components/syn-spinner/component.custom.styles.ts +2 -2
- package/metadata/packages/components/components/syn-switch/component.custom.styles.ts +16 -16
- package/metadata/packages/components/components/syn-tab/component.custom.styles.ts +3 -3
- package/metadata/packages/components/components/syn-tab-group/component.custom.styles.ts +2 -2
- package/metadata/packages/components/components/syn-tag/component.custom.styles.ts +1 -1
- package/metadata/packages/components/components/syn-tooltip/component.angular.ts +0 -18
- package/metadata/packages/components/components/syn-tooltip/component.ts +1 -10
- package/metadata/packages/components/components/syn-tooltip/component.vue +0 -10
- package/metadata/packages/components/migration/BREAKING_CHANGES.md +433 -14
- package/metadata/packages/components/static/CHANGELOG.md +44 -0
- package/metadata/packages/components/static/LIMITATIONS.md +141 -35
- package/metadata/packages/styles/BREAKING_CHANGES.md +105 -0
- package/metadata/packages/styles/CHANGELOG.md +26 -0
- package/metadata/packages/styles/index.css +9 -9
- package/metadata/packages/styles/link-list.css +1 -1
- package/metadata/packages/styles/link.css +2 -2
- package/metadata/packages/styles/tables.css +8 -8
- package/metadata/packages/styles/typography.css +1 -1
- package/metadata/packages/tokens/BREAKING_CHANGES.md +180 -0
- package/metadata/packages/tokens/CHANGELOG.md +18 -0
- package/metadata/packages/tokens/README.md +2 -0
- package/metadata/packages/tokens/dark.css +237 -236
- package/metadata/packages/tokens/index.js +6 -1
- package/metadata/packages/tokens/light.css +221 -220
- package/metadata/packages/tokens/sick2018_dark.css +4 -3
- package/metadata/packages/tokens/sick2018_light.css +4 -3
- package/metadata/packages/tokens/sick2025_dark.css +4 -3
- package/metadata/packages/tokens/sick2025_light.css +4 -3
- package/metadata/static/components/syn-badge/docs.md +2 -14
- package/metadata/static/components/syn-popup/docs.md +10 -29
- package/metadata/static/components/syn-range/docs.md +1 -1
- package/metadata/static/migration/index.md +51 -11
- package/metadata/{packages/components/migration/migration-synergy-v3.md → static/migration/v2-2018-to-v2-2025.md} +1 -1
- package/metadata/static/migration/v2-2018-to-v3-2018.md +147 -0
- package/metadata/static/migration/v2-2018-to-v3-2025.md +150 -0
- package/metadata/static/migration/v2-2025-to-v3-2025.md +133 -0
- package/metadata/static/templates/appshell.md +8 -8
- package/metadata/static/templates/footer.md +1 -1
- package/package.json +6 -6
|
@@ -4,8 +4,8 @@ export default css`
|
|
|
4
4
|
:host {
|
|
5
5
|
--height: var(--syn-font-size-medium);
|
|
6
6
|
--speed: 2.5s;
|
|
7
|
-
--indicator-color: var(--syn-progress-indicator-color
|
|
8
|
-
--track-color: var(--syn-progress-track-color
|
|
7
|
+
--indicator-color: var(--syn-progress-indicator-color);
|
|
8
|
+
--track-color: var(--syn-progress-track-color);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.progress-bar {
|
package/metadata/packages/components/components/syn-progress-ring/component.custom.styles.ts
CHANGED
|
@@ -4,8 +4,8 @@ export default css`
|
|
|
4
4
|
:host {
|
|
5
5
|
--size: 120px;
|
|
6
6
|
--track-width: var(--syn-spacing-x-small);
|
|
7
|
-
--track-color: var(--syn-progress-track-color
|
|
8
|
-
--indicator-color: var(--syn-progress-indicator-color
|
|
7
|
+
--track-color: var(--syn-progress-track-color);
|
|
8
|
+
--indicator-color: var(--syn-progress-indicator-color);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.progress-ring__indicator {
|
|
@@ -18,8 +18,8 @@ export default css`
|
|
|
18
18
|
/* Checked */
|
|
19
19
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
20
20
|
.radio--checked .radio__control {
|
|
21
|
-
background-color: var(--syn-interactive-emphasis-color
|
|
22
|
-
border-color: var(--syn-interactive-emphasis-color
|
|
21
|
+
background-color: var(--syn-interactive-emphasis-color);
|
|
22
|
+
border-color: var(--syn-interactive-emphasis-color);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/* Reset original hover */
|
|
@@ -30,14 +30,14 @@ export default css`
|
|
|
30
30
|
|
|
31
31
|
/* Checked + hover */
|
|
32
32
|
.radio.radio--checked:not(.radio--disabled):hover .radio__control {
|
|
33
|
-
background-color: var(--syn-interactive-emphasis-color-hover
|
|
34
|
-
border-color: var(--syn-interactive-emphasis-color-hover
|
|
33
|
+
background-color: var(--syn-interactive-emphasis-color-hover);
|
|
34
|
+
border-color: var(--syn-interactive-emphasis-color-hover);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/* Checked + active */
|
|
38
38
|
.radio.radio--checked:not(.radio--disabled):active .radio__control {
|
|
39
|
-
background-color: var(--syn-interactive-emphasis-color-active
|
|
40
|
-
border-color: var(--syn-interactive-emphasis-color-active
|
|
39
|
+
background-color: var(--syn-interactive-emphasis-color-active);
|
|
40
|
+
border-color: var(--syn-interactive-emphasis-color-active);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/* Not-Checked + Hover */
|
|
@@ -47,7 +47,7 @@ export default css`
|
|
|
47
47
|
|
|
48
48
|
/* Not-Checked + active */
|
|
49
49
|
.radio:not(.radio--checked):not(.radio--disabled):active .radio__control {
|
|
50
|
-
border-color: var(--syn-input-border-color-active
|
|
50
|
+
border-color: var(--syn-input-border-color-active);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/* Fix#456: Multi line radio fixes */
|
|
@@ -10,8 +10,8 @@ export default css`
|
|
|
10
10
|
--thumb-hit-area-size: 1.4;
|
|
11
11
|
--track-hit-area-size: var(--syn-spacing-medium);
|
|
12
12
|
--track-active-offset: 0px;
|
|
13
|
-
--track-color-active: var(--syn-range-track-color-active
|
|
14
|
-
--track-color-inactive: var(--syn-range-color-inactive
|
|
13
|
+
--track-color-active: var(--syn-range-track-color-active);
|
|
14
|
+
--track-color-inactive: var(--syn-range-color-inactive);
|
|
15
15
|
--track-height: var(--syn-spacing-2x-small);
|
|
16
16
|
|
|
17
17
|
/* This is needed to get the full with of the element, including the border */
|
|
@@ -155,8 +155,8 @@ export default css`
|
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
.thumb {
|
|
158
|
-
background-color: var(--syn-interactive-emphasis-color
|
|
159
|
-
border: var(--syn-focus-ring-width) solid var(--syn-input-border-color-offset
|
|
158
|
+
background-color: var(--syn-interactive-emphasis-color);
|
|
159
|
+
border: var(--syn-focus-ring-width) solid var(--syn-input-border-color-offset);
|
|
160
160
|
border-radius: var(--syn-border-radius-circle);
|
|
161
161
|
cursor: pointer;
|
|
162
162
|
display: block;
|
|
@@ -192,7 +192,7 @@ export default css`
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
.thumb.grabbed {
|
|
195
|
-
background: var(--syn-interactive-emphasis-color-active
|
|
195
|
+
background: var(--syn-interactive-emphasis-color-active);
|
|
196
196
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
197
197
|
cursor: grabbing;
|
|
198
198
|
}
|
|
@@ -202,7 +202,7 @@ export default css`
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
.thumb:not(.grabbed):focus-visible {
|
|
205
|
-
background: var(--syn-interactive-emphasis-color-hover
|
|
205
|
+
background: var(--syn-interactive-emphasis-color-hover);
|
|
206
206
|
outline: var(--syn-focus-ring);
|
|
207
207
|
outline-offset: 0;
|
|
208
208
|
}
|
|
@@ -223,7 +223,7 @@ export default css`
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
:host(:not([disabled])) .thumb:not(.grabbed):hover {
|
|
226
|
-
background: var(--syn-interactive-emphasis-color-hover
|
|
226
|
+
background: var(--syn-interactive-emphasis-color-hover);
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
:host(:not([disabled])) .thumb:hover::after {
|
|
@@ -276,10 +276,10 @@ export default css`
|
|
|
276
276
|
|
|
277
277
|
|
|
278
278
|
:host([data-user-invalid]) .active-track {
|
|
279
|
-
--track-color-active: var(--syn-range-error-color
|
|
279
|
+
--track-color-active: var(--syn-range-error-color);
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
:host([data-user-invalid]) .thumb {
|
|
283
|
-
background-color: var(--syn-range-error-color
|
|
283
|
+
background-color: var(--syn-range-error-color);
|
|
284
284
|
}
|
|
285
285
|
`;
|
|
@@ -751,7 +751,6 @@ export default class SynRange extends SynergyElement implements SynergyFormContr
|
|
|
751
751
|
return html`
|
|
752
752
|
<syn-tooltip
|
|
753
753
|
exportparts="base:tooltip__base, base__arrow:tooltip__arrow, base__popup:tooltip__popup, body:tooltip__body"
|
|
754
|
-
hoist
|
|
755
754
|
.disabled=${this.tooltipPlacement === 'none' || this.disabled}
|
|
756
755
|
.placement=${this.tooltipPlacement as 'top' | 'bottom'}
|
|
757
756
|
trigger="focus"
|
|
@@ -263,23 +263,6 @@ use the `show()` and `hide()` methods and this attribute will reflect the select
|
|
|
263
263
|
return this.nativeElement.open;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
/**
|
|
267
|
-
* Enable this option to prevent the listbox from being clipped when the component is placed inside a container with
|
|
268
|
-
`overflow: auto|scroll`.
|
|
269
|
-
* Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.
|
|
270
|
-
|
|
271
|
-
@deprecated This property is deprecated and will be removed in the next major version.
|
|
272
|
-
*/
|
|
273
|
-
@Input()
|
|
274
|
-
set hoist(v: '' | SynSelect['hoist']) {
|
|
275
|
-
this._ngZone.runOutsideAngular(
|
|
276
|
-
() => (this.nativeElement.hoist = v === '' || v),
|
|
277
|
-
);
|
|
278
|
-
}
|
|
279
|
-
get hoist(): SynSelect['hoist'] {
|
|
280
|
-
return this.nativeElement.hoist;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
266
|
/**
|
|
284
267
|
* The select's label.
|
|
285
268
|
* If you need to display HTML, use the `label` slot instead.
|
|
@@ -184,13 +184,6 @@ export default class SynSelect extends SynergyElement implements SynergyFormCont
|
|
|
184
184
|
*/
|
|
185
185
|
@property({ type: Boolean, reflect: true }) open = false;
|
|
186
186
|
|
|
187
|
-
/**
|
|
188
|
-
* Enable this option to prevent the listbox from being clipped when the component is placed inside a container with
|
|
189
|
-
* `overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.
|
|
190
|
-
* @deprecated This property is deprecated and will be removed in the next major version.
|
|
191
|
-
*/
|
|
192
|
-
@property({ type: Boolean }) hoist = false;
|
|
193
|
-
|
|
194
187
|
/** The select's label. If you need to display HTML, use the `label` slot instead. */
|
|
195
188
|
@property() label = '';
|
|
196
189
|
|
|
@@ -930,7 +923,6 @@ protected override willUpdate(changedProperties: PropertyValues) {
|
|
|
930
923
|
'select--large': this.size === 'large'
|
|
931
924
|
})}
|
|
932
925
|
placement=${this.placement + '-start'}
|
|
933
|
-
strategy=${this.hoist ? 'fixed' : 'absolute'}
|
|
934
926
|
flip
|
|
935
927
|
shift
|
|
936
928
|
sync="width"
|
|
@@ -128,15 +128,6 @@ use the `show()` and `hide()` methods and this attribute will reflect the select
|
|
|
128
128
|
*/
|
|
129
129
|
open?: SynSelect['open'];
|
|
130
130
|
|
|
131
|
-
/**
|
|
132
|
-
* Enable this option to prevent the listbox from being clipped when the component is placed inside a container with
|
|
133
|
-
`overflow: auto|scroll`.
|
|
134
|
-
* Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.
|
|
135
|
-
|
|
136
|
-
@deprecated This property is deprecated and will be removed in the next major version.
|
|
137
|
-
*/
|
|
138
|
-
hoist?: SynSelect['hoist'];
|
|
139
|
-
|
|
140
131
|
/**
|
|
141
132
|
* The select's label.
|
|
142
133
|
* If you need to display HTML, use the `label` slot instead.
|
|
@@ -142,27 +142,6 @@ Without `open`, the side-nav will only show the prefix of nav-item's.
|
|
|
142
142
|
return this.nativeElement.open;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
/**
|
|
146
|
-
* Use the rail attribute to only show the prefix of navigation items in closed state.
|
|
147
|
-
This will open on hover on the rail navigation.
|
|
148
|
-
On touch devices the navigation opens on click and shows an overlay.
|
|
149
|
-
|
|
150
|
-
Note: The Rail is only an option if all Navigation Items on the first level have an Icon.
|
|
151
|
-
If this is not the case you should use a burger navigation.
|
|
152
|
-
|
|
153
|
-
@deprecated Use the `variant` attribute with `rail` instead.
|
|
154
|
-
Will be removed in synergy version 3.0
|
|
155
|
-
*/
|
|
156
|
-
@Input()
|
|
157
|
-
set rail(v: '' | SynSideNav['rail']) {
|
|
158
|
-
this._ngZone.runOutsideAngular(
|
|
159
|
-
() => (this.nativeElement.rail = v === '' || v),
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
get rail(): SynSideNav['rail'] {
|
|
163
|
-
return this.nativeElement.rail;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
145
|
/**
|
|
167
146
|
* The variant that should be used to show the side navigation.
|
|
168
147
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/unbound-method */
|
|
2
2
|
import { classMap } from 'lit/directives/class-map.js';
|
|
3
|
-
import type { CSSResultGroup
|
|
3
|
+
import type { CSSResultGroup } from 'lit';
|
|
4
4
|
import { html } from 'lit/static-html.js';
|
|
5
5
|
import { property, query, state } from 'lit/decorators.js';
|
|
6
6
|
import { HasSlotController } from '../../internal/slot.js';
|
|
@@ -129,19 +129,6 @@ export default class SynSideNav extends SynergyElement {
|
|
|
129
129
|
*/
|
|
130
130
|
@property({ reflect: true, type: Boolean }) open = false;
|
|
131
131
|
|
|
132
|
-
/**
|
|
133
|
-
* Use the rail attribute to only show the prefix of navigation items in closed state.
|
|
134
|
-
* This will open on hover on the rail navigation.
|
|
135
|
-
* On touch devices the navigation opens on click and shows an overlay.
|
|
136
|
-
*
|
|
137
|
-
* Note: The Rail is only an option if all Navigation Items on the first level have an Icon.
|
|
138
|
-
* If this is not the case you should use a burger navigation.
|
|
139
|
-
*
|
|
140
|
-
* @deprecated Use the `variant` attribute with `rail` instead.
|
|
141
|
-
* Will be removed in synergy version 3.0
|
|
142
|
-
*/
|
|
143
|
-
@property({ reflect: true, type: Boolean }) rail = false;
|
|
144
|
-
|
|
145
132
|
/**
|
|
146
133
|
* The variant that should be used to show the side navigation.
|
|
147
134
|
*
|
|
@@ -356,28 +343,6 @@ export default class SynSideNav extends SynergyElement {
|
|
|
356
343
|
}
|
|
357
344
|
}
|
|
358
345
|
|
|
359
|
-
// eslint-disable-next-line complexity
|
|
360
|
-
protected override willUpdate(changedProperties: PropertyValues) {
|
|
361
|
-
super.willUpdate(changedProperties);
|
|
362
|
-
|
|
363
|
-
// TODO: this can be removed in synergy version 3.0
|
|
364
|
-
if (changedProperties.has('rail')) {
|
|
365
|
-
if (this.rail) {
|
|
366
|
-
// Add deprecation console warning for stakeholder, which do not use linting
|
|
367
|
-
// to get their attention
|
|
368
|
-
// eslint-disable-next-line no-console
|
|
369
|
-
console.warn('<syn-side-nav/>: The `rail` attribute is deprecated. Please use the `variant` attribute with `rail` instead. It will be removed in synergy version 3.0');
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
// The `variant` should be adapted to the `rail` attribute,
|
|
373
|
-
// if it was explicitly set or unset by the user.
|
|
374
|
-
// This is needed to be backwards compatible with the `rail` attribute
|
|
375
|
-
if (!changedProperties.has('variant') || this.rail) {
|
|
376
|
-
this.variant = this.rail ? 'rail' : 'default';
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
|
|
381
346
|
private toggleOpenState() {
|
|
382
347
|
this.open = !this.open;
|
|
383
348
|
}
|
|
@@ -106,19 +106,6 @@ Without `open`, the side-nav will only show the prefix of nav-item's.
|
|
|
106
106
|
*/
|
|
107
107
|
open?: SynSideNav['open'];
|
|
108
108
|
|
|
109
|
-
/**
|
|
110
|
-
* Use the rail attribute to only show the prefix of navigation items in closed state.
|
|
111
|
-
This will open on hover on the rail navigation.
|
|
112
|
-
On touch devices the navigation opens on click and shows an overlay.
|
|
113
|
-
|
|
114
|
-
Note: The Rail is only an option if all Navigation Items on the first level have an Icon.
|
|
115
|
-
If this is not the case you should use a burger navigation.
|
|
116
|
-
|
|
117
|
-
@deprecated Use the `variant` attribute with `rail` instead.
|
|
118
|
-
Will be removed in synergy version 3.0
|
|
119
|
-
*/
|
|
120
|
-
rail?: SynSideNav['rail'];
|
|
121
|
-
|
|
122
109
|
/**
|
|
123
110
|
* The variant that should be used to show the side navigation.
|
|
124
111
|
|
|
@@ -3,7 +3,7 @@ import { css } from 'lit';
|
|
|
3
3
|
export default css`
|
|
4
4
|
:host {
|
|
5
5
|
--speed: var(--syn-transition-x-slow);
|
|
6
|
-
--indicator-color: var(--syn-interactive-emphasis-color
|
|
6
|
+
--indicator-color: var(--syn-interactive-emphasis-color);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.spinner__indicator {
|
|
@@ -16,7 +16,7 @@ export default css`
|
|
|
16
16
|
*/
|
|
17
17
|
.spinner__track {
|
|
18
18
|
filter: saturate(0);
|
|
19
|
-
opacity: var(--syn-spinner-opacity
|
|
19
|
+
opacity: var(--syn-spinner-opacity);
|
|
20
20
|
stroke: var(--indicator-color);
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -2,25 +2,25 @@ import { css } from 'lit';
|
|
|
2
2
|
|
|
3
3
|
export default css`
|
|
4
4
|
:host([size='small']) {
|
|
5
|
-
--height: var(--syn-switch-height-small
|
|
5
|
+
--height: var(--syn-switch-height-small);
|
|
6
6
|
--thumb-size: var(--syn-toggle-size-small);
|
|
7
|
-
--width: var(--syn-switch-width-small
|
|
7
|
+
--width: var(--syn-switch-width-small);
|
|
8
8
|
|
|
9
9
|
font-size: var(--syn-input-font-size-small);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
:host([size='medium']) {
|
|
13
|
-
--height: var(--syn-switch-height-medium
|
|
13
|
+
--height: var(--syn-switch-height-medium);
|
|
14
14
|
--thumb-size: var(--syn-toggle-size-medium);
|
|
15
|
-
--width: var(--syn-switch-width-medium
|
|
15
|
+
--width: var(--syn-switch-width-medium);
|
|
16
16
|
|
|
17
17
|
font-size: var(--syn-input-font-size-medium);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
:host([size='large']) {
|
|
21
|
-
--height: var(--syn-switch-height-large
|
|
21
|
+
--height: var(--syn-switch-height-large);
|
|
22
22
|
--thumb-size: var(--syn-toggle-size-large);
|
|
23
|
-
--width: var(--syn-switch-width-large
|
|
23
|
+
--width: var(--syn-switch-width-large);
|
|
24
24
|
|
|
25
25
|
font-size: var(--syn-input-font-size-large);
|
|
26
26
|
}
|
|
@@ -58,8 +58,8 @@ export default css`
|
|
|
58
58
|
|
|
59
59
|
/* Checked */
|
|
60
60
|
.switch--checked .switch__control {
|
|
61
|
-
background-color: var(--syn-interactive-emphasis-color
|
|
62
|
-
border-color: var(--syn-interactive-emphasis-color
|
|
61
|
+
background-color: var(--syn-interactive-emphasis-color);
|
|
62
|
+
border-color: var(--syn-interactive-emphasis-color);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/* Hover */
|
|
@@ -74,8 +74,8 @@ export default css`
|
|
|
74
74
|
|
|
75
75
|
/* Checked + hover */
|
|
76
76
|
.switch.switch--checked:not(.switch--disabled):hover .switch__control {
|
|
77
|
-
background-color: var(--syn-interactive-emphasis-color-hover
|
|
78
|
-
border-color: var(--syn-interactive-emphasis-color-hover
|
|
77
|
+
background-color: var(--syn-interactive-emphasis-color-hover);
|
|
78
|
+
border-color: var(--syn-interactive-emphasis-color-hover);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.switch.switch--checked:not(.switch--disabled):hover .switch__control:hover .switch__thumb {
|
|
@@ -114,8 +114,8 @@ export default css`
|
|
|
114
114
|
|
|
115
115
|
/* Checked + focus */
|
|
116
116
|
.switch.switch--checked:not(.switch--disabled) .switch__input:focus-visible ~ .switch__control {
|
|
117
|
-
background-color: var(--syn-interactive-emphasis-color
|
|
118
|
-
border-color: var(--syn-interactive-emphasis-color
|
|
117
|
+
background-color: var(--syn-interactive-emphasis-color);
|
|
118
|
+
border-color: var(--syn-interactive-emphasis-color);
|
|
119
119
|
outline: var(--syn-focus-ring);
|
|
120
120
|
outline-offset: var(--syn-focus-ring-offset);
|
|
121
121
|
}
|
|
@@ -130,12 +130,12 @@ export default css`
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
:host([data-user-invalid]) .switch:not(.switch--checked):not(.switch--disabled) .switch__control {
|
|
133
|
-
background-color: var(--syn-input-border-color-focus-error
|
|
134
|
-
border-color: var(--syn-input-border-color-focus-error
|
|
133
|
+
background-color: var(--syn-input-border-color-focus-error);
|
|
134
|
+
border-color: var(--syn-input-border-color-focus-error);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
:host([data-user-invalid]) .switch:not(.switch--checked):not(.switch--disabled):hover .switch__control {
|
|
138
|
-
background-color: var(--syn-input-border-color-hover
|
|
139
|
-
border-color: var(--syn-input-border-color-hover
|
|
138
|
+
background-color: var(--syn-input-border-color-hover);
|
|
139
|
+
border-color: var(--syn-input-border-color-hover);
|
|
140
140
|
}
|
|
141
141
|
`;
|
|
@@ -46,7 +46,7 @@ export default css`
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.tab:hover:not(.tab--disabled) {
|
|
49
|
-
color: var(--syn-interactive-emphasis-color
|
|
49
|
+
color: var(--syn-interactive-emphasis-color);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.tab.tab--active:not(:hover):not(.tab--disabled) {
|
|
@@ -61,7 +61,7 @@ export default css`
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.tab__close-button {
|
|
64
|
-
color: var(--syn-input-icon-icon-clearable-color
|
|
64
|
+
color: var(--syn-input-icon-icon-clearable-color);
|
|
65
65
|
font-size: var(--syn-font-size-x-large);
|
|
66
66
|
margin-inline-start: var(--syn-spacing-2x-small);
|
|
67
67
|
}
|
|
@@ -71,7 +71,7 @@ export default css`
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.tab__close-button::part(base):hover {
|
|
74
|
-
color: var(--syn-input-icon-icon-clearable-color-hover
|
|
74
|
+
color: var(--syn-input-icon-icon-clearable-color-hover);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
.tab--active {
|
|
@@ -7,7 +7,7 @@ export default css`
|
|
|
7
7
|
--track-width: var(--syn-border-width-small);
|
|
8
8
|
--track-color: var(--syn-panel-border-color);
|
|
9
9
|
--indicator-width: var(--syn-border-width-x-large);
|
|
10
|
-
--indicator-color: var(--syn-interactive-emphasis-color
|
|
10
|
+
--indicator-color: var(--syn-interactive-emphasis-color);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
/* we need to augment the size of the height of the tab-group__nav to make the focus outline and the hiding white border visible of the tab because of overflow-x value */
|
|
@@ -185,7 +185,7 @@ export default css`
|
|
|
185
185
|
.tab-group__scroll-button {
|
|
186
186
|
/* we need to move the scroll buttons to the top, to align the borders with the border of the tab-group--nav */
|
|
187
187
|
bottom: var(--syn-panel-border-width);
|
|
188
|
-
color: var(--syn-interactive-quiet-color
|
|
188
|
+
color: var(--syn-interactive-quiet-color);
|
|
189
189
|
font-size: var(--syn-font-size-medium);
|
|
190
190
|
width: calc(var(--syn-spacing-x-large) + var( --syn-spacing-2x-small));
|
|
191
191
|
}
|
|
@@ -68,7 +68,7 @@ export default css`
|
|
|
68
68
|
|
|
69
69
|
/* Hover */
|
|
70
70
|
.tag.tag--removable:hover {
|
|
71
|
-
background-color: var(--syn-interactive-background-color-hover
|
|
71
|
+
background-color: var(--syn-interactive-background-color-hover);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.tag .tag__remove:hover {
|
|
@@ -169,24 +169,6 @@ programmatically.
|
|
|
169
169
|
return this.nativeElement.trigger;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
/**
|
|
173
|
-
* Enable this option to prevent the tooltip from being clipped when the component is placed inside a container with
|
|
174
|
-
`overflow: auto|hidden|scroll`.
|
|
175
|
-
* Hoisting uses a fixed positioning strategy that works in many, but not all,
|
|
176
|
-
scenarios.
|
|
177
|
-
|
|
178
|
-
@deprecated This property is deprecated and will be removed in the next major version.
|
|
179
|
-
*/
|
|
180
|
-
@Input()
|
|
181
|
-
set hoist(v: '' | SynTooltip['hoist']) {
|
|
182
|
-
this._ngZone.runOutsideAngular(
|
|
183
|
-
() => (this.nativeElement.hoist = v === '' || v),
|
|
184
|
-
);
|
|
185
|
-
}
|
|
186
|
-
get hoist(): SynTooltip['hoist'] {
|
|
187
|
-
return this.nativeElement.hoist;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
172
|
/**
|
|
191
173
|
* Emitted when the tooltip begins to show.
|
|
192
174
|
*/
|
|
@@ -101,14 +101,6 @@ export default class SynTooltip extends SynergyElement {
|
|
|
101
101
|
*/
|
|
102
102
|
@property() trigger = 'hover focus';
|
|
103
103
|
|
|
104
|
-
/**
|
|
105
|
-
* Enable this option to prevent the tooltip from being clipped when the component is placed inside a container with
|
|
106
|
-
* `overflow: auto|hidden|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all,
|
|
107
|
-
* scenarios.
|
|
108
|
-
* @deprecated This property is deprecated and will be removed in the next major version.
|
|
109
|
-
*/
|
|
110
|
-
@property({ type: Boolean }) hoist = false;
|
|
111
|
-
|
|
112
104
|
constructor() {
|
|
113
105
|
super();
|
|
114
106
|
this.addEventListener('blur', this.handleBlur, true);
|
|
@@ -229,7 +221,7 @@ export default class SynTooltip extends SynergyElement {
|
|
|
229
221
|
}
|
|
230
222
|
}
|
|
231
223
|
|
|
232
|
-
@watch(['content', 'distance',
|
|
224
|
+
@watch(['content', 'distance','placement', 'skidding'])
|
|
233
225
|
async handleOptionsChange() {
|
|
234
226
|
if (this.hasUpdated) {
|
|
235
227
|
await this.updateComplete;
|
|
@@ -285,7 +277,6 @@ export default class SynTooltip extends SynergyElement {
|
|
|
285
277
|
placement=${this.placement}
|
|
286
278
|
distance=${this.distance}
|
|
287
279
|
skidding=${this.skidding}
|
|
288
|
-
strategy=${this.hoist ? 'fixed' : 'absolute'}
|
|
289
280
|
flip
|
|
290
281
|
shift
|
|
291
282
|
arrow
|
|
@@ -94,16 +94,6 @@ options can be passed by separating them with a space.
|
|
|
94
94
|
programmatically.
|
|
95
95
|
*/
|
|
96
96
|
trigger?: SynTooltip['trigger'];
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Enable this option to prevent the tooltip from being clipped when the component is placed inside a container with
|
|
100
|
-
`overflow: auto|hidden|scroll`.
|
|
101
|
-
* Hoisting uses a fixed positioning strategy that works in many, but not all,
|
|
102
|
-
scenarios.
|
|
103
|
-
|
|
104
|
-
@deprecated This property is deprecated and will be removed in the next major version.
|
|
105
|
-
*/
|
|
106
|
-
hoist?: SynTooltip['hoist'];
|
|
107
97
|
}>();
|
|
108
98
|
|
|
109
99
|
// Make sure prop binding only forwards the props that are actually there.
|