@synergy-design-system/mcp 2.0.0 → 2.2.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 +22 -0
- package/metadata/checksum.txt +1 -1
- package/metadata/packages/components/components/syn-alert/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-alert/component.ts +0 -7
- package/metadata/packages/components/components/syn-badge/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-badge/component.ts +0 -7
- package/metadata/packages/components/components/syn-breadcrumb/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-breadcrumb/component.ts +0 -7
- package/metadata/packages/components/components/syn-breadcrumb-item/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-breadcrumb-item/component.ts +0 -7
- package/metadata/packages/components/components/syn-button/component.custom.styles.ts +14 -0
- package/metadata/packages/components/components/syn-button/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-button/component.ts +0 -7
- package/metadata/packages/components/components/syn-button-group/component.angular.ts +24 -0
- package/metadata/packages/components/components/syn-button-group/component.custom.styles.ts +5 -0
- package/metadata/packages/components/components/syn-button-group/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-button-group/component.ts +77 -9
- package/metadata/packages/components/components/syn-button-group/component.vue +12 -0
- package/metadata/packages/components/components/syn-card/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-card/component.ts +0 -7
- package/metadata/packages/components/components/syn-checkbox/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-checkbox/component.ts +0 -7
- package/metadata/packages/components/components/syn-combobox/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-details/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-details/component.ts +0 -7
- package/metadata/packages/components/components/syn-dialog/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-dialog/component.ts +0 -7
- package/metadata/packages/components/components/syn-divider/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-divider/component.ts +0 -7
- package/metadata/packages/components/components/syn-drawer/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-drawer/component.ts +0 -7
- package/metadata/packages/components/components/syn-dropdown/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-dropdown/component.ts +0 -7
- package/metadata/packages/components/components/syn-icon/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-icon/component.ts +0 -7
- package/metadata/packages/components/components/syn-icon-button/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-icon-button/component.ts +0 -7
- package/metadata/packages/components/components/syn-input/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-input/component.ts +0 -7
- package/metadata/packages/components/components/syn-menu/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-menu/component.ts +0 -7
- package/metadata/packages/components/components/syn-menu-item/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-menu-item/component.ts +0 -7
- package/metadata/packages/components/components/syn-menu-label/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-menu-label/component.ts +0 -7
- package/metadata/packages/components/components/syn-option/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-option/component.ts +0 -7
- package/metadata/packages/components/components/syn-popup/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-popup/component.ts +0 -7
- package/metadata/packages/components/components/syn-progress-bar/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-progress-bar/component.ts +0 -7
- package/metadata/packages/components/components/syn-progress-ring/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-progress-ring/component.ts +0 -7
- package/metadata/packages/components/components/syn-radio/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-radio/component.ts +0 -7
- package/metadata/packages/components/components/syn-radio-button/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-radio-button/component.ts +0 -7
- package/metadata/packages/components/components/syn-radio-group/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-radio-group/component.ts +0 -7
- package/metadata/packages/components/components/syn-resize-observer/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-resize-observer/component.ts +0 -7
- package/metadata/packages/components/components/syn-select/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-select/component.ts +0 -7
- package/metadata/packages/components/components/syn-spinner/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-spinner/component.ts +0 -7
- package/metadata/packages/components/components/syn-switch/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-switch/component.ts +0 -7
- package/metadata/packages/components/components/syn-tab/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-tab/component.ts +0 -7
- package/metadata/packages/components/components/syn-tab-group/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-tab-group/component.ts +0 -7
- package/metadata/packages/components/components/syn-tab-panel/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-tab-panel/component.ts +0 -7
- package/metadata/packages/components/components/syn-tag/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-tag/component.ts +0 -7
- package/metadata/packages/components/components/syn-textarea/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-textarea/component.ts +0 -7
- package/metadata/packages/components/components/syn-tooltip/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-tooltip/component.ts +0 -7
- package/metadata/packages/components/static/CHANGELOG.md +17 -0
- package/metadata/packages/components/static/README.md +0 -61
- package/metadata/packages/styles/index.css +1 -1
- package/metadata/packages/styles/link-list.css +1 -1
- package/metadata/packages/styles/link.css +1 -1
- package/metadata/packages/styles/tables.css +1 -1
- package/metadata/packages/styles/typography.css +1 -1
- package/metadata/packages/tokens/CHANGELOG.md +12 -0
- package/metadata/packages/tokens/dark.css +1 -1
- package/metadata/packages/tokens/index.js +1 -1
- package/metadata/packages/tokens/light.css +1 -1
- package/metadata/packages/tokens/sick2018_dark.css +1 -1
- package/metadata/packages/tokens/sick2018_light.css +1 -1
- package/metadata/packages/tokens/sick2025_dark.css +1 -1
- package/metadata/packages/tokens/sick2025_light.css +1 -1
- package/metadata/static/components/syn-button-group/docs.md +259 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1169](https://github.com/synergy-design-system/synergy-design-system/pull/1169) [`aefb7a8`](https://github.com/synergy-design-system/synergy-design-system/commit/aefb7a8c4c9860f6222d7054a6f044b2ed0c49a6) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2026-02-02
|
|
8
|
+
|
|
9
|
+
chore: 🔧 remove vendorism from components package (#1168)
|
|
10
|
+
|
|
11
|
+
The custom vendoring process is not needed anymore. Because of this, it was removed and all comments and builds now only rely on `pnpm build`
|
|
12
|
+
|
|
13
|
+
## 2.1.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [#1141](https://github.com/synergy-design-system/synergy-design-system/pull/1141) [`96dff2e`](https://github.com/synergy-design-system/synergy-design-system/commit/96dff2ebb47cee901f72773664ee864db5653219) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2026-02-02
|
|
18
|
+
|
|
19
|
+
feat: ✨ `<syn-button-group>` (#392)
|
|
20
|
+
|
|
21
|
+
We added a new component `<syn-button-group>` that you can use to group a list of buttons.
|
|
22
|
+
|
|
23
|
+
It will automatically apply its `size` and `variant` properties to all nested buttons.
|
|
24
|
+
|
|
3
25
|
## 2.0.0
|
|
4
26
|
|
|
5
27
|
### Major Changes
|
package/metadata/checksum.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3007b6dfa99e8c9fc41b50602aa8e10e
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { animateTo, stopAnimations } from '../../internal/animate.js';
|
|
10
3
|
import { blurActiveElement } from '../../internal/closeActiveElement.js';
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { classMap } from 'lit/directives/class-map.js';
|
|
10
3
|
import { html } from 'lit';
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { html } from 'lit';
|
|
10
3
|
import { LocalizeController } from '../../utilities/localize.js';
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { classMap } from 'lit/directives/class-map.js';
|
|
10
3
|
import { HasSlotController } from '../../internal/slot.js';
|
|
@@ -228,4 +228,18 @@ export default css`
|
|
|
228
228
|
.button--caret.button--large .button__caret{
|
|
229
229
|
font-size: var(--syn-font-size-2x-large);
|
|
230
230
|
}
|
|
231
|
+
|
|
232
|
+
/* #392: Button Groups */
|
|
233
|
+
:host([data-syn-button-group__button--inner]) .button--filled.button {
|
|
234
|
+
border-left-color: var(--syn-panel-background-color);
|
|
235
|
+
border-right-color: var(--syn-panel-background-color);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
:host([data-syn-button-group__button--first]:not([data-syn-button-group__button--last])) .button--filled.button {
|
|
239
|
+
border-right-color: var(--syn-panel-background-color);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
:host([data-syn-button-group__button--last]:not([data-syn-button-group__button--first])) .button--filled.button {
|
|
243
|
+
border-left-color: var(--syn-panel-background-color);
|
|
244
|
+
}
|
|
231
245
|
`;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { classMap } from 'lit/directives/class-map.js';
|
|
10
3
|
import { FormControlController, validValidityState } from '../../internal/form.js';
|
|
@@ -52,4 +52,28 @@ devices when interacting with the control and is strongly recommended.
|
|
|
52
52
|
get label(): SynButtonGroup['label'] {
|
|
53
53
|
return this.nativeElement.label;
|
|
54
54
|
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The button-groups size.
|
|
58
|
+
* This affects all buttons within the group.
|
|
59
|
+
*/
|
|
60
|
+
@Input()
|
|
61
|
+
set size(v: SynButtonGroup['size']) {
|
|
62
|
+
this._ngZone.runOutsideAngular(() => (this.nativeElement.size = v));
|
|
63
|
+
}
|
|
64
|
+
get size(): SynButtonGroup['size'] {
|
|
65
|
+
return this.nativeElement.size;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The button-group's theme variant.
|
|
70
|
+
* This affects all buttons within the group.
|
|
71
|
+
*/
|
|
72
|
+
@Input()
|
|
73
|
+
set variant(v: SynButtonGroup['variant']) {
|
|
74
|
+
this._ngZone.runOutsideAngular(() => (this.nativeElement.variant = v));
|
|
75
|
+
}
|
|
76
|
+
get variant(): SynButtonGroup['variant'] {
|
|
77
|
+
return this.nativeElement.variant;
|
|
78
|
+
}
|
|
55
79
|
}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { html } from 'lit';
|
|
10
3
|
import { property, query, state } from 'lit/decorators.js';
|
|
11
4
|
import componentStyles from '../../styles/component.styles.js';
|
|
12
5
|
import SynergyElement from '../../internal/synergy-element.js';
|
|
13
6
|
import styles from './button-group.styles.js';
|
|
7
|
+
import customStyles from './button-group.custom.styles.js';
|
|
14
8
|
import type { CSSResultGroup } from 'lit';
|
|
9
|
+
import type SynButton from '../button/button.component.js';
|
|
10
|
+
import type SynRadioButton from '../radio-button/radio-button.component.js';
|
|
11
|
+
import { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';
|
|
15
12
|
|
|
16
13
|
/**
|
|
17
14
|
* @summary Button groups can be used to group related buttons into sections.
|
|
@@ -23,8 +20,9 @@ import type { CSSResultGroup } from 'lit';
|
|
|
23
20
|
*
|
|
24
21
|
* @csspart base - The component's base wrapper.
|
|
25
22
|
*/
|
|
23
|
+
@enableDefaultSettings('SynButtonGroup')
|
|
26
24
|
export default class SynButtonGroup extends SynergyElement {
|
|
27
|
-
static styles: CSSResultGroup = [componentStyles, styles];
|
|
25
|
+
static styles: CSSResultGroup = [componentStyles, styles, customStyles];
|
|
28
26
|
|
|
29
27
|
@query('slot') defaultSlot: HTMLSlotElement;
|
|
30
28
|
|
|
@@ -36,6 +34,14 @@ export default class SynButtonGroup extends SynergyElement {
|
|
|
36
34
|
*/
|
|
37
35
|
@property() label = '';
|
|
38
36
|
|
|
37
|
+
/** The button-groups size. This affects all buttons within the group. */
|
|
38
|
+
@property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';
|
|
39
|
+
|
|
40
|
+
/** The button-group's theme variant. This affects all buttons within the group. */
|
|
41
|
+
@property({ reflect: true }) variant: 'filled' | 'outline' = 'outline';
|
|
42
|
+
|
|
43
|
+
private mutationObserver: MutationObserver;
|
|
44
|
+
|
|
39
45
|
private handleFocus(event: Event) {
|
|
40
46
|
const button = findButton(event.target as HTMLElement);
|
|
41
47
|
button?.toggleAttribute('data-syn-button-group__button--focus', true);
|
|
@@ -61,9 +67,15 @@ export default class SynButtonGroup extends SynergyElement {
|
|
|
61
67
|
|
|
62
68
|
slottedElements.forEach(el => {
|
|
63
69
|
const index = slottedElements.indexOf(el);
|
|
64
|
-
const button = findButton(el);
|
|
70
|
+
const button = findButton(el) as SynButton | SynRadioButton;
|
|
65
71
|
|
|
66
72
|
if (button) {
|
|
73
|
+
button.size = this.size;
|
|
74
|
+
|
|
75
|
+
if (button.tagName.toLowerCase() === 'syn-button') {
|
|
76
|
+
(button as SynButton).variant = this.variant;
|
|
77
|
+
}
|
|
78
|
+
|
|
67
79
|
button.toggleAttribute('data-syn-button-group__button', true);
|
|
68
80
|
button.toggleAttribute('data-syn-button-group__button--first', index === 0);
|
|
69
81
|
button.toggleAttribute('data-syn-button-group__button--inner', index > 0 && index < slottedElements.length - 1);
|
|
@@ -76,6 +88,62 @@ export default class SynButtonGroup extends SynergyElement {
|
|
|
76
88
|
});
|
|
77
89
|
}
|
|
78
90
|
|
|
91
|
+
firstUpdated() {
|
|
92
|
+
const startObserving = () => {
|
|
93
|
+
this.mutationObserver.observe(this, {
|
|
94
|
+
subtree: true,
|
|
95
|
+
attributes: true,
|
|
96
|
+
attributeFilter: ['size', 'variant'],
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
this.mutationObserver = new MutationObserver((entries) => {
|
|
101
|
+
// Temporarily disconnect to prevent infinite loop
|
|
102
|
+
this.mutationObserver.disconnect();
|
|
103
|
+
|
|
104
|
+
// Check if the button-group itself changed or its children
|
|
105
|
+
const buttonGroupChanged = entries.some(entry => entry.target === this);
|
|
106
|
+
const childrenChanged = entries.some(entry => entry.target !== this);
|
|
107
|
+
|
|
108
|
+
if (childrenChanged) {
|
|
109
|
+
// Handle child button changes (existing logic)
|
|
110
|
+
entries
|
|
111
|
+
.filter(entry => entry.target !== this)
|
|
112
|
+
.forEach(entry => {
|
|
113
|
+
const target = entry.target as HTMLElement;
|
|
114
|
+
const button = findButton(target) as SynButton | SynRadioButton;
|
|
115
|
+
|
|
116
|
+
if (button) {
|
|
117
|
+
// Unset the size property to allow button-group to control it
|
|
118
|
+
button.size = undefined as any;
|
|
119
|
+
|
|
120
|
+
// Also unset variant for syn-buttons
|
|
121
|
+
if (button.tagName.toLowerCase() === 'syn-button') {
|
|
122
|
+
(button as SynButton).variant = undefined as any;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Handle both cases: button-group changes and child changes
|
|
129
|
+
if (buttonGroupChanged || childrenChanged) {
|
|
130
|
+
this.handleSlotChange();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Reconnect observer after changes are done
|
|
134
|
+
this.updateComplete.then(() => {
|
|
135
|
+
startObserving();
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
startObserving();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
disconnectedCallback() {
|
|
143
|
+
super.disconnectedCallback();
|
|
144
|
+
this.mutationObserver?.disconnect();
|
|
145
|
+
}
|
|
146
|
+
|
|
79
147
|
render() {
|
|
80
148
|
// eslint-disable-next-line lit-a11y/mouse-events-have-key-events
|
|
81
149
|
return html`
|
|
@@ -35,6 +35,18 @@ const props = defineProps<{
|
|
|
35
35
|
devices when interacting with the control and is strongly recommended.
|
|
36
36
|
*/
|
|
37
37
|
label?: SynButtonGroup['label'];
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The button-groups size.
|
|
41
|
+
* This affects all buttons within the group.
|
|
42
|
+
*/
|
|
43
|
+
size?: SynButtonGroup['size'];
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The button-group's theme variant.
|
|
47
|
+
* This affects all buttons within the group.
|
|
48
|
+
*/
|
|
49
|
+
variant?: SynButtonGroup['variant'];
|
|
38
50
|
}>();
|
|
39
51
|
|
|
40
52
|
// Make sure prop binding only forwards the props that are actually there.
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { classMap } from 'lit/directives/class-map.js';
|
|
10
3
|
import { property } from 'lit/decorators.js';
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { classMap } from 'lit/directives/class-map.js';
|
|
10
3
|
import { defaultValue } from '../../internal/default-value.js';
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { animateTo, shimKeyframesHeightAuto, stopAnimations } from '../../internal/animate.js';
|
|
10
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { animateTo, stopAnimations } from '../../internal/animate.js';
|
|
10
3
|
import { blurActiveElement } from '../../internal/closeActiveElement.js';
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { property } from 'lit/decorators.js';
|
|
10
3
|
import { watch } from '../../internal/watch.js';
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { animateTo, stopAnimations } from '../../internal/animate.js';
|
|
10
3
|
import { blurActiveElement } from '../../internal/closeActiveElement.js';
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { animateTo, stopAnimations } from '../../internal/animate.js';
|
|
10
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { getIconLibrary, type IconLibrary, unwatchIcon, watchIcon } from './library.js';
|
|
10
3
|
import { html } from 'lit';
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { classMap } from 'lit/directives/class-map.js';
|
|
10
3
|
import { html, literal } from 'lit/static-html.js';
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { classMap } from 'lit/directives/class-map.js';
|
|
10
3
|
import { defaultValue } from '../../internal/default-value.js';
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { html } from 'lit';
|
|
10
3
|
import { query } from 'lit/decorators.js';
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ---------------------------------------------------------------------
|
|
3
|
-
* 🔒 AUTOGENERATED BY VENDORISM
|
|
4
|
-
* Removing this comment will prevent it from being managed by it.
|
|
5
|
-
* ---------------------------------------------------------------------
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
/* eslint-disable */
|
|
9
2
|
import { css } from 'lit';
|
|
10
3
|
|