@synergy-design-system/mcp 2.1.0 → 2.3.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/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.styles.ts +0 -7
- package/metadata/packages/components/components/syn-button/component.ts +0 -7
- package/metadata/packages/components/components/syn-button-group/component.styles.ts +0 -7
- package/metadata/packages/components/components/syn-button-group/component.ts +0 -7
- 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.angular.ts +84 -13
- package/metadata/packages/components/components/syn-combobox/component.custom.styles.ts +87 -0
- package/metadata/packages/components/components/syn-combobox/component.react.ts +11 -2
- package/metadata/packages/components/components/syn-combobox/component.styles.ts +0 -35
- package/metadata/packages/components/components/syn-combobox/component.ts +682 -163
- package/metadata/packages/components/components/syn-combobox/component.vue +50 -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 +2 -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 +21 -0
- package/metadata/packages/components/static/LIMITATIONS.md +58 -0
- package/metadata/packages/components/static/README.md +0 -61
- package/metadata/packages/tokens/CHANGELOG.md +2 -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-combobox/docs.md +135 -1
- package/package.json +5 -5
|
@@ -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 '../../internal/scrollend-polyfill.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 { 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 { 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 { 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 { animateTo, parseDuration, stopAnimations } from '../../internal/animate.js';
|
|
10
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1164](https://github.com/synergy-design-system/synergy-design-system/pull/1164) [`c9fb440`](https://github.com/synergy-design-system/synergy-design-system/commit/c9fb4405c0a1eb3499e4753447ac643ae632ff56) Thanks [@kirchsuSICKAG](https://github.com/kirchsuSICKAG)! - Released on: 2026-02-05
|
|
8
|
+
|
|
9
|
+
feat: ✨ syn-combobox multiple (#627)
|
|
10
|
+
|
|
11
|
+
Adds multiple selection functionality to the `syn-combobox` component, enabling users to select multiple options simultaneously.
|
|
12
|
+
|
|
13
|
+
**Properties Added:**
|
|
14
|
+
- `multiple`: Enables multiple selection mode
|
|
15
|
+
- `delimiter`: Customizable value separator (default: ` ` (space))
|
|
16
|
+
- `max-options-visible`: Controls visible tag limit with overflow handling
|
|
17
|
+
- `getTag`: Custom tag rendering function
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies []:
|
|
22
|
+
- @synergy-design-system/tokens@3.2.0
|
|
23
|
+
|
|
3
24
|
## 3.1.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
|
@@ -4,6 +4,64 @@ This file lists known issues and limitations of Synergy Web Components and usefu
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
<h2 id="syn-option-spaces">Console errors when using spaces in `<syn-option>` values</h2>
|
|
8
|
+
|
|
9
|
+
<h3 id="syn-option-spaces-meta">Meta Information</h3>
|
|
10
|
+
|
|
11
|
+
- Framework version: ALL
|
|
12
|
+
- Synergy version: ALL
|
|
13
|
+
- Issues: [#1087](https://github.com/synergy-design-system/synergy-design-system/issues/1087)
|
|
14
|
+
|
|
15
|
+
<h3 id="syn-option-spaces-description">Description</h3>
|
|
16
|
+
|
|
17
|
+
When using `<syn-option>` components with values that contain spaces inside `<syn-select>` or `<syn-combobox>` components, you may see console errors like:
|
|
18
|
+
|
|
19
|
+
> Option values cannot include " ". All occurrences of " " have been replaced with "\_".
|
|
20
|
+
|
|
21
|
+
<h3 id="syn-option-spaces-cause">Cause</h3>
|
|
22
|
+
|
|
23
|
+
When using the `multiple` attribute, Synergy components create a space-separated list of selected values (e.g., `"Option_One Option_Two"`). If option values themselves contain spaces, the component cannot properly distinguish between individual values in this list. To prevent data corruption, spaces in option values are automatically replaced with underscores (`_`).
|
|
24
|
+
|
|
25
|
+
<h3 id="syn-option-spaces-solution">Proposed Solution</h3>
|
|
26
|
+
|
|
27
|
+
<h4 id="syn-option-spaces-problem">Problem</h4>
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<syn-select multiple>
|
|
31
|
+
<syn-option value="Option One">Option One</syn-option>
|
|
32
|
+
<syn-option value="Option Two">Option Two</syn-option>
|
|
33
|
+
</syn-select>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
<h4 id="syn-option-spaces-solution-1">Solution 1: Use space-free values (Recommended)</h4>
|
|
37
|
+
|
|
38
|
+
Design your option values without spaces and use the display text separately:
|
|
39
|
+
|
|
40
|
+
```html
|
|
41
|
+
<syn-select multiple>
|
|
42
|
+
<syn-option value="option-one">Option One</syn-option>
|
|
43
|
+
<syn-option value="option-two">Option Two</syn-option>
|
|
44
|
+
</syn-select>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
<h4 id="syn-option-spaces-solution-2">Solution 2: Change the global delimiter</h4>
|
|
48
|
+
|
|
49
|
+
If you need to keep spaces in values and don't mind changing how all select and combobox components work globally, you can configure a different delimiter:
|
|
50
|
+
|
|
51
|
+
```js
|
|
52
|
+
import { setGlobalDefaultSettings } from "@synergy-design-system/components";
|
|
53
|
+
|
|
54
|
+
setGlobalDefaultSettings({
|
|
55
|
+
delimiter: {
|
|
56
|
+
SynOption: ",",
|
|
57
|
+
SynSelect: ",",
|
|
58
|
+
SynCombobox: ",",
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Note:** This affects **all** select and combobox components in your application, which do not explicitly set the `delimiter` attribute.
|
|
64
|
+
|
|
7
65
|
<h2 id="syn-input-number-width">`<syn-input type="number">` is too large when no `width` is set</h2>
|
|
8
66
|
|
|
9
67
|
<h3 id="syn-input-number-width-meta">Meta Information</h3>
|
|
@@ -229,64 +229,3 @@ This package ships with a [custom-elements-manifest](https://github.com/webcompo
|
|
|
229
229
|
Please have a look at the official [breaking changes list](https://synergy-design-system.github.io/?path=/docs/packages-components-breaking-changes--docs) for information how to update to new major versions of Synergy.
|
|
230
230
|
|
|
231
231
|
---
|
|
232
|
-
|
|
233
|
-
## Local setup
|
|
234
|
-
|
|
235
|
-
### Using the vendor cli
|
|
236
|
-
|
|
237
|
-
The vendor cli is taking care about updating our code base according to a new version of shoelace.
|
|
238
|
-
|
|
239
|
-
To change the shoelace version, that should be downloaded, change the version in the config of `./scripts/vendorism.js`.
|
|
240
|
-
To download it use the command `pnpm vendor.get`.
|
|
241
|
-
If code in our components library should be updated to this new shoelace version use `pnpm vendor.set`.
|
|
242
|
-
|
|
243
|
-
All shoelace files are per default readonly and are disabled from being changed. To change this files can be ejected. This can be done via:
|
|
244
|
-
`pnpm vendor.eject "src/declaration.d.ts"`.
|
|
245
|
-
|
|
246
|
-
### Adding events to the output
|
|
247
|
-
|
|
248
|
-
To add events to the component output, make sure to add them to `src/scripts/vendorism.js` into the `events` array that is defined there. After a new build run `via pnpm build`, you will see the new event files and the `events/events.ts` file will be regenerated.
|
|
249
|
-
|
|
250
|
-
### Adding metadata to components
|
|
251
|
-
|
|
252
|
-
Components can be enriched with metadata that automatically generates JSDoc annotations during the build process. The `add-metadata-to-components.js` script processes `*.component.ts` files and looks for corresponding `metadata.json` files to inject JSDoc tags.
|
|
253
|
-
|
|
254
|
-
#### Supported metadata types
|
|
255
|
-
|
|
256
|
-
- `@animation` - Component animations
|
|
257
|
-
- `@event` - Custom events
|
|
258
|
-
- `@slot` - Content slots
|
|
259
|
-
- `@dependency` - Dependencies
|
|
260
|
-
- `@csspart` - CSS parts for styling
|
|
261
|
-
- `@cssproperty` - CSS custom properties
|
|
262
|
-
|
|
263
|
-
#### Usage
|
|
264
|
-
|
|
265
|
-
Create a `metadata.json` file in your component directory:
|
|
266
|
-
|
|
267
|
-
```json
|
|
268
|
-
{
|
|
269
|
-
"@event": [
|
|
270
|
-
{ "name": "syn-change", "description": "Emitted when value changes" }
|
|
271
|
-
],
|
|
272
|
-
"@slot": [{ "name": "default", "description": "Main content" }],
|
|
273
|
-
"@csspart": [{ "name": "base", "description": "Base wrapper" }]
|
|
274
|
-
}
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
This will generate the following JSDoc annotations in your component:
|
|
278
|
-
|
|
279
|
-
```typescript
|
|
280
|
-
/**
|
|
281
|
-
* @summary Your component description
|
|
282
|
-
*
|
|
283
|
-
* @event syn-change - Emitted when value changes
|
|
284
|
-
* @slot default - Main content
|
|
285
|
-
* @csspart base - Base wrapper
|
|
286
|
-
*/
|
|
287
|
-
export default class YourComponent extends SynergyElement {
|
|
288
|
-
// Component implementation...
|
|
289
|
-
}
|
|
290
|
-
```
|
|
291
|
-
|
|
292
|
-
Each metadata object requires a `name` property and optionally accepts a `description`. Run `pnpm vendor.set` to process the metadata and automatically add JSDoc annotations to your component's class comment.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
The combobox suggests items based on the user input.
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
|
-
<syn-combobox size="medium" placement="bottom" form="">
|
|
6
|
+
<syn-combobox max-options-visible="3" size="medium" placement="bottom" form="">
|
|
7
7
|
<syn-option
|
|
8
8
|
role="option"
|
|
9
9
|
aria-selected="false"
|
|
@@ -441,6 +441,140 @@ Use the disabled attribute to disable a combobox.
|
|
|
441
441
|
|
|
442
442
|
---
|
|
443
443
|
|
|
444
|
+
## Multiple
|
|
445
|
+
|
|
446
|
+
To allow multiple options to be selected, use the multiple attribute. It’s a good practice to use clearable when this option is enabled. To set multiple values at once, set value to a space-delimited list of values. Use the max-options-visible attribute to define the maximum number of selected options that will be visible. After the maximum, "+n" will be shown to indicate the number of additional items that are selected.
|
|
447
|
+
|
|
448
|
+
```html
|
|
449
|
+
<syn-combobox
|
|
450
|
+
value="option-1 option-2 option-3"
|
|
451
|
+
multiple=""
|
|
452
|
+
clearable=""
|
|
453
|
+
max-options-visible="2"
|
|
454
|
+
size="medium"
|
|
455
|
+
placement="bottom"
|
|
456
|
+
form=""
|
|
457
|
+
>
|
|
458
|
+
<syn-option
|
|
459
|
+
value="option-1"
|
|
460
|
+
role="option"
|
|
461
|
+
aria-selected="false"
|
|
462
|
+
aria-disabled="false"
|
|
463
|
+
id="syn-combobox-option-0"
|
|
464
|
+
>Option 1</syn-option
|
|
465
|
+
>
|
|
466
|
+
<syn-option
|
|
467
|
+
value="option-2"
|
|
468
|
+
role="option"
|
|
469
|
+
aria-selected="false"
|
|
470
|
+
aria-disabled="false"
|
|
471
|
+
id="syn-combobox-option-1"
|
|
472
|
+
>Option 2</syn-option
|
|
473
|
+
>
|
|
474
|
+
<syn-option
|
|
475
|
+
value="option-3"
|
|
476
|
+
role="option"
|
|
477
|
+
aria-selected="false"
|
|
478
|
+
aria-disabled="false"
|
|
479
|
+
id="syn-combobox-option-2"
|
|
480
|
+
>Option 3</syn-option
|
|
481
|
+
>
|
|
482
|
+
<syn-option
|
|
483
|
+
value="option-4"
|
|
484
|
+
role="option"
|
|
485
|
+
aria-selected="false"
|
|
486
|
+
aria-disabled="false"
|
|
487
|
+
id="syn-combobox-option-3"
|
|
488
|
+
>Option 4</syn-option
|
|
489
|
+
>
|
|
490
|
+
<syn-option
|
|
491
|
+
value="option-5"
|
|
492
|
+
role="option"
|
|
493
|
+
aria-selected="false"
|
|
494
|
+
aria-disabled="false"
|
|
495
|
+
id="syn-combobox-option-4"
|
|
496
|
+
>Option 5</syn-option
|
|
497
|
+
>
|
|
498
|
+
<syn-option
|
|
499
|
+
value="option-6"
|
|
500
|
+
role="option"
|
|
501
|
+
aria-selected="false"
|
|
502
|
+
aria-disabled="false"
|
|
503
|
+
id="syn-combobox-option-5"
|
|
504
|
+
>Option 6</syn-option
|
|
505
|
+
>
|
|
506
|
+
</syn-combobox>
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
---
|
|
510
|
+
|
|
511
|
+
## Setting Initial Value
|
|
512
|
+
|
|
513
|
+
Use the value attribute to set the initial selection.When using multiple, the value attribute uses space-delimited values to select more than one option. Because of this, <syn-option> values cannot contain spaces. If you’re accessing the value property through Javascript, it will be an array.
|
|
514
|
+
|
|
515
|
+
```html
|
|
516
|
+
<syn-combobox
|
|
517
|
+
value="option-1 option-2 option-3"
|
|
518
|
+
multiple=""
|
|
519
|
+
clearable=""
|
|
520
|
+
max-options-visible="2"
|
|
521
|
+
size="medium"
|
|
522
|
+
placement="bottom"
|
|
523
|
+
form=""
|
|
524
|
+
>
|
|
525
|
+
<syn-option
|
|
526
|
+
value="option-1"
|
|
527
|
+
role="option"
|
|
528
|
+
aria-selected="false"
|
|
529
|
+
aria-disabled="false"
|
|
530
|
+
id="syn-combobox-option-0"
|
|
531
|
+
>Option 1</syn-option
|
|
532
|
+
>
|
|
533
|
+
<syn-option
|
|
534
|
+
value="option-2"
|
|
535
|
+
role="option"
|
|
536
|
+
aria-selected="false"
|
|
537
|
+
aria-disabled="false"
|
|
538
|
+
id="syn-combobox-option-1"
|
|
539
|
+
>Option 2</syn-option
|
|
540
|
+
>
|
|
541
|
+
<syn-option
|
|
542
|
+
value="option-3"
|
|
543
|
+
role="option"
|
|
544
|
+
aria-selected="false"
|
|
545
|
+
aria-disabled="false"
|
|
546
|
+
id="syn-combobox-option-2"
|
|
547
|
+
>Option 3</syn-option
|
|
548
|
+
>
|
|
549
|
+
<syn-option
|
|
550
|
+
value="option-4"
|
|
551
|
+
role="option"
|
|
552
|
+
aria-selected="false"
|
|
553
|
+
aria-disabled="false"
|
|
554
|
+
id="syn-combobox-option-3"
|
|
555
|
+
>Option 4</syn-option
|
|
556
|
+
>
|
|
557
|
+
<syn-option
|
|
558
|
+
value="option-5"
|
|
559
|
+
role="option"
|
|
560
|
+
aria-selected="false"
|
|
561
|
+
aria-disabled="false"
|
|
562
|
+
id="syn-combobox-option-4"
|
|
563
|
+
>Option 5</syn-option
|
|
564
|
+
>
|
|
565
|
+
<syn-option
|
|
566
|
+
value="option-6"
|
|
567
|
+
role="option"
|
|
568
|
+
aria-selected="false"
|
|
569
|
+
aria-disabled="false"
|
|
570
|
+
id="syn-combobox-option-5"
|
|
571
|
+
>Option 6</syn-option
|
|
572
|
+
>
|
|
573
|
+
</syn-combobox>
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
---
|
|
577
|
+
|
|
444
578
|
## Restricted
|
|
445
579
|
|
|
446
580
|
This restricts the combobox to only allow selections from the available options. Users cannot enter custom values that are not in the list.
|
package/package.json
CHANGED
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"serve-handler": "^6.1.6",
|
|
29
29
|
"ts-jest": "^29.4.6",
|
|
30
30
|
"typescript": "^5.9.3",
|
|
31
|
-
"@synergy-design-system/
|
|
32
|
-
"@synergy-design-system/eslint-config-syn": "^0.1.0",
|
|
33
|
-
"@synergy-design-system/components": "3.1.0",
|
|
31
|
+
"@synergy-design-system/components": "3.2.0",
|
|
34
32
|
"@synergy-design-system/fonts": "1.0.2",
|
|
33
|
+
"@synergy-design-system/eslint-config-syn": "^0.1.0",
|
|
35
34
|
"@synergy-design-system/styles": "2.0.0",
|
|
36
|
-
"@synergy-design-system/
|
|
35
|
+
"@synergy-design-system/docs": "0.1.0",
|
|
36
|
+
"@synergy-design-system/tokens": "^3.2.0"
|
|
37
37
|
},
|
|
38
38
|
"exports": {
|
|
39
39
|
".": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"directory": "packages/mcp"
|
|
68
68
|
},
|
|
69
69
|
"type": "module",
|
|
70
|
-
"version": "2.
|
|
70
|
+
"version": "2.3.0",
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "pnpm run build:ts && pnpm run build:metadata && pnpm build:hash",
|
|
73
73
|
"build:all": "pnpm run build && pnpm run build:storybook",
|