@sbb-esta/lyne-elements-dev 4.12.1-dev.1778145512 → 4.12.1-dev.1778146170

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.
@@ -68609,6 +68609,229 @@
68609
68609
  }
68610
68610
  ]
68611
68611
  },
68612
+ {
68613
+ "kind": "javascript-module",
68614
+ "path": "core/decorators/base.js",
68615
+ "declarations": [],
68616
+ "exports": []
68617
+ },
68618
+ {
68619
+ "kind": "javascript-module",
68620
+ "path": "core/decorators/force-type.js",
68621
+ "declarations": [
68622
+ {
68623
+ "kind": "function",
68624
+ "name": "forceType",
68625
+ "return": {
68626
+ "type": {
68627
+ "text": "PropertyDecorator"
68628
+ }
68629
+ },
68630
+ "parameters": [
68631
+ {
68632
+ "name": "convert",
68633
+ "optional": true,
68634
+ "type": {
68635
+ "text": "(v: unknown) => V"
68636
+ }
68637
+ }
68638
+ ],
68639
+ "description": "Decorator that forces the value of a property or getter/setter\nto the defined type."
68640
+ }
68641
+ ],
68642
+ "exports": [
68643
+ {
68644
+ "kind": "js",
68645
+ "name": "forceType",
68646
+ "declaration": {
68647
+ "name": "forceType",
68648
+ "module": "core/decorators/force-type.js"
68649
+ }
68650
+ }
68651
+ ]
68652
+ },
68653
+ {
68654
+ "kind": "javascript-module",
68655
+ "path": "core/decorators/get-override.js",
68656
+ "declarations": [
68657
+ {
68658
+ "kind": "function",
68659
+ "name": "getOverride",
68660
+ "parameters": [
68661
+ {
68662
+ "name": "callback",
68663
+ "type": {
68664
+ "text": "(instance: C, innerValue: V) => V"
68665
+ }
68666
+ }
68667
+ ],
68668
+ "description": "Decorator that overrides the underlying getter of the accessor."
68669
+ }
68670
+ ],
68671
+ "exports": [
68672
+ {
68673
+ "kind": "js",
68674
+ "name": "getOverride",
68675
+ "declaration": {
68676
+ "name": "getOverride",
68677
+ "module": "core/decorators/get-override.js"
68678
+ }
68679
+ }
68680
+ ]
68681
+ },
68682
+ {
68683
+ "kind": "javascript-module",
68684
+ "path": "core/decorators/handle-distinct-change.js",
68685
+ "declarations": [
68686
+ {
68687
+ "kind": "function",
68688
+ "name": "handleDistinctChange",
68689
+ "parameters": [
68690
+ {
68691
+ "name": "callback",
68692
+ "type": {
68693
+ "text": "(instance: C, newValue: V, oldValue: V | undefined) => void"
68694
+ }
68695
+ }
68696
+ ],
68697
+ "description": "Decorator that calls the given callback when the value\nof the associated property is changed."
68698
+ }
68699
+ ],
68700
+ "exports": [
68701
+ {
68702
+ "kind": "js",
68703
+ "name": "handleDistinctChange",
68704
+ "declaration": {
68705
+ "name": "handleDistinctChange",
68706
+ "module": "core/decorators/handle-distinct-change.js"
68707
+ }
68708
+ }
68709
+ ]
68710
+ },
68711
+ {
68712
+ "kind": "javascript-module",
68713
+ "path": "core/decorators/host-attributes.js",
68714
+ "declarations": [
68715
+ {
68716
+ "kind": "function",
68717
+ "name": "hostAttributes",
68718
+ "parameters": [
68719
+ {
68720
+ "name": "attributes",
68721
+ "type": {
68722
+ "text": "Record<string, string | null>"
68723
+ },
68724
+ "description": "A record of attributes to apply to the element."
68725
+ }
68726
+ ],
68727
+ "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.",
68728
+ "deprecated": "Will be removed with next major version."
68729
+ }
68730
+ ],
68731
+ "exports": [
68732
+ {
68733
+ "kind": "js",
68734
+ "name": "hostAttributes",
68735
+ "declaration": {
68736
+ "name": "hostAttributes",
68737
+ "module": "core/decorators/host-attributes.js"
68738
+ }
68739
+ }
68740
+ ]
68741
+ },
68742
+ {
68743
+ "kind": "javascript-module",
68744
+ "path": "core/decorators/id-reference.js",
68745
+ "declarations": [
68746
+ {
68747
+ "kind": "function",
68748
+ "name": "idReference",
68749
+ "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."
68750
+ }
68751
+ ],
68752
+ "exports": [
68753
+ {
68754
+ "kind": "js",
68755
+ "name": "idReference",
68756
+ "declaration": {
68757
+ "name": "idReference",
68758
+ "module": "core/decorators/id-reference.js"
68759
+ }
68760
+ }
68761
+ ]
68762
+ },
68763
+ {
68764
+ "kind": "javascript-module",
68765
+ "path": "core/decorators/omit-empty-converter.js",
68766
+ "declarations": [
68767
+ {
68768
+ "kind": "variable",
68769
+ "name": "omitEmptyConverter",
68770
+ "type": {
68771
+ "text": "ComplexAttributeConverter"
68772
+ },
68773
+ "default": "{ toAttribute(value, type) { return ((type === String || type === undefined) && value === '') || (type === Number && isNaN(value as number)) ? null : defaultConverter.toAttribute!(value, type); }, }",
68774
+ "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."
68775
+ }
68776
+ ],
68777
+ "exports": [
68778
+ {
68779
+ "kind": "js",
68780
+ "name": "omitEmptyConverter",
68781
+ "declaration": {
68782
+ "name": "omitEmptyConverter",
68783
+ "module": "core/decorators/omit-empty-converter.js"
68784
+ }
68785
+ }
68786
+ ]
68787
+ },
68788
+ {
68789
+ "kind": "javascript-module",
68790
+ "path": "core/decorators/plain-date.js",
68791
+ "declarations": [
68792
+ {
68793
+ "kind": "variable",
68794
+ "name": "plainDateConverter",
68795
+ "type": {
68796
+ "text": "ComplexAttributeConverter"
68797
+ },
68798
+ "default": "{ toAttribute(value, _type) { const dateAdapter = readConfig().datetime?.dateAdapter ?? defaultDateAdapter; return dateAdapter.isValid(value) ? dateAdapter.toIso8601(value) : null; }, }",
68799
+ "description": "Will convert date object values to ISO8601 formatted strings as attributes.\nShould be used together with the `plainDate` decorator."
68800
+ },
68801
+ {
68802
+ "kind": "function",
68803
+ "name": "plainDate",
68804
+ "parameters": [
68805
+ {
68806
+ "name": "config",
68807
+ "optional": true,
68808
+ "type": {
68809
+ "text": "SbbPlainDateConfiguration"
68810
+ }
68811
+ }
68812
+ ],
68813
+ "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."
68814
+ }
68815
+ ],
68816
+ "exports": [
68817
+ {
68818
+ "kind": "js",
68819
+ "name": "plainDateConverter",
68820
+ "declaration": {
68821
+ "name": "plainDateConverter",
68822
+ "module": "core/decorators/plain-date.js"
68823
+ }
68824
+ },
68825
+ {
68826
+ "kind": "js",
68827
+ "name": "plainDate",
68828
+ "declaration": {
68829
+ "name": "plainDate",
68830
+ "module": "core/decorators/plain-date.js"
68831
+ }
68832
+ }
68833
+ ]
68834
+ },
68612
68835
  {
68613
68836
  "kind": "javascript-module",
68614
68837
  "path": "core/dom/animation.js",
@@ -69047,229 +69270,6 @@
69047
69270
  }
69048
69271
  ]
69049
69272
  },
69050
- {
69051
- "kind": "javascript-module",
69052
- "path": "core/decorators/base.js",
69053
- "declarations": [],
69054
- "exports": []
69055
- },
69056
- {
69057
- "kind": "javascript-module",
69058
- "path": "core/decorators/force-type.js",
69059
- "declarations": [
69060
- {
69061
- "kind": "function",
69062
- "name": "forceType",
69063
- "return": {
69064
- "type": {
69065
- "text": "PropertyDecorator"
69066
- }
69067
- },
69068
- "parameters": [
69069
- {
69070
- "name": "convert",
69071
- "optional": true,
69072
- "type": {
69073
- "text": "(v: unknown) => V"
69074
- }
69075
- }
69076
- ],
69077
- "description": "Decorator that forces the value of a property or getter/setter\nto the defined type."
69078
- }
69079
- ],
69080
- "exports": [
69081
- {
69082
- "kind": "js",
69083
- "name": "forceType",
69084
- "declaration": {
69085
- "name": "forceType",
69086
- "module": "core/decorators/force-type.js"
69087
- }
69088
- }
69089
- ]
69090
- },
69091
- {
69092
- "kind": "javascript-module",
69093
- "path": "core/decorators/get-override.js",
69094
- "declarations": [
69095
- {
69096
- "kind": "function",
69097
- "name": "getOverride",
69098
- "parameters": [
69099
- {
69100
- "name": "callback",
69101
- "type": {
69102
- "text": "(instance: C, innerValue: V) => V"
69103
- }
69104
- }
69105
- ],
69106
- "description": "Decorator that overrides the underlying getter of the accessor."
69107
- }
69108
- ],
69109
- "exports": [
69110
- {
69111
- "kind": "js",
69112
- "name": "getOverride",
69113
- "declaration": {
69114
- "name": "getOverride",
69115
- "module": "core/decorators/get-override.js"
69116
- }
69117
- }
69118
- ]
69119
- },
69120
- {
69121
- "kind": "javascript-module",
69122
- "path": "core/decorators/handle-distinct-change.js",
69123
- "declarations": [
69124
- {
69125
- "kind": "function",
69126
- "name": "handleDistinctChange",
69127
- "parameters": [
69128
- {
69129
- "name": "callback",
69130
- "type": {
69131
- "text": "(instance: C, newValue: V, oldValue: V | undefined) => void"
69132
- }
69133
- }
69134
- ],
69135
- "description": "Decorator that calls the given callback when the value\nof the associated property is changed."
69136
- }
69137
- ],
69138
- "exports": [
69139
- {
69140
- "kind": "js",
69141
- "name": "handleDistinctChange",
69142
- "declaration": {
69143
- "name": "handleDistinctChange",
69144
- "module": "core/decorators/handle-distinct-change.js"
69145
- }
69146
- }
69147
- ]
69148
- },
69149
- {
69150
- "kind": "javascript-module",
69151
- "path": "core/decorators/host-attributes.js",
69152
- "declarations": [
69153
- {
69154
- "kind": "function",
69155
- "name": "hostAttributes",
69156
- "parameters": [
69157
- {
69158
- "name": "attributes",
69159
- "type": {
69160
- "text": "Record<string, string | null>"
69161
- },
69162
- "description": "A record of attributes to apply to the element."
69163
- }
69164
- ],
69165
- "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.",
69166
- "deprecated": "Will be removed with next major version."
69167
- }
69168
- ],
69169
- "exports": [
69170
- {
69171
- "kind": "js",
69172
- "name": "hostAttributes",
69173
- "declaration": {
69174
- "name": "hostAttributes",
69175
- "module": "core/decorators/host-attributes.js"
69176
- }
69177
- }
69178
- ]
69179
- },
69180
- {
69181
- "kind": "javascript-module",
69182
- "path": "core/decorators/id-reference.js",
69183
- "declarations": [
69184
- {
69185
- "kind": "function",
69186
- "name": "idReference",
69187
- "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."
69188
- }
69189
- ],
69190
- "exports": [
69191
- {
69192
- "kind": "js",
69193
- "name": "idReference",
69194
- "declaration": {
69195
- "name": "idReference",
69196
- "module": "core/decorators/id-reference.js"
69197
- }
69198
- }
69199
- ]
69200
- },
69201
- {
69202
- "kind": "javascript-module",
69203
- "path": "core/decorators/omit-empty-converter.js",
69204
- "declarations": [
69205
- {
69206
- "kind": "variable",
69207
- "name": "omitEmptyConverter",
69208
- "type": {
69209
- "text": "ComplexAttributeConverter"
69210
- },
69211
- "default": "{ toAttribute(value, type) { return ((type === String || type === undefined) && value === '') || (type === Number && isNaN(value as number)) ? null : defaultConverter.toAttribute!(value, type); }, }",
69212
- "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."
69213
- }
69214
- ],
69215
- "exports": [
69216
- {
69217
- "kind": "js",
69218
- "name": "omitEmptyConverter",
69219
- "declaration": {
69220
- "name": "omitEmptyConverter",
69221
- "module": "core/decorators/omit-empty-converter.js"
69222
- }
69223
- }
69224
- ]
69225
- },
69226
- {
69227
- "kind": "javascript-module",
69228
- "path": "core/decorators/plain-date.js",
69229
- "declarations": [
69230
- {
69231
- "kind": "variable",
69232
- "name": "plainDateConverter",
69233
- "type": {
69234
- "text": "ComplexAttributeConverter"
69235
- },
69236
- "default": "{ toAttribute(value, _type) { const dateAdapter = readConfig().datetime?.dateAdapter ?? defaultDateAdapter; return dateAdapter.isValid(value) ? dateAdapter.toIso8601(value) : null; }, }",
69237
- "description": "Will convert date object values to ISO8601 formatted strings as attributes.\nShould be used together with the `plainDate` decorator."
69238
- },
69239
- {
69240
- "kind": "function",
69241
- "name": "plainDate",
69242
- "parameters": [
69243
- {
69244
- "name": "config",
69245
- "optional": true,
69246
- "type": {
69247
- "text": "SbbPlainDateConfiguration"
69248
- }
69249
- }
69250
- ],
69251
- "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."
69252
- }
69253
- ],
69254
- "exports": [
69255
- {
69256
- "kind": "js",
69257
- "name": "plainDateConverter",
69258
- "declaration": {
69259
- "name": "plainDateConverter",
69260
- "module": "core/decorators/plain-date.js"
69261
- }
69262
- },
69263
- {
69264
- "kind": "js",
69265
- "name": "plainDate",
69266
- "declaration": {
69267
- "name": "plainDate",
69268
- "module": "core/decorators/plain-date.js"
69269
- }
69270
- }
69271
- ]
69272
- },
69273
69273
  {
69274
69274
  "kind": "javascript-module",
69275
69275
  "path": "core/eventing/composed-path-has-attribute.js",
@@ -87810,85 +87810,115 @@
87810
87810
  },
87811
87811
  {
87812
87812
  "kind": "javascript-module",
87813
- "path": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js",
87813
+ "path": "file-selector/common/file-selector-common.js",
87814
87814
  "declarations": [
87815
+ {
87816
+ "kind": "variable",
87817
+ "name": "fileSelectorCommonStyle"
87818
+ },
87815
87819
  {
87816
87820
  "kind": "class",
87817
- "description": "It acts as a native `summary` tag for the `sbb-expansion-panel` component.",
87818
- "name": "SbbExpansionPanelHeaderElement",
87819
- "slots": [
87821
+ "description": "",
87822
+ "name": "SbbFileSelectorCommonElementMixinType",
87823
+ "members": [
87820
87824
  {
87821
- "description": "Use the unnamed slot to add content to the `sbb-expansion-panel-header`.",
87822
- "name": ""
87825
+ "kind": "field",
87826
+ "name": "size",
87827
+ "type": {
87828
+ "text": "'s' | 'm'"
87829
+ },
87830
+ "privacy": "public"
87823
87831
  },
87824
87832
  {
87825
- "description": "Slot used to render the `sbb-expansion-panel-header` icon.",
87826
- "name": "icon"
87827
- }
87828
- ],
87829
- "members": [
87833
+ "kind": "field",
87834
+ "name": "multiple",
87835
+ "type": {
87836
+ "text": "boolean"
87837
+ },
87838
+ "privacy": "public"
87839
+ },
87830
87840
  {
87831
87841
  "kind": "field",
87832
- "name": "elementName",
87842
+ "name": "multipleMode",
87843
+ "type": {
87844
+ "text": "'default' | 'persistent'"
87845
+ },
87846
+ "privacy": "public"
87847
+ },
87848
+ {
87849
+ "kind": "field",
87850
+ "name": "accept",
87833
87851
  "type": {
87834
87852
  "text": "string"
87835
87853
  },
87836
- "privacy": "public",
87837
- "static": true,
87838
- "readonly": true,
87839
- "inheritedFrom": {
87840
- "name": "SbbElement",
87841
- "module": "core/base-elements/element.js"
87854
+ "privacy": "public"
87855
+ },
87856
+ {
87857
+ "kind": "field",
87858
+ "name": "accessibilityLabel",
87859
+ "type": {
87860
+ "text": "string"
87842
87861
  },
87843
- "default": "'sbb-expansion-panel-header'"
87862
+ "privacy": "public"
87844
87863
  },
87845
87864
  {
87846
87865
  "kind": "field",
87847
- "name": "events",
87848
- "privacy": "public",
87849
- "static": true,
87850
- "readonly": true,
87851
- "default": "{ toggleexpanded: 'toggleexpanded', }",
87866
+ "name": "files",
87852
87867
  "type": {
87853
- "text": "{\n toggleexpanded: 'toggleexpanded',\n }"
87854
- }
87868
+ "text": "Readonly<File>[]"
87869
+ },
87870
+ "privacy": "public"
87855
87871
  },
87856
87872
  {
87857
87873
  "kind": "field",
87858
- "name": "_mediaMatcher",
87859
- "privacy": "private",
87860
- "default": "new SbbMediaMatcherController(this, { [SbbMediaQueryHover]: (m) => (this._isHover = m), })"
87874
+ "name": "value",
87875
+ "type": {
87876
+ "text": "string | null"
87877
+ },
87878
+ "privacy": "public",
87879
+ "inheritedFrom": {
87880
+ "name": "SbbFormAssociatedMixin",
87881
+ "module": "core/mixins/form-associated-mixin.js"
87882
+ }
87861
87883
  },
87862
87884
  {
87863
87885
  "kind": "field",
87864
- "name": "_isHover",
87886
+ "name": "loadButton",
87865
87887
  "type": {
87866
- "text": "boolean"
87888
+ "text": "SbbSecondaryButtonStaticElement"
87867
87889
  },
87868
- "privacy": "private"
87890
+ "privacy": "protected"
87869
87891
  },
87870
87892
  {
87871
87893
  "kind": "field",
87872
- "name": "_previousSize",
87894
+ "name": "language",
87873
87895
  "type": {
87874
- "text": "string | undefined"
87896
+ "text": "SbbLanguageController"
87875
87897
  },
87876
- "privacy": "private"
87898
+ "privacy": "protected"
87877
87899
  },
87878
87900
  {
87879
87901
  "kind": "method",
87880
- "name": "_emitExpandedEvent",
87881
- "privacy": "private",
87902
+ "name": "renderTemplate",
87903
+ "privacy": "protected",
87882
87904
  "return": {
87883
87905
  "type": {
87884
- "text": "void"
87906
+ "text": "TemplateResult"
87885
87907
  }
87886
- }
87908
+ },
87909
+ "parameters": [
87910
+ {
87911
+ "name": "input",
87912
+ "type": {
87913
+ "text": "TemplateResult"
87914
+ }
87915
+ }
87916
+ ]
87887
87917
  },
87888
87918
  {
87889
87919
  "kind": "method",
87890
- "name": "_onMouseMovement",
87891
- "privacy": "private",
87920
+ "name": "createFileList",
87921
+ "privacy": "protected",
87892
87922
  "return": {
87893
87923
  "type": {
87894
87924
  "text": "void"
@@ -87896,54 +87926,56 @@
87896
87926
  },
87897
87927
  "parameters": [
87898
87928
  {
87899
- "name": "toggleDataAttribute",
87929
+ "name": "files",
87900
87930
  "type": {
87901
- "text": "boolean"
87931
+ "text": "FileList"
87902
87932
  }
87903
87933
  }
87904
87934
  ]
87905
87935
  },
87906
87936
  {
87907
87937
  "kind": "method",
87908
- "name": "_setIconState",
87909
- "privacy": "private",
87938
+ "name": "getButtonLabel",
87939
+ "privacy": "protected",
87910
87940
  "return": {
87911
87941
  "type": {
87912
- "text": "void"
87942
+ "text": "string"
87913
87943
  }
87914
- },
87915
- "description": "The :state(icon) is used by the 'sbb-expansion-panel'.\nIt needs to be set before the"
87944
+ }
87916
87945
  },
87917
87946
  {
87918
87947
  "kind": "method",
87919
- "name": "renderTemplate",
87920
- "privacy": "protected",
87948
+ "name": "formResetCallback",
87949
+ "privacy": "public",
87921
87950
  "return": {
87922
87951
  "type": {
87923
- "text": "TemplateResult"
87952
+ "text": "void"
87924
87953
  }
87925
- },
87926
- "description": "Override this method to render the component template.",
87927
- "inheritedFrom": {
87928
- "name": "SbbActionBaseElement",
87929
- "module": "core/base-elements/action-base-element.js"
87930
87954
  }
87931
87955
  },
87932
87956
  {
87933
- "kind": "field",
87934
- "name": "disabledInteractive",
87935
- "type": {
87936
- "text": "boolean"
87937
- },
87957
+ "kind": "method",
87958
+ "name": "formStateRestoreCallback",
87938
87959
  "privacy": "public",
87939
- "default": "false",
87940
- "description": "Whether the button should be aria-disabled but stay interactive.",
87941
- "attribute": "disabled-interactive",
87942
- "reflects": true,
87943
- "inheritedFrom": {
87944
- "name": "SbbDisabledInteractiveMixin",
87945
- "module": "core/mixins/disabled-mixin.js"
87946
- }
87960
+ "return": {
87961
+ "type": {
87962
+ "text": "void"
87963
+ }
87964
+ },
87965
+ "parameters": [
87966
+ {
87967
+ "name": "state",
87968
+ "type": {
87969
+ "text": "FormRestoreState | null"
87970
+ }
87971
+ },
87972
+ {
87973
+ "name": "reason",
87974
+ "type": {
87975
+ "text": "FormRestoreReason"
87976
+ }
87977
+ }
87978
+ ]
87947
87979
  },
87948
87980
  {
87949
87981
  "kind": "field",
@@ -87991,112 +88023,16 @@
87991
88023
  },
87992
88024
  {
87993
88025
  "kind": "field",
87994
- "name": "iconName",
87995
- "type": {
87996
- "text": "string"
87997
- },
87998
- "privacy": "public",
87999
- "default": "''",
88000
- "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.",
88001
- "attribute": "icon-name",
88002
- "inheritedFrom": {
88003
- "name": "SbbIconNameMixin",
88004
- "module": "icon/icon-name-mixin.js"
88005
- }
88006
- },
88007
- {
88008
- "kind": "method",
88009
- "name": "renderIconSlot",
88010
- "privacy": "protected",
88011
- "return": {
88012
- "type": {
88013
- "text": "TemplateResult"
88014
- }
88015
- },
88016
- "parameters": [
88017
- {
88018
- "name": "classname",
88019
- "optional": true,
88020
- "type": {
88021
- "text": "string"
88022
- }
88023
- }
88024
- ],
88025
- "inheritedFrom": {
88026
- "name": "SbbIconNameMixin",
88027
- "module": "icon/icon-name-mixin.js"
88028
- }
88029
- },
88030
- {
88031
- "kind": "method",
88032
- "name": "renderIconName",
88033
- "privacy": "protected",
88034
- "return": {
88035
- "type": {
88036
- "text": "string"
88037
- }
88038
- },
88039
- "inheritedFrom": {
88040
- "name": "SbbIconNameMixin",
88041
- "module": "icon/icon-name-mixin.js"
88042
- }
88043
- },
88044
- {
88045
- "kind": "method",
88046
- "name": "_renderIconName",
88047
- "privacy": "private",
88048
- "return": {
88049
- "type": {
88050
- "text": "string"
88051
- }
88052
- },
88053
- "inheritedFrom": {
88054
- "name": "SbbIconNameMixin",
88055
- "module": "icon/icon-name-mixin.js"
88056
- }
88057
- },
88058
- {
88059
- "kind": "field",
88060
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
88061
- "type": {
88062
- "text": "array"
88063
- },
88064
- "privacy": "private",
88065
- "readonly": true,
88066
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
88067
- "inheritedFrom": {
88068
- "name": "SbbButtonBaseElement",
88069
- "module": "core/base-elements/button-base-element.js"
88070
- }
88071
- },
88072
- {
88073
- "kind": "field",
88074
- "name": "value",
88026
+ "name": "formAssociated",
88075
88027
  "type": {
88076
- "text": "string"
88077
- },
88078
- "privacy": "public",
88079
- "inheritedFrom": {
88080
- "name": "SbbButtonBaseElement",
88081
- "module": "core/base-elements/button-base-element.js"
88028
+ "text": "boolean"
88082
88029
  },
88083
- "default": "''",
88084
- "description": "Value of the form element.",
88085
- "attribute": "value"
88086
- },
88087
- {
88088
- "kind": "field",
88089
- "name": "type",
88090
88030
  "privacy": "public",
88091
- "description": "The type attribute to use for the button.",
88092
- "default": "'button'",
88093
- "type": {
88094
- "text": "SbbButtonType"
88095
- },
88096
- "attribute": "type",
88031
+ "static": true,
88032
+ "default": "true",
88097
88033
  "inheritedFrom": {
88098
- "name": "SbbButtonBaseElement",
88099
- "module": "core/base-elements/button-base-element.js"
88034
+ "name": "SbbFormAssociatedMixin",
88035
+ "module": "core/mixins/form-associated-mixin.js"
88100
88036
  }
88101
88037
  },
88102
88038
  {
@@ -88106,75 +88042,8 @@
88106
88042
  "text": "HTMLFormElement | null"
88107
88043
  },
88108
88044
  "privacy": "public",
88109
- "description": "The `<form>` element to associate the button with.",
88110
- "inheritedFrom": {
88111
- "name": "SbbButtonBaseElement",
88112
- "module": "core/base-elements/button-base-element.js"
88113
- },
88114
- "attribute": "form"
88115
- },
88116
- {
88117
- "kind": "field",
88118
- "name": "_formId",
88119
- "type": {
88120
- "text": "string"
88121
- },
88122
- "privacy": "private",
88123
- "default": "''",
88124
- "inheritedFrom": {
88125
- "name": "SbbButtonBaseElement",
88126
- "module": "core/base-elements/button-base-element.js"
88127
- }
88128
- },
88129
- {
88130
- "kind": "field",
88131
- "name": "_handleButtonClick",
88132
- "privacy": "private",
88133
- "inheritedFrom": {
88134
- "name": "SbbButtonBaseElement",
88135
- "module": "core/base-elements/button-base-element.js"
88136
- }
88137
- },
88138
- {
88139
- "kind": "method",
88140
- "name": "_requestSubmit",
88141
- "privacy": "private",
88142
- "return": {
88143
- "type": {
88144
- "text": "void"
88145
- }
88146
- },
88147
- "parameters": [
88148
- {
88149
- "name": "form",
88150
- "type": {
88151
- "text": "HTMLFormElement"
88152
- }
88153
- }
88154
- ],
88155
- "inheritedFrom": {
88156
- "name": "SbbButtonBaseElement",
88157
- "module": "core/base-elements/button-base-element.js"
88158
- }
88159
- },
88160
- {
88161
- "kind": "field",
88162
- "name": "_formKeyDown",
88163
- "privacy": "private",
88164
- "inheritedFrom": {
88165
- "name": "SbbButtonBaseElement",
88166
- "module": "core/base-elements/button-base-element.js"
88167
- }
88168
- },
88169
- {
88170
- "kind": "field",
88171
- "name": "formAssociated",
88172
- "type": {
88173
- "text": "boolean"
88174
- },
88175
- "privacy": "public",
88176
- "static": true,
88177
- "default": "true",
88045
+ "description": "Returns the form owner of this element.",
88046
+ "readonly": true,
88178
88047
  "inheritedFrom": {
88179
88048
  "name": "SbbFormAssociatedMixin",
88180
88049
  "module": "core/mixins/form-associated-mixin.js"
@@ -88467,111 +88336,6 @@
88467
88336
  "module": "core/mixins/form-associated-mixin.js"
88468
88337
  }
88469
88338
  },
88470
- {
88471
- "kind": "field",
88472
- "name": "role",
88473
- "type": {
88474
- "text": "ElementInternals['role']"
88475
- },
88476
- "privacy": "public",
88477
- "static": true,
88478
- "readonly": true,
88479
- "default": "'button'",
88480
- "inheritedFrom": {
88481
- "name": "SbbButtonLikeBaseElement",
88482
- "module": "core/base-elements/button-base-element.js"
88483
- }
88484
- },
88485
- {
88486
- "kind": "field",
88487
- "name": "_preventScrollOnSpaceKeydown",
88488
- "privacy": "private",
88489
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
88490
- "parameters": [
88491
- {
88492
- "description": "The origin event.",
88493
- "name": "event"
88494
- }
88495
- ],
88496
- "inheritedFrom": {
88497
- "name": "SbbButtonLikeBaseElement",
88498
- "module": "core/base-elements/button-base-element.js"
88499
- }
88500
- },
88501
- {
88502
- "kind": "field",
88503
- "name": "_removeActiveMarker",
88504
- "privacy": "private",
88505
- "inheritedFrom": {
88506
- "name": "SbbButtonLikeBaseElement",
88507
- "module": "core/base-elements/button-base-element.js"
88508
- }
88509
- },
88510
- {
88511
- "kind": "field",
88512
- "name": "_dispatchClickEventOnSpaceKeyup",
88513
- "privacy": "private",
88514
- "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.",
88515
- "parameters": [
88516
- {
88517
- "description": "The origin event.",
88518
- "name": "event"
88519
- }
88520
- ],
88521
- "inheritedFrom": {
88522
- "name": "SbbButtonLikeBaseElement",
88523
- "module": "core/base-elements/button-base-element.js"
88524
- }
88525
- },
88526
- {
88527
- "kind": "field",
88528
- "name": "_dispatchClickEvent",
88529
- "privacy": "private",
88530
- "inheritedFrom": {
88531
- "name": "SbbButtonLikeBaseElement",
88532
- "module": "core/base-elements/button-base-element.js"
88533
- }
88534
- },
88535
- {
88536
- "kind": "field",
88537
- "name": "maybeDisabled",
88538
- "type": {
88539
- "text": "boolean | undefined"
88540
- },
88541
- "privacy": "protected",
88542
- "readonly": true,
88543
- "inheritedFrom": {
88544
- "name": "SbbActionBaseElement",
88545
- "module": "core/base-elements/action-base-element.js"
88546
- }
88547
- },
88548
- {
88549
- "kind": "field",
88550
- "name": "maybeDisabledInteractive",
88551
- "type": {
88552
- "text": "boolean | undefined"
88553
- },
88554
- "privacy": "protected",
88555
- "readonly": true,
88556
- "inheritedFrom": {
88557
- "name": "SbbActionBaseElement",
88558
- "module": "core/base-elements/action-base-element.js"
88559
- }
88560
- },
88561
- {
88562
- "kind": "method",
88563
- "name": "setupBaseEventHandlers",
88564
- "privacy": "protected",
88565
- "return": {
88566
- "type": {
88567
- "text": "void"
88568
- }
88569
- },
88570
- "inheritedFrom": {
88571
- "name": "SbbActionBaseElement",
88572
- "module": "core/base-elements/action-base-element.js"
88573
- }
88574
- },
88575
88339
  {
88576
88340
  "kind": "field",
88577
88341
  "name": "_hydrationRequired",
@@ -88667,56 +88431,46 @@
88667
88431
  },
88668
88432
  {
88669
88433
  "kind": "field",
88670
- "name": "_controllers",
88434
+ "name": "elementName",
88671
88435
  "type": {
88672
- "text": "Set<SbbReactiveController> | undefined"
88436
+ "text": "string"
88673
88437
  },
88674
- "privacy": "private",
88438
+ "privacy": "public",
88439
+ "static": true,
88440
+ "readonly": true,
88675
88441
  "inheritedFrom": {
88676
88442
  "name": "SbbElement",
88677
88443
  "module": "core/base-elements/element.js"
88678
88444
  }
88679
- }
88680
- ],
88681
- "events": [
88445
+ },
88682
88446
  {
88683
- "name": "toggleexpanded",
88447
+ "kind": "field",
88448
+ "name": "_controllers",
88684
88449
  "type": {
88685
- "text": "Event"
88450
+ "text": "Set<SbbReactiveController> | undefined"
88686
88451
  },
88687
- "description": "Notifies that the `sbb-expansion-panel` is about to expand/shrink."
88452
+ "privacy": "private",
88453
+ "inheritedFrom": {
88454
+ "name": "SbbElement",
88455
+ "module": "core/base-elements/element.js"
88456
+ }
88688
88457
  }
88689
88458
  ],
88690
88459
  "mixins": [
88691
88460
  {
88692
- "name": "SbbDisabledTabIndexActionMixin",
88461
+ "name": "SbbDisabledMixin",
88693
88462
  "module": "core/mixins.js"
88694
88463
  },
88695
88464
  {
88696
- "name": "SbbIconNameMixin",
88697
- "module": "icon.js"
88465
+ "name": "SbbFormAssociatedMixin",
88466
+ "module": "core/mixins.js"
88698
88467
  }
88699
88468
  ],
88700
88469
  "superclass": {
88701
- "name": "SbbButtonBaseElement",
88470
+ "name": "SbbElement",
88702
88471
  "module": "core/base-elements.js"
88703
88472
  },
88704
- "tagName": "sbb-expansion-panel-header",
88705
- "customElement": true,
88706
88473
  "attributes": [
88707
- {
88708
- "name": "disabled-interactive",
88709
- "type": {
88710
- "text": "boolean"
88711
- },
88712
- "default": "false",
88713
- "description": "Whether the button should be aria-disabled but stay interactive.",
88714
- "fieldName": "disabledInteractive",
88715
- "inheritedFrom": {
88716
- "name": "SbbDisabledInteractiveMixin",
88717
- "module": "core/mixins/disabled-mixin.js"
88718
- }
88719
- },
88720
88474
  {
88721
88475
  "name": "disabled",
88722
88476
  "description": "Whether the component is disabled.",
@@ -88731,102 +88485,46 @@
88731
88485
  }
88732
88486
  },
88733
88487
  {
88734
- "name": "icon-name",
88488
+ "name": "name",
88489
+ "description": "Name of the form element. Will be read from name attribute.",
88735
88490
  "type": {
88736
88491
  "text": "string"
88737
88492
  },
88738
- "default": "''",
88739
- "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.",
88740
- "fieldName": "iconName",
88493
+ "fieldName": "name",
88741
88494
  "inheritedFrom": {
88742
- "name": "SbbIconNameMixin",
88743
- "module": "icon/icon-name-mixin.js"
88744
- }
88745
- },
88746
- {
88747
- "name": "value",
88748
- "type": {
88749
- "text": "string"
88750
- },
88751
- "default": "''",
88752
- "description": "Value of the form element.",
88753
- "fieldName": "value",
88754
- "inheritedFrom": {
88755
- "name": "SbbButtonBaseElement",
88756
- "module": "core/base-elements/button-base-element.js"
88757
- }
88758
- },
88759
- {
88760
- "name": "type",
88761
- "description": "The type attribute to use for the button.",
88762
- "default": "'button'",
88763
- "type": {
88764
- "text": "SbbButtonType"
88765
- },
88766
- "fieldName": "type",
88767
- "inheritedFrom": {
88768
- "name": "SbbButtonBaseElement",
88769
- "module": "core/base-elements/button-base-element.js"
88770
- }
88771
- },
88772
- {
88773
- "name": "form",
88774
- "description": "The `<form>` element to associate the button with.",
88775
- "type": {
88776
- "text": "HTMLFormElement | null"
88777
- },
88778
- "fieldName": "form",
88779
- "inheritedFrom": {
88780
- "name": "SbbButtonBaseElement",
88781
- "module": "core/base-elements/button-base-element.js"
88782
- }
88783
- },
88784
- {
88785
- "name": "name",
88786
- "description": "Name of the form element. Will be read from name attribute.",
88787
- "type": {
88788
- "text": "string"
88789
- },
88790
- "fieldName": "name",
88791
- "inheritedFrom": {
88792
- "name": "SbbFormAssociatedMixin",
88793
- "module": "core/mixins/form-associated-mixin.js"
88495
+ "name": "SbbFormAssociatedMixin",
88496
+ "module": "core/mixins/form-associated-mixin.js"
88794
88497
  }
88795
88498
  }
88796
88499
  ]
88797
- }
88798
- ],
88799
- "exports": [
88800
- {
88801
- "kind": "js",
88802
- "name": "SbbExpansionPanelHeaderElement",
88803
- "declaration": {
88804
- "name": "SbbExpansionPanelHeaderElement",
88805
- "module": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js"
88806
- }
88807
- }
88808
- ]
88809
- },
88810
- {
88811
- "kind": "javascript-module",
88812
- "path": "file-selector/common/file-selector-common.js",
88813
- "declarations": [
88814
- {
88815
- "kind": "variable",
88816
- "name": "fileSelectorCommonStyle"
88817
88500
  },
88818
88501
  {
88819
- "kind": "class",
88502
+ "kind": "mixin",
88820
88503
  "description": "",
88821
- "name": "SbbFileSelectorCommonElementMixinType",
88504
+ "name": "SbbFileSelectorCommonElementMixin",
88822
88505
  "members": [
88506
+ {
88507
+ "kind": "field",
88508
+ "name": "events",
88509
+ "privacy": "public",
88510
+ "static": true,
88511
+ "readonly": true,
88512
+ "default": "{ filechanged: 'filechanged', }",
88513
+ "type": {
88514
+ "text": "{\n filechanged: 'filechanged',\n }"
88515
+ }
88516
+ },
88823
88517
  {
88824
88518
  "kind": "field",
88825
88519
  "name": "size",
88826
88520
  "type": {
88827
88521
  "text": "'s' | 'm'"
88828
88522
  },
88829
- "privacy": "public"
88523
+ "privacy": "public",
88524
+ "description": "Size variant, either s or m.",
88525
+ "default": "'m' / 's' (lean)",
88526
+ "attribute": "size",
88527
+ "reflects": true
88830
88528
  },
88831
88529
  {
88832
88530
  "kind": "field",
@@ -88834,7 +88532,10 @@
88834
88532
  "type": {
88835
88533
  "text": "boolean"
88836
88534
  },
88837
- "privacy": "public"
88535
+ "privacy": "public",
88536
+ "default": "false",
88537
+ "description": "Whether more than one file can be selected.",
88538
+ "attribute": "multiple"
88838
88539
  },
88839
88540
  {
88840
88541
  "kind": "field",
@@ -88842,7 +88543,10 @@
88842
88543
  "type": {
88843
88544
  "text": "'default' | 'persistent'"
88844
88545
  },
88845
- "privacy": "public"
88546
+ "privacy": "public",
88547
+ "default": "'default'",
88548
+ "description": "Whether the newly added files should override the previously added ones.",
88549
+ "attribute": "multiple-mode"
88846
88550
  },
88847
88551
  {
88848
88552
  "kind": "field",
@@ -88850,7 +88554,10 @@
88850
88554
  "type": {
88851
88555
  "text": "string"
88852
88556
  },
88853
- "privacy": "public"
88557
+ "privacy": "public",
88558
+ "default": "''",
88559
+ "description": "A comma-separated list of allowed unique file type specifiers.",
88560
+ "attribute": "accept"
88854
88561
  },
88855
88562
  {
88856
88563
  "kind": "field",
@@ -88858,27 +88565,77 @@
88858
88565
  "type": {
88859
88566
  "text": "string"
88860
88567
  },
88861
- "privacy": "public"
88568
+ "privacy": "public",
88569
+ "default": "''",
88570
+ "description": "This will be forwarded as aria-label to the native input element.",
88571
+ "attribute": "accessibility-label"
88572
+ },
88573
+ {
88574
+ "kind": "field",
88575
+ "name": "value",
88576
+ "type": {
88577
+ "text": "string | null"
88578
+ },
88579
+ "privacy": "public",
88580
+ "description": "The path of the first selected file. Empty string ('') if no file is selected",
88581
+ "inheritedFrom": {
88582
+ "name": "SbbFormAssociatedMixin",
88583
+ "module": "core/mixins/form-associated-mixin.js"
88584
+ }
88862
88585
  },
88863
88586
  {
88864
88587
  "kind": "field",
88865
88588
  "name": "files",
88589
+ "privacy": "public",
88590
+ "description": "The list of selected files.",
88591
+ "type": {
88592
+ "text": "Readonly<File>[]"
88593
+ }
88594
+ },
88595
+ {
88596
+ "kind": "field",
88597
+ "name": "_files",
88866
88598
  "type": {
88867
88599
  "text": "Readonly<File>[]"
88868
88600
  },
88869
- "privacy": "public"
88601
+ "privacy": "private",
88602
+ "default": "[]"
88870
88603
  },
88871
88604
  {
88872
88605
  "kind": "field",
88873
- "name": "value",
88606
+ "name": "type",
88874
88607
  "type": {
88875
- "text": "string | null"
88608
+ "text": "string"
88876
88609
  },
88877
88610
  "privacy": "public",
88878
- "inheritedFrom": {
88879
- "name": "SbbFormAssociatedMixin",
88880
- "module": "core/mixins/form-associated-mixin.js"
88881
- }
88611
+ "description": "Form type of element.",
88612
+ "default": "'file'",
88613
+ "readonly": true
88614
+ },
88615
+ {
88616
+ "kind": "field",
88617
+ "name": "_hiddenInput",
88618
+ "type": {
88619
+ "text": "HTMLInputElement"
88620
+ },
88621
+ "privacy": "private"
88622
+ },
88623
+ {
88624
+ "kind": "field",
88625
+ "name": "_suffixes",
88626
+ "type": {
88627
+ "text": "string[]"
88628
+ },
88629
+ "privacy": "private",
88630
+ "default": "['B', 'kB', 'MB', 'GB', 'TB']"
88631
+ },
88632
+ {
88633
+ "kind": "field",
88634
+ "name": "_liveRegion",
88635
+ "type": {
88636
+ "text": "HTMLParagraphElement"
88637
+ },
88638
+ "privacy": "private"
88882
88639
  },
88883
88640
  {
88884
88641
  "kind": "field",
@@ -88891,10 +88648,25 @@
88891
88648
  {
88892
88649
  "kind": "field",
88893
88650
  "name": "language",
88651
+ "privacy": "protected",
88652
+ "default": "new SbbLanguageController(this)"
88653
+ },
88654
+ {
88655
+ "kind": "field",
88656
+ "name": "_counter",
88894
88657
  "type": {
88895
- "text": "SbbLanguageController"
88658
+ "text": "number"
88896
88659
  },
88897
- "privacy": "protected"
88660
+ "privacy": "private",
88661
+ "default": "0"
88662
+ },
88663
+ {
88664
+ "kind": "field",
88665
+ "name": "_dragTarget",
88666
+ "type": {
88667
+ "text": "HTMLElement | undefined"
88668
+ },
88669
+ "privacy": "private"
88898
88670
  },
88899
88671
  {
88900
88672
  "kind": "method",
@@ -88914,6 +88686,118 @@
88914
88686
  }
88915
88687
  ]
88916
88688
  },
88689
+ {
88690
+ "kind": "method",
88691
+ "name": "formResetCallback",
88692
+ "privacy": "public",
88693
+ "return": {
88694
+ "type": {
88695
+ "text": "void"
88696
+ }
88697
+ }
88698
+ },
88699
+ {
88700
+ "kind": "method",
88701
+ "name": "formStateRestoreCallback",
88702
+ "privacy": "public",
88703
+ "return": {
88704
+ "type": {
88705
+ "text": "void"
88706
+ }
88707
+ },
88708
+ "parameters": [
88709
+ {
88710
+ "name": "state",
88711
+ "type": {
88712
+ "text": "FormRestoreState | null"
88713
+ }
88714
+ },
88715
+ {
88716
+ "name": "_reason",
88717
+ "optional": true,
88718
+ "type": {
88719
+ "text": "FormRestoreReason"
88720
+ }
88721
+ }
88722
+ ]
88723
+ },
88724
+ {
88725
+ "kind": "method",
88726
+ "name": "updateFormValue",
88727
+ "privacy": "protected",
88728
+ "return": {
88729
+ "type": {
88730
+ "text": "void"
88731
+ }
88732
+ },
88733
+ "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",
88734
+ "inheritedFrom": {
88735
+ "name": "SbbFormAssociatedMixin",
88736
+ "module": "core/mixins/form-associated-mixin.js"
88737
+ }
88738
+ },
88739
+ {
88740
+ "kind": "method",
88741
+ "name": "_checkFileEquality",
88742
+ "privacy": "private",
88743
+ "return": {
88744
+ "type": {
88745
+ "text": "boolean"
88746
+ }
88747
+ },
88748
+ "parameters": [
88749
+ {
88750
+ "name": "file1",
88751
+ "type": {
88752
+ "text": "Readonly<File>"
88753
+ }
88754
+ },
88755
+ {
88756
+ "name": "file2",
88757
+ "type": {
88758
+ "text": "Readonly<File>"
88759
+ }
88760
+ }
88761
+ ]
88762
+ },
88763
+ {
88764
+ "kind": "method",
88765
+ "name": "_onFocus",
88766
+ "privacy": "private",
88767
+ "return": {
88768
+ "type": {
88769
+ "text": "void"
88770
+ }
88771
+ }
88772
+ },
88773
+ {
88774
+ "kind": "method",
88775
+ "name": "_onBlur",
88776
+ "privacy": "private",
88777
+ "return": {
88778
+ "type": {
88779
+ "text": "void"
88780
+ }
88781
+ }
88782
+ },
88783
+ {
88784
+ "kind": "method",
88785
+ "name": "_readFiles",
88786
+ "privacy": "private",
88787
+ "return": {
88788
+ "type": {
88789
+ "text": "void"
88790
+ }
88791
+ },
88792
+ "parameters": [
88793
+ {
88794
+ "name": "event",
88795
+ "type": {
88796
+ "text": "Event"
88797
+ }
88798
+ }
88799
+ ]
88800
+ },
88917
88801
  {
88918
88802
  "kind": "method",
88919
88803
  "name": "createFileList",
@@ -88944,8 +88828,26 @@
88944
88828
  },
88945
88829
  {
88946
88830
  "kind": "method",
88947
- "name": "formResetCallback",
88948
- "privacy": "public",
88831
+ "name": "_removeFile",
88832
+ "privacy": "private",
88833
+ "return": {
88834
+ "type": {
88835
+ "text": "void"
88836
+ }
88837
+ },
88838
+ "parameters": [
88839
+ {
88840
+ "name": "file",
88841
+ "type": {
88842
+ "text": "Readonly<File>"
88843
+ }
88844
+ }
88845
+ ]
88846
+ },
88847
+ {
88848
+ "kind": "method",
88849
+ "name": "_dispatchFileChangedEvent",
88850
+ "privacy": "private",
88949
88851
  "return": {
88950
88852
  "type": {
88951
88853
  "text": "void"
@@ -88954,8 +88856,47 @@
88954
88856
  },
88955
88857
  {
88956
88858
  "kind": "method",
88957
- "name": "formStateRestoreCallback",
88958
- "privacy": "public",
88859
+ "name": "_formatFileSize",
88860
+ "privacy": "private",
88861
+ "return": {
88862
+ "type": {
88863
+ "text": "string"
88864
+ }
88865
+ },
88866
+ "parameters": [
88867
+ {
88868
+ "name": "size",
88869
+ "type": {
88870
+ "text": "number"
88871
+ }
88872
+ }
88873
+ ],
88874
+ "description": "Calculates the correct unit for the file's size."
88875
+ },
88876
+ {
88877
+ "kind": "method",
88878
+ "name": "_updateA11yLiveRegion",
88879
+ "privacy": "private",
88880
+ "return": {
88881
+ "type": {
88882
+ "text": "void"
88883
+ }
88884
+ }
88885
+ },
88886
+ {
88887
+ "kind": "method",
88888
+ "name": "_renderFileList",
88889
+ "privacy": "private",
88890
+ "return": {
88891
+ "type": {
88892
+ "text": "TemplateResult"
88893
+ }
88894
+ }
88895
+ },
88896
+ {
88897
+ "kind": "method",
88898
+ "name": "_onDragEnter",
88899
+ "privacy": "private",
88959
88900
  "return": {
88960
88901
  "type": {
88961
88902
  "text": "void"
@@ -88963,15 +88904,89 @@
88963
88904
  },
88964
88905
  "parameters": [
88965
88906
  {
88966
- "name": "state",
88907
+ "name": "event",
88967
88908
  "type": {
88968
- "text": "FormRestoreState | null"
88909
+ "text": "DragEvent"
88910
+ }
88911
+ }
88912
+ ]
88913
+ },
88914
+ {
88915
+ "kind": "method",
88916
+ "name": "_onDragLeave",
88917
+ "privacy": "private",
88918
+ "return": {
88919
+ "type": {
88920
+ "text": "void"
88921
+ }
88922
+ },
88923
+ "parameters": [
88924
+ {
88925
+ "name": "event",
88926
+ "type": {
88927
+ "text": "DragEvent"
88928
+ }
88929
+ }
88930
+ ]
88931
+ },
88932
+ {
88933
+ "kind": "method",
88934
+ "name": "_onFileDrop",
88935
+ "privacy": "private",
88936
+ "return": {
88937
+ "type": {
88938
+ "text": "void"
88939
+ }
88940
+ },
88941
+ "parameters": [
88942
+ {
88943
+ "name": "event",
88944
+ "type": {
88945
+ "text": "DragEvent"
88946
+ }
88947
+ }
88948
+ ]
88949
+ },
88950
+ {
88951
+ "kind": "method",
88952
+ "name": "_blockEvent",
88953
+ "privacy": "private",
88954
+ "return": {
88955
+ "type": {
88956
+ "text": "void"
88957
+ }
88958
+ },
88959
+ "parameters": [
88960
+ {
88961
+ "name": "event",
88962
+ "type": {
88963
+ "text": "DragEvent"
88964
+ }
88965
+ }
88966
+ ]
88967
+ },
88968
+ {
88969
+ "kind": "method",
88970
+ "name": "_setDragState",
88971
+ "privacy": "private",
88972
+ "return": {
88973
+ "type": {
88974
+ "text": "void"
88975
+ }
88976
+ },
88977
+ "parameters": [
88978
+ {
88979
+ "name": "dragTarget",
88980
+ "default": "undefined",
88981
+ "type": {
88982
+ "text": "HTMLElement | undefined"
88969
88983
  }
88970
88984
  },
88971
88985
  {
88972
- "name": "reason",
88986
+ "name": "isDragEnter",
88987
+ "default": "false",
88973
88988
  "type": {
88974
- "text": "FormRestoreReason"
88989
+ "text": "boolean"
88975
88990
  }
88976
88991
  }
88977
88992
  ]
@@ -89195,21 +89210,6 @@
89195
89210
  "module": "core/mixins/form-associated-mixin.js"
89196
89211
  }
89197
89212
  },
89198
- {
89199
- "kind": "method",
89200
- "name": "updateFormValue",
89201
- "privacy": "protected",
89202
- "return": {
89203
- "type": {
89204
- "text": "void"
89205
- }
89206
- },
89207
- "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",
89208
- "inheritedFrom": {
89209
- "name": "SbbFormAssociatedMixin",
89210
- "module": "core/mixins/form-associated-mixin.js"
89211
- }
89212
- },
89213
89213
  {
89214
89214
  "kind": "method",
89215
89215
  "name": "formState",
@@ -89334,444 +89334,220 @@
89334
89334
  "name": "SbbFormAssociatedMixin",
89335
89335
  "module": "core/mixins/form-associated-mixin.js"
89336
89336
  }
89337
- },
89337
+ }
89338
+ ],
89339
+ "events": [
89338
89340
  {
89339
- "kind": "field",
89340
- "name": "_hydrationRequired",
89341
+ "name": "input",
89341
89342
  "type": {
89342
- "text": "boolean"
89343
+ "text": "InputEvent"
89343
89344
  },
89344
- "privacy": "private",
89345
- "default": "!!this.shadowRoot",
89346
- "inheritedFrom": {
89347
- "name": "SbbElement",
89348
- "module": "core/base-elements/element.js"
89349
- }
89350
- },
89351
- {
89352
- "kind": "field",
89353
- "name": "_hydrationComplete",
89354
- "privacy": "private",
89355
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
89356
- "inheritedFrom": {
89357
- "name": "SbbElement",
89358
- "module": "core/base-elements/element.js"
89359
- }
89345
+ "description": "The input event fires when the value has been changed as a direct result of a user action."
89360
89346
  },
89361
89347
  {
89362
- "kind": "field",
89363
- "name": "_resolveHydration",
89348
+ "name": "change",
89364
89349
  "type": {
89365
- "text": "(hydrationRequired: boolean) => void"
89350
+ "text": "Event"
89366
89351
  },
89367
- "privacy": "private",
89368
- "inheritedFrom": {
89369
- "name": "SbbElement",
89370
- "module": "core/base-elements/element.js"
89371
- }
89352
+ "description": "The change event is fired when the user modifies the element's value.\nUnlike the input event, the change event is not necessarily fired\nfor each alteration to an element's value."
89372
89353
  },
89373
89354
  {
89374
- "kind": "field",
89375
- "name": "hydrationRequired",
89355
+ "name": "filechanged",
89376
89356
  "type": {
89377
- "text": "boolean"
89357
+ "text": "CustomEvent<Readonly<File>[]>"
89378
89358
  },
89379
- "privacy": "protected",
89380
- "description": "Returns whether hydration is required and not completed.",
89381
- "readonly": true,
89382
- "inheritedFrom": {
89383
- "name": "SbbElement",
89384
- "module": "core/base-elements/element.js"
89385
- },
89386
- "default": "!!this.shadowRoot"
89387
- },
89388
- {
89389
- "kind": "method",
89390
- "name": "toggleState",
89391
- "privacy": "protected",
89392
- "return": {
89393
- "type": {
89394
- "text": "void"
89395
- }
89396
- },
89397
- "parameters": [
89398
- {
89399
- "name": "value",
89400
- "type": {
89401
- "text": "string"
89402
- }
89403
- },
89404
- {
89405
- "name": "force",
89406
- "optional": true,
89407
- "type": {
89408
- "text": "boolean"
89409
- }
89410
- }
89411
- ],
89412
- "inheritedFrom": {
89413
- "name": "SbbElement",
89414
- "module": "core/base-elements/element.js"
89415
- }
89416
- },
89417
- {
89418
- "kind": "field",
89419
- "name": "['_$sbbElement$']",
89420
- "type": {
89421
- "text": "boolean"
89422
- },
89423
- "privacy": "public",
89424
- "static": true,
89425
- "default": "true",
89426
- "inheritedFrom": {
89427
- "name": "SbbElement",
89428
- "module": "core/base-elements/element.js"
89429
- }
89430
- },
89431
- {
89432
- "kind": "field",
89433
- "name": "elementName",
89434
- "type": {
89435
- "text": "string"
89436
- },
89437
- "privacy": "public",
89438
- "static": true,
89439
- "readonly": true,
89440
- "inheritedFrom": {
89441
- "name": "SbbElement",
89442
- "module": "core/base-elements/element.js"
89443
- }
89444
- },
89445
- {
89446
- "kind": "field",
89447
- "name": "_controllers",
89448
- "type": {
89449
- "text": "Set<SbbReactiveController> | undefined"
89450
- },
89451
- "privacy": "private",
89452
- "inheritedFrom": {
89453
- "name": "SbbElement",
89454
- "module": "core/base-elements/element.js"
89455
- }
89456
- }
89457
- ],
89458
- "mixins": [
89459
- {
89460
- "name": "SbbDisabledMixin",
89461
- "module": "core/mixins.js"
89462
- },
89463
- {
89464
- "name": "SbbFormAssociatedMixin",
89465
- "module": "core/mixins.js"
89359
+ "description": "An event which is emitted each time the file list changes."
89466
89360
  }
89467
89361
  ],
89468
- "superclass": {
89469
- "name": "SbbElement",
89470
- "module": "core/base-elements.js"
89471
- },
89472
89362
  "attributes": [
89473
89363
  {
89474
- "name": "disabled",
89475
- "description": "Whether the component is disabled.",
89476
- "default": "false",
89477
- "type": {
89478
- "text": "boolean"
89479
- },
89480
- "fieldName": "disabled",
89481
- "inheritedFrom": {
89482
- "name": "SbbDisabledMixin",
89483
- "module": "core/mixins/disabled-mixin.js"
89484
- }
89485
- },
89486
- {
89487
- "name": "name",
89488
- "description": "Name of the form element. Will be read from name attribute.",
89489
- "type": {
89490
- "text": "string"
89491
- },
89492
- "fieldName": "name",
89493
- "inheritedFrom": {
89494
- "name": "SbbFormAssociatedMixin",
89495
- "module": "core/mixins/form-associated-mixin.js"
89496
- }
89497
- }
89498
- ]
89499
- },
89500
- {
89501
- "kind": "mixin",
89502
- "description": "",
89503
- "name": "SbbFileSelectorCommonElementMixin",
89504
- "members": [
89505
- {
89506
- "kind": "field",
89507
- "name": "events",
89508
- "privacy": "public",
89509
- "static": true,
89510
- "readonly": true,
89511
- "default": "{ filechanged: 'filechanged', }",
89512
- "type": {
89513
- "text": "{\n filechanged: 'filechanged',\n }"
89514
- }
89515
- },
89516
- {
89517
- "kind": "field",
89518
89364
  "name": "size",
89519
89365
  "type": {
89520
89366
  "text": "'s' | 'm'"
89521
89367
  },
89522
- "privacy": "public",
89523
89368
  "description": "Size variant, either s or m.",
89524
89369
  "default": "'m' / 's' (lean)",
89525
- "attribute": "size",
89526
- "reflects": true
89370
+ "fieldName": "size"
89527
89371
  },
89528
89372
  {
89529
- "kind": "field",
89530
89373
  "name": "multiple",
89531
89374
  "type": {
89532
89375
  "text": "boolean"
89533
89376
  },
89534
- "privacy": "public",
89535
89377
  "default": "false",
89536
89378
  "description": "Whether more than one file can be selected.",
89537
- "attribute": "multiple"
89379
+ "fieldName": "multiple"
89538
89380
  },
89539
89381
  {
89540
- "kind": "field",
89541
- "name": "multipleMode",
89382
+ "name": "multiple-mode",
89542
89383
  "type": {
89543
89384
  "text": "'default' | 'persistent'"
89544
89385
  },
89545
- "privacy": "public",
89546
89386
  "default": "'default'",
89547
89387
  "description": "Whether the newly added files should override the previously added ones.",
89548
- "attribute": "multiple-mode"
89388
+ "fieldName": "multipleMode"
89549
89389
  },
89550
89390
  {
89551
- "kind": "field",
89552
89391
  "name": "accept",
89553
89392
  "type": {
89554
89393
  "text": "string"
89555
89394
  },
89556
- "privacy": "public",
89557
89395
  "default": "''",
89558
89396
  "description": "A comma-separated list of allowed unique file type specifiers.",
89559
- "attribute": "accept"
89397
+ "fieldName": "accept"
89560
89398
  },
89561
89399
  {
89562
- "kind": "field",
89563
- "name": "accessibilityLabel",
89400
+ "name": "accessibility-label",
89564
89401
  "type": {
89565
89402
  "text": "string"
89566
89403
  },
89567
- "privacy": "public",
89568
89404
  "default": "''",
89569
89405
  "description": "This will be forwarded as aria-label to the native input element.",
89570
- "attribute": "accessibility-label"
89406
+ "fieldName": "accessibilityLabel"
89571
89407
  },
89572
89408
  {
89573
- "kind": "field",
89574
- "name": "value",
89409
+ "name": "disabled",
89410
+ "description": "Whether the component is disabled.",
89411
+ "default": "false",
89575
89412
  "type": {
89576
- "text": "string | null"
89413
+ "text": "boolean"
89577
89414
  },
89578
- "privacy": "public",
89579
- "description": "The path of the first selected file. Empty string ('') if no file is selected",
89415
+ "fieldName": "disabled",
89580
89416
  "inheritedFrom": {
89581
- "name": "SbbFormAssociatedMixin",
89582
- "module": "core/mixins/form-associated-mixin.js"
89417
+ "name": "SbbDisabledMixin",
89418
+ "module": "core/mixins/disabled-mixin.js"
89583
89419
  }
89584
89420
  },
89585
89421
  {
89586
- "kind": "field",
89587
- "name": "files",
89588
- "privacy": "public",
89589
- "description": "The list of selected files.",
89422
+ "name": "name",
89423
+ "description": "Name of the form element. Will be read from name attribute.",
89590
89424
  "type": {
89591
- "text": "Readonly<File>[]"
89425
+ "text": "string"
89426
+ },
89427
+ "fieldName": "name",
89428
+ "inheritedFrom": {
89429
+ "name": "SbbFormAssociatedMixin",
89430
+ "module": "core/mixins/form-associated-mixin.js"
89592
89431
  }
89432
+ }
89433
+ ],
89434
+ "mixins": [
89435
+ {
89436
+ "name": "SbbDisabledMixin",
89437
+ "module": "core/mixins.js"
89593
89438
  },
89594
89439
  {
89595
- "kind": "field",
89596
- "name": "_files",
89440
+ "name": "SbbFormAssociatedMixin",
89441
+ "module": "core/mixins.js"
89442
+ }
89443
+ ],
89444
+ "parameters": [
89445
+ {
89446
+ "name": "superclass",
89597
89447
  "type": {
89598
- "text": "Readonly<File>[]"
89599
- },
89600
- "privacy": "private",
89601
- "default": "[]"
89448
+ "text": "T"
89449
+ }
89450
+ }
89451
+ ]
89452
+ }
89453
+ ],
89454
+ "exports": [
89455
+ {
89456
+ "kind": "js",
89457
+ "name": "fileSelectorCommonStyle",
89458
+ "declaration": {
89459
+ "name": "fileSelectorCommonStyle",
89460
+ "module": "file-selector/common/file-selector-common.js"
89461
+ }
89462
+ },
89463
+ {
89464
+ "kind": "js",
89465
+ "name": "SbbFileSelectorCommonElementMixinType",
89466
+ "declaration": {
89467
+ "name": "SbbFileSelectorCommonElementMixinType",
89468
+ "module": "file-selector/common/file-selector-common.js"
89469
+ }
89470
+ },
89471
+ {
89472
+ "kind": "js",
89473
+ "name": "SbbFileSelectorCommonElementMixin",
89474
+ "declaration": {
89475
+ "name": "SbbFileSelectorCommonElementMixin",
89476
+ "module": "file-selector/common/file-selector-common.js"
89477
+ }
89478
+ }
89479
+ ]
89480
+ },
89481
+ {
89482
+ "kind": "javascript-module",
89483
+ "path": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js",
89484
+ "declarations": [
89485
+ {
89486
+ "kind": "class",
89487
+ "description": "It acts as a native `summary` tag for the `sbb-expansion-panel` component.",
89488
+ "name": "SbbExpansionPanelHeaderElement",
89489
+ "slots": [
89490
+ {
89491
+ "description": "Use the unnamed slot to add content to the `sbb-expansion-panel-header`.",
89492
+ "name": ""
89602
89493
  },
89494
+ {
89495
+ "description": "Slot used to render the `sbb-expansion-panel-header` icon.",
89496
+ "name": "icon"
89497
+ }
89498
+ ],
89499
+ "members": [
89603
89500
  {
89604
89501
  "kind": "field",
89605
- "name": "type",
89502
+ "name": "elementName",
89606
89503
  "type": {
89607
89504
  "text": "string"
89608
89505
  },
89609
89506
  "privacy": "public",
89610
- "description": "Form type of element.",
89611
- "default": "'file'",
89612
- "readonly": true
89507
+ "static": true,
89508
+ "readonly": true,
89509
+ "inheritedFrom": {
89510
+ "name": "SbbElement",
89511
+ "module": "core/base-elements/element.js"
89512
+ },
89513
+ "default": "'sbb-expansion-panel-header'"
89613
89514
  },
89614
89515
  {
89615
89516
  "kind": "field",
89616
- "name": "_hiddenInput",
89517
+ "name": "events",
89518
+ "privacy": "public",
89519
+ "static": true,
89520
+ "readonly": true,
89521
+ "default": "{ toggleexpanded: 'toggleexpanded', }",
89617
89522
  "type": {
89618
- "text": "HTMLInputElement"
89619
- },
89620
- "privacy": "private"
89523
+ "text": "{\n toggleexpanded: 'toggleexpanded',\n }"
89524
+ }
89621
89525
  },
89622
89526
  {
89623
89527
  "kind": "field",
89624
- "name": "_suffixes",
89625
- "type": {
89626
- "text": "string[]"
89627
- },
89528
+ "name": "_mediaMatcher",
89628
89529
  "privacy": "private",
89629
- "default": "['B', 'kB', 'MB', 'GB', 'TB']"
89530
+ "default": "new SbbMediaMatcherController(this, { [SbbMediaQueryHover]: (m) => (this._isHover = m), })"
89630
89531
  },
89631
89532
  {
89632
89533
  "kind": "field",
89633
- "name": "_liveRegion",
89534
+ "name": "_isHover",
89634
89535
  "type": {
89635
- "text": "HTMLParagraphElement"
89536
+ "text": "boolean"
89636
89537
  },
89637
89538
  "privacy": "private"
89638
89539
  },
89639
89540
  {
89640
89541
  "kind": "field",
89641
- "name": "loadButton",
89642
- "type": {
89643
- "text": "SbbSecondaryButtonStaticElement"
89644
- },
89645
- "privacy": "protected"
89646
- },
89647
- {
89648
- "kind": "field",
89649
- "name": "language",
89650
- "privacy": "protected",
89651
- "default": "new SbbLanguageController(this)"
89652
- },
89653
- {
89654
- "kind": "field",
89655
- "name": "_counter",
89656
- "type": {
89657
- "text": "number"
89658
- },
89659
- "privacy": "private",
89660
- "default": "0"
89661
- },
89662
- {
89663
- "kind": "field",
89664
- "name": "_dragTarget",
89542
+ "name": "_previousSize",
89665
89543
  "type": {
89666
- "text": "HTMLElement | undefined"
89544
+ "text": "string | undefined"
89667
89545
  },
89668
89546
  "privacy": "private"
89669
89547
  },
89670
89548
  {
89671
89549
  "kind": "method",
89672
- "name": "renderTemplate",
89673
- "privacy": "protected",
89674
- "return": {
89675
- "type": {
89676
- "text": "TemplateResult"
89677
- }
89678
- },
89679
- "parameters": [
89680
- {
89681
- "name": "input",
89682
- "type": {
89683
- "text": "TemplateResult"
89684
- }
89685
- }
89686
- ]
89687
- },
89688
- {
89689
- "kind": "method",
89690
- "name": "formResetCallback",
89691
- "privacy": "public",
89692
- "return": {
89693
- "type": {
89694
- "text": "void"
89695
- }
89696
- }
89697
- },
89698
- {
89699
- "kind": "method",
89700
- "name": "formStateRestoreCallback",
89701
- "privacy": "public",
89702
- "return": {
89703
- "type": {
89704
- "text": "void"
89705
- }
89706
- },
89707
- "parameters": [
89708
- {
89709
- "name": "state",
89710
- "type": {
89711
- "text": "FormRestoreState | null"
89712
- }
89713
- },
89714
- {
89715
- "name": "_reason",
89716
- "optional": true,
89717
- "type": {
89718
- "text": "FormRestoreReason"
89719
- }
89720
- }
89721
- ]
89722
- },
89723
- {
89724
- "kind": "method",
89725
- "name": "updateFormValue",
89726
- "privacy": "protected",
89727
- "return": {
89728
- "type": {
89729
- "text": "void"
89730
- }
89731
- },
89732
- "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",
89733
- "inheritedFrom": {
89734
- "name": "SbbFormAssociatedMixin",
89735
- "module": "core/mixins/form-associated-mixin.js"
89736
- }
89737
- },
89738
- {
89739
- "kind": "method",
89740
- "name": "_checkFileEquality",
89741
- "privacy": "private",
89742
- "return": {
89743
- "type": {
89744
- "text": "boolean"
89745
- }
89746
- },
89747
- "parameters": [
89748
- {
89749
- "name": "file1",
89750
- "type": {
89751
- "text": "Readonly<File>"
89752
- }
89753
- },
89754
- {
89755
- "name": "file2",
89756
- "type": {
89757
- "text": "Readonly<File>"
89758
- }
89759
- }
89760
- ]
89761
- },
89762
- {
89763
- "kind": "method",
89764
- "name": "_onFocus",
89765
- "privacy": "private",
89766
- "return": {
89767
- "type": {
89768
- "text": "void"
89769
- }
89770
- }
89771
- },
89772
- {
89773
- "kind": "method",
89774
- "name": "_onBlur",
89550
+ "name": "_emitExpandedEvent",
89775
89551
  "privacy": "private",
89776
89552
  "return": {
89777
89553
  "type": {
@@ -89781,7 +89557,7 @@
89781
89557
  },
89782
89558
  {
89783
89559
  "kind": "method",
89784
- "name": "_readFiles",
89560
+ "name": "_onMouseMovement",
89785
89561
  "privacy": "private",
89786
89562
  "return": {
89787
89563
  "type": {
@@ -89790,273 +89566,285 @@
89790
89566
  },
89791
89567
  "parameters": [
89792
89568
  {
89793
- "name": "event",
89569
+ "name": "toggleDataAttribute",
89794
89570
  "type": {
89795
- "text": "Event"
89571
+ "text": "boolean"
89796
89572
  }
89797
89573
  }
89798
89574
  ]
89799
89575
  },
89800
89576
  {
89801
89577
  "kind": "method",
89802
- "name": "createFileList",
89803
- "privacy": "protected",
89578
+ "name": "_setIconState",
89579
+ "privacy": "private",
89804
89580
  "return": {
89805
89581
  "type": {
89806
89582
  "text": "void"
89807
89583
  }
89808
89584
  },
89809
- "parameters": [
89810
- {
89811
- "name": "files",
89812
- "type": {
89813
- "text": "FileList"
89814
- }
89815
- }
89816
- ]
89585
+ "description": "The :state(icon) is used by the 'sbb-expansion-panel'.\nIt needs to be set before the"
89817
89586
  },
89818
89587
  {
89819
89588
  "kind": "method",
89820
- "name": "getButtonLabel",
89589
+ "name": "renderTemplate",
89821
89590
  "privacy": "protected",
89822
89591
  "return": {
89823
89592
  "type": {
89824
- "text": "string"
89593
+ "text": "TemplateResult"
89825
89594
  }
89595
+ },
89596
+ "description": "Override this method to render the component template.",
89597
+ "inheritedFrom": {
89598
+ "name": "SbbActionBaseElement",
89599
+ "module": "core/base-elements/action-base-element.js"
89826
89600
  }
89827
89601
  },
89828
89602
  {
89829
- "kind": "method",
89830
- "name": "_removeFile",
89831
- "privacy": "private",
89832
- "return": {
89833
- "type": {
89834
- "text": "void"
89835
- }
89603
+ "kind": "field",
89604
+ "name": "disabledInteractive",
89605
+ "type": {
89606
+ "text": "boolean"
89836
89607
  },
89837
- "parameters": [
89838
- {
89839
- "name": "file",
89840
- "type": {
89841
- "text": "Readonly<File>"
89842
- }
89843
- }
89844
- ]
89845
- },
89846
- {
89847
- "kind": "method",
89848
- "name": "_dispatchFileChangedEvent",
89849
- "privacy": "private",
89850
- "return": {
89851
- "type": {
89852
- "text": "void"
89853
- }
89608
+ "privacy": "public",
89609
+ "default": "false",
89610
+ "description": "Whether the button should be aria-disabled but stay interactive.",
89611
+ "attribute": "disabled-interactive",
89612
+ "reflects": true,
89613
+ "inheritedFrom": {
89614
+ "name": "SbbDisabledInteractiveMixin",
89615
+ "module": "core/mixins/disabled-mixin.js"
89854
89616
  }
89855
89617
  },
89856
89618
  {
89857
- "kind": "method",
89858
- "name": "_formatFileSize",
89859
- "privacy": "private",
89860
- "return": {
89861
- "type": {
89862
- "text": "string"
89863
- }
89619
+ "kind": "field",
89620
+ "name": "disabled",
89621
+ "privacy": "public",
89622
+ "description": "Whether the component is disabled.",
89623
+ "default": "false",
89624
+ "type": {
89625
+ "text": "boolean"
89864
89626
  },
89865
- "parameters": [
89866
- {
89867
- "name": "size",
89868
- "type": {
89869
- "text": "number"
89870
- }
89871
- }
89872
- ],
89873
- "description": "Calculates the correct unit for the file's size."
89874
- },
89875
- {
89876
- "kind": "method",
89877
- "name": "_updateA11yLiveRegion",
89878
- "privacy": "private",
89879
- "return": {
89880
- "type": {
89881
- "text": "void"
89882
- }
89627
+ "attribute": "disabled",
89628
+ "reflects": true,
89629
+ "inheritedFrom": {
89630
+ "name": "SbbDisabledMixin",
89631
+ "module": "core/mixins/disabled-mixin.js"
89883
89632
  }
89884
89633
  },
89885
89634
  {
89886
- "kind": "method",
89887
- "name": "_renderFileList",
89635
+ "kind": "field",
89636
+ "name": "#disabled",
89888
89637
  "privacy": "private",
89889
- "return": {
89890
- "type": {
89891
- "text": "TemplateResult"
89892
- }
89638
+ "type": {
89639
+ "text": "boolean"
89640
+ },
89641
+ "default": "false",
89642
+ "inheritedFrom": {
89643
+ "name": "SbbDisabledMixin",
89644
+ "module": "core/mixins/disabled-mixin.js"
89893
89645
  }
89894
89646
  },
89895
89647
  {
89896
89648
  "kind": "method",
89897
- "name": "_onDragEnter",
89898
- "privacy": "private",
89649
+ "name": "isDisabledExternally",
89650
+ "privacy": "protected",
89899
89651
  "return": {
89900
89652
  "type": {
89901
- "text": "void"
89653
+ "text": "boolean"
89902
89654
  }
89903
89655
  },
89904
- "parameters": [
89905
- {
89906
- "name": "event",
89907
- "type": {
89908
- "text": "DragEvent"
89909
- }
89910
- }
89911
- ]
89656
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
89657
+ "inheritedFrom": {
89658
+ "name": "SbbDisabledMixin",
89659
+ "module": "core/mixins/disabled-mixin.js"
89660
+ }
89912
89661
  },
89913
89662
  {
89914
- "kind": "method",
89915
- "name": "_onDragLeave",
89916
- "privacy": "private",
89917
- "return": {
89918
- "type": {
89919
- "text": "void"
89920
- }
89663
+ "kind": "field",
89664
+ "name": "iconName",
89665
+ "type": {
89666
+ "text": "string"
89921
89667
  },
89922
- "parameters": [
89923
- {
89924
- "name": "event",
89925
- "type": {
89926
- "text": "DragEvent"
89927
- }
89928
- }
89929
- ]
89668
+ "privacy": "public",
89669
+ "default": "''",
89670
+ "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.",
89671
+ "attribute": "icon-name",
89672
+ "inheritedFrom": {
89673
+ "name": "SbbIconNameMixin",
89674
+ "module": "icon/icon-name-mixin.js"
89675
+ }
89930
89676
  },
89931
89677
  {
89932
89678
  "kind": "method",
89933
- "name": "_onFileDrop",
89934
- "privacy": "private",
89679
+ "name": "renderIconSlot",
89680
+ "privacy": "protected",
89935
89681
  "return": {
89936
89682
  "type": {
89937
- "text": "void"
89683
+ "text": "TemplateResult"
89938
89684
  }
89939
89685
  },
89940
89686
  "parameters": [
89941
89687
  {
89942
- "name": "event",
89688
+ "name": "classname",
89689
+ "optional": true,
89943
89690
  "type": {
89944
- "text": "DragEvent"
89691
+ "text": "string"
89945
89692
  }
89946
89693
  }
89947
- ]
89694
+ ],
89695
+ "inheritedFrom": {
89696
+ "name": "SbbIconNameMixin",
89697
+ "module": "icon/icon-name-mixin.js"
89698
+ }
89948
89699
  },
89949
89700
  {
89950
89701
  "kind": "method",
89951
- "name": "_blockEvent",
89952
- "privacy": "private",
89702
+ "name": "renderIconName",
89703
+ "privacy": "protected",
89953
89704
  "return": {
89954
89705
  "type": {
89955
- "text": "void"
89956
- }
89957
- },
89958
- "parameters": [
89959
- {
89960
- "name": "event",
89961
- "type": {
89962
- "text": "DragEvent"
89963
- }
89706
+ "text": "string"
89964
89707
  }
89965
- ]
89708
+ },
89709
+ "inheritedFrom": {
89710
+ "name": "SbbIconNameMixin",
89711
+ "module": "icon/icon-name-mixin.js"
89712
+ }
89966
89713
  },
89967
89714
  {
89968
89715
  "kind": "method",
89969
- "name": "_setDragState",
89716
+ "name": "_renderIconName",
89970
89717
  "privacy": "private",
89971
89718
  "return": {
89972
89719
  "type": {
89973
- "text": "void"
89720
+ "text": "string"
89974
89721
  }
89975
89722
  },
89976
- "parameters": [
89977
- {
89978
- "name": "dragTarget",
89979
- "default": "undefined",
89980
- "type": {
89981
- "text": "HTMLElement | undefined"
89982
- }
89983
- },
89984
- {
89985
- "name": "isDragEnter",
89986
- "default": "false",
89987
- "type": {
89988
- "text": "boolean"
89989
- }
89990
- }
89991
- ]
89723
+ "inheritedFrom": {
89724
+ "name": "SbbIconNameMixin",
89725
+ "module": "icon/icon-name-mixin.js"
89726
+ }
89992
89727
  },
89993
89728
  {
89994
89729
  "kind": "field",
89995
- "name": "disabled",
89730
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
89731
+ "type": {
89732
+ "text": "array"
89733
+ },
89734
+ "privacy": "private",
89735
+ "readonly": true,
89736
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
89737
+ "inheritedFrom": {
89738
+ "name": "SbbButtonBaseElement",
89739
+ "module": "core/base-elements/button-base-element.js"
89740
+ }
89741
+ },
89742
+ {
89743
+ "kind": "field",
89744
+ "name": "value",
89745
+ "type": {
89746
+ "text": "string"
89747
+ },
89996
89748
  "privacy": "public",
89997
- "description": "Whether the component is disabled.",
89998
- "default": "false",
89749
+ "inheritedFrom": {
89750
+ "name": "SbbButtonBaseElement",
89751
+ "module": "core/base-elements/button-base-element.js"
89752
+ },
89753
+ "default": "''",
89754
+ "description": "Value of the form element.",
89755
+ "attribute": "value"
89756
+ },
89757
+ {
89758
+ "kind": "field",
89759
+ "name": "type",
89760
+ "privacy": "public",
89761
+ "description": "The type attribute to use for the button.",
89762
+ "default": "'button'",
89999
89763
  "type": {
90000
- "text": "boolean"
89764
+ "text": "SbbButtonType"
90001
89765
  },
90002
- "attribute": "disabled",
90003
- "reflects": true,
89766
+ "attribute": "type",
90004
89767
  "inheritedFrom": {
90005
- "name": "SbbDisabledMixin",
90006
- "module": "core/mixins/disabled-mixin.js"
89768
+ "name": "SbbButtonBaseElement",
89769
+ "module": "core/base-elements/button-base-element.js"
90007
89770
  }
90008
89771
  },
90009
89772
  {
90010
89773
  "kind": "field",
90011
- "name": "#disabled",
90012
- "privacy": "private",
89774
+ "name": "form",
90013
89775
  "type": {
90014
- "text": "boolean"
89776
+ "text": "HTMLFormElement | null"
90015
89777
  },
90016
- "default": "false",
89778
+ "privacy": "public",
89779
+ "description": "The `<form>` element to associate the button with.",
90017
89780
  "inheritedFrom": {
90018
- "name": "SbbDisabledMixin",
90019
- "module": "core/mixins/disabled-mixin.js"
89781
+ "name": "SbbButtonBaseElement",
89782
+ "module": "core/base-elements/button-base-element.js"
89783
+ },
89784
+ "attribute": "form"
89785
+ },
89786
+ {
89787
+ "kind": "field",
89788
+ "name": "_formId",
89789
+ "type": {
89790
+ "text": "string"
89791
+ },
89792
+ "privacy": "private",
89793
+ "default": "''",
89794
+ "inheritedFrom": {
89795
+ "name": "SbbButtonBaseElement",
89796
+ "module": "core/base-elements/button-base-element.js"
89797
+ }
89798
+ },
89799
+ {
89800
+ "kind": "field",
89801
+ "name": "_handleButtonClick",
89802
+ "privacy": "private",
89803
+ "inheritedFrom": {
89804
+ "name": "SbbButtonBaseElement",
89805
+ "module": "core/base-elements/button-base-element.js"
90020
89806
  }
90021
89807
  },
90022
89808
  {
90023
89809
  "kind": "method",
90024
- "name": "isDisabledExternally",
90025
- "privacy": "protected",
89810
+ "name": "_requestSubmit",
89811
+ "privacy": "private",
90026
89812
  "return": {
90027
89813
  "type": {
90028
- "text": "boolean"
89814
+ "text": "void"
90029
89815
  }
90030
89816
  },
90031
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
89817
+ "parameters": [
89818
+ {
89819
+ "name": "form",
89820
+ "type": {
89821
+ "text": "HTMLFormElement"
89822
+ }
89823
+ }
89824
+ ],
90032
89825
  "inheritedFrom": {
90033
- "name": "SbbDisabledMixin",
90034
- "module": "core/mixins/disabled-mixin.js"
89826
+ "name": "SbbButtonBaseElement",
89827
+ "module": "core/base-elements/button-base-element.js"
90035
89828
  }
90036
89829
  },
90037
89830
  {
90038
89831
  "kind": "field",
90039
- "name": "formAssociated",
90040
- "type": {
90041
- "text": "boolean"
90042
- },
90043
- "privacy": "public",
90044
- "static": true,
90045
- "default": "true",
89832
+ "name": "_formKeyDown",
89833
+ "privacy": "private",
90046
89834
  "inheritedFrom": {
90047
- "name": "SbbFormAssociatedMixin",
90048
- "module": "core/mixins/form-associated-mixin.js"
89835
+ "name": "SbbButtonBaseElement",
89836
+ "module": "core/base-elements/button-base-element.js"
90049
89837
  }
90050
89838
  },
90051
89839
  {
90052
89840
  "kind": "field",
90053
- "name": "form",
89841
+ "name": "formAssociated",
90054
89842
  "type": {
90055
- "text": "HTMLFormElement | null"
89843
+ "text": "boolean"
90056
89844
  },
90057
89845
  "privacy": "public",
90058
- "description": "Returns the form owner of this element.",
90059
- "readonly": true,
89846
+ "static": true,
89847
+ "default": "true",
90060
89848
  "inheritedFrom": {
90061
89849
  "name": "SbbFormAssociatedMixin",
90062
89850
  "module": "core/mixins/form-associated-mixin.js"
@@ -90209,6 +89997,21 @@
90209
89997
  "module": "core/mixins/form-associated-mixin.js"
90210
89998
  }
90211
89999
  },
90000
+ {
90001
+ "kind": "method",
90002
+ "name": "updateFormValue",
90003
+ "privacy": "protected",
90004
+ "return": {
90005
+ "type": {
90006
+ "text": "void"
90007
+ }
90008
+ },
90009
+ "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",
90010
+ "inheritedFrom": {
90011
+ "name": "SbbFormAssociatedMixin",
90012
+ "module": "core/mixins/form-associated-mixin.js"
90013
+ }
90014
+ },
90212
90015
  {
90213
90016
  "kind": "method",
90214
90017
  "name": "formState",
@@ -90333,76 +90136,256 @@
90333
90136
  "name": "SbbFormAssociatedMixin",
90334
90137
  "module": "core/mixins/form-associated-mixin.js"
90335
90138
  }
90336
- }
90337
- ],
90338
- "events": [
90139
+ },
90339
90140
  {
90340
- "name": "input",
90141
+ "kind": "field",
90142
+ "name": "role",
90341
90143
  "type": {
90342
- "text": "InputEvent"
90144
+ "text": "ElementInternals['role']"
90343
90145
  },
90344
- "description": "The input event fires when the value has been changed as a direct result of a user action."
90146
+ "privacy": "public",
90147
+ "static": true,
90148
+ "readonly": true,
90149
+ "default": "'button'",
90150
+ "inheritedFrom": {
90151
+ "name": "SbbButtonLikeBaseElement",
90152
+ "module": "core/base-elements/button-base-element.js"
90153
+ }
90345
90154
  },
90346
90155
  {
90347
- "name": "change",
90156
+ "kind": "field",
90157
+ "name": "_preventScrollOnSpaceKeydown",
90158
+ "privacy": "private",
90159
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
90160
+ "parameters": [
90161
+ {
90162
+ "description": "The origin event.",
90163
+ "name": "event"
90164
+ }
90165
+ ],
90166
+ "inheritedFrom": {
90167
+ "name": "SbbButtonLikeBaseElement",
90168
+ "module": "core/base-elements/button-base-element.js"
90169
+ }
90170
+ },
90171
+ {
90172
+ "kind": "field",
90173
+ "name": "_removeActiveMarker",
90174
+ "privacy": "private",
90175
+ "inheritedFrom": {
90176
+ "name": "SbbButtonLikeBaseElement",
90177
+ "module": "core/base-elements/button-base-element.js"
90178
+ }
90179
+ },
90180
+ {
90181
+ "kind": "field",
90182
+ "name": "_dispatchClickEventOnSpaceKeyup",
90183
+ "privacy": "private",
90184
+ "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.",
90185
+ "parameters": [
90186
+ {
90187
+ "description": "The origin event.",
90188
+ "name": "event"
90189
+ }
90190
+ ],
90191
+ "inheritedFrom": {
90192
+ "name": "SbbButtonLikeBaseElement",
90193
+ "module": "core/base-elements/button-base-element.js"
90194
+ }
90195
+ },
90196
+ {
90197
+ "kind": "field",
90198
+ "name": "_dispatchClickEvent",
90199
+ "privacy": "private",
90200
+ "inheritedFrom": {
90201
+ "name": "SbbButtonLikeBaseElement",
90202
+ "module": "core/base-elements/button-base-element.js"
90203
+ }
90204
+ },
90205
+ {
90206
+ "kind": "field",
90207
+ "name": "maybeDisabled",
90348
90208
  "type": {
90349
- "text": "Event"
90209
+ "text": "boolean | undefined"
90350
90210
  },
90351
- "description": "The change event is fired when the user modifies the element's value.\nUnlike the input event, the change event is not necessarily fired\nfor each alteration to an element's value."
90211
+ "privacy": "protected",
90212
+ "readonly": true,
90213
+ "inheritedFrom": {
90214
+ "name": "SbbActionBaseElement",
90215
+ "module": "core/base-elements/action-base-element.js"
90216
+ }
90352
90217
  },
90353
90218
  {
90354
- "name": "filechanged",
90219
+ "kind": "field",
90220
+ "name": "maybeDisabledInteractive",
90355
90221
  "type": {
90356
- "text": "CustomEvent<Readonly<File>[]>"
90222
+ "text": "boolean | undefined"
90357
90223
  },
90358
- "description": "An event which is emitted each time the file list changes."
90359
- }
90360
- ],
90361
- "attributes": [
90224
+ "privacy": "protected",
90225
+ "readonly": true,
90226
+ "inheritedFrom": {
90227
+ "name": "SbbActionBaseElement",
90228
+ "module": "core/base-elements/action-base-element.js"
90229
+ }
90230
+ },
90362
90231
  {
90363
- "name": "size",
90232
+ "kind": "method",
90233
+ "name": "setupBaseEventHandlers",
90234
+ "privacy": "protected",
90235
+ "return": {
90236
+ "type": {
90237
+ "text": "void"
90238
+ }
90239
+ },
90240
+ "inheritedFrom": {
90241
+ "name": "SbbActionBaseElement",
90242
+ "module": "core/base-elements/action-base-element.js"
90243
+ }
90244
+ },
90245
+ {
90246
+ "kind": "field",
90247
+ "name": "_hydrationRequired",
90364
90248
  "type": {
90365
- "text": "'s' | 'm'"
90249
+ "text": "boolean"
90366
90250
  },
90367
- "description": "Size variant, either s or m.",
90368
- "default": "'m' / 's' (lean)",
90369
- "fieldName": "size"
90251
+ "privacy": "private",
90252
+ "default": "!!this.shadowRoot",
90253
+ "inheritedFrom": {
90254
+ "name": "SbbElement",
90255
+ "module": "core/base-elements/element.js"
90256
+ }
90370
90257
  },
90371
90258
  {
90372
- "name": "multiple",
90259
+ "kind": "field",
90260
+ "name": "_hydrationComplete",
90261
+ "privacy": "private",
90262
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
90263
+ "inheritedFrom": {
90264
+ "name": "SbbElement",
90265
+ "module": "core/base-elements/element.js"
90266
+ }
90267
+ },
90268
+ {
90269
+ "kind": "field",
90270
+ "name": "_resolveHydration",
90271
+ "type": {
90272
+ "text": "(hydrationRequired: boolean) => void"
90273
+ },
90274
+ "privacy": "private",
90275
+ "inheritedFrom": {
90276
+ "name": "SbbElement",
90277
+ "module": "core/base-elements/element.js"
90278
+ }
90279
+ },
90280
+ {
90281
+ "kind": "field",
90282
+ "name": "hydrationRequired",
90373
90283
  "type": {
90374
90284
  "text": "boolean"
90375
90285
  },
90376
- "default": "false",
90377
- "description": "Whether more than one file can be selected.",
90378
- "fieldName": "multiple"
90286
+ "privacy": "protected",
90287
+ "description": "Returns whether hydration is required and not completed.",
90288
+ "readonly": true,
90289
+ "inheritedFrom": {
90290
+ "name": "SbbElement",
90291
+ "module": "core/base-elements/element.js"
90292
+ },
90293
+ "default": "!!this.shadowRoot"
90379
90294
  },
90380
90295
  {
90381
- "name": "multiple-mode",
90296
+ "kind": "method",
90297
+ "name": "toggleState",
90298
+ "privacy": "protected",
90299
+ "return": {
90300
+ "type": {
90301
+ "text": "void"
90302
+ }
90303
+ },
90304
+ "parameters": [
90305
+ {
90306
+ "name": "value",
90307
+ "type": {
90308
+ "text": "string"
90309
+ }
90310
+ },
90311
+ {
90312
+ "name": "force",
90313
+ "optional": true,
90314
+ "type": {
90315
+ "text": "boolean"
90316
+ }
90317
+ }
90318
+ ],
90319
+ "inheritedFrom": {
90320
+ "name": "SbbElement",
90321
+ "module": "core/base-elements/element.js"
90322
+ }
90323
+ },
90324
+ {
90325
+ "kind": "field",
90326
+ "name": "['_$sbbElement$']",
90382
90327
  "type": {
90383
- "text": "'default' | 'persistent'"
90328
+ "text": "boolean"
90384
90329
  },
90385
- "default": "'default'",
90386
- "description": "Whether the newly added files should override the previously added ones.",
90387
- "fieldName": "multipleMode"
90330
+ "privacy": "public",
90331
+ "static": true,
90332
+ "default": "true",
90333
+ "inheritedFrom": {
90334
+ "name": "SbbElement",
90335
+ "module": "core/base-elements/element.js"
90336
+ }
90388
90337
  },
90389
90338
  {
90390
- "name": "accept",
90339
+ "kind": "field",
90340
+ "name": "_controllers",
90391
90341
  "type": {
90392
- "text": "string"
90342
+ "text": "Set<SbbReactiveController> | undefined"
90393
90343
  },
90394
- "default": "''",
90395
- "description": "A comma-separated list of allowed unique file type specifiers.",
90396
- "fieldName": "accept"
90344
+ "privacy": "private",
90345
+ "inheritedFrom": {
90346
+ "name": "SbbElement",
90347
+ "module": "core/base-elements/element.js"
90348
+ }
90349
+ }
90350
+ ],
90351
+ "events": [
90352
+ {
90353
+ "name": "toggleexpanded",
90354
+ "type": {
90355
+ "text": "Event"
90356
+ },
90357
+ "description": "Notifies that the `sbb-expansion-panel` is about to expand/shrink."
90358
+ }
90359
+ ],
90360
+ "mixins": [
90361
+ {
90362
+ "name": "SbbDisabledTabIndexActionMixin",
90363
+ "module": "core/mixins.js"
90397
90364
  },
90398
90365
  {
90399
- "name": "accessibility-label",
90366
+ "name": "SbbIconNameMixin",
90367
+ "module": "icon.js"
90368
+ }
90369
+ ],
90370
+ "superclass": {
90371
+ "name": "SbbButtonBaseElement",
90372
+ "module": "core/base-elements.js"
90373
+ },
90374
+ "tagName": "sbb-expansion-panel-header",
90375
+ "customElement": true,
90376
+ "attributes": [
90377
+ {
90378
+ "name": "disabled-interactive",
90400
90379
  "type": {
90401
- "text": "string"
90380
+ "text": "boolean"
90402
90381
  },
90403
- "default": "''",
90404
- "description": "This will be forwarded as aria-label to the native input element.",
90405
- "fieldName": "accessibilityLabel"
90382
+ "default": "false",
90383
+ "description": "Whether the button should be aria-disabled but stay interactive.",
90384
+ "fieldName": "disabledInteractive",
90385
+ "inheritedFrom": {
90386
+ "name": "SbbDisabledInteractiveMixin",
90387
+ "module": "core/mixins/disabled-mixin.js"
90388
+ }
90406
90389
  },
90407
90390
  {
90408
90391
  "name": "disabled",
@@ -90418,33 +90401,66 @@
90418
90401
  }
90419
90402
  },
90420
90403
  {
90421
- "name": "name",
90422
- "description": "Name of the form element. Will be read from name attribute.",
90404
+ "name": "icon-name",
90423
90405
  "type": {
90424
90406
  "text": "string"
90425
90407
  },
90426
- "fieldName": "name",
90408
+ "default": "''",
90409
+ "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.",
90410
+ "fieldName": "iconName",
90427
90411
  "inheritedFrom": {
90428
- "name": "SbbFormAssociatedMixin",
90429
- "module": "core/mixins/form-associated-mixin.js"
90412
+ "name": "SbbIconNameMixin",
90413
+ "module": "icon/icon-name-mixin.js"
90430
90414
  }
90431
- }
90432
- ],
90433
- "mixins": [
90415
+ },
90434
90416
  {
90435
- "name": "SbbDisabledMixin",
90436
- "module": "core/mixins.js"
90417
+ "name": "value",
90418
+ "type": {
90419
+ "text": "string"
90420
+ },
90421
+ "default": "''",
90422
+ "description": "Value of the form element.",
90423
+ "fieldName": "value",
90424
+ "inheritedFrom": {
90425
+ "name": "SbbButtonBaseElement",
90426
+ "module": "core/base-elements/button-base-element.js"
90427
+ }
90437
90428
  },
90438
90429
  {
90439
- "name": "SbbFormAssociatedMixin",
90440
- "module": "core/mixins.js"
90441
- }
90442
- ],
90443
- "parameters": [
90430
+ "name": "type",
90431
+ "description": "The type attribute to use for the button.",
90432
+ "default": "'button'",
90433
+ "type": {
90434
+ "text": "SbbButtonType"
90435
+ },
90436
+ "fieldName": "type",
90437
+ "inheritedFrom": {
90438
+ "name": "SbbButtonBaseElement",
90439
+ "module": "core/base-elements/button-base-element.js"
90440
+ }
90441
+ },
90444
90442
  {
90445
- "name": "superclass",
90443
+ "name": "form",
90444
+ "description": "The `<form>` element to associate the button with.",
90446
90445
  "type": {
90447
- "text": "T"
90446
+ "text": "HTMLFormElement | null"
90447
+ },
90448
+ "fieldName": "form",
90449
+ "inheritedFrom": {
90450
+ "name": "SbbButtonBaseElement",
90451
+ "module": "core/base-elements/button-base-element.js"
90452
+ }
90453
+ },
90454
+ {
90455
+ "name": "name",
90456
+ "description": "Name of the form element. Will be read from name attribute.",
90457
+ "type": {
90458
+ "text": "string"
90459
+ },
90460
+ "fieldName": "name",
90461
+ "inheritedFrom": {
90462
+ "name": "SbbFormAssociatedMixin",
90463
+ "module": "core/mixins/form-associated-mixin.js"
90448
90464
  }
90449
90465
  }
90450
90466
  ]
@@ -90453,26 +90469,10 @@
90453
90469
  "exports": [
90454
90470
  {
90455
90471
  "kind": "js",
90456
- "name": "fileSelectorCommonStyle",
90457
- "declaration": {
90458
- "name": "fileSelectorCommonStyle",
90459
- "module": "file-selector/common/file-selector-common.js"
90460
- }
90461
- },
90462
- {
90463
- "kind": "js",
90464
- "name": "SbbFileSelectorCommonElementMixinType",
90465
- "declaration": {
90466
- "name": "SbbFileSelectorCommonElementMixinType",
90467
- "module": "file-selector/common/file-selector-common.js"
90468
- }
90469
- },
90470
- {
90471
- "kind": "js",
90472
- "name": "SbbFileSelectorCommonElementMixin",
90472
+ "name": "SbbExpansionPanelHeaderElement",
90473
90473
  "declaration": {
90474
- "name": "SbbFileSelectorCommonElementMixin",
90475
- "module": "file-selector/common/file-selector-common.js"
90474
+ "name": "SbbExpansionPanelHeaderElement",
90475
+ "module": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js"
90476
90476
  }
90477
90477
  }
90478
90478
  ]
@@ -109891,301 +109891,83 @@
109891
109891
  "text": "string"
109892
109892
  },
109893
109893
  "default": "''",
109894
- "description": "Date as ISO string (YYYY-MM-DD)",
109895
- "fieldName": "date"
109896
- },
109897
- {
109898
- "name": "marker",
109899
- "type": {
109900
- "text": "'target' | 'circle' | 'slash' | 'cross' | string"
109901
- },
109902
- "default": "''",
109903
- "description": "The type of the marker.",
109904
- "fieldName": "marker"
109905
- },
109906
- {
109907
- "name": "color",
109908
- "type": {
109909
- "text": "'charcoal' | 'cloud' | 'orange' | 'red' | 'sky' | string"
109910
- },
109911
- "default": "''",
109912
- "description": "The color of the marker.",
109913
- "fieldName": "color"
109914
- },
109915
- {
109916
- "name": "value",
109917
- "type": {
109918
- "text": "string"
109919
- },
109920
- "default": "''",
109921
- "description": "Value of the form element.",
109922
- "fieldName": "value",
109923
- "inheritedFrom": {
109924
- "name": "SbbButtonBaseElement",
109925
- "module": "core/base-elements/button-base-element.js"
109926
- }
109927
- },
109928
- {
109929
- "name": "type",
109930
- "description": "The type attribute to use for the button.",
109931
- "default": "'button'",
109932
- "type": {
109933
- "text": "SbbButtonType"
109934
- },
109935
- "fieldName": "type",
109936
- "inheritedFrom": {
109937
- "name": "SbbButtonBaseElement",
109938
- "module": "core/base-elements/button-base-element.js"
109939
- }
109940
- },
109941
- {
109942
- "name": "form",
109943
- "description": "The `<form>` element to associate the button with.",
109944
- "type": {
109945
- "text": "HTMLFormElement | null"
109946
- },
109947
- "fieldName": "form",
109948
- "inheritedFrom": {
109949
- "name": "SbbButtonBaseElement",
109950
- "module": "core/base-elements/button-base-element.js"
109951
- }
109952
- },
109953
- {
109954
- "name": "name",
109955
- "description": "Name of the form element. Will be read from name attribute.",
109956
- "type": {
109957
- "text": "string"
109958
- },
109959
- "fieldName": "name",
109960
- "inheritedFrom": {
109961
- "name": "SbbFormAssociatedMixin",
109962
- "module": "core/mixins/form-associated-mixin.js"
109963
- }
109964
- }
109965
- ],
109966
- "superclass": {
109967
- "name": "SbbButtonBaseElement",
109968
- "module": "core/base-elements.js"
109969
- },
109970
- "tagName": "sbb-mini-calendar-day",
109971
- "customElement": true,
109972
- "classGenerics": "T = Date"
109973
- }
109974
- ],
109975
- "exports": [
109976
- {
109977
- "kind": "js",
109978
- "name": "SbbMiniCalendarDayElement",
109979
- "declaration": {
109980
- "name": "SbbMiniCalendarDayElement",
109981
- "module": "mini-calendar/mini-calendar-day/mini-calendar-day.component.js"
109982
- }
109983
- }
109984
- ]
109985
- },
109986
- {
109987
- "kind": "javascript-module",
109988
- "path": "mini-calendar/mini-calendar-month/mini-calendar-month.component.js",
109989
- "declarations": [
109990
- {
109991
- "kind": "class",
109992
- "description": "It displays a month in the `sbb-mini-calendar`.",
109993
- "name": "SbbMiniCalendarMonthElement",
109994
- "slots": [
109995
- {
109996
- "description": "Use the unnamed slot to add `sbb-mini-calendar-day` elements.",
109997
- "name": ""
109998
- }
109999
- ],
110000
- "members": [
110001
- {
110002
- "kind": "field",
110003
- "name": "elementName",
110004
- "type": {
110005
- "text": "string"
110006
- },
110007
- "privacy": "public",
110008
- "static": true,
110009
- "readonly": true,
110010
- "default": "'sbb-mini-calendar-month'",
110011
- "inheritedFrom": {
110012
- "name": "SbbElement",
110013
- "module": "core/base-elements/element.js"
110014
- }
110015
- },
110016
- {
110017
- "kind": "field",
110018
- "name": "date",
110019
- "type": {
110020
- "text": "string"
110021
- },
110022
- "privacy": "public",
110023
- "default": "''",
110024
- "description": "Date as ISO string (YYYY-MM)",
110025
- "attribute": "date"
110026
- },
110027
- {
110028
- "kind": "field",
110029
- "name": "_dateAdapter",
110030
- "type": {
110031
- "text": "DateAdapter<T>"
110032
- },
110033
- "privacy": "private"
110034
- },
110035
- {
110036
- "kind": "field",
110037
- "name": "_monthNames",
110038
- "privacy": "private"
110039
- },
110040
- {
110041
- "kind": "field",
110042
- "name": "_monthLabel",
110043
- "type": {
110044
- "text": "string | null"
110045
- },
110046
- "privacy": "private",
110047
- "default": "null"
110048
- },
110049
- {
110050
- "kind": "field",
110051
- "name": "_yearLabel",
110052
- "type": {
110053
- "text": "string | null"
110054
- },
110055
- "privacy": "private",
110056
- "default": "null"
110057
- },
110058
- {
110059
- "kind": "field",
110060
- "name": "_previousOrientation",
110061
- "type": {
110062
- "text": "SbbOrientation | null"
110063
- },
110064
- "privacy": "private",
110065
- "default": "null"
110066
- },
110067
- {
110068
- "kind": "field",
110069
- "name": "_hydrationRequired",
110070
- "type": {
110071
- "text": "boolean"
110072
- },
110073
- "privacy": "private",
110074
- "default": "!!this.shadowRoot",
110075
- "inheritedFrom": {
110076
- "name": "SbbElement",
110077
- "module": "core/base-elements/element.js"
110078
- }
110079
- },
110080
- {
110081
- "kind": "field",
110082
- "name": "_hydrationComplete",
110083
- "privacy": "private",
110084
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
110085
- "inheritedFrom": {
110086
- "name": "SbbElement",
110087
- "module": "core/base-elements/element.js"
110088
- }
110089
- },
110090
- {
110091
- "kind": "field",
110092
- "name": "_resolveHydration",
110093
- "type": {
110094
- "text": "(hydrationRequired: boolean) => void"
110095
- },
110096
- "privacy": "private",
110097
- "inheritedFrom": {
110098
- "name": "SbbElement",
110099
- "module": "core/base-elements/element.js"
110100
- }
110101
- },
110102
- {
110103
- "kind": "field",
110104
- "name": "hydrationRequired",
110105
- "type": {
110106
- "text": "boolean"
110107
- },
110108
- "privacy": "protected",
110109
- "description": "Returns whether hydration is required and not completed.",
110110
- "readonly": true,
110111
- "inheritedFrom": {
110112
- "name": "SbbElement",
110113
- "module": "core/base-elements/element.js"
110114
- },
110115
- "default": "!!this.shadowRoot"
110116
- },
110117
- {
110118
- "kind": "method",
110119
- "name": "toggleState",
110120
- "privacy": "protected",
110121
- "return": {
110122
- "type": {
110123
- "text": "void"
110124
- }
110125
- },
110126
- "parameters": [
110127
- {
110128
- "name": "value",
110129
- "type": {
110130
- "text": "string"
110131
- }
110132
- },
110133
- {
110134
- "name": "force",
110135
- "optional": true,
110136
- "type": {
110137
- "text": "boolean"
110138
- }
110139
- }
110140
- ],
110141
- "inheritedFrom": {
110142
- "name": "SbbElement",
110143
- "module": "core/base-elements/element.js"
110144
- }
110145
- },
110146
- {
110147
- "kind": "field",
110148
- "name": "['_$sbbElement$']",
110149
- "type": {
110150
- "text": "boolean"
110151
- },
110152
- "privacy": "public",
110153
- "static": true,
110154
- "default": "true",
110155
- "inheritedFrom": {
110156
- "name": "SbbElement",
110157
- "module": "core/base-elements/element.js"
110158
- }
110159
- },
110160
- {
110161
- "kind": "field",
110162
- "name": "_controllers",
110163
- "type": {
110164
- "text": "Set<SbbReactiveController> | undefined"
110165
- },
110166
- "privacy": "private",
110167
- "inheritedFrom": {
110168
- "name": "SbbElement",
110169
- "module": "core/base-elements/element.js"
110170
- }
110171
- }
110172
- ],
110173
- "attributes": [
110174
- {
110175
- "name": "date",
110176
- "type": {
110177
- "text": "string"
110178
- },
110179
- "default": "''",
110180
- "description": "Date as ISO string (YYYY-MM)",
109894
+ "description": "Date as ISO string (YYYY-MM-DD)",
110181
109895
  "fieldName": "date"
109896
+ },
109897
+ {
109898
+ "name": "marker",
109899
+ "type": {
109900
+ "text": "'target' | 'circle' | 'slash' | 'cross' | string"
109901
+ },
109902
+ "default": "''",
109903
+ "description": "The type of the marker.",
109904
+ "fieldName": "marker"
109905
+ },
109906
+ {
109907
+ "name": "color",
109908
+ "type": {
109909
+ "text": "'charcoal' | 'cloud' | 'orange' | 'red' | 'sky' | string"
109910
+ },
109911
+ "default": "''",
109912
+ "description": "The color of the marker.",
109913
+ "fieldName": "color"
109914
+ },
109915
+ {
109916
+ "name": "value",
109917
+ "type": {
109918
+ "text": "string"
109919
+ },
109920
+ "default": "''",
109921
+ "description": "Value of the form element.",
109922
+ "fieldName": "value",
109923
+ "inheritedFrom": {
109924
+ "name": "SbbButtonBaseElement",
109925
+ "module": "core/base-elements/button-base-element.js"
109926
+ }
109927
+ },
109928
+ {
109929
+ "name": "type",
109930
+ "description": "The type attribute to use for the button.",
109931
+ "default": "'button'",
109932
+ "type": {
109933
+ "text": "SbbButtonType"
109934
+ },
109935
+ "fieldName": "type",
109936
+ "inheritedFrom": {
109937
+ "name": "SbbButtonBaseElement",
109938
+ "module": "core/base-elements/button-base-element.js"
109939
+ }
109940
+ },
109941
+ {
109942
+ "name": "form",
109943
+ "description": "The `<form>` element to associate the button with.",
109944
+ "type": {
109945
+ "text": "HTMLFormElement | null"
109946
+ },
109947
+ "fieldName": "form",
109948
+ "inheritedFrom": {
109949
+ "name": "SbbButtonBaseElement",
109950
+ "module": "core/base-elements/button-base-element.js"
109951
+ }
109952
+ },
109953
+ {
109954
+ "name": "name",
109955
+ "description": "Name of the form element. Will be read from name attribute.",
109956
+ "type": {
109957
+ "text": "string"
109958
+ },
109959
+ "fieldName": "name",
109960
+ "inheritedFrom": {
109961
+ "name": "SbbFormAssociatedMixin",
109962
+ "module": "core/mixins/form-associated-mixin.js"
109963
+ }
110182
109964
  }
110183
109965
  ],
110184
109966
  "superclass": {
110185
- "name": "SbbElement",
109967
+ "name": "SbbButtonBaseElement",
110186
109968
  "module": "core/base-elements.js"
110187
109969
  },
110188
- "tagName": "sbb-mini-calendar-month",
109970
+ "tagName": "sbb-mini-calendar-day",
110189
109971
  "customElement": true,
110190
109972
  "classGenerics": "T = Date"
110191
109973
  }
@@ -110193,10 +109975,10 @@
110193
109975
  "exports": [
110194
109976
  {
110195
109977
  "kind": "js",
110196
- "name": "SbbMiniCalendarMonthElement",
109978
+ "name": "SbbMiniCalendarDayElement",
110197
109979
  "declaration": {
110198
- "name": "SbbMiniCalendarMonthElement",
110199
- "module": "mini-calendar/mini-calendar-month/mini-calendar-month.component.js"
109980
+ "name": "SbbMiniCalendarDayElement",
109981
+ "module": "mini-calendar/mini-calendar-day/mini-calendar-day.component.js"
110200
109982
  }
110201
109983
  }
110202
109984
  ]
@@ -110371,6 +110153,224 @@
110371
110153
  }
110372
110154
  ]
110373
110155
  },
110156
+ {
110157
+ "kind": "javascript-module",
110158
+ "path": "mini-calendar/mini-calendar-month/mini-calendar-month.component.js",
110159
+ "declarations": [
110160
+ {
110161
+ "kind": "class",
110162
+ "description": "It displays a month in the `sbb-mini-calendar`.",
110163
+ "name": "SbbMiniCalendarMonthElement",
110164
+ "slots": [
110165
+ {
110166
+ "description": "Use the unnamed slot to add `sbb-mini-calendar-day` elements.",
110167
+ "name": ""
110168
+ }
110169
+ ],
110170
+ "members": [
110171
+ {
110172
+ "kind": "field",
110173
+ "name": "elementName",
110174
+ "type": {
110175
+ "text": "string"
110176
+ },
110177
+ "privacy": "public",
110178
+ "static": true,
110179
+ "readonly": true,
110180
+ "default": "'sbb-mini-calendar-month'",
110181
+ "inheritedFrom": {
110182
+ "name": "SbbElement",
110183
+ "module": "core/base-elements/element.js"
110184
+ }
110185
+ },
110186
+ {
110187
+ "kind": "field",
110188
+ "name": "date",
110189
+ "type": {
110190
+ "text": "string"
110191
+ },
110192
+ "privacy": "public",
110193
+ "default": "''",
110194
+ "description": "Date as ISO string (YYYY-MM)",
110195
+ "attribute": "date"
110196
+ },
110197
+ {
110198
+ "kind": "field",
110199
+ "name": "_dateAdapter",
110200
+ "type": {
110201
+ "text": "DateAdapter<T>"
110202
+ },
110203
+ "privacy": "private"
110204
+ },
110205
+ {
110206
+ "kind": "field",
110207
+ "name": "_monthNames",
110208
+ "privacy": "private"
110209
+ },
110210
+ {
110211
+ "kind": "field",
110212
+ "name": "_monthLabel",
110213
+ "type": {
110214
+ "text": "string | null"
110215
+ },
110216
+ "privacy": "private",
110217
+ "default": "null"
110218
+ },
110219
+ {
110220
+ "kind": "field",
110221
+ "name": "_yearLabel",
110222
+ "type": {
110223
+ "text": "string | null"
110224
+ },
110225
+ "privacy": "private",
110226
+ "default": "null"
110227
+ },
110228
+ {
110229
+ "kind": "field",
110230
+ "name": "_previousOrientation",
110231
+ "type": {
110232
+ "text": "SbbOrientation | null"
110233
+ },
110234
+ "privacy": "private",
110235
+ "default": "null"
110236
+ },
110237
+ {
110238
+ "kind": "field",
110239
+ "name": "_hydrationRequired",
110240
+ "type": {
110241
+ "text": "boolean"
110242
+ },
110243
+ "privacy": "private",
110244
+ "default": "!!this.shadowRoot",
110245
+ "inheritedFrom": {
110246
+ "name": "SbbElement",
110247
+ "module": "core/base-elements/element.js"
110248
+ }
110249
+ },
110250
+ {
110251
+ "kind": "field",
110252
+ "name": "_hydrationComplete",
110253
+ "privacy": "private",
110254
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
110255
+ "inheritedFrom": {
110256
+ "name": "SbbElement",
110257
+ "module": "core/base-elements/element.js"
110258
+ }
110259
+ },
110260
+ {
110261
+ "kind": "field",
110262
+ "name": "_resolveHydration",
110263
+ "type": {
110264
+ "text": "(hydrationRequired: boolean) => void"
110265
+ },
110266
+ "privacy": "private",
110267
+ "inheritedFrom": {
110268
+ "name": "SbbElement",
110269
+ "module": "core/base-elements/element.js"
110270
+ }
110271
+ },
110272
+ {
110273
+ "kind": "field",
110274
+ "name": "hydrationRequired",
110275
+ "type": {
110276
+ "text": "boolean"
110277
+ },
110278
+ "privacy": "protected",
110279
+ "description": "Returns whether hydration is required and not completed.",
110280
+ "readonly": true,
110281
+ "inheritedFrom": {
110282
+ "name": "SbbElement",
110283
+ "module": "core/base-elements/element.js"
110284
+ },
110285
+ "default": "!!this.shadowRoot"
110286
+ },
110287
+ {
110288
+ "kind": "method",
110289
+ "name": "toggleState",
110290
+ "privacy": "protected",
110291
+ "return": {
110292
+ "type": {
110293
+ "text": "void"
110294
+ }
110295
+ },
110296
+ "parameters": [
110297
+ {
110298
+ "name": "value",
110299
+ "type": {
110300
+ "text": "string"
110301
+ }
110302
+ },
110303
+ {
110304
+ "name": "force",
110305
+ "optional": true,
110306
+ "type": {
110307
+ "text": "boolean"
110308
+ }
110309
+ }
110310
+ ],
110311
+ "inheritedFrom": {
110312
+ "name": "SbbElement",
110313
+ "module": "core/base-elements/element.js"
110314
+ }
110315
+ },
110316
+ {
110317
+ "kind": "field",
110318
+ "name": "['_$sbbElement$']",
110319
+ "type": {
110320
+ "text": "boolean"
110321
+ },
110322
+ "privacy": "public",
110323
+ "static": true,
110324
+ "default": "true",
110325
+ "inheritedFrom": {
110326
+ "name": "SbbElement",
110327
+ "module": "core/base-elements/element.js"
110328
+ }
110329
+ },
110330
+ {
110331
+ "kind": "field",
110332
+ "name": "_controllers",
110333
+ "type": {
110334
+ "text": "Set<SbbReactiveController> | undefined"
110335
+ },
110336
+ "privacy": "private",
110337
+ "inheritedFrom": {
110338
+ "name": "SbbElement",
110339
+ "module": "core/base-elements/element.js"
110340
+ }
110341
+ }
110342
+ ],
110343
+ "attributes": [
110344
+ {
110345
+ "name": "date",
110346
+ "type": {
110347
+ "text": "string"
110348
+ },
110349
+ "default": "''",
110350
+ "description": "Date as ISO string (YYYY-MM)",
110351
+ "fieldName": "date"
110352
+ }
110353
+ ],
110354
+ "superclass": {
110355
+ "name": "SbbElement",
110356
+ "module": "core/base-elements.js"
110357
+ },
110358
+ "tagName": "sbb-mini-calendar-month",
110359
+ "customElement": true,
110360
+ "classGenerics": "T = Date"
110361
+ }
110362
+ ],
110363
+ "exports": [
110364
+ {
110365
+ "kind": "js",
110366
+ "name": "SbbMiniCalendarMonthElement",
110367
+ "declaration": {
110368
+ "name": "SbbMiniCalendarMonthElement",
110369
+ "module": "mini-calendar/mini-calendar-month/mini-calendar-month.component.js"
110370
+ }
110371
+ }
110372
+ ]
110373
+ },
110374
110374
  {
110375
110375
  "kind": "javascript-module",
110376
110376
  "path": "navigation/navigation/navigation.component.js",
@@ -122855,9 +122855,9 @@
122855
122855
  "privacy": "public",
122856
122856
  "static": true,
122857
122857
  "readonly": true,
122858
- "default": "{ validate: 'validate', resizechange: 'resizechange', }",
122858
+ "default": "{ validate: 'validate', resizechange: 'resizechange', active: 'active', }",
122859
122859
  "type": {
122860
- "text": "{\n validate: 'validate',\n resizechange: 'resizechange',\n }"
122860
+ "text": "{\n validate: 'validate',\n resizechange: 'resizechange',\n active: 'active',\n }"
122861
122861
  }
122862
122862
  },
122863
122863
  {
@@ -123085,6 +123085,13 @@
123085
123085
  }
123086
123086
  ],
123087
123087
  "events": [
123088
+ {
123089
+ "name": "active",
123090
+ "type": {
123091
+ "text": "Event"
123092
+ },
123093
+ "description": "The active event is dispatched when a step is activated."
123094
+ },
123088
123095
  {
123089
123096
  "name": "validate",
123090
123097
  "type": {