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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/custom-elements.json +1674 -1674
  2. package/package.json +2 -2
@@ -87810,115 +87810,85 @@
87810
87810
  },
87811
87811
  {
87812
87812
  "kind": "javascript-module",
87813
- "path": "file-selector/common/file-selector-common.js",
87813
+ "path": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js",
87814
87814
  "declarations": [
87815
- {
87816
- "kind": "variable",
87817
- "name": "fileSelectorCommonStyle"
87818
- },
87819
87815
  {
87820
87816
  "kind": "class",
87821
- "description": "",
87822
- "name": "SbbFileSelectorCommonElementMixinType",
87823
- "members": [
87824
- {
87825
- "kind": "field",
87826
- "name": "size",
87827
- "type": {
87828
- "text": "'s' | 'm'"
87829
- },
87830
- "privacy": "public"
87831
- },
87817
+ "description": "It acts as a native `summary` tag for the `sbb-expansion-panel` component.",
87818
+ "name": "SbbExpansionPanelHeaderElement",
87819
+ "slots": [
87832
87820
  {
87833
- "kind": "field",
87834
- "name": "multiple",
87835
- "type": {
87836
- "text": "boolean"
87837
- },
87838
- "privacy": "public"
87821
+ "description": "Use the unnamed slot to add content to the `sbb-expansion-panel-header`.",
87822
+ "name": ""
87839
87823
  },
87840
87824
  {
87841
- "kind": "field",
87842
- "name": "multipleMode",
87843
- "type": {
87844
- "text": "'default' | 'persistent'"
87845
- },
87846
- "privacy": "public"
87847
- },
87825
+ "description": "Slot used to render the `sbb-expansion-panel-header` icon.",
87826
+ "name": "icon"
87827
+ }
87828
+ ],
87829
+ "members": [
87848
87830
  {
87849
87831
  "kind": "field",
87850
- "name": "accept",
87832
+ "name": "elementName",
87851
87833
  "type": {
87852
87834
  "text": "string"
87853
87835
  },
87854
- "privacy": "public"
87855
- },
87856
- {
87857
- "kind": "field",
87858
- "name": "accessibilityLabel",
87859
- "type": {
87860
- "text": "string"
87836
+ "privacy": "public",
87837
+ "static": true,
87838
+ "readonly": true,
87839
+ "inheritedFrom": {
87840
+ "name": "SbbElement",
87841
+ "module": "core/base-elements/element.js"
87861
87842
  },
87862
- "privacy": "public"
87843
+ "default": "'sbb-expansion-panel-header'"
87863
87844
  },
87864
87845
  {
87865
87846
  "kind": "field",
87866
- "name": "files",
87847
+ "name": "events",
87848
+ "privacy": "public",
87849
+ "static": true,
87850
+ "readonly": true,
87851
+ "default": "{ toggleexpanded: 'toggleexpanded', }",
87867
87852
  "type": {
87868
- "text": "Readonly<File>[]"
87869
- },
87870
- "privacy": "public"
87853
+ "text": "{\n toggleexpanded: 'toggleexpanded',\n }"
87854
+ }
87871
87855
  },
87872
87856
  {
87873
87857
  "kind": "field",
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
- }
87858
+ "name": "_mediaMatcher",
87859
+ "privacy": "private",
87860
+ "default": "new SbbMediaMatcherController(this, { [SbbMediaQueryHover]: (m) => (this._isHover = m), })"
87883
87861
  },
87884
87862
  {
87885
87863
  "kind": "field",
87886
- "name": "loadButton",
87864
+ "name": "_isHover",
87887
87865
  "type": {
87888
- "text": "SbbSecondaryButtonStaticElement"
87866
+ "text": "boolean"
87889
87867
  },
87890
- "privacy": "protected"
87868
+ "privacy": "private"
87891
87869
  },
87892
87870
  {
87893
87871
  "kind": "field",
87894
- "name": "language",
87872
+ "name": "_previousSize",
87895
87873
  "type": {
87896
- "text": "SbbLanguageController"
87874
+ "text": "string | undefined"
87897
87875
  },
87898
- "privacy": "protected"
87876
+ "privacy": "private"
87899
87877
  },
87900
87878
  {
87901
87879
  "kind": "method",
87902
- "name": "renderTemplate",
87903
- "privacy": "protected",
87880
+ "name": "_emitExpandedEvent",
87881
+ "privacy": "private",
87904
87882
  "return": {
87905
87883
  "type": {
87906
- "text": "TemplateResult"
87907
- }
87908
- },
87909
- "parameters": [
87910
- {
87911
- "name": "input",
87912
- "type": {
87913
- "text": "TemplateResult"
87914
- }
87884
+ "text": "void"
87915
87885
  }
87916
- ]
87886
+ }
87917
87887
  },
87918
87888
  {
87919
87889
  "kind": "method",
87920
- "name": "createFileList",
87921
- "privacy": "protected",
87890
+ "name": "_onMouseMovement",
87891
+ "privacy": "private",
87922
87892
  "return": {
87923
87893
  "type": {
87924
87894
  "text": "void"
@@ -87926,56 +87896,54 @@
87926
87896
  },
87927
87897
  "parameters": [
87928
87898
  {
87929
- "name": "files",
87899
+ "name": "toggleDataAttribute",
87930
87900
  "type": {
87931
- "text": "FileList"
87901
+ "text": "boolean"
87932
87902
  }
87933
87903
  }
87934
87904
  ]
87935
87905
  },
87936
87906
  {
87937
87907
  "kind": "method",
87938
- "name": "getButtonLabel",
87939
- "privacy": "protected",
87908
+ "name": "_setIconState",
87909
+ "privacy": "private",
87940
87910
  "return": {
87941
87911
  "type": {
87942
- "text": "string"
87912
+ "text": "void"
87943
87913
  }
87944
- }
87914
+ },
87915
+ "description": "The :state(icon) is used by the 'sbb-expansion-panel'.\nIt needs to be set before the"
87945
87916
  },
87946
87917
  {
87947
87918
  "kind": "method",
87948
- "name": "formResetCallback",
87949
- "privacy": "public",
87919
+ "name": "renderTemplate",
87920
+ "privacy": "protected",
87950
87921
  "return": {
87951
87922
  "type": {
87952
- "text": "void"
87923
+ "text": "TemplateResult"
87953
87924
  }
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"
87954
87930
  }
87955
87931
  },
87956
87932
  {
87957
- "kind": "method",
87958
- "name": "formStateRestoreCallback",
87959
- "privacy": "public",
87960
- "return": {
87961
- "type": {
87962
- "text": "void"
87963
- }
87933
+ "kind": "field",
87934
+ "name": "disabledInteractive",
87935
+ "type": {
87936
+ "text": "boolean"
87964
87937
  },
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
- ]
87938
+ "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
+ }
87979
87947
  },
87980
87948
  {
87981
87949
  "kind": "field",
@@ -88023,63 +87991,226 @@
88023
87991
  },
88024
87992
  {
88025
87993
  "kind": "field",
88026
- "name": "formAssociated",
87994
+ "name": "iconName",
88027
87995
  "type": {
88028
- "text": "boolean"
87996
+ "text": "string"
88029
87997
  },
88030
87998
  "privacy": "public",
88031
- "static": true,
88032
- "default": "true",
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",
88033
88002
  "inheritedFrom": {
88034
- "name": "SbbFormAssociatedMixin",
88035
- "module": "core/mixins/form-associated-mixin.js"
88003
+ "name": "SbbIconNameMixin",
88004
+ "module": "icon/icon-name-mixin.js"
88036
88005
  }
88037
88006
  },
88038
88007
  {
88039
- "kind": "field",
88040
- "name": "form",
88041
- "type": {
88042
- "text": "HTMLFormElement | null"
88008
+ "kind": "method",
88009
+ "name": "renderIconSlot",
88010
+ "privacy": "protected",
88011
+ "return": {
88012
+ "type": {
88013
+ "text": "TemplateResult"
88014
+ }
88043
88015
  },
88044
- "privacy": "public",
88045
- "description": "Returns the form owner of this element.",
88046
- "readonly": true,
88016
+ "parameters": [
88017
+ {
88018
+ "name": "classname",
88019
+ "optional": true,
88020
+ "type": {
88021
+ "text": "string"
88022
+ }
88023
+ }
88024
+ ],
88047
88025
  "inheritedFrom": {
88048
- "name": "SbbFormAssociatedMixin",
88049
- "module": "core/mixins/form-associated-mixin.js"
88026
+ "name": "SbbIconNameMixin",
88027
+ "module": "icon/icon-name-mixin.js"
88050
88028
  }
88051
88029
  },
88052
88030
  {
88053
- "kind": "field",
88054
- "name": "name",
88055
- "privacy": "public",
88056
- "description": "Name of the form element. Will be read from name attribute.",
88057
- "type": {
88058
- "text": "string"
88031
+ "kind": "method",
88032
+ "name": "renderIconName",
88033
+ "privacy": "protected",
88034
+ "return": {
88035
+ "type": {
88036
+ "text": "string"
88037
+ }
88059
88038
  },
88060
- "attribute": "name",
88061
88039
  "inheritedFrom": {
88062
- "name": "SbbFormAssociatedMixin",
88063
- "module": "core/mixins/form-associated-mixin.js"
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"
88064
88056
  }
88065
88057
  },
88066
88058
  {
88067
88059
  "kind": "field",
88068
- "name": "validity",
88060
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
88069
88061
  "type": {
88070
- "text": "ValidityState"
88062
+ "text": "array"
88071
88063
  },
88072
- "privacy": "public",
88073
- "description": "Returns the ValidityState object for this element.",
88064
+ "privacy": "private",
88074
88065
  "readonly": true,
88066
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
88075
88067
  "inheritedFrom": {
88076
- "name": "SbbFormAssociatedMixin",
88077
- "module": "core/mixins/form-associated-mixin.js"
88068
+ "name": "SbbButtonBaseElement",
88069
+ "module": "core/base-elements/button-base-element.js"
88078
88070
  }
88079
88071
  },
88080
88072
  {
88081
88073
  "kind": "field",
88082
- "name": "validationMessage",
88074
+ "name": "value",
88075
+ "type": {
88076
+ "text": "string"
88077
+ },
88078
+ "privacy": "public",
88079
+ "inheritedFrom": {
88080
+ "name": "SbbButtonBaseElement",
88081
+ "module": "core/base-elements/button-base-element.js"
88082
+ },
88083
+ "default": "''",
88084
+ "description": "Value of the form element.",
88085
+ "attribute": "value"
88086
+ },
88087
+ {
88088
+ "kind": "field",
88089
+ "name": "type",
88090
+ "privacy": "public",
88091
+ "description": "The type attribute to use for the button.",
88092
+ "default": "'button'",
88093
+ "type": {
88094
+ "text": "SbbButtonType"
88095
+ },
88096
+ "attribute": "type",
88097
+ "inheritedFrom": {
88098
+ "name": "SbbButtonBaseElement",
88099
+ "module": "core/base-elements/button-base-element.js"
88100
+ }
88101
+ },
88102
+ {
88103
+ "kind": "field",
88104
+ "name": "form",
88105
+ "type": {
88106
+ "text": "HTMLFormElement | null"
88107
+ },
88108
+ "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",
88178
+ "inheritedFrom": {
88179
+ "name": "SbbFormAssociatedMixin",
88180
+ "module": "core/mixins/form-associated-mixin.js"
88181
+ }
88182
+ },
88183
+ {
88184
+ "kind": "field",
88185
+ "name": "name",
88186
+ "privacy": "public",
88187
+ "description": "Name of the form element. Will be read from name attribute.",
88188
+ "type": {
88189
+ "text": "string"
88190
+ },
88191
+ "attribute": "name",
88192
+ "inheritedFrom": {
88193
+ "name": "SbbFormAssociatedMixin",
88194
+ "module": "core/mixins/form-associated-mixin.js"
88195
+ }
88196
+ },
88197
+ {
88198
+ "kind": "field",
88199
+ "name": "validity",
88200
+ "type": {
88201
+ "text": "ValidityState"
88202
+ },
88203
+ "privacy": "public",
88204
+ "description": "Returns the ValidityState object for this element.",
88205
+ "readonly": true,
88206
+ "inheritedFrom": {
88207
+ "name": "SbbFormAssociatedMixin",
88208
+ "module": "core/mixins/form-associated-mixin.js"
88209
+ }
88210
+ },
88211
+ {
88212
+ "kind": "field",
88213
+ "name": "validationMessage",
88083
88214
  "type": {
88084
88215
  "text": "string"
88085
88216
  },
@@ -88336,6 +88467,111 @@
88336
88467
  "module": "core/mixins/form-associated-mixin.js"
88337
88468
  }
88338
88469
  },
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
+ },
88339
88575
  {
88340
88576
  "kind": "field",
88341
88577
  "name": "_hydrationRequired",
@@ -88431,46 +88667,56 @@
88431
88667
  },
88432
88668
  {
88433
88669
  "kind": "field",
88434
- "name": "elementName",
88670
+ "name": "_controllers",
88435
88671
  "type": {
88436
- "text": "string"
88672
+ "text": "Set<SbbReactiveController> | undefined"
88437
88673
  },
88438
- "privacy": "public",
88439
- "static": true,
88440
- "readonly": true,
88674
+ "privacy": "private",
88441
88675
  "inheritedFrom": {
88442
88676
  "name": "SbbElement",
88443
88677
  "module": "core/base-elements/element.js"
88444
88678
  }
88445
- },
88679
+ }
88680
+ ],
88681
+ "events": [
88446
88682
  {
88447
- "kind": "field",
88448
- "name": "_controllers",
88683
+ "name": "toggleexpanded",
88449
88684
  "type": {
88450
- "text": "Set<SbbReactiveController> | undefined"
88685
+ "text": "Event"
88451
88686
  },
88452
- "privacy": "private",
88453
- "inheritedFrom": {
88454
- "name": "SbbElement",
88455
- "module": "core/base-elements/element.js"
88456
- }
88687
+ "description": "Notifies that the `sbb-expansion-panel` is about to expand/shrink."
88457
88688
  }
88458
88689
  ],
88459
88690
  "mixins": [
88460
88691
  {
88461
- "name": "SbbDisabledMixin",
88692
+ "name": "SbbDisabledTabIndexActionMixin",
88462
88693
  "module": "core/mixins.js"
88463
88694
  },
88464
88695
  {
88465
- "name": "SbbFormAssociatedMixin",
88466
- "module": "core/mixins.js"
88696
+ "name": "SbbIconNameMixin",
88697
+ "module": "icon.js"
88467
88698
  }
88468
88699
  ],
88469
88700
  "superclass": {
88470
- "name": "SbbElement",
88701
+ "name": "SbbButtonBaseElement",
88471
88702
  "module": "core/base-elements.js"
88472
88703
  },
88704
+ "tagName": "sbb-expansion-panel-header",
88705
+ "customElement": true,
88473
88706
  "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
+ },
88474
88720
  {
88475
88721
  "name": "disabled",
88476
88722
  "description": "Whether the component is disabled.",
@@ -88484,6 +88730,57 @@
88484
88730
  "module": "core/mixins/disabled-mixin.js"
88485
88731
  }
88486
88732
  },
88733
+ {
88734
+ "name": "icon-name",
88735
+ "type": {
88736
+ "text": "string"
88737
+ },
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",
88741
+ "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
+ },
88487
88784
  {
88488
88785
  "name": "name",
88489
88786
  "description": "Name of the form element. Will be read from name attribute.",
@@ -88497,34 +88794,39 @@
88497
88794
  }
88498
88795
  }
88499
88796
  ]
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"
88500
88817
  },
88501
88818
  {
88502
- "kind": "mixin",
88819
+ "kind": "class",
88503
88820
  "description": "",
88504
- "name": "SbbFileSelectorCommonElementMixin",
88821
+ "name": "SbbFileSelectorCommonElementMixinType",
88505
88822
  "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
- },
88517
88823
  {
88518
88824
  "kind": "field",
88519
88825
  "name": "size",
88520
88826
  "type": {
88521
88827
  "text": "'s' | 'm'"
88522
88828
  },
88523
- "privacy": "public",
88524
- "description": "Size variant, either s or m.",
88525
- "default": "'m' / 's' (lean)",
88526
- "attribute": "size",
88527
- "reflects": true
88829
+ "privacy": "public"
88528
88830
  },
88529
88831
  {
88530
88832
  "kind": "field",
@@ -88532,10 +88834,7 @@
88532
88834
  "type": {
88533
88835
  "text": "boolean"
88534
88836
  },
88535
- "privacy": "public",
88536
- "default": "false",
88537
- "description": "Whether more than one file can be selected.",
88538
- "attribute": "multiple"
88837
+ "privacy": "public"
88539
88838
  },
88540
88839
  {
88541
88840
  "kind": "field",
@@ -88543,10 +88842,7 @@
88543
88842
  "type": {
88544
88843
  "text": "'default' | 'persistent'"
88545
88844
  },
88546
- "privacy": "public",
88547
- "default": "'default'",
88548
- "description": "Whether the newly added files should override the previously added ones.",
88549
- "attribute": "multiple-mode"
88845
+ "privacy": "public"
88550
88846
  },
88551
88847
  {
88552
88848
  "kind": "field",
@@ -88554,10 +88850,7 @@
88554
88850
  "type": {
88555
88851
  "text": "string"
88556
88852
  },
88557
- "privacy": "public",
88558
- "default": "''",
88559
- "description": "A comma-separated list of allowed unique file type specifiers.",
88560
- "attribute": "accept"
88853
+ "privacy": "public"
88561
88854
  },
88562
88855
  {
88563
88856
  "kind": "field",
@@ -88565,77 +88858,27 @@
88565
88858
  "type": {
88566
88859
  "text": "string"
88567
88860
  },
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
- }
88861
+ "privacy": "public"
88585
88862
  },
88586
88863
  {
88587
88864
  "kind": "field",
88588
88865
  "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",
88598
88866
  "type": {
88599
88867
  "text": "Readonly<File>[]"
88600
88868
  },
88601
- "privacy": "private",
88602
- "default": "[]"
88869
+ "privacy": "public"
88603
88870
  },
88604
88871
  {
88605
88872
  "kind": "field",
88606
- "name": "type",
88873
+ "name": "value",
88607
88874
  "type": {
88608
- "text": "string"
88875
+ "text": "string | null"
88609
88876
  },
88610
88877
  "privacy": "public",
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"
88878
+ "inheritedFrom": {
88879
+ "name": "SbbFormAssociatedMixin",
88880
+ "module": "core/mixins/form-associated-mixin.js"
88881
+ }
88639
88882
  },
88640
88883
  {
88641
88884
  "kind": "field",
@@ -88648,25 +88891,10 @@
88648
88891
  {
88649
88892
  "kind": "field",
88650
88893
  "name": "language",
88651
- "privacy": "protected",
88652
- "default": "new SbbLanguageController(this)"
88653
- },
88654
- {
88655
- "kind": "field",
88656
- "name": "_counter",
88657
- "type": {
88658
- "text": "number"
88659
- },
88660
- "privacy": "private",
88661
- "default": "0"
88662
- },
88663
- {
88664
- "kind": "field",
88665
- "name": "_dragTarget",
88666
88894
  "type": {
88667
- "text": "HTMLElement | undefined"
88895
+ "text": "SbbLanguageController"
88668
88896
  },
88669
- "privacy": "private"
88897
+ "privacy": "protected"
88670
88898
  },
88671
88899
  {
88672
88900
  "kind": "method",
@@ -88686,6 +88914,34 @@
88686
88914
  }
88687
88915
  ]
88688
88916
  },
88917
+ {
88918
+ "kind": "method",
88919
+ "name": "createFileList",
88920
+ "privacy": "protected",
88921
+ "return": {
88922
+ "type": {
88923
+ "text": "void"
88924
+ }
88925
+ },
88926
+ "parameters": [
88927
+ {
88928
+ "name": "files",
88929
+ "type": {
88930
+ "text": "FileList"
88931
+ }
88932
+ }
88933
+ ]
88934
+ },
88935
+ {
88936
+ "kind": "method",
88937
+ "name": "getButtonLabel",
88938
+ "privacy": "protected",
88939
+ "return": {
88940
+ "type": {
88941
+ "text": "string"
88942
+ }
88943
+ }
88944
+ },
88689
88945
  {
88690
88946
  "kind": "method",
88691
88947
  "name": "formResetCallback",
@@ -88713,95 +88969,199 @@
88713
88969
  }
88714
88970
  },
88715
88971
  {
88716
- "name": "_reason",
88717
- "optional": true,
88972
+ "name": "reason",
88718
88973
  "type": {
88719
88974
  "text": "FormRestoreReason"
88720
88975
  }
88721
88976
  }
88722
88977
  ]
88723
88978
  },
88979
+ {
88980
+ "kind": "field",
88981
+ "name": "disabled",
88982
+ "privacy": "public",
88983
+ "description": "Whether the component is disabled.",
88984
+ "default": "false",
88985
+ "type": {
88986
+ "text": "boolean"
88987
+ },
88988
+ "attribute": "disabled",
88989
+ "reflects": true,
88990
+ "inheritedFrom": {
88991
+ "name": "SbbDisabledMixin",
88992
+ "module": "core/mixins/disabled-mixin.js"
88993
+ }
88994
+ },
88995
+ {
88996
+ "kind": "field",
88997
+ "name": "#disabled",
88998
+ "privacy": "private",
88999
+ "type": {
89000
+ "text": "boolean"
89001
+ },
89002
+ "default": "false",
89003
+ "inheritedFrom": {
89004
+ "name": "SbbDisabledMixin",
89005
+ "module": "core/mixins/disabled-mixin.js"
89006
+ }
89007
+ },
88724
89008
  {
88725
89009
  "kind": "method",
88726
- "name": "updateFormValue",
89010
+ "name": "isDisabledExternally",
88727
89011
  "privacy": "protected",
88728
89012
  "return": {
88729
89013
  "type": {
88730
- "text": "void"
89014
+ "text": "boolean"
88731
89015
  }
88732
89016
  },
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",
89017
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
89018
+ "inheritedFrom": {
89019
+ "name": "SbbDisabledMixin",
89020
+ "module": "core/mixins/disabled-mixin.js"
89021
+ }
89022
+ },
89023
+ {
89024
+ "kind": "field",
89025
+ "name": "formAssociated",
89026
+ "type": {
89027
+ "text": "boolean"
89028
+ },
89029
+ "privacy": "public",
89030
+ "static": true,
89031
+ "default": "true",
88734
89032
  "inheritedFrom": {
88735
89033
  "name": "SbbFormAssociatedMixin",
88736
89034
  "module": "core/mixins/form-associated-mixin.js"
88737
89035
  }
88738
89036
  },
88739
89037
  {
88740
- "kind": "method",
88741
- "name": "_checkFileEquality",
88742
- "privacy": "private",
88743
- "return": {
88744
- "type": {
88745
- "text": "boolean"
88746
- }
89038
+ "kind": "field",
89039
+ "name": "form",
89040
+ "type": {
89041
+ "text": "HTMLFormElement | null"
88747
89042
  },
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
- ]
89043
+ "privacy": "public",
89044
+ "description": "Returns the form owner of this element.",
89045
+ "readonly": true,
89046
+ "inheritedFrom": {
89047
+ "name": "SbbFormAssociatedMixin",
89048
+ "module": "core/mixins/form-associated-mixin.js"
89049
+ }
88762
89050
  },
88763
89051
  {
88764
- "kind": "method",
88765
- "name": "_onFocus",
89052
+ "kind": "field",
89053
+ "name": "name",
89054
+ "privacy": "public",
89055
+ "description": "Name of the form element. Will be read from name attribute.",
89056
+ "type": {
89057
+ "text": "string"
89058
+ },
89059
+ "attribute": "name",
89060
+ "inheritedFrom": {
89061
+ "name": "SbbFormAssociatedMixin",
89062
+ "module": "core/mixins/form-associated-mixin.js"
89063
+ }
89064
+ },
89065
+ {
89066
+ "kind": "field",
89067
+ "name": "validity",
89068
+ "type": {
89069
+ "text": "ValidityState"
89070
+ },
89071
+ "privacy": "public",
89072
+ "description": "Returns the ValidityState object for this element.",
89073
+ "readonly": true,
89074
+ "inheritedFrom": {
89075
+ "name": "SbbFormAssociatedMixin",
89076
+ "module": "core/mixins/form-associated-mixin.js"
89077
+ }
89078
+ },
89079
+ {
89080
+ "kind": "field",
89081
+ "name": "validationMessage",
89082
+ "type": {
89083
+ "text": "string"
89084
+ },
89085
+ "privacy": "public",
89086
+ "description": "Returns the current error message, if available, which corresponds\nto the current validation state.\nPlease note that only one message is returned at a time (e.g. if\nmultiple validity states are invalid, only the chronologically first one\nis returned until it is fixed, at which point the next message might be\nreturned, if it is still applicable). Also, a custom validity message\n(see below) has precedence over native validation messages.",
89087
+ "readonly": true,
89088
+ "inheritedFrom": {
89089
+ "name": "SbbFormAssociatedMixin",
89090
+ "module": "core/mixins/form-associated-mixin.js"
89091
+ }
89092
+ },
89093
+ {
89094
+ "kind": "field",
89095
+ "name": "willValidate",
89096
+ "type": {
89097
+ "text": "boolean"
89098
+ },
89099
+ "privacy": "public",
89100
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
89101
+ "readonly": true,
89102
+ "inheritedFrom": {
89103
+ "name": "SbbFormAssociatedMixin",
89104
+ "module": "core/mixins/form-associated-mixin.js"
89105
+ }
89106
+ },
89107
+ {
89108
+ "kind": "field",
89109
+ "name": "_validityStates",
88766
89110
  "privacy": "private",
88767
- "return": {
88768
- "type": {
88769
- "text": "void"
88770
- }
89111
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
89112
+ "inheritedFrom": {
89113
+ "name": "SbbFormAssociatedMixin",
89114
+ "module": "core/mixins/form-associated-mixin.js"
89115
+ }
89116
+ },
89117
+ {
89118
+ "kind": "field",
89119
+ "name": "formDisabled",
89120
+ "type": {
89121
+ "text": "boolean"
89122
+ },
89123
+ "privacy": "protected",
89124
+ "default": "false",
89125
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
89126
+ "inheritedFrom": {
89127
+ "name": "SbbFormAssociatedMixin",
89128
+ "module": "core/mixins/form-associated-mixin.js"
88771
89129
  }
88772
89130
  },
88773
89131
  {
88774
89132
  "kind": "method",
88775
- "name": "_onBlur",
88776
- "privacy": "private",
89133
+ "name": "checkValidity",
89134
+ "privacy": "public",
88777
89135
  "return": {
88778
89136
  "type": {
88779
- "text": "void"
89137
+ "text": "boolean"
88780
89138
  }
89139
+ },
89140
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
89141
+ "inheritedFrom": {
89142
+ "name": "SbbFormAssociatedMixin",
89143
+ "module": "core/mixins/form-associated-mixin.js"
88781
89144
  }
88782
89145
  },
88783
89146
  {
88784
89147
  "kind": "method",
88785
- "name": "_readFiles",
88786
- "privacy": "private",
89148
+ "name": "reportValidity",
89149
+ "privacy": "public",
88787
89150
  "return": {
88788
89151
  "type": {
88789
- "text": "void"
89152
+ "text": "boolean"
88790
89153
  }
88791
89154
  },
88792
- "parameters": [
88793
- {
88794
- "name": "event",
88795
- "type": {
88796
- "text": "Event"
88797
- }
88798
- }
88799
- ]
89155
+ "description": "Returns true if this element has no validity problems; otherwise,\nreturns false, fires an invalid event at the element,\nand (if the event isn't canceled) reports the problem to the user.",
89156
+ "inheritedFrom": {
89157
+ "name": "SbbFormAssociatedMixin",
89158
+ "module": "core/mixins/form-associated-mixin.js"
89159
+ }
88800
89160
  },
88801
89161
  {
88802
89162
  "kind": "method",
88803
- "name": "createFileList",
88804
- "privacy": "protected",
89163
+ "name": "setCustomValidity",
89164
+ "privacy": "public",
88805
89165
  "return": {
88806
89166
  "type": {
88807
89167
  "text": "void"
@@ -88809,112 +89169,101 @@
88809
89169
  },
88810
89170
  "parameters": [
88811
89171
  {
88812
- "name": "files",
89172
+ "name": "message",
88813
89173
  "type": {
88814
- "text": "FileList"
89174
+ "text": "string"
88815
89175
  }
88816
89176
  }
88817
- ]
89177
+ ],
89178
+ "description": "Sets the custom validity message for this element. Use the empty string\nto indicate that the element does not have a custom validity error.",
89179
+ "inheritedFrom": {
89180
+ "name": "SbbFormAssociatedMixin",
89181
+ "module": "core/mixins/form-associated-mixin.js"
89182
+ }
88818
89183
  },
88819
89184
  {
88820
89185
  "kind": "method",
88821
- "name": "getButtonLabel",
88822
- "privacy": "protected",
89186
+ "name": "_hasDisabledAncestor",
89187
+ "privacy": "private",
88823
89188
  "return": {
88824
89189
  "type": {
88825
- "text": "string"
89190
+ "text": "boolean"
88826
89191
  }
89192
+ },
89193
+ "inheritedFrom": {
89194
+ "name": "SbbFormAssociatedMixin",
89195
+ "module": "core/mixins/form-associated-mixin.js"
88827
89196
  }
88828
89197
  },
88829
89198
  {
88830
89199
  "kind": "method",
88831
- "name": "_removeFile",
88832
- "privacy": "private",
89200
+ "name": "updateFormValue",
89201
+ "privacy": "protected",
88833
89202
  "return": {
88834
89203
  "type": {
88835
89204
  "text": "void"
88836
89205
  }
88837
89206
  },
88838
- "parameters": [
88839
- {
88840
- "name": "file",
88841
- "type": {
88842
- "text": "Readonly<File>"
88843
- }
88844
- }
88845
- ]
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
+ }
88846
89212
  },
88847
89213
  {
88848
89214
  "kind": "method",
88849
- "name": "_dispatchFileChangedEvent",
88850
- "privacy": "private",
89215
+ "name": "formState",
89216
+ "privacy": "protected",
88851
89217
  "return": {
88852
89218
  "type": {
88853
- "text": "void"
89219
+ "text": "FormRestoreState"
88854
89220
  }
89221
+ },
89222
+ "inheritedFrom": {
89223
+ "name": "SbbFormAssociatedMixin",
89224
+ "module": "core/mixins/form-associated-mixin.js"
88855
89225
  }
88856
89226
  },
88857
89227
  {
88858
89228
  "kind": "method",
88859
- "name": "_formatFileSize",
88860
- "privacy": "private",
89229
+ "name": "setValidityFlag",
89230
+ "privacy": "protected",
88861
89231
  "return": {
88862
89232
  "type": {
88863
- "text": "string"
89233
+ "text": "void"
88864
89234
  }
88865
89235
  },
88866
89236
  "parameters": [
88867
89237
  {
88868
- "name": "size",
89238
+ "name": "flag",
88869
89239
  "type": {
88870
- "text": "number"
89240
+ "text": "T"
88871
89241
  }
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",
88900
- "return": {
88901
- "type": {
88902
- "text": "void"
88903
- }
88904
- },
88905
- "parameters": [
89242
+ },
88906
89243
  {
88907
- "name": "event",
89244
+ "name": "message",
88908
89245
  "type": {
88909
- "text": "DragEvent"
89246
+ "text": "string"
89247
+ }
89248
+ },
89249
+ {
89250
+ "name": "flagValue",
89251
+ "optional": true,
89252
+ "type": {
89253
+ "text": "ValidityStateFlags[T]"
88910
89254
  }
88911
89255
  }
88912
- ]
89256
+ ],
89257
+ "description": "Marks this element as suffering from the constraint indicated by the\nflag argument and associates the given message to it.\nNote that only one message is displayed at a time and custom messages by\nconsumers are always displayed before internal messages and internal\nmessages are displayed in the order they were added.\nTo set/define custom validity state flags, you need to extend the\nValidityState prototype (and the CustomValidityState interface).",
89258
+ "inheritedFrom": {
89259
+ "name": "SbbFormAssociatedMixin",
89260
+ "module": "core/mixins/form-associated-mixin.js"
89261
+ }
88913
89262
  },
88914
89263
  {
88915
89264
  "kind": "method",
88916
- "name": "_onDragLeave",
88917
- "privacy": "private",
89265
+ "name": "removeValidityFlag",
89266
+ "privacy": "protected",
88918
89267
  "return": {
88919
89268
  "type": {
88920
89269
  "text": "void"
@@ -88922,122 +89271,152 @@
88922
89271
  },
88923
89272
  "parameters": [
88924
89273
  {
88925
- "name": "event",
89274
+ "name": "flag",
88926
89275
  "type": {
88927
- "text": "DragEvent"
89276
+ "text": "T"
88928
89277
  }
88929
89278
  }
88930
- ]
89279
+ ],
89280
+ "description": "Removes the validity state flag entry and updates validity state.",
89281
+ "inheritedFrom": {
89282
+ "name": "SbbFormAssociatedMixin",
89283
+ "module": "core/mixins/form-associated-mixin.js"
89284
+ }
88931
89285
  },
88932
89286
  {
88933
89287
  "kind": "method",
88934
- "name": "_onFileDrop",
88935
- "privacy": "private",
89288
+ "name": "validate",
89289
+ "privacy": "protected",
88936
89290
  "return": {
88937
89291
  "type": {
88938
89292
  "text": "void"
88939
89293
  }
88940
89294
  },
88941
- "parameters": [
88942
- {
88943
- "name": "event",
88944
- "type": {
88945
- "text": "DragEvent"
88946
- }
88947
- }
88948
- ]
89295
+ "description": "To be called whenever the current element needs to be validated.",
89296
+ "inheritedFrom": {
89297
+ "name": "SbbFormAssociatedMixin",
89298
+ "module": "core/mixins/form-associated-mixin.js"
89299
+ }
88949
89300
  },
88950
89301
  {
88951
89302
  "kind": "method",
88952
- "name": "_blockEvent",
88953
- "privacy": "private",
89303
+ "name": "shouldValidate",
89304
+ "privacy": "protected",
88954
89305
  "return": {
88955
89306
  "type": {
88956
- "text": "void"
89307
+ "text": "boolean"
88957
89308
  }
88958
89309
  },
88959
89310
  "parameters": [
88960
89311
  {
88961
- "name": "event",
89312
+ "name": "name",
88962
89313
  "type": {
88963
- "text": "DragEvent"
89314
+ "text": "PropertyKey | undefined"
88964
89315
  }
88965
89316
  }
88966
- ]
89317
+ ],
89318
+ "description": "Whether validation should be run on a property change with the given name.",
89319
+ "inheritedFrom": {
89320
+ "name": "SbbFormAssociatedMixin",
89321
+ "module": "core/mixins/form-associated-mixin.js"
89322
+ }
88967
89323
  },
88968
89324
  {
88969
89325
  "kind": "method",
88970
- "name": "_setDragState",
89326
+ "name": "_setInternalValidity",
88971
89327
  "privacy": "private",
88972
89328
  "return": {
88973
89329
  "type": {
88974
89330
  "text": "void"
88975
89331
  }
88976
89332
  },
88977
- "parameters": [
88978
- {
88979
- "name": "dragTarget",
88980
- "default": "undefined",
88981
- "type": {
88982
- "text": "HTMLElement | undefined"
88983
- }
88984
- },
88985
- {
88986
- "name": "isDragEnter",
88987
- "default": "false",
88988
- "type": {
88989
- "text": "boolean"
88990
- }
88991
- }
88992
- ]
89333
+ "inheritedFrom": {
89334
+ "name": "SbbFormAssociatedMixin",
89335
+ "module": "core/mixins/form-associated-mixin.js"
89336
+ }
88993
89337
  },
88994
89338
  {
88995
89339
  "kind": "field",
88996
- "name": "disabled",
88997
- "privacy": "public",
88998
- "description": "Whether the component is disabled.",
88999
- "default": "false",
89340
+ "name": "_hydrationRequired",
89000
89341
  "type": {
89001
89342
  "text": "boolean"
89002
89343
  },
89003
- "attribute": "disabled",
89004
- "reflects": true,
89344
+ "privacy": "private",
89345
+ "default": "!!this.shadowRoot",
89005
89346
  "inheritedFrom": {
89006
- "name": "SbbDisabledMixin",
89007
- "module": "core/mixins/disabled-mixin.js"
89347
+ "name": "SbbElement",
89348
+ "module": "core/base-elements/element.js"
89008
89349
  }
89009
89350
  },
89010
89351
  {
89011
89352
  "kind": "field",
89012
- "name": "#disabled",
89353
+ "name": "_hydrationComplete",
89013
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
+ }
89360
+ },
89361
+ {
89362
+ "kind": "field",
89363
+ "name": "_resolveHydration",
89014
89364
  "type": {
89015
- "text": "boolean"
89365
+ "text": "(hydrationRequired: boolean) => void"
89016
89366
  },
89017
- "default": "false",
89367
+ "privacy": "private",
89018
89368
  "inheritedFrom": {
89019
- "name": "SbbDisabledMixin",
89020
- "module": "core/mixins/disabled-mixin.js"
89369
+ "name": "SbbElement",
89370
+ "module": "core/base-elements/element.js"
89021
89371
  }
89022
89372
  },
89373
+ {
89374
+ "kind": "field",
89375
+ "name": "hydrationRequired",
89376
+ "type": {
89377
+ "text": "boolean"
89378
+ },
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
+ },
89023
89388
  {
89024
89389
  "kind": "method",
89025
- "name": "isDisabledExternally",
89390
+ "name": "toggleState",
89026
89391
  "privacy": "protected",
89027
89392
  "return": {
89028
89393
  "type": {
89029
- "text": "boolean"
89394
+ "text": "void"
89030
89395
  }
89031
89396
  },
89032
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
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
+ ],
89033
89412
  "inheritedFrom": {
89034
- "name": "SbbDisabledMixin",
89035
- "module": "core/mixins/disabled-mixin.js"
89413
+ "name": "SbbElement",
89414
+ "module": "core/base-elements/element.js"
89036
89415
  }
89037
89416
  },
89038
89417
  {
89039
89418
  "kind": "field",
89040
- "name": "formAssociated",
89419
+ "name": "['_$sbbElement$']",
89041
89420
  "type": {
89042
89421
  "text": "boolean"
89043
89422
  },
@@ -89045,75 +89424,159 @@
89045
89424
  "static": true,
89046
89425
  "default": "true",
89047
89426
  "inheritedFrom": {
89048
- "name": "SbbFormAssociatedMixin",
89049
- "module": "core/mixins/form-associated-mixin.js"
89427
+ "name": "SbbElement",
89428
+ "module": "core/base-elements/element.js"
89050
89429
  }
89051
89430
  },
89052
89431
  {
89053
89432
  "kind": "field",
89054
- "name": "form",
89433
+ "name": "elementName",
89055
89434
  "type": {
89056
- "text": "HTMLFormElement | null"
89435
+ "text": "string"
89057
89436
  },
89058
89437
  "privacy": "public",
89059
- "description": "Returns the form owner of this element.",
89438
+ "static": true,
89060
89439
  "readonly": true,
89061
89440
  "inheritedFrom": {
89062
- "name": "SbbFormAssociatedMixin",
89063
- "module": "core/mixins/form-associated-mixin.js"
89441
+ "name": "SbbElement",
89442
+ "module": "core/base-elements/element.js"
89064
89443
  }
89065
89444
  },
89066
89445
  {
89067
89446
  "kind": "field",
89068
- "name": "name",
89069
- "privacy": "public",
89070
- "description": "Name of the form element. Will be read from name attribute.",
89447
+ "name": "_controllers",
89071
89448
  "type": {
89072
- "text": "string"
89449
+ "text": "Set<SbbReactiveController> | undefined"
89073
89450
  },
89074
- "attribute": "name",
89451
+ "privacy": "private",
89075
89452
  "inheritedFrom": {
89076
- "name": "SbbFormAssociatedMixin",
89077
- "module": "core/mixins/form-associated-mixin.js"
89453
+ "name": "SbbElement",
89454
+ "module": "core/base-elements/element.js"
89078
89455
  }
89456
+ }
89457
+ ],
89458
+ "mixins": [
89459
+ {
89460
+ "name": "SbbDisabledMixin",
89461
+ "module": "core/mixins.js"
89079
89462
  },
89080
89463
  {
89081
- "kind": "field",
89082
- "name": "validity",
89464
+ "name": "SbbFormAssociatedMixin",
89465
+ "module": "core/mixins.js"
89466
+ }
89467
+ ],
89468
+ "superclass": {
89469
+ "name": "SbbElement",
89470
+ "module": "core/base-elements.js"
89471
+ },
89472
+ "attributes": [
89473
+ {
89474
+ "name": "disabled",
89475
+ "description": "Whether the component is disabled.",
89476
+ "default": "false",
89083
89477
  "type": {
89084
- "text": "ValidityState"
89478
+ "text": "boolean"
89085
89479
  },
89086
- "privacy": "public",
89087
- "description": "Returns the ValidityState object for this element.",
89088
- "readonly": true,
89480
+ "fieldName": "disabled",
89089
89481
  "inheritedFrom": {
89090
- "name": "SbbFormAssociatedMixin",
89091
- "module": "core/mixins/form-associated-mixin.js"
89482
+ "name": "SbbDisabledMixin",
89483
+ "module": "core/mixins/disabled-mixin.js"
89092
89484
  }
89093
89485
  },
89094
89486
  {
89095
- "kind": "field",
89096
- "name": "validationMessage",
89487
+ "name": "name",
89488
+ "description": "Name of the form element. Will be read from name attribute.",
89097
89489
  "type": {
89098
89490
  "text": "string"
89099
89491
  },
89100
- "privacy": "public",
89101
- "description": "Returns the current error message, if available, which corresponds\nto the current validation state.\nPlease note that only one message is returned at a time (e.g. if\nmultiple validity states are invalid, only the chronologically first one\nis returned until it is fixed, at which point the next message might be\nreturned, if it is still applicable). Also, a custom validity message\n(see below) has precedence over native validation messages.",
89102
- "readonly": true,
89492
+ "fieldName": "name",
89103
89493
  "inheritedFrom": {
89104
89494
  "name": "SbbFormAssociatedMixin",
89105
89495
  "module": "core/mixins/form-associated-mixin.js"
89106
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
+ }
89107
89515
  },
89108
89516
  {
89109
89517
  "kind": "field",
89110
- "name": "willValidate",
89518
+ "name": "size",
89519
+ "type": {
89520
+ "text": "'s' | 'm'"
89521
+ },
89522
+ "privacy": "public",
89523
+ "description": "Size variant, either s or m.",
89524
+ "default": "'m' / 's' (lean)",
89525
+ "attribute": "size",
89526
+ "reflects": true
89527
+ },
89528
+ {
89529
+ "kind": "field",
89530
+ "name": "multiple",
89111
89531
  "type": {
89112
89532
  "text": "boolean"
89113
89533
  },
89114
89534
  "privacy": "public",
89115
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
89116
- "readonly": true,
89535
+ "default": "false",
89536
+ "description": "Whether more than one file can be selected.",
89537
+ "attribute": "multiple"
89538
+ },
89539
+ {
89540
+ "kind": "field",
89541
+ "name": "multipleMode",
89542
+ "type": {
89543
+ "text": "'default' | 'persistent'"
89544
+ },
89545
+ "privacy": "public",
89546
+ "default": "'default'",
89547
+ "description": "Whether the newly added files should override the previously added ones.",
89548
+ "attribute": "multiple-mode"
89549
+ },
89550
+ {
89551
+ "kind": "field",
89552
+ "name": "accept",
89553
+ "type": {
89554
+ "text": "string"
89555
+ },
89556
+ "privacy": "public",
89557
+ "default": "''",
89558
+ "description": "A comma-separated list of allowed unique file type specifiers.",
89559
+ "attribute": "accept"
89560
+ },
89561
+ {
89562
+ "kind": "field",
89563
+ "name": "accessibilityLabel",
89564
+ "type": {
89565
+ "text": "string"
89566
+ },
89567
+ "privacy": "public",
89568
+ "default": "''",
89569
+ "description": "This will be forwarded as aria-label to the native input element.",
89570
+ "attribute": "accessibility-label"
89571
+ },
89572
+ {
89573
+ "kind": "field",
89574
+ "name": "value",
89575
+ "type": {
89576
+ "text": "string | null"
89577
+ },
89578
+ "privacy": "public",
89579
+ "description": "The path of the first selected file. Empty string ('') if no file is selected",
89117
89580
  "inheritedFrom": {
89118
89581
  "name": "SbbFormAssociatedMixin",
89119
89582
  "module": "core/mixins/form-associated-mixin.js"
@@ -89121,61 +89584,120 @@
89121
89584
  },
89122
89585
  {
89123
89586
  "kind": "field",
89124
- "name": "_validityStates",
89125
- "privacy": "private",
89126
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
89127
- "inheritedFrom": {
89128
- "name": "SbbFormAssociatedMixin",
89129
- "module": "core/mixins/form-associated-mixin.js"
89587
+ "name": "files",
89588
+ "privacy": "public",
89589
+ "description": "The list of selected files.",
89590
+ "type": {
89591
+ "text": "Readonly<File>[]"
89130
89592
  }
89131
89593
  },
89132
89594
  {
89133
89595
  "kind": "field",
89134
- "name": "formDisabled",
89596
+ "name": "_files",
89135
89597
  "type": {
89136
- "text": "boolean"
89598
+ "text": "Readonly<File>[]"
89599
+ },
89600
+ "privacy": "private",
89601
+ "default": "[]"
89602
+ },
89603
+ {
89604
+ "kind": "field",
89605
+ "name": "type",
89606
+ "type": {
89607
+ "text": "string"
89608
+ },
89609
+ "privacy": "public",
89610
+ "description": "Form type of element.",
89611
+ "default": "'file'",
89612
+ "readonly": true
89613
+ },
89614
+ {
89615
+ "kind": "field",
89616
+ "name": "_hiddenInput",
89617
+ "type": {
89618
+ "text": "HTMLInputElement"
89619
+ },
89620
+ "privacy": "private"
89621
+ },
89622
+ {
89623
+ "kind": "field",
89624
+ "name": "_suffixes",
89625
+ "type": {
89626
+ "text": "string[]"
89137
89627
  },
89628
+ "privacy": "private",
89629
+ "default": "['B', 'kB', 'MB', 'GB', 'TB']"
89630
+ },
89631
+ {
89632
+ "kind": "field",
89633
+ "name": "_liveRegion",
89634
+ "type": {
89635
+ "text": "HTMLParagraphElement"
89636
+ },
89637
+ "privacy": "private"
89638
+ },
89639
+ {
89640
+ "kind": "field",
89641
+ "name": "loadButton",
89642
+ "type": {
89643
+ "text": "SbbSecondaryButtonStaticElement"
89644
+ },
89645
+ "privacy": "protected"
89646
+ },
89647
+ {
89648
+ "kind": "field",
89649
+ "name": "language",
89138
89650
  "privacy": "protected",
89139
- "default": "false",
89140
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
89141
- "inheritedFrom": {
89142
- "name": "SbbFormAssociatedMixin",
89143
- "module": "core/mixins/form-associated-mixin.js"
89144
- }
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",
89665
+ "type": {
89666
+ "text": "HTMLElement | undefined"
89667
+ },
89668
+ "privacy": "private"
89145
89669
  },
89146
89670
  {
89147
89671
  "kind": "method",
89148
- "name": "checkValidity",
89149
- "privacy": "public",
89672
+ "name": "renderTemplate",
89673
+ "privacy": "protected",
89150
89674
  "return": {
89151
89675
  "type": {
89152
- "text": "boolean"
89676
+ "text": "TemplateResult"
89153
89677
  }
89154
89678
  },
89155
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
89156
- "inheritedFrom": {
89157
- "name": "SbbFormAssociatedMixin",
89158
- "module": "core/mixins/form-associated-mixin.js"
89159
- }
89679
+ "parameters": [
89680
+ {
89681
+ "name": "input",
89682
+ "type": {
89683
+ "text": "TemplateResult"
89684
+ }
89685
+ }
89686
+ ]
89160
89687
  },
89161
89688
  {
89162
89689
  "kind": "method",
89163
- "name": "reportValidity",
89690
+ "name": "formResetCallback",
89164
89691
  "privacy": "public",
89165
89692
  "return": {
89166
89693
  "type": {
89167
- "text": "boolean"
89694
+ "text": "void"
89168
89695
  }
89169
- },
89170
- "description": "Returns true if this element has no validity problems; otherwise,\nreturns false, fires an invalid event at the element,\nand (if the event isn't canceled) reports the problem to the user.",
89171
- "inheritedFrom": {
89172
- "name": "SbbFormAssociatedMixin",
89173
- "module": "core/mixins/form-associated-mixin.js"
89174
89696
  }
89175
89697
  },
89176
89698
  {
89177
89699
  "kind": "method",
89178
- "name": "setCustomValidity",
89700
+ "name": "formStateRestoreCallback",
89179
89701
  "privacy": "public",
89180
89702
  "return": {
89181
89703
  "type": {
@@ -89184,41 +89706,30 @@
89184
89706
  },
89185
89707
  "parameters": [
89186
89708
  {
89187
- "name": "message",
89709
+ "name": "state",
89188
89710
  "type": {
89189
- "text": "string"
89711
+ "text": "FormRestoreState | null"
89712
+ }
89713
+ },
89714
+ {
89715
+ "name": "_reason",
89716
+ "optional": true,
89717
+ "type": {
89718
+ "text": "FormRestoreReason"
89190
89719
  }
89191
89720
  }
89192
- ],
89193
- "description": "Sets the custom validity message for this element. Use the empty string\nto indicate that the element does not have a custom validity error.",
89194
- "inheritedFrom": {
89195
- "name": "SbbFormAssociatedMixin",
89196
- "module": "core/mixins/form-associated-mixin.js"
89197
- }
89198
- },
89199
- {
89200
- "kind": "method",
89201
- "name": "_hasDisabledAncestor",
89202
- "privacy": "private",
89203
- "return": {
89204
- "type": {
89205
- "text": "boolean"
89206
- }
89207
- },
89208
- "inheritedFrom": {
89209
- "name": "SbbFormAssociatedMixin",
89210
- "module": "core/mixins/form-associated-mixin.js"
89211
- }
89721
+ ]
89212
89722
  },
89213
89723
  {
89214
89724
  "kind": "method",
89215
- "name": "formState",
89725
+ "name": "updateFormValue",
89216
89726
  "privacy": "protected",
89217
89727
  "return": {
89218
89728
  "type": {
89219
- "text": "FormRestoreState"
89729
+ "text": "void"
89220
89730
  }
89221
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",
89222
89733
  "inheritedFrom": {
89223
89734
  "name": "SbbFormAssociatedMixin",
89224
89735
  "module": "core/mixins/form-associated-mixin.js"
@@ -89226,588 +89737,51 @@
89226
89737
  },
89227
89738
  {
89228
89739
  "kind": "method",
89229
- "name": "setValidityFlag",
89230
- "privacy": "protected",
89740
+ "name": "_checkFileEquality",
89741
+ "privacy": "private",
89231
89742
  "return": {
89232
89743
  "type": {
89233
- "text": "void"
89744
+ "text": "boolean"
89234
89745
  }
89235
89746
  },
89236
89747
  "parameters": [
89237
89748
  {
89238
- "name": "flag",
89749
+ "name": "file1",
89239
89750
  "type": {
89240
- "text": "T"
89751
+ "text": "Readonly<File>"
89241
89752
  }
89242
89753
  },
89243
89754
  {
89244
- "name": "message",
89755
+ "name": "file2",
89245
89756
  "type": {
89246
- "text": "string"
89757
+ "text": "Readonly<File>"
89247
89758
  }
89248
- },
89249
- {
89250
- "name": "flagValue",
89251
- "optional": true,
89252
- "type": {
89253
- "text": "ValidityStateFlags[T]"
89254
- }
89255
- }
89256
- ],
89257
- "description": "Marks this element as suffering from the constraint indicated by the\nflag argument and associates the given message to it.\nNote that only one message is displayed at a time and custom messages by\nconsumers are always displayed before internal messages and internal\nmessages are displayed in the order they were added.\nTo set/define custom validity state flags, you need to extend the\nValidityState prototype (and the CustomValidityState interface).",
89258
- "inheritedFrom": {
89259
- "name": "SbbFormAssociatedMixin",
89260
- "module": "core/mixins/form-associated-mixin.js"
89261
- }
89262
- },
89263
- {
89264
- "kind": "method",
89265
- "name": "removeValidityFlag",
89266
- "privacy": "protected",
89267
- "return": {
89268
- "type": {
89269
- "text": "void"
89270
- }
89271
- },
89272
- "parameters": [
89273
- {
89274
- "name": "flag",
89275
- "type": {
89276
- "text": "T"
89277
- }
89278
- }
89279
- ],
89280
- "description": "Removes the validity state flag entry and updates validity state.",
89281
- "inheritedFrom": {
89282
- "name": "SbbFormAssociatedMixin",
89283
- "module": "core/mixins/form-associated-mixin.js"
89284
- }
89285
- },
89286
- {
89287
- "kind": "method",
89288
- "name": "validate",
89289
- "privacy": "protected",
89290
- "return": {
89291
- "type": {
89292
- "text": "void"
89293
- }
89294
- },
89295
- "description": "To be called whenever the current element needs to be validated.",
89296
- "inheritedFrom": {
89297
- "name": "SbbFormAssociatedMixin",
89298
- "module": "core/mixins/form-associated-mixin.js"
89299
- }
89300
- },
89301
- {
89302
- "kind": "method",
89303
- "name": "shouldValidate",
89304
- "privacy": "protected",
89305
- "return": {
89306
- "type": {
89307
- "text": "boolean"
89308
- }
89309
- },
89310
- "parameters": [
89311
- {
89312
- "name": "name",
89313
- "type": {
89314
- "text": "PropertyKey | undefined"
89315
- }
89316
- }
89317
- ],
89318
- "description": "Whether validation should be run on a property change with the given name.",
89319
- "inheritedFrom": {
89320
- "name": "SbbFormAssociatedMixin",
89321
- "module": "core/mixins/form-associated-mixin.js"
89322
- }
89323
- },
89324
- {
89325
- "kind": "method",
89326
- "name": "_setInternalValidity",
89327
- "privacy": "private",
89328
- "return": {
89329
- "type": {
89330
- "text": "void"
89331
- }
89332
- },
89333
- "inheritedFrom": {
89334
- "name": "SbbFormAssociatedMixin",
89335
- "module": "core/mixins/form-associated-mixin.js"
89336
- }
89337
- }
89338
- ],
89339
- "events": [
89340
- {
89341
- "name": "input",
89342
- "type": {
89343
- "text": "InputEvent"
89344
- },
89345
- "description": "The input event fires when the value has been changed as a direct result of a user action."
89346
- },
89347
- {
89348
- "name": "change",
89349
- "type": {
89350
- "text": "Event"
89351
- },
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."
89353
- },
89354
- {
89355
- "name": "filechanged",
89356
- "type": {
89357
- "text": "CustomEvent<Readonly<File>[]>"
89358
- },
89359
- "description": "An event which is emitted each time the file list changes."
89360
- }
89361
- ],
89362
- "attributes": [
89363
- {
89364
- "name": "size",
89365
- "type": {
89366
- "text": "'s' | 'm'"
89367
- },
89368
- "description": "Size variant, either s or m.",
89369
- "default": "'m' / 's' (lean)",
89370
- "fieldName": "size"
89371
- },
89372
- {
89373
- "name": "multiple",
89374
- "type": {
89375
- "text": "boolean"
89376
- },
89377
- "default": "false",
89378
- "description": "Whether more than one file can be selected.",
89379
- "fieldName": "multiple"
89380
- },
89381
- {
89382
- "name": "multiple-mode",
89383
- "type": {
89384
- "text": "'default' | 'persistent'"
89385
- },
89386
- "default": "'default'",
89387
- "description": "Whether the newly added files should override the previously added ones.",
89388
- "fieldName": "multipleMode"
89389
- },
89390
- {
89391
- "name": "accept",
89392
- "type": {
89393
- "text": "string"
89394
- },
89395
- "default": "''",
89396
- "description": "A comma-separated list of allowed unique file type specifiers.",
89397
- "fieldName": "accept"
89398
- },
89399
- {
89400
- "name": "accessibility-label",
89401
- "type": {
89402
- "text": "string"
89403
- },
89404
- "default": "''",
89405
- "description": "This will be forwarded as aria-label to the native input element.",
89406
- "fieldName": "accessibilityLabel"
89407
- },
89408
- {
89409
- "name": "disabled",
89410
- "description": "Whether the component is disabled.",
89411
- "default": "false",
89412
- "type": {
89413
- "text": "boolean"
89414
- },
89415
- "fieldName": "disabled",
89416
- "inheritedFrom": {
89417
- "name": "SbbDisabledMixin",
89418
- "module": "core/mixins/disabled-mixin.js"
89419
- }
89420
- },
89421
- {
89422
- "name": "name",
89423
- "description": "Name of the form element. Will be read from name attribute.",
89424
- "type": {
89425
- "text": "string"
89426
- },
89427
- "fieldName": "name",
89428
- "inheritedFrom": {
89429
- "name": "SbbFormAssociatedMixin",
89430
- "module": "core/mixins/form-associated-mixin.js"
89431
- }
89432
- }
89433
- ],
89434
- "mixins": [
89435
- {
89436
- "name": "SbbDisabledMixin",
89437
- "module": "core/mixins.js"
89438
- },
89439
- {
89440
- "name": "SbbFormAssociatedMixin",
89441
- "module": "core/mixins.js"
89442
- }
89443
- ],
89444
- "parameters": [
89445
- {
89446
- "name": "superclass",
89447
- "type": {
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": ""
89493
- },
89494
- {
89495
- "description": "Slot used to render the `sbb-expansion-panel-header` icon.",
89496
- "name": "icon"
89497
- }
89498
- ],
89499
- "members": [
89500
- {
89501
- "kind": "field",
89502
- "name": "elementName",
89503
- "type": {
89504
- "text": "string"
89505
- },
89506
- "privacy": "public",
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'"
89514
- },
89515
- {
89516
- "kind": "field",
89517
- "name": "events",
89518
- "privacy": "public",
89519
- "static": true,
89520
- "readonly": true,
89521
- "default": "{ toggleexpanded: 'toggleexpanded', }",
89522
- "type": {
89523
- "text": "{\n toggleexpanded: 'toggleexpanded',\n }"
89524
- }
89525
- },
89526
- {
89527
- "kind": "field",
89528
- "name": "_mediaMatcher",
89529
- "privacy": "private",
89530
- "default": "new SbbMediaMatcherController(this, { [SbbMediaQueryHover]: (m) => (this._isHover = m), })"
89531
- },
89532
- {
89533
- "kind": "field",
89534
- "name": "_isHover",
89535
- "type": {
89536
- "text": "boolean"
89537
- },
89538
- "privacy": "private"
89539
- },
89540
- {
89541
- "kind": "field",
89542
- "name": "_previousSize",
89543
- "type": {
89544
- "text": "string | undefined"
89545
- },
89546
- "privacy": "private"
89547
- },
89548
- {
89549
- "kind": "method",
89550
- "name": "_emitExpandedEvent",
89551
- "privacy": "private",
89552
- "return": {
89553
- "type": {
89554
- "text": "void"
89555
- }
89556
- }
89557
- },
89558
- {
89559
- "kind": "method",
89560
- "name": "_onMouseMovement",
89561
- "privacy": "private",
89562
- "return": {
89563
- "type": {
89564
- "text": "void"
89565
- }
89566
- },
89567
- "parameters": [
89568
- {
89569
- "name": "toggleDataAttribute",
89570
- "type": {
89571
- "text": "boolean"
89572
- }
89573
- }
89574
- ]
89575
- },
89576
- {
89577
- "kind": "method",
89578
- "name": "_setIconState",
89579
- "privacy": "private",
89580
- "return": {
89581
- "type": {
89582
- "text": "void"
89583
- }
89584
- },
89585
- "description": "The :state(icon) is used by the 'sbb-expansion-panel'.\nIt needs to be set before the"
89586
- },
89587
- {
89588
- "kind": "method",
89589
- "name": "renderTemplate",
89590
- "privacy": "protected",
89591
- "return": {
89592
- "type": {
89593
- "text": "TemplateResult"
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"
89600
- }
89601
- },
89602
- {
89603
- "kind": "field",
89604
- "name": "disabledInteractive",
89605
- "type": {
89606
- "text": "boolean"
89607
- },
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"
89616
- }
89617
- },
89618
- {
89619
- "kind": "field",
89620
- "name": "disabled",
89621
- "privacy": "public",
89622
- "description": "Whether the component is disabled.",
89623
- "default": "false",
89624
- "type": {
89625
- "text": "boolean"
89626
- },
89627
- "attribute": "disabled",
89628
- "reflects": true,
89629
- "inheritedFrom": {
89630
- "name": "SbbDisabledMixin",
89631
- "module": "core/mixins/disabled-mixin.js"
89632
- }
89633
- },
89634
- {
89635
- "kind": "field",
89636
- "name": "#disabled",
89637
- "privacy": "private",
89638
- "type": {
89639
- "text": "boolean"
89640
- },
89641
- "default": "false",
89642
- "inheritedFrom": {
89643
- "name": "SbbDisabledMixin",
89644
- "module": "core/mixins/disabled-mixin.js"
89645
- }
89646
- },
89647
- {
89648
- "kind": "method",
89649
- "name": "isDisabledExternally",
89650
- "privacy": "protected",
89651
- "return": {
89652
- "type": {
89653
- "text": "boolean"
89654
- }
89655
- },
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
- }
89661
- },
89662
- {
89663
- "kind": "field",
89664
- "name": "iconName",
89665
- "type": {
89666
- "text": "string"
89667
- },
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
- }
89676
- },
89677
- {
89678
- "kind": "method",
89679
- "name": "renderIconSlot",
89680
- "privacy": "protected",
89681
- "return": {
89682
- "type": {
89683
- "text": "TemplateResult"
89684
- }
89685
- },
89686
- "parameters": [
89687
- {
89688
- "name": "classname",
89689
- "optional": true,
89690
- "type": {
89691
- "text": "string"
89692
- }
89693
- }
89694
- ],
89695
- "inheritedFrom": {
89696
- "name": "SbbIconNameMixin",
89697
- "module": "icon/icon-name-mixin.js"
89698
- }
89699
- },
89700
- {
89701
- "kind": "method",
89702
- "name": "renderIconName",
89703
- "privacy": "protected",
89704
- "return": {
89705
- "type": {
89706
- "text": "string"
89707
- }
89708
- },
89709
- "inheritedFrom": {
89710
- "name": "SbbIconNameMixin",
89711
- "module": "icon/icon-name-mixin.js"
89712
- }
89713
- },
89714
- {
89715
- "kind": "method",
89716
- "name": "_renderIconName",
89717
- "privacy": "private",
89718
- "return": {
89719
- "type": {
89720
- "text": "string"
89721
- }
89722
- },
89723
- "inheritedFrom": {
89724
- "name": "SbbIconNameMixin",
89725
- "module": "icon/icon-name-mixin.js"
89726
- }
89727
- },
89728
- {
89729
- "kind": "field",
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
- },
89748
- "privacy": "public",
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'",
89763
- "type": {
89764
- "text": "SbbButtonType"
89765
- },
89766
- "attribute": "type",
89767
- "inheritedFrom": {
89768
- "name": "SbbButtonBaseElement",
89769
- "module": "core/base-elements/button-base-element.js"
89770
- }
89771
- },
89772
- {
89773
- "kind": "field",
89774
- "name": "form",
89775
- "type": {
89776
- "text": "HTMLFormElement | null"
89777
- },
89778
- "privacy": "public",
89779
- "description": "The `<form>` element to associate the button with.",
89780
- "inheritedFrom": {
89781
- "name": "SbbButtonBaseElement",
89782
- "module": "core/base-elements/button-base-element.js"
89783
- },
89784
- "attribute": "form"
89759
+ }
89760
+ ]
89785
89761
  },
89786
89762
  {
89787
- "kind": "field",
89788
- "name": "_formId",
89789
- "type": {
89790
- "text": "string"
89791
- },
89763
+ "kind": "method",
89764
+ "name": "_onFocus",
89792
89765
  "privacy": "private",
89793
- "default": "''",
89794
- "inheritedFrom": {
89795
- "name": "SbbButtonBaseElement",
89796
- "module": "core/base-elements/button-base-element.js"
89766
+ "return": {
89767
+ "type": {
89768
+ "text": "void"
89769
+ }
89797
89770
  }
89798
89771
  },
89799
89772
  {
89800
- "kind": "field",
89801
- "name": "_handleButtonClick",
89773
+ "kind": "method",
89774
+ "name": "_onBlur",
89802
89775
  "privacy": "private",
89803
- "inheritedFrom": {
89804
- "name": "SbbButtonBaseElement",
89805
- "module": "core/base-elements/button-base-element.js"
89776
+ "return": {
89777
+ "type": {
89778
+ "text": "void"
89779
+ }
89806
89780
  }
89807
89781
  },
89808
89782
  {
89809
89783
  "kind": "method",
89810
- "name": "_requestSubmit",
89784
+ "name": "_readFiles",
89811
89785
  "privacy": "private",
89812
89786
  "return": {
89813
89787
  "type": {
@@ -89816,154 +89790,112 @@
89816
89790
  },
89817
89791
  "parameters": [
89818
89792
  {
89819
- "name": "form",
89793
+ "name": "event",
89820
89794
  "type": {
89821
- "text": "HTMLFormElement"
89795
+ "text": "Event"
89822
89796
  }
89823
89797
  }
89824
- ],
89825
- "inheritedFrom": {
89826
- "name": "SbbButtonBaseElement",
89827
- "module": "core/base-elements/button-base-element.js"
89828
- }
89829
- },
89830
- {
89831
- "kind": "field",
89832
- "name": "_formKeyDown",
89833
- "privacy": "private",
89834
- "inheritedFrom": {
89835
- "name": "SbbButtonBaseElement",
89836
- "module": "core/base-elements/button-base-element.js"
89837
- }
89838
- },
89839
- {
89840
- "kind": "field",
89841
- "name": "formAssociated",
89842
- "type": {
89843
- "text": "boolean"
89844
- },
89845
- "privacy": "public",
89846
- "static": true,
89847
- "default": "true",
89848
- "inheritedFrom": {
89849
- "name": "SbbFormAssociatedMixin",
89850
- "module": "core/mixins/form-associated-mixin.js"
89851
- }
89852
- },
89853
- {
89854
- "kind": "field",
89855
- "name": "name",
89856
- "privacy": "public",
89857
- "description": "Name of the form element. Will be read from name attribute.",
89858
- "type": {
89859
- "text": "string"
89860
- },
89861
- "attribute": "name",
89862
- "inheritedFrom": {
89863
- "name": "SbbFormAssociatedMixin",
89864
- "module": "core/mixins/form-associated-mixin.js"
89865
- }
89798
+ ]
89866
89799
  },
89867
89800
  {
89868
- "kind": "field",
89869
- "name": "validity",
89870
- "type": {
89871
- "text": "ValidityState"
89801
+ "kind": "method",
89802
+ "name": "createFileList",
89803
+ "privacy": "protected",
89804
+ "return": {
89805
+ "type": {
89806
+ "text": "void"
89807
+ }
89872
89808
  },
89873
- "privacy": "public",
89874
- "description": "Returns the ValidityState object for this element.",
89875
- "readonly": true,
89876
- "inheritedFrom": {
89877
- "name": "SbbFormAssociatedMixin",
89878
- "module": "core/mixins/form-associated-mixin.js"
89879
- }
89809
+ "parameters": [
89810
+ {
89811
+ "name": "files",
89812
+ "type": {
89813
+ "text": "FileList"
89814
+ }
89815
+ }
89816
+ ]
89880
89817
  },
89881
89818
  {
89882
- "kind": "field",
89883
- "name": "validationMessage",
89884
- "type": {
89885
- "text": "string"
89886
- },
89887
- "privacy": "public",
89888
- "description": "Returns the current error message, if available, which corresponds\nto the current validation state.\nPlease note that only one message is returned at a time (e.g. if\nmultiple validity states are invalid, only the chronologically first one\nis returned until it is fixed, at which point the next message might be\nreturned, if it is still applicable). Also, a custom validity message\n(see below) has precedence over native validation messages.",
89889
- "readonly": true,
89890
- "inheritedFrom": {
89891
- "name": "SbbFormAssociatedMixin",
89892
- "module": "core/mixins/form-associated-mixin.js"
89819
+ "kind": "method",
89820
+ "name": "getButtonLabel",
89821
+ "privacy": "protected",
89822
+ "return": {
89823
+ "type": {
89824
+ "text": "string"
89825
+ }
89893
89826
  }
89894
89827
  },
89895
89828
  {
89896
- "kind": "field",
89897
- "name": "willValidate",
89898
- "type": {
89899
- "text": "boolean"
89829
+ "kind": "method",
89830
+ "name": "_removeFile",
89831
+ "privacy": "private",
89832
+ "return": {
89833
+ "type": {
89834
+ "text": "void"
89835
+ }
89900
89836
  },
89901
- "privacy": "public",
89902
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
89903
- "readonly": true,
89904
- "inheritedFrom": {
89905
- "name": "SbbFormAssociatedMixin",
89906
- "module": "core/mixins/form-associated-mixin.js"
89907
- }
89837
+ "parameters": [
89838
+ {
89839
+ "name": "file",
89840
+ "type": {
89841
+ "text": "Readonly<File>"
89842
+ }
89843
+ }
89844
+ ]
89908
89845
  },
89909
89846
  {
89910
- "kind": "field",
89911
- "name": "_validityStates",
89847
+ "kind": "method",
89848
+ "name": "_dispatchFileChangedEvent",
89912
89849
  "privacy": "private",
89913
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
89914
- "inheritedFrom": {
89915
- "name": "SbbFormAssociatedMixin",
89916
- "module": "core/mixins/form-associated-mixin.js"
89850
+ "return": {
89851
+ "type": {
89852
+ "text": "void"
89853
+ }
89917
89854
  }
89918
89855
  },
89919
89856
  {
89920
- "kind": "field",
89921
- "name": "formDisabled",
89922
- "type": {
89923
- "text": "boolean"
89857
+ "kind": "method",
89858
+ "name": "_formatFileSize",
89859
+ "privacy": "private",
89860
+ "return": {
89861
+ "type": {
89862
+ "text": "string"
89863
+ }
89924
89864
  },
89925
- "privacy": "protected",
89926
- "default": "false",
89927
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
89928
- "inheritedFrom": {
89929
- "name": "SbbFormAssociatedMixin",
89930
- "module": "core/mixins/form-associated-mixin.js"
89931
- }
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."
89932
89874
  },
89933
89875
  {
89934
89876
  "kind": "method",
89935
- "name": "checkValidity",
89936
- "privacy": "public",
89877
+ "name": "_updateA11yLiveRegion",
89878
+ "privacy": "private",
89937
89879
  "return": {
89938
89880
  "type": {
89939
- "text": "boolean"
89881
+ "text": "void"
89940
89882
  }
89941
- },
89942
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
89943
- "inheritedFrom": {
89944
- "name": "SbbFormAssociatedMixin",
89945
- "module": "core/mixins/form-associated-mixin.js"
89946
89883
  }
89947
89884
  },
89948
89885
  {
89949
89886
  "kind": "method",
89950
- "name": "reportValidity",
89951
- "privacy": "public",
89887
+ "name": "_renderFileList",
89888
+ "privacy": "private",
89952
89889
  "return": {
89953
89890
  "type": {
89954
- "text": "boolean"
89891
+ "text": "TemplateResult"
89955
89892
  }
89956
- },
89957
- "description": "Returns true if this element has no validity problems; otherwise,\nreturns false, fires an invalid event at the element,\nand (if the event isn't canceled) reports the problem to the user.",
89958
- "inheritedFrom": {
89959
- "name": "SbbFormAssociatedMixin",
89960
- "module": "core/mixins/form-associated-mixin.js"
89961
89893
  }
89962
89894
  },
89963
89895
  {
89964
89896
  "kind": "method",
89965
- "name": "setCustomValidity",
89966
- "privacy": "public",
89897
+ "name": "_onDragEnter",
89898
+ "privacy": "private",
89967
89899
  "return": {
89968
89900
  "type": {
89969
89901
  "text": "void"
@@ -89971,65 +89903,53 @@
89971
89903
  },
89972
89904
  "parameters": [
89973
89905
  {
89974
- "name": "message",
89906
+ "name": "event",
89975
89907
  "type": {
89976
- "text": "string"
89908
+ "text": "DragEvent"
89977
89909
  }
89978
89910
  }
89979
- ],
89980
- "description": "Sets the custom validity message for this element. Use the empty string\nto indicate that the element does not have a custom validity error.",
89981
- "inheritedFrom": {
89982
- "name": "SbbFormAssociatedMixin",
89983
- "module": "core/mixins/form-associated-mixin.js"
89984
- }
89911
+ ]
89985
89912
  },
89986
89913
  {
89987
89914
  "kind": "method",
89988
- "name": "_hasDisabledAncestor",
89915
+ "name": "_onDragLeave",
89989
89916
  "privacy": "private",
89990
- "return": {
89991
- "type": {
89992
- "text": "boolean"
89993
- }
89994
- },
89995
- "inheritedFrom": {
89996
- "name": "SbbFormAssociatedMixin",
89997
- "module": "core/mixins/form-associated-mixin.js"
89998
- }
89999
- },
90000
- {
90001
- "kind": "method",
90002
- "name": "updateFormValue",
90003
- "privacy": "protected",
90004
89917
  "return": {
90005
89918
  "type": {
90006
89919
  "text": "void"
90007
89920
  }
90008
89921
  },
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
- }
89922
+ "parameters": [
89923
+ {
89924
+ "name": "event",
89925
+ "type": {
89926
+ "text": "DragEvent"
89927
+ }
89928
+ }
89929
+ ]
90014
89930
  },
90015
89931
  {
90016
89932
  "kind": "method",
90017
- "name": "formState",
90018
- "privacy": "protected",
89933
+ "name": "_onFileDrop",
89934
+ "privacy": "private",
90019
89935
  "return": {
90020
89936
  "type": {
90021
- "text": "FormRestoreState"
89937
+ "text": "void"
90022
89938
  }
90023
89939
  },
90024
- "inheritedFrom": {
90025
- "name": "SbbFormAssociatedMixin",
90026
- "module": "core/mixins/form-associated-mixin.js"
90027
- }
89940
+ "parameters": [
89941
+ {
89942
+ "name": "event",
89943
+ "type": {
89944
+ "text": "DragEvent"
89945
+ }
89946
+ }
89947
+ ]
90028
89948
  },
90029
89949
  {
90030
89950
  "kind": "method",
90031
- "name": "setValidityFlag",
90032
- "privacy": "protected",
89951
+ "name": "_blockEvent",
89952
+ "privacy": "private",
90033
89953
  "return": {
90034
89954
  "type": {
90035
89955
  "text": "void"
@@ -90037,35 +89957,17 @@
90037
89957
  },
90038
89958
  "parameters": [
90039
89959
  {
90040
- "name": "flag",
90041
- "type": {
90042
- "text": "T"
90043
- }
90044
- },
90045
- {
90046
- "name": "message",
90047
- "type": {
90048
- "text": "string"
90049
- }
90050
- },
90051
- {
90052
- "name": "flagValue",
90053
- "optional": true,
89960
+ "name": "event",
90054
89961
  "type": {
90055
- "text": "ValidityStateFlags[T]"
89962
+ "text": "DragEvent"
90056
89963
  }
90057
89964
  }
90058
- ],
90059
- "description": "Marks this element as suffering from the constraint indicated by the\nflag argument and associates the given message to it.\nNote that only one message is displayed at a time and custom messages by\nconsumers are always displayed before internal messages and internal\nmessages are displayed in the order they were added.\nTo set/define custom validity state flags, you need to extend the\nValidityState prototype (and the CustomValidityState interface).",
90060
- "inheritedFrom": {
90061
- "name": "SbbFormAssociatedMixin",
90062
- "module": "core/mixins/form-associated-mixin.js"
90063
- }
89965
+ ]
90064
89966
  },
90065
89967
  {
90066
89968
  "kind": "method",
90067
- "name": "removeValidityFlag",
90068
- "privacy": "protected",
89969
+ "name": "_setDragState",
89970
+ "privacy": "private",
90069
89971
  "return": {
90070
89972
  "type": {
90071
89973
  "text": "void"
@@ -90073,65 +89975,74 @@
90073
89975
  },
90074
89976
  "parameters": [
90075
89977
  {
90076
- "name": "flag",
89978
+ "name": "dragTarget",
89979
+ "default": "undefined",
90077
89980
  "type": {
90078
- "text": "T"
89981
+ "text": "HTMLElement | undefined"
89982
+ }
89983
+ },
89984
+ {
89985
+ "name": "isDragEnter",
89986
+ "default": "false",
89987
+ "type": {
89988
+ "text": "boolean"
90079
89989
  }
90080
89990
  }
90081
- ],
90082
- "description": "Removes the validity state flag entry and updates validity state.",
89991
+ ]
89992
+ },
89993
+ {
89994
+ "kind": "field",
89995
+ "name": "disabled",
89996
+ "privacy": "public",
89997
+ "description": "Whether the component is disabled.",
89998
+ "default": "false",
89999
+ "type": {
90000
+ "text": "boolean"
90001
+ },
90002
+ "attribute": "disabled",
90003
+ "reflects": true,
90083
90004
  "inheritedFrom": {
90084
- "name": "SbbFormAssociatedMixin",
90085
- "module": "core/mixins/form-associated-mixin.js"
90005
+ "name": "SbbDisabledMixin",
90006
+ "module": "core/mixins/disabled-mixin.js"
90086
90007
  }
90087
90008
  },
90088
90009
  {
90089
- "kind": "method",
90090
- "name": "validate",
90091
- "privacy": "protected",
90092
- "return": {
90093
- "type": {
90094
- "text": "void"
90095
- }
90010
+ "kind": "field",
90011
+ "name": "#disabled",
90012
+ "privacy": "private",
90013
+ "type": {
90014
+ "text": "boolean"
90096
90015
  },
90097
- "description": "To be called whenever the current element needs to be validated.",
90016
+ "default": "false",
90098
90017
  "inheritedFrom": {
90099
- "name": "SbbFormAssociatedMixin",
90100
- "module": "core/mixins/form-associated-mixin.js"
90018
+ "name": "SbbDisabledMixin",
90019
+ "module": "core/mixins/disabled-mixin.js"
90101
90020
  }
90102
90021
  },
90103
90022
  {
90104
90023
  "kind": "method",
90105
- "name": "shouldValidate",
90024
+ "name": "isDisabledExternally",
90106
90025
  "privacy": "protected",
90107
90026
  "return": {
90108
90027
  "type": {
90109
90028
  "text": "boolean"
90110
90029
  }
90111
90030
  },
90112
- "parameters": [
90113
- {
90114
- "name": "name",
90115
- "type": {
90116
- "text": "PropertyKey | undefined"
90117
- }
90118
- }
90119
- ],
90120
- "description": "Whether validation should be run on a property change with the given name.",
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.",
90121
90032
  "inheritedFrom": {
90122
- "name": "SbbFormAssociatedMixin",
90123
- "module": "core/mixins/form-associated-mixin.js"
90033
+ "name": "SbbDisabledMixin",
90034
+ "module": "core/mixins/disabled-mixin.js"
90124
90035
  }
90125
90036
  },
90126
90037
  {
90127
- "kind": "method",
90128
- "name": "_setInternalValidity",
90129
- "privacy": "private",
90130
- "return": {
90131
- "type": {
90132
- "text": "void"
90133
- }
90038
+ "kind": "field",
90039
+ "name": "formAssociated",
90040
+ "type": {
90041
+ "text": "boolean"
90134
90042
  },
90043
+ "privacy": "public",
90044
+ "static": true,
90045
+ "default": "true",
90135
90046
  "inheritedFrom": {
90136
90047
  "name": "SbbFormAssociatedMixin",
90137
90048
  "module": "core/mixins/form-associated-mixin.js"
@@ -90139,162 +90050,182 @@
90139
90050
  },
90140
90051
  {
90141
90052
  "kind": "field",
90142
- "name": "role",
90053
+ "name": "form",
90143
90054
  "type": {
90144
- "text": "ElementInternals['role']"
90055
+ "text": "HTMLFormElement | null"
90145
90056
  },
90146
90057
  "privacy": "public",
90147
- "static": true,
90058
+ "description": "Returns the form owner of this element.",
90148
90059
  "readonly": true,
90149
- "default": "'button'",
90150
90060
  "inheritedFrom": {
90151
- "name": "SbbButtonLikeBaseElement",
90152
- "module": "core/base-elements/button-base-element.js"
90061
+ "name": "SbbFormAssociatedMixin",
90062
+ "module": "core/mixins/form-associated-mixin.js"
90153
90063
  }
90154
90064
  },
90155
90065
  {
90156
90066
  "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
- ],
90067
+ "name": "name",
90068
+ "privacy": "public",
90069
+ "description": "Name of the form element. Will be read from name attribute.",
90070
+ "type": {
90071
+ "text": "string"
90072
+ },
90073
+ "attribute": "name",
90166
90074
  "inheritedFrom": {
90167
- "name": "SbbButtonLikeBaseElement",
90168
- "module": "core/base-elements/button-base-element.js"
90075
+ "name": "SbbFormAssociatedMixin",
90076
+ "module": "core/mixins/form-associated-mixin.js"
90169
90077
  }
90170
90078
  },
90171
90079
  {
90172
90080
  "kind": "field",
90173
- "name": "_removeActiveMarker",
90174
- "privacy": "private",
90081
+ "name": "validity",
90082
+ "type": {
90083
+ "text": "ValidityState"
90084
+ },
90085
+ "privacy": "public",
90086
+ "description": "Returns the ValidityState object for this element.",
90087
+ "readonly": true,
90175
90088
  "inheritedFrom": {
90176
- "name": "SbbButtonLikeBaseElement",
90177
- "module": "core/base-elements/button-base-element.js"
90089
+ "name": "SbbFormAssociatedMixin",
90090
+ "module": "core/mixins/form-associated-mixin.js"
90178
90091
  }
90179
90092
  },
90180
90093
  {
90181
90094
  "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
- ],
90095
+ "name": "validationMessage",
90096
+ "type": {
90097
+ "text": "string"
90098
+ },
90099
+ "privacy": "public",
90100
+ "description": "Returns the current error message, if available, which corresponds\nto the current validation state.\nPlease note that only one message is returned at a time (e.g. if\nmultiple validity states are invalid, only the chronologically first one\nis returned until it is fixed, at which point the next message might be\nreturned, if it is still applicable). Also, a custom validity message\n(see below) has precedence over native validation messages.",
90101
+ "readonly": true,
90191
90102
  "inheritedFrom": {
90192
- "name": "SbbButtonLikeBaseElement",
90193
- "module": "core/base-elements/button-base-element.js"
90103
+ "name": "SbbFormAssociatedMixin",
90104
+ "module": "core/mixins/form-associated-mixin.js"
90194
90105
  }
90195
90106
  },
90196
90107
  {
90197
90108
  "kind": "field",
90198
- "name": "_dispatchClickEvent",
90109
+ "name": "willValidate",
90110
+ "type": {
90111
+ "text": "boolean"
90112
+ },
90113
+ "privacy": "public",
90114
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
90115
+ "readonly": true,
90116
+ "inheritedFrom": {
90117
+ "name": "SbbFormAssociatedMixin",
90118
+ "module": "core/mixins/form-associated-mixin.js"
90119
+ }
90120
+ },
90121
+ {
90122
+ "kind": "field",
90123
+ "name": "_validityStates",
90199
90124
  "privacy": "private",
90125
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
90200
90126
  "inheritedFrom": {
90201
- "name": "SbbButtonLikeBaseElement",
90202
- "module": "core/base-elements/button-base-element.js"
90127
+ "name": "SbbFormAssociatedMixin",
90128
+ "module": "core/mixins/form-associated-mixin.js"
90203
90129
  }
90204
90130
  },
90205
90131
  {
90206
90132
  "kind": "field",
90207
- "name": "maybeDisabled",
90133
+ "name": "formDisabled",
90208
90134
  "type": {
90209
- "text": "boolean | undefined"
90135
+ "text": "boolean"
90210
90136
  },
90211
90137
  "privacy": "protected",
90212
- "readonly": true,
90138
+ "default": "false",
90139
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
90213
90140
  "inheritedFrom": {
90214
- "name": "SbbActionBaseElement",
90215
- "module": "core/base-elements/action-base-element.js"
90141
+ "name": "SbbFormAssociatedMixin",
90142
+ "module": "core/mixins/form-associated-mixin.js"
90216
90143
  }
90217
90144
  },
90218
90145
  {
90219
- "kind": "field",
90220
- "name": "maybeDisabledInteractive",
90221
- "type": {
90222
- "text": "boolean | undefined"
90146
+ "kind": "method",
90147
+ "name": "checkValidity",
90148
+ "privacy": "public",
90149
+ "return": {
90150
+ "type": {
90151
+ "text": "boolean"
90152
+ }
90223
90153
  },
90224
- "privacy": "protected",
90225
- "readonly": true,
90154
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
90226
90155
  "inheritedFrom": {
90227
- "name": "SbbActionBaseElement",
90228
- "module": "core/base-elements/action-base-element.js"
90156
+ "name": "SbbFormAssociatedMixin",
90157
+ "module": "core/mixins/form-associated-mixin.js"
90158
+ }
90159
+ },
90160
+ {
90161
+ "kind": "method",
90162
+ "name": "reportValidity",
90163
+ "privacy": "public",
90164
+ "return": {
90165
+ "type": {
90166
+ "text": "boolean"
90167
+ }
90168
+ },
90169
+ "description": "Returns true if this element has no validity problems; otherwise,\nreturns false, fires an invalid event at the element,\nand (if the event isn't canceled) reports the problem to the user.",
90170
+ "inheritedFrom": {
90171
+ "name": "SbbFormAssociatedMixin",
90172
+ "module": "core/mixins/form-associated-mixin.js"
90229
90173
  }
90230
90174
  },
90231
90175
  {
90232
90176
  "kind": "method",
90233
- "name": "setupBaseEventHandlers",
90234
- "privacy": "protected",
90177
+ "name": "setCustomValidity",
90178
+ "privacy": "public",
90235
90179
  "return": {
90236
90180
  "type": {
90237
90181
  "text": "void"
90238
90182
  }
90239
90183
  },
90184
+ "parameters": [
90185
+ {
90186
+ "name": "message",
90187
+ "type": {
90188
+ "text": "string"
90189
+ }
90190
+ }
90191
+ ],
90192
+ "description": "Sets the custom validity message for this element. Use the empty string\nto indicate that the element does not have a custom validity error.",
90240
90193
  "inheritedFrom": {
90241
- "name": "SbbActionBaseElement",
90242
- "module": "core/base-elements/action-base-element.js"
90243
- }
90244
- },
90245
- {
90246
- "kind": "field",
90247
- "name": "_hydrationRequired",
90248
- "type": {
90249
- "text": "boolean"
90250
- },
90251
- "privacy": "private",
90252
- "default": "!!this.shadowRoot",
90253
- "inheritedFrom": {
90254
- "name": "SbbElement",
90255
- "module": "core/base-elements/element.js"
90194
+ "name": "SbbFormAssociatedMixin",
90195
+ "module": "core/mixins/form-associated-mixin.js"
90256
90196
  }
90257
90197
  },
90258
90198
  {
90259
- "kind": "field",
90260
- "name": "_hydrationComplete",
90199
+ "kind": "method",
90200
+ "name": "_hasDisabledAncestor",
90261
90201
  "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"
90202
+ "return": {
90203
+ "type": {
90204
+ "text": "boolean"
90205
+ }
90273
90206
  },
90274
- "privacy": "private",
90275
90207
  "inheritedFrom": {
90276
- "name": "SbbElement",
90277
- "module": "core/base-elements/element.js"
90208
+ "name": "SbbFormAssociatedMixin",
90209
+ "module": "core/mixins/form-associated-mixin.js"
90278
90210
  }
90279
90211
  },
90280
90212
  {
90281
- "kind": "field",
90282
- "name": "hydrationRequired",
90283
- "type": {
90284
- "text": "boolean"
90285
- },
90213
+ "kind": "method",
90214
+ "name": "formState",
90286
90215
  "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"
90216
+ "return": {
90217
+ "type": {
90218
+ "text": "FormRestoreState"
90219
+ }
90292
90220
  },
90293
- "default": "!!this.shadowRoot"
90221
+ "inheritedFrom": {
90222
+ "name": "SbbFormAssociatedMixin",
90223
+ "module": "core/mixins/form-associated-mixin.js"
90224
+ }
90294
90225
  },
90295
90226
  {
90296
90227
  "kind": "method",
90297
- "name": "toggleState",
90228
+ "name": "setValidityFlag",
90298
90229
  "privacy": "protected",
90299
90230
  "return": {
90300
90231
  "type": {
@@ -90303,152 +90234,187 @@
90303
90234
  },
90304
90235
  "parameters": [
90305
90236
  {
90306
- "name": "value",
90237
+ "name": "flag",
90238
+ "type": {
90239
+ "text": "T"
90240
+ }
90241
+ },
90242
+ {
90243
+ "name": "message",
90307
90244
  "type": {
90308
90245
  "text": "string"
90309
90246
  }
90310
90247
  },
90311
90248
  {
90312
- "name": "force",
90249
+ "name": "flagValue",
90313
90250
  "optional": true,
90314
90251
  "type": {
90315
- "text": "boolean"
90252
+ "text": "ValidityStateFlags[T]"
90316
90253
  }
90317
90254
  }
90318
90255
  ],
90256
+ "description": "Marks this element as suffering from the constraint indicated by the\nflag argument and associates the given message to it.\nNote that only one message is displayed at a time and custom messages by\nconsumers are always displayed before internal messages and internal\nmessages are displayed in the order they were added.\nTo set/define custom validity state flags, you need to extend the\nValidityState prototype (and the CustomValidityState interface).",
90319
90257
  "inheritedFrom": {
90320
- "name": "SbbElement",
90321
- "module": "core/base-elements/element.js"
90258
+ "name": "SbbFormAssociatedMixin",
90259
+ "module": "core/mixins/form-associated-mixin.js"
90322
90260
  }
90323
90261
  },
90324
90262
  {
90325
- "kind": "field",
90326
- "name": "['_$sbbElement$']",
90327
- "type": {
90328
- "text": "boolean"
90263
+ "kind": "method",
90264
+ "name": "removeValidityFlag",
90265
+ "privacy": "protected",
90266
+ "return": {
90267
+ "type": {
90268
+ "text": "void"
90269
+ }
90329
90270
  },
90330
- "privacy": "public",
90331
- "static": true,
90332
- "default": "true",
90271
+ "parameters": [
90272
+ {
90273
+ "name": "flag",
90274
+ "type": {
90275
+ "text": "T"
90276
+ }
90277
+ }
90278
+ ],
90279
+ "description": "Removes the validity state flag entry and updates validity state.",
90333
90280
  "inheritedFrom": {
90334
- "name": "SbbElement",
90335
- "module": "core/base-elements/element.js"
90281
+ "name": "SbbFormAssociatedMixin",
90282
+ "module": "core/mixins/form-associated-mixin.js"
90336
90283
  }
90337
90284
  },
90338
90285
  {
90339
- "kind": "field",
90340
- "name": "_controllers",
90341
- "type": {
90342
- "text": "Set<SbbReactiveController> | undefined"
90286
+ "kind": "method",
90287
+ "name": "validate",
90288
+ "privacy": "protected",
90289
+ "return": {
90290
+ "type": {
90291
+ "text": "void"
90292
+ }
90293
+ },
90294
+ "description": "To be called whenever the current element needs to be validated.",
90295
+ "inheritedFrom": {
90296
+ "name": "SbbFormAssociatedMixin",
90297
+ "module": "core/mixins/form-associated-mixin.js"
90298
+ }
90299
+ },
90300
+ {
90301
+ "kind": "method",
90302
+ "name": "shouldValidate",
90303
+ "privacy": "protected",
90304
+ "return": {
90305
+ "type": {
90306
+ "text": "boolean"
90307
+ }
90343
90308
  },
90309
+ "parameters": [
90310
+ {
90311
+ "name": "name",
90312
+ "type": {
90313
+ "text": "PropertyKey | undefined"
90314
+ }
90315
+ }
90316
+ ],
90317
+ "description": "Whether validation should be run on a property change with the given name.",
90318
+ "inheritedFrom": {
90319
+ "name": "SbbFormAssociatedMixin",
90320
+ "module": "core/mixins/form-associated-mixin.js"
90321
+ }
90322
+ },
90323
+ {
90324
+ "kind": "method",
90325
+ "name": "_setInternalValidity",
90344
90326
  "privacy": "private",
90327
+ "return": {
90328
+ "type": {
90329
+ "text": "void"
90330
+ }
90331
+ },
90345
90332
  "inheritedFrom": {
90346
- "name": "SbbElement",
90347
- "module": "core/base-elements/element.js"
90333
+ "name": "SbbFormAssociatedMixin",
90334
+ "module": "core/mixins/form-associated-mixin.js"
90348
90335
  }
90349
90336
  }
90350
90337
  ],
90351
90338
  "events": [
90352
90339
  {
90353
- "name": "toggleexpanded",
90340
+ "name": "input",
90354
90341
  "type": {
90355
- "text": "Event"
90342
+ "text": "InputEvent"
90356
90343
  },
90357
- "description": "Notifies that the `sbb-expansion-panel` is about to expand/shrink."
90358
- }
90359
- ],
90360
- "mixins": [
90344
+ "description": "The input event fires when the value has been changed as a direct result of a user action."
90345
+ },
90361
90346
  {
90362
- "name": "SbbDisabledTabIndexActionMixin",
90363
- "module": "core/mixins.js"
90347
+ "name": "change",
90348
+ "type": {
90349
+ "text": "Event"
90350
+ },
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."
90364
90352
  },
90365
90353
  {
90366
- "name": "SbbIconNameMixin",
90367
- "module": "icon.js"
90354
+ "name": "filechanged",
90355
+ "type": {
90356
+ "text": "CustomEvent<Readonly<File>[]>"
90357
+ },
90358
+ "description": "An event which is emitted each time the file list changes."
90368
90359
  }
90369
90360
  ],
90370
- "superclass": {
90371
- "name": "SbbButtonBaseElement",
90372
- "module": "core/base-elements.js"
90373
- },
90374
- "tagName": "sbb-expansion-panel-header",
90375
- "customElement": true,
90376
90361
  "attributes": [
90377
90362
  {
90378
- "name": "disabled-interactive",
90363
+ "name": "size",
90379
90364
  "type": {
90380
- "text": "boolean"
90365
+ "text": "'s' | 'm'"
90381
90366
  },
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
- }
90367
+ "description": "Size variant, either s or m.",
90368
+ "default": "'m' / 's' (lean)",
90369
+ "fieldName": "size"
90389
90370
  },
90390
90371
  {
90391
- "name": "disabled",
90392
- "description": "Whether the component is disabled.",
90393
- "default": "false",
90372
+ "name": "multiple",
90394
90373
  "type": {
90395
90374
  "text": "boolean"
90396
90375
  },
90397
- "fieldName": "disabled",
90398
- "inheritedFrom": {
90399
- "name": "SbbDisabledMixin",
90400
- "module": "core/mixins/disabled-mixin.js"
90401
- }
90376
+ "default": "false",
90377
+ "description": "Whether more than one file can be selected.",
90378
+ "fieldName": "multiple"
90402
90379
  },
90403
90380
  {
90404
- "name": "icon-name",
90381
+ "name": "multiple-mode",
90405
90382
  "type": {
90406
- "text": "string"
90383
+ "text": "'default' | 'persistent'"
90407
90384
  },
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",
90411
- "inheritedFrom": {
90412
- "name": "SbbIconNameMixin",
90413
- "module": "icon/icon-name-mixin.js"
90414
- }
90385
+ "default": "'default'",
90386
+ "description": "Whether the newly added files should override the previously added ones.",
90387
+ "fieldName": "multipleMode"
90415
90388
  },
90416
90389
  {
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
- }
90390
+ "name": "accept",
90391
+ "type": {
90392
+ "text": "string"
90393
+ },
90394
+ "default": "''",
90395
+ "description": "A comma-separated list of allowed unique file type specifiers.",
90396
+ "fieldName": "accept"
90428
90397
  },
90429
90398
  {
90430
- "name": "type",
90431
- "description": "The type attribute to use for the button.",
90432
- "default": "'button'",
90399
+ "name": "accessibility-label",
90433
90400
  "type": {
90434
- "text": "SbbButtonType"
90401
+ "text": "string"
90435
90402
  },
90436
- "fieldName": "type",
90437
- "inheritedFrom": {
90438
- "name": "SbbButtonBaseElement",
90439
- "module": "core/base-elements/button-base-element.js"
90440
- }
90403
+ "default": "''",
90404
+ "description": "This will be forwarded as aria-label to the native input element.",
90405
+ "fieldName": "accessibilityLabel"
90441
90406
  },
90442
90407
  {
90443
- "name": "form",
90444
- "description": "The `<form>` element to associate the button with.",
90408
+ "name": "disabled",
90409
+ "description": "Whether the component is disabled.",
90410
+ "default": "false",
90445
90411
  "type": {
90446
- "text": "HTMLFormElement | null"
90412
+ "text": "boolean"
90447
90413
  },
90448
- "fieldName": "form",
90414
+ "fieldName": "disabled",
90449
90415
  "inheritedFrom": {
90450
- "name": "SbbButtonBaseElement",
90451
- "module": "core/base-elements/button-base-element.js"
90416
+ "name": "SbbDisabledMixin",
90417
+ "module": "core/mixins/disabled-mixin.js"
90452
90418
  }
90453
90419
  },
90454
90420
  {
@@ -90463,16 +90429,50 @@
90463
90429
  "module": "core/mixins/form-associated-mixin.js"
90464
90430
  }
90465
90431
  }
90432
+ ],
90433
+ "mixins": [
90434
+ {
90435
+ "name": "SbbDisabledMixin",
90436
+ "module": "core/mixins.js"
90437
+ },
90438
+ {
90439
+ "name": "SbbFormAssociatedMixin",
90440
+ "module": "core/mixins.js"
90441
+ }
90442
+ ],
90443
+ "parameters": [
90444
+ {
90445
+ "name": "superclass",
90446
+ "type": {
90447
+ "text": "T"
90448
+ }
90449
+ }
90466
90450
  ]
90467
90451
  }
90468
90452
  ],
90469
90453
  "exports": [
90470
90454
  {
90471
90455
  "kind": "js",
90472
- "name": "SbbExpansionPanelHeaderElement",
90456
+ "name": "fileSelectorCommonStyle",
90473
90457
  "declaration": {
90474
- "name": "SbbExpansionPanelHeaderElement",
90475
- "module": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js"
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",
90473
+ "declaration": {
90474
+ "name": "SbbFileSelectorCommonElementMixin",
90475
+ "module": "file-selector/common/file-selector-common.js"
90476
90476
  }
90477
90477
  }
90478
90478
  ]
@@ -109910,245 +109910,75 @@
109910
109910
  },
109911
109911
  "default": "''",
109912
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": "navigation/common/navigation-action-common.js",
109989
- "declarations": [
109990
- {
109991
- "kind": "class",
109992
- "description": "",
109993
- "name": "SbbNavigationActionCommonElementMixinType",
109994
- "members": [
109995
- {
109996
- "kind": "field",
109997
- "name": "size",
109998
- "type": {
109999
- "text": "SbbNavigationActionSize"
110000
- },
110001
- "privacy": "public"
110002
- },
110003
- {
110004
- "kind": "field",
110005
- "name": "marker",
110006
- "type": {
110007
- "text": "SbbNavigationMarkerElement | null"
110008
- },
110009
- "privacy": "public",
110010
- "readonly": true
110011
- },
110012
- {
110013
- "kind": "field",
110014
- "name": "section",
110015
- "type": {
110016
- "text": "SbbNavigationSectionElement | null"
110017
- },
110018
- "privacy": "public",
110019
- "readonly": true
110020
- },
110021
- {
110022
- "kind": "field",
110023
- "name": "connectedSection",
110024
- "type": {
110025
- "text": "SbbNavigationSectionElement | undefined"
110026
- },
110027
- "privacy": "public"
110028
- }
110029
- ]
110030
- },
110031
- {
110032
- "kind": "mixin",
110033
- "description": "",
110034
- "name": "SbbNavigationActionCommonElementMixin",
110035
- "members": [
110036
- {
110037
- "kind": "field",
110038
- "name": "styles",
110039
- "type": {
110040
- "text": "CSSResultGroup"
110041
- },
110042
- "privacy": "public",
110043
- "static": true,
110044
- "default": "[boxSizingStyles, unsafeCSS(style)]"
110045
- },
110046
- {
110047
- "kind": "field",
110048
- "name": "size",
110049
- "type": {
110050
- "text": "SbbNavigationActionSize"
110051
- },
110052
- "privacy": "public",
110053
- "description": "Action size variant, either s, m or l.",
110054
- "default": "'l' / 's' (lean)",
110055
- "attribute": "size",
110056
- "reflects": true
110057
- },
110058
- {
110059
- "kind": "field",
110060
- "name": "connectedSection",
110061
- "type": {
110062
- "text": "SbbNavigationSectionElement | undefined"
110063
- },
110064
- "privacy": "public",
110065
- "description": "The section that is being controlled by the action, if any."
110066
- },
110067
- {
110068
- "kind": "field",
110069
- "name": "marker",
110070
- "type": {
110071
- "text": "SbbNavigationMarkerElement | null"
110072
- },
110073
- "privacy": "public",
110074
- "description": "The navigation marker in which the action is nested.",
110075
- "readonly": true
110076
- },
110077
- {
110078
- "kind": "field",
110079
- "name": "section",
110080
- "type": {
110081
- "text": "SbbNavigationSectionElement | null"
110082
- },
110083
- "privacy": "public",
110084
- "description": "The section in which the action is nested.",
110085
- "readonly": true
110086
- },
110087
- {
110088
- "kind": "field",
110089
- "name": "_navigationMarker",
110090
- "type": {
110091
- "text": "SbbNavigationMarkerElement | null"
110092
- },
110093
- "privacy": "private",
110094
- "default": "null"
109913
+ "fieldName": "color"
110095
109914
  },
110096
109915
  {
110097
- "kind": "field",
110098
- "name": "_navigationSection",
109916
+ "name": "value",
110099
109917
  "type": {
110100
- "text": "SbbNavigationSectionElement | null"
109918
+ "text": "string"
110101
109919
  },
110102
- "privacy": "private",
110103
- "default": "null"
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
+ }
110104
109927
  },
110105
109928
  {
110106
- "kind": "method",
110107
- "name": "renderTemplate",
110108
- "privacy": "protected",
110109
- "return": {
110110
- "type": {
110111
- "text": "TemplateResult"
110112
- }
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"
110113
109939
  }
110114
- }
110115
- ],
110116
- "attributes": [
109940
+ },
110117
109941
  {
110118
- "name": "size",
109942
+ "name": "form",
109943
+ "description": "The `<form>` element to associate the button with.",
110119
109944
  "type": {
110120
- "text": "SbbNavigationActionSize"
109945
+ "text": "HTMLFormElement | null"
110121
109946
  },
110122
- "description": "Action size variant, either s, m or l.",
110123
- "default": "'l' / 's' (lean)",
110124
- "fieldName": "size"
110125
- }
110126
- ],
110127
- "parameters": [
109947
+ "fieldName": "form",
109948
+ "inheritedFrom": {
109949
+ "name": "SbbButtonBaseElement",
109950
+ "module": "core/base-elements/button-base-element.js"
109951
+ }
109952
+ },
110128
109953
  {
110129
- "name": "superClass",
109954
+ "name": "name",
109955
+ "description": "Name of the form element. Will be read from name attribute.",
110130
109956
  "type": {
110131
- "text": "T"
109957
+ "text": "string"
109958
+ },
109959
+ "fieldName": "name",
109960
+ "inheritedFrom": {
109961
+ "name": "SbbFormAssociatedMixin",
109962
+ "module": "core/mixins/form-associated-mixin.js"
110132
109963
  }
110133
109964
  }
110134
- ]
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"
110135
109973
  }
110136
109974
  ],
110137
109975
  "exports": [
110138
109976
  {
110139
109977
  "kind": "js",
110140
- "name": "SbbNavigationActionCommonElementMixinType",
110141
- "declaration": {
110142
- "name": "SbbNavigationActionCommonElementMixinType",
110143
- "module": "navigation/common/navigation-action-common.js"
110144
- }
110145
- },
110146
- {
110147
- "kind": "js",
110148
- "name": "SbbNavigationActionCommonElementMixin",
109978
+ "name": "SbbMiniCalendarDayElement",
110149
109979
  "declaration": {
110150
- "name": "SbbNavigationActionCommonElementMixin",
110151
- "module": "navigation/common/navigation-action-common.js"
109980
+ "name": "SbbMiniCalendarDayElement",
109981
+ "module": "mini-calendar/mini-calendar-day/mini-calendar-day.component.js"
110152
109982
  }
110153
109983
  }
110154
109984
  ]
@@ -110371,6 +110201,176 @@
110371
110201
  }
110372
110202
  ]
110373
110203
  },
110204
+ {
110205
+ "kind": "javascript-module",
110206
+ "path": "navigation/common/navigation-action-common.js",
110207
+ "declarations": [
110208
+ {
110209
+ "kind": "class",
110210
+ "description": "",
110211
+ "name": "SbbNavigationActionCommonElementMixinType",
110212
+ "members": [
110213
+ {
110214
+ "kind": "field",
110215
+ "name": "size",
110216
+ "type": {
110217
+ "text": "SbbNavigationActionSize"
110218
+ },
110219
+ "privacy": "public"
110220
+ },
110221
+ {
110222
+ "kind": "field",
110223
+ "name": "marker",
110224
+ "type": {
110225
+ "text": "SbbNavigationMarkerElement | null"
110226
+ },
110227
+ "privacy": "public",
110228
+ "readonly": true
110229
+ },
110230
+ {
110231
+ "kind": "field",
110232
+ "name": "section",
110233
+ "type": {
110234
+ "text": "SbbNavigationSectionElement | null"
110235
+ },
110236
+ "privacy": "public",
110237
+ "readonly": true
110238
+ },
110239
+ {
110240
+ "kind": "field",
110241
+ "name": "connectedSection",
110242
+ "type": {
110243
+ "text": "SbbNavigationSectionElement | undefined"
110244
+ },
110245
+ "privacy": "public"
110246
+ }
110247
+ ]
110248
+ },
110249
+ {
110250
+ "kind": "mixin",
110251
+ "description": "",
110252
+ "name": "SbbNavigationActionCommonElementMixin",
110253
+ "members": [
110254
+ {
110255
+ "kind": "field",
110256
+ "name": "styles",
110257
+ "type": {
110258
+ "text": "CSSResultGroup"
110259
+ },
110260
+ "privacy": "public",
110261
+ "static": true,
110262
+ "default": "[boxSizingStyles, unsafeCSS(style)]"
110263
+ },
110264
+ {
110265
+ "kind": "field",
110266
+ "name": "size",
110267
+ "type": {
110268
+ "text": "SbbNavigationActionSize"
110269
+ },
110270
+ "privacy": "public",
110271
+ "description": "Action size variant, either s, m or l.",
110272
+ "default": "'l' / 's' (lean)",
110273
+ "attribute": "size",
110274
+ "reflects": true
110275
+ },
110276
+ {
110277
+ "kind": "field",
110278
+ "name": "connectedSection",
110279
+ "type": {
110280
+ "text": "SbbNavigationSectionElement | undefined"
110281
+ },
110282
+ "privacy": "public",
110283
+ "description": "The section that is being controlled by the action, if any."
110284
+ },
110285
+ {
110286
+ "kind": "field",
110287
+ "name": "marker",
110288
+ "type": {
110289
+ "text": "SbbNavigationMarkerElement | null"
110290
+ },
110291
+ "privacy": "public",
110292
+ "description": "The navigation marker in which the action is nested.",
110293
+ "readonly": true
110294
+ },
110295
+ {
110296
+ "kind": "field",
110297
+ "name": "section",
110298
+ "type": {
110299
+ "text": "SbbNavigationSectionElement | null"
110300
+ },
110301
+ "privacy": "public",
110302
+ "description": "The section in which the action is nested.",
110303
+ "readonly": true
110304
+ },
110305
+ {
110306
+ "kind": "field",
110307
+ "name": "_navigationMarker",
110308
+ "type": {
110309
+ "text": "SbbNavigationMarkerElement | null"
110310
+ },
110311
+ "privacy": "private",
110312
+ "default": "null"
110313
+ },
110314
+ {
110315
+ "kind": "field",
110316
+ "name": "_navigationSection",
110317
+ "type": {
110318
+ "text": "SbbNavigationSectionElement | null"
110319
+ },
110320
+ "privacy": "private",
110321
+ "default": "null"
110322
+ },
110323
+ {
110324
+ "kind": "method",
110325
+ "name": "renderTemplate",
110326
+ "privacy": "protected",
110327
+ "return": {
110328
+ "type": {
110329
+ "text": "TemplateResult"
110330
+ }
110331
+ }
110332
+ }
110333
+ ],
110334
+ "attributes": [
110335
+ {
110336
+ "name": "size",
110337
+ "type": {
110338
+ "text": "SbbNavigationActionSize"
110339
+ },
110340
+ "description": "Action size variant, either s, m or l.",
110341
+ "default": "'l' / 's' (lean)",
110342
+ "fieldName": "size"
110343
+ }
110344
+ ],
110345
+ "parameters": [
110346
+ {
110347
+ "name": "superClass",
110348
+ "type": {
110349
+ "text": "T"
110350
+ }
110351
+ }
110352
+ ]
110353
+ }
110354
+ ],
110355
+ "exports": [
110356
+ {
110357
+ "kind": "js",
110358
+ "name": "SbbNavigationActionCommonElementMixinType",
110359
+ "declaration": {
110360
+ "name": "SbbNavigationActionCommonElementMixinType",
110361
+ "module": "navigation/common/navigation-action-common.js"
110362
+ }
110363
+ },
110364
+ {
110365
+ "kind": "js",
110366
+ "name": "SbbNavigationActionCommonElementMixin",
110367
+ "declaration": {
110368
+ "name": "SbbNavigationActionCommonElementMixin",
110369
+ "module": "navigation/common/navigation-action-common.js"
110370
+ }
110371
+ }
110372
+ ]
110373
+ },
110374
110374
  {
110375
110375
  "kind": "javascript-module",
110376
110376
  "path": "navigation/navigation/navigation.component.js",