@synergy-design-system/components 1.5.0 → 1.6.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.2OLVTQ5P.js +254 -0
- package/dist/chunks/chunk.2OLVTQ5P.js.map +7 -0
- package/dist/chunks/{chunk.GAMJZXEL.js → chunk.35NRVIX6.js} +2 -2
- package/dist/chunks/{chunk.7BHGTNHS.js → chunk.3CXUNQUU.js} +2 -2
- package/dist/chunks/{chunk.CUHMPG7E.js → chunk.47DEK3AO.js} +3 -3
- package/dist/chunks/{chunk.63IJYG6Q.js → chunk.4NOSS4QZ.js} +2 -2
- package/dist/chunks/{chunk.Y6HNLEFW.js → chunk.4SRJCDZV.js} +2 -2
- package/dist/chunks/{chunk.UXUMV3TL.js → chunk.53VSNAHJ.js} +2 -2
- package/dist/chunks/{chunk.C5W2Y6KW.js → chunk.7ONJ4JA4.js} +2 -2
- package/dist/chunks/{chunk.C5W2Y6KW.js.map → chunk.7ONJ4JA4.js.map} +1 -1
- package/dist/chunks/{chunk.JQWJ7PHD.js → chunk.7YLD4S5U.js} +2 -2
- package/dist/chunks/{chunk.DPTZN6HY.js → chunk.AHNYYEO3.js} +2 -2
- package/dist/chunks/{chunk.GGNKDYC2.js → chunk.ASZUIIFW.js} +5 -5
- package/dist/chunks/{chunk.FLCUFEHS.js → chunk.CCUKXHWY.js} +2 -2
- package/dist/chunks/{chunk.JEOPTEUQ.js → chunk.CP33HLLJ.js} +3 -3
- package/dist/chunks/{chunk.FOTO5B4G.js → chunk.DEPIE7L2.js} +2 -2
- package/dist/chunks/{chunk.ELPJP6AL.js → chunk.EIISC7XJ.js} +2 -2
- package/dist/chunks/{chunk.KUZJTGHQ.js → chunk.EKOK7YPB.js} +5 -21
- package/dist/chunks/{chunk.KUZJTGHQ.js.map → chunk.EKOK7YPB.js.map} +2 -2
- package/dist/chunks/{chunk.OPVDSHPD.js → chunk.GHX7BABO.js} +2 -2
- package/dist/chunks/{chunk.MWDOOCSU.js → chunk.IKKMWFWH.js} +2 -2
- package/dist/chunks/{chunk.PQLAXTRQ.js → chunk.JR2N32YB.js} +3 -3
- package/dist/chunks/{chunk.IUC3AWAU.js → chunk.K55MKNUR.js} +7 -7
- package/dist/chunks/chunk.K55MKNUR.js.map +7 -0
- package/dist/chunks/{chunk.AVJQ2BSM.js → chunk.LJU66FBY.js} +2 -2
- package/dist/chunks/{chunk.JXOHBU6V.js → chunk.LK73TOFQ.js} +2 -2
- package/dist/chunks/{chunk.5NJ7WWJW.js → chunk.LKNV6GM2.js} +2 -2
- package/dist/chunks/{chunk.LTCRPIZ5.js → chunk.LRXZ5NNS.js} +2 -2
- package/dist/chunks/{chunk.TY5F2VTK.js → chunk.MI3ZASGH.js} +2 -2
- package/dist/chunks/{chunk.IESSP23D.js → chunk.NJ6E6J54.js} +162 -6
- package/dist/chunks/chunk.NJ6E6J54.js.map +7 -0
- package/dist/chunks/{chunk.4KLCSMRA.js → chunk.NOSJYQ4B.js} +3 -3
- package/dist/chunks/{chunk.A4YWJJLD.js → chunk.NUBNCTFD.js} +2 -2
- package/dist/chunks/{chunk.CQ2JMH2J.js → chunk.OJ4KOC7R.js} +2 -2
- package/dist/chunks/{chunk.DLDE3BC5.js → chunk.QC7ZJSSL.js} +2 -2
- package/dist/chunks/{chunk.3HPG73GG.js → chunk.QI2KJEOB.js} +3 -3
- package/dist/chunks/{chunk.RU7P5HHF.js → chunk.RDDQSC7I.js} +2 -2
- package/dist/chunks/{chunk.JLTYAQFG.js → chunk.S45EUGZP.js} +2 -2
- package/dist/chunks/{chunk.4ZO3EKCL.js → chunk.UAVUFIYS.js} +2 -2
- package/dist/chunks/{chunk.GYDJFPHM.js → chunk.V2BD43MN.js} +2 -2
- package/dist/chunks/{chunk.SS46QCYH.js → chunk.WEYUQ5AH.js} +5 -5
- package/dist/chunks/{chunk.LL3V6HVM.js → chunk.XBLXQAP4.js} +3 -3
- package/dist/chunks/{chunk.UGYBBM5O.js → chunk.XTZCBF65.js} +3 -3
- package/dist/chunks/{chunk.IYKQTZIY.js → chunk.YCX24LPU.js} +3 -3
- package/dist/chunks/{chunk.7HS3TULI.js → chunk.YS65LZV6.js} +2 -2
- package/dist/components/button/button.component.js +6 -6
- package/dist/components/button/button.custom.styles.js +1 -1
- package/dist/components/button/button.js +7 -7
- package/dist/components/button/button.styles.js +2 -2
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +3 -3
- package/dist/components/checkbox/checkbox.js +4 -4
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/icon/icon.component.js +2 -2
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon-button/icon-button.component.js +3 -3
- package/dist/components/icon-button/icon-button.js +4 -4
- package/dist/components/input/input.component.d.ts +15 -1
- package/dist/components/input/input.component.js +8 -5
- package/dist/components/input/input.custom.styles.js +1 -1
- package/dist/components/input/input.js +9 -6
- package/dist/components/input/input.styles.js +2 -2
- package/dist/components/optgroup/optgroup.component.js +3 -3
- package/dist/components/optgroup/optgroup.js +4 -4
- package/dist/components/option/option.component.js +3 -3
- package/dist/components/option/option.js +4 -4
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/radio/radio.component.js +3 -3
- package/dist/components/radio/radio.js +4 -4
- package/dist/components/radio-button/radio-button.component.js +5 -5
- package/dist/components/radio-button/radio-button.js +6 -6
- package/dist/components/radio-button/radio-button.styles.js +3 -3
- package/dist/components/radio-group/radio-group.component.js +3 -3
- package/dist/components/radio-group/radio-group.js +4 -4
- package/dist/components/select/select.component.js +6 -6
- package/dist/components/select/select.js +7 -7
- 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 +196 -146
- package/dist/internal/longpress.d.ts +42 -0
- package/dist/synergy.js +40 -40
- package/dist/vscode.html-custom-data.json +19 -19
- package/dist/web-types.json +41 -33
- package/package.json +1 -1
- package/dist/chunks/chunk.B2EJGIGY.js +0 -84
- package/dist/chunks/chunk.B2EJGIGY.js.map +0 -7
- package/dist/chunks/chunk.IESSP23D.js.map +0 -7
- package/dist/chunks/chunk.IUC3AWAU.js.map +0 -7
- /package/dist/chunks/{chunk.GAMJZXEL.js.map → chunk.35NRVIX6.js.map} +0 -0
- /package/dist/chunks/{chunk.7BHGTNHS.js.map → chunk.3CXUNQUU.js.map} +0 -0
- /package/dist/chunks/{chunk.CUHMPG7E.js.map → chunk.47DEK3AO.js.map} +0 -0
- /package/dist/chunks/{chunk.63IJYG6Q.js.map → chunk.4NOSS4QZ.js.map} +0 -0
- /package/dist/chunks/{chunk.Y6HNLEFW.js.map → chunk.4SRJCDZV.js.map} +0 -0
- /package/dist/chunks/{chunk.UXUMV3TL.js.map → chunk.53VSNAHJ.js.map} +0 -0
- /package/dist/chunks/{chunk.JQWJ7PHD.js.map → chunk.7YLD4S5U.js.map} +0 -0
- /package/dist/chunks/{chunk.DPTZN6HY.js.map → chunk.AHNYYEO3.js.map} +0 -0
- /package/dist/chunks/{chunk.GGNKDYC2.js.map → chunk.ASZUIIFW.js.map} +0 -0
- /package/dist/chunks/{chunk.FLCUFEHS.js.map → chunk.CCUKXHWY.js.map} +0 -0
- /package/dist/chunks/{chunk.JEOPTEUQ.js.map → chunk.CP33HLLJ.js.map} +0 -0
- /package/dist/chunks/{chunk.FOTO5B4G.js.map → chunk.DEPIE7L2.js.map} +0 -0
- /package/dist/chunks/{chunk.ELPJP6AL.js.map → chunk.EIISC7XJ.js.map} +0 -0
- /package/dist/chunks/{chunk.OPVDSHPD.js.map → chunk.GHX7BABO.js.map} +0 -0
- /package/dist/chunks/{chunk.MWDOOCSU.js.map → chunk.IKKMWFWH.js.map} +0 -0
- /package/dist/chunks/{chunk.PQLAXTRQ.js.map → chunk.JR2N32YB.js.map} +0 -0
- /package/dist/chunks/{chunk.AVJQ2BSM.js.map → chunk.LJU66FBY.js.map} +0 -0
- /package/dist/chunks/{chunk.JXOHBU6V.js.map → chunk.LK73TOFQ.js.map} +0 -0
- /package/dist/chunks/{chunk.5NJ7WWJW.js.map → chunk.LKNV6GM2.js.map} +0 -0
- /package/dist/chunks/{chunk.LTCRPIZ5.js.map → chunk.LRXZ5NNS.js.map} +0 -0
- /package/dist/chunks/{chunk.TY5F2VTK.js.map → chunk.MI3ZASGH.js.map} +0 -0
- /package/dist/chunks/{chunk.4KLCSMRA.js.map → chunk.NOSJYQ4B.js.map} +0 -0
- /package/dist/chunks/{chunk.A4YWJJLD.js.map → chunk.NUBNCTFD.js.map} +0 -0
- /package/dist/chunks/{chunk.CQ2JMH2J.js.map → chunk.OJ4KOC7R.js.map} +0 -0
- /package/dist/chunks/{chunk.DLDE3BC5.js.map → chunk.QC7ZJSSL.js.map} +0 -0
- /package/dist/chunks/{chunk.3HPG73GG.js.map → chunk.QI2KJEOB.js.map} +0 -0
- /package/dist/chunks/{chunk.RU7P5HHF.js.map → chunk.RDDQSC7I.js.map} +0 -0
- /package/dist/chunks/{chunk.JLTYAQFG.js.map → chunk.S45EUGZP.js.map} +0 -0
- /package/dist/chunks/{chunk.4ZO3EKCL.js.map → chunk.UAVUFIYS.js.map} +0 -0
- /package/dist/chunks/{chunk.GYDJFPHM.js.map → chunk.V2BD43MN.js.map} +0 -0
- /package/dist/chunks/{chunk.SS46QCYH.js.map → chunk.WEYUQ5AH.js.map} +0 -0
- /package/dist/chunks/{chunk.LL3V6HVM.js.map → chunk.XBLXQAP4.js.map} +0 -0
- /package/dist/chunks/{chunk.UGYBBM5O.js.map → chunk.XTZCBF65.js.map} +0 -0
- /package/dist/chunks/{chunk.IYKQTZIY.js.map → chunk.YCX24LPU.js.map} +0 -0
- /package/dist/chunks/{chunk.7HS3TULI.js.map → chunk.YS65LZV6.js.map} +0 -0
|
@@ -616,146 +616,6 @@
|
|
|
616
616
|
}
|
|
617
617
|
]
|
|
618
618
|
},
|
|
619
|
-
{
|
|
620
|
-
"kind": "javascript-module",
|
|
621
|
-
"path": "components/button-group/button-group.js",
|
|
622
|
-
"declarations": [
|
|
623
|
-
{
|
|
624
|
-
"kind": "class",
|
|
625
|
-
"description": "",
|
|
626
|
-
"name": "SynButtonGroup",
|
|
627
|
-
"cssParts": [
|
|
628
|
-
{
|
|
629
|
-
"description": "The component's base wrapper.",
|
|
630
|
-
"name": "base"
|
|
631
|
-
}
|
|
632
|
-
],
|
|
633
|
-
"slots": [
|
|
634
|
-
{
|
|
635
|
-
"description": "One or more `<syn-button>` elements to display in the button group.",
|
|
636
|
-
"name": ""
|
|
637
|
-
}
|
|
638
|
-
],
|
|
639
|
-
"members": [
|
|
640
|
-
{
|
|
641
|
-
"kind": "field",
|
|
642
|
-
"name": "defaultSlot",
|
|
643
|
-
"type": {
|
|
644
|
-
"text": "HTMLSlotElement"
|
|
645
|
-
}
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
"kind": "field",
|
|
649
|
-
"name": "disableRole",
|
|
650
|
-
"type": {
|
|
651
|
-
"text": "boolean"
|
|
652
|
-
},
|
|
653
|
-
"default": "false"
|
|
654
|
-
},
|
|
655
|
-
{
|
|
656
|
-
"kind": "field",
|
|
657
|
-
"name": "label",
|
|
658
|
-
"type": {
|
|
659
|
-
"text": "string"
|
|
660
|
-
},
|
|
661
|
-
"default": "''",
|
|
662
|
-
"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.",
|
|
663
|
-
"attribute": "label"
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
"kind": "method",
|
|
667
|
-
"name": "handleFocus",
|
|
668
|
-
"privacy": "private",
|
|
669
|
-
"parameters": [
|
|
670
|
-
{
|
|
671
|
-
"name": "event",
|
|
672
|
-
"type": {
|
|
673
|
-
"text": "Event"
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
]
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
"kind": "method",
|
|
680
|
-
"name": "handleBlur",
|
|
681
|
-
"privacy": "private",
|
|
682
|
-
"parameters": [
|
|
683
|
-
{
|
|
684
|
-
"name": "event",
|
|
685
|
-
"type": {
|
|
686
|
-
"text": "Event"
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
]
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
"kind": "method",
|
|
693
|
-
"name": "handleMouseOver",
|
|
694
|
-
"privacy": "private",
|
|
695
|
-
"parameters": [
|
|
696
|
-
{
|
|
697
|
-
"name": "event",
|
|
698
|
-
"type": {
|
|
699
|
-
"text": "Event"
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
]
|
|
703
|
-
},
|
|
704
|
-
{
|
|
705
|
-
"kind": "method",
|
|
706
|
-
"name": "handleMouseOut",
|
|
707
|
-
"privacy": "private",
|
|
708
|
-
"parameters": [
|
|
709
|
-
{
|
|
710
|
-
"name": "event",
|
|
711
|
-
"type": {
|
|
712
|
-
"text": "Event"
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
]
|
|
716
|
-
},
|
|
717
|
-
{
|
|
718
|
-
"kind": "method",
|
|
719
|
-
"name": "handleSlotChange",
|
|
720
|
-
"privacy": "private"
|
|
721
|
-
}
|
|
722
|
-
],
|
|
723
|
-
"attributes": [
|
|
724
|
-
{
|
|
725
|
-
"name": "label",
|
|
726
|
-
"type": {
|
|
727
|
-
"text": "string"
|
|
728
|
-
},
|
|
729
|
-
"default": "''",
|
|
730
|
-
"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.",
|
|
731
|
-
"fieldName": "label"
|
|
732
|
-
}
|
|
733
|
-
],
|
|
734
|
-
"superclass": {
|
|
735
|
-
"name": "SynergyElement",
|
|
736
|
-
"module": "/src/internal/synergy-element.js"
|
|
737
|
-
},
|
|
738
|
-
"summary": "Button groups can be used to group related buttons into sections.",
|
|
739
|
-
"tagNameWithoutPrefix": "button-group",
|
|
740
|
-
"tagName": "syn-button-group",
|
|
741
|
-
"customElement": true,
|
|
742
|
-
"jsDoc": "/**\n * @summary Button groups can be used to group related buttons into sections.\n * @documentation https://synergy.style/components/button-group\n * @status stable\n * @since 2.0\n *\n * @slot - One or more `<syn-button>` elements to display in the button group.\n *\n * @csspart base - The component's base wrapper.\n */",
|
|
743
|
-
"documentation": "https://synergy.style/components/button-group",
|
|
744
|
-
"status": "stable",
|
|
745
|
-
"since": "2.0"
|
|
746
|
-
}
|
|
747
|
-
],
|
|
748
|
-
"exports": [
|
|
749
|
-
{
|
|
750
|
-
"kind": "js",
|
|
751
|
-
"name": "default",
|
|
752
|
-
"declaration": {
|
|
753
|
-
"name": "SynButtonGroup",
|
|
754
|
-
"module": "components/button-group/button-group.js"
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
]
|
|
758
|
-
},
|
|
759
619
|
{
|
|
760
620
|
"kind": "javascript-module",
|
|
761
621
|
"path": "components/checkbox/checkbox.js",
|
|
@@ -1188,6 +1048,146 @@
|
|
|
1188
1048
|
}
|
|
1189
1049
|
]
|
|
1190
1050
|
},
|
|
1051
|
+
{
|
|
1052
|
+
"kind": "javascript-module",
|
|
1053
|
+
"path": "components/button-group/button-group.js",
|
|
1054
|
+
"declarations": [
|
|
1055
|
+
{
|
|
1056
|
+
"kind": "class",
|
|
1057
|
+
"description": "",
|
|
1058
|
+
"name": "SynButtonGroup",
|
|
1059
|
+
"cssParts": [
|
|
1060
|
+
{
|
|
1061
|
+
"description": "The component's base wrapper.",
|
|
1062
|
+
"name": "base"
|
|
1063
|
+
}
|
|
1064
|
+
],
|
|
1065
|
+
"slots": [
|
|
1066
|
+
{
|
|
1067
|
+
"description": "One or more `<syn-button>` elements to display in the button group.",
|
|
1068
|
+
"name": ""
|
|
1069
|
+
}
|
|
1070
|
+
],
|
|
1071
|
+
"members": [
|
|
1072
|
+
{
|
|
1073
|
+
"kind": "field",
|
|
1074
|
+
"name": "defaultSlot",
|
|
1075
|
+
"type": {
|
|
1076
|
+
"text": "HTMLSlotElement"
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"kind": "field",
|
|
1081
|
+
"name": "disableRole",
|
|
1082
|
+
"type": {
|
|
1083
|
+
"text": "boolean"
|
|
1084
|
+
},
|
|
1085
|
+
"default": "false"
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"kind": "field",
|
|
1089
|
+
"name": "label",
|
|
1090
|
+
"type": {
|
|
1091
|
+
"text": "string"
|
|
1092
|
+
},
|
|
1093
|
+
"default": "''",
|
|
1094
|
+
"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.",
|
|
1095
|
+
"attribute": "label"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"kind": "method",
|
|
1099
|
+
"name": "handleFocus",
|
|
1100
|
+
"privacy": "private",
|
|
1101
|
+
"parameters": [
|
|
1102
|
+
{
|
|
1103
|
+
"name": "event",
|
|
1104
|
+
"type": {
|
|
1105
|
+
"text": "Event"
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
]
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"kind": "method",
|
|
1112
|
+
"name": "handleBlur",
|
|
1113
|
+
"privacy": "private",
|
|
1114
|
+
"parameters": [
|
|
1115
|
+
{
|
|
1116
|
+
"name": "event",
|
|
1117
|
+
"type": {
|
|
1118
|
+
"text": "Event"
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
]
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"kind": "method",
|
|
1125
|
+
"name": "handleMouseOver",
|
|
1126
|
+
"privacy": "private",
|
|
1127
|
+
"parameters": [
|
|
1128
|
+
{
|
|
1129
|
+
"name": "event",
|
|
1130
|
+
"type": {
|
|
1131
|
+
"text": "Event"
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
]
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"kind": "method",
|
|
1138
|
+
"name": "handleMouseOut",
|
|
1139
|
+
"privacy": "private",
|
|
1140
|
+
"parameters": [
|
|
1141
|
+
{
|
|
1142
|
+
"name": "event",
|
|
1143
|
+
"type": {
|
|
1144
|
+
"text": "Event"
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
]
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
"kind": "method",
|
|
1151
|
+
"name": "handleSlotChange",
|
|
1152
|
+
"privacy": "private"
|
|
1153
|
+
}
|
|
1154
|
+
],
|
|
1155
|
+
"attributes": [
|
|
1156
|
+
{
|
|
1157
|
+
"name": "label",
|
|
1158
|
+
"type": {
|
|
1159
|
+
"text": "string"
|
|
1160
|
+
},
|
|
1161
|
+
"default": "''",
|
|
1162
|
+
"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.",
|
|
1163
|
+
"fieldName": "label"
|
|
1164
|
+
}
|
|
1165
|
+
],
|
|
1166
|
+
"superclass": {
|
|
1167
|
+
"name": "SynergyElement",
|
|
1168
|
+
"module": "/src/internal/synergy-element.js"
|
|
1169
|
+
},
|
|
1170
|
+
"summary": "Button groups can be used to group related buttons into sections.",
|
|
1171
|
+
"tagNameWithoutPrefix": "button-group",
|
|
1172
|
+
"tagName": "syn-button-group",
|
|
1173
|
+
"customElement": true,
|
|
1174
|
+
"jsDoc": "/**\n * @summary Button groups can be used to group related buttons into sections.\n * @documentation https://synergy.style/components/button-group\n * @status stable\n * @since 2.0\n *\n * @slot - One or more `<syn-button>` elements to display in the button group.\n *\n * @csspart base - The component's base wrapper.\n */",
|
|
1175
|
+
"documentation": "https://synergy.style/components/button-group",
|
|
1176
|
+
"status": "stable",
|
|
1177
|
+
"since": "2.0"
|
|
1178
|
+
}
|
|
1179
|
+
],
|
|
1180
|
+
"exports": [
|
|
1181
|
+
{
|
|
1182
|
+
"kind": "js",
|
|
1183
|
+
"name": "default",
|
|
1184
|
+
"declaration": {
|
|
1185
|
+
"name": "SynButtonGroup",
|
|
1186
|
+
"module": "components/button-group/button-group.js"
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
]
|
|
1190
|
+
},
|
|
1191
1191
|
{
|
|
1192
1192
|
"kind": "javascript-module",
|
|
1193
1193
|
"path": "components/divider/divider.js",
|
|
@@ -1821,6 +1821,22 @@
|
|
|
1821
1821
|
{
|
|
1822
1822
|
"description": "The container that wraps the suffix.",
|
|
1823
1823
|
"name": "suffix"
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
"description": "The container that wraps the number stepper.",
|
|
1827
|
+
"name": "stepper"
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"description": "The decrement number stepper button.",
|
|
1831
|
+
"name": "decrement-number-stepper"
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
"description": "The increment number stepper button.",
|
|
1835
|
+
"name": "increment-number-stepper"
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
"description": "The divider between the increment and decrement number stepper buttons.",
|
|
1839
|
+
"name": "divider"
|
|
1824
1840
|
}
|
|
1825
1841
|
],
|
|
1826
1842
|
"slots": [
|
|
@@ -1851,6 +1867,14 @@
|
|
|
1851
1867
|
{
|
|
1852
1868
|
"description": "Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.",
|
|
1853
1869
|
"name": "help-text"
|
|
1870
|
+
},
|
|
1871
|
+
{
|
|
1872
|
+
"description": "An icon to use in lieu of the default increment number stepper icon.",
|
|
1873
|
+
"name": "increment-number-stepper"
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
"description": "An icon to use in lieu of the default decrement number stepper icon.",
|
|
1877
|
+
"name": "decrement-number-stepper"
|
|
1854
1878
|
}
|
|
1855
1879
|
],
|
|
1856
1880
|
"members": [
|
|
@@ -1861,7 +1885,7 @@
|
|
|
1861
1885
|
"text": "object"
|
|
1862
1886
|
},
|
|
1863
1887
|
"static": true,
|
|
1864
|
-
"default": "{
|
|
1888
|
+
"default": "{\n\t\t'syn-icon': SynIcon,\n\t\t'syn-divider': SynDivider\n\t}"
|
|
1865
1889
|
},
|
|
1866
1890
|
{
|
|
1867
1891
|
"kind": "field",
|
|
@@ -2059,7 +2083,7 @@
|
|
|
2059
2083
|
"text": "boolean"
|
|
2060
2084
|
},
|
|
2061
2085
|
"default": "false",
|
|
2062
|
-
"description": "Hides the
|
|
2086
|
+
"description": "Hides the increment/decrement spin buttons for number inputs.",
|
|
2063
2087
|
"attribute": "no-spin-buttons"
|
|
2064
2088
|
},
|
|
2065
2089
|
{
|
|
@@ -2229,6 +2253,31 @@
|
|
|
2229
2253
|
"name": "handleBlur",
|
|
2230
2254
|
"privacy": "private"
|
|
2231
2255
|
},
|
|
2256
|
+
{
|
|
2257
|
+
"kind": "method",
|
|
2258
|
+
"name": "handleStep",
|
|
2259
|
+
"privacy": "private"
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
"kind": "method",
|
|
2263
|
+
"name": "handleStepUp",
|
|
2264
|
+
"privacy": "private"
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
"kind": "method",
|
|
2268
|
+
"name": "handleStepDown",
|
|
2269
|
+
"privacy": "private"
|
|
2270
|
+
},
|
|
2271
|
+
{
|
|
2272
|
+
"kind": "method",
|
|
2273
|
+
"name": "isDecrementDisabled",
|
|
2274
|
+
"privacy": "private"
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
"kind": "method",
|
|
2278
|
+
"name": "isIncrementDisabled",
|
|
2279
|
+
"privacy": "private"
|
|
2280
|
+
},
|
|
2232
2281
|
{
|
|
2233
2282
|
"kind": "method",
|
|
2234
2283
|
"name": "handleChange",
|
|
@@ -2594,7 +2643,7 @@
|
|
|
2594
2643
|
"text": "boolean"
|
|
2595
2644
|
},
|
|
2596
2645
|
"default": "false",
|
|
2597
|
-
"description": "Hides the
|
|
2646
|
+
"description": "Hides the increment/decrement spin buttons for number inputs.",
|
|
2598
2647
|
"fieldName": "noSpinButtons"
|
|
2599
2648
|
},
|
|
2600
2649
|
{
|
|
@@ -2729,12 +2778,13 @@
|
|
|
2729
2778
|
"tagNameWithoutPrefix": "input",
|
|
2730
2779
|
"tagName": "syn-input",
|
|
2731
2780
|
"customElement": true,
|
|
2732
|
-
"jsDoc": "/**\n * @summary Inputs collect data from the user.\n * @documentation https://synergy.style/components/input\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\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 input.\n * @slot suffix - Used to append a presentational icon or similar element to the input.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot show-password-icon - An icon to use in lieu of the default show password icon.\n * @slot hide-password-icon - An icon to use in lieu of the default hide password icon.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event syn-clear - Emitted when the clear button is activated.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-input - Emitted when the control receives input.\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 input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart input - The internal `<input>` control.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart clear-button - The clear button.\n * @csspart password-toggle-button - The password toggle button.\n * @csspart suffix - The container that wraps the suffix.\n */",
|
|
2781
|
+
"jsDoc": "/**\n * @summary Inputs collect data from the user.\n * @documentation https://synergy.style/components/input\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-divider\n *\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 input.\n * @slot suffix - Used to append a presentational icon or similar element to the input.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot show-password-icon - An icon to use in lieu of the default show password icon.\n * @slot hide-password-icon - An icon to use in lieu of the default hide password icon.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n * @slot increment-number-stepper - An icon to use in lieu of the default increment number stepper icon.\n * @slot decrement-number-stepper - An icon to use in lieu of the default decrement number stepper icon.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event syn-clear - Emitted when the clear button is activated.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-input - Emitted when the control receives input.\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 input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart input - The internal `<input>` control.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart clear-button - The clear button.\n * @csspart password-toggle-button - The password toggle button.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart stepper - The container that wraps the number stepper.\n * @csspart decrement-number-stepper - The decrement number stepper button.\n * @csspart increment-number-stepper - The increment number stepper button.\n * @csspart divider - The divider between the increment and decrement number stepper buttons.\n */",
|
|
2733
2782
|
"documentation": "https://synergy.style/components/input",
|
|
2734
2783
|
"status": "stable",
|
|
2735
2784
|
"since": "2.0",
|
|
2736
2785
|
"dependencies": [
|
|
2737
|
-
"syn-icon"
|
|
2786
|
+
"syn-icon",
|
|
2787
|
+
"syn-divider"
|
|
2738
2788
|
]
|
|
2739
2789
|
}
|
|
2740
2790
|
],
|
|
@@ -6791,7 +6841,7 @@
|
|
|
6791
6841
|
"package": {
|
|
6792
6842
|
"name": "@synergy-design-system/components",
|
|
6793
6843
|
"description": "",
|
|
6794
|
-
"version": "1.
|
|
6844
|
+
"version": "1.6.0",
|
|
6795
6845
|
"author": {
|
|
6796
6846
|
"name": "SICK Global UX Foundation",
|
|
6797
6847
|
"url": "https://www.sick.com"
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { type ElementPart, noChange, nothing } from 'lit';
|
|
3
|
+
import { AsyncDirective, type DirectiveParameters, type Part } from 'lit/async-directive.js';
|
|
4
|
+
type Callbacks = {
|
|
5
|
+
start: () => void;
|
|
6
|
+
end: () => void;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* A directive that determines,if a HTMLButtonElement is long pressed or only clicked.
|
|
10
|
+
* Depending on the state it executes the callback once or repeating.
|
|
11
|
+
*
|
|
12
|
+
* Usage:
|
|
13
|
+
*
|
|
14
|
+
* <button
|
|
15
|
+
* ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange()})}
|
|
16
|
+
* >
|
|
17
|
+
* my button
|
|
18
|
+
* </button>
|
|
19
|
+
*/
|
|
20
|
+
declare class LongPressDirective extends AsyncDirective {
|
|
21
|
+
host: HTMLButtonElement;
|
|
22
|
+
observer: MutationObserver;
|
|
23
|
+
callbacks: Callbacks;
|
|
24
|
+
interval: NodeJS.Timeout;
|
|
25
|
+
timeout: NodeJS.Timeout;
|
|
26
|
+
constructor(part: Part);
|
|
27
|
+
render(_callback: Callbacks): typeof nothing;
|
|
28
|
+
update(part: ElementPart, [callbacks]: DirectiveParameters<this>): typeof noChange;
|
|
29
|
+
protected disconnected(): void;
|
|
30
|
+
private handlePointerDown;
|
|
31
|
+
/**
|
|
32
|
+
* Start spinning on long press clicks otherwise handle as single click event
|
|
33
|
+
*/
|
|
34
|
+
private spinOnLongPressCallback;
|
|
35
|
+
private handlePointerUp;
|
|
36
|
+
/**
|
|
37
|
+
* Stop the spinning and clean up all timer and observer
|
|
38
|
+
*/
|
|
39
|
+
private stopSpinningAndCleanUp;
|
|
40
|
+
}
|
|
41
|
+
export declare const longPress: (_callback: Callbacks) => import("lit/async-directive").DirectiveResult<typeof LongPressDirective>;
|
|
42
|
+
export type { LongPressDirective };
|
package/dist/synergy.js
CHANGED
|
@@ -5,102 +5,102 @@ import {
|
|
|
5
5
|
import "./chunks/chunk.NKIYFJN2.js";
|
|
6
6
|
import {
|
|
7
7
|
tag_default
|
|
8
|
-
} from "./chunks/chunk.
|
|
8
|
+
} from "./chunks/chunk.4SRJCDZV.js";
|
|
9
9
|
import {
|
|
10
10
|
textarea_default
|
|
11
|
-
} from "./chunks/chunk.
|
|
12
|
-
import "./chunks/chunk.
|
|
11
|
+
} from "./chunks/chunk.NUBNCTFD.js";
|
|
12
|
+
import "./chunks/chunk.CCUKXHWY.js";
|
|
13
13
|
import "./chunks/chunk.23HTU3YE.js";
|
|
14
14
|
import "./chunks/chunk.YBIBWRKC.js";
|
|
15
15
|
import {
|
|
16
16
|
switch_default
|
|
17
|
-
} from "./chunks/chunk.
|
|
18
|
-
import "./chunks/chunk.
|
|
17
|
+
} from "./chunks/chunk.LKNV6GM2.js";
|
|
18
|
+
import "./chunks/chunk.AHNYYEO3.js";
|
|
19
19
|
import "./chunks/chunk.MNMITYTH.js";
|
|
20
20
|
import "./chunks/chunk.AFEABUNX.js";
|
|
21
21
|
import {
|
|
22
22
|
radio_group_default
|
|
23
|
-
} from "./chunks/chunk.
|
|
24
|
-
import "./chunks/chunk.
|
|
23
|
+
} from "./chunks/chunk.7YLD4S5U.js";
|
|
24
|
+
import "./chunks/chunk.YCX24LPU.js";
|
|
25
25
|
import "./chunks/chunk.4I6M5V6O.js";
|
|
26
26
|
import "./chunks/chunk.F4MRQLNL.js";
|
|
27
27
|
import {
|
|
28
28
|
select_default
|
|
29
|
-
} from "./chunks/chunk.
|
|
30
|
-
import "./chunks/chunk.
|
|
29
|
+
} from "./chunks/chunk.DEPIE7L2.js";
|
|
30
|
+
import "./chunks/chunk.WEYUQ5AH.js";
|
|
31
31
|
import "./chunks/chunk.BQG5LF7J.js";
|
|
32
|
-
import "./chunks/chunk.
|
|
32
|
+
import "./chunks/chunk.47DEK3AO.js";
|
|
33
33
|
import "./chunks/chunk.QHFGD6WW.js";
|
|
34
34
|
import "./chunks/chunk.7W73A57K.js";
|
|
35
35
|
import "./chunks/chunk.6XU6OLZ3.js";
|
|
36
36
|
import "./chunks/chunk.OWMT6OL2.js";
|
|
37
37
|
import {
|
|
38
38
|
radio_default
|
|
39
|
-
} from "./chunks/chunk.
|
|
40
|
-
import "./chunks/chunk.
|
|
39
|
+
} from "./chunks/chunk.EIISC7XJ.js";
|
|
40
|
+
import "./chunks/chunk.XTZCBF65.js";
|
|
41
41
|
import "./chunks/chunk.JBYBQ5TQ.js";
|
|
42
42
|
import "./chunks/chunk.V6VND4OF.js";
|
|
43
43
|
import {
|
|
44
44
|
radio_button_default
|
|
45
|
-
} from "./chunks/chunk.
|
|
46
|
-
import "./chunks/chunk.
|
|
47
|
-
import "./chunks/chunk.
|
|
45
|
+
} from "./chunks/chunk.S45EUGZP.js";
|
|
46
|
+
import "./chunks/chunk.XBLXQAP4.js";
|
|
47
|
+
import "./chunks/chunk.IKKMWFWH.js";
|
|
48
48
|
import {
|
|
49
49
|
optgroup_default
|
|
50
|
-
} from "./chunks/chunk.
|
|
51
|
-
import "./chunks/chunk.
|
|
50
|
+
} from "./chunks/chunk.53VSNAHJ.js";
|
|
51
|
+
import "./chunks/chunk.NOSJYQ4B.js";
|
|
52
52
|
import "./chunks/chunk.KG52EHDB.js";
|
|
53
53
|
import {
|
|
54
54
|
option_default
|
|
55
|
-
} from "./chunks/chunk.
|
|
56
|
-
import "./chunks/chunk.
|
|
55
|
+
} from "./chunks/chunk.YS65LZV6.js";
|
|
56
|
+
import "./chunks/chunk.QI2KJEOB.js";
|
|
57
57
|
import "./chunks/chunk.W6V7TPGK.js";
|
|
58
58
|
import "./chunks/chunk.3B24TYVN.js";
|
|
59
|
-
import "./chunks/chunk.
|
|
59
|
+
import "./chunks/chunk.LK73TOFQ.js";
|
|
60
60
|
import "./chunks/chunk.JN7CLMQZ.js";
|
|
61
61
|
import {
|
|
62
62
|
icon_button_default
|
|
63
|
-
} from "./chunks/chunk.
|
|
64
|
-
import "./chunks/chunk.
|
|
63
|
+
} from "./chunks/chunk.3CXUNQUU.js";
|
|
64
|
+
import "./chunks/chunk.JR2N32YB.js";
|
|
65
65
|
import "./chunks/chunk.2FN5DTS6.js";
|
|
66
66
|
import "./chunks/chunk.OJF7KL44.js";
|
|
67
67
|
import {
|
|
68
68
|
input_default
|
|
69
|
-
} from "./chunks/chunk.
|
|
70
|
-
import "./chunks/chunk.
|
|
71
|
-
import "./chunks/chunk.
|
|
69
|
+
} from "./chunks/chunk.35NRVIX6.js";
|
|
70
|
+
import "./chunks/chunk.NJ6E6J54.js";
|
|
71
|
+
import "./chunks/chunk.EKOK7YPB.js";
|
|
72
72
|
import "./chunks/chunk.JHXCBOUD.js";
|
|
73
|
-
import "./chunks/chunk.
|
|
73
|
+
import "./chunks/chunk.2OLVTQ5P.js";
|
|
74
74
|
import {
|
|
75
75
|
divider_default
|
|
76
|
-
} from "./chunks/chunk.
|
|
76
|
+
} from "./chunks/chunk.V2BD43MN.js";
|
|
77
77
|
import {
|
|
78
78
|
icon_default
|
|
79
|
-
} from "./chunks/chunk.
|
|
79
|
+
} from "./chunks/chunk.LJU66FBY.js";
|
|
80
80
|
import {
|
|
81
81
|
button_group_default
|
|
82
|
-
} from "./chunks/chunk.
|
|
82
|
+
} from "./chunks/chunk.UAVUFIYS.js";
|
|
83
83
|
import {
|
|
84
84
|
checkbox_default
|
|
85
|
-
} from "./chunks/chunk.
|
|
86
|
-
import "./chunks/chunk.
|
|
85
|
+
} from "./chunks/chunk.RDDQSC7I.js";
|
|
86
|
+
import "./chunks/chunk.CP33HLLJ.js";
|
|
87
87
|
import "./chunks/chunk.WFAJR3FN.js";
|
|
88
88
|
import "./chunks/chunk.4CBN5LPQ.js";
|
|
89
89
|
import "./chunks/chunk.2XZKXVMR.js";
|
|
90
|
-
import "./chunks/chunk.
|
|
90
|
+
import "./chunks/chunk.LRXZ5NNS.js";
|
|
91
91
|
import "./chunks/chunk.PGCXJ2PT.js";
|
|
92
92
|
import "./chunks/chunk.FA6V2WD6.js";
|
|
93
93
|
import {
|
|
94
94
|
button_default
|
|
95
|
-
} from "./chunks/chunk.
|
|
96
|
-
import "./chunks/chunk.
|
|
97
|
-
import "./chunks/chunk.
|
|
95
|
+
} from "./chunks/chunk.QC7ZJSSL.js";
|
|
96
|
+
import "./chunks/chunk.ASZUIIFW.js";
|
|
97
|
+
import "./chunks/chunk.MI3ZASGH.js";
|
|
98
98
|
import "./chunks/chunk.N2I6HVX3.js";
|
|
99
99
|
import "./chunks/chunk.XGXFE6IF.js";
|
|
100
100
|
import "./chunks/chunk.LAB4YJYE.js";
|
|
101
101
|
import "./chunks/chunk.A3SKDWCT.js";
|
|
102
102
|
import "./chunks/chunk.AMTCNRDE.js";
|
|
103
|
-
import "./chunks/chunk.
|
|
103
|
+
import "./chunks/chunk.4NOSS4QZ.js";
|
|
104
104
|
import "./chunks/chunk.RSONAU45.js";
|
|
105
105
|
import "./chunks/chunk.PJO6TM3T.js";
|
|
106
106
|
import {
|
|
@@ -114,10 +114,10 @@ import {
|
|
|
114
114
|
getBasePath,
|
|
115
115
|
setBasePath
|
|
116
116
|
} from "./chunks/chunk.C7624ITA.js";
|
|
117
|
-
import "./chunks/chunk.
|
|
118
|
-
import "./chunks/chunk.
|
|
119
|
-
import "./chunks/chunk.
|
|
120
|
-
import "./chunks/chunk.
|
|
117
|
+
import "./chunks/chunk.OJ4KOC7R.js";
|
|
118
|
+
import "./chunks/chunk.K55MKNUR.js";
|
|
119
|
+
import "./chunks/chunk.GHX7BABO.js";
|
|
120
|
+
import "./chunks/chunk.7ONJ4JA4.js";
|
|
121
121
|
import "./chunks/chunk.4ZURABYO.js";
|
|
122
122
|
import "./chunks/chunk.O7USYXBT.js";
|
|
123
123
|
import "./chunks/chunk.DJOAQ4JU.js";
|