@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1777124912 → 5.0.0-next-dev.1777266233

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 +1428 -1428
  2. package/package.json +2 -2
@@ -103006,85 +103006,115 @@
103006
103006
  },
103007
103007
  {
103008
103008
  "kind": "javascript-module",
103009
- "path": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js",
103009
+ "path": "file-selector/common/file-selector-common.js",
103010
103010
  "declarations": [
103011
+ {
103012
+ "kind": "variable",
103013
+ "name": "fileSelectorCommonStyle"
103014
+ },
103011
103015
  {
103012
103016
  "kind": "class",
103013
- "description": "It acts as a native `summary` tag for the `sbb-expansion-panel` component.",
103014
- "name": "SbbExpansionPanelHeaderElement",
103015
- "slots": [
103017
+ "description": "",
103018
+ "name": "SbbFileSelectorCommonElementMixinType",
103019
+ "members": [
103016
103020
  {
103017
- "description": "Use the unnamed slot to add content to the `sbb-expansion-panel-header`.",
103018
- "name": ""
103021
+ "kind": "field",
103022
+ "name": "size",
103023
+ "type": {
103024
+ "text": "'s' | 'm'"
103025
+ },
103026
+ "privacy": "public"
103019
103027
  },
103020
103028
  {
103021
- "description": "Slot used to render the `sbb-expansion-panel-header` icon.",
103022
- "name": "icon"
103023
- }
103024
- ],
103025
- "members": [
103029
+ "kind": "field",
103030
+ "name": "multiple",
103031
+ "type": {
103032
+ "text": "boolean"
103033
+ },
103034
+ "privacy": "public"
103035
+ },
103026
103036
  {
103027
103037
  "kind": "field",
103028
- "name": "elementName",
103038
+ "name": "multipleMode",
103039
+ "type": {
103040
+ "text": "'default' | 'persistent'"
103041
+ },
103042
+ "privacy": "public"
103043
+ },
103044
+ {
103045
+ "kind": "field",
103046
+ "name": "accept",
103029
103047
  "type": {
103030
103048
  "text": "string"
103031
103049
  },
103032
- "privacy": "public",
103033
- "static": true,
103034
- "readonly": true,
103035
- "inheritedFrom": {
103036
- "name": "SbbElement",
103037
- "module": "core/base-elements/element.js"
103050
+ "privacy": "public"
103051
+ },
103052
+ {
103053
+ "kind": "field",
103054
+ "name": "accessibilityLabel",
103055
+ "type": {
103056
+ "text": "string"
103038
103057
  },
103039
- "default": "'sbb-expansion-panel-header'"
103058
+ "privacy": "public"
103040
103059
  },
103041
103060
  {
103042
103061
  "kind": "field",
103043
- "name": "events",
103044
- "privacy": "public",
103045
- "static": true,
103046
- "readonly": true,
103047
- "default": "{ toggleexpanded: 'toggleexpanded', }",
103062
+ "name": "files",
103048
103063
  "type": {
103049
- "text": "{\n toggleexpanded: 'toggleexpanded',\n }"
103050
- }
103064
+ "text": "Readonly<File>[]"
103065
+ },
103066
+ "privacy": "public"
103051
103067
  },
103052
103068
  {
103053
103069
  "kind": "field",
103054
- "name": "_mediaMatcher",
103055
- "privacy": "private",
103056
- "default": "new SbbMediaMatcherController(this, { [SbbMediaQueryHover]: (m) => (this._isHover = m), })"
103070
+ "name": "value",
103071
+ "type": {
103072
+ "text": "string | null"
103073
+ },
103074
+ "privacy": "public",
103075
+ "inheritedFrom": {
103076
+ "name": "SbbFormAssociatedMixin",
103077
+ "module": "core/mixins/form-associated-mixin.js"
103078
+ }
103057
103079
  },
103058
103080
  {
103059
103081
  "kind": "field",
103060
- "name": "_isHover",
103082
+ "name": "loadButton",
103061
103083
  "type": {
103062
- "text": "boolean"
103084
+ "text": "SbbSecondaryButtonStaticElement"
103063
103085
  },
103064
- "privacy": "private"
103086
+ "privacy": "protected"
103065
103087
  },
103066
103088
  {
103067
103089
  "kind": "field",
103068
- "name": "_previousSize",
103090
+ "name": "language",
103069
103091
  "type": {
103070
- "text": "string | undefined"
103092
+ "text": "SbbLanguageController"
103071
103093
  },
103072
- "privacy": "private"
103094
+ "privacy": "protected"
103073
103095
  },
103074
103096
  {
103075
103097
  "kind": "method",
103076
- "name": "_emitExpandedEvent",
103077
- "privacy": "private",
103098
+ "name": "renderTemplate",
103099
+ "privacy": "protected",
103078
103100
  "return": {
103079
103101
  "type": {
103080
- "text": "void"
103102
+ "text": "TemplateResult"
103081
103103
  }
103082
- }
103104
+ },
103105
+ "parameters": [
103106
+ {
103107
+ "name": "input",
103108
+ "type": {
103109
+ "text": "TemplateResult"
103110
+ }
103111
+ }
103112
+ ]
103083
103113
  },
103084
103114
  {
103085
103115
  "kind": "method",
103086
- "name": "_onMouseMovement",
103087
- "privacy": "private",
103116
+ "name": "createFileList",
103117
+ "privacy": "protected",
103088
103118
  "return": {
103089
103119
  "type": {
103090
103120
  "text": "void"
@@ -103092,54 +103122,56 @@
103092
103122
  },
103093
103123
  "parameters": [
103094
103124
  {
103095
- "name": "toggleDataAttribute",
103125
+ "name": "files",
103096
103126
  "type": {
103097
- "text": "boolean"
103127
+ "text": "FileList"
103098
103128
  }
103099
103129
  }
103100
103130
  ]
103101
103131
  },
103102
103132
  {
103103
103133
  "kind": "method",
103104
- "name": "_setIconState",
103105
- "privacy": "private",
103134
+ "name": "getButtonLabel",
103135
+ "privacy": "protected",
103106
103136
  "return": {
103107
103137
  "type": {
103108
- "text": "void"
103138
+ "text": "string"
103109
103139
  }
103110
- },
103111
- "description": "The :state(icon) is used by the 'sbb-expansion-panel'.\nIt needs to be set before the"
103140
+ }
103112
103141
  },
103113
103142
  {
103114
103143
  "kind": "method",
103115
- "name": "renderTemplate",
103116
- "privacy": "protected",
103144
+ "name": "formResetCallback",
103145
+ "privacy": "public",
103117
103146
  "return": {
103118
103147
  "type": {
103119
- "text": "TemplateResult"
103148
+ "text": "void"
103120
103149
  }
103121
- },
103122
- "description": "Override this method to render the component template.",
103123
- "inheritedFrom": {
103124
- "name": "SbbActionBaseElement",
103125
- "module": "core/base-elements/action-base-element.js"
103126
103150
  }
103127
103151
  },
103128
103152
  {
103129
- "kind": "field",
103130
- "name": "disabledInteractive",
103131
- "type": {
103132
- "text": "boolean"
103133
- },
103153
+ "kind": "method",
103154
+ "name": "formStateRestoreCallback",
103134
103155
  "privacy": "public",
103135
- "default": "false",
103136
- "description": "Whether the button should be aria-disabled but stay interactive.",
103137
- "attribute": "disabled-interactive",
103138
- "reflects": true,
103139
- "inheritedFrom": {
103140
- "name": "SbbDisabledInteractiveMixin",
103141
- "module": "core/mixins/disabled-mixin.js"
103142
- }
103156
+ "return": {
103157
+ "type": {
103158
+ "text": "void"
103159
+ }
103160
+ },
103161
+ "parameters": [
103162
+ {
103163
+ "name": "state",
103164
+ "type": {
103165
+ "text": "FormRestoreState | null"
103166
+ }
103167
+ },
103168
+ {
103169
+ "name": "reason",
103170
+ "type": {
103171
+ "text": "FormRestoreReason"
103172
+ }
103173
+ }
103174
+ ]
103143
103175
  },
103144
103176
  {
103145
103177
  "kind": "field",
@@ -103187,240 +103219,63 @@
103187
103219
  },
103188
103220
  {
103189
103221
  "kind": "field",
103190
- "name": "elementDependencies",
103222
+ "name": "formAssociated",
103191
103223
  "type": {
103192
- "text": "SbbElementType[]"
103224
+ "text": "boolean"
103193
103225
  },
103194
103226
  "privacy": "public",
103195
103227
  "static": true,
103228
+ "default": "true",
103196
103229
  "inheritedFrom": {
103197
- "name": "SbbElement",
103198
- "module": "core/base-elements/element.js"
103199
- },
103200
- "default": "[SbbIconElement]"
103230
+ "name": "SbbFormAssociatedMixin",
103231
+ "module": "core/mixins/form-associated-mixin.js"
103232
+ }
103201
103233
  },
103202
103234
  {
103203
103235
  "kind": "field",
103204
- "name": "iconName",
103236
+ "name": "form",
103205
103237
  "type": {
103206
- "text": "string"
103238
+ "text": "HTMLFormElement | null"
103207
103239
  },
103208
103240
  "privacy": "public",
103209
- "default": "''",
103210
- "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.",
103211
- "attribute": "icon-name",
103212
- "inheritedFrom": {
103213
- "name": "SbbIconNameMixin",
103214
- "module": "icon/icon-name-mixin.js"
103215
- }
103216
- },
103217
- {
103218
- "kind": "method",
103219
- "name": "renderIconSlot",
103220
- "privacy": "protected",
103221
- "return": {
103222
- "type": {
103223
- "text": "TemplateResult"
103224
- }
103225
- },
103226
- "parameters": [
103227
- {
103228
- "name": "classname",
103229
- "optional": true,
103230
- "type": {
103231
- "text": "string"
103232
- }
103233
- }
103234
- ],
103241
+ "description": "Returns the form owner of this element.",
103242
+ "readonly": true,
103235
103243
  "inheritedFrom": {
103236
- "name": "SbbIconNameMixin",
103237
- "module": "icon/icon-name-mixin.js"
103244
+ "name": "SbbFormAssociatedMixin",
103245
+ "module": "core/mixins/form-associated-mixin.js"
103238
103246
  }
103239
103247
  },
103240
103248
  {
103241
- "kind": "method",
103242
- "name": "renderIconName",
103243
- "privacy": "protected",
103244
- "return": {
103245
- "type": {
103246
- "text": "string"
103247
- }
103249
+ "kind": "field",
103250
+ "name": "name",
103251
+ "privacy": "public",
103252
+ "description": "Name of the form element. Will be read from name attribute.",
103253
+ "type": {
103254
+ "text": "string"
103248
103255
  },
103256
+ "attribute": "name",
103249
103257
  "inheritedFrom": {
103250
- "name": "SbbIconNameMixin",
103251
- "module": "icon/icon-name-mixin.js"
103258
+ "name": "SbbFormAssociatedMixin",
103259
+ "module": "core/mixins/form-associated-mixin.js"
103252
103260
  }
103253
103261
  },
103254
103262
  {
103255
- "kind": "method",
103256
- "name": "_renderIconName",
103257
- "privacy": "private",
103258
- "return": {
103259
- "type": {
103260
- "text": "string"
103261
- }
103263
+ "kind": "field",
103264
+ "name": "validity",
103265
+ "type": {
103266
+ "text": "ValidityState"
103262
103267
  },
103268
+ "privacy": "public",
103269
+ "description": "Returns the ValidityState object for this element.",
103270
+ "readonly": true,
103263
103271
  "inheritedFrom": {
103264
- "name": "SbbIconNameMixin",
103265
- "module": "icon/icon-name-mixin.js"
103272
+ "name": "SbbFormAssociatedMixin",
103273
+ "module": "core/mixins/form-associated-mixin.js"
103266
103274
  }
103267
103275
  },
103268
103276
  {
103269
103277
  "kind": "field",
103270
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
103271
- "type": {
103272
- "text": "array"
103273
- },
103274
- "privacy": "private",
103275
- "readonly": true,
103276
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
103277
- "inheritedFrom": {
103278
- "name": "SbbButtonBaseElement",
103279
- "module": "core/base-elements/button-base-element.js"
103280
- }
103281
- },
103282
- {
103283
- "kind": "field",
103284
- "name": "value",
103285
- "type": {
103286
- "text": "string"
103287
- },
103288
- "privacy": "public",
103289
- "inheritedFrom": {
103290
- "name": "SbbButtonBaseElement",
103291
- "module": "core/base-elements/button-base-element.js"
103292
- },
103293
- "default": "''",
103294
- "description": "Value of the form element.",
103295
- "attribute": "value"
103296
- },
103297
- {
103298
- "kind": "field",
103299
- "name": "type",
103300
- "privacy": "public",
103301
- "description": "The type attribute to use for the button.",
103302
- "default": "'button'",
103303
- "type": {
103304
- "text": "SbbButtonType"
103305
- },
103306
- "attribute": "type",
103307
- "inheritedFrom": {
103308
- "name": "SbbButtonBaseElement",
103309
- "module": "core/base-elements/button-base-element.js"
103310
- }
103311
- },
103312
- {
103313
- "kind": "field",
103314
- "name": "form",
103315
- "type": {
103316
- "text": "HTMLFormElement | null"
103317
- },
103318
- "privacy": "public",
103319
- "description": "The `<form>` element to associate the button with.",
103320
- "inheritedFrom": {
103321
- "name": "SbbButtonBaseElement",
103322
- "module": "core/base-elements/button-base-element.js"
103323
- },
103324
- "attribute": "form"
103325
- },
103326
- {
103327
- "kind": "field",
103328
- "name": "_formId",
103329
- "type": {
103330
- "text": "string"
103331
- },
103332
- "privacy": "private",
103333
- "default": "''",
103334
- "inheritedFrom": {
103335
- "name": "SbbButtonBaseElement",
103336
- "module": "core/base-elements/button-base-element.js"
103337
- }
103338
- },
103339
- {
103340
- "kind": "field",
103341
- "name": "_handleButtonClick",
103342
- "privacy": "private",
103343
- "inheritedFrom": {
103344
- "name": "SbbButtonBaseElement",
103345
- "module": "core/base-elements/button-base-element.js"
103346
- }
103347
- },
103348
- {
103349
- "kind": "method",
103350
- "name": "_requestSubmit",
103351
- "privacy": "private",
103352
- "return": {
103353
- "type": {
103354
- "text": "void"
103355
- }
103356
- },
103357
- "parameters": [
103358
- {
103359
- "name": "form",
103360
- "type": {
103361
- "text": "HTMLFormElement"
103362
- }
103363
- }
103364
- ],
103365
- "inheritedFrom": {
103366
- "name": "SbbButtonBaseElement",
103367
- "module": "core/base-elements/button-base-element.js"
103368
- }
103369
- },
103370
- {
103371
- "kind": "field",
103372
- "name": "_formKeyDown",
103373
- "privacy": "private",
103374
- "inheritedFrom": {
103375
- "name": "SbbButtonBaseElement",
103376
- "module": "core/base-elements/button-base-element.js"
103377
- }
103378
- },
103379
- {
103380
- "kind": "field",
103381
- "name": "formAssociated",
103382
- "type": {
103383
- "text": "boolean"
103384
- },
103385
- "privacy": "public",
103386
- "static": true,
103387
- "default": "true",
103388
- "inheritedFrom": {
103389
- "name": "SbbFormAssociatedMixin",
103390
- "module": "core/mixins/form-associated-mixin.js"
103391
- }
103392
- },
103393
- {
103394
- "kind": "field",
103395
- "name": "name",
103396
- "privacy": "public",
103397
- "description": "Name of the form element. Will be read from name attribute.",
103398
- "type": {
103399
- "text": "string"
103400
- },
103401
- "attribute": "name",
103402
- "inheritedFrom": {
103403
- "name": "SbbFormAssociatedMixin",
103404
- "module": "core/mixins/form-associated-mixin.js"
103405
- }
103406
- },
103407
- {
103408
- "kind": "field",
103409
- "name": "validity",
103410
- "type": {
103411
- "text": "ValidityState"
103412
- },
103413
- "privacy": "public",
103414
- "description": "Returns the ValidityState object for this element.",
103415
- "readonly": true,
103416
- "inheritedFrom": {
103417
- "name": "SbbFormAssociatedMixin",
103418
- "module": "core/mixins/form-associated-mixin.js"
103419
- }
103420
- },
103421
- {
103422
- "kind": "field",
103423
- "name": "validationMessage",
103278
+ "name": "validationMessage",
103424
103279
  "type": {
103425
103280
  "text": "string"
103426
103281
  },
@@ -103679,118 +103534,53 @@
103679
103534
  },
103680
103535
  {
103681
103536
  "kind": "field",
103682
- "name": "role",
103537
+ "name": "['_$sbbElement$']",
103683
103538
  "type": {
103684
- "text": "ElementInternals['role']"
103539
+ "text": "boolean"
103685
103540
  },
103686
103541
  "privacy": "public",
103687
103542
  "static": true,
103543
+ "default": "true",
103688
103544
  "inheritedFrom": {
103689
103545
  "name": "SbbElement",
103690
103546
  "module": "core/base-elements/element.js"
103691
- },
103692
- "readonly": true,
103693
- "default": "'button'"
103694
- },
103695
- {
103696
- "kind": "field",
103697
- "name": "_preventScrollOnSpaceKeydown",
103698
- "privacy": "private",
103699
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
103700
- "parameters": [
103701
- {
103702
- "description": "The origin event.",
103703
- "name": "event"
103704
- }
103705
- ],
103706
- "inheritedFrom": {
103707
- "name": "SbbButtonLikeBaseElement",
103708
- "module": "core/base-elements/button-base-element.js"
103709
- }
103710
- },
103711
- {
103712
- "kind": "field",
103713
- "name": "_removeActiveMarker",
103714
- "privacy": "private",
103715
- "inheritedFrom": {
103716
- "name": "SbbButtonLikeBaseElement",
103717
- "module": "core/base-elements/button-base-element.js"
103718
- }
103719
- },
103720
- {
103721
- "kind": "field",
103722
- "name": "_dispatchClickEventOnSpaceKeyup",
103723
- "privacy": "private",
103724
- "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.",
103725
- "parameters": [
103726
- {
103727
- "description": "The origin event.",
103728
- "name": "event"
103729
- }
103730
- ],
103731
- "inheritedFrom": {
103732
- "name": "SbbButtonLikeBaseElement",
103733
- "module": "core/base-elements/button-base-element.js"
103734
- }
103735
- },
103736
- {
103737
- "kind": "field",
103738
- "name": "_dispatchClickEvent",
103739
- "privacy": "private",
103740
- "inheritedFrom": {
103741
- "name": "SbbButtonLikeBaseElement",
103742
- "module": "core/base-elements/button-base-element.js"
103743
103547
  }
103744
103548
  },
103745
103549
  {
103746
103550
  "kind": "field",
103747
- "name": "maybeDisabled",
103551
+ "name": "elementName",
103748
103552
  "type": {
103749
- "text": "boolean | undefined"
103553
+ "text": "string"
103750
103554
  },
103751
- "privacy": "protected",
103555
+ "privacy": "public",
103556
+ "static": true,
103752
103557
  "readonly": true,
103753
103558
  "inheritedFrom": {
103754
- "name": "SbbActionBaseElement",
103755
- "module": "core/base-elements/action-base-element.js"
103559
+ "name": "SbbElement",
103560
+ "module": "core/base-elements/element.js"
103756
103561
  }
103757
103562
  },
103758
103563
  {
103759
103564
  "kind": "field",
103760
- "name": "maybeDisabledInteractive",
103565
+ "name": "elementDependencies",
103761
103566
  "type": {
103762
- "text": "boolean | undefined"
103763
- },
103764
- "privacy": "protected",
103765
- "readonly": true,
103766
- "inheritedFrom": {
103767
- "name": "SbbActionBaseElement",
103768
- "module": "core/base-elements/action-base-element.js"
103769
- }
103770
- },
103771
- {
103772
- "kind": "method",
103773
- "name": "setupBaseEventHandlers",
103774
- "privacy": "protected",
103775
- "return": {
103776
- "type": {
103777
- "text": "void"
103778
- }
103567
+ "text": "SbbElementType[] | undefined"
103779
103568
  },
103569
+ "privacy": "public",
103570
+ "static": true,
103780
103571
  "inheritedFrom": {
103781
- "name": "SbbActionBaseElement",
103782
- "module": "core/base-elements/action-base-element.js"
103572
+ "name": "SbbElement",
103573
+ "module": "core/base-elements/element.js"
103783
103574
  }
103784
103575
  },
103785
103576
  {
103786
103577
  "kind": "field",
103787
- "name": "['_$sbbElement$']",
103578
+ "name": "role",
103788
103579
  "type": {
103789
- "text": "boolean"
103580
+ "text": "ElementInternals['role'] | undefined"
103790
103581
  },
103791
103582
  "privacy": "public",
103792
103583
  "static": true,
103793
- "default": "true",
103794
103584
  "inheritedFrom": {
103795
103585
  "name": "SbbElement",
103796
103586
  "module": "core/base-elements/element.js"
@@ -104016,45 +103806,21 @@
104016
103806
  }
104017
103807
  }
104018
103808
  ],
104019
- "events": [
103809
+ "mixins": [
104020
103810
  {
104021
- "name": "toggleexpanded",
104022
- "type": {
104023
- "text": "Event"
104024
- },
104025
- "description": "Notifies that the `sbb-expansion-panel` is about to expand/shrink."
104026
- }
104027
- ],
104028
- "mixins": [
104029
- {
104030
- "name": "SbbDisabledTabIndexActionMixin",
103811
+ "name": "SbbDisabledMixin",
104031
103812
  "module": "core.js"
104032
103813
  },
104033
103814
  {
104034
- "name": "SbbIconNameMixin",
104035
- "module": "icon.pure.js"
103815
+ "name": "SbbFormAssociatedMixin",
103816
+ "module": "core.js"
104036
103817
  }
104037
103818
  ],
104038
103819
  "superclass": {
104039
- "name": "SbbButtonBaseElement",
103820
+ "name": "SbbElement",
104040
103821
  "module": "core.js"
104041
103822
  },
104042
- "tagName": "sbb-expansion-panel-header",
104043
- "customElement": true,
104044
103823
  "attributes": [
104045
- {
104046
- "name": "disabled-interactive",
104047
- "type": {
104048
- "text": "boolean"
104049
- },
104050
- "default": "false",
104051
- "description": "Whether the button should be aria-disabled but stay interactive.",
104052
- "fieldName": "disabledInteractive",
104053
- "inheritedFrom": {
104054
- "name": "SbbDisabledInteractiveMixin",
104055
- "module": "core/mixins/disabled-mixin.js"
104056
- }
104057
- },
104058
103824
  {
104059
103825
  "name": "disabled",
104060
103826
  "description": "Whether the component is disabled.",
@@ -104068,57 +103834,6 @@
104068
103834
  "module": "core/mixins/disabled-mixin.js"
104069
103835
  }
104070
103836
  },
104071
- {
104072
- "name": "icon-name",
104073
- "type": {
104074
- "text": "string"
104075
- },
104076
- "default": "''",
104077
- "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.",
104078
- "fieldName": "iconName",
104079
- "inheritedFrom": {
104080
- "name": "SbbIconNameMixin",
104081
- "module": "icon/icon-name-mixin.js"
104082
- }
104083
- },
104084
- {
104085
- "name": "value",
104086
- "type": {
104087
- "text": "string"
104088
- },
104089
- "default": "''",
104090
- "description": "Value of the form element.",
104091
- "fieldName": "value",
104092
- "inheritedFrom": {
104093
- "name": "SbbButtonBaseElement",
104094
- "module": "core/base-elements/button-base-element.js"
104095
- }
104096
- },
104097
- {
104098
- "name": "type",
104099
- "description": "The type attribute to use for the button.",
104100
- "default": "'button'",
104101
- "type": {
104102
- "text": "SbbButtonType"
104103
- },
104104
- "fieldName": "type",
104105
- "inheritedFrom": {
104106
- "name": "SbbButtonBaseElement",
104107
- "module": "core/base-elements/button-base-element.js"
104108
- }
104109
- },
104110
- {
104111
- "name": "form",
104112
- "description": "The `<form>` element to associate the button with.",
104113
- "type": {
104114
- "text": "HTMLFormElement | null"
104115
- },
104116
- "fieldName": "form",
104117
- "inheritedFrom": {
104118
- "name": "SbbButtonBaseElement",
104119
- "module": "core/base-elements/button-base-element.js"
104120
- }
104121
- },
104122
103837
  {
104123
103838
  "name": "name",
104124
103839
  "description": "Name of the form element. Will be read from name attribute.",
@@ -104132,39 +103847,44 @@
104132
103847
  }
104133
103848
  }
104134
103849
  ]
104135
- }
104136
- ],
104137
- "exports": [
104138
- {
104139
- "kind": "js",
104140
- "name": "SbbExpansionPanelHeaderElement",
104141
- "declaration": {
104142
- "name": "SbbExpansionPanelHeaderElement",
104143
- "module": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js"
104144
- }
104145
- }
104146
- ]
104147
- },
104148
- {
104149
- "kind": "javascript-module",
104150
- "path": "file-selector/common/file-selector-common.js",
104151
- "declarations": [
104152
- {
104153
- "kind": "variable",
104154
- "name": "fileSelectorCommonStyle"
104155
103850
  },
104156
103851
  {
104157
- "kind": "class",
103852
+ "kind": "mixin",
104158
103853
  "description": "",
104159
- "name": "SbbFileSelectorCommonElementMixinType",
103854
+ "name": "SbbFileSelectorCommonElementMixin",
104160
103855
  "members": [
103856
+ {
103857
+ "kind": "field",
103858
+ "name": "elementDependencies",
103859
+ "type": {
103860
+ "text": "SbbElementType[]"
103861
+ },
103862
+ "privacy": "public",
103863
+ "static": true,
103864
+ "default": "[SbbSecondaryButtonElement]"
103865
+ },
103866
+ {
103867
+ "kind": "field",
103868
+ "name": "events",
103869
+ "privacy": "public",
103870
+ "static": true,
103871
+ "readonly": true,
103872
+ "default": "{ filechanged: 'filechanged', }",
103873
+ "type": {
103874
+ "text": "{\n filechanged: 'filechanged',\n }"
103875
+ }
103876
+ },
104161
103877
  {
104162
103878
  "kind": "field",
104163
103879
  "name": "size",
104164
103880
  "type": {
104165
103881
  "text": "'s' | 'm'"
104166
103882
  },
104167
- "privacy": "public"
103883
+ "privacy": "public",
103884
+ "description": "Size variant, either s or m.",
103885
+ "default": "'m' / 's' (lean)",
103886
+ "attribute": "size",
103887
+ "reflects": true
104168
103888
  },
104169
103889
  {
104170
103890
  "kind": "field",
@@ -104172,7 +103892,10 @@
104172
103892
  "type": {
104173
103893
  "text": "boolean"
104174
103894
  },
104175
- "privacy": "public"
103895
+ "privacy": "public",
103896
+ "default": "false",
103897
+ "description": "Whether more than one file can be selected.",
103898
+ "attribute": "multiple"
104176
103899
  },
104177
103900
  {
104178
103901
  "kind": "field",
@@ -104180,7 +103903,10 @@
104180
103903
  "type": {
104181
103904
  "text": "'default' | 'persistent'"
104182
103905
  },
104183
- "privacy": "public"
103906
+ "privacy": "public",
103907
+ "default": "'default'",
103908
+ "description": "Whether the newly added files should override the previously added ones.",
103909
+ "attribute": "multiple-mode"
104184
103910
  },
104185
103911
  {
104186
103912
  "kind": "field",
@@ -104188,7 +103914,10 @@
104188
103914
  "type": {
104189
103915
  "text": "string"
104190
103916
  },
104191
- "privacy": "public"
103917
+ "privacy": "public",
103918
+ "default": "''",
103919
+ "description": "A comma-separated list of allowed unique file type specifiers.",
103920
+ "attribute": "accept"
104192
103921
  },
104193
103922
  {
104194
103923
  "kind": "field",
@@ -104196,27 +103925,77 @@
104196
103925
  "type": {
104197
103926
  "text": "string"
104198
103927
  },
104199
- "privacy": "public"
103928
+ "privacy": "public",
103929
+ "default": "''",
103930
+ "description": "This will be forwarded as aria-label to the native input element.",
103931
+ "attribute": "accessibility-label"
103932
+ },
103933
+ {
103934
+ "kind": "field",
103935
+ "name": "value",
103936
+ "type": {
103937
+ "text": "string | null"
103938
+ },
103939
+ "privacy": "public",
103940
+ "description": "The path of the first selected file. Empty string ('') if no file is selected",
103941
+ "inheritedFrom": {
103942
+ "name": "SbbFormAssociatedMixin",
103943
+ "module": "core/mixins/form-associated-mixin.js"
103944
+ }
104200
103945
  },
104201
103946
  {
104202
103947
  "kind": "field",
104203
103948
  "name": "files",
103949
+ "privacy": "public",
103950
+ "description": "The list of selected files.",
103951
+ "type": {
103952
+ "text": "Readonly<File>[]"
103953
+ }
103954
+ },
103955
+ {
103956
+ "kind": "field",
103957
+ "name": "_files",
104204
103958
  "type": {
104205
103959
  "text": "Readonly<File>[]"
104206
103960
  },
104207
- "privacy": "public"
103961
+ "privacy": "private",
103962
+ "default": "[]"
104208
103963
  },
104209
103964
  {
104210
103965
  "kind": "field",
104211
- "name": "value",
103966
+ "name": "type",
104212
103967
  "type": {
104213
- "text": "string | null"
103968
+ "text": "string"
104214
103969
  },
104215
103970
  "privacy": "public",
104216
- "inheritedFrom": {
104217
- "name": "SbbFormAssociatedMixin",
104218
- "module": "core/mixins/form-associated-mixin.js"
104219
- }
103971
+ "description": "Form type of element.",
103972
+ "default": "'file'",
103973
+ "readonly": true
103974
+ },
103975
+ {
103976
+ "kind": "field",
103977
+ "name": "_hiddenInput",
103978
+ "type": {
103979
+ "text": "HTMLInputElement"
103980
+ },
103981
+ "privacy": "private"
103982
+ },
103983
+ {
103984
+ "kind": "field",
103985
+ "name": "_suffixes",
103986
+ "type": {
103987
+ "text": "string[]"
103988
+ },
103989
+ "privacy": "private",
103990
+ "default": "['B', 'kB', 'MB', 'GB', 'TB']"
103991
+ },
103992
+ {
103993
+ "kind": "field",
103994
+ "name": "_liveRegion",
103995
+ "type": {
103996
+ "text": "HTMLParagraphElement"
103997
+ },
103998
+ "privacy": "private"
104220
103999
  },
104221
104000
  {
104222
104001
  "kind": "field",
@@ -104229,10 +104008,25 @@
104229
104008
  {
104230
104009
  "kind": "field",
104231
104010
  "name": "language",
104011
+ "privacy": "protected",
104012
+ "default": "new SbbLanguageController(this)"
104013
+ },
104014
+ {
104015
+ "kind": "field",
104016
+ "name": "_counter",
104232
104017
  "type": {
104233
- "text": "SbbLanguageController"
104018
+ "text": "number"
104234
104019
  },
104235
- "privacy": "protected"
104020
+ "privacy": "private",
104021
+ "default": "0"
104022
+ },
104023
+ {
104024
+ "kind": "field",
104025
+ "name": "_dragTarget",
104026
+ "type": {
104027
+ "text": "HTMLElement | undefined"
104028
+ },
104029
+ "privacy": "private"
104236
104030
  },
104237
104031
  {
104238
104032
  "kind": "method",
@@ -104254,45 +104048,17 @@
104254
104048
  },
104255
104049
  {
104256
104050
  "kind": "method",
104257
- "name": "createFileList",
104258
- "privacy": "protected",
104051
+ "name": "formResetCallback",
104052
+ "privacy": "public",
104259
104053
  "return": {
104260
104054
  "type": {
104261
104055
  "text": "void"
104262
104056
  }
104263
- },
104264
- "parameters": [
104265
- {
104266
- "name": "files",
104267
- "type": {
104268
- "text": "FileList"
104269
- }
104270
- }
104271
- ]
104272
- },
104273
- {
104274
- "kind": "method",
104275
- "name": "getButtonLabel",
104276
- "privacy": "protected",
104277
- "return": {
104278
- "type": {
104279
- "text": "string"
104280
- }
104281
104057
  }
104282
104058
  },
104283
104059
  {
104284
104060
  "kind": "method",
104285
- "name": "formResetCallback",
104286
- "privacy": "public",
104287
- "return": {
104288
- "type": {
104289
- "text": "void"
104290
- }
104291
- }
104292
- },
104293
- {
104294
- "kind": "method",
104295
- "name": "formStateRestoreCallback",
104061
+ "name": "formStateRestoreCallback",
104296
104062
  "privacy": "public",
104297
104063
  "return": {
104298
104064
  "type": {
@@ -104307,160 +104073,24 @@
104307
104073
  }
104308
104074
  },
104309
104075
  {
104310
- "name": "reason",
104076
+ "name": "_reason",
104077
+ "optional": true,
104311
104078
  "type": {
104312
104079
  "text": "FormRestoreReason"
104313
104080
  }
104314
104081
  }
104315
104082
  ]
104316
104083
  },
104317
- {
104318
- "kind": "field",
104319
- "name": "disabled",
104320
- "privacy": "public",
104321
- "description": "Whether the component is disabled.",
104322
- "default": "false",
104323
- "type": {
104324
- "text": "boolean"
104325
- },
104326
- "attribute": "disabled",
104327
- "reflects": true,
104328
- "inheritedFrom": {
104329
- "name": "SbbDisabledMixin",
104330
- "module": "core/mixins/disabled-mixin.js"
104331
- }
104332
- },
104333
- {
104334
- "kind": "field",
104335
- "name": "#disabled",
104336
- "privacy": "private",
104337
- "type": {
104338
- "text": "boolean"
104339
- },
104340
- "default": "false",
104341
- "inheritedFrom": {
104342
- "name": "SbbDisabledMixin",
104343
- "module": "core/mixins/disabled-mixin.js"
104344
- }
104345
- },
104346
104084
  {
104347
104085
  "kind": "method",
104348
- "name": "isDisabledExternally",
104086
+ "name": "updateFormValue",
104349
104087
  "privacy": "protected",
104350
104088
  "return": {
104351
104089
  "type": {
104352
- "text": "boolean"
104090
+ "text": "void"
104353
104091
  }
104354
104092
  },
104355
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
104356
- "inheritedFrom": {
104357
- "name": "SbbDisabledMixin",
104358
- "module": "core/mixins/disabled-mixin.js"
104359
- }
104360
- },
104361
- {
104362
- "kind": "field",
104363
- "name": "formAssociated",
104364
- "type": {
104365
- "text": "boolean"
104366
- },
104367
- "privacy": "public",
104368
- "static": true,
104369
- "default": "true",
104370
- "inheritedFrom": {
104371
- "name": "SbbFormAssociatedMixin",
104372
- "module": "core/mixins/form-associated-mixin.js"
104373
- }
104374
- },
104375
- {
104376
- "kind": "field",
104377
- "name": "form",
104378
- "type": {
104379
- "text": "HTMLFormElement | null"
104380
- },
104381
- "privacy": "public",
104382
- "description": "Returns the form owner of this element.",
104383
- "readonly": true,
104384
- "inheritedFrom": {
104385
- "name": "SbbFormAssociatedMixin",
104386
- "module": "core/mixins/form-associated-mixin.js"
104387
- }
104388
- },
104389
- {
104390
- "kind": "field",
104391
- "name": "name",
104392
- "privacy": "public",
104393
- "description": "Name of the form element. Will be read from name attribute.",
104394
- "type": {
104395
- "text": "string"
104396
- },
104397
- "attribute": "name",
104398
- "inheritedFrom": {
104399
- "name": "SbbFormAssociatedMixin",
104400
- "module": "core/mixins/form-associated-mixin.js"
104401
- }
104402
- },
104403
- {
104404
- "kind": "field",
104405
- "name": "validity",
104406
- "type": {
104407
- "text": "ValidityState"
104408
- },
104409
- "privacy": "public",
104410
- "description": "Returns the ValidityState object for this element.",
104411
- "readonly": true,
104412
- "inheritedFrom": {
104413
- "name": "SbbFormAssociatedMixin",
104414
- "module": "core/mixins/form-associated-mixin.js"
104415
- }
104416
- },
104417
- {
104418
- "kind": "field",
104419
- "name": "validationMessage",
104420
- "type": {
104421
- "text": "string"
104422
- },
104423
- "privacy": "public",
104424
- "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.",
104425
- "readonly": true,
104426
- "inheritedFrom": {
104427
- "name": "SbbFormAssociatedMixin",
104428
- "module": "core/mixins/form-associated-mixin.js"
104429
- }
104430
- },
104431
- {
104432
- "kind": "field",
104433
- "name": "willValidate",
104434
- "type": {
104435
- "text": "boolean"
104436
- },
104437
- "privacy": "public",
104438
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
104439
- "readonly": true,
104440
- "inheritedFrom": {
104441
- "name": "SbbFormAssociatedMixin",
104442
- "module": "core/mixins/form-associated-mixin.js"
104443
- }
104444
- },
104445
- {
104446
- "kind": "field",
104447
- "name": "_validityStates",
104448
- "privacy": "private",
104449
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
104450
- "inheritedFrom": {
104451
- "name": "SbbFormAssociatedMixin",
104452
- "module": "core/mixins/form-associated-mixin.js"
104453
- }
104454
- },
104455
- {
104456
- "kind": "field",
104457
- "name": "formDisabled",
104458
- "type": {
104459
- "text": "boolean"
104460
- },
104461
- "privacy": "protected",
104462
- "default": "false",
104463
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
104093
+ "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",
104464
104094
  "inheritedFrom": {
104465
104095
  "name": "SbbFormAssociatedMixin",
104466
104096
  "module": "core/mixins/form-associated-mixin.js"
@@ -104468,104 +104098,98 @@
104468
104098
  },
104469
104099
  {
104470
104100
  "kind": "method",
104471
- "name": "checkValidity",
104472
- "privacy": "public",
104101
+ "name": "_checkFileEquality",
104102
+ "privacy": "private",
104473
104103
  "return": {
104474
104104
  "type": {
104475
104105
  "text": "boolean"
104476
104106
  }
104477
104107
  },
104478
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
104479
- "inheritedFrom": {
104480
- "name": "SbbFormAssociatedMixin",
104481
- "module": "core/mixins/form-associated-mixin.js"
104482
- }
104108
+ "parameters": [
104109
+ {
104110
+ "name": "file1",
104111
+ "type": {
104112
+ "text": "Readonly<File>"
104113
+ }
104114
+ },
104115
+ {
104116
+ "name": "file2",
104117
+ "type": {
104118
+ "text": "Readonly<File>"
104119
+ }
104120
+ }
104121
+ ]
104483
104122
  },
104484
104123
  {
104485
104124
  "kind": "method",
104486
- "name": "reportValidity",
104487
- "privacy": "public",
104125
+ "name": "_onFocus",
104126
+ "privacy": "private",
104488
104127
  "return": {
104489
104128
  "type": {
104490
- "text": "boolean"
104129
+ "text": "void"
104491
104130
  }
104492
- },
104493
- "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.",
104494
- "inheritedFrom": {
104495
- "name": "SbbFormAssociatedMixin",
104496
- "module": "core/mixins/form-associated-mixin.js"
104497
104131
  }
104498
104132
  },
104499
104133
  {
104500
104134
  "kind": "method",
104501
- "name": "setCustomValidity",
104502
- "privacy": "public",
104135
+ "name": "_onBlur",
104136
+ "privacy": "private",
104503
104137
  "return": {
104504
104138
  "type": {
104505
104139
  "text": "void"
104506
104140
  }
104507
- },
104508
- "parameters": [
104509
- {
104510
- "name": "message",
104511
- "type": {
104512
- "text": "string"
104513
- }
104514
- }
104515
- ],
104516
- "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.",
104517
- "inheritedFrom": {
104518
- "name": "SbbFormAssociatedMixin",
104519
- "module": "core/mixins/form-associated-mixin.js"
104520
104141
  }
104521
104142
  },
104522
104143
  {
104523
104144
  "kind": "method",
104524
- "name": "_hasDisabledAncestor",
104145
+ "name": "_readFiles",
104525
104146
  "privacy": "private",
104526
104147
  "return": {
104527
104148
  "type": {
104528
- "text": "boolean"
104149
+ "text": "void"
104529
104150
  }
104530
104151
  },
104531
- "inheritedFrom": {
104532
- "name": "SbbFormAssociatedMixin",
104533
- "module": "core/mixins/form-associated-mixin.js"
104534
- }
104152
+ "parameters": [
104153
+ {
104154
+ "name": "event",
104155
+ "type": {
104156
+ "text": "Event"
104157
+ }
104158
+ }
104159
+ ]
104535
104160
  },
104536
104161
  {
104537
104162
  "kind": "method",
104538
- "name": "updateFormValue",
104163
+ "name": "createFileList",
104539
104164
  "privacy": "protected",
104540
104165
  "return": {
104541
104166
  "type": {
104542
104167
  "text": "void"
104543
104168
  }
104544
104169
  },
104545
- "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",
104546
- "inheritedFrom": {
104547
- "name": "SbbFormAssociatedMixin",
104548
- "module": "core/mixins/form-associated-mixin.js"
104549
- }
104170
+ "parameters": [
104171
+ {
104172
+ "name": "files",
104173
+ "type": {
104174
+ "text": "FileList"
104175
+ }
104176
+ }
104177
+ ]
104550
104178
  },
104551
104179
  {
104552
104180
  "kind": "method",
104553
- "name": "formState",
104181
+ "name": "getButtonLabel",
104554
104182
  "privacy": "protected",
104555
104183
  "return": {
104556
104184
  "type": {
104557
- "text": "FormRestoreState"
104185
+ "text": "string"
104558
104186
  }
104559
- },
104560
- "inheritedFrom": {
104561
- "name": "SbbFormAssociatedMixin",
104562
- "module": "core/mixins/form-associated-mixin.js"
104563
104187
  }
104564
104188
  },
104565
104189
  {
104566
104190
  "kind": "method",
104567
- "name": "setValidityFlag",
104568
- "privacy": "protected",
104191
+ "name": "_removeFile",
104192
+ "privacy": "private",
104569
104193
  "return": {
104570
104194
  "type": {
104571
104195
  "text": "void"
@@ -104573,35 +104197,66 @@
104573
104197
  },
104574
104198
  "parameters": [
104575
104199
  {
104576
- "name": "flag",
104200
+ "name": "file",
104577
104201
  "type": {
104578
- "text": "T"
104202
+ "text": "Readonly<File>"
104579
104203
  }
104580
- },
104581
- {
104582
- "name": "message",
104583
- "type": {
104584
- "text": "string"
104585
- }
104586
- },
104204
+ }
104205
+ ]
104206
+ },
104207
+ {
104208
+ "kind": "method",
104209
+ "name": "_dispatchFileChangedEvent",
104210
+ "privacy": "private",
104211
+ "return": {
104212
+ "type": {
104213
+ "text": "void"
104214
+ }
104215
+ }
104216
+ },
104217
+ {
104218
+ "kind": "method",
104219
+ "name": "_formatFileSize",
104220
+ "privacy": "private",
104221
+ "return": {
104222
+ "type": {
104223
+ "text": "string"
104224
+ }
104225
+ },
104226
+ "parameters": [
104587
104227
  {
104588
- "name": "flagValue",
104589
- "optional": true,
104228
+ "name": "size",
104590
104229
  "type": {
104591
- "text": "ValidityStateFlags[T]"
104230
+ "text": "number"
104592
104231
  }
104593
104232
  }
104594
104233
  ],
104595
- "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).",
104596
- "inheritedFrom": {
104597
- "name": "SbbFormAssociatedMixin",
104598
- "module": "core/mixins/form-associated-mixin.js"
104234
+ "description": "Calculates the correct unit for the file's size."
104235
+ },
104236
+ {
104237
+ "kind": "method",
104238
+ "name": "_updateA11yLiveRegion",
104239
+ "privacy": "private",
104240
+ "return": {
104241
+ "type": {
104242
+ "text": "void"
104243
+ }
104599
104244
  }
104600
104245
  },
104601
104246
  {
104602
104247
  "kind": "method",
104603
- "name": "removeValidityFlag",
104604
- "privacy": "protected",
104248
+ "name": "_renderFileList",
104249
+ "privacy": "private",
104250
+ "return": {
104251
+ "type": {
104252
+ "text": "TemplateResult"
104253
+ }
104254
+ }
104255
+ },
104256
+ {
104257
+ "kind": "method",
104258
+ "name": "_onDragEnter",
104259
+ "privacy": "private",
104605
104260
  "return": {
104606
104261
  "type": {
104607
104262
  "text": "void"
@@ -104609,202 +104264,279 @@
104609
104264
  },
104610
104265
  "parameters": [
104611
104266
  {
104612
- "name": "flag",
104267
+ "name": "event",
104613
104268
  "type": {
104614
- "text": "T"
104269
+ "text": "DragEvent"
104615
104270
  }
104616
104271
  }
104617
- ],
104618
- "description": "Removes the validity state flag entry and updates validity state.",
104619
- "inheritedFrom": {
104620
- "name": "SbbFormAssociatedMixin",
104621
- "module": "core/mixins/form-associated-mixin.js"
104622
- }
104272
+ ]
104623
104273
  },
104624
104274
  {
104625
104275
  "kind": "method",
104626
- "name": "validate",
104627
- "privacy": "protected",
104276
+ "name": "_onDragLeave",
104277
+ "privacy": "private",
104628
104278
  "return": {
104629
104279
  "type": {
104630
104280
  "text": "void"
104631
104281
  }
104632
104282
  },
104633
- "description": "To be called whenever the current element needs to be validated.",
104634
- "inheritedFrom": {
104635
- "name": "SbbFormAssociatedMixin",
104636
- "module": "core/mixins/form-associated-mixin.js"
104637
- }
104283
+ "parameters": [
104284
+ {
104285
+ "name": "event",
104286
+ "type": {
104287
+ "text": "DragEvent"
104288
+ }
104289
+ }
104290
+ ]
104638
104291
  },
104639
104292
  {
104640
104293
  "kind": "method",
104641
- "name": "shouldValidate",
104642
- "privacy": "protected",
104294
+ "name": "_onFileDrop",
104295
+ "privacy": "private",
104643
104296
  "return": {
104644
104297
  "type": {
104645
- "text": "boolean"
104298
+ "text": "void"
104646
104299
  }
104647
104300
  },
104648
104301
  "parameters": [
104649
104302
  {
104650
- "name": "name",
104303
+ "name": "event",
104651
104304
  "type": {
104652
- "text": "PropertyKey | undefined"
104305
+ "text": "DragEvent"
104653
104306
  }
104654
104307
  }
104655
- ],
104656
- "description": "Whether validation should be run on a property change with the given name.",
104657
- "inheritedFrom": {
104658
- "name": "SbbFormAssociatedMixin",
104659
- "module": "core/mixins/form-associated-mixin.js"
104660
- }
104308
+ ]
104661
104309
  },
104662
104310
  {
104663
104311
  "kind": "method",
104664
- "name": "_setInternalValidity",
104312
+ "name": "_blockEvent",
104665
104313
  "privacy": "private",
104666
104314
  "return": {
104667
104315
  "type": {
104668
104316
  "text": "void"
104669
104317
  }
104670
104318
  },
104671
- "inheritedFrom": {
104672
- "name": "SbbFormAssociatedMixin",
104673
- "module": "core/mixins/form-associated-mixin.js"
104674
- }
104319
+ "parameters": [
104320
+ {
104321
+ "name": "event",
104322
+ "type": {
104323
+ "text": "DragEvent"
104324
+ }
104325
+ }
104326
+ ]
104327
+ },
104328
+ {
104329
+ "kind": "method",
104330
+ "name": "_setDragState",
104331
+ "privacy": "private",
104332
+ "return": {
104333
+ "type": {
104334
+ "text": "void"
104335
+ }
104336
+ },
104337
+ "parameters": [
104338
+ {
104339
+ "name": "dragTarget",
104340
+ "default": "undefined",
104341
+ "type": {
104342
+ "text": "HTMLElement | undefined"
104343
+ }
104344
+ },
104345
+ {
104346
+ "name": "isDragEnter",
104347
+ "default": "false",
104348
+ "type": {
104349
+ "text": "boolean"
104350
+ }
104351
+ }
104352
+ ]
104675
104353
  },
104676
104354
  {
104677
104355
  "kind": "field",
104678
- "name": "['_$sbbElement$']",
104356
+ "name": "disabled",
104357
+ "privacy": "public",
104358
+ "description": "Whether the component is disabled.",
104359
+ "default": "false",
104679
104360
  "type": {
104680
104361
  "text": "boolean"
104681
104362
  },
104682
- "privacy": "public",
104683
- "static": true,
104684
- "default": "true",
104363
+ "attribute": "disabled",
104364
+ "reflects": true,
104685
104365
  "inheritedFrom": {
104686
- "name": "SbbElement",
104687
- "module": "core/base-elements/element.js"
104366
+ "name": "SbbDisabledMixin",
104367
+ "module": "core/mixins/disabled-mixin.js"
104688
104368
  }
104689
104369
  },
104690
104370
  {
104691
104371
  "kind": "field",
104692
- "name": "elementName",
104372
+ "name": "#disabled",
104373
+ "privacy": "private",
104693
104374
  "type": {
104694
- "text": "string"
104375
+ "text": "boolean"
104695
104376
  },
104696
- "privacy": "public",
104697
- "static": true,
104698
- "readonly": true,
104377
+ "default": "false",
104699
104378
  "inheritedFrom": {
104700
- "name": "SbbElement",
104701
- "module": "core/base-elements/element.js"
104379
+ "name": "SbbDisabledMixin",
104380
+ "module": "core/mixins/disabled-mixin.js"
104702
104381
  }
104703
104382
  },
104704
104383
  {
104705
- "kind": "field",
104706
- "name": "elementDependencies",
104707
- "type": {
104708
- "text": "SbbElementType[] | undefined"
104384
+ "kind": "method",
104385
+ "name": "isDisabledExternally",
104386
+ "privacy": "protected",
104387
+ "return": {
104388
+ "type": {
104389
+ "text": "boolean"
104390
+ }
104709
104391
  },
104710
- "privacy": "public",
104711
- "static": true,
104392
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
104712
104393
  "inheritedFrom": {
104713
- "name": "SbbElement",
104714
- "module": "core/base-elements/element.js"
104394
+ "name": "SbbDisabledMixin",
104395
+ "module": "core/mixins/disabled-mixin.js"
104715
104396
  }
104716
104397
  },
104717
104398
  {
104718
104399
  "kind": "field",
104719
- "name": "role",
104400
+ "name": "formAssociated",
104720
104401
  "type": {
104721
- "text": "ElementInternals['role'] | undefined"
104402
+ "text": "boolean"
104722
104403
  },
104723
104404
  "privacy": "public",
104724
104405
  "static": true,
104406
+ "default": "true",
104725
104407
  "inheritedFrom": {
104726
- "name": "SbbElement",
104727
- "module": "core/base-elements/element.js"
104408
+ "name": "SbbFormAssociatedMixin",
104409
+ "module": "core/mixins/form-associated-mixin.js"
104728
104410
  }
104729
104411
  },
104730
104412
  {
104731
104413
  "kind": "field",
104732
- "name": "_controllers",
104414
+ "name": "form",
104733
104415
  "type": {
104734
- "text": "Set<SbbReactiveController> | undefined"
104416
+ "text": "HTMLFormElement | null"
104735
104417
  },
104736
- "privacy": "private",
104418
+ "privacy": "public",
104419
+ "description": "Returns the form owner of this element.",
104420
+ "readonly": true,
104737
104421
  "inheritedFrom": {
104738
- "name": "SbbElement",
104739
- "module": "core/base-elements/element.js"
104422
+ "name": "SbbFormAssociatedMixin",
104423
+ "module": "core/mixins/form-associated-mixin.js"
104740
104424
  }
104741
104425
  },
104742
104426
  {
104743
104427
  "kind": "field",
104744
- "name": "_hydrationRequired",
104428
+ "name": "name",
104429
+ "privacy": "public",
104430
+ "description": "Name of the form element. Will be read from name attribute.",
104745
104431
  "type": {
104746
- "text": "boolean"
104432
+ "text": "string"
104747
104433
  },
104748
- "privacy": "private",
104749
- "default": "!!this.shadowRoot",
104434
+ "attribute": "name",
104750
104435
  "inheritedFrom": {
104751
- "name": "SbbElement",
104752
- "module": "core/base-elements/element.js"
104436
+ "name": "SbbFormAssociatedMixin",
104437
+ "module": "core/mixins/form-associated-mixin.js"
104753
104438
  }
104754
104439
  },
104755
104440
  {
104756
104441
  "kind": "field",
104757
- "name": "_hydrationComplete",
104758
- "privacy": "private",
104759
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
104442
+ "name": "validity",
104443
+ "type": {
104444
+ "text": "ValidityState"
104445
+ },
104446
+ "privacy": "public",
104447
+ "description": "Returns the ValidityState object for this element.",
104448
+ "readonly": true,
104760
104449
  "inheritedFrom": {
104761
- "name": "SbbElement",
104762
- "module": "core/base-elements/element.js"
104450
+ "name": "SbbFormAssociatedMixin",
104451
+ "module": "core/mixins/form-associated-mixin.js"
104763
104452
  }
104764
104453
  },
104765
104454
  {
104766
104455
  "kind": "field",
104767
- "name": "_resolveHydration",
104456
+ "name": "validationMessage",
104768
104457
  "type": {
104769
- "text": "(hydrationRequired: boolean) => void"
104458
+ "text": "string"
104770
104459
  },
104771
- "privacy": "private",
104460
+ "privacy": "public",
104461
+ "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.",
104462
+ "readonly": true,
104772
104463
  "inheritedFrom": {
104773
- "name": "SbbElement",
104774
- "module": "core/base-elements/element.js"
104464
+ "name": "SbbFormAssociatedMixin",
104465
+ "module": "core/mixins/form-associated-mixin.js"
104775
104466
  }
104776
104467
  },
104777
104468
  {
104778
104469
  "kind": "field",
104779
- "name": "_textObserver",
104470
+ "name": "willValidate",
104780
104471
  "type": {
104781
- "text": "MutationObserver | undefined"
104472
+ "text": "boolean"
104782
104473
  },
104783
- "privacy": "private",
104474
+ "privacy": "public",
104475
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
104476
+ "readonly": true,
104784
104477
  "inheritedFrom": {
104785
- "name": "SbbElement",
104786
- "module": "core/base-elements/element.js"
104478
+ "name": "SbbFormAssociatedMixin",
104479
+ "module": "core/mixins/form-associated-mixin.js"
104787
104480
  }
104788
104481
  },
104789
104482
  {
104790
104483
  "kind": "field",
104791
- "name": "hydrationRequired",
104484
+ "name": "_validityStates",
104485
+ "privacy": "private",
104486
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
104487
+ "inheritedFrom": {
104488
+ "name": "SbbFormAssociatedMixin",
104489
+ "module": "core/mixins/form-associated-mixin.js"
104490
+ }
104491
+ },
104492
+ {
104493
+ "kind": "field",
104494
+ "name": "formDisabled",
104792
104495
  "type": {
104793
104496
  "text": "boolean"
104794
104497
  },
104795
104498
  "privacy": "protected",
104796
- "description": "Returns whether hydration is required and not completed.",
104797
- "readonly": true,
104499
+ "default": "false",
104500
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
104798
104501
  "inheritedFrom": {
104799
- "name": "SbbElement",
104800
- "module": "core/base-elements/element.js"
104502
+ "name": "SbbFormAssociatedMixin",
104503
+ "module": "core/mixins/form-associated-mixin.js"
104504
+ }
104505
+ },
104506
+ {
104507
+ "kind": "method",
104508
+ "name": "checkValidity",
104509
+ "privacy": "public",
104510
+ "return": {
104511
+ "type": {
104512
+ "text": "boolean"
104513
+ }
104801
104514
  },
104802
- "default": "!!this.shadowRoot"
104515
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
104516
+ "inheritedFrom": {
104517
+ "name": "SbbFormAssociatedMixin",
104518
+ "module": "core/mixins/form-associated-mixin.js"
104519
+ }
104803
104520
  },
104804
104521
  {
104805
104522
  "kind": "method",
104806
- "name": "toggleState",
104807
- "privacy": "protected",
104523
+ "name": "reportValidity",
104524
+ "privacy": "public",
104525
+ "return": {
104526
+ "type": {
104527
+ "text": "boolean"
104528
+ }
104529
+ },
104530
+ "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.",
104531
+ "inheritedFrom": {
104532
+ "name": "SbbFormAssociatedMixin",
104533
+ "module": "core/mixins/form-associated-mixin.js"
104534
+ }
104535
+ },
104536
+ {
104537
+ "kind": "method",
104538
+ "name": "setCustomValidity",
104539
+ "privacy": "public",
104808
104540
  "return": {
104809
104541
  "type": {
104810
104542
  "text": "void"
@@ -104812,28 +104544,50 @@
104812
104544
  },
104813
104545
  "parameters": [
104814
104546
  {
104815
- "name": "value",
104547
+ "name": "message",
104816
104548
  "type": {
104817
104549
  "text": "string"
104818
104550
  }
104819
- },
104820
- {
104821
- "name": "force",
104822
- "optional": true,
104823
- "type": {
104824
- "text": "boolean"
104825
- }
104826
104551
  }
104827
104552
  ],
104553
+ "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.",
104828
104554
  "inheritedFrom": {
104829
- "name": "SbbElement",
104830
- "module": "core/base-elements/element.js"
104555
+ "name": "SbbFormAssociatedMixin",
104556
+ "module": "core/mixins/form-associated-mixin.js"
104831
104557
  }
104832
104558
  },
104833
104559
  {
104834
104560
  "kind": "method",
104835
- "name": "_slotchangeHandler",
104561
+ "name": "_hasDisabledAncestor",
104836
104562
  "privacy": "private",
104563
+ "return": {
104564
+ "type": {
104565
+ "text": "boolean"
104566
+ }
104567
+ },
104568
+ "inheritedFrom": {
104569
+ "name": "SbbFormAssociatedMixin",
104570
+ "module": "core/mixins/form-associated-mixin.js"
104571
+ }
104572
+ },
104573
+ {
104574
+ "kind": "method",
104575
+ "name": "formState",
104576
+ "privacy": "protected",
104577
+ "return": {
104578
+ "type": {
104579
+ "text": "FormRestoreState"
104580
+ }
104581
+ },
104582
+ "inheritedFrom": {
104583
+ "name": "SbbFormAssociatedMixin",
104584
+ "module": "core/mixins/form-associated-mixin.js"
104585
+ }
104586
+ },
104587
+ {
104588
+ "kind": "method",
104589
+ "name": "setValidityFlag",
104590
+ "privacy": "protected",
104837
104591
  "return": {
104838
104592
  "type": {
104839
104593
  "text": "void"
@@ -104841,27 +104595,35 @@
104841
104595
  },
104842
104596
  "parameters": [
104843
104597
  {
104844
- "name": "event",
104598
+ "name": "flag",
104845
104599
  "type": {
104846
- "text": "Event"
104600
+ "text": "T"
104847
104601
  }
104848
104602
  },
104849
104603
  {
104850
- "name": "slot",
104604
+ "name": "message",
104851
104605
  "type": {
104852
- "text": "HTMLSlotElement"
104606
+ "text": "string"
104607
+ }
104608
+ },
104609
+ {
104610
+ "name": "flagValue",
104611
+ "optional": true,
104612
+ "type": {
104613
+ "text": "ValidityStateFlags[T]"
104853
104614
  }
104854
104615
  }
104855
104616
  ],
104617
+ "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).",
104856
104618
  "inheritedFrom": {
104857
- "name": "SbbElement",
104858
- "module": "core/base-elements/element.js"
104619
+ "name": "SbbFormAssociatedMixin",
104620
+ "module": "core/mixins/form-associated-mixin.js"
104859
104621
  }
104860
104622
  },
104861
104623
  {
104862
104624
  "kind": "method",
104863
- "name": "_handleSlotChangeForSlottedState",
104864
- "privacy": "private",
104625
+ "name": "removeValidityFlag",
104626
+ "privacy": "protected",
104865
104627
  "return": {
104866
104628
  "type": {
104867
104629
  "text": "void"
@@ -104869,328 +104631,284 @@
104869
104631
  },
104870
104632
  "parameters": [
104871
104633
  {
104872
- "name": "slot",
104634
+ "name": "flag",
104873
104635
  "type": {
104874
- "text": "HTMLSlotElement"
104636
+ "text": "T"
104875
104637
  }
104876
104638
  }
104877
104639
  ],
104640
+ "description": "Removes the validity state flag entry and updates validity state.",
104878
104641
  "inheritedFrom": {
104879
- "name": "SbbElement",
104880
- "module": "core/base-elements/element.js"
104642
+ "name": "SbbFormAssociatedMixin",
104643
+ "module": "core/mixins/form-associated-mixin.js"
104881
104644
  }
104882
104645
  },
104883
104646
  {
104884
104647
  "kind": "method",
104885
- "name": "_updateSlottedState",
104886
- "privacy": "private",
104648
+ "name": "validate",
104649
+ "privacy": "protected",
104887
104650
  "return": {
104888
104651
  "type": {
104889
104652
  "text": "void"
104890
104653
  }
104891
104654
  },
104892
- "parameters": [
104893
- {
104894
- "name": "slot",
104895
- "type": {
104896
- "text": "HTMLSlotElement"
104897
- }
104898
- }
104899
- ],
104655
+ "description": "To be called whenever the current element needs to be validated.",
104900
104656
  "inheritedFrom": {
104901
- "name": "SbbElement",
104902
- "module": "core/base-elements/element.js"
104657
+ "name": "SbbFormAssociatedMixin",
104658
+ "module": "core/mixins/form-associated-mixin.js"
104903
104659
  }
104904
104660
  },
104905
104661
  {
104906
104662
  "kind": "method",
104907
- "name": "_observeTextNodesInSlot",
104908
- "privacy": "private",
104663
+ "name": "shouldValidate",
104664
+ "privacy": "protected",
104909
104665
  "return": {
104910
104666
  "type": {
104911
- "text": "void"
104667
+ "text": "boolean"
104912
104668
  }
104913
104669
  },
104914
104670
  "parameters": [
104915
104671
  {
104916
- "name": "slot",
104672
+ "name": "name",
104917
104673
  "type": {
104918
- "text": "HTMLSlotElement"
104674
+ "text": "PropertyKey | undefined"
104919
104675
  }
104920
104676
  }
104921
104677
  ],
104678
+ "description": "Whether validation should be run on a property change with the given name.",
104922
104679
  "inheritedFrom": {
104923
- "name": "SbbElement",
104924
- "module": "core/base-elements/element.js"
104680
+ "name": "SbbFormAssociatedMixin",
104681
+ "module": "core/mixins/form-associated-mixin.js"
104925
104682
  }
104926
104683
  },
104927
104684
  {
104928
104685
  "kind": "method",
104929
- "name": "_hasSlottedContent",
104686
+ "name": "_setInternalValidity",
104930
104687
  "privacy": "private",
104931
104688
  "return": {
104932
104689
  "type": {
104933
- "text": "boolean"
104690
+ "text": "void"
104934
104691
  }
104935
104692
  },
104936
- "parameters": [
104937
- {
104938
- "name": "slot",
104939
- "type": {
104940
- "text": "HTMLSlotElement"
104941
- }
104942
- }
104943
- ],
104944
104693
  "inheritedFrom": {
104945
- "name": "SbbElement",
104946
- "module": "core/base-elements/element.js"
104694
+ "name": "SbbFormAssociatedMixin",
104695
+ "module": "core/mixins/form-associated-mixin.js"
104947
104696
  }
104948
104697
  }
104949
104698
  ],
104950
- "mixins": [
104699
+ "events": [
104951
104700
  {
104952
- "name": "SbbDisabledMixin",
104953
- "module": "core.js"
104701
+ "name": "input",
104702
+ "type": {
104703
+ "text": "InputEvent"
104704
+ },
104705
+ "description": "The input event fires when the value has been changed as a direct result of a user action."
104954
104706
  },
104955
104707
  {
104956
- "name": "SbbFormAssociatedMixin",
104957
- "module": "core.js"
104958
- }
104959
- ],
104960
- "superclass": {
104961
- "name": "SbbElement",
104962
- "module": "core.js"
104963
- },
104964
- "attributes": [
104965
- {
104966
- "name": "disabled",
104967
- "description": "Whether the component is disabled.",
104968
- "default": "false",
104708
+ "name": "change",
104969
104709
  "type": {
104970
- "text": "boolean"
104710
+ "text": "Event"
104971
104711
  },
104972
- "fieldName": "disabled",
104973
- "inheritedFrom": {
104974
- "name": "SbbDisabledMixin",
104975
- "module": "core/mixins/disabled-mixin.js"
104976
- }
104712
+ "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."
104977
104713
  },
104978
104714
  {
104979
- "name": "name",
104980
- "description": "Name of the form element. Will be read from name attribute.",
104715
+ "name": "filechanged",
104981
104716
  "type": {
104982
- "text": "string"
104717
+ "text": "CustomEvent<Readonly<File>[]>"
104983
104718
  },
104984
- "fieldName": "name",
104985
- "inheritedFrom": {
104986
- "name": "SbbFormAssociatedMixin",
104987
- "module": "core/mixins/form-associated-mixin.js"
104988
- }
104719
+ "description": "An event which is emitted each time the file list changes."
104989
104720
  }
104990
- ]
104991
- },
104992
- {
104993
- "kind": "mixin",
104994
- "description": "",
104995
- "name": "SbbFileSelectorCommonElementMixin",
104996
- "members": [
104721
+ ],
104722
+ "attributes": [
104997
104723
  {
104998
- "kind": "field",
104999
- "name": "elementDependencies",
104724
+ "name": "size",
105000
104725
  "type": {
105001
- "text": "SbbElementType[]"
104726
+ "text": "'s' | 'm'"
105002
104727
  },
105003
- "privacy": "public",
105004
- "static": true,
105005
- "default": "[SbbSecondaryButtonElement]"
104728
+ "description": "Size variant, either s or m.",
104729
+ "default": "'m' / 's' (lean)",
104730
+ "fieldName": "size"
105006
104731
  },
105007
104732
  {
105008
- "kind": "field",
105009
- "name": "events",
105010
- "privacy": "public",
105011
- "static": true,
105012
- "readonly": true,
105013
- "default": "{ filechanged: 'filechanged', }",
105014
- "type": {
105015
- "text": "{\n filechanged: 'filechanged',\n }"
105016
- }
105017
- },
105018
- {
105019
- "kind": "field",
105020
- "name": "size",
105021
- "type": {
105022
- "text": "'s' | 'm'"
105023
- },
105024
- "privacy": "public",
105025
- "description": "Size variant, either s or m.",
105026
- "default": "'m' / 's' (lean)",
105027
- "attribute": "size",
105028
- "reflects": true
105029
- },
105030
- {
105031
- "kind": "field",
105032
- "name": "multiple",
104733
+ "name": "multiple",
105033
104734
  "type": {
105034
104735
  "text": "boolean"
105035
104736
  },
105036
- "privacy": "public",
105037
104737
  "default": "false",
105038
104738
  "description": "Whether more than one file can be selected.",
105039
- "attribute": "multiple"
104739
+ "fieldName": "multiple"
105040
104740
  },
105041
104741
  {
105042
- "kind": "field",
105043
- "name": "multipleMode",
104742
+ "name": "multiple-mode",
105044
104743
  "type": {
105045
104744
  "text": "'default' | 'persistent'"
105046
104745
  },
105047
- "privacy": "public",
105048
104746
  "default": "'default'",
105049
104747
  "description": "Whether the newly added files should override the previously added ones.",
105050
- "attribute": "multiple-mode"
104748
+ "fieldName": "multipleMode"
105051
104749
  },
105052
104750
  {
105053
- "kind": "field",
105054
104751
  "name": "accept",
105055
104752
  "type": {
105056
104753
  "text": "string"
105057
104754
  },
105058
- "privacy": "public",
105059
104755
  "default": "''",
105060
104756
  "description": "A comma-separated list of allowed unique file type specifiers.",
105061
- "attribute": "accept"
104757
+ "fieldName": "accept"
105062
104758
  },
105063
104759
  {
105064
- "kind": "field",
105065
- "name": "accessibilityLabel",
104760
+ "name": "accessibility-label",
105066
104761
  "type": {
105067
104762
  "text": "string"
105068
104763
  },
105069
- "privacy": "public",
105070
104764
  "default": "''",
105071
104765
  "description": "This will be forwarded as aria-label to the native input element.",
105072
- "attribute": "accessibility-label"
104766
+ "fieldName": "accessibilityLabel"
105073
104767
  },
105074
104768
  {
105075
- "kind": "field",
105076
- "name": "value",
104769
+ "name": "disabled",
104770
+ "description": "Whether the component is disabled.",
104771
+ "default": "false",
105077
104772
  "type": {
105078
- "text": "string | null"
104773
+ "text": "boolean"
105079
104774
  },
105080
- "privacy": "public",
105081
- "description": "The path of the first selected file. Empty string ('') if no file is selected",
104775
+ "fieldName": "disabled",
105082
104776
  "inheritedFrom": {
105083
- "name": "SbbFormAssociatedMixin",
105084
- "module": "core/mixins/form-associated-mixin.js"
104777
+ "name": "SbbDisabledMixin",
104778
+ "module": "core/mixins/disabled-mixin.js"
105085
104779
  }
105086
104780
  },
105087
104781
  {
105088
- "kind": "field",
105089
- "name": "files",
105090
- "privacy": "public",
105091
- "description": "The list of selected files.",
104782
+ "name": "name",
104783
+ "description": "Name of the form element. Will be read from name attribute.",
105092
104784
  "type": {
105093
- "text": "Readonly<File>[]"
104785
+ "text": "string"
104786
+ },
104787
+ "fieldName": "name",
104788
+ "inheritedFrom": {
104789
+ "name": "SbbFormAssociatedMixin",
104790
+ "module": "core/mixins/form-associated-mixin.js"
105094
104791
  }
104792
+ }
104793
+ ],
104794
+ "mixins": [
104795
+ {
104796
+ "name": "SbbDisabledMixin",
104797
+ "module": "core.js"
105095
104798
  },
105096
104799
  {
105097
- "kind": "field",
105098
- "name": "_files",
104800
+ "name": "SbbFormAssociatedMixin",
104801
+ "module": "core.js"
104802
+ }
104803
+ ],
104804
+ "parameters": [
104805
+ {
104806
+ "name": "superclass",
105099
104807
  "type": {
105100
- "text": "Readonly<File>[]"
105101
- },
105102
- "privacy": "private",
105103
- "default": "[]"
104808
+ "text": "T"
104809
+ }
104810
+ }
104811
+ ]
104812
+ }
104813
+ ],
104814
+ "exports": [
104815
+ {
104816
+ "kind": "js",
104817
+ "name": "fileSelectorCommonStyle",
104818
+ "declaration": {
104819
+ "name": "fileSelectorCommonStyle",
104820
+ "module": "file-selector/common/file-selector-common.js"
104821
+ }
104822
+ },
104823
+ {
104824
+ "kind": "js",
104825
+ "name": "SbbFileSelectorCommonElementMixinType",
104826
+ "declaration": {
104827
+ "name": "SbbFileSelectorCommonElementMixinType",
104828
+ "module": "file-selector/common/file-selector-common.js"
104829
+ }
104830
+ },
104831
+ {
104832
+ "kind": "js",
104833
+ "name": "SbbFileSelectorCommonElementMixin",
104834
+ "declaration": {
104835
+ "name": "SbbFileSelectorCommonElementMixin",
104836
+ "module": "file-selector/common/file-selector-common.js"
104837
+ }
104838
+ }
104839
+ ]
104840
+ },
104841
+ {
104842
+ "kind": "javascript-module",
104843
+ "path": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js",
104844
+ "declarations": [
104845
+ {
104846
+ "kind": "class",
104847
+ "description": "It acts as a native `summary` tag for the `sbb-expansion-panel` component.",
104848
+ "name": "SbbExpansionPanelHeaderElement",
104849
+ "slots": [
104850
+ {
104851
+ "description": "Use the unnamed slot to add content to the `sbb-expansion-panel-header`.",
104852
+ "name": ""
105104
104853
  },
104854
+ {
104855
+ "description": "Slot used to render the `sbb-expansion-panel-header` icon.",
104856
+ "name": "icon"
104857
+ }
104858
+ ],
104859
+ "members": [
105105
104860
  {
105106
104861
  "kind": "field",
105107
- "name": "type",
104862
+ "name": "elementName",
105108
104863
  "type": {
105109
104864
  "text": "string"
105110
104865
  },
105111
104866
  "privacy": "public",
105112
- "description": "Form type of element.",
105113
- "default": "'file'",
105114
- "readonly": true
104867
+ "static": true,
104868
+ "readonly": true,
104869
+ "inheritedFrom": {
104870
+ "name": "SbbElement",
104871
+ "module": "core/base-elements/element.js"
104872
+ },
104873
+ "default": "'sbb-expansion-panel-header'"
105115
104874
  },
105116
104875
  {
105117
104876
  "kind": "field",
105118
- "name": "_hiddenInput",
104877
+ "name": "events",
104878
+ "privacy": "public",
104879
+ "static": true,
104880
+ "readonly": true,
104881
+ "default": "{ toggleexpanded: 'toggleexpanded', }",
105119
104882
  "type": {
105120
- "text": "HTMLInputElement"
105121
- },
105122
- "privacy": "private"
104883
+ "text": "{\n toggleexpanded: 'toggleexpanded',\n }"
104884
+ }
105123
104885
  },
105124
104886
  {
105125
104887
  "kind": "field",
105126
- "name": "_suffixes",
105127
- "type": {
105128
- "text": "string[]"
105129
- },
104888
+ "name": "_mediaMatcher",
105130
104889
  "privacy": "private",
105131
- "default": "['B', 'kB', 'MB', 'GB', 'TB']"
104890
+ "default": "new SbbMediaMatcherController(this, { [SbbMediaQueryHover]: (m) => (this._isHover = m), })"
105132
104891
  },
105133
104892
  {
105134
104893
  "kind": "field",
105135
- "name": "_liveRegion",
104894
+ "name": "_isHover",
105136
104895
  "type": {
105137
- "text": "HTMLParagraphElement"
104896
+ "text": "boolean"
105138
104897
  },
105139
104898
  "privacy": "private"
105140
104899
  },
105141
104900
  {
105142
104901
  "kind": "field",
105143
- "name": "loadButton",
105144
- "type": {
105145
- "text": "SbbSecondaryButtonStaticElement"
105146
- },
105147
- "privacy": "protected"
105148
- },
105149
- {
105150
- "kind": "field",
105151
- "name": "language",
105152
- "privacy": "protected",
105153
- "default": "new SbbLanguageController(this)"
105154
- },
105155
- {
105156
- "kind": "field",
105157
- "name": "_counter",
105158
- "type": {
105159
- "text": "number"
105160
- },
105161
- "privacy": "private",
105162
- "default": "0"
105163
- },
105164
- {
105165
- "kind": "field",
105166
- "name": "_dragTarget",
104902
+ "name": "_previousSize",
105167
104903
  "type": {
105168
- "text": "HTMLElement | undefined"
104904
+ "text": "string | undefined"
105169
104905
  },
105170
104906
  "privacy": "private"
105171
104907
  },
105172
104908
  {
105173
104909
  "kind": "method",
105174
- "name": "renderTemplate",
105175
- "privacy": "protected",
105176
- "return": {
105177
- "type": {
105178
- "text": "TemplateResult"
105179
- }
105180
- },
105181
- "parameters": [
105182
- {
105183
- "name": "input",
105184
- "type": {
105185
- "text": "TemplateResult"
105186
- }
105187
- }
105188
- ]
105189
- },
105190
- {
105191
- "kind": "method",
105192
- "name": "formResetCallback",
105193
- "privacy": "public",
104910
+ "name": "_emitExpandedEvent",
104911
+ "privacy": "private",
105194
104912
  "return": {
105195
104913
  "type": {
105196
104914
  "text": "void"
@@ -105199,8 +104917,8 @@
105199
104917
  },
105200
104918
  {
105201
104919
  "kind": "method",
105202
- "name": "formStateRestoreCallback",
105203
- "privacy": "public",
104920
+ "name": "_onMouseMovement",
104921
+ "privacy": "private",
105204
104922
  "return": {
105205
104923
  "type": {
105206
104924
  "text": "void"
@@ -105208,214 +104926,484 @@
105208
104926
  },
105209
104927
  "parameters": [
105210
104928
  {
105211
- "name": "state",
105212
- "type": {
105213
- "text": "FormRestoreState | null"
105214
- }
105215
- },
105216
- {
105217
- "name": "_reason",
105218
- "optional": true,
104929
+ "name": "toggleDataAttribute",
105219
104930
  "type": {
105220
- "text": "FormRestoreReason"
104931
+ "text": "boolean"
105221
104932
  }
105222
104933
  }
105223
104934
  ]
105224
104935
  },
105225
104936
  {
105226
104937
  "kind": "method",
105227
- "name": "updateFormValue",
105228
- "privacy": "protected",
104938
+ "name": "_setIconState",
104939
+ "privacy": "private",
105229
104940
  "return": {
105230
104941
  "type": {
105231
104942
  "text": "void"
105232
104943
  }
105233
104944
  },
105234
- "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",
105235
- "inheritedFrom": {
105236
- "name": "SbbFormAssociatedMixin",
105237
- "module": "core/mixins/form-associated-mixin.js"
105238
- }
104945
+ "description": "The :state(icon) is used by the 'sbb-expansion-panel'.\nIt needs to be set before the"
105239
104946
  },
105240
104947
  {
105241
104948
  "kind": "method",
105242
- "name": "_checkFileEquality",
105243
- "privacy": "private",
104949
+ "name": "renderTemplate",
104950
+ "privacy": "protected",
105244
104951
  "return": {
105245
104952
  "type": {
105246
- "text": "boolean"
104953
+ "text": "TemplateResult"
105247
104954
  }
105248
104955
  },
105249
- "parameters": [
105250
- {
105251
- "name": "file1",
105252
- "type": {
105253
- "text": "Readonly<File>"
105254
- }
105255
- },
104956
+ "description": "Override this method to render the component template.",
104957
+ "inheritedFrom": {
104958
+ "name": "SbbActionBaseElement",
104959
+ "module": "core/base-elements/action-base-element.js"
104960
+ }
104961
+ },
104962
+ {
104963
+ "kind": "field",
104964
+ "name": "disabledInteractive",
104965
+ "type": {
104966
+ "text": "boolean"
104967
+ },
104968
+ "privacy": "public",
104969
+ "default": "false",
104970
+ "description": "Whether the button should be aria-disabled but stay interactive.",
104971
+ "attribute": "disabled-interactive",
104972
+ "reflects": true,
104973
+ "inheritedFrom": {
104974
+ "name": "SbbDisabledInteractiveMixin",
104975
+ "module": "core/mixins/disabled-mixin.js"
104976
+ }
104977
+ },
104978
+ {
104979
+ "kind": "field",
104980
+ "name": "disabled",
104981
+ "privacy": "public",
104982
+ "description": "Whether the component is disabled.",
104983
+ "default": "false",
104984
+ "type": {
104985
+ "text": "boolean"
104986
+ },
104987
+ "attribute": "disabled",
104988
+ "reflects": true,
104989
+ "inheritedFrom": {
104990
+ "name": "SbbDisabledMixin",
104991
+ "module": "core/mixins/disabled-mixin.js"
104992
+ }
104993
+ },
104994
+ {
104995
+ "kind": "field",
104996
+ "name": "#disabled",
104997
+ "privacy": "private",
104998
+ "type": {
104999
+ "text": "boolean"
105000
+ },
105001
+ "default": "false",
105002
+ "inheritedFrom": {
105003
+ "name": "SbbDisabledMixin",
105004
+ "module": "core/mixins/disabled-mixin.js"
105005
+ }
105006
+ },
105007
+ {
105008
+ "kind": "method",
105009
+ "name": "isDisabledExternally",
105010
+ "privacy": "protected",
105011
+ "return": {
105012
+ "type": {
105013
+ "text": "boolean"
105014
+ }
105015
+ },
105016
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
105017
+ "inheritedFrom": {
105018
+ "name": "SbbDisabledMixin",
105019
+ "module": "core/mixins/disabled-mixin.js"
105020
+ }
105021
+ },
105022
+ {
105023
+ "kind": "field",
105024
+ "name": "elementDependencies",
105025
+ "type": {
105026
+ "text": "SbbElementType[]"
105027
+ },
105028
+ "privacy": "public",
105029
+ "static": true,
105030
+ "inheritedFrom": {
105031
+ "name": "SbbElement",
105032
+ "module": "core/base-elements/element.js"
105033
+ },
105034
+ "default": "[SbbIconElement]"
105035
+ },
105036
+ {
105037
+ "kind": "field",
105038
+ "name": "iconName",
105039
+ "type": {
105040
+ "text": "string"
105041
+ },
105042
+ "privacy": "public",
105043
+ "default": "''",
105044
+ "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.",
105045
+ "attribute": "icon-name",
105046
+ "inheritedFrom": {
105047
+ "name": "SbbIconNameMixin",
105048
+ "module": "icon/icon-name-mixin.js"
105049
+ }
105050
+ },
105051
+ {
105052
+ "kind": "method",
105053
+ "name": "renderIconSlot",
105054
+ "privacy": "protected",
105055
+ "return": {
105056
+ "type": {
105057
+ "text": "TemplateResult"
105058
+ }
105059
+ },
105060
+ "parameters": [
105256
105061
  {
105257
- "name": "file2",
105062
+ "name": "classname",
105063
+ "optional": true,
105258
105064
  "type": {
105259
- "text": "Readonly<File>"
105065
+ "text": "string"
105260
105066
  }
105261
105067
  }
105262
- ]
105068
+ ],
105069
+ "inheritedFrom": {
105070
+ "name": "SbbIconNameMixin",
105071
+ "module": "icon/icon-name-mixin.js"
105072
+ }
105263
105073
  },
105264
105074
  {
105265
105075
  "kind": "method",
105266
- "name": "_onFocus",
105076
+ "name": "renderIconName",
105077
+ "privacy": "protected",
105078
+ "return": {
105079
+ "type": {
105080
+ "text": "string"
105081
+ }
105082
+ },
105083
+ "inheritedFrom": {
105084
+ "name": "SbbIconNameMixin",
105085
+ "module": "icon/icon-name-mixin.js"
105086
+ }
105087
+ },
105088
+ {
105089
+ "kind": "method",
105090
+ "name": "_renderIconName",
105091
+ "privacy": "private",
105092
+ "return": {
105093
+ "type": {
105094
+ "text": "string"
105095
+ }
105096
+ },
105097
+ "inheritedFrom": {
105098
+ "name": "SbbIconNameMixin",
105099
+ "module": "icon/icon-name-mixin.js"
105100
+ }
105101
+ },
105102
+ {
105103
+ "kind": "field",
105104
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
105105
+ "type": {
105106
+ "text": "array"
105107
+ },
105108
+ "privacy": "private",
105109
+ "readonly": true,
105110
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
105111
+ "inheritedFrom": {
105112
+ "name": "SbbButtonBaseElement",
105113
+ "module": "core/base-elements/button-base-element.js"
105114
+ }
105115
+ },
105116
+ {
105117
+ "kind": "field",
105118
+ "name": "value",
105119
+ "type": {
105120
+ "text": "string"
105121
+ },
105122
+ "privacy": "public",
105123
+ "inheritedFrom": {
105124
+ "name": "SbbButtonBaseElement",
105125
+ "module": "core/base-elements/button-base-element.js"
105126
+ },
105127
+ "default": "''",
105128
+ "description": "Value of the form element.",
105129
+ "attribute": "value"
105130
+ },
105131
+ {
105132
+ "kind": "field",
105133
+ "name": "type",
105134
+ "privacy": "public",
105135
+ "description": "The type attribute to use for the button.",
105136
+ "default": "'button'",
105137
+ "type": {
105138
+ "text": "SbbButtonType"
105139
+ },
105140
+ "attribute": "type",
105141
+ "inheritedFrom": {
105142
+ "name": "SbbButtonBaseElement",
105143
+ "module": "core/base-elements/button-base-element.js"
105144
+ }
105145
+ },
105146
+ {
105147
+ "kind": "field",
105148
+ "name": "form",
105149
+ "type": {
105150
+ "text": "HTMLFormElement | null"
105151
+ },
105152
+ "privacy": "public",
105153
+ "description": "The `<form>` element to associate the button with.",
105154
+ "inheritedFrom": {
105155
+ "name": "SbbButtonBaseElement",
105156
+ "module": "core/base-elements/button-base-element.js"
105157
+ },
105158
+ "attribute": "form"
105159
+ },
105160
+ {
105161
+ "kind": "field",
105162
+ "name": "_formId",
105163
+ "type": {
105164
+ "text": "string"
105165
+ },
105166
+ "privacy": "private",
105167
+ "default": "''",
105168
+ "inheritedFrom": {
105169
+ "name": "SbbButtonBaseElement",
105170
+ "module": "core/base-elements/button-base-element.js"
105171
+ }
105172
+ },
105173
+ {
105174
+ "kind": "field",
105175
+ "name": "_handleButtonClick",
105176
+ "privacy": "private",
105177
+ "inheritedFrom": {
105178
+ "name": "SbbButtonBaseElement",
105179
+ "module": "core/base-elements/button-base-element.js"
105180
+ }
105181
+ },
105182
+ {
105183
+ "kind": "method",
105184
+ "name": "_requestSubmit",
105267
105185
  "privacy": "private",
105268
105186
  "return": {
105269
105187
  "type": {
105270
105188
  "text": "void"
105271
105189
  }
105190
+ },
105191
+ "parameters": [
105192
+ {
105193
+ "name": "form",
105194
+ "type": {
105195
+ "text": "HTMLFormElement"
105196
+ }
105197
+ }
105198
+ ],
105199
+ "inheritedFrom": {
105200
+ "name": "SbbButtonBaseElement",
105201
+ "module": "core/base-elements/button-base-element.js"
105202
+ }
105203
+ },
105204
+ {
105205
+ "kind": "field",
105206
+ "name": "_formKeyDown",
105207
+ "privacy": "private",
105208
+ "inheritedFrom": {
105209
+ "name": "SbbButtonBaseElement",
105210
+ "module": "core/base-elements/button-base-element.js"
105211
+ }
105212
+ },
105213
+ {
105214
+ "kind": "field",
105215
+ "name": "formAssociated",
105216
+ "type": {
105217
+ "text": "boolean"
105218
+ },
105219
+ "privacy": "public",
105220
+ "static": true,
105221
+ "default": "true",
105222
+ "inheritedFrom": {
105223
+ "name": "SbbFormAssociatedMixin",
105224
+ "module": "core/mixins/form-associated-mixin.js"
105225
+ }
105226
+ },
105227
+ {
105228
+ "kind": "field",
105229
+ "name": "name",
105230
+ "privacy": "public",
105231
+ "description": "Name of the form element. Will be read from name attribute.",
105232
+ "type": {
105233
+ "text": "string"
105234
+ },
105235
+ "attribute": "name",
105236
+ "inheritedFrom": {
105237
+ "name": "SbbFormAssociatedMixin",
105238
+ "module": "core/mixins/form-associated-mixin.js"
105239
+ }
105240
+ },
105241
+ {
105242
+ "kind": "field",
105243
+ "name": "validity",
105244
+ "type": {
105245
+ "text": "ValidityState"
105246
+ },
105247
+ "privacy": "public",
105248
+ "description": "Returns the ValidityState object for this element.",
105249
+ "readonly": true,
105250
+ "inheritedFrom": {
105251
+ "name": "SbbFormAssociatedMixin",
105252
+ "module": "core/mixins/form-associated-mixin.js"
105253
+ }
105254
+ },
105255
+ {
105256
+ "kind": "field",
105257
+ "name": "validationMessage",
105258
+ "type": {
105259
+ "text": "string"
105260
+ },
105261
+ "privacy": "public",
105262
+ "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.",
105263
+ "readonly": true,
105264
+ "inheritedFrom": {
105265
+ "name": "SbbFormAssociatedMixin",
105266
+ "module": "core/mixins/form-associated-mixin.js"
105272
105267
  }
105273
105268
  },
105274
105269
  {
105275
- "kind": "method",
105276
- "name": "_onBlur",
105277
- "privacy": "private",
105278
- "return": {
105279
- "type": {
105280
- "text": "void"
105281
- }
105270
+ "kind": "field",
105271
+ "name": "willValidate",
105272
+ "type": {
105273
+ "text": "boolean"
105274
+ },
105275
+ "privacy": "public",
105276
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
105277
+ "readonly": true,
105278
+ "inheritedFrom": {
105279
+ "name": "SbbFormAssociatedMixin",
105280
+ "module": "core/mixins/form-associated-mixin.js"
105282
105281
  }
105283
105282
  },
105284
105283
  {
105285
- "kind": "method",
105286
- "name": "_readFiles",
105284
+ "kind": "field",
105285
+ "name": "_validityStates",
105287
105286
  "privacy": "private",
105288
- "return": {
105289
- "type": {
105290
- "text": "void"
105291
- }
105292
- },
105293
- "parameters": [
105294
- {
105295
- "name": "event",
105296
- "type": {
105297
- "text": "Event"
105298
- }
105299
- }
105300
- ]
105287
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
105288
+ "inheritedFrom": {
105289
+ "name": "SbbFormAssociatedMixin",
105290
+ "module": "core/mixins/form-associated-mixin.js"
105291
+ }
105301
105292
  },
105302
105293
  {
105303
- "kind": "method",
105304
- "name": "createFileList",
105305
- "privacy": "protected",
105306
- "return": {
105307
- "type": {
105308
- "text": "void"
105309
- }
105294
+ "kind": "field",
105295
+ "name": "formDisabled",
105296
+ "type": {
105297
+ "text": "boolean"
105310
105298
  },
105311
- "parameters": [
105312
- {
105313
- "name": "files",
105314
- "type": {
105315
- "text": "FileList"
105316
- }
105317
- }
105318
- ]
105319
- },
105320
- {
105321
- "kind": "method",
105322
- "name": "getButtonLabel",
105323
105299
  "privacy": "protected",
105324
- "return": {
105325
- "type": {
105326
- "text": "string"
105327
- }
105300
+ "default": "false",
105301
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
105302
+ "inheritedFrom": {
105303
+ "name": "SbbFormAssociatedMixin",
105304
+ "module": "core/mixins/form-associated-mixin.js"
105328
105305
  }
105329
105306
  },
105330
105307
  {
105331
105308
  "kind": "method",
105332
- "name": "_removeFile",
105333
- "privacy": "private",
105309
+ "name": "checkValidity",
105310
+ "privacy": "public",
105334
105311
  "return": {
105335
105312
  "type": {
105336
- "text": "void"
105313
+ "text": "boolean"
105337
105314
  }
105338
105315
  },
105339
- "parameters": [
105340
- {
105341
- "name": "file",
105342
- "type": {
105343
- "text": "Readonly<File>"
105344
- }
105345
- }
105346
- ]
105316
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
105317
+ "inheritedFrom": {
105318
+ "name": "SbbFormAssociatedMixin",
105319
+ "module": "core/mixins/form-associated-mixin.js"
105320
+ }
105347
105321
  },
105348
105322
  {
105349
105323
  "kind": "method",
105350
- "name": "_dispatchFileChangedEvent",
105351
- "privacy": "private",
105324
+ "name": "reportValidity",
105325
+ "privacy": "public",
105352
105326
  "return": {
105353
105327
  "type": {
105354
- "text": "void"
105328
+ "text": "boolean"
105355
105329
  }
105330
+ },
105331
+ "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.",
105332
+ "inheritedFrom": {
105333
+ "name": "SbbFormAssociatedMixin",
105334
+ "module": "core/mixins/form-associated-mixin.js"
105356
105335
  }
105357
105336
  },
105358
105337
  {
105359
105338
  "kind": "method",
105360
- "name": "_formatFileSize",
105361
- "privacy": "private",
105339
+ "name": "setCustomValidity",
105340
+ "privacy": "public",
105362
105341
  "return": {
105363
105342
  "type": {
105364
- "text": "string"
105343
+ "text": "void"
105365
105344
  }
105366
105345
  },
105367
105346
  "parameters": [
105368
105347
  {
105369
- "name": "size",
105348
+ "name": "message",
105370
105349
  "type": {
105371
- "text": "number"
105350
+ "text": "string"
105372
105351
  }
105373
105352
  }
105374
105353
  ],
105375
- "description": "Calculates the correct unit for the file's size."
105354
+ "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.",
105355
+ "inheritedFrom": {
105356
+ "name": "SbbFormAssociatedMixin",
105357
+ "module": "core/mixins/form-associated-mixin.js"
105358
+ }
105376
105359
  },
105377
105360
  {
105378
105361
  "kind": "method",
105379
- "name": "_updateA11yLiveRegion",
105362
+ "name": "_hasDisabledAncestor",
105380
105363
  "privacy": "private",
105381
105364
  "return": {
105382
105365
  "type": {
105383
- "text": "void"
105366
+ "text": "boolean"
105384
105367
  }
105368
+ },
105369
+ "inheritedFrom": {
105370
+ "name": "SbbFormAssociatedMixin",
105371
+ "module": "core/mixins/form-associated-mixin.js"
105385
105372
  }
105386
105373
  },
105387
105374
  {
105388
105375
  "kind": "method",
105389
- "name": "_renderFileList",
105390
- "privacy": "private",
105376
+ "name": "updateFormValue",
105377
+ "privacy": "protected",
105391
105378
  "return": {
105392
105379
  "type": {
105393
- "text": "TemplateResult"
105380
+ "text": "void"
105394
105381
  }
105382
+ },
105383
+ "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",
105384
+ "inheritedFrom": {
105385
+ "name": "SbbFormAssociatedMixin",
105386
+ "module": "core/mixins/form-associated-mixin.js"
105395
105387
  }
105396
105388
  },
105397
105389
  {
105398
105390
  "kind": "method",
105399
- "name": "_onDragEnter",
105400
- "privacy": "private",
105391
+ "name": "formState",
105392
+ "privacy": "protected",
105401
105393
  "return": {
105402
105394
  "type": {
105403
- "text": "void"
105395
+ "text": "FormRestoreState"
105404
105396
  }
105405
105397
  },
105406
- "parameters": [
105407
- {
105408
- "name": "event",
105409
- "type": {
105410
- "text": "DragEvent"
105411
- }
105412
- }
105413
- ]
105398
+ "inheritedFrom": {
105399
+ "name": "SbbFormAssociatedMixin",
105400
+ "module": "core/mixins/form-associated-mixin.js"
105401
+ }
105414
105402
  },
105415
105403
  {
105416
105404
  "kind": "method",
105417
- "name": "_onDragLeave",
105418
- "privacy": "private",
105405
+ "name": "setValidityFlag",
105406
+ "privacy": "protected",
105419
105407
  "return": {
105420
105408
  "type": {
105421
105409
  "text": "void"
@@ -105423,53 +105411,35 @@
105423
105411
  },
105424
105412
  "parameters": [
105425
105413
  {
105426
- "name": "event",
105414
+ "name": "flag",
105427
105415
  "type": {
105428
- "text": "DragEvent"
105416
+ "text": "T"
105429
105417
  }
105430
- }
105431
- ]
105432
- },
105433
- {
105434
- "kind": "method",
105435
- "name": "_onFileDrop",
105436
- "privacy": "private",
105437
- "return": {
105438
- "type": {
105439
- "text": "void"
105440
- }
105441
- },
105442
- "parameters": [
105418
+ },
105443
105419
  {
105444
- "name": "event",
105420
+ "name": "message",
105445
105421
  "type": {
105446
- "text": "DragEvent"
105422
+ "text": "string"
105447
105423
  }
105448
- }
105449
- ]
105450
- },
105451
- {
105452
- "kind": "method",
105453
- "name": "_blockEvent",
105454
- "privacy": "private",
105455
- "return": {
105456
- "type": {
105457
- "text": "void"
105458
- }
105459
- },
105460
- "parameters": [
105424
+ },
105461
105425
  {
105462
- "name": "event",
105426
+ "name": "flagValue",
105427
+ "optional": true,
105463
105428
  "type": {
105464
- "text": "DragEvent"
105429
+ "text": "ValidityStateFlags[T]"
105465
105430
  }
105466
105431
  }
105467
- ]
105432
+ ],
105433
+ "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).",
105434
+ "inheritedFrom": {
105435
+ "name": "SbbFormAssociatedMixin",
105436
+ "module": "core/mixins/form-associated-mixin.js"
105437
+ }
105468
105438
  },
105469
105439
  {
105470
105440
  "kind": "method",
105471
- "name": "_setDragState",
105472
- "privacy": "private",
105441
+ "name": "removeValidityFlag",
105442
+ "privacy": "protected",
105473
105443
  "return": {
105474
105444
  "type": {
105475
105445
  "text": "void"
@@ -105477,74 +105447,65 @@
105477
105447
  },
105478
105448
  "parameters": [
105479
105449
  {
105480
- "name": "dragTarget",
105481
- "default": "undefined",
105482
- "type": {
105483
- "text": "HTMLElement | undefined"
105484
- }
105485
- },
105486
- {
105487
- "name": "isDragEnter",
105488
- "default": "false",
105450
+ "name": "flag",
105489
105451
  "type": {
105490
- "text": "boolean"
105452
+ "text": "T"
105491
105453
  }
105492
105454
  }
105493
- ]
105494
- },
105495
- {
105496
- "kind": "field",
105497
- "name": "disabled",
105498
- "privacy": "public",
105499
- "description": "Whether the component is disabled.",
105500
- "default": "false",
105501
- "type": {
105502
- "text": "boolean"
105503
- },
105504
- "attribute": "disabled",
105505
- "reflects": true,
105455
+ ],
105456
+ "description": "Removes the validity state flag entry and updates validity state.",
105506
105457
  "inheritedFrom": {
105507
- "name": "SbbDisabledMixin",
105508
- "module": "core/mixins/disabled-mixin.js"
105458
+ "name": "SbbFormAssociatedMixin",
105459
+ "module": "core/mixins/form-associated-mixin.js"
105509
105460
  }
105510
- },
105511
- {
105512
- "kind": "field",
105513
- "name": "#disabled",
105514
- "privacy": "private",
105515
- "type": {
105516
- "text": "boolean"
105461
+ },
105462
+ {
105463
+ "kind": "method",
105464
+ "name": "validate",
105465
+ "privacy": "protected",
105466
+ "return": {
105467
+ "type": {
105468
+ "text": "void"
105469
+ }
105517
105470
  },
105518
- "default": "false",
105471
+ "description": "To be called whenever the current element needs to be validated.",
105519
105472
  "inheritedFrom": {
105520
- "name": "SbbDisabledMixin",
105521
- "module": "core/mixins/disabled-mixin.js"
105473
+ "name": "SbbFormAssociatedMixin",
105474
+ "module": "core/mixins/form-associated-mixin.js"
105522
105475
  }
105523
105476
  },
105524
105477
  {
105525
105478
  "kind": "method",
105526
- "name": "isDisabledExternally",
105479
+ "name": "shouldValidate",
105527
105480
  "privacy": "protected",
105528
105481
  "return": {
105529
105482
  "type": {
105530
105483
  "text": "boolean"
105531
105484
  }
105532
105485
  },
105533
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
105486
+ "parameters": [
105487
+ {
105488
+ "name": "name",
105489
+ "type": {
105490
+ "text": "PropertyKey | undefined"
105491
+ }
105492
+ }
105493
+ ],
105494
+ "description": "Whether validation should be run on a property change with the given name.",
105534
105495
  "inheritedFrom": {
105535
- "name": "SbbDisabledMixin",
105536
- "module": "core/mixins/disabled-mixin.js"
105496
+ "name": "SbbFormAssociatedMixin",
105497
+ "module": "core/mixins/form-associated-mixin.js"
105537
105498
  }
105538
105499
  },
105539
105500
  {
105540
- "kind": "field",
105541
- "name": "formAssociated",
105542
- "type": {
105543
- "text": "boolean"
105501
+ "kind": "method",
105502
+ "name": "_setInternalValidity",
105503
+ "privacy": "private",
105504
+ "return": {
105505
+ "type": {
105506
+ "text": "void"
105507
+ }
105544
105508
  },
105545
- "privacy": "public",
105546
- "static": true,
105547
- "default": "true",
105548
105509
  "inheritedFrom": {
105549
105510
  "name": "SbbFormAssociatedMixin",
105550
105511
  "module": "core/mixins/form-associated-mixin.js"
@@ -105552,183 +105513,230 @@
105552
105513
  },
105553
105514
  {
105554
105515
  "kind": "field",
105555
- "name": "form",
105516
+ "name": "role",
105556
105517
  "type": {
105557
- "text": "HTMLFormElement | null"
105518
+ "text": "ElementInternals['role']"
105558
105519
  },
105559
105520
  "privacy": "public",
105560
- "description": "Returns the form owner of this element.",
105521
+ "static": true,
105522
+ "inheritedFrom": {
105523
+ "name": "SbbElement",
105524
+ "module": "core/base-elements/element.js"
105525
+ },
105561
105526
  "readonly": true,
105527
+ "default": "'button'"
105528
+ },
105529
+ {
105530
+ "kind": "field",
105531
+ "name": "_preventScrollOnSpaceKeydown",
105532
+ "privacy": "private",
105533
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
105534
+ "parameters": [
105535
+ {
105536
+ "description": "The origin event.",
105537
+ "name": "event"
105538
+ }
105539
+ ],
105562
105540
  "inheritedFrom": {
105563
- "name": "SbbFormAssociatedMixin",
105564
- "module": "core/mixins/form-associated-mixin.js"
105541
+ "name": "SbbButtonLikeBaseElement",
105542
+ "module": "core/base-elements/button-base-element.js"
105565
105543
  }
105566
105544
  },
105567
105545
  {
105568
105546
  "kind": "field",
105569
- "name": "name",
105570
- "privacy": "public",
105571
- "description": "Name of the form element. Will be read from name attribute.",
105572
- "type": {
105573
- "text": "string"
105574
- },
105575
- "attribute": "name",
105547
+ "name": "_removeActiveMarker",
105548
+ "privacy": "private",
105576
105549
  "inheritedFrom": {
105577
- "name": "SbbFormAssociatedMixin",
105578
- "module": "core/mixins/form-associated-mixin.js"
105550
+ "name": "SbbButtonLikeBaseElement",
105551
+ "module": "core/base-elements/button-base-element.js"
105579
105552
  }
105580
105553
  },
105581
105554
  {
105582
105555
  "kind": "field",
105583
- "name": "validity",
105556
+ "name": "_dispatchClickEventOnSpaceKeyup",
105557
+ "privacy": "private",
105558
+ "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.",
105559
+ "parameters": [
105560
+ {
105561
+ "description": "The origin event.",
105562
+ "name": "event"
105563
+ }
105564
+ ],
105565
+ "inheritedFrom": {
105566
+ "name": "SbbButtonLikeBaseElement",
105567
+ "module": "core/base-elements/button-base-element.js"
105568
+ }
105569
+ },
105570
+ {
105571
+ "kind": "field",
105572
+ "name": "_dispatchClickEvent",
105573
+ "privacy": "private",
105574
+ "inheritedFrom": {
105575
+ "name": "SbbButtonLikeBaseElement",
105576
+ "module": "core/base-elements/button-base-element.js"
105577
+ }
105578
+ },
105579
+ {
105580
+ "kind": "field",
105581
+ "name": "maybeDisabled",
105584
105582
  "type": {
105585
- "text": "ValidityState"
105583
+ "text": "boolean | undefined"
105586
105584
  },
105587
- "privacy": "public",
105588
- "description": "Returns the ValidityState object for this element.",
105585
+ "privacy": "protected",
105589
105586
  "readonly": true,
105590
105587
  "inheritedFrom": {
105591
- "name": "SbbFormAssociatedMixin",
105592
- "module": "core/mixins/form-associated-mixin.js"
105588
+ "name": "SbbActionBaseElement",
105589
+ "module": "core/base-elements/action-base-element.js"
105593
105590
  }
105594
105591
  },
105595
105592
  {
105596
105593
  "kind": "field",
105597
- "name": "validationMessage",
105594
+ "name": "maybeDisabledInteractive",
105598
105595
  "type": {
105599
- "text": "string"
105596
+ "text": "boolean | undefined"
105600
105597
  },
105601
- "privacy": "public",
105602
- "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.",
105598
+ "privacy": "protected",
105603
105599
  "readonly": true,
105604
105600
  "inheritedFrom": {
105605
- "name": "SbbFormAssociatedMixin",
105606
- "module": "core/mixins/form-associated-mixin.js"
105601
+ "name": "SbbActionBaseElement",
105602
+ "module": "core/base-elements/action-base-element.js"
105603
+ }
105604
+ },
105605
+ {
105606
+ "kind": "method",
105607
+ "name": "setupBaseEventHandlers",
105608
+ "privacy": "protected",
105609
+ "return": {
105610
+ "type": {
105611
+ "text": "void"
105612
+ }
105613
+ },
105614
+ "inheritedFrom": {
105615
+ "name": "SbbActionBaseElement",
105616
+ "module": "core/base-elements/action-base-element.js"
105607
105617
  }
105608
105618
  },
105609
105619
  {
105610
105620
  "kind": "field",
105611
- "name": "willValidate",
105621
+ "name": "['_$sbbElement$']",
105612
105622
  "type": {
105613
105623
  "text": "boolean"
105614
105624
  },
105615
105625
  "privacy": "public",
105616
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
105617
- "readonly": true,
105626
+ "static": true,
105627
+ "default": "true",
105618
105628
  "inheritedFrom": {
105619
- "name": "SbbFormAssociatedMixin",
105620
- "module": "core/mixins/form-associated-mixin.js"
105629
+ "name": "SbbElement",
105630
+ "module": "core/base-elements/element.js"
105621
105631
  }
105622
105632
  },
105623
105633
  {
105624
105634
  "kind": "field",
105625
- "name": "_validityStates",
105635
+ "name": "_controllers",
105636
+ "type": {
105637
+ "text": "Set<SbbReactiveController> | undefined"
105638
+ },
105626
105639
  "privacy": "private",
105627
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
105628
105640
  "inheritedFrom": {
105629
- "name": "SbbFormAssociatedMixin",
105630
- "module": "core/mixins/form-associated-mixin.js"
105641
+ "name": "SbbElement",
105642
+ "module": "core/base-elements/element.js"
105631
105643
  }
105632
105644
  },
105633
105645
  {
105634
105646
  "kind": "field",
105635
- "name": "formDisabled",
105647
+ "name": "_hydrationRequired",
105636
105648
  "type": {
105637
105649
  "text": "boolean"
105638
105650
  },
105639
- "privacy": "protected",
105640
- "default": "false",
105641
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
105651
+ "privacy": "private",
105652
+ "default": "!!this.shadowRoot",
105642
105653
  "inheritedFrom": {
105643
- "name": "SbbFormAssociatedMixin",
105644
- "module": "core/mixins/form-associated-mixin.js"
105654
+ "name": "SbbElement",
105655
+ "module": "core/base-elements/element.js"
105645
105656
  }
105646
105657
  },
105647
105658
  {
105648
- "kind": "method",
105649
- "name": "checkValidity",
105650
- "privacy": "public",
105651
- "return": {
105652
- "type": {
105653
- "text": "boolean"
105654
- }
105655
- },
105656
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
105659
+ "kind": "field",
105660
+ "name": "_hydrationComplete",
105661
+ "privacy": "private",
105662
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
105657
105663
  "inheritedFrom": {
105658
- "name": "SbbFormAssociatedMixin",
105659
- "module": "core/mixins/form-associated-mixin.js"
105664
+ "name": "SbbElement",
105665
+ "module": "core/base-elements/element.js"
105660
105666
  }
105661
105667
  },
105662
105668
  {
105663
- "kind": "method",
105664
- "name": "reportValidity",
105665
- "privacy": "public",
105666
- "return": {
105667
- "type": {
105668
- "text": "boolean"
105669
- }
105669
+ "kind": "field",
105670
+ "name": "_resolveHydration",
105671
+ "type": {
105672
+ "text": "(hydrationRequired: boolean) => void"
105670
105673
  },
105671
- "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.",
105674
+ "privacy": "private",
105672
105675
  "inheritedFrom": {
105673
- "name": "SbbFormAssociatedMixin",
105674
- "module": "core/mixins/form-associated-mixin.js"
105676
+ "name": "SbbElement",
105677
+ "module": "core/base-elements/element.js"
105675
105678
  }
105676
105679
  },
105677
105680
  {
105678
- "kind": "method",
105679
- "name": "setCustomValidity",
105680
- "privacy": "public",
105681
- "return": {
105682
- "type": {
105683
- "text": "void"
105684
- }
105681
+ "kind": "field",
105682
+ "name": "_textObserver",
105683
+ "type": {
105684
+ "text": "MutationObserver | undefined"
105685
105685
  },
105686
- "parameters": [
105687
- {
105688
- "name": "message",
105689
- "type": {
105690
- "text": "string"
105691
- }
105692
- }
105693
- ],
105694
- "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.",
105686
+ "privacy": "private",
105695
105687
  "inheritedFrom": {
105696
- "name": "SbbFormAssociatedMixin",
105697
- "module": "core/mixins/form-associated-mixin.js"
105688
+ "name": "SbbElement",
105689
+ "module": "core/base-elements/element.js"
105698
105690
  }
105699
105691
  },
105700
105692
  {
105701
- "kind": "method",
105702
- "name": "_hasDisabledAncestor",
105703
- "privacy": "private",
105704
- "return": {
105705
- "type": {
105706
- "text": "boolean"
105707
- }
105693
+ "kind": "field",
105694
+ "name": "hydrationRequired",
105695
+ "type": {
105696
+ "text": "boolean"
105708
105697
  },
105698
+ "privacy": "protected",
105699
+ "description": "Returns whether hydration is required and not completed.",
105700
+ "readonly": true,
105709
105701
  "inheritedFrom": {
105710
- "name": "SbbFormAssociatedMixin",
105711
- "module": "core/mixins/form-associated-mixin.js"
105712
- }
105702
+ "name": "SbbElement",
105703
+ "module": "core/base-elements/element.js"
105704
+ },
105705
+ "default": "!!this.shadowRoot"
105713
105706
  },
105714
105707
  {
105715
105708
  "kind": "method",
105716
- "name": "formState",
105709
+ "name": "toggleState",
105717
105710
  "privacy": "protected",
105718
105711
  "return": {
105719
105712
  "type": {
105720
- "text": "FormRestoreState"
105713
+ "text": "void"
105721
105714
  }
105722
105715
  },
105716
+ "parameters": [
105717
+ {
105718
+ "name": "value",
105719
+ "type": {
105720
+ "text": "string"
105721
+ }
105722
+ },
105723
+ {
105724
+ "name": "force",
105725
+ "optional": true,
105726
+ "type": {
105727
+ "text": "boolean"
105728
+ }
105729
+ }
105730
+ ],
105723
105731
  "inheritedFrom": {
105724
- "name": "SbbFormAssociatedMixin",
105725
- "module": "core/mixins/form-associated-mixin.js"
105732
+ "name": "SbbElement",
105733
+ "module": "core/base-elements/element.js"
105726
105734
  }
105727
105735
  },
105728
105736
  {
105729
105737
  "kind": "method",
105730
- "name": "setValidityFlag",
105731
- "privacy": "protected",
105738
+ "name": "_slotchangeHandler",
105739
+ "privacy": "private",
105732
105740
  "return": {
105733
105741
  "type": {
105734
105742
  "text": "void"
@@ -105736,35 +105744,27 @@
105736
105744
  },
105737
105745
  "parameters": [
105738
105746
  {
105739
- "name": "flag",
105740
- "type": {
105741
- "text": "T"
105742
- }
105743
- },
105744
- {
105745
- "name": "message",
105747
+ "name": "event",
105746
105748
  "type": {
105747
- "text": "string"
105749
+ "text": "Event"
105748
105750
  }
105749
105751
  },
105750
105752
  {
105751
- "name": "flagValue",
105752
- "optional": true,
105753
+ "name": "slot",
105753
105754
  "type": {
105754
- "text": "ValidityStateFlags[T]"
105755
+ "text": "HTMLSlotElement"
105755
105756
  }
105756
105757
  }
105757
105758
  ],
105758
- "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).",
105759
105759
  "inheritedFrom": {
105760
- "name": "SbbFormAssociatedMixin",
105761
- "module": "core/mixins/form-associated-mixin.js"
105760
+ "name": "SbbElement",
105761
+ "module": "core/base-elements/element.js"
105762
105762
  }
105763
105763
  },
105764
105764
  {
105765
105765
  "kind": "method",
105766
- "name": "removeValidityFlag",
105767
- "privacy": "protected",
105766
+ "name": "_handleSlotChangeForSlottedState",
105767
+ "privacy": "private",
105768
105768
  "return": {
105769
105769
  "type": {
105770
105770
  "text": "void"
@@ -105772,151 +105772,185 @@
105772
105772
  },
105773
105773
  "parameters": [
105774
105774
  {
105775
- "name": "flag",
105775
+ "name": "slot",
105776
105776
  "type": {
105777
- "text": "T"
105777
+ "text": "HTMLSlotElement"
105778
105778
  }
105779
105779
  }
105780
105780
  ],
105781
- "description": "Removes the validity state flag entry and updates validity state.",
105782
105781
  "inheritedFrom": {
105783
- "name": "SbbFormAssociatedMixin",
105784
- "module": "core/mixins/form-associated-mixin.js"
105782
+ "name": "SbbElement",
105783
+ "module": "core/base-elements/element.js"
105785
105784
  }
105786
105785
  },
105787
105786
  {
105788
105787
  "kind": "method",
105789
- "name": "validate",
105790
- "privacy": "protected",
105788
+ "name": "_updateSlottedState",
105789
+ "privacy": "private",
105791
105790
  "return": {
105792
105791
  "type": {
105793
105792
  "text": "void"
105794
105793
  }
105795
105794
  },
105796
- "description": "To be called whenever the current element needs to be validated.",
105795
+ "parameters": [
105796
+ {
105797
+ "name": "slot",
105798
+ "type": {
105799
+ "text": "HTMLSlotElement"
105800
+ }
105801
+ }
105802
+ ],
105797
105803
  "inheritedFrom": {
105798
- "name": "SbbFormAssociatedMixin",
105799
- "module": "core/mixins/form-associated-mixin.js"
105804
+ "name": "SbbElement",
105805
+ "module": "core/base-elements/element.js"
105800
105806
  }
105801
105807
  },
105802
105808
  {
105803
105809
  "kind": "method",
105804
- "name": "shouldValidate",
105805
- "privacy": "protected",
105810
+ "name": "_observeTextNodesInSlot",
105811
+ "privacy": "private",
105806
105812
  "return": {
105807
105813
  "type": {
105808
- "text": "boolean"
105814
+ "text": "void"
105809
105815
  }
105810
105816
  },
105811
105817
  "parameters": [
105812
105818
  {
105813
- "name": "name",
105819
+ "name": "slot",
105814
105820
  "type": {
105815
- "text": "PropertyKey | undefined"
105821
+ "text": "HTMLSlotElement"
105816
105822
  }
105817
105823
  }
105818
105824
  ],
105819
- "description": "Whether validation should be run on a property change with the given name.",
105820
105825
  "inheritedFrom": {
105821
- "name": "SbbFormAssociatedMixin",
105822
- "module": "core/mixins/form-associated-mixin.js"
105826
+ "name": "SbbElement",
105827
+ "module": "core/base-elements/element.js"
105823
105828
  }
105824
105829
  },
105825
105830
  {
105826
105831
  "kind": "method",
105827
- "name": "_setInternalValidity",
105832
+ "name": "_hasSlottedContent",
105828
105833
  "privacy": "private",
105829
105834
  "return": {
105830
105835
  "type": {
105831
- "text": "void"
105836
+ "text": "boolean"
105832
105837
  }
105833
105838
  },
105839
+ "parameters": [
105840
+ {
105841
+ "name": "slot",
105842
+ "type": {
105843
+ "text": "HTMLSlotElement"
105844
+ }
105845
+ }
105846
+ ],
105834
105847
  "inheritedFrom": {
105835
- "name": "SbbFormAssociatedMixin",
105836
- "module": "core/mixins/form-associated-mixin.js"
105848
+ "name": "SbbElement",
105849
+ "module": "core/base-elements/element.js"
105837
105850
  }
105838
105851
  }
105839
105852
  ],
105840
105853
  "events": [
105841
105854
  {
105842
- "name": "input",
105843
- "type": {
105844
- "text": "InputEvent"
105845
- },
105846
- "description": "The input event fires when the value has been changed as a direct result of a user action."
105847
- },
105848
- {
105849
- "name": "change",
105855
+ "name": "toggleexpanded",
105850
105856
  "type": {
105851
105857
  "text": "Event"
105852
105858
  },
105853
- "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."
105859
+ "description": "Notifies that the `sbb-expansion-panel` is about to expand/shrink."
105860
+ }
105861
+ ],
105862
+ "mixins": [
105863
+ {
105864
+ "name": "SbbDisabledTabIndexActionMixin",
105865
+ "module": "core.js"
105854
105866
  },
105855
105867
  {
105856
- "name": "filechanged",
105857
- "type": {
105858
- "text": "CustomEvent<Readonly<File>[]>"
105859
- },
105860
- "description": "An event which is emitted each time the file list changes."
105868
+ "name": "SbbIconNameMixin",
105869
+ "module": "icon.pure.js"
105861
105870
  }
105862
105871
  ],
105872
+ "superclass": {
105873
+ "name": "SbbButtonBaseElement",
105874
+ "module": "core.js"
105875
+ },
105876
+ "tagName": "sbb-expansion-panel-header",
105877
+ "customElement": true,
105863
105878
  "attributes": [
105864
105879
  {
105865
- "name": "size",
105880
+ "name": "disabled-interactive",
105866
105881
  "type": {
105867
- "text": "'s' | 'm'"
105882
+ "text": "boolean"
105868
105883
  },
105869
- "description": "Size variant, either s or m.",
105870
- "default": "'m' / 's' (lean)",
105871
- "fieldName": "size"
105884
+ "default": "false",
105885
+ "description": "Whether the button should be aria-disabled but stay interactive.",
105886
+ "fieldName": "disabledInteractive",
105887
+ "inheritedFrom": {
105888
+ "name": "SbbDisabledInteractiveMixin",
105889
+ "module": "core/mixins/disabled-mixin.js"
105890
+ }
105872
105891
  },
105873
105892
  {
105874
- "name": "multiple",
105893
+ "name": "disabled",
105894
+ "description": "Whether the component is disabled.",
105895
+ "default": "false",
105875
105896
  "type": {
105876
105897
  "text": "boolean"
105877
105898
  },
105878
- "default": "false",
105879
- "description": "Whether more than one file can be selected.",
105880
- "fieldName": "multiple"
105899
+ "fieldName": "disabled",
105900
+ "inheritedFrom": {
105901
+ "name": "SbbDisabledMixin",
105902
+ "module": "core/mixins/disabled-mixin.js"
105903
+ }
105881
105904
  },
105882
105905
  {
105883
- "name": "multiple-mode",
105906
+ "name": "icon-name",
105884
105907
  "type": {
105885
- "text": "'default' | 'persistent'"
105908
+ "text": "string"
105886
105909
  },
105887
- "default": "'default'",
105888
- "description": "Whether the newly added files should override the previously added ones.",
105889
- "fieldName": "multipleMode"
105910
+ "default": "''",
105911
+ "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.",
105912
+ "fieldName": "iconName",
105913
+ "inheritedFrom": {
105914
+ "name": "SbbIconNameMixin",
105915
+ "module": "icon/icon-name-mixin.js"
105916
+ }
105890
105917
  },
105891
105918
  {
105892
- "name": "accept",
105919
+ "name": "value",
105893
105920
  "type": {
105894
105921
  "text": "string"
105895
105922
  },
105896
105923
  "default": "''",
105897
- "description": "A comma-separated list of allowed unique file type specifiers.",
105898
- "fieldName": "accept"
105924
+ "description": "Value of the form element.",
105925
+ "fieldName": "value",
105926
+ "inheritedFrom": {
105927
+ "name": "SbbButtonBaseElement",
105928
+ "module": "core/base-elements/button-base-element.js"
105929
+ }
105899
105930
  },
105900
105931
  {
105901
- "name": "accessibility-label",
105932
+ "name": "type",
105933
+ "description": "The type attribute to use for the button.",
105934
+ "default": "'button'",
105902
105935
  "type": {
105903
- "text": "string"
105936
+ "text": "SbbButtonType"
105904
105937
  },
105905
- "default": "''",
105906
- "description": "This will be forwarded as aria-label to the native input element.",
105907
- "fieldName": "accessibilityLabel"
105938
+ "fieldName": "type",
105939
+ "inheritedFrom": {
105940
+ "name": "SbbButtonBaseElement",
105941
+ "module": "core/base-elements/button-base-element.js"
105942
+ }
105908
105943
  },
105909
105944
  {
105910
- "name": "disabled",
105911
- "description": "Whether the component is disabled.",
105912
- "default": "false",
105945
+ "name": "form",
105946
+ "description": "The `<form>` element to associate the button with.",
105913
105947
  "type": {
105914
- "text": "boolean"
105948
+ "text": "HTMLFormElement | null"
105915
105949
  },
105916
- "fieldName": "disabled",
105950
+ "fieldName": "form",
105917
105951
  "inheritedFrom": {
105918
- "name": "SbbDisabledMixin",
105919
- "module": "core/mixins/disabled-mixin.js"
105952
+ "name": "SbbButtonBaseElement",
105953
+ "module": "core/base-elements/button-base-element.js"
105920
105954
  }
105921
105955
  },
105922
105956
  {
@@ -105931,50 +105965,16 @@
105931
105965
  "module": "core/mixins/form-associated-mixin.js"
105932
105966
  }
105933
105967
  }
105934
- ],
105935
- "mixins": [
105936
- {
105937
- "name": "SbbDisabledMixin",
105938
- "module": "core.js"
105939
- },
105940
- {
105941
- "name": "SbbFormAssociatedMixin",
105942
- "module": "core.js"
105943
- }
105944
- ],
105945
- "parameters": [
105946
- {
105947
- "name": "superclass",
105948
- "type": {
105949
- "text": "T"
105950
- }
105951
- }
105952
105968
  ]
105953
105969
  }
105954
105970
  ],
105955
105971
  "exports": [
105956
105972
  {
105957
105973
  "kind": "js",
105958
- "name": "fileSelectorCommonStyle",
105959
- "declaration": {
105960
- "name": "fileSelectorCommonStyle",
105961
- "module": "file-selector/common/file-selector-common.js"
105962
- }
105963
- },
105964
- {
105965
- "kind": "js",
105966
- "name": "SbbFileSelectorCommonElementMixinType",
105967
- "declaration": {
105968
- "name": "SbbFileSelectorCommonElementMixinType",
105969
- "module": "file-selector/common/file-selector-common.js"
105970
- }
105971
- },
105972
- {
105973
- "kind": "js",
105974
- "name": "SbbFileSelectorCommonElementMixin",
105974
+ "name": "SbbExpansionPanelHeaderElement",
105975
105975
  "declaration": {
105976
- "name": "SbbFileSelectorCommonElementMixin",
105977
- "module": "file-selector/common/file-selector-common.js"
105976
+ "name": "SbbExpansionPanelHeaderElement",
105977
+ "module": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js"
105978
105978
  }
105979
105979
  }
105980
105980
  ]