@sbb-esta/lyne-elements-dev 4.9.0-dev.1774871546 → 4.9.0-dev.1774875578

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/custom-elements.json +1557 -1557
  2. package/package.json +2 -2
@@ -87383,111 +87383,85 @@
87383
87383
  },
87384
87384
  {
87385
87385
  "kind": "javascript-module",
87386
- "path": "file-selector/common/file-selector-common.js",
87386
+ "path": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js",
87387
87387
  "declarations": [
87388
87388
  {
87389
87389
  "kind": "class",
87390
- "description": "",
87391
- "name": "SbbFileSelectorCommonElementMixinType",
87392
- "members": [
87393
- {
87394
- "kind": "field",
87395
- "name": "size",
87396
- "type": {
87397
- "text": "'s' | 'm'"
87398
- },
87399
- "privacy": "public"
87400
- },
87390
+ "description": "It acts as a native `summary` tag for the `sbb-expansion-panel` component.",
87391
+ "name": "SbbExpansionPanelHeaderElement",
87392
+ "slots": [
87401
87393
  {
87402
- "kind": "field",
87403
- "name": "multiple",
87404
- "type": {
87405
- "text": "boolean"
87406
- },
87407
- "privacy": "public"
87394
+ "description": "Use the unnamed slot to add content to the `sbb-expansion-panel-header`.",
87395
+ "name": ""
87408
87396
  },
87409
87397
  {
87410
- "kind": "field",
87411
- "name": "multipleMode",
87412
- "type": {
87413
- "text": "'default' | 'persistent'"
87414
- },
87415
- "privacy": "public"
87416
- },
87398
+ "description": "Slot used to render the `sbb-expansion-panel-header` icon.",
87399
+ "name": "icon"
87400
+ }
87401
+ ],
87402
+ "members": [
87417
87403
  {
87418
87404
  "kind": "field",
87419
- "name": "accept",
87405
+ "name": "elementName",
87420
87406
  "type": {
87421
87407
  "text": "string"
87422
87408
  },
87423
- "privacy": "public"
87424
- },
87425
- {
87426
- "kind": "field",
87427
- "name": "accessibilityLabel",
87428
- "type": {
87429
- "text": "string"
87409
+ "privacy": "public",
87410
+ "static": true,
87411
+ "readonly": true,
87412
+ "inheritedFrom": {
87413
+ "name": "SbbElement",
87414
+ "module": "core/base-elements/element.js"
87430
87415
  },
87431
- "privacy": "public"
87416
+ "default": "'sbb-expansion-panel-header'"
87432
87417
  },
87433
87418
  {
87434
87419
  "kind": "field",
87435
- "name": "files",
87420
+ "name": "events",
87421
+ "privacy": "public",
87422
+ "static": true,
87423
+ "readonly": true,
87424
+ "default": "{ toggleexpanded: 'toggleexpanded', }",
87436
87425
  "type": {
87437
- "text": "Readonly<File>[]"
87438
- },
87439
- "privacy": "public"
87426
+ "text": "{\n toggleexpanded: 'toggleexpanded',\n }"
87427
+ }
87440
87428
  },
87441
87429
  {
87442
87430
  "kind": "field",
87443
- "name": "value",
87444
- "type": {
87445
- "text": "string | null"
87446
- },
87447
- "privacy": "public",
87448
- "inheritedFrom": {
87449
- "name": "SbbFormAssociatedMixin",
87450
- "module": "core/mixins/form-associated-mixin.js"
87451
- }
87431
+ "name": "_mediaMatcher",
87432
+ "privacy": "private",
87433
+ "default": "new SbbMediaMatcherController(this, { [SbbMediaQueryHover]: (m) => (this._isHover = m), })"
87452
87434
  },
87453
87435
  {
87454
87436
  "kind": "field",
87455
- "name": "loadButton",
87437
+ "name": "_isHover",
87456
87438
  "type": {
87457
- "text": "SbbSecondaryButtonStaticElement"
87439
+ "text": "boolean"
87458
87440
  },
87459
- "privacy": "protected"
87441
+ "privacy": "private"
87460
87442
  },
87461
87443
  {
87462
87444
  "kind": "field",
87463
- "name": "language",
87445
+ "name": "_previousSize",
87464
87446
  "type": {
87465
- "text": "SbbLanguageController"
87447
+ "text": "string | undefined"
87466
87448
  },
87467
- "privacy": "protected"
87449
+ "privacy": "private"
87468
87450
  },
87469
87451
  {
87470
87452
  "kind": "method",
87471
- "name": "renderTemplate",
87472
- "privacy": "protected",
87453
+ "name": "_emitExpandedEvent",
87454
+ "privacy": "private",
87473
87455
  "return": {
87474
87456
  "type": {
87475
- "text": "TemplateResult"
87476
- }
87477
- },
87478
- "parameters": [
87479
- {
87480
- "name": "input",
87481
- "type": {
87482
- "text": "TemplateResult"
87483
- }
87457
+ "text": "void"
87484
87458
  }
87485
- ]
87459
+ }
87486
87460
  },
87487
87461
  {
87488
87462
  "kind": "method",
87489
- "name": "createFileList",
87490
- "privacy": "protected",
87463
+ "name": "_onMouseMovement",
87464
+ "privacy": "private",
87491
87465
  "return": {
87492
87466
  "type": {
87493
87467
  "text": "void"
@@ -87495,56 +87469,54 @@
87495
87469
  },
87496
87470
  "parameters": [
87497
87471
  {
87498
- "name": "files",
87472
+ "name": "toggleDataAttribute",
87499
87473
  "type": {
87500
- "text": "FileList"
87474
+ "text": "boolean"
87501
87475
  }
87502
87476
  }
87503
87477
  ]
87504
87478
  },
87505
87479
  {
87506
87480
  "kind": "method",
87507
- "name": "getButtonLabel",
87508
- "privacy": "protected",
87481
+ "name": "_setIconState",
87482
+ "privacy": "private",
87509
87483
  "return": {
87510
87484
  "type": {
87511
- "text": "string"
87485
+ "text": "void"
87512
87486
  }
87513
- }
87487
+ },
87488
+ "description": "The :state(icon) is used by the 'sbb-expansion-panel'.\nIt needs to be set before the"
87514
87489
  },
87515
87490
  {
87516
87491
  "kind": "method",
87517
- "name": "formResetCallback",
87518
- "privacy": "public",
87492
+ "name": "renderTemplate",
87493
+ "privacy": "protected",
87519
87494
  "return": {
87520
87495
  "type": {
87521
- "text": "void"
87496
+ "text": "TemplateResult"
87522
87497
  }
87498
+ },
87499
+ "description": "Override this method to render the component template.",
87500
+ "inheritedFrom": {
87501
+ "name": "SbbActionBaseElement",
87502
+ "module": "core/base-elements/action-base-element.js"
87523
87503
  }
87524
87504
  },
87525
87505
  {
87526
- "kind": "method",
87527
- "name": "formStateRestoreCallback",
87528
- "privacy": "public",
87529
- "return": {
87530
- "type": {
87531
- "text": "void"
87532
- }
87506
+ "kind": "field",
87507
+ "name": "disabledInteractive",
87508
+ "type": {
87509
+ "text": "boolean"
87533
87510
  },
87534
- "parameters": [
87535
- {
87536
- "name": "state",
87537
- "type": {
87538
- "text": "FormRestoreState | null"
87539
- }
87540
- },
87541
- {
87542
- "name": "reason",
87543
- "type": {
87544
- "text": "FormRestoreReason"
87545
- }
87546
- }
87547
- ]
87511
+ "privacy": "public",
87512
+ "default": "false",
87513
+ "description": "Whether the button should be aria-disabled but stay interactive.",
87514
+ "attribute": "disabled-interactive",
87515
+ "reflects": true,
87516
+ "inheritedFrom": {
87517
+ "name": "SbbDisabledInteractiveMixin",
87518
+ "module": "core/mixins/disabled-mixin.js"
87519
+ }
87548
87520
  },
87549
87521
  {
87550
87522
  "kind": "field",
@@ -87592,16 +87564,112 @@
87592
87564
  },
87593
87565
  {
87594
87566
  "kind": "field",
87595
- "name": "formAssociated",
87567
+ "name": "iconName",
87596
87568
  "type": {
87597
- "text": "boolean"
87569
+ "text": "string"
87598
87570
  },
87599
87571
  "privacy": "public",
87600
- "static": true,
87601
- "default": "true",
87572
+ "default": "''",
87573
+ "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.",
87574
+ "attribute": "icon-name",
87602
87575
  "inheritedFrom": {
87603
- "name": "SbbFormAssociatedMixin",
87604
- "module": "core/mixins/form-associated-mixin.js"
87576
+ "name": "SbbIconNameMixin",
87577
+ "module": "icon/icon-name-mixin.js"
87578
+ }
87579
+ },
87580
+ {
87581
+ "kind": "method",
87582
+ "name": "renderIconSlot",
87583
+ "privacy": "protected",
87584
+ "return": {
87585
+ "type": {
87586
+ "text": "TemplateResult"
87587
+ }
87588
+ },
87589
+ "parameters": [
87590
+ {
87591
+ "name": "classname",
87592
+ "optional": true,
87593
+ "type": {
87594
+ "text": "string"
87595
+ }
87596
+ }
87597
+ ],
87598
+ "inheritedFrom": {
87599
+ "name": "SbbIconNameMixin",
87600
+ "module": "icon/icon-name-mixin.js"
87601
+ }
87602
+ },
87603
+ {
87604
+ "kind": "method",
87605
+ "name": "renderIconName",
87606
+ "privacy": "protected",
87607
+ "return": {
87608
+ "type": {
87609
+ "text": "string"
87610
+ }
87611
+ },
87612
+ "inheritedFrom": {
87613
+ "name": "SbbIconNameMixin",
87614
+ "module": "icon/icon-name-mixin.js"
87615
+ }
87616
+ },
87617
+ {
87618
+ "kind": "method",
87619
+ "name": "_renderIconName",
87620
+ "privacy": "private",
87621
+ "return": {
87622
+ "type": {
87623
+ "text": "string"
87624
+ }
87625
+ },
87626
+ "inheritedFrom": {
87627
+ "name": "SbbIconNameMixin",
87628
+ "module": "icon/icon-name-mixin.js"
87629
+ }
87630
+ },
87631
+ {
87632
+ "kind": "field",
87633
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
87634
+ "type": {
87635
+ "text": "array"
87636
+ },
87637
+ "privacy": "private",
87638
+ "readonly": true,
87639
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
87640
+ "inheritedFrom": {
87641
+ "name": "SbbButtonBaseElement",
87642
+ "module": "core/base-elements/button-base-element.js"
87643
+ }
87644
+ },
87645
+ {
87646
+ "kind": "field",
87647
+ "name": "value",
87648
+ "type": {
87649
+ "text": "string"
87650
+ },
87651
+ "privacy": "public",
87652
+ "inheritedFrom": {
87653
+ "name": "SbbButtonBaseElement",
87654
+ "module": "core/base-elements/button-base-element.js"
87655
+ },
87656
+ "default": "''",
87657
+ "description": "Value of the form element.",
87658
+ "attribute": "value"
87659
+ },
87660
+ {
87661
+ "kind": "field",
87662
+ "name": "type",
87663
+ "privacy": "public",
87664
+ "description": "The type attribute to use for the button.",
87665
+ "default": "'button'",
87666
+ "type": {
87667
+ "text": "SbbButtonType"
87668
+ },
87669
+ "attribute": "type",
87670
+ "inheritedFrom": {
87671
+ "name": "SbbButtonBaseElement",
87672
+ "module": "core/base-elements/button-base-element.js"
87605
87673
  }
87606
87674
  },
87607
87675
  {
@@ -87611,8 +87679,75 @@
87611
87679
  "text": "HTMLFormElement | null"
87612
87680
  },
87613
87681
  "privacy": "public",
87614
- "description": "Returns the form owner of this element.",
87615
- "readonly": true,
87682
+ "description": "The `<form>` element to associate the button with.",
87683
+ "inheritedFrom": {
87684
+ "name": "SbbButtonBaseElement",
87685
+ "module": "core/base-elements/button-base-element.js"
87686
+ },
87687
+ "attribute": "form"
87688
+ },
87689
+ {
87690
+ "kind": "field",
87691
+ "name": "_formId",
87692
+ "type": {
87693
+ "text": "string"
87694
+ },
87695
+ "privacy": "private",
87696
+ "default": "''",
87697
+ "inheritedFrom": {
87698
+ "name": "SbbButtonBaseElement",
87699
+ "module": "core/base-elements/button-base-element.js"
87700
+ }
87701
+ },
87702
+ {
87703
+ "kind": "field",
87704
+ "name": "_handleButtonClick",
87705
+ "privacy": "private",
87706
+ "inheritedFrom": {
87707
+ "name": "SbbButtonBaseElement",
87708
+ "module": "core/base-elements/button-base-element.js"
87709
+ }
87710
+ },
87711
+ {
87712
+ "kind": "method",
87713
+ "name": "_requestSubmit",
87714
+ "privacy": "private",
87715
+ "return": {
87716
+ "type": {
87717
+ "text": "void"
87718
+ }
87719
+ },
87720
+ "parameters": [
87721
+ {
87722
+ "name": "form",
87723
+ "type": {
87724
+ "text": "HTMLFormElement"
87725
+ }
87726
+ }
87727
+ ],
87728
+ "inheritedFrom": {
87729
+ "name": "SbbButtonBaseElement",
87730
+ "module": "core/base-elements/button-base-element.js"
87731
+ }
87732
+ },
87733
+ {
87734
+ "kind": "field",
87735
+ "name": "_formKeyDown",
87736
+ "privacy": "private",
87737
+ "inheritedFrom": {
87738
+ "name": "SbbButtonBaseElement",
87739
+ "module": "core/base-elements/button-base-element.js"
87740
+ }
87741
+ },
87742
+ {
87743
+ "kind": "field",
87744
+ "name": "formAssociated",
87745
+ "type": {
87746
+ "text": "boolean"
87747
+ },
87748
+ "privacy": "public",
87749
+ "static": true,
87750
+ "default": "true",
87616
87751
  "inheritedFrom": {
87617
87752
  "name": "SbbFormAssociatedMixin",
87618
87753
  "module": "core/mixins/form-associated-mixin.js"
@@ -87905,6 +88040,111 @@
87905
88040
  "module": "core/mixins/form-associated-mixin.js"
87906
88041
  }
87907
88042
  },
88043
+ {
88044
+ "kind": "field",
88045
+ "name": "role",
88046
+ "type": {
88047
+ "text": "ElementInternals['role']"
88048
+ },
88049
+ "privacy": "public",
88050
+ "static": true,
88051
+ "readonly": true,
88052
+ "default": "'button'",
88053
+ "inheritedFrom": {
88054
+ "name": "SbbButtonLikeBaseElement",
88055
+ "module": "core/base-elements/button-base-element.js"
88056
+ }
88057
+ },
88058
+ {
88059
+ "kind": "field",
88060
+ "name": "_preventScrollOnSpaceKeydown",
88061
+ "privacy": "private",
88062
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
88063
+ "parameters": [
88064
+ {
88065
+ "description": "The origin event.",
88066
+ "name": "event"
88067
+ }
88068
+ ],
88069
+ "inheritedFrom": {
88070
+ "name": "SbbButtonLikeBaseElement",
88071
+ "module": "core/base-elements/button-base-element.js"
88072
+ }
88073
+ },
88074
+ {
88075
+ "kind": "field",
88076
+ "name": "_removeActiveMarker",
88077
+ "privacy": "private",
88078
+ "inheritedFrom": {
88079
+ "name": "SbbButtonLikeBaseElement",
88080
+ "module": "core/base-elements/button-base-element.js"
88081
+ }
88082
+ },
88083
+ {
88084
+ "kind": "field",
88085
+ "name": "_dispatchClickEventOnSpaceKeyup",
88086
+ "privacy": "private",
88087
+ "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.",
88088
+ "parameters": [
88089
+ {
88090
+ "description": "The origin event.",
88091
+ "name": "event"
88092
+ }
88093
+ ],
88094
+ "inheritedFrom": {
88095
+ "name": "SbbButtonLikeBaseElement",
88096
+ "module": "core/base-elements/button-base-element.js"
88097
+ }
88098
+ },
88099
+ {
88100
+ "kind": "field",
88101
+ "name": "_dispatchClickEvent",
88102
+ "privacy": "private",
88103
+ "inheritedFrom": {
88104
+ "name": "SbbButtonLikeBaseElement",
88105
+ "module": "core/base-elements/button-base-element.js"
88106
+ }
88107
+ },
88108
+ {
88109
+ "kind": "field",
88110
+ "name": "maybeDisabled",
88111
+ "type": {
88112
+ "text": "boolean | undefined"
88113
+ },
88114
+ "privacy": "protected",
88115
+ "readonly": true,
88116
+ "inheritedFrom": {
88117
+ "name": "SbbActionBaseElement",
88118
+ "module": "core/base-elements/action-base-element.js"
88119
+ }
88120
+ },
88121
+ {
88122
+ "kind": "field",
88123
+ "name": "maybeDisabledInteractive",
88124
+ "type": {
88125
+ "text": "boolean | undefined"
88126
+ },
88127
+ "privacy": "protected",
88128
+ "readonly": true,
88129
+ "inheritedFrom": {
88130
+ "name": "SbbActionBaseElement",
88131
+ "module": "core/base-elements/action-base-element.js"
88132
+ }
88133
+ },
88134
+ {
88135
+ "kind": "method",
88136
+ "name": "setupBaseEventHandlers",
88137
+ "privacy": "protected",
88138
+ "return": {
88139
+ "type": {
88140
+ "text": "void"
88141
+ }
88142
+ },
88143
+ "inheritedFrom": {
88144
+ "name": "SbbActionBaseElement",
88145
+ "module": "core/base-elements/action-base-element.js"
88146
+ }
88147
+ },
87908
88148
  {
87909
88149
  "kind": "field",
87910
88150
  "name": "_hydrationRequired",
@@ -87998,20 +88238,6 @@
87998
88238
  "module": "core/base-elements/element.js"
87999
88239
  }
88000
88240
  },
88001
- {
88002
- "kind": "field",
88003
- "name": "elementName",
88004
- "type": {
88005
- "text": "string"
88006
- },
88007
- "privacy": "public",
88008
- "static": true,
88009
- "readonly": true,
88010
- "inheritedFrom": {
88011
- "name": "SbbElement",
88012
- "module": "core/base-elements/element.js"
88013
- }
88014
- },
88015
88241
  {
88016
88242
  "kind": "field",
88017
88243
  "name": "_controllers",
@@ -88025,21 +88251,45 @@
88025
88251
  }
88026
88252
  }
88027
88253
  ],
88254
+ "events": [
88255
+ {
88256
+ "name": "toggleexpanded",
88257
+ "type": {
88258
+ "text": "Event"
88259
+ },
88260
+ "description": "Notifies that the `sbb-expansion-panel` is about to expand/shrink."
88261
+ }
88262
+ ],
88028
88263
  "mixins": [
88029
88264
  {
88030
- "name": "SbbDisabledMixin",
88265
+ "name": "SbbDisabledTabIndexActionMixin",
88031
88266
  "module": "core/mixins.js"
88032
88267
  },
88033
88268
  {
88034
- "name": "SbbFormAssociatedMixin",
88035
- "module": "core/mixins.js"
88269
+ "name": "SbbIconNameMixin",
88270
+ "module": "icon.js"
88036
88271
  }
88037
88272
  ],
88038
88273
  "superclass": {
88039
- "name": "SbbElement",
88274
+ "name": "SbbButtonBaseElement",
88040
88275
  "module": "core/base-elements.js"
88041
88276
  },
88277
+ "tagName": "sbb-expansion-panel-header",
88278
+ "customElement": true,
88042
88279
  "attributes": [
88280
+ {
88281
+ "name": "disabled-interactive",
88282
+ "type": {
88283
+ "text": "boolean"
88284
+ },
88285
+ "default": "false",
88286
+ "description": "Whether the button should be aria-disabled but stay interactive.",
88287
+ "fieldName": "disabledInteractive",
88288
+ "inheritedFrom": {
88289
+ "name": "SbbDisabledInteractiveMixin",
88290
+ "module": "core/mixins/disabled-mixin.js"
88291
+ }
88292
+ },
88043
88293
  {
88044
88294
  "name": "disabled",
88045
88295
  "description": "Whether the component is disabled.",
@@ -88054,157 +88304,150 @@
88054
88304
  }
88055
88305
  },
88056
88306
  {
88057
- "name": "name",
88058
- "description": "Name of the form element. Will be read from name attribute.",
88307
+ "name": "icon-name",
88059
88308
  "type": {
88060
88309
  "text": "string"
88061
88310
  },
88062
- "fieldName": "name",
88311
+ "default": "''",
88312
+ "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.",
88313
+ "fieldName": "iconName",
88063
88314
  "inheritedFrom": {
88064
- "name": "SbbFormAssociatedMixin",
88065
- "module": "core/mixins/form-associated-mixin.js"
88066
- }
88067
- }
88068
- ]
88069
- },
88070
- {
88071
- "kind": "mixin",
88072
- "description": "",
88073
- "name": "SbbFileSelectorCommonElementMixin",
88074
- "members": [
88075
- {
88076
- "kind": "field",
88077
- "name": "events",
88078
- "privacy": "public",
88079
- "static": true,
88080
- "readonly": true,
88081
- "default": "{ filechanged: 'filechanged', }",
88082
- "type": {
88083
- "text": "{\n filechanged: 'filechanged',\n }"
88315
+ "name": "SbbIconNameMixin",
88316
+ "module": "icon/icon-name-mixin.js"
88084
88317
  }
88085
88318
  },
88086
88319
  {
88087
- "kind": "field",
88088
- "name": "size",
88320
+ "name": "value",
88089
88321
  "type": {
88090
- "text": "'s' | 'm'"
88322
+ "text": "string"
88091
88323
  },
88092
- "privacy": "public",
88093
- "description": "Size variant, either s or m.",
88094
- "default": "'m' / 's' (lean)",
88095
- "attribute": "size",
88096
- "reflects": true
88324
+ "default": "''",
88325
+ "description": "Value of the form element.",
88326
+ "fieldName": "value",
88327
+ "inheritedFrom": {
88328
+ "name": "SbbButtonBaseElement",
88329
+ "module": "core/base-elements/button-base-element.js"
88330
+ }
88097
88331
  },
88098
88332
  {
88099
- "kind": "field",
88100
- "name": "multiple",
88333
+ "name": "type",
88334
+ "description": "The type attribute to use for the button.",
88335
+ "default": "'button'",
88101
88336
  "type": {
88102
- "text": "boolean"
88337
+ "text": "SbbButtonType"
88103
88338
  },
88104
- "privacy": "public",
88105
- "default": "false",
88106
- "description": "Whether more than one file can be selected.",
88107
- "attribute": "multiple"
88339
+ "fieldName": "type",
88340
+ "inheritedFrom": {
88341
+ "name": "SbbButtonBaseElement",
88342
+ "module": "core/base-elements/button-base-element.js"
88343
+ }
88108
88344
  },
88109
88345
  {
88110
- "kind": "field",
88111
- "name": "multipleMode",
88346
+ "name": "form",
88347
+ "description": "The `<form>` element to associate the button with.",
88112
88348
  "type": {
88113
- "text": "'default' | 'persistent'"
88349
+ "text": "HTMLFormElement | null"
88114
88350
  },
88115
- "privacy": "public",
88116
- "default": "'default'",
88117
- "description": "Whether the newly added files should override the previously added ones.",
88118
- "attribute": "multiple-mode"
88351
+ "fieldName": "form",
88352
+ "inheritedFrom": {
88353
+ "name": "SbbButtonBaseElement",
88354
+ "module": "core/base-elements/button-base-element.js"
88355
+ }
88119
88356
  },
88120
88357
  {
88121
- "kind": "field",
88122
- "name": "accept",
88358
+ "name": "name",
88359
+ "description": "Name of the form element. Will be read from name attribute.",
88123
88360
  "type": {
88124
88361
  "text": "string"
88125
88362
  },
88126
- "privacy": "public",
88127
- "default": "''",
88128
- "description": "A comma-separated list of allowed unique file type specifiers.",
88129
- "attribute": "accept"
88130
- },
88363
+ "fieldName": "name",
88364
+ "inheritedFrom": {
88365
+ "name": "SbbFormAssociatedMixin",
88366
+ "module": "core/mixins/form-associated-mixin.js"
88367
+ }
88368
+ }
88369
+ ]
88370
+ }
88371
+ ],
88372
+ "exports": [
88373
+ {
88374
+ "kind": "js",
88375
+ "name": "SbbExpansionPanelHeaderElement",
88376
+ "declaration": {
88377
+ "name": "SbbExpansionPanelHeaderElement",
88378
+ "module": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js"
88379
+ }
88380
+ }
88381
+ ]
88382
+ },
88383
+ {
88384
+ "kind": "javascript-module",
88385
+ "path": "file-selector/common/file-selector-common.js",
88386
+ "declarations": [
88387
+ {
88388
+ "kind": "class",
88389
+ "description": "",
88390
+ "name": "SbbFileSelectorCommonElementMixinType",
88391
+ "members": [
88131
88392
  {
88132
88393
  "kind": "field",
88133
- "name": "accessibilityLabel",
88394
+ "name": "size",
88134
88395
  "type": {
88135
- "text": "string"
88396
+ "text": "'s' | 'm'"
88136
88397
  },
88137
- "privacy": "public",
88138
- "default": "''",
88139
- "description": "This will be forwarded as aria-label to the native input element.",
88140
- "attribute": "accessibility-label"
88398
+ "privacy": "public"
88141
88399
  },
88142
88400
  {
88143
88401
  "kind": "field",
88144
- "name": "value",
88402
+ "name": "multiple",
88145
88403
  "type": {
88146
- "text": "string | null"
88404
+ "text": "boolean"
88147
88405
  },
88148
- "privacy": "public",
88149
- "description": "The path of the first selected file. Empty string ('') if no file is selected",
88150
- "inheritedFrom": {
88151
- "name": "SbbFormAssociatedMixin",
88152
- "module": "core/mixins/form-associated-mixin.js"
88153
- }
88154
- },
88155
- {
88156
- "kind": "field",
88157
- "name": "files",
88158
- "privacy": "public",
88159
- "description": "The list of selected files.",
88160
- "type": {
88161
- "text": "Readonly<File>[]"
88162
- }
88406
+ "privacy": "public"
88163
88407
  },
88164
88408
  {
88165
88409
  "kind": "field",
88166
- "name": "_files",
88410
+ "name": "multipleMode",
88167
88411
  "type": {
88168
- "text": "Readonly<File>[]"
88412
+ "text": "'default' | 'persistent'"
88169
88413
  },
88170
- "privacy": "private",
88171
- "default": "[]"
88414
+ "privacy": "public"
88172
88415
  },
88173
88416
  {
88174
88417
  "kind": "field",
88175
- "name": "type",
88418
+ "name": "accept",
88176
88419
  "type": {
88177
88420
  "text": "string"
88178
88421
  },
88179
- "privacy": "public",
88180
- "description": "Form type of element.",
88181
- "default": "'file'",
88182
- "readonly": true
88422
+ "privacy": "public"
88183
88423
  },
88184
88424
  {
88185
88425
  "kind": "field",
88186
- "name": "_hiddenInput",
88426
+ "name": "accessibilityLabel",
88187
88427
  "type": {
88188
- "text": "HTMLInputElement"
88428
+ "text": "string"
88189
88429
  },
88190
- "privacy": "private"
88430
+ "privacy": "public"
88191
88431
  },
88192
88432
  {
88193
88433
  "kind": "field",
88194
- "name": "_suffixes",
88434
+ "name": "files",
88195
88435
  "type": {
88196
- "text": "string[]"
88436
+ "text": "Readonly<File>[]"
88197
88437
  },
88198
- "privacy": "private",
88199
- "default": "['B', 'kB', 'MB', 'GB', 'TB']"
88438
+ "privacy": "public"
88200
88439
  },
88201
88440
  {
88202
88441
  "kind": "field",
88203
- "name": "_liveRegion",
88442
+ "name": "value",
88204
88443
  "type": {
88205
- "text": "HTMLParagraphElement"
88444
+ "text": "string | null"
88206
88445
  },
88207
- "privacy": "private"
88446
+ "privacy": "public",
88447
+ "inheritedFrom": {
88448
+ "name": "SbbFormAssociatedMixin",
88449
+ "module": "core/mixins/form-associated-mixin.js"
88450
+ }
88208
88451
  },
88209
88452
  {
88210
88453
  "kind": "field",
@@ -88217,25 +88460,10 @@
88217
88460
  {
88218
88461
  "kind": "field",
88219
88462
  "name": "language",
88220
- "privacy": "protected",
88221
- "default": "new SbbLanguageController(this)"
88222
- },
88223
- {
88224
- "kind": "field",
88225
- "name": "_counter",
88226
- "type": {
88227
- "text": "number"
88228
- },
88229
- "privacy": "private",
88230
- "default": "0"
88231
- },
88232
- {
88233
- "kind": "field",
88234
- "name": "_dragTarget",
88235
88463
  "type": {
88236
- "text": "HTMLElement | undefined"
88464
+ "text": "SbbLanguageController"
88237
88465
  },
88238
- "privacy": "private"
88466
+ "privacy": "protected"
88239
88467
  },
88240
88468
  {
88241
88469
  "kind": "method",
@@ -88255,118 +88483,6 @@
88255
88483
  }
88256
88484
  ]
88257
88485
  },
88258
- {
88259
- "kind": "method",
88260
- "name": "formResetCallback",
88261
- "privacy": "public",
88262
- "return": {
88263
- "type": {
88264
- "text": "void"
88265
- }
88266
- }
88267
- },
88268
- {
88269
- "kind": "method",
88270
- "name": "formStateRestoreCallback",
88271
- "privacy": "public",
88272
- "return": {
88273
- "type": {
88274
- "text": "void"
88275
- }
88276
- },
88277
- "parameters": [
88278
- {
88279
- "name": "state",
88280
- "type": {
88281
- "text": "FormRestoreState | null"
88282
- }
88283
- },
88284
- {
88285
- "name": "_reason",
88286
- "optional": true,
88287
- "type": {
88288
- "text": "FormRestoreReason"
88289
- }
88290
- }
88291
- ]
88292
- },
88293
- {
88294
- "kind": "method",
88295
- "name": "updateFormValue",
88296
- "privacy": "protected",
88297
- "return": {
88298
- "type": {
88299
- "text": "void"
88300
- }
88301
- },
88302
- "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",
88303
- "inheritedFrom": {
88304
- "name": "SbbFormAssociatedMixin",
88305
- "module": "core/mixins/form-associated-mixin.js"
88306
- }
88307
- },
88308
- {
88309
- "kind": "method",
88310
- "name": "_checkFileEquality",
88311
- "privacy": "private",
88312
- "return": {
88313
- "type": {
88314
- "text": "boolean"
88315
- }
88316
- },
88317
- "parameters": [
88318
- {
88319
- "name": "file1",
88320
- "type": {
88321
- "text": "Readonly<File>"
88322
- }
88323
- },
88324
- {
88325
- "name": "file2",
88326
- "type": {
88327
- "text": "Readonly<File>"
88328
- }
88329
- }
88330
- ]
88331
- },
88332
- {
88333
- "kind": "method",
88334
- "name": "_onFocus",
88335
- "privacy": "private",
88336
- "return": {
88337
- "type": {
88338
- "text": "void"
88339
- }
88340
- }
88341
- },
88342
- {
88343
- "kind": "method",
88344
- "name": "_onBlur",
88345
- "privacy": "private",
88346
- "return": {
88347
- "type": {
88348
- "text": "void"
88349
- }
88350
- }
88351
- },
88352
- {
88353
- "kind": "method",
88354
- "name": "_readFiles",
88355
- "privacy": "private",
88356
- "return": {
88357
- "type": {
88358
- "text": "void"
88359
- }
88360
- },
88361
- "parameters": [
88362
- {
88363
- "name": "event",
88364
- "type": {
88365
- "text": "Event"
88366
- }
88367
- }
88368
- ]
88369
- },
88370
88486
  {
88371
88487
  "kind": "method",
88372
88488
  "name": "createFileList",
@@ -88397,55 +88513,8 @@
88397
88513
  },
88398
88514
  {
88399
88515
  "kind": "method",
88400
- "name": "_removeFile",
88401
- "privacy": "private",
88402
- "return": {
88403
- "type": {
88404
- "text": "void"
88405
- }
88406
- },
88407
- "parameters": [
88408
- {
88409
- "name": "file",
88410
- "type": {
88411
- "text": "Readonly<File>"
88412
- }
88413
- }
88414
- ]
88415
- },
88416
- {
88417
- "kind": "method",
88418
- "name": "_dispatchFileChangedEvent",
88419
- "privacy": "private",
88420
- "return": {
88421
- "type": {
88422
- "text": "void"
88423
- }
88424
- }
88425
- },
88426
- {
88427
- "kind": "method",
88428
- "name": "_formatFileSize",
88429
- "privacy": "private",
88430
- "return": {
88431
- "type": {
88432
- "text": "string"
88433
- }
88434
- },
88435
- "parameters": [
88436
- {
88437
- "name": "size",
88438
- "type": {
88439
- "text": "number"
88440
- }
88441
- }
88442
- ],
88443
- "description": "Calculates the correct unit for the file's size."
88444
- },
88445
- {
88446
- "kind": "method",
88447
- "name": "_updateA11yLiveRegion",
88448
- "privacy": "private",
88516
+ "name": "formResetCallback",
88517
+ "privacy": "public",
88449
88518
  "return": {
88450
88519
  "type": {
88451
88520
  "text": "void"
@@ -88454,90 +88523,8 @@
88454
88523
  },
88455
88524
  {
88456
88525
  "kind": "method",
88457
- "name": "_renderFileList",
88458
- "privacy": "private",
88459
- "return": {
88460
- "type": {
88461
- "text": "TemplateResult"
88462
- }
88463
- }
88464
- },
88465
- {
88466
- "kind": "method",
88467
- "name": "_onDragEnter",
88468
- "privacy": "private",
88469
- "return": {
88470
- "type": {
88471
- "text": "void"
88472
- }
88473
- },
88474
- "parameters": [
88475
- {
88476
- "name": "event",
88477
- "type": {
88478
- "text": "DragEvent"
88479
- }
88480
- }
88481
- ]
88482
- },
88483
- {
88484
- "kind": "method",
88485
- "name": "_onDragLeave",
88486
- "privacy": "private",
88487
- "return": {
88488
- "type": {
88489
- "text": "void"
88490
- }
88491
- },
88492
- "parameters": [
88493
- {
88494
- "name": "event",
88495
- "type": {
88496
- "text": "DragEvent"
88497
- }
88498
- }
88499
- ]
88500
- },
88501
- {
88502
- "kind": "method",
88503
- "name": "_onFileDrop",
88504
- "privacy": "private",
88505
- "return": {
88506
- "type": {
88507
- "text": "void"
88508
- }
88509
- },
88510
- "parameters": [
88511
- {
88512
- "name": "event",
88513
- "type": {
88514
- "text": "DragEvent"
88515
- }
88516
- }
88517
- ]
88518
- },
88519
- {
88520
- "kind": "method",
88521
- "name": "_blockEvent",
88522
- "privacy": "private",
88523
- "return": {
88524
- "type": {
88525
- "text": "void"
88526
- }
88527
- },
88528
- "parameters": [
88529
- {
88530
- "name": "event",
88531
- "type": {
88532
- "text": "DragEvent"
88533
- }
88534
- }
88535
- ]
88536
- },
88537
- {
88538
- "kind": "method",
88539
- "name": "_setDragState",
88540
- "privacy": "private",
88526
+ "name": "formStateRestoreCallback",
88527
+ "privacy": "public",
88541
88528
  "return": {
88542
88529
  "type": {
88543
88530
  "text": "void"
@@ -88545,17 +88532,15 @@
88545
88532
  },
88546
88533
  "parameters": [
88547
88534
  {
88548
- "name": "dragTarget",
88549
- "default": "undefined",
88535
+ "name": "state",
88550
88536
  "type": {
88551
- "text": "HTMLElement | undefined"
88537
+ "text": "FormRestoreState | null"
88552
88538
  }
88553
88539
  },
88554
88540
  {
88555
- "name": "isDragEnter",
88556
- "default": "false",
88541
+ "name": "reason",
88557
88542
  "type": {
88558
- "text": "boolean"
88543
+ "text": "FormRestoreReason"
88559
88544
  }
88560
88545
  }
88561
88546
  ]
@@ -88779,6 +88764,21 @@
88779
88764
  "module": "core/mixins/form-associated-mixin.js"
88780
88765
  }
88781
88766
  },
88767
+ {
88768
+ "kind": "method",
88769
+ "name": "updateFormValue",
88770
+ "privacy": "protected",
88771
+ "return": {
88772
+ "type": {
88773
+ "text": "void"
88774
+ }
88775
+ },
88776
+ "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",
88777
+ "inheritedFrom": {
88778
+ "name": "SbbFormAssociatedMixin",
88779
+ "module": "core/mixins/form-associated-mixin.js"
88780
+ }
88781
+ },
88782
88782
  {
88783
88783
  "kind": "method",
88784
88784
  "name": "formState",
@@ -88903,77 +88903,142 @@
88903
88903
  "name": "SbbFormAssociatedMixin",
88904
88904
  "module": "core/mixins/form-associated-mixin.js"
88905
88905
  }
88906
- }
88907
- ],
88908
- "events": [
88909
- {
88910
- "name": "input",
88911
- "type": {
88912
- "text": "InputEvent"
88913
- },
88914
- "description": "The input event fires when the value has been changed as a direct result of a user action."
88915
88906
  },
88916
88907
  {
88917
- "name": "change",
88908
+ "kind": "field",
88909
+ "name": "_hydrationRequired",
88918
88910
  "type": {
88919
- "text": "Event"
88911
+ "text": "boolean"
88920
88912
  },
88921
- "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."
88913
+ "privacy": "private",
88914
+ "default": "!!this.shadowRoot",
88915
+ "inheritedFrom": {
88916
+ "name": "SbbElement",
88917
+ "module": "core/base-elements/element.js"
88918
+ }
88922
88919
  },
88923
88920
  {
88924
- "name": "filechanged",
88925
- "type": {
88926
- "text": "CustomEvent<Readonly<File>[]>"
88927
- },
88928
- "description": "An event which is emitted each time the file list changes."
88929
- }
88930
- ],
88931
- "attributes": [
88921
+ "kind": "field",
88922
+ "name": "_hydrationComplete",
88923
+ "privacy": "private",
88924
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
88925
+ "inheritedFrom": {
88926
+ "name": "SbbElement",
88927
+ "module": "core/base-elements/element.js"
88928
+ }
88929
+ },
88932
88930
  {
88933
- "name": "size",
88931
+ "kind": "field",
88932
+ "name": "_resolveHydration",
88934
88933
  "type": {
88935
- "text": "'s' | 'm'"
88934
+ "text": "(hydrationRequired: boolean) => void"
88936
88935
  },
88937
- "description": "Size variant, either s or m.",
88938
- "default": "'m' / 's' (lean)",
88939
- "fieldName": "size"
88936
+ "privacy": "private",
88937
+ "inheritedFrom": {
88938
+ "name": "SbbElement",
88939
+ "module": "core/base-elements/element.js"
88940
+ }
88940
88941
  },
88941
88942
  {
88942
- "name": "multiple",
88943
+ "kind": "field",
88944
+ "name": "hydrationRequired",
88943
88945
  "type": {
88944
88946
  "text": "boolean"
88945
88947
  },
88946
- "default": "false",
88947
- "description": "Whether more than one file can be selected.",
88948
- "fieldName": "multiple"
88948
+ "privacy": "protected",
88949
+ "description": "Returns whether hydration is required and not completed.",
88950
+ "readonly": true,
88951
+ "inheritedFrom": {
88952
+ "name": "SbbElement",
88953
+ "module": "core/base-elements/element.js"
88954
+ },
88955
+ "default": "!!this.shadowRoot"
88949
88956
  },
88950
88957
  {
88951
- "name": "multiple-mode",
88958
+ "kind": "method",
88959
+ "name": "toggleState",
88960
+ "privacy": "protected",
88961
+ "return": {
88962
+ "type": {
88963
+ "text": "void"
88964
+ }
88965
+ },
88966
+ "parameters": [
88967
+ {
88968
+ "name": "value",
88969
+ "type": {
88970
+ "text": "string"
88971
+ }
88972
+ },
88973
+ {
88974
+ "name": "force",
88975
+ "optional": true,
88976
+ "type": {
88977
+ "text": "boolean"
88978
+ }
88979
+ }
88980
+ ],
88981
+ "inheritedFrom": {
88982
+ "name": "SbbElement",
88983
+ "module": "core/base-elements/element.js"
88984
+ }
88985
+ },
88986
+ {
88987
+ "kind": "field",
88988
+ "name": "['_$sbbElement$']",
88952
88989
  "type": {
88953
- "text": "'default' | 'persistent'"
88990
+ "text": "boolean"
88954
88991
  },
88955
- "default": "'default'",
88956
- "description": "Whether the newly added files should override the previously added ones.",
88957
- "fieldName": "multipleMode"
88992
+ "privacy": "public",
88993
+ "static": true,
88994
+ "default": "true",
88995
+ "inheritedFrom": {
88996
+ "name": "SbbElement",
88997
+ "module": "core/base-elements/element.js"
88998
+ }
88958
88999
  },
88959
89000
  {
88960
- "name": "accept",
89001
+ "kind": "field",
89002
+ "name": "elementName",
88961
89003
  "type": {
88962
89004
  "text": "string"
88963
89005
  },
88964
- "default": "''",
88965
- "description": "A comma-separated list of allowed unique file type specifiers.",
88966
- "fieldName": "accept"
89006
+ "privacy": "public",
89007
+ "static": true,
89008
+ "readonly": true,
89009
+ "inheritedFrom": {
89010
+ "name": "SbbElement",
89011
+ "module": "core/base-elements/element.js"
89012
+ }
88967
89013
  },
88968
89014
  {
88969
- "name": "accessibility-label",
89015
+ "kind": "field",
89016
+ "name": "_controllers",
88970
89017
  "type": {
88971
- "text": "string"
89018
+ "text": "Set<SbbReactiveController> | undefined"
88972
89019
  },
88973
- "default": "''",
88974
- "description": "This will be forwarded as aria-label to the native input element.",
88975
- "fieldName": "accessibilityLabel"
89020
+ "privacy": "private",
89021
+ "inheritedFrom": {
89022
+ "name": "SbbElement",
89023
+ "module": "core/base-elements/element.js"
89024
+ }
89025
+ }
89026
+ ],
89027
+ "mixins": [
89028
+ {
89029
+ "name": "SbbDisabledMixin",
89030
+ "module": "core/mixins.js"
88976
89031
  },
89032
+ {
89033
+ "name": "SbbFormAssociatedMixin",
89034
+ "module": "core/mixins.js"
89035
+ }
89036
+ ],
89037
+ "superclass": {
89038
+ "name": "SbbElement",
89039
+ "module": "core/base-elements.js"
89040
+ },
89041
+ "attributes": [
88977
89042
  {
88978
89043
  "name": "disabled",
88979
89044
  "description": "Whether the component is disabled.",
@@ -88999,125 +89064,200 @@
88999
89064
  "module": "core/mixins/form-associated-mixin.js"
89000
89065
  }
89001
89066
  }
89002
- ],
89003
- "mixins": [
89067
+ ]
89068
+ },
89069
+ {
89070
+ "kind": "mixin",
89071
+ "description": "",
89072
+ "name": "SbbFileSelectorCommonElementMixin",
89073
+ "members": [
89004
89074
  {
89005
- "name": "SbbDisabledMixin",
89006
- "module": "core/mixins.js"
89075
+ "kind": "field",
89076
+ "name": "events",
89077
+ "privacy": "public",
89078
+ "static": true,
89079
+ "readonly": true,
89080
+ "default": "{ filechanged: 'filechanged', }",
89081
+ "type": {
89082
+ "text": "{\n filechanged: 'filechanged',\n }"
89083
+ }
89007
89084
  },
89008
89085
  {
89009
- "name": "SbbFormAssociatedMixin",
89010
- "module": "core/mixins.js"
89011
- }
89012
- ],
89013
- "parameters": [
89086
+ "kind": "field",
89087
+ "name": "size",
89088
+ "type": {
89089
+ "text": "'s' | 'm'"
89090
+ },
89091
+ "privacy": "public",
89092
+ "description": "Size variant, either s or m.",
89093
+ "default": "'m' / 's' (lean)",
89094
+ "attribute": "size",
89095
+ "reflects": true
89096
+ },
89014
89097
  {
89015
- "name": "superclass",
89098
+ "kind": "field",
89099
+ "name": "multiple",
89016
89100
  "type": {
89017
- "text": "T"
89018
- }
89019
- }
89020
- ]
89021
- }
89022
- ],
89023
- "exports": [
89024
- {
89025
- "kind": "js",
89026
- "name": "fileSelectorCommonStyle",
89027
- "declaration": {
89028
- "name": "default",
89029
- "module": "./file-selector-common.scss?lit&inline"
89030
- }
89031
- },
89032
- {
89033
- "kind": "js",
89034
- "name": "SbbFileSelectorCommonElementMixinType",
89035
- "declaration": {
89036
- "name": "SbbFileSelectorCommonElementMixinType",
89037
- "module": "file-selector/common/file-selector-common.js"
89038
- }
89039
- },
89040
- {
89041
- "kind": "js",
89042
- "name": "SbbFileSelectorCommonElementMixin",
89043
- "declaration": {
89044
- "name": "SbbFileSelectorCommonElementMixin",
89045
- "module": "file-selector/common/file-selector-common.js"
89046
- }
89047
- }
89048
- ]
89049
- },
89050
- {
89051
- "kind": "javascript-module",
89052
- "path": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js",
89053
- "declarations": [
89054
- {
89055
- "kind": "class",
89056
- "description": "It acts as a native `summary` tag for the `sbb-expansion-panel` component.",
89057
- "name": "SbbExpansionPanelHeaderElement",
89058
- "slots": [
89101
+ "text": "boolean"
89102
+ },
89103
+ "privacy": "public",
89104
+ "default": "false",
89105
+ "description": "Whether more than one file can be selected.",
89106
+ "attribute": "multiple"
89107
+ },
89059
89108
  {
89060
- "description": "Use the unnamed slot to add content to the `sbb-expansion-panel-header`.",
89061
- "name": ""
89109
+ "kind": "field",
89110
+ "name": "multipleMode",
89111
+ "type": {
89112
+ "text": "'default' | 'persistent'"
89113
+ },
89114
+ "privacy": "public",
89115
+ "default": "'default'",
89116
+ "description": "Whether the newly added files should override the previously added ones.",
89117
+ "attribute": "multiple-mode"
89062
89118
  },
89063
89119
  {
89064
- "description": "Slot used to render the `sbb-expansion-panel-header` icon.",
89065
- "name": "icon"
89066
- }
89067
- ],
89068
- "members": [
89120
+ "kind": "field",
89121
+ "name": "accept",
89122
+ "type": {
89123
+ "text": "string"
89124
+ },
89125
+ "privacy": "public",
89126
+ "default": "''",
89127
+ "description": "A comma-separated list of allowed unique file type specifiers.",
89128
+ "attribute": "accept"
89129
+ },
89069
89130
  {
89070
89131
  "kind": "field",
89071
- "name": "elementName",
89132
+ "name": "accessibilityLabel",
89072
89133
  "type": {
89073
89134
  "text": "string"
89074
89135
  },
89075
89136
  "privacy": "public",
89076
- "static": true,
89077
- "readonly": true,
89078
- "inheritedFrom": {
89079
- "name": "SbbElement",
89080
- "module": "core/base-elements/element.js"
89137
+ "default": "''",
89138
+ "description": "This will be forwarded as aria-label to the native input element.",
89139
+ "attribute": "accessibility-label"
89140
+ },
89141
+ {
89142
+ "kind": "field",
89143
+ "name": "value",
89144
+ "type": {
89145
+ "text": "string | null"
89081
89146
  },
89082
- "default": "'sbb-expansion-panel-header'"
89147
+ "privacy": "public",
89148
+ "description": "The path of the first selected file. Empty string ('') if no file is selected",
89149
+ "inheritedFrom": {
89150
+ "name": "SbbFormAssociatedMixin",
89151
+ "module": "core/mixins/form-associated-mixin.js"
89152
+ }
89083
89153
  },
89084
89154
  {
89085
89155
  "kind": "field",
89086
- "name": "events",
89156
+ "name": "files",
89087
89157
  "privacy": "public",
89088
- "static": true,
89089
- "readonly": true,
89090
- "default": "{ toggleexpanded: 'toggleexpanded', }",
89158
+ "description": "The list of selected files.",
89091
89159
  "type": {
89092
- "text": "{\n toggleexpanded: 'toggleexpanded',\n }"
89160
+ "text": "Readonly<File>[]"
89093
89161
  }
89094
89162
  },
89095
89163
  {
89096
89164
  "kind": "field",
89097
- "name": "_mediaMatcher",
89165
+ "name": "_files",
89166
+ "type": {
89167
+ "text": "Readonly<File>[]"
89168
+ },
89098
89169
  "privacy": "private",
89099
- "default": "new SbbMediaMatcherController(this, { [SbbMediaQueryHover]: (m) => (this._isHover = m), })"
89170
+ "default": "[]"
89100
89171
  },
89101
89172
  {
89102
89173
  "kind": "field",
89103
- "name": "_isHover",
89174
+ "name": "type",
89104
89175
  "type": {
89105
- "text": "boolean"
89176
+ "text": "string"
89177
+ },
89178
+ "privacy": "public",
89179
+ "description": "Form type of element.",
89180
+ "default": "'file'",
89181
+ "readonly": true
89182
+ },
89183
+ {
89184
+ "kind": "field",
89185
+ "name": "_hiddenInput",
89186
+ "type": {
89187
+ "text": "HTMLInputElement"
89106
89188
  },
89107
89189
  "privacy": "private"
89108
89190
  },
89109
89191
  {
89110
89192
  "kind": "field",
89111
- "name": "_previousSize",
89193
+ "name": "_suffixes",
89112
89194
  "type": {
89113
- "text": "string | undefined"
89195
+ "text": "string[]"
89196
+ },
89197
+ "privacy": "private",
89198
+ "default": "['B', 'kB', 'MB', 'GB', 'TB']"
89199
+ },
89200
+ {
89201
+ "kind": "field",
89202
+ "name": "_liveRegion",
89203
+ "type": {
89204
+ "text": "HTMLParagraphElement"
89114
89205
  },
89115
89206
  "privacy": "private"
89116
89207
  },
89117
89208
  {
89118
- "kind": "method",
89119
- "name": "_emitExpandedEvent",
89209
+ "kind": "field",
89210
+ "name": "loadButton",
89211
+ "type": {
89212
+ "text": "SbbSecondaryButtonStaticElement"
89213
+ },
89214
+ "privacy": "protected"
89215
+ },
89216
+ {
89217
+ "kind": "field",
89218
+ "name": "language",
89219
+ "privacy": "protected",
89220
+ "default": "new SbbLanguageController(this)"
89221
+ },
89222
+ {
89223
+ "kind": "field",
89224
+ "name": "_counter",
89225
+ "type": {
89226
+ "text": "number"
89227
+ },
89120
89228
  "privacy": "private",
89229
+ "default": "0"
89230
+ },
89231
+ {
89232
+ "kind": "field",
89233
+ "name": "_dragTarget",
89234
+ "type": {
89235
+ "text": "HTMLElement | undefined"
89236
+ },
89237
+ "privacy": "private"
89238
+ },
89239
+ {
89240
+ "kind": "method",
89241
+ "name": "renderTemplate",
89242
+ "privacy": "protected",
89243
+ "return": {
89244
+ "type": {
89245
+ "text": "TemplateResult"
89246
+ }
89247
+ },
89248
+ "parameters": [
89249
+ {
89250
+ "name": "input",
89251
+ "type": {
89252
+ "text": "TemplateResult"
89253
+ }
89254
+ }
89255
+ ]
89256
+ },
89257
+ {
89258
+ "kind": "method",
89259
+ "name": "formResetCallback",
89260
+ "privacy": "public",
89121
89261
  "return": {
89122
89262
  "type": {
89123
89263
  "text": "void"
@@ -89126,8 +89266,8 @@
89126
89266
  },
89127
89267
  {
89128
89268
  "kind": "method",
89129
- "name": "_onMouseMovement",
89130
- "privacy": "private",
89269
+ "name": "formStateRestoreCallback",
89270
+ "privacy": "public",
89131
89271
  "return": {
89132
89272
  "type": {
89133
89273
  "text": "void"
@@ -89135,285 +89275,357 @@
89135
89275
  },
89136
89276
  "parameters": [
89137
89277
  {
89138
- "name": "toggleDataAttribute",
89278
+ "name": "state",
89139
89279
  "type": {
89140
- "text": "boolean"
89280
+ "text": "FormRestoreState | null"
89281
+ }
89282
+ },
89283
+ {
89284
+ "name": "_reason",
89285
+ "optional": true,
89286
+ "type": {
89287
+ "text": "FormRestoreReason"
89141
89288
  }
89142
89289
  }
89143
89290
  ]
89144
89291
  },
89145
89292
  {
89146
89293
  "kind": "method",
89147
- "name": "_setIconState",
89148
- "privacy": "private",
89294
+ "name": "updateFormValue",
89295
+ "privacy": "protected",
89149
89296
  "return": {
89150
89297
  "type": {
89151
89298
  "text": "void"
89152
89299
  }
89153
89300
  },
89154
- "description": "The :state(icon) is used by the 'sbb-expansion-panel'.\nIt needs to be set before the"
89301
+ "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",
89302
+ "inheritedFrom": {
89303
+ "name": "SbbFormAssociatedMixin",
89304
+ "module": "core/mixins/form-associated-mixin.js"
89305
+ }
89155
89306
  },
89156
89307
  {
89157
89308
  "kind": "method",
89158
- "name": "renderTemplate",
89159
- "privacy": "protected",
89309
+ "name": "_checkFileEquality",
89310
+ "privacy": "private",
89160
89311
  "return": {
89161
89312
  "type": {
89162
- "text": "TemplateResult"
89313
+ "text": "boolean"
89163
89314
  }
89164
89315
  },
89165
- "description": "Override this method to render the component template.",
89166
- "inheritedFrom": {
89167
- "name": "SbbActionBaseElement",
89168
- "module": "core/base-elements/action-base-element.js"
89169
- }
89316
+ "parameters": [
89317
+ {
89318
+ "name": "file1",
89319
+ "type": {
89320
+ "text": "Readonly<File>"
89321
+ }
89322
+ },
89323
+ {
89324
+ "name": "file2",
89325
+ "type": {
89326
+ "text": "Readonly<File>"
89327
+ }
89328
+ }
89329
+ ]
89170
89330
  },
89171
89331
  {
89172
- "kind": "field",
89173
- "name": "disabledInteractive",
89174
- "type": {
89175
- "text": "boolean"
89176
- },
89177
- "privacy": "public",
89178
- "default": "false",
89179
- "description": "Whether the button should be aria-disabled but stay interactive.",
89180
- "attribute": "disabled-interactive",
89181
- "reflects": true,
89182
- "inheritedFrom": {
89183
- "name": "SbbDisabledInteractiveMixin",
89184
- "module": "core/mixins/disabled-mixin.js"
89332
+ "kind": "method",
89333
+ "name": "_onFocus",
89334
+ "privacy": "private",
89335
+ "return": {
89336
+ "type": {
89337
+ "text": "void"
89338
+ }
89185
89339
  }
89186
89340
  },
89187
89341
  {
89188
- "kind": "field",
89189
- "name": "disabled",
89190
- "privacy": "public",
89191
- "description": "Whether the component is disabled.",
89192
- "default": "false",
89193
- "type": {
89194
- "text": "boolean"
89195
- },
89196
- "attribute": "disabled",
89197
- "reflects": true,
89198
- "inheritedFrom": {
89199
- "name": "SbbDisabledMixin",
89200
- "module": "core/mixins/disabled-mixin.js"
89342
+ "kind": "method",
89343
+ "name": "_onBlur",
89344
+ "privacy": "private",
89345
+ "return": {
89346
+ "type": {
89347
+ "text": "void"
89348
+ }
89201
89349
  }
89202
89350
  },
89203
89351
  {
89204
- "kind": "field",
89205
- "name": "#disabled",
89352
+ "kind": "method",
89353
+ "name": "_readFiles",
89206
89354
  "privacy": "private",
89207
- "type": {
89208
- "text": "boolean"
89355
+ "return": {
89356
+ "type": {
89357
+ "text": "void"
89358
+ }
89209
89359
  },
89210
- "default": "false",
89211
- "inheritedFrom": {
89212
- "name": "SbbDisabledMixin",
89213
- "module": "core/mixins/disabled-mixin.js"
89214
- }
89360
+ "parameters": [
89361
+ {
89362
+ "name": "event",
89363
+ "type": {
89364
+ "text": "Event"
89365
+ }
89366
+ }
89367
+ ]
89215
89368
  },
89216
89369
  {
89217
89370
  "kind": "method",
89218
- "name": "isDisabledExternally",
89371
+ "name": "createFileList",
89219
89372
  "privacy": "protected",
89220
89373
  "return": {
89221
89374
  "type": {
89222
- "text": "boolean"
89375
+ "text": "void"
89223
89376
  }
89224
89377
  },
89225
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
89226
- "inheritedFrom": {
89227
- "name": "SbbDisabledMixin",
89228
- "module": "core/mixins/disabled-mixin.js"
89378
+ "parameters": [
89379
+ {
89380
+ "name": "files",
89381
+ "type": {
89382
+ "text": "FileList"
89383
+ }
89384
+ }
89385
+ ]
89386
+ },
89387
+ {
89388
+ "kind": "method",
89389
+ "name": "getButtonLabel",
89390
+ "privacy": "protected",
89391
+ "return": {
89392
+ "type": {
89393
+ "text": "string"
89394
+ }
89229
89395
  }
89230
89396
  },
89231
89397
  {
89232
- "kind": "field",
89233
- "name": "iconName",
89234
- "type": {
89235
- "text": "string"
89398
+ "kind": "method",
89399
+ "name": "_removeFile",
89400
+ "privacy": "private",
89401
+ "return": {
89402
+ "type": {
89403
+ "text": "void"
89404
+ }
89236
89405
  },
89237
- "privacy": "public",
89238
- "default": "''",
89239
- "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.",
89240
- "attribute": "icon-name",
89241
- "inheritedFrom": {
89242
- "name": "SbbIconNameMixin",
89243
- "module": "icon/icon-name-mixin.js"
89406
+ "parameters": [
89407
+ {
89408
+ "name": "file",
89409
+ "type": {
89410
+ "text": "Readonly<File>"
89411
+ }
89412
+ }
89413
+ ]
89414
+ },
89415
+ {
89416
+ "kind": "method",
89417
+ "name": "_dispatchFileChangedEvent",
89418
+ "privacy": "private",
89419
+ "return": {
89420
+ "type": {
89421
+ "text": "void"
89422
+ }
89244
89423
  }
89245
89424
  },
89246
89425
  {
89247
89426
  "kind": "method",
89248
- "name": "renderIconSlot",
89249
- "privacy": "protected",
89427
+ "name": "_formatFileSize",
89428
+ "privacy": "private",
89250
89429
  "return": {
89251
89430
  "type": {
89252
- "text": "TemplateResult"
89431
+ "text": "string"
89253
89432
  }
89254
89433
  },
89255
89434
  "parameters": [
89256
89435
  {
89257
- "name": "classname",
89258
- "optional": true,
89436
+ "name": "size",
89259
89437
  "type": {
89260
- "text": "string"
89438
+ "text": "number"
89261
89439
  }
89262
89440
  }
89263
89441
  ],
89264
- "inheritedFrom": {
89265
- "name": "SbbIconNameMixin",
89266
- "module": "icon/icon-name-mixin.js"
89442
+ "description": "Calculates the correct unit for the file's size."
89443
+ },
89444
+ {
89445
+ "kind": "method",
89446
+ "name": "_updateA11yLiveRegion",
89447
+ "privacy": "private",
89448
+ "return": {
89449
+ "type": {
89450
+ "text": "void"
89451
+ }
89267
89452
  }
89268
89453
  },
89269
89454
  {
89270
89455
  "kind": "method",
89271
- "name": "renderIconName",
89272
- "privacy": "protected",
89456
+ "name": "_renderFileList",
89457
+ "privacy": "private",
89273
89458
  "return": {
89274
89459
  "type": {
89275
- "text": "string"
89460
+ "text": "TemplateResult"
89461
+ }
89462
+ }
89463
+ },
89464
+ {
89465
+ "kind": "method",
89466
+ "name": "_onDragEnter",
89467
+ "privacy": "private",
89468
+ "return": {
89469
+ "type": {
89470
+ "text": "void"
89471
+ }
89472
+ },
89473
+ "parameters": [
89474
+ {
89475
+ "name": "event",
89476
+ "type": {
89477
+ "text": "DragEvent"
89478
+ }
89479
+ }
89480
+ ]
89481
+ },
89482
+ {
89483
+ "kind": "method",
89484
+ "name": "_onDragLeave",
89485
+ "privacy": "private",
89486
+ "return": {
89487
+ "type": {
89488
+ "text": "void"
89489
+ }
89490
+ },
89491
+ "parameters": [
89492
+ {
89493
+ "name": "event",
89494
+ "type": {
89495
+ "text": "DragEvent"
89496
+ }
89497
+ }
89498
+ ]
89499
+ },
89500
+ {
89501
+ "kind": "method",
89502
+ "name": "_onFileDrop",
89503
+ "privacy": "private",
89504
+ "return": {
89505
+ "type": {
89506
+ "text": "void"
89507
+ }
89508
+ },
89509
+ "parameters": [
89510
+ {
89511
+ "name": "event",
89512
+ "type": {
89513
+ "text": "DragEvent"
89514
+ }
89515
+ }
89516
+ ]
89517
+ },
89518
+ {
89519
+ "kind": "method",
89520
+ "name": "_blockEvent",
89521
+ "privacy": "private",
89522
+ "return": {
89523
+ "type": {
89524
+ "text": "void"
89525
+ }
89526
+ },
89527
+ "parameters": [
89528
+ {
89529
+ "name": "event",
89530
+ "type": {
89531
+ "text": "DragEvent"
89532
+ }
89276
89533
  }
89277
- },
89278
- "inheritedFrom": {
89279
- "name": "SbbIconNameMixin",
89280
- "module": "icon/icon-name-mixin.js"
89281
- }
89534
+ ]
89282
89535
  },
89283
89536
  {
89284
89537
  "kind": "method",
89285
- "name": "_renderIconName",
89538
+ "name": "_setDragState",
89286
89539
  "privacy": "private",
89287
89540
  "return": {
89288
89541
  "type": {
89289
- "text": "string"
89542
+ "text": "void"
89290
89543
  }
89291
89544
  },
89292
- "inheritedFrom": {
89293
- "name": "SbbIconNameMixin",
89294
- "module": "icon/icon-name-mixin.js"
89295
- }
89296
- },
89297
- {
89298
- "kind": "field",
89299
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
89300
- "type": {
89301
- "text": "array"
89302
- },
89303
- "privacy": "private",
89304
- "readonly": true,
89305
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
89306
- "inheritedFrom": {
89307
- "name": "SbbButtonBaseElement",
89308
- "module": "core/base-elements/button-base-element.js"
89309
- }
89310
- },
89311
- {
89312
- "kind": "field",
89313
- "name": "value",
89314
- "type": {
89315
- "text": "string"
89316
- },
89317
- "privacy": "public",
89318
- "inheritedFrom": {
89319
- "name": "SbbButtonBaseElement",
89320
- "module": "core/base-elements/button-base-element.js"
89321
- },
89322
- "default": "''",
89323
- "description": "Value of the form element.",
89324
- "attribute": "value"
89545
+ "parameters": [
89546
+ {
89547
+ "name": "dragTarget",
89548
+ "default": "undefined",
89549
+ "type": {
89550
+ "text": "HTMLElement | undefined"
89551
+ }
89552
+ },
89553
+ {
89554
+ "name": "isDragEnter",
89555
+ "default": "false",
89556
+ "type": {
89557
+ "text": "boolean"
89558
+ }
89559
+ }
89560
+ ]
89325
89561
  },
89326
89562
  {
89327
89563
  "kind": "field",
89328
- "name": "type",
89564
+ "name": "disabled",
89329
89565
  "privacy": "public",
89330
- "description": "The type attribute to use for the button.",
89331
- "default": "'button'",
89566
+ "description": "Whether the component is disabled.",
89567
+ "default": "false",
89332
89568
  "type": {
89333
- "text": "SbbButtonType"
89569
+ "text": "boolean"
89334
89570
  },
89335
- "attribute": "type",
89571
+ "attribute": "disabled",
89572
+ "reflects": true,
89336
89573
  "inheritedFrom": {
89337
- "name": "SbbButtonBaseElement",
89338
- "module": "core/base-elements/button-base-element.js"
89574
+ "name": "SbbDisabledMixin",
89575
+ "module": "core/mixins/disabled-mixin.js"
89339
89576
  }
89340
89577
  },
89341
89578
  {
89342
89579
  "kind": "field",
89343
- "name": "form",
89344
- "type": {
89345
- "text": "HTMLFormElement | null"
89346
- },
89347
- "privacy": "public",
89348
- "description": "The `<form>` element to associate the button with.",
89349
- "inheritedFrom": {
89350
- "name": "SbbButtonBaseElement",
89351
- "module": "core/base-elements/button-base-element.js"
89352
- },
89353
- "attribute": "form"
89354
- },
89355
- {
89356
- "kind": "field",
89357
- "name": "_formId",
89580
+ "name": "#disabled",
89581
+ "privacy": "private",
89358
89582
  "type": {
89359
- "text": "string"
89583
+ "text": "boolean"
89360
89584
  },
89361
- "privacy": "private",
89362
- "default": "''",
89363
- "inheritedFrom": {
89364
- "name": "SbbButtonBaseElement",
89365
- "module": "core/base-elements/button-base-element.js"
89366
- }
89367
- },
89368
- {
89369
- "kind": "field",
89370
- "name": "_handleButtonClick",
89371
- "privacy": "private",
89585
+ "default": "false",
89372
89586
  "inheritedFrom": {
89373
- "name": "SbbButtonBaseElement",
89374
- "module": "core/base-elements/button-base-element.js"
89587
+ "name": "SbbDisabledMixin",
89588
+ "module": "core/mixins/disabled-mixin.js"
89375
89589
  }
89376
89590
  },
89377
89591
  {
89378
89592
  "kind": "method",
89379
- "name": "_requestSubmit",
89380
- "privacy": "private",
89593
+ "name": "isDisabledExternally",
89594
+ "privacy": "protected",
89381
89595
  "return": {
89382
89596
  "type": {
89383
- "text": "void"
89597
+ "text": "boolean"
89384
89598
  }
89385
89599
  },
89386
- "parameters": [
89387
- {
89388
- "name": "form",
89389
- "type": {
89390
- "text": "HTMLFormElement"
89391
- }
89392
- }
89393
- ],
89600
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
89394
89601
  "inheritedFrom": {
89395
- "name": "SbbButtonBaseElement",
89396
- "module": "core/base-elements/button-base-element.js"
89602
+ "name": "SbbDisabledMixin",
89603
+ "module": "core/mixins/disabled-mixin.js"
89397
89604
  }
89398
89605
  },
89399
89606
  {
89400
89607
  "kind": "field",
89401
- "name": "_formKeyDown",
89402
- "privacy": "private",
89608
+ "name": "formAssociated",
89609
+ "type": {
89610
+ "text": "boolean"
89611
+ },
89612
+ "privacy": "public",
89613
+ "static": true,
89614
+ "default": "true",
89403
89615
  "inheritedFrom": {
89404
- "name": "SbbButtonBaseElement",
89405
- "module": "core/base-elements/button-base-element.js"
89616
+ "name": "SbbFormAssociatedMixin",
89617
+ "module": "core/mixins/form-associated-mixin.js"
89406
89618
  }
89407
89619
  },
89408
89620
  {
89409
89621
  "kind": "field",
89410
- "name": "formAssociated",
89622
+ "name": "form",
89411
89623
  "type": {
89412
- "text": "boolean"
89624
+ "text": "HTMLFormElement | null"
89413
89625
  },
89414
89626
  "privacy": "public",
89415
- "static": true,
89416
- "default": "true",
89627
+ "description": "Returns the form owner of this element.",
89628
+ "readonly": true,
89417
89629
  "inheritedFrom": {
89418
89630
  "name": "SbbFormAssociatedMixin",
89419
89631
  "module": "core/mixins/form-associated-mixin.js"
@@ -89566,21 +89778,6 @@
89566
89778
  "module": "core/mixins/form-associated-mixin.js"
89567
89779
  }
89568
89780
  },
89569
- {
89570
- "kind": "method",
89571
- "name": "updateFormValue",
89572
- "privacy": "protected",
89573
- "return": {
89574
- "type": {
89575
- "text": "void"
89576
- }
89577
- },
89578
- "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",
89579
- "inheritedFrom": {
89580
- "name": "SbbFormAssociatedMixin",
89581
- "module": "core/mixins/form-associated-mixin.js"
89582
- }
89583
- },
89584
89781
  {
89585
89782
  "kind": "method",
89586
89783
  "name": "formState",
@@ -89705,256 +89902,76 @@
89705
89902
  "name": "SbbFormAssociatedMixin",
89706
89903
  "module": "core/mixins/form-associated-mixin.js"
89707
89904
  }
89708
- },
89709
- {
89710
- "kind": "field",
89711
- "name": "role",
89712
- "type": {
89713
- "text": "ElementInternals['role']"
89714
- },
89715
- "privacy": "public",
89716
- "static": true,
89717
- "readonly": true,
89718
- "default": "'button'",
89719
- "inheritedFrom": {
89720
- "name": "SbbButtonLikeBaseElement",
89721
- "module": "core/base-elements/button-base-element.js"
89722
- }
89723
- },
89724
- {
89725
- "kind": "field",
89726
- "name": "_preventScrollOnSpaceKeydown",
89727
- "privacy": "private",
89728
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
89729
- "parameters": [
89730
- {
89731
- "description": "The origin event.",
89732
- "name": "event"
89733
- }
89734
- ],
89735
- "inheritedFrom": {
89736
- "name": "SbbButtonLikeBaseElement",
89737
- "module": "core/base-elements/button-base-element.js"
89738
- }
89739
- },
89740
- {
89741
- "kind": "field",
89742
- "name": "_removeActiveMarker",
89743
- "privacy": "private",
89744
- "inheritedFrom": {
89745
- "name": "SbbButtonLikeBaseElement",
89746
- "module": "core/base-elements/button-base-element.js"
89747
- }
89748
- },
89749
- {
89750
- "kind": "field",
89751
- "name": "_dispatchClickEventOnSpaceKeyup",
89752
- "privacy": "private",
89753
- "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.",
89754
- "parameters": [
89755
- {
89756
- "description": "The origin event.",
89757
- "name": "event"
89758
- }
89759
- ],
89760
- "inheritedFrom": {
89761
- "name": "SbbButtonLikeBaseElement",
89762
- "module": "core/base-elements/button-base-element.js"
89763
- }
89764
- },
89765
- {
89766
- "kind": "field",
89767
- "name": "_dispatchClickEvent",
89768
- "privacy": "private",
89769
- "inheritedFrom": {
89770
- "name": "SbbButtonLikeBaseElement",
89771
- "module": "core/base-elements/button-base-element.js"
89772
- }
89773
- },
89905
+ }
89906
+ ],
89907
+ "events": [
89774
89908
  {
89775
- "kind": "field",
89776
- "name": "maybeDisabled",
89909
+ "name": "input",
89777
89910
  "type": {
89778
- "text": "boolean | undefined"
89911
+ "text": "InputEvent"
89779
89912
  },
89780
- "privacy": "protected",
89781
- "readonly": true,
89782
- "inheritedFrom": {
89783
- "name": "SbbActionBaseElement",
89784
- "module": "core/base-elements/action-base-element.js"
89785
- }
89913
+ "description": "The input event fires when the value has been changed as a direct result of a user action."
89786
89914
  },
89787
89915
  {
89788
- "kind": "field",
89789
- "name": "maybeDisabledInteractive",
89916
+ "name": "change",
89790
89917
  "type": {
89791
- "text": "boolean | undefined"
89792
- },
89793
- "privacy": "protected",
89794
- "readonly": true,
89795
- "inheritedFrom": {
89796
- "name": "SbbActionBaseElement",
89797
- "module": "core/base-elements/action-base-element.js"
89798
- }
89799
- },
89800
- {
89801
- "kind": "method",
89802
- "name": "setupBaseEventHandlers",
89803
- "privacy": "protected",
89804
- "return": {
89805
- "type": {
89806
- "text": "void"
89807
- }
89918
+ "text": "Event"
89808
89919
  },
89809
- "inheritedFrom": {
89810
- "name": "SbbActionBaseElement",
89811
- "module": "core/base-elements/action-base-element.js"
89812
- }
89920
+ "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."
89813
89921
  },
89814
89922
  {
89815
- "kind": "field",
89816
- "name": "_hydrationRequired",
89923
+ "name": "filechanged",
89817
89924
  "type": {
89818
- "text": "boolean"
89925
+ "text": "CustomEvent<Readonly<File>[]>"
89819
89926
  },
89820
- "privacy": "private",
89821
- "default": "!!this.shadowRoot",
89822
- "inheritedFrom": {
89823
- "name": "SbbElement",
89824
- "module": "core/base-elements/element.js"
89825
- }
89826
- },
89827
- {
89828
- "kind": "field",
89829
- "name": "_hydrationComplete",
89830
- "privacy": "private",
89831
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
89832
- "inheritedFrom": {
89833
- "name": "SbbElement",
89834
- "module": "core/base-elements/element.js"
89835
- }
89836
- },
89927
+ "description": "An event which is emitted each time the file list changes."
89928
+ }
89929
+ ],
89930
+ "attributes": [
89837
89931
  {
89838
- "kind": "field",
89839
- "name": "_resolveHydration",
89932
+ "name": "size",
89840
89933
  "type": {
89841
- "text": "(hydrationRequired: boolean) => void"
89934
+ "text": "'s' | 'm'"
89842
89935
  },
89843
- "privacy": "private",
89844
- "inheritedFrom": {
89845
- "name": "SbbElement",
89846
- "module": "core/base-elements/element.js"
89847
- }
89936
+ "description": "Size variant, either s or m.",
89937
+ "default": "'m' / 's' (lean)",
89938
+ "fieldName": "size"
89848
89939
  },
89849
89940
  {
89850
- "kind": "field",
89851
- "name": "hydrationRequired",
89941
+ "name": "multiple",
89852
89942
  "type": {
89853
89943
  "text": "boolean"
89854
89944
  },
89855
- "privacy": "protected",
89856
- "description": "Returns whether hydration is required and not completed.",
89857
- "readonly": true,
89858
- "inheritedFrom": {
89859
- "name": "SbbElement",
89860
- "module": "core/base-elements/element.js"
89861
- },
89862
- "default": "!!this.shadowRoot"
89863
- },
89864
- {
89865
- "kind": "method",
89866
- "name": "toggleState",
89867
- "privacy": "protected",
89868
- "return": {
89869
- "type": {
89870
- "text": "void"
89871
- }
89872
- },
89873
- "parameters": [
89874
- {
89875
- "name": "value",
89876
- "type": {
89877
- "text": "string"
89878
- }
89879
- },
89880
- {
89881
- "name": "force",
89882
- "optional": true,
89883
- "type": {
89884
- "text": "boolean"
89885
- }
89886
- }
89887
- ],
89888
- "inheritedFrom": {
89889
- "name": "SbbElement",
89890
- "module": "core/base-elements/element.js"
89891
- }
89945
+ "default": "false",
89946
+ "description": "Whether more than one file can be selected.",
89947
+ "fieldName": "multiple"
89892
89948
  },
89893
89949
  {
89894
- "kind": "field",
89895
- "name": "['_$sbbElement$']",
89950
+ "name": "multiple-mode",
89896
89951
  "type": {
89897
- "text": "boolean"
89952
+ "text": "'default' | 'persistent'"
89898
89953
  },
89899
- "privacy": "public",
89900
- "static": true,
89901
- "default": "true",
89902
- "inheritedFrom": {
89903
- "name": "SbbElement",
89904
- "module": "core/base-elements/element.js"
89905
- }
89954
+ "default": "'default'",
89955
+ "description": "Whether the newly added files should override the previously added ones.",
89956
+ "fieldName": "multipleMode"
89906
89957
  },
89907
89958
  {
89908
- "kind": "field",
89909
- "name": "_controllers",
89910
- "type": {
89911
- "text": "Set<SbbReactiveController> | undefined"
89912
- },
89913
- "privacy": "private",
89914
- "inheritedFrom": {
89915
- "name": "SbbElement",
89916
- "module": "core/base-elements/element.js"
89917
- }
89918
- }
89919
- ],
89920
- "events": [
89921
- {
89922
- "name": "toggleexpanded",
89959
+ "name": "accept",
89923
89960
  "type": {
89924
- "text": "Event"
89961
+ "text": "string"
89925
89962
  },
89926
- "description": "Notifies that the `sbb-expansion-panel` is about to expand/shrink."
89927
- }
89928
- ],
89929
- "mixins": [
89930
- {
89931
- "name": "SbbDisabledTabIndexActionMixin",
89932
- "module": "core/mixins.js"
89963
+ "default": "''",
89964
+ "description": "A comma-separated list of allowed unique file type specifiers.",
89965
+ "fieldName": "accept"
89933
89966
  },
89934
89967
  {
89935
- "name": "SbbIconNameMixin",
89936
- "module": "icon.js"
89937
- }
89938
- ],
89939
- "superclass": {
89940
- "name": "SbbButtonBaseElement",
89941
- "module": "core/base-elements.js"
89942
- },
89943
- "tagName": "sbb-expansion-panel-header",
89944
- "customElement": true,
89945
- "attributes": [
89946
- {
89947
- "name": "disabled-interactive",
89968
+ "name": "accessibility-label",
89948
89969
  "type": {
89949
- "text": "boolean"
89970
+ "text": "string"
89950
89971
  },
89951
- "default": "false",
89952
- "description": "Whether the button should be aria-disabled but stay interactive.",
89953
- "fieldName": "disabledInteractive",
89954
- "inheritedFrom": {
89955
- "name": "SbbDisabledInteractiveMixin",
89956
- "module": "core/mixins/disabled-mixin.js"
89957
- }
89972
+ "default": "''",
89973
+ "description": "This will be forwarded as aria-label to the native input element.",
89974
+ "fieldName": "accessibilityLabel"
89958
89975
  },
89959
89976
  {
89960
89977
  "name": "disabled",
@@ -89970,66 +89987,33 @@
89970
89987
  }
89971
89988
  },
89972
89989
  {
89973
- "name": "icon-name",
89974
- "type": {
89975
- "text": "string"
89976
- },
89977
- "default": "''",
89978
- "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.",
89979
- "fieldName": "iconName",
89980
- "inheritedFrom": {
89981
- "name": "SbbIconNameMixin",
89982
- "module": "icon/icon-name-mixin.js"
89983
- }
89984
- },
89985
- {
89986
- "name": "value",
89990
+ "name": "name",
89991
+ "description": "Name of the form element. Will be read from name attribute.",
89987
89992
  "type": {
89988
89993
  "text": "string"
89989
89994
  },
89990
- "default": "''",
89991
- "description": "Value of the form element.",
89992
- "fieldName": "value",
89995
+ "fieldName": "name",
89993
89996
  "inheritedFrom": {
89994
- "name": "SbbButtonBaseElement",
89995
- "module": "core/base-elements/button-base-element.js"
89997
+ "name": "SbbFormAssociatedMixin",
89998
+ "module": "core/mixins/form-associated-mixin.js"
89996
89999
  }
89997
- },
90000
+ }
90001
+ ],
90002
+ "mixins": [
89998
90003
  {
89999
- "name": "type",
90000
- "description": "The type attribute to use for the button.",
90001
- "default": "'button'",
90002
- "type": {
90003
- "text": "SbbButtonType"
90004
- },
90005
- "fieldName": "type",
90006
- "inheritedFrom": {
90007
- "name": "SbbButtonBaseElement",
90008
- "module": "core/base-elements/button-base-element.js"
90009
- }
90004
+ "name": "SbbDisabledMixin",
90005
+ "module": "core/mixins.js"
90010
90006
  },
90011
90007
  {
90012
- "name": "form",
90013
- "description": "The `<form>` element to associate the button with.",
90014
- "type": {
90015
- "text": "HTMLFormElement | null"
90016
- },
90017
- "fieldName": "form",
90018
- "inheritedFrom": {
90019
- "name": "SbbButtonBaseElement",
90020
- "module": "core/base-elements/button-base-element.js"
90021
- }
90022
- },
90008
+ "name": "SbbFormAssociatedMixin",
90009
+ "module": "core/mixins.js"
90010
+ }
90011
+ ],
90012
+ "parameters": [
90023
90013
  {
90024
- "name": "name",
90025
- "description": "Name of the form element. Will be read from name attribute.",
90014
+ "name": "superclass",
90026
90015
  "type": {
90027
- "text": "string"
90028
- },
90029
- "fieldName": "name",
90030
- "inheritedFrom": {
90031
- "name": "SbbFormAssociatedMixin",
90032
- "module": "core/mixins/form-associated-mixin.js"
90016
+ "text": "T"
90033
90017
  }
90034
90018
  }
90035
90019
  ]
@@ -90038,10 +90022,26 @@
90038
90022
  "exports": [
90039
90023
  {
90040
90024
  "kind": "js",
90041
- "name": "SbbExpansionPanelHeaderElement",
90025
+ "name": "fileSelectorCommonStyle",
90042
90026
  "declaration": {
90043
- "name": "SbbExpansionPanelHeaderElement",
90044
- "module": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js"
90027
+ "name": "default",
90028
+ "module": "./file-selector-common.scss?lit&inline"
90029
+ }
90030
+ },
90031
+ {
90032
+ "kind": "js",
90033
+ "name": "SbbFileSelectorCommonElementMixinType",
90034
+ "declaration": {
90035
+ "name": "SbbFileSelectorCommonElementMixinType",
90036
+ "module": "file-selector/common/file-selector-common.js"
90037
+ }
90038
+ },
90039
+ {
90040
+ "kind": "js",
90041
+ "name": "SbbFileSelectorCommonElementMixin",
90042
+ "declaration": {
90043
+ "name": "SbbFileSelectorCommonElementMixin",
90044
+ "module": "file-selector/common/file-selector-common.js"
90045
90045
  }
90046
90046
  }
90047
90047
  ]
@@ -130121,475 +130121,17 @@
130121
130121
  }
130122
130122
  },
130123
130123
  {
130124
- "name": "disabled-interactive",
130125
- "type": {
130126
- "text": "boolean"
130127
- },
130128
- "default": "false",
130129
- "description": "Whether the button should be aria-disabled but stay interactive.",
130130
- "fieldName": "disabledInteractive",
130131
- "inheritedFrom": {
130132
- "name": "SbbDisabledInteractiveMixin",
130133
- "module": "core/mixins/disabled-mixin.js"
130134
- }
130135
- },
130136
- {
130137
- "name": "disabled",
130138
- "description": "Whether the component is disabled.",
130139
- "default": "false",
130140
- "type": {
130141
- "text": "boolean"
130142
- },
130143
- "fieldName": "disabled",
130144
- "inheritedFrom": {
130145
- "name": "SbbDisabledMixin",
130146
- "module": "core/mixins/disabled-mixin.js"
130147
- }
130148
- },
130149
- {
130150
- "name": "value",
130151
- "type": {
130152
- "text": "string"
130153
- },
130154
- "default": "''",
130155
- "description": "Value of the form element.",
130156
- "fieldName": "value",
130157
- "inheritedFrom": {
130158
- "name": "SbbButtonBaseElement",
130159
- "module": "core/base-elements/button-base-element.js"
130160
- }
130161
- },
130162
- {
130163
- "name": "type",
130164
- "description": "The type attribute to use for the button.",
130165
- "default": "'button'",
130166
- "type": {
130167
- "text": "SbbButtonType"
130168
- },
130169
- "fieldName": "type",
130170
- "inheritedFrom": {
130171
- "name": "SbbButtonBaseElement",
130172
- "module": "core/base-elements/button-base-element.js"
130173
- }
130174
- },
130175
- {
130176
- "name": "form",
130177
- "description": "The `<form>` element to associate the button with.",
130178
- "type": {
130179
- "text": "HTMLFormElement | null"
130180
- },
130181
- "fieldName": "form",
130182
- "inheritedFrom": {
130183
- "name": "SbbButtonBaseElement",
130184
- "module": "core/base-elements/button-base-element.js"
130185
- }
130186
- },
130187
- {
130188
- "name": "name",
130189
- "description": "Name of the form element. Will be read from name attribute.",
130190
- "type": {
130191
- "text": "string"
130192
- },
130193
- "fieldName": "name",
130194
- "inheritedFrom": {
130195
- "name": "SbbFormAssociatedMixin",
130196
- "module": "core/mixins/form-associated-mixin.js"
130197
- }
130198
- }
130199
- ],
130200
- "slots": [
130201
- {
130202
- "description": "Use the unnamed slot to add content to the secondary-button.",
130203
- "name": "",
130204
- "inheritedFrom": {
130205
- "name": "SbbSecondaryButtonElement",
130206
- "module": "button/secondary-button/secondary-button.component.js"
130207
- }
130208
- },
130209
- {
130210
- "description": "Slot used to display the icon, if one is set.",
130211
- "name": "icon",
130212
- "inheritedFrom": {
130213
- "name": "SbbSecondaryButtonElement",
130214
- "module": "button/secondary-button/secondary-button.component.js"
130215
- }
130216
- }
130217
- ],
130218
- "cssProperties": [
130219
- {
130220
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
130221
- "name": "--sbb-button-loading-delay",
130222
- "default": "300ms",
130223
- "inheritedFrom": {
130224
- "name": "SbbSecondaryButtonElement",
130225
- "module": "button/secondary-button/secondary-button.component.js"
130226
- }
130227
- }
130228
- ]
130229
- }
130230
- ],
130231
- "exports": [
130232
- {
130233
- "kind": "js",
130234
- "name": "SbbTimetableFormSwapButtonElement",
130235
- "declaration": {
130236
- "name": "SbbTimetableFormSwapButtonElement",
130237
- "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
130238
- }
130239
- }
130240
- ]
130241
- },
130242
- {
130243
- "kind": "javascript-module",
130244
- "path": "toggle/toggle-option/toggle-option.component.js",
130245
- "declarations": [
130246
- {
130247
- "kind": "class",
130248
- "description": "It displays a toggle option within a `sbb-toggle`.",
130249
- "name": "SbbToggleOptionElement",
130250
- "slots": [
130251
- {
130252
- "description": "Use the unnamed slot to add content to the label of the toggle option.",
130253
- "name": ""
130254
- },
130255
- {
130256
- "description": "Slot used to render the `sbb-icon`.",
130257
- "name": "icon"
130258
- }
130259
- ],
130260
- "members": [
130261
- {
130262
- "kind": "field",
130263
- "name": "elementName",
130264
- "type": {
130265
- "text": "string"
130266
- },
130267
- "privacy": "public",
130268
- "static": true,
130269
- "readonly": true,
130270
- "default": "'sbb-toggle-option'",
130271
- "inheritedFrom": {
130272
- "name": "SbbElement",
130273
- "module": "core/base-elements/element.js"
130274
- }
130275
- },
130276
- {
130277
- "kind": "field",
130278
- "name": "role",
130279
- "type": {
130280
- "text": "string"
130281
- },
130282
- "privacy": "public",
130283
- "static": true,
130284
- "readonly": true,
130285
- "default": "'radio'"
130286
- },
130287
- {
130288
- "kind": "field",
130289
- "name": "checked",
130290
- "type": {
130291
- "text": "boolean"
130292
- },
130293
- "privacy": "public",
130294
- "default": "false",
130295
- "description": "Whether the toggle-option is checked.",
130296
- "attribute": "checked",
130297
- "reflects": true
130298
- },
130299
- {
130300
- "kind": "field",
130301
- "name": "value",
130302
- "type": {
130303
- "text": "(T = string) | null"
130304
- },
130305
- "privacy": "public",
130306
- "default": "null",
130307
- "description": "Value of toggle-option.",
130308
- "attribute": "value"
130309
- },
130310
- {
130311
- "kind": "field",
130312
- "name": "_toggle",
130313
- "type": {
130314
- "text": "SbbToggleElement | null"
130315
- },
130316
- "privacy": "private",
130317
- "default": "null"
130318
- },
130319
- {
130320
- "kind": "method",
130321
- "name": "_uncheckOtherOptions",
130322
- "privacy": "private",
130323
- "return": {
130324
- "type": {
130325
- "text": "void"
130326
- }
130327
- }
130328
- },
130329
- {
130330
- "kind": "method",
130331
- "name": "_handleDisabledChange",
130332
- "privacy": "private",
130333
- "return": {
130334
- "type": {
130335
- "text": "void"
130336
- }
130337
- }
130338
- },
130339
- {
130340
- "kind": "method",
130341
- "name": "_handleInput",
130342
- "privacy": "private",
130343
- "return": {
130344
- "type": {
130345
- "text": "void"
130346
- }
130347
- }
130348
- },
130349
- {
130350
- "kind": "method",
130351
- "name": "_verifyTabindex",
130352
- "privacy": "private",
130353
- "return": {
130354
- "type": {
130355
- "text": "void"
130356
- }
130357
- }
130358
- },
130359
- {
130360
- "kind": "field",
130361
- "name": "disabled",
130362
- "privacy": "public",
130363
- "description": "Whether the component is disabled.",
130364
- "default": "false",
130365
- "type": {
130366
- "text": "boolean"
130367
- },
130368
- "attribute": "disabled",
130369
- "reflects": true,
130370
- "inheritedFrom": {
130371
- "name": "SbbDisabledMixin",
130372
- "module": "core/mixins/disabled-mixin.js"
130373
- }
130374
- },
130375
- {
130376
- "kind": "field",
130377
- "name": "#disabled",
130378
- "privacy": "private",
130379
- "type": {
130380
- "text": "boolean"
130381
- },
130382
- "default": "false",
130383
- "inheritedFrom": {
130384
- "name": "SbbDisabledMixin",
130385
- "module": "core/mixins/disabled-mixin.js"
130386
- }
130387
- },
130388
- {
130389
- "kind": "method",
130390
- "name": "isDisabledExternally",
130391
- "privacy": "protected",
130392
- "return": {
130393
- "type": {
130394
- "text": "boolean"
130395
- }
130396
- },
130397
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
130398
- "inheritedFrom": {
130399
- "name": "SbbDisabledMixin",
130400
- "module": "core/mixins/disabled-mixin.js"
130401
- }
130402
- },
130403
- {
130404
- "kind": "field",
130405
- "name": "iconName",
130406
- "type": {
130407
- "text": "string"
130408
- },
130409
- "privacy": "public",
130410
- "default": "''",
130411
- "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.",
130412
- "attribute": "icon-name",
130413
- "inheritedFrom": {
130414
- "name": "SbbIconNameMixin",
130415
- "module": "icon/icon-name-mixin.js"
130416
- }
130417
- },
130418
- {
130419
- "kind": "method",
130420
- "name": "renderIconSlot",
130421
- "privacy": "protected",
130422
- "return": {
130423
- "type": {
130424
- "text": "TemplateResult"
130425
- }
130426
- },
130427
- "parameters": [
130428
- {
130429
- "name": "classname",
130430
- "optional": true,
130431
- "type": {
130432
- "text": "string"
130433
- }
130434
- }
130435
- ],
130436
- "inheritedFrom": {
130437
- "name": "SbbIconNameMixin",
130438
- "module": "icon/icon-name-mixin.js"
130439
- }
130440
- },
130441
- {
130442
- "kind": "method",
130443
- "name": "renderIconName",
130444
- "privacy": "protected",
130445
- "return": {
130446
- "type": {
130447
- "text": "string"
130448
- }
130449
- },
130450
- "inheritedFrom": {
130451
- "name": "SbbIconNameMixin",
130452
- "module": "icon/icon-name-mixin.js"
130453
- }
130454
- },
130455
- {
130456
- "kind": "method",
130457
- "name": "_renderIconName",
130458
- "privacy": "private",
130459
- "return": {
130460
- "type": {
130461
- "text": "string"
130462
- }
130463
- },
130464
- "inheritedFrom": {
130465
- "name": "SbbIconNameMixin",
130466
- "module": "icon/icon-name-mixin.js"
130467
- }
130468
- },
130469
- {
130470
- "kind": "field",
130471
- "name": "_hydrationRequired",
130472
- "type": {
130473
- "text": "boolean"
130474
- },
130475
- "privacy": "private",
130476
- "default": "!!this.shadowRoot",
130477
- "inheritedFrom": {
130478
- "name": "SbbElement",
130479
- "module": "core/base-elements/element.js"
130480
- }
130481
- },
130482
- {
130483
- "kind": "field",
130484
- "name": "_hydrationComplete",
130485
- "privacy": "private",
130486
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
130487
- "inheritedFrom": {
130488
- "name": "SbbElement",
130489
- "module": "core/base-elements/element.js"
130490
- }
130491
- },
130492
- {
130493
- "kind": "field",
130494
- "name": "_resolveHydration",
130495
- "type": {
130496
- "text": "(hydrationRequired: boolean) => void"
130497
- },
130498
- "privacy": "private",
130499
- "inheritedFrom": {
130500
- "name": "SbbElement",
130501
- "module": "core/base-elements/element.js"
130502
- }
130503
- },
130504
- {
130505
- "kind": "field",
130506
- "name": "hydrationRequired",
130507
- "type": {
130508
- "text": "boolean"
130509
- },
130510
- "privacy": "protected",
130511
- "description": "Returns whether hydration is required and not completed.",
130512
- "readonly": true,
130513
- "inheritedFrom": {
130514
- "name": "SbbElement",
130515
- "module": "core/base-elements/element.js"
130516
- },
130517
- "default": "!!this.shadowRoot"
130518
- },
130519
- {
130520
- "kind": "method",
130521
- "name": "toggleState",
130522
- "privacy": "protected",
130523
- "return": {
130524
- "type": {
130525
- "text": "void"
130526
- }
130527
- },
130528
- "parameters": [
130529
- {
130530
- "name": "value",
130531
- "type": {
130532
- "text": "string"
130533
- }
130534
- },
130535
- {
130536
- "name": "force",
130537
- "optional": true,
130538
- "type": {
130539
- "text": "boolean"
130540
- }
130541
- }
130542
- ],
130543
- "inheritedFrom": {
130544
- "name": "SbbElement",
130545
- "module": "core/base-elements/element.js"
130546
- }
130547
- },
130548
- {
130549
- "kind": "field",
130550
- "name": "['_$sbbElement$']",
130551
- "type": {
130552
- "text": "boolean"
130553
- },
130554
- "privacy": "public",
130555
- "static": true,
130556
- "default": "true",
130557
- "inheritedFrom": {
130558
- "name": "SbbElement",
130559
- "module": "core/base-elements/element.js"
130560
- }
130561
- },
130562
- {
130563
- "kind": "field",
130564
- "name": "_controllers",
130565
- "type": {
130566
- "text": "Set<SbbReactiveController> | undefined"
130567
- },
130568
- "privacy": "private",
130569
- "inheritedFrom": {
130570
- "name": "SbbElement",
130571
- "module": "core/base-elements/element.js"
130572
- }
130573
- }
130574
- ],
130575
- "attributes": [
130576
- {
130577
- "name": "checked",
130578
- "type": {
130579
- "text": "boolean"
130580
- },
130581
- "default": "false",
130582
- "description": "Whether the toggle-option is checked.",
130583
- "fieldName": "checked"
130584
- },
130585
- {
130586
- "name": "value",
130124
+ "name": "disabled-interactive",
130587
130125
  "type": {
130588
- "text": "T | null"
130126
+ "text": "boolean"
130589
130127
  },
130590
- "default": "null",
130591
- "description": "Value of toggle-option.",
130592
- "fieldName": "value"
130128
+ "default": "false",
130129
+ "description": "Whether the button should be aria-disabled but stay interactive.",
130130
+ "fieldName": "disabledInteractive",
130131
+ "inheritedFrom": {
130132
+ "name": "SbbDisabledInteractiveMixin",
130133
+ "module": "core/mixins/disabled-mixin.js"
130134
+ }
130593
130135
  },
130594
130136
  {
130595
130137
  "name": "disabled",
@@ -130605,45 +130147,94 @@
130605
130147
  }
130606
130148
  },
130607
130149
  {
130608
- "name": "icon-name",
130150
+ "name": "value",
130609
130151
  "type": {
130610
130152
  "text": "string"
130611
130153
  },
130612
130154
  "default": "''",
130613
- "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.",
130614
- "fieldName": "iconName",
130155
+ "description": "Value of the form element.",
130156
+ "fieldName": "value",
130615
130157
  "inheritedFrom": {
130616
- "name": "SbbIconNameMixin",
130617
- "module": "icon/icon-name-mixin.js"
130158
+ "name": "SbbButtonBaseElement",
130159
+ "module": "core/base-elements/button-base-element.js"
130160
+ }
130161
+ },
130162
+ {
130163
+ "name": "type",
130164
+ "description": "The type attribute to use for the button.",
130165
+ "default": "'button'",
130166
+ "type": {
130167
+ "text": "SbbButtonType"
130168
+ },
130169
+ "fieldName": "type",
130170
+ "inheritedFrom": {
130171
+ "name": "SbbButtonBaseElement",
130172
+ "module": "core/base-elements/button-base-element.js"
130173
+ }
130174
+ },
130175
+ {
130176
+ "name": "form",
130177
+ "description": "The `<form>` element to associate the button with.",
130178
+ "type": {
130179
+ "text": "HTMLFormElement | null"
130180
+ },
130181
+ "fieldName": "form",
130182
+ "inheritedFrom": {
130183
+ "name": "SbbButtonBaseElement",
130184
+ "module": "core/base-elements/button-base-element.js"
130185
+ }
130186
+ },
130187
+ {
130188
+ "name": "name",
130189
+ "description": "Name of the form element. Will be read from name attribute.",
130190
+ "type": {
130191
+ "text": "string"
130192
+ },
130193
+ "fieldName": "name",
130194
+ "inheritedFrom": {
130195
+ "name": "SbbFormAssociatedMixin",
130196
+ "module": "core/mixins/form-associated-mixin.js"
130618
130197
  }
130619
130198
  }
130620
130199
  ],
130621
- "mixins": [
130200
+ "slots": [
130622
130201
  {
130623
- "name": "SbbDisabledMixin",
130624
- "module": "core/mixins.js"
130202
+ "description": "Use the unnamed slot to add content to the secondary-button.",
130203
+ "name": "",
130204
+ "inheritedFrom": {
130205
+ "name": "SbbSecondaryButtonElement",
130206
+ "module": "button/secondary-button/secondary-button.component.js"
130207
+ }
130625
130208
  },
130626
130209
  {
130627
- "name": "SbbIconNameMixin",
130628
- "module": "icon.js"
130210
+ "description": "Slot used to display the icon, if one is set.",
130211
+ "name": "icon",
130212
+ "inheritedFrom": {
130213
+ "name": "SbbSecondaryButtonElement",
130214
+ "module": "button/secondary-button/secondary-button.component.js"
130215
+ }
130629
130216
  }
130630
130217
  ],
130631
- "superclass": {
130632
- "name": "SbbElement",
130633
- "module": "core/base-elements.js"
130634
- },
130635
- "tagName": "sbb-toggle-option",
130636
- "customElement": true,
130637
- "classGenerics": "T = string"
130218
+ "cssProperties": [
130219
+ {
130220
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
130221
+ "name": "--sbb-button-loading-delay",
130222
+ "default": "300ms",
130223
+ "inheritedFrom": {
130224
+ "name": "SbbSecondaryButtonElement",
130225
+ "module": "button/secondary-button/secondary-button.component.js"
130226
+ }
130227
+ }
130228
+ ]
130638
130229
  }
130639
130230
  ],
130640
130231
  "exports": [
130641
130232
  {
130642
130233
  "kind": "js",
130643
- "name": "SbbToggleOptionElement",
130234
+ "name": "SbbTimetableFormSwapButtonElement",
130644
130235
  "declaration": {
130645
- "name": "SbbToggleOptionElement",
130646
- "module": "toggle/toggle-option/toggle-option.component.js"
130236
+ "name": "SbbTimetableFormSwapButtonElement",
130237
+ "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
130647
130238
  }
130648
130239
  }
130649
130240
  ]
@@ -131417,6 +131008,415 @@
131417
131008
  }
131418
131009
  ]
131419
131010
  },
131011
+ {
131012
+ "kind": "javascript-module",
131013
+ "path": "toggle/toggle-option/toggle-option.component.js",
131014
+ "declarations": [
131015
+ {
131016
+ "kind": "class",
131017
+ "description": "It displays a toggle option within a `sbb-toggle`.",
131018
+ "name": "SbbToggleOptionElement",
131019
+ "slots": [
131020
+ {
131021
+ "description": "Use the unnamed slot to add content to the label of the toggle option.",
131022
+ "name": ""
131023
+ },
131024
+ {
131025
+ "description": "Slot used to render the `sbb-icon`.",
131026
+ "name": "icon"
131027
+ }
131028
+ ],
131029
+ "members": [
131030
+ {
131031
+ "kind": "field",
131032
+ "name": "elementName",
131033
+ "type": {
131034
+ "text": "string"
131035
+ },
131036
+ "privacy": "public",
131037
+ "static": true,
131038
+ "readonly": true,
131039
+ "default": "'sbb-toggle-option'",
131040
+ "inheritedFrom": {
131041
+ "name": "SbbElement",
131042
+ "module": "core/base-elements/element.js"
131043
+ }
131044
+ },
131045
+ {
131046
+ "kind": "field",
131047
+ "name": "role",
131048
+ "type": {
131049
+ "text": "string"
131050
+ },
131051
+ "privacy": "public",
131052
+ "static": true,
131053
+ "readonly": true,
131054
+ "default": "'radio'"
131055
+ },
131056
+ {
131057
+ "kind": "field",
131058
+ "name": "checked",
131059
+ "type": {
131060
+ "text": "boolean"
131061
+ },
131062
+ "privacy": "public",
131063
+ "default": "false",
131064
+ "description": "Whether the toggle-option is checked.",
131065
+ "attribute": "checked",
131066
+ "reflects": true
131067
+ },
131068
+ {
131069
+ "kind": "field",
131070
+ "name": "value",
131071
+ "type": {
131072
+ "text": "(T = string) | null"
131073
+ },
131074
+ "privacy": "public",
131075
+ "default": "null",
131076
+ "description": "Value of toggle-option.",
131077
+ "attribute": "value"
131078
+ },
131079
+ {
131080
+ "kind": "field",
131081
+ "name": "_toggle",
131082
+ "type": {
131083
+ "text": "SbbToggleElement | null"
131084
+ },
131085
+ "privacy": "private",
131086
+ "default": "null"
131087
+ },
131088
+ {
131089
+ "kind": "method",
131090
+ "name": "_uncheckOtherOptions",
131091
+ "privacy": "private",
131092
+ "return": {
131093
+ "type": {
131094
+ "text": "void"
131095
+ }
131096
+ }
131097
+ },
131098
+ {
131099
+ "kind": "method",
131100
+ "name": "_handleDisabledChange",
131101
+ "privacy": "private",
131102
+ "return": {
131103
+ "type": {
131104
+ "text": "void"
131105
+ }
131106
+ }
131107
+ },
131108
+ {
131109
+ "kind": "method",
131110
+ "name": "_handleInput",
131111
+ "privacy": "private",
131112
+ "return": {
131113
+ "type": {
131114
+ "text": "void"
131115
+ }
131116
+ }
131117
+ },
131118
+ {
131119
+ "kind": "method",
131120
+ "name": "_verifyTabindex",
131121
+ "privacy": "private",
131122
+ "return": {
131123
+ "type": {
131124
+ "text": "void"
131125
+ }
131126
+ }
131127
+ },
131128
+ {
131129
+ "kind": "field",
131130
+ "name": "disabled",
131131
+ "privacy": "public",
131132
+ "description": "Whether the component is disabled.",
131133
+ "default": "false",
131134
+ "type": {
131135
+ "text": "boolean"
131136
+ },
131137
+ "attribute": "disabled",
131138
+ "reflects": true,
131139
+ "inheritedFrom": {
131140
+ "name": "SbbDisabledMixin",
131141
+ "module": "core/mixins/disabled-mixin.js"
131142
+ }
131143
+ },
131144
+ {
131145
+ "kind": "field",
131146
+ "name": "#disabled",
131147
+ "privacy": "private",
131148
+ "type": {
131149
+ "text": "boolean"
131150
+ },
131151
+ "default": "false",
131152
+ "inheritedFrom": {
131153
+ "name": "SbbDisabledMixin",
131154
+ "module": "core/mixins/disabled-mixin.js"
131155
+ }
131156
+ },
131157
+ {
131158
+ "kind": "method",
131159
+ "name": "isDisabledExternally",
131160
+ "privacy": "protected",
131161
+ "return": {
131162
+ "type": {
131163
+ "text": "boolean"
131164
+ }
131165
+ },
131166
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
131167
+ "inheritedFrom": {
131168
+ "name": "SbbDisabledMixin",
131169
+ "module": "core/mixins/disabled-mixin.js"
131170
+ }
131171
+ },
131172
+ {
131173
+ "kind": "field",
131174
+ "name": "iconName",
131175
+ "type": {
131176
+ "text": "string"
131177
+ },
131178
+ "privacy": "public",
131179
+ "default": "''",
131180
+ "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.",
131181
+ "attribute": "icon-name",
131182
+ "inheritedFrom": {
131183
+ "name": "SbbIconNameMixin",
131184
+ "module": "icon/icon-name-mixin.js"
131185
+ }
131186
+ },
131187
+ {
131188
+ "kind": "method",
131189
+ "name": "renderIconSlot",
131190
+ "privacy": "protected",
131191
+ "return": {
131192
+ "type": {
131193
+ "text": "TemplateResult"
131194
+ }
131195
+ },
131196
+ "parameters": [
131197
+ {
131198
+ "name": "classname",
131199
+ "optional": true,
131200
+ "type": {
131201
+ "text": "string"
131202
+ }
131203
+ }
131204
+ ],
131205
+ "inheritedFrom": {
131206
+ "name": "SbbIconNameMixin",
131207
+ "module": "icon/icon-name-mixin.js"
131208
+ }
131209
+ },
131210
+ {
131211
+ "kind": "method",
131212
+ "name": "renderIconName",
131213
+ "privacy": "protected",
131214
+ "return": {
131215
+ "type": {
131216
+ "text": "string"
131217
+ }
131218
+ },
131219
+ "inheritedFrom": {
131220
+ "name": "SbbIconNameMixin",
131221
+ "module": "icon/icon-name-mixin.js"
131222
+ }
131223
+ },
131224
+ {
131225
+ "kind": "method",
131226
+ "name": "_renderIconName",
131227
+ "privacy": "private",
131228
+ "return": {
131229
+ "type": {
131230
+ "text": "string"
131231
+ }
131232
+ },
131233
+ "inheritedFrom": {
131234
+ "name": "SbbIconNameMixin",
131235
+ "module": "icon/icon-name-mixin.js"
131236
+ }
131237
+ },
131238
+ {
131239
+ "kind": "field",
131240
+ "name": "_hydrationRequired",
131241
+ "type": {
131242
+ "text": "boolean"
131243
+ },
131244
+ "privacy": "private",
131245
+ "default": "!!this.shadowRoot",
131246
+ "inheritedFrom": {
131247
+ "name": "SbbElement",
131248
+ "module": "core/base-elements/element.js"
131249
+ }
131250
+ },
131251
+ {
131252
+ "kind": "field",
131253
+ "name": "_hydrationComplete",
131254
+ "privacy": "private",
131255
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
131256
+ "inheritedFrom": {
131257
+ "name": "SbbElement",
131258
+ "module": "core/base-elements/element.js"
131259
+ }
131260
+ },
131261
+ {
131262
+ "kind": "field",
131263
+ "name": "_resolveHydration",
131264
+ "type": {
131265
+ "text": "(hydrationRequired: boolean) => void"
131266
+ },
131267
+ "privacy": "private",
131268
+ "inheritedFrom": {
131269
+ "name": "SbbElement",
131270
+ "module": "core/base-elements/element.js"
131271
+ }
131272
+ },
131273
+ {
131274
+ "kind": "field",
131275
+ "name": "hydrationRequired",
131276
+ "type": {
131277
+ "text": "boolean"
131278
+ },
131279
+ "privacy": "protected",
131280
+ "description": "Returns whether hydration is required and not completed.",
131281
+ "readonly": true,
131282
+ "inheritedFrom": {
131283
+ "name": "SbbElement",
131284
+ "module": "core/base-elements/element.js"
131285
+ },
131286
+ "default": "!!this.shadowRoot"
131287
+ },
131288
+ {
131289
+ "kind": "method",
131290
+ "name": "toggleState",
131291
+ "privacy": "protected",
131292
+ "return": {
131293
+ "type": {
131294
+ "text": "void"
131295
+ }
131296
+ },
131297
+ "parameters": [
131298
+ {
131299
+ "name": "value",
131300
+ "type": {
131301
+ "text": "string"
131302
+ }
131303
+ },
131304
+ {
131305
+ "name": "force",
131306
+ "optional": true,
131307
+ "type": {
131308
+ "text": "boolean"
131309
+ }
131310
+ }
131311
+ ],
131312
+ "inheritedFrom": {
131313
+ "name": "SbbElement",
131314
+ "module": "core/base-elements/element.js"
131315
+ }
131316
+ },
131317
+ {
131318
+ "kind": "field",
131319
+ "name": "['_$sbbElement$']",
131320
+ "type": {
131321
+ "text": "boolean"
131322
+ },
131323
+ "privacy": "public",
131324
+ "static": true,
131325
+ "default": "true",
131326
+ "inheritedFrom": {
131327
+ "name": "SbbElement",
131328
+ "module": "core/base-elements/element.js"
131329
+ }
131330
+ },
131331
+ {
131332
+ "kind": "field",
131333
+ "name": "_controllers",
131334
+ "type": {
131335
+ "text": "Set<SbbReactiveController> | undefined"
131336
+ },
131337
+ "privacy": "private",
131338
+ "inheritedFrom": {
131339
+ "name": "SbbElement",
131340
+ "module": "core/base-elements/element.js"
131341
+ }
131342
+ }
131343
+ ],
131344
+ "attributes": [
131345
+ {
131346
+ "name": "checked",
131347
+ "type": {
131348
+ "text": "boolean"
131349
+ },
131350
+ "default": "false",
131351
+ "description": "Whether the toggle-option is checked.",
131352
+ "fieldName": "checked"
131353
+ },
131354
+ {
131355
+ "name": "value",
131356
+ "type": {
131357
+ "text": "T | null"
131358
+ },
131359
+ "default": "null",
131360
+ "description": "Value of toggle-option.",
131361
+ "fieldName": "value"
131362
+ },
131363
+ {
131364
+ "name": "disabled",
131365
+ "description": "Whether the component is disabled.",
131366
+ "default": "false",
131367
+ "type": {
131368
+ "text": "boolean"
131369
+ },
131370
+ "fieldName": "disabled",
131371
+ "inheritedFrom": {
131372
+ "name": "SbbDisabledMixin",
131373
+ "module": "core/mixins/disabled-mixin.js"
131374
+ }
131375
+ },
131376
+ {
131377
+ "name": "icon-name",
131378
+ "type": {
131379
+ "text": "string"
131380
+ },
131381
+ "default": "''",
131382
+ "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.",
131383
+ "fieldName": "iconName",
131384
+ "inheritedFrom": {
131385
+ "name": "SbbIconNameMixin",
131386
+ "module": "icon/icon-name-mixin.js"
131387
+ }
131388
+ }
131389
+ ],
131390
+ "mixins": [
131391
+ {
131392
+ "name": "SbbDisabledMixin",
131393
+ "module": "core/mixins.js"
131394
+ },
131395
+ {
131396
+ "name": "SbbIconNameMixin",
131397
+ "module": "icon.js"
131398
+ }
131399
+ ],
131400
+ "superclass": {
131401
+ "name": "SbbElement",
131402
+ "module": "core/base-elements.js"
131403
+ },
131404
+ "tagName": "sbb-toggle-option",
131405
+ "customElement": true,
131406
+ "classGenerics": "T = string"
131407
+ }
131408
+ ],
131409
+ "exports": [
131410
+ {
131411
+ "kind": "js",
131412
+ "name": "SbbToggleOptionElement",
131413
+ "declaration": {
131414
+ "name": "SbbToggleOptionElement",
131415
+ "module": "toggle/toggle-option/toggle-option.component.js"
131416
+ }
131417
+ }
131418
+ ]
131419
+ },
131420
131420
  {
131421
131421
  "kind": "javascript-module",
131422
131422
  "path": "train/train/train.component.js",