@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1776959321 → 5.0.0-next-dev.1776960216

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.
@@ -103006,115 +103006,85 @@
103006
103006
  },
103007
103007
  {
103008
103008
  "kind": "javascript-module",
103009
- "path": "file-selector/common/file-selector-common.js",
103009
+ "path": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js",
103010
103010
  "declarations": [
103011
- {
103012
- "kind": "variable",
103013
- "name": "fileSelectorCommonStyle"
103014
- },
103015
103011
  {
103016
103012
  "kind": "class",
103017
- "description": "",
103018
- "name": "SbbFileSelectorCommonElementMixinType",
103019
- "members": [
103020
- {
103021
- "kind": "field",
103022
- "name": "size",
103023
- "type": {
103024
- "text": "'s' | 'm'"
103025
- },
103026
- "privacy": "public"
103027
- },
103013
+ "description": "It acts as a native `summary` tag for the `sbb-expansion-panel` component.",
103014
+ "name": "SbbExpansionPanelHeaderElement",
103015
+ "slots": [
103028
103016
  {
103029
- "kind": "field",
103030
- "name": "multiple",
103031
- "type": {
103032
- "text": "boolean"
103033
- },
103034
- "privacy": "public"
103017
+ "description": "Use the unnamed slot to add content to the `sbb-expansion-panel-header`.",
103018
+ "name": ""
103035
103019
  },
103036
103020
  {
103037
- "kind": "field",
103038
- "name": "multipleMode",
103039
- "type": {
103040
- "text": "'default' | 'persistent'"
103041
- },
103042
- "privacy": "public"
103043
- },
103021
+ "description": "Slot used to render the `sbb-expansion-panel-header` icon.",
103022
+ "name": "icon"
103023
+ }
103024
+ ],
103025
+ "members": [
103044
103026
  {
103045
103027
  "kind": "field",
103046
- "name": "accept",
103028
+ "name": "elementName",
103047
103029
  "type": {
103048
103030
  "text": "string"
103049
103031
  },
103050
- "privacy": "public"
103051
- },
103052
- {
103053
- "kind": "field",
103054
- "name": "accessibilityLabel",
103055
- "type": {
103056
- "text": "string"
103032
+ "privacy": "public",
103033
+ "static": true,
103034
+ "readonly": true,
103035
+ "inheritedFrom": {
103036
+ "name": "SbbElement",
103037
+ "module": "core/base-elements/element.js"
103057
103038
  },
103058
- "privacy": "public"
103039
+ "default": "'sbb-expansion-panel-header'"
103059
103040
  },
103060
103041
  {
103061
103042
  "kind": "field",
103062
- "name": "files",
103043
+ "name": "events",
103044
+ "privacy": "public",
103045
+ "static": true,
103046
+ "readonly": true,
103047
+ "default": "{ toggleexpanded: 'toggleexpanded', }",
103063
103048
  "type": {
103064
- "text": "Readonly<File>[]"
103065
- },
103066
- "privacy": "public"
103049
+ "text": "{\n toggleexpanded: 'toggleexpanded',\n }"
103050
+ }
103067
103051
  },
103068
103052
  {
103069
103053
  "kind": "field",
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
- }
103054
+ "name": "_mediaMatcher",
103055
+ "privacy": "private",
103056
+ "default": "new SbbMediaMatcherController(this, { [SbbMediaQueryHover]: (m) => (this._isHover = m), })"
103079
103057
  },
103080
103058
  {
103081
103059
  "kind": "field",
103082
- "name": "loadButton",
103060
+ "name": "_isHover",
103083
103061
  "type": {
103084
- "text": "SbbSecondaryButtonStaticElement"
103062
+ "text": "boolean"
103085
103063
  },
103086
- "privacy": "protected"
103064
+ "privacy": "private"
103087
103065
  },
103088
103066
  {
103089
103067
  "kind": "field",
103090
- "name": "language",
103068
+ "name": "_previousSize",
103091
103069
  "type": {
103092
- "text": "SbbLanguageController"
103070
+ "text": "string | undefined"
103093
103071
  },
103094
- "privacy": "protected"
103072
+ "privacy": "private"
103095
103073
  },
103096
103074
  {
103097
103075
  "kind": "method",
103098
- "name": "renderTemplate",
103099
- "privacy": "protected",
103076
+ "name": "_emitExpandedEvent",
103077
+ "privacy": "private",
103100
103078
  "return": {
103101
103079
  "type": {
103102
- "text": "TemplateResult"
103103
- }
103104
- },
103105
- "parameters": [
103106
- {
103107
- "name": "input",
103108
- "type": {
103109
- "text": "TemplateResult"
103110
- }
103080
+ "text": "void"
103111
103081
  }
103112
- ]
103082
+ }
103113
103083
  },
103114
103084
  {
103115
103085
  "kind": "method",
103116
- "name": "createFileList",
103117
- "privacy": "protected",
103086
+ "name": "_onMouseMovement",
103087
+ "privacy": "private",
103118
103088
  "return": {
103119
103089
  "type": {
103120
103090
  "text": "void"
@@ -103122,56 +103092,54 @@
103122
103092
  },
103123
103093
  "parameters": [
103124
103094
  {
103125
- "name": "files",
103095
+ "name": "toggleDataAttribute",
103126
103096
  "type": {
103127
- "text": "FileList"
103097
+ "text": "boolean"
103128
103098
  }
103129
103099
  }
103130
103100
  ]
103131
103101
  },
103132
103102
  {
103133
103103
  "kind": "method",
103134
- "name": "getButtonLabel",
103135
- "privacy": "protected",
103104
+ "name": "_setIconState",
103105
+ "privacy": "private",
103136
103106
  "return": {
103137
103107
  "type": {
103138
- "text": "string"
103108
+ "text": "void"
103139
103109
  }
103140
- }
103110
+ },
103111
+ "description": "The :state(icon) is used by the 'sbb-expansion-panel'.\nIt needs to be set before the"
103141
103112
  },
103142
103113
  {
103143
103114
  "kind": "method",
103144
- "name": "formResetCallback",
103145
- "privacy": "public",
103115
+ "name": "renderTemplate",
103116
+ "privacy": "protected",
103146
103117
  "return": {
103147
103118
  "type": {
103148
- "text": "void"
103119
+ "text": "TemplateResult"
103149
103120
  }
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"
103150
103126
  }
103151
103127
  },
103152
103128
  {
103153
- "kind": "method",
103154
- "name": "formStateRestoreCallback",
103155
- "privacy": "public",
103156
- "return": {
103157
- "type": {
103158
- "text": "void"
103159
- }
103129
+ "kind": "field",
103130
+ "name": "disabledInteractive",
103131
+ "type": {
103132
+ "text": "boolean"
103160
103133
  },
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
- ]
103134
+ "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
+ }
103175
103143
  },
103176
103144
  {
103177
103145
  "kind": "field",
@@ -103219,72 +103187,249 @@
103219
103187
  },
103220
103188
  {
103221
103189
  "kind": "field",
103222
- "name": "formAssociated",
103190
+ "name": "elementDependencies",
103223
103191
  "type": {
103224
- "text": "boolean"
103192
+ "text": "SbbElementType[]"
103225
103193
  },
103226
103194
  "privacy": "public",
103227
103195
  "static": true,
103228
- "default": "true",
103229
103196
  "inheritedFrom": {
103230
- "name": "SbbFormAssociatedMixin",
103231
- "module": "core/mixins/form-associated-mixin.js"
103232
- }
103197
+ "name": "SbbElement",
103198
+ "module": "core/base-elements/element.js"
103199
+ },
103200
+ "default": "[SbbIconElement]"
103233
103201
  },
103234
103202
  {
103235
103203
  "kind": "field",
103236
- "name": "form",
103204
+ "name": "iconName",
103237
103205
  "type": {
103238
- "text": "HTMLFormElement | null"
103206
+ "text": "string"
103239
103207
  },
103240
103208
  "privacy": "public",
103241
- "description": "Returns the form owner of this element.",
103242
- "readonly": true,
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",
103243
103212
  "inheritedFrom": {
103244
- "name": "SbbFormAssociatedMixin",
103245
- "module": "core/mixins/form-associated-mixin.js"
103213
+ "name": "SbbIconNameMixin",
103214
+ "module": "icon/icon-name-mixin.js"
103246
103215
  }
103247
103216
  },
103248
103217
  {
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"
103218
+ "kind": "method",
103219
+ "name": "renderIconSlot",
103220
+ "privacy": "protected",
103221
+ "return": {
103222
+ "type": {
103223
+ "text": "TemplateResult"
103224
+ }
103255
103225
  },
103256
- "attribute": "name",
103226
+ "parameters": [
103227
+ {
103228
+ "name": "classname",
103229
+ "optional": true,
103230
+ "type": {
103231
+ "text": "string"
103232
+ }
103233
+ }
103234
+ ],
103257
103235
  "inheritedFrom": {
103258
- "name": "SbbFormAssociatedMixin",
103259
- "module": "core/mixins/form-associated-mixin.js"
103236
+ "name": "SbbIconNameMixin",
103237
+ "module": "icon/icon-name-mixin.js"
103260
103238
  }
103261
103239
  },
103262
103240
  {
103263
- "kind": "field",
103264
- "name": "validity",
103265
- "type": {
103266
- "text": "ValidityState"
103241
+ "kind": "method",
103242
+ "name": "renderIconName",
103243
+ "privacy": "protected",
103244
+ "return": {
103245
+ "type": {
103246
+ "text": "string"
103247
+ }
103267
103248
  },
103268
- "privacy": "public",
103269
- "description": "Returns the ValidityState object for this element.",
103270
- "readonly": true,
103271
103249
  "inheritedFrom": {
103272
- "name": "SbbFormAssociatedMixin",
103273
- "module": "core/mixins/form-associated-mixin.js"
103250
+ "name": "SbbIconNameMixin",
103251
+ "module": "icon/icon-name-mixin.js"
103274
103252
  }
103275
103253
  },
103276
103254
  {
103277
- "kind": "field",
103278
- "name": "validationMessage",
103279
- "type": {
103280
- "text": "string"
103255
+ "kind": "method",
103256
+ "name": "_renderIconName",
103257
+ "privacy": "private",
103258
+ "return": {
103259
+ "type": {
103260
+ "text": "string"
103261
+ }
103281
103262
  },
103282
- "privacy": "public",
103283
- "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.",
103284
- "readonly": true,
103285
103263
  "inheritedFrom": {
103286
- "name": "SbbFormAssociatedMixin",
103287
- "module": "core/mixins/form-associated-mixin.js"
103264
+ "name": "SbbIconNameMixin",
103265
+ "module": "icon/icon-name-mixin.js"
103266
+ }
103267
+ },
103268
+ {
103269
+ "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",
103424
+ "type": {
103425
+ "text": "string"
103426
+ },
103427
+ "privacy": "public",
103428
+ "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.",
103429
+ "readonly": true,
103430
+ "inheritedFrom": {
103431
+ "name": "SbbFormAssociatedMixin",
103432
+ "module": "core/mixins/form-associated-mixin.js"
103288
103433
  }
103289
103434
  },
103290
103435
  {
@@ -103534,91 +103679,156 @@
103534
103679
  },
103535
103680
  {
103536
103681
  "kind": "field",
103537
- "name": "['_$sbbElement$']",
103682
+ "name": "role",
103538
103683
  "type": {
103539
- "text": "boolean"
103684
+ "text": "ElementInternals['role']"
103540
103685
  },
103541
103686
  "privacy": "public",
103542
103687
  "static": true,
103543
- "default": "true",
103544
103688
  "inheritedFrom": {
103545
103689
  "name": "SbbElement",
103546
103690
  "module": "core/base-elements/element.js"
103547
- }
103691
+ },
103692
+ "readonly": true,
103693
+ "default": "'button'"
103548
103694
  },
103549
103695
  {
103550
103696
  "kind": "field",
103551
- "name": "elementName",
103552
- "type": {
103553
- "text": "string"
103554
- },
103555
- "privacy": "public",
103556
- "static": true,
103557
- "readonly": true,
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
+ ],
103558
103706
  "inheritedFrom": {
103559
- "name": "SbbElement",
103560
- "module": "core/base-elements/element.js"
103707
+ "name": "SbbButtonLikeBaseElement",
103708
+ "module": "core/base-elements/button-base-element.js"
103561
103709
  }
103562
103710
  },
103563
103711
  {
103564
103712
  "kind": "field",
103565
- "name": "elementDependencies",
103566
- "type": {
103567
- "text": "SbbElementType[] | undefined"
103568
- },
103569
- "privacy": "public",
103570
- "static": true,
103713
+ "name": "_removeActiveMarker",
103714
+ "privacy": "private",
103571
103715
  "inheritedFrom": {
103572
- "name": "SbbElement",
103573
- "module": "core/base-elements/element.js"
103716
+ "name": "SbbButtonLikeBaseElement",
103717
+ "module": "core/base-elements/button-base-element.js"
103574
103718
  }
103575
103719
  },
103576
103720
  {
103577
103721
  "kind": "field",
103578
- "name": "role",
103579
- "type": {
103580
- "text": "ElementInternals['role'] | undefined"
103581
- },
103582
- "privacy": "public",
103583
- "static": true,
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
+ ],
103584
103731
  "inheritedFrom": {
103585
- "name": "SbbElement",
103586
- "module": "core/base-elements/element.js"
103732
+ "name": "SbbButtonLikeBaseElement",
103733
+ "module": "core/base-elements/button-base-element.js"
103587
103734
  }
103588
103735
  },
103589
103736
  {
103590
103737
  "kind": "field",
103591
- "name": "_controllers",
103592
- "type": {
103593
- "text": "Set<SbbReactiveController> | undefined"
103594
- },
103738
+ "name": "_dispatchClickEvent",
103595
103739
  "privacy": "private",
103596
103740
  "inheritedFrom": {
103597
- "name": "SbbElement",
103598
- "module": "core/base-elements/element.js"
103741
+ "name": "SbbButtonLikeBaseElement",
103742
+ "module": "core/base-elements/button-base-element.js"
103599
103743
  }
103600
103744
  },
103601
103745
  {
103602
103746
  "kind": "field",
103603
- "name": "_hydrationRequired",
103747
+ "name": "maybeDisabled",
103604
103748
  "type": {
103605
- "text": "boolean"
103749
+ "text": "boolean | undefined"
103606
103750
  },
103607
- "privacy": "private",
103608
- "default": "!!this.shadowRoot",
103751
+ "privacy": "protected",
103752
+ "readonly": true,
103609
103753
  "inheritedFrom": {
103610
- "name": "SbbElement",
103611
- "module": "core/base-elements/element.js"
103754
+ "name": "SbbActionBaseElement",
103755
+ "module": "core/base-elements/action-base-element.js"
103612
103756
  }
103613
103757
  },
103614
103758
  {
103615
103759
  "kind": "field",
103616
- "name": "_hydrationComplete",
103617
- "privacy": "private",
103618
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
103619
- "inheritedFrom": {
103620
- "name": "SbbElement",
103621
- "module": "core/base-elements/element.js"
103760
+ "name": "maybeDisabledInteractive",
103761
+ "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
+ }
103779
+ },
103780
+ "inheritedFrom": {
103781
+ "name": "SbbActionBaseElement",
103782
+ "module": "core/base-elements/action-base-element.js"
103783
+ }
103784
+ },
103785
+ {
103786
+ "kind": "field",
103787
+ "name": "['_$sbbElement$']",
103788
+ "type": {
103789
+ "text": "boolean"
103790
+ },
103791
+ "privacy": "public",
103792
+ "static": true,
103793
+ "default": "true",
103794
+ "inheritedFrom": {
103795
+ "name": "SbbElement",
103796
+ "module": "core/base-elements/element.js"
103797
+ }
103798
+ },
103799
+ {
103800
+ "kind": "field",
103801
+ "name": "_controllers",
103802
+ "type": {
103803
+ "text": "Set<SbbReactiveController> | undefined"
103804
+ },
103805
+ "privacy": "private",
103806
+ "inheritedFrom": {
103807
+ "name": "SbbElement",
103808
+ "module": "core/base-elements/element.js"
103809
+ }
103810
+ },
103811
+ {
103812
+ "kind": "field",
103813
+ "name": "_hydrationRequired",
103814
+ "type": {
103815
+ "text": "boolean"
103816
+ },
103817
+ "privacy": "private",
103818
+ "default": "!!this.shadowRoot",
103819
+ "inheritedFrom": {
103820
+ "name": "SbbElement",
103821
+ "module": "core/base-elements/element.js"
103822
+ }
103823
+ },
103824
+ {
103825
+ "kind": "field",
103826
+ "name": "_hydrationComplete",
103827
+ "privacy": "private",
103828
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
103829
+ "inheritedFrom": {
103830
+ "name": "SbbElement",
103831
+ "module": "core/base-elements/element.js"
103622
103832
  }
103623
103833
  },
103624
103834
  {
@@ -103806,21 +104016,45 @@
103806
104016
  }
103807
104017
  }
103808
104018
  ],
104019
+ "events": [
104020
+ {
104021
+ "name": "toggleexpanded",
104022
+ "type": {
104023
+ "text": "Event"
104024
+ },
104025
+ "description": "Notifies that the `sbb-expansion-panel` is about to expand/shrink."
104026
+ }
104027
+ ],
103809
104028
  "mixins": [
103810
104029
  {
103811
- "name": "SbbDisabledMixin",
104030
+ "name": "SbbDisabledTabIndexActionMixin",
103812
104031
  "module": "core.js"
103813
104032
  },
103814
104033
  {
103815
- "name": "SbbFormAssociatedMixin",
103816
- "module": "core.js"
104034
+ "name": "SbbIconNameMixin",
104035
+ "module": "icon.pure.js"
103817
104036
  }
103818
104037
  ],
103819
104038
  "superclass": {
103820
- "name": "SbbElement",
104039
+ "name": "SbbButtonBaseElement",
103821
104040
  "module": "core.js"
103822
104041
  },
104042
+ "tagName": "sbb-expansion-panel-header",
104043
+ "customElement": true,
103823
104044
  "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
+ },
103824
104058
  {
103825
104059
  "name": "disabled",
103826
104060
  "description": "Whether the component is disabled.",
@@ -103834,6 +104068,57 @@
103834
104068
  "module": "core/mixins/disabled-mixin.js"
103835
104069
  }
103836
104070
  },
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
+ },
103837
104122
  {
103838
104123
  "name": "name",
103839
104124
  "description": "Name of the form element. Will be read from name attribute.",
@@ -103847,44 +104132,39 @@
103847
104132
  }
103848
104133
  }
103849
104134
  ]
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"
103850
104155
  },
103851
104156
  {
103852
- "kind": "mixin",
104157
+ "kind": "class",
103853
104158
  "description": "",
103854
- "name": "SbbFileSelectorCommonElementMixin",
104159
+ "name": "SbbFileSelectorCommonElementMixinType",
103855
104160
  "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
- },
103877
104161
  {
103878
104162
  "kind": "field",
103879
104163
  "name": "size",
103880
104164
  "type": {
103881
104165
  "text": "'s' | 'm'"
103882
104166
  },
103883
- "privacy": "public",
103884
- "description": "Size variant, either s or m.",
103885
- "default": "'m' / 's' (lean)",
103886
- "attribute": "size",
103887
- "reflects": true
104167
+ "privacy": "public"
103888
104168
  },
103889
104169
  {
103890
104170
  "kind": "field",
@@ -103892,10 +104172,7 @@
103892
104172
  "type": {
103893
104173
  "text": "boolean"
103894
104174
  },
103895
- "privacy": "public",
103896
- "default": "false",
103897
- "description": "Whether more than one file can be selected.",
103898
- "attribute": "multiple"
104175
+ "privacy": "public"
103899
104176
  },
103900
104177
  {
103901
104178
  "kind": "field",
@@ -103903,10 +104180,7 @@
103903
104180
  "type": {
103904
104181
  "text": "'default' | 'persistent'"
103905
104182
  },
103906
- "privacy": "public",
103907
- "default": "'default'",
103908
- "description": "Whether the newly added files should override the previously added ones.",
103909
- "attribute": "multiple-mode"
104183
+ "privacy": "public"
103910
104184
  },
103911
104185
  {
103912
104186
  "kind": "field",
@@ -103914,10 +104188,7 @@
103914
104188
  "type": {
103915
104189
  "text": "string"
103916
104190
  },
103917
- "privacy": "public",
103918
- "default": "''",
103919
- "description": "A comma-separated list of allowed unique file type specifiers.",
103920
- "attribute": "accept"
104191
+ "privacy": "public"
103921
104192
  },
103922
104193
  {
103923
104194
  "kind": "field",
@@ -103925,10 +104196,15 @@
103925
104196
  "type": {
103926
104197
  "text": "string"
103927
104198
  },
103928
- "privacy": "public",
103929
- "default": "''",
103930
- "description": "This will be forwarded as aria-label to the native input element.",
103931
- "attribute": "accessibility-label"
104199
+ "privacy": "public"
104200
+ },
104201
+ {
104202
+ "kind": "field",
104203
+ "name": "files",
104204
+ "type": {
104205
+ "text": "Readonly<File>[]"
104206
+ },
104207
+ "privacy": "public"
103932
104208
  },
103933
104209
  {
103934
104210
  "kind": "field",
@@ -103937,7 +104213,6 @@
103937
104213
  "text": "string | null"
103938
104214
  },
103939
104215
  "privacy": "public",
103940
- "description": "The path of the first selected file. Empty string ('') if no file is selected",
103941
104216
  "inheritedFrom": {
103942
104217
  "name": "SbbFormAssociatedMixin",
103943
104218
  "module": "core/mixins/form-associated-mixin.js"
@@ -103945,88 +104220,19 @@
103945
104220
  },
103946
104221
  {
103947
104222
  "kind": "field",
103948
- "name": "files",
103949
- "privacy": "public",
103950
- "description": "The list of selected files.",
104223
+ "name": "loadButton",
103951
104224
  "type": {
103952
- "text": "Readonly<File>[]"
103953
- }
104225
+ "text": "SbbSecondaryButtonStaticElement"
104226
+ },
104227
+ "privacy": "protected"
103954
104228
  },
103955
104229
  {
103956
104230
  "kind": "field",
103957
- "name": "_files",
104231
+ "name": "language",
103958
104232
  "type": {
103959
- "text": "Readonly<File>[]"
104233
+ "text": "SbbLanguageController"
103960
104234
  },
103961
- "privacy": "private",
103962
- "default": "[]"
103963
- },
103964
- {
103965
- "kind": "field",
103966
- "name": "type",
103967
- "type": {
103968
- "text": "string"
103969
- },
103970
- "privacy": "public",
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"
103999
- },
104000
- {
104001
- "kind": "field",
104002
- "name": "loadButton",
104003
- "type": {
104004
- "text": "SbbSecondaryButtonStaticElement"
104005
- },
104006
- "privacy": "protected"
104007
- },
104008
- {
104009
- "kind": "field",
104010
- "name": "language",
104011
- "privacy": "protected",
104012
- "default": "new SbbLanguageController(this)"
104013
- },
104014
- {
104015
- "kind": "field",
104016
- "name": "_counter",
104017
- "type": {
104018
- "text": "number"
104019
- },
104020
- "privacy": "private",
104021
- "default": "0"
104022
- },
104023
- {
104024
- "kind": "field",
104025
- "name": "_dragTarget",
104026
- "type": {
104027
- "text": "HTMLElement | undefined"
104028
- },
104029
- "privacy": "private"
104235
+ "privacy": "protected"
104030
104236
  },
104031
104237
  {
104032
104238
  "kind": "method",
@@ -104048,92 +104254,36 @@
104048
104254
  },
104049
104255
  {
104050
104256
  "kind": "method",
104051
- "name": "formResetCallback",
104052
- "privacy": "public",
104053
- "return": {
104054
- "type": {
104055
- "text": "void"
104056
- }
104057
- }
104058
- },
104059
- {
104060
- "kind": "method",
104061
- "name": "formStateRestoreCallback",
104062
- "privacy": "public",
104063
- "return": {
104064
- "type": {
104065
- "text": "void"
104066
- }
104067
- },
104068
- "parameters": [
104069
- {
104070
- "name": "state",
104071
- "type": {
104072
- "text": "FormRestoreState | null"
104073
- }
104074
- },
104075
- {
104076
- "name": "_reason",
104077
- "optional": true,
104078
- "type": {
104079
- "text": "FormRestoreReason"
104080
- }
104081
- }
104082
- ]
104083
- },
104084
- {
104085
- "kind": "method",
104086
- "name": "updateFormValue",
104257
+ "name": "createFileList",
104087
104258
  "privacy": "protected",
104088
104259
  "return": {
104089
104260
  "type": {
104090
104261
  "text": "void"
104091
104262
  }
104092
104263
  },
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",
104094
- "inheritedFrom": {
104095
- "name": "SbbFormAssociatedMixin",
104096
- "module": "core/mixins/form-associated-mixin.js"
104097
- }
104098
- },
104099
- {
104100
- "kind": "method",
104101
- "name": "_checkFileEquality",
104102
- "privacy": "private",
104103
- "return": {
104104
- "type": {
104105
- "text": "boolean"
104106
- }
104107
- },
104108
104264
  "parameters": [
104109
104265
  {
104110
- "name": "file1",
104111
- "type": {
104112
- "text": "Readonly<File>"
104113
- }
104114
- },
104115
- {
104116
- "name": "file2",
104266
+ "name": "files",
104117
104267
  "type": {
104118
- "text": "Readonly<File>"
104268
+ "text": "FileList"
104119
104269
  }
104120
104270
  }
104121
104271
  ]
104122
104272
  },
104123
104273
  {
104124
104274
  "kind": "method",
104125
- "name": "_onFocus",
104126
- "privacy": "private",
104275
+ "name": "getButtonLabel",
104276
+ "privacy": "protected",
104127
104277
  "return": {
104128
104278
  "type": {
104129
- "text": "void"
104279
+ "text": "string"
104130
104280
  }
104131
104281
  }
104132
104282
  },
104133
104283
  {
104134
104284
  "kind": "method",
104135
- "name": "_onBlur",
104136
- "privacy": "private",
104285
+ "name": "formResetCallback",
104286
+ "privacy": "public",
104137
104287
  "return": {
104138
104288
  "type": {
104139
104289
  "text": "void"
@@ -104142,8 +104292,8 @@
104142
104292
  },
104143
104293
  {
104144
104294
  "kind": "method",
104145
- "name": "_readFiles",
104146
- "privacy": "private",
104295
+ "name": "formStateRestoreCallback",
104296
+ "privacy": "public",
104147
104297
  "return": {
104148
104298
  "type": {
104149
104299
  "text": "void"
@@ -104151,262 +104301,75 @@
104151
104301
  },
104152
104302
  "parameters": [
104153
104303
  {
104154
- "name": "event",
104304
+ "name": "state",
104155
104305
  "type": {
104156
- "text": "Event"
104306
+ "text": "FormRestoreState | null"
104157
104307
  }
104158
- }
104159
- ]
104160
- },
104161
- {
104162
- "kind": "method",
104163
- "name": "createFileList",
104164
- "privacy": "protected",
104165
- "return": {
104166
- "type": {
104167
- "text": "void"
104168
- }
104169
- },
104170
- "parameters": [
104308
+ },
104171
104309
  {
104172
- "name": "files",
104310
+ "name": "reason",
104173
104311
  "type": {
104174
- "text": "FileList"
104312
+ "text": "FormRestoreReason"
104175
104313
  }
104176
104314
  }
104177
104315
  ]
104178
104316
  },
104179
104317
  {
104180
- "kind": "method",
104181
- "name": "getButtonLabel",
104182
- "privacy": "protected",
104183
- "return": {
104184
- "type": {
104185
- "text": "string"
104186
- }
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"
104187
104331
  }
104188
104332
  },
104189
104333
  {
104190
- "kind": "method",
104191
- "name": "_removeFile",
104334
+ "kind": "field",
104335
+ "name": "#disabled",
104192
104336
  "privacy": "private",
104193
- "return": {
104194
- "type": {
104195
- "text": "void"
104196
- }
104337
+ "type": {
104338
+ "text": "boolean"
104197
104339
  },
104198
- "parameters": [
104199
- {
104200
- "name": "file",
104201
- "type": {
104202
- "text": "Readonly<File>"
104203
- }
104204
- }
104205
- ]
104206
- },
104207
- {
104208
- "kind": "method",
104209
- "name": "_dispatchFileChangedEvent",
104210
- "privacy": "private",
104211
- "return": {
104212
- "type": {
104213
- "text": "void"
104214
- }
104340
+ "default": "false",
104341
+ "inheritedFrom": {
104342
+ "name": "SbbDisabledMixin",
104343
+ "module": "core/mixins/disabled-mixin.js"
104215
104344
  }
104216
104345
  },
104217
104346
  {
104218
104347
  "kind": "method",
104219
- "name": "_formatFileSize",
104220
- "privacy": "private",
104348
+ "name": "isDisabledExternally",
104349
+ "privacy": "protected",
104221
104350
  "return": {
104222
104351
  "type": {
104223
- "text": "string"
104352
+ "text": "boolean"
104224
104353
  }
104225
104354
  },
104226
- "parameters": [
104227
- {
104228
- "name": "size",
104229
- "type": {
104230
- "text": "number"
104231
- }
104232
- }
104233
- ],
104234
- "description": "Calculates the correct unit for the file's size."
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
+ }
104235
104360
  },
104236
104361
  {
104237
- "kind": "method",
104238
- "name": "_updateA11yLiveRegion",
104239
- "privacy": "private",
104240
- "return": {
104241
- "type": {
104242
- "text": "void"
104243
- }
104244
- }
104245
- },
104246
- {
104247
- "kind": "method",
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",
104260
- "return": {
104261
- "type": {
104262
- "text": "void"
104263
- }
104264
- },
104265
- "parameters": [
104266
- {
104267
- "name": "event",
104268
- "type": {
104269
- "text": "DragEvent"
104270
- }
104271
- }
104272
- ]
104273
- },
104274
- {
104275
- "kind": "method",
104276
- "name": "_onDragLeave",
104277
- "privacy": "private",
104278
- "return": {
104279
- "type": {
104280
- "text": "void"
104281
- }
104282
- },
104283
- "parameters": [
104284
- {
104285
- "name": "event",
104286
- "type": {
104287
- "text": "DragEvent"
104288
- }
104289
- }
104290
- ]
104291
- },
104292
- {
104293
- "kind": "method",
104294
- "name": "_onFileDrop",
104295
- "privacy": "private",
104296
- "return": {
104297
- "type": {
104298
- "text": "void"
104299
- }
104300
- },
104301
- "parameters": [
104302
- {
104303
- "name": "event",
104304
- "type": {
104305
- "text": "DragEvent"
104306
- }
104307
- }
104308
- ]
104309
- },
104310
- {
104311
- "kind": "method",
104312
- "name": "_blockEvent",
104313
- "privacy": "private",
104314
- "return": {
104315
- "type": {
104316
- "text": "void"
104317
- }
104318
- },
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
- ]
104353
- },
104354
- {
104355
- "kind": "field",
104356
- "name": "disabled",
104357
- "privacy": "public",
104358
- "description": "Whether the component is disabled.",
104359
- "default": "false",
104360
- "type": {
104361
- "text": "boolean"
104362
- },
104363
- "attribute": "disabled",
104364
- "reflects": true,
104365
- "inheritedFrom": {
104366
- "name": "SbbDisabledMixin",
104367
- "module": "core/mixins/disabled-mixin.js"
104368
- }
104369
- },
104370
- {
104371
- "kind": "field",
104372
- "name": "#disabled",
104373
- "privacy": "private",
104374
- "type": {
104375
- "text": "boolean"
104376
- },
104377
- "default": "false",
104378
- "inheritedFrom": {
104379
- "name": "SbbDisabledMixin",
104380
- "module": "core/mixins/disabled-mixin.js"
104381
- }
104382
- },
104383
- {
104384
- "kind": "method",
104385
- "name": "isDisabledExternally",
104386
- "privacy": "protected",
104387
- "return": {
104388
- "type": {
104389
- "text": "boolean"
104390
- }
104391
- },
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.",
104393
- "inheritedFrom": {
104394
- "name": "SbbDisabledMixin",
104395
- "module": "core/mixins/disabled-mixin.js"
104396
- }
104397
- },
104398
- {
104399
- "kind": "field",
104400
- "name": "formAssociated",
104401
- "type": {
104402
- "text": "boolean"
104403
- },
104404
- "privacy": "public",
104405
- "static": true,
104406
- "default": "true",
104407
- "inheritedFrom": {
104408
- "name": "SbbFormAssociatedMixin",
104409
- "module": "core/mixins/form-associated-mixin.js"
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"
104410
104373
  }
104411
104374
  },
104412
104375
  {
@@ -104570,6 +104533,21 @@
104570
104533
  "module": "core/mixins/form-associated-mixin.js"
104571
104534
  }
104572
104535
  },
104536
+ {
104537
+ "kind": "method",
104538
+ "name": "updateFormValue",
104539
+ "privacy": "protected",
104540
+ "return": {
104541
+ "type": {
104542
+ "text": "void"
104543
+ }
104544
+ },
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
+ }
104550
+ },
104573
104551
  {
104574
104552
  "kind": "method",
104575
104553
  "name": "formState",
@@ -104694,230 +104672,195 @@
104694
104672
  "name": "SbbFormAssociatedMixin",
104695
104673
  "module": "core/mixins/form-associated-mixin.js"
104696
104674
  }
104697
- }
104698
- ],
104699
- "events": [
104675
+ },
104700
104676
  {
104701
- "name": "input",
104677
+ "kind": "field",
104678
+ "name": "['_$sbbElement$']",
104702
104679
  "type": {
104703
- "text": "InputEvent"
104680
+ "text": "boolean"
104704
104681
  },
104705
- "description": "The input event fires when the value has been changed as a direct result of a user action."
104682
+ "privacy": "public",
104683
+ "static": true,
104684
+ "default": "true",
104685
+ "inheritedFrom": {
104686
+ "name": "SbbElement",
104687
+ "module": "core/base-elements/element.js"
104688
+ }
104706
104689
  },
104707
104690
  {
104708
- "name": "change",
104691
+ "kind": "field",
104692
+ "name": "elementName",
104709
104693
  "type": {
104710
- "text": "Event"
104694
+ "text": "string"
104711
104695
  },
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."
104696
+ "privacy": "public",
104697
+ "static": true,
104698
+ "readonly": true,
104699
+ "inheritedFrom": {
104700
+ "name": "SbbElement",
104701
+ "module": "core/base-elements/element.js"
104702
+ }
104713
104703
  },
104714
104704
  {
104715
- "name": "filechanged",
104705
+ "kind": "field",
104706
+ "name": "elementDependencies",
104716
104707
  "type": {
104717
- "text": "CustomEvent<Readonly<File>[]>"
104708
+ "text": "SbbElementType[] | undefined"
104718
104709
  },
104719
- "description": "An event which is emitted each time the file list changes."
104720
- }
104721
- ],
104722
- "attributes": [
104710
+ "privacy": "public",
104711
+ "static": true,
104712
+ "inheritedFrom": {
104713
+ "name": "SbbElement",
104714
+ "module": "core/base-elements/element.js"
104715
+ }
104716
+ },
104723
104717
  {
104724
- "name": "size",
104718
+ "kind": "field",
104719
+ "name": "role",
104725
104720
  "type": {
104726
- "text": "'s' | 'm'"
104721
+ "text": "ElementInternals['role'] | undefined"
104727
104722
  },
104728
- "description": "Size variant, either s or m.",
104729
- "default": "'m' / 's' (lean)",
104730
- "fieldName": "size"
104723
+ "privacy": "public",
104724
+ "static": true,
104725
+ "inheritedFrom": {
104726
+ "name": "SbbElement",
104727
+ "module": "core/base-elements/element.js"
104728
+ }
104731
104729
  },
104732
104730
  {
104733
- "name": "multiple",
104731
+ "kind": "field",
104732
+ "name": "_controllers",
104734
104733
  "type": {
104735
- "text": "boolean"
104734
+ "text": "Set<SbbReactiveController> | undefined"
104736
104735
  },
104737
- "default": "false",
104738
- "description": "Whether more than one file can be selected.",
104739
- "fieldName": "multiple"
104736
+ "privacy": "private",
104737
+ "inheritedFrom": {
104738
+ "name": "SbbElement",
104739
+ "module": "core/base-elements/element.js"
104740
+ }
104740
104741
  },
104741
104742
  {
104742
- "name": "multiple-mode",
104743
+ "kind": "field",
104744
+ "name": "_hydrationRequired",
104743
104745
  "type": {
104744
- "text": "'default' | 'persistent'"
104746
+ "text": "boolean"
104745
104747
  },
104746
- "default": "'default'",
104747
- "description": "Whether the newly added files should override the previously added ones.",
104748
- "fieldName": "multipleMode"
104749
- },
104750
- {
104751
- "name": "accept",
104752
- "type": {
104753
- "text": "string"
104754
- },
104755
- "default": "''",
104756
- "description": "A comma-separated list of allowed unique file type specifiers.",
104757
- "fieldName": "accept"
104758
- },
104759
- {
104760
- "name": "accessibility-label",
104761
- "type": {
104762
- "text": "string"
104763
- },
104764
- "default": "''",
104765
- "description": "This will be forwarded as aria-label to the native input element.",
104766
- "fieldName": "accessibilityLabel"
104767
- },
104768
- {
104769
- "name": "disabled",
104770
- "description": "Whether the component is disabled.",
104771
- "default": "false",
104772
- "type": {
104773
- "text": "boolean"
104774
- },
104775
- "fieldName": "disabled",
104748
+ "privacy": "private",
104749
+ "default": "!!this.shadowRoot",
104776
104750
  "inheritedFrom": {
104777
- "name": "SbbDisabledMixin",
104778
- "module": "core/mixins/disabled-mixin.js"
104751
+ "name": "SbbElement",
104752
+ "module": "core/base-elements/element.js"
104779
104753
  }
104780
104754
  },
104781
104755
  {
104782
- "name": "name",
104783
- "description": "Name of the form element. Will be read from name attribute.",
104784
- "type": {
104785
- "text": "string"
104786
- },
104787
- "fieldName": "name",
104756
+ "kind": "field",
104757
+ "name": "_hydrationComplete",
104758
+ "privacy": "private",
104759
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
104788
104760
  "inheritedFrom": {
104789
- "name": "SbbFormAssociatedMixin",
104790
- "module": "core/mixins/form-associated-mixin.js"
104791
- }
104792
- }
104793
- ],
104794
- "mixins": [
104795
- {
104796
- "name": "SbbDisabledMixin",
104797
- "module": "core.js"
104798
- },
104799
- {
104800
- "name": "SbbFormAssociatedMixin",
104801
- "module": "core.js"
104802
- }
104803
- ],
104804
- "parameters": [
104805
- {
104806
- "name": "superclass",
104807
- "type": {
104808
- "text": "T"
104761
+ "name": "SbbElement",
104762
+ "module": "core/base-elements/element.js"
104809
104763
  }
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": ""
104853
104764
  },
104854
- {
104855
- "description": "Slot used to render the `sbb-expansion-panel-header` icon.",
104856
- "name": "icon"
104857
- }
104858
- ],
104859
- "members": [
104860
104765
  {
104861
104766
  "kind": "field",
104862
- "name": "elementName",
104767
+ "name": "_resolveHydration",
104863
104768
  "type": {
104864
- "text": "string"
104769
+ "text": "(hydrationRequired: boolean) => void"
104865
104770
  },
104866
- "privacy": "public",
104867
- "static": true,
104868
- "readonly": true,
104771
+ "privacy": "private",
104869
104772
  "inheritedFrom": {
104870
104773
  "name": "SbbElement",
104871
104774
  "module": "core/base-elements/element.js"
104872
- },
104873
- "default": "'sbb-expansion-panel-header'"
104874
- },
104875
- {
104876
- "kind": "field",
104877
- "name": "events",
104878
- "privacy": "public",
104879
- "static": true,
104880
- "readonly": true,
104881
- "default": "{ toggleexpanded: 'toggleexpanded', }",
104882
- "type": {
104883
- "text": "{\n toggleexpanded: 'toggleexpanded',\n }"
104884
104775
  }
104885
104776
  },
104886
104777
  {
104887
104778
  "kind": "field",
104888
- "name": "_mediaMatcher",
104779
+ "name": "_textObserver",
104780
+ "type": {
104781
+ "text": "MutationObserver | undefined"
104782
+ },
104889
104783
  "privacy": "private",
104890
- "default": "new SbbMediaMatcherController(this, { [SbbMediaQueryHover]: (m) => (this._isHover = m), })"
104784
+ "inheritedFrom": {
104785
+ "name": "SbbElement",
104786
+ "module": "core/base-elements/element.js"
104787
+ }
104891
104788
  },
104892
104789
  {
104893
104790
  "kind": "field",
104894
- "name": "_isHover",
104791
+ "name": "hydrationRequired",
104895
104792
  "type": {
104896
104793
  "text": "boolean"
104897
104794
  },
104898
- "privacy": "private"
104795
+ "privacy": "protected",
104796
+ "description": "Returns whether hydration is required and not completed.",
104797
+ "readonly": true,
104798
+ "inheritedFrom": {
104799
+ "name": "SbbElement",
104800
+ "module": "core/base-elements/element.js"
104801
+ },
104802
+ "default": "!!this.shadowRoot"
104899
104803
  },
104900
104804
  {
104901
- "kind": "field",
104902
- "name": "_previousSize",
104903
- "type": {
104904
- "text": "string | undefined"
104805
+ "kind": "method",
104806
+ "name": "toggleState",
104807
+ "privacy": "protected",
104808
+ "return": {
104809
+ "type": {
104810
+ "text": "void"
104811
+ }
104905
104812
  },
104906
- "privacy": "private"
104813
+ "parameters": [
104814
+ {
104815
+ "name": "value",
104816
+ "type": {
104817
+ "text": "string"
104818
+ }
104819
+ },
104820
+ {
104821
+ "name": "force",
104822
+ "optional": true,
104823
+ "type": {
104824
+ "text": "boolean"
104825
+ }
104826
+ }
104827
+ ],
104828
+ "inheritedFrom": {
104829
+ "name": "SbbElement",
104830
+ "module": "core/base-elements/element.js"
104831
+ }
104907
104832
  },
104908
104833
  {
104909
104834
  "kind": "method",
104910
- "name": "_emitExpandedEvent",
104835
+ "name": "_slotchangeHandler",
104911
104836
  "privacy": "private",
104912
104837
  "return": {
104913
104838
  "type": {
104914
104839
  "text": "void"
104915
104840
  }
104841
+ },
104842
+ "parameters": [
104843
+ {
104844
+ "name": "event",
104845
+ "type": {
104846
+ "text": "Event"
104847
+ }
104848
+ },
104849
+ {
104850
+ "name": "slot",
104851
+ "type": {
104852
+ "text": "HTMLSlotElement"
104853
+ }
104854
+ }
104855
+ ],
104856
+ "inheritedFrom": {
104857
+ "name": "SbbElement",
104858
+ "module": "core/base-elements/element.js"
104916
104859
  }
104917
104860
  },
104918
104861
  {
104919
104862
  "kind": "method",
104920
- "name": "_onMouseMovement",
104863
+ "name": "_handleSlotChangeForSlottedState",
104921
104864
  "privacy": "private",
104922
104865
  "return": {
104923
104866
  "type": {
@@ -104926,418 +104869,468 @@
104926
104869
  },
104927
104870
  "parameters": [
104928
104871
  {
104929
- "name": "toggleDataAttribute",
104872
+ "name": "slot",
104930
104873
  "type": {
104931
- "text": "boolean"
104874
+ "text": "HTMLSlotElement"
104932
104875
  }
104933
104876
  }
104934
- ]
104877
+ ],
104878
+ "inheritedFrom": {
104879
+ "name": "SbbElement",
104880
+ "module": "core/base-elements/element.js"
104881
+ }
104935
104882
  },
104936
104883
  {
104937
104884
  "kind": "method",
104938
- "name": "_setIconState",
104885
+ "name": "_updateSlottedState",
104939
104886
  "privacy": "private",
104940
104887
  "return": {
104941
104888
  "type": {
104942
104889
  "text": "void"
104943
104890
  }
104944
104891
  },
104945
- "description": "The :state(icon) is used by the 'sbb-expansion-panel'.\nIt needs to be set before the"
104892
+ "parameters": [
104893
+ {
104894
+ "name": "slot",
104895
+ "type": {
104896
+ "text": "HTMLSlotElement"
104897
+ }
104898
+ }
104899
+ ],
104900
+ "inheritedFrom": {
104901
+ "name": "SbbElement",
104902
+ "module": "core/base-elements/element.js"
104903
+ }
104946
104904
  },
104947
104905
  {
104948
104906
  "kind": "method",
104949
- "name": "renderTemplate",
104950
- "privacy": "protected",
104907
+ "name": "_observeTextNodesInSlot",
104908
+ "privacy": "private",
104951
104909
  "return": {
104952
104910
  "type": {
104953
- "text": "TemplateResult"
104911
+ "text": "void"
104954
104912
  }
104955
104913
  },
104956
- "description": "Override this method to render the component template.",
104914
+ "parameters": [
104915
+ {
104916
+ "name": "slot",
104917
+ "type": {
104918
+ "text": "HTMLSlotElement"
104919
+ }
104920
+ }
104921
+ ],
104957
104922
  "inheritedFrom": {
104958
- "name": "SbbActionBaseElement",
104959
- "module": "core/base-elements/action-base-element.js"
104923
+ "name": "SbbElement",
104924
+ "module": "core/base-elements/element.js"
104960
104925
  }
104961
104926
  },
104962
104927
  {
104963
- "kind": "field",
104964
- "name": "disabledInteractive",
104965
- "type": {
104966
- "text": "boolean"
104928
+ "kind": "method",
104929
+ "name": "_hasSlottedContent",
104930
+ "privacy": "private",
104931
+ "return": {
104932
+ "type": {
104933
+ "text": "boolean"
104934
+ }
104967
104935
  },
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,
104936
+ "parameters": [
104937
+ {
104938
+ "name": "slot",
104939
+ "type": {
104940
+ "text": "HTMLSlotElement"
104941
+ }
104942
+ }
104943
+ ],
104973
104944
  "inheritedFrom": {
104974
- "name": "SbbDisabledInteractiveMixin",
104975
- "module": "core/mixins/disabled-mixin.js"
104945
+ "name": "SbbElement",
104946
+ "module": "core/base-elements/element.js"
104976
104947
  }
104948
+ }
104949
+ ],
104950
+ "mixins": [
104951
+ {
104952
+ "name": "SbbDisabledMixin",
104953
+ "module": "core.js"
104977
104954
  },
104978
104955
  {
104979
- "kind": "field",
104956
+ "name": "SbbFormAssociatedMixin",
104957
+ "module": "core.js"
104958
+ }
104959
+ ],
104960
+ "superclass": {
104961
+ "name": "SbbElement",
104962
+ "module": "core.js"
104963
+ },
104964
+ "attributes": [
104965
+ {
104980
104966
  "name": "disabled",
104981
- "privacy": "public",
104982
104967
  "description": "Whether the component is disabled.",
104983
104968
  "default": "false",
104984
104969
  "type": {
104985
104970
  "text": "boolean"
104986
104971
  },
104987
- "attribute": "disabled",
104988
- "reflects": true,
104972
+ "fieldName": "disabled",
104989
104973
  "inheritedFrom": {
104990
104974
  "name": "SbbDisabledMixin",
104991
104975
  "module": "core/mixins/disabled-mixin.js"
104992
104976
  }
104993
104977
  },
104994
104978
  {
104995
- "kind": "field",
104996
- "name": "#disabled",
104997
- "privacy": "private",
104979
+ "name": "name",
104980
+ "description": "Name of the form element. Will be read from name attribute.",
104998
104981
  "type": {
104999
- "text": "boolean"
104982
+ "text": "string"
105000
104983
  },
105001
- "default": "false",
104984
+ "fieldName": "name",
105002
104985
  "inheritedFrom": {
105003
- "name": "SbbDisabledMixin",
105004
- "module": "core/mixins/disabled-mixin.js"
104986
+ "name": "SbbFormAssociatedMixin",
104987
+ "module": "core/mixins/form-associated-mixin.js"
105005
104988
  }
105006
- },
104989
+ }
104990
+ ]
104991
+ },
104992
+ {
104993
+ "kind": "mixin",
104994
+ "description": "",
104995
+ "name": "SbbFileSelectorCommonElementMixin",
104996
+ "members": [
105007
104997
  {
105008
- "kind": "method",
105009
- "name": "isDisabledExternally",
105010
- "privacy": "protected",
105011
- "return": {
105012
- "type": {
105013
- "text": "boolean"
105014
- }
104998
+ "kind": "field",
104999
+ "name": "elementDependencies",
105000
+ "type": {
105001
+ "text": "SbbElementType[]"
105015
105002
  },
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"
105003
+ "privacy": "public",
105004
+ "static": true,
105005
+ "default": "[SbbSecondaryButtonElement]"
105006
+ },
105007
+ {
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 }"
105020
105016
  }
105021
105017
  },
105022
105018
  {
105023
105019
  "kind": "field",
105024
- "name": "elementDependencies",
105020
+ "name": "size",
105025
105021
  "type": {
105026
- "text": "SbbElementType[]"
105022
+ "text": "'s' | 'm'"
105027
105023
  },
105028
105024
  "privacy": "public",
105029
- "static": true,
105030
- "inheritedFrom": {
105031
- "name": "SbbElement",
105032
- "module": "core/base-elements/element.js"
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",
105033
+ "type": {
105034
+ "text": "boolean"
105033
105035
  },
105034
- "default": "[SbbIconElement]"
105036
+ "privacy": "public",
105037
+ "default": "false",
105038
+ "description": "Whether more than one file can be selected.",
105039
+ "attribute": "multiple"
105035
105040
  },
105036
105041
  {
105037
105042
  "kind": "field",
105038
- "name": "iconName",
105043
+ "name": "multipleMode",
105039
105044
  "type": {
105040
- "text": "string"
105045
+ "text": "'default' | 'persistent'"
105041
105046
  },
105042
105047
  "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
- }
105048
+ "default": "'default'",
105049
+ "description": "Whether the newly added files should override the previously added ones.",
105050
+ "attribute": "multiple-mode"
105050
105051
  },
105051
105052
  {
105052
- "kind": "method",
105053
- "name": "renderIconSlot",
105054
- "privacy": "protected",
105055
- "return": {
105056
- "type": {
105057
- "text": "TemplateResult"
105058
- }
105053
+ "kind": "field",
105054
+ "name": "accept",
105055
+ "type": {
105056
+ "text": "string"
105057
+ },
105058
+ "privacy": "public",
105059
+ "default": "''",
105060
+ "description": "A comma-separated list of allowed unique file type specifiers.",
105061
+ "attribute": "accept"
105062
+ },
105063
+ {
105064
+ "kind": "field",
105065
+ "name": "accessibilityLabel",
105066
+ "type": {
105067
+ "text": "string"
105059
105068
  },
105060
- "parameters": [
105061
- {
105062
- "name": "classname",
105063
- "optional": true,
105064
- "type": {
105065
- "text": "string"
105066
- }
105067
- }
105068
- ],
105069
- "inheritedFrom": {
105070
- "name": "SbbIconNameMixin",
105071
- "module": "icon/icon-name-mixin.js"
105072
- }
105069
+ "privacy": "public",
105070
+ "default": "''",
105071
+ "description": "This will be forwarded as aria-label to the native input element.",
105072
+ "attribute": "accessibility-label"
105073
105073
  },
105074
105074
  {
105075
- "kind": "method",
105076
- "name": "renderIconName",
105077
- "privacy": "protected",
105078
- "return": {
105079
- "type": {
105080
- "text": "string"
105081
- }
105075
+ "kind": "field",
105076
+ "name": "value",
105077
+ "type": {
105078
+ "text": "string | null"
105082
105079
  },
105080
+ "privacy": "public",
105081
+ "description": "The path of the first selected file. Empty string ('') if no file is selected",
105083
105082
  "inheritedFrom": {
105084
- "name": "SbbIconNameMixin",
105085
- "module": "icon/icon-name-mixin.js"
105083
+ "name": "SbbFormAssociatedMixin",
105084
+ "module": "core/mixins/form-associated-mixin.js"
105086
105085
  }
105087
105086
  },
105088
105087
  {
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"
105088
+ "kind": "field",
105089
+ "name": "files",
105090
+ "privacy": "public",
105091
+ "description": "The list of selected files.",
105092
+ "type": {
105093
+ "text": "Readonly<File>[]"
105100
105094
  }
105101
105095
  },
105102
105096
  {
105103
105097
  "kind": "field",
105104
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
105098
+ "name": "_files",
105105
105099
  "type": {
105106
- "text": "array"
105100
+ "text": "Readonly<File>[]"
105107
105101
  },
105108
105102
  "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
- }
105103
+ "default": "[]"
105115
105104
  },
105116
105105
  {
105117
105106
  "kind": "field",
105118
- "name": "value",
105107
+ "name": "type",
105119
105108
  "type": {
105120
105109
  "text": "string"
105121
105110
  },
105122
105111
  "privacy": "public",
105123
- "inheritedFrom": {
105124
- "name": "SbbButtonBaseElement",
105125
- "module": "core/base-elements/button-base-element.js"
105112
+ "description": "Form type of element.",
105113
+ "default": "'file'",
105114
+ "readonly": true
105115
+ },
105116
+ {
105117
+ "kind": "field",
105118
+ "name": "_hiddenInput",
105119
+ "type": {
105120
+ "text": "HTMLInputElement"
105126
105121
  },
105127
- "default": "''",
105128
- "description": "Value of the form element.",
105129
- "attribute": "value"
105122
+ "privacy": "private"
105130
105123
  },
105131
105124
  {
105132
105125
  "kind": "field",
105133
- "name": "type",
105134
- "privacy": "public",
105135
- "description": "The type attribute to use for the button.",
105136
- "default": "'button'",
105126
+ "name": "_suffixes",
105137
105127
  "type": {
105138
- "text": "SbbButtonType"
105128
+ "text": "string[]"
105139
105129
  },
105140
- "attribute": "type",
105141
- "inheritedFrom": {
105142
- "name": "SbbButtonBaseElement",
105143
- "module": "core/base-elements/button-base-element.js"
105144
- }
105130
+ "privacy": "private",
105131
+ "default": "['B', 'kB', 'MB', 'GB', 'TB']"
105145
105132
  },
105146
105133
  {
105147
105134
  "kind": "field",
105148
- "name": "form",
105135
+ "name": "_liveRegion",
105149
105136
  "type": {
105150
- "text": "HTMLFormElement | null"
105137
+ "text": "HTMLParagraphElement"
105151
105138
  },
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"
105139
+ "privacy": "private"
105140
+ },
105141
+ {
105142
+ "kind": "field",
105143
+ "name": "loadButton",
105144
+ "type": {
105145
+ "text": "SbbSecondaryButtonStaticElement"
105157
105146
  },
105158
- "attribute": "form"
105147
+ "privacy": "protected"
105159
105148
  },
105160
105149
  {
105161
105150
  "kind": "field",
105162
- "name": "_formId",
105151
+ "name": "language",
105152
+ "privacy": "protected",
105153
+ "default": "new SbbLanguageController(this)"
105154
+ },
105155
+ {
105156
+ "kind": "field",
105157
+ "name": "_counter",
105163
105158
  "type": {
105164
- "text": "string"
105159
+ "text": "number"
105165
105160
  },
105166
105161
  "privacy": "private",
105167
- "default": "''",
105168
- "inheritedFrom": {
105169
- "name": "SbbButtonBaseElement",
105170
- "module": "core/base-elements/button-base-element.js"
105171
- }
105162
+ "default": "0"
105172
105163
  },
105173
105164
  {
105174
105165
  "kind": "field",
105175
- "name": "_handleButtonClick",
105176
- "privacy": "private",
105177
- "inheritedFrom": {
105178
- "name": "SbbButtonBaseElement",
105179
- "module": "core/base-elements/button-base-element.js"
105180
- }
105166
+ "name": "_dragTarget",
105167
+ "type": {
105168
+ "text": "HTMLElement | undefined"
105169
+ },
105170
+ "privacy": "private"
105181
105171
  },
105182
105172
  {
105183
105173
  "kind": "method",
105184
- "name": "_requestSubmit",
105185
- "privacy": "private",
105174
+ "name": "renderTemplate",
105175
+ "privacy": "protected",
105186
105176
  "return": {
105187
105177
  "type": {
105188
- "text": "void"
105178
+ "text": "TemplateResult"
105189
105179
  }
105190
105180
  },
105191
105181
  "parameters": [
105192
105182
  {
105193
- "name": "form",
105183
+ "name": "input",
105194
105184
  "type": {
105195
- "text": "HTMLFormElement"
105185
+ "text": "TemplateResult"
105196
105186
  }
105197
105187
  }
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
- }
105188
+ ]
105212
105189
  },
105213
105190
  {
105214
- "kind": "field",
105215
- "name": "formAssociated",
105216
- "type": {
105217
- "text": "boolean"
105218
- },
105191
+ "kind": "method",
105192
+ "name": "formResetCallback",
105219
105193
  "privacy": "public",
105220
- "static": true,
105221
- "default": "true",
105222
- "inheritedFrom": {
105223
- "name": "SbbFormAssociatedMixin",
105224
- "module": "core/mixins/form-associated-mixin.js"
105194
+ "return": {
105195
+ "type": {
105196
+ "text": "void"
105197
+ }
105225
105198
  }
105226
105199
  },
105227
105200
  {
105228
- "kind": "field",
105229
- "name": "name",
105201
+ "kind": "method",
105202
+ "name": "formStateRestoreCallback",
105230
105203
  "privacy": "public",
105231
- "description": "Name of the form element. Will be read from name attribute.",
105232
- "type": {
105233
- "text": "string"
105204
+ "return": {
105205
+ "type": {
105206
+ "text": "void"
105207
+ }
105234
105208
  },
105235
- "attribute": "name",
105236
- "inheritedFrom": {
105237
- "name": "SbbFormAssociatedMixin",
105238
- "module": "core/mixins/form-associated-mixin.js"
105239
- }
105209
+ "parameters": [
105210
+ {
105211
+ "name": "state",
105212
+ "type": {
105213
+ "text": "FormRestoreState | null"
105214
+ }
105215
+ },
105216
+ {
105217
+ "name": "_reason",
105218
+ "optional": true,
105219
+ "type": {
105220
+ "text": "FormRestoreReason"
105221
+ }
105222
+ }
105223
+ ]
105240
105224
  },
105241
105225
  {
105242
- "kind": "field",
105243
- "name": "validity",
105244
- "type": {
105245
- "text": "ValidityState"
105226
+ "kind": "method",
105227
+ "name": "updateFormValue",
105228
+ "privacy": "protected",
105229
+ "return": {
105230
+ "type": {
105231
+ "text": "void"
105232
+ }
105246
105233
  },
105247
- "privacy": "public",
105248
- "description": "Returns the ValidityState object for this element.",
105249
- "readonly": true,
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",
105250
105235
  "inheritedFrom": {
105251
105236
  "name": "SbbFormAssociatedMixin",
105252
105237
  "module": "core/mixins/form-associated-mixin.js"
105253
105238
  }
105254
105239
  },
105255
105240
  {
105256
- "kind": "field",
105257
- "name": "validationMessage",
105258
- "type": {
105259
- "text": "string"
105241
+ "kind": "method",
105242
+ "name": "_checkFileEquality",
105243
+ "privacy": "private",
105244
+ "return": {
105245
+ "type": {
105246
+ "text": "boolean"
105247
+ }
105260
105248
  },
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"
105267
- }
105249
+ "parameters": [
105250
+ {
105251
+ "name": "file1",
105252
+ "type": {
105253
+ "text": "Readonly<File>"
105254
+ }
105255
+ },
105256
+ {
105257
+ "name": "file2",
105258
+ "type": {
105259
+ "text": "Readonly<File>"
105260
+ }
105261
+ }
105262
+ ]
105268
105263
  },
105269
105264
  {
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"
105265
+ "kind": "method",
105266
+ "name": "_onFocus",
105267
+ "privacy": "private",
105268
+ "return": {
105269
+ "type": {
105270
+ "text": "void"
105271
+ }
105281
105272
  }
105282
105273
  },
105283
105274
  {
105284
- "kind": "field",
105285
- "name": "_validityStates",
105275
+ "kind": "method",
105276
+ "name": "_onBlur",
105286
105277
  "privacy": "private",
105287
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
105288
- "inheritedFrom": {
105289
- "name": "SbbFormAssociatedMixin",
105290
- "module": "core/mixins/form-associated-mixin.js"
105278
+ "return": {
105279
+ "type": {
105280
+ "text": "void"
105281
+ }
105291
105282
  }
105292
105283
  },
105293
105284
  {
105294
- "kind": "field",
105295
- "name": "formDisabled",
105296
- "type": {
105297
- "text": "boolean"
105285
+ "kind": "method",
105286
+ "name": "_readFiles",
105287
+ "privacy": "private",
105288
+ "return": {
105289
+ "type": {
105290
+ "text": "void"
105291
+ }
105298
105292
  },
105299
- "privacy": "protected",
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"
105305
- }
105293
+ "parameters": [
105294
+ {
105295
+ "name": "event",
105296
+ "type": {
105297
+ "text": "Event"
105298
+ }
105299
+ }
105300
+ ]
105306
105301
  },
105307
105302
  {
105308
105303
  "kind": "method",
105309
- "name": "checkValidity",
105310
- "privacy": "public",
105304
+ "name": "createFileList",
105305
+ "privacy": "protected",
105311
105306
  "return": {
105312
105307
  "type": {
105313
- "text": "boolean"
105308
+ "text": "void"
105314
105309
  }
105315
105310
  },
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
- }
105311
+ "parameters": [
105312
+ {
105313
+ "name": "files",
105314
+ "type": {
105315
+ "text": "FileList"
105316
+ }
105317
+ }
105318
+ ]
105321
105319
  },
105322
105320
  {
105323
105321
  "kind": "method",
105324
- "name": "reportValidity",
105325
- "privacy": "public",
105322
+ "name": "getButtonLabel",
105323
+ "privacy": "protected",
105326
105324
  "return": {
105327
105325
  "type": {
105328
- "text": "boolean"
105326
+ "text": "string"
105329
105327
  }
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"
105335
105328
  }
105336
105329
  },
105337
105330
  {
105338
105331
  "kind": "method",
105339
- "name": "setCustomValidity",
105340
- "privacy": "public",
105332
+ "name": "_removeFile",
105333
+ "privacy": "private",
105341
105334
  "return": {
105342
105335
  "type": {
105343
105336
  "text": "void"
@@ -105345,65 +105338,66 @@
105345
105338
  },
105346
105339
  "parameters": [
105347
105340
  {
105348
- "name": "message",
105341
+ "name": "file",
105349
105342
  "type": {
105350
- "text": "string"
105343
+ "text": "Readonly<File>"
105351
105344
  }
105352
105345
  }
105353
- ],
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"
105346
+ ]
105347
+ },
105348
+ {
105349
+ "kind": "method",
105350
+ "name": "_dispatchFileChangedEvent",
105351
+ "privacy": "private",
105352
+ "return": {
105353
+ "type": {
105354
+ "text": "void"
105355
+ }
105358
105356
  }
105359
105357
  },
105360
105358
  {
105361
105359
  "kind": "method",
105362
- "name": "_hasDisabledAncestor",
105360
+ "name": "_formatFileSize",
105363
105361
  "privacy": "private",
105364
105362
  "return": {
105365
105363
  "type": {
105366
- "text": "boolean"
105364
+ "text": "string"
105367
105365
  }
105368
105366
  },
105369
- "inheritedFrom": {
105370
- "name": "SbbFormAssociatedMixin",
105371
- "module": "core/mixins/form-associated-mixin.js"
105372
- }
105367
+ "parameters": [
105368
+ {
105369
+ "name": "size",
105370
+ "type": {
105371
+ "text": "number"
105372
+ }
105373
+ }
105374
+ ],
105375
+ "description": "Calculates the correct unit for the file's size."
105373
105376
  },
105374
105377
  {
105375
105378
  "kind": "method",
105376
- "name": "updateFormValue",
105377
- "privacy": "protected",
105379
+ "name": "_updateA11yLiveRegion",
105380
+ "privacy": "private",
105378
105381
  "return": {
105379
105382
  "type": {
105380
105383
  "text": "void"
105381
105384
  }
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"
105387
105385
  }
105388
105386
  },
105389
105387
  {
105390
105388
  "kind": "method",
105391
- "name": "formState",
105392
- "privacy": "protected",
105389
+ "name": "_renderFileList",
105390
+ "privacy": "private",
105393
105391
  "return": {
105394
105392
  "type": {
105395
- "text": "FormRestoreState"
105393
+ "text": "TemplateResult"
105396
105394
  }
105397
- },
105398
- "inheritedFrom": {
105399
- "name": "SbbFormAssociatedMixin",
105400
- "module": "core/mixins/form-associated-mixin.js"
105401
105395
  }
105402
105396
  },
105403
105397
  {
105404
105398
  "kind": "method",
105405
- "name": "setValidityFlag",
105406
- "privacy": "protected",
105399
+ "name": "_onDragEnter",
105400
+ "privacy": "private",
105407
105401
  "return": {
105408
105402
  "type": {
105409
105403
  "text": "void"
@@ -105411,35 +105405,53 @@
105411
105405
  },
105412
105406
  "parameters": [
105413
105407
  {
105414
- "name": "flag",
105408
+ "name": "event",
105415
105409
  "type": {
105416
- "text": "T"
105410
+ "text": "DragEvent"
105417
105411
  }
105418
- },
105412
+ }
105413
+ ]
105414
+ },
105415
+ {
105416
+ "kind": "method",
105417
+ "name": "_onDragLeave",
105418
+ "privacy": "private",
105419
+ "return": {
105420
+ "type": {
105421
+ "text": "void"
105422
+ }
105423
+ },
105424
+ "parameters": [
105419
105425
  {
105420
- "name": "message",
105426
+ "name": "event",
105421
105427
  "type": {
105422
- "text": "string"
105428
+ "text": "DragEvent"
105423
105429
  }
105424
- },
105430
+ }
105431
+ ]
105432
+ },
105433
+ {
105434
+ "kind": "method",
105435
+ "name": "_onFileDrop",
105436
+ "privacy": "private",
105437
+ "return": {
105438
+ "type": {
105439
+ "text": "void"
105440
+ }
105441
+ },
105442
+ "parameters": [
105425
105443
  {
105426
- "name": "flagValue",
105427
- "optional": true,
105444
+ "name": "event",
105428
105445
  "type": {
105429
- "text": "ValidityStateFlags[T]"
105446
+ "text": "DragEvent"
105430
105447
  }
105431
105448
  }
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
- }
105449
+ ]
105438
105450
  },
105439
105451
  {
105440
105452
  "kind": "method",
105441
- "name": "removeValidityFlag",
105442
- "privacy": "protected",
105453
+ "name": "_blockEvent",
105454
+ "privacy": "private",
105443
105455
  "return": {
105444
105456
  "type": {
105445
105457
  "text": "void"
@@ -105447,296 +105459,276 @@
105447
105459
  },
105448
105460
  "parameters": [
105449
105461
  {
105450
- "name": "flag",
105462
+ "name": "event",
105451
105463
  "type": {
105452
- "text": "T"
105464
+ "text": "DragEvent"
105453
105465
  }
105454
105466
  }
105455
- ],
105456
- "description": "Removes the validity state flag entry and updates validity state.",
105457
- "inheritedFrom": {
105458
- "name": "SbbFormAssociatedMixin",
105459
- "module": "core/mixins/form-associated-mixin.js"
105460
- }
105467
+ ]
105461
105468
  },
105462
105469
  {
105463
105470
  "kind": "method",
105464
- "name": "validate",
105465
- "privacy": "protected",
105471
+ "name": "_setDragState",
105472
+ "privacy": "private",
105466
105473
  "return": {
105467
105474
  "type": {
105468
105475
  "text": "void"
105469
105476
  }
105470
105477
  },
105471
- "description": "To be called whenever the current element needs to be validated.",
105478
+ "parameters": [
105479
+ {
105480
+ "name": "dragTarget",
105481
+ "default": "undefined",
105482
+ "type": {
105483
+ "text": "HTMLElement | undefined"
105484
+ }
105485
+ },
105486
+ {
105487
+ "name": "isDragEnter",
105488
+ "default": "false",
105489
+ "type": {
105490
+ "text": "boolean"
105491
+ }
105492
+ }
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,
105472
105506
  "inheritedFrom": {
105473
- "name": "SbbFormAssociatedMixin",
105474
- "module": "core/mixins/form-associated-mixin.js"
105507
+ "name": "SbbDisabledMixin",
105508
+ "module": "core/mixins/disabled-mixin.js"
105475
105509
  }
105476
105510
  },
105477
105511
  {
105478
- "kind": "method",
105479
- "name": "shouldValidate",
105480
- "privacy": "protected",
105481
- "return": {
105482
- "type": {
105483
- "text": "boolean"
105484
- }
105512
+ "kind": "field",
105513
+ "name": "#disabled",
105514
+ "privacy": "private",
105515
+ "type": {
105516
+ "text": "boolean"
105485
105517
  },
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.",
105518
+ "default": "false",
105495
105519
  "inheritedFrom": {
105496
- "name": "SbbFormAssociatedMixin",
105497
- "module": "core/mixins/form-associated-mixin.js"
105520
+ "name": "SbbDisabledMixin",
105521
+ "module": "core/mixins/disabled-mixin.js"
105498
105522
  }
105499
105523
  },
105500
105524
  {
105501
105525
  "kind": "method",
105502
- "name": "_setInternalValidity",
105503
- "privacy": "private",
105526
+ "name": "isDisabledExternally",
105527
+ "privacy": "protected",
105504
105528
  "return": {
105505
105529
  "type": {
105506
- "text": "void"
105530
+ "text": "boolean"
105507
105531
  }
105508
105532
  },
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.",
105509
105534
  "inheritedFrom": {
105510
- "name": "SbbFormAssociatedMixin",
105511
- "module": "core/mixins/form-associated-mixin.js"
105535
+ "name": "SbbDisabledMixin",
105536
+ "module": "core/mixins/disabled-mixin.js"
105512
105537
  }
105513
105538
  },
105514
105539
  {
105515
105540
  "kind": "field",
105516
- "name": "role",
105541
+ "name": "formAssociated",
105517
105542
  "type": {
105518
- "text": "ElementInternals['role']"
105543
+ "text": "boolean"
105519
105544
  },
105520
105545
  "privacy": "public",
105521
105546
  "static": true,
105547
+ "default": "true",
105522
105548
  "inheritedFrom": {
105523
- "name": "SbbElement",
105524
- "module": "core/base-elements/element.js"
105525
- },
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
- ],
105540
- "inheritedFrom": {
105541
- "name": "SbbButtonLikeBaseElement",
105542
- "module": "core/base-elements/button-base-element.js"
105543
- }
105544
- },
105545
- {
105546
- "kind": "field",
105547
- "name": "_removeActiveMarker",
105548
- "privacy": "private",
105549
- "inheritedFrom": {
105550
- "name": "SbbButtonLikeBaseElement",
105551
- "module": "core/base-elements/button-base-element.js"
105549
+ "name": "SbbFormAssociatedMixin",
105550
+ "module": "core/mixins/form-associated-mixin.js"
105552
105551
  }
105553
105552
  },
105554
105553
  {
105555
105554
  "kind": "field",
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
- ],
105555
+ "name": "form",
105556
+ "type": {
105557
+ "text": "HTMLFormElement | null"
105558
+ },
105559
+ "privacy": "public",
105560
+ "description": "Returns the form owner of this element.",
105561
+ "readonly": true,
105565
105562
  "inheritedFrom": {
105566
- "name": "SbbButtonLikeBaseElement",
105567
- "module": "core/base-elements/button-base-element.js"
105563
+ "name": "SbbFormAssociatedMixin",
105564
+ "module": "core/mixins/form-associated-mixin.js"
105568
105565
  }
105569
105566
  },
105570
105567
  {
105571
105568
  "kind": "field",
105572
- "name": "_dispatchClickEvent",
105573
- "privacy": "private",
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",
105574
105576
  "inheritedFrom": {
105575
- "name": "SbbButtonLikeBaseElement",
105576
- "module": "core/base-elements/button-base-element.js"
105577
+ "name": "SbbFormAssociatedMixin",
105578
+ "module": "core/mixins/form-associated-mixin.js"
105577
105579
  }
105578
105580
  },
105579
105581
  {
105580
105582
  "kind": "field",
105581
- "name": "maybeDisabled",
105583
+ "name": "validity",
105582
105584
  "type": {
105583
- "text": "boolean | undefined"
105585
+ "text": "ValidityState"
105584
105586
  },
105585
- "privacy": "protected",
105587
+ "privacy": "public",
105588
+ "description": "Returns the ValidityState object for this element.",
105586
105589
  "readonly": true,
105587
105590
  "inheritedFrom": {
105588
- "name": "SbbActionBaseElement",
105589
- "module": "core/base-elements/action-base-element.js"
105591
+ "name": "SbbFormAssociatedMixin",
105592
+ "module": "core/mixins/form-associated-mixin.js"
105590
105593
  }
105591
105594
  },
105592
105595
  {
105593
105596
  "kind": "field",
105594
- "name": "maybeDisabledInteractive",
105597
+ "name": "validationMessage",
105595
105598
  "type": {
105596
- "text": "boolean | undefined"
105599
+ "text": "string"
105597
105600
  },
105598
- "privacy": "protected",
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.",
105599
105603
  "readonly": true,
105600
105604
  "inheritedFrom": {
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"
105605
+ "name": "SbbFormAssociatedMixin",
105606
+ "module": "core/mixins/form-associated-mixin.js"
105617
105607
  }
105618
105608
  },
105619
105609
  {
105620
105610
  "kind": "field",
105621
- "name": "['_$sbbElement$']",
105611
+ "name": "willValidate",
105622
105612
  "type": {
105623
105613
  "text": "boolean"
105624
105614
  },
105625
105615
  "privacy": "public",
105626
- "static": true,
105627
- "default": "true",
105616
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
105617
+ "readonly": true,
105628
105618
  "inheritedFrom": {
105629
- "name": "SbbElement",
105630
- "module": "core/base-elements/element.js"
105619
+ "name": "SbbFormAssociatedMixin",
105620
+ "module": "core/mixins/form-associated-mixin.js"
105631
105621
  }
105632
105622
  },
105633
105623
  {
105634
105624
  "kind": "field",
105635
- "name": "_controllers",
105636
- "type": {
105637
- "text": "Set<SbbReactiveController> | undefined"
105638
- },
105625
+ "name": "_validityStates",
105639
105626
  "privacy": "private",
105627
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
105640
105628
  "inheritedFrom": {
105641
- "name": "SbbElement",
105642
- "module": "core/base-elements/element.js"
105629
+ "name": "SbbFormAssociatedMixin",
105630
+ "module": "core/mixins/form-associated-mixin.js"
105643
105631
  }
105644
105632
  },
105645
105633
  {
105646
105634
  "kind": "field",
105647
- "name": "_hydrationRequired",
105635
+ "name": "formDisabled",
105648
105636
  "type": {
105649
105637
  "text": "boolean"
105650
105638
  },
105651
- "privacy": "private",
105652
- "default": "!!this.shadowRoot",
105639
+ "privacy": "protected",
105640
+ "default": "false",
105641
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
105653
105642
  "inheritedFrom": {
105654
- "name": "SbbElement",
105655
- "module": "core/base-elements/element.js"
105643
+ "name": "SbbFormAssociatedMixin",
105644
+ "module": "core/mixins/form-associated-mixin.js"
105656
105645
  }
105657
105646
  },
105658
105647
  {
105659
- "kind": "field",
105660
- "name": "_hydrationComplete",
105661
- "privacy": "private",
105662
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
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.",
105663
105657
  "inheritedFrom": {
105664
- "name": "SbbElement",
105665
- "module": "core/base-elements/element.js"
105658
+ "name": "SbbFormAssociatedMixin",
105659
+ "module": "core/mixins/form-associated-mixin.js"
105666
105660
  }
105667
105661
  },
105668
105662
  {
105669
- "kind": "field",
105670
- "name": "_resolveHydration",
105671
- "type": {
105672
- "text": "(hydrationRequired: boolean) => void"
105663
+ "kind": "method",
105664
+ "name": "reportValidity",
105665
+ "privacy": "public",
105666
+ "return": {
105667
+ "type": {
105668
+ "text": "boolean"
105669
+ }
105673
105670
  },
105674
- "privacy": "private",
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.",
105675
105672
  "inheritedFrom": {
105676
- "name": "SbbElement",
105677
- "module": "core/base-elements/element.js"
105673
+ "name": "SbbFormAssociatedMixin",
105674
+ "module": "core/mixins/form-associated-mixin.js"
105678
105675
  }
105679
105676
  },
105680
105677
  {
105681
- "kind": "field",
105682
- "name": "_textObserver",
105683
- "type": {
105684
- "text": "MutationObserver | undefined"
105678
+ "kind": "method",
105679
+ "name": "setCustomValidity",
105680
+ "privacy": "public",
105681
+ "return": {
105682
+ "type": {
105683
+ "text": "void"
105684
+ }
105685
105685
  },
105686
- "privacy": "private",
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.",
105687
105695
  "inheritedFrom": {
105688
- "name": "SbbElement",
105689
- "module": "core/base-elements/element.js"
105696
+ "name": "SbbFormAssociatedMixin",
105697
+ "module": "core/mixins/form-associated-mixin.js"
105690
105698
  }
105691
105699
  },
105692
105700
  {
105693
- "kind": "field",
105694
- "name": "hydrationRequired",
105695
- "type": {
105696
- "text": "boolean"
105701
+ "kind": "method",
105702
+ "name": "_hasDisabledAncestor",
105703
+ "privacy": "private",
105704
+ "return": {
105705
+ "type": {
105706
+ "text": "boolean"
105707
+ }
105697
105708
  },
105698
- "privacy": "protected",
105699
- "description": "Returns whether hydration is required and not completed.",
105700
- "readonly": true,
105701
105709
  "inheritedFrom": {
105702
- "name": "SbbElement",
105703
- "module": "core/base-elements/element.js"
105704
- },
105705
- "default": "!!this.shadowRoot"
105710
+ "name": "SbbFormAssociatedMixin",
105711
+ "module": "core/mixins/form-associated-mixin.js"
105712
+ }
105706
105713
  },
105707
105714
  {
105708
105715
  "kind": "method",
105709
- "name": "toggleState",
105716
+ "name": "formState",
105710
105717
  "privacy": "protected",
105711
105718
  "return": {
105712
105719
  "type": {
105713
- "text": "void"
105720
+ "text": "FormRestoreState"
105714
105721
  }
105715
105722
  },
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
- ],
105731
105723
  "inheritedFrom": {
105732
- "name": "SbbElement",
105733
- "module": "core/base-elements/element.js"
105724
+ "name": "SbbFormAssociatedMixin",
105725
+ "module": "core/mixins/form-associated-mixin.js"
105734
105726
  }
105735
105727
  },
105736
105728
  {
105737
105729
  "kind": "method",
105738
- "name": "_slotchangeHandler",
105739
- "privacy": "private",
105730
+ "name": "setValidityFlag",
105731
+ "privacy": "protected",
105740
105732
  "return": {
105741
105733
  "type": {
105742
105734
  "text": "void"
@@ -105744,27 +105736,35 @@
105744
105736
  },
105745
105737
  "parameters": [
105746
105738
  {
105747
- "name": "event",
105739
+ "name": "flag",
105748
105740
  "type": {
105749
- "text": "Event"
105741
+ "text": "T"
105750
105742
  }
105751
105743
  },
105752
105744
  {
105753
- "name": "slot",
105745
+ "name": "message",
105754
105746
  "type": {
105755
- "text": "HTMLSlotElement"
105747
+ "text": "string"
105748
+ }
105749
+ },
105750
+ {
105751
+ "name": "flagValue",
105752
+ "optional": true,
105753
+ "type": {
105754
+ "text": "ValidityStateFlags[T]"
105756
105755
  }
105757
105756
  }
105758
105757
  ],
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": "SbbElement",
105761
- "module": "core/base-elements/element.js"
105760
+ "name": "SbbFormAssociatedMixin",
105761
+ "module": "core/mixins/form-associated-mixin.js"
105762
105762
  }
105763
105763
  },
105764
105764
  {
105765
105765
  "kind": "method",
105766
- "name": "_handleSlotChangeForSlottedState",
105767
- "privacy": "private",
105766
+ "name": "removeValidityFlag",
105767
+ "privacy": "protected",
105768
105768
  "return": {
105769
105769
  "type": {
105770
105770
  "text": "void"
@@ -105772,185 +105772,151 @@
105772
105772
  },
105773
105773
  "parameters": [
105774
105774
  {
105775
- "name": "slot",
105775
+ "name": "flag",
105776
105776
  "type": {
105777
- "text": "HTMLSlotElement"
105777
+ "text": "T"
105778
105778
  }
105779
105779
  }
105780
105780
  ],
105781
+ "description": "Removes the validity state flag entry and updates validity state.",
105781
105782
  "inheritedFrom": {
105782
- "name": "SbbElement",
105783
- "module": "core/base-elements/element.js"
105783
+ "name": "SbbFormAssociatedMixin",
105784
+ "module": "core/mixins/form-associated-mixin.js"
105784
105785
  }
105785
105786
  },
105786
105787
  {
105787
105788
  "kind": "method",
105788
- "name": "_updateSlottedState",
105789
- "privacy": "private",
105789
+ "name": "validate",
105790
+ "privacy": "protected",
105790
105791
  "return": {
105791
105792
  "type": {
105792
105793
  "text": "void"
105793
105794
  }
105794
105795
  },
105795
- "parameters": [
105796
- {
105797
- "name": "slot",
105798
- "type": {
105799
- "text": "HTMLSlotElement"
105800
- }
105801
- }
105802
- ],
105796
+ "description": "To be called whenever the current element needs to be validated.",
105803
105797
  "inheritedFrom": {
105804
- "name": "SbbElement",
105805
- "module": "core/base-elements/element.js"
105798
+ "name": "SbbFormAssociatedMixin",
105799
+ "module": "core/mixins/form-associated-mixin.js"
105806
105800
  }
105807
105801
  },
105808
105802
  {
105809
105803
  "kind": "method",
105810
- "name": "_observeTextNodesInSlot",
105811
- "privacy": "private",
105804
+ "name": "shouldValidate",
105805
+ "privacy": "protected",
105812
105806
  "return": {
105813
105807
  "type": {
105814
- "text": "void"
105808
+ "text": "boolean"
105815
105809
  }
105816
105810
  },
105817
105811
  "parameters": [
105818
105812
  {
105819
- "name": "slot",
105813
+ "name": "name",
105820
105814
  "type": {
105821
- "text": "HTMLSlotElement"
105815
+ "text": "PropertyKey | undefined"
105822
105816
  }
105823
105817
  }
105824
105818
  ],
105819
+ "description": "Whether validation should be run on a property change with the given name.",
105825
105820
  "inheritedFrom": {
105826
- "name": "SbbElement",
105827
- "module": "core/base-elements/element.js"
105821
+ "name": "SbbFormAssociatedMixin",
105822
+ "module": "core/mixins/form-associated-mixin.js"
105828
105823
  }
105829
105824
  },
105830
105825
  {
105831
105826
  "kind": "method",
105832
- "name": "_hasSlottedContent",
105827
+ "name": "_setInternalValidity",
105833
105828
  "privacy": "private",
105834
105829
  "return": {
105835
105830
  "type": {
105836
- "text": "boolean"
105831
+ "text": "void"
105837
105832
  }
105838
105833
  },
105839
- "parameters": [
105840
- {
105841
- "name": "slot",
105842
- "type": {
105843
- "text": "HTMLSlotElement"
105844
- }
105845
- }
105846
- ],
105847
105834
  "inheritedFrom": {
105848
- "name": "SbbElement",
105849
- "module": "core/base-elements/element.js"
105835
+ "name": "SbbFormAssociatedMixin",
105836
+ "module": "core/mixins/form-associated-mixin.js"
105850
105837
  }
105851
105838
  }
105852
105839
  ],
105853
105840
  "events": [
105854
105841
  {
105855
- "name": "toggleexpanded",
105842
+ "name": "input",
105856
105843
  "type": {
105857
- "text": "Event"
105844
+ "text": "InputEvent"
105858
105845
  },
105859
- "description": "Notifies that the `sbb-expansion-panel` is about to expand/shrink."
105860
- }
105861
- ],
105862
- "mixins": [
105846
+ "description": "The input event fires when the value has been changed as a direct result of a user action."
105847
+ },
105863
105848
  {
105864
- "name": "SbbDisabledTabIndexActionMixin",
105865
- "module": "core.js"
105849
+ "name": "change",
105850
+ "type": {
105851
+ "text": "Event"
105852
+ },
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."
105866
105854
  },
105867
105855
  {
105868
- "name": "SbbIconNameMixin",
105869
- "module": "icon.pure.js"
105856
+ "name": "filechanged",
105857
+ "type": {
105858
+ "text": "CustomEvent<Readonly<File>[]>"
105859
+ },
105860
+ "description": "An event which is emitted each time the file list changes."
105870
105861
  }
105871
105862
  ],
105872
- "superclass": {
105873
- "name": "SbbButtonBaseElement",
105874
- "module": "core.js"
105875
- },
105876
- "tagName": "sbb-expansion-panel-header",
105877
- "customElement": true,
105878
105863
  "attributes": [
105879
105864
  {
105880
- "name": "disabled-interactive",
105865
+ "name": "size",
105881
105866
  "type": {
105882
- "text": "boolean"
105867
+ "text": "'s' | 'm'"
105883
105868
  },
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
- }
105869
+ "description": "Size variant, either s or m.",
105870
+ "default": "'m' / 's' (lean)",
105871
+ "fieldName": "size"
105891
105872
  },
105892
105873
  {
105893
- "name": "disabled",
105894
- "description": "Whether the component is disabled.",
105895
- "default": "false",
105874
+ "name": "multiple",
105896
105875
  "type": {
105897
105876
  "text": "boolean"
105898
105877
  },
105899
- "fieldName": "disabled",
105900
- "inheritedFrom": {
105901
- "name": "SbbDisabledMixin",
105902
- "module": "core/mixins/disabled-mixin.js"
105903
- }
105878
+ "default": "false",
105879
+ "description": "Whether more than one file can be selected.",
105880
+ "fieldName": "multiple"
105904
105881
  },
105905
105882
  {
105906
- "name": "icon-name",
105883
+ "name": "multiple-mode",
105907
105884
  "type": {
105908
- "text": "string"
105885
+ "text": "'default' | 'persistent'"
105909
105886
  },
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
- }
105887
+ "default": "'default'",
105888
+ "description": "Whether the newly added files should override the previously added ones.",
105889
+ "fieldName": "multipleMode"
105917
105890
  },
105918
105891
  {
105919
- "name": "value",
105892
+ "name": "accept",
105920
105893
  "type": {
105921
105894
  "text": "string"
105922
105895
  },
105923
105896
  "default": "''",
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
- }
105897
+ "description": "A comma-separated list of allowed unique file type specifiers.",
105898
+ "fieldName": "accept"
105930
105899
  },
105931
105900
  {
105932
- "name": "type",
105933
- "description": "The type attribute to use for the button.",
105934
- "default": "'button'",
105901
+ "name": "accessibility-label",
105935
105902
  "type": {
105936
- "text": "SbbButtonType"
105903
+ "text": "string"
105937
105904
  },
105938
- "fieldName": "type",
105939
- "inheritedFrom": {
105940
- "name": "SbbButtonBaseElement",
105941
- "module": "core/base-elements/button-base-element.js"
105942
- }
105905
+ "default": "''",
105906
+ "description": "This will be forwarded as aria-label to the native input element.",
105907
+ "fieldName": "accessibilityLabel"
105943
105908
  },
105944
105909
  {
105945
- "name": "form",
105946
- "description": "The `<form>` element to associate the button with.",
105910
+ "name": "disabled",
105911
+ "description": "Whether the component is disabled.",
105912
+ "default": "false",
105947
105913
  "type": {
105948
- "text": "HTMLFormElement | null"
105914
+ "text": "boolean"
105949
105915
  },
105950
- "fieldName": "form",
105916
+ "fieldName": "disabled",
105951
105917
  "inheritedFrom": {
105952
- "name": "SbbButtonBaseElement",
105953
- "module": "core/base-elements/button-base-element.js"
105918
+ "name": "SbbDisabledMixin",
105919
+ "module": "core/mixins/disabled-mixin.js"
105954
105920
  }
105955
105921
  },
105956
105922
  {
@@ -105965,16 +105931,50 @@
105965
105931
  "module": "core/mixins/form-associated-mixin.js"
105966
105932
  }
105967
105933
  }
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
+ }
105968
105952
  ]
105969
105953
  }
105970
105954
  ],
105971
105955
  "exports": [
105972
105956
  {
105973
105957
  "kind": "js",
105974
- "name": "SbbExpansionPanelHeaderElement",
105958
+ "name": "fileSelectorCommonStyle",
105975
105959
  "declaration": {
105976
- "name": "SbbExpansionPanelHeaderElement",
105977
- "module": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js"
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",
105975
+ "declaration": {
105976
+ "name": "SbbFileSelectorCommonElementMixin",
105977
+ "module": "file-selector/common/file-selector-common.js"
105978
105978
  }
105979
105979
  }
105980
105980
  ]