@sbb-esta/lyne-elements-dev 4.0.0-dev.1775840750 → 4.0.0-dev.1775868749

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.
Files changed (2) hide show
  1. package/custom-elements.json +1193 -1193
  2. package/package.json +2 -2
@@ -145726,15 +145726,15 @@
145726
145726
  },
145727
145727
  {
145728
145728
  "kind": "javascript-module",
145729
- "path": "sidebar/sidebar-title/sidebar-title.component.js",
145729
+ "path": "sidebar/sidebar-content/sidebar-content.component.js",
145730
145730
  "declarations": [
145731
145731
  {
145732
145732
  "kind": "class",
145733
- "description": "It displays the title of the sidebar. It has to be placed inside an `sbb-sidebar` element.",
145734
- "name": "SbbSidebarTitleElement",
145733
+ "description": "Container for the sidebar content. Intended to be placed inside an `sbb-sidebar-container` element.",
145734
+ "name": "SbbSidebarContentElement",
145735
145735
  "slots": [
145736
145736
  {
145737
- "description": "Use the unnamed slot for the content of the sidebar-title.",
145737
+ "description": "Use the unnamed slot to add any content elements. Further `sbb-sidebar-container`s are possible.",
145738
145738
  "name": ""
145739
145739
  }
145740
145740
  ],
@@ -145748,53 +145748,21 @@
145748
145748
  "privacy": "public",
145749
145749
  "static": true,
145750
145750
  "readonly": true,
145751
+ "default": "'sbb-sidebar-content'",
145751
145752
  "inheritedFrom": {
145752
145753
  "name": "SbbElement",
145753
145754
  "module": "core/base-elements/element.js"
145754
- },
145755
- "default": "'sbb-sidebar-title'"
145756
- },
145757
- {
145758
- "kind": "field",
145759
- "name": "level",
145760
- "type": {
145761
- "text": "SbbTitleLevel"
145762
- },
145763
- "privacy": "public",
145764
- "default": "'2'",
145765
- "description": "Title level",
145766
- "attribute": "level",
145767
- "reflects": true,
145768
- "inheritedFrom": {
145769
- "name": "SbbTitleBase",
145770
- "module": "title/title-base.js"
145771
- }
145772
- },
145773
- {
145774
- "kind": "field",
145775
- "name": "visualLevel",
145776
- "type": {
145777
- "text": "SbbTitleLevel | null"
145778
- },
145779
- "privacy": "public",
145780
- "default": "'5'",
145781
- "description": "Visual level for the title.",
145782
- "attribute": "visual-level",
145783
- "reflects": true,
145784
- "inheritedFrom": {
145785
- "name": "SbbTitleBase",
145786
- "module": "title/title-base.js"
145787
145755
  }
145788
145756
  },
145789
145757
  {
145790
145758
  "kind": "field",
145791
- "name": "role",
145759
+ "name": "['_$sbbElement$']",
145792
145760
  "type": {
145793
- "text": "string"
145761
+ "text": "boolean"
145794
145762
  },
145795
145763
  "privacy": "public",
145796
145764
  "static": true,
145797
- "default": "'heading'",
145765
+ "default": "true",
145798
145766
  "inheritedFrom": {
145799
145767
  "name": "SbbElement",
145800
145768
  "module": "core/base-elements/element.js"
@@ -145802,13 +145770,12 @@
145802
145770
  },
145803
145771
  {
145804
145772
  "kind": "field",
145805
- "name": "['_$sbbElement$']",
145773
+ "name": "elementDependencies",
145806
145774
  "type": {
145807
- "text": "boolean"
145775
+ "text": "SbbElementType[] | undefined"
145808
145776
  },
145809
145777
  "privacy": "public",
145810
145778
  "static": true,
145811
- "default": "true",
145812
145779
  "inheritedFrom": {
145813
145780
  "name": "SbbElement",
145814
145781
  "module": "core/base-elements/element.js"
@@ -145816,9 +145783,9 @@
145816
145783
  },
145817
145784
  {
145818
145785
  "kind": "field",
145819
- "name": "elementDependencies",
145786
+ "name": "role",
145820
145787
  "type": {
145821
- "text": "SbbElementType[] | undefined"
145788
+ "text": "ElementInternals['role'] | undefined"
145822
145789
  },
145823
145790
  "privacy": "public",
145824
145791
  "static": true,
@@ -146047,64 +146014,36 @@
146047
146014
  }
146048
146015
  }
146049
146016
  ],
146050
- "attributes": [
146051
- {
146052
- "name": "level",
146053
- "type": {
146054
- "text": "SbbTitleLevel"
146055
- },
146056
- "default": "'2'",
146057
- "description": "Title level",
146058
- "fieldName": "level",
146059
- "inheritedFrom": {
146060
- "name": "SbbTitleBase",
146061
- "module": "title/title-base.js"
146062
- }
146063
- },
146064
- {
146065
- "name": "visual-level",
146066
- "type": {
146067
- "text": "SbbTitleLevel | null"
146068
- },
146069
- "default": "null",
146070
- "description": "Visual level for the title.",
146071
- "fieldName": "visualLevel",
146072
- "inheritedFrom": {
146073
- "name": "SbbTitleBase",
146074
- "module": "title/title-base.js"
146075
- }
146076
- }
146077
- ],
146078
146017
  "superclass": {
146079
- "name": "SbbTitleBase",
146080
- "module": "title.pure.js"
146018
+ "name": "SbbElement",
146019
+ "module": "core.js"
146081
146020
  },
146082
- "tagName": "sbb-sidebar-title",
146021
+ "tagName": "sbb-sidebar-content",
146083
146022
  "customElement": true
146084
146023
  }
146085
146024
  ],
146086
146025
  "exports": [
146087
146026
  {
146088
146027
  "kind": "js",
146089
- "name": "SbbSidebarTitleElement",
146028
+ "name": "SbbSidebarContentElement",
146090
146029
  "declaration": {
146091
- "name": "SbbSidebarTitleElement",
146092
- "module": "sidebar/sidebar-title/sidebar-title.component.js"
146030
+ "name": "SbbSidebarContentElement",
146031
+ "module": "sidebar/sidebar-content/sidebar-content.component.js"
146093
146032
  }
146094
146033
  }
146095
146034
  ]
146096
146035
  },
146097
146036
  {
146098
146037
  "kind": "javascript-module",
146099
- "path": "sidebar/sidebar-content/sidebar-content.component.js",
146038
+ "path": "sidebar/sidebar-title/sidebar-title.component.js",
146100
146039
  "declarations": [
146101
146040
  {
146102
146041
  "kind": "class",
146103
- "description": "Container for the sidebar content. Intended to be placed inside an `sbb-sidebar-container` element.",
146104
- "name": "SbbSidebarContentElement",
146042
+ "description": "It displays the title of the sidebar. It has to be placed inside an `sbb-sidebar` element.",
146043
+ "name": "SbbSidebarTitleElement",
146105
146044
  "slots": [
146106
146045
  {
146107
- "description": "Use the unnamed slot to add any content elements. Further `sbb-sidebar-container`s are possible.",
146046
+ "description": "Use the unnamed slot for the content of the sidebar-title.",
146108
146047
  "name": ""
146109
146048
  }
146110
146049
  ],
@@ -146118,21 +146057,53 @@
146118
146057
  "privacy": "public",
146119
146058
  "static": true,
146120
146059
  "readonly": true,
146121
- "default": "'sbb-sidebar-content'",
146122
146060
  "inheritedFrom": {
146123
146061
  "name": "SbbElement",
146124
146062
  "module": "core/base-elements/element.js"
146063
+ },
146064
+ "default": "'sbb-sidebar-title'"
146065
+ },
146066
+ {
146067
+ "kind": "field",
146068
+ "name": "level",
146069
+ "type": {
146070
+ "text": "SbbTitleLevel"
146071
+ },
146072
+ "privacy": "public",
146073
+ "default": "'2'",
146074
+ "description": "Title level",
146075
+ "attribute": "level",
146076
+ "reflects": true,
146077
+ "inheritedFrom": {
146078
+ "name": "SbbTitleBase",
146079
+ "module": "title/title-base.js"
146125
146080
  }
146126
146081
  },
146127
146082
  {
146128
146083
  "kind": "field",
146129
- "name": "['_$sbbElement$']",
146084
+ "name": "visualLevel",
146130
146085
  "type": {
146131
- "text": "boolean"
146086
+ "text": "SbbTitleLevel | null"
146087
+ },
146088
+ "privacy": "public",
146089
+ "default": "'5'",
146090
+ "description": "Visual level for the title.",
146091
+ "attribute": "visual-level",
146092
+ "reflects": true,
146093
+ "inheritedFrom": {
146094
+ "name": "SbbTitleBase",
146095
+ "module": "title/title-base.js"
146096
+ }
146097
+ },
146098
+ {
146099
+ "kind": "field",
146100
+ "name": "role",
146101
+ "type": {
146102
+ "text": "string"
146132
146103
  },
146133
146104
  "privacy": "public",
146134
146105
  "static": true,
146135
- "default": "true",
146106
+ "default": "'heading'",
146136
146107
  "inheritedFrom": {
146137
146108
  "name": "SbbElement",
146138
146109
  "module": "core/base-elements/element.js"
@@ -146140,12 +146111,13 @@
146140
146111
  },
146141
146112
  {
146142
146113
  "kind": "field",
146143
- "name": "elementDependencies",
146114
+ "name": "['_$sbbElement$']",
146144
146115
  "type": {
146145
- "text": "SbbElementType[] | undefined"
146116
+ "text": "boolean"
146146
146117
  },
146147
146118
  "privacy": "public",
146148
146119
  "static": true,
146120
+ "default": "true",
146149
146121
  "inheritedFrom": {
146150
146122
  "name": "SbbElement",
146151
146123
  "module": "core/base-elements/element.js"
@@ -146153,9 +146125,9 @@
146153
146125
  },
146154
146126
  {
146155
146127
  "kind": "field",
146156
- "name": "role",
146128
+ "name": "elementDependencies",
146157
146129
  "type": {
146158
- "text": "ElementInternals['role'] | undefined"
146130
+ "text": "SbbElementType[] | undefined"
146159
146131
  },
146160
146132
  "privacy": "public",
146161
146133
  "static": true,
@@ -146384,21 +146356,49 @@
146384
146356
  }
146385
146357
  }
146386
146358
  ],
146359
+ "attributes": [
146360
+ {
146361
+ "name": "level",
146362
+ "type": {
146363
+ "text": "SbbTitleLevel"
146364
+ },
146365
+ "default": "'2'",
146366
+ "description": "Title level",
146367
+ "fieldName": "level",
146368
+ "inheritedFrom": {
146369
+ "name": "SbbTitleBase",
146370
+ "module": "title/title-base.js"
146371
+ }
146372
+ },
146373
+ {
146374
+ "name": "visual-level",
146375
+ "type": {
146376
+ "text": "SbbTitleLevel | null"
146377
+ },
146378
+ "default": "null",
146379
+ "description": "Visual level for the title.",
146380
+ "fieldName": "visualLevel",
146381
+ "inheritedFrom": {
146382
+ "name": "SbbTitleBase",
146383
+ "module": "title/title-base.js"
146384
+ }
146385
+ }
146386
+ ],
146387
146387
  "superclass": {
146388
- "name": "SbbElement",
146389
- "module": "core.js"
146388
+ "name": "SbbTitleBase",
146389
+ "module": "title.pure.js"
146390
146390
  },
146391
- "tagName": "sbb-sidebar-content",
146391
+ "tagName": "sbb-sidebar-title",
146392
146392
  "customElement": true
146393
146393
  }
146394
146394
  ],
146395
146395
  "exports": [
146396
146396
  {
146397
146397
  "kind": "js",
146398
- "name": "SbbSidebarContentElement",
146398
+ "name": "SbbSidebarTitleElement",
146399
146399
  "declaration": {
146400
- "name": "SbbSidebarContentElement",
146401
- "module": "sidebar/sidebar-content/sidebar-content.component.js"
146400
+ "name": "SbbSidebarTitleElement",
146401
+ "module": "sidebar/sidebar-title/sidebar-title.component.js"
146402
146402
  }
146403
146403
  }
146404
146404
  ]
@@ -154475,15 +154475,15 @@
154475
154475
  },
154476
154476
  {
154477
154477
  "kind": "javascript-module",
154478
- "path": "timetable-form/timetable-form-details/timetable-form-details.component.js",
154478
+ "path": "timetable-form/timetable-form/timetable-form.component.js",
154479
154479
  "declarations": [
154480
154480
  {
154481
154481
  "kind": "class",
154482
- "description": "Wraps the details section of the `sbb-timetable-form`.",
154483
- "name": "SbbTimetableFormDetailsElement",
154482
+ "description": "Serves as a building block of a sbb 'timetable-form'.\nIt automatically handles the styles and part of its behaviors",
154483
+ "name": "SbbTimetableFormElement",
154484
154484
  "slots": [
154485
154485
  {
154486
- "description": "Use the unnamed slot to add content to the details section.",
154486
+ "description": "Use the unnamed slot to add content to the 'timetable-form'",
154487
154487
  "name": ""
154488
154488
  }
154489
154489
  ],
@@ -154497,7 +154497,7 @@
154497
154497
  "privacy": "public",
154498
154498
  "static": true,
154499
154499
  "readonly": true,
154500
- "default": "'sbb-timetable-form-details'",
154500
+ "default": "'sbb-timetable-form'",
154501
154501
  "inheritedFrom": {
154502
154502
  "name": "SbbElement",
154503
154503
  "module": "core/base-elements/element.js"
@@ -154767,29 +154767,35 @@
154767
154767
  "name": "SbbElement",
154768
154768
  "module": "core.js"
154769
154769
  },
154770
- "tagName": "sbb-timetable-form-details",
154770
+ "tagName": "sbb-timetable-form",
154771
154771
  "customElement": true
154772
154772
  }
154773
154773
  ],
154774
154774
  "exports": [
154775
154775
  {
154776
154776
  "kind": "js",
154777
- "name": "SbbTimetableFormDetailsElement",
154777
+ "name": "SbbTimetableFormElement",
154778
154778
  "declaration": {
154779
- "name": "SbbTimetableFormDetailsElement",
154780
- "module": "timetable-form/timetable-form-details/timetable-form-details.component.js"
154779
+ "name": "SbbTimetableFormElement",
154780
+ "module": "timetable-form/timetable-form/timetable-form.component.js"
154781
154781
  }
154782
154782
  }
154783
154783
  ]
154784
154784
  },
154785
154785
  {
154786
154786
  "kind": "javascript-module",
154787
- "path": "timetable-form/timetable-form-field/timetable-form-field.component.js",
154787
+ "path": "timetable-form/timetable-form-details/timetable-form-details.component.js",
154788
154788
  "declarations": [
154789
154789
  {
154790
154790
  "kind": "class",
154791
- "description": "Extends the `sbb-form-field`. Meant to be used inside a `sbb-timetable-form`.",
154792
- "name": "SbbTimetableFormFieldElement",
154791
+ "description": "Wraps the details section of the `sbb-timetable-form`.",
154792
+ "name": "SbbTimetableFormDetailsElement",
154793
+ "slots": [
154794
+ {
154795
+ "description": "Use the unnamed slot to add content to the details section.",
154796
+ "name": ""
154797
+ }
154798
+ ],
154793
154799
  "members": [
154794
154800
  {
154795
154801
  "kind": "field",
@@ -154800,7 +154806,7 @@
154800
154806
  "privacy": "public",
154801
154807
  "static": true,
154802
154808
  "readonly": true,
154803
- "default": "'sbb-timetable-form-field'",
154809
+ "default": "'sbb-timetable-form-details'",
154804
154810
  "inheritedFrom": {
154805
154811
  "name": "SbbElement",
154806
154812
  "module": "core/base-elements/element.js"
@@ -154808,102 +154814,74 @@
154808
154814
  },
154809
154815
  {
154810
154816
  "kind": "field",
154811
- "name": "_routeIcon",
154817
+ "name": "['_$sbbElement$']",
154812
154818
  "type": {
154813
154819
  "text": "boolean"
154814
154820
  },
154815
- "privacy": "private",
154816
- "default": "false"
154821
+ "privacy": "public",
154822
+ "static": true,
154823
+ "default": "true",
154824
+ "inheritedFrom": {
154825
+ "name": "SbbElement",
154826
+ "module": "core/base-elements/element.js"
154827
+ }
154817
154828
  },
154818
154829
  {
154819
154830
  "kind": "field",
154820
- "name": "borderless",
154831
+ "name": "elementDependencies",
154821
154832
  "type": {
154822
- "text": "boolean"
154833
+ "text": "SbbElementType[] | undefined"
154823
154834
  },
154824
154835
  "privacy": "public",
154825
- "default": "true",
154826
- "description": "Whether to display the form field without a border.",
154827
- "attribute": "borderless",
154828
- "reflects": true,
154836
+ "static": true,
154829
154837
  "inheritedFrom": {
154830
- "name": "SbbFormFieldElement",
154831
- "module": "form-field/form-field/form-field.component.js"
154838
+ "name": "SbbElement",
154839
+ "module": "core/base-elements/element.js"
154832
154840
  }
154833
154841
  },
154834
154842
  {
154835
154843
  "kind": "field",
154836
- "name": "floatingLabel",
154844
+ "name": "role",
154837
154845
  "type": {
154838
- "text": "boolean"
154846
+ "text": "ElementInternals['role'] | undefined"
154839
154847
  },
154840
154848
  "privacy": "public",
154841
- "default": "true",
154842
- "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
154843
- "attribute": "floating-label",
154844
- "reflects": true,
154845
- "inheritedFrom": {
154846
- "name": "SbbFormFieldElement",
154847
- "module": "form-field/form-field/form-field.component.js"
154848
- }
154849
- },
154850
- {
154851
- "kind": "field",
154852
- "name": "width",
154853
- "type": {
154854
- "text": "string"
154855
- },
154856
- "privacy": "public",
154857
- "default": "'collapse'",
154858
- "description": "Defines the width of the component:\n- `default`: the component has defined width and min-width;\n- `collapse`: the component adapts itself to its inner input content.",
154859
- "attribute": "width",
154860
- "reflects": true,
154849
+ "static": true,
154861
154850
  "inheritedFrom": {
154862
- "name": "SbbFormFieldElement",
154863
- "module": "form-field/form-field/form-field.component.js"
154851
+ "name": "SbbElement",
154852
+ "module": "core/base-elements/element.js"
154864
154853
  }
154865
154854
  },
154866
154855
  {
154867
154856
  "kind": "field",
154868
- "name": "size",
154857
+ "name": "_controllers",
154869
154858
  "type": {
154870
- "text": "string"
154859
+ "text": "Set<SbbReactiveController> | undefined"
154871
154860
  },
154872
- "privacy": "public",
154873
- "description": "Size variant, either l, m or s.",
154874
- "default": "'l'",
154875
- "attribute": "size",
154876
- "reflects": true,
154861
+ "privacy": "private",
154877
154862
  "inheritedFrom": {
154878
- "name": "SbbFormFieldElement",
154879
- "module": "form-field/form-field/form-field.component.js"
154863
+ "name": "SbbElement",
154864
+ "module": "core/base-elements/element.js"
154880
154865
  }
154881
154866
  },
154882
154867
  {
154883
154868
  "kind": "field",
154884
- "name": "negative",
154869
+ "name": "_hydrationRequired",
154885
154870
  "type": {
154886
154871
  "text": "boolean"
154887
154872
  },
154888
- "privacy": "public",
154889
- "default": "false",
154890
- "description": "Negative coloring variant flag.",
154891
- "attribute": "negative",
154892
- "reflects": true,
154873
+ "privacy": "private",
154874
+ "default": "!!this.shadowRoot",
154893
154875
  "inheritedFrom": {
154894
- "name": "SbbNegativeMixin",
154895
- "module": "core/mixins/negative-mixin.js"
154876
+ "name": "SbbElement",
154877
+ "module": "core/base-elements/element.js"
154896
154878
  }
154897
154879
  },
154898
154880
  {
154899
154881
  "kind": "field",
154900
- "name": "elementDependencies",
154901
- "type": {
154902
- "text": "SbbElementType[]"
154903
- },
154904
- "privacy": "public",
154905
- "static": true,
154906
- "default": "[SbbIconElement]",
154882
+ "name": "_hydrationComplete",
154883
+ "privacy": "private",
154884
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
154907
154885
  "inheritedFrom": {
154908
154886
  "name": "SbbElement",
154909
154887
  "module": "core/base-elements/element.js"
@@ -154911,158 +154889,252 @@
154911
154889
  },
154912
154890
  {
154913
154891
  "kind": "field",
154914
- "name": "_excludedFocusElements",
154892
+ "name": "_resolveHydration",
154915
154893
  "type": {
154916
- "text": "array"
154894
+ "text": "(hydrationRequired: boolean) => void"
154917
154895
  },
154918
154896
  "privacy": "private",
154919
- "readonly": true,
154920
- "default": "['button', 'sbb-popover', 'sbb-option', 'sbb-chip']",
154921
154897
  "inheritedFrom": {
154922
- "name": "SbbFormFieldElement",
154923
- "module": "form-field/form-field/form-field.component.js"
154898
+ "name": "SbbElement",
154899
+ "module": "core/base-elements/element.js"
154924
154900
  }
154925
154901
  },
154926
154902
  {
154927
154903
  "kind": "field",
154928
- "name": "_floatingLabelSupportedInputElements",
154904
+ "name": "_textObserver",
154929
154905
  "type": {
154930
- "text": "array"
154906
+ "text": "MutationObserver | undefined"
154931
154907
  },
154932
154908
  "privacy": "private",
154933
- "readonly": true,
154934
- "default": "[ 'input', 'select', 'textarea', 'sbb-select', ]",
154935
154909
  "inheritedFrom": {
154936
- "name": "SbbFormFieldElement",
154937
- "module": "form-field/form-field/form-field.component.js"
154910
+ "name": "SbbElement",
154911
+ "module": "core/base-elements/element.js"
154938
154912
  }
154939
154913
  },
154940
154914
  {
154941
154915
  "kind": "field",
154942
- "name": "_floatingLabelSupportedInputTypes",
154916
+ "name": "hydrationRequired",
154943
154917
  "type": {
154944
- "text": "array"
154918
+ "text": "boolean"
154945
154919
  },
154946
- "privacy": "private",
154920
+ "privacy": "protected",
154921
+ "description": "Returns whether hydration is required and not completed.",
154947
154922
  "readonly": true,
154948
- "default": "[ 'email', 'number', 'password', 'search', 'tel', 'text', 'url', ]",
154949
154923
  "inheritedFrom": {
154950
- "name": "SbbFormFieldElement",
154951
- "module": "form-field/form-field/form-field.component.js"
154952
- }
154953
- },
154954
- {
154955
- "kind": "field",
154956
- "name": "errorSpace",
154957
- "type": {
154958
- "text": "'none' | 'reserve'"
154924
+ "name": "SbbElement",
154925
+ "module": "core/base-elements/element.js"
154959
154926
  },
154960
- "privacy": "public",
154961
- "default": "'none'",
154962
- "description": "Whether to reserve space for an error message, hint or text-counter.\n`none` does not reserve any space.\n`reserve` does reserve one row for an error message.",
154963
- "attribute": "error-space",
154964
- "reflects": true,
154965
- "inheritedFrom": {
154966
- "name": "SbbFormFieldElement",
154967
- "module": "form-field/form-field/form-field.component.js"
154968
- }
154927
+ "default": "!!this.shadowRoot"
154969
154928
  },
154970
154929
  {
154971
- "kind": "field",
154972
- "name": "optional",
154973
- "type": {
154974
- "text": "boolean"
154930
+ "kind": "method",
154931
+ "name": "toggleState",
154932
+ "privacy": "protected",
154933
+ "return": {
154934
+ "type": {
154935
+ "text": "void"
154936
+ }
154975
154937
  },
154976
- "privacy": "public",
154977
- "default": "false",
154978
- "description": "Indicates whether the input is optional.",
154979
- "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
154980
- "attribute": "optional",
154938
+ "parameters": [
154939
+ {
154940
+ "name": "value",
154941
+ "type": {
154942
+ "text": "string"
154943
+ }
154944
+ },
154945
+ {
154946
+ "name": "force",
154947
+ "optional": true,
154948
+ "type": {
154949
+ "text": "boolean"
154950
+ }
154951
+ }
154952
+ ],
154981
154953
  "inheritedFrom": {
154982
- "name": "SbbFormFieldElement",
154983
- "module": "form-field/form-field/form-field.component.js"
154954
+ "name": "SbbElement",
154955
+ "module": "core/base-elements/element.js"
154984
154956
  }
154985
154957
  },
154986
154958
  {
154987
- "kind": "field",
154988
- "name": "hiddenLabel",
154989
- "type": {
154990
- "text": "boolean"
154959
+ "kind": "method",
154960
+ "name": "_slotchangeHandler",
154961
+ "privacy": "private",
154962
+ "return": {
154963
+ "type": {
154964
+ "text": "void"
154965
+ }
154991
154966
  },
154992
- "privacy": "public",
154993
- "default": "false",
154994
- "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
154995
- "attribute": "hidden-label",
154996
- "reflects": true,
154967
+ "parameters": [
154968
+ {
154969
+ "name": "event",
154970
+ "type": {
154971
+ "text": "Event"
154972
+ }
154973
+ },
154974
+ {
154975
+ "name": "slot",
154976
+ "type": {
154977
+ "text": "HTMLSlotElement"
154978
+ }
154979
+ }
154980
+ ],
154997
154981
  "inheritedFrom": {
154998
- "name": "SbbFormFieldElement",
154999
- "module": "form-field/form-field/form-field.component.js"
154982
+ "name": "SbbElement",
154983
+ "module": "core/base-elements/element.js"
155000
154984
  }
155001
154985
  },
155002
154986
  {
155003
- "kind": "field",
155004
- "name": "_errorElements",
155005
- "type": {
155006
- "text": "Element[]"
155007
- },
154987
+ "kind": "method",
154988
+ "name": "_handleSlotChangeForSlottedState",
155008
154989
  "privacy": "private",
155009
- "default": "[]",
155010
- "description": "It is used internally to get the `error` slot.",
154990
+ "return": {
154991
+ "type": {
154992
+ "text": "void"
154993
+ }
154994
+ },
154995
+ "parameters": [
154996
+ {
154997
+ "name": "slot",
154998
+ "type": {
154999
+ "text": "HTMLSlotElement"
155000
+ }
155001
+ }
155002
+ ],
155011
155003
  "inheritedFrom": {
155012
- "name": "SbbFormFieldElement",
155013
- "module": "form-field/form-field/form-field.component.js"
155004
+ "name": "SbbElement",
155005
+ "module": "core/base-elements/element.js"
155014
155006
  }
155015
155007
  },
155016
155008
  {
155017
- "kind": "field",
155018
- "name": "_hintElements",
155019
- "type": {
155020
- "text": "Element[]"
155021
- },
155009
+ "kind": "method",
155010
+ "name": "_updateSlottedState",
155022
155011
  "privacy": "private",
155023
- "default": "[]",
155024
- "description": "It is used internally to get the `hint` slot.",
155012
+ "return": {
155013
+ "type": {
155014
+ "text": "void"
155015
+ }
155016
+ },
155017
+ "parameters": [
155018
+ {
155019
+ "name": "slot",
155020
+ "type": {
155021
+ "text": "HTMLSlotElement"
155022
+ }
155023
+ }
155024
+ ],
155025
155025
  "inheritedFrom": {
155026
- "name": "SbbFormFieldElement",
155027
- "module": "form-field/form-field/form-field.component.js"
155026
+ "name": "SbbElement",
155027
+ "module": "core/base-elements/element.js"
155028
155028
  }
155029
155029
  },
155030
155030
  {
155031
- "kind": "field",
155032
- "name": "_input",
155033
- "type": {
155034
- "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
155035
- },
155031
+ "kind": "method",
155032
+ "name": "_observeTextNodesInSlot",
155036
155033
  "privacy": "private",
155037
- "default": "null",
155038
- "description": "Reference to the slotted input element.",
155034
+ "return": {
155035
+ "type": {
155036
+ "text": "void"
155037
+ }
155038
+ },
155039
+ "parameters": [
155040
+ {
155041
+ "name": "slot",
155042
+ "type": {
155043
+ "text": "HTMLSlotElement"
155044
+ }
155045
+ }
155046
+ ],
155039
155047
  "inheritedFrom": {
155040
- "name": "SbbFormFieldElement",
155041
- "module": "form-field/form-field/form-field.component.js"
155048
+ "name": "SbbElement",
155049
+ "module": "core/base-elements/element.js"
155042
155050
  }
155043
155051
  },
155052
+ {
155053
+ "kind": "method",
155054
+ "name": "_hasSlottedContent",
155055
+ "privacy": "private",
155056
+ "return": {
155057
+ "type": {
155058
+ "text": "boolean"
155059
+ }
155060
+ },
155061
+ "parameters": [
155062
+ {
155063
+ "name": "slot",
155064
+ "type": {
155065
+ "text": "HTMLSlotElement"
155066
+ }
155067
+ }
155068
+ ],
155069
+ "inheritedFrom": {
155070
+ "name": "SbbElement",
155071
+ "module": "core/base-elements/element.js"
155072
+ }
155073
+ }
155074
+ ],
155075
+ "superclass": {
155076
+ "name": "SbbElement",
155077
+ "module": "core.js"
155078
+ },
155079
+ "tagName": "sbb-timetable-form-details",
155080
+ "customElement": true
155081
+ }
155082
+ ],
155083
+ "exports": [
155084
+ {
155085
+ "kind": "js",
155086
+ "name": "SbbTimetableFormDetailsElement",
155087
+ "declaration": {
155088
+ "name": "SbbTimetableFormDetailsElement",
155089
+ "module": "timetable-form/timetable-form-details/timetable-form-details.component.js"
155090
+ }
155091
+ }
155092
+ ]
155093
+ },
155094
+ {
155095
+ "kind": "javascript-module",
155096
+ "path": "timetable-form/timetable-form-field/timetable-form-field.component.js",
155097
+ "declarations": [
155098
+ {
155099
+ "kind": "class",
155100
+ "description": "Extends the `sbb-form-field`. Meant to be used inside a `sbb-timetable-form`.",
155101
+ "name": "SbbTimetableFormFieldElement",
155102
+ "members": [
155044
155103
  {
155045
155104
  "kind": "field",
155046
- "name": "_label",
155105
+ "name": "elementName",
155047
155106
  "type": {
155048
- "text": "HTMLLabelElement"
155107
+ "text": "string"
155049
155108
  },
155050
- "privacy": "private",
155051
- "description": "Reference to the slotted label elements.",
155109
+ "privacy": "public",
155110
+ "static": true,
155111
+ "readonly": true,
155112
+ "default": "'sbb-timetable-form-field'",
155052
155113
  "inheritedFrom": {
155053
- "name": "SbbFormFieldElement",
155054
- "module": "form-field/form-field/form-field.component.js"
155114
+ "name": "SbbElement",
155115
+ "module": "core/base-elements/element.js"
155055
155116
  }
155056
155117
  },
155057
155118
  {
155058
155119
  "kind": "field",
155059
- "name": "inputElement",
155120
+ "name": "_routeIcon",
155060
155121
  "type": {
155061
- "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
155122
+ "text": "boolean"
155123
+ },
155124
+ "privacy": "private",
155125
+ "default": "false"
155126
+ },
155127
+ {
155128
+ "kind": "field",
155129
+ "name": "borderless",
155130
+ "type": {
155131
+ "text": "boolean"
155062
155132
  },
155063
155133
  "privacy": "public",
155064
- "description": "Returns the input element.",
155065
- "readonly": true,
155134
+ "default": "true",
155135
+ "description": "Whether to display the form field without a border.",
155136
+ "attribute": "borderless",
155137
+ "reflects": true,
155066
155138
  "inheritedFrom": {
155067
155139
  "name": "SbbFormFieldElement",
155068
155140
  "module": "form-field/form-field/form-field.component.js"
@@ -155070,13 +155142,15 @@
155070
155142
  },
155071
155143
  {
155072
155144
  "kind": "field",
155073
- "name": "label",
155145
+ "name": "floatingLabel",
155074
155146
  "type": {
155075
- "text": "HTMLLabelElement | null"
155147
+ "text": "boolean"
155076
155148
  },
155077
155149
  "privacy": "public",
155078
- "description": "Reference to the slotted label.",
155079
- "readonly": true,
155150
+ "default": "true",
155151
+ "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
155152
+ "attribute": "floating-label",
155153
+ "reflects": true,
155080
155154
  "inheritedFrom": {
155081
155155
  "name": "SbbFormFieldElement",
155082
155156
  "module": "form-field/form-field/form-field.component.js"
@@ -155084,9 +155158,15 @@
155084
155158
  },
155085
155159
  {
155086
155160
  "kind": "field",
155087
- "name": "_language",
155088
- "privacy": "private",
155089
- "default": "new SbbLanguageController(this)",
155161
+ "name": "width",
155162
+ "type": {
155163
+ "text": "string"
155164
+ },
155165
+ "privacy": "public",
155166
+ "default": "'collapse'",
155167
+ "description": "Defines the width of the component:\n- `default`: the component has defined width and min-width;\n- `collapse`: the component adapts itself to its inner input content.",
155168
+ "attribute": "width",
155169
+ "reflects": true,
155090
155170
  "inheritedFrom": {
155091
155171
  "name": "SbbFormFieldElement",
155092
155172
  "module": "form-field/form-field/form-field.component.js"
@@ -155094,9 +155174,15 @@
155094
155174
  },
155095
155175
  {
155096
155176
  "kind": "field",
155097
- "name": "_formFieldAttributeObserver",
155098
- "privacy": "private",
155099
- "description": "Listens to the changes on `readonly` and `disabled` attributes of `<input>`.",
155177
+ "name": "size",
155178
+ "type": {
155179
+ "text": "string"
155180
+ },
155181
+ "privacy": "public",
155182
+ "description": "Size variant, either l, m or s.",
155183
+ "default": "'l'",
155184
+ "attribute": "size",
155185
+ "reflects": true,
155100
155186
  "inheritedFrom": {
155101
155187
  "name": "SbbFormFieldElement",
155102
155188
  "module": "form-field/form-field/form-field.component.js"
@@ -155104,131 +155190,354 @@
155104
155190
  },
155105
155191
  {
155106
155192
  "kind": "field",
155107
- "name": "_inputFormAbortController",
155108
- "privacy": "private",
155109
- "default": "new AbortController()",
155193
+ "name": "negative",
155194
+ "type": {
155195
+ "text": "boolean"
155196
+ },
155197
+ "privacy": "public",
155198
+ "default": "false",
155199
+ "description": "Negative coloring variant flag.",
155200
+ "attribute": "negative",
155201
+ "reflects": true,
155110
155202
  "inheritedFrom": {
155111
- "name": "SbbFormFieldElement",
155112
- "module": "form-field/form-field/form-field.component.js"
155203
+ "name": "SbbNegativeMixin",
155204
+ "module": "core/mixins/negative-mixin.js"
155113
155205
  }
155114
155206
  },
155115
155207
  {
155116
155208
  "kind": "field",
155117
- "name": "_control",
155209
+ "name": "elementDependencies",
155118
155210
  "type": {
155119
- "text": "SbbFormFieldElementControl | null"
155211
+ "text": "SbbElementType[]"
155120
155212
  },
155121
- "privacy": "private",
155122
- "default": "null",
155213
+ "privacy": "public",
155214
+ "static": true,
155215
+ "default": "[SbbIconElement]",
155123
155216
  "inheritedFrom": {
155124
- "name": "SbbFormFieldElement",
155125
- "module": "form-field/form-field/form-field.component.js"
155217
+ "name": "SbbElement",
155218
+ "module": "core/base-elements/element.js"
155126
155219
  }
155127
155220
  },
155128
155221
  {
155129
- "kind": "method",
155130
- "name": "_handleWrapperClick",
155131
- "privacy": "private",
155132
- "return": {
155133
- "type": {
155134
- "text": "void"
155135
- }
155222
+ "kind": "field",
155223
+ "name": "_excludedFocusElements",
155224
+ "type": {
155225
+ "text": "array"
155136
155226
  },
155137
- "parameters": [
155138
- {
155139
- "name": "event",
155140
- "type": {
155141
- "text": "MouseEvent"
155142
- }
155143
- }
155144
- ],
155227
+ "privacy": "private",
155228
+ "readonly": true,
155229
+ "default": "['button', 'sbb-popover', 'sbb-option', 'sbb-chip']",
155145
155230
  "inheritedFrom": {
155146
155231
  "name": "SbbFormFieldElement",
155147
155232
  "module": "form-field/form-field/form-field.component.js"
155148
155233
  }
155149
155234
  },
155150
155235
  {
155151
- "kind": "method",
155152
- "name": "_isElementFocusExcluded",
155153
- "privacy": "private",
155154
- "return": {
155155
- "type": {
155156
- "text": "boolean"
155157
- }
155236
+ "kind": "field",
155237
+ "name": "_floatingLabelSupportedInputElements",
155238
+ "type": {
155239
+ "text": "array"
155158
155240
  },
155159
- "parameters": [
155160
- {
155161
- "name": "event",
155162
- "type": {
155163
- "text": "Event"
155164
- }
155165
- }
155166
- ],
155241
+ "privacy": "private",
155242
+ "readonly": true,
155243
+ "default": "[ 'input', 'select', 'textarea', 'sbb-select', ]",
155167
155244
  "inheritedFrom": {
155168
155245
  "name": "SbbFormFieldElement",
155169
155246
  "module": "form-field/form-field/form-field.component.js"
155170
155247
  }
155171
155248
  },
155172
155249
  {
155173
- "kind": "method",
155174
- "name": "_onSlotLabelChange",
155175
- "privacy": "private",
155176
- "return": {
155177
- "type": {
155178
- "text": "void"
155179
- }
155250
+ "kind": "field",
155251
+ "name": "_floatingLabelSupportedInputTypes",
155252
+ "type": {
155253
+ "text": "array"
155180
155254
  },
155255
+ "privacy": "private",
155256
+ "readonly": true,
155257
+ "default": "[ 'email', 'number', 'password', 'search', 'tel', 'text', 'url', ]",
155181
155258
  "inheritedFrom": {
155182
155259
  "name": "SbbFormFieldElement",
155183
155260
  "module": "form-field/form-field/form-field.component.js"
155184
155261
  }
155185
155262
  },
155186
155263
  {
155187
- "kind": "method",
155188
- "name": "_onSlotInputChange",
155189
- "privacy": "private",
155190
- "return": {
155191
- "type": {
155192
- "text": "void"
155193
- }
155264
+ "kind": "field",
155265
+ "name": "errorSpace",
155266
+ "type": {
155267
+ "text": "'none' | 'reserve'"
155194
155268
  },
155195
- "description": "It is used internally to assign the attributes of `<input>` to `_id` and `_input` and to observe the native readonly and disabled attributes.",
155269
+ "privacy": "public",
155270
+ "default": "'none'",
155271
+ "description": "Whether to reserve space for an error message, hint or text-counter.\n`none` does not reserve any space.\n`reserve` does reserve one row for an error message.",
155272
+ "attribute": "error-space",
155273
+ "reflects": true,
155196
155274
  "inheritedFrom": {
155197
155275
  "name": "SbbFormFieldElement",
155198
155276
  "module": "form-field/form-field/form-field.component.js"
155199
155277
  }
155200
155278
  },
155201
155279
  {
155202
- "kind": "method",
155203
- "name": "_assignSlots",
155204
- "privacy": "private",
155205
- "return": {
155206
- "type": {
155207
- "text": "void"
155208
- }
155280
+ "kind": "field",
155281
+ "name": "optional",
155282
+ "type": {
155283
+ "text": "boolean"
155209
155284
  },
155285
+ "privacy": "public",
155286
+ "default": "false",
155287
+ "description": "Indicates whether the input is optional.",
155288
+ "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
155289
+ "attribute": "optional",
155210
155290
  "inheritedFrom": {
155211
155291
  "name": "SbbFormFieldElement",
155212
155292
  "module": "form-field/form-field/form-field.component.js"
155213
155293
  }
155214
155294
  },
155215
155295
  {
155216
- "kind": "method",
155217
- "name": "_connectInputElement",
155218
- "privacy": "private",
155219
- "return": {
155220
- "type": {
155221
- "text": "'changed' | 'no-input' | 'unchanged'"
155222
- }
155296
+ "kind": "field",
155297
+ "name": "hiddenLabel",
155298
+ "type": {
155299
+ "text": "boolean"
155223
155300
  },
155301
+ "privacy": "public",
155302
+ "default": "false",
155303
+ "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
155304
+ "attribute": "hidden-label",
155305
+ "reflects": true,
155224
155306
  "inheritedFrom": {
155225
155307
  "name": "SbbFormFieldElement",
155226
155308
  "module": "form-field/form-field/form-field.component.js"
155227
155309
  }
155228
155310
  },
155229
155311
  {
155230
- "kind": "method",
155231
- "name": "_syncLabelInputReferences",
155312
+ "kind": "field",
155313
+ "name": "_errorElements",
155314
+ "type": {
155315
+ "text": "Element[]"
155316
+ },
155317
+ "privacy": "private",
155318
+ "default": "[]",
155319
+ "description": "It is used internally to get the `error` slot.",
155320
+ "inheritedFrom": {
155321
+ "name": "SbbFormFieldElement",
155322
+ "module": "form-field/form-field/form-field.component.js"
155323
+ }
155324
+ },
155325
+ {
155326
+ "kind": "field",
155327
+ "name": "_hintElements",
155328
+ "type": {
155329
+ "text": "Element[]"
155330
+ },
155331
+ "privacy": "private",
155332
+ "default": "[]",
155333
+ "description": "It is used internally to get the `hint` slot.",
155334
+ "inheritedFrom": {
155335
+ "name": "SbbFormFieldElement",
155336
+ "module": "form-field/form-field/form-field.component.js"
155337
+ }
155338
+ },
155339
+ {
155340
+ "kind": "field",
155341
+ "name": "_input",
155342
+ "type": {
155343
+ "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
155344
+ },
155345
+ "privacy": "private",
155346
+ "default": "null",
155347
+ "description": "Reference to the slotted input element.",
155348
+ "inheritedFrom": {
155349
+ "name": "SbbFormFieldElement",
155350
+ "module": "form-field/form-field/form-field.component.js"
155351
+ }
155352
+ },
155353
+ {
155354
+ "kind": "field",
155355
+ "name": "_label",
155356
+ "type": {
155357
+ "text": "HTMLLabelElement"
155358
+ },
155359
+ "privacy": "private",
155360
+ "description": "Reference to the slotted label elements.",
155361
+ "inheritedFrom": {
155362
+ "name": "SbbFormFieldElement",
155363
+ "module": "form-field/form-field/form-field.component.js"
155364
+ }
155365
+ },
155366
+ {
155367
+ "kind": "field",
155368
+ "name": "inputElement",
155369
+ "type": {
155370
+ "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
155371
+ },
155372
+ "privacy": "public",
155373
+ "description": "Returns the input element.",
155374
+ "readonly": true,
155375
+ "inheritedFrom": {
155376
+ "name": "SbbFormFieldElement",
155377
+ "module": "form-field/form-field/form-field.component.js"
155378
+ }
155379
+ },
155380
+ {
155381
+ "kind": "field",
155382
+ "name": "label",
155383
+ "type": {
155384
+ "text": "HTMLLabelElement | null"
155385
+ },
155386
+ "privacy": "public",
155387
+ "description": "Reference to the slotted label.",
155388
+ "readonly": true,
155389
+ "inheritedFrom": {
155390
+ "name": "SbbFormFieldElement",
155391
+ "module": "form-field/form-field/form-field.component.js"
155392
+ }
155393
+ },
155394
+ {
155395
+ "kind": "field",
155396
+ "name": "_language",
155397
+ "privacy": "private",
155398
+ "default": "new SbbLanguageController(this)",
155399
+ "inheritedFrom": {
155400
+ "name": "SbbFormFieldElement",
155401
+ "module": "form-field/form-field/form-field.component.js"
155402
+ }
155403
+ },
155404
+ {
155405
+ "kind": "field",
155406
+ "name": "_formFieldAttributeObserver",
155407
+ "privacy": "private",
155408
+ "description": "Listens to the changes on `readonly` and `disabled` attributes of `<input>`.",
155409
+ "inheritedFrom": {
155410
+ "name": "SbbFormFieldElement",
155411
+ "module": "form-field/form-field/form-field.component.js"
155412
+ }
155413
+ },
155414
+ {
155415
+ "kind": "field",
155416
+ "name": "_inputFormAbortController",
155417
+ "privacy": "private",
155418
+ "default": "new AbortController()",
155419
+ "inheritedFrom": {
155420
+ "name": "SbbFormFieldElement",
155421
+ "module": "form-field/form-field/form-field.component.js"
155422
+ }
155423
+ },
155424
+ {
155425
+ "kind": "field",
155426
+ "name": "_control",
155427
+ "type": {
155428
+ "text": "SbbFormFieldElementControl | null"
155429
+ },
155430
+ "privacy": "private",
155431
+ "default": "null",
155432
+ "inheritedFrom": {
155433
+ "name": "SbbFormFieldElement",
155434
+ "module": "form-field/form-field/form-field.component.js"
155435
+ }
155436
+ },
155437
+ {
155438
+ "kind": "method",
155439
+ "name": "_handleWrapperClick",
155440
+ "privacy": "private",
155441
+ "return": {
155442
+ "type": {
155443
+ "text": "void"
155444
+ }
155445
+ },
155446
+ "parameters": [
155447
+ {
155448
+ "name": "event",
155449
+ "type": {
155450
+ "text": "MouseEvent"
155451
+ }
155452
+ }
155453
+ ],
155454
+ "inheritedFrom": {
155455
+ "name": "SbbFormFieldElement",
155456
+ "module": "form-field/form-field/form-field.component.js"
155457
+ }
155458
+ },
155459
+ {
155460
+ "kind": "method",
155461
+ "name": "_isElementFocusExcluded",
155462
+ "privacy": "private",
155463
+ "return": {
155464
+ "type": {
155465
+ "text": "boolean"
155466
+ }
155467
+ },
155468
+ "parameters": [
155469
+ {
155470
+ "name": "event",
155471
+ "type": {
155472
+ "text": "Event"
155473
+ }
155474
+ }
155475
+ ],
155476
+ "inheritedFrom": {
155477
+ "name": "SbbFormFieldElement",
155478
+ "module": "form-field/form-field/form-field.component.js"
155479
+ }
155480
+ },
155481
+ {
155482
+ "kind": "method",
155483
+ "name": "_onSlotLabelChange",
155484
+ "privacy": "private",
155485
+ "return": {
155486
+ "type": {
155487
+ "text": "void"
155488
+ }
155489
+ },
155490
+ "inheritedFrom": {
155491
+ "name": "SbbFormFieldElement",
155492
+ "module": "form-field/form-field/form-field.component.js"
155493
+ }
155494
+ },
155495
+ {
155496
+ "kind": "method",
155497
+ "name": "_onSlotInputChange",
155498
+ "privacy": "private",
155499
+ "return": {
155500
+ "type": {
155501
+ "text": "void"
155502
+ }
155503
+ },
155504
+ "description": "It is used internally to assign the attributes of `<input>` to `_id` and `_input` and to observe the native readonly and disabled attributes.",
155505
+ "inheritedFrom": {
155506
+ "name": "SbbFormFieldElement",
155507
+ "module": "form-field/form-field/form-field.component.js"
155508
+ }
155509
+ },
155510
+ {
155511
+ "kind": "method",
155512
+ "name": "_assignSlots",
155513
+ "privacy": "private",
155514
+ "return": {
155515
+ "type": {
155516
+ "text": "void"
155517
+ }
155518
+ },
155519
+ "inheritedFrom": {
155520
+ "name": "SbbFormFieldElement",
155521
+ "module": "form-field/form-field/form-field.component.js"
155522
+ }
155523
+ },
155524
+ {
155525
+ "kind": "method",
155526
+ "name": "_connectInputElement",
155527
+ "privacy": "private",
155528
+ "return": {
155529
+ "type": {
155530
+ "text": "'changed' | 'no-input' | 'unchanged'"
155531
+ }
155532
+ },
155533
+ "inheritedFrom": {
155534
+ "name": "SbbFormFieldElement",
155535
+ "module": "form-field/form-field/form-field.component.js"
155536
+ }
155537
+ },
155538
+ {
155539
+ "kind": "method",
155540
+ "name": "_syncLabelInputReferences",
155232
155541
  "privacy": "private",
155233
155542
  "return": {
155234
155543
  "type": {
@@ -155987,791 +156296,421 @@
155987
156296
  "reflects": true,
155988
156297
  "inheritedFrom": {
155989
156298
  "name": "SbbButtonCommonElementMixin",
155990
- "module": "button/common/button-common.js"
155991
- }
155992
- },
155993
- {
155994
- "kind": "field",
155995
- "name": "loading",
155996
- "type": {
155997
- "text": "boolean"
155998
- },
155999
- "privacy": "public",
156000
- "default": "false",
156001
- "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
156002
- "attribute": "loading",
156003
- "reflects": true,
156004
- "inheritedFrom": {
156005
- "name": "SbbButtonCommonElementMixin",
156006
- "module": "button/common/button-common.js"
156007
- }
156008
- },
156009
- {
156010
- "kind": "method",
156011
- "name": "renderTemplate",
156012
- "privacy": "protected",
156013
- "return": {
156014
- "type": {
156015
- "text": "TemplateResult"
156016
- }
156017
- },
156018
- "description": "Override this method to render the component template.",
156019
- "inheritedFrom": {
156020
- "name": "SbbActionBaseElement",
156021
- "module": "core/base-elements/action-base-element.js"
156022
- }
156023
- },
156024
- {
156025
- "kind": "field",
156026
- "name": "negative",
156027
- "type": {
156028
- "text": "boolean"
156029
- },
156030
- "privacy": "public",
156031
- "default": "false",
156032
- "description": "Negative coloring variant flag.",
156033
- "attribute": "negative",
156034
- "reflects": true,
156035
- "inheritedFrom": {
156036
- "name": "SbbNegativeMixin",
156037
- "module": "core/mixins/negative-mixin.js"
156038
- }
156039
- },
156040
- {
156041
- "kind": "field",
156042
- "name": "elementDependencies",
156043
- "type": {
156044
- "text": "SbbElementType[]"
156045
- },
156046
- "privacy": "public",
156047
- "static": true,
156048
- "inheritedFrom": {
156049
- "name": "SbbElement",
156050
- "module": "core/base-elements/element.js"
156051
- },
156052
- "default": "[SbbIconElement]"
156053
- },
156054
- {
156055
- "kind": "field",
156056
- "name": "iconName",
156057
- "type": {
156058
- "text": "string"
156059
- },
156060
- "privacy": "public",
156061
- "default": "''",
156062
- "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.",
156063
- "attribute": "icon-name",
156064
- "inheritedFrom": {
156065
- "name": "SbbIconNameMixin",
156066
- "module": "icon/icon-name-mixin.js"
156067
- }
156068
- },
156069
- {
156070
- "kind": "method",
156071
- "name": "renderIconSlot",
156072
- "privacy": "protected",
156073
- "return": {
156074
- "type": {
156075
- "text": "TemplateResult"
156076
- }
156077
- },
156078
- "parameters": [
156079
- {
156080
- "name": "classname",
156081
- "optional": true,
156082
- "type": {
156083
- "text": "string"
156084
- }
156085
- }
156086
- ],
156087
- "inheritedFrom": {
156088
- "name": "SbbIconNameMixin",
156089
- "module": "icon/icon-name-mixin.js"
156090
- }
156091
- },
156092
- {
156093
- "kind": "method",
156094
- "name": "_renderIconName",
156095
- "privacy": "private",
156096
- "return": {
156097
- "type": {
156098
- "text": "string"
156099
- }
156100
- },
156101
- "inheritedFrom": {
156102
- "name": "SbbIconNameMixin",
156103
- "module": "icon/icon-name-mixin.js"
156104
- }
156105
- },
156106
- {
156107
- "kind": "field",
156108
- "name": "disabledInteractive",
156109
- "type": {
156110
- "text": "boolean"
156111
- },
156112
- "privacy": "public",
156113
- "default": "false",
156114
- "description": "Whether the button should be aria-disabled but stay interactive.",
156115
- "attribute": "disabled-interactive",
156116
- "reflects": true,
156117
- "inheritedFrom": {
156118
- "name": "SbbDisabledInteractiveMixin",
156119
- "module": "core/mixins/disabled-mixin.js"
156120
- }
156121
- },
156122
- {
156123
- "kind": "field",
156124
- "name": "disabled",
156125
- "privacy": "public",
156126
- "description": "Whether the component is disabled.",
156127
- "default": "false",
156128
- "type": {
156129
- "text": "boolean"
156130
- },
156131
- "attribute": "disabled",
156132
- "reflects": true,
156133
- "inheritedFrom": {
156134
- "name": "SbbDisabledMixin",
156135
- "module": "core/mixins/disabled-mixin.js"
156136
- }
156137
- },
156138
- {
156139
- "kind": "field",
156140
- "name": "#disabled",
156141
- "privacy": "private",
156142
- "type": {
156143
- "text": "boolean"
156144
- },
156145
- "default": "false",
156146
- "inheritedFrom": {
156147
- "name": "SbbDisabledMixin",
156148
- "module": "core/mixins/disabled-mixin.js"
156149
- }
156150
- },
156151
- {
156152
- "kind": "method",
156153
- "name": "isDisabledExternally",
156154
- "privacy": "protected",
156155
- "return": {
156156
- "type": {
156157
- "text": "boolean"
156158
- }
156159
- },
156160
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
156161
- "inheritedFrom": {
156162
- "name": "SbbDisabledMixin",
156163
- "module": "core/mixins/disabled-mixin.js"
156164
- }
156165
- },
156166
- {
156167
- "kind": "field",
156168
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
156169
- "type": {
156170
- "text": "array"
156171
- },
156172
- "privacy": "private",
156173
- "readonly": true,
156174
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
156175
- "inheritedFrom": {
156176
- "name": "SbbButtonBaseElement",
156177
- "module": "core/base-elements/button-base-element.js"
156178
- }
156179
- },
156180
- {
156181
- "kind": "field",
156182
- "name": "value",
156183
- "type": {
156184
- "text": "string"
156185
- },
156186
- "privacy": "public",
156187
- "inheritedFrom": {
156188
- "name": "SbbButtonBaseElement",
156189
- "module": "core/base-elements/button-base-element.js"
156190
- },
156191
- "default": "''",
156192
- "description": "Value of the form element.",
156193
- "attribute": "value"
156194
- },
156195
- {
156196
- "kind": "field",
156197
- "name": "type",
156198
- "privacy": "public",
156199
- "description": "The type attribute to use for the button.",
156200
- "default": "'button'",
156201
- "type": {
156202
- "text": "SbbButtonType"
156203
- },
156204
- "attribute": "type",
156205
- "inheritedFrom": {
156206
- "name": "SbbButtonBaseElement",
156207
- "module": "core/base-elements/button-base-element.js"
156208
- }
156209
- },
156210
- {
156211
- "kind": "field",
156212
- "name": "form",
156213
- "type": {
156214
- "text": "HTMLFormElement | null"
156215
- },
156216
- "privacy": "public",
156217
- "description": "The `<form>` element to associate the button with.",
156218
- "inheritedFrom": {
156219
- "name": "SbbButtonBaseElement",
156220
- "module": "core/base-elements/button-base-element.js"
156221
- },
156222
- "attribute": "form"
156223
- },
156224
- {
156225
- "kind": "field",
156226
- "name": "_formId",
156227
- "type": {
156228
- "text": "string"
156229
- },
156230
- "privacy": "private",
156231
- "default": "''",
156232
- "inheritedFrom": {
156233
- "name": "SbbButtonBaseElement",
156234
- "module": "core/base-elements/button-base-element.js"
156235
- }
156236
- },
156237
- {
156238
- "kind": "field",
156239
- "name": "_handleButtonClick",
156240
- "privacy": "private",
156241
- "inheritedFrom": {
156242
- "name": "SbbButtonBaseElement",
156243
- "module": "core/base-elements/button-base-element.js"
156244
- }
156245
- },
156246
- {
156247
- "kind": "method",
156248
- "name": "_requestSubmit",
156249
- "privacy": "private",
156250
- "return": {
156251
- "type": {
156252
- "text": "void"
156253
- }
156254
- },
156255
- "parameters": [
156256
- {
156257
- "name": "form",
156258
- "type": {
156259
- "text": "HTMLFormElement"
156260
- }
156261
- }
156262
- ],
156263
- "inheritedFrom": {
156264
- "name": "SbbButtonBaseElement",
156265
- "module": "core/base-elements/button-base-element.js"
156266
- }
156267
- },
156268
- {
156269
- "kind": "field",
156270
- "name": "_formKeyDown",
156271
- "privacy": "private",
156272
- "inheritedFrom": {
156273
- "name": "SbbButtonBaseElement",
156274
- "module": "core/base-elements/button-base-element.js"
156275
- }
156276
- },
156277
- {
156278
- "kind": "field",
156279
- "name": "formAssociated",
156280
- "type": {
156281
- "text": "boolean"
156282
- },
156283
- "privacy": "public",
156284
- "static": true,
156285
- "default": "true",
156286
- "inheritedFrom": {
156287
- "name": "SbbFormAssociatedMixin",
156288
- "module": "core/mixins/form-associated-mixin.js"
156289
- }
156290
- },
156291
- {
156292
- "kind": "field",
156293
- "name": "name",
156294
- "privacy": "public",
156295
- "description": "Name of the form element. Will be read from name attribute.",
156296
- "type": {
156297
- "text": "string"
156298
- },
156299
- "attribute": "name",
156300
- "inheritedFrom": {
156301
- "name": "SbbFormAssociatedMixin",
156302
- "module": "core/mixins/form-associated-mixin.js"
156303
- }
156304
- },
156305
- {
156306
- "kind": "field",
156307
- "name": "validity",
156308
- "type": {
156309
- "text": "ValidityState"
156310
- },
156311
- "privacy": "public",
156312
- "description": "Returns the ValidityState object for this element.",
156313
- "readonly": true,
156314
- "inheritedFrom": {
156315
- "name": "SbbFormAssociatedMixin",
156316
- "module": "core/mixins/form-associated-mixin.js"
156317
- }
156318
- },
156319
- {
156320
- "kind": "field",
156321
- "name": "validationMessage",
156322
- "type": {
156323
- "text": "string"
156324
- },
156325
- "privacy": "public",
156326
- "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.",
156327
- "readonly": true,
156328
- "inheritedFrom": {
156329
- "name": "SbbFormAssociatedMixin",
156330
- "module": "core/mixins/form-associated-mixin.js"
156331
- }
156332
- },
156333
- {
156334
- "kind": "field",
156335
- "name": "willValidate",
156336
- "type": {
156337
- "text": "boolean"
156338
- },
156339
- "privacy": "public",
156340
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
156341
- "readonly": true,
156342
- "inheritedFrom": {
156343
- "name": "SbbFormAssociatedMixin",
156344
- "module": "core/mixins/form-associated-mixin.js"
156345
- }
156346
- },
156347
- {
156348
- "kind": "field",
156349
- "name": "_validityStates",
156350
- "privacy": "private",
156351
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
156352
- "inheritedFrom": {
156353
- "name": "SbbFormAssociatedMixin",
156354
- "module": "core/mixins/form-associated-mixin.js"
156299
+ "module": "button/common/button-common.js"
156355
156300
  }
156356
156301
  },
156357
156302
  {
156358
156303
  "kind": "field",
156359
- "name": "formDisabled",
156304
+ "name": "loading",
156360
156305
  "type": {
156361
156306
  "text": "boolean"
156362
156307
  },
156363
- "privacy": "protected",
156308
+ "privacy": "public",
156364
156309
  "default": "false",
156365
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
156310
+ "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
156311
+ "attribute": "loading",
156312
+ "reflects": true,
156366
156313
  "inheritedFrom": {
156367
- "name": "SbbFormAssociatedMixin",
156368
- "module": "core/mixins/form-associated-mixin.js"
156314
+ "name": "SbbButtonCommonElementMixin",
156315
+ "module": "button/common/button-common.js"
156369
156316
  }
156370
156317
  },
156371
156318
  {
156372
156319
  "kind": "method",
156373
- "name": "checkValidity",
156374
- "privacy": "public",
156320
+ "name": "renderTemplate",
156321
+ "privacy": "protected",
156375
156322
  "return": {
156376
156323
  "type": {
156377
- "text": "boolean"
156324
+ "text": "TemplateResult"
156378
156325
  }
156379
156326
  },
156380
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
156327
+ "description": "Override this method to render the component template.",
156381
156328
  "inheritedFrom": {
156382
- "name": "SbbFormAssociatedMixin",
156383
- "module": "core/mixins/form-associated-mixin.js"
156329
+ "name": "SbbActionBaseElement",
156330
+ "module": "core/base-elements/action-base-element.js"
156384
156331
  }
156385
156332
  },
156386
156333
  {
156387
- "kind": "method",
156388
- "name": "reportValidity",
156334
+ "kind": "field",
156335
+ "name": "negative",
156336
+ "type": {
156337
+ "text": "boolean"
156338
+ },
156389
156339
  "privacy": "public",
156390
- "return": {
156391
- "type": {
156392
- "text": "boolean"
156393
- }
156340
+ "default": "false",
156341
+ "description": "Negative coloring variant flag.",
156342
+ "attribute": "negative",
156343
+ "reflects": true,
156344
+ "inheritedFrom": {
156345
+ "name": "SbbNegativeMixin",
156346
+ "module": "core/mixins/negative-mixin.js"
156347
+ }
156348
+ },
156349
+ {
156350
+ "kind": "field",
156351
+ "name": "elementDependencies",
156352
+ "type": {
156353
+ "text": "SbbElementType[]"
156394
156354
  },
156395
- "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.",
156355
+ "privacy": "public",
156356
+ "static": true,
156396
156357
  "inheritedFrom": {
156397
- "name": "SbbFormAssociatedMixin",
156398
- "module": "core/mixins/form-associated-mixin.js"
156358
+ "name": "SbbElement",
156359
+ "module": "core/base-elements/element.js"
156360
+ },
156361
+ "default": "[SbbIconElement]"
156362
+ },
156363
+ {
156364
+ "kind": "field",
156365
+ "name": "iconName",
156366
+ "type": {
156367
+ "text": "string"
156368
+ },
156369
+ "privacy": "public",
156370
+ "default": "''",
156371
+ "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.",
156372
+ "attribute": "icon-name",
156373
+ "inheritedFrom": {
156374
+ "name": "SbbIconNameMixin",
156375
+ "module": "icon/icon-name-mixin.js"
156399
156376
  }
156400
156377
  },
156401
156378
  {
156402
156379
  "kind": "method",
156403
- "name": "setCustomValidity",
156404
- "privacy": "public",
156380
+ "name": "renderIconSlot",
156381
+ "privacy": "protected",
156405
156382
  "return": {
156406
156383
  "type": {
156407
- "text": "void"
156384
+ "text": "TemplateResult"
156408
156385
  }
156409
156386
  },
156410
156387
  "parameters": [
156411
156388
  {
156412
- "name": "message",
156389
+ "name": "classname",
156390
+ "optional": true,
156413
156391
  "type": {
156414
156392
  "text": "string"
156415
156393
  }
156416
156394
  }
156417
156395
  ],
156418
- "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.",
156419
156396
  "inheritedFrom": {
156420
- "name": "SbbFormAssociatedMixin",
156421
- "module": "core/mixins/form-associated-mixin.js"
156397
+ "name": "SbbIconNameMixin",
156398
+ "module": "icon/icon-name-mixin.js"
156422
156399
  }
156423
156400
  },
156424
156401
  {
156425
156402
  "kind": "method",
156426
- "name": "_hasDisabledAncestor",
156403
+ "name": "_renderIconName",
156427
156404
  "privacy": "private",
156428
156405
  "return": {
156429
156406
  "type": {
156430
- "text": "boolean"
156407
+ "text": "string"
156431
156408
  }
156432
156409
  },
156433
156410
  "inheritedFrom": {
156434
- "name": "SbbFormAssociatedMixin",
156435
- "module": "core/mixins/form-associated-mixin.js"
156411
+ "name": "SbbIconNameMixin",
156412
+ "module": "icon/icon-name-mixin.js"
156436
156413
  }
156437
156414
  },
156438
156415
  {
156439
- "kind": "method",
156440
- "name": "updateFormValue",
156441
- "privacy": "protected",
156442
- "return": {
156443
- "type": {
156444
- "text": "void"
156445
- }
156416
+ "kind": "field",
156417
+ "name": "disabledInteractive",
156418
+ "type": {
156419
+ "text": "boolean"
156446
156420
  },
156447
- "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",
156421
+ "privacy": "public",
156422
+ "default": "false",
156423
+ "description": "Whether the button should be aria-disabled but stay interactive.",
156424
+ "attribute": "disabled-interactive",
156425
+ "reflects": true,
156448
156426
  "inheritedFrom": {
156449
- "name": "SbbFormAssociatedMixin",
156450
- "module": "core/mixins/form-associated-mixin.js"
156427
+ "name": "SbbDisabledInteractiveMixin",
156428
+ "module": "core/mixins/disabled-mixin.js"
156451
156429
  }
156452
156430
  },
156453
156431
  {
156454
- "kind": "method",
156455
- "name": "formState",
156456
- "privacy": "protected",
156457
- "return": {
156458
- "type": {
156459
- "text": "FormRestoreState"
156460
- }
156432
+ "kind": "field",
156433
+ "name": "disabled",
156434
+ "privacy": "public",
156435
+ "description": "Whether the component is disabled.",
156436
+ "default": "false",
156437
+ "type": {
156438
+ "text": "boolean"
156461
156439
  },
156440
+ "attribute": "disabled",
156441
+ "reflects": true,
156462
156442
  "inheritedFrom": {
156463
- "name": "SbbFormAssociatedMixin",
156464
- "module": "core/mixins/form-associated-mixin.js"
156443
+ "name": "SbbDisabledMixin",
156444
+ "module": "core/mixins/disabled-mixin.js"
156465
156445
  }
156466
156446
  },
156467
156447
  {
156468
- "kind": "method",
156469
- "name": "setValidityFlag",
156470
- "privacy": "protected",
156471
- "return": {
156472
- "type": {
156473
- "text": "void"
156474
- }
156448
+ "kind": "field",
156449
+ "name": "#disabled",
156450
+ "privacy": "private",
156451
+ "type": {
156452
+ "text": "boolean"
156475
156453
  },
156476
- "parameters": [
156477
- {
156478
- "name": "flag",
156479
- "type": {
156480
- "text": "T"
156481
- }
156482
- },
156483
- {
156484
- "name": "message",
156485
- "type": {
156486
- "text": "string"
156487
- }
156488
- },
156489
- {
156490
- "name": "flagValue",
156491
- "optional": true,
156492
- "type": {
156493
- "text": "ValidityStateFlags[T]"
156494
- }
156495
- }
156496
- ],
156497
- "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).",
156454
+ "default": "false",
156498
156455
  "inheritedFrom": {
156499
- "name": "SbbFormAssociatedMixin",
156500
- "module": "core/mixins/form-associated-mixin.js"
156456
+ "name": "SbbDisabledMixin",
156457
+ "module": "core/mixins/disabled-mixin.js"
156501
156458
  }
156502
156459
  },
156503
156460
  {
156504
156461
  "kind": "method",
156505
- "name": "removeValidityFlag",
156462
+ "name": "isDisabledExternally",
156506
156463
  "privacy": "protected",
156507
156464
  "return": {
156508
156465
  "type": {
156509
- "text": "void"
156466
+ "text": "boolean"
156510
156467
  }
156511
156468
  },
156512
- "parameters": [
156513
- {
156514
- "name": "flag",
156515
- "type": {
156516
- "text": "T"
156517
- }
156518
- }
156519
- ],
156520
- "description": "Removes the validity state flag entry and updates validity state.",
156469
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
156521
156470
  "inheritedFrom": {
156522
- "name": "SbbFormAssociatedMixin",
156523
- "module": "core/mixins/form-associated-mixin.js"
156471
+ "name": "SbbDisabledMixin",
156472
+ "module": "core/mixins/disabled-mixin.js"
156524
156473
  }
156525
156474
  },
156526
156475
  {
156527
- "kind": "method",
156528
- "name": "validate",
156529
- "privacy": "protected",
156530
- "return": {
156531
- "type": {
156532
- "text": "void"
156533
- }
156476
+ "kind": "field",
156477
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
156478
+ "type": {
156479
+ "text": "array"
156534
156480
  },
156535
- "description": "To be called whenever the current element needs to be validated.",
156481
+ "privacy": "private",
156482
+ "readonly": true,
156483
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
156536
156484
  "inheritedFrom": {
156537
- "name": "SbbFormAssociatedMixin",
156538
- "module": "core/mixins/form-associated-mixin.js"
156485
+ "name": "SbbButtonBaseElement",
156486
+ "module": "core/base-elements/button-base-element.js"
156539
156487
  }
156540
156488
  },
156541
156489
  {
156542
- "kind": "method",
156543
- "name": "shouldValidate",
156544
- "privacy": "protected",
156545
- "return": {
156546
- "type": {
156547
- "text": "boolean"
156548
- }
156490
+ "kind": "field",
156491
+ "name": "value",
156492
+ "type": {
156493
+ "text": "string"
156549
156494
  },
156550
- "parameters": [
156551
- {
156552
- "name": "name",
156553
- "type": {
156554
- "text": "PropertyKey | undefined"
156555
- }
156556
- }
156557
- ],
156558
- "description": "Whether validation should be run on a property change with the given name.",
156495
+ "privacy": "public",
156559
156496
  "inheritedFrom": {
156560
- "name": "SbbFormAssociatedMixin",
156561
- "module": "core/mixins/form-associated-mixin.js"
156562
- }
156497
+ "name": "SbbButtonBaseElement",
156498
+ "module": "core/base-elements/button-base-element.js"
156499
+ },
156500
+ "default": "''",
156501
+ "description": "Value of the form element.",
156502
+ "attribute": "value"
156563
156503
  },
156564
156504
  {
156565
- "kind": "method",
156566
- "name": "_setInternalValidity",
156567
- "privacy": "private",
156568
- "return": {
156569
- "type": {
156570
- "text": "void"
156571
- }
156505
+ "kind": "field",
156506
+ "name": "type",
156507
+ "privacy": "public",
156508
+ "description": "The type attribute to use for the button.",
156509
+ "default": "'button'",
156510
+ "type": {
156511
+ "text": "SbbButtonType"
156572
156512
  },
156513
+ "attribute": "type",
156573
156514
  "inheritedFrom": {
156574
- "name": "SbbFormAssociatedMixin",
156575
- "module": "core/mixins/form-associated-mixin.js"
156515
+ "name": "SbbButtonBaseElement",
156516
+ "module": "core/base-elements/button-base-element.js"
156576
156517
  }
156577
156518
  },
156578
156519
  {
156579
156520
  "kind": "field",
156580
- "name": "role",
156521
+ "name": "form",
156581
156522
  "type": {
156582
- "text": "ElementInternals['role']"
156523
+ "text": "HTMLFormElement | null"
156583
156524
  },
156584
156525
  "privacy": "public",
156585
- "static": true,
156526
+ "description": "The `<form>` element to associate the button with.",
156586
156527
  "inheritedFrom": {
156587
- "name": "SbbElement",
156588
- "module": "core/base-elements/element.js"
156528
+ "name": "SbbButtonBaseElement",
156529
+ "module": "core/base-elements/button-base-element.js"
156589
156530
  },
156590
- "readonly": true,
156591
- "default": "'button'"
156531
+ "attribute": "form"
156592
156532
  },
156593
156533
  {
156594
156534
  "kind": "field",
156595
- "name": "_preventScrollOnSpaceKeydown",
156535
+ "name": "_formId",
156536
+ "type": {
156537
+ "text": "string"
156538
+ },
156596
156539
  "privacy": "private",
156597
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
156598
- "parameters": [
156599
- {
156600
- "description": "The origin event.",
156601
- "name": "event"
156602
- }
156603
- ],
156540
+ "default": "''",
156604
156541
  "inheritedFrom": {
156605
- "name": "SbbButtonLikeBaseElement",
156542
+ "name": "SbbButtonBaseElement",
156606
156543
  "module": "core/base-elements/button-base-element.js"
156607
156544
  }
156608
156545
  },
156609
156546
  {
156610
156547
  "kind": "field",
156611
- "name": "_removeActiveMarker",
156548
+ "name": "_handleButtonClick",
156612
156549
  "privacy": "private",
156613
156550
  "inheritedFrom": {
156614
- "name": "SbbButtonLikeBaseElement",
156551
+ "name": "SbbButtonBaseElement",
156615
156552
  "module": "core/base-elements/button-base-element.js"
156616
156553
  }
156617
156554
  },
156618
156555
  {
156619
- "kind": "field",
156620
- "name": "_dispatchClickEventOnSpaceKeyup",
156556
+ "kind": "method",
156557
+ "name": "_requestSubmit",
156621
156558
  "privacy": "private",
156622
- "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.",
156559
+ "return": {
156560
+ "type": {
156561
+ "text": "void"
156562
+ }
156563
+ },
156623
156564
  "parameters": [
156624
156565
  {
156625
- "description": "The origin event.",
156626
- "name": "event"
156566
+ "name": "form",
156567
+ "type": {
156568
+ "text": "HTMLFormElement"
156569
+ }
156627
156570
  }
156628
156571
  ],
156629
156572
  "inheritedFrom": {
156630
- "name": "SbbButtonLikeBaseElement",
156573
+ "name": "SbbButtonBaseElement",
156631
156574
  "module": "core/base-elements/button-base-element.js"
156632
156575
  }
156633
156576
  },
156634
156577
  {
156635
156578
  "kind": "field",
156636
- "name": "_dispatchClickEvent",
156579
+ "name": "_formKeyDown",
156637
156580
  "privacy": "private",
156638
156581
  "inheritedFrom": {
156639
- "name": "SbbButtonLikeBaseElement",
156582
+ "name": "SbbButtonBaseElement",
156640
156583
  "module": "core/base-elements/button-base-element.js"
156641
156584
  }
156642
156585
  },
156643
156586
  {
156644
156587
  "kind": "field",
156645
- "name": "maybeDisabled",
156588
+ "name": "formAssociated",
156646
156589
  "type": {
156647
- "text": "boolean | undefined"
156590
+ "text": "boolean"
156648
156591
  },
156649
- "privacy": "protected",
156650
- "readonly": true,
156592
+ "privacy": "public",
156593
+ "static": true,
156594
+ "default": "true",
156651
156595
  "inheritedFrom": {
156652
- "name": "SbbActionBaseElement",
156653
- "module": "core/base-elements/action-base-element.js"
156596
+ "name": "SbbFormAssociatedMixin",
156597
+ "module": "core/mixins/form-associated-mixin.js"
156654
156598
  }
156655
156599
  },
156656
156600
  {
156657
156601
  "kind": "field",
156658
- "name": "maybeDisabledInteractive",
156602
+ "name": "name",
156603
+ "privacy": "public",
156604
+ "description": "Name of the form element. Will be read from name attribute.",
156659
156605
  "type": {
156660
- "text": "boolean | undefined"
156661
- },
156662
- "privacy": "protected",
156663
- "readonly": true,
156664
- "inheritedFrom": {
156665
- "name": "SbbActionBaseElement",
156666
- "module": "core/base-elements/action-base-element.js"
156667
- }
156668
- },
156669
- {
156670
- "kind": "method",
156671
- "name": "setupBaseEventHandlers",
156672
- "privacy": "protected",
156673
- "return": {
156674
- "type": {
156675
- "text": "void"
156676
- }
156606
+ "text": "string"
156677
156607
  },
156608
+ "attribute": "name",
156678
156609
  "inheritedFrom": {
156679
- "name": "SbbActionBaseElement",
156680
- "module": "core/base-elements/action-base-element.js"
156610
+ "name": "SbbFormAssociatedMixin",
156611
+ "module": "core/mixins/form-associated-mixin.js"
156681
156612
  }
156682
156613
  },
156683
156614
  {
156684
156615
  "kind": "field",
156685
- "name": "['_$sbbElement$']",
156616
+ "name": "validity",
156686
156617
  "type": {
156687
- "text": "boolean"
156618
+ "text": "ValidityState"
156688
156619
  },
156689
156620
  "privacy": "public",
156690
- "static": true,
156691
- "default": "true",
156621
+ "description": "Returns the ValidityState object for this element.",
156622
+ "readonly": true,
156692
156623
  "inheritedFrom": {
156693
- "name": "SbbElement",
156694
- "module": "core/base-elements/element.js"
156624
+ "name": "SbbFormAssociatedMixin",
156625
+ "module": "core/mixins/form-associated-mixin.js"
156695
156626
  }
156696
156627
  },
156697
156628
  {
156698
156629
  "kind": "field",
156699
- "name": "_controllers",
156630
+ "name": "validationMessage",
156700
156631
  "type": {
156701
- "text": "Set<SbbReactiveController> | undefined"
156632
+ "text": "string"
156702
156633
  },
156703
- "privacy": "private",
156634
+ "privacy": "public",
156635
+ "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.",
156636
+ "readonly": true,
156704
156637
  "inheritedFrom": {
156705
- "name": "SbbElement",
156706
- "module": "core/base-elements/element.js"
156638
+ "name": "SbbFormAssociatedMixin",
156639
+ "module": "core/mixins/form-associated-mixin.js"
156707
156640
  }
156708
156641
  },
156709
156642
  {
156710
156643
  "kind": "field",
156711
- "name": "_hydrationRequired",
156644
+ "name": "willValidate",
156712
156645
  "type": {
156713
156646
  "text": "boolean"
156714
156647
  },
156715
- "privacy": "private",
156716
- "default": "!!this.shadowRoot",
156648
+ "privacy": "public",
156649
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
156650
+ "readonly": true,
156717
156651
  "inheritedFrom": {
156718
- "name": "SbbElement",
156719
- "module": "core/base-elements/element.js"
156652
+ "name": "SbbFormAssociatedMixin",
156653
+ "module": "core/mixins/form-associated-mixin.js"
156720
156654
  }
156721
156655
  },
156722
156656
  {
156723
156657
  "kind": "field",
156724
- "name": "_hydrationComplete",
156658
+ "name": "_validityStates",
156725
156659
  "privacy": "private",
156726
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
156660
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
156727
156661
  "inheritedFrom": {
156728
- "name": "SbbElement",
156729
- "module": "core/base-elements/element.js"
156662
+ "name": "SbbFormAssociatedMixin",
156663
+ "module": "core/mixins/form-associated-mixin.js"
156730
156664
  }
156731
156665
  },
156732
156666
  {
156733
156667
  "kind": "field",
156734
- "name": "_resolveHydration",
156668
+ "name": "formDisabled",
156735
156669
  "type": {
156736
- "text": "(hydrationRequired: boolean) => void"
156670
+ "text": "boolean"
156737
156671
  },
156738
- "privacy": "private",
156672
+ "privacy": "protected",
156673
+ "default": "false",
156674
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
156739
156675
  "inheritedFrom": {
156740
- "name": "SbbElement",
156741
- "module": "core/base-elements/element.js"
156676
+ "name": "SbbFormAssociatedMixin",
156677
+ "module": "core/mixins/form-associated-mixin.js"
156742
156678
  }
156743
156679
  },
156744
156680
  {
156745
- "kind": "field",
156746
- "name": "_textObserver",
156747
- "type": {
156748
- "text": "MutationObserver | undefined"
156681
+ "kind": "method",
156682
+ "name": "checkValidity",
156683
+ "privacy": "public",
156684
+ "return": {
156685
+ "type": {
156686
+ "text": "boolean"
156687
+ }
156749
156688
  },
156750
- "privacy": "private",
156689
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
156751
156690
  "inheritedFrom": {
156752
- "name": "SbbElement",
156753
- "module": "core/base-elements/element.js"
156691
+ "name": "SbbFormAssociatedMixin",
156692
+ "module": "core/mixins/form-associated-mixin.js"
156754
156693
  }
156755
156694
  },
156756
156695
  {
156757
- "kind": "field",
156758
- "name": "hydrationRequired",
156759
- "type": {
156760
- "text": "boolean"
156696
+ "kind": "method",
156697
+ "name": "reportValidity",
156698
+ "privacy": "public",
156699
+ "return": {
156700
+ "type": {
156701
+ "text": "boolean"
156702
+ }
156761
156703
  },
156762
- "privacy": "protected",
156763
- "description": "Returns whether hydration is required and not completed.",
156764
- "readonly": true,
156704
+ "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.",
156765
156705
  "inheritedFrom": {
156766
- "name": "SbbElement",
156767
- "module": "core/base-elements/element.js"
156768
- },
156769
- "default": "!!this.shadowRoot"
156706
+ "name": "SbbFormAssociatedMixin",
156707
+ "module": "core/mixins/form-associated-mixin.js"
156708
+ }
156770
156709
  },
156771
156710
  {
156772
156711
  "kind": "method",
156773
- "name": "toggleState",
156774
- "privacy": "protected",
156712
+ "name": "setCustomValidity",
156713
+ "privacy": "public",
156775
156714
  "return": {
156776
156715
  "type": {
156777
156716
  "text": "void"
@@ -156779,28 +156718,65 @@
156779
156718
  },
156780
156719
  "parameters": [
156781
156720
  {
156782
- "name": "value",
156721
+ "name": "message",
156783
156722
  "type": {
156784
156723
  "text": "string"
156785
156724
  }
156786
- },
156787
- {
156788
- "name": "force",
156789
- "optional": true,
156790
- "type": {
156791
- "text": "boolean"
156792
- }
156793
156725
  }
156794
156726
  ],
156727
+ "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.",
156795
156728
  "inheritedFrom": {
156796
- "name": "SbbElement",
156797
- "module": "core/base-elements/element.js"
156729
+ "name": "SbbFormAssociatedMixin",
156730
+ "module": "core/mixins/form-associated-mixin.js"
156798
156731
  }
156799
156732
  },
156800
156733
  {
156801
156734
  "kind": "method",
156802
- "name": "_slotchangeHandler",
156735
+ "name": "_hasDisabledAncestor",
156803
156736
  "privacy": "private",
156737
+ "return": {
156738
+ "type": {
156739
+ "text": "boolean"
156740
+ }
156741
+ },
156742
+ "inheritedFrom": {
156743
+ "name": "SbbFormAssociatedMixin",
156744
+ "module": "core/mixins/form-associated-mixin.js"
156745
+ }
156746
+ },
156747
+ {
156748
+ "kind": "method",
156749
+ "name": "updateFormValue",
156750
+ "privacy": "protected",
156751
+ "return": {
156752
+ "type": {
156753
+ "text": "void"
156754
+ }
156755
+ },
156756
+ "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",
156757
+ "inheritedFrom": {
156758
+ "name": "SbbFormAssociatedMixin",
156759
+ "module": "core/mixins/form-associated-mixin.js"
156760
+ }
156761
+ },
156762
+ {
156763
+ "kind": "method",
156764
+ "name": "formState",
156765
+ "privacy": "protected",
156766
+ "return": {
156767
+ "type": {
156768
+ "text": "FormRestoreState"
156769
+ }
156770
+ },
156771
+ "inheritedFrom": {
156772
+ "name": "SbbFormAssociatedMixin",
156773
+ "module": "core/mixins/form-associated-mixin.js"
156774
+ }
156775
+ },
156776
+ {
156777
+ "kind": "method",
156778
+ "name": "setValidityFlag",
156779
+ "privacy": "protected",
156804
156780
  "return": {
156805
156781
  "type": {
156806
156782
  "text": "void"
@@ -156808,27 +156784,35 @@
156808
156784
  },
156809
156785
  "parameters": [
156810
156786
  {
156811
- "name": "event",
156787
+ "name": "flag",
156812
156788
  "type": {
156813
- "text": "Event"
156789
+ "text": "T"
156814
156790
  }
156815
156791
  },
156816
156792
  {
156817
- "name": "slot",
156793
+ "name": "message",
156818
156794
  "type": {
156819
- "text": "HTMLSlotElement"
156795
+ "text": "string"
156796
+ }
156797
+ },
156798
+ {
156799
+ "name": "flagValue",
156800
+ "optional": true,
156801
+ "type": {
156802
+ "text": "ValidityStateFlags[T]"
156820
156803
  }
156821
156804
  }
156822
156805
  ],
156806
+ "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).",
156823
156807
  "inheritedFrom": {
156824
- "name": "SbbElement",
156825
- "module": "core/base-elements/element.js"
156808
+ "name": "SbbFormAssociatedMixin",
156809
+ "module": "core/mixins/form-associated-mixin.js"
156826
156810
  }
156827
156811
  },
156828
156812
  {
156829
156813
  "kind": "method",
156830
- "name": "_handleSlotChangeForSlottedState",
156831
- "privacy": "private",
156814
+ "name": "removeValidityFlag",
156815
+ "privacy": "protected",
156832
156816
  "return": {
156833
156817
  "type": {
156834
156818
  "text": "void"
@@ -156836,327 +156820,184 @@
156836
156820
  },
156837
156821
  "parameters": [
156838
156822
  {
156839
- "name": "slot",
156823
+ "name": "flag",
156840
156824
  "type": {
156841
- "text": "HTMLSlotElement"
156825
+ "text": "T"
156842
156826
  }
156843
156827
  }
156844
156828
  ],
156829
+ "description": "Removes the validity state flag entry and updates validity state.",
156845
156830
  "inheritedFrom": {
156846
- "name": "SbbElement",
156847
- "module": "core/base-elements/element.js"
156831
+ "name": "SbbFormAssociatedMixin",
156832
+ "module": "core/mixins/form-associated-mixin.js"
156848
156833
  }
156849
156834
  },
156850
156835
  {
156851
156836
  "kind": "method",
156852
- "name": "_updateSlottedState",
156853
- "privacy": "private",
156837
+ "name": "validate",
156838
+ "privacy": "protected",
156854
156839
  "return": {
156855
156840
  "type": {
156856
156841
  "text": "void"
156857
156842
  }
156858
156843
  },
156859
- "parameters": [
156860
- {
156861
- "name": "slot",
156862
- "type": {
156863
- "text": "HTMLSlotElement"
156864
- }
156865
- }
156866
- ],
156844
+ "description": "To be called whenever the current element needs to be validated.",
156867
156845
  "inheritedFrom": {
156868
- "name": "SbbElement",
156869
- "module": "core/base-elements/element.js"
156846
+ "name": "SbbFormAssociatedMixin",
156847
+ "module": "core/mixins/form-associated-mixin.js"
156870
156848
  }
156871
156849
  },
156872
156850
  {
156873
156851
  "kind": "method",
156874
- "name": "_observeTextNodesInSlot",
156875
- "privacy": "private",
156852
+ "name": "shouldValidate",
156853
+ "privacy": "protected",
156876
156854
  "return": {
156877
156855
  "type": {
156878
- "text": "void"
156856
+ "text": "boolean"
156879
156857
  }
156880
156858
  },
156881
156859
  "parameters": [
156882
156860
  {
156883
- "name": "slot",
156861
+ "name": "name",
156884
156862
  "type": {
156885
- "text": "HTMLSlotElement"
156863
+ "text": "PropertyKey | undefined"
156886
156864
  }
156887
156865
  }
156888
156866
  ],
156867
+ "description": "Whether validation should be run on a property change with the given name.",
156889
156868
  "inheritedFrom": {
156890
- "name": "SbbElement",
156891
- "module": "core/base-elements/element.js"
156869
+ "name": "SbbFormAssociatedMixin",
156870
+ "module": "core/mixins/form-associated-mixin.js"
156892
156871
  }
156893
156872
  },
156894
156873
  {
156895
156874
  "kind": "method",
156896
- "name": "_hasSlottedContent",
156875
+ "name": "_setInternalValidity",
156897
156876
  "privacy": "private",
156898
156877
  "return": {
156899
156878
  "type": {
156900
- "text": "boolean"
156901
- }
156902
- },
156903
- "parameters": [
156904
- {
156905
- "name": "slot",
156906
- "type": {
156907
- "text": "HTMLSlotElement"
156908
- }
156879
+ "text": "void"
156909
156880
  }
156910
- ],
156911
- "inheritedFrom": {
156912
- "name": "SbbElement",
156913
- "module": "core/base-elements/element.js"
156914
- }
156915
- }
156916
- ],
156917
- "superclass": {
156918
- "name": "SbbSecondaryButtonElement",
156919
- "module": "button.pure.js"
156920
- },
156921
- "tagName": "sbb-timetable-form-swap-button",
156922
- "customElement": true,
156923
- "attributes": [
156924
- {
156925
- "name": "size",
156926
- "type": {
156927
- "text": "SbbButtonSize"
156928
- },
156929
- "description": "Size variant, either l, m or s.",
156930
- "default": "'l' / 's' (lean)",
156931
- "fieldName": "size",
156932
- "inheritedFrom": {
156933
- "name": "SbbButtonCommonElementMixin",
156934
- "module": "button/common/button-common.js"
156935
- }
156936
- },
156937
- {
156938
- "name": "loading",
156939
- "type": {
156940
- "text": "boolean"
156941
- },
156942
- "default": "false",
156943
- "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
156944
- "fieldName": "loading",
156945
- "inheritedFrom": {
156946
- "name": "SbbButtonCommonElementMixin",
156947
- "module": "button/common/button-common.js"
156948
- }
156949
- },
156950
- {
156951
- "name": "negative",
156952
- "type": {
156953
- "text": "boolean"
156954
- },
156955
- "default": "false",
156956
- "description": "Negative coloring variant flag.",
156957
- "fieldName": "negative",
156958
- "inheritedFrom": {
156959
- "name": "SbbNegativeMixin",
156960
- "module": "core/mixins/negative-mixin.js"
156961
- }
156962
- },
156963
- {
156964
- "name": "icon-name",
156965
- "type": {
156966
- "text": "string"
156967
156881
  },
156968
- "default": "''",
156969
- "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.",
156970
- "fieldName": "iconName",
156971
156882
  "inheritedFrom": {
156972
- "name": "SbbIconNameMixin",
156973
- "module": "icon/icon-name-mixin.js"
156883
+ "name": "SbbFormAssociatedMixin",
156884
+ "module": "core/mixins/form-associated-mixin.js"
156974
156885
  }
156975
156886
  },
156976
156887
  {
156977
- "name": "disabled-interactive",
156888
+ "kind": "field",
156889
+ "name": "role",
156978
156890
  "type": {
156979
- "text": "boolean"
156891
+ "text": "ElementInternals['role']"
156980
156892
  },
156981
- "default": "false",
156982
- "description": "Whether the button should be aria-disabled but stay interactive.",
156983
- "fieldName": "disabledInteractive",
156893
+ "privacy": "public",
156894
+ "static": true,
156984
156895
  "inheritedFrom": {
156985
- "name": "SbbDisabledInteractiveMixin",
156986
- "module": "core/mixins/disabled-mixin.js"
156987
- }
156988
- },
156989
- {
156990
- "name": "disabled",
156991
- "description": "Whether the component is disabled.",
156992
- "default": "false",
156993
- "type": {
156994
- "text": "boolean"
156896
+ "name": "SbbElement",
156897
+ "module": "core/base-elements/element.js"
156995
156898
  },
156996
- "fieldName": "disabled",
156997
- "inheritedFrom": {
156998
- "name": "SbbDisabledMixin",
156999
- "module": "core/mixins/disabled-mixin.js"
157000
- }
156899
+ "readonly": true,
156900
+ "default": "'button'"
157001
156901
  },
157002
156902
  {
157003
- "name": "value",
157004
- "type": {
157005
- "text": "string"
157006
- },
157007
- "default": "''",
157008
- "description": "Value of the form element.",
157009
- "fieldName": "value",
156903
+ "kind": "field",
156904
+ "name": "_preventScrollOnSpaceKeydown",
156905
+ "privacy": "private",
156906
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
156907
+ "parameters": [
156908
+ {
156909
+ "description": "The origin event.",
156910
+ "name": "event"
156911
+ }
156912
+ ],
157010
156913
  "inheritedFrom": {
157011
- "name": "SbbButtonBaseElement",
156914
+ "name": "SbbButtonLikeBaseElement",
157012
156915
  "module": "core/base-elements/button-base-element.js"
157013
156916
  }
157014
156917
  },
157015
156918
  {
157016
- "name": "type",
157017
- "description": "The type attribute to use for the button.",
157018
- "default": "'button'",
157019
- "type": {
157020
- "text": "SbbButtonType"
157021
- },
157022
- "fieldName": "type",
156919
+ "kind": "field",
156920
+ "name": "_removeActiveMarker",
156921
+ "privacy": "private",
157023
156922
  "inheritedFrom": {
157024
- "name": "SbbButtonBaseElement",
156923
+ "name": "SbbButtonLikeBaseElement",
157025
156924
  "module": "core/base-elements/button-base-element.js"
157026
156925
  }
157027
156926
  },
157028
156927
  {
157029
- "name": "form",
157030
- "description": "The `<form>` element to associate the button with.",
157031
- "type": {
157032
- "text": "HTMLFormElement | null"
157033
- },
157034
- "fieldName": "form",
156928
+ "kind": "field",
156929
+ "name": "_dispatchClickEventOnSpaceKeyup",
156930
+ "privacy": "private",
156931
+ "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.",
156932
+ "parameters": [
156933
+ {
156934
+ "description": "The origin event.",
156935
+ "name": "event"
156936
+ }
156937
+ ],
157035
156938
  "inheritedFrom": {
157036
- "name": "SbbButtonBaseElement",
156939
+ "name": "SbbButtonLikeBaseElement",
157037
156940
  "module": "core/base-elements/button-base-element.js"
157038
156941
  }
157039
156942
  },
157040
156943
  {
157041
- "name": "name",
157042
- "description": "Name of the form element. Will be read from name attribute.",
157043
- "type": {
157044
- "text": "string"
157045
- },
157046
- "fieldName": "name",
157047
- "inheritedFrom": {
157048
- "name": "SbbFormAssociatedMixin",
157049
- "module": "core/mixins/form-associated-mixin.js"
157050
- }
157051
- }
157052
- ],
157053
- "slots": [
157054
- {
157055
- "description": "Use the unnamed slot to add content to the secondary-button.",
157056
- "name": "",
157057
- "inheritedFrom": {
157058
- "name": "SbbSecondaryButtonElement",
157059
- "module": "button/secondary-button/secondary-button.component.js"
157060
- }
157061
- },
157062
- {
157063
- "description": "Slot used to display the icon, if one is set.",
157064
- "name": "icon",
157065
- "inheritedFrom": {
157066
- "name": "SbbSecondaryButtonElement",
157067
- "module": "button/secondary-button/secondary-button.component.js"
157068
- }
157069
- }
157070
- ],
157071
- "cssProperties": [
157072
- {
157073
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
157074
- "name": "--sbb-button-loading-delay",
157075
- "default": "300ms",
156944
+ "kind": "field",
156945
+ "name": "_dispatchClickEvent",
156946
+ "privacy": "private",
157076
156947
  "inheritedFrom": {
157077
- "name": "SbbSecondaryButtonElement",
157078
- "module": "button/secondary-button/secondary-button.component.js"
156948
+ "name": "SbbButtonLikeBaseElement",
156949
+ "module": "core/base-elements/button-base-element.js"
157079
156950
  }
157080
- }
157081
- ]
157082
- }
157083
- ],
157084
- "exports": [
157085
- {
157086
- "kind": "js",
157087
- "name": "SbbTimetableFormSwapButtonElement",
157088
- "declaration": {
157089
- "name": "SbbTimetableFormSwapButtonElement",
157090
- "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
157091
- }
157092
- }
157093
- ]
157094
- },
157095
- {
157096
- "kind": "javascript-module",
157097
- "path": "timetable-form/timetable-form/timetable-form.component.js",
157098
- "declarations": [
157099
- {
157100
- "kind": "class",
157101
- "description": "Serves as a building block of a sbb 'timetable-form'.\nIt automatically handles the styles and part of its behaviors",
157102
- "name": "SbbTimetableFormElement",
157103
- "slots": [
157104
- {
157105
- "description": "Use the unnamed slot to add content to the 'timetable-form'",
157106
- "name": ""
157107
- }
157108
- ],
157109
- "members": [
156951
+ },
157110
156952
  {
157111
156953
  "kind": "field",
157112
- "name": "elementName",
156954
+ "name": "maybeDisabled",
157113
156955
  "type": {
157114
- "text": "string"
156956
+ "text": "boolean | undefined"
157115
156957
  },
157116
- "privacy": "public",
157117
- "static": true,
156958
+ "privacy": "protected",
157118
156959
  "readonly": true,
157119
- "default": "'sbb-timetable-form'",
157120
156960
  "inheritedFrom": {
157121
- "name": "SbbElement",
157122
- "module": "core/base-elements/element.js"
156961
+ "name": "SbbActionBaseElement",
156962
+ "module": "core/base-elements/action-base-element.js"
157123
156963
  }
157124
156964
  },
157125
156965
  {
157126
156966
  "kind": "field",
157127
- "name": "['_$sbbElement$']",
156967
+ "name": "maybeDisabledInteractive",
157128
156968
  "type": {
157129
- "text": "boolean"
156969
+ "text": "boolean | undefined"
157130
156970
  },
157131
- "privacy": "public",
157132
- "static": true,
157133
- "default": "true",
156971
+ "privacy": "protected",
156972
+ "readonly": true,
157134
156973
  "inheritedFrom": {
157135
- "name": "SbbElement",
157136
- "module": "core/base-elements/element.js"
156974
+ "name": "SbbActionBaseElement",
156975
+ "module": "core/base-elements/action-base-element.js"
157137
156976
  }
157138
156977
  },
157139
156978
  {
157140
- "kind": "field",
157141
- "name": "elementDependencies",
157142
- "type": {
157143
- "text": "SbbElementType[] | undefined"
156979
+ "kind": "method",
156980
+ "name": "setupBaseEventHandlers",
156981
+ "privacy": "protected",
156982
+ "return": {
156983
+ "type": {
156984
+ "text": "void"
156985
+ }
157144
156986
  },
157145
- "privacy": "public",
157146
- "static": true,
157147
156987
  "inheritedFrom": {
157148
- "name": "SbbElement",
157149
- "module": "core/base-elements/element.js"
156988
+ "name": "SbbActionBaseElement",
156989
+ "module": "core/base-elements/action-base-element.js"
157150
156990
  }
157151
156991
  },
157152
156992
  {
157153
156993
  "kind": "field",
157154
- "name": "role",
156994
+ "name": "['_$sbbElement$']",
157155
156995
  "type": {
157156
- "text": "ElementInternals['role'] | undefined"
156996
+ "text": "boolean"
157157
156997
  },
157158
156998
  "privacy": "public",
157159
156999
  "static": true,
157000
+ "default": "true",
157160
157001
  "inheritedFrom": {
157161
157002
  "name": "SbbElement",
157162
157003
  "module": "core/base-elements/element.js"
@@ -157383,20 +157224,179 @@
157383
157224
  }
157384
157225
  ],
157385
157226
  "superclass": {
157386
- "name": "SbbElement",
157387
- "module": "core.js"
157227
+ "name": "SbbSecondaryButtonElement",
157228
+ "module": "button.pure.js"
157388
157229
  },
157389
- "tagName": "sbb-timetable-form",
157390
- "customElement": true
157230
+ "tagName": "sbb-timetable-form-swap-button",
157231
+ "customElement": true,
157232
+ "attributes": [
157233
+ {
157234
+ "name": "size",
157235
+ "type": {
157236
+ "text": "SbbButtonSize"
157237
+ },
157238
+ "description": "Size variant, either l, m or s.",
157239
+ "default": "'l' / 's' (lean)",
157240
+ "fieldName": "size",
157241
+ "inheritedFrom": {
157242
+ "name": "SbbButtonCommonElementMixin",
157243
+ "module": "button/common/button-common.js"
157244
+ }
157245
+ },
157246
+ {
157247
+ "name": "loading",
157248
+ "type": {
157249
+ "text": "boolean"
157250
+ },
157251
+ "default": "false",
157252
+ "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
157253
+ "fieldName": "loading",
157254
+ "inheritedFrom": {
157255
+ "name": "SbbButtonCommonElementMixin",
157256
+ "module": "button/common/button-common.js"
157257
+ }
157258
+ },
157259
+ {
157260
+ "name": "negative",
157261
+ "type": {
157262
+ "text": "boolean"
157263
+ },
157264
+ "default": "false",
157265
+ "description": "Negative coloring variant flag.",
157266
+ "fieldName": "negative",
157267
+ "inheritedFrom": {
157268
+ "name": "SbbNegativeMixin",
157269
+ "module": "core/mixins/negative-mixin.js"
157270
+ }
157271
+ },
157272
+ {
157273
+ "name": "icon-name",
157274
+ "type": {
157275
+ "text": "string"
157276
+ },
157277
+ "default": "''",
157278
+ "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.",
157279
+ "fieldName": "iconName",
157280
+ "inheritedFrom": {
157281
+ "name": "SbbIconNameMixin",
157282
+ "module": "icon/icon-name-mixin.js"
157283
+ }
157284
+ },
157285
+ {
157286
+ "name": "disabled-interactive",
157287
+ "type": {
157288
+ "text": "boolean"
157289
+ },
157290
+ "default": "false",
157291
+ "description": "Whether the button should be aria-disabled but stay interactive.",
157292
+ "fieldName": "disabledInteractive",
157293
+ "inheritedFrom": {
157294
+ "name": "SbbDisabledInteractiveMixin",
157295
+ "module": "core/mixins/disabled-mixin.js"
157296
+ }
157297
+ },
157298
+ {
157299
+ "name": "disabled",
157300
+ "description": "Whether the component is disabled.",
157301
+ "default": "false",
157302
+ "type": {
157303
+ "text": "boolean"
157304
+ },
157305
+ "fieldName": "disabled",
157306
+ "inheritedFrom": {
157307
+ "name": "SbbDisabledMixin",
157308
+ "module": "core/mixins/disabled-mixin.js"
157309
+ }
157310
+ },
157311
+ {
157312
+ "name": "value",
157313
+ "type": {
157314
+ "text": "string"
157315
+ },
157316
+ "default": "''",
157317
+ "description": "Value of the form element.",
157318
+ "fieldName": "value",
157319
+ "inheritedFrom": {
157320
+ "name": "SbbButtonBaseElement",
157321
+ "module": "core/base-elements/button-base-element.js"
157322
+ }
157323
+ },
157324
+ {
157325
+ "name": "type",
157326
+ "description": "The type attribute to use for the button.",
157327
+ "default": "'button'",
157328
+ "type": {
157329
+ "text": "SbbButtonType"
157330
+ },
157331
+ "fieldName": "type",
157332
+ "inheritedFrom": {
157333
+ "name": "SbbButtonBaseElement",
157334
+ "module": "core/base-elements/button-base-element.js"
157335
+ }
157336
+ },
157337
+ {
157338
+ "name": "form",
157339
+ "description": "The `<form>` element to associate the button with.",
157340
+ "type": {
157341
+ "text": "HTMLFormElement | null"
157342
+ },
157343
+ "fieldName": "form",
157344
+ "inheritedFrom": {
157345
+ "name": "SbbButtonBaseElement",
157346
+ "module": "core/base-elements/button-base-element.js"
157347
+ }
157348
+ },
157349
+ {
157350
+ "name": "name",
157351
+ "description": "Name of the form element. Will be read from name attribute.",
157352
+ "type": {
157353
+ "text": "string"
157354
+ },
157355
+ "fieldName": "name",
157356
+ "inheritedFrom": {
157357
+ "name": "SbbFormAssociatedMixin",
157358
+ "module": "core/mixins/form-associated-mixin.js"
157359
+ }
157360
+ }
157361
+ ],
157362
+ "slots": [
157363
+ {
157364
+ "description": "Use the unnamed slot to add content to the secondary-button.",
157365
+ "name": "",
157366
+ "inheritedFrom": {
157367
+ "name": "SbbSecondaryButtonElement",
157368
+ "module": "button/secondary-button/secondary-button.component.js"
157369
+ }
157370
+ },
157371
+ {
157372
+ "description": "Slot used to display the icon, if one is set.",
157373
+ "name": "icon",
157374
+ "inheritedFrom": {
157375
+ "name": "SbbSecondaryButtonElement",
157376
+ "module": "button/secondary-button/secondary-button.component.js"
157377
+ }
157378
+ }
157379
+ ],
157380
+ "cssProperties": [
157381
+ {
157382
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
157383
+ "name": "--sbb-button-loading-delay",
157384
+ "default": "300ms",
157385
+ "inheritedFrom": {
157386
+ "name": "SbbSecondaryButtonElement",
157387
+ "module": "button/secondary-button/secondary-button.component.js"
157388
+ }
157389
+ }
157390
+ ]
157391
157391
  }
157392
157392
  ],
157393
157393
  "exports": [
157394
157394
  {
157395
157395
  "kind": "js",
157396
- "name": "SbbTimetableFormElement",
157396
+ "name": "SbbTimetableFormSwapButtonElement",
157397
157397
  "declaration": {
157398
- "name": "SbbTimetableFormElement",
157399
- "module": "timetable-form/timetable-form/timetable-form.component.js"
157398
+ "name": "SbbTimetableFormSwapButtonElement",
157399
+ "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
157400
157400
  }
157401
157401
  }
157402
157402
  ]