@synergy-design-system/components 1.4.0 → 1.5.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/dist/chunks/chunk.3B24TYVN.js +51 -0
- package/dist/chunks/chunk.3B24TYVN.js.map +7 -0
- package/dist/chunks/chunk.3HPG73GG.js +132 -0
- package/dist/chunks/chunk.3HPG73GG.js.map +7 -0
- package/dist/chunks/chunk.4KLCSMRA.js +96 -0
- package/dist/chunks/chunk.4KLCSMRA.js.map +7 -0
- package/dist/chunks/{chunk.BOURWTS5.js → chunk.4ZO3EKCL.js} +2 -2
- package/dist/chunks/{chunk.JFCQYLZB.js → chunk.5NJ7WWJW.js} +2 -2
- package/dist/chunks/{chunk.C2S53NYE.js → chunk.63IJYG6Q.js} +2 -2
- package/dist/chunks/chunk.6XU6OLZ3.js +310 -0
- package/dist/chunks/chunk.6XU6OLZ3.js.map +7 -0
- package/dist/chunks/{chunk.MMNPLBTH.js → chunk.7BHGTNHS.js} +2 -2
- package/dist/chunks/chunk.7HS3TULI.js +12 -0
- package/dist/chunks/chunk.7HS3TULI.js.map +7 -0
- package/dist/chunks/{chunk.VYKSU5VJ.js → chunk.A4YWJJLD.js} +2 -2
- package/dist/chunks/{chunk.43NPPDUU.js → chunk.AVJQ2BSM.js} +2 -2
- package/dist/chunks/{chunk.W46CFM2R.js → chunk.B2EJGIGY.js} +7 -13
- package/dist/chunks/chunk.B2EJGIGY.js.map +7 -0
- package/dist/chunks/chunk.BQG5LF7J.js +47 -0
- package/dist/chunks/chunk.BQG5LF7J.js.map +7 -0
- package/dist/chunks/{chunk.SNP6OECI.js → chunk.C5W2Y6KW.js} +8 -8
- package/dist/chunks/{chunk.SNP6OECI.js.map → chunk.C5W2Y6KW.js.map} +2 -2
- package/dist/chunks/{chunk.NZAZG5AN.js → chunk.CUHMPG7E.js} +3 -3
- package/dist/chunks/{chunk.7CKINLE4.js → chunk.DLDE3BC5.js} +2 -2
- package/dist/chunks/{chunk.RSGJ7C32.js → chunk.DPTZN6HY.js} +2 -2
- package/dist/chunks/{chunk.GKFUZ44I.js → chunk.ELPJP6AL.js} +2 -2
- package/dist/chunks/{chunk.4NG4BW3G.js → chunk.FLCUFEHS.js} +2 -2
- package/dist/chunks/chunk.FOTO5B4G.js +12 -0
- package/dist/chunks/chunk.FOTO5B4G.js.map +7 -0
- package/dist/chunks/{chunk.3CAAVHZZ.js → chunk.GAMJZXEL.js} +2 -2
- package/dist/chunks/{chunk.QT64OSWO.js → chunk.GGNKDYC2.js} +7 -7
- package/dist/chunks/{chunk.POZGJMTS.js → chunk.GYDJFPHM.js} +2 -2
- package/dist/chunks/{chunk.YL6PYHOS.js → chunk.IESSP23D.js} +7 -7
- package/dist/chunks/{chunk.62GAQV3Z.js → chunk.IYKQTZIY.js} +3 -3
- package/dist/chunks/{chunk.I2JLECCQ.js → chunk.JEOPTEUQ.js} +3 -3
- package/dist/chunks/{chunk.QBM7YT5M.js → chunk.JLTYAQFG.js} +2 -2
- package/dist/chunks/chunk.JN7CLMQZ.js +53 -0
- package/dist/chunks/chunk.JN7CLMQZ.js.map +7 -0
- package/dist/chunks/{chunk.7DUTGUSD.js → chunk.JQWJ7PHD.js} +2 -2
- package/dist/chunks/chunk.JXOHBU6V.js +334 -0
- package/dist/chunks/chunk.JXOHBU6V.js.map +7 -0
- package/dist/chunks/chunk.KG52EHDB.js +60 -0
- package/dist/chunks/chunk.KG52EHDB.js.map +7 -0
- package/dist/chunks/{chunk.OXUFFH57.js → chunk.KUZJTGHQ.js} +2 -2
- package/dist/chunks/{chunk.T27ALSOE.js → chunk.LL3V6HVM.js} +2 -2
- package/dist/chunks/{chunk.A4KYHNIH.js → chunk.LTCRPIZ5.js} +2 -2
- package/dist/chunks/{chunk.2Z2FGA3I.js → chunk.OPVDSHPD.js} +2 -2
- package/dist/chunks/chunk.OWMT6OL2.js +82 -0
- package/dist/chunks/chunk.OWMT6OL2.js.map +7 -0
- package/dist/chunks/{chunk.FSHPI6B5.js → chunk.PQLAXTRQ.js} +3 -3
- package/dist/chunks/{chunk.SHF6MEDK.js → chunk.RU7P5HHF.js} +2 -2
- package/dist/chunks/chunk.SS46QCYH.js +811 -0
- package/dist/chunks/chunk.SS46QCYH.js.map +7 -0
- package/dist/chunks/{chunk.ZKVZHEJM.js → chunk.TY5F2VTK.js} +2 -2
- package/dist/chunks/{chunk.533DZ5GZ.js → chunk.UGYBBM5O.js} +3 -3
- package/dist/chunks/chunk.UXUMV3TL.js +12 -0
- package/dist/chunks/chunk.UXUMV3TL.js.map +7 -0
- package/dist/chunks/chunk.W6V7TPGK.js +104 -0
- package/dist/chunks/chunk.W6V7TPGK.js.map +7 -0
- package/dist/chunks/{chunk.NQZRYJEZ.js → chunk.Y6HNLEFW.js} +2 -2
- package/dist/components/button/button.component.js +5 -5
- package/dist/components/button/button.js +6 -6
- 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 +6 -6
- package/dist/components/input/input.custom.styles.js +1 -1
- package/dist/components/input/input.js +7 -7
- package/dist/components/input/input.styles.js +2 -2
- 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 +2 -2
- package/dist/components/radio-button/radio-button.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 +63 -40
- 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 +32 -31
- package/dist/chunks/chunk.W46CFM2R.js.map +0 -7
- /package/dist/chunks/{chunk.BOURWTS5.js.map → chunk.4ZO3EKCL.js.map} +0 -0
- /package/dist/chunks/{chunk.JFCQYLZB.js.map → chunk.5NJ7WWJW.js.map} +0 -0
- /package/dist/chunks/{chunk.C2S53NYE.js.map → chunk.63IJYG6Q.js.map} +0 -0
- /package/dist/chunks/{chunk.MMNPLBTH.js.map → chunk.7BHGTNHS.js.map} +0 -0
- /package/dist/chunks/{chunk.VYKSU5VJ.js.map → chunk.A4YWJJLD.js.map} +0 -0
- /package/dist/chunks/{chunk.43NPPDUU.js.map → chunk.AVJQ2BSM.js.map} +0 -0
- /package/dist/chunks/{chunk.NZAZG5AN.js.map → chunk.CUHMPG7E.js.map} +0 -0
- /package/dist/chunks/{chunk.7CKINLE4.js.map → chunk.DLDE3BC5.js.map} +0 -0
- /package/dist/chunks/{chunk.RSGJ7C32.js.map → chunk.DPTZN6HY.js.map} +0 -0
- /package/dist/chunks/{chunk.GKFUZ44I.js.map → chunk.ELPJP6AL.js.map} +0 -0
- /package/dist/chunks/{chunk.4NG4BW3G.js.map → chunk.FLCUFEHS.js.map} +0 -0
- /package/dist/chunks/{chunk.3CAAVHZZ.js.map → chunk.GAMJZXEL.js.map} +0 -0
- /package/dist/chunks/{chunk.QT64OSWO.js.map → chunk.GGNKDYC2.js.map} +0 -0
- /package/dist/chunks/{chunk.POZGJMTS.js.map → chunk.GYDJFPHM.js.map} +0 -0
- /package/dist/chunks/{chunk.YL6PYHOS.js.map → chunk.IESSP23D.js.map} +0 -0
- /package/dist/chunks/{chunk.62GAQV3Z.js.map → chunk.IYKQTZIY.js.map} +0 -0
- /package/dist/chunks/{chunk.I2JLECCQ.js.map → chunk.JEOPTEUQ.js.map} +0 -0
- /package/dist/chunks/{chunk.QBM7YT5M.js.map → chunk.JLTYAQFG.js.map} +0 -0
- /package/dist/chunks/{chunk.7DUTGUSD.js.map → chunk.JQWJ7PHD.js.map} +0 -0
- /package/dist/chunks/{chunk.OXUFFH57.js.map → chunk.KUZJTGHQ.js.map} +0 -0
- /package/dist/chunks/{chunk.T27ALSOE.js.map → chunk.LL3V6HVM.js.map} +0 -0
- /package/dist/chunks/{chunk.A4KYHNIH.js.map → chunk.LTCRPIZ5.js.map} +0 -0
- /package/dist/chunks/{chunk.2Z2FGA3I.js.map → chunk.OPVDSHPD.js.map} +0 -0
- /package/dist/chunks/{chunk.FSHPI6B5.js.map → chunk.PQLAXTRQ.js.map} +0 -0
- /package/dist/chunks/{chunk.SHF6MEDK.js.map → chunk.RU7P5HHF.js.map} +0 -0
- /package/dist/chunks/{chunk.ZKVZHEJM.js.map → chunk.TY5F2VTK.js.map} +0 -0
- /package/dist/chunks/{chunk.533DZ5GZ.js.map → chunk.UGYBBM5O.js.map} +0 -0
- /package/dist/chunks/{chunk.NQZRYJEZ.js.map → chunk.Y6HNLEFW.js.map} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
input_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.GAMJZXEL.js";
|
|
4
|
+
import "../../chunks/chunk.IESSP23D.js";
|
|
5
|
+
import "../../chunks/chunk.KUZJTGHQ.js";
|
|
6
6
|
import "../../chunks/chunk.JHXCBOUD.js";
|
|
7
|
-
import "../../chunks/chunk.
|
|
7
|
+
import "../../chunks/chunk.B2EJGIGY.js";
|
|
8
8
|
import "../../chunks/chunk.WFAJR3FN.js";
|
|
9
|
+
import "../../chunks/chunk.XGXFE6IF.js";
|
|
9
10
|
import "../../chunks/chunk.LAB4YJYE.js";
|
|
10
11
|
import "../../chunks/chunk.A3SKDWCT.js";
|
|
11
|
-
import "../../chunks/chunk.XGXFE6IF.js";
|
|
12
12
|
import "../../chunks/chunk.AMTCNRDE.js";
|
|
13
|
-
import "../../chunks/chunk.
|
|
13
|
+
import "../../chunks/chunk.63IJYG6Q.js";
|
|
14
14
|
import "../../chunks/chunk.RSONAU45.js";
|
|
15
15
|
import "../../chunks/chunk.PJO6TM3T.js";
|
|
16
16
|
import "../../chunks/chunk.JRXQK6LG.js";
|
|
@@ -18,7 +18,7 @@ import "../../chunks/chunk.6C4JXZZN.js";
|
|
|
18
18
|
import "../../chunks/chunk.5AAIHRMI.js";
|
|
19
19
|
import "../../chunks/chunk.VZ7S7YYN.js";
|
|
20
20
|
import "../../chunks/chunk.C7624ITA.js";
|
|
21
|
-
import "../../chunks/chunk.
|
|
21
|
+
import "../../chunks/chunk.C5W2Y6KW.js";
|
|
22
22
|
import "../../chunks/chunk.O7USYXBT.js";
|
|
23
23
|
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
24
24
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
input_styles_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.KUZJTGHQ.js";
|
|
4
4
|
import "../../chunks/chunk.JHXCBOUD.js";
|
|
5
|
-
import "../../chunks/chunk.
|
|
5
|
+
import "../../chunks/chunk.B2EJGIGY.js";
|
|
6
6
|
import "../../chunks/chunk.O7USYXBT.js";
|
|
7
7
|
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
8
8
|
export {
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
|
+
import SynergyElement from '../../internal/synergy-element.js';
|
|
3
|
+
import SynDivider from '../divider/divider.component.js';
|
|
4
|
+
/**
|
|
5
|
+
* @summary The <syn-optgroup> element creates a grouping for <syn-option>s within a <syn-select>.
|
|
6
|
+
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-optgroup--docs
|
|
7
|
+
* @status stable
|
|
8
|
+
* @since 1.3.0
|
|
9
|
+
*
|
|
10
|
+
* @dependency syn-divider
|
|
11
|
+
*
|
|
12
|
+
* @slot - The given options. Must be `<syn-option>` elements.
|
|
13
|
+
* @slot prefix - A presentational prefix icon or similar element.
|
|
14
|
+
* @slot label - The label for the optgroup
|
|
15
|
+
* @slot suffix - A presentational suffix icon or similar element.
|
|
16
|
+
*
|
|
17
|
+
* @csspart base - The component's base wrapper.
|
|
18
|
+
* @csspart label-container - The container that wraps prefix, label and base
|
|
19
|
+
* @csspart divider - The divider that is displayed above the content
|
|
20
|
+
* @csspart prefix - The container that wraps the prefix.
|
|
21
|
+
* @csspart suffix - The container that wraps the suffix.
|
|
22
|
+
* @csspart options - The container that wraps the <syn-option> elements.
|
|
23
|
+
*
|
|
24
|
+
* @cssproperty --display-divider - Display property of the divider. Defaults to "block"
|
|
25
|
+
*/
|
|
26
|
+
export default class SynOptgroup extends SynergyElement {
|
|
27
|
+
static styles: CSSResultGroup;
|
|
28
|
+
static dependencies: {
|
|
29
|
+
'syn-divider': typeof SynDivider;
|
|
30
|
+
};
|
|
31
|
+
private readonly hasSlotController;
|
|
32
|
+
defaultSlot: HTMLSlotElement;
|
|
33
|
+
/**
|
|
34
|
+
* Syncs the disabled prop for all slotted syn-options when it is triggered
|
|
35
|
+
*/
|
|
36
|
+
private handleDisableOptions;
|
|
37
|
+
/**
|
|
38
|
+
* Disables all options in the optgroup.
|
|
39
|
+
*/
|
|
40
|
+
disabled: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The optgroups label. If you need to display HTML, use the `label` slot instead.
|
|
43
|
+
*/
|
|
44
|
+
label: string;
|
|
45
|
+
handleDisabledChange(): void;
|
|
46
|
+
render(): import("lit").TemplateResult;
|
|
47
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynOptgroup
|
|
3
|
+
} from "../../chunks/chunk.4KLCSMRA.js";
|
|
4
|
+
import "../../chunks/chunk.KG52EHDB.js";
|
|
5
|
+
import "../../chunks/chunk.LTCRPIZ5.js";
|
|
6
|
+
import "../../chunks/chunk.PGCXJ2PT.js";
|
|
7
|
+
import "../../chunks/chunk.FA6V2WD6.js";
|
|
8
|
+
import "../../chunks/chunk.XGXFE6IF.js";
|
|
9
|
+
import "../../chunks/chunk.VZ7S7YYN.js";
|
|
10
|
+
import "../../chunks/chunk.C5W2Y6KW.js";
|
|
11
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
12
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
13
|
+
export {
|
|
14
|
+
SynOptgroup as default
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=optgroup.component.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
optgroup_default
|
|
3
|
+
} from "../../chunks/chunk.UXUMV3TL.js";
|
|
4
|
+
import "../../chunks/chunk.4KLCSMRA.js";
|
|
5
|
+
import "../../chunks/chunk.KG52EHDB.js";
|
|
6
|
+
import "../../chunks/chunk.LTCRPIZ5.js";
|
|
7
|
+
import "../../chunks/chunk.PGCXJ2PT.js";
|
|
8
|
+
import "../../chunks/chunk.FA6V2WD6.js";
|
|
9
|
+
import "../../chunks/chunk.XGXFE6IF.js";
|
|
10
|
+
import "../../chunks/chunk.VZ7S7YYN.js";
|
|
11
|
+
import "../../chunks/chunk.C5W2Y6KW.js";
|
|
12
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
13
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
14
|
+
export {
|
|
15
|
+
optgroup_default as default
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=optgroup.js.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import SynergyElement from '../../internal/synergy-element.js';
|
|
2
|
+
import SynIcon from '../icon/icon.component.js';
|
|
3
|
+
import type { CSSResultGroup } from 'lit';
|
|
4
|
+
/**
|
|
5
|
+
* @summary Options define the selectable items within various form controls such as [select](/components/select).
|
|
6
|
+
* @documentation https://synergy.style/components/option
|
|
7
|
+
* @status stable
|
|
8
|
+
* @since 2.0
|
|
9
|
+
*
|
|
10
|
+
* @dependency syn-icon
|
|
11
|
+
*
|
|
12
|
+
* @slot - The option's label.
|
|
13
|
+
* @slot prefix - Used to prepend an icon or similar element to the menu item.
|
|
14
|
+
* @slot suffix - Used to append an icon or similar element to the menu item.
|
|
15
|
+
*
|
|
16
|
+
* @csspart checked-icon - The checked icon, an `<syn-icon>` element.
|
|
17
|
+
* @csspart base - The component's base wrapper.
|
|
18
|
+
* @csspart label - The option's label.
|
|
19
|
+
* @csspart prefix - The container that wraps the prefix.
|
|
20
|
+
* @csspart suffix - The container that wraps the suffix.
|
|
21
|
+
*/
|
|
22
|
+
export default class SynOption extends SynergyElement {
|
|
23
|
+
static styles: CSSResultGroup;
|
|
24
|
+
static dependencies: {
|
|
25
|
+
'syn-icon': typeof SynIcon;
|
|
26
|
+
};
|
|
27
|
+
private cachedTextLabel;
|
|
28
|
+
private readonly localize;
|
|
29
|
+
defaultSlot: HTMLSlotElement;
|
|
30
|
+
current: boolean;
|
|
31
|
+
selected: boolean;
|
|
32
|
+
hasHover: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* The option's value. When selected, the containing form control will receive this value. The value must be unique
|
|
35
|
+
* from other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing
|
|
36
|
+
* multiple values.
|
|
37
|
+
*/
|
|
38
|
+
value: string;
|
|
39
|
+
/** Draws the option in a disabled state, preventing selection. */
|
|
40
|
+
disabled: boolean;
|
|
41
|
+
connectedCallback(): void;
|
|
42
|
+
private handleDefaultSlotChange;
|
|
43
|
+
private handleMouseEnter;
|
|
44
|
+
private handleMouseLeave;
|
|
45
|
+
handleDisabledChange(): void;
|
|
46
|
+
handleSelectedChange(): void;
|
|
47
|
+
handleValueChange(): void;
|
|
48
|
+
/** Returns a plain text label based on the option's content. */
|
|
49
|
+
getTextLabel(): string;
|
|
50
|
+
render(): import("lit").TemplateResult<1>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynOption
|
|
3
|
+
} from "../../chunks/chunk.3HPG73GG.js";
|
|
4
|
+
import "../../chunks/chunk.W6V7TPGK.js";
|
|
5
|
+
import "../../chunks/chunk.3B24TYVN.js";
|
|
6
|
+
import "../../chunks/chunk.LAB4YJYE.js";
|
|
7
|
+
import "../../chunks/chunk.A3SKDWCT.js";
|
|
8
|
+
import "../../chunks/chunk.63IJYG6Q.js";
|
|
9
|
+
import "../../chunks/chunk.RSONAU45.js";
|
|
10
|
+
import "../../chunks/chunk.PJO6TM3T.js";
|
|
11
|
+
import "../../chunks/chunk.JRXQK6LG.js";
|
|
12
|
+
import "../../chunks/chunk.6C4JXZZN.js";
|
|
13
|
+
import "../../chunks/chunk.5AAIHRMI.js";
|
|
14
|
+
import "../../chunks/chunk.VZ7S7YYN.js";
|
|
15
|
+
import "../../chunks/chunk.C7624ITA.js";
|
|
16
|
+
import "../../chunks/chunk.C5W2Y6KW.js";
|
|
17
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
18
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
19
|
+
export {
|
|
20
|
+
SynOption as default
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=option.component.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
option_default
|
|
3
|
+
} from "../../chunks/chunk.7HS3TULI.js";
|
|
4
|
+
import "../../chunks/chunk.3HPG73GG.js";
|
|
5
|
+
import "../../chunks/chunk.W6V7TPGK.js";
|
|
6
|
+
import "../../chunks/chunk.3B24TYVN.js";
|
|
7
|
+
import "../../chunks/chunk.LAB4YJYE.js";
|
|
8
|
+
import "../../chunks/chunk.A3SKDWCT.js";
|
|
9
|
+
import "../../chunks/chunk.63IJYG6Q.js";
|
|
10
|
+
import "../../chunks/chunk.RSONAU45.js";
|
|
11
|
+
import "../../chunks/chunk.PJO6TM3T.js";
|
|
12
|
+
import "../../chunks/chunk.JRXQK6LG.js";
|
|
13
|
+
import "../../chunks/chunk.6C4JXZZN.js";
|
|
14
|
+
import "../../chunks/chunk.5AAIHRMI.js";
|
|
15
|
+
import "../../chunks/chunk.VZ7S7YYN.js";
|
|
16
|
+
import "../../chunks/chunk.C7624ITA.js";
|
|
17
|
+
import "../../chunks/chunk.C5W2Y6KW.js";
|
|
18
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
19
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
20
|
+
export {
|
|
21
|
+
option_default as default
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=option.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
option_styles_default
|
|
3
|
+
} from "../../chunks/chunk.W6V7TPGK.js";
|
|
4
|
+
import "../../chunks/chunk.3B24TYVN.js";
|
|
5
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
6
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
7
|
+
export {
|
|
8
|
+
option_styles_default as default
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=option.styles.js.map
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import SynergyElement from '../../internal/synergy-element.js';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
export interface VirtualElement {
|
|
4
|
+
getBoundingClientRect: () => DOMRect;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @summary Popup is a utility that lets you declaratively anchor "popup" containers to another element.
|
|
8
|
+
* @documentation https://synergy.style/components/popup
|
|
9
|
+
* @status stable
|
|
10
|
+
* @since 2.0
|
|
11
|
+
*
|
|
12
|
+
* @event syn-reposition - Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive
|
|
13
|
+
* operations in your listener or consider debouncing it.
|
|
14
|
+
*
|
|
15
|
+
* @slot - The popup's content.
|
|
16
|
+
* @slot anchor - The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the
|
|
17
|
+
* `anchor` attribute or property instead.
|
|
18
|
+
*
|
|
19
|
+
* @csspart arrow - The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are
|
|
20
|
+
* assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and
|
|
21
|
+
* maybe a border or box shadow.
|
|
22
|
+
* @csspart popup - The popup's container. Useful for setting a background color, box shadow, etc.
|
|
23
|
+
*
|
|
24
|
+
* @cssproperty [--arrow-size=6px] - The size of the arrow. Note that an arrow won't be shown unless the `arrow`
|
|
25
|
+
* attribute is used.
|
|
26
|
+
* @cssproperty [--arrow-color=var(--syn-color-neutral-0)] - The color of the arrow.
|
|
27
|
+
* @cssproperty [--auto-size-available-width] - A read-only custom property that determines the amount of width the
|
|
28
|
+
* popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only
|
|
29
|
+
* available when using `auto-size`.
|
|
30
|
+
* @cssproperty [--auto-size-available-height] - A read-only custom property that determines the amount of height the
|
|
31
|
+
* popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only
|
|
32
|
+
* available when using `auto-size`.
|
|
33
|
+
*/
|
|
34
|
+
export default class SynPopup extends SynergyElement {
|
|
35
|
+
static styles: CSSResultGroup;
|
|
36
|
+
private anchorEl;
|
|
37
|
+
private cleanup;
|
|
38
|
+
/** A reference to the internal popup container. Useful for animating and styling the popup with JavaScript. */
|
|
39
|
+
popup: HTMLElement;
|
|
40
|
+
private arrowEl;
|
|
41
|
+
/**
|
|
42
|
+
* The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide the anchor
|
|
43
|
+
* element `id`, a DOM element reference, or a `VirtualElement`. If the anchor lives inside the popup, use the
|
|
44
|
+
* `anchor` slot instead.
|
|
45
|
+
*/
|
|
46
|
+
anchor: Element | string | VirtualElement;
|
|
47
|
+
/**
|
|
48
|
+
* Activates the positioning logic and shows the popup. When this attribute is removed, the positioning logic is torn
|
|
49
|
+
* down and the popup will be hidden.
|
|
50
|
+
*/
|
|
51
|
+
active: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The preferred placement of the popup. Note that the actual placement will vary as configured to keep the
|
|
54
|
+
* panel inside of the viewport.
|
|
55
|
+
*/
|
|
56
|
+
placement: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
57
|
+
/**
|
|
58
|
+
* Determines how the popup is positioned. The `absolute` strategy works well in most cases, but if overflow is
|
|
59
|
+
* clipped, using a `fixed` position strategy can often workaround it.
|
|
60
|
+
*/
|
|
61
|
+
strategy: 'absolute' | 'fixed';
|
|
62
|
+
/** The distance in pixels from which to offset the panel away from its anchor. */
|
|
63
|
+
distance: number;
|
|
64
|
+
/** The distance in pixels from which to offset the panel along its anchor. */
|
|
65
|
+
skidding: number;
|
|
66
|
+
/**
|
|
67
|
+
* Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and
|
|
68
|
+
* `--arrow-color` custom properties. For additional customizations, you can also target the arrow using
|
|
69
|
+
* `::part(arrow)` in your stylesheet.
|
|
70
|
+
*/
|
|
71
|
+
arrow: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the
|
|
74
|
+
* anchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will
|
|
75
|
+
* align the arrow to the start, end, or center of the popover instead.
|
|
76
|
+
*/
|
|
77
|
+
arrowPlacement: 'start' | 'end' | 'center' | 'anchor';
|
|
78
|
+
/**
|
|
79
|
+
* The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example,
|
|
80
|
+
* this will prevent it from overflowing the corners.
|
|
81
|
+
*/
|
|
82
|
+
arrowPadding: number;
|
|
83
|
+
/**
|
|
84
|
+
* When set, placement of the popup will flip to the opposite site to keep it in view. You can use
|
|
85
|
+
* `flipFallbackPlacements` to further configure how the fallback placement is determined.
|
|
86
|
+
*/
|
|
87
|
+
flip: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* If the preferred placement doesn't fit, popup will be tested in these fallback placements until one fits. Must be a
|
|
90
|
+
* string of any number of placements separated by a space, e.g. "top bottom left". If no placement fits, the flip
|
|
91
|
+
* fallback strategy will be used instead.
|
|
92
|
+
* */
|
|
93
|
+
flipFallbackPlacements: string;
|
|
94
|
+
/**
|
|
95
|
+
* When neither the preferred placement nor the fallback placements fit, this value will be used to determine whether
|
|
96
|
+
* the popup should be positioned using the best available fit based on available space or as it was initially
|
|
97
|
+
* preferred.
|
|
98
|
+
*/
|
|
99
|
+
flipFallbackStrategy: 'best-fit' | 'initial';
|
|
100
|
+
/**
|
|
101
|
+
* The flip boundary describes clipping element(s) that overflow will be checked relative to when flipping. By
|
|
102
|
+
* default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can
|
|
103
|
+
* change the boundary by passing a reference to one or more elements to this property.
|
|
104
|
+
*/
|
|
105
|
+
flipBoundary: Element | Element[];
|
|
106
|
+
/** The amount of padding, in pixels, to exceed before the flip behavior will occur. */
|
|
107
|
+
flipPadding: number;
|
|
108
|
+
/** Moves the popup along the axis to keep it in view when clipped. */
|
|
109
|
+
shift: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* The shift boundary describes clipping element(s) that overflow will be checked relative to when shifting. By
|
|
112
|
+
* default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can
|
|
113
|
+
* change the boundary by passing a reference to one or more elements to this property.
|
|
114
|
+
*/
|
|
115
|
+
shiftBoundary: Element | Element[];
|
|
116
|
+
/** The amount of padding, in pixels, to exceed before the shift behavior will occur. */
|
|
117
|
+
shiftPadding: number;
|
|
118
|
+
/** When set, this will cause the popup to automatically resize itself to prevent it from overflowing. */
|
|
119
|
+
autoSize: 'horizontal' | 'vertical' | 'both';
|
|
120
|
+
/** Syncs the popup's width or height to that of the anchor element. */
|
|
121
|
+
sync: 'width' | 'height' | 'both';
|
|
122
|
+
/**
|
|
123
|
+
* The auto-size boundary describes clipping element(s) that overflow will be checked relative to when resizing. By
|
|
124
|
+
* default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can
|
|
125
|
+
* change the boundary by passing a reference to one or more elements to this property.
|
|
126
|
+
*/
|
|
127
|
+
autoSizeBoundary: Element | Element[];
|
|
128
|
+
/** The amount of padding, in pixels, to exceed before the auto-size behavior will occur. */
|
|
129
|
+
autoSizePadding: number;
|
|
130
|
+
connectedCallback(): Promise<void>;
|
|
131
|
+
disconnectedCallback(): void;
|
|
132
|
+
updated(changedProps: Map<string, unknown>): Promise<void>;
|
|
133
|
+
private handleAnchorChange;
|
|
134
|
+
private start;
|
|
135
|
+
private stop;
|
|
136
|
+
/** Forces the popup to recalculate and reposition itself. */
|
|
137
|
+
reposition(): void;
|
|
138
|
+
render(): import("lit").TemplateResult<1>;
|
|
139
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynPopup
|
|
3
|
+
} from "../../chunks/chunk.JXOHBU6V.js";
|
|
4
|
+
import "../../chunks/chunk.JN7CLMQZ.js";
|
|
5
|
+
import "../../chunks/chunk.C5W2Y6KW.js";
|
|
6
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
7
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
8
|
+
export {
|
|
9
|
+
SynPopup as default
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=popup.component.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadio
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.UGYBBM5O.js";
|
|
4
4
|
import "../../chunks/chunk.JBYBQ5TQ.js";
|
|
5
5
|
import "../../chunks/chunk.V6VND4OF.js";
|
|
6
|
-
import "../../chunks/chunk.
|
|
6
|
+
import "../../chunks/chunk.63IJYG6Q.js";
|
|
7
7
|
import "../../chunks/chunk.RSONAU45.js";
|
|
8
8
|
import "../../chunks/chunk.PJO6TM3T.js";
|
|
9
9
|
import "../../chunks/chunk.JRXQK6LG.js";
|
|
@@ -11,7 +11,7 @@ import "../../chunks/chunk.6C4JXZZN.js";
|
|
|
11
11
|
import "../../chunks/chunk.5AAIHRMI.js";
|
|
12
12
|
import "../../chunks/chunk.VZ7S7YYN.js";
|
|
13
13
|
import "../../chunks/chunk.C7624ITA.js";
|
|
14
|
-
import "../../chunks/chunk.
|
|
14
|
+
import "../../chunks/chunk.C5W2Y6KW.js";
|
|
15
15
|
import "../../chunks/chunk.O7USYXBT.js";
|
|
16
16
|
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
17
17
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
radio_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.ELPJP6AL.js";
|
|
4
|
+
import "../../chunks/chunk.UGYBBM5O.js";
|
|
5
5
|
import "../../chunks/chunk.JBYBQ5TQ.js";
|
|
6
6
|
import "../../chunks/chunk.V6VND4OF.js";
|
|
7
|
-
import "../../chunks/chunk.
|
|
7
|
+
import "../../chunks/chunk.63IJYG6Q.js";
|
|
8
8
|
import "../../chunks/chunk.RSONAU45.js";
|
|
9
9
|
import "../../chunks/chunk.PJO6TM3T.js";
|
|
10
10
|
import "../../chunks/chunk.JRXQK6LG.js";
|
|
@@ -12,7 +12,7 @@ import "../../chunks/chunk.6C4JXZZN.js";
|
|
|
12
12
|
import "../../chunks/chunk.5AAIHRMI.js";
|
|
13
13
|
import "../../chunks/chunk.VZ7S7YYN.js";
|
|
14
14
|
import "../../chunks/chunk.C7624ITA.js";
|
|
15
|
-
import "../../chunks/chunk.
|
|
15
|
+
import "../../chunks/chunk.C5W2Y6KW.js";
|
|
16
16
|
import "../../chunks/chunk.O7USYXBT.js";
|
|
17
17
|
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
18
18
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadioButton
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.LL3V6HVM.js";
|
|
4
4
|
import "../../chunks/chunk.MWDOOCSU.js";
|
|
5
5
|
import "../../chunks/chunk.XGXFE6IF.js";
|
|
6
6
|
import "../../chunks/chunk.VZ7S7YYN.js";
|
|
7
7
|
import "../../chunks/chunk.CQ2JMH2J.js";
|
|
8
8
|
import "../../chunks/chunk.IUC3AWAU.js";
|
|
9
|
-
import "../../chunks/chunk.
|
|
9
|
+
import "../../chunks/chunk.C5W2Y6KW.js";
|
|
10
10
|
import "../../chunks/chunk.O7USYXBT.js";
|
|
11
11
|
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
12
12
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
radio_button_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.JLTYAQFG.js";
|
|
4
|
+
import "../../chunks/chunk.LL3V6HVM.js";
|
|
5
5
|
import "../../chunks/chunk.MWDOOCSU.js";
|
|
6
6
|
import "../../chunks/chunk.XGXFE6IF.js";
|
|
7
7
|
import "../../chunks/chunk.VZ7S7YYN.js";
|
|
8
8
|
import "../../chunks/chunk.CQ2JMH2J.js";
|
|
9
9
|
import "../../chunks/chunk.IUC3AWAU.js";
|
|
10
|
-
import "../../chunks/chunk.
|
|
10
|
+
import "../../chunks/chunk.C5W2Y6KW.js";
|
|
11
11
|
import "../../chunks/chunk.O7USYXBT.js";
|
|
12
12
|
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
13
13
|
export {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadioGroup
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.IYKQTZIY.js";
|
|
4
4
|
import "../../chunks/chunk.4I6M5V6O.js";
|
|
5
5
|
import "../../chunks/chunk.F4MRQLNL.js";
|
|
6
6
|
import "../../chunks/chunk.JHXCBOUD.js";
|
|
7
7
|
import "../../chunks/chunk.XGXFE6IF.js";
|
|
8
8
|
import "../../chunks/chunk.AMTCNRDE.js";
|
|
9
9
|
import "../../chunks/chunk.VZ7S7YYN.js";
|
|
10
|
-
import "../../chunks/chunk.
|
|
11
|
-
import "../../chunks/chunk.
|
|
10
|
+
import "../../chunks/chunk.OPVDSHPD.js";
|
|
11
|
+
import "../../chunks/chunk.C5W2Y6KW.js";
|
|
12
12
|
import "../../chunks/chunk.4ZURABYO.js";
|
|
13
13
|
import "../../chunks/chunk.O7USYXBT.js";
|
|
14
14
|
import "../../chunks/chunk.DJOAQ4JU.js";
|