@sbb-esta/lyne-elements-dev 4.6.0-dev.1772096037 → 4.6.0-dev.1772125127

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.
@@ -38043,7 +38043,7 @@
38043
38043
  "name": "LitElement",
38044
38044
  "package": "lit"
38045
38045
  },
38046
- "classGenerics": "T extends Date = Date",
38046
+ "classGenerics": "T = Date",
38047
38047
  "tagName": "sbb-calendar",
38048
38048
  "customElement": true
38049
38049
  }
@@ -38136,7 +38136,7 @@
38136
38136
  "privacy": "private",
38137
38137
  "return": {
38138
38138
  "type": {
38139
- "text": "SbbCalendarElement | null"
38139
+ "text": "SbbCalendarElement<T> | null"
38140
38140
  }
38141
38141
  },
38142
38142
  "description": "The component is used as the default day cell within the `sbb-calendar`,\nor, if extra content is needed, it can be slotted."
@@ -38154,7 +38154,7 @@
38154
38154
  {
38155
38155
  "name": "component",
38156
38156
  "type": {
38157
- "text": "SbbCalendarElement"
38157
+ "text": "SbbCalendarElement<T>"
38158
38158
  }
38159
38159
  }
38160
38160
  ]
@@ -38172,7 +38172,7 @@
38172
38172
  {
38173
38173
  "name": "component",
38174
38174
  "type": {
38175
- "text": "SbbCalendarElement"
38175
+ "text": "SbbCalendarElement<T>"
38176
38176
  }
38177
38177
  }
38178
38178
  ]
@@ -38190,7 +38190,7 @@
38190
38190
  {
38191
38191
  "name": "dateFilter",
38192
38192
  "type": {
38193
- "text": "((date: Date | null) => boolean) | null"
38193
+ "text": "((date: T | null) => boolean) | null"
38194
38194
  }
38195
38195
  }
38196
38196
  ]
@@ -38208,13 +38208,13 @@
38208
38208
  {
38209
38209
  "name": "min",
38210
38210
  "type": {
38211
- "text": "Date | null"
38211
+ "text": "T | null"
38212
38212
  }
38213
38213
  },
38214
38214
  {
38215
38215
  "name": "max",
38216
38216
  "type": {
38217
- "text": "Date | null"
38217
+ "text": "T | null"
38218
38218
  }
38219
38219
  }
38220
38220
  ]
@@ -38772,7 +38772,7 @@
38772
38772
  "name": "SbbButtonLikeBaseElement",
38773
38773
  "module": "core/base-elements.js"
38774
38774
  },
38775
- "classGenerics": "T extends Date = Date",
38775
+ "classGenerics": "T = Date",
38776
38776
  "tagName": "sbb-calendar-day",
38777
38777
  "customElement": true
38778
38778
  }
@@ -103808,52 +103808,168 @@
103808
103808
  },
103809
103809
  {
103810
103810
  "kind": "javascript-module",
103811
- "path": "stepper/step-label/step-label.component.js",
103811
+ "path": "stepper/stepper/stepper.component.js",
103812
103812
  "declarations": [
103813
103813
  {
103814
103814
  "kind": "class",
103815
- "description": "Combined with a `sbb-stepper`, it displays a step's label.",
103816
- "name": "SbbStepLabelElement",
103815
+ "description": "",
103816
+ "name": "SbbStepChangeEvent",
103817
+ "members": [
103818
+ {
103819
+ "kind": "field",
103820
+ "name": "selectedIndex",
103821
+ "type": {
103822
+ "text": "number | null"
103823
+ },
103824
+ "privacy": "public",
103825
+ "readonly": true,
103826
+ "description": "The index of the newly selected step.",
103827
+ "default": "selectedIndex"
103828
+ },
103829
+ {
103830
+ "kind": "field",
103831
+ "name": "previousIndex",
103832
+ "type": {
103833
+ "text": "number | null"
103834
+ },
103835
+ "privacy": "public",
103836
+ "readonly": true,
103837
+ "description": "The index of the previously selected step.",
103838
+ "default": "previousIndex"
103839
+ },
103840
+ {
103841
+ "kind": "field",
103842
+ "name": "selectedStep",
103843
+ "type": {
103844
+ "text": "SbbStepElement | null"
103845
+ },
103846
+ "privacy": "public",
103847
+ "readonly": true,
103848
+ "description": "The newly selected step element.",
103849
+ "default": "selectedStep"
103850
+ },
103851
+ {
103852
+ "kind": "field",
103853
+ "name": "previousStep",
103854
+ "type": {
103855
+ "text": "SbbStepElement | null"
103856
+ },
103857
+ "privacy": "public",
103858
+ "readonly": true,
103859
+ "description": "The previously selected step element.",
103860
+ "default": "previousStep"
103861
+ }
103862
+ ],
103863
+ "superclass": {
103864
+ "name": "Event",
103865
+ "module": "stepper/stepper/stepper.component.js"
103866
+ }
103867
+ },
103868
+ {
103869
+ "kind": "class",
103870
+ "description": "Provides a structured, step-by-step workflow for user interactions.",
103871
+ "name": "SbbStepperElement",
103817
103872
  "slots": [
103818
103873
  {
103819
- "description": "Use the unnamed slot to provide a label.",
103874
+ "description": "Provide a `sbb-expansion-panel-header` and a `sbb-expansion-panel-content` to the stepper.",
103820
103875
  "name": ""
103821
103876
  },
103822
103877
  {
103823
- "description": "Use this to display an icon in the label bubble.",
103824
- "name": "icon"
103878
+ "description": "Use this slot to provide an `sbb-step-label`.",
103879
+ "name": "step-label"
103880
+ },
103881
+ {
103882
+ "description": "Use this slot to provide an `sbb-step`.",
103883
+ "name": "step"
103825
103884
  }
103826
103885
  ],
103827
103886
  "members": [
103828
103887
  {
103829
103888
  "kind": "field",
103830
- "name": "role",
103831
- "type": {
103832
- "text": "string"
103833
- },
103889
+ "name": "events",
103834
103890
  "privacy": "public",
103835
103891
  "static": true,
103836
103892
  "readonly": true,
103837
- "default": "'tab'",
103838
- "inheritedFrom": {
103839
- "name": "SbbButtonLikeBaseElement",
103840
- "module": "core/base-elements/button-base-element.js"
103893
+ "default": "{ stepchange: 'stepchange', }",
103894
+ "type": {
103895
+ "text": "{\n stepchange: 'stepchange',\n }"
103841
103896
  }
103842
103897
  },
103843
103898
  {
103844
103899
  "kind": "field",
103845
- "name": "step",
103900
+ "name": "_observer",
103901
+ "privacy": "private",
103902
+ "default": "new IntersectionController(this, { target: null, callback: (entries) => { entries.forEach((e) => { if (e.intersectionRatio > 0) { this._setStepperHeight(this.selected); this._setMarkerSize(); } }); }, })",
103903
+ "description": "If the sbb-stepper is used in a sbb-dialog, the marker on the selected element will not appear,\nbecause the calculations are done when the dialog is closed, so the marker has a width of 0;\nthe same happens for the stepper height.\nWe need to recalculate it when the element becomes visible."
103904
+ },
103905
+ {
103906
+ "kind": "field",
103907
+ "name": "linear",
103846
103908
  "type": {
103847
- "text": "SbbStepElement | null"
103909
+ "text": "boolean"
103848
103910
  },
103849
103911
  "privacy": "public",
103850
- "description": "The step controlled by the label.",
103851
- "readonly": true,
103912
+ "default": "false",
103913
+ "description": "If set to true, only the current and previous labels can be clicked and selected.",
103914
+ "attribute": "linear"
103915
+ },
103916
+ {
103917
+ "kind": "field",
103918
+ "name": "horizontalFrom",
103919
+ "privacy": "public",
103920
+ "description": "Overrides the behavior of `orientation` property.",
103921
+ "type": {
103922
+ "text": "SbbHorizontalFrom | null"
103923
+ },
103924
+ "attribute": "horizontal-from",
103925
+ "reflects": true,
103852
103926
  "default": "null"
103853
103927
  },
103854
103928
  {
103855
103929
  "kind": "field",
103856
- "name": "_step",
103930
+ "name": "_horizontalFrom",
103931
+ "type": {
103932
+ "text": "SbbHorizontalFrom | null"
103933
+ },
103934
+ "privacy": "private",
103935
+ "default": "null"
103936
+ },
103937
+ {
103938
+ "kind": "field",
103939
+ "name": "orientation",
103940
+ "type": {
103941
+ "text": "SbbOrientation"
103942
+ },
103943
+ "privacy": "public",
103944
+ "default": "'horizontal'",
103945
+ "description": "Steps orientation, either horizontal or vertical.",
103946
+ "attribute": "orientation",
103947
+ "reflects": true
103948
+ },
103949
+ {
103950
+ "kind": "field",
103951
+ "name": "size",
103952
+ "type": {
103953
+ "text": "'s' | 'm'"
103954
+ },
103955
+ "privacy": "public",
103956
+ "description": "Size variant, either s or m.",
103957
+ "default": "'m' / 's' (lean)",
103958
+ "attribute": "size",
103959
+ "reflects": true
103960
+ },
103961
+ {
103962
+ "kind": "field",
103963
+ "name": "selected",
103964
+ "privacy": "public",
103965
+ "description": "The currently selected step.",
103966
+ "type": {
103967
+ "text": "SbbStepElement | null"
103968
+ }
103969
+ },
103970
+ {
103971
+ "kind": "field",
103972
+ "name": "_requestedSelected",
103857
103973
  "type": {
103858
103974
  "text": "SbbStepElement | null"
103859
103975
  },
@@ -103862,250 +103978,240 @@
103862
103978
  },
103863
103979
  {
103864
103980
  "kind": "field",
103865
- "name": "stepper",
103981
+ "name": "selectedIndex",
103982
+ "privacy": "public",
103983
+ "description": "The currently selected step index.",
103866
103984
  "type": {
103867
- "text": "SbbStepperElement | null"
103985
+ "text": "number | null"
103986
+ },
103987
+ "attribute": "selected-index"
103988
+ },
103989
+ {
103990
+ "kind": "field",
103991
+ "name": "_requestedSelectedIndex",
103992
+ "type": {
103993
+ "text": "number | null"
103994
+ },
103995
+ "privacy": "private",
103996
+ "default": "null"
103997
+ },
103998
+ {
103999
+ "kind": "field",
104000
+ "name": "steps",
104001
+ "type": {
104002
+ "text": "SbbStepElement[]"
103868
104003
  },
103869
104004
  "privacy": "public",
104005
+ "description": "The steps of the stepper.",
103870
104006
  "readonly": true
103871
104007
  },
103872
104008
  {
103873
104009
  "kind": "field",
103874
- "name": "disabled",
103875
- "privacy": "public",
103876
- "description": "Whether the component is disabled.",
103877
- "default": "false",
104010
+ "name": "_enabledSteps",
103878
104011
  "type": {
103879
- "text": "boolean"
104012
+ "text": "SbbStepElement[]"
103880
104013
  },
103881
- "attribute": "disabled",
103882
- "reflects": true,
103883
- "inheritedFrom": {
103884
- "name": "SbbDisabledMixin",
103885
- "module": "core/mixins/disabled-mixin.js"
103886
- }
104014
+ "privacy": "private",
104015
+ "readonly": true
103887
104016
  },
103888
104017
  {
103889
104018
  "kind": "field",
103890
- "name": "_previousOrientation",
104019
+ "name": "_loaded",
103891
104020
  "type": {
103892
- "text": "string | undefined"
104021
+ "text": "boolean"
103893
104022
  },
103894
- "privacy": "private"
104023
+ "privacy": "private",
104024
+ "default": "false"
103895
104025
  },
103896
104026
  {
103897
104027
  "kind": "field",
103898
- "name": "_previousSize",
104028
+ "name": "_resizeObserverTimeout",
103899
104029
  "type": {
103900
- "text": "string | undefined"
104030
+ "text": "ReturnType<typeof setTimeout> | null"
103901
104031
  },
103902
- "privacy": "private"
104032
+ "privacy": "private",
104033
+ "default": "null"
104034
+ },
104035
+ {
104036
+ "kind": "field",
104037
+ "name": "_mediaMatcher",
104038
+ "privacy": "private",
104039
+ "default": "new SbbMediaMatcherController(this, {})"
103903
104040
  },
103904
104041
  {
103905
104042
  "kind": "method",
103906
- "name": "_isNotDeactivatedByLinearMode",
104043
+ "name": "next",
104044
+ "privacy": "public",
104045
+ "return": {
104046
+ "type": {
104047
+ "text": "void"
104048
+ }
104049
+ },
104050
+ "description": "Selects the next step."
104051
+ },
104052
+ {
104053
+ "kind": "method",
104054
+ "name": "previous",
104055
+ "privacy": "public",
104056
+ "return": {
104057
+ "type": {
104058
+ "text": "void"
104059
+ }
104060
+ },
104061
+ "description": "Selects the previous step."
104062
+ },
104063
+ {
104064
+ "kind": "method",
104065
+ "name": "reset",
104066
+ "privacy": "public",
104067
+ "return": {
104068
+ "type": {
104069
+ "text": "void"
104070
+ }
104071
+ },
104072
+ "description": "Resets the form in which the stepper is nested or every form of each step, if any."
104073
+ },
104074
+ {
104075
+ "kind": "method",
104076
+ "name": "_isSelectable",
103907
104077
  "privacy": "private",
103908
104078
  "return": {
103909
104079
  "type": {
103910
- "text": "boolean"
104080
+ "text": "step is SbbStepElement"
103911
104081
  }
103912
104082
  },
103913
104083
  "parameters": [
103914
104084
  {
103915
104085
  "name": "step",
103916
104086
  "type": {
103917
- "text": "SbbStepElement"
104087
+ "text": "SbbStepElement | null"
103918
104088
  }
103919
104089
  }
103920
104090
  ]
103921
104091
  },
103922
104092
  {
103923
104093
  "kind": "method",
103924
- "name": "_assignStep",
104094
+ "name": "_select",
103925
104095
  "privacy": "private",
103926
104096
  "return": {
103927
104097
  "type": {
103928
104098
  "text": "void"
103929
104099
  }
103930
- }
104100
+ },
104101
+ "parameters": [
104102
+ {
104103
+ "name": "step",
104104
+ "type": {
104105
+ "text": "SbbStepElement | null"
104106
+ }
104107
+ }
104108
+ ]
103931
104109
  },
103932
104110
  {
103933
- "kind": "field",
103934
- "name": "iconName",
103935
- "type": {
103936
- "text": "string"
103937
- },
103938
- "privacy": "public",
103939
- "default": "''",
103940
- "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.",
103941
- "attribute": "icon-name",
103942
- "inheritedFrom": {
103943
- "name": "SbbIconNameMixin",
103944
- "module": "icon/icon-name-mixin.js"
104111
+ "kind": "method",
104112
+ "name": "_setMarkerSize",
104113
+ "privacy": "private",
104114
+ "return": {
104115
+ "type": {
104116
+ "text": "void"
104117
+ }
103945
104118
  }
103946
104119
  },
103947
104120
  {
103948
104121
  "kind": "method",
103949
- "name": "renderIconSlot",
103950
- "privacy": "protected",
104122
+ "name": "_setStepperHeight",
104123
+ "privacy": "private",
103951
104124
  "return": {
103952
104125
  "type": {
103953
- "text": "TemplateResult"
104126
+ "text": "void"
103954
104127
  }
103955
104128
  },
103956
104129
  "parameters": [
103957
104130
  {
103958
- "name": "classname",
103959
- "optional": true,
104131
+ "name": "step",
103960
104132
  "type": {
103961
- "text": "string"
104133
+ "text": "SbbStepElement | null"
103962
104134
  }
103963
104135
  }
103964
104136
  ],
103965
- "inheritedFrom": {
103966
- "name": "SbbIconNameMixin",
103967
- "module": "icon/icon-name-mixin.js"
103968
- }
104137
+ "description": "Sets the stepper height based on the height of the provided step."
103969
104138
  },
103970
104139
  {
103971
104140
  "kind": "method",
103972
- "name": "renderIconName",
103973
- "privacy": "protected",
104141
+ "name": "_calculateLabelOffsetTop",
104142
+ "privacy": "private",
103974
104143
  "return": {
103975
104144
  "type": {
103976
- "text": "string"
104145
+ "text": "number | undefined"
103977
104146
  }
103978
- },
103979
- "inheritedFrom": {
103980
- "name": "SbbIconNameMixin",
103981
- "module": "icon/icon-name-mixin.js"
103982
104147
  }
103983
104148
  },
103984
104149
  {
103985
104150
  "kind": "method",
103986
- "name": "_renderIconName",
104151
+ "name": "_onSelectedStepResize",
103987
104152
  "privacy": "private",
103988
104153
  "return": {
103989
104154
  "type": {
103990
- "text": "string"
104155
+ "text": "void"
103991
104156
  }
103992
104157
  },
103993
- "inheritedFrom": {
103994
- "name": "SbbIconNameMixin",
103995
- "module": "icon/icon-name-mixin.js"
103996
- }
104158
+ "parameters": [
104159
+ {
104160
+ "name": "e",
104161
+ "type": {
104162
+ "text": "Event"
104163
+ }
104164
+ }
104165
+ ]
103997
104166
  },
103998
104167
  {
103999
- "kind": "field",
104000
- "name": "#disabled",
104168
+ "kind": "method",
104169
+ "name": "_configure",
104001
104170
  "privacy": "private",
104002
- "type": {
104003
- "text": "boolean"
104004
- },
104005
- "default": "false",
104006
- "inheritedFrom": {
104007
- "name": "SbbDisabledMixin",
104008
- "module": "core/mixins/disabled-mixin.js"
104171
+ "return": {
104172
+ "type": {
104173
+ "text": "void"
104174
+ }
104009
104175
  }
104010
104176
  },
104011
104177
  {
104012
104178
  "kind": "method",
104013
- "name": "isDisabledExternally",
104014
- "privacy": "protected",
104179
+ "name": "_updateLabels",
104180
+ "privacy": "private",
104015
104181
  "return": {
104016
104182
  "type": {
104017
- "text": "boolean"
104183
+ "text": "void"
104018
104184
  }
104019
- },
104020
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
104021
- "inheritedFrom": {
104022
- "name": "SbbDisabledMixin",
104023
- "module": "core/mixins/disabled-mixin.js"
104024
104185
  }
104025
104186
  },
104026
104187
  {
104027
- "kind": "field",
104028
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
104029
- "type": {
104030
- "text": "array"
104031
- },
104188
+ "kind": "method",
104189
+ "name": "_checkOrientation",
104032
104190
  "privacy": "private",
104033
- "readonly": true,
104034
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
104035
- "inheritedFrom": {
104036
- "name": "SbbButtonBaseElement",
104037
- "module": "core/base-elements/button-base-element.js"
104038
- }
104039
- },
104040
- {
104041
- "kind": "field",
104042
- "name": "value",
104043
- "type": {
104044
- "text": "string"
104045
- },
104046
- "privacy": "public",
104047
- "inheritedFrom": {
104048
- "name": "SbbButtonBaseElement",
104049
- "module": "core/base-elements/button-base-element.js"
104050
- },
104051
- "default": "''",
104052
- "description": "Value of the form element.",
104053
- "attribute": "value"
104054
- },
104055
- {
104056
- "kind": "field",
104057
- "name": "type",
104058
- "privacy": "public",
104059
- "description": "The type attribute to use for the button.",
104060
- "default": "'button'",
104061
- "type": {
104062
- "text": "SbbButtonType"
104063
- },
104064
- "attribute": "type",
104065
- "inheritedFrom": {
104066
- "name": "SbbButtonBaseElement",
104067
- "module": "core/base-elements/button-base-element.js"
104191
+ "return": {
104192
+ "type": {
104193
+ "text": "void"
104194
+ }
104068
104195
  }
104069
104196
  },
104070
104197
  {
104071
104198
  "kind": "field",
104072
- "name": "form",
104073
- "type": {
104074
- "text": "HTMLFormElement | null"
104075
- },
104076
- "privacy": "public",
104077
- "description": "The `<form>` element to associate the button with.",
104078
- "inheritedFrom": {
104079
- "name": "SbbButtonBaseElement",
104080
- "module": "core/base-elements/button-base-element.js"
104081
- },
104082
- "attribute": "form"
104083
- },
104084
- {
104085
- "kind": "field",
104086
- "name": "_formId",
104087
- "type": {
104088
- "text": "string"
104089
- },
104090
- "privacy": "private",
104091
- "default": "''",
104092
- "inheritedFrom": {
104093
- "name": "SbbButtonBaseElement",
104094
- "module": "core/base-elements/button-base-element.js"
104095
- }
104199
+ "name": "_onStepperResize",
104200
+ "privacy": "private"
104096
104201
  },
104097
104202
  {
104098
- "kind": "field",
104099
- "name": "_handleButtonClick",
104203
+ "kind": "method",
104204
+ "name": "_configureLinearMode",
104100
104205
  "privacy": "private",
104101
- "inheritedFrom": {
104102
- "name": "SbbButtonBaseElement",
104103
- "module": "core/base-elements/button-base-element.js"
104206
+ "return": {
104207
+ "type": {
104208
+ "text": "void"
104209
+ }
104104
104210
  }
104105
104211
  },
104106
104212
  {
104107
104213
  "kind": "method",
104108
- "name": "_requestSubmit",
104214
+ "name": "_handleKeyDown",
104109
104215
  "privacy": "private",
104110
104216
  "return": {
104111
104217
  "type": {
@@ -104114,294 +104220,299 @@
104114
104220
  },
104115
104221
  "parameters": [
104116
104222
  {
104117
- "name": "form",
104223
+ "name": "evt",
104118
104224
  "type": {
104119
- "text": "HTMLFormElement"
104225
+ "text": "KeyboardEvent"
104120
104226
  }
104121
104227
  }
104122
- ],
104123
- "inheritedFrom": {
104124
- "name": "SbbButtonBaseElement",
104125
- "module": "core/base-elements/button-base-element.js"
104126
- }
104127
- },
104128
- {
104129
- "kind": "field",
104130
- "name": "_formKeyDown",
104131
- "privacy": "private",
104132
- "inheritedFrom": {
104133
- "name": "SbbButtonBaseElement",
104134
- "module": "core/base-elements/button-base-element.js"
104135
- }
104228
+ ]
104136
104229
  },
104137
104230
  {
104138
104231
  "kind": "field",
104139
- "name": "formAssociated",
104232
+ "name": "_hydrationRequired",
104140
104233
  "type": {
104141
104234
  "text": "boolean"
104142
104235
  },
104143
- "privacy": "public",
104144
- "static": true,
104145
- "default": "true",
104236
+ "privacy": "private",
104237
+ "default": "!!this.shadowRoot",
104146
104238
  "inheritedFrom": {
104147
- "name": "SbbFormAssociatedMixin",
104148
- "module": "core/mixins/form-associated-mixin.js"
104239
+ "name": "SbbHydrationMixin",
104240
+ "module": "core/mixins/hydration-mixin.js"
104149
104241
  }
104150
104242
  },
104151
104243
  {
104152
104244
  "kind": "field",
104153
- "name": "name",
104154
- "privacy": "public",
104155
- "description": "Name of the form element. Will be read from name attribute.",
104156
- "type": {
104157
- "text": "string"
104158
- },
104159
- "attribute": "name",
104245
+ "name": "_hydrationComplete",
104246
+ "privacy": "private",
104247
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
104160
104248
  "inheritedFrom": {
104161
- "name": "SbbFormAssociatedMixin",
104162
- "module": "core/mixins/form-associated-mixin.js"
104249
+ "name": "SbbHydrationMixin",
104250
+ "module": "core/mixins/hydration-mixin.js"
104163
104251
  }
104164
104252
  },
104165
104253
  {
104166
104254
  "kind": "field",
104167
- "name": "validity",
104255
+ "name": "_resolveHydration",
104168
104256
  "type": {
104169
- "text": "ValidityState"
104257
+ "text": "(hydrationRequired: boolean) => void"
104170
104258
  },
104171
- "privacy": "public",
104172
- "description": "Returns the ValidityState object for this element.",
104173
- "readonly": true,
104259
+ "privacy": "private",
104174
104260
  "inheritedFrom": {
104175
- "name": "SbbFormAssociatedMixin",
104176
- "module": "core/mixins/form-associated-mixin.js"
104261
+ "name": "SbbHydrationMixin",
104262
+ "module": "core/mixins/hydration-mixin.js"
104177
104263
  }
104178
104264
  },
104179
104265
  {
104180
104266
  "kind": "field",
104181
- "name": "validationMessage",
104267
+ "name": "hydrationRequired",
104182
104268
  "type": {
104183
- "text": "string"
104269
+ "text": "boolean"
104184
104270
  },
104185
- "privacy": "public",
104186
- "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.",
104271
+ "privacy": "protected",
104272
+ "description": "Returns whether hydration is required and not completed.",
104187
104273
  "readonly": true,
104188
104274
  "inheritedFrom": {
104189
- "name": "SbbFormAssociatedMixin",
104190
- "module": "core/mixins/form-associated-mixin.js"
104191
- }
104275
+ "name": "SbbHydrationMixin",
104276
+ "module": "core/mixins/hydration-mixin.js"
104277
+ },
104278
+ "default": "!!this.shadowRoot"
104192
104279
  },
104193
104280
  {
104194
- "kind": "field",
104195
- "name": "willValidate",
104196
- "type": {
104197
- "text": "boolean"
104281
+ "kind": "method",
104282
+ "name": "toggleState",
104283
+ "privacy": "protected",
104284
+ "return": {
104285
+ "type": {
104286
+ "text": "void"
104287
+ }
104198
104288
  },
104199
- "privacy": "public",
104200
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
104201
- "readonly": true,
104289
+ "parameters": [
104290
+ {
104291
+ "name": "value",
104292
+ "type": {
104293
+ "text": "string"
104294
+ }
104295
+ },
104296
+ {
104297
+ "name": "force",
104298
+ "optional": true,
104299
+ "type": {
104300
+ "text": "boolean"
104301
+ }
104302
+ }
104303
+ ],
104202
104304
  "inheritedFrom": {
104203
- "name": "SbbFormAssociatedMixin",
104204
- "module": "core/mixins/form-associated-mixin.js"
104305
+ "name": "SbbElementInternalsMixin",
104306
+ "module": "core/mixins/element-internals-mixin.js"
104205
104307
  }
104206
- },
104308
+ }
104309
+ ],
104310
+ "events": [
104207
104311
  {
104208
- "kind": "field",
104209
- "name": "_validityStates",
104210
- "privacy": "private",
104211
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
104212
- "inheritedFrom": {
104213
- "name": "SbbFormAssociatedMixin",
104214
- "module": "core/mixins/form-associated-mixin.js"
104215
- }
104216
- },
104312
+ "type": {
104313
+ "text": "SbbStepChangeEvent"
104314
+ },
104315
+ "description": "Emits whenever a step was changed.",
104316
+ "name": "stepchange"
104317
+ }
104318
+ ],
104319
+ "attributes": [
104217
104320
  {
104218
- "kind": "field",
104219
- "name": "formDisabled",
104321
+ "name": "linear",
104220
104322
  "type": {
104221
104323
  "text": "boolean"
104222
104324
  },
104223
- "privacy": "protected",
104224
104325
  "default": "false",
104225
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
104226
- "inheritedFrom": {
104227
- "name": "SbbFormAssociatedMixin",
104228
- "module": "core/mixins/form-associated-mixin.js"
104229
- }
104326
+ "description": "If set to true, only the current and previous labels can be clicked and selected.",
104327
+ "fieldName": "linear"
104230
104328
  },
104231
104329
  {
104232
- "kind": "method",
104233
- "name": "checkValidity",
104234
- "privacy": "public",
104235
- "return": {
104236
- "type": {
104237
- "text": "boolean"
104238
- }
104330
+ "name": "horizontal-from",
104331
+ "description": "Overrides the behavior of `orientation` property.",
104332
+ "type": {
104333
+ "text": "SbbHorizontalFrom | null"
104239
104334
  },
104240
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
104241
- "inheritedFrom": {
104242
- "name": "SbbFormAssociatedMixin",
104243
- "module": "core/mixins/form-associated-mixin.js"
104244
- }
104335
+ "fieldName": "horizontalFrom"
104245
104336
  },
104246
104337
  {
104247
- "kind": "method",
104248
- "name": "reportValidity",
104249
- "privacy": "public",
104250
- "return": {
104251
- "type": {
104252
- "text": "boolean"
104253
- }
104338
+ "name": "orientation",
104339
+ "type": {
104340
+ "text": "SbbOrientation"
104254
104341
  },
104255
- "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.",
104256
- "inheritedFrom": {
104257
- "name": "SbbFormAssociatedMixin",
104258
- "module": "core/mixins/form-associated-mixin.js"
104259
- }
104342
+ "default": "'horizontal'",
104343
+ "description": "Steps orientation, either horizontal or vertical.",
104344
+ "fieldName": "orientation"
104260
104345
  },
104261
104346
  {
104262
- "kind": "method",
104263
- "name": "setCustomValidity",
104264
- "privacy": "public",
104265
- "return": {
104266
- "type": {
104267
- "text": "void"
104268
- }
104347
+ "name": "size",
104348
+ "type": {
104349
+ "text": "'s' | 'm'"
104269
104350
  },
104270
- "parameters": [
104271
- {
104272
- "name": "message",
104273
- "type": {
104274
- "text": "string"
104275
- }
104276
- }
104277
- ],
104278
- "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.",
104279
- "inheritedFrom": {
104280
- "name": "SbbFormAssociatedMixin",
104281
- "module": "core/mixins/form-associated-mixin.js"
104282
- }
104351
+ "description": "Size variant, either s or m.",
104352
+ "default": "'m' / 's' (lean)",
104353
+ "fieldName": "size"
104283
104354
  },
104284
104355
  {
104285
- "kind": "method",
104286
- "name": "_hasDisabledAncestor",
104287
- "privacy": "private",
104288
- "return": {
104289
- "type": {
104290
- "text": "boolean"
104291
- }
104356
+ "name": "selected-index",
104357
+ "description": "The currently selected step index.",
104358
+ "type": {
104359
+ "text": "number | null"
104292
104360
  },
104293
- "inheritedFrom": {
104294
- "name": "SbbFormAssociatedMixin",
104295
- "module": "core/mixins/form-associated-mixin.js"
104296
- }
104361
+ "fieldName": "selectedIndex"
104362
+ }
104363
+ ],
104364
+ "mixins": [
104365
+ {
104366
+ "name": "SbbHydrationMixin",
104367
+ "module": "core/mixins.js"
104297
104368
  },
104298
104369
  {
104299
- "kind": "method",
104300
- "name": "updateFormValue",
104301
- "privacy": "protected",
104302
- "return": {
104303
- "type": {
104304
- "text": "void"
104305
- }
104370
+ "name": "SbbElementInternalsMixin",
104371
+ "module": "core/mixins.js"
104372
+ }
104373
+ ],
104374
+ "superclass": {
104375
+ "name": "LitElement",
104376
+ "package": "lit"
104377
+ },
104378
+ "tagName": "sbb-stepper",
104379
+ "customElement": true
104380
+ },
104381
+ {
104382
+ "kind": "variable",
104383
+ "name": "currentIndex"
104384
+ },
104385
+ {
104386
+ "kind": "variable",
104387
+ "name": "currentStep"
104388
+ }
104389
+ ],
104390
+ "exports": [
104391
+ {
104392
+ "kind": "js",
104393
+ "name": "SbbStepChangeEvent",
104394
+ "declaration": {
104395
+ "name": "SbbStepChangeEvent",
104396
+ "module": "stepper/stepper/stepper.component.js"
104397
+ }
104398
+ },
104399
+ {
104400
+ "kind": "js",
104401
+ "name": "SbbStepperElement",
104402
+ "declaration": {
104403
+ "name": "SbbStepperElement",
104404
+ "module": "stepper/stepper/stepper.component.js"
104405
+ }
104406
+ },
104407
+ {
104408
+ "kind": "custom-element-definition",
104409
+ "name": "sbb-stepper",
104410
+ "declaration": {
104411
+ "name": "SbbStepperElement",
104412
+ "module": "stepper/stepper/stepper.component.js"
104413
+ }
104414
+ }
104415
+ ]
104416
+ },
104417
+ {
104418
+ "kind": "javascript-module",
104419
+ "path": "stepper/step-label/step-label.component.js",
104420
+ "declarations": [
104421
+ {
104422
+ "kind": "class",
104423
+ "description": "Combined with a `sbb-stepper`, it displays a step's label.",
104424
+ "name": "SbbStepLabelElement",
104425
+ "slots": [
104426
+ {
104427
+ "description": "Use the unnamed slot to provide a label.",
104428
+ "name": ""
104429
+ },
104430
+ {
104431
+ "description": "Use this to display an icon in the label bubble.",
104432
+ "name": "icon"
104433
+ }
104434
+ ],
104435
+ "members": [
104436
+ {
104437
+ "kind": "field",
104438
+ "name": "role",
104439
+ "type": {
104440
+ "text": "string"
104306
104441
  },
104307
- "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",
104442
+ "privacy": "public",
104443
+ "static": true,
104444
+ "readonly": true,
104445
+ "default": "'tab'",
104308
104446
  "inheritedFrom": {
104309
- "name": "SbbFormAssociatedMixin",
104310
- "module": "core/mixins/form-associated-mixin.js"
104447
+ "name": "SbbButtonLikeBaseElement",
104448
+ "module": "core/base-elements/button-base-element.js"
104311
104449
  }
104312
104450
  },
104313
104451
  {
104314
- "kind": "method",
104315
- "name": "formState",
104316
- "privacy": "protected",
104317
- "return": {
104318
- "type": {
104319
- "text": "FormRestoreState"
104320
- }
104452
+ "kind": "field",
104453
+ "name": "step",
104454
+ "type": {
104455
+ "text": "SbbStepElement | null"
104321
104456
  },
104322
- "inheritedFrom": {
104323
- "name": "SbbFormAssociatedMixin",
104324
- "module": "core/mixins/form-associated-mixin.js"
104325
- }
104457
+ "privacy": "public",
104458
+ "description": "The step controlled by the label.",
104459
+ "readonly": true,
104460
+ "default": "null"
104326
104461
  },
104327
104462
  {
104328
- "kind": "method",
104329
- "name": "setValidityFlag",
104330
- "privacy": "protected",
104331
- "return": {
104332
- "type": {
104333
- "text": "void"
104334
- }
104463
+ "kind": "field",
104464
+ "name": "_step",
104465
+ "type": {
104466
+ "text": "SbbStepElement | null"
104335
104467
  },
104336
- "parameters": [
104337
- {
104338
- "name": "flag",
104339
- "type": {
104340
- "text": "T"
104341
- }
104342
- },
104343
- {
104344
- "name": "message",
104345
- "type": {
104346
- "text": "string"
104347
- }
104348
- },
104349
- {
104350
- "name": "flagValue",
104351
- "optional": true,
104352
- "type": {
104353
- "text": "ValidityStateFlags[T]"
104354
- }
104355
- }
104356
- ],
104357
- "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).",
104358
- "inheritedFrom": {
104359
- "name": "SbbFormAssociatedMixin",
104360
- "module": "core/mixins/form-associated-mixin.js"
104361
- }
104468
+ "privacy": "private",
104469
+ "default": "null"
104362
104470
  },
104363
104471
  {
104364
- "kind": "method",
104365
- "name": "removeValidityFlag",
104366
- "privacy": "protected",
104367
- "return": {
104368
- "type": {
104369
- "text": "void"
104370
- }
104472
+ "kind": "field",
104473
+ "name": "stepper",
104474
+ "type": {
104475
+ "text": "SbbStepperElement | null"
104371
104476
  },
104372
- "parameters": [
104373
- {
104374
- "name": "flag",
104375
- "type": {
104376
- "text": "T"
104377
- }
104378
- }
104379
- ],
104380
- "description": "Removes the validity state flag entry and updates validity state.",
104381
- "inheritedFrom": {
104382
- "name": "SbbFormAssociatedMixin",
104383
- "module": "core/mixins/form-associated-mixin.js"
104384
- }
104477
+ "privacy": "public",
104478
+ "readonly": true
104385
104479
  },
104386
104480
  {
104387
- "kind": "method",
104388
- "name": "validate",
104389
- "privacy": "protected",
104390
- "return": {
104391
- "type": {
104392
- "text": "void"
104393
- }
104481
+ "kind": "field",
104482
+ "name": "disabled",
104483
+ "privacy": "public",
104484
+ "description": "Whether the component is disabled.",
104485
+ "default": "false",
104486
+ "type": {
104487
+ "text": "boolean"
104394
104488
  },
104395
- "description": "To be called whenever the current element needs to be validated.",
104489
+ "attribute": "disabled",
104490
+ "reflects": true,
104396
104491
  "inheritedFrom": {
104397
- "name": "SbbFormAssociatedMixin",
104398
- "module": "core/mixins/form-associated-mixin.js"
104492
+ "name": "SbbDisabledMixin",
104493
+ "module": "core/mixins/disabled-mixin.js"
104399
104494
  }
104400
104495
  },
104496
+ {
104497
+ "kind": "field",
104498
+ "name": "_previousOrientation",
104499
+ "type": {
104500
+ "text": "string | undefined"
104501
+ },
104502
+ "privacy": "private"
104503
+ },
104504
+ {
104505
+ "kind": "field",
104506
+ "name": "_previousSize",
104507
+ "type": {
104508
+ "text": "string | undefined"
104509
+ },
104510
+ "privacy": "private"
104511
+ },
104401
104512
  {
104402
104513
  "kind": "method",
104403
- "name": "shouldValidate",
104404
- "privacy": "protected",
104514
+ "name": "_isNotDeactivatedByLinearMode",
104515
+ "privacy": "private",
104405
104516
  "return": {
104406
104517
  "type": {
104407
104518
  "text": "boolean"
@@ -104409,597 +104520,422 @@
104409
104520
  },
104410
104521
  "parameters": [
104411
104522
  {
104412
- "name": "name",
104523
+ "name": "step",
104413
104524
  "type": {
104414
- "text": "PropertyKey | undefined"
104525
+ "text": "SbbStepElement"
104415
104526
  }
104416
104527
  }
104417
- ],
104418
- "description": "Whether validation should be run on a property change with the given name.",
104419
- "inheritedFrom": {
104420
- "name": "SbbFormAssociatedMixin",
104421
- "module": "core/mixins/form-associated-mixin.js"
104422
- }
104528
+ ]
104423
104529
  },
104424
104530
  {
104425
104531
  "kind": "method",
104426
- "name": "_setInternalValidity",
104532
+ "name": "_assignStep",
104427
104533
  "privacy": "private",
104428
104534
  "return": {
104429
104535
  "type": {
104430
104536
  "text": "void"
104431
104537
  }
104432
- },
104433
- "inheritedFrom": {
104434
- "name": "SbbFormAssociatedMixin",
104435
- "module": "core/mixins/form-associated-mixin.js"
104436
- }
104437
- },
104438
- {
104439
- "kind": "field",
104440
- "name": "_preventScrollOnSpaceKeydown",
104441
- "privacy": "private",
104442
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
104443
- "parameters": [
104444
- {
104445
- "description": "The origin event.",
104446
- "name": "event"
104447
- }
104448
- ],
104449
- "inheritedFrom": {
104450
- "name": "SbbButtonLikeBaseElement",
104451
- "module": "core/base-elements/button-base-element.js"
104452
- }
104453
- },
104454
- {
104455
- "kind": "field",
104456
- "name": "_removeActiveMarker",
104457
- "privacy": "private",
104458
- "inheritedFrom": {
104459
- "name": "SbbButtonLikeBaseElement",
104460
- "module": "core/base-elements/button-base-element.js"
104461
- }
104462
- },
104463
- {
104464
- "kind": "field",
104465
- "name": "_dispatchClickEventOnSpaceKeyup",
104466
- "privacy": "private",
104467
- "description": "Dispatches a 'click' PointerEvent if the original keyboard event is a 'Space' press.\nAs verified with the native button, when 'Space' is pressed, a 'click' event is dispatched\nafter the 'keyup' event.",
104468
- "parameters": [
104469
- {
104470
- "description": "The origin event.",
104471
- "name": "event"
104472
- }
104473
- ],
104474
- "inheritedFrom": {
104475
- "name": "SbbButtonLikeBaseElement",
104476
- "module": "core/base-elements/button-base-element.js"
104477
104538
  }
104478
104539
  },
104479
104540
  {
104480
104541
  "kind": "field",
104481
- "name": "_dispatchClickEvent",
104482
- "privacy": "private",
104542
+ "name": "iconName",
104543
+ "type": {
104544
+ "text": "string"
104545
+ },
104546
+ "privacy": "public",
104547
+ "default": "''",
104548
+ "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.",
104549
+ "attribute": "icon-name",
104483
104550
  "inheritedFrom": {
104484
- "name": "SbbButtonLikeBaseElement",
104485
- "module": "core/base-elements/button-base-element.js"
104551
+ "name": "SbbIconNameMixin",
104552
+ "module": "icon/icon-name-mixin.js"
104486
104553
  }
104487
104554
  },
104488
104555
  {
104489
104556
  "kind": "method",
104490
- "name": "toggleState",
104557
+ "name": "renderIconSlot",
104491
104558
  "privacy": "protected",
104492
104559
  "return": {
104493
104560
  "type": {
104494
- "text": "void"
104561
+ "text": "TemplateResult"
104495
104562
  }
104496
104563
  },
104497
104564
  "parameters": [
104498
104565
  {
104499
- "name": "value",
104500
- "type": {
104501
- "text": "string"
104502
- }
104503
- },
104504
- {
104505
- "name": "force",
104566
+ "name": "classname",
104506
104567
  "optional": true,
104507
104568
  "type": {
104508
- "text": "boolean"
104569
+ "text": "string"
104509
104570
  }
104510
104571
  }
104511
104572
  ],
104512
104573
  "inheritedFrom": {
104513
- "name": "SbbActionBaseElement",
104514
- "module": "core/base-elements/action-base-element.js"
104515
- }
104516
- },
104517
- {
104518
- "kind": "field",
104519
- "name": "maybeDisabled",
104520
- "type": {
104521
- "text": "boolean | undefined"
104522
- },
104523
- "privacy": "protected",
104524
- "readonly": true,
104525
- "inheritedFrom": {
104526
- "name": "SbbActionBaseElement",
104527
- "module": "core/base-elements/action-base-element.js"
104528
- }
104529
- },
104530
- {
104531
- "kind": "field",
104532
- "name": "maybeDisabledInteractive",
104533
- "type": {
104534
- "text": "boolean | undefined"
104535
- },
104536
- "privacy": "protected",
104537
- "readonly": true,
104538
- "inheritedFrom": {
104539
- "name": "SbbActionBaseElement",
104540
- "module": "core/base-elements/action-base-element.js"
104574
+ "name": "SbbIconNameMixin",
104575
+ "module": "icon/icon-name-mixin.js"
104541
104576
  }
104542
104577
  },
104543
104578
  {
104544
104579
  "kind": "method",
104545
- "name": "setupBaseEventHandlers",
104580
+ "name": "renderIconName",
104546
104581
  "privacy": "protected",
104547
104582
  "return": {
104548
104583
  "type": {
104549
- "text": "void"
104584
+ "text": "string"
104550
104585
  }
104551
104586
  },
104552
104587
  "inheritedFrom": {
104553
- "name": "SbbActionBaseElement",
104554
- "module": "core/base-elements/action-base-element.js"
104588
+ "name": "SbbIconNameMixin",
104589
+ "module": "icon/icon-name-mixin.js"
104555
104590
  }
104556
104591
  },
104557
104592
  {
104558
104593
  "kind": "method",
104559
- "name": "renderTemplate",
104560
- "privacy": "protected",
104594
+ "name": "_renderIconName",
104595
+ "privacy": "private",
104561
104596
  "return": {
104562
104597
  "type": {
104563
- "text": "TemplateResult"
104598
+ "text": "string"
104564
104599
  }
104565
104600
  },
104566
- "description": "Override this method to render the component template.",
104567
104601
  "inheritedFrom": {
104568
- "name": "SbbActionBaseElement",
104569
- "module": "core/base-elements/action-base-element.js"
104602
+ "name": "SbbIconNameMixin",
104603
+ "module": "icon/icon-name-mixin.js"
104570
104604
  }
104571
- }
104572
- ],
104573
- "mixins": [
104574
- {
104575
- "name": "SbbIconNameMixin",
104576
- "module": "icon.js"
104577
104605
  },
104578
104606
  {
104579
- "name": "SbbDisabledMixin",
104580
- "module": "core/mixins.js"
104581
- }
104582
- ],
104583
- "superclass": {
104584
- "name": "SbbButtonBaseElement",
104585
- "module": "core/base-elements.js"
104586
- },
104587
- "tagName": "sbb-step-label",
104588
- "customElement": true,
104589
- "attributes": [
104590
- {
104591
- "name": "icon-name",
104607
+ "kind": "field",
104608
+ "name": "#disabled",
104609
+ "privacy": "private",
104592
104610
  "type": {
104593
- "text": "string"
104611
+ "text": "boolean"
104594
104612
  },
104595
- "default": "''",
104596
- "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.",
104597
- "fieldName": "iconName",
104613
+ "default": "false",
104598
104614
  "inheritedFrom": {
104599
- "name": "SbbIconNameMixin",
104600
- "module": "icon/icon-name-mixin.js"
104615
+ "name": "SbbDisabledMixin",
104616
+ "module": "core/mixins/disabled-mixin.js"
104601
104617
  }
104602
104618
  },
104603
104619
  {
104604
- "name": "disabled",
104605
- "description": "Whether the component is disabled.",
104606
- "default": "false",
104607
- "type": {
104608
- "text": "boolean"
104620
+ "kind": "method",
104621
+ "name": "isDisabledExternally",
104622
+ "privacy": "protected",
104623
+ "return": {
104624
+ "type": {
104625
+ "text": "boolean"
104626
+ }
104609
104627
  },
104610
- "fieldName": "disabled",
104628
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
104611
104629
  "inheritedFrom": {
104612
104630
  "name": "SbbDisabledMixin",
104613
104631
  "module": "core/mixins/disabled-mixin.js"
104614
104632
  }
104615
104633
  },
104616
104634
  {
104635
+ "kind": "field",
104636
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
104637
+ "type": {
104638
+ "text": "array"
104639
+ },
104640
+ "privacy": "private",
104641
+ "readonly": true,
104642
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
104643
+ "inheritedFrom": {
104644
+ "name": "SbbButtonBaseElement",
104645
+ "module": "core/base-elements/button-base-element.js"
104646
+ }
104647
+ },
104648
+ {
104649
+ "kind": "field",
104617
104650
  "name": "value",
104618
104651
  "type": {
104619
104652
  "text": "string"
104620
104653
  },
104621
- "default": "''",
104622
- "description": "Value of the form element.",
104623
- "fieldName": "value",
104654
+ "privacy": "public",
104624
104655
  "inheritedFrom": {
104625
104656
  "name": "SbbButtonBaseElement",
104626
104657
  "module": "core/base-elements/button-base-element.js"
104627
- }
104658
+ },
104659
+ "default": "''",
104660
+ "description": "Value of the form element.",
104661
+ "attribute": "value"
104628
104662
  },
104629
104663
  {
104664
+ "kind": "field",
104630
104665
  "name": "type",
104666
+ "privacy": "public",
104631
104667
  "description": "The type attribute to use for the button.",
104632
104668
  "default": "'button'",
104633
104669
  "type": {
104634
104670
  "text": "SbbButtonType"
104635
104671
  },
104636
- "fieldName": "type",
104672
+ "attribute": "type",
104637
104673
  "inheritedFrom": {
104638
104674
  "name": "SbbButtonBaseElement",
104639
104675
  "module": "core/base-elements/button-base-element.js"
104640
104676
  }
104641
104677
  },
104642
104678
  {
104679
+ "kind": "field",
104643
104680
  "name": "form",
104644
- "description": "The `<form>` element to associate the button with.",
104645
104681
  "type": {
104646
104682
  "text": "HTMLFormElement | null"
104647
104683
  },
104648
- "fieldName": "form",
104684
+ "privacy": "public",
104685
+ "description": "The `<form>` element to associate the button with.",
104649
104686
  "inheritedFrom": {
104650
104687
  "name": "SbbButtonBaseElement",
104651
104688
  "module": "core/base-elements/button-base-element.js"
104652
- }
104689
+ },
104690
+ "attribute": "form"
104653
104691
  },
104654
104692
  {
104655
- "name": "name",
104656
- "description": "Name of the form element. Will be read from name attribute.",
104693
+ "kind": "field",
104694
+ "name": "_formId",
104657
104695
  "type": {
104658
104696
  "text": "string"
104659
104697
  },
104660
- "fieldName": "name",
104698
+ "privacy": "private",
104699
+ "default": "''",
104661
104700
  "inheritedFrom": {
104662
- "name": "SbbFormAssociatedMixin",
104663
- "module": "core/mixins/form-associated-mixin.js"
104701
+ "name": "SbbButtonBaseElement",
104702
+ "module": "core/base-elements/button-base-element.js"
104664
104703
  }
104665
- }
104666
- ]
104667
- }
104668
- ],
104669
- "exports": [
104670
- {
104671
- "kind": "js",
104672
- "name": "SbbStepLabelElement",
104673
- "declaration": {
104674
- "name": "SbbStepLabelElement",
104675
- "module": "stepper/step-label/step-label.component.js"
104676
- }
104677
- },
104678
- {
104679
- "kind": "custom-element-definition",
104680
- "name": "sbb-step-label",
104681
- "declaration": {
104682
- "name": "SbbStepLabelElement",
104683
- "module": "stepper/step-label/step-label.component.js"
104684
- }
104685
- }
104686
- ]
104687
- },
104688
- {
104689
- "kind": "javascript-module",
104690
- "path": "stepper/stepper/stepper.component.js",
104691
- "declarations": [
104692
- {
104693
- "kind": "class",
104694
- "description": "",
104695
- "name": "SbbStepChangeEvent",
104696
- "members": [
104697
- {
104698
- "kind": "field",
104699
- "name": "selectedIndex",
104700
- "type": {
104701
- "text": "number | null"
104702
- },
104703
- "privacy": "public",
104704
- "readonly": true,
104705
- "description": "The index of the newly selected step.",
104706
- "default": "selectedIndex"
104707
- },
104708
- {
104709
- "kind": "field",
104710
- "name": "previousIndex",
104711
- "type": {
104712
- "text": "number | null"
104713
- },
104714
- "privacy": "public",
104715
- "readonly": true,
104716
- "description": "The index of the previously selected step.",
104717
- "default": "previousIndex"
104718
- },
104719
- {
104720
- "kind": "field",
104721
- "name": "selectedStep",
104722
- "type": {
104723
- "text": "SbbStepElement | null"
104724
- },
104725
- "privacy": "public",
104726
- "readonly": true,
104727
- "description": "The newly selected step element.",
104728
- "default": "selectedStep"
104729
- },
104730
- {
104731
- "kind": "field",
104732
- "name": "previousStep",
104733
- "type": {
104734
- "text": "SbbStepElement | null"
104735
- },
104736
- "privacy": "public",
104737
- "readonly": true,
104738
- "description": "The previously selected step element.",
104739
- "default": "previousStep"
104740
- }
104741
- ],
104742
- "superclass": {
104743
- "name": "Event",
104744
- "module": "stepper/stepper/stepper.component.js"
104745
- }
104746
- },
104747
- {
104748
- "kind": "class",
104749
- "description": "Provides a structured, step-by-step workflow for user interactions.",
104750
- "name": "SbbStepperElement",
104751
- "slots": [
104752
- {
104753
- "description": "Provide a `sbb-expansion-panel-header` and a `sbb-expansion-panel-content` to the stepper.",
104754
- "name": ""
104755
104704
  },
104756
- {
104757
- "description": "Use this slot to provide an `sbb-step-label`.",
104758
- "name": "step-label"
104759
- },
104760
- {
104761
- "description": "Use this slot to provide an `sbb-step`.",
104762
- "name": "step"
104763
- }
104764
- ],
104765
- "members": [
104766
104705
  {
104767
104706
  "kind": "field",
104768
- "name": "events",
104769
- "privacy": "public",
104770
- "static": true,
104771
- "readonly": true,
104772
- "default": "{ stepchange: 'stepchange', }",
104773
- "type": {
104774
- "text": "{\n stepchange: 'stepchange',\n }"
104707
+ "name": "_handleButtonClick",
104708
+ "privacy": "private",
104709
+ "inheritedFrom": {
104710
+ "name": "SbbButtonBaseElement",
104711
+ "module": "core/base-elements/button-base-element.js"
104775
104712
  }
104776
104713
  },
104777
104714
  {
104778
- "kind": "field",
104779
- "name": "_observer",
104715
+ "kind": "method",
104716
+ "name": "_requestSubmit",
104780
104717
  "privacy": "private",
104781
- "default": "new IntersectionController(this, { target: null, callback: (entries) => { entries.forEach((e) => { if (e.intersectionRatio > 0) { this._setStepperHeight(this.selected); this._setMarkerSize(); } }); }, })",
104782
- "description": "If the sbb-stepper is used in a sbb-dialog, the marker on the selected element will not appear,\nbecause the calculations are done when the dialog is closed, so the marker has a width of 0;\nthe same happens for the stepper height.\nWe need to recalculate it when the element becomes visible."
104783
- },
104784
- {
104785
- "kind": "field",
104786
- "name": "linear",
104787
- "type": {
104788
- "text": "boolean"
104789
- },
104790
- "privacy": "public",
104791
- "default": "false",
104792
- "description": "If set to true, only the current and previous labels can be clicked and selected.",
104793
- "attribute": "linear"
104794
- },
104795
- {
104796
- "kind": "field",
104797
- "name": "horizontalFrom",
104798
- "privacy": "public",
104799
- "description": "Overrides the behavior of `orientation` property.",
104800
- "type": {
104801
- "text": "SbbHorizontalFrom | null"
104718
+ "return": {
104719
+ "type": {
104720
+ "text": "void"
104721
+ }
104802
104722
  },
104803
- "attribute": "horizontal-from",
104804
- "reflects": true,
104805
- "default": "null"
104723
+ "parameters": [
104724
+ {
104725
+ "name": "form",
104726
+ "type": {
104727
+ "text": "HTMLFormElement"
104728
+ }
104729
+ }
104730
+ ],
104731
+ "inheritedFrom": {
104732
+ "name": "SbbButtonBaseElement",
104733
+ "module": "core/base-elements/button-base-element.js"
104734
+ }
104806
104735
  },
104807
104736
  {
104808
104737
  "kind": "field",
104809
- "name": "_horizontalFrom",
104810
- "type": {
104811
- "text": "SbbHorizontalFrom | null"
104812
- },
104738
+ "name": "_formKeyDown",
104813
104739
  "privacy": "private",
104814
- "default": "null"
104815
- },
104816
- {
104817
- "kind": "field",
104818
- "name": "orientation",
104819
- "type": {
104820
- "text": "SbbOrientation"
104821
- },
104822
- "privacy": "public",
104823
- "default": "'horizontal'",
104824
- "description": "Steps orientation, either horizontal or vertical.",
104825
- "attribute": "orientation",
104826
- "reflects": true
104740
+ "inheritedFrom": {
104741
+ "name": "SbbButtonBaseElement",
104742
+ "module": "core/base-elements/button-base-element.js"
104743
+ }
104827
104744
  },
104828
104745
  {
104829
104746
  "kind": "field",
104830
- "name": "size",
104747
+ "name": "formAssociated",
104831
104748
  "type": {
104832
- "text": "'s' | 'm'"
104749
+ "text": "boolean"
104833
104750
  },
104834
104751
  "privacy": "public",
104835
- "description": "Size variant, either s or m.",
104836
- "default": "'m' / 's' (lean)",
104837
- "attribute": "size",
104838
- "reflects": true
104839
- },
104840
- {
104841
- "kind": "field",
104842
- "name": "selected",
104843
- "privacy": "public",
104844
- "description": "The currently selected step.",
104845
- "type": {
104846
- "text": "SbbStepElement | null"
104752
+ "static": true,
104753
+ "default": "true",
104754
+ "inheritedFrom": {
104755
+ "name": "SbbFormAssociatedMixin",
104756
+ "module": "core/mixins/form-associated-mixin.js"
104847
104757
  }
104848
104758
  },
104849
104759
  {
104850
104760
  "kind": "field",
104851
- "name": "_requestedSelected",
104852
- "type": {
104853
- "text": "SbbStepElement | null"
104854
- },
104855
- "privacy": "private",
104856
- "default": "null"
104857
- },
104858
- {
104859
- "kind": "field",
104860
- "name": "selectedIndex",
104761
+ "name": "name",
104861
104762
  "privacy": "public",
104862
- "description": "The currently selected step index.",
104863
- "type": {
104864
- "text": "number | null"
104865
- },
104866
- "attribute": "selected-index"
104867
- },
104868
- {
104869
- "kind": "field",
104870
- "name": "_requestedSelectedIndex",
104763
+ "description": "Name of the form element. Will be read from name attribute.",
104871
104764
  "type": {
104872
- "text": "number | null"
104873
- },
104874
- "privacy": "private",
104875
- "default": "null"
104765
+ "text": "string"
104766
+ },
104767
+ "attribute": "name",
104768
+ "inheritedFrom": {
104769
+ "name": "SbbFormAssociatedMixin",
104770
+ "module": "core/mixins/form-associated-mixin.js"
104771
+ }
104876
104772
  },
104877
104773
  {
104878
104774
  "kind": "field",
104879
- "name": "steps",
104775
+ "name": "validity",
104880
104776
  "type": {
104881
- "text": "SbbStepElement[]"
104777
+ "text": "ValidityState"
104882
104778
  },
104883
104779
  "privacy": "public",
104884
- "description": "The steps of the stepper.",
104885
- "readonly": true
104780
+ "description": "Returns the ValidityState object for this element.",
104781
+ "readonly": true,
104782
+ "inheritedFrom": {
104783
+ "name": "SbbFormAssociatedMixin",
104784
+ "module": "core/mixins/form-associated-mixin.js"
104785
+ }
104886
104786
  },
104887
104787
  {
104888
104788
  "kind": "field",
104889
- "name": "_enabledSteps",
104789
+ "name": "validationMessage",
104890
104790
  "type": {
104891
- "text": "SbbStepElement[]"
104791
+ "text": "string"
104892
104792
  },
104893
- "privacy": "private",
104894
- "readonly": true
104793
+ "privacy": "public",
104794
+ "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.",
104795
+ "readonly": true,
104796
+ "inheritedFrom": {
104797
+ "name": "SbbFormAssociatedMixin",
104798
+ "module": "core/mixins/form-associated-mixin.js"
104799
+ }
104895
104800
  },
104896
104801
  {
104897
104802
  "kind": "field",
104898
- "name": "_loaded",
104803
+ "name": "willValidate",
104899
104804
  "type": {
104900
104805
  "text": "boolean"
104901
104806
  },
104902
- "privacy": "private",
104903
- "default": "false"
104807
+ "privacy": "public",
104808
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
104809
+ "readonly": true,
104810
+ "inheritedFrom": {
104811
+ "name": "SbbFormAssociatedMixin",
104812
+ "module": "core/mixins/form-associated-mixin.js"
104813
+ }
104904
104814
  },
104905
104815
  {
104906
104816
  "kind": "field",
104907
- "name": "_resizeObserverTimeout",
104908
- "type": {
104909
- "text": "ReturnType<typeof setTimeout> | null"
104910
- },
104817
+ "name": "_validityStates",
104911
104818
  "privacy": "private",
104912
- "default": "null"
104819
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
104820
+ "inheritedFrom": {
104821
+ "name": "SbbFormAssociatedMixin",
104822
+ "module": "core/mixins/form-associated-mixin.js"
104823
+ }
104913
104824
  },
104914
104825
  {
104915
104826
  "kind": "field",
104916
- "name": "_mediaMatcher",
104917
- "privacy": "private",
104918
- "default": "new SbbMediaMatcherController(this, {})"
104827
+ "name": "formDisabled",
104828
+ "type": {
104829
+ "text": "boolean"
104830
+ },
104831
+ "privacy": "protected",
104832
+ "default": "false",
104833
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
104834
+ "inheritedFrom": {
104835
+ "name": "SbbFormAssociatedMixin",
104836
+ "module": "core/mixins/form-associated-mixin.js"
104837
+ }
104919
104838
  },
104920
104839
  {
104921
104840
  "kind": "method",
104922
- "name": "next",
104841
+ "name": "checkValidity",
104923
104842
  "privacy": "public",
104924
104843
  "return": {
104925
104844
  "type": {
104926
- "text": "void"
104845
+ "text": "boolean"
104927
104846
  }
104928
104847
  },
104929
- "description": "Selects the next step."
104848
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
104849
+ "inheritedFrom": {
104850
+ "name": "SbbFormAssociatedMixin",
104851
+ "module": "core/mixins/form-associated-mixin.js"
104852
+ }
104930
104853
  },
104931
104854
  {
104932
104855
  "kind": "method",
104933
- "name": "previous",
104856
+ "name": "reportValidity",
104934
104857
  "privacy": "public",
104935
104858
  "return": {
104936
104859
  "type": {
104937
- "text": "void"
104860
+ "text": "boolean"
104938
104861
  }
104939
104862
  },
104940
- "description": "Selects the previous step."
104863
+ "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.",
104864
+ "inheritedFrom": {
104865
+ "name": "SbbFormAssociatedMixin",
104866
+ "module": "core/mixins/form-associated-mixin.js"
104867
+ }
104941
104868
  },
104942
104869
  {
104943
104870
  "kind": "method",
104944
- "name": "reset",
104871
+ "name": "setCustomValidity",
104945
104872
  "privacy": "public",
104946
104873
  "return": {
104947
104874
  "type": {
104948
104875
  "text": "void"
104949
104876
  }
104950
104877
  },
104951
- "description": "Resets the form in which the stepper is nested or every form of each step, if any."
104878
+ "parameters": [
104879
+ {
104880
+ "name": "message",
104881
+ "type": {
104882
+ "text": "string"
104883
+ }
104884
+ }
104885
+ ],
104886
+ "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.",
104887
+ "inheritedFrom": {
104888
+ "name": "SbbFormAssociatedMixin",
104889
+ "module": "core/mixins/form-associated-mixin.js"
104890
+ }
104952
104891
  },
104953
104892
  {
104954
104893
  "kind": "method",
104955
- "name": "_isSelectable",
104894
+ "name": "_hasDisabledAncestor",
104956
104895
  "privacy": "private",
104957
104896
  "return": {
104958
104897
  "type": {
104959
- "text": "step is SbbStepElement"
104898
+ "text": "boolean"
104960
104899
  }
104961
104900
  },
104962
- "parameters": [
104963
- {
104964
- "name": "step",
104965
- "type": {
104966
- "text": "SbbStepElement | null"
104967
- }
104968
- }
104969
- ]
104901
+ "inheritedFrom": {
104902
+ "name": "SbbFormAssociatedMixin",
104903
+ "module": "core/mixins/form-associated-mixin.js"
104904
+ }
104970
104905
  },
104971
104906
  {
104972
104907
  "kind": "method",
104973
- "name": "_select",
104974
- "privacy": "private",
104908
+ "name": "updateFormValue",
104909
+ "privacy": "protected",
104975
104910
  "return": {
104976
104911
  "type": {
104977
104912
  "text": "void"
104978
104913
  }
104979
104914
  },
104980
- "parameters": [
104981
- {
104982
- "name": "step",
104983
- "type": {
104984
- "text": "SbbStepElement | null"
104985
- }
104986
- }
104987
- ]
104915
+ "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",
104916
+ "inheritedFrom": {
104917
+ "name": "SbbFormAssociatedMixin",
104918
+ "module": "core/mixins/form-associated-mixin.js"
104919
+ }
104988
104920
  },
104989
104921
  {
104990
104922
  "kind": "method",
104991
- "name": "_setMarkerSize",
104992
- "privacy": "private",
104923
+ "name": "formState",
104924
+ "privacy": "protected",
104993
104925
  "return": {
104994
104926
  "type": {
104995
- "text": "void"
104927
+ "text": "FormRestoreState"
104996
104928
  }
104929
+ },
104930
+ "inheritedFrom": {
104931
+ "name": "SbbFormAssociatedMixin",
104932
+ "module": "core/mixins/form-associated-mixin.js"
104997
104933
  }
104998
104934
  },
104999
104935
  {
105000
104936
  "kind": "method",
105001
- "name": "_setStepperHeight",
105002
- "privacy": "private",
104937
+ "name": "setValidityFlag",
104938
+ "privacy": "protected",
105003
104939
  "return": {
105004
104940
  "type": {
105005
104941
  "text": "void"
@@ -105007,28 +104943,35 @@
105007
104943
  },
105008
104944
  "parameters": [
105009
104945
  {
105010
- "name": "step",
104946
+ "name": "flag",
105011
104947
  "type": {
105012
- "text": "SbbStepElement | null"
104948
+ "text": "T"
104949
+ }
104950
+ },
104951
+ {
104952
+ "name": "message",
104953
+ "type": {
104954
+ "text": "string"
104955
+ }
104956
+ },
104957
+ {
104958
+ "name": "flagValue",
104959
+ "optional": true,
104960
+ "type": {
104961
+ "text": "ValidityStateFlags[T]"
105013
104962
  }
105014
104963
  }
105015
104964
  ],
105016
- "description": "Sets the stepper height based on the height of the provided step."
105017
- },
105018
- {
105019
- "kind": "method",
105020
- "name": "_calculateLabelOffsetTop",
105021
- "privacy": "private",
105022
- "return": {
105023
- "type": {
105024
- "text": "number | undefined"
105025
- }
104965
+ "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).",
104966
+ "inheritedFrom": {
104967
+ "name": "SbbFormAssociatedMixin",
104968
+ "module": "core/mixins/form-associated-mixin.js"
105026
104969
  }
105027
104970
  },
105028
104971
  {
105029
104972
  "kind": "method",
105030
- "name": "_onSelectedStepResize",
105031
- "privacy": "private",
104973
+ "name": "removeValidityFlag",
104974
+ "privacy": "protected",
105032
104975
  "return": {
105033
104976
  "type": {
105034
104977
  "text": "void"
@@ -105036,125 +104979,119 @@
105036
104979
  },
105037
104980
  "parameters": [
105038
104981
  {
105039
- "name": "e",
104982
+ "name": "flag",
105040
104983
  "type": {
105041
- "text": "Event"
104984
+ "text": "T"
105042
104985
  }
105043
104986
  }
105044
- ]
105045
- },
105046
- {
105047
- "kind": "method",
105048
- "name": "_configure",
105049
- "privacy": "private",
105050
- "return": {
105051
- "type": {
105052
- "text": "void"
105053
- }
104987
+ ],
104988
+ "description": "Removes the validity state flag entry and updates validity state.",
104989
+ "inheritedFrom": {
104990
+ "name": "SbbFormAssociatedMixin",
104991
+ "module": "core/mixins/form-associated-mixin.js"
105054
104992
  }
105055
104993
  },
105056
104994
  {
105057
104995
  "kind": "method",
105058
- "name": "_updateLabels",
105059
- "privacy": "private",
104996
+ "name": "validate",
104997
+ "privacy": "protected",
105060
104998
  "return": {
105061
104999
  "type": {
105062
105000
  "text": "void"
105063
105001
  }
105002
+ },
105003
+ "description": "To be called whenever the current element needs to be validated.",
105004
+ "inheritedFrom": {
105005
+ "name": "SbbFormAssociatedMixin",
105006
+ "module": "core/mixins/form-associated-mixin.js"
105064
105007
  }
105065
105008
  },
105066
105009
  {
105067
105010
  "kind": "method",
105068
- "name": "_checkOrientation",
105069
- "privacy": "private",
105011
+ "name": "shouldValidate",
105012
+ "privacy": "protected",
105070
105013
  "return": {
105071
105014
  "type": {
105072
- "text": "void"
105015
+ "text": "boolean"
105016
+ }
105017
+ },
105018
+ "parameters": [
105019
+ {
105020
+ "name": "name",
105021
+ "type": {
105022
+ "text": "PropertyKey | undefined"
105023
+ }
105073
105024
  }
105025
+ ],
105026
+ "description": "Whether validation should be run on a property change with the given name.",
105027
+ "inheritedFrom": {
105028
+ "name": "SbbFormAssociatedMixin",
105029
+ "module": "core/mixins/form-associated-mixin.js"
105074
105030
  }
105075
105031
  },
105076
- {
105077
- "kind": "field",
105078
- "name": "_onStepperResize",
105079
- "privacy": "private"
105080
- },
105081
105032
  {
105082
105033
  "kind": "method",
105083
- "name": "_configureLinearMode",
105034
+ "name": "_setInternalValidity",
105084
105035
  "privacy": "private",
105085
105036
  "return": {
105086
105037
  "type": {
105087
105038
  "text": "void"
105088
105039
  }
105040
+ },
105041
+ "inheritedFrom": {
105042
+ "name": "SbbFormAssociatedMixin",
105043
+ "module": "core/mixins/form-associated-mixin.js"
105089
105044
  }
105090
105045
  },
105091
105046
  {
105092
- "kind": "method",
105093
- "name": "_handleKeyDown",
105047
+ "kind": "field",
105048
+ "name": "_preventScrollOnSpaceKeydown",
105094
105049
  "privacy": "private",
105095
- "return": {
105096
- "type": {
105097
- "text": "void"
105098
- }
105099
- },
105050
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
105100
105051
  "parameters": [
105101
105052
  {
105102
- "name": "evt",
105103
- "type": {
105104
- "text": "KeyboardEvent"
105105
- }
105053
+ "description": "The origin event.",
105054
+ "name": "event"
105106
105055
  }
105107
- ]
105108
- },
105109
- {
105110
- "kind": "field",
105111
- "name": "_hydrationRequired",
105112
- "type": {
105113
- "text": "boolean"
105114
- },
105115
- "privacy": "private",
105116
- "default": "!!this.shadowRoot",
105056
+ ],
105117
105057
  "inheritedFrom": {
105118
- "name": "SbbHydrationMixin",
105119
- "module": "core/mixins/hydration-mixin.js"
105058
+ "name": "SbbButtonLikeBaseElement",
105059
+ "module": "core/base-elements/button-base-element.js"
105120
105060
  }
105121
105061
  },
105122
105062
  {
105123
105063
  "kind": "field",
105124
- "name": "_hydrationComplete",
105064
+ "name": "_removeActiveMarker",
105125
105065
  "privacy": "private",
105126
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
105127
105066
  "inheritedFrom": {
105128
- "name": "SbbHydrationMixin",
105129
- "module": "core/mixins/hydration-mixin.js"
105067
+ "name": "SbbButtonLikeBaseElement",
105068
+ "module": "core/base-elements/button-base-element.js"
105130
105069
  }
105131
105070
  },
105132
105071
  {
105133
105072
  "kind": "field",
105134
- "name": "_resolveHydration",
105135
- "type": {
105136
- "text": "(hydrationRequired: boolean) => void"
105137
- },
105073
+ "name": "_dispatchClickEventOnSpaceKeyup",
105138
105074
  "privacy": "private",
105075
+ "description": "Dispatches a 'click' PointerEvent if the original keyboard event is a 'Space' press.\nAs verified with the native button, when 'Space' is pressed, a 'click' event is dispatched\nafter the 'keyup' event.",
105076
+ "parameters": [
105077
+ {
105078
+ "description": "The origin event.",
105079
+ "name": "event"
105080
+ }
105081
+ ],
105139
105082
  "inheritedFrom": {
105140
- "name": "SbbHydrationMixin",
105141
- "module": "core/mixins/hydration-mixin.js"
105083
+ "name": "SbbButtonLikeBaseElement",
105084
+ "module": "core/base-elements/button-base-element.js"
105142
105085
  }
105143
105086
  },
105144
105087
  {
105145
105088
  "kind": "field",
105146
- "name": "hydrationRequired",
105147
- "type": {
105148
- "text": "boolean"
105149
- },
105150
- "privacy": "protected",
105151
- "description": "Returns whether hydration is required and not completed.",
105152
- "readonly": true,
105089
+ "name": "_dispatchClickEvent",
105090
+ "privacy": "private",
105153
105091
  "inheritedFrom": {
105154
- "name": "SbbHydrationMixin",
105155
- "module": "core/mixins/hydration-mixin.js"
105156
- },
105157
- "default": "!!this.shadowRoot"
105092
+ "name": "SbbButtonLikeBaseElement",
105093
+ "module": "core/base-elements/button-base-element.js"
105094
+ }
105158
105095
  },
105159
105096
  {
105160
105097
  "kind": "method",
@@ -105181,114 +105118,177 @@
105181
105118
  }
105182
105119
  ],
105183
105120
  "inheritedFrom": {
105184
- "name": "SbbElementInternalsMixin",
105185
- "module": "core/mixins/element-internals-mixin.js"
105121
+ "name": "SbbActionBaseElement",
105122
+ "module": "core/base-elements/action-base-element.js"
105186
105123
  }
105187
- }
105188
- ],
105189
- "events": [
105124
+ },
105190
105125
  {
105126
+ "kind": "field",
105127
+ "name": "maybeDisabled",
105191
105128
  "type": {
105192
- "text": "SbbStepChangeEvent"
105129
+ "text": "boolean | undefined"
105193
105130
  },
105194
- "description": "Emits whenever a step was changed.",
105195
- "name": "stepchange"
105131
+ "privacy": "protected",
105132
+ "readonly": true,
105133
+ "inheritedFrom": {
105134
+ "name": "SbbActionBaseElement",
105135
+ "module": "core/base-elements/action-base-element.js"
105136
+ }
105137
+ },
105138
+ {
105139
+ "kind": "field",
105140
+ "name": "maybeDisabledInteractive",
105141
+ "type": {
105142
+ "text": "boolean | undefined"
105143
+ },
105144
+ "privacy": "protected",
105145
+ "readonly": true,
105146
+ "inheritedFrom": {
105147
+ "name": "SbbActionBaseElement",
105148
+ "module": "core/base-elements/action-base-element.js"
105149
+ }
105150
+ },
105151
+ {
105152
+ "kind": "method",
105153
+ "name": "setupBaseEventHandlers",
105154
+ "privacy": "protected",
105155
+ "return": {
105156
+ "type": {
105157
+ "text": "void"
105158
+ }
105159
+ },
105160
+ "inheritedFrom": {
105161
+ "name": "SbbActionBaseElement",
105162
+ "module": "core/base-elements/action-base-element.js"
105163
+ }
105164
+ },
105165
+ {
105166
+ "kind": "method",
105167
+ "name": "renderTemplate",
105168
+ "privacy": "protected",
105169
+ "return": {
105170
+ "type": {
105171
+ "text": "TemplateResult"
105172
+ }
105173
+ },
105174
+ "description": "Override this method to render the component template.",
105175
+ "inheritedFrom": {
105176
+ "name": "SbbActionBaseElement",
105177
+ "module": "core/base-elements/action-base-element.js"
105178
+ }
105179
+ }
105180
+ ],
105181
+ "mixins": [
105182
+ {
105183
+ "name": "SbbIconNameMixin",
105184
+ "module": "icon.js"
105185
+ },
105186
+ {
105187
+ "name": "SbbDisabledMixin",
105188
+ "module": "core/mixins.js"
105196
105189
  }
105197
105190
  ],
105191
+ "superclass": {
105192
+ "name": "SbbButtonBaseElement",
105193
+ "module": "core/base-elements.js"
105194
+ },
105195
+ "tagName": "sbb-step-label",
105196
+ "customElement": true,
105198
105197
  "attributes": [
105199
105198
  {
105200
- "name": "linear",
105199
+ "name": "icon-name",
105201
105200
  "type": {
105202
- "text": "boolean"
105201
+ "text": "string"
105203
105202
  },
105204
- "default": "false",
105205
- "description": "If set to true, only the current and previous labels can be clicked and selected.",
105206
- "fieldName": "linear"
105203
+ "default": "''",
105204
+ "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.",
105205
+ "fieldName": "iconName",
105206
+ "inheritedFrom": {
105207
+ "name": "SbbIconNameMixin",
105208
+ "module": "icon/icon-name-mixin.js"
105209
+ }
105207
105210
  },
105208
105211
  {
105209
- "name": "horizontal-from",
105210
- "description": "Overrides the behavior of `orientation` property.",
105212
+ "name": "disabled",
105213
+ "description": "Whether the component is disabled.",
105214
+ "default": "false",
105211
105215
  "type": {
105212
- "text": "SbbHorizontalFrom | null"
105216
+ "text": "boolean"
105213
105217
  },
105214
- "fieldName": "horizontalFrom"
105218
+ "fieldName": "disabled",
105219
+ "inheritedFrom": {
105220
+ "name": "SbbDisabledMixin",
105221
+ "module": "core/mixins/disabled-mixin.js"
105222
+ }
105215
105223
  },
105216
105224
  {
105217
- "name": "orientation",
105225
+ "name": "value",
105218
105226
  "type": {
105219
- "text": "SbbOrientation"
105227
+ "text": "string"
105220
105228
  },
105221
- "default": "'horizontal'",
105222
- "description": "Steps orientation, either horizontal or vertical.",
105223
- "fieldName": "orientation"
105229
+ "default": "''",
105230
+ "description": "Value of the form element.",
105231
+ "fieldName": "value",
105232
+ "inheritedFrom": {
105233
+ "name": "SbbButtonBaseElement",
105234
+ "module": "core/base-elements/button-base-element.js"
105235
+ }
105224
105236
  },
105225
105237
  {
105226
- "name": "size",
105238
+ "name": "type",
105239
+ "description": "The type attribute to use for the button.",
105240
+ "default": "'button'",
105227
105241
  "type": {
105228
- "text": "'s' | 'm'"
105242
+ "text": "SbbButtonType"
105229
105243
  },
105230
- "description": "Size variant, either s or m.",
105231
- "default": "'m' / 's' (lean)",
105232
- "fieldName": "size"
105244
+ "fieldName": "type",
105245
+ "inheritedFrom": {
105246
+ "name": "SbbButtonBaseElement",
105247
+ "module": "core/base-elements/button-base-element.js"
105248
+ }
105233
105249
  },
105234
105250
  {
105235
- "name": "selected-index",
105236
- "description": "The currently selected step index.",
105251
+ "name": "form",
105252
+ "description": "The `<form>` element to associate the button with.",
105237
105253
  "type": {
105238
- "text": "number | null"
105254
+ "text": "HTMLFormElement | null"
105239
105255
  },
105240
- "fieldName": "selectedIndex"
105241
- }
105242
- ],
105243
- "mixins": [
105244
- {
105245
- "name": "SbbHydrationMixin",
105246
- "module": "core/mixins.js"
105256
+ "fieldName": "form",
105257
+ "inheritedFrom": {
105258
+ "name": "SbbButtonBaseElement",
105259
+ "module": "core/base-elements/button-base-element.js"
105260
+ }
105247
105261
  },
105248
105262
  {
105249
- "name": "SbbElementInternalsMixin",
105250
- "module": "core/mixins.js"
105263
+ "name": "name",
105264
+ "description": "Name of the form element. Will be read from name attribute.",
105265
+ "type": {
105266
+ "text": "string"
105267
+ },
105268
+ "fieldName": "name",
105269
+ "inheritedFrom": {
105270
+ "name": "SbbFormAssociatedMixin",
105271
+ "module": "core/mixins/form-associated-mixin.js"
105272
+ }
105251
105273
  }
105252
- ],
105253
- "superclass": {
105254
- "name": "LitElement",
105255
- "package": "lit"
105256
- },
105257
- "tagName": "sbb-stepper",
105258
- "customElement": true
105259
- },
105260
- {
105261
- "kind": "variable",
105262
- "name": "currentIndex"
105263
- },
105264
- {
105265
- "kind": "variable",
105266
- "name": "currentStep"
105274
+ ]
105267
105275
  }
105268
105276
  ],
105269
105277
  "exports": [
105270
105278
  {
105271
105279
  "kind": "js",
105272
- "name": "SbbStepChangeEvent",
105273
- "declaration": {
105274
- "name": "SbbStepChangeEvent",
105275
- "module": "stepper/stepper/stepper.component.js"
105276
- }
105277
- },
105278
- {
105279
- "kind": "js",
105280
- "name": "SbbStepperElement",
105280
+ "name": "SbbStepLabelElement",
105281
105281
  "declaration": {
105282
- "name": "SbbStepperElement",
105283
- "module": "stepper/stepper/stepper.component.js"
105282
+ "name": "SbbStepLabelElement",
105283
+ "module": "stepper/step-label/step-label.component.js"
105284
105284
  }
105285
105285
  },
105286
105286
  {
105287
105287
  "kind": "custom-element-definition",
105288
- "name": "sbb-stepper",
105288
+ "name": "sbb-step-label",
105289
105289
  "declaration": {
105290
- "name": "SbbStepperElement",
105291
- "module": "stepper/stepper/stepper.component.js"
105290
+ "name": "SbbStepLabelElement",
105291
+ "module": "stepper/step-label/step-label.component.js"
105292
105292
  }
105293
105293
  }
105294
105294
  ]