@synergy-design-system/components 1.6.1 → 1.8.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/README.md +8 -0
- package/dist/chunks/chunk.2IBWQADW.js +12 -0
- package/dist/chunks/chunk.2IBWQADW.js.map +7 -0
- package/dist/chunks/chunk.2KKPNUPU.js +110 -0
- package/dist/chunks/chunk.2KKPNUPU.js.map +7 -0
- package/dist/chunks/{chunk.FZ4XKET2.js → chunk.2XCLA4MQ.js} +2 -2
- package/dist/chunks/{chunk.AMTCNRDE.js → chunk.2Z2GYRLO.js} +2 -2
- package/dist/chunks/{chunk.7OGFJKHP.js → chunk.35PHCFSV.js} +7 -7
- package/dist/chunks/{chunk.PWYCVX32.js → chunk.4ZGN7AEC.js} +6 -6
- package/dist/chunks/{chunk.SE25XG6G.js → chunk.5TFG753C.js} +2 -2
- package/dist/chunks/{chunk.23XIIXFZ.js → chunk.6PWB7EUW.js} +2 -2
- package/dist/chunks/{chunk.NZ7AYZ7E.js → chunk.A2WGLZOL.js} +2 -2
- package/dist/chunks/{chunk.KQSLZDOW.js → chunk.AJWDVZRI.js} +19 -95
- package/dist/chunks/chunk.AJWDVZRI.js.map +7 -0
- package/dist/chunks/{chunk.VZ7S7YYN.js → chunk.AVTU2BGE.js} +2 -2
- package/dist/chunks/{chunk.HZO5IAUS.js → chunk.AWZ4FSAL.js} +7 -7
- package/dist/chunks/{chunk.5S3OJR6Z.js → chunk.B75SET3J.js} +4 -4
- package/dist/chunks/{chunk.SR2C7JNO.js → chunk.BGPAHVPK.js} +2 -2
- package/dist/chunks/{chunk.R5VB3GMN.js → chunk.COKV3ZN7.js} +2 -2
- package/dist/chunks/{chunk.IC6S5VNW.js → chunk.CUU2VBEZ.js} +2 -2
- package/dist/chunks/{chunk.AM34E33G.js → chunk.DAROCSFO.js} +4 -4
- package/dist/chunks/{chunk.FCGPI6ON.js → chunk.ERNEIORV.js} +4 -4
- package/dist/chunks/{chunk.BAAUH5DH.js → chunk.F3YEAZYJ.js} +2 -2
- package/dist/chunks/{chunk.2VJGG5SD.js → chunk.G66TSLVT.js} +7 -7
- package/dist/chunks/{chunk.5MD6EBSY.js → chunk.GUQN6XL4.js} +4 -4
- package/dist/chunks/chunk.GZVDP7WZ.js +541 -0
- package/dist/chunks/chunk.GZVDP7WZ.js.map +7 -0
- package/dist/chunks/{chunk.4OUJKHRJ.js → chunk.HNRD7DBS.js} +2 -2
- package/dist/chunks/{chunk.2PIMZJBX.js → chunk.HW5TASOL.js} +5 -5
- package/dist/chunks/{chunk.OUYVGVIY.js → chunk.JBHQJWOB.js} +5 -5
- package/dist/chunks/{chunk.HG5QC5EW.js → chunk.JSO3PKB4.js} +2 -2
- package/dist/chunks/{chunk.ZHJ6QEGW.js → chunk.K4ELZCXB.js} +2 -2
- package/dist/chunks/{chunk.LEVUN7II.js → chunk.KA7L2PMA.js} +5 -5
- package/dist/chunks/{chunk.R27TACBP.js → chunk.MB3YZTYP.js} +3 -3
- package/dist/chunks/{chunk.7K26RLTL.js → chunk.MRAXEK5D.js} +2 -2
- package/dist/chunks/{chunk.MDTK2XLX.js → chunk.NAAFLDZ3.js} +2 -2
- package/dist/chunks/chunk.NV7W5R6V.js +173 -0
- package/dist/chunks/chunk.NV7W5R6V.js.map +7 -0
- package/dist/chunks/{chunk.I7LFDXM4.js → chunk.NWWHBSV7.js} +2 -2
- package/dist/chunks/{chunk.GHCD7CUQ.js → chunk.OJUBVHIK.js} +2 -2
- package/dist/chunks/{chunk.BQG5LF7J.js → chunk.QAUTITK3.js} +2 -2
- package/dist/chunks/{chunk.DJOAQ4JU.js → chunk.QNDC5KWA.js} +43 -2
- package/dist/chunks/{chunk.OZF3DZSV.js → chunk.RS4Z4KDT.js} +5 -5
- package/dist/chunks/{chunk.SEQOINRC.js → chunk.RVFNEWM3.js} +2 -2
- package/dist/chunks/{chunk.HZXUXR2V.js → chunk.UG5FC6UD.js} +2 -2
- package/dist/chunks/{chunk.DYCZPZ6T.js → chunk.UVYPEAQZ.js} +5 -5
- package/dist/chunks/chunk.UYD2OVFV.js +83 -0
- package/dist/chunks/chunk.UYD2OVFV.js.map +7 -0
- package/dist/chunks/{chunk.DULBBZUA.js → chunk.WDX7XUUK.js} +3 -3
- package/dist/chunks/{chunk.DULBBZUA.js.map → chunk.WDX7XUUK.js.map} +1 -1
- package/dist/chunks/{chunk.YGZDEVFH.js → chunk.WP6T5CG2.js} +2 -2
- package/dist/chunks/{chunk.CFBIDJ72.js → chunk.XI6MSNHF.js} +3 -3
- package/dist/chunks/{chunk.I6GT4YUF.js → chunk.Y4QKFZLK.js} +6 -6
- package/dist/components/button/button.component.js +9 -9
- package/dist/components/button/button.custom.styles.js +1 -1
- package/dist/components/button/button.js +10 -10
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/button-group/button-group.component.js +3 -3
- package/dist/components/button-group/button-group.js +4 -4
- package/dist/components/button-group/button-group.styles.js +1 -1
- package/dist/components/checkbox/checkbox.component.js +8 -8
- package/dist/components/checkbox/checkbox.custom.styles.js +1 -1
- package/dist/components/checkbox/checkbox.js +9 -9
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/divider/divider.component.js +4 -4
- package/dist/components/divider/divider.custom.styles.js +1 -1
- package/dist/components/divider/divider.js +5 -5
- package/dist/components/divider/divider.styles.js +1 -1
- package/dist/components/drawer/drawer.component.d.ts +109 -0
- package/dist/components/drawer/drawer.component.js +28 -0
- package/dist/components/drawer/drawer.component.js.map +7 -0
- package/dist/components/drawer/drawer.custom.styles.d.ts +2 -0
- package/dist/components/drawer/drawer.custom.styles.js +8 -0
- package/dist/components/drawer/drawer.custom.styles.js.map +7 -0
- package/dist/components/drawer/drawer.d.ts +8 -0
- package/dist/components/drawer/drawer.js +29 -0
- package/dist/components/drawer/drawer.js.map +7 -0
- package/dist/components/drawer/drawer.styles.d.ts +2 -0
- package/dist/components/drawer/drawer.styles.js +10 -0
- package/dist/components/drawer/drawer.styles.js.map +7 -0
- package/dist/components/icon/icon.component.js +6 -6
- package/dist/components/icon/icon.custom.styles.js +1 -1
- package/dist/components/icon/icon.js +7 -7
- package/dist/components/icon/icon.styles.js +1 -1
- package/dist/components/icon/library.default.js +1 -1
- package/dist/components/icon/library.js +1 -1
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.component.js +7 -7
- package/dist/components/icon-button/icon-button.custom.styles.js +1 -1
- package/dist/components/icon-button/icon-button.js +8 -8
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/input/input.component.js +9 -9
- package/dist/components/input/input.custom.styles.js +1 -1
- package/dist/components/input/input.js +10 -10
- package/dist/components/input/input.styles.js +1 -1
- package/dist/components/optgroup/optgroup.component.js +5 -5
- package/dist/components/optgroup/optgroup.js +6 -6
- package/dist/components/optgroup/optgroup.styles.js +1 -1
- package/dist/components/option/option.component.js +7 -7
- package/dist/components/option/option.custom.styles.js +1 -1
- package/dist/components/option/option.js +8 -8
- package/dist/components/option/option.styles.js +1 -1
- package/dist/components/popup/popup.component.js +3 -3
- package/dist/components/popup/popup.styles.js +1 -1
- package/dist/components/radio/radio.component.js +7 -7
- package/dist/components/radio/radio.custom.styles.js +1 -1
- package/dist/components/radio/radio.js +8 -8
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/radio-button/radio-button.component.js +4 -4
- package/dist/components/radio-button/radio-button.js +5 -5
- package/dist/components/radio-button/radio-button.styles.js +1 -1
- package/dist/components/radio-group/radio-group.component.js +6 -6
- package/dist/components/radio-group/radio-group.custom.styles.js +1 -1
- package/dist/components/radio-group/radio-group.js +7 -7
- package/dist/components/radio-group/radio-group.styles.js +1 -1
- package/dist/components/select/select.component.js +14 -13
- package/dist/components/select/select.custom.styles.js +1 -1
- package/dist/components/select/select.js +15 -14
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/spinner/spinner.component.js +3 -3
- package/dist/components/spinner/spinner.styles.js +1 -1
- package/dist/components/switch/switch.component.js +5 -5
- package/dist/components/switch/switch.custom.styles.js +1 -1
- package/dist/components/switch/switch.js +6 -6
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tag/tag.component.js +8 -8
- package/dist/components/tag/tag.custom.styles.js +1 -1
- package/dist/components/tag/tag.js +9 -9
- package/dist/components/tag/tag.styles.js +1 -1
- package/dist/components/textarea/textarea.component.js +5 -5
- package/dist/components/textarea/textarea.custom.styles.js +1 -1
- package/dist/components/textarea/textarea.js +6 -6
- package/dist/components/textarea/textarea.styles.js +1 -1
- package/dist/custom-elements.json +530 -120
- package/dist/events/events.d.ts +2 -0
- package/dist/events/syn-initial-focus.d.ts +6 -0
- package/dist/events/syn-request-close.d.ts +8 -0
- package/dist/internal/active-elements.d.ts +15 -0
- package/dist/internal/modal.d.ts +21 -0
- package/dist/internal/string.d.ts +2 -0
- package/dist/internal/tabbable.d.ts +9 -0
- package/dist/synergy-autoloader.js +1 -1
- package/dist/synergy.d.ts +1 -0
- package/dist/synergy.js +71 -63
- package/dist/themes/utility.css +29 -0
- package/dist/translations/de.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/utilities/animation-registry.js +2 -2
- package/dist/utilities/base-path.js +1 -1
- package/dist/utilities/form.js +3 -3
- package/dist/utilities/icon-library.js +1 -1
- package/dist/utilities/localize.js +1 -1
- package/dist/vscode.html-custom-data.json +52 -10
- package/dist/web-types.json +154 -23
- package/package.json +28 -27
- package/dist/chunks/chunk.KQSLZDOW.js.map +0 -7
- /package/dist/chunks/{chunk.FZ4XKET2.js.map → chunk.2XCLA4MQ.js.map} +0 -0
- /package/dist/chunks/{chunk.AMTCNRDE.js.map → chunk.2Z2GYRLO.js.map} +0 -0
- /package/dist/chunks/{chunk.7OGFJKHP.js.map → chunk.35PHCFSV.js.map} +0 -0
- /package/dist/chunks/{chunk.PWYCVX32.js.map → chunk.4ZGN7AEC.js.map} +0 -0
- /package/dist/chunks/{chunk.SE25XG6G.js.map → chunk.5TFG753C.js.map} +0 -0
- /package/dist/chunks/{chunk.23XIIXFZ.js.map → chunk.6PWB7EUW.js.map} +0 -0
- /package/dist/chunks/{chunk.NZ7AYZ7E.js.map → chunk.A2WGLZOL.js.map} +0 -0
- /package/dist/chunks/{chunk.VZ7S7YYN.js.map → chunk.AVTU2BGE.js.map} +0 -0
- /package/dist/chunks/{chunk.HZO5IAUS.js.map → chunk.AWZ4FSAL.js.map} +0 -0
- /package/dist/chunks/{chunk.5S3OJR6Z.js.map → chunk.B75SET3J.js.map} +0 -0
- /package/dist/chunks/{chunk.SR2C7JNO.js.map → chunk.BGPAHVPK.js.map} +0 -0
- /package/dist/chunks/{chunk.R5VB3GMN.js.map → chunk.COKV3ZN7.js.map} +0 -0
- /package/dist/chunks/{chunk.IC6S5VNW.js.map → chunk.CUU2VBEZ.js.map} +0 -0
- /package/dist/chunks/{chunk.AM34E33G.js.map → chunk.DAROCSFO.js.map} +0 -0
- /package/dist/chunks/{chunk.FCGPI6ON.js.map → chunk.ERNEIORV.js.map} +0 -0
- /package/dist/chunks/{chunk.BAAUH5DH.js.map → chunk.F3YEAZYJ.js.map} +0 -0
- /package/dist/chunks/{chunk.2VJGG5SD.js.map → chunk.G66TSLVT.js.map} +0 -0
- /package/dist/chunks/{chunk.5MD6EBSY.js.map → chunk.GUQN6XL4.js.map} +0 -0
- /package/dist/chunks/{chunk.4OUJKHRJ.js.map → chunk.HNRD7DBS.js.map} +0 -0
- /package/dist/chunks/{chunk.2PIMZJBX.js.map → chunk.HW5TASOL.js.map} +0 -0
- /package/dist/chunks/{chunk.OUYVGVIY.js.map → chunk.JBHQJWOB.js.map} +0 -0
- /package/dist/chunks/{chunk.HG5QC5EW.js.map → chunk.JSO3PKB4.js.map} +0 -0
- /package/dist/chunks/{chunk.ZHJ6QEGW.js.map → chunk.K4ELZCXB.js.map} +0 -0
- /package/dist/chunks/{chunk.LEVUN7II.js.map → chunk.KA7L2PMA.js.map} +0 -0
- /package/dist/chunks/{chunk.R27TACBP.js.map → chunk.MB3YZTYP.js.map} +0 -0
- /package/dist/chunks/{chunk.7K26RLTL.js.map → chunk.MRAXEK5D.js.map} +0 -0
- /package/dist/chunks/{chunk.MDTK2XLX.js.map → chunk.NAAFLDZ3.js.map} +0 -0
- /package/dist/chunks/{chunk.I7LFDXM4.js.map → chunk.NWWHBSV7.js.map} +0 -0
- /package/dist/chunks/{chunk.GHCD7CUQ.js.map → chunk.OJUBVHIK.js.map} +0 -0
- /package/dist/chunks/{chunk.BQG5LF7J.js.map → chunk.QAUTITK3.js.map} +0 -0
- /package/dist/chunks/{chunk.DJOAQ4JU.js.map → chunk.QNDC5KWA.js.map} +0 -0
- /package/dist/chunks/{chunk.OZF3DZSV.js.map → chunk.RS4Z4KDT.js.map} +0 -0
- /package/dist/chunks/{chunk.SEQOINRC.js.map → chunk.RVFNEWM3.js.map} +0 -0
- /package/dist/chunks/{chunk.HZXUXR2V.js.map → chunk.UG5FC6UD.js.map} +0 -0
- /package/dist/chunks/{chunk.DYCZPZ6T.js.map → chunk.UVYPEAQZ.js.map} +0 -0
- /package/dist/chunks/{chunk.YGZDEVFH.js.map → chunk.WP6T5CG2.js.map} +0 -0
- /package/dist/chunks/{chunk.CFBIDJ72.js.map → chunk.XI6MSNHF.js.map} +0 -0
- /package/dist/chunks/{chunk.I6GT4YUF.js.map → chunk.Y4QKFZLK.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.8.0",
|
|
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.",
|
|
@@ -397,55 +426,157 @@
|
|
|
397
426
|
}
|
|
398
427
|
},
|
|
399
428
|
{
|
|
400
|
-
"name": "syn-
|
|
401
|
-
"description": "
|
|
429
|
+
"name": "syn-divider",
|
|
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)_",
|
|
402
431
|
"doc-url": "",
|
|
403
432
|
"attributes": [
|
|
404
433
|
{
|
|
405
|
-
"name": "
|
|
406
|
-
"description": "
|
|
407
|
-
"value": { "type": "
|
|
408
|
-
}
|
|
409
|
-
],
|
|
410
|
-
"slots": [
|
|
411
|
-
{
|
|
412
|
-
"name": "",
|
|
413
|
-
"description": "One or more `<syn-button>` elements to display in the button group."
|
|
434
|
+
"name": "vertical",
|
|
435
|
+
"description": "Draws the divider in a vertical orientation.",
|
|
436
|
+
"value": { "type": "boolean", "default": "false" }
|
|
414
437
|
}
|
|
415
438
|
],
|
|
416
439
|
"events": [],
|
|
417
440
|
"js": {
|
|
418
441
|
"properties": [
|
|
419
442
|
{
|
|
420
|
-
"name": "
|
|
421
|
-
"description": "
|
|
422
|
-
"value": { "type": "
|
|
443
|
+
"name": "vertical",
|
|
444
|
+
"description": "Draws the divider in a vertical orientation.",
|
|
445
|
+
"value": { "type": "boolean" }
|
|
423
446
|
}
|
|
424
447
|
],
|
|
425
448
|
"events": []
|
|
426
449
|
}
|
|
427
450
|
},
|
|
428
451
|
{
|
|
429
|
-
"name": "syn-
|
|
430
|
-
"description": "
|
|
452
|
+
"name": "syn-drawer",
|
|
453
|
+
"description": "Drawers slide in from a container to expose additional options and information.\n---\n\n\n### **Events:**\n - **syn-show** - Emitted when the drawer opens.\n- **syn-after-show** - Emitted after the drawer opens and all animations are complete.\n- **syn-hide** - Emitted when the drawer closes.\n- **syn-after-hide** - Emitted after the drawer closes and all animations are complete.\n- **syn-initial-focus** - Emitted when the drawer opens and is ready to receive focus. Calling `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.\n- **syn-request-close** - Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in destructive behavior such as data loss.\n\n### **Methods:**\n - **show()** - Shows the drawer.\n- **hide()** - Hides the drawer\n\n### **Slots:**\n - _default_ - The drawer's main content.\n- **label** - The drawer's label. Alternatively, you can use the `label` attribute.\n- **header-actions** - Optional actions to add to the header. Works best with `<syn-icon-button>`.\n- **footer** - The drawer's footer, usually one or more buttons representing various options.\n\n### **CSS Properties:**\n - **--size** - The preferred size of the drawer. This will be applied to the drawer's width or height depending on its `placement`. Note that the drawer will shrink to accommodate smaller screens. _(default: undefined)_\n- **--header-spacing** - The amount of padding to use for the header. _(default: undefined)_\n- **--body-spacing** - The amount of padding to use for the body. _(default: undefined)_\n- **--footer-spacing** - The amount of padding to use for the footer. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **overlay** - The overlay that covers the screen behind the drawer.\n- **panel** - The drawer's panel (where the drawer and its content are rendered).\n- **header** - The drawer's header. This element wraps the title and header actions.\n- **header-actions** - Optional actions to add to the header. Works best with `<syn-icon-button>`.\n- **title** - The drawer's title.\n- **close-button** - The close button, an `<syn-icon-button>`.\n- **close-button__base** - The close button's exported `base` part.\n- **body** - The drawer's body.\n- **footer** - The drawer's footer.",
|
|
431
454
|
"doc-url": "",
|
|
432
455
|
"attributes": [
|
|
433
456
|
{
|
|
434
|
-
"name": "
|
|
435
|
-
"description": "
|
|
457
|
+
"name": "open",
|
|
458
|
+
"description": "Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.",
|
|
459
|
+
"value": { "type": "boolean", "default": "false" }
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"name": "label",
|
|
463
|
+
"description": "The drawer's label as displayed in the header. You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.",
|
|
464
|
+
"value": { "type": "string", "default": "''" }
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"name": "placement",
|
|
468
|
+
"description": "The direction from which the drawer will open.",
|
|
469
|
+
"value": {
|
|
470
|
+
"type": "'top' | 'end' | 'bottom' | 'start'",
|
|
471
|
+
"default": "'end'"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"name": "contained",
|
|
476
|
+
"description": "By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\nits parent element, set this attribute and add `position: relative` to the parent.",
|
|
477
|
+
"value": { "type": "boolean", "default": "false" }
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "no-header",
|
|
481
|
+
"description": "Removes the header. This will also remove the default close button, so please ensure you provide an easy,\naccessible way for users to dismiss the drawer.",
|
|
436
482
|
"value": { "type": "boolean", "default": "false" }
|
|
437
483
|
}
|
|
438
484
|
],
|
|
439
|
-
"
|
|
485
|
+
"slots": [
|
|
486
|
+
{ "name": "", "description": "The drawer's main content." },
|
|
487
|
+
{
|
|
488
|
+
"name": "label",
|
|
489
|
+
"description": "The drawer's label. Alternatively, you can use the `label` attribute."
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "header-actions",
|
|
493
|
+
"description": "Optional actions to add to the header. Works best with `<syn-icon-button>`."
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "footer",
|
|
497
|
+
"description": "The drawer's footer, usually one or more buttons representing various options."
|
|
498
|
+
}
|
|
499
|
+
],
|
|
500
|
+
"events": [
|
|
501
|
+
{
|
|
502
|
+
"name": "syn-show",
|
|
503
|
+
"description": "Emitted when the drawer opens."
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"name": "syn-after-show",
|
|
507
|
+
"description": "Emitted after the drawer opens and all animations are complete."
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"name": "syn-hide",
|
|
511
|
+
"description": "Emitted when the drawer closes."
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "syn-after-hide",
|
|
515
|
+
"description": "Emitted after the drawer closes and all animations are complete."
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"name": "syn-initial-focus",
|
|
519
|
+
"description": "Emitted when the drawer opens and is ready to receive focus. Calling `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input."
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"name": "syn-request-close",
|
|
523
|
+
"description": "Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in destructive behavior such as data loss."
|
|
524
|
+
}
|
|
525
|
+
],
|
|
440
526
|
"js": {
|
|
441
527
|
"properties": [
|
|
442
528
|
{
|
|
443
|
-
"name": "
|
|
444
|
-
"description": "
|
|
529
|
+
"name": "open",
|
|
530
|
+
"description": "Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.",
|
|
531
|
+
"value": { "type": "boolean" }
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"name": "label",
|
|
535
|
+
"description": "The drawer's label as displayed in the header. You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.",
|
|
536
|
+
"value": { "type": "string" }
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"name": "placement",
|
|
540
|
+
"description": "The direction from which the drawer will open.",
|
|
541
|
+
"value": { "type": "'top' | 'end' | 'bottom' | 'start'" }
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"name": "contained",
|
|
545
|
+
"description": "By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\nits parent element, set this attribute and add `position: relative` to the parent.",
|
|
546
|
+
"value": { "type": "boolean" }
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"name": "no-header",
|
|
550
|
+
"description": "Removes the header. This will also remove the default close button, so please ensure you provide an easy,\naccessible way for users to dismiss the drawer.",
|
|
445
551
|
"value": { "type": "boolean" }
|
|
446
552
|
}
|
|
447
553
|
],
|
|
448
|
-
"events": [
|
|
554
|
+
"events": [
|
|
555
|
+
{
|
|
556
|
+
"name": "syn-show",
|
|
557
|
+
"description": "Emitted when the drawer opens."
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"name": "syn-after-show",
|
|
561
|
+
"description": "Emitted after the drawer opens and all animations are complete."
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"name": "syn-hide",
|
|
565
|
+
"description": "Emitted when the drawer closes."
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"name": "syn-after-hide",
|
|
569
|
+
"description": "Emitted after the drawer closes and all animations are complete."
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"name": "syn-initial-focus",
|
|
573
|
+
"description": "Emitted when the drawer opens and is ready to receive focus. Calling `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input."
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"name": "syn-request-close",
|
|
577
|
+
"description": "Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in destructive behavior such as data loss."
|
|
578
|
+
}
|
|
579
|
+
]
|
|
449
580
|
}
|
|
450
581
|
},
|
|
451
582
|
{
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://www.sick.com"
|
|
5
5
|
},
|
|
6
6
|
"name": "@synergy-design-system/components",
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.8.0",
|
|
8
8
|
"description": "",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"./synergy-autoloader.js": "./dist/synergy-autoloader.js",
|
|
22
22
|
"./components/*": "./dist/components/*",
|
|
23
23
|
"./utilities/*": "./dist/utilities/*",
|
|
24
|
+
"./themes/*": "./dist/themes/*",
|
|
24
25
|
"./translations/*": "./dist/translations/*"
|
|
25
26
|
},
|
|
26
27
|
"files": [
|
|
@@ -40,27 +41,27 @@
|
|
|
40
41
|
],
|
|
41
42
|
"license": "MIT",
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"@custom-elements-manifest/analyzer": "^0.
|
|
44
|
+
"@custom-elements-manifest/analyzer": "^0.9.0",
|
|
44
45
|
"@open-wc/testing": "^4.0.0",
|
|
45
|
-
"@playwright/test": "^1.41.
|
|
46
|
+
"@playwright/test": "^1.41.2",
|
|
46
47
|
"@semantic-release/changelog": "^6.0.3",
|
|
47
48
|
"@semantic-release/exec": "^6.0.3",
|
|
48
49
|
"@semantic-release/git": "^10.0.1",
|
|
49
50
|
"@types/mocha": "^10.0.6",
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
51
|
-
"@typescript-eslint/parser": "^6.
|
|
52
|
-
"@web/dev-server-esbuild": "^0.
|
|
53
|
-
"@web/test-runner": "^0.
|
|
54
|
-
"@web/test-runner-commands": "^0.
|
|
55
|
-
"@web/test-runner-playwright": "^0.
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
52
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
53
|
+
"@web/dev-server-esbuild": "^1.0.2",
|
|
54
|
+
"@web/test-runner": "^0.18.0",
|
|
55
|
+
"@web/test-runner-commands": "^0.9.0",
|
|
56
|
+
"@web/test-runner-playwright": "^0.11.0",
|
|
56
57
|
"chalk": "^5.3.0",
|
|
57
|
-
"change-case": "^4.
|
|
58
|
+
"change-case": "^5.4.2",
|
|
58
59
|
"command-line-args": "^5.2.1",
|
|
59
60
|
"comment-parser": "^1.4.1",
|
|
60
61
|
"custom-element-jet-brains-integration": "^1.4.3",
|
|
61
62
|
"custom-element-vs-code-integration": "^1.2.2",
|
|
62
63
|
"del": "^7.1.0",
|
|
63
|
-
"esbuild": "^0.
|
|
64
|
+
"esbuild": "^0.20.0",
|
|
64
65
|
"esbuild-plugin-replace": "^1.4.0",
|
|
65
66
|
"eslint": "^8.56.0",
|
|
66
67
|
"eslint-config-airbnb": "^19.0.4",
|
|
@@ -68,29 +69,29 @@
|
|
|
68
69
|
"eslint-plugin-import": "^2.29.1",
|
|
69
70
|
"eslint-plugin-jest": "^27.6.3",
|
|
70
71
|
"eslint-plugin-lit": "^1.11.0",
|
|
71
|
-
"eslint-plugin-lit-a11y": "^4.1.
|
|
72
|
-
"eslint-plugin-playwright": "^0.22.
|
|
73
|
-
"eslint-plugin-vue": "^9.
|
|
72
|
+
"eslint-plugin-lit-a11y": "^4.1.2",
|
|
73
|
+
"eslint-plugin-playwright": "^0.22.2",
|
|
74
|
+
"eslint-plugin-vue": "^9.21.1",
|
|
74
75
|
"eslint-plugin-wc": "^2.0.4",
|
|
75
|
-
"globby": "^
|
|
76
|
-
"jsdom": "^
|
|
77
|
-
"ng-packagr": "^17.1.
|
|
78
|
-
"ora": "^
|
|
79
|
-
"prettier": "^3.2.
|
|
76
|
+
"globby": "^14.0.0",
|
|
77
|
+
"jsdom": "^24.0.0",
|
|
78
|
+
"ng-packagr": "^17.1.2",
|
|
79
|
+
"ora": "^8.0.1",
|
|
80
|
+
"prettier": "^3.2.5",
|
|
80
81
|
"remark-parse": "^11.0.0",
|
|
81
82
|
"semantic-release": "^19.0.5",
|
|
82
|
-
"semantic-release-monorepo": "
|
|
83
|
-
"sinon": "^
|
|
84
|
-
"stylelint": "^
|
|
83
|
+
"semantic-release-monorepo": "7.0.5",
|
|
84
|
+
"sinon": "^17.0.1",
|
|
85
|
+
"stylelint": "^16.2.1",
|
|
85
86
|
"typescript": "^5.3.3",
|
|
86
87
|
"unified": "^11.0.4",
|
|
87
88
|
"unist-util-visit": "^5.0.0",
|
|
88
89
|
"user-agent-data-types": "^0.4.2",
|
|
89
|
-
"vendorism": "
|
|
90
|
+
"vendorism": "^3.0.0",
|
|
90
91
|
"vue-tsc": "^1.8.27",
|
|
91
92
|
"@synergy-design-system/eslint-config-syn": "0.1.0",
|
|
92
|
-
"@synergy-design-system/
|
|
93
|
-
"@synergy-design-system/
|
|
93
|
+
"@synergy-design-system/stylelint-config-syn": "0.1.0",
|
|
94
|
+
"@synergy-design-system/tokens": "1.7.0"
|
|
94
95
|
},
|
|
95
96
|
"release": {
|
|
96
97
|
"branches": [
|
|
@@ -151,11 +152,11 @@
|
|
|
151
152
|
}
|
|
152
153
|
},
|
|
153
154
|
"dependencies": {
|
|
154
|
-
"@floating-ui/dom": "^1.
|
|
155
|
+
"@floating-ui/dom": "^1.6.1",
|
|
155
156
|
"@shoelace-style/animations": "^1.1.0",
|
|
156
157
|
"@shoelace-style/localize": "^3.1.2",
|
|
157
158
|
"composed-offset-position": "^0.0.4",
|
|
158
|
-
"lit": "^3.1.
|
|
159
|
+
"lit": "^3.1.2"
|
|
159
160
|
},
|
|
160
161
|
"web-types": "./dist/web-types.json",
|
|
161
162
|
"scripts": {
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/internal/animate.ts", "../../src/components/select/select.component.ts", "../../src/internal/offset.ts", "../../src/internal/scroll.ts", "../../src/internal/event.ts"],
|
|
4
|
-
"sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\n/**\n * Animates an element using keyframes. Returns a promise that resolves after the animation completes or gets canceled.\n */\nexport function animateTo(el: HTMLElement, keyframes: Keyframe[], options?: KeyframeAnimationOptions) {\n return new Promise(resolve => {\n if (options?.duration === Infinity) {\n throw new Error('Promise-based animations must be finite.');\n }\n\n const animation = el.animate(keyframes, {\n ...options,\n duration: prefersReducedMotion() ? 0 : options!.duration\n });\n\n animation.addEventListener('cancel', resolve, { once: true });\n animation.addEventListener('finish', resolve, { once: true });\n });\n}\n\n/** Parses a CSS duration and returns the number of milliseconds. */\nexport function parseDuration(delay: number | string) {\n delay = delay.toString().toLowerCase();\n\n if (delay.indexOf('ms') > -1) {\n return parseFloat(delay);\n }\n\n if (delay.indexOf('s') > -1) {\n return parseFloat(delay) * 1000;\n }\n\n return parseFloat(delay);\n}\n\n/** Tells if the user has enabled the \"reduced motion\" setting in their browser or OS. */\nexport function prefersReducedMotion() {\n const query = window.matchMedia('(prefers-reduced-motion: reduce)');\n return query.matches;\n}\n\n/**\n * Stops all active animations on the target element. Returns a promise that resolves after all animations are canceled.\n */\nexport function stopAnimations(el: HTMLElement) {\n return Promise.all(\n el.getAnimations().map(animation => {\n return new Promise(resolve => {\n const handleAnimationEvent = requestAnimationFrame(resolve);\n\n animation.addEventListener('cancel', () => handleAnimationEvent, { once: true });\n animation.addEventListener('finish', () => handleAnimationEvent, { once: true });\n animation.cancel();\n });\n })\n );\n}\n\n/**\n * We can't animate `height: auto`, but we can calculate the height and shim keyframes by replacing it with the\n * element's scrollHeight before the animation.\n */\nexport function shimKeyframesHeightAuto(keyframes: Keyframe[], calculatedHeight: number) {\n return keyframes.map(keyframe => ({\n ...keyframe,\n height: keyframe.height === 'auto' ? `${calculatedHeight}px` : keyframe.height\n }));\n}\n", "// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { animateTo, stopAnimations } from '../../internal/animate.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { scrollIntoView } from '../../internal/scroll.js';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynPopup from '../popup/popup.component.js';\nimport SynTag from '../tag/tag.component.js';\nimport styles from './select.styles.js';\nimport type { CSSResultGroup, TemplateResult } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport type { SynRemoveEvent } from '../../events/syn-remove.js';\nimport type SynOption from '../option/option.component.js';\n\n/**\n * @summary Selects allow you to choose items from a menu of predefined options.\n * @documentation https://synergy.style/components/select\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-popup\n * @dependency syn-tag\n *\n * @slot - The listbox options. Must be `<syn-option>` elements. You can use `<syn-divider>` to group items visually.\n * @slot label - The input's label. Alternatively, you can use the `label` attribute.\n * @slot prefix - Used to prepend a presentational icon or similar element to the combobox.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot expand-icon - The icon to show when the control is expanded and collapsed. Rotates on open and close.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-change - Emitted when the control's value changes.\n * @event syn-clear - Emitted when the control's value is cleared.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-show - Emitted when the select's menu opens.\n * @event syn-after-show - Emitted after the select's menu opens and all animations are complete.\n * @event syn-hide - Emitted when the select's menu closes.\n * @event syn-after-hide - Emitted after the select's menu closes and all animations are complete.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The select's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart combobox - The container the wraps the prefix, combobox, clear icon, and expand button.\n * @csspart prefix - The container that wraps the prefix slot.\n * @csspart display-input - The element that displays the selected option's label, an `<input>` element.\n * @csspart listbox - The listbox container where options are slotted.\n * @csspart tags - The container that houses option tags when `multiselect` is used.\n * @csspart tag - The individual tags that represent each multiselect option.\n * @csspart tag__base - The tag's base part.\n * @csspart tag__content - The tag's content part.\n * @csspart tag__remove-button - The tag's remove button.\n * @csspart tag__remove-button__base - The tag's remove button base part.\n * @csspart clear-button - The clear button.\n * @csspart expand-icon - The container that wraps the expand icon.\n */\nexport default class SynSelect extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = styles;\n static dependencies = {\n 'syn-icon': SynIcon,\n 'syn-popup': SynPopup,\n 'syn-tag': SynTag\n };\n\n private readonly formControlController = new FormControlController(this, {\n assumeInteractionOn: ['syn-blur', 'syn-input']\n });\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label');\n private readonly localize = new LocalizeController(this);\n private typeToSelectString = '';\n private typeToSelectTimeout: number;\n\n @query('.select') popup: SynPopup;\n @query('.select__combobox') combobox: HTMLSlotElement;\n @query('.select__display-input') displayInput: HTMLInputElement;\n @query('.select__value-input') valueInput: HTMLInputElement;\n @query('.select__listbox') listbox: HTMLSlotElement;\n\n @state() private hasFocus = false;\n @state() displayLabel = '';\n @state() currentOption: SynOption;\n @state() selectedOptions: SynOption[] = [];\n\n /** The name of the select, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /**\n * The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\n * value attribute will be a space-delimited list of values based on the options selected, and the value property will\n * be an array. **For this reason, values must not contain spaces.**\n */\n @property({\n converter: {\n fromAttribute: (value: string) => value.split(' '),\n toAttribute: (value: string[]) => value.join(' ')\n }\n })\n value: string | string[] = '';\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue: string | string[] = '';\n\n /** The select's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Placeholder text to show as a hint when the select is empty. */\n @property() placeholder = '';\n\n /** Allows more than one option to be selected. */\n @property({ type: Boolean, reflect: true }) multiple = false;\n\n /**\n * The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\n * indicate the number of additional items that are selected. Set to 0 to remove the limit.\n */\n @property({ attribute: 'max-options-visible', type: Number }) maxOptionsVisible = 3;\n\n /** Disables the select control. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Adds a clear button when the select is not empty. */\n @property({ type: Boolean }) clearable = false;\n\n /**\n * Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\n * use the `show()` and `hide()` methods and this attribute will reflect the select's open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /**\n * 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.\n */\n @property({ type: Boolean }) hoist = false;\n\n /** The select's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /**\n * The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\n * inside of the viewport.\n */\n @property({ reflect: true }) placement: 'top' | 'bottom' = 'bottom';\n\n /** The select's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\n * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in\n * the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** The select's required attribute. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /**\n * A function that customizes the tags to be rendered when multiple=true. The first argument is the option, the second\n * is 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\n * the specified value.\n */\n @property() getTag: (option: SynOption, index: number) => TemplateResult | string | HTMLElement = option => {\n return html`\n <syn-tag\n part=\"tag\"\n exportparts=\"\n base:tag__base,\n content:tag__content,\n remove-button:tag__remove-button,\n remove-button__base:tag__remove-button__base\n \"\n size=${this.size}\n removable\n @syn-remove=${(event: SynRemoveEvent) => this.handleTagRemove(event, option)}\n >\n ${option.getTextLabel()}\n </syn-tag>\n `;\n };\n\n /** Gets the validity state object */\n get validity() {\n return this.valueInput.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.valueInput.validationMessage;\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n // Because this is a form control, it shouldn't be opened initially\n this.open = false;\n }\n\n private addOpenListeners() {\n document.addEventListener('focusin', this.handleDocumentFocusIn);\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n document.addEventListener('mousedown', this.handleDocumentMouseDown);\n }\n\n private removeOpenListeners() {\n document.removeEventListener('focusin', this.handleDocumentFocusIn);\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n document.removeEventListener('mousedown', this.handleDocumentMouseDown);\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.displayInput.setSelectionRange(0, 0);\n this.emit('syn-focus');\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleDocumentFocusIn = (event: KeyboardEvent) => {\n // Close when focusing out of the select\n const path = event.composedPath();\n if (this && !path.includes(this)) {\n this.hide();\n }\n };\n\n private handleDocumentKeyDown = (event: KeyboardEvent) => {\n const target = event.target as HTMLElement;\n const isClearButton = target.closest('.select__clear') !== null;\n const isIconButton = target.closest('syn-icon-button') !== null;\n\n // Ignore presses when the target is an icon button (e.g. the remove button in <syn-tag>)\n if (isClearButton || isIconButton) {\n return;\n }\n\n // Close when pressing escape\n if (event.key === 'Escape' && this.open) {\n event.preventDefault();\n event.stopPropagation();\n this.hide();\n this.displayInput.focus({ preventScroll: true });\n }\n\n // Handle enter and space. When pressing space, we allow for type to select behaviors so if there's anything in the\n // buffer we _don't_ close it.\n if (event.key === 'Enter' || (event.key === ' ' && this.typeToSelectString === '')) {\n event.preventDefault();\n event.stopImmediatePropagation();\n\n // If it's not open, open it\n if (!this.open) {\n this.show();\n return;\n }\n\n // If it is open, update the value based on the current selection and close it\n if (this.currentOption && !this.currentOption.disabled) {\n if (this.multiple) {\n this.toggleOptionSelection(this.currentOption);\n } else {\n this.setSelectedOptions(this.currentOption);\n }\n\n // Emit after updating\n this.updateComplete.then(() => {\n this.emit('syn-input');\n this.emit('syn-change');\n });\n\n if (!this.multiple) {\n this.hide();\n this.displayInput.focus({ preventScroll: true });\n }\n }\n\n return;\n }\n\n // Navigate options\n if (['ArrowUp', 'ArrowDown', 'Home', 'End'].includes(event.key)) {\n const allOptions = this.getAllOptions();\n const currentIndex = allOptions.indexOf(this.currentOption);\n let newIndex = Math.max(0, currentIndex);\n\n // Prevent scrolling\n event.preventDefault();\n\n // Open it\n if (!this.open) {\n this.show();\n\n // If an option is already selected, stop here because we want that one to remain highlighted when the listbox\n // opens for the first time\n if (this.currentOption) {\n return;\n }\n }\n\n if (event.key === 'ArrowDown') {\n newIndex = currentIndex + 1;\n if (newIndex > allOptions.length - 1) newIndex = 0;\n } else if (event.key === 'ArrowUp') {\n newIndex = currentIndex - 1;\n if (newIndex < 0) newIndex = allOptions.length - 1;\n } else if (event.key === 'Home') {\n newIndex = 0;\n } else if (event.key === 'End') {\n newIndex = allOptions.length - 1;\n }\n\n this.setCurrentOption(allOptions[newIndex]);\n }\n\n // All other \"printable\" keys trigger type to select\n if (event.key.length === 1 || event.key === 'Backspace') {\n const allOptions = this.getAllOptions();\n\n // Don't block important key combos like CMD+R\n if (event.metaKey || event.ctrlKey || event.altKey) {\n return;\n }\n\n // Open, unless the key that triggered is backspace\n if (!this.open) {\n if (event.key === 'Backspace') {\n return;\n }\n\n this.show();\n }\n\n event.stopPropagation();\n event.preventDefault();\n\n clearTimeout(this.typeToSelectTimeout);\n this.typeToSelectTimeout = window.setTimeout(() => (this.typeToSelectString = ''), 1000);\n\n if (event.key === 'Backspace') {\n this.typeToSelectString = this.typeToSelectString.slice(0, -1);\n } else {\n this.typeToSelectString += event.key.toLowerCase();\n }\n\n for (const option of allOptions) {\n const label = option.getTextLabel().toLowerCase();\n\n if (label.startsWith(this.typeToSelectString)) {\n this.setCurrentOption(option);\n break;\n }\n }\n }\n };\n\n private handleDocumentMouseDown = (event: MouseEvent) => {\n // Close when clicking outside of the select\n const path = event.composedPath();\n if (this && !path.includes(this)) {\n this.hide();\n }\n };\n\n private handleLabelClick() {\n this.displayInput.focus();\n }\n\n private handleComboboxMouseDown(event: MouseEvent) {\n const path = event.composedPath();\n const isIconButton = path.some(el => el instanceof Element && el.tagName.toLowerCase() === 'syn-icon-button');\n\n // Ignore disabled controls and clicks on tags (remove buttons)\n if (this.disabled || isIconButton) {\n return;\n }\n\n event.preventDefault();\n this.displayInput.focus({ preventScroll: true });\n this.open = !this.open;\n }\n\n private handleComboboxKeyDown(event: KeyboardEvent) {\n event.stopPropagation();\n this.handleDocumentKeyDown(event);\n }\n\n private handleClearClick(event: MouseEvent) {\n event.stopPropagation();\n\n if (this.value !== '') {\n this.setSelectedOptions([]);\n this.displayInput.focus({ preventScroll: true });\n\n // Emit after update\n this.updateComplete.then(() => {\n this.emit('syn-clear');\n this.emit('syn-input');\n this.emit('syn-change');\n });\n }\n }\n\n private handleClearMouseDown(event: MouseEvent) {\n // Don't lose focus or propagate events when clicking the clear button\n event.stopPropagation();\n event.preventDefault();\n }\n\n private handleOptionClick(event: MouseEvent) {\n const target = event.target as HTMLElement;\n const option = target.closest('syn-option');\n const oldValue = this.value;\n\n if (option && !option.disabled) {\n if (this.multiple) {\n this.toggleOptionSelection(option);\n } else {\n this.setSelectedOptions(option);\n }\n\n // Set focus after updating so the value is announced by screen readers\n this.updateComplete.then(() => this.displayInput.focus({ preventScroll: true }));\n\n if (this.value !== oldValue) {\n // Emit after updating\n this.updateComplete.then(() => {\n this.emit('syn-input');\n this.emit('syn-change');\n });\n }\n\n if (!this.multiple) {\n this.hide();\n this.displayInput.focus({ preventScroll: true });\n }\n }\n }\n\n private handleDefaultSlotChange() {\n const allOptions = this.getAllOptions();\n const value = Array.isArray(this.value) ? this.value : [this.value];\n const values: string[] = [];\n\n // Check for duplicate values in menu items\n if (customElements.get('syn-option')) {\n allOptions.forEach(option => values.push(option.value));\n\n // Select only the options that match the new value\n this.setSelectedOptions(allOptions.filter(el => value.includes(el.value)));\n } else {\n // Rerun this handler when <syn-option> is registered\n customElements.whenDefined('syn-option').then(() => this.handleDefaultSlotChange());\n }\n }\n\n private handleTagRemove(event: SynRemoveEvent, option: SynOption) {\n event.stopPropagation();\n\n if (!this.disabled) {\n this.toggleOptionSelection(option, false);\n\n // Emit after updating\n this.updateComplete.then(() => {\n this.emit('syn-input');\n this.emit('syn-change');\n });\n }\n }\n\n // Gets an array of all <syn-option> elements\n private getAllOptions() {\n return [...this.querySelectorAll<SynOption>('syn-option')];\n }\n\n // Gets the first <syn-option> element\n private getFirstOption() {\n return this.querySelector<SynOption>('syn-option');\n }\n\n // Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one\n // option may be \"current\" at a time.\n private setCurrentOption(option: SynOption | null) {\n const allOptions = this.getAllOptions();\n\n // Clear selection\n allOptions.forEach(el => {\n el.current = false;\n el.tabIndex = -1;\n });\n\n // Select the target option\n if (option) {\n this.currentOption = option;\n option.current = true;\n option.tabIndex = 0;\n option.focus();\n }\n }\n\n // Sets the selected option(s)\n private setSelectedOptions(option: SynOption | SynOption[]) {\n const allOptions = this.getAllOptions();\n const newSelectedOptions = Array.isArray(option) ? option : [option];\n\n // Clear existing selection\n allOptions.forEach(el => (el.selected = false));\n\n // Set the new selection\n if (newSelectedOptions.length) {\n newSelectedOptions.forEach(el => (el.selected = true));\n }\n\n // Update selection, value, and display label\n this.selectionChanged();\n }\n\n // Toggles an option's selected state\n private toggleOptionSelection(option: SynOption, force?: boolean) {\n if (force === true || force === false) {\n option.selected = force;\n } else {\n option.selected = !option.selected;\n }\n\n this.selectionChanged();\n }\n\n // This method must be called whenever the selection changes. It will update the selected options cache, the current\n // value, and the display value\n private selectionChanged() {\n // Update selected options cache\n this.selectedOptions = this.getAllOptions().filter(el => el.selected);\n\n // Update the value and display label\n if (this.multiple) {\n this.value = this.selectedOptions.map(el => el.value);\n\n if (this.placeholder && this.value.length === 0) {\n // When no items are selected, keep the value empty so the placeholder shows\n this.displayLabel = '';\n } else {\n this.displayLabel = this.localize.term('numOptionsSelected', this.selectedOptions.length);\n }\n } else {\n this.value = this.selectedOptions[0]?.value ?? '';\n this.displayLabel = this.selectedOptions[0]?.getTextLabel() ?? '';\n }\n\n // Update validity\n this.updateComplete.then(() => {\n this.formControlController.updateValidity();\n });\n }\n protected get tags() {\n return this.selectedOptions.map((option, index) => {\n if (index < this.maxOptionsVisible || this.maxOptionsVisible <= 0) {\n const tag = this.getTag(option, index);\n // Wrap so we can handle the remove\n return html`<div @syn-remove=${(e: SynRemoveEvent) => this.handleTagRemove(e, option)}>\n ${typeof tag === 'string' ? unsafeHTML(tag) : tag}\n </div>`;\n } else if (index === this.maxOptionsVisible) {\n // Hit tag limit\n return html`<syn-tag>+${this.selectedOptions.length - index}</syn-tag>`;\n }\n return html``;\n });\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Close the listbox when the control is disabled\n if (this.disabled) {\n this.open = false;\n this.handleOpenChange();\n }\n }\n\n @watch('value', { waitUntilFirstUpdate: true })\n handleValueChange() {\n const allOptions = this.getAllOptions();\n const value = Array.isArray(this.value) ? this.value : [this.value];\n\n // Select only the options that match the new value\n this.setSelectedOptions(allOptions.filter(el => value.includes(el.value)));\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open && !this.disabled) {\n // Reset the current option\n this.setCurrentOption(this.selectedOptions[0] || this.getFirstOption());\n\n // Show\n this.emit('syn-show');\n this.addOpenListeners();\n\n await stopAnimations(this);\n this.listbox.hidden = false;\n this.popup.active = true;\n\n // Select the appropriate option based on value after the listbox opens\n requestAnimationFrame(() => {\n this.setCurrentOption(this.currentOption);\n });\n\n const { keyframes, options } = getAnimation(this, 'select.show', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n\n // Make sure the current option is scrolled into view (required for Safari)\n if (this.currentOption) {\n scrollIntoView(this.currentOption, this.listbox, 'vertical', 'auto');\n }\n\n this.emit('syn-after-show');\n } else {\n // Hide\n this.emit('syn-hide');\n this.removeOpenListeners();\n\n await stopAnimations(this);\n const { keyframes, options } = getAnimation(this, 'select.hide', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n this.listbox.hidden = true;\n this.popup.active = false;\n\n this.emit('syn-after-hide');\n }\n }\n\n /** Shows the listbox. */\n async show() {\n if (this.open || this.disabled) {\n this.open = false;\n return undefined;\n }\n\n this.open = true;\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the listbox. */\n async hide() {\n if (!this.open || this.disabled) {\n this.open = false;\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n return this.valueInput.checkValidity();\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n return this.valueInput.reportValidity();\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n this.valueInput.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n /** Sets focus on the control. */\n focus(options?: FocusOptions) {\n this.displayInput.focus(options);\n }\n\n /** Removes focus from the control. */\n blur() {\n this.displayInput.blur();\n }\n\n render() {\n const hasLabelSlot = this.hasSlotController.test('label');\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasLabel = this.label ? true : !!hasLabelSlot;\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n const hasClearIcon = this.clearable && !this.disabled && this.value.length > 0;\n const isPlaceholderVisible = this.placeholder && this.value.length === 0;\n\n return html`\n <div\n part=\"form-control\"\n class=${classMap({\n 'form-control': true,\n 'form-control--small': this.size === 'small',\n 'form-control--medium': this.size === 'medium',\n 'form-control--large': this.size === 'large',\n 'form-control--has-label': hasLabel,\n 'form-control--has-help-text': hasHelpText\n })}\n >\n <label\n id=\"label\"\n part=\"form-control-label\"\n class=\"form-control__label\"\n aria-hidden=${hasLabel ? 'false' : 'true'}\n @click=${this.handleLabelClick}\n >\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <div part=\"form-control-input\" class=\"form-control-input\">\n <syn-popup\n class=${classMap({\n select: true,\n 'select--standard': true,\n 'select--open': this.open,\n 'select--disabled': this.disabled,\n 'select--multiple': this.multiple,\n 'select--focused': this.hasFocus,\n 'select--placeholder-visible': isPlaceholderVisible,\n 'select--top': this.placement === 'top',\n 'select--bottom': this.placement === 'bottom',\n 'select--small': this.size === 'small',\n 'select--medium': this.size === 'medium',\n 'select--large': this.size === 'large'\n })}\n placement=${this.placement}\n strategy=${this.hoist ? 'fixed' : 'absolute'}\n flip\n shift\n sync=\"width\"\n auto-size=\"vertical\"\n auto-size-padding=\"10\"\n >\n <div\n part=\"combobox\"\n class=\"select__combobox\"\n slot=\"anchor\"\n @keydown=${this.handleComboboxKeyDown}\n @mousedown=${this.handleComboboxMouseDown}\n >\n <slot part=\"prefix\" name=\"prefix\" class=\"select__prefix\"></slot>\n\n <input\n part=\"display-input\"\n class=\"select__display-input\"\n type=\"text\"\n placeholder=${this.placeholder}\n .disabled=${this.disabled}\n .value=${this.displayLabel}\n autocomplete=\"off\"\n spellcheck=\"false\"\n autocapitalize=\"off\"\n readonly\n aria-controls=\"listbox\"\n aria-expanded=${this.open ? 'true' : 'false'}\n aria-haspopup=\"listbox\"\n aria-labelledby=\"label\"\n aria-disabled=${this.disabled ? 'true' : 'false'}\n aria-describedby=\"help-text\"\n role=\"combobox\"\n tabindex=\"0\"\n @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n />\n\n ${this.multiple ? html`<div part=\"tags\" class=\"select__tags\">${this.tags}</div>` : ''}\n\n <input\n class=\"select__value-input\"\n type=\"text\"\n ?disabled=${this.disabled}\n ?required=${this.required}\n .value=${Array.isArray(this.value) ? this.value.join(', ') : this.value}\n tabindex=\"-1\"\n aria-hidden=\"true\"\n @focus=${() => this.focus()}\n @invalid=${this.handleInvalid}\n />\n\n ${hasClearIcon\n ? html`\n <button\n part=\"clear-button\"\n class=\"select__clear\"\n type=\"button\"\n aria-label=${this.localize.term('clearEntry')}\n @mousedown=${this.handleClearMouseDown}\n @click=${this.handleClearClick}\n tabindex=\"-1\"\n >\n <slot name=\"clear-icon\">\n <syn-icon name=\"x-circle-fill\" library=\"system\"></syn-icon>\n </slot>\n </button>\n `\n : ''}\n\n <slot name=\"expand-icon\" part=\"expand-icon\" class=\"select__expand-icon\">\n <syn-icon library=\"system\" name=\"chevron-down\"></syn-icon>\n </slot>\n </div>\n\n <div\n id=\"listbox\"\n role=\"listbox\"\n aria-expanded=${this.open ? 'true' : 'false'}\n aria-multiselectable=${this.multiple ? 'true' : 'false'}\n aria-labelledby=\"label\"\n part=\"listbox\"\n class=\"select__listbox\"\n tabindex=\"-1\"\n @mouseup=${this.handleOptionClick}\n @slotchange=${this.handleDefaultSlotChange}\n >\n <slot></slot>\n </div>\n </syn-popup>\n </div>\n\n <div\n part=\"form-control-help-text\"\n id=\"help-text\"\n class=\"form-control__help-text\"\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n}\n\nsetDefaultAnimation('select.show', {\n keyframes: [\n { opacity: 0, scale: 0.9 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 100, easing: 'ease' }\n});\n\nsetDefaultAnimation('select.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.9 }\n ],\n options: { duration: 100, easing: 'ease' }\n});\n", "// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\n/**\n * Returns an element's offset relative to its parent. Similar to element.offsetTop and element.offsetLeft, except the\n * parent doesn't have to be positioned relative or absolute.\n *\n * NOTE: This was created to work around what appears to be a bug in Chrome where a slotted element's offsetParent seems\n * to ignore elements inside the surrounding shadow DOM: https://bugs.chromium.org/p/chromium/issues/detail?id=920069\n */\nexport function getOffset(element: HTMLElement, parent: HTMLElement) {\n return {\n top: Math.round(element.getBoundingClientRect().top - parent.getBoundingClientRect().top),\n left: Math.round(element.getBoundingClientRect().left - parent.getBoundingClientRect().left)\n };\n}\n", "// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { getOffset } from './offset.js';\n\nconst locks = new Set();\n\n/** Returns the width of the document's scrollbar */\nfunction getScrollbarWidth() {\n const documentWidth = document.documentElement.clientWidth;\n return Math.abs(window.innerWidth - documentWidth);\n}\n\n/**\n * Prevents body scrolling. Keeps track of which elements requested a lock so multiple levels of locking are possible\n * without premature unlocking.\n */\nexport function lockBodyScrolling(lockingEl: HTMLElement) {\n locks.add(lockingEl);\n\n // When the first lock is created, set the scroll lock size to match the scrollbar's width to prevent content from\n // shifting. We only do this on the first lock because the scrollbar width will measure zero after overflow is hidden.\n if (!document.body.classList.contains('syn-scroll-lock')) {\n const scrollbarWidth = getScrollbarWidth(); // must be measured before the `syn-scroll-lock` class is applied\n document.body.classList.add('syn-scroll-lock');\n document.body.style.setProperty('--syn-scroll-lock-size', `${scrollbarWidth}px`);\n }\n}\n\n/**\n * Unlocks body scrolling. Scrolling will only be unlocked once all elements that requested a lock call this method.\n */\nexport function unlockBodyScrolling(lockingEl: HTMLElement) {\n locks.delete(lockingEl);\n\n if (locks.size === 0) {\n document.body.classList.remove('syn-scroll-lock');\n document.body.style.removeProperty('--syn-scroll-lock-size');\n }\n}\n\n/** Scrolls an element into view of its container. If the element is already in view, nothing will happen. */\nexport function scrollIntoView(\n element: HTMLElement,\n container: HTMLElement,\n direction: 'horizontal' | 'vertical' | 'both' = 'vertical',\n behavior: 'smooth' | 'auto' = 'smooth'\n) {\n const offset = getOffset(element, container);\n const offsetTop = offset.top + container.scrollTop;\n const offsetLeft = offset.left + container.scrollLeft;\n const minX = container.scrollLeft;\n const maxX = container.scrollLeft + container.offsetWidth;\n const minY = container.scrollTop;\n const maxY = container.scrollTop + container.offsetHeight;\n\n if (direction === 'horizontal' || direction === 'both') {\n if (offsetLeft < minX) {\n container.scrollTo({ left: offsetLeft, behavior });\n } else if (offsetLeft + element.clientWidth > maxX) {\n container.scrollTo({ left: offsetLeft - container.offsetWidth + element.clientWidth, behavior });\n }\n }\n\n if (direction === 'vertical' || direction === 'both') {\n if (offsetTop < minY) {\n container.scrollTo({ top: offsetTop, behavior });\n } else if (offsetTop + element.clientHeight > maxY) {\n container.scrollTo({ top: offsetTop - container.offsetHeight + element.clientHeight, behavior });\n }\n }\n}\n", "// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\n/** Waits for a specific event to be emitted from an element. Ignores events that bubble up from child elements. */\nexport function waitForEvent(el: HTMLElement, eventName: string) {\n return new Promise<void>(resolve => {\n function done(event: Event) {\n if (event.target === el) {\n el.removeEventListener(eventName, done);\n resolve();\n }\n }\n\n el.addEventListener(eventName, done);\n });\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASO,SAAS,UAAU,IAAiB,WAAuB,SAAoC;AACpG,SAAO,IAAI,QAAQ,aAAW;AAC5B,SAAI,mCAAS,cAAa,UAAU;AAClC,YAAM,IAAI,MAAM,0CAA0C;AAAA,IAC5D;AAEA,UAAM,YAAY,GAAG,QAAQ,WAAW,iCACnC,UADmC;AAAA,MAEtC,UAAU,qBAAqB,IAAI,IAAI,QAAS;AAAA,IAClD,EAAC;AAED,cAAU,iBAAiB,UAAU,SAAS,EAAE,MAAM,KAAK,CAAC;AAC5D,cAAU,iBAAiB,UAAU,SAAS,EAAE,MAAM,KAAK,CAAC;AAAA,EAC9D,CAAC;AACH;AAkBO,SAAS,uBAAuB;AACrC,QAAMA,SAAQ,OAAO,WAAW,kCAAkC;AAClE,SAAOA,OAAM;AACf;AAKO,SAAS,eAAe,IAAiB;AAC9C,SAAO,QAAQ;AAAA,IACb,GAAG,cAAc,EAAE,IAAI,eAAa;AAClC,aAAO,IAAI,QAAQ,aAAW;AAC5B,cAAM,uBAAuB,sBAAsB,OAAO;AAE1D,kBAAU,iBAAiB,UAAU,MAAM,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAC/E,kBAAU,iBAAiB,UAAU,MAAM,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAC/E,kBAAU,OAAO;AAAA,MACnB,CAAC;AAAA,IACH,CAAC;AAAA,EACH;AACF;;;ACtDA,SAAS,gBAAgB;AAKzB,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;;;ACDhC,SAAS,UAAU,SAAsB,QAAqB;AACnE,SAAO;AAAA,IACL,KAAK,KAAK,MAAM,QAAQ,sBAAsB,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AsB,KAAK,CAAC;AAAA,GAlhB3B,UAmhBnB;AASM;AAAA,EADL,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA3hB1B,UA4hBb;AAwPR,oBAAoB,eAAe;AAAA,EACjC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,IACzB,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,EACzB;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,eAAe;AAAA,EACjC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,IACvB,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,EAC3B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;",
|
|
6
|
-
"names": ["query"]
|
|
7
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|