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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68537,229 +68537,6 @@
68537
68537
  }
68538
68538
  ]
68539
68539
  },
68540
- {
68541
- "kind": "javascript-module",
68542
- "path": "core/decorators/base.js",
68543
- "declarations": [],
68544
- "exports": []
68545
- },
68546
- {
68547
- "kind": "javascript-module",
68548
- "path": "core/decorators/force-type.js",
68549
- "declarations": [
68550
- {
68551
- "kind": "function",
68552
- "name": "forceType",
68553
- "return": {
68554
- "type": {
68555
- "text": "PropertyDecorator"
68556
- }
68557
- },
68558
- "parameters": [
68559
- {
68560
- "name": "convert",
68561
- "optional": true,
68562
- "type": {
68563
- "text": "(v: unknown) => V"
68564
- }
68565
- }
68566
- ],
68567
- "description": "Decorator that forces the value of a property or getter/setter\nto the defined type."
68568
- }
68569
- ],
68570
- "exports": [
68571
- {
68572
- "kind": "js",
68573
- "name": "forceType",
68574
- "declaration": {
68575
- "name": "forceType",
68576
- "module": "core/decorators/force-type.js"
68577
- }
68578
- }
68579
- ]
68580
- },
68581
- {
68582
- "kind": "javascript-module",
68583
- "path": "core/decorators/get-override.js",
68584
- "declarations": [
68585
- {
68586
- "kind": "function",
68587
- "name": "getOverride",
68588
- "parameters": [
68589
- {
68590
- "name": "callback",
68591
- "type": {
68592
- "text": "(instance: C, innerValue: V) => V"
68593
- }
68594
- }
68595
- ],
68596
- "description": "Decorator that overrides the underlying getter of the accessor."
68597
- }
68598
- ],
68599
- "exports": [
68600
- {
68601
- "kind": "js",
68602
- "name": "getOverride",
68603
- "declaration": {
68604
- "name": "getOverride",
68605
- "module": "core/decorators/get-override.js"
68606
- }
68607
- }
68608
- ]
68609
- },
68610
- {
68611
- "kind": "javascript-module",
68612
- "path": "core/decorators/handle-distinct-change.js",
68613
- "declarations": [
68614
- {
68615
- "kind": "function",
68616
- "name": "handleDistinctChange",
68617
- "parameters": [
68618
- {
68619
- "name": "callback",
68620
- "type": {
68621
- "text": "(instance: C, newValue: V, oldValue: V | undefined) => void"
68622
- }
68623
- }
68624
- ],
68625
- "description": "Decorator that calls the given callback when the value\nof the associated property is changed."
68626
- }
68627
- ],
68628
- "exports": [
68629
- {
68630
- "kind": "js",
68631
- "name": "handleDistinctChange",
68632
- "declaration": {
68633
- "name": "handleDistinctChange",
68634
- "module": "core/decorators/handle-distinct-change.js"
68635
- }
68636
- }
68637
- ]
68638
- },
68639
- {
68640
- "kind": "javascript-module",
68641
- "path": "core/decorators/host-attributes.js",
68642
- "declarations": [
68643
- {
68644
- "kind": "function",
68645
- "name": "hostAttributes",
68646
- "parameters": [
68647
- {
68648
- "name": "attributes",
68649
- "type": {
68650
- "text": "Record<string, string | null>"
68651
- },
68652
- "description": "A record of attributes to apply to the element."
68653
- }
68654
- ],
68655
- "description": "Applies the given attributes to the related element.\nIf an empty string is passed as a value, the attribute will be set\nwithout value.",
68656
- "deprecated": "Will be removed with next major version."
68657
- }
68658
- ],
68659
- "exports": [
68660
- {
68661
- "kind": "js",
68662
- "name": "hostAttributes",
68663
- "declaration": {
68664
- "name": "hostAttributes",
68665
- "module": "core/decorators/host-attributes.js"
68666
- }
68667
- }
68668
- ]
68669
- },
68670
- {
68671
- "kind": "javascript-module",
68672
- "path": "core/decorators/id-reference.js",
68673
- "declarations": [
68674
- {
68675
- "kind": "function",
68676
- "name": "idReference",
68677
- "description": "Accessor decorator that resolves id references dynamically.\nIf a string is passed (e.g. from an attribute), it will be resolved to the element with that id.\nThis decorator observes the connected document fragment for changes to the id attribute\nand child elements and if any id reference is established or removed, it will\nupdate the associated property."
68678
- }
68679
- ],
68680
- "exports": [
68681
- {
68682
- "kind": "js",
68683
- "name": "idReference",
68684
- "declaration": {
68685
- "name": "idReference",
68686
- "module": "core/decorators/id-reference.js"
68687
- }
68688
- }
68689
- ]
68690
- },
68691
- {
68692
- "kind": "javascript-module",
68693
- "path": "core/decorators/omit-empty-converter.js",
68694
- "declarations": [
68695
- {
68696
- "kind": "variable",
68697
- "name": "omitEmptyConverter",
68698
- "type": {
68699
- "text": "ComplexAttributeConverter"
68700
- },
68701
- "default": "{ toAttribute(value, type) { return ((type === String || type === undefined) && value === '') || (type === Number && isNaN(value as number)) ? null : defaultConverter.toAttribute!(value, type); }, }",
68702
- "description": "Converts empty values to null, which will not be rendered as attributes.\ne.g. for string properties, an empty value '' will not be rendered as an\nempty attribute, as would be the default with lit."
68703
- }
68704
- ],
68705
- "exports": [
68706
- {
68707
- "kind": "js",
68708
- "name": "omitEmptyConverter",
68709
- "declaration": {
68710
- "name": "omitEmptyConverter",
68711
- "module": "core/decorators/omit-empty-converter.js"
68712
- }
68713
- }
68714
- ]
68715
- },
68716
- {
68717
- "kind": "javascript-module",
68718
- "path": "core/decorators/plain-date.js",
68719
- "declarations": [
68720
- {
68721
- "kind": "variable",
68722
- "name": "plainDateConverter",
68723
- "type": {
68724
- "text": "ComplexAttributeConverter"
68725
- },
68726
- "default": "{ toAttribute(value, _type) { const dateAdapter = readConfig().datetime?.dateAdapter ?? defaultDateAdapter; return dateAdapter.isValid(value) ? dateAdapter.toIso8601(value) : null; }, }",
68727
- "description": "Will convert date object values to ISO8601 formatted strings as attributes.\nShould be used together with the `plainDate` decorator."
68728
- },
68729
- {
68730
- "kind": "function",
68731
- "name": "plainDate",
68732
- "parameters": [
68733
- {
68734
- "name": "config",
68735
- "optional": true,
68736
- "type": {
68737
- "text": "SbbPlainDateConfiguration"
68738
- }
68739
- }
68740
- ],
68741
- "description": "Decorator that tries to deserialize the given value to a date object\nand adapts the getter to only return a copy of the internal value,\nin order to avoid outside manipulation of date objects."
68742
- }
68743
- ],
68744
- "exports": [
68745
- {
68746
- "kind": "js",
68747
- "name": "plainDateConverter",
68748
- "declaration": {
68749
- "name": "plainDateConverter",
68750
- "module": "core/decorators/plain-date.js"
68751
- }
68752
- },
68753
- {
68754
- "kind": "js",
68755
- "name": "plainDate",
68756
- "declaration": {
68757
- "name": "plainDate",
68758
- "module": "core/decorators/plain-date.js"
68759
- }
68760
- }
68761
- ]
68762
- },
68763
68540
  {
68764
68541
  "kind": "javascript-module",
68765
68542
  "path": "core/dom/animation.js",
@@ -69198,6 +68975,229 @@
69198
68975
  }
69199
68976
  ]
69200
68977
  },
68978
+ {
68979
+ "kind": "javascript-module",
68980
+ "path": "core/decorators/base.js",
68981
+ "declarations": [],
68982
+ "exports": []
68983
+ },
68984
+ {
68985
+ "kind": "javascript-module",
68986
+ "path": "core/decorators/force-type.js",
68987
+ "declarations": [
68988
+ {
68989
+ "kind": "function",
68990
+ "name": "forceType",
68991
+ "return": {
68992
+ "type": {
68993
+ "text": "PropertyDecorator"
68994
+ }
68995
+ },
68996
+ "parameters": [
68997
+ {
68998
+ "name": "convert",
68999
+ "optional": true,
69000
+ "type": {
69001
+ "text": "(v: unknown) => V"
69002
+ }
69003
+ }
69004
+ ],
69005
+ "description": "Decorator that forces the value of a property or getter/setter\nto the defined type."
69006
+ }
69007
+ ],
69008
+ "exports": [
69009
+ {
69010
+ "kind": "js",
69011
+ "name": "forceType",
69012
+ "declaration": {
69013
+ "name": "forceType",
69014
+ "module": "core/decorators/force-type.js"
69015
+ }
69016
+ }
69017
+ ]
69018
+ },
69019
+ {
69020
+ "kind": "javascript-module",
69021
+ "path": "core/decorators/get-override.js",
69022
+ "declarations": [
69023
+ {
69024
+ "kind": "function",
69025
+ "name": "getOverride",
69026
+ "parameters": [
69027
+ {
69028
+ "name": "callback",
69029
+ "type": {
69030
+ "text": "(instance: C, innerValue: V) => V"
69031
+ }
69032
+ }
69033
+ ],
69034
+ "description": "Decorator that overrides the underlying getter of the accessor."
69035
+ }
69036
+ ],
69037
+ "exports": [
69038
+ {
69039
+ "kind": "js",
69040
+ "name": "getOverride",
69041
+ "declaration": {
69042
+ "name": "getOverride",
69043
+ "module": "core/decorators/get-override.js"
69044
+ }
69045
+ }
69046
+ ]
69047
+ },
69048
+ {
69049
+ "kind": "javascript-module",
69050
+ "path": "core/decorators/handle-distinct-change.js",
69051
+ "declarations": [
69052
+ {
69053
+ "kind": "function",
69054
+ "name": "handleDistinctChange",
69055
+ "parameters": [
69056
+ {
69057
+ "name": "callback",
69058
+ "type": {
69059
+ "text": "(instance: C, newValue: V, oldValue: V | undefined) => void"
69060
+ }
69061
+ }
69062
+ ],
69063
+ "description": "Decorator that calls the given callback when the value\nof the associated property is changed."
69064
+ }
69065
+ ],
69066
+ "exports": [
69067
+ {
69068
+ "kind": "js",
69069
+ "name": "handleDistinctChange",
69070
+ "declaration": {
69071
+ "name": "handleDistinctChange",
69072
+ "module": "core/decorators/handle-distinct-change.js"
69073
+ }
69074
+ }
69075
+ ]
69076
+ },
69077
+ {
69078
+ "kind": "javascript-module",
69079
+ "path": "core/decorators/host-attributes.js",
69080
+ "declarations": [
69081
+ {
69082
+ "kind": "function",
69083
+ "name": "hostAttributes",
69084
+ "parameters": [
69085
+ {
69086
+ "name": "attributes",
69087
+ "type": {
69088
+ "text": "Record<string, string | null>"
69089
+ },
69090
+ "description": "A record of attributes to apply to the element."
69091
+ }
69092
+ ],
69093
+ "description": "Applies the given attributes to the related element.\nIf an empty string is passed as a value, the attribute will be set\nwithout value.",
69094
+ "deprecated": "Will be removed with next major version."
69095
+ }
69096
+ ],
69097
+ "exports": [
69098
+ {
69099
+ "kind": "js",
69100
+ "name": "hostAttributes",
69101
+ "declaration": {
69102
+ "name": "hostAttributes",
69103
+ "module": "core/decorators/host-attributes.js"
69104
+ }
69105
+ }
69106
+ ]
69107
+ },
69108
+ {
69109
+ "kind": "javascript-module",
69110
+ "path": "core/decorators/id-reference.js",
69111
+ "declarations": [
69112
+ {
69113
+ "kind": "function",
69114
+ "name": "idReference",
69115
+ "description": "Accessor decorator that resolves id references dynamically.\nIf a string is passed (e.g. from an attribute), it will be resolved to the element with that id.\nThis decorator observes the connected document fragment for changes to the id attribute\nand child elements and if any id reference is established or removed, it will\nupdate the associated property."
69116
+ }
69117
+ ],
69118
+ "exports": [
69119
+ {
69120
+ "kind": "js",
69121
+ "name": "idReference",
69122
+ "declaration": {
69123
+ "name": "idReference",
69124
+ "module": "core/decorators/id-reference.js"
69125
+ }
69126
+ }
69127
+ ]
69128
+ },
69129
+ {
69130
+ "kind": "javascript-module",
69131
+ "path": "core/decorators/omit-empty-converter.js",
69132
+ "declarations": [
69133
+ {
69134
+ "kind": "variable",
69135
+ "name": "omitEmptyConverter",
69136
+ "type": {
69137
+ "text": "ComplexAttributeConverter"
69138
+ },
69139
+ "default": "{ toAttribute(value, type) { return ((type === String || type === undefined) && value === '') || (type === Number && isNaN(value as number)) ? null : defaultConverter.toAttribute!(value, type); }, }",
69140
+ "description": "Converts empty values to null, which will not be rendered as attributes.\ne.g. for string properties, an empty value '' will not be rendered as an\nempty attribute, as would be the default with lit."
69141
+ }
69142
+ ],
69143
+ "exports": [
69144
+ {
69145
+ "kind": "js",
69146
+ "name": "omitEmptyConverter",
69147
+ "declaration": {
69148
+ "name": "omitEmptyConverter",
69149
+ "module": "core/decorators/omit-empty-converter.js"
69150
+ }
69151
+ }
69152
+ ]
69153
+ },
69154
+ {
69155
+ "kind": "javascript-module",
69156
+ "path": "core/decorators/plain-date.js",
69157
+ "declarations": [
69158
+ {
69159
+ "kind": "variable",
69160
+ "name": "plainDateConverter",
69161
+ "type": {
69162
+ "text": "ComplexAttributeConverter"
69163
+ },
69164
+ "default": "{ toAttribute(value, _type) { const dateAdapter = readConfig().datetime?.dateAdapter ?? defaultDateAdapter; return dateAdapter.isValid(value) ? dateAdapter.toIso8601(value) : null; }, }",
69165
+ "description": "Will convert date object values to ISO8601 formatted strings as attributes.\nShould be used together with the `plainDate` decorator."
69166
+ },
69167
+ {
69168
+ "kind": "function",
69169
+ "name": "plainDate",
69170
+ "parameters": [
69171
+ {
69172
+ "name": "config",
69173
+ "optional": true,
69174
+ "type": {
69175
+ "text": "SbbPlainDateConfiguration"
69176
+ }
69177
+ }
69178
+ ],
69179
+ "description": "Decorator that tries to deserialize the given value to a date object\nand adapts the getter to only return a copy of the internal value,\nin order to avoid outside manipulation of date objects."
69180
+ }
69181
+ ],
69182
+ "exports": [
69183
+ {
69184
+ "kind": "js",
69185
+ "name": "plainDateConverter",
69186
+ "declaration": {
69187
+ "name": "plainDateConverter",
69188
+ "module": "core/decorators/plain-date.js"
69189
+ }
69190
+ },
69191
+ {
69192
+ "kind": "js",
69193
+ "name": "plainDate",
69194
+ "declaration": {
69195
+ "name": "plainDate",
69196
+ "module": "core/decorators/plain-date.js"
69197
+ }
69198
+ }
69199
+ ]
69200
+ },
69201
69201
  {
69202
69202
  "kind": "javascript-module",
69203
69203
  "path": "core/eventing/composed-path-has-attribute.js",
@@ -109749,176 +109749,6 @@
109749
109749
  }
109750
109750
  ]
109751
109751
  },
109752
- {
109753
- "kind": "javascript-module",
109754
- "path": "navigation/common/navigation-action-common.js",
109755
- "declarations": [
109756
- {
109757
- "kind": "class",
109758
- "description": "",
109759
- "name": "SbbNavigationActionCommonElementMixinType",
109760
- "members": [
109761
- {
109762
- "kind": "field",
109763
- "name": "size",
109764
- "type": {
109765
- "text": "SbbNavigationActionSize"
109766
- },
109767
- "privacy": "public"
109768
- },
109769
- {
109770
- "kind": "field",
109771
- "name": "marker",
109772
- "type": {
109773
- "text": "SbbNavigationMarkerElement | null"
109774
- },
109775
- "privacy": "public",
109776
- "readonly": true
109777
- },
109778
- {
109779
- "kind": "field",
109780
- "name": "section",
109781
- "type": {
109782
- "text": "SbbNavigationSectionElement | null"
109783
- },
109784
- "privacy": "public",
109785
- "readonly": true
109786
- },
109787
- {
109788
- "kind": "field",
109789
- "name": "connectedSection",
109790
- "type": {
109791
- "text": "SbbNavigationSectionElement | undefined"
109792
- },
109793
- "privacy": "public"
109794
- }
109795
- ]
109796
- },
109797
- {
109798
- "kind": "mixin",
109799
- "description": "",
109800
- "name": "SbbNavigationActionCommonElementMixin",
109801
- "members": [
109802
- {
109803
- "kind": "field",
109804
- "name": "styles",
109805
- "type": {
109806
- "text": "CSSResultGroup"
109807
- },
109808
- "privacy": "public",
109809
- "static": true,
109810
- "default": "[boxSizingStyles, unsafeCSS(style)]"
109811
- },
109812
- {
109813
- "kind": "field",
109814
- "name": "size",
109815
- "type": {
109816
- "text": "SbbNavigationActionSize"
109817
- },
109818
- "privacy": "public",
109819
- "description": "Action size variant, either s, m or l.",
109820
- "default": "'l' / 's' (lean)",
109821
- "attribute": "size",
109822
- "reflects": true
109823
- },
109824
- {
109825
- "kind": "field",
109826
- "name": "connectedSection",
109827
- "type": {
109828
- "text": "SbbNavigationSectionElement | undefined"
109829
- },
109830
- "privacy": "public",
109831
- "description": "The section that is being controlled by the action, if any."
109832
- },
109833
- {
109834
- "kind": "field",
109835
- "name": "marker",
109836
- "type": {
109837
- "text": "SbbNavigationMarkerElement | null"
109838
- },
109839
- "privacy": "public",
109840
- "description": "The navigation marker in which the action is nested.",
109841
- "readonly": true
109842
- },
109843
- {
109844
- "kind": "field",
109845
- "name": "section",
109846
- "type": {
109847
- "text": "SbbNavigationSectionElement | null"
109848
- },
109849
- "privacy": "public",
109850
- "description": "The section in which the action is nested.",
109851
- "readonly": true
109852
- },
109853
- {
109854
- "kind": "field",
109855
- "name": "_navigationMarker",
109856
- "type": {
109857
- "text": "SbbNavigationMarkerElement | null"
109858
- },
109859
- "privacy": "private",
109860
- "default": "null"
109861
- },
109862
- {
109863
- "kind": "field",
109864
- "name": "_navigationSection",
109865
- "type": {
109866
- "text": "SbbNavigationSectionElement | null"
109867
- },
109868
- "privacy": "private",
109869
- "default": "null"
109870
- },
109871
- {
109872
- "kind": "method",
109873
- "name": "renderTemplate",
109874
- "privacy": "protected",
109875
- "return": {
109876
- "type": {
109877
- "text": "TemplateResult"
109878
- }
109879
- }
109880
- }
109881
- ],
109882
- "attributes": [
109883
- {
109884
- "name": "size",
109885
- "type": {
109886
- "text": "SbbNavigationActionSize"
109887
- },
109888
- "description": "Action size variant, either s, m or l.",
109889
- "default": "'l' / 's' (lean)",
109890
- "fieldName": "size"
109891
- }
109892
- ],
109893
- "parameters": [
109894
- {
109895
- "name": "superClass",
109896
- "type": {
109897
- "text": "T"
109898
- }
109899
- }
109900
- ]
109901
- }
109902
- ],
109903
- "exports": [
109904
- {
109905
- "kind": "js",
109906
- "name": "SbbNavigationActionCommonElementMixinType",
109907
- "declaration": {
109908
- "name": "SbbNavigationActionCommonElementMixinType",
109909
- "module": "navigation/common/navigation-action-common.js"
109910
- }
109911
- },
109912
- {
109913
- "kind": "js",
109914
- "name": "SbbNavigationActionCommonElementMixin",
109915
- "declaration": {
109916
- "name": "SbbNavigationActionCommonElementMixin",
109917
- "module": "navigation/common/navigation-action-common.js"
109918
- }
109919
- }
109920
- ]
109921
- },
109922
109752
  {
109923
109753
  "kind": "javascript-module",
109924
109754
  "path": "mini-calendar/mini-calendar-month/mini-calendar-month.component.js",
@@ -110137,6 +109967,176 @@
110137
109967
  }
110138
109968
  ]
110139
109969
  },
109970
+ {
109971
+ "kind": "javascript-module",
109972
+ "path": "navigation/common/navigation-action-common.js",
109973
+ "declarations": [
109974
+ {
109975
+ "kind": "class",
109976
+ "description": "",
109977
+ "name": "SbbNavigationActionCommonElementMixinType",
109978
+ "members": [
109979
+ {
109980
+ "kind": "field",
109981
+ "name": "size",
109982
+ "type": {
109983
+ "text": "SbbNavigationActionSize"
109984
+ },
109985
+ "privacy": "public"
109986
+ },
109987
+ {
109988
+ "kind": "field",
109989
+ "name": "marker",
109990
+ "type": {
109991
+ "text": "SbbNavigationMarkerElement | null"
109992
+ },
109993
+ "privacy": "public",
109994
+ "readonly": true
109995
+ },
109996
+ {
109997
+ "kind": "field",
109998
+ "name": "section",
109999
+ "type": {
110000
+ "text": "SbbNavigationSectionElement | null"
110001
+ },
110002
+ "privacy": "public",
110003
+ "readonly": true
110004
+ },
110005
+ {
110006
+ "kind": "field",
110007
+ "name": "connectedSection",
110008
+ "type": {
110009
+ "text": "SbbNavigationSectionElement | undefined"
110010
+ },
110011
+ "privacy": "public"
110012
+ }
110013
+ ]
110014
+ },
110015
+ {
110016
+ "kind": "mixin",
110017
+ "description": "",
110018
+ "name": "SbbNavigationActionCommonElementMixin",
110019
+ "members": [
110020
+ {
110021
+ "kind": "field",
110022
+ "name": "styles",
110023
+ "type": {
110024
+ "text": "CSSResultGroup"
110025
+ },
110026
+ "privacy": "public",
110027
+ "static": true,
110028
+ "default": "[boxSizingStyles, unsafeCSS(style)]"
110029
+ },
110030
+ {
110031
+ "kind": "field",
110032
+ "name": "size",
110033
+ "type": {
110034
+ "text": "SbbNavigationActionSize"
110035
+ },
110036
+ "privacy": "public",
110037
+ "description": "Action size variant, either s, m or l.",
110038
+ "default": "'l' / 's' (lean)",
110039
+ "attribute": "size",
110040
+ "reflects": true
110041
+ },
110042
+ {
110043
+ "kind": "field",
110044
+ "name": "connectedSection",
110045
+ "type": {
110046
+ "text": "SbbNavigationSectionElement | undefined"
110047
+ },
110048
+ "privacy": "public",
110049
+ "description": "The section that is being controlled by the action, if any."
110050
+ },
110051
+ {
110052
+ "kind": "field",
110053
+ "name": "marker",
110054
+ "type": {
110055
+ "text": "SbbNavigationMarkerElement | null"
110056
+ },
110057
+ "privacy": "public",
110058
+ "description": "The navigation marker in which the action is nested.",
110059
+ "readonly": true
110060
+ },
110061
+ {
110062
+ "kind": "field",
110063
+ "name": "section",
110064
+ "type": {
110065
+ "text": "SbbNavigationSectionElement | null"
110066
+ },
110067
+ "privacy": "public",
110068
+ "description": "The section in which the action is nested.",
110069
+ "readonly": true
110070
+ },
110071
+ {
110072
+ "kind": "field",
110073
+ "name": "_navigationMarker",
110074
+ "type": {
110075
+ "text": "SbbNavigationMarkerElement | null"
110076
+ },
110077
+ "privacy": "private",
110078
+ "default": "null"
110079
+ },
110080
+ {
110081
+ "kind": "field",
110082
+ "name": "_navigationSection",
110083
+ "type": {
110084
+ "text": "SbbNavigationSectionElement | null"
110085
+ },
110086
+ "privacy": "private",
110087
+ "default": "null"
110088
+ },
110089
+ {
110090
+ "kind": "method",
110091
+ "name": "renderTemplate",
110092
+ "privacy": "protected",
110093
+ "return": {
110094
+ "type": {
110095
+ "text": "TemplateResult"
110096
+ }
110097
+ }
110098
+ }
110099
+ ],
110100
+ "attributes": [
110101
+ {
110102
+ "name": "size",
110103
+ "type": {
110104
+ "text": "SbbNavigationActionSize"
110105
+ },
110106
+ "description": "Action size variant, either s, m or l.",
110107
+ "default": "'l' / 's' (lean)",
110108
+ "fieldName": "size"
110109
+ }
110110
+ ],
110111
+ "parameters": [
110112
+ {
110113
+ "name": "superClass",
110114
+ "type": {
110115
+ "text": "T"
110116
+ }
110117
+ }
110118
+ ]
110119
+ }
110120
+ ],
110121
+ "exports": [
110122
+ {
110123
+ "kind": "js",
110124
+ "name": "SbbNavigationActionCommonElementMixinType",
110125
+ "declaration": {
110126
+ "name": "SbbNavigationActionCommonElementMixinType",
110127
+ "module": "navigation/common/navigation-action-common.js"
110128
+ }
110129
+ },
110130
+ {
110131
+ "kind": "js",
110132
+ "name": "SbbNavigationActionCommonElementMixin",
110133
+ "declaration": {
110134
+ "name": "SbbNavigationActionCommonElementMixin",
110135
+ "module": "navigation/common/navigation-action-common.js"
110136
+ }
110137
+ }
110138
+ ]
110139
+ },
110140
110140
  {
110141
110141
  "kind": "javascript-module",
110142
110142
  "path": "navigation/navigation/navigation.component.js",
@@ -129019,12 +129019,12 @@
129019
129019
  },
129020
129020
  {
129021
129021
  "kind": "javascript-module",
129022
- "path": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js",
129022
+ "path": "timetable-form/timetable-form-field/timetable-form-field.component.js",
129023
129023
  "declarations": [
129024
129024
  {
129025
129025
  "kind": "class",
129026
- "description": "An extension of `sbb-secondary-button` to be used inside the `sbb-timetable-form`.\nWhen placed between two `sbb-timetable-form-field`, the 'click' swaps the value of the sibling inputs.",
129027
- "name": "SbbTimetableFormSwapButtonElement",
129026
+ "description": "Extends the `sbb-form-field`. Meant to be used inside a `sbb-timetable-form`.",
129027
+ "name": "SbbTimetableFormFieldElement",
129028
129028
  "members": [
129029
129029
  {
129030
129030
  "kind": "field",
@@ -129035,88 +129035,83 @@
129035
129035
  "privacy": "public",
129036
129036
  "static": true,
129037
129037
  "readonly": true,
129038
+ "default": "'sbb-timetable-form-field'",
129038
129039
  "inheritedFrom": {
129039
129040
  "name": "SbbElement",
129040
129041
  "module": "core/base-elements/element.js"
129041
- },
129042
- "default": "'sbb-timetable-form-swap-button'"
129042
+ }
129043
129043
  },
129044
129044
  {
129045
129045
  "kind": "field",
129046
- "name": "_languageController",
129047
- "privacy": "private",
129048
- "default": "new SbbLanguageController(this)"
129049
- },
129050
- {
129051
- "kind": "method",
129052
- "name": "_invertFieldValues",
129053
- "privacy": "private",
129054
- "return": {
129055
- "type": {
129056
- "text": "void"
129057
- }
129046
+ "name": "_routeIcon",
129047
+ "type": {
129048
+ "text": "boolean"
129058
129049
  },
129059
- "description": "Search for `sbb-timetable-form-field` inputs, invert their values and dispatch the respective input and change events"
129050
+ "privacy": "private",
129051
+ "default": "false"
129060
129052
  },
129061
129053
  {
129062
- "kind": "method",
129063
- "name": "renderIconName",
129064
- "privacy": "protected",
129065
- "return": {
129066
- "type": {
129067
- "text": "string"
129068
- }
129054
+ "kind": "field",
129055
+ "name": "borderless",
129056
+ "type": {
129057
+ "text": "boolean"
129069
129058
  },
129059
+ "privacy": "public",
129060
+ "default": "true",
129061
+ "description": "Whether to display the form field without a border.",
129062
+ "attribute": "borderless",
129063
+ "reflects": true,
129070
129064
  "inheritedFrom": {
129071
- "name": "SbbIconNameMixin",
129072
- "module": "icon/icon-name-mixin.js"
129065
+ "name": "SbbFormFieldElement",
129066
+ "module": "form-field/form-field/form-field.component.js"
129073
129067
  }
129074
129068
  },
129075
129069
  {
129076
129070
  "kind": "field",
129077
- "name": "size",
129071
+ "name": "floatingLabel",
129078
129072
  "type": {
129079
- "text": "SbbButtonSize"
129073
+ "text": "boolean"
129080
129074
  },
129081
129075
  "privacy": "public",
129082
- "description": "Size variant, either l, m or s.",
129083
- "default": "'l' / 's' (lean)",
129084
- "attribute": "size",
129076
+ "default": "true",
129077
+ "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
129078
+ "attribute": "floating-label",
129085
129079
  "reflects": true,
129086
129080
  "inheritedFrom": {
129087
- "name": "SbbButtonCommonElementMixin",
129088
- "module": "button/common/button-common.js"
129081
+ "name": "SbbFormFieldElement",
129082
+ "module": "form-field/form-field/form-field.component.js"
129089
129083
  }
129090
129084
  },
129091
129085
  {
129092
129086
  "kind": "field",
129093
- "name": "loading",
129087
+ "name": "width",
129094
129088
  "type": {
129095
- "text": "boolean"
129089
+ "text": "string"
129096
129090
  },
129097
129091
  "privacy": "public",
129098
- "default": "false",
129099
- "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.",
129100
- "attribute": "loading",
129092
+ "default": "'collapse'",
129093
+ "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.",
129094
+ "attribute": "width",
129101
129095
  "reflects": true,
129102
129096
  "inheritedFrom": {
129103
- "name": "SbbButtonCommonElementMixin",
129104
- "module": "button/common/button-common.js"
129097
+ "name": "SbbFormFieldElement",
129098
+ "module": "form-field/form-field/form-field.component.js"
129105
129099
  }
129106
129100
  },
129107
129101
  {
129108
- "kind": "method",
129109
- "name": "renderTemplate",
129110
- "privacy": "protected",
129111
- "return": {
129112
- "type": {
129113
- "text": "TemplateResult"
129114
- }
129102
+ "kind": "field",
129103
+ "name": "size",
129104
+ "type": {
129105
+ "text": "string"
129115
129106
  },
129116
- "description": "Override this method to render the component template.",
129107
+ "privacy": "public",
129108
+ "description": "Size variant, either l, m or s.",
129109
+ "default": "'l'",
129110
+ "attribute": "size",
129111
+ "reflects": true,
129117
129112
  "inheritedFrom": {
129118
- "name": "SbbActionBaseElement",
129119
- "module": "core/base-elements/action-base-element.js"
129113
+ "name": "SbbFormFieldElement",
129114
+ "module": "form-field/form-field/form-field.component.js"
129120
129115
  }
129121
129116
  },
129122
129117
  {
@@ -129137,631 +129132,571 @@
129137
129132
  },
129138
129133
  {
129139
129134
  "kind": "field",
129140
- "name": "iconName",
129135
+ "name": "_excludedFocusElements",
129141
129136
  "type": {
129142
- "text": "string"
129137
+ "text": "array"
129143
129138
  },
129144
- "privacy": "public",
129145
- "default": "''",
129146
- "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.",
129147
- "attribute": "icon-name",
129139
+ "privacy": "private",
129140
+ "readonly": true,
129141
+ "default": "['button', 'sbb-popover', 'sbb-option', 'sbb-chip']",
129148
129142
  "inheritedFrom": {
129149
- "name": "SbbIconNameMixin",
129150
- "module": "icon/icon-name-mixin.js"
129143
+ "name": "SbbFormFieldElement",
129144
+ "module": "form-field/form-field/form-field.component.js"
129151
129145
  }
129152
129146
  },
129153
129147
  {
129154
- "kind": "method",
129155
- "name": "renderIconSlot",
129156
- "privacy": "protected",
129157
- "return": {
129158
- "type": {
129159
- "text": "TemplateResult"
129160
- }
129148
+ "kind": "field",
129149
+ "name": "_floatingLabelSupportedInputElements",
129150
+ "type": {
129151
+ "text": "array"
129161
129152
  },
129162
- "parameters": [
129163
- {
129164
- "name": "classname",
129165
- "optional": true,
129166
- "type": {
129167
- "text": "string"
129168
- }
129169
- }
129170
- ],
129153
+ "privacy": "private",
129154
+ "readonly": true,
129155
+ "default": "[ 'input', 'select', 'textarea', 'sbb-select', ]",
129171
129156
  "inheritedFrom": {
129172
- "name": "SbbIconNameMixin",
129173
- "module": "icon/icon-name-mixin.js"
129157
+ "name": "SbbFormFieldElement",
129158
+ "module": "form-field/form-field/form-field.component.js"
129174
129159
  }
129175
129160
  },
129176
129161
  {
129177
- "kind": "method",
129178
- "name": "_renderIconName",
129179
- "privacy": "private",
129180
- "return": {
129181
- "type": {
129182
- "text": "string"
129183
- }
129162
+ "kind": "field",
129163
+ "name": "_floatingLabelSupportedInputTypes",
129164
+ "type": {
129165
+ "text": "array"
129184
129166
  },
129167
+ "privacy": "private",
129168
+ "readonly": true,
129169
+ "default": "[ 'email', 'number', 'password', 'search', 'tel', 'text', 'url', ]",
129185
129170
  "inheritedFrom": {
129186
- "name": "SbbIconNameMixin",
129187
- "module": "icon/icon-name-mixin.js"
129171
+ "name": "SbbFormFieldElement",
129172
+ "module": "form-field/form-field/form-field.component.js"
129188
129173
  }
129189
129174
  },
129190
129175
  {
129191
129176
  "kind": "field",
129192
- "name": "disabledInteractive",
129177
+ "name": "errorSpace",
129193
129178
  "type": {
129194
- "text": "boolean"
129179
+ "text": "'none' | 'reserve'"
129195
129180
  },
129196
129181
  "privacy": "public",
129197
- "default": "false",
129198
- "description": "Whether the button should be aria-disabled but stay interactive.",
129199
- "attribute": "disabled-interactive",
129182
+ "default": "'none'",
129183
+ "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.",
129184
+ "attribute": "error-space",
129200
129185
  "reflects": true,
129201
129186
  "inheritedFrom": {
129202
- "name": "SbbDisabledInteractiveMixin",
129203
- "module": "core/mixins/disabled-mixin.js"
129187
+ "name": "SbbFormFieldElement",
129188
+ "module": "form-field/form-field/form-field.component.js"
129204
129189
  }
129205
129190
  },
129206
129191
  {
129207
129192
  "kind": "field",
129208
- "name": "disabled",
129209
- "privacy": "public",
129210
- "description": "Whether the component is disabled.",
129211
- "default": "false",
129193
+ "name": "optional",
129212
129194
  "type": {
129213
129195
  "text": "boolean"
129214
129196
  },
129215
- "attribute": "disabled",
129216
- "reflects": true,
129197
+ "privacy": "public",
129198
+ "default": "false",
129199
+ "description": "Indicates whether the input is optional.",
129200
+ "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
129201
+ "attribute": "optional",
129217
129202
  "inheritedFrom": {
129218
- "name": "SbbDisabledMixin",
129219
- "module": "core/mixins/disabled-mixin.js"
129203
+ "name": "SbbFormFieldElement",
129204
+ "module": "form-field/form-field/form-field.component.js"
129220
129205
  }
129221
129206
  },
129222
129207
  {
129223
129208
  "kind": "field",
129224
- "name": "#disabled",
129225
- "privacy": "private",
129209
+ "name": "hiddenLabel",
129226
129210
  "type": {
129227
129211
  "text": "boolean"
129228
129212
  },
129213
+ "privacy": "public",
129229
129214
  "default": "false",
129215
+ "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
129216
+ "attribute": "hidden-label",
129217
+ "reflects": true,
129230
129218
  "inheritedFrom": {
129231
- "name": "SbbDisabledMixin",
129232
- "module": "core/mixins/disabled-mixin.js"
129219
+ "name": "SbbFormFieldElement",
129220
+ "module": "form-field/form-field/form-field.component.js"
129233
129221
  }
129234
129222
  },
129235
129223
  {
129236
- "kind": "method",
129237
- "name": "isDisabledExternally",
129238
- "privacy": "protected",
129239
- "return": {
129240
- "type": {
129241
- "text": "boolean"
129242
- }
129224
+ "kind": "field",
129225
+ "name": "_errorElements",
129226
+ "type": {
129227
+ "text": "Element[]"
129243
129228
  },
129244
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
129229
+ "privacy": "private",
129230
+ "default": "[]",
129231
+ "description": "It is used internally to get the `error` slot.",
129245
129232
  "inheritedFrom": {
129246
- "name": "SbbDisabledMixin",
129247
- "module": "core/mixins/disabled-mixin.js"
129233
+ "name": "SbbFormFieldElement",
129234
+ "module": "form-field/form-field/form-field.component.js"
129248
129235
  }
129249
129236
  },
129250
129237
  {
129251
129238
  "kind": "field",
129252
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
129239
+ "name": "_hintElements",
129253
129240
  "type": {
129254
- "text": "array"
129241
+ "text": "Element[]"
129255
129242
  },
129256
129243
  "privacy": "private",
129257
- "readonly": true,
129258
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
129244
+ "default": "[]",
129245
+ "description": "It is used internally to get the `hint` slot.",
129259
129246
  "inheritedFrom": {
129260
- "name": "SbbButtonBaseElement",
129261
- "module": "core/base-elements/button-base-element.js"
129247
+ "name": "SbbFormFieldElement",
129248
+ "module": "form-field/form-field/form-field.component.js"
129262
129249
  }
129263
129250
  },
129264
129251
  {
129265
129252
  "kind": "field",
129266
- "name": "value",
129253
+ "name": "_input",
129267
129254
  "type": {
129268
- "text": "string"
129255
+ "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
129269
129256
  },
129270
- "privacy": "public",
129257
+ "privacy": "private",
129258
+ "default": "null",
129259
+ "description": "Reference to the slotted input element.",
129271
129260
  "inheritedFrom": {
129272
- "name": "SbbButtonBaseElement",
129273
- "module": "core/base-elements/button-base-element.js"
129274
- },
129275
- "default": "''",
129276
- "description": "Value of the form element.",
129277
- "attribute": "value"
129261
+ "name": "SbbFormFieldElement",
129262
+ "module": "form-field/form-field/form-field.component.js"
129263
+ }
129278
129264
  },
129279
129265
  {
129280
129266
  "kind": "field",
129281
- "name": "type",
129282
- "privacy": "public",
129283
- "description": "The type attribute to use for the button.",
129284
- "default": "'button'",
129267
+ "name": "_label",
129285
129268
  "type": {
129286
- "text": "SbbButtonType"
129269
+ "text": "HTMLLabelElement"
129287
129270
  },
129288
- "attribute": "type",
129271
+ "privacy": "private",
129272
+ "description": "Reference to the slotted label elements.",
129289
129273
  "inheritedFrom": {
129290
- "name": "SbbButtonBaseElement",
129291
- "module": "core/base-elements/button-base-element.js"
129274
+ "name": "SbbFormFieldElement",
129275
+ "module": "form-field/form-field/form-field.component.js"
129292
129276
  }
129293
129277
  },
129294
129278
  {
129295
129279
  "kind": "field",
129296
- "name": "form",
129280
+ "name": "inputElement",
129297
129281
  "type": {
129298
- "text": "HTMLFormElement | null"
129282
+ "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
129299
129283
  },
129300
129284
  "privacy": "public",
129301
- "description": "The `<form>` element to associate the button with.",
129285
+ "description": "Returns the input element.",
129286
+ "readonly": true,
129302
129287
  "inheritedFrom": {
129303
- "name": "SbbButtonBaseElement",
129304
- "module": "core/base-elements/button-base-element.js"
129305
- },
129306
- "attribute": "form"
129288
+ "name": "SbbFormFieldElement",
129289
+ "module": "form-field/form-field/form-field.component.js"
129290
+ }
129307
129291
  },
129308
129292
  {
129309
129293
  "kind": "field",
129310
- "name": "_formId",
129294
+ "name": "label",
129311
129295
  "type": {
129312
- "text": "string"
129296
+ "text": "HTMLLabelElement | null"
129313
129297
  },
129314
- "privacy": "private",
129315
- "default": "''",
129298
+ "privacy": "public",
129299
+ "description": "Reference to the slotted label.",
129300
+ "readonly": true,
129316
129301
  "inheritedFrom": {
129317
- "name": "SbbButtonBaseElement",
129318
- "module": "core/base-elements/button-base-element.js"
129302
+ "name": "SbbFormFieldElement",
129303
+ "module": "form-field/form-field/form-field.component.js"
129319
129304
  }
129320
129305
  },
129321
129306
  {
129322
129307
  "kind": "field",
129323
- "name": "_handleButtonClick",
129308
+ "name": "_language",
129324
129309
  "privacy": "private",
129310
+ "default": "new SbbLanguageController(this)",
129325
129311
  "inheritedFrom": {
129326
- "name": "SbbButtonBaseElement",
129327
- "module": "core/base-elements/button-base-element.js"
129312
+ "name": "SbbFormFieldElement",
129313
+ "module": "form-field/form-field/form-field.component.js"
129328
129314
  }
129329
129315
  },
129330
129316
  {
129331
- "kind": "method",
129332
- "name": "_requestSubmit",
129317
+ "kind": "field",
129318
+ "name": "_formFieldAttributeObserver",
129333
129319
  "privacy": "private",
129334
- "return": {
129335
- "type": {
129336
- "text": "void"
129337
- }
129338
- },
129339
- "parameters": [
129340
- {
129341
- "name": "form",
129342
- "type": {
129343
- "text": "HTMLFormElement"
129344
- }
129345
- }
129346
- ],
129320
+ "description": "Listens to the changes on `readonly` and `disabled` attributes of `<input>`.",
129347
129321
  "inheritedFrom": {
129348
- "name": "SbbButtonBaseElement",
129349
- "module": "core/base-elements/button-base-element.js"
129322
+ "name": "SbbFormFieldElement",
129323
+ "module": "form-field/form-field/form-field.component.js"
129350
129324
  }
129351
129325
  },
129352
129326
  {
129353
129327
  "kind": "field",
129354
- "name": "_formKeyDown",
129328
+ "name": "_inputFormAbortController",
129355
129329
  "privacy": "private",
129330
+ "default": "new AbortController()",
129356
129331
  "inheritedFrom": {
129357
- "name": "SbbButtonBaseElement",
129358
- "module": "core/base-elements/button-base-element.js"
129332
+ "name": "SbbFormFieldElement",
129333
+ "module": "form-field/form-field/form-field.component.js"
129359
129334
  }
129360
129335
  },
129361
129336
  {
129362
129337
  "kind": "field",
129363
- "name": "formAssociated",
129338
+ "name": "_control",
129364
129339
  "type": {
129365
- "text": "boolean"
129340
+ "text": "SbbFormFieldElementControl | null"
129366
129341
  },
129367
- "privacy": "public",
129368
- "static": true,
129369
- "default": "true",
129342
+ "privacy": "private",
129343
+ "default": "null",
129370
129344
  "inheritedFrom": {
129371
- "name": "SbbFormAssociatedMixin",
129372
- "module": "core/mixins/form-associated-mixin.js"
129345
+ "name": "SbbFormFieldElement",
129346
+ "module": "form-field/form-field/form-field.component.js"
129373
129347
  }
129374
129348
  },
129375
129349
  {
129376
- "kind": "field",
129377
- "name": "name",
129378
- "privacy": "public",
129379
- "description": "Name of the form element. Will be read from name attribute.",
129380
- "type": {
129381
- "text": "string"
129350
+ "kind": "method",
129351
+ "name": "_handleWrapperClick",
129352
+ "privacy": "private",
129353
+ "return": {
129354
+ "type": {
129355
+ "text": "void"
129356
+ }
129382
129357
  },
129383
- "attribute": "name",
129358
+ "parameters": [
129359
+ {
129360
+ "name": "event",
129361
+ "type": {
129362
+ "text": "MouseEvent"
129363
+ }
129364
+ }
129365
+ ],
129384
129366
  "inheritedFrom": {
129385
- "name": "SbbFormAssociatedMixin",
129386
- "module": "core/mixins/form-associated-mixin.js"
129367
+ "name": "SbbFormFieldElement",
129368
+ "module": "form-field/form-field/form-field.component.js"
129387
129369
  }
129388
129370
  },
129389
129371
  {
129390
- "kind": "field",
129391
- "name": "validity",
129392
- "type": {
129393
- "text": "ValidityState"
129372
+ "kind": "method",
129373
+ "name": "_isElementFocusExcluded",
129374
+ "privacy": "private",
129375
+ "return": {
129376
+ "type": {
129377
+ "text": "boolean"
129378
+ }
129394
129379
  },
129395
- "privacy": "public",
129396
- "description": "Returns the ValidityState object for this element.",
129397
- "readonly": true,
129380
+ "parameters": [
129381
+ {
129382
+ "name": "event",
129383
+ "type": {
129384
+ "text": "Event"
129385
+ }
129386
+ }
129387
+ ],
129398
129388
  "inheritedFrom": {
129399
- "name": "SbbFormAssociatedMixin",
129400
- "module": "core/mixins/form-associated-mixin.js"
129389
+ "name": "SbbFormFieldElement",
129390
+ "module": "form-field/form-field/form-field.component.js"
129401
129391
  }
129402
129392
  },
129403
129393
  {
129404
- "kind": "field",
129405
- "name": "validationMessage",
129406
- "type": {
129407
- "text": "string"
129394
+ "kind": "method",
129395
+ "name": "_onSlotLabelChange",
129396
+ "privacy": "private",
129397
+ "return": {
129398
+ "type": {
129399
+ "text": "void"
129400
+ }
129408
129401
  },
129409
- "privacy": "public",
129410
- "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.",
129411
- "readonly": true,
129412
129402
  "inheritedFrom": {
129413
- "name": "SbbFormAssociatedMixin",
129414
- "module": "core/mixins/form-associated-mixin.js"
129403
+ "name": "SbbFormFieldElement",
129404
+ "module": "form-field/form-field/form-field.component.js"
129415
129405
  }
129416
129406
  },
129417
129407
  {
129418
- "kind": "field",
129419
- "name": "willValidate",
129420
- "type": {
129421
- "text": "boolean"
129408
+ "kind": "method",
129409
+ "name": "_onSlotInputChange",
129410
+ "privacy": "private",
129411
+ "return": {
129412
+ "type": {
129413
+ "text": "void"
129414
+ }
129422
129415
  },
129423
- "privacy": "public",
129424
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
129425
- "readonly": true,
129416
+ "description": "It is used internally to assign the attributes of `<input>` to `_id` and `_input` and to observe the native readonly and disabled attributes.",
129426
129417
  "inheritedFrom": {
129427
- "name": "SbbFormAssociatedMixin",
129428
- "module": "core/mixins/form-associated-mixin.js"
129418
+ "name": "SbbFormFieldElement",
129419
+ "module": "form-field/form-field/form-field.component.js"
129429
129420
  }
129430
129421
  },
129431
129422
  {
129432
- "kind": "field",
129433
- "name": "_validityStates",
129423
+ "kind": "method",
129424
+ "name": "_assignSlots",
129434
129425
  "privacy": "private",
129435
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
129436
- "inheritedFrom": {
129437
- "name": "SbbFormAssociatedMixin",
129438
- "module": "core/mixins/form-associated-mixin.js"
129439
- }
129440
- },
129441
- {
129442
- "kind": "field",
129443
- "name": "formDisabled",
129444
- "type": {
129445
- "text": "boolean"
129426
+ "return": {
129427
+ "type": {
129428
+ "text": "void"
129429
+ }
129446
129430
  },
129447
- "privacy": "protected",
129448
- "default": "false",
129449
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
129450
129431
  "inheritedFrom": {
129451
- "name": "SbbFormAssociatedMixin",
129452
- "module": "core/mixins/form-associated-mixin.js"
129432
+ "name": "SbbFormFieldElement",
129433
+ "module": "form-field/form-field/form-field.component.js"
129453
129434
  }
129454
129435
  },
129455
129436
  {
129456
129437
  "kind": "method",
129457
- "name": "checkValidity",
129458
- "privacy": "public",
129438
+ "name": "_connectInputElement",
129439
+ "privacy": "private",
129459
129440
  "return": {
129460
129441
  "type": {
129461
- "text": "boolean"
129442
+ "text": "'changed' | 'no-input' | 'unchanged'"
129462
129443
  }
129463
129444
  },
129464
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
129465
129445
  "inheritedFrom": {
129466
- "name": "SbbFormAssociatedMixin",
129467
- "module": "core/mixins/form-associated-mixin.js"
129446
+ "name": "SbbFormFieldElement",
129447
+ "module": "form-field/form-field/form-field.component.js"
129468
129448
  }
129469
129449
  },
129470
129450
  {
129471
129451
  "kind": "method",
129472
- "name": "reportValidity",
129473
- "privacy": "public",
129452
+ "name": "_syncLabelInputReferences",
129453
+ "privacy": "private",
129474
129454
  "return": {
129475
129455
  "type": {
129476
- "text": "boolean"
129456
+ "text": "void"
129477
129457
  }
129478
129458
  },
129479
- "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.",
129480
129459
  "inheritedFrom": {
129481
- "name": "SbbFormAssociatedMixin",
129482
- "module": "core/mixins/form-associated-mixin.js"
129460
+ "name": "SbbFormFieldElement",
129461
+ "module": "form-field/form-field/form-field.component.js"
129483
129462
  }
129484
129463
  },
129485
129464
  {
129486
129465
  "kind": "method",
129487
- "name": "setCustomValidity",
129488
- "privacy": "public",
129466
+ "name": "_isInputElement",
129467
+ "privacy": "private",
129489
129468
  "return": {
129490
129469
  "type": {
129491
- "text": "void"
129470
+ "text": "boolean"
129492
129471
  }
129493
129472
  },
129494
129473
  "parameters": [
129495
129474
  {
129496
- "name": "message",
129475
+ "name": "input",
129497
129476
  "type": {
129498
- "text": "string"
129477
+ "text": "Element"
129499
129478
  }
129500
129479
  }
129501
129480
  ],
129502
- "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.",
129503
129481
  "inheritedFrom": {
129504
- "name": "SbbFormAssociatedMixin",
129505
- "module": "core/mixins/form-associated-mixin.js"
129482
+ "name": "SbbFormFieldElement",
129483
+ "module": "form-field/form-field/form-field.component.js"
129506
129484
  }
129507
129485
  },
129508
129486
  {
129509
129487
  "kind": "method",
129510
- "name": "_hasDisabledAncestor",
129488
+ "name": "_readInputState",
129511
129489
  "privacy": "private",
129512
129490
  "return": {
129513
129491
  "type": {
129514
- "text": "boolean"
129492
+ "text": "void"
129515
129493
  }
129516
129494
  },
129517
129495
  "inheritedFrom": {
129518
- "name": "SbbFormAssociatedMixin",
129519
- "module": "core/mixins/form-associated-mixin.js"
129496
+ "name": "SbbFormFieldElement",
129497
+ "module": "form-field/form-field/form-field.component.js"
129520
129498
  }
129521
129499
  },
129522
129500
  {
129523
129501
  "kind": "method",
129524
- "name": "updateFormValue",
129525
- "privacy": "protected",
129502
+ "name": "_registerInputFormListener",
129503
+ "privacy": "private",
129526
129504
  "return": {
129527
129505
  "type": {
129528
129506
  "text": "void"
129529
129507
  }
129530
129508
  },
129531
- "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",
129532
129509
  "inheritedFrom": {
129533
- "name": "SbbFormAssociatedMixin",
129534
- "module": "core/mixins/form-associated-mixin.js"
129510
+ "name": "SbbFormFieldElement",
129511
+ "module": "form-field/form-field/form-field.component.js"
129535
129512
  }
129536
129513
  },
129537
129514
  {
129538
129515
  "kind": "method",
129539
- "name": "formState",
129540
- "privacy": "protected",
129516
+ "name": "_patchInputValue",
129517
+ "privacy": "private",
129541
129518
  "return": {
129542
129519
  "type": {
129543
- "text": "FormRestoreState"
129520
+ "text": "void"
129544
129521
  }
129545
129522
  },
129546
129523
  "inheritedFrom": {
129547
- "name": "SbbFormAssociatedMixin",
129548
- "module": "core/mixins/form-associated-mixin.js"
129524
+ "name": "SbbFormFieldElement",
129525
+ "module": "form-field/form-field/form-field.component.js"
129549
129526
  }
129550
129527
  },
129551
129528
  {
129552
129529
  "kind": "method",
129553
- "name": "setValidityFlag",
129554
- "privacy": "protected",
129530
+ "name": "_unpatchInputValue",
129531
+ "privacy": "private",
129555
129532
  "return": {
129556
129533
  "type": {
129557
129534
  "text": "void"
129558
129535
  }
129559
129536
  },
129560
- "parameters": [
129561
- {
129562
- "name": "flag",
129563
- "type": {
129564
- "text": "T"
129565
- }
129566
- },
129567
- {
129568
- "name": "message",
129569
- "type": {
129570
- "text": "string"
129571
- }
129572
- },
129573
- {
129574
- "name": "flagValue",
129575
- "optional": true,
129576
- "type": {
129577
- "text": "ValidityStateFlags[T]"
129578
- }
129579
- }
129580
- ],
129581
- "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).",
129582
129537
  "inheritedFrom": {
129583
- "name": "SbbFormAssociatedMixin",
129584
- "module": "core/mixins/form-associated-mixin.js"
129538
+ "name": "SbbFormFieldElement",
129539
+ "module": "form-field/form-field/form-field.component.js"
129585
129540
  }
129586
129541
  },
129587
129542
  {
129588
129543
  "kind": "method",
129589
- "name": "removeValidityFlag",
129590
- "privacy": "protected",
129544
+ "name": "_checkAndUpdateInputEmpty",
129545
+ "privacy": "private",
129591
129546
  "return": {
129592
129547
  "type": {
129593
129548
  "text": "void"
129594
129549
  }
129595
129550
  },
129596
- "parameters": [
129597
- {
129598
- "name": "flag",
129599
- "type": {
129600
- "text": "T"
129601
- }
129602
- }
129603
- ],
129604
- "description": "Removes the validity state flag entry and updates validity state.",
129605
129551
  "inheritedFrom": {
129606
- "name": "SbbFormAssociatedMixin",
129607
- "module": "core/mixins/form-associated-mixin.js"
129552
+ "name": "SbbFormFieldElement",
129553
+ "module": "form-field/form-field/form-field.component.js"
129608
129554
  }
129609
129555
  },
129610
129556
  {
129611
129557
  "kind": "method",
129612
- "name": "validate",
129613
- "privacy": "protected",
129558
+ "name": "_isInputEmpty",
129559
+ "privacy": "private",
129614
129560
  "return": {
129615
129561
  "type": {
129616
- "text": "void"
129562
+ "text": "boolean"
129617
129563
  }
129618
129564
  },
129619
- "description": "To be called whenever the current element needs to be validated.",
129620
129565
  "inheritedFrom": {
129621
- "name": "SbbFormAssociatedMixin",
129622
- "module": "core/mixins/form-associated-mixin.js"
129566
+ "name": "SbbFormFieldElement",
129567
+ "module": "form-field/form-field/form-field.component.js"
129623
129568
  }
129624
129569
  },
129625
129570
  {
129626
129571
  "kind": "method",
129627
- "name": "shouldValidate",
129628
- "privacy": "protected",
129572
+ "name": "_isInputValueEmpty",
129573
+ "privacy": "private",
129629
129574
  "return": {
129630
129575
  "type": {
129631
129576
  "text": "boolean"
129632
129577
  }
129633
129578
  },
129579
+ "inheritedFrom": {
129580
+ "name": "SbbFormFieldElement",
129581
+ "module": "form-field/form-field/form-field.component.js"
129582
+ }
129583
+ },
129584
+ {
129585
+ "kind": "method",
129586
+ "name": "_onSlotErrorChange",
129587
+ "privacy": "private",
129588
+ "return": {
129589
+ "type": {
129590
+ "text": "void"
129591
+ }
129592
+ },
129634
129593
  "parameters": [
129635
129594
  {
129636
- "name": "name",
129595
+ "name": "event",
129637
129596
  "type": {
129638
- "text": "PropertyKey | undefined"
129597
+ "text": "Event"
129639
129598
  }
129640
129599
  }
129641
129600
  ],
129642
- "description": "Whether validation should be run on a property change with the given name.",
129601
+ "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-error> instances.",
129643
129602
  "inheritedFrom": {
129644
- "name": "SbbFormAssociatedMixin",
129645
- "module": "core/mixins/form-associated-mixin.js"
129603
+ "name": "SbbFormFieldElement",
129604
+ "module": "form-field/form-field/form-field.component.js"
129646
129605
  }
129647
129606
  },
129648
129607
  {
129649
129608
  "kind": "method",
129650
- "name": "_setInternalValidity",
129609
+ "name": "_onSlotHintChange",
129651
129610
  "privacy": "private",
129652
129611
  "return": {
129653
129612
  "type": {
129654
129613
  "text": "void"
129655
129614
  }
129656
129615
  },
129657
- "inheritedFrom": {
129658
- "name": "SbbFormAssociatedMixin",
129659
- "module": "core/mixins/form-associated-mixin.js"
129660
- }
129661
- },
129662
- {
129663
- "kind": "field",
129664
- "name": "role",
129665
- "type": {
129666
- "text": "ElementInternals['role']"
129667
- },
129668
- "privacy": "public",
129669
- "static": true,
129670
- "readonly": true,
129671
- "default": "'button'",
129672
- "inheritedFrom": {
129673
- "name": "SbbButtonLikeBaseElement",
129674
- "module": "core/base-elements/button-base-element.js"
129675
- }
129676
- },
129677
- {
129678
- "kind": "field",
129679
- "name": "_preventScrollOnSpaceKeydown",
129680
- "privacy": "private",
129681
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
129682
129616
  "parameters": [
129683
129617
  {
129684
- "description": "The origin event.",
129685
- "name": "event"
129618
+ "name": "event",
129619
+ "type": {
129620
+ "text": "Event"
129621
+ }
129686
129622
  }
129687
129623
  ],
129624
+ "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-hint> instances.",
129688
129625
  "inheritedFrom": {
129689
- "name": "SbbButtonLikeBaseElement",
129690
- "module": "core/base-elements/button-base-element.js"
129691
- }
129692
- },
129693
- {
129694
- "kind": "field",
129695
- "name": "_removeActiveMarker",
129696
- "privacy": "private",
129697
- "inheritedFrom": {
129698
- "name": "SbbButtonLikeBaseElement",
129699
- "module": "core/base-elements/button-base-element.js"
129626
+ "name": "SbbFormFieldElement",
129627
+ "module": "form-field/form-field/form-field.component.js"
129700
129628
  }
129701
129629
  },
129702
129630
  {
129703
- "kind": "field",
129704
- "name": "_dispatchClickEventOnSpaceKeyup",
129631
+ "kind": "method",
129632
+ "name": "_assignAriaDescribedByElements",
129705
129633
  "privacy": "private",
129706
- "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.",
129707
- "parameters": [
129708
- {
129709
- "description": "The origin event.",
129710
- "name": "event"
129634
+ "return": {
129635
+ "type": {
129636
+ "text": "void"
129711
129637
  }
129712
- ],
129638
+ },
129713
129639
  "inheritedFrom": {
129714
- "name": "SbbButtonLikeBaseElement",
129715
- "module": "core/base-elements/button-base-element.js"
129640
+ "name": "SbbFormFieldElement",
129641
+ "module": "form-field/form-field/form-field.component.js"
129716
129642
  }
129717
129643
  },
129718
129644
  {
129719
- "kind": "field",
129720
- "name": "_dispatchClickEvent",
129721
- "privacy": "private",
129645
+ "kind": "method",
129646
+ "name": "reset",
129647
+ "privacy": "public",
129648
+ "return": {
129649
+ "type": {
129650
+ "text": "void"
129651
+ }
129652
+ },
129653
+ "description": "Manually reset the form field. Currently, this only resets the floating label.",
129722
129654
  "inheritedFrom": {
129723
- "name": "SbbButtonLikeBaseElement",
129724
- "module": "core/base-elements/button-base-element.js"
129655
+ "name": "SbbFormFieldElement",
129656
+ "module": "form-field/form-field/form-field.component.js"
129725
129657
  }
129726
129658
  },
129727
129659
  {
129728
- "kind": "field",
129729
- "name": "maybeDisabled",
129730
- "type": {
129731
- "text": "boolean | undefined"
129660
+ "kind": "method",
129661
+ "name": "clear",
129662
+ "privacy": "public",
129663
+ "return": {
129664
+ "type": {
129665
+ "text": "void"
129666
+ }
129732
129667
  },
129733
- "privacy": "protected",
129734
- "readonly": true,
129668
+ "description": "Manually clears the input value. It only works for inputs, selects are not supported.",
129735
129669
  "inheritedFrom": {
129736
- "name": "SbbActionBaseElement",
129737
- "module": "core/base-elements/action-base-element.js"
129670
+ "name": "SbbFormFieldElement",
129671
+ "module": "form-field/form-field/form-field.component.js"
129738
129672
  }
129739
129673
  },
129740
129674
  {
129741
- "kind": "field",
129742
- "name": "maybeDisabledInteractive",
129743
- "type": {
129744
- "text": "boolean | undefined"
129675
+ "kind": "method",
129676
+ "name": "_syncNegative",
129677
+ "privacy": "private",
129678
+ "return": {
129679
+ "type": {
129680
+ "text": "void"
129681
+ }
129745
129682
  },
129746
- "privacy": "protected",
129747
- "readonly": true,
129748
129683
  "inheritedFrom": {
129749
- "name": "SbbActionBaseElement",
129750
- "module": "core/base-elements/action-base-element.js"
129684
+ "name": "SbbFormFieldElement",
129685
+ "module": "form-field/form-field/form-field.component.js"
129751
129686
  }
129752
129687
  },
129753
129688
  {
129754
129689
  "kind": "method",
129755
- "name": "setupBaseEventHandlers",
129756
- "privacy": "protected",
129690
+ "name": "_syncSize",
129691
+ "privacy": "private",
129757
129692
  "return": {
129758
129693
  "type": {
129759
129694
  "text": "void"
129760
129695
  }
129761
129696
  },
129762
129697
  "inheritedFrom": {
129763
- "name": "SbbActionBaseElement",
129764
- "module": "core/base-elements/action-base-element.js"
129698
+ "name": "SbbFormFieldElement",
129699
+ "module": "form-field/form-field/form-field.component.js"
129765
129700
  }
129766
129701
  },
129767
129702
  {
@@ -129871,38 +129806,12 @@
129871
129806
  }
129872
129807
  ],
129873
129808
  "superclass": {
129874
- "name": "SbbSecondaryButtonElement",
129875
- "module": "button.pure.js"
129809
+ "name": "SbbFormFieldElement",
129810
+ "module": "form-field.pure.js"
129876
129811
  },
129877
- "tagName": "sbb-timetable-form-swap-button",
129812
+ "tagName": "sbb-timetable-form-field",
129878
129813
  "customElement": true,
129879
129814
  "attributes": [
129880
- {
129881
- "name": "size",
129882
- "type": {
129883
- "text": "SbbButtonSize"
129884
- },
129885
- "description": "Size variant, either l, m or s.",
129886
- "default": "'l' / 's' (lean)",
129887
- "fieldName": "size",
129888
- "inheritedFrom": {
129889
- "name": "SbbButtonCommonElementMixin",
129890
- "module": "button/common/button-common.js"
129891
- }
129892
- },
129893
- {
129894
- "name": "loading",
129895
- "type": {
129896
- "text": "boolean"
129897
- },
129898
- "default": "false",
129899
- "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.",
129900
- "fieldName": "loading",
129901
- "inheritedFrom": {
129902
- "name": "SbbButtonCommonElementMixin",
129903
- "module": "button/common/button-common.js"
129904
- }
129905
- },
129906
129815
  {
129907
129816
  "name": "negative",
129908
129817
  "type": {
@@ -129917,121 +129826,163 @@
129917
129826
  }
129918
129827
  },
129919
129828
  {
129920
- "name": "icon-name",
129829
+ "name": "error-space",
129921
129830
  "type": {
129922
- "text": "string"
129831
+ "text": "'none' | 'reserve'"
129923
129832
  },
129924
- "default": "''",
129925
- "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.",
129926
- "fieldName": "iconName",
129833
+ "default": "'none'",
129834
+ "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.",
129835
+ "fieldName": "errorSpace",
129927
129836
  "inheritedFrom": {
129928
- "name": "SbbIconNameMixin",
129929
- "module": "icon/icon-name-mixin.js"
129837
+ "name": "SbbFormFieldElement",
129838
+ "module": "form-field/form-field/form-field.component.js"
129930
129839
  }
129931
129840
  },
129932
129841
  {
129933
- "name": "disabled-interactive",
129842
+ "name": "optional",
129934
129843
  "type": {
129935
129844
  "text": "boolean"
129936
129845
  },
129937
129846
  "default": "false",
129938
- "description": "Whether the button should be aria-disabled but stay interactive.",
129939
- "fieldName": "disabledInteractive",
129847
+ "description": "Indicates whether the input is optional.",
129848
+ "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
129849
+ "fieldName": "optional",
129940
129850
  "inheritedFrom": {
129941
- "name": "SbbDisabledInteractiveMixin",
129942
- "module": "core/mixins/disabled-mixin.js"
129851
+ "name": "SbbFormFieldElement",
129852
+ "module": "form-field/form-field/form-field.component.js"
129943
129853
  }
129944
129854
  },
129945
129855
  {
129946
- "name": "disabled",
129947
- "description": "Whether the component is disabled.",
129948
- "default": "false",
129856
+ "name": "size",
129949
129857
  "type": {
129950
- "text": "boolean"
129858
+ "text": "'l' | 'm' | 's'"
129951
129859
  },
129952
- "fieldName": "disabled",
129860
+ "description": "Size variant, either l, m or s.",
129861
+ "default": "'m' / 's' (lean)",
129862
+ "fieldName": "size",
129953
129863
  "inheritedFrom": {
129954
- "name": "SbbDisabledMixin",
129955
- "module": "core/mixins/disabled-mixin.js"
129864
+ "name": "SbbFormFieldElement",
129865
+ "module": "form-field/form-field/form-field.component.js"
129956
129866
  }
129957
129867
  },
129958
129868
  {
129959
- "name": "value",
129869
+ "name": "borderless",
129960
129870
  "type": {
129961
- "text": "string"
129871
+ "text": "boolean"
129962
129872
  },
129963
- "default": "''",
129964
- "description": "Value of the form element.",
129965
- "fieldName": "value",
129873
+ "default": "false",
129874
+ "description": "Whether to display the form field without a border.",
129875
+ "fieldName": "borderless",
129966
129876
  "inheritedFrom": {
129967
- "name": "SbbButtonBaseElement",
129968
- "module": "core/base-elements/button-base-element.js"
129877
+ "name": "SbbFormFieldElement",
129878
+ "module": "form-field/form-field/form-field.component.js"
129969
129879
  }
129970
129880
  },
129971
129881
  {
129972
- "name": "type",
129973
- "description": "The type attribute to use for the button.",
129974
- "default": "'button'",
129882
+ "name": "width",
129975
129883
  "type": {
129976
- "text": "SbbButtonType"
129884
+ "text": "'default' | 'collapse'"
129977
129885
  },
129978
- "fieldName": "type",
129886
+ "default": "'default'",
129887
+ "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.",
129888
+ "fieldName": "width",
129979
129889
  "inheritedFrom": {
129980
- "name": "SbbButtonBaseElement",
129981
- "module": "core/base-elements/button-base-element.js"
129890
+ "name": "SbbFormFieldElement",
129891
+ "module": "form-field/form-field/form-field.component.js"
129982
129892
  }
129983
129893
  },
129984
129894
  {
129985
- "name": "form",
129986
- "description": "The `<form>` element to associate the button with.",
129895
+ "name": "hidden-label",
129987
129896
  "type": {
129988
- "text": "HTMLFormElement | null"
129897
+ "text": "boolean"
129989
129898
  },
129990
- "fieldName": "form",
129899
+ "default": "false",
129900
+ "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
129901
+ "fieldName": "hiddenLabel",
129991
129902
  "inheritedFrom": {
129992
- "name": "SbbButtonBaseElement",
129993
- "module": "core/base-elements/button-base-element.js"
129903
+ "name": "SbbFormFieldElement",
129904
+ "module": "form-field/form-field/form-field.component.js"
129994
129905
  }
129995
129906
  },
129996
129907
  {
129997
- "name": "name",
129998
- "description": "Name of the form element. Will be read from name attribute.",
129908
+ "name": "floating-label",
129999
129909
  "type": {
130000
- "text": "string"
129910
+ "text": "boolean"
130001
129911
  },
130002
- "fieldName": "name",
129912
+ "default": "false",
129913
+ "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
129914
+ "fieldName": "floatingLabel",
130003
129915
  "inheritedFrom": {
130004
- "name": "SbbFormAssociatedMixin",
130005
- "module": "core/mixins/form-associated-mixin.js"
129916
+ "name": "SbbFormFieldElement",
129917
+ "module": "form-field/form-field/form-field.component.js"
130006
129918
  }
130007
129919
  }
130008
129920
  ],
130009
129921
  "slots": [
130010
129922
  {
130011
- "description": "Use the unnamed slot to add content to the secondary-button.",
129923
+ "description": "Use this slot to render an input/select or a supported non-native element.",
130012
129924
  "name": "",
130013
129925
  "inheritedFrom": {
130014
- "name": "SbbSecondaryButtonElement",
130015
- "module": "button/secondary-button/secondary-button.component.js"
129926
+ "name": "SbbFormFieldElement",
129927
+ "module": "form-field/form-field/form-field.component.js"
130016
129928
  }
130017
129929
  },
130018
129930
  {
130019
- "description": "Slot used to display the icon, if one is set.",
130020
- "name": "icon",
129931
+ "description": "Use this slot to render a label.",
129932
+ "name": "label",
130021
129933
  "inheritedFrom": {
130022
- "name": "SbbSecondaryButtonElement",
130023
- "module": "button/secondary-button/secondary-button.component.js"
129934
+ "name": "SbbFormFieldElement",
129935
+ "module": "form-field/form-field/form-field.component.js"
129936
+ }
129937
+ },
129938
+ {
129939
+ "description": "Use this slot to render an icon on the left side of the input.",
129940
+ "name": "prefix",
129941
+ "inheritedFrom": {
129942
+ "name": "SbbFormFieldElement",
129943
+ "module": "form-field/form-field/form-field.component.js"
129944
+ }
129945
+ },
129946
+ {
129947
+ "description": "Use this slot to render an icon on the right side of the input.",
129948
+ "name": "suffix",
129949
+ "inheritedFrom": {
129950
+ "name": "SbbFormFieldElement",
129951
+ "module": "form-field/form-field/form-field.component.js"
129952
+ }
129953
+ },
129954
+ {
129955
+ "description": "Use this slot to render an error.",
129956
+ "name": "error",
129957
+ "inheritedFrom": {
129958
+ "name": "SbbFormFieldElement",
129959
+ "module": "form-field/form-field/form-field.component.js"
129960
+ }
129961
+ },
129962
+ {
129963
+ "description": "Use this slot to render an `<sbb-hint>` or an `<sbb-form-field-text-counter>` element.",
129964
+ "name": "hint",
129965
+ "inheritedFrom": {
129966
+ "name": "SbbFormFieldElement",
129967
+ "module": "form-field/form-field/form-field.component.js"
130024
129968
  }
130025
129969
  }
130026
129970
  ],
130027
129971
  "cssProperties": [
130028
129972
  {
130029
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
130030
- "name": "--sbb-button-loading-delay",
130031
- "default": "300ms",
129973
+ "description": "To override the focus outline offset,",
129974
+ "name": "--sbb-form-field-outline-offset",
130032
129975
  "inheritedFrom": {
130033
- "name": "SbbSecondaryButtonElement",
130034
- "module": "button/secondary-button/secondary-button.component.js"
129976
+ "name": "SbbFormFieldElement",
129977
+ "module": "form-field/form-field/form-field.component.js"
129978
+ }
129979
+ },
129980
+ {
129981
+ "description": "To override the z-index of the focus underline effect,",
129982
+ "name": "--sbb-form-field-focus-underline-z-index",
129983
+ "inheritedFrom": {
129984
+ "name": "SbbFormFieldElement",
129985
+ "module": "form-field/form-field/form-field.component.js"
130035
129986
  }
130036
129987
  }
130037
129988
  ]
@@ -130040,22 +129991,22 @@
130040
129991
  "exports": [
130041
129992
  {
130042
129993
  "kind": "js",
130043
- "name": "SbbTimetableFormSwapButtonElement",
129994
+ "name": "SbbTimetableFormFieldElement",
130044
129995
  "declaration": {
130045
- "name": "SbbTimetableFormSwapButtonElement",
130046
- "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
129996
+ "name": "SbbTimetableFormFieldElement",
129997
+ "module": "timetable-form/timetable-form-field/timetable-form-field.component.js"
130047
129998
  }
130048
129999
  }
130049
130000
  ]
130050
130001
  },
130051
130002
  {
130052
130003
  "kind": "javascript-module",
130053
- "path": "timetable-form/timetable-form-field/timetable-form-field.component.js",
130004
+ "path": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js",
130054
130005
  "declarations": [
130055
130006
  {
130056
130007
  "kind": "class",
130057
- "description": "Extends the `sbb-form-field`. Meant to be used inside a `sbb-timetable-form`.",
130058
- "name": "SbbTimetableFormFieldElement",
130008
+ "description": "An extension of `sbb-secondary-button` to be used inside the `sbb-timetable-form`.\nWhen placed between two `sbb-timetable-form-field`, the 'click' swaps the value of the sibling inputs.",
130009
+ "name": "SbbTimetableFormSwapButtonElement",
130059
130010
  "members": [
130060
130011
  {
130061
130012
  "kind": "field",
@@ -130066,83 +130017,88 @@
130066
130017
  "privacy": "public",
130067
130018
  "static": true,
130068
130019
  "readonly": true,
130069
- "default": "'sbb-timetable-form-field'",
130070
130020
  "inheritedFrom": {
130071
130021
  "name": "SbbElement",
130072
130022
  "module": "core/base-elements/element.js"
130073
- }
130023
+ },
130024
+ "default": "'sbb-timetable-form-swap-button'"
130074
130025
  },
130075
130026
  {
130076
130027
  "kind": "field",
130077
- "name": "_routeIcon",
130078
- "type": {
130079
- "text": "boolean"
130080
- },
130028
+ "name": "_languageController",
130081
130029
  "privacy": "private",
130082
- "default": "false"
130030
+ "default": "new SbbLanguageController(this)"
130083
130031
  },
130084
130032
  {
130085
- "kind": "field",
130086
- "name": "borderless",
130087
- "type": {
130088
- "text": "boolean"
130033
+ "kind": "method",
130034
+ "name": "_invertFieldValues",
130035
+ "privacy": "private",
130036
+ "return": {
130037
+ "type": {
130038
+ "text": "void"
130039
+ }
130040
+ },
130041
+ "description": "Search for `sbb-timetable-form-field` inputs, invert their values and dispatch the respective input and change events"
130042
+ },
130043
+ {
130044
+ "kind": "method",
130045
+ "name": "renderIconName",
130046
+ "privacy": "protected",
130047
+ "return": {
130048
+ "type": {
130049
+ "text": "string"
130050
+ }
130089
130051
  },
130090
- "privacy": "public",
130091
- "default": "true",
130092
- "description": "Whether to display the form field without a border.",
130093
- "attribute": "borderless",
130094
- "reflects": true,
130095
130052
  "inheritedFrom": {
130096
- "name": "SbbFormFieldElement",
130097
- "module": "form-field/form-field/form-field.component.js"
130053
+ "name": "SbbIconNameMixin",
130054
+ "module": "icon/icon-name-mixin.js"
130098
130055
  }
130099
130056
  },
130100
130057
  {
130101
130058
  "kind": "field",
130102
- "name": "floatingLabel",
130059
+ "name": "size",
130103
130060
  "type": {
130104
- "text": "boolean"
130061
+ "text": "SbbButtonSize"
130105
130062
  },
130106
130063
  "privacy": "public",
130107
- "default": "true",
130108
- "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
130109
- "attribute": "floating-label",
130064
+ "description": "Size variant, either l, m or s.",
130065
+ "default": "'l' / 's' (lean)",
130066
+ "attribute": "size",
130110
130067
  "reflects": true,
130111
130068
  "inheritedFrom": {
130112
- "name": "SbbFormFieldElement",
130113
- "module": "form-field/form-field/form-field.component.js"
130069
+ "name": "SbbButtonCommonElementMixin",
130070
+ "module": "button/common/button-common.js"
130114
130071
  }
130115
130072
  },
130116
130073
  {
130117
130074
  "kind": "field",
130118
- "name": "width",
130075
+ "name": "loading",
130119
130076
  "type": {
130120
- "text": "string"
130077
+ "text": "boolean"
130121
130078
  },
130122
130079
  "privacy": "public",
130123
- "default": "'collapse'",
130124
- "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.",
130125
- "attribute": "width",
130080
+ "default": "false",
130081
+ "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.",
130082
+ "attribute": "loading",
130126
130083
  "reflects": true,
130127
130084
  "inheritedFrom": {
130128
- "name": "SbbFormFieldElement",
130129
- "module": "form-field/form-field/form-field.component.js"
130085
+ "name": "SbbButtonCommonElementMixin",
130086
+ "module": "button/common/button-common.js"
130130
130087
  }
130131
130088
  },
130132
130089
  {
130133
- "kind": "field",
130134
- "name": "size",
130135
- "type": {
130136
- "text": "string"
130090
+ "kind": "method",
130091
+ "name": "renderTemplate",
130092
+ "privacy": "protected",
130093
+ "return": {
130094
+ "type": {
130095
+ "text": "TemplateResult"
130096
+ }
130137
130097
  },
130138
- "privacy": "public",
130139
- "description": "Size variant, either l, m or s.",
130140
- "default": "'l'",
130141
- "attribute": "size",
130142
- "reflects": true,
130098
+ "description": "Override this method to render the component template.",
130143
130099
  "inheritedFrom": {
130144
- "name": "SbbFormFieldElement",
130145
- "module": "form-field/form-field/form-field.component.js"
130100
+ "name": "SbbActionBaseElement",
130101
+ "module": "core/base-elements/action-base-element.js"
130146
130102
  }
130147
130103
  },
130148
130104
  {
@@ -130163,571 +130119,631 @@
130163
130119
  },
130164
130120
  {
130165
130121
  "kind": "field",
130166
- "name": "_excludedFocusElements",
130122
+ "name": "iconName",
130167
130123
  "type": {
130168
- "text": "array"
130124
+ "text": "string"
130169
130125
  },
130170
- "privacy": "private",
130171
- "readonly": true,
130172
- "default": "['button', 'sbb-popover', 'sbb-option', 'sbb-chip']",
130126
+ "privacy": "public",
130127
+ "default": "''",
130128
+ "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.",
130129
+ "attribute": "icon-name",
130173
130130
  "inheritedFrom": {
130174
- "name": "SbbFormFieldElement",
130175
- "module": "form-field/form-field/form-field.component.js"
130131
+ "name": "SbbIconNameMixin",
130132
+ "module": "icon/icon-name-mixin.js"
130176
130133
  }
130177
130134
  },
130178
130135
  {
130179
- "kind": "field",
130180
- "name": "_floatingLabelSupportedInputElements",
130181
- "type": {
130182
- "text": "array"
130136
+ "kind": "method",
130137
+ "name": "renderIconSlot",
130138
+ "privacy": "protected",
130139
+ "return": {
130140
+ "type": {
130141
+ "text": "TemplateResult"
130142
+ }
130183
130143
  },
130184
- "privacy": "private",
130185
- "readonly": true,
130186
- "default": "[ 'input', 'select', 'textarea', 'sbb-select', ]",
130144
+ "parameters": [
130145
+ {
130146
+ "name": "classname",
130147
+ "optional": true,
130148
+ "type": {
130149
+ "text": "string"
130150
+ }
130151
+ }
130152
+ ],
130187
130153
  "inheritedFrom": {
130188
- "name": "SbbFormFieldElement",
130189
- "module": "form-field/form-field/form-field.component.js"
130154
+ "name": "SbbIconNameMixin",
130155
+ "module": "icon/icon-name-mixin.js"
130190
130156
  }
130191
130157
  },
130192
130158
  {
130193
- "kind": "field",
130194
- "name": "_floatingLabelSupportedInputTypes",
130195
- "type": {
130196
- "text": "array"
130197
- },
130159
+ "kind": "method",
130160
+ "name": "_renderIconName",
130198
130161
  "privacy": "private",
130199
- "readonly": true,
130200
- "default": "[ 'email', 'number', 'password', 'search', 'tel', 'text', 'url', ]",
130162
+ "return": {
130163
+ "type": {
130164
+ "text": "string"
130165
+ }
130166
+ },
130201
130167
  "inheritedFrom": {
130202
- "name": "SbbFormFieldElement",
130203
- "module": "form-field/form-field/form-field.component.js"
130168
+ "name": "SbbIconNameMixin",
130169
+ "module": "icon/icon-name-mixin.js"
130204
130170
  }
130205
130171
  },
130206
130172
  {
130207
130173
  "kind": "field",
130208
- "name": "errorSpace",
130174
+ "name": "disabledInteractive",
130209
130175
  "type": {
130210
- "text": "'none' | 'reserve'"
130176
+ "text": "boolean"
130211
130177
  },
130212
130178
  "privacy": "public",
130213
- "default": "'none'",
130214
- "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.",
130215
- "attribute": "error-space",
130179
+ "default": "false",
130180
+ "description": "Whether the button should be aria-disabled but stay interactive.",
130181
+ "attribute": "disabled-interactive",
130216
130182
  "reflects": true,
130217
130183
  "inheritedFrom": {
130218
- "name": "SbbFormFieldElement",
130219
- "module": "form-field/form-field/form-field.component.js"
130184
+ "name": "SbbDisabledInteractiveMixin",
130185
+ "module": "core/mixins/disabled-mixin.js"
130220
130186
  }
130221
130187
  },
130222
130188
  {
130223
130189
  "kind": "field",
130224
- "name": "optional",
130190
+ "name": "disabled",
130191
+ "privacy": "public",
130192
+ "description": "Whether the component is disabled.",
130193
+ "default": "false",
130225
130194
  "type": {
130226
130195
  "text": "boolean"
130227
130196
  },
130228
- "privacy": "public",
130229
- "default": "false",
130230
- "description": "Indicates whether the input is optional.",
130231
- "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
130232
- "attribute": "optional",
130197
+ "attribute": "disabled",
130198
+ "reflects": true,
130233
130199
  "inheritedFrom": {
130234
- "name": "SbbFormFieldElement",
130235
- "module": "form-field/form-field/form-field.component.js"
130200
+ "name": "SbbDisabledMixin",
130201
+ "module": "core/mixins/disabled-mixin.js"
130236
130202
  }
130237
130203
  },
130238
130204
  {
130239
130205
  "kind": "field",
130240
- "name": "hiddenLabel",
130206
+ "name": "#disabled",
130207
+ "privacy": "private",
130241
130208
  "type": {
130242
130209
  "text": "boolean"
130243
130210
  },
130244
- "privacy": "public",
130245
130211
  "default": "false",
130246
- "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
130247
- "attribute": "hidden-label",
130248
- "reflects": true,
130249
130212
  "inheritedFrom": {
130250
- "name": "SbbFormFieldElement",
130251
- "module": "form-field/form-field/form-field.component.js"
130213
+ "name": "SbbDisabledMixin",
130214
+ "module": "core/mixins/disabled-mixin.js"
130252
130215
  }
130253
130216
  },
130254
130217
  {
130255
- "kind": "field",
130256
- "name": "_errorElements",
130257
- "type": {
130258
- "text": "Element[]"
130218
+ "kind": "method",
130219
+ "name": "isDisabledExternally",
130220
+ "privacy": "protected",
130221
+ "return": {
130222
+ "type": {
130223
+ "text": "boolean"
130224
+ }
130259
130225
  },
130260
- "privacy": "private",
130261
- "default": "[]",
130262
- "description": "It is used internally to get the `error` slot.",
130226
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
130263
130227
  "inheritedFrom": {
130264
- "name": "SbbFormFieldElement",
130265
- "module": "form-field/form-field/form-field.component.js"
130228
+ "name": "SbbDisabledMixin",
130229
+ "module": "core/mixins/disabled-mixin.js"
130266
130230
  }
130267
130231
  },
130268
130232
  {
130269
130233
  "kind": "field",
130270
- "name": "_hintElements",
130234
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
130271
130235
  "type": {
130272
- "text": "Element[]"
130236
+ "text": "array"
130273
130237
  },
130274
130238
  "privacy": "private",
130275
- "default": "[]",
130276
- "description": "It is used internally to get the `hint` slot.",
130239
+ "readonly": true,
130240
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
130277
130241
  "inheritedFrom": {
130278
- "name": "SbbFormFieldElement",
130279
- "module": "form-field/form-field/form-field.component.js"
130242
+ "name": "SbbButtonBaseElement",
130243
+ "module": "core/base-elements/button-base-element.js"
130280
130244
  }
130281
130245
  },
130282
130246
  {
130283
130247
  "kind": "field",
130284
- "name": "_input",
130248
+ "name": "value",
130285
130249
  "type": {
130286
- "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
130250
+ "text": "string"
130287
130251
  },
130288
- "privacy": "private",
130289
- "default": "null",
130290
- "description": "Reference to the slotted input element.",
130252
+ "privacy": "public",
130291
130253
  "inheritedFrom": {
130292
- "name": "SbbFormFieldElement",
130293
- "module": "form-field/form-field/form-field.component.js"
130294
- }
130254
+ "name": "SbbButtonBaseElement",
130255
+ "module": "core/base-elements/button-base-element.js"
130256
+ },
130257
+ "default": "''",
130258
+ "description": "Value of the form element.",
130259
+ "attribute": "value"
130295
130260
  },
130296
130261
  {
130297
130262
  "kind": "field",
130298
- "name": "_label",
130263
+ "name": "type",
130264
+ "privacy": "public",
130265
+ "description": "The type attribute to use for the button.",
130266
+ "default": "'button'",
130299
130267
  "type": {
130300
- "text": "HTMLLabelElement"
130268
+ "text": "SbbButtonType"
130301
130269
  },
130302
- "privacy": "private",
130303
- "description": "Reference to the slotted label elements.",
130270
+ "attribute": "type",
130304
130271
  "inheritedFrom": {
130305
- "name": "SbbFormFieldElement",
130306
- "module": "form-field/form-field/form-field.component.js"
130272
+ "name": "SbbButtonBaseElement",
130273
+ "module": "core/base-elements/button-base-element.js"
130307
130274
  }
130308
130275
  },
130309
130276
  {
130310
130277
  "kind": "field",
130311
- "name": "inputElement",
130278
+ "name": "form",
130312
130279
  "type": {
130313
- "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
130280
+ "text": "HTMLFormElement | null"
130314
130281
  },
130315
130282
  "privacy": "public",
130316
- "description": "Returns the input element.",
130317
- "readonly": true,
130283
+ "description": "The `<form>` element to associate the button with.",
130318
130284
  "inheritedFrom": {
130319
- "name": "SbbFormFieldElement",
130320
- "module": "form-field/form-field/form-field.component.js"
130321
- }
130285
+ "name": "SbbButtonBaseElement",
130286
+ "module": "core/base-elements/button-base-element.js"
130287
+ },
130288
+ "attribute": "form"
130322
130289
  },
130323
130290
  {
130324
130291
  "kind": "field",
130325
- "name": "label",
130292
+ "name": "_formId",
130326
130293
  "type": {
130327
- "text": "HTMLLabelElement | null"
130294
+ "text": "string"
130328
130295
  },
130329
- "privacy": "public",
130330
- "description": "Reference to the slotted label.",
130331
- "readonly": true,
130296
+ "privacy": "private",
130297
+ "default": "''",
130332
130298
  "inheritedFrom": {
130333
- "name": "SbbFormFieldElement",
130334
- "module": "form-field/form-field/form-field.component.js"
130299
+ "name": "SbbButtonBaseElement",
130300
+ "module": "core/base-elements/button-base-element.js"
130335
130301
  }
130336
130302
  },
130337
130303
  {
130338
130304
  "kind": "field",
130339
- "name": "_language",
130305
+ "name": "_handleButtonClick",
130340
130306
  "privacy": "private",
130341
- "default": "new SbbLanguageController(this)",
130342
130307
  "inheritedFrom": {
130343
- "name": "SbbFormFieldElement",
130344
- "module": "form-field/form-field/form-field.component.js"
130308
+ "name": "SbbButtonBaseElement",
130309
+ "module": "core/base-elements/button-base-element.js"
130345
130310
  }
130346
130311
  },
130347
130312
  {
130348
- "kind": "field",
130349
- "name": "_formFieldAttributeObserver",
130313
+ "kind": "method",
130314
+ "name": "_requestSubmit",
130350
130315
  "privacy": "private",
130351
- "description": "Listens to the changes on `readonly` and `disabled` attributes of `<input>`.",
130316
+ "return": {
130317
+ "type": {
130318
+ "text": "void"
130319
+ }
130320
+ },
130321
+ "parameters": [
130322
+ {
130323
+ "name": "form",
130324
+ "type": {
130325
+ "text": "HTMLFormElement"
130326
+ }
130327
+ }
130328
+ ],
130352
130329
  "inheritedFrom": {
130353
- "name": "SbbFormFieldElement",
130354
- "module": "form-field/form-field/form-field.component.js"
130330
+ "name": "SbbButtonBaseElement",
130331
+ "module": "core/base-elements/button-base-element.js"
130355
130332
  }
130356
130333
  },
130357
130334
  {
130358
130335
  "kind": "field",
130359
- "name": "_inputFormAbortController",
130336
+ "name": "_formKeyDown",
130360
130337
  "privacy": "private",
130361
- "default": "new AbortController()",
130362
130338
  "inheritedFrom": {
130363
- "name": "SbbFormFieldElement",
130364
- "module": "form-field/form-field/form-field.component.js"
130339
+ "name": "SbbButtonBaseElement",
130340
+ "module": "core/base-elements/button-base-element.js"
130365
130341
  }
130366
130342
  },
130367
130343
  {
130368
130344
  "kind": "field",
130369
- "name": "_control",
130345
+ "name": "formAssociated",
130370
130346
  "type": {
130371
- "text": "SbbFormFieldElementControl | null"
130347
+ "text": "boolean"
130372
130348
  },
130373
- "privacy": "private",
130374
- "default": "null",
130349
+ "privacy": "public",
130350
+ "static": true,
130351
+ "default": "true",
130375
130352
  "inheritedFrom": {
130376
- "name": "SbbFormFieldElement",
130377
- "module": "form-field/form-field/form-field.component.js"
130353
+ "name": "SbbFormAssociatedMixin",
130354
+ "module": "core/mixins/form-associated-mixin.js"
130378
130355
  }
130379
130356
  },
130380
130357
  {
130381
- "kind": "method",
130382
- "name": "_handleWrapperClick",
130383
- "privacy": "private",
130384
- "return": {
130385
- "type": {
130386
- "text": "void"
130387
- }
130358
+ "kind": "field",
130359
+ "name": "name",
130360
+ "privacy": "public",
130361
+ "description": "Name of the form element. Will be read from name attribute.",
130362
+ "type": {
130363
+ "text": "string"
130388
130364
  },
130389
- "parameters": [
130390
- {
130391
- "name": "event",
130392
- "type": {
130393
- "text": "MouseEvent"
130394
- }
130395
- }
130396
- ],
130365
+ "attribute": "name",
130397
130366
  "inheritedFrom": {
130398
- "name": "SbbFormFieldElement",
130399
- "module": "form-field/form-field/form-field.component.js"
130367
+ "name": "SbbFormAssociatedMixin",
130368
+ "module": "core/mixins/form-associated-mixin.js"
130400
130369
  }
130401
130370
  },
130402
130371
  {
130403
- "kind": "method",
130404
- "name": "_isElementFocusExcluded",
130405
- "privacy": "private",
130406
- "return": {
130407
- "type": {
130408
- "text": "boolean"
130409
- }
130372
+ "kind": "field",
130373
+ "name": "validity",
130374
+ "type": {
130375
+ "text": "ValidityState"
130410
130376
  },
130411
- "parameters": [
130412
- {
130413
- "name": "event",
130414
- "type": {
130415
- "text": "Event"
130416
- }
130417
- }
130418
- ],
130377
+ "privacy": "public",
130378
+ "description": "Returns the ValidityState object for this element.",
130379
+ "readonly": true,
130419
130380
  "inheritedFrom": {
130420
- "name": "SbbFormFieldElement",
130421
- "module": "form-field/form-field/form-field.component.js"
130381
+ "name": "SbbFormAssociatedMixin",
130382
+ "module": "core/mixins/form-associated-mixin.js"
130422
130383
  }
130423
130384
  },
130424
130385
  {
130425
- "kind": "method",
130426
- "name": "_onSlotLabelChange",
130427
- "privacy": "private",
130428
- "return": {
130429
- "type": {
130430
- "text": "void"
130431
- }
130386
+ "kind": "field",
130387
+ "name": "validationMessage",
130388
+ "type": {
130389
+ "text": "string"
130390
+ },
130391
+ "privacy": "public",
130392
+ "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.",
130393
+ "readonly": true,
130394
+ "inheritedFrom": {
130395
+ "name": "SbbFormAssociatedMixin",
130396
+ "module": "core/mixins/form-associated-mixin.js"
130397
+ }
130398
+ },
130399
+ {
130400
+ "kind": "field",
130401
+ "name": "willValidate",
130402
+ "type": {
130403
+ "text": "boolean"
130432
130404
  },
130405
+ "privacy": "public",
130406
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
130407
+ "readonly": true,
130433
130408
  "inheritedFrom": {
130434
- "name": "SbbFormFieldElement",
130435
- "module": "form-field/form-field/form-field.component.js"
130409
+ "name": "SbbFormAssociatedMixin",
130410
+ "module": "core/mixins/form-associated-mixin.js"
130436
130411
  }
130437
130412
  },
130438
130413
  {
130439
- "kind": "method",
130440
- "name": "_onSlotInputChange",
130414
+ "kind": "field",
130415
+ "name": "_validityStates",
130441
130416
  "privacy": "private",
130442
- "return": {
130443
- "type": {
130444
- "text": "void"
130445
- }
130446
- },
130447
- "description": "It is used internally to assign the attributes of `<input>` to `_id` and `_input` and to observe the native readonly and disabled attributes.",
130417
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
130448
130418
  "inheritedFrom": {
130449
- "name": "SbbFormFieldElement",
130450
- "module": "form-field/form-field/form-field.component.js"
130419
+ "name": "SbbFormAssociatedMixin",
130420
+ "module": "core/mixins/form-associated-mixin.js"
130451
130421
  }
130452
130422
  },
130453
130423
  {
130454
- "kind": "method",
130455
- "name": "_assignSlots",
130456
- "privacy": "private",
130457
- "return": {
130458
- "type": {
130459
- "text": "void"
130460
- }
130424
+ "kind": "field",
130425
+ "name": "formDisabled",
130426
+ "type": {
130427
+ "text": "boolean"
130461
130428
  },
130429
+ "privacy": "protected",
130430
+ "default": "false",
130431
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
130462
130432
  "inheritedFrom": {
130463
- "name": "SbbFormFieldElement",
130464
- "module": "form-field/form-field/form-field.component.js"
130433
+ "name": "SbbFormAssociatedMixin",
130434
+ "module": "core/mixins/form-associated-mixin.js"
130465
130435
  }
130466
130436
  },
130467
130437
  {
130468
130438
  "kind": "method",
130469
- "name": "_connectInputElement",
130470
- "privacy": "private",
130439
+ "name": "checkValidity",
130440
+ "privacy": "public",
130471
130441
  "return": {
130472
130442
  "type": {
130473
- "text": "'changed' | 'no-input' | 'unchanged'"
130443
+ "text": "boolean"
130474
130444
  }
130475
130445
  },
130446
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
130476
130447
  "inheritedFrom": {
130477
- "name": "SbbFormFieldElement",
130478
- "module": "form-field/form-field/form-field.component.js"
130448
+ "name": "SbbFormAssociatedMixin",
130449
+ "module": "core/mixins/form-associated-mixin.js"
130479
130450
  }
130480
130451
  },
130481
130452
  {
130482
130453
  "kind": "method",
130483
- "name": "_syncLabelInputReferences",
130484
- "privacy": "private",
130454
+ "name": "reportValidity",
130455
+ "privacy": "public",
130485
130456
  "return": {
130486
130457
  "type": {
130487
- "text": "void"
130458
+ "text": "boolean"
130488
130459
  }
130489
130460
  },
130461
+ "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.",
130490
130462
  "inheritedFrom": {
130491
- "name": "SbbFormFieldElement",
130492
- "module": "form-field/form-field/form-field.component.js"
130463
+ "name": "SbbFormAssociatedMixin",
130464
+ "module": "core/mixins/form-associated-mixin.js"
130493
130465
  }
130494
130466
  },
130495
130467
  {
130496
130468
  "kind": "method",
130497
- "name": "_isInputElement",
130498
- "privacy": "private",
130469
+ "name": "setCustomValidity",
130470
+ "privacy": "public",
130499
130471
  "return": {
130500
130472
  "type": {
130501
- "text": "boolean"
130473
+ "text": "void"
130502
130474
  }
130503
130475
  },
130504
130476
  "parameters": [
130505
130477
  {
130506
- "name": "input",
130478
+ "name": "message",
130507
130479
  "type": {
130508
- "text": "Element"
130480
+ "text": "string"
130509
130481
  }
130510
130482
  }
130511
130483
  ],
130484
+ "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.",
130512
130485
  "inheritedFrom": {
130513
- "name": "SbbFormFieldElement",
130514
- "module": "form-field/form-field/form-field.component.js"
130486
+ "name": "SbbFormAssociatedMixin",
130487
+ "module": "core/mixins/form-associated-mixin.js"
130515
130488
  }
130516
130489
  },
130517
130490
  {
130518
130491
  "kind": "method",
130519
- "name": "_readInputState",
130492
+ "name": "_hasDisabledAncestor",
130520
130493
  "privacy": "private",
130521
130494
  "return": {
130522
130495
  "type": {
130523
- "text": "void"
130496
+ "text": "boolean"
130524
130497
  }
130525
130498
  },
130526
130499
  "inheritedFrom": {
130527
- "name": "SbbFormFieldElement",
130528
- "module": "form-field/form-field/form-field.component.js"
130500
+ "name": "SbbFormAssociatedMixin",
130501
+ "module": "core/mixins/form-associated-mixin.js"
130529
130502
  }
130530
130503
  },
130531
130504
  {
130532
130505
  "kind": "method",
130533
- "name": "_registerInputFormListener",
130534
- "privacy": "private",
130506
+ "name": "updateFormValue",
130507
+ "privacy": "protected",
130535
130508
  "return": {
130536
130509
  "type": {
130537
130510
  "text": "void"
130538
130511
  }
130539
130512
  },
130513
+ "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",
130540
130514
  "inheritedFrom": {
130541
- "name": "SbbFormFieldElement",
130542
- "module": "form-field/form-field/form-field.component.js"
130515
+ "name": "SbbFormAssociatedMixin",
130516
+ "module": "core/mixins/form-associated-mixin.js"
130543
130517
  }
130544
130518
  },
130545
130519
  {
130546
130520
  "kind": "method",
130547
- "name": "_patchInputValue",
130548
- "privacy": "private",
130521
+ "name": "formState",
130522
+ "privacy": "protected",
130549
130523
  "return": {
130550
130524
  "type": {
130551
- "text": "void"
130525
+ "text": "FormRestoreState"
130552
130526
  }
130553
130527
  },
130554
130528
  "inheritedFrom": {
130555
- "name": "SbbFormFieldElement",
130556
- "module": "form-field/form-field/form-field.component.js"
130529
+ "name": "SbbFormAssociatedMixin",
130530
+ "module": "core/mixins/form-associated-mixin.js"
130557
130531
  }
130558
130532
  },
130559
130533
  {
130560
130534
  "kind": "method",
130561
- "name": "_unpatchInputValue",
130562
- "privacy": "private",
130535
+ "name": "setValidityFlag",
130536
+ "privacy": "protected",
130563
130537
  "return": {
130564
130538
  "type": {
130565
130539
  "text": "void"
130566
130540
  }
130567
130541
  },
130542
+ "parameters": [
130543
+ {
130544
+ "name": "flag",
130545
+ "type": {
130546
+ "text": "T"
130547
+ }
130548
+ },
130549
+ {
130550
+ "name": "message",
130551
+ "type": {
130552
+ "text": "string"
130553
+ }
130554
+ },
130555
+ {
130556
+ "name": "flagValue",
130557
+ "optional": true,
130558
+ "type": {
130559
+ "text": "ValidityStateFlags[T]"
130560
+ }
130561
+ }
130562
+ ],
130563
+ "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).",
130568
130564
  "inheritedFrom": {
130569
- "name": "SbbFormFieldElement",
130570
- "module": "form-field/form-field/form-field.component.js"
130565
+ "name": "SbbFormAssociatedMixin",
130566
+ "module": "core/mixins/form-associated-mixin.js"
130571
130567
  }
130572
130568
  },
130573
130569
  {
130574
130570
  "kind": "method",
130575
- "name": "_checkAndUpdateInputEmpty",
130576
- "privacy": "private",
130571
+ "name": "removeValidityFlag",
130572
+ "privacy": "protected",
130577
130573
  "return": {
130578
130574
  "type": {
130579
130575
  "text": "void"
130580
130576
  }
130581
130577
  },
130582
- "inheritedFrom": {
130583
- "name": "SbbFormFieldElement",
130584
- "module": "form-field/form-field/form-field.component.js"
130585
- }
130586
- },
130587
- {
130588
- "kind": "method",
130589
- "name": "_isInputEmpty",
130590
- "privacy": "private",
130591
- "return": {
130592
- "type": {
130593
- "text": "boolean"
130578
+ "parameters": [
130579
+ {
130580
+ "name": "flag",
130581
+ "type": {
130582
+ "text": "T"
130583
+ }
130594
130584
  }
130595
- },
130585
+ ],
130586
+ "description": "Removes the validity state flag entry and updates validity state.",
130596
130587
  "inheritedFrom": {
130597
- "name": "SbbFormFieldElement",
130598
- "module": "form-field/form-field/form-field.component.js"
130588
+ "name": "SbbFormAssociatedMixin",
130589
+ "module": "core/mixins/form-associated-mixin.js"
130599
130590
  }
130600
130591
  },
130601
130592
  {
130602
130593
  "kind": "method",
130603
- "name": "_isInputValueEmpty",
130604
- "privacy": "private",
130594
+ "name": "validate",
130595
+ "privacy": "protected",
130605
130596
  "return": {
130606
130597
  "type": {
130607
- "text": "boolean"
130598
+ "text": "void"
130608
130599
  }
130609
130600
  },
130601
+ "description": "To be called whenever the current element needs to be validated.",
130610
130602
  "inheritedFrom": {
130611
- "name": "SbbFormFieldElement",
130612
- "module": "form-field/form-field/form-field.component.js"
130603
+ "name": "SbbFormAssociatedMixin",
130604
+ "module": "core/mixins/form-associated-mixin.js"
130613
130605
  }
130614
130606
  },
130615
130607
  {
130616
130608
  "kind": "method",
130617
- "name": "_onSlotErrorChange",
130618
- "privacy": "private",
130609
+ "name": "shouldValidate",
130610
+ "privacy": "protected",
130619
130611
  "return": {
130620
130612
  "type": {
130621
- "text": "void"
130613
+ "text": "boolean"
130622
130614
  }
130623
130615
  },
130624
130616
  "parameters": [
130625
130617
  {
130626
- "name": "event",
130618
+ "name": "name",
130627
130619
  "type": {
130628
- "text": "Event"
130620
+ "text": "PropertyKey | undefined"
130629
130621
  }
130630
130622
  }
130631
130623
  ],
130632
- "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-error> instances.",
130624
+ "description": "Whether validation should be run on a property change with the given name.",
130633
130625
  "inheritedFrom": {
130634
- "name": "SbbFormFieldElement",
130635
- "module": "form-field/form-field/form-field.component.js"
130626
+ "name": "SbbFormAssociatedMixin",
130627
+ "module": "core/mixins/form-associated-mixin.js"
130636
130628
  }
130637
130629
  },
130638
130630
  {
130639
130631
  "kind": "method",
130640
- "name": "_onSlotHintChange",
130632
+ "name": "_setInternalValidity",
130641
130633
  "privacy": "private",
130642
130634
  "return": {
130643
130635
  "type": {
130644
130636
  "text": "void"
130645
130637
  }
130646
130638
  },
130639
+ "inheritedFrom": {
130640
+ "name": "SbbFormAssociatedMixin",
130641
+ "module": "core/mixins/form-associated-mixin.js"
130642
+ }
130643
+ },
130644
+ {
130645
+ "kind": "field",
130646
+ "name": "role",
130647
+ "type": {
130648
+ "text": "ElementInternals['role']"
130649
+ },
130650
+ "privacy": "public",
130651
+ "static": true,
130652
+ "readonly": true,
130653
+ "default": "'button'",
130654
+ "inheritedFrom": {
130655
+ "name": "SbbButtonLikeBaseElement",
130656
+ "module": "core/base-elements/button-base-element.js"
130657
+ }
130658
+ },
130659
+ {
130660
+ "kind": "field",
130661
+ "name": "_preventScrollOnSpaceKeydown",
130662
+ "privacy": "private",
130663
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
130647
130664
  "parameters": [
130648
130665
  {
130649
- "name": "event",
130650
- "type": {
130651
- "text": "Event"
130652
- }
130666
+ "description": "The origin event.",
130667
+ "name": "event"
130653
130668
  }
130654
130669
  ],
130655
- "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-hint> instances.",
130656
130670
  "inheritedFrom": {
130657
- "name": "SbbFormFieldElement",
130658
- "module": "form-field/form-field/form-field.component.js"
130671
+ "name": "SbbButtonLikeBaseElement",
130672
+ "module": "core/base-elements/button-base-element.js"
130659
130673
  }
130660
130674
  },
130661
130675
  {
130662
- "kind": "method",
130663
- "name": "_assignAriaDescribedByElements",
130676
+ "kind": "field",
130677
+ "name": "_removeActiveMarker",
130664
130678
  "privacy": "private",
130665
- "return": {
130666
- "type": {
130667
- "text": "void"
130668
- }
130669
- },
130670
130679
  "inheritedFrom": {
130671
- "name": "SbbFormFieldElement",
130672
- "module": "form-field/form-field/form-field.component.js"
130680
+ "name": "SbbButtonLikeBaseElement",
130681
+ "module": "core/base-elements/button-base-element.js"
130673
130682
  }
130674
130683
  },
130675
130684
  {
130676
- "kind": "method",
130677
- "name": "reset",
130678
- "privacy": "public",
130679
- "return": {
130680
- "type": {
130681
- "text": "void"
130685
+ "kind": "field",
130686
+ "name": "_dispatchClickEventOnSpaceKeyup",
130687
+ "privacy": "private",
130688
+ "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.",
130689
+ "parameters": [
130690
+ {
130691
+ "description": "The origin event.",
130692
+ "name": "event"
130682
130693
  }
130683
- },
130684
- "description": "Manually reset the form field. Currently, this only resets the floating label.",
130694
+ ],
130685
130695
  "inheritedFrom": {
130686
- "name": "SbbFormFieldElement",
130687
- "module": "form-field/form-field/form-field.component.js"
130696
+ "name": "SbbButtonLikeBaseElement",
130697
+ "module": "core/base-elements/button-base-element.js"
130688
130698
  }
130689
130699
  },
130690
130700
  {
130691
- "kind": "method",
130692
- "name": "clear",
130693
- "privacy": "public",
130694
- "return": {
130695
- "type": {
130696
- "text": "void"
130697
- }
130701
+ "kind": "field",
130702
+ "name": "_dispatchClickEvent",
130703
+ "privacy": "private",
130704
+ "inheritedFrom": {
130705
+ "name": "SbbButtonLikeBaseElement",
130706
+ "module": "core/base-elements/button-base-element.js"
130707
+ }
130708
+ },
130709
+ {
130710
+ "kind": "field",
130711
+ "name": "maybeDisabled",
130712
+ "type": {
130713
+ "text": "boolean | undefined"
130698
130714
  },
130699
- "description": "Manually clears the input value. It only works for inputs, selects are not supported.",
130715
+ "privacy": "protected",
130716
+ "readonly": true,
130700
130717
  "inheritedFrom": {
130701
- "name": "SbbFormFieldElement",
130702
- "module": "form-field/form-field/form-field.component.js"
130718
+ "name": "SbbActionBaseElement",
130719
+ "module": "core/base-elements/action-base-element.js"
130703
130720
  }
130704
130721
  },
130705
130722
  {
130706
- "kind": "method",
130707
- "name": "_syncNegative",
130708
- "privacy": "private",
130709
- "return": {
130710
- "type": {
130711
- "text": "void"
130712
- }
130723
+ "kind": "field",
130724
+ "name": "maybeDisabledInteractive",
130725
+ "type": {
130726
+ "text": "boolean | undefined"
130713
130727
  },
130728
+ "privacy": "protected",
130729
+ "readonly": true,
130714
130730
  "inheritedFrom": {
130715
- "name": "SbbFormFieldElement",
130716
- "module": "form-field/form-field/form-field.component.js"
130731
+ "name": "SbbActionBaseElement",
130732
+ "module": "core/base-elements/action-base-element.js"
130717
130733
  }
130718
130734
  },
130719
130735
  {
130720
130736
  "kind": "method",
130721
- "name": "_syncSize",
130722
- "privacy": "private",
130737
+ "name": "setupBaseEventHandlers",
130738
+ "privacy": "protected",
130723
130739
  "return": {
130724
130740
  "type": {
130725
130741
  "text": "void"
130726
130742
  }
130727
130743
  },
130728
130744
  "inheritedFrom": {
130729
- "name": "SbbFormFieldElement",
130730
- "module": "form-field/form-field/form-field.component.js"
130745
+ "name": "SbbActionBaseElement",
130746
+ "module": "core/base-elements/action-base-element.js"
130731
130747
  }
130732
130748
  },
130733
130749
  {
@@ -130837,12 +130853,38 @@
130837
130853
  }
130838
130854
  ],
130839
130855
  "superclass": {
130840
- "name": "SbbFormFieldElement",
130841
- "module": "form-field.pure.js"
130856
+ "name": "SbbSecondaryButtonElement",
130857
+ "module": "button.pure.js"
130842
130858
  },
130843
- "tagName": "sbb-timetable-form-field",
130859
+ "tagName": "sbb-timetable-form-swap-button",
130844
130860
  "customElement": true,
130845
130861
  "attributes": [
130862
+ {
130863
+ "name": "size",
130864
+ "type": {
130865
+ "text": "SbbButtonSize"
130866
+ },
130867
+ "description": "Size variant, either l, m or s.",
130868
+ "default": "'l' / 's' (lean)",
130869
+ "fieldName": "size",
130870
+ "inheritedFrom": {
130871
+ "name": "SbbButtonCommonElementMixin",
130872
+ "module": "button/common/button-common.js"
130873
+ }
130874
+ },
130875
+ {
130876
+ "name": "loading",
130877
+ "type": {
130878
+ "text": "boolean"
130879
+ },
130880
+ "default": "false",
130881
+ "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.",
130882
+ "fieldName": "loading",
130883
+ "inheritedFrom": {
130884
+ "name": "SbbButtonCommonElementMixin",
130885
+ "module": "button/common/button-common.js"
130886
+ }
130887
+ },
130846
130888
  {
130847
130889
  "name": "negative",
130848
130890
  "type": {
@@ -130857,163 +130899,121 @@
130857
130899
  }
130858
130900
  },
130859
130901
  {
130860
- "name": "error-space",
130902
+ "name": "icon-name",
130861
130903
  "type": {
130862
- "text": "'none' | 'reserve'"
130904
+ "text": "string"
130863
130905
  },
130864
- "default": "'none'",
130865
- "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.",
130866
- "fieldName": "errorSpace",
130906
+ "default": "''",
130907
+ "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.",
130908
+ "fieldName": "iconName",
130867
130909
  "inheritedFrom": {
130868
- "name": "SbbFormFieldElement",
130869
- "module": "form-field/form-field/form-field.component.js"
130910
+ "name": "SbbIconNameMixin",
130911
+ "module": "icon/icon-name-mixin.js"
130870
130912
  }
130871
130913
  },
130872
130914
  {
130873
- "name": "optional",
130915
+ "name": "disabled-interactive",
130874
130916
  "type": {
130875
130917
  "text": "boolean"
130876
130918
  },
130877
130919
  "default": "false",
130878
- "description": "Indicates whether the input is optional.",
130879
- "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
130880
- "fieldName": "optional",
130920
+ "description": "Whether the button should be aria-disabled but stay interactive.",
130921
+ "fieldName": "disabledInteractive",
130881
130922
  "inheritedFrom": {
130882
- "name": "SbbFormFieldElement",
130883
- "module": "form-field/form-field/form-field.component.js"
130923
+ "name": "SbbDisabledInteractiveMixin",
130924
+ "module": "core/mixins/disabled-mixin.js"
130884
130925
  }
130885
130926
  },
130886
130927
  {
130887
- "name": "size",
130928
+ "name": "disabled",
130929
+ "description": "Whether the component is disabled.",
130930
+ "default": "false",
130888
130931
  "type": {
130889
- "text": "'l' | 'm' | 's'"
130932
+ "text": "boolean"
130890
130933
  },
130891
- "description": "Size variant, either l, m or s.",
130892
- "default": "'m' / 's' (lean)",
130893
- "fieldName": "size",
130934
+ "fieldName": "disabled",
130894
130935
  "inheritedFrom": {
130895
- "name": "SbbFormFieldElement",
130896
- "module": "form-field/form-field/form-field.component.js"
130936
+ "name": "SbbDisabledMixin",
130937
+ "module": "core/mixins/disabled-mixin.js"
130897
130938
  }
130898
130939
  },
130899
130940
  {
130900
- "name": "borderless",
130941
+ "name": "value",
130901
130942
  "type": {
130902
- "text": "boolean"
130943
+ "text": "string"
130903
130944
  },
130904
- "default": "false",
130905
- "description": "Whether to display the form field without a border.",
130906
- "fieldName": "borderless",
130945
+ "default": "''",
130946
+ "description": "Value of the form element.",
130947
+ "fieldName": "value",
130907
130948
  "inheritedFrom": {
130908
- "name": "SbbFormFieldElement",
130909
- "module": "form-field/form-field/form-field.component.js"
130949
+ "name": "SbbButtonBaseElement",
130950
+ "module": "core/base-elements/button-base-element.js"
130910
130951
  }
130911
130952
  },
130912
130953
  {
130913
- "name": "width",
130954
+ "name": "type",
130955
+ "description": "The type attribute to use for the button.",
130956
+ "default": "'button'",
130914
130957
  "type": {
130915
- "text": "'default' | 'collapse'"
130958
+ "text": "SbbButtonType"
130916
130959
  },
130917
- "default": "'default'",
130918
- "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.",
130919
- "fieldName": "width",
130960
+ "fieldName": "type",
130920
130961
  "inheritedFrom": {
130921
- "name": "SbbFormFieldElement",
130922
- "module": "form-field/form-field/form-field.component.js"
130962
+ "name": "SbbButtonBaseElement",
130963
+ "module": "core/base-elements/button-base-element.js"
130923
130964
  }
130924
130965
  },
130925
130966
  {
130926
- "name": "hidden-label",
130967
+ "name": "form",
130968
+ "description": "The `<form>` element to associate the button with.",
130927
130969
  "type": {
130928
- "text": "boolean"
130970
+ "text": "HTMLFormElement | null"
130929
130971
  },
130930
- "default": "false",
130931
- "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
130932
- "fieldName": "hiddenLabel",
130972
+ "fieldName": "form",
130933
130973
  "inheritedFrom": {
130934
- "name": "SbbFormFieldElement",
130935
- "module": "form-field/form-field/form-field.component.js"
130974
+ "name": "SbbButtonBaseElement",
130975
+ "module": "core/base-elements/button-base-element.js"
130936
130976
  }
130937
130977
  },
130938
130978
  {
130939
- "name": "floating-label",
130979
+ "name": "name",
130980
+ "description": "Name of the form element. Will be read from name attribute.",
130940
130981
  "type": {
130941
- "text": "boolean"
130982
+ "text": "string"
130942
130983
  },
130943
- "default": "false",
130944
- "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
130945
- "fieldName": "floatingLabel",
130984
+ "fieldName": "name",
130946
130985
  "inheritedFrom": {
130947
- "name": "SbbFormFieldElement",
130948
- "module": "form-field/form-field/form-field.component.js"
130986
+ "name": "SbbFormAssociatedMixin",
130987
+ "module": "core/mixins/form-associated-mixin.js"
130949
130988
  }
130950
130989
  }
130951
130990
  ],
130952
130991
  "slots": [
130953
130992
  {
130954
- "description": "Use this slot to render an input/select or a supported non-native element.",
130993
+ "description": "Use the unnamed slot to add content to the secondary-button.",
130955
130994
  "name": "",
130956
130995
  "inheritedFrom": {
130957
- "name": "SbbFormFieldElement",
130958
- "module": "form-field/form-field/form-field.component.js"
130959
- }
130960
- },
130961
- {
130962
- "description": "Use this slot to render a label.",
130963
- "name": "label",
130964
- "inheritedFrom": {
130965
- "name": "SbbFormFieldElement",
130966
- "module": "form-field/form-field/form-field.component.js"
130967
- }
130968
- },
130969
- {
130970
- "description": "Use this slot to render an icon on the left side of the input.",
130971
- "name": "prefix",
130972
- "inheritedFrom": {
130973
- "name": "SbbFormFieldElement",
130974
- "module": "form-field/form-field/form-field.component.js"
130975
- }
130976
- },
130977
- {
130978
- "description": "Use this slot to render an icon on the right side of the input.",
130979
- "name": "suffix",
130980
- "inheritedFrom": {
130981
- "name": "SbbFormFieldElement",
130982
- "module": "form-field/form-field/form-field.component.js"
130983
- }
130984
- },
130985
- {
130986
- "description": "Use this slot to render an error.",
130987
- "name": "error",
130988
- "inheritedFrom": {
130989
- "name": "SbbFormFieldElement",
130990
- "module": "form-field/form-field/form-field.component.js"
130996
+ "name": "SbbSecondaryButtonElement",
130997
+ "module": "button/secondary-button/secondary-button.component.js"
130991
130998
  }
130992
130999
  },
130993
131000
  {
130994
- "description": "Use this slot to render an `<sbb-hint>` or an `<sbb-form-field-text-counter>` element.",
130995
- "name": "hint",
131001
+ "description": "Slot used to display the icon, if one is set.",
131002
+ "name": "icon",
130996
131003
  "inheritedFrom": {
130997
- "name": "SbbFormFieldElement",
130998
- "module": "form-field/form-field/form-field.component.js"
131004
+ "name": "SbbSecondaryButtonElement",
131005
+ "module": "button/secondary-button/secondary-button.component.js"
130999
131006
  }
131000
131007
  }
131001
131008
  ],
131002
131009
  "cssProperties": [
131003
131010
  {
131004
- "description": "To override the focus outline offset,",
131005
- "name": "--sbb-form-field-outline-offset",
131006
- "inheritedFrom": {
131007
- "name": "SbbFormFieldElement",
131008
- "module": "form-field/form-field/form-field.component.js"
131009
- }
131010
- },
131011
- {
131012
- "description": "To override the z-index of the focus underline effect,",
131013
- "name": "--sbb-form-field-focus-underline-z-index",
131011
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
131012
+ "name": "--sbb-button-loading-delay",
131013
+ "default": "300ms",
131014
131014
  "inheritedFrom": {
131015
- "name": "SbbFormFieldElement",
131016
- "module": "form-field/form-field/form-field.component.js"
131015
+ "name": "SbbSecondaryButtonElement",
131016
+ "module": "button/secondary-button/secondary-button.component.js"
131017
131017
  }
131018
131018
  }
131019
131019
  ]
@@ -131022,10 +131022,10 @@
131022
131022
  "exports": [
131023
131023
  {
131024
131024
  "kind": "js",
131025
- "name": "SbbTimetableFormFieldElement",
131025
+ "name": "SbbTimetableFormSwapButtonElement",
131026
131026
  "declaration": {
131027
- "name": "SbbTimetableFormFieldElement",
131028
- "module": "timetable-form/timetable-form-field/timetable-form-field.component.js"
131027
+ "name": "SbbTimetableFormSwapButtonElement",
131028
+ "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
131029
131029
  }
131030
131030
  }
131031
131031
  ]