@sbb-esta/lyne-elements-dev 4.7.0-dev.1773045049 → 4.7.0-dev.1773045546
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/custom-elements.json
CHANGED
|
@@ -110804,16 +110804,20 @@
|
|
|
110804
110804
|
},
|
|
110805
110805
|
{
|
|
110806
110806
|
"kind": "javascript-module",
|
|
110807
|
-
"path": "toggle/toggle/toggle.component.js",
|
|
110807
|
+
"path": "toggle/toggle-option/toggle-option.component.js",
|
|
110808
110808
|
"declarations": [
|
|
110809
110809
|
{
|
|
110810
110810
|
"kind": "class",
|
|
110811
|
-
"description": "It
|
|
110812
|
-
"name": "
|
|
110811
|
+
"description": "It displays a toggle option within a `sbb-toggle`.",
|
|
110812
|
+
"name": "SbbToggleOptionElement",
|
|
110813
110813
|
"slots": [
|
|
110814
110814
|
{
|
|
110815
|
-
"description": "Use the unnamed slot to add
|
|
110815
|
+
"description": "Use the unnamed slot to add content to the label of the toggle option.",
|
|
110816
110816
|
"name": ""
|
|
110817
|
+
},
|
|
110818
|
+
{
|
|
110819
|
+
"description": "Slot used to render the `sbb-icon`.",
|
|
110820
|
+
"name": "icon"
|
|
110817
110821
|
}
|
|
110818
110822
|
],
|
|
110819
110823
|
"members": [
|
|
@@ -110826,41 +110830,18 @@
|
|
|
110826
110830
|
"privacy": "public",
|
|
110827
110831
|
"static": true,
|
|
110828
110832
|
"readonly": true,
|
|
110829
|
-
"default": "'
|
|
110830
|
-
},
|
|
110831
|
-
{
|
|
110832
|
-
"kind": "field",
|
|
110833
|
-
"name": "events",
|
|
110834
|
-
"privacy": "public",
|
|
110835
|
-
"static": true,
|
|
110836
|
-
"readonly": true,
|
|
110837
|
-
"default": "{ change: 'change', }",
|
|
110838
|
-
"type": {
|
|
110839
|
-
"text": "{\n change: 'change',\n }"
|
|
110840
|
-
}
|
|
110833
|
+
"default": "'radio'"
|
|
110841
110834
|
},
|
|
110842
110835
|
{
|
|
110843
110836
|
"kind": "field",
|
|
110844
|
-
"name": "
|
|
110837
|
+
"name": "checked",
|
|
110845
110838
|
"type": {
|
|
110846
110839
|
"text": "boolean"
|
|
110847
110840
|
},
|
|
110848
110841
|
"privacy": "public",
|
|
110849
110842
|
"default": "false",
|
|
110850
|
-
"description": "
|
|
110851
|
-
"attribute": "
|
|
110852
|
-
"reflects": true
|
|
110853
|
-
},
|
|
110854
|
-
{
|
|
110855
|
-
"kind": "field",
|
|
110856
|
-
"name": "size",
|
|
110857
|
-
"type": {
|
|
110858
|
-
"text": "'s' | 'm'"
|
|
110859
|
-
},
|
|
110860
|
-
"privacy": "public",
|
|
110861
|
-
"description": "Size variant, either m or s.",
|
|
110862
|
-
"default": "'m' / 's' (lean)",
|
|
110863
|
-
"attribute": "size",
|
|
110843
|
+
"description": "Whether the toggle-option is checked.",
|
|
110844
|
+
"attribute": "checked",
|
|
110864
110845
|
"reflects": true
|
|
110865
110846
|
},
|
|
110866
110847
|
{
|
|
@@ -110870,53 +110851,22 @@
|
|
|
110870
110851
|
"text": "(T = string) | null"
|
|
110871
110852
|
},
|
|
110872
110853
|
"privacy": "public",
|
|
110873
|
-
"
|
|
110874
|
-
"
|
|
110875
|
-
"
|
|
110876
|
-
"name": "SbbFormAssociatedMixin",
|
|
110877
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110878
|
-
}
|
|
110854
|
+
"default": "null",
|
|
110855
|
+
"description": "Value of toggle-option.",
|
|
110856
|
+
"attribute": "value"
|
|
110879
110857
|
},
|
|
110880
110858
|
{
|
|
110881
110859
|
"kind": "field",
|
|
110882
|
-
"name": "
|
|
110860
|
+
"name": "_toggle",
|
|
110883
110861
|
"type": {
|
|
110884
|
-
"text": "
|
|
110862
|
+
"text": "SbbToggleElement | null"
|
|
110885
110863
|
},
|
|
110886
110864
|
"privacy": "private",
|
|
110887
110865
|
"default": "null"
|
|
110888
110866
|
},
|
|
110889
|
-
{
|
|
110890
|
-
"kind": "field",
|
|
110891
|
-
"name": "options",
|
|
110892
|
-
"type": {
|
|
110893
|
-
"text": "SbbToggleOptionElement<T>[]"
|
|
110894
|
-
},
|
|
110895
|
-
"privacy": "public",
|
|
110896
|
-
"description": "The child instances of sbb-toggle-option as an array.",
|
|
110897
|
-
"readonly": true
|
|
110898
|
-
},
|
|
110899
|
-
{
|
|
110900
|
-
"kind": "method",
|
|
110901
|
-
"name": "_readFormData",
|
|
110902
|
-
"privacy": "private",
|
|
110903
|
-
"return": {
|
|
110904
|
-
"type": {
|
|
110905
|
-
"text": "Promise<T>"
|
|
110906
|
-
}
|
|
110907
|
-
},
|
|
110908
|
-
"parameters": [
|
|
110909
|
-
{
|
|
110910
|
-
"name": "formData",
|
|
110911
|
-
"type": {
|
|
110912
|
-
"text": "FormData"
|
|
110913
|
-
}
|
|
110914
|
-
}
|
|
110915
|
-
]
|
|
110916
|
-
},
|
|
110917
110867
|
{
|
|
110918
110868
|
"kind": "method",
|
|
110919
|
-
"name": "
|
|
110869
|
+
"name": "_uncheckOtherOptions",
|
|
110920
110870
|
"privacy": "private",
|
|
110921
110871
|
"return": {
|
|
110922
110872
|
"type": {
|
|
@@ -110926,25 +110876,7 @@
|
|
|
110926
110876
|
},
|
|
110927
110877
|
{
|
|
110928
110878
|
"kind": "method",
|
|
110929
|
-
"name": "
|
|
110930
|
-
"privacy": "private",
|
|
110931
|
-
"return": {
|
|
110932
|
-
"type": {
|
|
110933
|
-
"text": "void"
|
|
110934
|
-
}
|
|
110935
|
-
},
|
|
110936
|
-
"parameters": [
|
|
110937
|
-
{
|
|
110938
|
-
"name": "value",
|
|
110939
|
-
"type": {
|
|
110940
|
-
"text": "T | null"
|
|
110941
|
-
}
|
|
110942
|
-
}
|
|
110943
|
-
]
|
|
110944
|
-
},
|
|
110945
|
-
{
|
|
110946
|
-
"kind": "method",
|
|
110947
|
-
"name": "_updateDisabled",
|
|
110879
|
+
"name": "_handleDisabledChange",
|
|
110948
110880
|
"privacy": "private",
|
|
110949
110881
|
"return": {
|
|
110950
110882
|
"type": {
|
|
@@ -110960,44 +110892,17 @@
|
|
|
110960
110892
|
"type": {
|
|
110961
110893
|
"text": "void"
|
|
110962
110894
|
}
|
|
110963
|
-
}
|
|
110964
|
-
"description": "Called on user interaction (click or keyboard)"
|
|
110965
|
-
},
|
|
110966
|
-
{
|
|
110967
|
-
"kind": "method",
|
|
110968
|
-
"name": "_handleKeyDown",
|
|
110969
|
-
"privacy": "private",
|
|
110970
|
-
"return": {
|
|
110971
|
-
"type": {
|
|
110972
|
-
"text": "void"
|
|
110973
|
-
}
|
|
110974
|
-
},
|
|
110975
|
-
"parameters": [
|
|
110976
|
-
{
|
|
110977
|
-
"name": "evt",
|
|
110978
|
-
"type": {
|
|
110979
|
-
"text": "KeyboardEvent"
|
|
110980
|
-
}
|
|
110981
|
-
}
|
|
110982
|
-
]
|
|
110895
|
+
}
|
|
110983
110896
|
},
|
|
110984
110897
|
{
|
|
110985
110898
|
"kind": "method",
|
|
110986
|
-
"name": "
|
|
110899
|
+
"name": "_verifyTabindex",
|
|
110987
110900
|
"privacy": "private",
|
|
110988
110901
|
"return": {
|
|
110989
110902
|
"type": {
|
|
110990
110903
|
"text": "void"
|
|
110991
110904
|
}
|
|
110992
|
-
}
|
|
110993
|
-
"parameters": [
|
|
110994
|
-
{
|
|
110995
|
-
"name": "option",
|
|
110996
|
-
"type": {
|
|
110997
|
-
"text": "SbbToggleOptionElement<T> | undefined"
|
|
110998
|
-
}
|
|
110999
|
-
}
|
|
111000
|
-
]
|
|
110905
|
+
}
|
|
111001
110906
|
},
|
|
111002
110907
|
{
|
|
111003
110908
|
"kind": "field",
|
|
@@ -111045,323 +110950,353 @@
|
|
|
111045
110950
|
},
|
|
111046
110951
|
{
|
|
111047
110952
|
"kind": "field",
|
|
111048
|
-
"name": "
|
|
110953
|
+
"name": "iconName",
|
|
111049
110954
|
"type": {
|
|
111050
|
-
"text": "
|
|
110955
|
+
"text": "string"
|
|
111051
110956
|
},
|
|
111052
110957
|
"privacy": "public",
|
|
111053
|
-
"
|
|
111054
|
-
"
|
|
110958
|
+
"default": "''",
|
|
110959
|
+
"description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
|
|
110960
|
+
"attribute": "icon-name",
|
|
111055
110961
|
"inheritedFrom": {
|
|
111056
|
-
"name": "
|
|
111057
|
-
"module": "
|
|
110962
|
+
"name": "SbbIconNameMixin",
|
|
110963
|
+
"module": "icon/icon-name-mixin.js"
|
|
111058
110964
|
}
|
|
111059
110965
|
},
|
|
111060
110966
|
{
|
|
111061
|
-
"kind": "
|
|
111062
|
-
"name": "
|
|
111063
|
-
"
|
|
111064
|
-
|
|
110967
|
+
"kind": "method",
|
|
110968
|
+
"name": "renderIconSlot",
|
|
110969
|
+
"privacy": "protected",
|
|
110970
|
+
"return": {
|
|
110971
|
+
"type": {
|
|
110972
|
+
"text": "TemplateResult"
|
|
110973
|
+
}
|
|
111065
110974
|
},
|
|
111066
|
-
"
|
|
111067
|
-
|
|
111068
|
-
|
|
110975
|
+
"parameters": [
|
|
110976
|
+
{
|
|
110977
|
+
"name": "classname",
|
|
110978
|
+
"optional": true,
|
|
110979
|
+
"type": {
|
|
110980
|
+
"text": "string"
|
|
110981
|
+
}
|
|
110982
|
+
}
|
|
110983
|
+
],
|
|
111069
110984
|
"inheritedFrom": {
|
|
111070
|
-
"name": "
|
|
111071
|
-
"module": "
|
|
110985
|
+
"name": "SbbIconNameMixin",
|
|
110986
|
+
"module": "icon/icon-name-mixin.js"
|
|
111072
110987
|
}
|
|
111073
110988
|
},
|
|
111074
110989
|
{
|
|
111075
|
-
"kind": "
|
|
111076
|
-
"name": "
|
|
111077
|
-
"privacy": "
|
|
111078
|
-
"
|
|
111079
|
-
|
|
111080
|
-
|
|
110990
|
+
"kind": "method",
|
|
110991
|
+
"name": "renderIconName",
|
|
110992
|
+
"privacy": "protected",
|
|
110993
|
+
"return": {
|
|
110994
|
+
"type": {
|
|
110995
|
+
"text": "string"
|
|
110996
|
+
}
|
|
111081
110997
|
},
|
|
111082
|
-
"attribute": "name",
|
|
111083
110998
|
"inheritedFrom": {
|
|
111084
|
-
"name": "
|
|
111085
|
-
"module": "
|
|
110999
|
+
"name": "SbbIconNameMixin",
|
|
111000
|
+
"module": "icon/icon-name-mixin.js"
|
|
111086
111001
|
}
|
|
111087
111002
|
},
|
|
111088
111003
|
{
|
|
111089
|
-
"kind": "
|
|
111090
|
-
"name": "
|
|
111091
|
-
"
|
|
111092
|
-
|
|
111004
|
+
"kind": "method",
|
|
111005
|
+
"name": "_renderIconName",
|
|
111006
|
+
"privacy": "private",
|
|
111007
|
+
"return": {
|
|
111008
|
+
"type": {
|
|
111009
|
+
"text": "string"
|
|
111010
|
+
}
|
|
111093
111011
|
},
|
|
111094
|
-
"privacy": "public",
|
|
111095
|
-
"description": "Returns the ValidityState object for this element.",
|
|
111096
|
-
"readonly": true,
|
|
111097
111012
|
"inheritedFrom": {
|
|
111098
|
-
"name": "
|
|
111099
|
-
"module": "
|
|
111013
|
+
"name": "SbbIconNameMixin",
|
|
111014
|
+
"module": "icon/icon-name-mixin.js"
|
|
111100
111015
|
}
|
|
111101
111016
|
},
|
|
111102
111017
|
{
|
|
111103
|
-
"kind": "
|
|
111104
|
-
"name": "
|
|
111105
|
-
"
|
|
111106
|
-
|
|
111018
|
+
"kind": "method",
|
|
111019
|
+
"name": "toggleState",
|
|
111020
|
+
"privacy": "protected",
|
|
111021
|
+
"return": {
|
|
111022
|
+
"type": {
|
|
111023
|
+
"text": "void"
|
|
111024
|
+
}
|
|
111107
111025
|
},
|
|
111108
|
-
"
|
|
111109
|
-
|
|
111110
|
-
|
|
111026
|
+
"parameters": [
|
|
111027
|
+
{
|
|
111028
|
+
"name": "value",
|
|
111029
|
+
"type": {
|
|
111030
|
+
"text": "string"
|
|
111031
|
+
}
|
|
111032
|
+
},
|
|
111033
|
+
{
|
|
111034
|
+
"name": "force",
|
|
111035
|
+
"optional": true,
|
|
111036
|
+
"type": {
|
|
111037
|
+
"text": "boolean"
|
|
111038
|
+
}
|
|
111039
|
+
}
|
|
111040
|
+
],
|
|
111111
111041
|
"inheritedFrom": {
|
|
111112
|
-
"name": "
|
|
111113
|
-
"module": "core/mixins/
|
|
111042
|
+
"name": "SbbElementInternalsMixin",
|
|
111043
|
+
"module": "core/mixins/element-internals-mixin.js"
|
|
111114
111044
|
}
|
|
111115
|
-
}
|
|
111045
|
+
}
|
|
111046
|
+
],
|
|
111047
|
+
"attributes": [
|
|
111116
111048
|
{
|
|
111117
|
-
"
|
|
111118
|
-
"name": "willValidate",
|
|
111049
|
+
"name": "checked",
|
|
111119
111050
|
"type": {
|
|
111120
111051
|
"text": "boolean"
|
|
111121
111052
|
},
|
|
111122
|
-
"
|
|
111123
|
-
"description": "
|
|
111124
|
-
"
|
|
111125
|
-
"inheritedFrom": {
|
|
111126
|
-
"name": "SbbFormAssociatedMixin",
|
|
111127
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111128
|
-
}
|
|
111053
|
+
"default": "false",
|
|
111054
|
+
"description": "Whether the toggle-option is checked.",
|
|
111055
|
+
"fieldName": "checked"
|
|
111129
111056
|
},
|
|
111130
111057
|
{
|
|
111131
|
-
"
|
|
111132
|
-
"
|
|
111133
|
-
|
|
111134
|
-
|
|
111135
|
-
"
|
|
111136
|
-
|
|
111137
|
-
|
|
111138
|
-
}
|
|
111058
|
+
"name": "value",
|
|
111059
|
+
"type": {
|
|
111060
|
+
"text": "T | null"
|
|
111061
|
+
},
|
|
111062
|
+
"default": "null",
|
|
111063
|
+
"description": "Value of toggle-option.",
|
|
111064
|
+
"fieldName": "value"
|
|
111139
111065
|
},
|
|
111140
111066
|
{
|
|
111141
|
-
"
|
|
111142
|
-
"
|
|
111067
|
+
"name": "disabled",
|
|
111068
|
+
"description": "Whether the component is disabled.",
|
|
111069
|
+
"default": "false",
|
|
111143
111070
|
"type": {
|
|
111144
111071
|
"text": "boolean"
|
|
111145
111072
|
},
|
|
111146
|
-
"
|
|
111147
|
-
"default": "false",
|
|
111148
|
-
"description": "Whenever a surrounding form or fieldset is changing its disabled state.",
|
|
111073
|
+
"fieldName": "disabled",
|
|
111149
111074
|
"inheritedFrom": {
|
|
111150
|
-
"name": "
|
|
111151
|
-
"module": "core/mixins/
|
|
111075
|
+
"name": "SbbDisabledMixin",
|
|
111076
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
111152
111077
|
}
|
|
111153
111078
|
},
|
|
111154
111079
|
{
|
|
111155
|
-
"
|
|
111156
|
-
"
|
|
111157
|
-
|
|
111158
|
-
"return": {
|
|
111159
|
-
"type": {
|
|
111160
|
-
"text": "boolean"
|
|
111161
|
-
}
|
|
111080
|
+
"name": "icon-name",
|
|
111081
|
+
"type": {
|
|
111082
|
+
"text": "string"
|
|
111162
111083
|
},
|
|
111163
|
-
"
|
|
111084
|
+
"default": "''",
|
|
111085
|
+
"description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
|
|
111086
|
+
"fieldName": "iconName",
|
|
111164
111087
|
"inheritedFrom": {
|
|
111165
|
-
"name": "
|
|
111166
|
-
"module": "
|
|
111088
|
+
"name": "SbbIconNameMixin",
|
|
111089
|
+
"module": "icon/icon-name-mixin.js"
|
|
111167
111090
|
}
|
|
111091
|
+
}
|
|
111092
|
+
],
|
|
111093
|
+
"mixins": [
|
|
111094
|
+
{
|
|
111095
|
+
"name": "SbbDisabledMixin",
|
|
111096
|
+
"module": "core/mixins.js"
|
|
111168
111097
|
},
|
|
111169
111098
|
{
|
|
111170
|
-
"
|
|
111171
|
-
"
|
|
111172
|
-
|
|
111173
|
-
|
|
111174
|
-
|
|
111175
|
-
|
|
111176
|
-
|
|
111099
|
+
"name": "SbbIconNameMixin",
|
|
111100
|
+
"module": "icon.js"
|
|
111101
|
+
},
|
|
111102
|
+
{
|
|
111103
|
+
"name": "SbbElementInternalsMixin",
|
|
111104
|
+
"module": "core/mixins.js"
|
|
111105
|
+
}
|
|
111106
|
+
],
|
|
111107
|
+
"superclass": {
|
|
111108
|
+
"name": "LitElement",
|
|
111109
|
+
"package": "lit"
|
|
111110
|
+
},
|
|
111111
|
+
"classGenerics": "T = string",
|
|
111112
|
+
"tagName": "sbb-toggle-option",
|
|
111113
|
+
"customElement": true
|
|
111114
|
+
}
|
|
111115
|
+
],
|
|
111116
|
+
"exports": [
|
|
111117
|
+
{
|
|
111118
|
+
"kind": "js",
|
|
111119
|
+
"name": "SbbToggleOptionElement",
|
|
111120
|
+
"declaration": {
|
|
111121
|
+
"name": "SbbToggleOptionElement",
|
|
111122
|
+
"module": "toggle/toggle-option/toggle-option.component.js"
|
|
111123
|
+
}
|
|
111124
|
+
},
|
|
111125
|
+
{
|
|
111126
|
+
"kind": "custom-element-definition",
|
|
111127
|
+
"name": "sbb-toggle-option",
|
|
111128
|
+
"declaration": {
|
|
111129
|
+
"name": "SbbToggleOptionElement",
|
|
111130
|
+
"module": "toggle/toggle-option/toggle-option.component.js"
|
|
111131
|
+
}
|
|
111132
|
+
}
|
|
111133
|
+
]
|
|
111134
|
+
},
|
|
111135
|
+
{
|
|
111136
|
+
"kind": "javascript-module",
|
|
111137
|
+
"path": "toggle/toggle/toggle.component.js",
|
|
111138
|
+
"declarations": [
|
|
111139
|
+
{
|
|
111140
|
+
"kind": "class",
|
|
111141
|
+
"description": "It can be used as a container for two `sbb-toggle-option`, acting as a toggle button.",
|
|
111142
|
+
"name": "SbbToggleElement",
|
|
111143
|
+
"slots": [
|
|
111144
|
+
{
|
|
111145
|
+
"description": "Use the unnamed slot to add `<sbb-toggle-option>` elements to the toggle.",
|
|
111146
|
+
"name": ""
|
|
111147
|
+
}
|
|
111148
|
+
],
|
|
111149
|
+
"members": [
|
|
111150
|
+
{
|
|
111151
|
+
"kind": "field",
|
|
111152
|
+
"name": "role",
|
|
111153
|
+
"type": {
|
|
111154
|
+
"text": "string"
|
|
111177
111155
|
},
|
|
111178
|
-
"
|
|
111179
|
-
"
|
|
111180
|
-
|
|
111181
|
-
|
|
111182
|
-
}
|
|
111156
|
+
"privacy": "public",
|
|
111157
|
+
"static": true,
|
|
111158
|
+
"readonly": true,
|
|
111159
|
+
"default": "'radiogroup'"
|
|
111183
111160
|
},
|
|
111184
111161
|
{
|
|
111185
|
-
"kind": "
|
|
111186
|
-
"name": "
|
|
111162
|
+
"kind": "field",
|
|
111163
|
+
"name": "events",
|
|
111187
111164
|
"privacy": "public",
|
|
111188
|
-
"
|
|
111189
|
-
|
|
111190
|
-
|
|
111191
|
-
|
|
111192
|
-
|
|
111193
|
-
"parameters": [
|
|
111194
|
-
{
|
|
111195
|
-
"name": "message",
|
|
111196
|
-
"type": {
|
|
111197
|
-
"text": "string"
|
|
111198
|
-
}
|
|
111199
|
-
}
|
|
111200
|
-
],
|
|
111201
|
-
"description": "Sets the custom validity message for this element. Use the empty string\nto indicate that the element does not have a custom validity error.",
|
|
111202
|
-
"inheritedFrom": {
|
|
111203
|
-
"name": "SbbFormAssociatedMixin",
|
|
111204
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111165
|
+
"static": true,
|
|
111166
|
+
"readonly": true,
|
|
111167
|
+
"default": "{ change: 'change', }",
|
|
111168
|
+
"type": {
|
|
111169
|
+
"text": "{\n change: 'change',\n }"
|
|
111205
111170
|
}
|
|
111206
111171
|
},
|
|
111207
111172
|
{
|
|
111208
|
-
"kind": "
|
|
111209
|
-
"name": "
|
|
111210
|
-
"
|
|
111211
|
-
|
|
111212
|
-
"type": {
|
|
111213
|
-
"text": "boolean"
|
|
111214
|
-
}
|
|
111173
|
+
"kind": "field",
|
|
111174
|
+
"name": "even",
|
|
111175
|
+
"type": {
|
|
111176
|
+
"text": "boolean"
|
|
111215
111177
|
},
|
|
111216
|
-
"
|
|
111217
|
-
|
|
111218
|
-
|
|
111219
|
-
|
|
111178
|
+
"privacy": "public",
|
|
111179
|
+
"default": "false",
|
|
111180
|
+
"description": "If true, set the width of the component fixed; if false,\nthe width is dynamic based on the label of the sbb-toggle-option.",
|
|
111181
|
+
"attribute": "even",
|
|
111182
|
+
"reflects": true
|
|
111220
111183
|
},
|
|
111221
111184
|
{
|
|
111222
|
-
"kind": "
|
|
111223
|
-
"name": "
|
|
111224
|
-
"
|
|
111225
|
-
|
|
111226
|
-
"type": {
|
|
111227
|
-
"text": "void"
|
|
111228
|
-
}
|
|
111185
|
+
"kind": "field",
|
|
111186
|
+
"name": "size",
|
|
111187
|
+
"type": {
|
|
111188
|
+
"text": "'s' | 'm'"
|
|
111229
111189
|
},
|
|
111230
|
-
"
|
|
111231
|
-
"
|
|
111232
|
-
|
|
111233
|
-
|
|
111234
|
-
|
|
111190
|
+
"privacy": "public",
|
|
111191
|
+
"description": "Size variant, either m or s.",
|
|
111192
|
+
"default": "'m' / 's' (lean)",
|
|
111193
|
+
"attribute": "size",
|
|
111194
|
+
"reflects": true
|
|
111235
111195
|
},
|
|
111236
111196
|
{
|
|
111237
|
-
"kind": "
|
|
111238
|
-
"name": "
|
|
111239
|
-
"
|
|
111240
|
-
|
|
111241
|
-
"type": {
|
|
111242
|
-
"text": "FormRestoreState"
|
|
111243
|
-
}
|
|
111197
|
+
"kind": "field",
|
|
111198
|
+
"name": "value",
|
|
111199
|
+
"type": {
|
|
111200
|
+
"text": "(T = string) | null"
|
|
111244
111201
|
},
|
|
111202
|
+
"privacy": "public",
|
|
111203
|
+
"description": "The value of the toggle. It needs to be mutable since it is updated whenever\na new option is selected (see the `onToggleOptionSelect()` method).",
|
|
111204
|
+
"attribute": "value",
|
|
111245
111205
|
"inheritedFrom": {
|
|
111246
111206
|
"name": "SbbFormAssociatedMixin",
|
|
111247
111207
|
"module": "core/mixins/form-associated-mixin.js"
|
|
111248
111208
|
}
|
|
111249
111209
|
},
|
|
111250
111210
|
{
|
|
111251
|
-
"kind": "
|
|
111252
|
-
"name": "
|
|
111253
|
-
"
|
|
111254
|
-
|
|
111255
|
-
"type": {
|
|
111256
|
-
"text": "void"
|
|
111257
|
-
}
|
|
111211
|
+
"kind": "field",
|
|
111212
|
+
"name": "_fallbackValue",
|
|
111213
|
+
"type": {
|
|
111214
|
+
"text": "T | null"
|
|
111258
111215
|
},
|
|
111259
|
-
"
|
|
111260
|
-
|
|
111261
|
-
|
|
111262
|
-
|
|
111263
|
-
|
|
111264
|
-
|
|
111265
|
-
|
|
111266
|
-
|
|
111267
|
-
|
|
111268
|
-
|
|
111269
|
-
|
|
111270
|
-
|
|
111271
|
-
},
|
|
111272
|
-
{
|
|
111273
|
-
"name": "flagValue",
|
|
111274
|
-
"optional": true,
|
|
111275
|
-
"type": {
|
|
111276
|
-
"text": "ValidityStateFlags[T]"
|
|
111277
|
-
}
|
|
111278
|
-
}
|
|
111279
|
-
],
|
|
111280
|
-
"description": "Marks this element as suffering from the constraint indicated by the\nflag argument and associates the given message to it.\nNote that only one message is displayed at a time and custom messages by\nconsumers are always displayed before internal messages and internal\nmessages are displayed in the order they were added.\nTo set/define custom validity state flags, you need to extend the\nValidityState prototype (and the CustomValidityState interface).",
|
|
111281
|
-
"inheritedFrom": {
|
|
111282
|
-
"name": "SbbFormAssociatedMixin",
|
|
111283
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111284
|
-
}
|
|
111216
|
+
"privacy": "private",
|
|
111217
|
+
"default": "null"
|
|
111218
|
+
},
|
|
111219
|
+
{
|
|
111220
|
+
"kind": "field",
|
|
111221
|
+
"name": "options",
|
|
111222
|
+
"type": {
|
|
111223
|
+
"text": "SbbToggleOptionElement<T>[]"
|
|
111224
|
+
},
|
|
111225
|
+
"privacy": "public",
|
|
111226
|
+
"description": "The child instances of sbb-toggle-option as an array.",
|
|
111227
|
+
"readonly": true
|
|
111285
111228
|
},
|
|
111286
111229
|
{
|
|
111287
111230
|
"kind": "method",
|
|
111288
|
-
"name": "
|
|
111289
|
-
"privacy": "
|
|
111231
|
+
"name": "_readFormData",
|
|
111232
|
+
"privacy": "private",
|
|
111290
111233
|
"return": {
|
|
111291
111234
|
"type": {
|
|
111292
|
-
"text": "
|
|
111235
|
+
"text": "Promise<T>"
|
|
111293
111236
|
}
|
|
111294
111237
|
},
|
|
111295
111238
|
"parameters": [
|
|
111296
111239
|
{
|
|
111297
|
-
"name": "
|
|
111240
|
+
"name": "formData",
|
|
111298
111241
|
"type": {
|
|
111299
|
-
"text": "
|
|
111242
|
+
"text": "FormData"
|
|
111300
111243
|
}
|
|
111301
111244
|
}
|
|
111302
|
-
]
|
|
111303
|
-
"description": "Removes the validity state flag entry and updates validity state.",
|
|
111304
|
-
"inheritedFrom": {
|
|
111305
|
-
"name": "SbbFormAssociatedMixin",
|
|
111306
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111307
|
-
}
|
|
111245
|
+
]
|
|
111308
111246
|
},
|
|
111309
111247
|
{
|
|
111310
111248
|
"kind": "method",
|
|
111311
|
-
"name": "
|
|
111312
|
-
"privacy": "
|
|
111249
|
+
"name": "_updateToggle",
|
|
111250
|
+
"privacy": "private",
|
|
111313
111251
|
"return": {
|
|
111314
111252
|
"type": {
|
|
111315
111253
|
"text": "void"
|
|
111316
111254
|
}
|
|
111317
|
-
},
|
|
111318
|
-
"description": "To be called whenever the current element needs to be validated.",
|
|
111319
|
-
"inheritedFrom": {
|
|
111320
|
-
"name": "SbbFormAssociatedMixin",
|
|
111321
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111322
111255
|
}
|
|
111323
111256
|
},
|
|
111324
111257
|
{
|
|
111325
111258
|
"kind": "method",
|
|
111326
|
-
"name": "
|
|
111327
|
-
"privacy": "
|
|
111259
|
+
"name": "_valueChanged",
|
|
111260
|
+
"privacy": "private",
|
|
111328
111261
|
"return": {
|
|
111329
111262
|
"type": {
|
|
111330
|
-
"text": "
|
|
111263
|
+
"text": "void"
|
|
111331
111264
|
}
|
|
111332
111265
|
},
|
|
111333
111266
|
"parameters": [
|
|
111334
111267
|
{
|
|
111335
|
-
"name": "
|
|
111268
|
+
"name": "value",
|
|
111336
111269
|
"type": {
|
|
111337
|
-
"text": "
|
|
111270
|
+
"text": "T | null"
|
|
111338
111271
|
}
|
|
111339
111272
|
}
|
|
111340
|
-
]
|
|
111341
|
-
|
|
111342
|
-
|
|
111343
|
-
|
|
111344
|
-
|
|
111273
|
+
]
|
|
111274
|
+
},
|
|
111275
|
+
{
|
|
111276
|
+
"kind": "method",
|
|
111277
|
+
"name": "_updateDisabled",
|
|
111278
|
+
"privacy": "private",
|
|
111279
|
+
"return": {
|
|
111280
|
+
"type": {
|
|
111281
|
+
"text": "void"
|
|
111282
|
+
}
|
|
111345
111283
|
}
|
|
111346
111284
|
},
|
|
111347
111285
|
{
|
|
111348
111286
|
"kind": "method",
|
|
111349
|
-
"name": "
|
|
111287
|
+
"name": "_handleInput",
|
|
111350
111288
|
"privacy": "private",
|
|
111351
111289
|
"return": {
|
|
111352
111290
|
"type": {
|
|
111353
111291
|
"text": "void"
|
|
111354
111292
|
}
|
|
111355
111293
|
},
|
|
111356
|
-
"
|
|
111357
|
-
"name": "SbbFormAssociatedMixin",
|
|
111358
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111359
|
-
}
|
|
111294
|
+
"description": "Called on user interaction (click or keyboard)"
|
|
111360
111295
|
},
|
|
111361
111296
|
{
|
|
111362
111297
|
"kind": "method",
|
|
111363
|
-
"name": "
|
|
111364
|
-
"privacy": "
|
|
111298
|
+
"name": "_handleKeyDown",
|
|
111299
|
+
"privacy": "private",
|
|
111365
111300
|
"return": {
|
|
111366
111301
|
"type": {
|
|
111367
111302
|
"text": "void"
|
|
@@ -111369,339 +111304,388 @@
|
|
|
111369
111304
|
},
|
|
111370
111305
|
"parameters": [
|
|
111371
111306
|
{
|
|
111372
|
-
"name": "
|
|
111307
|
+
"name": "evt",
|
|
111373
111308
|
"type": {
|
|
111374
|
-
"text": "
|
|
111309
|
+
"text": "KeyboardEvent"
|
|
111375
111310
|
}
|
|
111376
|
-
}
|
|
111311
|
+
}
|
|
111312
|
+
]
|
|
111313
|
+
},
|
|
111314
|
+
{
|
|
111315
|
+
"kind": "method",
|
|
111316
|
+
"name": "_selectAndFocusOption",
|
|
111317
|
+
"privacy": "private",
|
|
111318
|
+
"return": {
|
|
111319
|
+
"type": {
|
|
111320
|
+
"text": "void"
|
|
111321
|
+
}
|
|
111322
|
+
},
|
|
111323
|
+
"parameters": [
|
|
111377
111324
|
{
|
|
111378
|
-
"name": "
|
|
111379
|
-
"optional": true,
|
|
111325
|
+
"name": "option",
|
|
111380
111326
|
"type": {
|
|
111381
|
-
"text": "
|
|
111327
|
+
"text": "SbbToggleOptionElement<T> | undefined"
|
|
111382
111328
|
}
|
|
111383
111329
|
}
|
|
111384
|
-
]
|
|
111385
|
-
|
|
111386
|
-
"name": "SbbElementInternalsMixin",
|
|
111387
|
-
"module": "core/mixins/element-internals-mixin.js"
|
|
111388
|
-
}
|
|
111389
|
-
}
|
|
111390
|
-
],
|
|
111391
|
-
"events": [
|
|
111330
|
+
]
|
|
111331
|
+
},
|
|
111392
111332
|
{
|
|
111393
|
-
"
|
|
111333
|
+
"kind": "field",
|
|
111334
|
+
"name": "disabled",
|
|
111335
|
+
"privacy": "public",
|
|
111336
|
+
"description": "Whether the component is disabled.",
|
|
111337
|
+
"default": "false",
|
|
111394
111338
|
"type": {
|
|
111395
|
-
"text": "
|
|
111339
|
+
"text": "boolean"
|
|
111396
111340
|
},
|
|
111397
|
-
"
|
|
111398
|
-
|
|
111399
|
-
|
|
111400
|
-
|
|
111341
|
+
"attribute": "disabled",
|
|
111342
|
+
"reflects": true,
|
|
111343
|
+
"inheritedFrom": {
|
|
111344
|
+
"name": "SbbDisabledMixin",
|
|
111345
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
111346
|
+
}
|
|
111347
|
+
},
|
|
111401
111348
|
{
|
|
111402
|
-
"
|
|
111349
|
+
"kind": "field",
|
|
111350
|
+
"name": "#disabled",
|
|
111351
|
+
"privacy": "private",
|
|
111403
111352
|
"type": {
|
|
111404
111353
|
"text": "boolean"
|
|
111405
111354
|
},
|
|
111406
111355
|
"default": "false",
|
|
111407
|
-
"
|
|
111408
|
-
|
|
111356
|
+
"inheritedFrom": {
|
|
111357
|
+
"name": "SbbDisabledMixin",
|
|
111358
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
111359
|
+
}
|
|
111409
111360
|
},
|
|
111410
111361
|
{
|
|
111411
|
-
"
|
|
111412
|
-
"
|
|
111413
|
-
|
|
111362
|
+
"kind": "method",
|
|
111363
|
+
"name": "isDisabledExternally",
|
|
111364
|
+
"privacy": "protected",
|
|
111365
|
+
"return": {
|
|
111366
|
+
"type": {
|
|
111367
|
+
"text": "boolean"
|
|
111368
|
+
}
|
|
111414
111369
|
},
|
|
111415
|
-
"description": "
|
|
111416
|
-
"
|
|
111417
|
-
|
|
111370
|
+
"description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
|
|
111371
|
+
"inheritedFrom": {
|
|
111372
|
+
"name": "SbbDisabledMixin",
|
|
111373
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
111374
|
+
}
|
|
111418
111375
|
},
|
|
111419
111376
|
{
|
|
111420
|
-
"
|
|
111421
|
-
"
|
|
111377
|
+
"kind": "field",
|
|
111378
|
+
"name": "formAssociated",
|
|
111422
111379
|
"type": {
|
|
111423
|
-
"text": "
|
|
111380
|
+
"text": "boolean"
|
|
111424
111381
|
},
|
|
111425
|
-
"
|
|
111382
|
+
"privacy": "public",
|
|
111383
|
+
"static": true,
|
|
111384
|
+
"default": "true",
|
|
111385
|
+
"inheritedFrom": {
|
|
111386
|
+
"name": "SbbFormAssociatedMixin",
|
|
111387
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111388
|
+
}
|
|
111426
111389
|
},
|
|
111427
111390
|
{
|
|
111428
|
-
"
|
|
111429
|
-
"
|
|
111430
|
-
"default": "false",
|
|
111391
|
+
"kind": "field",
|
|
111392
|
+
"name": "form",
|
|
111431
111393
|
"type": {
|
|
111432
|
-
"text": "
|
|
111394
|
+
"text": "HTMLFormElement | null"
|
|
111433
111395
|
},
|
|
111434
|
-
"
|
|
111396
|
+
"privacy": "public",
|
|
111397
|
+
"description": "Returns the form owner of this element.",
|
|
111398
|
+
"readonly": true,
|
|
111435
111399
|
"inheritedFrom": {
|
|
111436
|
-
"name": "
|
|
111437
|
-
"module": "core/mixins/
|
|
111400
|
+
"name": "SbbFormAssociatedMixin",
|
|
111401
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111438
111402
|
}
|
|
111439
111403
|
},
|
|
111440
111404
|
{
|
|
111405
|
+
"kind": "field",
|
|
111441
111406
|
"name": "name",
|
|
111407
|
+
"privacy": "public",
|
|
111442
111408
|
"description": "Name of the form element. Will be read from name attribute.",
|
|
111443
111409
|
"type": {
|
|
111444
111410
|
"text": "string"
|
|
111445
111411
|
},
|
|
111446
|
-
"
|
|
111412
|
+
"attribute": "name",
|
|
111447
111413
|
"inheritedFrom": {
|
|
111448
111414
|
"name": "SbbFormAssociatedMixin",
|
|
111449
111415
|
"module": "core/mixins/form-associated-mixin.js"
|
|
111450
111416
|
}
|
|
111451
|
-
}
|
|
111452
|
-
],
|
|
111453
|
-
"mixins": [
|
|
111454
|
-
{
|
|
111455
|
-
"name": "SbbDisabledMixin",
|
|
111456
|
-
"module": "core/mixins.js"
|
|
111457
111417
|
},
|
|
111458
111418
|
{
|
|
111459
|
-
"
|
|
111460
|
-
"
|
|
111461
|
-
|
|
111462
|
-
|
|
111463
|
-
|
|
111464
|
-
"
|
|
111465
|
-
|
|
111466
|
-
|
|
111467
|
-
|
|
111468
|
-
|
|
111469
|
-
|
|
111470
|
-
|
|
111471
|
-
"classGenerics": "T = string",
|
|
111472
|
-
"tagName": "sbb-toggle",
|
|
111473
|
-
"customElement": true
|
|
111474
|
-
}
|
|
111475
|
-
],
|
|
111476
|
-
"exports": [
|
|
111477
|
-
{
|
|
111478
|
-
"kind": "js",
|
|
111479
|
-
"name": "SbbToggleElement",
|
|
111480
|
-
"declaration": {
|
|
111481
|
-
"name": "SbbToggleElement",
|
|
111482
|
-
"module": "toggle/toggle/toggle.component.js"
|
|
111483
|
-
}
|
|
111484
|
-
},
|
|
111485
|
-
{
|
|
111486
|
-
"kind": "custom-element-definition",
|
|
111487
|
-
"name": "sbb-toggle",
|
|
111488
|
-
"declaration": {
|
|
111489
|
-
"name": "SbbToggleElement",
|
|
111490
|
-
"module": "toggle/toggle/toggle.component.js"
|
|
111491
|
-
}
|
|
111492
|
-
}
|
|
111493
|
-
]
|
|
111494
|
-
},
|
|
111495
|
-
{
|
|
111496
|
-
"kind": "javascript-module",
|
|
111497
|
-
"path": "toggle/toggle-option/toggle-option.component.js",
|
|
111498
|
-
"declarations": [
|
|
111499
|
-
{
|
|
111500
|
-
"kind": "class",
|
|
111501
|
-
"description": "It displays a toggle option within a `sbb-toggle`.",
|
|
111502
|
-
"name": "SbbToggleOptionElement",
|
|
111503
|
-
"slots": [
|
|
111504
|
-
{
|
|
111505
|
-
"description": "Use the unnamed slot to add content to the label of the toggle option.",
|
|
111506
|
-
"name": ""
|
|
111419
|
+
"kind": "field",
|
|
111420
|
+
"name": "validity",
|
|
111421
|
+
"type": {
|
|
111422
|
+
"text": "ValidityState"
|
|
111423
|
+
},
|
|
111424
|
+
"privacy": "public",
|
|
111425
|
+
"description": "Returns the ValidityState object for this element.",
|
|
111426
|
+
"readonly": true,
|
|
111427
|
+
"inheritedFrom": {
|
|
111428
|
+
"name": "SbbFormAssociatedMixin",
|
|
111429
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111430
|
+
}
|
|
111507
111431
|
},
|
|
111508
|
-
{
|
|
111509
|
-
"description": "Slot used to render the `sbb-icon`.",
|
|
111510
|
-
"name": "icon"
|
|
111511
|
-
}
|
|
111512
|
-
],
|
|
111513
|
-
"members": [
|
|
111514
111432
|
{
|
|
111515
111433
|
"kind": "field",
|
|
111516
|
-
"name": "
|
|
111434
|
+
"name": "validationMessage",
|
|
111517
111435
|
"type": {
|
|
111518
111436
|
"text": "string"
|
|
111519
111437
|
},
|
|
111520
111438
|
"privacy": "public",
|
|
111521
|
-
"
|
|
111439
|
+
"description": "Returns the current error message, if available, which corresponds\nto the current validation state.\nPlease note that only one message is returned at a time (e.g. if\nmultiple validity states are invalid, only the chronologically first one\nis returned until it is fixed, at which point the next message might be\nreturned, if it is still applicable). Also, a custom validity message\n(see below) has precedence over native validation messages.",
|
|
111522
111440
|
"readonly": true,
|
|
111523
|
-
"
|
|
111441
|
+
"inheritedFrom": {
|
|
111442
|
+
"name": "SbbFormAssociatedMixin",
|
|
111443
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111444
|
+
}
|
|
111524
111445
|
},
|
|
111525
111446
|
{
|
|
111526
111447
|
"kind": "field",
|
|
111527
|
-
"name": "
|
|
111448
|
+
"name": "willValidate",
|
|
111528
111449
|
"type": {
|
|
111529
111450
|
"text": "boolean"
|
|
111530
111451
|
},
|
|
111531
111452
|
"privacy": "public",
|
|
111532
|
-
"
|
|
111533
|
-
"
|
|
111534
|
-
"
|
|
111535
|
-
|
|
111453
|
+
"description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
|
|
111454
|
+
"readonly": true,
|
|
111455
|
+
"inheritedFrom": {
|
|
111456
|
+
"name": "SbbFormAssociatedMixin",
|
|
111457
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111458
|
+
}
|
|
111536
111459
|
},
|
|
111537
111460
|
{
|
|
111538
111461
|
"kind": "field",
|
|
111539
|
-
"name": "
|
|
111540
|
-
"
|
|
111541
|
-
|
|
111542
|
-
|
|
111543
|
-
|
|
111544
|
-
|
|
111545
|
-
|
|
111546
|
-
"attribute": "value"
|
|
111462
|
+
"name": "_validityStates",
|
|
111463
|
+
"privacy": "private",
|
|
111464
|
+
"default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
|
|
111465
|
+
"inheritedFrom": {
|
|
111466
|
+
"name": "SbbFormAssociatedMixin",
|
|
111467
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111468
|
+
}
|
|
111547
111469
|
},
|
|
111548
111470
|
{
|
|
111549
111471
|
"kind": "field",
|
|
111550
|
-
"name": "
|
|
111472
|
+
"name": "formDisabled",
|
|
111551
111473
|
"type": {
|
|
111552
|
-
"text": "
|
|
111474
|
+
"text": "boolean"
|
|
111553
111475
|
},
|
|
111554
|
-
"privacy": "
|
|
111555
|
-
"default": "
|
|
111476
|
+
"privacy": "protected",
|
|
111477
|
+
"default": "false",
|
|
111478
|
+
"description": "Whenever a surrounding form or fieldset is changing its disabled state.",
|
|
111479
|
+
"inheritedFrom": {
|
|
111480
|
+
"name": "SbbFormAssociatedMixin",
|
|
111481
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111482
|
+
}
|
|
111556
111483
|
},
|
|
111557
111484
|
{
|
|
111558
111485
|
"kind": "method",
|
|
111559
|
-
"name": "
|
|
111560
|
-
"privacy": "
|
|
111486
|
+
"name": "checkValidity",
|
|
111487
|
+
"privacy": "public",
|
|
111561
111488
|
"return": {
|
|
111562
111489
|
"type": {
|
|
111563
|
-
"text": "
|
|
111490
|
+
"text": "boolean"
|
|
111564
111491
|
}
|
|
111492
|
+
},
|
|
111493
|
+
"description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
|
|
111494
|
+
"inheritedFrom": {
|
|
111495
|
+
"name": "SbbFormAssociatedMixin",
|
|
111496
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111565
111497
|
}
|
|
111566
111498
|
},
|
|
111567
111499
|
{
|
|
111568
111500
|
"kind": "method",
|
|
111569
|
-
"name": "
|
|
111570
|
-
"privacy": "
|
|
111501
|
+
"name": "reportValidity",
|
|
111502
|
+
"privacy": "public",
|
|
111571
111503
|
"return": {
|
|
111572
111504
|
"type": {
|
|
111573
|
-
"text": "
|
|
111505
|
+
"text": "boolean"
|
|
111574
111506
|
}
|
|
111507
|
+
},
|
|
111508
|
+
"description": "Returns true if this element has no validity problems; otherwise,\nreturns false, fires an invalid event at the element,\nand (if the event isn't canceled) reports the problem to the user.",
|
|
111509
|
+
"inheritedFrom": {
|
|
111510
|
+
"name": "SbbFormAssociatedMixin",
|
|
111511
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111575
111512
|
}
|
|
111576
111513
|
},
|
|
111577
111514
|
{
|
|
111578
111515
|
"kind": "method",
|
|
111579
|
-
"name": "
|
|
111580
|
-
"privacy": "
|
|
111516
|
+
"name": "setCustomValidity",
|
|
111517
|
+
"privacy": "public",
|
|
111581
111518
|
"return": {
|
|
111582
111519
|
"type": {
|
|
111583
111520
|
"text": "void"
|
|
111584
111521
|
}
|
|
111522
|
+
},
|
|
111523
|
+
"parameters": [
|
|
111524
|
+
{
|
|
111525
|
+
"name": "message",
|
|
111526
|
+
"type": {
|
|
111527
|
+
"text": "string"
|
|
111528
|
+
}
|
|
111529
|
+
}
|
|
111530
|
+
],
|
|
111531
|
+
"description": "Sets the custom validity message for this element. Use the empty string\nto indicate that the element does not have a custom validity error.",
|
|
111532
|
+
"inheritedFrom": {
|
|
111533
|
+
"name": "SbbFormAssociatedMixin",
|
|
111534
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111585
111535
|
}
|
|
111586
111536
|
},
|
|
111587
111537
|
{
|
|
111588
111538
|
"kind": "method",
|
|
111589
|
-
"name": "
|
|
111539
|
+
"name": "_hasDisabledAncestor",
|
|
111590
111540
|
"privacy": "private",
|
|
111591
111541
|
"return": {
|
|
111592
111542
|
"type": {
|
|
111593
|
-
"text": "
|
|
111543
|
+
"text": "boolean"
|
|
111594
111544
|
}
|
|
111595
|
-
}
|
|
111596
|
-
},
|
|
111597
|
-
{
|
|
111598
|
-
"kind": "field",
|
|
111599
|
-
"name": "disabled",
|
|
111600
|
-
"privacy": "public",
|
|
111601
|
-
"description": "Whether the component is disabled.",
|
|
111602
|
-
"default": "false",
|
|
111603
|
-
"type": {
|
|
111604
|
-
"text": "boolean"
|
|
111605
111545
|
},
|
|
111606
|
-
"attribute": "disabled",
|
|
111607
|
-
"reflects": true,
|
|
111608
111546
|
"inheritedFrom": {
|
|
111609
|
-
"name": "
|
|
111610
|
-
"module": "core/mixins/
|
|
111547
|
+
"name": "SbbFormAssociatedMixin",
|
|
111548
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111611
111549
|
}
|
|
111612
111550
|
},
|
|
111613
111551
|
{
|
|
111614
|
-
"kind": "
|
|
111615
|
-
"name": "
|
|
111616
|
-
"privacy": "
|
|
111617
|
-
"
|
|
111618
|
-
"
|
|
111552
|
+
"kind": "method",
|
|
111553
|
+
"name": "updateFormValue",
|
|
111554
|
+
"privacy": "protected",
|
|
111555
|
+
"return": {
|
|
111556
|
+
"type": {
|
|
111557
|
+
"text": "void"
|
|
111558
|
+
}
|
|
111619
111559
|
},
|
|
111620
|
-
"
|
|
111560
|
+
"description": "Should be called when form value is changed.\nAdapts and sets the formValue in the supported format (string | FormData | File | null)\nhttps://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/setFormValue",
|
|
111621
111561
|
"inheritedFrom": {
|
|
111622
|
-
"name": "
|
|
111623
|
-
"module": "core/mixins/
|
|
111562
|
+
"name": "SbbFormAssociatedMixin",
|
|
111563
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111624
111564
|
}
|
|
111625
111565
|
},
|
|
111626
111566
|
{
|
|
111627
111567
|
"kind": "method",
|
|
111628
|
-
"name": "
|
|
111568
|
+
"name": "formState",
|
|
111629
111569
|
"privacy": "protected",
|
|
111630
111570
|
"return": {
|
|
111631
111571
|
"type": {
|
|
111632
|
-
"text": "
|
|
111572
|
+
"text": "FormRestoreState"
|
|
111633
111573
|
}
|
|
111634
111574
|
},
|
|
111635
|
-
"description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
|
|
111636
111575
|
"inheritedFrom": {
|
|
111637
|
-
"name": "
|
|
111638
|
-
"module": "core/mixins/
|
|
111576
|
+
"name": "SbbFormAssociatedMixin",
|
|
111577
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111639
111578
|
}
|
|
111640
111579
|
},
|
|
111641
111580
|
{
|
|
111642
|
-
"kind": "
|
|
111643
|
-
"name": "
|
|
111644
|
-
"
|
|
111645
|
-
|
|
111581
|
+
"kind": "method",
|
|
111582
|
+
"name": "setValidityFlag",
|
|
111583
|
+
"privacy": "protected",
|
|
111584
|
+
"return": {
|
|
111585
|
+
"type": {
|
|
111586
|
+
"text": "void"
|
|
111587
|
+
}
|
|
111646
111588
|
},
|
|
111647
|
-
"
|
|
111648
|
-
|
|
111649
|
-
|
|
111650
|
-
|
|
111589
|
+
"parameters": [
|
|
111590
|
+
{
|
|
111591
|
+
"name": "flag",
|
|
111592
|
+
"type": {
|
|
111593
|
+
"text": "T"
|
|
111594
|
+
}
|
|
111595
|
+
},
|
|
111596
|
+
{
|
|
111597
|
+
"name": "message",
|
|
111598
|
+
"type": {
|
|
111599
|
+
"text": "string"
|
|
111600
|
+
}
|
|
111601
|
+
},
|
|
111602
|
+
{
|
|
111603
|
+
"name": "flagValue",
|
|
111604
|
+
"optional": true,
|
|
111605
|
+
"type": {
|
|
111606
|
+
"text": "ValidityStateFlags[T]"
|
|
111607
|
+
}
|
|
111608
|
+
}
|
|
111609
|
+
],
|
|
111610
|
+
"description": "Marks this element as suffering from the constraint indicated by the\nflag argument and associates the given message to it.\nNote that only one message is displayed at a time and custom messages by\nconsumers are always displayed before internal messages and internal\nmessages are displayed in the order they were added.\nTo set/define custom validity state flags, you need to extend the\nValidityState prototype (and the CustomValidityState interface).",
|
|
111651
111611
|
"inheritedFrom": {
|
|
111652
|
-
"name": "
|
|
111653
|
-
"module": "
|
|
111612
|
+
"name": "SbbFormAssociatedMixin",
|
|
111613
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111654
111614
|
}
|
|
111655
111615
|
},
|
|
111656
111616
|
{
|
|
111657
111617
|
"kind": "method",
|
|
111658
|
-
"name": "
|
|
111618
|
+
"name": "removeValidityFlag",
|
|
111659
111619
|
"privacy": "protected",
|
|
111660
111620
|
"return": {
|
|
111661
111621
|
"type": {
|
|
111662
|
-
"text": "
|
|
111622
|
+
"text": "void"
|
|
111663
111623
|
}
|
|
111664
111624
|
},
|
|
111665
111625
|
"parameters": [
|
|
111666
111626
|
{
|
|
111667
|
-
"name": "
|
|
111668
|
-
"optional": true,
|
|
111627
|
+
"name": "flag",
|
|
111669
111628
|
"type": {
|
|
111670
|
-
"text": "
|
|
111629
|
+
"text": "T"
|
|
111671
111630
|
}
|
|
111672
111631
|
}
|
|
111673
111632
|
],
|
|
111633
|
+
"description": "Removes the validity state flag entry and updates validity state.",
|
|
111674
111634
|
"inheritedFrom": {
|
|
111675
|
-
"name": "
|
|
111676
|
-
"module": "
|
|
111635
|
+
"name": "SbbFormAssociatedMixin",
|
|
111636
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111677
111637
|
}
|
|
111678
111638
|
},
|
|
111679
111639
|
{
|
|
111680
111640
|
"kind": "method",
|
|
111681
|
-
"name": "
|
|
111641
|
+
"name": "validate",
|
|
111682
111642
|
"privacy": "protected",
|
|
111683
111643
|
"return": {
|
|
111684
111644
|
"type": {
|
|
111685
|
-
"text": "
|
|
111645
|
+
"text": "void"
|
|
111686
111646
|
}
|
|
111687
111647
|
},
|
|
111648
|
+
"description": "To be called whenever the current element needs to be validated.",
|
|
111688
111649
|
"inheritedFrom": {
|
|
111689
|
-
"name": "
|
|
111690
|
-
"module": "
|
|
111650
|
+
"name": "SbbFormAssociatedMixin",
|
|
111651
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111691
111652
|
}
|
|
111692
111653
|
},
|
|
111693
111654
|
{
|
|
111694
111655
|
"kind": "method",
|
|
111695
|
-
"name": "
|
|
111656
|
+
"name": "shouldValidate",
|
|
111657
|
+
"privacy": "protected",
|
|
111658
|
+
"return": {
|
|
111659
|
+
"type": {
|
|
111660
|
+
"text": "boolean"
|
|
111661
|
+
}
|
|
111662
|
+
},
|
|
111663
|
+
"parameters": [
|
|
111664
|
+
{
|
|
111665
|
+
"name": "name",
|
|
111666
|
+
"type": {
|
|
111667
|
+
"text": "PropertyKey | undefined"
|
|
111668
|
+
}
|
|
111669
|
+
}
|
|
111670
|
+
],
|
|
111671
|
+
"description": "Whether validation should be run on a property change with the given name.",
|
|
111672
|
+
"inheritedFrom": {
|
|
111673
|
+
"name": "SbbFormAssociatedMixin",
|
|
111674
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111675
|
+
}
|
|
111676
|
+
},
|
|
111677
|
+
{
|
|
111678
|
+
"kind": "method",
|
|
111679
|
+
"name": "_setInternalValidity",
|
|
111696
111680
|
"privacy": "private",
|
|
111697
111681
|
"return": {
|
|
111698
111682
|
"type": {
|
|
111699
|
-
"text": "
|
|
111683
|
+
"text": "void"
|
|
111700
111684
|
}
|
|
111701
111685
|
},
|
|
111702
111686
|
"inheritedFrom": {
|
|
111703
|
-
"name": "
|
|
111704
|
-
"module": "
|
|
111687
|
+
"name": "SbbFormAssociatedMixin",
|
|
111688
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111705
111689
|
}
|
|
111706
111690
|
},
|
|
111707
111691
|
{
|
|
@@ -111734,23 +111718,40 @@
|
|
|
111734
111718
|
}
|
|
111735
111719
|
}
|
|
111736
111720
|
],
|
|
111721
|
+
"events": [
|
|
111722
|
+
{
|
|
111723
|
+
"name": "change",
|
|
111724
|
+
"type": {
|
|
111725
|
+
"text": "Event"
|
|
111726
|
+
},
|
|
111727
|
+
"description": "The change event is fired when the user modifies the element's value.\nUnlike the input event, the change event is not necessarily fired\nfor each alteration to an element's value."
|
|
111728
|
+
}
|
|
111729
|
+
],
|
|
111737
111730
|
"attributes": [
|
|
111738
111731
|
{
|
|
111739
|
-
"name": "
|
|
111732
|
+
"name": "even",
|
|
111740
111733
|
"type": {
|
|
111741
111734
|
"text": "boolean"
|
|
111742
111735
|
},
|
|
111743
111736
|
"default": "false",
|
|
111744
|
-
"description": "
|
|
111745
|
-
"fieldName": "
|
|
111737
|
+
"description": "If true, set the width of the component fixed; if false,\nthe width is dynamic based on the label of the sbb-toggle-option.",
|
|
111738
|
+
"fieldName": "even"
|
|
111739
|
+
},
|
|
111740
|
+
{
|
|
111741
|
+
"name": "size",
|
|
111742
|
+
"type": {
|
|
111743
|
+
"text": "'s' | 'm'"
|
|
111744
|
+
},
|
|
111745
|
+
"description": "Size variant, either m or s.",
|
|
111746
|
+
"default": "'m' / 's' (lean)",
|
|
111747
|
+
"fieldName": "size"
|
|
111746
111748
|
},
|
|
111747
111749
|
{
|
|
111748
111750
|
"name": "value",
|
|
111751
|
+
"description": "The value of the toggle. It needs to be mutable since it is updated whenever\na new option is selected (see the `onToggleOptionSelect()` method).",
|
|
111749
111752
|
"type": {
|
|
111750
111753
|
"text": "T | null"
|
|
111751
111754
|
},
|
|
111752
|
-
"default": "null",
|
|
111753
|
-
"description": "Value of toggle-option.",
|
|
111754
111755
|
"fieldName": "value"
|
|
111755
111756
|
},
|
|
111756
111757
|
{
|
|
@@ -111767,16 +111768,15 @@
|
|
|
111767
111768
|
}
|
|
111768
111769
|
},
|
|
111769
111770
|
{
|
|
111770
|
-
"name": "
|
|
111771
|
+
"name": "name",
|
|
111772
|
+
"description": "Name of the form element. Will be read from name attribute.",
|
|
111771
111773
|
"type": {
|
|
111772
111774
|
"text": "string"
|
|
111773
111775
|
},
|
|
111774
|
-
"
|
|
111775
|
-
"description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
|
|
111776
|
-
"fieldName": "iconName",
|
|
111776
|
+
"fieldName": "name",
|
|
111777
111777
|
"inheritedFrom": {
|
|
111778
|
-
"name": "
|
|
111779
|
-
"module": "
|
|
111778
|
+
"name": "SbbFormAssociatedMixin",
|
|
111779
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111780
111780
|
}
|
|
111781
111781
|
}
|
|
111782
111782
|
],
|
|
@@ -111786,8 +111786,8 @@
|
|
|
111786
111786
|
"module": "core/mixins.js"
|
|
111787
111787
|
},
|
|
111788
111788
|
{
|
|
111789
|
-
"name": "
|
|
111790
|
-
"module": "
|
|
111789
|
+
"name": "SbbFormAssociatedMixin",
|
|
111790
|
+
"module": "core/mixins.js"
|
|
111791
111791
|
},
|
|
111792
111792
|
{
|
|
111793
111793
|
"name": "SbbElementInternalsMixin",
|
|
@@ -111799,25 +111799,25 @@
|
|
|
111799
111799
|
"package": "lit"
|
|
111800
111800
|
},
|
|
111801
111801
|
"classGenerics": "T = string",
|
|
111802
|
-
"tagName": "sbb-toggle
|
|
111802
|
+
"tagName": "sbb-toggle",
|
|
111803
111803
|
"customElement": true
|
|
111804
111804
|
}
|
|
111805
111805
|
],
|
|
111806
111806
|
"exports": [
|
|
111807
111807
|
{
|
|
111808
111808
|
"kind": "js",
|
|
111809
|
-
"name": "
|
|
111809
|
+
"name": "SbbToggleElement",
|
|
111810
111810
|
"declaration": {
|
|
111811
|
-
"name": "
|
|
111812
|
-
"module": "toggle/toggle
|
|
111811
|
+
"name": "SbbToggleElement",
|
|
111812
|
+
"module": "toggle/toggle/toggle.component.js"
|
|
111813
111813
|
}
|
|
111814
111814
|
},
|
|
111815
111815
|
{
|
|
111816
111816
|
"kind": "custom-element-definition",
|
|
111817
|
-
"name": "sbb-toggle
|
|
111817
|
+
"name": "sbb-toggle",
|
|
111818
111818
|
"declaration": {
|
|
111819
|
-
"name": "
|
|
111820
|
-
"module": "toggle/toggle
|
|
111819
|
+
"name": "SbbToggleElement",
|
|
111820
|
+
"module": "toggle/toggle/toggle.component.js"
|
|
111821
111821
|
}
|
|
111822
111822
|
}
|
|
111823
111823
|
]
|