@sbb-esta/lyne-elements-dev 4.10.0-dev.1776065785 → 4.10.0-dev.1776085193

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.
@@ -3633,36 +3633,6 @@
3633
3633
  }
3634
3634
  ]
3635
3635
  },
3636
- {
3637
- "kind": "javascript-module",
3638
- "path": "alert/alert-group.js",
3639
- "declarations": [],
3640
- "exports": [
3641
- {
3642
- "kind": "js",
3643
- "name": "*",
3644
- "declaration": {
3645
- "name": "*",
3646
- "module": "alert/alert-group/alert-group.component.js"
3647
- }
3648
- }
3649
- ]
3650
- },
3651
- {
3652
- "kind": "javascript-module",
3653
- "path": "alert/alert.js",
3654
- "declarations": [],
3655
- "exports": [
3656
- {
3657
- "kind": "js",
3658
- "name": "*",
3659
- "declaration": {
3660
- "name": "*",
3661
- "module": "alert/alert/alert.component.js"
3662
- }
3663
- }
3664
- ]
3665
- },
3666
3636
  {
3667
3637
  "kind": "javascript-module",
3668
3638
  "path": "action-group/action-group.component.js",
@@ -3945,6 +3915,36 @@
3945
3915
  }
3946
3916
  ]
3947
3917
  },
3918
+ {
3919
+ "kind": "javascript-module",
3920
+ "path": "alert/alert-group.js",
3921
+ "declarations": [],
3922
+ "exports": [
3923
+ {
3924
+ "kind": "js",
3925
+ "name": "*",
3926
+ "declaration": {
3927
+ "name": "*",
3928
+ "module": "alert/alert-group/alert-group.component.js"
3929
+ }
3930
+ }
3931
+ ]
3932
+ },
3933
+ {
3934
+ "kind": "javascript-module",
3935
+ "path": "alert/alert.js",
3936
+ "declarations": [],
3937
+ "exports": [
3938
+ {
3939
+ "kind": "js",
3940
+ "name": "*",
3941
+ "declaration": {
3942
+ "name": "*",
3943
+ "module": "alert/alert/alert.component.js"
3944
+ }
3945
+ }
3946
+ ]
3947
+ },
3948
3948
  {
3949
3949
  "kind": "javascript-module",
3950
3950
  "path": "autocomplete/autocomplete-base-element.js",
@@ -68537,229 +68537,6 @@
68537
68537
  }
68538
68538
  ]
68539
68539
  },
68540
- {
68541
- "kind": "javascript-module",
68542
- "path": "core/decorators/base.js",
68543
- "declarations": [],
68544
- "exports": []
68545
- },
68546
- {
68547
- "kind": "javascript-module",
68548
- "path": "core/decorators/force-type.js",
68549
- "declarations": [
68550
- {
68551
- "kind": "function",
68552
- "name": "forceType",
68553
- "return": {
68554
- "type": {
68555
- "text": "PropertyDecorator"
68556
- }
68557
- },
68558
- "parameters": [
68559
- {
68560
- "name": "convert",
68561
- "optional": true,
68562
- "type": {
68563
- "text": "(v: unknown) => V"
68564
- }
68565
- }
68566
- ],
68567
- "description": "Decorator that forces the value of a property or getter/setter\nto the defined type."
68568
- }
68569
- ],
68570
- "exports": [
68571
- {
68572
- "kind": "js",
68573
- "name": "forceType",
68574
- "declaration": {
68575
- "name": "forceType",
68576
- "module": "core/decorators/force-type.js"
68577
- }
68578
- }
68579
- ]
68580
- },
68581
- {
68582
- "kind": "javascript-module",
68583
- "path": "core/decorators/get-override.js",
68584
- "declarations": [
68585
- {
68586
- "kind": "function",
68587
- "name": "getOverride",
68588
- "parameters": [
68589
- {
68590
- "name": "callback",
68591
- "type": {
68592
- "text": "(instance: C, innerValue: V) => V"
68593
- }
68594
- }
68595
- ],
68596
- "description": "Decorator that overrides the underlying getter of the accessor."
68597
- }
68598
- ],
68599
- "exports": [
68600
- {
68601
- "kind": "js",
68602
- "name": "getOverride",
68603
- "declaration": {
68604
- "name": "getOverride",
68605
- "module": "core/decorators/get-override.js"
68606
- }
68607
- }
68608
- ]
68609
- },
68610
- {
68611
- "kind": "javascript-module",
68612
- "path": "core/decorators/handle-distinct-change.js",
68613
- "declarations": [
68614
- {
68615
- "kind": "function",
68616
- "name": "handleDistinctChange",
68617
- "parameters": [
68618
- {
68619
- "name": "callback",
68620
- "type": {
68621
- "text": "(instance: C, newValue: V, oldValue: V | undefined) => void"
68622
- }
68623
- }
68624
- ],
68625
- "description": "Decorator that calls the given callback when the value\nof the associated property is changed."
68626
- }
68627
- ],
68628
- "exports": [
68629
- {
68630
- "kind": "js",
68631
- "name": "handleDistinctChange",
68632
- "declaration": {
68633
- "name": "handleDistinctChange",
68634
- "module": "core/decorators/handle-distinct-change.js"
68635
- }
68636
- }
68637
- ]
68638
- },
68639
- {
68640
- "kind": "javascript-module",
68641
- "path": "core/decorators/host-attributes.js",
68642
- "declarations": [
68643
- {
68644
- "kind": "function",
68645
- "name": "hostAttributes",
68646
- "parameters": [
68647
- {
68648
- "name": "attributes",
68649
- "type": {
68650
- "text": "Record<string, string | null>"
68651
- },
68652
- "description": "A record of attributes to apply to the element."
68653
- }
68654
- ],
68655
- "description": "Applies the given attributes to the related element.\nIf an empty string is passed as a value, the attribute will be set\nwithout value.",
68656
- "deprecated": "Will be removed with next major version."
68657
- }
68658
- ],
68659
- "exports": [
68660
- {
68661
- "kind": "js",
68662
- "name": "hostAttributes",
68663
- "declaration": {
68664
- "name": "hostAttributes",
68665
- "module": "core/decorators/host-attributes.js"
68666
- }
68667
- }
68668
- ]
68669
- },
68670
- {
68671
- "kind": "javascript-module",
68672
- "path": "core/decorators/id-reference.js",
68673
- "declarations": [
68674
- {
68675
- "kind": "function",
68676
- "name": "idReference",
68677
- "description": "Accessor decorator that resolves id references dynamically.\nIf a string is passed (e.g. from an attribute), it will be resolved to the element with that id.\nThis decorator observes the connected document fragment for changes to the id attribute\nand child elements and if any id reference is established or removed, it will\nupdate the associated property."
68678
- }
68679
- ],
68680
- "exports": [
68681
- {
68682
- "kind": "js",
68683
- "name": "idReference",
68684
- "declaration": {
68685
- "name": "idReference",
68686
- "module": "core/decorators/id-reference.js"
68687
- }
68688
- }
68689
- ]
68690
- },
68691
- {
68692
- "kind": "javascript-module",
68693
- "path": "core/decorators/omit-empty-converter.js",
68694
- "declarations": [
68695
- {
68696
- "kind": "variable",
68697
- "name": "omitEmptyConverter",
68698
- "type": {
68699
- "text": "ComplexAttributeConverter"
68700
- },
68701
- "default": "{ toAttribute(value, type) { return ((type === String || type === undefined) && value === '') || (type === Number && isNaN(value as number)) ? null : defaultConverter.toAttribute!(value, type); }, }",
68702
- "description": "Converts empty values to null, which will not be rendered as attributes.\ne.g. for string properties, an empty value '' will not be rendered as an\nempty attribute, as would be the default with lit."
68703
- }
68704
- ],
68705
- "exports": [
68706
- {
68707
- "kind": "js",
68708
- "name": "omitEmptyConverter",
68709
- "declaration": {
68710
- "name": "omitEmptyConverter",
68711
- "module": "core/decorators/omit-empty-converter.js"
68712
- }
68713
- }
68714
- ]
68715
- },
68716
- {
68717
- "kind": "javascript-module",
68718
- "path": "core/decorators/plain-date.js",
68719
- "declarations": [
68720
- {
68721
- "kind": "variable",
68722
- "name": "plainDateConverter",
68723
- "type": {
68724
- "text": "ComplexAttributeConverter"
68725
- },
68726
- "default": "{ toAttribute(value, _type) { const dateAdapter = readConfig().datetime?.dateAdapter ?? defaultDateAdapter; return dateAdapter.isValid(value) ? dateAdapter.toIso8601(value) : null; }, }",
68727
- "description": "Will convert date object values to ISO8601 formatted strings as attributes.\nShould be used together with the `plainDate` decorator."
68728
- },
68729
- {
68730
- "kind": "function",
68731
- "name": "plainDate",
68732
- "parameters": [
68733
- {
68734
- "name": "config",
68735
- "optional": true,
68736
- "type": {
68737
- "text": "SbbPlainDateConfiguration"
68738
- }
68739
- }
68740
- ],
68741
- "description": "Decorator that tries to deserialize the given value to a date object\nand adapts the getter to only return a copy of the internal value,\nin order to avoid outside manipulation of date objects."
68742
- }
68743
- ],
68744
- "exports": [
68745
- {
68746
- "kind": "js",
68747
- "name": "plainDateConverter",
68748
- "declaration": {
68749
- "name": "plainDateConverter",
68750
- "module": "core/decorators/plain-date.js"
68751
- }
68752
- },
68753
- {
68754
- "kind": "js",
68755
- "name": "plainDate",
68756
- "declaration": {
68757
- "name": "plainDate",
68758
- "module": "core/decorators/plain-date.js"
68759
- }
68760
- }
68761
- ]
68762
- },
68763
68540
  {
68764
68541
  "kind": "javascript-module",
68765
68542
  "path": "core/dom/animation.js",
@@ -69198,6 +68975,229 @@
69198
68975
  }
69199
68976
  ]
69200
68977
  },
68978
+ {
68979
+ "kind": "javascript-module",
68980
+ "path": "core/decorators/base.js",
68981
+ "declarations": [],
68982
+ "exports": []
68983
+ },
68984
+ {
68985
+ "kind": "javascript-module",
68986
+ "path": "core/decorators/force-type.js",
68987
+ "declarations": [
68988
+ {
68989
+ "kind": "function",
68990
+ "name": "forceType",
68991
+ "return": {
68992
+ "type": {
68993
+ "text": "PropertyDecorator"
68994
+ }
68995
+ },
68996
+ "parameters": [
68997
+ {
68998
+ "name": "convert",
68999
+ "optional": true,
69000
+ "type": {
69001
+ "text": "(v: unknown) => V"
69002
+ }
69003
+ }
69004
+ ],
69005
+ "description": "Decorator that forces the value of a property or getter/setter\nto the defined type."
69006
+ }
69007
+ ],
69008
+ "exports": [
69009
+ {
69010
+ "kind": "js",
69011
+ "name": "forceType",
69012
+ "declaration": {
69013
+ "name": "forceType",
69014
+ "module": "core/decorators/force-type.js"
69015
+ }
69016
+ }
69017
+ ]
69018
+ },
69019
+ {
69020
+ "kind": "javascript-module",
69021
+ "path": "core/decorators/get-override.js",
69022
+ "declarations": [
69023
+ {
69024
+ "kind": "function",
69025
+ "name": "getOverride",
69026
+ "parameters": [
69027
+ {
69028
+ "name": "callback",
69029
+ "type": {
69030
+ "text": "(instance: C, innerValue: V) => V"
69031
+ }
69032
+ }
69033
+ ],
69034
+ "description": "Decorator that overrides the underlying getter of the accessor."
69035
+ }
69036
+ ],
69037
+ "exports": [
69038
+ {
69039
+ "kind": "js",
69040
+ "name": "getOverride",
69041
+ "declaration": {
69042
+ "name": "getOverride",
69043
+ "module": "core/decorators/get-override.js"
69044
+ }
69045
+ }
69046
+ ]
69047
+ },
69048
+ {
69049
+ "kind": "javascript-module",
69050
+ "path": "core/decorators/handle-distinct-change.js",
69051
+ "declarations": [
69052
+ {
69053
+ "kind": "function",
69054
+ "name": "handleDistinctChange",
69055
+ "parameters": [
69056
+ {
69057
+ "name": "callback",
69058
+ "type": {
69059
+ "text": "(instance: C, newValue: V, oldValue: V | undefined) => void"
69060
+ }
69061
+ }
69062
+ ],
69063
+ "description": "Decorator that calls the given callback when the value\nof the associated property is changed."
69064
+ }
69065
+ ],
69066
+ "exports": [
69067
+ {
69068
+ "kind": "js",
69069
+ "name": "handleDistinctChange",
69070
+ "declaration": {
69071
+ "name": "handleDistinctChange",
69072
+ "module": "core/decorators/handle-distinct-change.js"
69073
+ }
69074
+ }
69075
+ ]
69076
+ },
69077
+ {
69078
+ "kind": "javascript-module",
69079
+ "path": "core/decorators/host-attributes.js",
69080
+ "declarations": [
69081
+ {
69082
+ "kind": "function",
69083
+ "name": "hostAttributes",
69084
+ "parameters": [
69085
+ {
69086
+ "name": "attributes",
69087
+ "type": {
69088
+ "text": "Record<string, string | null>"
69089
+ },
69090
+ "description": "A record of attributes to apply to the element."
69091
+ }
69092
+ ],
69093
+ "description": "Applies the given attributes to the related element.\nIf an empty string is passed as a value, the attribute will be set\nwithout value.",
69094
+ "deprecated": "Will be removed with next major version."
69095
+ }
69096
+ ],
69097
+ "exports": [
69098
+ {
69099
+ "kind": "js",
69100
+ "name": "hostAttributes",
69101
+ "declaration": {
69102
+ "name": "hostAttributes",
69103
+ "module": "core/decorators/host-attributes.js"
69104
+ }
69105
+ }
69106
+ ]
69107
+ },
69108
+ {
69109
+ "kind": "javascript-module",
69110
+ "path": "core/decorators/id-reference.js",
69111
+ "declarations": [
69112
+ {
69113
+ "kind": "function",
69114
+ "name": "idReference",
69115
+ "description": "Accessor decorator that resolves id references dynamically.\nIf a string is passed (e.g. from an attribute), it will be resolved to the element with that id.\nThis decorator observes the connected document fragment for changes to the id attribute\nand child elements and if any id reference is established or removed, it will\nupdate the associated property."
69116
+ }
69117
+ ],
69118
+ "exports": [
69119
+ {
69120
+ "kind": "js",
69121
+ "name": "idReference",
69122
+ "declaration": {
69123
+ "name": "idReference",
69124
+ "module": "core/decorators/id-reference.js"
69125
+ }
69126
+ }
69127
+ ]
69128
+ },
69129
+ {
69130
+ "kind": "javascript-module",
69131
+ "path": "core/decorators/omit-empty-converter.js",
69132
+ "declarations": [
69133
+ {
69134
+ "kind": "variable",
69135
+ "name": "omitEmptyConverter",
69136
+ "type": {
69137
+ "text": "ComplexAttributeConverter"
69138
+ },
69139
+ "default": "{ toAttribute(value, type) { return ((type === String || type === undefined) && value === '') || (type === Number && isNaN(value as number)) ? null : defaultConverter.toAttribute!(value, type); }, }",
69140
+ "description": "Converts empty values to null, which will not be rendered as attributes.\ne.g. for string properties, an empty value '' will not be rendered as an\nempty attribute, as would be the default with lit."
69141
+ }
69142
+ ],
69143
+ "exports": [
69144
+ {
69145
+ "kind": "js",
69146
+ "name": "omitEmptyConverter",
69147
+ "declaration": {
69148
+ "name": "omitEmptyConverter",
69149
+ "module": "core/decorators/omit-empty-converter.js"
69150
+ }
69151
+ }
69152
+ ]
69153
+ },
69154
+ {
69155
+ "kind": "javascript-module",
69156
+ "path": "core/decorators/plain-date.js",
69157
+ "declarations": [
69158
+ {
69159
+ "kind": "variable",
69160
+ "name": "plainDateConverter",
69161
+ "type": {
69162
+ "text": "ComplexAttributeConverter"
69163
+ },
69164
+ "default": "{ toAttribute(value, _type) { const dateAdapter = readConfig().datetime?.dateAdapter ?? defaultDateAdapter; return dateAdapter.isValid(value) ? dateAdapter.toIso8601(value) : null; }, }",
69165
+ "description": "Will convert date object values to ISO8601 formatted strings as attributes.\nShould be used together with the `plainDate` decorator."
69166
+ },
69167
+ {
69168
+ "kind": "function",
69169
+ "name": "plainDate",
69170
+ "parameters": [
69171
+ {
69172
+ "name": "config",
69173
+ "optional": true,
69174
+ "type": {
69175
+ "text": "SbbPlainDateConfiguration"
69176
+ }
69177
+ }
69178
+ ],
69179
+ "description": "Decorator that tries to deserialize the given value to a date object\nand adapts the getter to only return a copy of the internal value,\nin order to avoid outside manipulation of date objects."
69180
+ }
69181
+ ],
69182
+ "exports": [
69183
+ {
69184
+ "kind": "js",
69185
+ "name": "plainDateConverter",
69186
+ "declaration": {
69187
+ "name": "plainDateConverter",
69188
+ "module": "core/decorators/plain-date.js"
69189
+ }
69190
+ },
69191
+ {
69192
+ "kind": "js",
69193
+ "name": "plainDate",
69194
+ "declaration": {
69195
+ "name": "plainDate",
69196
+ "module": "core/decorators/plain-date.js"
69197
+ }
69198
+ }
69199
+ ]
69200
+ },
69201
69201
  {
69202
69202
  "kind": "javascript-module",
69203
69203
  "path": "core/eventing/composed-path-has-attribute.js",
@@ -81093,12 +81093,12 @@
81093
81093
  },
81094
81094
  {
81095
81095
  "kind": "javascript-module",
81096
- "path": "datepicker/datepicker-previous-day/datepicker-previous-day.component.js",
81096
+ "path": "datepicker/datepicker-next-day/datepicker-next-day.component.js",
81097
81097
  "declarations": [
81098
81098
  {
81099
81099
  "kind": "class",
81100
- "description": "Combined with a `sbb-datepicker`, it can be used to move the date back.",
81101
- "name": "SbbDatepickerPreviousDayElement",
81100
+ "description": "Combined with a `sbb-datepicker`, it can be used to move the date ahead.",
81101
+ "name": "SbbDatepickerNextDayElement",
81102
81102
  "members": [
81103
81103
  {
81104
81104
  "kind": "field",
@@ -81113,7 +81113,7 @@
81113
81113
  "name": "SbbElement",
81114
81114
  "module": "core/base-elements/element.js"
81115
81115
  },
81116
- "default": "'sbb-datepicker-previous-day'"
81116
+ "default": "'sbb-datepicker-next-day'"
81117
81117
  },
81118
81118
  {
81119
81119
  "kind": "field",
@@ -81126,7 +81126,7 @@
81126
81126
  "name": "SbbDatepickerButtonBase",
81127
81127
  "module": "datepicker/common/datepicker-button.js"
81128
81128
  },
81129
- "default": "'chevron-small-left-small'"
81129
+ "default": "'chevron-small-right-small'"
81130
81130
  },
81131
81131
  {
81132
81132
  "kind": "field",
@@ -81135,7 +81135,7 @@
81135
81135
  "text": "Record<string, string>"
81136
81136
  },
81137
81137
  "privacy": "protected",
81138
- "default": "i18nPreviousDay",
81138
+ "default": "i18nNextDay",
81139
81139
  "inheritedFrom": {
81140
81140
  "name": "SbbDatepickerButton",
81141
81141
  "module": "datepicker/common/datepicker-button.js"
@@ -81148,7 +81148,7 @@
81148
81148
  "text": "(_currentDate: string) => Record<string, string>"
81149
81149
  },
81150
81150
  "privacy": "protected",
81151
- "default": "i18nSelectPreviousDay",
81151
+ "default": "i18nSelectNextDay",
81152
81152
  "inheritedFrom": {
81153
81153
  "name": "SbbDatepickerButton",
81154
81154
  "module": "datepicker/common/datepicker-button.js"
@@ -81178,7 +81178,7 @@
81178
81178
  },
81179
81179
  {
81180
81180
  "kind": "method",
81181
- "name": "_isBeforeMinDate",
81181
+ "name": "_isAfterMaxDate",
81182
81182
  "privacy": "private",
81183
81183
  "return": {
81184
81184
  "type": {
@@ -82038,7 +82038,7 @@
82038
82038
  "name": "SbbDatepickerButton",
82039
82039
  "module": "datepicker/common/datepicker-button.js"
82040
82040
  },
82041
- "tagName": "sbb-datepicker-previous-day",
82041
+ "tagName": "sbb-datepicker-next-day",
82042
82042
  "customElement": true,
82043
82043
  "classGenerics": "T = Date",
82044
82044
  "attributes": [
@@ -82124,22 +82124,22 @@
82124
82124
  "exports": [
82125
82125
  {
82126
82126
  "kind": "js",
82127
- "name": "SbbDatepickerPreviousDayElement",
82127
+ "name": "SbbDatepickerNextDayElement",
82128
82128
  "declaration": {
82129
- "name": "SbbDatepickerPreviousDayElement",
82130
- "module": "datepicker/datepicker-previous-day/datepicker-previous-day.component.js"
82129
+ "name": "SbbDatepickerNextDayElement",
82130
+ "module": "datepicker/datepicker-next-day/datepicker-next-day.component.js"
82131
82131
  }
82132
82132
  }
82133
82133
  ]
82134
82134
  },
82135
82135
  {
82136
82136
  "kind": "javascript-module",
82137
- "path": "datepicker/datepicker-next-day/datepicker-next-day.component.js",
82137
+ "path": "datepicker/datepicker-previous-day/datepicker-previous-day.component.js",
82138
82138
  "declarations": [
82139
82139
  {
82140
82140
  "kind": "class",
82141
- "description": "Combined with a `sbb-datepicker`, it can be used to move the date ahead.",
82142
- "name": "SbbDatepickerNextDayElement",
82141
+ "description": "Combined with a `sbb-datepicker`, it can be used to move the date back.",
82142
+ "name": "SbbDatepickerPreviousDayElement",
82143
82143
  "members": [
82144
82144
  {
82145
82145
  "kind": "field",
@@ -82154,7 +82154,7 @@
82154
82154
  "name": "SbbElement",
82155
82155
  "module": "core/base-elements/element.js"
82156
82156
  },
82157
- "default": "'sbb-datepicker-next-day'"
82157
+ "default": "'sbb-datepicker-previous-day'"
82158
82158
  },
82159
82159
  {
82160
82160
  "kind": "field",
@@ -82167,7 +82167,7 @@
82167
82167
  "name": "SbbDatepickerButtonBase",
82168
82168
  "module": "datepicker/common/datepicker-button.js"
82169
82169
  },
82170
- "default": "'chevron-small-right-small'"
82170
+ "default": "'chevron-small-left-small'"
82171
82171
  },
82172
82172
  {
82173
82173
  "kind": "field",
@@ -82176,7 +82176,7 @@
82176
82176
  "text": "Record<string, string>"
82177
82177
  },
82178
82178
  "privacy": "protected",
82179
- "default": "i18nNextDay",
82179
+ "default": "i18nPreviousDay",
82180
82180
  "inheritedFrom": {
82181
82181
  "name": "SbbDatepickerButton",
82182
82182
  "module": "datepicker/common/datepicker-button.js"
@@ -82189,7 +82189,7 @@
82189
82189
  "text": "(_currentDate: string) => Record<string, string>"
82190
82190
  },
82191
82191
  "privacy": "protected",
82192
- "default": "i18nSelectNextDay",
82192
+ "default": "i18nSelectPreviousDay",
82193
82193
  "inheritedFrom": {
82194
82194
  "name": "SbbDatepickerButton",
82195
82195
  "module": "datepicker/common/datepicker-button.js"
@@ -82219,7 +82219,7 @@
82219
82219
  },
82220
82220
  {
82221
82221
  "kind": "method",
82222
- "name": "_isAfterMaxDate",
82222
+ "name": "_isBeforeMinDate",
82223
82223
  "privacy": "private",
82224
82224
  "return": {
82225
82225
  "type": {
@@ -83079,7 +83079,7 @@
83079
83079
  "name": "SbbDatepickerButton",
83080
83080
  "module": "datepicker/common/datepicker-button.js"
83081
83081
  },
83082
- "tagName": "sbb-datepicker-next-day",
83082
+ "tagName": "sbb-datepicker-previous-day",
83083
83083
  "customElement": true,
83084
83084
  "classGenerics": "T = Date",
83085
83085
  "attributes": [
@@ -83165,10 +83165,10 @@
83165
83165
  "exports": [
83166
83166
  {
83167
83167
  "kind": "js",
83168
- "name": "SbbDatepickerNextDayElement",
83168
+ "name": "SbbDatepickerPreviousDayElement",
83169
83169
  "declaration": {
83170
- "name": "SbbDatepickerNextDayElement",
83171
- "module": "datepicker/datepicker-next-day/datepicker-next-day.component.js"
83170
+ "name": "SbbDatepickerPreviousDayElement",
83171
+ "module": "datepicker/datepicker-previous-day/datepicker-previous-day.component.js"
83172
83172
  }
83173
83173
  }
83174
83174
  ]
@@ -100752,440 +100752,6 @@
100752
100752
  }
100753
100753
  ]
100754
100754
  },
100755
- {
100756
- "kind": "javascript-module",
100757
- "path": "link/block-link-static/block-link-static.component.js",
100758
- "declarations": [
100759
- {
100760
- "kind": "class",
100761
- "description": "It displays a static link enhanced with the SBB Design.",
100762
- "name": "SbbBlockLinkStaticElement",
100763
- "slots": [
100764
- {
100765
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
100766
- "name": ""
100767
- },
100768
- {
100769
- "description": "Slot used to display the icon, if one is set.",
100770
- "name": "icon"
100771
- }
100772
- ],
100773
- "members": [
100774
- {
100775
- "kind": "field",
100776
- "name": "elementName",
100777
- "type": {
100778
- "text": "string"
100779
- },
100780
- "privacy": "public",
100781
- "static": true,
100782
- "readonly": true,
100783
- "inheritedFrom": {
100784
- "name": "SbbElement",
100785
- "module": "core/base-elements/element.js"
100786
- },
100787
- "default": "'sbb-block-link-static'"
100788
- },
100789
- {
100790
- "kind": "field",
100791
- "name": "styles",
100792
- "type": {
100793
- "text": "CSSResultGroup"
100794
- },
100795
- "privacy": "public",
100796
- "static": true,
100797
- "default": "[super.styles, unsafeCSS(blockStyle)]",
100798
- "inheritedFrom": {
100799
- "name": "SbbLinkCommonElementMixin",
100800
- "module": "link/common/link-common.js"
100801
- }
100802
- },
100803
- {
100804
- "kind": "field",
100805
- "name": "iconPlacement",
100806
- "type": {
100807
- "text": "SbbIconPlacement"
100808
- },
100809
- "privacy": "public",
100810
- "default": "'start'",
100811
- "description": "Moves the icon to the end of the component if set to true.",
100812
- "attribute": "icon-placement",
100813
- "reflects": true,
100814
- "inheritedFrom": {
100815
- "name": "SbbBlockLinkCommonElementMixin",
100816
- "module": "link/common/block-link-common.js"
100817
- }
100818
- },
100819
- {
100820
- "kind": "method",
100821
- "name": "renderTemplate",
100822
- "privacy": "protected",
100823
- "return": {
100824
- "type": {
100825
- "text": "TemplateResult"
100826
- }
100827
- },
100828
- "description": "Override this method to render the component template.",
100829
- "inheritedFrom": {
100830
- "name": "SbbActionBaseElement",
100831
- "module": "core/base-elements/action-base-element.js"
100832
- }
100833
- },
100834
- {
100835
- "kind": "field",
100836
- "name": "size",
100837
- "type": {
100838
- "text": "SbbLinkSize"
100839
- },
100840
- "privacy": "public",
100841
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
100842
- "default": "'s' / 'xs' (lean)",
100843
- "attribute": "size",
100844
- "reflects": true,
100845
- "inheritedFrom": {
100846
- "name": "SbbLinkCommonElementMixin",
100847
- "module": "link/common/link-common.js"
100848
- }
100849
- },
100850
- {
100851
- "kind": "field",
100852
- "name": "iconName",
100853
- "type": {
100854
- "text": "string"
100855
- },
100856
- "privacy": "public",
100857
- "default": "''",
100858
- "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.",
100859
- "attribute": "icon-name",
100860
- "inheritedFrom": {
100861
- "name": "SbbIconNameMixin",
100862
- "module": "icon/icon-name-mixin.js"
100863
- }
100864
- },
100865
- {
100866
- "kind": "method",
100867
- "name": "renderIconSlot",
100868
- "privacy": "protected",
100869
- "return": {
100870
- "type": {
100871
- "text": "TemplateResult"
100872
- }
100873
- },
100874
- "parameters": [
100875
- {
100876
- "name": "classname",
100877
- "optional": true,
100878
- "type": {
100879
- "text": "string"
100880
- }
100881
- }
100882
- ],
100883
- "inheritedFrom": {
100884
- "name": "SbbIconNameMixin",
100885
- "module": "icon/icon-name-mixin.js"
100886
- }
100887
- },
100888
- {
100889
- "kind": "method",
100890
- "name": "renderIconName",
100891
- "privacy": "protected",
100892
- "return": {
100893
- "type": {
100894
- "text": "string"
100895
- }
100896
- },
100897
- "inheritedFrom": {
100898
- "name": "SbbIconNameMixin",
100899
- "module": "icon/icon-name-mixin.js"
100900
- }
100901
- },
100902
- {
100903
- "kind": "method",
100904
- "name": "_renderIconName",
100905
- "privacy": "private",
100906
- "return": {
100907
- "type": {
100908
- "text": "string"
100909
- }
100910
- },
100911
- "inheritedFrom": {
100912
- "name": "SbbIconNameMixin",
100913
- "module": "icon/icon-name-mixin.js"
100914
- }
100915
- },
100916
- {
100917
- "kind": "field",
100918
- "name": "disabled",
100919
- "privacy": "public",
100920
- "description": "Whether the component is disabled.",
100921
- "default": "false",
100922
- "type": {
100923
- "text": "boolean"
100924
- },
100925
- "attribute": "disabled",
100926
- "reflects": true,
100927
- "inheritedFrom": {
100928
- "name": "SbbDisabledMixin",
100929
- "module": "core/mixins/disabled-mixin.js"
100930
- }
100931
- },
100932
- {
100933
- "kind": "field",
100934
- "name": "#disabled",
100935
- "privacy": "private",
100936
- "type": {
100937
- "text": "boolean"
100938
- },
100939
- "default": "false",
100940
- "inheritedFrom": {
100941
- "name": "SbbDisabledMixin",
100942
- "module": "core/mixins/disabled-mixin.js"
100943
- }
100944
- },
100945
- {
100946
- "kind": "method",
100947
- "name": "isDisabledExternally",
100948
- "privacy": "protected",
100949
- "return": {
100950
- "type": {
100951
- "text": "boolean"
100952
- }
100953
- },
100954
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
100955
- "inheritedFrom": {
100956
- "name": "SbbDisabledMixin",
100957
- "module": "core/mixins/disabled-mixin.js"
100958
- }
100959
- },
100960
- {
100961
- "kind": "field",
100962
- "name": "maybeDisabled",
100963
- "type": {
100964
- "text": "boolean | undefined"
100965
- },
100966
- "privacy": "protected",
100967
- "readonly": true,
100968
- "inheritedFrom": {
100969
- "name": "SbbActionBaseElement",
100970
- "module": "core/base-elements/action-base-element.js"
100971
- }
100972
- },
100973
- {
100974
- "kind": "field",
100975
- "name": "maybeDisabledInteractive",
100976
- "type": {
100977
- "text": "boolean | undefined"
100978
- },
100979
- "privacy": "protected",
100980
- "readonly": true,
100981
- "inheritedFrom": {
100982
- "name": "SbbActionBaseElement",
100983
- "module": "core/base-elements/action-base-element.js"
100984
- }
100985
- },
100986
- {
100987
- "kind": "method",
100988
- "name": "setupBaseEventHandlers",
100989
- "privacy": "protected",
100990
- "return": {
100991
- "type": {
100992
- "text": "void"
100993
- }
100994
- },
100995
- "inheritedFrom": {
100996
- "name": "SbbActionBaseElement",
100997
- "module": "core/base-elements/action-base-element.js"
100998
- }
100999
- },
101000
- {
101001
- "kind": "field",
101002
- "name": "_hydrationRequired",
101003
- "type": {
101004
- "text": "boolean"
101005
- },
101006
- "privacy": "private",
101007
- "default": "!!this.shadowRoot",
101008
- "inheritedFrom": {
101009
- "name": "SbbElement",
101010
- "module": "core/base-elements/element.js"
101011
- }
101012
- },
101013
- {
101014
- "kind": "field",
101015
- "name": "_hydrationComplete",
101016
- "privacy": "private",
101017
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
101018
- "inheritedFrom": {
101019
- "name": "SbbElement",
101020
- "module": "core/base-elements/element.js"
101021
- }
101022
- },
101023
- {
101024
- "kind": "field",
101025
- "name": "_resolveHydration",
101026
- "type": {
101027
- "text": "(hydrationRequired: boolean) => void"
101028
- },
101029
- "privacy": "private",
101030
- "inheritedFrom": {
101031
- "name": "SbbElement",
101032
- "module": "core/base-elements/element.js"
101033
- }
101034
- },
101035
- {
101036
- "kind": "field",
101037
- "name": "hydrationRequired",
101038
- "type": {
101039
- "text": "boolean"
101040
- },
101041
- "privacy": "protected",
101042
- "description": "Returns whether hydration is required and not completed.",
101043
- "readonly": true,
101044
- "inheritedFrom": {
101045
- "name": "SbbElement",
101046
- "module": "core/base-elements/element.js"
101047
- },
101048
- "default": "!!this.shadowRoot"
101049
- },
101050
- {
101051
- "kind": "method",
101052
- "name": "toggleState",
101053
- "privacy": "protected",
101054
- "return": {
101055
- "type": {
101056
- "text": "void"
101057
- }
101058
- },
101059
- "parameters": [
101060
- {
101061
- "name": "value",
101062
- "type": {
101063
- "text": "string"
101064
- }
101065
- },
101066
- {
101067
- "name": "force",
101068
- "optional": true,
101069
- "type": {
101070
- "text": "boolean"
101071
- }
101072
- }
101073
- ],
101074
- "inheritedFrom": {
101075
- "name": "SbbElement",
101076
- "module": "core/base-elements/element.js"
101077
- }
101078
- },
101079
- {
101080
- "kind": "field",
101081
- "name": "['_$sbbElement$']",
101082
- "type": {
101083
- "text": "boolean"
101084
- },
101085
- "privacy": "public",
101086
- "static": true,
101087
- "default": "true",
101088
- "inheritedFrom": {
101089
- "name": "SbbElement",
101090
- "module": "core/base-elements/element.js"
101091
- }
101092
- },
101093
- {
101094
- "kind": "field",
101095
- "name": "_controllers",
101096
- "type": {
101097
- "text": "Set<SbbReactiveController> | undefined"
101098
- },
101099
- "privacy": "private",
101100
- "inheritedFrom": {
101101
- "name": "SbbElement",
101102
- "module": "core/base-elements/element.js"
101103
- }
101104
- }
101105
- ],
101106
- "mixins": [
101107
- {
101108
- "name": "SbbBlockLinkCommonElementMixin",
101109
- "module": "link/common/block-link-common.js"
101110
- },
101111
- {
101112
- "name": "SbbDisabledMixin",
101113
- "module": "core/mixins.js"
101114
- }
101115
- ],
101116
- "superclass": {
101117
- "name": "SbbActionBaseElement",
101118
- "module": "core/base-elements.js"
101119
- },
101120
- "tagName": "sbb-block-link-static",
101121
- "customElement": true,
101122
- "attributes": [
101123
- {
101124
- "name": "icon-placement",
101125
- "type": {
101126
- "text": "SbbIconPlacement"
101127
- },
101128
- "default": "'start'",
101129
- "description": "Moves the icon to the end of the component if set to true.",
101130
- "fieldName": "iconPlacement",
101131
- "inheritedFrom": {
101132
- "name": "SbbBlockLinkCommonElementMixin",
101133
- "module": "link/common/block-link-common.js"
101134
- }
101135
- },
101136
- {
101137
- "name": "size",
101138
- "type": {
101139
- "text": "SbbLinkSize"
101140
- },
101141
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101142
- "default": "'s' / 'xs' (lean)",
101143
- "fieldName": "size",
101144
- "inheritedFrom": {
101145
- "name": "SbbLinkCommonElementMixin",
101146
- "module": "link/common/link-common.js"
101147
- }
101148
- },
101149
- {
101150
- "name": "icon-name",
101151
- "type": {
101152
- "text": "string"
101153
- },
101154
- "default": "''",
101155
- "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.",
101156
- "fieldName": "iconName",
101157
- "inheritedFrom": {
101158
- "name": "SbbIconNameMixin",
101159
- "module": "icon/icon-name-mixin.js"
101160
- }
101161
- },
101162
- {
101163
- "name": "disabled",
101164
- "description": "Whether the component is disabled.",
101165
- "default": "false",
101166
- "type": {
101167
- "text": "boolean"
101168
- },
101169
- "fieldName": "disabled",
101170
- "inheritedFrom": {
101171
- "name": "SbbDisabledMixin",
101172
- "module": "core/mixins/disabled-mixin.js"
101173
- }
101174
- }
101175
- ]
101176
- }
101177
- ],
101178
- "exports": [
101179
- {
101180
- "kind": "js",
101181
- "name": "SbbBlockLinkStaticElement",
101182
- "declaration": {
101183
- "name": "SbbBlockLinkStaticElement",
101184
- "module": "link/block-link-static/block-link-static.component.js"
101185
- }
101186
- }
101187
- ]
101188
- },
101189
100755
  {
101190
100756
  "kind": "javascript-module",
101191
100757
  "path": "link/block-link-button/block-link-button.component.js",
@@ -102176,6 +101742,440 @@
102176
101742
  }
102177
101743
  ]
102178
101744
  },
101745
+ {
101746
+ "kind": "javascript-module",
101747
+ "path": "link/block-link-static/block-link-static.component.js",
101748
+ "declarations": [
101749
+ {
101750
+ "kind": "class",
101751
+ "description": "It displays a static link enhanced with the SBB Design.",
101752
+ "name": "SbbBlockLinkStaticElement",
101753
+ "slots": [
101754
+ {
101755
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
101756
+ "name": ""
101757
+ },
101758
+ {
101759
+ "description": "Slot used to display the icon, if one is set.",
101760
+ "name": "icon"
101761
+ }
101762
+ ],
101763
+ "members": [
101764
+ {
101765
+ "kind": "field",
101766
+ "name": "elementName",
101767
+ "type": {
101768
+ "text": "string"
101769
+ },
101770
+ "privacy": "public",
101771
+ "static": true,
101772
+ "readonly": true,
101773
+ "inheritedFrom": {
101774
+ "name": "SbbElement",
101775
+ "module": "core/base-elements/element.js"
101776
+ },
101777
+ "default": "'sbb-block-link-static'"
101778
+ },
101779
+ {
101780
+ "kind": "field",
101781
+ "name": "styles",
101782
+ "type": {
101783
+ "text": "CSSResultGroup"
101784
+ },
101785
+ "privacy": "public",
101786
+ "static": true,
101787
+ "default": "[super.styles, unsafeCSS(blockStyle)]",
101788
+ "inheritedFrom": {
101789
+ "name": "SbbLinkCommonElementMixin",
101790
+ "module": "link/common/link-common.js"
101791
+ }
101792
+ },
101793
+ {
101794
+ "kind": "field",
101795
+ "name": "iconPlacement",
101796
+ "type": {
101797
+ "text": "SbbIconPlacement"
101798
+ },
101799
+ "privacy": "public",
101800
+ "default": "'start'",
101801
+ "description": "Moves the icon to the end of the component if set to true.",
101802
+ "attribute": "icon-placement",
101803
+ "reflects": true,
101804
+ "inheritedFrom": {
101805
+ "name": "SbbBlockLinkCommonElementMixin",
101806
+ "module": "link/common/block-link-common.js"
101807
+ }
101808
+ },
101809
+ {
101810
+ "kind": "method",
101811
+ "name": "renderTemplate",
101812
+ "privacy": "protected",
101813
+ "return": {
101814
+ "type": {
101815
+ "text": "TemplateResult"
101816
+ }
101817
+ },
101818
+ "description": "Override this method to render the component template.",
101819
+ "inheritedFrom": {
101820
+ "name": "SbbActionBaseElement",
101821
+ "module": "core/base-elements/action-base-element.js"
101822
+ }
101823
+ },
101824
+ {
101825
+ "kind": "field",
101826
+ "name": "size",
101827
+ "type": {
101828
+ "text": "SbbLinkSize"
101829
+ },
101830
+ "privacy": "public",
101831
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101832
+ "default": "'s' / 'xs' (lean)",
101833
+ "attribute": "size",
101834
+ "reflects": true,
101835
+ "inheritedFrom": {
101836
+ "name": "SbbLinkCommonElementMixin",
101837
+ "module": "link/common/link-common.js"
101838
+ }
101839
+ },
101840
+ {
101841
+ "kind": "field",
101842
+ "name": "iconName",
101843
+ "type": {
101844
+ "text": "string"
101845
+ },
101846
+ "privacy": "public",
101847
+ "default": "''",
101848
+ "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.",
101849
+ "attribute": "icon-name",
101850
+ "inheritedFrom": {
101851
+ "name": "SbbIconNameMixin",
101852
+ "module": "icon/icon-name-mixin.js"
101853
+ }
101854
+ },
101855
+ {
101856
+ "kind": "method",
101857
+ "name": "renderIconSlot",
101858
+ "privacy": "protected",
101859
+ "return": {
101860
+ "type": {
101861
+ "text": "TemplateResult"
101862
+ }
101863
+ },
101864
+ "parameters": [
101865
+ {
101866
+ "name": "classname",
101867
+ "optional": true,
101868
+ "type": {
101869
+ "text": "string"
101870
+ }
101871
+ }
101872
+ ],
101873
+ "inheritedFrom": {
101874
+ "name": "SbbIconNameMixin",
101875
+ "module": "icon/icon-name-mixin.js"
101876
+ }
101877
+ },
101878
+ {
101879
+ "kind": "method",
101880
+ "name": "renderIconName",
101881
+ "privacy": "protected",
101882
+ "return": {
101883
+ "type": {
101884
+ "text": "string"
101885
+ }
101886
+ },
101887
+ "inheritedFrom": {
101888
+ "name": "SbbIconNameMixin",
101889
+ "module": "icon/icon-name-mixin.js"
101890
+ }
101891
+ },
101892
+ {
101893
+ "kind": "method",
101894
+ "name": "_renderIconName",
101895
+ "privacy": "private",
101896
+ "return": {
101897
+ "type": {
101898
+ "text": "string"
101899
+ }
101900
+ },
101901
+ "inheritedFrom": {
101902
+ "name": "SbbIconNameMixin",
101903
+ "module": "icon/icon-name-mixin.js"
101904
+ }
101905
+ },
101906
+ {
101907
+ "kind": "field",
101908
+ "name": "disabled",
101909
+ "privacy": "public",
101910
+ "description": "Whether the component is disabled.",
101911
+ "default": "false",
101912
+ "type": {
101913
+ "text": "boolean"
101914
+ },
101915
+ "attribute": "disabled",
101916
+ "reflects": true,
101917
+ "inheritedFrom": {
101918
+ "name": "SbbDisabledMixin",
101919
+ "module": "core/mixins/disabled-mixin.js"
101920
+ }
101921
+ },
101922
+ {
101923
+ "kind": "field",
101924
+ "name": "#disabled",
101925
+ "privacy": "private",
101926
+ "type": {
101927
+ "text": "boolean"
101928
+ },
101929
+ "default": "false",
101930
+ "inheritedFrom": {
101931
+ "name": "SbbDisabledMixin",
101932
+ "module": "core/mixins/disabled-mixin.js"
101933
+ }
101934
+ },
101935
+ {
101936
+ "kind": "method",
101937
+ "name": "isDisabledExternally",
101938
+ "privacy": "protected",
101939
+ "return": {
101940
+ "type": {
101941
+ "text": "boolean"
101942
+ }
101943
+ },
101944
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
101945
+ "inheritedFrom": {
101946
+ "name": "SbbDisabledMixin",
101947
+ "module": "core/mixins/disabled-mixin.js"
101948
+ }
101949
+ },
101950
+ {
101951
+ "kind": "field",
101952
+ "name": "maybeDisabled",
101953
+ "type": {
101954
+ "text": "boolean | undefined"
101955
+ },
101956
+ "privacy": "protected",
101957
+ "readonly": true,
101958
+ "inheritedFrom": {
101959
+ "name": "SbbActionBaseElement",
101960
+ "module": "core/base-elements/action-base-element.js"
101961
+ }
101962
+ },
101963
+ {
101964
+ "kind": "field",
101965
+ "name": "maybeDisabledInteractive",
101966
+ "type": {
101967
+ "text": "boolean | undefined"
101968
+ },
101969
+ "privacy": "protected",
101970
+ "readonly": true,
101971
+ "inheritedFrom": {
101972
+ "name": "SbbActionBaseElement",
101973
+ "module": "core/base-elements/action-base-element.js"
101974
+ }
101975
+ },
101976
+ {
101977
+ "kind": "method",
101978
+ "name": "setupBaseEventHandlers",
101979
+ "privacy": "protected",
101980
+ "return": {
101981
+ "type": {
101982
+ "text": "void"
101983
+ }
101984
+ },
101985
+ "inheritedFrom": {
101986
+ "name": "SbbActionBaseElement",
101987
+ "module": "core/base-elements/action-base-element.js"
101988
+ }
101989
+ },
101990
+ {
101991
+ "kind": "field",
101992
+ "name": "_hydrationRequired",
101993
+ "type": {
101994
+ "text": "boolean"
101995
+ },
101996
+ "privacy": "private",
101997
+ "default": "!!this.shadowRoot",
101998
+ "inheritedFrom": {
101999
+ "name": "SbbElement",
102000
+ "module": "core/base-elements/element.js"
102001
+ }
102002
+ },
102003
+ {
102004
+ "kind": "field",
102005
+ "name": "_hydrationComplete",
102006
+ "privacy": "private",
102007
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
102008
+ "inheritedFrom": {
102009
+ "name": "SbbElement",
102010
+ "module": "core/base-elements/element.js"
102011
+ }
102012
+ },
102013
+ {
102014
+ "kind": "field",
102015
+ "name": "_resolveHydration",
102016
+ "type": {
102017
+ "text": "(hydrationRequired: boolean) => void"
102018
+ },
102019
+ "privacy": "private",
102020
+ "inheritedFrom": {
102021
+ "name": "SbbElement",
102022
+ "module": "core/base-elements/element.js"
102023
+ }
102024
+ },
102025
+ {
102026
+ "kind": "field",
102027
+ "name": "hydrationRequired",
102028
+ "type": {
102029
+ "text": "boolean"
102030
+ },
102031
+ "privacy": "protected",
102032
+ "description": "Returns whether hydration is required and not completed.",
102033
+ "readonly": true,
102034
+ "inheritedFrom": {
102035
+ "name": "SbbElement",
102036
+ "module": "core/base-elements/element.js"
102037
+ },
102038
+ "default": "!!this.shadowRoot"
102039
+ },
102040
+ {
102041
+ "kind": "method",
102042
+ "name": "toggleState",
102043
+ "privacy": "protected",
102044
+ "return": {
102045
+ "type": {
102046
+ "text": "void"
102047
+ }
102048
+ },
102049
+ "parameters": [
102050
+ {
102051
+ "name": "value",
102052
+ "type": {
102053
+ "text": "string"
102054
+ }
102055
+ },
102056
+ {
102057
+ "name": "force",
102058
+ "optional": true,
102059
+ "type": {
102060
+ "text": "boolean"
102061
+ }
102062
+ }
102063
+ ],
102064
+ "inheritedFrom": {
102065
+ "name": "SbbElement",
102066
+ "module": "core/base-elements/element.js"
102067
+ }
102068
+ },
102069
+ {
102070
+ "kind": "field",
102071
+ "name": "['_$sbbElement$']",
102072
+ "type": {
102073
+ "text": "boolean"
102074
+ },
102075
+ "privacy": "public",
102076
+ "static": true,
102077
+ "default": "true",
102078
+ "inheritedFrom": {
102079
+ "name": "SbbElement",
102080
+ "module": "core/base-elements/element.js"
102081
+ }
102082
+ },
102083
+ {
102084
+ "kind": "field",
102085
+ "name": "_controllers",
102086
+ "type": {
102087
+ "text": "Set<SbbReactiveController> | undefined"
102088
+ },
102089
+ "privacy": "private",
102090
+ "inheritedFrom": {
102091
+ "name": "SbbElement",
102092
+ "module": "core/base-elements/element.js"
102093
+ }
102094
+ }
102095
+ ],
102096
+ "mixins": [
102097
+ {
102098
+ "name": "SbbBlockLinkCommonElementMixin",
102099
+ "module": "link/common/block-link-common.js"
102100
+ },
102101
+ {
102102
+ "name": "SbbDisabledMixin",
102103
+ "module": "core/mixins.js"
102104
+ }
102105
+ ],
102106
+ "superclass": {
102107
+ "name": "SbbActionBaseElement",
102108
+ "module": "core/base-elements.js"
102109
+ },
102110
+ "tagName": "sbb-block-link-static",
102111
+ "customElement": true,
102112
+ "attributes": [
102113
+ {
102114
+ "name": "icon-placement",
102115
+ "type": {
102116
+ "text": "SbbIconPlacement"
102117
+ },
102118
+ "default": "'start'",
102119
+ "description": "Moves the icon to the end of the component if set to true.",
102120
+ "fieldName": "iconPlacement",
102121
+ "inheritedFrom": {
102122
+ "name": "SbbBlockLinkCommonElementMixin",
102123
+ "module": "link/common/block-link-common.js"
102124
+ }
102125
+ },
102126
+ {
102127
+ "name": "size",
102128
+ "type": {
102129
+ "text": "SbbLinkSize"
102130
+ },
102131
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
102132
+ "default": "'s' / 'xs' (lean)",
102133
+ "fieldName": "size",
102134
+ "inheritedFrom": {
102135
+ "name": "SbbLinkCommonElementMixin",
102136
+ "module": "link/common/link-common.js"
102137
+ }
102138
+ },
102139
+ {
102140
+ "name": "icon-name",
102141
+ "type": {
102142
+ "text": "string"
102143
+ },
102144
+ "default": "''",
102145
+ "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.",
102146
+ "fieldName": "iconName",
102147
+ "inheritedFrom": {
102148
+ "name": "SbbIconNameMixin",
102149
+ "module": "icon/icon-name-mixin.js"
102150
+ }
102151
+ },
102152
+ {
102153
+ "name": "disabled",
102154
+ "description": "Whether the component is disabled.",
102155
+ "default": "false",
102156
+ "type": {
102157
+ "text": "boolean"
102158
+ },
102159
+ "fieldName": "disabled",
102160
+ "inheritedFrom": {
102161
+ "name": "SbbDisabledMixin",
102162
+ "module": "core/mixins/disabled-mixin.js"
102163
+ }
102164
+ }
102165
+ ]
102166
+ }
102167
+ ],
102168
+ "exports": [
102169
+ {
102170
+ "kind": "js",
102171
+ "name": "SbbBlockLinkStaticElement",
102172
+ "declaration": {
102173
+ "name": "SbbBlockLinkStaticElement",
102174
+ "module": "link/block-link-static/block-link-static.component.js"
102175
+ }
102176
+ }
102177
+ ]
102178
+ },
102179
102179
  {
102180
102180
  "kind": "javascript-module",
102181
102181
  "path": "link/common/block-link-common.js",
@@ -106270,27 +106270,23 @@
106270
106270
  },
106271
106271
  {
106272
106272
  "kind": "javascript-module",
106273
- "path": "menu/menu-button/menu-button.component.js",
106273
+ "path": "menu/menu/menu.component.js",
106274
106274
  "declarations": [
106275
106275
  {
106276
106276
  "kind": "class",
106277
- "description": "It displays a button element that can be used in the `sbb-menu` component.",
106278
- "name": "SbbMenuButtonElement",
106277
+ "description": "It displays a contextual menu with one or more action element.",
106278
+ "name": "SbbMenuElement",
106279
106279
  "cssProperties": [
106280
106280
  {
106281
- "description": "Can be used to modify horizontal padding.",
106282
- "name": "--sbb-menu-action-outer-horizontal-padding",
106283
- "default": "var(--sbb-spacing-fixed-3x)"
106281
+ "description": "To specify a custom stack order, the `z-index` can be overridden by defining this CSS variable. The default `z-index` of the component is set to `var(--sbb-overlay-default-z-index)` with a value of `1000`.",
106282
+ "name": "--sbb-menu-z-index",
106283
+ "default": "var(--sbb-overlay-default-z-index)"
106284
106284
  }
106285
106285
  ],
106286
106286
  "slots": [
106287
106287
  {
106288
- "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
106288
+ "description": "Use the unnamed slot to add `sbb-menu-button`/`sbb-menu-link` or other elements to the menu.",
106289
106289
  "name": ""
106290
- },
106291
- {
106292
- "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
106293
- "name": "icon"
106294
106290
  }
106295
106291
  ],
106296
106292
  "members": [
@@ -106307,417 +106303,275 @@
106307
106303
  "name": "SbbElement",
106308
106304
  "module": "core/base-elements/element.js"
106309
106305
  },
106310
- "default": "'sbb-menu-button'"
106306
+ "default": "'sbb-menu'"
106311
106307
  },
106312
106308
  {
106313
106309
  "kind": "field",
106314
106310
  "name": "role",
106315
106311
  "type": {
106316
- "text": "ElementInternals['role']"
106312
+ "text": "string"
106317
106313
  },
106318
106314
  "privacy": "public",
106319
106315
  "static": true,
106320
106316
  "readonly": true,
106321
- "default": "'menuitem'",
106322
- "inheritedFrom": {
106323
- "name": "SbbButtonLikeBaseElement",
106324
- "module": "core/base-elements/button-base-element.js"
106325
- }
106317
+ "default": "'menu'"
106326
106318
  },
106327
106319
  {
106328
106320
  "kind": "field",
106329
- "name": "disabledInteractive",
106321
+ "name": "trigger",
106330
106322
  "type": {
106331
- "text": "boolean"
106323
+ "text": "HTMLElement | null"
106332
106324
  },
106333
106325
  "privacy": "public",
106334
- "default": "false",
106335
- "description": "Whether the button should be aria-disabled but stay interactive.",
106336
- "attribute": "disabled-interactive",
106337
- "reflects": true,
106338
- "inheritedFrom": {
106339
- "name": "SbbDisabledInteractiveMixin",
106340
- "module": "core/mixins/disabled-mixin.js"
106341
- }
106326
+ "default": "null",
106327
+ "description": "The element that will trigger the menu overlay.\n\nFor attribute usage, provide an id reference.",
106328
+ "attribute": "trigger"
106342
106329
  },
106343
106330
  {
106344
106331
  "kind": "field",
106345
- "name": "disabled",
106346
- "privacy": "public",
106347
- "description": "Whether the component is disabled.",
106348
- "default": "false",
106332
+ "name": "_menu",
106349
106333
  "type": {
106350
- "text": "boolean"
106334
+ "text": "HTMLDivElement"
106351
106335
  },
106352
- "attribute": "disabled",
106353
- "reflects": true,
106354
- "inheritedFrom": {
106355
- "name": "SbbDisabledMixin",
106356
- "module": "core/mixins/disabled-mixin.js"
106357
- }
106336
+ "privacy": "private"
106358
106337
  },
106359
106338
  {
106360
106339
  "kind": "field",
106361
- "name": "#disabled",
106362
- "privacy": "private",
106340
+ "name": "_triggerElement",
106363
106341
  "type": {
106364
- "text": "boolean"
106365
- },
106366
- "default": "false",
106367
- "inheritedFrom": {
106368
- "name": "SbbDisabledMixin",
106369
- "module": "core/mixins/disabled-mixin.js"
106370
- }
106371
- },
106372
- {
106373
- "kind": "method",
106374
- "name": "isDisabledExternally",
106375
- "privacy": "protected",
106376
- "return": {
106377
- "type": {
106378
- "text": "boolean"
106379
- }
106342
+ "text": "HTMLElement | null"
106380
106343
  },
106381
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
106382
- "inheritedFrom": {
106383
- "name": "SbbDisabledMixin",
106384
- "module": "core/mixins/disabled-mixin.js"
106385
- }
106344
+ "privacy": "private",
106345
+ "default": "null"
106386
106346
  },
106387
106347
  {
106388
106348
  "kind": "field",
106389
- "name": "styles",
106349
+ "name": "_triggerAbortController",
106390
106350
  "type": {
106391
- "text": "CSSResultGroup"
106351
+ "text": "AbortController"
106392
106352
  },
106393
- "privacy": "public",
106394
- "static": true,
106395
- "default": "[boxSizingStyles, unsafeCSS(style)]",
106396
- "inheritedFrom": {
106397
- "name": "SbbMenuActionCommonElementMixin",
106398
- "module": "menu/common/menu-action-common.js"
106399
- }
106353
+ "privacy": "private"
106400
106354
  },
106401
106355
  {
106402
- "kind": "method",
106403
- "name": "renderTemplate",
106404
- "privacy": "protected",
106405
- "return": {
106406
- "type": {
106407
- "text": "TemplateResult"
106408
- }
106356
+ "kind": "field",
106357
+ "name": "_isPointerDownEventOnMenu",
106358
+ "type": {
106359
+ "text": "boolean"
106409
106360
  },
106410
- "description": "Override this method to render the component template.",
106411
- "inheritedFrom": {
106412
- "name": "SbbActionBaseElement",
106413
- "module": "core/base-elements/action-base-element.js"
106414
- }
106361
+ "privacy": "private",
106362
+ "default": "false"
106415
106363
  },
106416
106364
  {
106417
106365
  "kind": "field",
106418
- "name": "iconName",
106366
+ "name": "_windowEventsController",
106419
106367
  "type": {
106420
- "text": "string"
106368
+ "text": "AbortController"
106421
106369
  },
106422
- "privacy": "public",
106423
- "default": "''",
106424
- "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.",
106425
- "attribute": "icon-name",
106426
- "inheritedFrom": {
106427
- "name": "SbbIconNameMixin",
106428
- "module": "icon/icon-name-mixin.js"
106429
- }
106370
+ "privacy": "private"
106430
106371
  },
106431
106372
  {
106432
- "kind": "method",
106433
- "name": "renderIconSlot",
106434
- "privacy": "protected",
106435
- "return": {
106436
- "type": {
106437
- "text": "TemplateResult"
106438
- }
106439
- },
106440
- "parameters": [
106441
- {
106442
- "name": "classname",
106443
- "optional": true,
106444
- "type": {
106445
- "text": "string"
106446
- }
106447
- }
106448
- ],
106449
- "inheritedFrom": {
106450
- "name": "SbbIconNameMixin",
106451
- "module": "icon/icon-name-mixin.js"
106452
- }
106373
+ "kind": "field",
106374
+ "name": "_escapableOverlayController",
106375
+ "privacy": "private",
106376
+ "default": "new SbbEscapableOverlayController(this)"
106453
106377
  },
106454
106378
  {
106455
- "kind": "method",
106456
- "name": "renderIconName",
106457
- "privacy": "protected",
106458
- "return": {
106459
- "type": {
106460
- "text": "string"
106461
- }
106462
- },
106463
- "inheritedFrom": {
106464
- "name": "SbbIconNameMixin",
106465
- "module": "icon/icon-name-mixin.js"
106466
- }
106379
+ "kind": "field",
106380
+ "name": "_focusTrapController",
106381
+ "privacy": "private",
106382
+ "default": "new SbbFocusTrapController(this)"
106467
106383
  },
106468
106384
  {
106469
- "kind": "method",
106470
- "name": "_renderIconName",
106385
+ "kind": "field",
106386
+ "name": "_scrollHandler",
106471
106387
  "privacy": "private",
106472
- "return": {
106473
- "type": {
106474
- "text": "string"
106475
- }
106476
- },
106477
- "inheritedFrom": {
106478
- "name": "SbbIconNameMixin",
106479
- "module": "icon/icon-name-mixin.js"
106480
- }
106388
+ "default": "new SbbScrollHandler()"
106481
106389
  },
106482
106390
  {
106483
106391
  "kind": "field",
106484
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
106485
- "type": {
106486
- "text": "array"
106487
- },
106392
+ "name": "_inertController",
106488
106393
  "privacy": "private",
106489
- "readonly": true,
106490
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
106491
- "inheritedFrom": {
106492
- "name": "SbbButtonBaseElement",
106493
- "module": "core/base-elements/button-base-element.js"
106494
- }
106394
+ "default": "new SbbInertController(this)"
106495
106395
  },
106496
106396
  {
106497
106397
  "kind": "field",
106498
- "name": "value",
106499
- "type": {
106500
- "text": "string"
106501
- },
106502
- "privacy": "public",
106503
- "inheritedFrom": {
106504
- "name": "SbbButtonBaseElement",
106505
- "module": "core/base-elements/button-base-element.js"
106506
- },
106507
- "default": "''",
106508
- "description": "Value of the form element.",
106509
- "attribute": "value"
106398
+ "name": "_mobileBreakpoint",
106399
+ "privacy": "private",
106400
+ "default": "SbbMediaQueryBreakpointSmallAndBelow"
106510
106401
  },
106511
106402
  {
106512
106403
  "kind": "field",
106513
- "name": "type",
106514
- "privacy": "public",
106515
- "description": "The type attribute to use for the button.",
106516
- "default": "'button'",
106517
- "type": {
106518
- "text": "SbbButtonType"
106519
- },
106520
- "attribute": "type",
106521
- "inheritedFrom": {
106522
- "name": "SbbButtonBaseElement",
106523
- "module": "core/base-elements/button-base-element.js"
106524
- }
106404
+ "name": "_mediaMatcher",
106405
+ "privacy": "private",
106406
+ "default": "new SbbMediaMatcherController(this, { [this._mobileBreakpoint]: (matches) => { if (matches && (this.state === 'opening' || this.state === 'opened')) { this._scrollHandler.disableScroll(); } else { this._scrollHandler.enableScroll(); } }, })"
106525
106407
  },
106526
106408
  {
106527
106409
  "kind": "field",
106528
- "name": "form",
106529
- "type": {
106530
- "text": "HTMLFormElement | null"
106531
- },
106532
- "privacy": "public",
106533
- "description": "The `<form>` element to associate the button with.",
106534
- "inheritedFrom": {
106535
- "name": "SbbButtonBaseElement",
106536
- "module": "core/base-elements/button-base-element.js"
106537
- },
106538
- "attribute": "form"
106410
+ "name": "_darkModeController",
106411
+ "privacy": "private",
106412
+ "default": "new SbbDarkModeController(this, () => this._syncNegative())"
106539
106413
  },
106540
106414
  {
106541
106415
  "kind": "field",
106542
- "name": "_formId",
106543
- "type": {
106544
- "text": "string"
106545
- },
106416
+ "name": "_language",
106546
106417
  "privacy": "private",
106547
- "default": "''",
106548
- "inheritedFrom": {
106549
- "name": "SbbButtonBaseElement",
106550
- "module": "core/base-elements/button-base-element.js"
106551
- }
106418
+ "default": "new SbbLanguageController(this)"
106552
106419
  },
106553
106420
  {
106554
106421
  "kind": "field",
106555
- "name": "_handleButtonClick",
106422
+ "name": "_nestedMenu",
106423
+ "type": {
106424
+ "text": "SbbMenuElement | null"
106425
+ },
106556
106426
  "privacy": "private",
106557
- "inheritedFrom": {
106558
- "name": "SbbButtonBaseElement",
106559
- "module": "core/base-elements/button-base-element.js"
106560
- }
106427
+ "default": "null"
106561
106428
  },
106562
106429
  {
106563
106430
  "kind": "method",
106564
- "name": "_requestSubmit",
106565
- "privacy": "private",
106431
+ "name": "escapeStrategy",
106432
+ "privacy": "public",
106566
106433
  "return": {
106567
106434
  "type": {
106568
106435
  "text": "void"
106569
106436
  }
106570
106437
  },
106571
- "parameters": [
106572
- {
106573
- "name": "form",
106574
- "type": {
106575
- "text": "HTMLFormElement"
106576
- }
106577
- }
106578
- ],
106438
+ "description": "The method which is called on escape key press. Defaults to calling close()",
106579
106439
  "inheritedFrom": {
106580
- "name": "SbbButtonBaseElement",
106581
- "module": "core/base-elements/button-base-element.js"
106440
+ "name": "SbbOpenCloseBaseElement",
106441
+ "module": "core/base-elements/open-close-base-element.js"
106582
106442
  }
106583
106443
  },
106584
106444
  {
106585
- "kind": "field",
106586
- "name": "_formKeyDown",
106587
- "privacy": "private",
106445
+ "kind": "method",
106446
+ "name": "open",
106447
+ "privacy": "public",
106448
+ "return": {
106449
+ "type": {
106450
+ "text": "void"
106451
+ }
106452
+ },
106453
+ "description": "Opens the menu on trigger click.",
106588
106454
  "inheritedFrom": {
106589
- "name": "SbbButtonBaseElement",
106590
- "module": "core/base-elements/button-base-element.js"
106455
+ "name": "SbbOpenCloseBaseElement",
106456
+ "module": "core/base-elements/open-close-base-element.js"
106591
106457
  }
106592
106458
  },
106593
106459
  {
106594
- "kind": "field",
106595
- "name": "formAssociated",
106596
- "type": {
106597
- "text": "boolean"
106598
- },
106460
+ "kind": "method",
106461
+ "name": "close",
106599
106462
  "privacy": "public",
106600
- "static": true,
106601
- "default": "true",
106463
+ "return": {
106464
+ "type": {
106465
+ "text": "void"
106466
+ }
106467
+ },
106468
+ "description": "Closes the menu and all its nested menus.",
106602
106469
  "inheritedFrom": {
106603
- "name": "SbbFormAssociatedMixin",
106604
- "module": "core/mixins/form-associated-mixin.js"
106470
+ "name": "SbbOpenCloseBaseElement",
106471
+ "module": "core/base-elements/open-close-base-element.js"
106605
106472
  }
106606
106473
  },
106607
106474
  {
106608
- "kind": "field",
106609
- "name": "name",
106475
+ "kind": "method",
106476
+ "name": "closeAll",
106610
106477
  "privacy": "public",
106611
- "description": "Name of the form element. Will be read from name attribute.",
106612
- "type": {
106613
- "text": "string"
106478
+ "return": {
106479
+ "type": {
106480
+ "text": "void"
106481
+ }
106614
106482
  },
106615
- "attribute": "name",
106616
- "inheritedFrom": {
106617
- "name": "SbbFormAssociatedMixin",
106618
- "module": "core/mixins/form-associated-mixin.js"
106619
- }
106483
+ "description": "Closes the menu and all related menus (nested and parent menus)."
106620
106484
  },
106621
106485
  {
106622
- "kind": "field",
106623
- "name": "validity",
106624
- "type": {
106625
- "text": "ValidityState"
106486
+ "kind": "method",
106487
+ "name": "_close",
106488
+ "privacy": "private",
106489
+ "return": {
106490
+ "type": {
106491
+ "text": "void"
106492
+ }
106626
106493
  },
106627
- "privacy": "public",
106628
- "description": "Returns the ValidityState object for this element.",
106629
- "readonly": true,
106630
- "inheritedFrom": {
106631
- "name": "SbbFormAssociatedMixin",
106632
- "module": "core/mixins/form-associated-mixin.js"
106633
- }
106494
+ "parameters": [
106495
+ {
106496
+ "name": "closeAll",
106497
+ "default": "false",
106498
+ "description": "If true, it ensures animations are correct by toggling some states when closing all related menus at once.",
106499
+ "optional": true
106500
+ }
106501
+ ]
106634
106502
  },
106635
106503
  {
106636
- "kind": "field",
106637
- "name": "validationMessage",
106638
- "type": {
106639
- "text": "string"
106640
- },
106641
- "privacy": "public",
106642
- "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.",
106643
- "readonly": true,
106644
- "inheritedFrom": {
106645
- "name": "SbbFormAssociatedMixin",
106646
- "module": "core/mixins/form-associated-mixin.js"
106504
+ "kind": "method",
106505
+ "name": "_isZeroAnimationDuration",
106506
+ "privacy": "private",
106507
+ "return": {
106508
+ "type": {
106509
+ "text": "boolean"
106510
+ }
106647
106511
  }
106648
106512
  },
106649
106513
  {
106650
- "kind": "field",
106651
- "name": "willValidate",
106652
- "type": {
106653
- "text": "boolean"
106654
- },
106655
- "privacy": "public",
106656
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
106657
- "readonly": true,
106658
- "inheritedFrom": {
106659
- "name": "SbbFormAssociatedMixin",
106660
- "module": "core/mixins/form-associated-mixin.js"
106514
+ "kind": "method",
106515
+ "name": "_handleOpening",
106516
+ "privacy": "private",
106517
+ "return": {
106518
+ "type": {
106519
+ "text": "void"
106520
+ }
106661
106521
  }
106662
106522
  },
106663
106523
  {
106664
- "kind": "field",
106665
- "name": "_validityStates",
106524
+ "kind": "method",
106525
+ "name": "_handleClosing",
106666
106526
  "privacy": "private",
106667
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
106668
- "inheritedFrom": {
106669
- "name": "SbbFormAssociatedMixin",
106670
- "module": "core/mixins/form-associated-mixin.js"
106527
+ "return": {
106528
+ "type": {
106529
+ "text": "void"
106530
+ }
106671
106531
  }
106672
106532
  },
106673
106533
  {
106674
- "kind": "field",
106675
- "name": "formDisabled",
106676
- "type": {
106677
- "text": "boolean"
106534
+ "kind": "method",
106535
+ "name": "_handleKeyDown",
106536
+ "privacy": "private",
106537
+ "return": {
106538
+ "type": {
106539
+ "text": "void"
106540
+ }
106678
106541
  },
106679
- "privacy": "protected",
106680
- "default": "false",
106681
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
106682
- "inheritedFrom": {
106683
- "name": "SbbFormAssociatedMixin",
106684
- "module": "core/mixins/form-associated-mixin.js"
106685
- }
106542
+ "parameters": [
106543
+ {
106544
+ "name": "evt",
106545
+ "type": {
106546
+ "text": "KeyboardEvent"
106547
+ }
106548
+ }
106549
+ ]
106686
106550
  },
106687
106551
  {
106688
106552
  "kind": "method",
106689
- "name": "checkValidity",
106690
- "privacy": "public",
106553
+ "name": "_configureTrigger",
106554
+ "privacy": "private",
106691
106555
  "return": {
106692
106556
  "type": {
106693
- "text": "boolean"
106557
+ "text": "void"
106694
106558
  }
106695
- },
106696
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
106697
- "inheritedFrom": {
106698
- "name": "SbbFormAssociatedMixin",
106699
- "module": "core/mixins/form-associated-mixin.js"
106700
106559
  }
106701
106560
  },
106702
106561
  {
106703
106562
  "kind": "method",
106704
- "name": "reportValidity",
106705
- "privacy": "public",
106563
+ "name": "_attachWindowEvents",
106564
+ "privacy": "private",
106706
106565
  "return": {
106707
106566
  "type": {
106708
- "text": "boolean"
106567
+ "text": "void"
106709
106568
  }
106710
- },
106711
- "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.",
106712
- "inheritedFrom": {
106713
- "name": "SbbFormAssociatedMixin",
106714
- "module": "core/mixins/form-associated-mixin.js"
106715
106569
  }
106716
106570
  },
106717
106571
  {
106718
106572
  "kind": "method",
106719
- "name": "setCustomValidity",
106720
- "privacy": "public",
106573
+ "name": "_interactiveElementClick",
106574
+ "privacy": "private",
106721
106575
  "return": {
106722
106576
  "type": {
106723
106577
  "text": "void"
@@ -106725,65 +106579,79 @@
106725
106579
  },
106726
106580
  "parameters": [
106727
106581
  {
106728
- "name": "message",
106582
+ "name": "event",
106729
106583
  "type": {
106730
- "text": "string"
106584
+ "text": "Event"
106731
106585
  }
106732
106586
  }
106733
- ],
106734
- "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.",
106735
- "inheritedFrom": {
106736
- "name": "SbbFormAssociatedMixin",
106737
- "module": "core/mixins/form-associated-mixin.js"
106738
- }
106587
+ ]
106588
+ },
106589
+ {
106590
+ "kind": "field",
106591
+ "name": "_pointerDownListener",
106592
+ "privacy": "private"
106593
+ },
106594
+ {
106595
+ "kind": "field",
106596
+ "name": "_closeOnBackdropClick",
106597
+ "privacy": "private"
106739
106598
  },
106740
106599
  {
106741
106600
  "kind": "method",
106742
- "name": "_hasDisabledAncestor",
106601
+ "name": "_nestedMenus",
106743
106602
  "privacy": "private",
106744
106603
  "return": {
106745
106604
  "type": {
106746
- "text": "boolean"
106605
+ "text": "SbbMenuElement[]"
106747
106606
  }
106748
106607
  },
106749
- "inheritedFrom": {
106750
- "name": "SbbFormAssociatedMixin",
106751
- "module": "core/mixins/form-associated-mixin.js"
106608
+ "description": "Converts the linked list into an array of SbbMenuElement."
106609
+ },
106610
+ {
106611
+ "kind": "method",
106612
+ "name": "_parentMenu",
106613
+ "privacy": "private",
106614
+ "return": {
106615
+ "type": {
106616
+ "text": "SbbMenuElement | null"
106617
+ }
106752
106618
  }
106753
106619
  },
106754
106620
  {
106755
106621
  "kind": "method",
106756
- "name": "updateFormValue",
106757
- "privacy": "protected",
106622
+ "name": "_mainMenu",
106623
+ "privacy": "private",
106758
106624
  "return": {
106759
106625
  "type": {
106760
- "text": "void"
106626
+ "text": "SbbMenuElement"
106761
106627
  }
106762
106628
  },
106763
- "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",
106764
- "inheritedFrom": {
106765
- "name": "SbbFormAssociatedMixin",
106766
- "module": "core/mixins/form-associated-mixin.js"
106629
+ "description": "The outermost menu."
106630
+ },
106631
+ {
106632
+ "kind": "method",
106633
+ "name": "_isNested",
106634
+ "privacy": "private",
106635
+ "return": {
106636
+ "type": {
106637
+ "text": "boolean"
106638
+ }
106767
106639
  }
106768
106640
  },
106769
106641
  {
106770
106642
  "kind": "method",
106771
- "name": "formState",
106772
- "privacy": "protected",
106643
+ "name": "_updateNestedInert",
106644
+ "privacy": "private",
106773
106645
  "return": {
106774
106646
  "type": {
106775
- "text": "FormRestoreState"
106647
+ "text": "void"
106776
106648
  }
106777
- },
106778
- "inheritedFrom": {
106779
- "name": "SbbFormAssociatedMixin",
106780
- "module": "core/mixins/form-associated-mixin.js"
106781
106649
  }
106782
106650
  },
106783
106651
  {
106784
106652
  "kind": "method",
106785
- "name": "setValidityFlag",
106786
- "privacy": "protected",
106653
+ "name": "_handleMouseOver",
106654
+ "privacy": "private",
106787
106655
  "return": {
106788
106656
  "type": {
106789
106657
  "text": "void"
@@ -106791,35 +106659,17 @@
106791
106659
  },
106792
106660
  "parameters": [
106793
106661
  {
106794
- "name": "flag",
106795
- "type": {
106796
- "text": "T"
106797
- }
106798
- },
106799
- {
106800
- "name": "message",
106801
- "type": {
106802
- "text": "string"
106803
- }
106804
- },
106805
- {
106806
- "name": "flagValue",
106807
- "optional": true,
106662
+ "name": "event",
106808
106663
  "type": {
106809
- "text": "ValidityStateFlags[T]"
106664
+ "text": "MouseEvent"
106810
106665
  }
106811
106666
  }
106812
- ],
106813
- "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).",
106814
- "inheritedFrom": {
106815
- "name": "SbbFormAssociatedMixin",
106816
- "module": "core/mixins/form-associated-mixin.js"
106817
- }
106667
+ ]
106818
106668
  },
106819
106669
  {
106820
106670
  "kind": "method",
106821
- "name": "removeValidityFlag",
106822
- "privacy": "protected",
106671
+ "name": "_onMenuAnimationEnd",
106672
+ "privacy": "private",
106823
106673
  "return": {
106824
106674
  "type": {
106825
106675
  "text": "void"
@@ -106827,158 +106677,152 @@
106827
106677
  },
106828
106678
  "parameters": [
106829
106679
  {
106830
- "name": "flag",
106680
+ "name": "event",
106831
106681
  "type": {
106832
- "text": "T"
106682
+ "text": "AnimationEvent"
106833
106683
  }
106834
106684
  }
106835
- ],
106836
- "description": "Removes the validity state flag entry and updates validity state.",
106837
- "inheritedFrom": {
106838
- "name": "SbbFormAssociatedMixin",
106839
- "module": "core/mixins/form-associated-mixin.js"
106840
- }
106685
+ ]
106841
106686
  },
106842
106687
  {
106843
106688
  "kind": "method",
106844
- "name": "validate",
106845
- "privacy": "protected",
106689
+ "name": "_setMenuPosition",
106690
+ "privacy": "private",
106846
106691
  "return": {
106847
106692
  "type": {
106848
106693
  "text": "void"
106849
106694
  }
106850
- },
106851
- "description": "To be called whenever the current element needs to be validated.",
106852
- "inheritedFrom": {
106853
- "name": "SbbFormAssociatedMixin",
106854
- "module": "core/mixins/form-associated-mixin.js"
106855
106695
  }
106856
106696
  },
106857
106697
  {
106858
106698
  "kind": "method",
106859
- "name": "shouldValidate",
106860
- "privacy": "protected",
106699
+ "name": "_syncNegative",
106700
+ "privacy": "private",
106861
106701
  "return": {
106862
106702
  "type": {
106863
- "text": "boolean"
106864
- }
106865
- },
106866
- "parameters": [
106867
- {
106868
- "name": "name",
106869
- "type": {
106870
- "text": "PropertyKey | undefined"
106871
- }
106703
+ "text": "void"
106872
106704
  }
106873
- ],
106874
- "description": "Whether validation should be run on a property change with the given name.",
106875
- "inheritedFrom": {
106876
- "name": "SbbFormAssociatedMixin",
106877
- "module": "core/mixins/form-associated-mixin.js"
106878
106705
  }
106879
106706
  },
106880
106707
  {
106881
106708
  "kind": "method",
106882
- "name": "_setInternalValidity",
106709
+ "name": "_isMobile",
106883
106710
  "privacy": "private",
106884
106711
  "return": {
106885
106712
  "type": {
106886
- "text": "void"
106713
+ "text": "boolean"
106887
106714
  }
106715
+ }
106716
+ },
106717
+ {
106718
+ "kind": "field",
106719
+ "name": "events",
106720
+ "privacy": "public",
106721
+ "static": true,
106722
+ "readonly": true,
106723
+ "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
106724
+ "type": {
106725
+ "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
106888
106726
  },
106889
106727
  "inheritedFrom": {
106890
- "name": "SbbFormAssociatedMixin",
106891
- "module": "core/mixins/form-associated-mixin.js"
106728
+ "name": "SbbOpenCloseBaseElement",
106729
+ "module": "core/base-elements/open-close-base-element.js"
106892
106730
  }
106893
106731
  },
106894
106732
  {
106895
106733
  "kind": "field",
106896
- "name": "_preventScrollOnSpaceKeydown",
106897
- "privacy": "private",
106898
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
106899
- "parameters": [
106900
- {
106901
- "description": "The origin event.",
106902
- "name": "event"
106903
- }
106904
- ],
106734
+ "name": "state",
106735
+ "privacy": "protected",
106736
+ "description": "The state of the component.",
106737
+ "type": {
106738
+ "text": "SbbOpenedClosedState"
106739
+ },
106740
+ "default": "'closed'",
106905
106741
  "inheritedFrom": {
106906
- "name": "SbbButtonLikeBaseElement",
106907
- "module": "core/base-elements/button-base-element.js"
106742
+ "name": "SbbOpenCloseBaseElement",
106743
+ "module": "core/base-elements/open-close-base-element.js"
106908
106744
  }
106909
106745
  },
106910
106746
  {
106911
106747
  "kind": "field",
106912
- "name": "_removeActiveMarker",
106748
+ "name": "_state",
106749
+ "type": {
106750
+ "text": "SbbOpenedClosedState"
106751
+ },
106913
106752
  "privacy": "private",
106914
106753
  "inheritedFrom": {
106915
- "name": "SbbButtonLikeBaseElement",
106916
- "module": "core/base-elements/button-base-element.js"
106754
+ "name": "SbbOpenCloseBaseElement",
106755
+ "module": "core/base-elements/open-close-base-element.js"
106917
106756
  }
106918
106757
  },
106919
106758
  {
106920
106759
  "kind": "field",
106921
- "name": "_dispatchClickEventOnSpaceKeyup",
106922
- "privacy": "private",
106923
- "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.",
106924
- "parameters": [
106925
- {
106926
- "description": "The origin event.",
106927
- "name": "event"
106928
- }
106929
- ],
106760
+ "name": "isOpen",
106761
+ "type": {
106762
+ "text": "boolean"
106763
+ },
106764
+ "privacy": "public",
106765
+ "description": "Whether the element is open.",
106766
+ "readonly": true,
106930
106767
  "inheritedFrom": {
106931
- "name": "SbbButtonLikeBaseElement",
106932
- "module": "core/base-elements/button-base-element.js"
106768
+ "name": "SbbOpenCloseBaseElement",
106769
+ "module": "core/base-elements/open-close-base-element.js"
106933
106770
  }
106934
106771
  },
106935
106772
  {
106936
- "kind": "field",
106937
- "name": "_dispatchClickEvent",
106938
- "privacy": "private",
106773
+ "kind": "method",
106774
+ "name": "dispatchBeforeOpenEvent",
106775
+ "privacy": "protected",
106776
+ "return": {
106777
+ "type": {
106778
+ "text": "boolean"
106779
+ }
106780
+ },
106939
106781
  "inheritedFrom": {
106940
- "name": "SbbButtonLikeBaseElement",
106941
- "module": "core/base-elements/button-base-element.js"
106782
+ "name": "SbbOpenCloseBaseElement",
106783
+ "module": "core/base-elements/open-close-base-element.js"
106942
106784
  }
106943
106785
  },
106944
106786
  {
106945
- "kind": "field",
106946
- "name": "maybeDisabled",
106947
- "type": {
106948
- "text": "boolean | undefined"
106949
- },
106787
+ "kind": "method",
106788
+ "name": "dispatchOpenEvent",
106950
106789
  "privacy": "protected",
106951
- "readonly": true,
106790
+ "return": {
106791
+ "type": {
106792
+ "text": "boolean"
106793
+ }
106794
+ },
106952
106795
  "inheritedFrom": {
106953
- "name": "SbbActionBaseElement",
106954
- "module": "core/base-elements/action-base-element.js"
106796
+ "name": "SbbOpenCloseBaseElement",
106797
+ "module": "core/base-elements/open-close-base-element.js"
106955
106798
  }
106956
106799
  },
106957
106800
  {
106958
- "kind": "field",
106959
- "name": "maybeDisabledInteractive",
106960
- "type": {
106961
- "text": "boolean | undefined"
106962
- },
106801
+ "kind": "method",
106802
+ "name": "dispatchBeforeCloseEvent",
106963
106803
  "privacy": "protected",
106964
- "readonly": true,
106804
+ "return": {
106805
+ "type": {
106806
+ "text": "boolean"
106807
+ }
106808
+ },
106965
106809
  "inheritedFrom": {
106966
- "name": "SbbActionBaseElement",
106967
- "module": "core/base-elements/action-base-element.js"
106810
+ "name": "SbbOpenCloseBaseElement",
106811
+ "module": "core/base-elements/open-close-base-element.js"
106968
106812
  }
106969
106813
  },
106970
106814
  {
106971
106815
  "kind": "method",
106972
- "name": "setupBaseEventHandlers",
106816
+ "name": "dispatchCloseEvent",
106973
106817
  "privacy": "protected",
106974
106818
  "return": {
106975
106819
  "type": {
106976
- "text": "void"
106820
+ "text": "boolean"
106977
106821
  }
106978
106822
  },
106979
106823
  "inheritedFrom": {
106980
- "name": "SbbActionBaseElement",
106981
- "module": "core/base-elements/action-base-element.js"
106824
+ "name": "SbbOpenCloseBaseElement",
106825
+ "module": "core/base-elements/open-close-base-element.js"
106982
106826
  }
106983
106827
  },
106984
106828
  {
@@ -107087,110 +106931,66 @@
107087
106931
  }
107088
106932
  }
107089
106933
  ],
107090
- "mixins": [
107091
- {
107092
- "name": "SbbDisabledTabIndexActionMixin",
107093
- "module": "core/mixins.js"
107094
- },
106934
+ "attributes": [
107095
106935
  {
107096
- "name": "SbbMenuActionCommonElementMixin",
107097
- "module": "menu/common/menu-action-common.js"
106936
+ "name": "trigger",
106937
+ "type": {
106938
+ "text": "HTMLElement | null"
106939
+ },
106940
+ "default": "null",
106941
+ "description": "The element that will trigger the menu overlay.\n\nFor attribute usage, provide an id reference.",
106942
+ "fieldName": "trigger"
107098
106943
  }
107099
106944
  ],
107100
106945
  "superclass": {
107101
- "name": "SbbButtonBaseElement",
106946
+ "name": "SbbOpenCloseBaseElement",
107102
106947
  "module": "core/base-elements.js"
107103
106948
  },
107104
- "tagName": "sbb-menu-button",
106949
+ "tagName": "sbb-menu",
107105
106950
  "customElement": true,
107106
- "attributes": [
107107
- {
107108
- "name": "disabled-interactive",
107109
- "type": {
107110
- "text": "boolean"
107111
- },
107112
- "default": "false",
107113
- "description": "Whether the button should be aria-disabled but stay interactive.",
107114
- "fieldName": "disabledInteractive",
107115
- "inheritedFrom": {
107116
- "name": "SbbDisabledInteractiveMixin",
107117
- "module": "core/mixins/disabled-mixin.js"
107118
- }
107119
- },
107120
- {
107121
- "name": "disabled",
107122
- "description": "Whether the component is disabled.",
107123
- "default": "false",
107124
- "type": {
107125
- "text": "boolean"
107126
- },
107127
- "fieldName": "disabled",
107128
- "inheritedFrom": {
107129
- "name": "SbbDisabledMixin",
107130
- "module": "core/mixins/disabled-mixin.js"
107131
- }
107132
- },
107133
- {
107134
- "name": "icon-name",
107135
- "type": {
107136
- "text": "string"
107137
- },
107138
- "default": "''",
107139
- "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.",
107140
- "fieldName": "iconName",
107141
- "inheritedFrom": {
107142
- "name": "SbbIconNameMixin",
107143
- "module": "icon/icon-name-mixin.js"
107144
- }
107145
- },
106951
+ "events": [
107146
106952
  {
107147
- "name": "value",
106953
+ "name": "beforeopen",
107148
106954
  "type": {
107149
- "text": "string"
106955
+ "text": "Event"
107150
106956
  },
107151
- "default": "''",
107152
- "description": "Value of the form element.",
107153
- "fieldName": "value",
106957
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
107154
106958
  "inheritedFrom": {
107155
- "name": "SbbButtonBaseElement",
107156
- "module": "core/base-elements/button-base-element.js"
106959
+ "name": "SbbOpenCloseBaseElement",
106960
+ "module": "core/base-elements/open-close-base-element.js"
107157
106961
  }
107158
106962
  },
107159
106963
  {
107160
- "name": "type",
107161
- "description": "The type attribute to use for the button.",
107162
- "default": "'button'",
106964
+ "name": "open",
107163
106965
  "type": {
107164
- "text": "SbbButtonType"
106966
+ "text": "Event"
107165
106967
  },
107166
- "fieldName": "type",
106968
+ "description": "Emits whenever the component is opened.",
107167
106969
  "inheritedFrom": {
107168
- "name": "SbbButtonBaseElement",
107169
- "module": "core/base-elements/button-base-element.js"
106970
+ "name": "SbbOpenCloseBaseElement",
106971
+ "module": "core/base-elements/open-close-base-element.js"
107170
106972
  }
107171
106973
  },
107172
106974
  {
107173
- "name": "form",
107174
- "description": "The `<form>` element to associate the button with.",
106975
+ "name": "beforeclose",
107175
106976
  "type": {
107176
- "text": "HTMLFormElement | null"
106977
+ "text": "Event"
107177
106978
  },
107178
- "fieldName": "form",
106979
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
107179
106980
  "inheritedFrom": {
107180
- "name": "SbbButtonBaseElement",
107181
- "module": "core/base-elements/button-base-element.js"
106981
+ "name": "SbbOpenCloseBaseElement",
106982
+ "module": "core/base-elements/open-close-base-element.js"
107182
106983
  }
107183
106984
  },
107184
106985
  {
107185
- "name": "name",
107186
- "description": "Name of the form element. Will be read from name attribute.",
106986
+ "name": "close",
107187
106987
  "type": {
107188
- "text": "string"
106988
+ "text": "Event"
107189
106989
  },
107190
- "fieldName": "name",
106990
+ "description": "Emits whenever the component is closed.",
107191
106991
  "inheritedFrom": {
107192
- "name": "SbbFormAssociatedMixin",
107193
- "module": "core/mixins/form-associated-mixin.js"
106992
+ "name": "SbbOpenCloseBaseElement",
106993
+ "module": "core/base-elements/open-close-base-element.js"
107194
106994
  }
107195
106995
  }
107196
106996
  ]
@@ -107199,33 +106999,37 @@
107199
106999
  "exports": [
107200
107000
  {
107201
107001
  "kind": "js",
107202
- "name": "SbbMenuButtonElement",
107002
+ "name": "SbbMenuElement",
107203
107003
  "declaration": {
107204
- "name": "SbbMenuButtonElement",
107205
- "module": "menu/menu-button/menu-button.component.js"
107004
+ "name": "SbbMenuElement",
107005
+ "module": "menu/menu/menu.component.js"
107206
107006
  }
107207
107007
  }
107208
107008
  ]
107209
107009
  },
107210
107010
  {
107211
107011
  "kind": "javascript-module",
107212
- "path": "menu/menu/menu.component.js",
107012
+ "path": "menu/menu-button/menu-button.component.js",
107213
107013
  "declarations": [
107214
107014
  {
107215
107015
  "kind": "class",
107216
- "description": "It displays a contextual menu with one or more action element.",
107217
- "name": "SbbMenuElement",
107016
+ "description": "It displays a button element that can be used in the `sbb-menu` component.",
107017
+ "name": "SbbMenuButtonElement",
107218
107018
  "cssProperties": [
107219
107019
  {
107220
- "description": "To specify a custom stack order, the `z-index` can be overridden by defining this CSS variable. The default `z-index` of the component is set to `var(--sbb-overlay-default-z-index)` with a value of `1000`.",
107221
- "name": "--sbb-menu-z-index",
107222
- "default": "var(--sbb-overlay-default-z-index)"
107020
+ "description": "Can be used to modify horizontal padding.",
107021
+ "name": "--sbb-menu-action-outer-horizontal-padding",
107022
+ "default": "var(--sbb-spacing-fixed-3x)"
107223
107023
  }
107224
107024
  ],
107225
107025
  "slots": [
107226
107026
  {
107227
- "description": "Use the unnamed slot to add `sbb-menu-button`/`sbb-menu-link` or other elements to the menu.",
107027
+ "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
107228
107028
  "name": ""
107029
+ },
107030
+ {
107031
+ "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
107032
+ "name": "icon"
107229
107033
  }
107230
107034
  ],
107231
107035
  "members": [
@@ -107242,237 +107046,483 @@
107242
107046
  "name": "SbbElement",
107243
107047
  "module": "core/base-elements/element.js"
107244
107048
  },
107245
- "default": "'sbb-menu'"
107049
+ "default": "'sbb-menu-button'"
107246
107050
  },
107247
107051
  {
107248
107052
  "kind": "field",
107249
107053
  "name": "role",
107250
107054
  "type": {
107251
- "text": "string"
107055
+ "text": "ElementInternals['role']"
107252
107056
  },
107253
107057
  "privacy": "public",
107254
107058
  "static": true,
107255
107059
  "readonly": true,
107256
- "default": "'menu'"
107060
+ "default": "'menuitem'",
107061
+ "inheritedFrom": {
107062
+ "name": "SbbButtonLikeBaseElement",
107063
+ "module": "core/base-elements/button-base-element.js"
107064
+ }
107257
107065
  },
107258
107066
  {
107259
107067
  "kind": "field",
107260
- "name": "trigger",
107068
+ "name": "disabledInteractive",
107261
107069
  "type": {
107262
- "text": "HTMLElement | null"
107070
+ "text": "boolean"
107263
107071
  },
107264
107072
  "privacy": "public",
107265
- "default": "null",
107266
- "description": "The element that will trigger the menu overlay.\n\nFor attribute usage, provide an id reference.",
107267
- "attribute": "trigger"
107073
+ "default": "false",
107074
+ "description": "Whether the button should be aria-disabled but stay interactive.",
107075
+ "attribute": "disabled-interactive",
107076
+ "reflects": true,
107077
+ "inheritedFrom": {
107078
+ "name": "SbbDisabledInteractiveMixin",
107079
+ "module": "core/mixins/disabled-mixin.js"
107080
+ }
107268
107081
  },
107269
107082
  {
107270
107083
  "kind": "field",
107271
- "name": "_menu",
107084
+ "name": "disabled",
107085
+ "privacy": "public",
107086
+ "description": "Whether the component is disabled.",
107087
+ "default": "false",
107272
107088
  "type": {
107273
- "text": "HTMLDivElement"
107089
+ "text": "boolean"
107274
107090
  },
107275
- "privacy": "private"
107091
+ "attribute": "disabled",
107092
+ "reflects": true,
107093
+ "inheritedFrom": {
107094
+ "name": "SbbDisabledMixin",
107095
+ "module": "core/mixins/disabled-mixin.js"
107096
+ }
107276
107097
  },
107277
107098
  {
107278
107099
  "kind": "field",
107279
- "name": "_triggerElement",
107100
+ "name": "#disabled",
107101
+ "privacy": "private",
107280
107102
  "type": {
107281
- "text": "HTMLElement | null"
107103
+ "text": "boolean"
107282
107104
  },
107283
- "privacy": "private",
107284
- "default": "null"
107105
+ "default": "false",
107106
+ "inheritedFrom": {
107107
+ "name": "SbbDisabledMixin",
107108
+ "module": "core/mixins/disabled-mixin.js"
107109
+ }
107110
+ },
107111
+ {
107112
+ "kind": "method",
107113
+ "name": "isDisabledExternally",
107114
+ "privacy": "protected",
107115
+ "return": {
107116
+ "type": {
107117
+ "text": "boolean"
107118
+ }
107119
+ },
107120
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
107121
+ "inheritedFrom": {
107122
+ "name": "SbbDisabledMixin",
107123
+ "module": "core/mixins/disabled-mixin.js"
107124
+ }
107285
107125
  },
107286
107126
  {
107287
107127
  "kind": "field",
107288
- "name": "_triggerAbortController",
107128
+ "name": "styles",
107289
107129
  "type": {
107290
- "text": "AbortController"
107130
+ "text": "CSSResultGroup"
107291
107131
  },
107292
- "privacy": "private"
107132
+ "privacy": "public",
107133
+ "static": true,
107134
+ "default": "[boxSizingStyles, unsafeCSS(style)]",
107135
+ "inheritedFrom": {
107136
+ "name": "SbbMenuActionCommonElementMixin",
107137
+ "module": "menu/common/menu-action-common.js"
107138
+ }
107139
+ },
107140
+ {
107141
+ "kind": "method",
107142
+ "name": "renderTemplate",
107143
+ "privacy": "protected",
107144
+ "return": {
107145
+ "type": {
107146
+ "text": "TemplateResult"
107147
+ }
107148
+ },
107149
+ "description": "Override this method to render the component template.",
107150
+ "inheritedFrom": {
107151
+ "name": "SbbActionBaseElement",
107152
+ "module": "core/base-elements/action-base-element.js"
107153
+ }
107293
107154
  },
107294
107155
  {
107295
107156
  "kind": "field",
107296
- "name": "_isPointerDownEventOnMenu",
107157
+ "name": "iconName",
107297
107158
  "type": {
107298
- "text": "boolean"
107159
+ "text": "string"
107160
+ },
107161
+ "privacy": "public",
107162
+ "default": "''",
107163
+ "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.",
107164
+ "attribute": "icon-name",
107165
+ "inheritedFrom": {
107166
+ "name": "SbbIconNameMixin",
107167
+ "module": "icon/icon-name-mixin.js"
107168
+ }
107169
+ },
107170
+ {
107171
+ "kind": "method",
107172
+ "name": "renderIconSlot",
107173
+ "privacy": "protected",
107174
+ "return": {
107175
+ "type": {
107176
+ "text": "TemplateResult"
107177
+ }
107178
+ },
107179
+ "parameters": [
107180
+ {
107181
+ "name": "classname",
107182
+ "optional": true,
107183
+ "type": {
107184
+ "text": "string"
107185
+ }
107186
+ }
107187
+ ],
107188
+ "inheritedFrom": {
107189
+ "name": "SbbIconNameMixin",
107190
+ "module": "icon/icon-name-mixin.js"
107191
+ }
107192
+ },
107193
+ {
107194
+ "kind": "method",
107195
+ "name": "renderIconName",
107196
+ "privacy": "protected",
107197
+ "return": {
107198
+ "type": {
107199
+ "text": "string"
107200
+ }
107299
107201
  },
107202
+ "inheritedFrom": {
107203
+ "name": "SbbIconNameMixin",
107204
+ "module": "icon/icon-name-mixin.js"
107205
+ }
107206
+ },
107207
+ {
107208
+ "kind": "method",
107209
+ "name": "_renderIconName",
107300
107210
  "privacy": "private",
107301
- "default": "false"
107211
+ "return": {
107212
+ "type": {
107213
+ "text": "string"
107214
+ }
107215
+ },
107216
+ "inheritedFrom": {
107217
+ "name": "SbbIconNameMixin",
107218
+ "module": "icon/icon-name-mixin.js"
107219
+ }
107302
107220
  },
107303
107221
  {
107304
107222
  "kind": "field",
107305
- "name": "_windowEventsController",
107223
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
107306
107224
  "type": {
107307
- "text": "AbortController"
107225
+ "text": "array"
107308
107226
  },
107309
- "privacy": "private"
107227
+ "privacy": "private",
107228
+ "readonly": true,
107229
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
107230
+ "inheritedFrom": {
107231
+ "name": "SbbButtonBaseElement",
107232
+ "module": "core/base-elements/button-base-element.js"
107233
+ }
107310
107234
  },
107311
107235
  {
107312
107236
  "kind": "field",
107313
- "name": "_escapableOverlayController",
107314
- "privacy": "private",
107315
- "default": "new SbbEscapableOverlayController(this)"
107237
+ "name": "value",
107238
+ "type": {
107239
+ "text": "string"
107240
+ },
107241
+ "privacy": "public",
107242
+ "inheritedFrom": {
107243
+ "name": "SbbButtonBaseElement",
107244
+ "module": "core/base-elements/button-base-element.js"
107245
+ },
107246
+ "default": "''",
107247
+ "description": "Value of the form element.",
107248
+ "attribute": "value"
107316
107249
  },
107317
107250
  {
107318
107251
  "kind": "field",
107319
- "name": "_focusTrapController",
107320
- "privacy": "private",
107321
- "default": "new SbbFocusTrapController(this)"
107252
+ "name": "type",
107253
+ "privacy": "public",
107254
+ "description": "The type attribute to use for the button.",
107255
+ "default": "'button'",
107256
+ "type": {
107257
+ "text": "SbbButtonType"
107258
+ },
107259
+ "attribute": "type",
107260
+ "inheritedFrom": {
107261
+ "name": "SbbButtonBaseElement",
107262
+ "module": "core/base-elements/button-base-element.js"
107263
+ }
107322
107264
  },
107323
107265
  {
107324
107266
  "kind": "field",
107325
- "name": "_scrollHandler",
107326
- "privacy": "private",
107327
- "default": "new SbbScrollHandler()"
107267
+ "name": "form",
107268
+ "type": {
107269
+ "text": "HTMLFormElement | null"
107270
+ },
107271
+ "privacy": "public",
107272
+ "description": "The `<form>` element to associate the button with.",
107273
+ "inheritedFrom": {
107274
+ "name": "SbbButtonBaseElement",
107275
+ "module": "core/base-elements/button-base-element.js"
107276
+ },
107277
+ "attribute": "form"
107328
107278
  },
107329
107279
  {
107330
107280
  "kind": "field",
107331
- "name": "_inertController",
107281
+ "name": "_formId",
107282
+ "type": {
107283
+ "text": "string"
107284
+ },
107332
107285
  "privacy": "private",
107333
- "default": "new SbbInertController(this)"
107286
+ "default": "''",
107287
+ "inheritedFrom": {
107288
+ "name": "SbbButtonBaseElement",
107289
+ "module": "core/base-elements/button-base-element.js"
107290
+ }
107334
107291
  },
107335
107292
  {
107336
107293
  "kind": "field",
107337
- "name": "_mobileBreakpoint",
107294
+ "name": "_handleButtonClick",
107338
107295
  "privacy": "private",
107339
- "default": "SbbMediaQueryBreakpointSmallAndBelow"
107296
+ "inheritedFrom": {
107297
+ "name": "SbbButtonBaseElement",
107298
+ "module": "core/base-elements/button-base-element.js"
107299
+ }
107340
107300
  },
107341
107301
  {
107342
- "kind": "field",
107343
- "name": "_mediaMatcher",
107302
+ "kind": "method",
107303
+ "name": "_requestSubmit",
107344
107304
  "privacy": "private",
107345
- "default": "new SbbMediaMatcherController(this, { [this._mobileBreakpoint]: (matches) => { if (matches && (this.state === 'opening' || this.state === 'opened')) { this._scrollHandler.disableScroll(); } else { this._scrollHandler.enableScroll(); } }, })"
107305
+ "return": {
107306
+ "type": {
107307
+ "text": "void"
107308
+ }
107309
+ },
107310
+ "parameters": [
107311
+ {
107312
+ "name": "form",
107313
+ "type": {
107314
+ "text": "HTMLFormElement"
107315
+ }
107316
+ }
107317
+ ],
107318
+ "inheritedFrom": {
107319
+ "name": "SbbButtonBaseElement",
107320
+ "module": "core/base-elements/button-base-element.js"
107321
+ }
107346
107322
  },
107347
107323
  {
107348
107324
  "kind": "field",
107349
- "name": "_darkModeController",
107325
+ "name": "_formKeyDown",
107350
107326
  "privacy": "private",
107351
- "default": "new SbbDarkModeController(this, () => this._syncNegative())"
107327
+ "inheritedFrom": {
107328
+ "name": "SbbButtonBaseElement",
107329
+ "module": "core/base-elements/button-base-element.js"
107330
+ }
107331
+ },
107332
+ {
107333
+ "kind": "field",
107334
+ "name": "formAssociated",
107335
+ "type": {
107336
+ "text": "boolean"
107337
+ },
107338
+ "privacy": "public",
107339
+ "static": true,
107340
+ "default": "true",
107341
+ "inheritedFrom": {
107342
+ "name": "SbbFormAssociatedMixin",
107343
+ "module": "core/mixins/form-associated-mixin.js"
107344
+ }
107345
+ },
107346
+ {
107347
+ "kind": "field",
107348
+ "name": "name",
107349
+ "privacy": "public",
107350
+ "description": "Name of the form element. Will be read from name attribute.",
107351
+ "type": {
107352
+ "text": "string"
107353
+ },
107354
+ "attribute": "name",
107355
+ "inheritedFrom": {
107356
+ "name": "SbbFormAssociatedMixin",
107357
+ "module": "core/mixins/form-associated-mixin.js"
107358
+ }
107359
+ },
107360
+ {
107361
+ "kind": "field",
107362
+ "name": "validity",
107363
+ "type": {
107364
+ "text": "ValidityState"
107365
+ },
107366
+ "privacy": "public",
107367
+ "description": "Returns the ValidityState object for this element.",
107368
+ "readonly": true,
107369
+ "inheritedFrom": {
107370
+ "name": "SbbFormAssociatedMixin",
107371
+ "module": "core/mixins/form-associated-mixin.js"
107372
+ }
107373
+ },
107374
+ {
107375
+ "kind": "field",
107376
+ "name": "validationMessage",
107377
+ "type": {
107378
+ "text": "string"
107379
+ },
107380
+ "privacy": "public",
107381
+ "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.",
107382
+ "readonly": true,
107383
+ "inheritedFrom": {
107384
+ "name": "SbbFormAssociatedMixin",
107385
+ "module": "core/mixins/form-associated-mixin.js"
107386
+ }
107387
+ },
107388
+ {
107389
+ "kind": "field",
107390
+ "name": "willValidate",
107391
+ "type": {
107392
+ "text": "boolean"
107393
+ },
107394
+ "privacy": "public",
107395
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
107396
+ "readonly": true,
107397
+ "inheritedFrom": {
107398
+ "name": "SbbFormAssociatedMixin",
107399
+ "module": "core/mixins/form-associated-mixin.js"
107400
+ }
107352
107401
  },
107353
107402
  {
107354
107403
  "kind": "field",
107355
- "name": "_language",
107404
+ "name": "_validityStates",
107356
107405
  "privacy": "private",
107357
- "default": "new SbbLanguageController(this)"
107406
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
107407
+ "inheritedFrom": {
107408
+ "name": "SbbFormAssociatedMixin",
107409
+ "module": "core/mixins/form-associated-mixin.js"
107410
+ }
107358
107411
  },
107359
107412
  {
107360
107413
  "kind": "field",
107361
- "name": "_nestedMenu",
107414
+ "name": "formDisabled",
107362
107415
  "type": {
107363
- "text": "SbbMenuElement | null"
107364
- },
107365
- "privacy": "private",
107366
- "default": "null"
107367
- },
107368
- {
107369
- "kind": "method",
107370
- "name": "escapeStrategy",
107371
- "privacy": "public",
107372
- "return": {
107373
- "type": {
107374
- "text": "void"
107375
- }
107416
+ "text": "boolean"
107376
107417
  },
107377
- "description": "The method which is called on escape key press. Defaults to calling close()",
107418
+ "privacy": "protected",
107419
+ "default": "false",
107420
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
107378
107421
  "inheritedFrom": {
107379
- "name": "SbbOpenCloseBaseElement",
107380
- "module": "core/base-elements/open-close-base-element.js"
107422
+ "name": "SbbFormAssociatedMixin",
107423
+ "module": "core/mixins/form-associated-mixin.js"
107381
107424
  }
107382
107425
  },
107383
107426
  {
107384
107427
  "kind": "method",
107385
- "name": "open",
107428
+ "name": "checkValidity",
107386
107429
  "privacy": "public",
107387
107430
  "return": {
107388
107431
  "type": {
107389
- "text": "void"
107432
+ "text": "boolean"
107390
107433
  }
107391
107434
  },
107392
- "description": "Opens the menu on trigger click.",
107435
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
107393
107436
  "inheritedFrom": {
107394
- "name": "SbbOpenCloseBaseElement",
107395
- "module": "core/base-elements/open-close-base-element.js"
107437
+ "name": "SbbFormAssociatedMixin",
107438
+ "module": "core/mixins/form-associated-mixin.js"
107396
107439
  }
107397
107440
  },
107398
107441
  {
107399
107442
  "kind": "method",
107400
- "name": "close",
107443
+ "name": "reportValidity",
107401
107444
  "privacy": "public",
107402
107445
  "return": {
107403
107446
  "type": {
107404
- "text": "void"
107447
+ "text": "boolean"
107405
107448
  }
107406
107449
  },
107407
- "description": "Closes the menu and all its nested menus.",
107450
+ "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.",
107408
107451
  "inheritedFrom": {
107409
- "name": "SbbOpenCloseBaseElement",
107410
- "module": "core/base-elements/open-close-base-element.js"
107452
+ "name": "SbbFormAssociatedMixin",
107453
+ "module": "core/mixins/form-associated-mixin.js"
107411
107454
  }
107412
107455
  },
107413
107456
  {
107414
107457
  "kind": "method",
107415
- "name": "closeAll",
107458
+ "name": "setCustomValidity",
107416
107459
  "privacy": "public",
107417
107460
  "return": {
107418
107461
  "type": {
107419
107462
  "text": "void"
107420
107463
  }
107421
107464
  },
107422
- "description": "Closes the menu and all related menus (nested and parent menus)."
107423
- },
107424
- {
107425
- "kind": "method",
107426
- "name": "_close",
107427
- "privacy": "private",
107428
- "return": {
107429
- "type": {
107430
- "text": "void"
107431
- }
107432
- },
107433
107465
  "parameters": [
107434
107466
  {
107435
- "name": "closeAll",
107436
- "default": "false",
107437
- "description": "If true, it ensures animations are correct by toggling some states when closing all related menus at once.",
107438
- "optional": true
107467
+ "name": "message",
107468
+ "type": {
107469
+ "text": "string"
107470
+ }
107439
107471
  }
107440
- ]
107472
+ ],
107473
+ "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.",
107474
+ "inheritedFrom": {
107475
+ "name": "SbbFormAssociatedMixin",
107476
+ "module": "core/mixins/form-associated-mixin.js"
107477
+ }
107441
107478
  },
107442
107479
  {
107443
107480
  "kind": "method",
107444
- "name": "_isZeroAnimationDuration",
107481
+ "name": "_hasDisabledAncestor",
107445
107482
  "privacy": "private",
107446
107483
  "return": {
107447
107484
  "type": {
107448
107485
  "text": "boolean"
107449
107486
  }
107487
+ },
107488
+ "inheritedFrom": {
107489
+ "name": "SbbFormAssociatedMixin",
107490
+ "module": "core/mixins/form-associated-mixin.js"
107450
107491
  }
107451
107492
  },
107452
107493
  {
107453
107494
  "kind": "method",
107454
- "name": "_handleOpening",
107455
- "privacy": "private",
107495
+ "name": "updateFormValue",
107496
+ "privacy": "protected",
107456
107497
  "return": {
107457
107498
  "type": {
107458
107499
  "text": "void"
107459
107500
  }
107501
+ },
107502
+ "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",
107503
+ "inheritedFrom": {
107504
+ "name": "SbbFormAssociatedMixin",
107505
+ "module": "core/mixins/form-associated-mixin.js"
107460
107506
  }
107461
107507
  },
107462
107508
  {
107463
107509
  "kind": "method",
107464
- "name": "_handleClosing",
107465
- "privacy": "private",
107510
+ "name": "formState",
107511
+ "privacy": "protected",
107466
107512
  "return": {
107467
107513
  "type": {
107468
- "text": "void"
107514
+ "text": "FormRestoreState"
107469
107515
  }
107516
+ },
107517
+ "inheritedFrom": {
107518
+ "name": "SbbFormAssociatedMixin",
107519
+ "module": "core/mixins/form-associated-mixin.js"
107470
107520
  }
107471
107521
  },
107472
107522
  {
107473
107523
  "kind": "method",
107474
- "name": "_handleKeyDown",
107475
- "privacy": "private",
107524
+ "name": "setValidityFlag",
107525
+ "privacy": "protected",
107476
107526
  "return": {
107477
107527
  "type": {
107478
107528
  "text": "void"
@@ -107480,37 +107530,35 @@
107480
107530
  },
107481
107531
  "parameters": [
107482
107532
  {
107483
- "name": "evt",
107533
+ "name": "flag",
107484
107534
  "type": {
107485
- "text": "KeyboardEvent"
107535
+ "text": "T"
107536
+ }
107537
+ },
107538
+ {
107539
+ "name": "message",
107540
+ "type": {
107541
+ "text": "string"
107542
+ }
107543
+ },
107544
+ {
107545
+ "name": "flagValue",
107546
+ "optional": true,
107547
+ "type": {
107548
+ "text": "ValidityStateFlags[T]"
107486
107549
  }
107487
107550
  }
107488
- ]
107489
- },
107490
- {
107491
- "kind": "method",
107492
- "name": "_configureTrigger",
107493
- "privacy": "private",
107494
- "return": {
107495
- "type": {
107496
- "text": "void"
107497
- }
107498
- }
107499
- },
107500
- {
107501
- "kind": "method",
107502
- "name": "_attachWindowEvents",
107503
- "privacy": "private",
107504
- "return": {
107505
- "type": {
107506
- "text": "void"
107507
- }
107551
+ ],
107552
+ "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).",
107553
+ "inheritedFrom": {
107554
+ "name": "SbbFormAssociatedMixin",
107555
+ "module": "core/mixins/form-associated-mixin.js"
107508
107556
  }
107509
107557
  },
107510
107558
  {
107511
107559
  "kind": "method",
107512
- "name": "_interactiveElementClick",
107513
- "privacy": "private",
107560
+ "name": "removeValidityFlag",
107561
+ "privacy": "protected",
107514
107562
  "return": {
107515
107563
  "type": {
107516
107564
  "text": "void"
@@ -107518,250 +107566,158 @@
107518
107566
  },
107519
107567
  "parameters": [
107520
107568
  {
107521
- "name": "event",
107569
+ "name": "flag",
107522
107570
  "type": {
107523
- "text": "Event"
107571
+ "text": "T"
107524
107572
  }
107525
107573
  }
107526
- ]
107527
- },
107528
- {
107529
- "kind": "field",
107530
- "name": "_pointerDownListener",
107531
- "privacy": "private"
107532
- },
107533
- {
107534
- "kind": "field",
107535
- "name": "_closeOnBackdropClick",
107536
- "privacy": "private"
107537
- },
107538
- {
107539
- "kind": "method",
107540
- "name": "_nestedMenus",
107541
- "privacy": "private",
107542
- "return": {
107543
- "type": {
107544
- "text": "SbbMenuElement[]"
107545
- }
107546
- },
107547
- "description": "Converts the linked list into an array of SbbMenuElement."
107548
- },
107549
- {
107550
- "kind": "method",
107551
- "name": "_parentMenu",
107552
- "privacy": "private",
107553
- "return": {
107554
- "type": {
107555
- "text": "SbbMenuElement | null"
107556
- }
107557
- }
107558
- },
107559
- {
107560
- "kind": "method",
107561
- "name": "_mainMenu",
107562
- "privacy": "private",
107563
- "return": {
107564
- "type": {
107565
- "text": "SbbMenuElement"
107566
- }
107567
- },
107568
- "description": "The outermost menu."
107569
- },
107570
- {
107571
- "kind": "method",
107572
- "name": "_isNested",
107573
- "privacy": "private",
107574
- "return": {
107575
- "type": {
107576
- "text": "boolean"
107577
- }
107578
- }
107579
- },
107580
- {
107581
- "kind": "method",
107582
- "name": "_updateNestedInert",
107583
- "privacy": "private",
107584
- "return": {
107585
- "type": {
107586
- "text": "void"
107587
- }
107574
+ ],
107575
+ "description": "Removes the validity state flag entry and updates validity state.",
107576
+ "inheritedFrom": {
107577
+ "name": "SbbFormAssociatedMixin",
107578
+ "module": "core/mixins/form-associated-mixin.js"
107588
107579
  }
107589
107580
  },
107590
107581
  {
107591
107582
  "kind": "method",
107592
- "name": "_handleMouseOver",
107593
- "privacy": "private",
107583
+ "name": "validate",
107584
+ "privacy": "protected",
107594
107585
  "return": {
107595
107586
  "type": {
107596
107587
  "text": "void"
107597
107588
  }
107598
107589
  },
107599
- "parameters": [
107600
- {
107601
- "name": "event",
107602
- "type": {
107603
- "text": "MouseEvent"
107604
- }
107605
- }
107606
- ]
107590
+ "description": "To be called whenever the current element needs to be validated.",
107591
+ "inheritedFrom": {
107592
+ "name": "SbbFormAssociatedMixin",
107593
+ "module": "core/mixins/form-associated-mixin.js"
107594
+ }
107607
107595
  },
107608
107596
  {
107609
107597
  "kind": "method",
107610
- "name": "_onMenuAnimationEnd",
107611
- "privacy": "private",
107598
+ "name": "shouldValidate",
107599
+ "privacy": "protected",
107612
107600
  "return": {
107613
107601
  "type": {
107614
- "text": "void"
107602
+ "text": "boolean"
107615
107603
  }
107616
107604
  },
107617
107605
  "parameters": [
107618
107606
  {
107619
- "name": "event",
107607
+ "name": "name",
107620
107608
  "type": {
107621
- "text": "AnimationEvent"
107609
+ "text": "PropertyKey | undefined"
107622
107610
  }
107623
107611
  }
107624
- ]
107625
- },
107626
- {
107627
- "kind": "method",
107628
- "name": "_setMenuPosition",
107629
- "privacy": "private",
107630
- "return": {
107631
- "type": {
107632
- "text": "void"
107633
- }
107612
+ ],
107613
+ "description": "Whether validation should be run on a property change with the given name.",
107614
+ "inheritedFrom": {
107615
+ "name": "SbbFormAssociatedMixin",
107616
+ "module": "core/mixins/form-associated-mixin.js"
107634
107617
  }
107635
107618
  },
107636
107619
  {
107637
107620
  "kind": "method",
107638
- "name": "_syncNegative",
107621
+ "name": "_setInternalValidity",
107639
107622
  "privacy": "private",
107640
107623
  "return": {
107641
107624
  "type": {
107642
107625
  "text": "void"
107643
107626
  }
107627
+ },
107628
+ "inheritedFrom": {
107629
+ "name": "SbbFormAssociatedMixin",
107630
+ "module": "core/mixins/form-associated-mixin.js"
107644
107631
  }
107645
107632
  },
107646
107633
  {
107647
- "kind": "method",
107648
- "name": "_isMobile",
107634
+ "kind": "field",
107635
+ "name": "_preventScrollOnSpaceKeydown",
107649
107636
  "privacy": "private",
107650
- "return": {
107651
- "type": {
107652
- "text": "boolean"
107637
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
107638
+ "parameters": [
107639
+ {
107640
+ "description": "The origin event.",
107641
+ "name": "event"
107653
107642
  }
107643
+ ],
107644
+ "inheritedFrom": {
107645
+ "name": "SbbButtonLikeBaseElement",
107646
+ "module": "core/base-elements/button-base-element.js"
107654
107647
  }
107655
107648
  },
107656
107649
  {
107657
107650
  "kind": "field",
107658
- "name": "events",
107659
- "privacy": "public",
107660
- "static": true,
107661
- "readonly": true,
107662
- "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
107663
- "type": {
107664
- "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
107665
- },
107651
+ "name": "_removeActiveMarker",
107652
+ "privacy": "private",
107666
107653
  "inheritedFrom": {
107667
- "name": "SbbOpenCloseBaseElement",
107668
- "module": "core/base-elements/open-close-base-element.js"
107654
+ "name": "SbbButtonLikeBaseElement",
107655
+ "module": "core/base-elements/button-base-element.js"
107669
107656
  }
107670
107657
  },
107671
107658
  {
107672
107659
  "kind": "field",
107673
- "name": "state",
107674
- "privacy": "protected",
107675
- "description": "The state of the component.",
107676
- "type": {
107677
- "text": "SbbOpenedClosedState"
107678
- },
107679
- "default": "'closed'",
107660
+ "name": "_dispatchClickEventOnSpaceKeyup",
107661
+ "privacy": "private",
107662
+ "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.",
107663
+ "parameters": [
107664
+ {
107665
+ "description": "The origin event.",
107666
+ "name": "event"
107667
+ }
107668
+ ],
107680
107669
  "inheritedFrom": {
107681
- "name": "SbbOpenCloseBaseElement",
107682
- "module": "core/base-elements/open-close-base-element.js"
107670
+ "name": "SbbButtonLikeBaseElement",
107671
+ "module": "core/base-elements/button-base-element.js"
107683
107672
  }
107684
107673
  },
107685
107674
  {
107686
107675
  "kind": "field",
107687
- "name": "_state",
107688
- "type": {
107689
- "text": "SbbOpenedClosedState"
107690
- },
107676
+ "name": "_dispatchClickEvent",
107691
107677
  "privacy": "private",
107692
107678
  "inheritedFrom": {
107693
- "name": "SbbOpenCloseBaseElement",
107694
- "module": "core/base-elements/open-close-base-element.js"
107679
+ "name": "SbbButtonLikeBaseElement",
107680
+ "module": "core/base-elements/button-base-element.js"
107695
107681
  }
107696
107682
  },
107697
107683
  {
107698
107684
  "kind": "field",
107699
- "name": "isOpen",
107685
+ "name": "maybeDisabled",
107700
107686
  "type": {
107701
- "text": "boolean"
107687
+ "text": "boolean | undefined"
107702
107688
  },
107703
- "privacy": "public",
107704
- "description": "Whether the element is open.",
107705
- "readonly": true,
107706
- "inheritedFrom": {
107707
- "name": "SbbOpenCloseBaseElement",
107708
- "module": "core/base-elements/open-close-base-element.js"
107709
- }
107710
- },
107711
- {
107712
- "kind": "method",
107713
- "name": "dispatchBeforeOpenEvent",
107714
107689
  "privacy": "protected",
107715
- "return": {
107716
- "type": {
107717
- "text": "boolean"
107718
- }
107719
- },
107690
+ "readonly": true,
107720
107691
  "inheritedFrom": {
107721
- "name": "SbbOpenCloseBaseElement",
107722
- "module": "core/base-elements/open-close-base-element.js"
107692
+ "name": "SbbActionBaseElement",
107693
+ "module": "core/base-elements/action-base-element.js"
107723
107694
  }
107724
107695
  },
107725
107696
  {
107726
- "kind": "method",
107727
- "name": "dispatchOpenEvent",
107728
- "privacy": "protected",
107729
- "return": {
107730
- "type": {
107731
- "text": "boolean"
107732
- }
107697
+ "kind": "field",
107698
+ "name": "maybeDisabledInteractive",
107699
+ "type": {
107700
+ "text": "boolean | undefined"
107733
107701
  },
107734
- "inheritedFrom": {
107735
- "name": "SbbOpenCloseBaseElement",
107736
- "module": "core/base-elements/open-close-base-element.js"
107737
- }
107738
- },
107739
- {
107740
- "kind": "method",
107741
- "name": "dispatchBeforeCloseEvent",
107742
107702
  "privacy": "protected",
107743
- "return": {
107744
- "type": {
107745
- "text": "boolean"
107746
- }
107747
- },
107703
+ "readonly": true,
107748
107704
  "inheritedFrom": {
107749
- "name": "SbbOpenCloseBaseElement",
107750
- "module": "core/base-elements/open-close-base-element.js"
107705
+ "name": "SbbActionBaseElement",
107706
+ "module": "core/base-elements/action-base-element.js"
107751
107707
  }
107752
107708
  },
107753
107709
  {
107754
107710
  "kind": "method",
107755
- "name": "dispatchCloseEvent",
107711
+ "name": "setupBaseEventHandlers",
107756
107712
  "privacy": "protected",
107757
107713
  "return": {
107758
107714
  "type": {
107759
- "text": "boolean"
107715
+ "text": "void"
107760
107716
  }
107761
107717
  },
107762
107718
  "inheritedFrom": {
107763
- "name": "SbbOpenCloseBaseElement",
107764
- "module": "core/base-elements/open-close-base-element.js"
107719
+ "name": "SbbActionBaseElement",
107720
+ "module": "core/base-elements/action-base-element.js"
107765
107721
  }
107766
107722
  },
107767
107723
  {
@@ -107870,66 +107826,110 @@
107870
107826
  }
107871
107827
  }
107872
107828
  ],
107873
- "attributes": [
107829
+ "mixins": [
107874
107830
  {
107875
- "name": "trigger",
107876
- "type": {
107877
- "text": "HTMLElement | null"
107878
- },
107879
- "default": "null",
107880
- "description": "The element that will trigger the menu overlay.\n\nFor attribute usage, provide an id reference.",
107881
- "fieldName": "trigger"
107831
+ "name": "SbbDisabledTabIndexActionMixin",
107832
+ "module": "core/mixins.js"
107833
+ },
107834
+ {
107835
+ "name": "SbbMenuActionCommonElementMixin",
107836
+ "module": "menu/common/menu-action-common.js"
107882
107837
  }
107883
107838
  ],
107884
107839
  "superclass": {
107885
- "name": "SbbOpenCloseBaseElement",
107840
+ "name": "SbbButtonBaseElement",
107886
107841
  "module": "core/base-elements.js"
107887
107842
  },
107888
- "tagName": "sbb-menu",
107843
+ "tagName": "sbb-menu-button",
107889
107844
  "customElement": true,
107890
- "events": [
107845
+ "attributes": [
107891
107846
  {
107892
- "name": "beforeopen",
107847
+ "name": "disabled-interactive",
107893
107848
  "type": {
107894
- "text": "Event"
107849
+ "text": "boolean"
107895
107850
  },
107896
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
107851
+ "default": "false",
107852
+ "description": "Whether the button should be aria-disabled but stay interactive.",
107853
+ "fieldName": "disabledInteractive",
107897
107854
  "inheritedFrom": {
107898
- "name": "SbbOpenCloseBaseElement",
107899
- "module": "core/base-elements/open-close-base-element.js"
107855
+ "name": "SbbDisabledInteractiveMixin",
107856
+ "module": "core/mixins/disabled-mixin.js"
107900
107857
  }
107901
107858
  },
107902
107859
  {
107903
- "name": "open",
107860
+ "name": "disabled",
107861
+ "description": "Whether the component is disabled.",
107862
+ "default": "false",
107904
107863
  "type": {
107905
- "text": "Event"
107864
+ "text": "boolean"
107906
107865
  },
107907
- "description": "Emits whenever the component is opened.",
107866
+ "fieldName": "disabled",
107908
107867
  "inheritedFrom": {
107909
- "name": "SbbOpenCloseBaseElement",
107910
- "module": "core/base-elements/open-close-base-element.js"
107868
+ "name": "SbbDisabledMixin",
107869
+ "module": "core/mixins/disabled-mixin.js"
107911
107870
  }
107912
107871
  },
107913
107872
  {
107914
- "name": "beforeclose",
107873
+ "name": "icon-name",
107915
107874
  "type": {
107916
- "text": "Event"
107875
+ "text": "string"
107917
107876
  },
107918
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
107877
+ "default": "''",
107878
+ "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.",
107879
+ "fieldName": "iconName",
107919
107880
  "inheritedFrom": {
107920
- "name": "SbbOpenCloseBaseElement",
107921
- "module": "core/base-elements/open-close-base-element.js"
107881
+ "name": "SbbIconNameMixin",
107882
+ "module": "icon/icon-name-mixin.js"
107922
107883
  }
107923
107884
  },
107924
107885
  {
107925
- "name": "close",
107886
+ "name": "value",
107926
107887
  "type": {
107927
- "text": "Event"
107888
+ "text": "string"
107928
107889
  },
107929
- "description": "Emits whenever the component is closed.",
107890
+ "default": "''",
107891
+ "description": "Value of the form element.",
107892
+ "fieldName": "value",
107930
107893
  "inheritedFrom": {
107931
- "name": "SbbOpenCloseBaseElement",
107932
- "module": "core/base-elements/open-close-base-element.js"
107894
+ "name": "SbbButtonBaseElement",
107895
+ "module": "core/base-elements/button-base-element.js"
107896
+ }
107897
+ },
107898
+ {
107899
+ "name": "type",
107900
+ "description": "The type attribute to use for the button.",
107901
+ "default": "'button'",
107902
+ "type": {
107903
+ "text": "SbbButtonType"
107904
+ },
107905
+ "fieldName": "type",
107906
+ "inheritedFrom": {
107907
+ "name": "SbbButtonBaseElement",
107908
+ "module": "core/base-elements/button-base-element.js"
107909
+ }
107910
+ },
107911
+ {
107912
+ "name": "form",
107913
+ "description": "The `<form>` element to associate the button with.",
107914
+ "type": {
107915
+ "text": "HTMLFormElement | null"
107916
+ },
107917
+ "fieldName": "form",
107918
+ "inheritedFrom": {
107919
+ "name": "SbbButtonBaseElement",
107920
+ "module": "core/base-elements/button-base-element.js"
107921
+ }
107922
+ },
107923
+ {
107924
+ "name": "name",
107925
+ "description": "Name of the form element. Will be read from name attribute.",
107926
+ "type": {
107927
+ "text": "string"
107928
+ },
107929
+ "fieldName": "name",
107930
+ "inheritedFrom": {
107931
+ "name": "SbbFormAssociatedMixin",
107932
+ "module": "core/mixins/form-associated-mixin.js"
107933
107933
  }
107934
107934
  }
107935
107935
  ]
@@ -107938,10 +107938,10 @@
107938
107938
  "exports": [
107939
107939
  {
107940
107940
  "kind": "js",
107941
- "name": "SbbMenuElement",
107941
+ "name": "SbbMenuButtonElement",
107942
107942
  "declaration": {
107943
- "name": "SbbMenuElement",
107944
- "module": "menu/menu/menu.component.js"
107943
+ "name": "SbbMenuButtonElement",
107944
+ "module": "menu/menu-button/menu-button.component.js"
107945
107945
  }
107946
107946
  }
107947
107947
  ]
@@ -122574,6 +122574,310 @@
122574
122574
  }
122575
122575
  ]
122576
122576
  },
122577
+ {
122578
+ "kind": "javascript-module",
122579
+ "path": "stepper/step/step.component.js",
122580
+ "declarations": [
122581
+ {
122582
+ "kind": "class",
122583
+ "description": "Combined with a `sbb-stepper`, it displays a step's content.",
122584
+ "name": "SbbStepElement",
122585
+ "slots": [
122586
+ {
122587
+ "description": "Use the unnamed slot to provide content.",
122588
+ "name": ""
122589
+ }
122590
+ ],
122591
+ "members": [
122592
+ {
122593
+ "kind": "field",
122594
+ "name": "elementName",
122595
+ "type": {
122596
+ "text": "string"
122597
+ },
122598
+ "privacy": "public",
122599
+ "static": true,
122600
+ "readonly": true,
122601
+ "default": "'sbb-step'",
122602
+ "inheritedFrom": {
122603
+ "name": "SbbElement",
122604
+ "module": "core/base-elements/element.js"
122605
+ }
122606
+ },
122607
+ {
122608
+ "kind": "field",
122609
+ "name": "role",
122610
+ "type": {
122611
+ "text": "string"
122612
+ },
122613
+ "privacy": "public",
122614
+ "static": true,
122615
+ "readonly": true,
122616
+ "default": "'tabpanel'"
122617
+ },
122618
+ {
122619
+ "kind": "field",
122620
+ "name": "events",
122621
+ "privacy": "public",
122622
+ "static": true,
122623
+ "readonly": true,
122624
+ "default": "{ validate: 'validate', resizechange: 'resizechange', }",
122625
+ "type": {
122626
+ "text": "{\n validate: 'validate',\n resizechange: 'resizechange',\n }"
122627
+ }
122628
+ },
122629
+ {
122630
+ "kind": "field",
122631
+ "name": "_stepResizeObserver",
122632
+ "privacy": "private",
122633
+ "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => setTimeout(() => this._onStepElementResize()), })"
122634
+ },
122635
+ {
122636
+ "kind": "field",
122637
+ "name": "label",
122638
+ "type": {
122639
+ "text": "SbbStepLabelElement | null"
122640
+ },
122641
+ "privacy": "public",
122642
+ "description": "The label of the step.",
122643
+ "readonly": true,
122644
+ "default": "null"
122645
+ },
122646
+ {
122647
+ "kind": "field",
122648
+ "name": "_label",
122649
+ "type": {
122650
+ "text": "SbbStepLabelElement | null"
122651
+ },
122652
+ "privacy": "private",
122653
+ "default": "null"
122654
+ },
122655
+ {
122656
+ "kind": "field",
122657
+ "name": "stepper",
122658
+ "type": {
122659
+ "text": "SbbStepperElement | null"
122660
+ },
122661
+ "privacy": "public",
122662
+ "readonly": true
122663
+ },
122664
+ {
122665
+ "kind": "field",
122666
+ "name": "_previousOrientation",
122667
+ "type": {
122668
+ "text": "string | undefined"
122669
+ },
122670
+ "privacy": "private"
122671
+ },
122672
+ {
122673
+ "kind": "method",
122674
+ "name": "_handleClick",
122675
+ "privacy": "private",
122676
+ "return": {
122677
+ "type": {
122678
+ "text": "void"
122679
+ }
122680
+ },
122681
+ "parameters": [
122682
+ {
122683
+ "name": "event",
122684
+ "type": {
122685
+ "text": "Event"
122686
+ }
122687
+ }
122688
+ ],
122689
+ "description": "Watches for clicked elements with `sbb-stepper-next` or `sbb-stepper-previous` attributes."
122690
+ },
122691
+ {
122692
+ "kind": "method",
122693
+ "name": "_isGoNextElement",
122694
+ "privacy": "private",
122695
+ "return": {
122696
+ "type": {
122697
+ "text": "boolean"
122698
+ }
122699
+ },
122700
+ "parameters": [
122701
+ {
122702
+ "name": "element",
122703
+ "type": {
122704
+ "text": "HTMLElement"
122705
+ }
122706
+ }
122707
+ ]
122708
+ },
122709
+ {
122710
+ "kind": "method",
122711
+ "name": "_isGoPreviousElement",
122712
+ "privacy": "private",
122713
+ "return": {
122714
+ "type": {
122715
+ "text": "boolean"
122716
+ }
122717
+ },
122718
+ "parameters": [
122719
+ {
122720
+ "name": "element",
122721
+ "type": {
122722
+ "text": "HTMLElement"
122723
+ }
122724
+ }
122725
+ ]
122726
+ },
122727
+ {
122728
+ "kind": "method",
122729
+ "name": "_onStepElementResize",
122730
+ "privacy": "private",
122731
+ "return": {
122732
+ "type": {
122733
+ "text": "void"
122734
+ }
122735
+ }
122736
+ },
122737
+ {
122738
+ "kind": "method",
122739
+ "name": "_assignLabel",
122740
+ "privacy": "private",
122741
+ "return": {
122742
+ "type": {
122743
+ "text": "void"
122744
+ }
122745
+ }
122746
+ },
122747
+ {
122748
+ "kind": "field",
122749
+ "name": "_hydrationRequired",
122750
+ "type": {
122751
+ "text": "boolean"
122752
+ },
122753
+ "privacy": "private",
122754
+ "default": "!!this.shadowRoot",
122755
+ "inheritedFrom": {
122756
+ "name": "SbbElement",
122757
+ "module": "core/base-elements/element.js"
122758
+ }
122759
+ },
122760
+ {
122761
+ "kind": "field",
122762
+ "name": "_hydrationComplete",
122763
+ "privacy": "private",
122764
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
122765
+ "inheritedFrom": {
122766
+ "name": "SbbElement",
122767
+ "module": "core/base-elements/element.js"
122768
+ }
122769
+ },
122770
+ {
122771
+ "kind": "field",
122772
+ "name": "_resolveHydration",
122773
+ "type": {
122774
+ "text": "(hydrationRequired: boolean) => void"
122775
+ },
122776
+ "privacy": "private",
122777
+ "inheritedFrom": {
122778
+ "name": "SbbElement",
122779
+ "module": "core/base-elements/element.js"
122780
+ }
122781
+ },
122782
+ {
122783
+ "kind": "field",
122784
+ "name": "hydrationRequired",
122785
+ "type": {
122786
+ "text": "boolean"
122787
+ },
122788
+ "privacy": "protected",
122789
+ "description": "Returns whether hydration is required and not completed.",
122790
+ "readonly": true,
122791
+ "inheritedFrom": {
122792
+ "name": "SbbElement",
122793
+ "module": "core/base-elements/element.js"
122794
+ },
122795
+ "default": "!!this.shadowRoot"
122796
+ },
122797
+ {
122798
+ "kind": "method",
122799
+ "name": "toggleState",
122800
+ "privacy": "protected",
122801
+ "return": {
122802
+ "type": {
122803
+ "text": "void"
122804
+ }
122805
+ },
122806
+ "parameters": [
122807
+ {
122808
+ "name": "value",
122809
+ "type": {
122810
+ "text": "string"
122811
+ }
122812
+ },
122813
+ {
122814
+ "name": "force",
122815
+ "optional": true,
122816
+ "type": {
122817
+ "text": "boolean"
122818
+ }
122819
+ }
122820
+ ],
122821
+ "inheritedFrom": {
122822
+ "name": "SbbElement",
122823
+ "module": "core/base-elements/element.js"
122824
+ }
122825
+ },
122826
+ {
122827
+ "kind": "field",
122828
+ "name": "['_$sbbElement$']",
122829
+ "type": {
122830
+ "text": "boolean"
122831
+ },
122832
+ "privacy": "public",
122833
+ "static": true,
122834
+ "default": "true",
122835
+ "inheritedFrom": {
122836
+ "name": "SbbElement",
122837
+ "module": "core/base-elements/element.js"
122838
+ }
122839
+ },
122840
+ {
122841
+ "kind": "field",
122842
+ "name": "_controllers",
122843
+ "type": {
122844
+ "text": "Set<SbbReactiveController> | undefined"
122845
+ },
122846
+ "privacy": "private",
122847
+ "inheritedFrom": {
122848
+ "name": "SbbElement",
122849
+ "module": "core/base-elements/element.js"
122850
+ }
122851
+ }
122852
+ ],
122853
+ "events": [
122854
+ {
122855
+ "name": "validate",
122856
+ "type": {
122857
+ "text": "CustomEvent<SbbStepValidateEventDetails>"
122858
+ },
122859
+ "description": "The validate event is dispatched when a step change is triggered. Can be canceled to abort the step change."
122860
+ }
122861
+ ],
122862
+ "superclass": {
122863
+ "name": "SbbElement",
122864
+ "module": "core/base-elements.js"
122865
+ },
122866
+ "tagName": "sbb-step",
122867
+ "customElement": true
122868
+ }
122869
+ ],
122870
+ "exports": [
122871
+ {
122872
+ "kind": "js",
122873
+ "name": "SbbStepElement",
122874
+ "declaration": {
122875
+ "name": "SbbStepElement",
122876
+ "module": "stepper/step/step.component.js"
122877
+ }
122878
+ }
122879
+ ]
122880
+ },
122577
122881
  {
122578
122882
  "kind": "javascript-module",
122579
122883
  "path": "stepper/step-label/step-label.component.js",
@@ -123536,310 +123840,6 @@
123536
123840
  }
123537
123841
  ]
123538
123842
  },
123539
- {
123540
- "kind": "javascript-module",
123541
- "path": "stepper/step/step.component.js",
123542
- "declarations": [
123543
- {
123544
- "kind": "class",
123545
- "description": "Combined with a `sbb-stepper`, it displays a step's content.",
123546
- "name": "SbbStepElement",
123547
- "slots": [
123548
- {
123549
- "description": "Use the unnamed slot to provide content.",
123550
- "name": ""
123551
- }
123552
- ],
123553
- "members": [
123554
- {
123555
- "kind": "field",
123556
- "name": "elementName",
123557
- "type": {
123558
- "text": "string"
123559
- },
123560
- "privacy": "public",
123561
- "static": true,
123562
- "readonly": true,
123563
- "default": "'sbb-step'",
123564
- "inheritedFrom": {
123565
- "name": "SbbElement",
123566
- "module": "core/base-elements/element.js"
123567
- }
123568
- },
123569
- {
123570
- "kind": "field",
123571
- "name": "role",
123572
- "type": {
123573
- "text": "string"
123574
- },
123575
- "privacy": "public",
123576
- "static": true,
123577
- "readonly": true,
123578
- "default": "'tabpanel'"
123579
- },
123580
- {
123581
- "kind": "field",
123582
- "name": "events",
123583
- "privacy": "public",
123584
- "static": true,
123585
- "readonly": true,
123586
- "default": "{ validate: 'validate', resizechange: 'resizechange', }",
123587
- "type": {
123588
- "text": "{\n validate: 'validate',\n resizechange: 'resizechange',\n }"
123589
- }
123590
- },
123591
- {
123592
- "kind": "field",
123593
- "name": "_stepResizeObserver",
123594
- "privacy": "private",
123595
- "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => setTimeout(() => this._onStepElementResize()), })"
123596
- },
123597
- {
123598
- "kind": "field",
123599
- "name": "label",
123600
- "type": {
123601
- "text": "SbbStepLabelElement | null"
123602
- },
123603
- "privacy": "public",
123604
- "description": "The label of the step.",
123605
- "readonly": true,
123606
- "default": "null"
123607
- },
123608
- {
123609
- "kind": "field",
123610
- "name": "_label",
123611
- "type": {
123612
- "text": "SbbStepLabelElement | null"
123613
- },
123614
- "privacy": "private",
123615
- "default": "null"
123616
- },
123617
- {
123618
- "kind": "field",
123619
- "name": "stepper",
123620
- "type": {
123621
- "text": "SbbStepperElement | null"
123622
- },
123623
- "privacy": "public",
123624
- "readonly": true
123625
- },
123626
- {
123627
- "kind": "field",
123628
- "name": "_previousOrientation",
123629
- "type": {
123630
- "text": "string | undefined"
123631
- },
123632
- "privacy": "private"
123633
- },
123634
- {
123635
- "kind": "method",
123636
- "name": "_handleClick",
123637
- "privacy": "private",
123638
- "return": {
123639
- "type": {
123640
- "text": "void"
123641
- }
123642
- },
123643
- "parameters": [
123644
- {
123645
- "name": "event",
123646
- "type": {
123647
- "text": "Event"
123648
- }
123649
- }
123650
- ],
123651
- "description": "Watches for clicked elements with `sbb-stepper-next` or `sbb-stepper-previous` attributes."
123652
- },
123653
- {
123654
- "kind": "method",
123655
- "name": "_isGoNextElement",
123656
- "privacy": "private",
123657
- "return": {
123658
- "type": {
123659
- "text": "boolean"
123660
- }
123661
- },
123662
- "parameters": [
123663
- {
123664
- "name": "element",
123665
- "type": {
123666
- "text": "HTMLElement"
123667
- }
123668
- }
123669
- ]
123670
- },
123671
- {
123672
- "kind": "method",
123673
- "name": "_isGoPreviousElement",
123674
- "privacy": "private",
123675
- "return": {
123676
- "type": {
123677
- "text": "boolean"
123678
- }
123679
- },
123680
- "parameters": [
123681
- {
123682
- "name": "element",
123683
- "type": {
123684
- "text": "HTMLElement"
123685
- }
123686
- }
123687
- ]
123688
- },
123689
- {
123690
- "kind": "method",
123691
- "name": "_onStepElementResize",
123692
- "privacy": "private",
123693
- "return": {
123694
- "type": {
123695
- "text": "void"
123696
- }
123697
- }
123698
- },
123699
- {
123700
- "kind": "method",
123701
- "name": "_assignLabel",
123702
- "privacy": "private",
123703
- "return": {
123704
- "type": {
123705
- "text": "void"
123706
- }
123707
- }
123708
- },
123709
- {
123710
- "kind": "field",
123711
- "name": "_hydrationRequired",
123712
- "type": {
123713
- "text": "boolean"
123714
- },
123715
- "privacy": "private",
123716
- "default": "!!this.shadowRoot",
123717
- "inheritedFrom": {
123718
- "name": "SbbElement",
123719
- "module": "core/base-elements/element.js"
123720
- }
123721
- },
123722
- {
123723
- "kind": "field",
123724
- "name": "_hydrationComplete",
123725
- "privacy": "private",
123726
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
123727
- "inheritedFrom": {
123728
- "name": "SbbElement",
123729
- "module": "core/base-elements/element.js"
123730
- }
123731
- },
123732
- {
123733
- "kind": "field",
123734
- "name": "_resolveHydration",
123735
- "type": {
123736
- "text": "(hydrationRequired: boolean) => void"
123737
- },
123738
- "privacy": "private",
123739
- "inheritedFrom": {
123740
- "name": "SbbElement",
123741
- "module": "core/base-elements/element.js"
123742
- }
123743
- },
123744
- {
123745
- "kind": "field",
123746
- "name": "hydrationRequired",
123747
- "type": {
123748
- "text": "boolean"
123749
- },
123750
- "privacy": "protected",
123751
- "description": "Returns whether hydration is required and not completed.",
123752
- "readonly": true,
123753
- "inheritedFrom": {
123754
- "name": "SbbElement",
123755
- "module": "core/base-elements/element.js"
123756
- },
123757
- "default": "!!this.shadowRoot"
123758
- },
123759
- {
123760
- "kind": "method",
123761
- "name": "toggleState",
123762
- "privacy": "protected",
123763
- "return": {
123764
- "type": {
123765
- "text": "void"
123766
- }
123767
- },
123768
- "parameters": [
123769
- {
123770
- "name": "value",
123771
- "type": {
123772
- "text": "string"
123773
- }
123774
- },
123775
- {
123776
- "name": "force",
123777
- "optional": true,
123778
- "type": {
123779
- "text": "boolean"
123780
- }
123781
- }
123782
- ],
123783
- "inheritedFrom": {
123784
- "name": "SbbElement",
123785
- "module": "core/base-elements/element.js"
123786
- }
123787
- },
123788
- {
123789
- "kind": "field",
123790
- "name": "['_$sbbElement$']",
123791
- "type": {
123792
- "text": "boolean"
123793
- },
123794
- "privacy": "public",
123795
- "static": true,
123796
- "default": "true",
123797
- "inheritedFrom": {
123798
- "name": "SbbElement",
123799
- "module": "core/base-elements/element.js"
123800
- }
123801
- },
123802
- {
123803
- "kind": "field",
123804
- "name": "_controllers",
123805
- "type": {
123806
- "text": "Set<SbbReactiveController> | undefined"
123807
- },
123808
- "privacy": "private",
123809
- "inheritedFrom": {
123810
- "name": "SbbElement",
123811
- "module": "core/base-elements/element.js"
123812
- }
123813
- }
123814
- ],
123815
- "events": [
123816
- {
123817
- "name": "validate",
123818
- "type": {
123819
- "text": "CustomEvent<SbbStepValidateEventDetails>"
123820
- },
123821
- "description": "The validate event is dispatched when a step change is triggered. Can be canceled to abort the step change."
123822
- }
123823
- ],
123824
- "superclass": {
123825
- "name": "SbbElement",
123826
- "module": "core/base-elements.js"
123827
- },
123828
- "tagName": "sbb-step",
123829
- "customElement": true
123830
- }
123831
- ],
123832
- "exports": [
123833
- {
123834
- "kind": "js",
123835
- "name": "SbbStepElement",
123836
- "declaration": {
123837
- "name": "SbbStepElement",
123838
- "module": "stepper/step/step.component.js"
123839
- }
123840
- }
123841
- ]
123842
- },
123843
123843
  {
123844
123844
  "kind": "javascript-module",
123845
123845
  "path": "stepper/stepper/stepper.component.js",