@synergy-design-system/components 1.4.1 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/chunk.3B24TYVN.js +51 -0
- package/dist/chunks/chunk.3B24TYVN.js.map +7 -0
- package/dist/chunks/{chunk.H4N7OLXW.js → chunk.4S6GR2Q7.js} +2 -2
- package/dist/chunks/{chunk.76T4PEW3.js → chunk.4STUWO3B.js} +3 -3
- package/dist/chunks/{chunk.KWUT7GQA.js → chunk.5FCLDQKW.js} +3 -3
- package/dist/chunks/{chunk.GEV4IJII.js → chunk.64EZRK2A.js} +2 -2
- package/dist/chunks/chunk.6XU6OLZ3.js +310 -0
- package/dist/chunks/chunk.6XU6OLZ3.js.map +7 -0
- package/dist/chunks/{chunk.A77SRYT2.js → chunk.7MHXK5XU.js} +2 -2
- package/dist/chunks/chunk.BQG5LF7J.js +47 -0
- package/dist/chunks/chunk.BQG5LF7J.js.map +7 -0
- package/dist/chunks/{chunk.JYBYORNL.js → chunk.D3VKCPDE.js} +6 -6
- package/dist/chunks/{chunk.OSOFK3JT.js → chunk.DLPNGATM.js} +2 -2
- package/dist/chunks/{chunk.WNPKDJ4G.js → chunk.DVCDA2IN.js} +8 -8
- package/dist/chunks/{chunk.KQCYBRJJ.js → chunk.FXTLCVXC.js} +2 -2
- package/dist/chunks/chunk.GVCB2D7B.js +12 -0
- package/dist/chunks/chunk.GVCB2D7B.js.map +7 -0
- package/dist/chunks/{chunk.FTXTH5TS.js → chunk.I3FGUPLH.js} +3 -3
- package/dist/chunks/chunk.IFDNGB63.js +96 -0
- package/dist/chunks/chunk.IFDNGB63.js.map +7 -0
- package/dist/chunks/chunk.IFE4G4PB.js +12 -0
- package/dist/chunks/chunk.IFE4G4PB.js.map +7 -0
- package/dist/chunks/{chunk.MWDOOCSU.js → chunk.IKKMWFWH.js} +2 -2
- package/dist/chunks/{chunk.JMETBEU6.js → chunk.JDDBS57F.js} +3 -3
- package/dist/chunks/chunk.JN7CLMQZ.js +53 -0
- package/dist/chunks/chunk.JN7CLMQZ.js.map +7 -0
- package/dist/chunks/{chunk.IUC3AWAU.js → chunk.K55MKNUR.js} +7 -7
- package/dist/chunks/chunk.K55MKNUR.js.map +7 -0
- package/dist/chunks/{chunk.T5GFDZAG.js → chunk.K5NVNHHD.js} +2 -2
- package/dist/chunks/{chunk.AR7MHBEC.js → chunk.KG3FXWCX.js} +3 -3
- package/dist/chunks/chunk.KG52EHDB.js +60 -0
- package/dist/chunks/chunk.KG52EHDB.js.map +7 -0
- package/dist/chunks/{chunk.ND73VYBT.js → chunk.KRTGIYIX.js} +2 -2
- package/dist/chunks/{chunk.LL3W2QAU.js → chunk.M3P4B2GP.js} +3 -3
- package/dist/chunks/{chunk.SPBKTD7Y.js → chunk.O5XNATYN.js} +2 -2
- package/dist/chunks/{chunk.5VSN3F2E.js → chunk.OAIA6MLB.js} +2 -2
- package/dist/chunks/{chunk.CQ2JMH2J.js → chunk.OJ4KOC7R.js} +2 -2
- package/dist/chunks/{chunk.QTQBU2M5.js → chunk.OKG27K27.js} +2 -2
- package/dist/chunks/chunk.OWMT6OL2.js +82 -0
- package/dist/chunks/chunk.OWMT6OL2.js.map +7 -0
- package/dist/chunks/{chunk.H3LRV4ST.js → chunk.QCDOK7E4.js} +2 -2
- package/dist/chunks/{chunk.XBVEUULD.js → chunk.QPANY6PY.js} +2 -2
- package/dist/chunks/chunk.SAGHXH7E.js +334 -0
- package/dist/chunks/chunk.SAGHXH7E.js.map +7 -0
- package/dist/chunks/{chunk.6LIMUIEF.js → chunk.SLW5NPQB.js} +2 -2
- package/dist/chunks/{chunk.Z2DLW3SL.js → chunk.T72SACBE.js} +2 -2
- package/dist/chunks/{chunk.Z2DLW3SL.js.map → chunk.T72SACBE.js.map} +1 -1
- package/dist/chunks/{chunk.5Y446GHK.js → chunk.UBTUEIMR.js} +2 -2
- package/dist/chunks/chunk.UTDK2ZT6.js +811 -0
- package/dist/chunks/chunk.UTDK2ZT6.js.map +7 -0
- package/dist/chunks/{chunk.GM3M672E.js → chunk.UYYPTTK2.js} +2 -2
- package/dist/chunks/{chunk.MTDXRKO3.js → chunk.V57DLRD2.js} +2 -2
- package/dist/chunks/{chunk.Q5UI2GVL.js → chunk.VIQZQ3S6.js} +2 -2
- package/dist/chunks/chunk.W6V7TPGK.js +104 -0
- package/dist/chunks/chunk.W6V7TPGK.js.map +7 -0
- package/dist/chunks/{chunk.XRZUXWQE.js → chunk.X4L3ZC6K.js} +2 -2
- package/dist/chunks/chunk.XFLQL2QO.js +132 -0
- package/dist/chunks/chunk.XFLQL2QO.js.map +7 -0
- package/dist/chunks/{chunk.6TJHEFXA.js → chunk.XSFEPYWK.js} +2 -2
- package/dist/chunks/chunk.YN2IXOBF.js +12 -0
- package/dist/chunks/chunk.YN2IXOBF.js.map +7 -0
- package/dist/components/button/button.component.js +7 -7
- package/dist/components/button/button.custom.styles.js +1 -1
- package/dist/components/button/button.js +8 -8
- package/dist/components/button/button.styles.js +2 -2
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +3 -3
- package/dist/components/checkbox/checkbox.js +4 -4
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/icon/icon.component.js +2 -2
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon-button/icon-button.component.js +3 -3
- package/dist/components/icon-button/icon-button.js +4 -4
- package/dist/components/input/input.component.js +4 -4
- package/dist/components/input/input.js +5 -5
- package/dist/components/optgroup/optgroup.component.d.ts +47 -0
- package/dist/components/optgroup/optgroup.component.js +16 -0
- package/dist/components/optgroup/optgroup.component.js.map +7 -0
- package/dist/components/optgroup/optgroup.d.ts +8 -0
- package/dist/components/optgroup/optgroup.js +17 -0
- package/dist/components/optgroup/optgroup.js.map +7 -0
- package/dist/components/optgroup/optgroup.styles.d.ts +2 -0
- package/dist/components/optgroup/optgroup.styles.js +8 -0
- package/dist/components/optgroup/optgroup.styles.js.map +7 -0
- package/dist/components/option/option.component.d.ts +51 -0
- package/dist/components/option/option.component.js +22 -0
- package/dist/components/option/option.component.js.map +7 -0
- package/dist/components/option/option.custom.styles.d.ts +2 -0
- package/dist/components/option/option.custom.styles.js +8 -0
- package/dist/components/option/option.custom.styles.js.map +7 -0
- package/dist/components/option/option.d.ts +8 -0
- package/dist/components/option/option.js +23 -0
- package/dist/components/option/option.js.map +7 -0
- package/dist/components/option/option.styles.d.ts +2 -0
- package/dist/components/option/option.styles.js +10 -0
- package/dist/components/option/option.styles.js.map +7 -0
- package/dist/components/popup/popup.component.d.ts +139 -0
- package/dist/components/popup/popup.component.js +11 -0
- package/dist/components/popup/popup.component.js.map +7 -0
- package/dist/components/popup/popup.styles.d.ts +2 -0
- package/dist/components/popup/popup.styles.js +9 -0
- package/dist/components/popup/popup.styles.js.map +7 -0
- package/dist/components/radio/radio.component.js +3 -3
- package/dist/components/radio/radio.js +4 -4
- package/dist/components/radio-button/radio-button.component.js +5 -5
- package/dist/components/radio-button/radio-button.js +6 -6
- package/dist/components/radio-button/radio-button.styles.js +3 -3
- package/dist/components/radio-group/radio-group.component.js +3 -3
- package/dist/components/radio-group/radio-group.js +4 -4
- package/dist/components/select/select.component.d.ts +180 -0
- package/dist/components/select/select.component.js +35 -0
- package/dist/components/select/select.component.js.map +7 -0
- package/dist/components/select/select.custom.styles.d.ts +2 -0
- package/dist/components/select/select.custom.styles.js +8 -0
- package/dist/components/select/select.custom.styles.js.map +7 -0
- package/dist/components/select/select.d.ts +8 -0
- package/dist/components/select/select.js +36 -0
- package/dist/components/select/select.js.map +7 -0
- package/dist/components/select/select.styles.d.ts +2 -0
- package/dist/components/select/select.styles.js +11 -0
- package/dist/components/select/select.styles.js.map +7 -0
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/switch/switch.component.js +2 -2
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tag/tag.component.js +4 -4
- package/dist/components/tag/tag.js +5 -5
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/custom-elements.json +2376 -556
- package/dist/events/events.d.ts +5 -0
- package/dist/events/syn-after-hide.d.ts +6 -0
- package/dist/events/syn-after-show.d.ts +6 -0
- package/dist/events/syn-hide.d.ts +6 -0
- package/dist/events/syn-reposition.d.ts +6 -0
- package/dist/events/syn-show.d.ts +6 -0
- package/dist/internal/animate.d.ts +22 -0
- package/dist/internal/event.d.ts +2 -0
- package/dist/internal/offset.d.ts +11 -0
- package/dist/internal/scroll.d.ts +11 -0
- package/dist/synergy.d.ts +3 -0
- package/dist/synergy.js +64 -41
- package/dist/utilities/animation-registry.d.ts +24 -0
- package/dist/utilities/animation-registry.js +12 -0
- package/dist/utilities/animation-registry.js.map +7 -0
- package/dist/vscode.html-custom-data.json +304 -17
- package/dist/web-types.json +664 -30
- package/package.json +6 -3
- package/dist/chunks/chunk.IUC3AWAU.js.map +0 -7
- /package/dist/chunks/{chunk.H4N7OLXW.js.map → chunk.4S6GR2Q7.js.map} +0 -0
- /package/dist/chunks/{chunk.76T4PEW3.js.map → chunk.4STUWO3B.js.map} +0 -0
- /package/dist/chunks/{chunk.KWUT7GQA.js.map → chunk.5FCLDQKW.js.map} +0 -0
- /package/dist/chunks/{chunk.GEV4IJII.js.map → chunk.64EZRK2A.js.map} +0 -0
- /package/dist/chunks/{chunk.A77SRYT2.js.map → chunk.7MHXK5XU.js.map} +0 -0
- /package/dist/chunks/{chunk.JYBYORNL.js.map → chunk.D3VKCPDE.js.map} +0 -0
- /package/dist/chunks/{chunk.OSOFK3JT.js.map → chunk.DLPNGATM.js.map} +0 -0
- /package/dist/chunks/{chunk.WNPKDJ4G.js.map → chunk.DVCDA2IN.js.map} +0 -0
- /package/dist/chunks/{chunk.KQCYBRJJ.js.map → chunk.FXTLCVXC.js.map} +0 -0
- /package/dist/chunks/{chunk.FTXTH5TS.js.map → chunk.I3FGUPLH.js.map} +0 -0
- /package/dist/chunks/{chunk.MWDOOCSU.js.map → chunk.IKKMWFWH.js.map} +0 -0
- /package/dist/chunks/{chunk.JMETBEU6.js.map → chunk.JDDBS57F.js.map} +0 -0
- /package/dist/chunks/{chunk.T5GFDZAG.js.map → chunk.K5NVNHHD.js.map} +0 -0
- /package/dist/chunks/{chunk.AR7MHBEC.js.map → chunk.KG3FXWCX.js.map} +0 -0
- /package/dist/chunks/{chunk.ND73VYBT.js.map → chunk.KRTGIYIX.js.map} +0 -0
- /package/dist/chunks/{chunk.LL3W2QAU.js.map → chunk.M3P4B2GP.js.map} +0 -0
- /package/dist/chunks/{chunk.SPBKTD7Y.js.map → chunk.O5XNATYN.js.map} +0 -0
- /package/dist/chunks/{chunk.5VSN3F2E.js.map → chunk.OAIA6MLB.js.map} +0 -0
- /package/dist/chunks/{chunk.CQ2JMH2J.js.map → chunk.OJ4KOC7R.js.map} +0 -0
- /package/dist/chunks/{chunk.QTQBU2M5.js.map → chunk.OKG27K27.js.map} +0 -0
- /package/dist/chunks/{chunk.H3LRV4ST.js.map → chunk.QCDOK7E4.js.map} +0 -0
- /package/dist/chunks/{chunk.XBVEUULD.js.map → chunk.QPANY6PY.js.map} +0 -0
- /package/dist/chunks/{chunk.6LIMUIEF.js.map → chunk.SLW5NPQB.js.map} +0 -0
- /package/dist/chunks/{chunk.5Y446GHK.js.map → chunk.UBTUEIMR.js.map} +0 -0
- /package/dist/chunks/{chunk.GM3M672E.js.map → chunk.UYYPTTK2.js.map} +0 -0
- /package/dist/chunks/{chunk.MTDXRKO3.js.map → chunk.V57DLRD2.js.map} +0 -0
- /package/dist/chunks/{chunk.Q5UI2GVL.js.map → chunk.VIQZQ3S6.js.map} +0 -0
- /package/dist/chunks/{chunk.XRZUXWQE.js.map → chunk.X4L3ZC6K.js.map} +0 -0
- /package/dist/chunks/{chunk.6TJHEFXA.js.map → chunk.XSFEPYWK.js.map} +0 -0
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@synergy-design-system/components",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.1",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -255,6 +255,35 @@
|
|
|
255
255
|
]
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
|
+
{
|
|
259
|
+
"name": "syn-button-group",
|
|
260
|
+
"description": "Button groups can be used to group related buttons into sections.\n---\n\n\n### **Slots:**\n - _default_ - One or more `<syn-button>` elements to display in the button group.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
261
|
+
"doc-url": "",
|
|
262
|
+
"attributes": [
|
|
263
|
+
{
|
|
264
|
+
"name": "label",
|
|
265
|
+
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
266
|
+
"value": { "type": "string", "default": "''" }
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"slots": [
|
|
270
|
+
{
|
|
271
|
+
"name": "",
|
|
272
|
+
"description": "One or more `<syn-button>` elements to display in the button group."
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"events": [],
|
|
276
|
+
"js": {
|
|
277
|
+
"properties": [
|
|
278
|
+
{
|
|
279
|
+
"name": "label",
|
|
280
|
+
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
281
|
+
"value": { "type": "string" }
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"events": []
|
|
285
|
+
}
|
|
286
|
+
},
|
|
258
287
|
{
|
|
259
288
|
"name": "syn-checkbox",
|
|
260
289
|
"description": "Checkboxes allow the user to toggle an option on or off.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the checkbox loses focus.\n- **syn-change** - Emitted when the checked state changes.\n- **syn-focus** - Emitted when the checkbox gains focus.\n- **syn-input** - Emitted when the checkbox receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<syn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<syn-icon>` element.\n- **label** - The container that wraps the checkbox's label.",
|
|
@@ -396,35 +425,6 @@
|
|
|
396
425
|
]
|
|
397
426
|
}
|
|
398
427
|
},
|
|
399
|
-
{
|
|
400
|
-
"name": "syn-button-group",
|
|
401
|
-
"description": "Button groups can be used to group related buttons into sections.\n---\n\n\n### **Slots:**\n - _default_ - One or more `<syn-button>` elements to display in the button group.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
402
|
-
"doc-url": "",
|
|
403
|
-
"attributes": [
|
|
404
|
-
{
|
|
405
|
-
"name": "label",
|
|
406
|
-
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
407
|
-
"value": { "type": "string", "default": "''" }
|
|
408
|
-
}
|
|
409
|
-
],
|
|
410
|
-
"slots": [
|
|
411
|
-
{
|
|
412
|
-
"name": "",
|
|
413
|
-
"description": "One or more `<syn-button>` elements to display in the button group."
|
|
414
|
-
}
|
|
415
|
-
],
|
|
416
|
-
"events": [],
|
|
417
|
-
"js": {
|
|
418
|
-
"properties": [
|
|
419
|
-
{
|
|
420
|
-
"name": "label",
|
|
421
|
-
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
422
|
-
"value": { "type": "string" }
|
|
423
|
-
}
|
|
424
|
-
],
|
|
425
|
-
"events": []
|
|
426
|
-
}
|
|
427
|
-
},
|
|
428
428
|
{
|
|
429
429
|
"name": "syn-divider",
|
|
430
430
|
"description": "Dividers are used to visually separate or group elements.\n---\n\n\n### **CSS Properties:**\n - **--color** - The color of the divider. _(default: undefined)_\n- **--width** - The width of the divider. _(default: undefined)_\n- **--spacing** - The spacing of the divider. _(default: undefined)_",
|
|
@@ -1055,6 +1055,352 @@
|
|
|
1055
1055
|
]
|
|
1056
1056
|
}
|
|
1057
1057
|
},
|
|
1058
|
+
{
|
|
1059
|
+
"name": "syn-optgroup",
|
|
1060
|
+
"description": "The <syn-optgroup> element creates a grouping for <syn-option>s within a <syn-select>.\n---\n\n\n### **Slots:**\n - _default_ - The given options. Must be `<syn-option>` elements.\n- **prefix** - A presentational prefix icon or similar element.\n- **label** - The label for the optgroup\n- **suffix** - A presentational suffix icon or similar element.\n\n### **CSS Properties:**\n - **--display-divider** - Display property of the divider. Defaults to \"block\" _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **label-container** - The container that wraps prefix, label and base\n- **divider** - The divider that is displayed above the content\n- **prefix** - The container that wraps the prefix.\n- **suffix** - The container that wraps the suffix.\n- **options** - The container that wraps the <syn-option> elements.",
|
|
1061
|
+
"doc-url": "",
|
|
1062
|
+
"attributes": [
|
|
1063
|
+
{
|
|
1064
|
+
"name": "disabled",
|
|
1065
|
+
"description": "Disables all options in the optgroup.",
|
|
1066
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"name": "label",
|
|
1070
|
+
"description": "The optgroups label. If you need to display HTML, use the `label` slot instead.",
|
|
1071
|
+
"value": { "type": "string", "default": "''" }
|
|
1072
|
+
}
|
|
1073
|
+
],
|
|
1074
|
+
"slots": [
|
|
1075
|
+
{
|
|
1076
|
+
"name": "",
|
|
1077
|
+
"description": "The given options. Must be `<syn-option>` elements."
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"name": "prefix",
|
|
1081
|
+
"description": "A presentational prefix icon or similar element."
|
|
1082
|
+
},
|
|
1083
|
+
{ "name": "label", "description": "The label for the optgroup" },
|
|
1084
|
+
{
|
|
1085
|
+
"name": "suffix",
|
|
1086
|
+
"description": "A presentational suffix icon or similar element."
|
|
1087
|
+
}
|
|
1088
|
+
],
|
|
1089
|
+
"events": [],
|
|
1090
|
+
"js": {
|
|
1091
|
+
"properties": [
|
|
1092
|
+
{
|
|
1093
|
+
"name": "disabled",
|
|
1094
|
+
"description": "Disables all options in the optgroup.",
|
|
1095
|
+
"value": { "type": "boolean" }
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"name": "label",
|
|
1099
|
+
"description": "The optgroups label. If you need to display HTML, use the `label` slot instead.",
|
|
1100
|
+
"value": { "type": "string" }
|
|
1101
|
+
}
|
|
1102
|
+
],
|
|
1103
|
+
"events": []
|
|
1104
|
+
}
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"name": "syn-option",
|
|
1108
|
+
"description": "Options define the selectable items within various form controls such as [select](/components/select).\n---\n\n\n### **Methods:**\n - **getTextLabel()** - Returns a plain text label based on the option's content.\n\n### **Slots:**\n - _default_ - The option's label.\n- **prefix** - Used to prepend an icon or similar element to the menu item.\n- **suffix** - Used to append an icon or similar element to the menu item.\n\n### **CSS Parts:**\n - **checked-icon** - The checked icon, an `<syn-icon>` element.\n- **base** - The component's base wrapper.\n- **label** - The option's label.\n- **prefix** - The container that wraps the prefix.\n- **suffix** - The container that wraps the suffix.",
|
|
1109
|
+
"doc-url": "",
|
|
1110
|
+
"attributes": [
|
|
1111
|
+
{
|
|
1112
|
+
"name": "value",
|
|
1113
|
+
"description": "The option's value. When selected, the containing form control will receive this value. The value must be unique\nfrom other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing\nmultiple values.",
|
|
1114
|
+
"value": { "type": "string", "default": "''" }
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"name": "disabled",
|
|
1118
|
+
"description": "Draws the option in a disabled state, preventing selection.",
|
|
1119
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1120
|
+
}
|
|
1121
|
+
],
|
|
1122
|
+
"slots": [
|
|
1123
|
+
{ "name": "", "description": "The option's label." },
|
|
1124
|
+
{
|
|
1125
|
+
"name": "prefix",
|
|
1126
|
+
"description": "Used to prepend an icon or similar element to the menu item."
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
"name": "suffix",
|
|
1130
|
+
"description": "Used to append an icon or similar element to the menu item."
|
|
1131
|
+
}
|
|
1132
|
+
],
|
|
1133
|
+
"events": [],
|
|
1134
|
+
"js": {
|
|
1135
|
+
"properties": [
|
|
1136
|
+
{
|
|
1137
|
+
"name": "value",
|
|
1138
|
+
"description": "The option's value. When selected, the containing form control will receive this value. The value must be unique\nfrom other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing\nmultiple values.",
|
|
1139
|
+
"value": { "type": "string" }
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"name": "disabled",
|
|
1143
|
+
"description": "Draws the option in a disabled state, preventing selection.",
|
|
1144
|
+
"value": { "type": "boolean" }
|
|
1145
|
+
}
|
|
1146
|
+
],
|
|
1147
|
+
"events": []
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"name": "syn-popup",
|
|
1152
|
+
"description": "Popup is a utility that lets you declaratively anchor \"popup\" containers to another element.\n---\n\n\n### **Events:**\n - **syn-reposition** - Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive operations in your listener or consider debouncing it.\n\n### **Methods:**\n - **reposition()** - Forces the popup to recalculate and reposition itself.\n\n### **Slots:**\n - _default_ - The popup's content.\n- **anchor** - The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the `anchor` attribute or property instead.\n\n### **CSS Properties:**\n - **--arrow-size** - The size of the arrow. Note that an arrow won't be shown unless the `arrow` attribute is used. _(default: 6px)_\n- **--arrow-color** - The color of the arrow. _(default: var(--syn-color-neutral-0))_\n- **--auto-size-available-width** - A read-only custom property that determines the amount of width the popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only available when using `auto-size`. _(default: undefined)_\n- **--auto-size-available-height** - A read-only custom property that determines the amount of height the popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only available when using `auto-size`. _(default: undefined)_\n\n### **CSS Parts:**\n - **arrow** - The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and maybe a border or box shadow.\n- **popup** - The popup's container. Useful for setting a background color, box shadow, etc.",
|
|
1153
|
+
"doc-url": "",
|
|
1154
|
+
"attributes": [
|
|
1155
|
+
{
|
|
1156
|
+
"name": "anchor",
|
|
1157
|
+
"description": "The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide the anchor\nelement `id`, a DOM element reference, or a `VirtualElement`. If the anchor lives inside the popup, use the\n`anchor` slot instead.",
|
|
1158
|
+
"value": { "type": "Element | string | VirtualElement" }
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
"name": "active",
|
|
1162
|
+
"description": "Activates the positioning logic and shows the popup. When this attribute is removed, the positioning logic is torn\ndown and the popup will be hidden.",
|
|
1163
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"name": "placement",
|
|
1167
|
+
"description": "The preferred placement of the popup. Note that the actual placement will vary as configured to keep the\npanel inside of the viewport.",
|
|
1168
|
+
"value": {
|
|
1169
|
+
"type": "| 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end'",
|
|
1170
|
+
"default": "'top'"
|
|
1171
|
+
}
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
"name": "strategy",
|
|
1175
|
+
"description": "Determines how the popup is positioned. The `absolute` strategy works well in most cases, but if overflow is\nclipped, using a `fixed` position strategy can often workaround it.",
|
|
1176
|
+
"value": {
|
|
1177
|
+
"type": "'absolute' | 'fixed'",
|
|
1178
|
+
"default": "'absolute'"
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
"name": "distance",
|
|
1183
|
+
"description": "The distance in pixels from which to offset the panel away from its anchor.",
|
|
1184
|
+
"value": { "type": "number", "default": "0" }
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
"name": "skidding",
|
|
1188
|
+
"description": "The distance in pixels from which to offset the panel along its anchor.",
|
|
1189
|
+
"value": { "type": "number", "default": "0" }
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"name": "arrow",
|
|
1193
|
+
"description": "Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and\n`--arrow-color` custom properties. For additional customizations, you can also target the arrow using\n`::part(arrow)` in your stylesheet.",
|
|
1194
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"name": "arrow-placement",
|
|
1198
|
+
"description": "The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the\nanchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will\nalign the arrow to the start, end, or center of the popover instead.",
|
|
1199
|
+
"value": {
|
|
1200
|
+
"type": "'start' | 'end' | 'center' | 'anchor'",
|
|
1201
|
+
"default": "'anchor'"
|
|
1202
|
+
}
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
"name": "arrow-padding",
|
|
1206
|
+
"description": "The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example,\nthis will prevent it from overflowing the corners.",
|
|
1207
|
+
"value": { "type": "number", "default": "10" }
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"name": "flip",
|
|
1211
|
+
"description": "When set, placement of the popup will flip to the opposite site to keep it in view. You can use\n`flipFallbackPlacements` to further configure how the fallback placement is determined.",
|
|
1212
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"name": "flip-fallback-placements",
|
|
1216
|
+
"description": "If the preferred placement doesn't fit, popup will be tested in these fallback placements until one fits. Must be a\nstring of any number of placements separated by a space, e.g. \"top bottom left\". If no placement fits, the flip\nfallback strategy will be used instead.",
|
|
1217
|
+
"value": { "type": "string", "default": "''" }
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"name": "flip-fallback-strategy",
|
|
1221
|
+
"description": "When neither the preferred placement nor the fallback placements fit, this value will be used to determine whether\nthe popup should be positioned using the best available fit based on available space or as it was initially\npreferred.",
|
|
1222
|
+
"value": {
|
|
1223
|
+
"type": "'best-fit' | 'initial'",
|
|
1224
|
+
"default": "'best-fit'"
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"name": "flipBoundary",
|
|
1229
|
+
"description": "The flip boundary describes clipping element(s) that overflow will be checked relative to when flipping. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.",
|
|
1230
|
+
"value": { "type": "Element | Element[]" }
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"name": "flip-padding",
|
|
1234
|
+
"description": "The amount of padding, in pixels, to exceed before the flip behavior will occur.",
|
|
1235
|
+
"value": { "type": "number", "default": "0" }
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"name": "shift",
|
|
1239
|
+
"description": "Moves the popup along the axis to keep it in view when clipped.",
|
|
1240
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
"name": "shiftBoundary",
|
|
1244
|
+
"description": "The shift boundary describes clipping element(s) that overflow will be checked relative to when shifting. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.",
|
|
1245
|
+
"value": { "type": "Element | Element[]" }
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
"name": "shift-padding",
|
|
1249
|
+
"description": "The amount of padding, in pixels, to exceed before the shift behavior will occur.",
|
|
1250
|
+
"value": { "type": "number", "default": "0" }
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
"name": "auto-size",
|
|
1254
|
+
"description": "When set, this will cause the popup to automatically resize itself to prevent it from overflowing.",
|
|
1255
|
+
"value": { "type": "'horizontal' | 'vertical' | 'both'" }
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"name": "sync",
|
|
1259
|
+
"description": "Syncs the popup's width or height to that of the anchor element.",
|
|
1260
|
+
"value": { "type": "'width' | 'height' | 'both'" }
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
"name": "autoSizeBoundary",
|
|
1264
|
+
"description": "The auto-size boundary describes clipping element(s) that overflow will be checked relative to when resizing. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.",
|
|
1265
|
+
"value": { "type": "Element | Element[]" }
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"name": "auto-size-padding",
|
|
1269
|
+
"description": "The amount of padding, in pixels, to exceed before the auto-size behavior will occur.",
|
|
1270
|
+
"value": { "type": "number", "default": "0" }
|
|
1271
|
+
}
|
|
1272
|
+
],
|
|
1273
|
+
"slots": [
|
|
1274
|
+
{ "name": "", "description": "The popup's content." },
|
|
1275
|
+
{
|
|
1276
|
+
"name": "anchor",
|
|
1277
|
+
"description": "The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the `anchor` attribute or property instead."
|
|
1278
|
+
}
|
|
1279
|
+
],
|
|
1280
|
+
"events": [
|
|
1281
|
+
{
|
|
1282
|
+
"name": "syn-reposition",
|
|
1283
|
+
"description": "Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive operations in your listener or consider debouncing it."
|
|
1284
|
+
}
|
|
1285
|
+
],
|
|
1286
|
+
"js": {
|
|
1287
|
+
"properties": [
|
|
1288
|
+
{
|
|
1289
|
+
"name": "anchor",
|
|
1290
|
+
"description": "The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide the anchor\nelement `id`, a DOM element reference, or a `VirtualElement`. If the anchor lives inside the popup, use the\n`anchor` slot instead.",
|
|
1291
|
+
"value": { "type": "Element | string | VirtualElement" }
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"name": "active",
|
|
1295
|
+
"description": "Activates the positioning logic and shows the popup. When this attribute is removed, the positioning logic is torn\ndown and the popup will be hidden.",
|
|
1296
|
+
"value": { "type": "boolean" }
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"name": "placement",
|
|
1300
|
+
"description": "The preferred placement of the popup. Note that the actual placement will vary as configured to keep the\npanel inside of the viewport.",
|
|
1301
|
+
"value": {
|
|
1302
|
+
"type": "| 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end'"
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"name": "strategy",
|
|
1307
|
+
"description": "Determines how the popup is positioned. The `absolute` strategy works well in most cases, but if overflow is\nclipped, using a `fixed` position strategy can often workaround it.",
|
|
1308
|
+
"value": { "type": "'absolute' | 'fixed'" }
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"name": "distance",
|
|
1312
|
+
"description": "The distance in pixels from which to offset the panel away from its anchor.",
|
|
1313
|
+
"value": { "type": "number" }
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"name": "skidding",
|
|
1317
|
+
"description": "The distance in pixels from which to offset the panel along its anchor.",
|
|
1318
|
+
"value": { "type": "number" }
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"name": "arrow",
|
|
1322
|
+
"description": "Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and\n`--arrow-color` custom properties. For additional customizations, you can also target the arrow using\n`::part(arrow)` in your stylesheet.",
|
|
1323
|
+
"value": { "type": "boolean" }
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"name": "arrow-placement",
|
|
1327
|
+
"description": "The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the\nanchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will\nalign the arrow to the start, end, or center of the popover instead.",
|
|
1328
|
+
"value": { "type": "'start' | 'end' | 'center' | 'anchor'" }
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"name": "arrow-padding",
|
|
1332
|
+
"description": "The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example,\nthis will prevent it from overflowing the corners.",
|
|
1333
|
+
"value": { "type": "number" }
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"name": "flip",
|
|
1337
|
+
"description": "When set, placement of the popup will flip to the opposite site to keep it in view. You can use\n`flipFallbackPlacements` to further configure how the fallback placement is determined.",
|
|
1338
|
+
"value": { "type": "boolean" }
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
"name": "flip-fallback-placements",
|
|
1342
|
+
"description": "If the preferred placement doesn't fit, popup will be tested in these fallback placements until one fits. Must be a\nstring of any number of placements separated by a space, e.g. \"top bottom left\". If no placement fits, the flip\nfallback strategy will be used instead.",
|
|
1343
|
+
"value": { "type": "string" }
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"name": "flip-fallback-strategy",
|
|
1347
|
+
"description": "When neither the preferred placement nor the fallback placements fit, this value will be used to determine whether\nthe popup should be positioned using the best available fit based on available space or as it was initially\npreferred.",
|
|
1348
|
+
"value": { "type": "'best-fit' | 'initial'" }
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"name": "flipBoundary",
|
|
1352
|
+
"description": "The flip boundary describes clipping element(s) that overflow will be checked relative to when flipping. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.",
|
|
1353
|
+
"value": { "type": "Element | Element[]" }
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"name": "flip-padding",
|
|
1357
|
+
"description": "The amount of padding, in pixels, to exceed before the flip behavior will occur.",
|
|
1358
|
+
"value": { "type": "number" }
|
|
1359
|
+
},
|
|
1360
|
+
{
|
|
1361
|
+
"name": "shift",
|
|
1362
|
+
"description": "Moves the popup along the axis to keep it in view when clipped.",
|
|
1363
|
+
"value": { "type": "boolean" }
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
"name": "shiftBoundary",
|
|
1367
|
+
"description": "The shift boundary describes clipping element(s) that overflow will be checked relative to when shifting. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.",
|
|
1368
|
+
"value": { "type": "Element | Element[]" }
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
"name": "shift-padding",
|
|
1372
|
+
"description": "The amount of padding, in pixels, to exceed before the shift behavior will occur.",
|
|
1373
|
+
"value": { "type": "number" }
|
|
1374
|
+
},
|
|
1375
|
+
{
|
|
1376
|
+
"name": "auto-size",
|
|
1377
|
+
"description": "When set, this will cause the popup to automatically resize itself to prevent it from overflowing.",
|
|
1378
|
+
"value": { "type": "'horizontal' | 'vertical' | 'both'" }
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
"name": "sync",
|
|
1382
|
+
"description": "Syncs the popup's width or height to that of the anchor element.",
|
|
1383
|
+
"value": { "type": "'width' | 'height' | 'both'" }
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
"name": "autoSizeBoundary",
|
|
1387
|
+
"description": "The auto-size boundary describes clipping element(s) that overflow will be checked relative to when resizing. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.",
|
|
1388
|
+
"value": { "type": "Element | Element[]" }
|
|
1389
|
+
},
|
|
1390
|
+
{
|
|
1391
|
+
"name": "auto-size-padding",
|
|
1392
|
+
"description": "The amount of padding, in pixels, to exceed before the auto-size behavior will occur.",
|
|
1393
|
+
"value": { "type": "number" }
|
|
1394
|
+
}
|
|
1395
|
+
],
|
|
1396
|
+
"events": [
|
|
1397
|
+
{
|
|
1398
|
+
"name": "syn-reposition",
|
|
1399
|
+
"description": "Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive operations in your listener or consider debouncing it."
|
|
1400
|
+
}
|
|
1401
|
+
]
|
|
1402
|
+
}
|
|
1403
|
+
},
|
|
1058
1404
|
{
|
|
1059
1405
|
"name": "syn-radio",
|
|
1060
1406
|
"description": "Radios allow the user to select a single option from a group.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-focus** - Emitted when the control gains focus.\n\n### **Slots:**\n - _default_ - The radio's label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The circular container that wraps the radio's checked state.\n- **control--checked** - The radio control when the radio is checked.\n- **checked-icon** - The checked icon, an `<syn-icon>` element.\n- **label** - The container that wraps the radio's label.",
|
|
@@ -1317,6 +1663,294 @@
|
|
|
1317
1663
|
]
|
|
1318
1664
|
}
|
|
1319
1665
|
},
|
|
1666
|
+
{
|
|
1667
|
+
"name": "syn-select",
|
|
1668
|
+
"description": "Selects allow you to choose items from a menu of predefined options.\n---\n\n\n### **Events:**\n - **syn-change** - Emitted when the control's value changes.\n- **syn-clear** - Emitted when the control's value is cleared.\n- **syn-input** - Emitted when the control receives input.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-blur** - Emitted when the control loses focus.\n- **syn-show** - Emitted when the select's menu opens.\n- **syn-after-show** - Emitted after the select's menu opens and all animations are complete.\n- **syn-hide** - Emitted when the select's menu closes.\n- **syn-after-hide** - Emitted after the select's menu closes and all animations are complete.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **show()** - Shows the listbox.\n- **hide()** - Hides the listbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n- **focus(options: _FocusOptions_)** - Sets focus on the control.\n- **blur()** - Removes focus from the control.\n\n### **Slots:**\n - _default_ - The listbox options. Must be `<syn-option>` elements. You can use `<syn-divider>` to group items visually.\n- **label** - The input's label. Alternatively, you can use the `label` attribute.\n- **prefix** - Used to prepend a presentational icon or similar element to the combobox.\n- **clear-icon** - An icon to use in lieu of the default clear icon.\n- **expand-icon** - The icon to show when the control is expanded and collapsed. Rotates on open and close.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The select's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **combobox** - The container the wraps the prefix, combobox, clear icon, and expand button.\n- **prefix** - The container that wraps the prefix slot.\n- **display-input** - The element that displays the selected option's label, an `<input>` element.\n- **listbox** - The listbox container where options are slotted.\n- **tags** - The container that houses option tags when `multiselect` is used.\n- **tag** - The individual tags that represent each multiselect option.\n- **tag__base** - The tag's base part.\n- **tag__content** - The tag's content part.\n- **tag__remove-button** - The tag's remove button.\n- **tag__remove-button__base** - The tag's remove button base part.\n- **clear-button** - The clear button.\n- **expand-icon** - The container that wraps the expand icon.",
|
|
1669
|
+
"doc-url": "",
|
|
1670
|
+
"attributes": [
|
|
1671
|
+
{
|
|
1672
|
+
"name": "name",
|
|
1673
|
+
"description": "The name of the select, submitted as a name/value pair with form data.",
|
|
1674
|
+
"value": { "type": "string", "default": "''" }
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
"name": "value",
|
|
1678
|
+
"description": "The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue attribute will be a space-delimited list of values based on the options selected, and the value property will\nbe an array. **For this reason, values must not contain spaces.**",
|
|
1679
|
+
"value": { "type": "string | string[]", "default": "''" }
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"name": "size",
|
|
1683
|
+
"description": "The select's size.",
|
|
1684
|
+
"value": {
|
|
1685
|
+
"type": "'small' | 'medium' | 'large'",
|
|
1686
|
+
"default": "'medium'"
|
|
1687
|
+
}
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
"name": "placeholder",
|
|
1691
|
+
"description": "Placeholder text to show as a hint when the select is empty.",
|
|
1692
|
+
"value": { "type": "string", "default": "''" }
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
"name": "multiple",
|
|
1696
|
+
"description": "Allows more than one option to be selected.",
|
|
1697
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
"name": "max-options-visible",
|
|
1701
|
+
"description": "The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.",
|
|
1702
|
+
"value": { "type": "number", "default": "3" }
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
"name": "disabled",
|
|
1706
|
+
"description": "Disables the select control.",
|
|
1707
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1708
|
+
},
|
|
1709
|
+
{
|
|
1710
|
+
"name": "clearable",
|
|
1711
|
+
"description": "Adds a clear button when the select is not empty.",
|
|
1712
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
"name": "open",
|
|
1716
|
+
"description": "Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the select's open state.",
|
|
1717
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1718
|
+
},
|
|
1719
|
+
{
|
|
1720
|
+
"name": "hoist",
|
|
1721
|
+
"description": "Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.",
|
|
1722
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
"name": "label",
|
|
1726
|
+
"description": "The select's label. If you need to display HTML, use the `label` slot instead.",
|
|
1727
|
+
"value": { "type": "string", "default": "''" }
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
"name": "placement",
|
|
1731
|
+
"description": "The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.",
|
|
1732
|
+
"value": { "type": "'top' | 'bottom'", "default": "'bottom'" }
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
"name": "help-text",
|
|
1736
|
+
"description": "The select's help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
1737
|
+
"value": { "type": "string", "default": "''" }
|
|
1738
|
+
},
|
|
1739
|
+
{
|
|
1740
|
+
"name": "form",
|
|
1741
|
+
"description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
|
|
1742
|
+
"value": { "type": "string", "default": "''" }
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
"name": "required",
|
|
1746
|
+
"description": "The select's required attribute.",
|
|
1747
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
"name": "getTag",
|
|
1751
|
+
"description": "A function that customizes the tags to be rendered when multiple=true. The first argument is the option, the second\nis the current tag's index. The function should return either a Lit TemplateResult or a string containing trusted HTML of the symbol to render at\nthe specified value.",
|
|
1752
|
+
"value": {
|
|
1753
|
+
"type": "(option: SynOption, index: number) => TemplateResult | string | HTMLElement"
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
],
|
|
1757
|
+
"slots": [
|
|
1758
|
+
{
|
|
1759
|
+
"name": "",
|
|
1760
|
+
"description": "The listbox options. Must be `<syn-option>` elements. You can use `<syn-divider>` to group items visually."
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
"name": "label",
|
|
1764
|
+
"description": "The input's label. Alternatively, you can use the `label` attribute."
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
"name": "prefix",
|
|
1768
|
+
"description": "Used to prepend a presentational icon or similar element to the combobox."
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
"name": "clear-icon",
|
|
1772
|
+
"description": "An icon to use in lieu of the default clear icon."
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
"name": "expand-icon",
|
|
1776
|
+
"description": "The icon to show when the control is expanded and collapsed. Rotates on open and close."
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
"name": "help-text",
|
|
1780
|
+
"description": "Text that describes how to use the input. Alternatively, you can use the `help-text` attribute."
|
|
1781
|
+
}
|
|
1782
|
+
],
|
|
1783
|
+
"events": [
|
|
1784
|
+
{
|
|
1785
|
+
"name": "syn-change",
|
|
1786
|
+
"description": "Emitted when the control's value changes."
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
"name": "syn-clear",
|
|
1790
|
+
"description": "Emitted when the control's value is cleared."
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
"name": "syn-input",
|
|
1794
|
+
"description": "Emitted when the control receives input."
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
"name": "syn-focus",
|
|
1798
|
+
"description": "Emitted when the control gains focus."
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
"name": "syn-blur",
|
|
1802
|
+
"description": "Emitted when the control loses focus."
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
"name": "syn-show",
|
|
1806
|
+
"description": "Emitted when the select's menu opens."
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
"name": "syn-after-show",
|
|
1810
|
+
"description": "Emitted after the select's menu opens and all animations are complete."
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
"name": "syn-hide",
|
|
1814
|
+
"description": "Emitted when the select's menu closes."
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
"name": "syn-after-hide",
|
|
1818
|
+
"description": "Emitted after the select's menu closes and all animations are complete."
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
"name": "syn-invalid",
|
|
1822
|
+
"description": "Emitted when the form control has been checked for validity and its constraints aren't satisfied."
|
|
1823
|
+
}
|
|
1824
|
+
],
|
|
1825
|
+
"js": {
|
|
1826
|
+
"properties": [
|
|
1827
|
+
{
|
|
1828
|
+
"name": "name",
|
|
1829
|
+
"description": "The name of the select, submitted as a name/value pair with form data.",
|
|
1830
|
+
"value": { "type": "string" }
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
"name": "value",
|
|
1834
|
+
"description": "The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue attribute will be a space-delimited list of values based on the options selected, and the value property will\nbe an array. **For this reason, values must not contain spaces.**",
|
|
1835
|
+
"value": { "type": "string | string[]" }
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
"name": "size",
|
|
1839
|
+
"description": "The select's size.",
|
|
1840
|
+
"value": { "type": "'small' | 'medium' | 'large'" }
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
"name": "placeholder",
|
|
1844
|
+
"description": "Placeholder text to show as a hint when the select is empty.",
|
|
1845
|
+
"value": { "type": "string" }
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
"name": "multiple",
|
|
1849
|
+
"description": "Allows more than one option to be selected.",
|
|
1850
|
+
"value": { "type": "boolean" }
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
"name": "max-options-visible",
|
|
1854
|
+
"description": "The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.",
|
|
1855
|
+
"value": { "type": "number" }
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
"name": "disabled",
|
|
1859
|
+
"description": "Disables the select control.",
|
|
1860
|
+
"value": { "type": "boolean" }
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
"name": "clearable",
|
|
1864
|
+
"description": "Adds a clear button when the select is not empty.",
|
|
1865
|
+
"value": { "type": "boolean" }
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
"name": "open",
|
|
1869
|
+
"description": "Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the select's open state.",
|
|
1870
|
+
"value": { "type": "boolean" }
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
"name": "hoist",
|
|
1874
|
+
"description": "Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.",
|
|
1875
|
+
"value": { "type": "boolean" }
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
"name": "label",
|
|
1879
|
+
"description": "The select's label. If you need to display HTML, use the `label` slot instead.",
|
|
1880
|
+
"value": { "type": "string" }
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
"name": "placement",
|
|
1884
|
+
"description": "The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.",
|
|
1885
|
+
"value": { "type": "'top' | 'bottom'" }
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
"name": "help-text",
|
|
1889
|
+
"description": "The select's help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
1890
|
+
"value": { "type": "string" }
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
"name": "form",
|
|
1894
|
+
"description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
|
|
1895
|
+
"value": { "type": "string" }
|
|
1896
|
+
},
|
|
1897
|
+
{
|
|
1898
|
+
"name": "required",
|
|
1899
|
+
"description": "The select's required attribute.",
|
|
1900
|
+
"value": { "type": "boolean" }
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
"name": "getTag",
|
|
1904
|
+
"description": "A function that customizes the tags to be rendered when multiple=true. The first argument is the option, the second\nis the current tag's index. The function should return either a Lit TemplateResult or a string containing trusted HTML of the symbol to render at\nthe specified value.",
|
|
1905
|
+
"value": {
|
|
1906
|
+
"type": "(option: SynOption, index: number) => TemplateResult | string | HTMLElement"
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
],
|
|
1910
|
+
"events": [
|
|
1911
|
+
{
|
|
1912
|
+
"name": "syn-change",
|
|
1913
|
+
"description": "Emitted when the control's value changes."
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
"name": "syn-clear",
|
|
1917
|
+
"description": "Emitted when the control's value is cleared."
|
|
1918
|
+
},
|
|
1919
|
+
{
|
|
1920
|
+
"name": "syn-input",
|
|
1921
|
+
"description": "Emitted when the control receives input."
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
"name": "syn-focus",
|
|
1925
|
+
"description": "Emitted when the control gains focus."
|
|
1926
|
+
},
|
|
1927
|
+
{
|
|
1928
|
+
"name": "syn-blur",
|
|
1929
|
+
"description": "Emitted when the control loses focus."
|
|
1930
|
+
},
|
|
1931
|
+
{
|
|
1932
|
+
"name": "syn-show",
|
|
1933
|
+
"description": "Emitted when the select's menu opens."
|
|
1934
|
+
},
|
|
1935
|
+
{
|
|
1936
|
+
"name": "syn-after-show",
|
|
1937
|
+
"description": "Emitted after the select's menu opens and all animations are complete."
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
"name": "syn-hide",
|
|
1941
|
+
"description": "Emitted when the select's menu closes."
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
"name": "syn-after-hide",
|
|
1945
|
+
"description": "Emitted after the select's menu closes and all animations are complete."
|
|
1946
|
+
},
|
|
1947
|
+
{
|
|
1948
|
+
"name": "syn-invalid",
|
|
1949
|
+
"description": "Emitted when the form control has been checked for validity and its constraints aren't satisfied."
|
|
1950
|
+
}
|
|
1951
|
+
]
|
|
1952
|
+
}
|
|
1953
|
+
},
|
|
1320
1954
|
{
|
|
1321
1955
|
"name": "syn-spinner",
|
|
1322
1956
|
"description": "Spinners are used to show the progress of an indeterminate operation.\n---\n\n\n### **CSS Properties:**\n - **--track-width** - The width of the track. _(default: undefined)_\n- **--track-color** - The color of the track. _(default: undefined)_\n- **--indicator-color** - The color of the spinner's indicator. _(default: undefined)_\n- **--speed** - The time it takes for the spinner to complete one animation cycle. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|