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