@sbb-esta/lyne-elements-dev 4.11.0-dev.1777270772 → 4.11.0-dev.1777270941

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 +1824 -1824
  2. package/package.json +2 -2
@@ -87784,115 +87784,85 @@
87784
87784
  },
87785
87785
  {
87786
87786
  "kind": "javascript-module",
87787
- "path": "file-selector/common/file-selector-common.js",
87787
+ "path": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js",
87788
87788
  "declarations": [
87789
- {
87790
- "kind": "variable",
87791
- "name": "fileSelectorCommonStyle"
87792
- },
87793
87789
  {
87794
87790
  "kind": "class",
87795
- "description": "",
87796
- "name": "SbbFileSelectorCommonElementMixinType",
87797
- "members": [
87798
- {
87799
- "kind": "field",
87800
- "name": "size",
87801
- "type": {
87802
- "text": "'s' | 'm'"
87803
- },
87804
- "privacy": "public"
87805
- },
87791
+ "description": "It acts as a native `summary` tag for the `sbb-expansion-panel` component.",
87792
+ "name": "SbbExpansionPanelHeaderElement",
87793
+ "slots": [
87806
87794
  {
87807
- "kind": "field",
87808
- "name": "multiple",
87809
- "type": {
87810
- "text": "boolean"
87811
- },
87812
- "privacy": "public"
87795
+ "description": "Use the unnamed slot to add content to the `sbb-expansion-panel-header`.",
87796
+ "name": ""
87813
87797
  },
87814
87798
  {
87815
- "kind": "field",
87816
- "name": "multipleMode",
87817
- "type": {
87818
- "text": "'default' | 'persistent'"
87819
- },
87820
- "privacy": "public"
87821
- },
87799
+ "description": "Slot used to render the `sbb-expansion-panel-header` icon.",
87800
+ "name": "icon"
87801
+ }
87802
+ ],
87803
+ "members": [
87822
87804
  {
87823
87805
  "kind": "field",
87824
- "name": "accept",
87806
+ "name": "elementName",
87825
87807
  "type": {
87826
87808
  "text": "string"
87827
87809
  },
87828
- "privacy": "public"
87829
- },
87830
- {
87831
- "kind": "field",
87832
- "name": "accessibilityLabel",
87833
- "type": {
87834
- "text": "string"
87810
+ "privacy": "public",
87811
+ "static": true,
87812
+ "readonly": true,
87813
+ "inheritedFrom": {
87814
+ "name": "SbbElement",
87815
+ "module": "core/base-elements/element.js"
87835
87816
  },
87836
- "privacy": "public"
87817
+ "default": "'sbb-expansion-panel-header'"
87837
87818
  },
87838
87819
  {
87839
87820
  "kind": "field",
87840
- "name": "files",
87821
+ "name": "events",
87822
+ "privacy": "public",
87823
+ "static": true,
87824
+ "readonly": true,
87825
+ "default": "{ toggleexpanded: 'toggleexpanded', }",
87841
87826
  "type": {
87842
- "text": "Readonly<File>[]"
87843
- },
87844
- "privacy": "public"
87827
+ "text": "{\n toggleexpanded: 'toggleexpanded',\n }"
87828
+ }
87845
87829
  },
87846
87830
  {
87847
87831
  "kind": "field",
87848
- "name": "value",
87849
- "type": {
87850
- "text": "string | null"
87851
- },
87852
- "privacy": "public",
87853
- "inheritedFrom": {
87854
- "name": "SbbFormAssociatedMixin",
87855
- "module": "core/mixins/form-associated-mixin.js"
87856
- }
87832
+ "name": "_mediaMatcher",
87833
+ "privacy": "private",
87834
+ "default": "new SbbMediaMatcherController(this, { [SbbMediaQueryHover]: (m) => (this._isHover = m), })"
87857
87835
  },
87858
87836
  {
87859
87837
  "kind": "field",
87860
- "name": "loadButton",
87838
+ "name": "_isHover",
87861
87839
  "type": {
87862
- "text": "SbbSecondaryButtonStaticElement"
87840
+ "text": "boolean"
87863
87841
  },
87864
- "privacy": "protected"
87842
+ "privacy": "private"
87865
87843
  },
87866
87844
  {
87867
87845
  "kind": "field",
87868
- "name": "language",
87846
+ "name": "_previousSize",
87869
87847
  "type": {
87870
- "text": "SbbLanguageController"
87848
+ "text": "string | undefined"
87871
87849
  },
87872
- "privacy": "protected"
87850
+ "privacy": "private"
87873
87851
  },
87874
87852
  {
87875
87853
  "kind": "method",
87876
- "name": "renderTemplate",
87877
- "privacy": "protected",
87854
+ "name": "_emitExpandedEvent",
87855
+ "privacy": "private",
87878
87856
  "return": {
87879
87857
  "type": {
87880
- "text": "TemplateResult"
87881
- }
87882
- },
87883
- "parameters": [
87884
- {
87885
- "name": "input",
87886
- "type": {
87887
- "text": "TemplateResult"
87888
- }
87858
+ "text": "void"
87889
87859
  }
87890
- ]
87860
+ }
87891
87861
  },
87892
87862
  {
87893
87863
  "kind": "method",
87894
- "name": "createFileList",
87895
- "privacy": "protected",
87864
+ "name": "_onMouseMovement",
87865
+ "privacy": "private",
87896
87866
  "return": {
87897
87867
  "type": {
87898
87868
  "text": "void"
@@ -87900,56 +87870,54 @@
87900
87870
  },
87901
87871
  "parameters": [
87902
87872
  {
87903
- "name": "files",
87873
+ "name": "toggleDataAttribute",
87904
87874
  "type": {
87905
- "text": "FileList"
87875
+ "text": "boolean"
87906
87876
  }
87907
87877
  }
87908
87878
  ]
87909
87879
  },
87910
87880
  {
87911
87881
  "kind": "method",
87912
- "name": "getButtonLabel",
87913
- "privacy": "protected",
87882
+ "name": "_setIconState",
87883
+ "privacy": "private",
87914
87884
  "return": {
87915
87885
  "type": {
87916
- "text": "string"
87886
+ "text": "void"
87917
87887
  }
87918
- }
87888
+ },
87889
+ "description": "The :state(icon) is used by the 'sbb-expansion-panel'.\nIt needs to be set before the"
87919
87890
  },
87920
87891
  {
87921
87892
  "kind": "method",
87922
- "name": "formResetCallback",
87923
- "privacy": "public",
87893
+ "name": "renderTemplate",
87894
+ "privacy": "protected",
87924
87895
  "return": {
87925
87896
  "type": {
87926
- "text": "void"
87897
+ "text": "TemplateResult"
87927
87898
  }
87899
+ },
87900
+ "description": "Override this method to render the component template.",
87901
+ "inheritedFrom": {
87902
+ "name": "SbbActionBaseElement",
87903
+ "module": "core/base-elements/action-base-element.js"
87928
87904
  }
87929
87905
  },
87930
87906
  {
87931
- "kind": "method",
87932
- "name": "formStateRestoreCallback",
87933
- "privacy": "public",
87934
- "return": {
87935
- "type": {
87936
- "text": "void"
87937
- }
87907
+ "kind": "field",
87908
+ "name": "disabledInteractive",
87909
+ "type": {
87910
+ "text": "boolean"
87938
87911
  },
87939
- "parameters": [
87940
- {
87941
- "name": "state",
87942
- "type": {
87943
- "text": "FormRestoreState | null"
87944
- }
87945
- },
87946
- {
87947
- "name": "reason",
87948
- "type": {
87949
- "text": "FormRestoreReason"
87950
- }
87951
- }
87952
- ]
87912
+ "privacy": "public",
87913
+ "default": "false",
87914
+ "description": "Whether the button should be aria-disabled but stay interactive.",
87915
+ "attribute": "disabled-interactive",
87916
+ "reflects": true,
87917
+ "inheritedFrom": {
87918
+ "name": "SbbDisabledInteractiveMixin",
87919
+ "module": "core/mixins/disabled-mixin.js"
87920
+ }
87953
87921
  },
87954
87922
  {
87955
87923
  "kind": "field",
@@ -87997,16 +87965,112 @@
87997
87965
  },
87998
87966
  {
87999
87967
  "kind": "field",
88000
- "name": "formAssociated",
87968
+ "name": "iconName",
88001
87969
  "type": {
88002
- "text": "boolean"
87970
+ "text": "string"
88003
87971
  },
88004
87972
  "privacy": "public",
88005
- "static": true,
88006
- "default": "true",
87973
+ "default": "''",
87974
+ "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.",
87975
+ "attribute": "icon-name",
88007
87976
  "inheritedFrom": {
88008
- "name": "SbbFormAssociatedMixin",
88009
- "module": "core/mixins/form-associated-mixin.js"
87977
+ "name": "SbbIconNameMixin",
87978
+ "module": "icon/icon-name-mixin.js"
87979
+ }
87980
+ },
87981
+ {
87982
+ "kind": "method",
87983
+ "name": "renderIconSlot",
87984
+ "privacy": "protected",
87985
+ "return": {
87986
+ "type": {
87987
+ "text": "TemplateResult"
87988
+ }
87989
+ },
87990
+ "parameters": [
87991
+ {
87992
+ "name": "classname",
87993
+ "optional": true,
87994
+ "type": {
87995
+ "text": "string"
87996
+ }
87997
+ }
87998
+ ],
87999
+ "inheritedFrom": {
88000
+ "name": "SbbIconNameMixin",
88001
+ "module": "icon/icon-name-mixin.js"
88002
+ }
88003
+ },
88004
+ {
88005
+ "kind": "method",
88006
+ "name": "renderIconName",
88007
+ "privacy": "protected",
88008
+ "return": {
88009
+ "type": {
88010
+ "text": "string"
88011
+ }
88012
+ },
88013
+ "inheritedFrom": {
88014
+ "name": "SbbIconNameMixin",
88015
+ "module": "icon/icon-name-mixin.js"
88016
+ }
88017
+ },
88018
+ {
88019
+ "kind": "method",
88020
+ "name": "_renderIconName",
88021
+ "privacy": "private",
88022
+ "return": {
88023
+ "type": {
88024
+ "text": "string"
88025
+ }
88026
+ },
88027
+ "inheritedFrom": {
88028
+ "name": "SbbIconNameMixin",
88029
+ "module": "icon/icon-name-mixin.js"
88030
+ }
88031
+ },
88032
+ {
88033
+ "kind": "field",
88034
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
88035
+ "type": {
88036
+ "text": "array"
88037
+ },
88038
+ "privacy": "private",
88039
+ "readonly": true,
88040
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
88041
+ "inheritedFrom": {
88042
+ "name": "SbbButtonBaseElement",
88043
+ "module": "core/base-elements/button-base-element.js"
88044
+ }
88045
+ },
88046
+ {
88047
+ "kind": "field",
88048
+ "name": "value",
88049
+ "type": {
88050
+ "text": "string"
88051
+ },
88052
+ "privacy": "public",
88053
+ "inheritedFrom": {
88054
+ "name": "SbbButtonBaseElement",
88055
+ "module": "core/base-elements/button-base-element.js"
88056
+ },
88057
+ "default": "''",
88058
+ "description": "Value of the form element.",
88059
+ "attribute": "value"
88060
+ },
88061
+ {
88062
+ "kind": "field",
88063
+ "name": "type",
88064
+ "privacy": "public",
88065
+ "description": "The type attribute to use for the button.",
88066
+ "default": "'button'",
88067
+ "type": {
88068
+ "text": "SbbButtonType"
88069
+ },
88070
+ "attribute": "type",
88071
+ "inheritedFrom": {
88072
+ "name": "SbbButtonBaseElement",
88073
+ "module": "core/base-elements/button-base-element.js"
88010
88074
  }
88011
88075
  },
88012
88076
  {
@@ -88016,8 +88080,75 @@
88016
88080
  "text": "HTMLFormElement | null"
88017
88081
  },
88018
88082
  "privacy": "public",
88019
- "description": "Returns the form owner of this element.",
88020
- "readonly": true,
88083
+ "description": "The `<form>` element to associate the button with.",
88084
+ "inheritedFrom": {
88085
+ "name": "SbbButtonBaseElement",
88086
+ "module": "core/base-elements/button-base-element.js"
88087
+ },
88088
+ "attribute": "form"
88089
+ },
88090
+ {
88091
+ "kind": "field",
88092
+ "name": "_formId",
88093
+ "type": {
88094
+ "text": "string"
88095
+ },
88096
+ "privacy": "private",
88097
+ "default": "''",
88098
+ "inheritedFrom": {
88099
+ "name": "SbbButtonBaseElement",
88100
+ "module": "core/base-elements/button-base-element.js"
88101
+ }
88102
+ },
88103
+ {
88104
+ "kind": "field",
88105
+ "name": "_handleButtonClick",
88106
+ "privacy": "private",
88107
+ "inheritedFrom": {
88108
+ "name": "SbbButtonBaseElement",
88109
+ "module": "core/base-elements/button-base-element.js"
88110
+ }
88111
+ },
88112
+ {
88113
+ "kind": "method",
88114
+ "name": "_requestSubmit",
88115
+ "privacy": "private",
88116
+ "return": {
88117
+ "type": {
88118
+ "text": "void"
88119
+ }
88120
+ },
88121
+ "parameters": [
88122
+ {
88123
+ "name": "form",
88124
+ "type": {
88125
+ "text": "HTMLFormElement"
88126
+ }
88127
+ }
88128
+ ],
88129
+ "inheritedFrom": {
88130
+ "name": "SbbButtonBaseElement",
88131
+ "module": "core/base-elements/button-base-element.js"
88132
+ }
88133
+ },
88134
+ {
88135
+ "kind": "field",
88136
+ "name": "_formKeyDown",
88137
+ "privacy": "private",
88138
+ "inheritedFrom": {
88139
+ "name": "SbbButtonBaseElement",
88140
+ "module": "core/base-elements/button-base-element.js"
88141
+ }
88142
+ },
88143
+ {
88144
+ "kind": "field",
88145
+ "name": "formAssociated",
88146
+ "type": {
88147
+ "text": "boolean"
88148
+ },
88149
+ "privacy": "public",
88150
+ "static": true,
88151
+ "default": "true",
88021
88152
  "inheritedFrom": {
88022
88153
  "name": "SbbFormAssociatedMixin",
88023
88154
  "module": "core/mixins/form-associated-mixin.js"
@@ -88310,6 +88441,111 @@
88310
88441
  "module": "core/mixins/form-associated-mixin.js"
88311
88442
  }
88312
88443
  },
88444
+ {
88445
+ "kind": "field",
88446
+ "name": "role",
88447
+ "type": {
88448
+ "text": "ElementInternals['role']"
88449
+ },
88450
+ "privacy": "public",
88451
+ "static": true,
88452
+ "readonly": true,
88453
+ "default": "'button'",
88454
+ "inheritedFrom": {
88455
+ "name": "SbbButtonLikeBaseElement",
88456
+ "module": "core/base-elements/button-base-element.js"
88457
+ }
88458
+ },
88459
+ {
88460
+ "kind": "field",
88461
+ "name": "_preventScrollOnSpaceKeydown",
88462
+ "privacy": "private",
88463
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
88464
+ "parameters": [
88465
+ {
88466
+ "description": "The origin event.",
88467
+ "name": "event"
88468
+ }
88469
+ ],
88470
+ "inheritedFrom": {
88471
+ "name": "SbbButtonLikeBaseElement",
88472
+ "module": "core/base-elements/button-base-element.js"
88473
+ }
88474
+ },
88475
+ {
88476
+ "kind": "field",
88477
+ "name": "_removeActiveMarker",
88478
+ "privacy": "private",
88479
+ "inheritedFrom": {
88480
+ "name": "SbbButtonLikeBaseElement",
88481
+ "module": "core/base-elements/button-base-element.js"
88482
+ }
88483
+ },
88484
+ {
88485
+ "kind": "field",
88486
+ "name": "_dispatchClickEventOnSpaceKeyup",
88487
+ "privacy": "private",
88488
+ "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.",
88489
+ "parameters": [
88490
+ {
88491
+ "description": "The origin event.",
88492
+ "name": "event"
88493
+ }
88494
+ ],
88495
+ "inheritedFrom": {
88496
+ "name": "SbbButtonLikeBaseElement",
88497
+ "module": "core/base-elements/button-base-element.js"
88498
+ }
88499
+ },
88500
+ {
88501
+ "kind": "field",
88502
+ "name": "_dispatchClickEvent",
88503
+ "privacy": "private",
88504
+ "inheritedFrom": {
88505
+ "name": "SbbButtonLikeBaseElement",
88506
+ "module": "core/base-elements/button-base-element.js"
88507
+ }
88508
+ },
88509
+ {
88510
+ "kind": "field",
88511
+ "name": "maybeDisabled",
88512
+ "type": {
88513
+ "text": "boolean | undefined"
88514
+ },
88515
+ "privacy": "protected",
88516
+ "readonly": true,
88517
+ "inheritedFrom": {
88518
+ "name": "SbbActionBaseElement",
88519
+ "module": "core/base-elements/action-base-element.js"
88520
+ }
88521
+ },
88522
+ {
88523
+ "kind": "field",
88524
+ "name": "maybeDisabledInteractive",
88525
+ "type": {
88526
+ "text": "boolean | undefined"
88527
+ },
88528
+ "privacy": "protected",
88529
+ "readonly": true,
88530
+ "inheritedFrom": {
88531
+ "name": "SbbActionBaseElement",
88532
+ "module": "core/base-elements/action-base-element.js"
88533
+ }
88534
+ },
88535
+ {
88536
+ "kind": "method",
88537
+ "name": "setupBaseEventHandlers",
88538
+ "privacy": "protected",
88539
+ "return": {
88540
+ "type": {
88541
+ "text": "void"
88542
+ }
88543
+ },
88544
+ "inheritedFrom": {
88545
+ "name": "SbbActionBaseElement",
88546
+ "module": "core/base-elements/action-base-element.js"
88547
+ }
88548
+ },
88313
88549
  {
88314
88550
  "kind": "field",
88315
88551
  "name": "_hydrationRequired",
@@ -88403,20 +88639,6 @@
88403
88639
  "module": "core/base-elements/element.js"
88404
88640
  }
88405
88641
  },
88406
- {
88407
- "kind": "field",
88408
- "name": "elementName",
88409
- "type": {
88410
- "text": "string"
88411
- },
88412
- "privacy": "public",
88413
- "static": true,
88414
- "readonly": true,
88415
- "inheritedFrom": {
88416
- "name": "SbbElement",
88417
- "module": "core/base-elements/element.js"
88418
- }
88419
- },
88420
88642
  {
88421
88643
  "kind": "field",
88422
88644
  "name": "_controllers",
@@ -88430,21 +88652,45 @@
88430
88652
  }
88431
88653
  }
88432
88654
  ],
88655
+ "events": [
88656
+ {
88657
+ "name": "toggleexpanded",
88658
+ "type": {
88659
+ "text": "Event"
88660
+ },
88661
+ "description": "Notifies that the `sbb-expansion-panel` is about to expand/shrink."
88662
+ }
88663
+ ],
88433
88664
  "mixins": [
88434
88665
  {
88435
- "name": "SbbDisabledMixin",
88666
+ "name": "SbbDisabledTabIndexActionMixin",
88436
88667
  "module": "core/mixins.js"
88437
88668
  },
88438
88669
  {
88439
- "name": "SbbFormAssociatedMixin",
88440
- "module": "core/mixins.js"
88670
+ "name": "SbbIconNameMixin",
88671
+ "module": "icon.js"
88441
88672
  }
88442
88673
  ],
88443
88674
  "superclass": {
88444
- "name": "SbbElement",
88675
+ "name": "SbbButtonBaseElement",
88445
88676
  "module": "core/base-elements.js"
88446
88677
  },
88678
+ "tagName": "sbb-expansion-panel-header",
88679
+ "customElement": true,
88447
88680
  "attributes": [
88681
+ {
88682
+ "name": "disabled-interactive",
88683
+ "type": {
88684
+ "text": "boolean"
88685
+ },
88686
+ "default": "false",
88687
+ "description": "Whether the button should be aria-disabled but stay interactive.",
88688
+ "fieldName": "disabledInteractive",
88689
+ "inheritedFrom": {
88690
+ "name": "SbbDisabledInteractiveMixin",
88691
+ "module": "core/mixins/disabled-mixin.js"
88692
+ }
88693
+ },
88448
88694
  {
88449
88695
  "name": "disabled",
88450
88696
  "description": "Whether the component is disabled.",
@@ -88459,157 +88705,154 @@
88459
88705
  }
88460
88706
  },
88461
88707
  {
88462
- "name": "name",
88463
- "description": "Name of the form element. Will be read from name attribute.",
88708
+ "name": "icon-name",
88464
88709
  "type": {
88465
88710
  "text": "string"
88466
88711
  },
88467
- "fieldName": "name",
88712
+ "default": "''",
88713
+ "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.",
88714
+ "fieldName": "iconName",
88468
88715
  "inheritedFrom": {
88469
- "name": "SbbFormAssociatedMixin",
88470
- "module": "core/mixins/form-associated-mixin.js"
88471
- }
88472
- }
88473
- ]
88474
- },
88475
- {
88476
- "kind": "mixin",
88477
- "description": "",
88478
- "name": "SbbFileSelectorCommonElementMixin",
88479
- "members": [
88480
- {
88481
- "kind": "field",
88482
- "name": "events",
88483
- "privacy": "public",
88484
- "static": true,
88485
- "readonly": true,
88486
- "default": "{ filechanged: 'filechanged', }",
88487
- "type": {
88488
- "text": "{\n filechanged: 'filechanged',\n }"
88716
+ "name": "SbbIconNameMixin",
88717
+ "module": "icon/icon-name-mixin.js"
88489
88718
  }
88490
88719
  },
88491
88720
  {
88492
- "kind": "field",
88493
- "name": "size",
88721
+ "name": "value",
88494
88722
  "type": {
88495
- "text": "'s' | 'm'"
88723
+ "text": "string"
88496
88724
  },
88497
- "privacy": "public",
88498
- "description": "Size variant, either s or m.",
88499
- "default": "'m' / 's' (lean)",
88500
- "attribute": "size",
88501
- "reflects": true
88725
+ "default": "''",
88726
+ "description": "Value of the form element.",
88727
+ "fieldName": "value",
88728
+ "inheritedFrom": {
88729
+ "name": "SbbButtonBaseElement",
88730
+ "module": "core/base-elements/button-base-element.js"
88731
+ }
88502
88732
  },
88503
88733
  {
88504
- "kind": "field",
88505
- "name": "multiple",
88734
+ "name": "type",
88735
+ "description": "The type attribute to use for the button.",
88736
+ "default": "'button'",
88506
88737
  "type": {
88507
- "text": "boolean"
88738
+ "text": "SbbButtonType"
88508
88739
  },
88509
- "privacy": "public",
88510
- "default": "false",
88511
- "description": "Whether more than one file can be selected.",
88512
- "attribute": "multiple"
88740
+ "fieldName": "type",
88741
+ "inheritedFrom": {
88742
+ "name": "SbbButtonBaseElement",
88743
+ "module": "core/base-elements/button-base-element.js"
88744
+ }
88513
88745
  },
88514
88746
  {
88515
- "kind": "field",
88516
- "name": "multipleMode",
88747
+ "name": "form",
88748
+ "description": "The `<form>` element to associate the button with.",
88517
88749
  "type": {
88518
- "text": "'default' | 'persistent'"
88750
+ "text": "HTMLFormElement | null"
88519
88751
  },
88520
- "privacy": "public",
88521
- "default": "'default'",
88522
- "description": "Whether the newly added files should override the previously added ones.",
88523
- "attribute": "multiple-mode"
88752
+ "fieldName": "form",
88753
+ "inheritedFrom": {
88754
+ "name": "SbbButtonBaseElement",
88755
+ "module": "core/base-elements/button-base-element.js"
88756
+ }
88524
88757
  },
88525
88758
  {
88526
- "kind": "field",
88527
- "name": "accept",
88759
+ "name": "name",
88760
+ "description": "Name of the form element. Will be read from name attribute.",
88528
88761
  "type": {
88529
88762
  "text": "string"
88530
88763
  },
88531
- "privacy": "public",
88532
- "default": "''",
88533
- "description": "A comma-separated list of allowed unique file type specifiers.",
88534
- "attribute": "accept"
88535
- },
88764
+ "fieldName": "name",
88765
+ "inheritedFrom": {
88766
+ "name": "SbbFormAssociatedMixin",
88767
+ "module": "core/mixins/form-associated-mixin.js"
88768
+ }
88769
+ }
88770
+ ]
88771
+ }
88772
+ ],
88773
+ "exports": [
88774
+ {
88775
+ "kind": "js",
88776
+ "name": "SbbExpansionPanelHeaderElement",
88777
+ "declaration": {
88778
+ "name": "SbbExpansionPanelHeaderElement",
88779
+ "module": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js"
88780
+ }
88781
+ }
88782
+ ]
88783
+ },
88784
+ {
88785
+ "kind": "javascript-module",
88786
+ "path": "file-selector/common/file-selector-common.js",
88787
+ "declarations": [
88788
+ {
88789
+ "kind": "variable",
88790
+ "name": "fileSelectorCommonStyle"
88791
+ },
88792
+ {
88793
+ "kind": "class",
88794
+ "description": "",
88795
+ "name": "SbbFileSelectorCommonElementMixinType",
88796
+ "members": [
88536
88797
  {
88537
88798
  "kind": "field",
88538
- "name": "accessibilityLabel",
88799
+ "name": "size",
88539
88800
  "type": {
88540
- "text": "string"
88801
+ "text": "'s' | 'm'"
88541
88802
  },
88542
- "privacy": "public",
88543
- "default": "''",
88544
- "description": "This will be forwarded as aria-label to the native input element.",
88545
- "attribute": "accessibility-label"
88803
+ "privacy": "public"
88546
88804
  },
88547
88805
  {
88548
88806
  "kind": "field",
88549
- "name": "value",
88807
+ "name": "multiple",
88550
88808
  "type": {
88551
- "text": "string | null"
88809
+ "text": "boolean"
88552
88810
  },
88553
- "privacy": "public",
88554
- "description": "The path of the first selected file. Empty string ('') if no file is selected",
88555
- "inheritedFrom": {
88556
- "name": "SbbFormAssociatedMixin",
88557
- "module": "core/mixins/form-associated-mixin.js"
88558
- }
88559
- },
88560
- {
88561
- "kind": "field",
88562
- "name": "files",
88563
- "privacy": "public",
88564
- "description": "The list of selected files.",
88565
- "type": {
88566
- "text": "Readonly<File>[]"
88567
- }
88811
+ "privacy": "public"
88568
88812
  },
88569
88813
  {
88570
88814
  "kind": "field",
88571
- "name": "_files",
88815
+ "name": "multipleMode",
88572
88816
  "type": {
88573
- "text": "Readonly<File>[]"
88817
+ "text": "'default' | 'persistent'"
88574
88818
  },
88575
- "privacy": "private",
88576
- "default": "[]"
88819
+ "privacy": "public"
88577
88820
  },
88578
88821
  {
88579
88822
  "kind": "field",
88580
- "name": "type",
88823
+ "name": "accept",
88581
88824
  "type": {
88582
88825
  "text": "string"
88583
88826
  },
88584
- "privacy": "public",
88585
- "description": "Form type of element.",
88586
- "default": "'file'",
88587
- "readonly": true
88827
+ "privacy": "public"
88588
88828
  },
88589
88829
  {
88590
88830
  "kind": "field",
88591
- "name": "_hiddenInput",
88831
+ "name": "accessibilityLabel",
88592
88832
  "type": {
88593
- "text": "HTMLInputElement"
88833
+ "text": "string"
88594
88834
  },
88595
- "privacy": "private"
88835
+ "privacy": "public"
88596
88836
  },
88597
88837
  {
88598
88838
  "kind": "field",
88599
- "name": "_suffixes",
88839
+ "name": "files",
88600
88840
  "type": {
88601
- "text": "string[]"
88841
+ "text": "Readonly<File>[]"
88602
88842
  },
88603
- "privacy": "private",
88604
- "default": "['B', 'kB', 'MB', 'GB', 'TB']"
88843
+ "privacy": "public"
88605
88844
  },
88606
88845
  {
88607
88846
  "kind": "field",
88608
- "name": "_liveRegion",
88847
+ "name": "value",
88609
88848
  "type": {
88610
- "text": "HTMLParagraphElement"
88849
+ "text": "string | null"
88611
88850
  },
88612
- "privacy": "private"
88851
+ "privacy": "public",
88852
+ "inheritedFrom": {
88853
+ "name": "SbbFormAssociatedMixin",
88854
+ "module": "core/mixins/form-associated-mixin.js"
88855
+ }
88613
88856
  },
88614
88857
  {
88615
88858
  "kind": "field",
@@ -88622,25 +88865,10 @@
88622
88865
  {
88623
88866
  "kind": "field",
88624
88867
  "name": "language",
88625
- "privacy": "protected",
88626
- "default": "new SbbLanguageController(this)"
88627
- },
88628
- {
88629
- "kind": "field",
88630
- "name": "_counter",
88631
- "type": {
88632
- "text": "number"
88633
- },
88634
- "privacy": "private",
88635
- "default": "0"
88636
- },
88637
- {
88638
- "kind": "field",
88639
- "name": "_dragTarget",
88640
88868
  "type": {
88641
- "text": "HTMLElement | undefined"
88869
+ "text": "SbbLanguageController"
88642
88870
  },
88643
- "privacy": "private"
88871
+ "privacy": "protected"
88644
88872
  },
88645
88873
  {
88646
88874
  "kind": "method",
@@ -88660,118 +88888,6 @@
88660
88888
  }
88661
88889
  ]
88662
88890
  },
88663
- {
88664
- "kind": "method",
88665
- "name": "formResetCallback",
88666
- "privacy": "public",
88667
- "return": {
88668
- "type": {
88669
- "text": "void"
88670
- }
88671
- }
88672
- },
88673
- {
88674
- "kind": "method",
88675
- "name": "formStateRestoreCallback",
88676
- "privacy": "public",
88677
- "return": {
88678
- "type": {
88679
- "text": "void"
88680
- }
88681
- },
88682
- "parameters": [
88683
- {
88684
- "name": "state",
88685
- "type": {
88686
- "text": "FormRestoreState | null"
88687
- }
88688
- },
88689
- {
88690
- "name": "_reason",
88691
- "optional": true,
88692
- "type": {
88693
- "text": "FormRestoreReason"
88694
- }
88695
- }
88696
- ]
88697
- },
88698
- {
88699
- "kind": "method",
88700
- "name": "updateFormValue",
88701
- "privacy": "protected",
88702
- "return": {
88703
- "type": {
88704
- "text": "void"
88705
- }
88706
- },
88707
- "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",
88708
- "inheritedFrom": {
88709
- "name": "SbbFormAssociatedMixin",
88710
- "module": "core/mixins/form-associated-mixin.js"
88711
- }
88712
- },
88713
- {
88714
- "kind": "method",
88715
- "name": "_checkFileEquality",
88716
- "privacy": "private",
88717
- "return": {
88718
- "type": {
88719
- "text": "boolean"
88720
- }
88721
- },
88722
- "parameters": [
88723
- {
88724
- "name": "file1",
88725
- "type": {
88726
- "text": "Readonly<File>"
88727
- }
88728
- },
88729
- {
88730
- "name": "file2",
88731
- "type": {
88732
- "text": "Readonly<File>"
88733
- }
88734
- }
88735
- ]
88736
- },
88737
- {
88738
- "kind": "method",
88739
- "name": "_onFocus",
88740
- "privacy": "private",
88741
- "return": {
88742
- "type": {
88743
- "text": "void"
88744
- }
88745
- }
88746
- },
88747
- {
88748
- "kind": "method",
88749
- "name": "_onBlur",
88750
- "privacy": "private",
88751
- "return": {
88752
- "type": {
88753
- "text": "void"
88754
- }
88755
- }
88756
- },
88757
- {
88758
- "kind": "method",
88759
- "name": "_readFiles",
88760
- "privacy": "private",
88761
- "return": {
88762
- "type": {
88763
- "text": "void"
88764
- }
88765
- },
88766
- "parameters": [
88767
- {
88768
- "name": "event",
88769
- "type": {
88770
- "text": "Event"
88771
- }
88772
- }
88773
- ]
88774
- },
88775
88891
  {
88776
88892
  "kind": "method",
88777
88893
  "name": "createFileList",
@@ -88802,55 +88918,8 @@
88802
88918
  },
88803
88919
  {
88804
88920
  "kind": "method",
88805
- "name": "_removeFile",
88806
- "privacy": "private",
88807
- "return": {
88808
- "type": {
88809
- "text": "void"
88810
- }
88811
- },
88812
- "parameters": [
88813
- {
88814
- "name": "file",
88815
- "type": {
88816
- "text": "Readonly<File>"
88817
- }
88818
- }
88819
- ]
88820
- },
88821
- {
88822
- "kind": "method",
88823
- "name": "_dispatchFileChangedEvent",
88824
- "privacy": "private",
88825
- "return": {
88826
- "type": {
88827
- "text": "void"
88828
- }
88829
- }
88830
- },
88831
- {
88832
- "kind": "method",
88833
- "name": "_formatFileSize",
88834
- "privacy": "private",
88835
- "return": {
88836
- "type": {
88837
- "text": "string"
88838
- }
88839
- },
88840
- "parameters": [
88841
- {
88842
- "name": "size",
88843
- "type": {
88844
- "text": "number"
88845
- }
88846
- }
88847
- ],
88848
- "description": "Calculates the correct unit for the file's size."
88849
- },
88850
- {
88851
- "kind": "method",
88852
- "name": "_updateA11yLiveRegion",
88853
- "privacy": "private",
88921
+ "name": "formResetCallback",
88922
+ "privacy": "public",
88854
88923
  "return": {
88855
88924
  "type": {
88856
88925
  "text": "void"
@@ -88859,90 +88928,8 @@
88859
88928
  },
88860
88929
  {
88861
88930
  "kind": "method",
88862
- "name": "_renderFileList",
88863
- "privacy": "private",
88864
- "return": {
88865
- "type": {
88866
- "text": "TemplateResult"
88867
- }
88868
- }
88869
- },
88870
- {
88871
- "kind": "method",
88872
- "name": "_onDragEnter",
88873
- "privacy": "private",
88874
- "return": {
88875
- "type": {
88876
- "text": "void"
88877
- }
88878
- },
88879
- "parameters": [
88880
- {
88881
- "name": "event",
88882
- "type": {
88883
- "text": "DragEvent"
88884
- }
88885
- }
88886
- ]
88887
- },
88888
- {
88889
- "kind": "method",
88890
- "name": "_onDragLeave",
88891
- "privacy": "private",
88892
- "return": {
88893
- "type": {
88894
- "text": "void"
88895
- }
88896
- },
88897
- "parameters": [
88898
- {
88899
- "name": "event",
88900
- "type": {
88901
- "text": "DragEvent"
88902
- }
88903
- }
88904
- ]
88905
- },
88906
- {
88907
- "kind": "method",
88908
- "name": "_onFileDrop",
88909
- "privacy": "private",
88910
- "return": {
88911
- "type": {
88912
- "text": "void"
88913
- }
88914
- },
88915
- "parameters": [
88916
- {
88917
- "name": "event",
88918
- "type": {
88919
- "text": "DragEvent"
88920
- }
88921
- }
88922
- ]
88923
- },
88924
- {
88925
- "kind": "method",
88926
- "name": "_blockEvent",
88927
- "privacy": "private",
88928
- "return": {
88929
- "type": {
88930
- "text": "void"
88931
- }
88932
- },
88933
- "parameters": [
88934
- {
88935
- "name": "event",
88936
- "type": {
88937
- "text": "DragEvent"
88938
- }
88939
- }
88940
- ]
88941
- },
88942
- {
88943
- "kind": "method",
88944
- "name": "_setDragState",
88945
- "privacy": "private",
88931
+ "name": "formStateRestoreCallback",
88932
+ "privacy": "public",
88946
88933
  "return": {
88947
88934
  "type": {
88948
88935
  "text": "void"
@@ -88950,17 +88937,15 @@
88950
88937
  },
88951
88938
  "parameters": [
88952
88939
  {
88953
- "name": "dragTarget",
88954
- "default": "undefined",
88940
+ "name": "state",
88955
88941
  "type": {
88956
- "text": "HTMLElement | undefined"
88942
+ "text": "FormRestoreState | null"
88957
88943
  }
88958
88944
  },
88959
88945
  {
88960
- "name": "isDragEnter",
88961
- "default": "false",
88946
+ "name": "reason",
88962
88947
  "type": {
88963
- "text": "boolean"
88948
+ "text": "FormRestoreReason"
88964
88949
  }
88965
88950
  }
88966
88951
  ]
@@ -89184,6 +89169,21 @@
89184
89169
  "module": "core/mixins/form-associated-mixin.js"
89185
89170
  }
89186
89171
  },
89172
+ {
89173
+ "kind": "method",
89174
+ "name": "updateFormValue",
89175
+ "privacy": "protected",
89176
+ "return": {
89177
+ "type": {
89178
+ "text": "void"
89179
+ }
89180
+ },
89181
+ "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",
89182
+ "inheritedFrom": {
89183
+ "name": "SbbFormAssociatedMixin",
89184
+ "module": "core/mixins/form-associated-mixin.js"
89185
+ }
89186
+ },
89187
89187
  {
89188
89188
  "kind": "method",
89189
89189
  "name": "formState",
@@ -89308,77 +89308,142 @@
89308
89308
  "name": "SbbFormAssociatedMixin",
89309
89309
  "module": "core/mixins/form-associated-mixin.js"
89310
89310
  }
89311
- }
89312
- ],
89313
- "events": [
89311
+ },
89314
89312
  {
89315
- "name": "input",
89313
+ "kind": "field",
89314
+ "name": "_hydrationRequired",
89316
89315
  "type": {
89317
- "text": "InputEvent"
89316
+ "text": "boolean"
89318
89317
  },
89319
- "description": "The input event fires when the value has been changed as a direct result of a user action."
89318
+ "privacy": "private",
89319
+ "default": "!!this.shadowRoot",
89320
+ "inheritedFrom": {
89321
+ "name": "SbbElement",
89322
+ "module": "core/base-elements/element.js"
89323
+ }
89320
89324
  },
89321
89325
  {
89322
- "name": "change",
89326
+ "kind": "field",
89327
+ "name": "_hydrationComplete",
89328
+ "privacy": "private",
89329
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
89330
+ "inheritedFrom": {
89331
+ "name": "SbbElement",
89332
+ "module": "core/base-elements/element.js"
89333
+ }
89334
+ },
89335
+ {
89336
+ "kind": "field",
89337
+ "name": "_resolveHydration",
89323
89338
  "type": {
89324
- "text": "Event"
89339
+ "text": "(hydrationRequired: boolean) => void"
89325
89340
  },
89326
- "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."
89341
+ "privacy": "private",
89342
+ "inheritedFrom": {
89343
+ "name": "SbbElement",
89344
+ "module": "core/base-elements/element.js"
89345
+ }
89327
89346
  },
89328
89347
  {
89329
- "name": "filechanged",
89348
+ "kind": "field",
89349
+ "name": "hydrationRequired",
89330
89350
  "type": {
89331
- "text": "CustomEvent<Readonly<File>[]>"
89351
+ "text": "boolean"
89332
89352
  },
89333
- "description": "An event which is emitted each time the file list changes."
89334
- }
89335
- ],
89336
- "attributes": [
89337
- {
89338
- "name": "size",
89339
- "type": {
89340
- "text": "'s' | 'm'"
89353
+ "privacy": "protected",
89354
+ "description": "Returns whether hydration is required and not completed.",
89355
+ "readonly": true,
89356
+ "inheritedFrom": {
89357
+ "name": "SbbElement",
89358
+ "module": "core/base-elements/element.js"
89341
89359
  },
89342
- "description": "Size variant, either s or m.",
89343
- "default": "'m' / 's' (lean)",
89344
- "fieldName": "size"
89360
+ "default": "!!this.shadowRoot"
89345
89361
  },
89346
89362
  {
89347
- "name": "multiple",
89348
- "type": {
89349
- "text": "boolean"
89363
+ "kind": "method",
89364
+ "name": "toggleState",
89365
+ "privacy": "protected",
89366
+ "return": {
89367
+ "type": {
89368
+ "text": "void"
89369
+ }
89350
89370
  },
89351
- "default": "false",
89352
- "description": "Whether more than one file can be selected.",
89353
- "fieldName": "multiple"
89371
+ "parameters": [
89372
+ {
89373
+ "name": "value",
89374
+ "type": {
89375
+ "text": "string"
89376
+ }
89377
+ },
89378
+ {
89379
+ "name": "force",
89380
+ "optional": true,
89381
+ "type": {
89382
+ "text": "boolean"
89383
+ }
89384
+ }
89385
+ ],
89386
+ "inheritedFrom": {
89387
+ "name": "SbbElement",
89388
+ "module": "core/base-elements/element.js"
89389
+ }
89354
89390
  },
89355
89391
  {
89356
- "name": "multiple-mode",
89392
+ "kind": "field",
89393
+ "name": "['_$sbbElement$']",
89357
89394
  "type": {
89358
- "text": "'default' | 'persistent'"
89395
+ "text": "boolean"
89359
89396
  },
89360
- "default": "'default'",
89361
- "description": "Whether the newly added files should override the previously added ones.",
89362
- "fieldName": "multipleMode"
89397
+ "privacy": "public",
89398
+ "static": true,
89399
+ "default": "true",
89400
+ "inheritedFrom": {
89401
+ "name": "SbbElement",
89402
+ "module": "core/base-elements/element.js"
89403
+ }
89363
89404
  },
89364
89405
  {
89365
- "name": "accept",
89406
+ "kind": "field",
89407
+ "name": "elementName",
89366
89408
  "type": {
89367
89409
  "text": "string"
89368
89410
  },
89369
- "default": "''",
89370
- "description": "A comma-separated list of allowed unique file type specifiers.",
89371
- "fieldName": "accept"
89411
+ "privacy": "public",
89412
+ "static": true,
89413
+ "readonly": true,
89414
+ "inheritedFrom": {
89415
+ "name": "SbbElement",
89416
+ "module": "core/base-elements/element.js"
89417
+ }
89372
89418
  },
89373
89419
  {
89374
- "name": "accessibility-label",
89420
+ "kind": "field",
89421
+ "name": "_controllers",
89375
89422
  "type": {
89376
- "text": "string"
89423
+ "text": "Set<SbbReactiveController> | undefined"
89377
89424
  },
89378
- "default": "''",
89379
- "description": "This will be forwarded as aria-label to the native input element.",
89380
- "fieldName": "accessibilityLabel"
89425
+ "privacy": "private",
89426
+ "inheritedFrom": {
89427
+ "name": "SbbElement",
89428
+ "module": "core/base-elements/element.js"
89429
+ }
89430
+ }
89431
+ ],
89432
+ "mixins": [
89433
+ {
89434
+ "name": "SbbDisabledMixin",
89435
+ "module": "core/mixins.js"
89381
89436
  },
89437
+ {
89438
+ "name": "SbbFormAssociatedMixin",
89439
+ "module": "core/mixins.js"
89440
+ }
89441
+ ],
89442
+ "superclass": {
89443
+ "name": "SbbElement",
89444
+ "module": "core/base-elements.js"
89445
+ },
89446
+ "attributes": [
89382
89447
  {
89383
89448
  "name": "disabled",
89384
89449
  "description": "Whether the component is disabled.",
@@ -89404,125 +89469,200 @@
89404
89469
  "module": "core/mixins/form-associated-mixin.js"
89405
89470
  }
89406
89471
  }
89407
- ],
89408
- "mixins": [
89472
+ ]
89473
+ },
89474
+ {
89475
+ "kind": "mixin",
89476
+ "description": "",
89477
+ "name": "SbbFileSelectorCommonElementMixin",
89478
+ "members": [
89409
89479
  {
89410
- "name": "SbbDisabledMixin",
89411
- "module": "core/mixins.js"
89480
+ "kind": "field",
89481
+ "name": "events",
89482
+ "privacy": "public",
89483
+ "static": true,
89484
+ "readonly": true,
89485
+ "default": "{ filechanged: 'filechanged', }",
89486
+ "type": {
89487
+ "text": "{\n filechanged: 'filechanged',\n }"
89488
+ }
89412
89489
  },
89413
89490
  {
89414
- "name": "SbbFormAssociatedMixin",
89415
- "module": "core/mixins.js"
89416
- }
89417
- ],
89418
- "parameters": [
89491
+ "kind": "field",
89492
+ "name": "size",
89493
+ "type": {
89494
+ "text": "'s' | 'm'"
89495
+ },
89496
+ "privacy": "public",
89497
+ "description": "Size variant, either s or m.",
89498
+ "default": "'m' / 's' (lean)",
89499
+ "attribute": "size",
89500
+ "reflects": true
89501
+ },
89419
89502
  {
89420
- "name": "superclass",
89503
+ "kind": "field",
89504
+ "name": "multiple",
89421
89505
  "type": {
89422
- "text": "T"
89423
- }
89424
- }
89425
- ]
89426
- }
89427
- ],
89428
- "exports": [
89429
- {
89430
- "kind": "js",
89431
- "name": "fileSelectorCommonStyle",
89432
- "declaration": {
89433
- "name": "fileSelectorCommonStyle",
89434
- "module": "file-selector/common/file-selector-common.js"
89435
- }
89436
- },
89437
- {
89438
- "kind": "js",
89439
- "name": "SbbFileSelectorCommonElementMixinType",
89440
- "declaration": {
89441
- "name": "SbbFileSelectorCommonElementMixinType",
89442
- "module": "file-selector/common/file-selector-common.js"
89443
- }
89444
- },
89445
- {
89446
- "kind": "js",
89447
- "name": "SbbFileSelectorCommonElementMixin",
89448
- "declaration": {
89449
- "name": "SbbFileSelectorCommonElementMixin",
89450
- "module": "file-selector/common/file-selector-common.js"
89451
- }
89452
- }
89453
- ]
89454
- },
89455
- {
89456
- "kind": "javascript-module",
89457
- "path": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js",
89458
- "declarations": [
89459
- {
89460
- "kind": "class",
89461
- "description": "It acts as a native `summary` tag for the `sbb-expansion-panel` component.",
89462
- "name": "SbbExpansionPanelHeaderElement",
89463
- "slots": [
89506
+ "text": "boolean"
89507
+ },
89508
+ "privacy": "public",
89509
+ "default": "false",
89510
+ "description": "Whether more than one file can be selected.",
89511
+ "attribute": "multiple"
89512
+ },
89464
89513
  {
89465
- "description": "Use the unnamed slot to add content to the `sbb-expansion-panel-header`.",
89466
- "name": ""
89514
+ "kind": "field",
89515
+ "name": "multipleMode",
89516
+ "type": {
89517
+ "text": "'default' | 'persistent'"
89518
+ },
89519
+ "privacy": "public",
89520
+ "default": "'default'",
89521
+ "description": "Whether the newly added files should override the previously added ones.",
89522
+ "attribute": "multiple-mode"
89467
89523
  },
89468
89524
  {
89469
- "description": "Slot used to render the `sbb-expansion-panel-header` icon.",
89470
- "name": "icon"
89471
- }
89472
- ],
89473
- "members": [
89525
+ "kind": "field",
89526
+ "name": "accept",
89527
+ "type": {
89528
+ "text": "string"
89529
+ },
89530
+ "privacy": "public",
89531
+ "default": "''",
89532
+ "description": "A comma-separated list of allowed unique file type specifiers.",
89533
+ "attribute": "accept"
89534
+ },
89474
89535
  {
89475
89536
  "kind": "field",
89476
- "name": "elementName",
89537
+ "name": "accessibilityLabel",
89477
89538
  "type": {
89478
89539
  "text": "string"
89479
89540
  },
89480
89541
  "privacy": "public",
89481
- "static": true,
89482
- "readonly": true,
89483
- "inheritedFrom": {
89484
- "name": "SbbElement",
89485
- "module": "core/base-elements/element.js"
89542
+ "default": "''",
89543
+ "description": "This will be forwarded as aria-label to the native input element.",
89544
+ "attribute": "accessibility-label"
89545
+ },
89546
+ {
89547
+ "kind": "field",
89548
+ "name": "value",
89549
+ "type": {
89550
+ "text": "string | null"
89486
89551
  },
89487
- "default": "'sbb-expansion-panel-header'"
89552
+ "privacy": "public",
89553
+ "description": "The path of the first selected file. Empty string ('') if no file is selected",
89554
+ "inheritedFrom": {
89555
+ "name": "SbbFormAssociatedMixin",
89556
+ "module": "core/mixins/form-associated-mixin.js"
89557
+ }
89488
89558
  },
89489
89559
  {
89490
89560
  "kind": "field",
89491
- "name": "events",
89561
+ "name": "files",
89492
89562
  "privacy": "public",
89493
- "static": true,
89494
- "readonly": true,
89495
- "default": "{ toggleexpanded: 'toggleexpanded', }",
89563
+ "description": "The list of selected files.",
89496
89564
  "type": {
89497
- "text": "{\n toggleexpanded: 'toggleexpanded',\n }"
89565
+ "text": "Readonly<File>[]"
89498
89566
  }
89499
89567
  },
89500
89568
  {
89501
89569
  "kind": "field",
89502
- "name": "_mediaMatcher",
89570
+ "name": "_files",
89571
+ "type": {
89572
+ "text": "Readonly<File>[]"
89573
+ },
89503
89574
  "privacy": "private",
89504
- "default": "new SbbMediaMatcherController(this, { [SbbMediaQueryHover]: (m) => (this._isHover = m), })"
89575
+ "default": "[]"
89505
89576
  },
89506
89577
  {
89507
89578
  "kind": "field",
89508
- "name": "_isHover",
89579
+ "name": "type",
89509
89580
  "type": {
89510
- "text": "boolean"
89581
+ "text": "string"
89582
+ },
89583
+ "privacy": "public",
89584
+ "description": "Form type of element.",
89585
+ "default": "'file'",
89586
+ "readonly": true
89587
+ },
89588
+ {
89589
+ "kind": "field",
89590
+ "name": "_hiddenInput",
89591
+ "type": {
89592
+ "text": "HTMLInputElement"
89511
89593
  },
89512
89594
  "privacy": "private"
89513
89595
  },
89514
89596
  {
89515
89597
  "kind": "field",
89516
- "name": "_previousSize",
89598
+ "name": "_suffixes",
89517
89599
  "type": {
89518
- "text": "string | undefined"
89600
+ "text": "string[]"
89601
+ },
89602
+ "privacy": "private",
89603
+ "default": "['B', 'kB', 'MB', 'GB', 'TB']"
89604
+ },
89605
+ {
89606
+ "kind": "field",
89607
+ "name": "_liveRegion",
89608
+ "type": {
89609
+ "text": "HTMLParagraphElement"
89519
89610
  },
89520
89611
  "privacy": "private"
89521
89612
  },
89522
89613
  {
89523
- "kind": "method",
89524
- "name": "_emitExpandedEvent",
89614
+ "kind": "field",
89615
+ "name": "loadButton",
89616
+ "type": {
89617
+ "text": "SbbSecondaryButtonStaticElement"
89618
+ },
89619
+ "privacy": "protected"
89620
+ },
89621
+ {
89622
+ "kind": "field",
89623
+ "name": "language",
89624
+ "privacy": "protected",
89625
+ "default": "new SbbLanguageController(this)"
89626
+ },
89627
+ {
89628
+ "kind": "field",
89629
+ "name": "_counter",
89630
+ "type": {
89631
+ "text": "number"
89632
+ },
89525
89633
  "privacy": "private",
89634
+ "default": "0"
89635
+ },
89636
+ {
89637
+ "kind": "field",
89638
+ "name": "_dragTarget",
89639
+ "type": {
89640
+ "text": "HTMLElement | undefined"
89641
+ },
89642
+ "privacy": "private"
89643
+ },
89644
+ {
89645
+ "kind": "method",
89646
+ "name": "renderTemplate",
89647
+ "privacy": "protected",
89648
+ "return": {
89649
+ "type": {
89650
+ "text": "TemplateResult"
89651
+ }
89652
+ },
89653
+ "parameters": [
89654
+ {
89655
+ "name": "input",
89656
+ "type": {
89657
+ "text": "TemplateResult"
89658
+ }
89659
+ }
89660
+ ]
89661
+ },
89662
+ {
89663
+ "kind": "method",
89664
+ "name": "formResetCallback",
89665
+ "privacy": "public",
89526
89666
  "return": {
89527
89667
  "type": {
89528
89668
  "text": "void"
@@ -89531,8 +89671,8 @@
89531
89671
  },
89532
89672
  {
89533
89673
  "kind": "method",
89534
- "name": "_onMouseMovement",
89535
- "privacy": "private",
89674
+ "name": "formStateRestoreCallback",
89675
+ "privacy": "public",
89536
89676
  "return": {
89537
89677
  "type": {
89538
89678
  "text": "void"
@@ -89540,285 +89680,357 @@
89540
89680
  },
89541
89681
  "parameters": [
89542
89682
  {
89543
- "name": "toggleDataAttribute",
89683
+ "name": "state",
89544
89684
  "type": {
89545
- "text": "boolean"
89685
+ "text": "FormRestoreState | null"
89686
+ }
89687
+ },
89688
+ {
89689
+ "name": "_reason",
89690
+ "optional": true,
89691
+ "type": {
89692
+ "text": "FormRestoreReason"
89546
89693
  }
89547
89694
  }
89548
89695
  ]
89549
89696
  },
89550
89697
  {
89551
89698
  "kind": "method",
89552
- "name": "_setIconState",
89553
- "privacy": "private",
89699
+ "name": "updateFormValue",
89700
+ "privacy": "protected",
89554
89701
  "return": {
89555
89702
  "type": {
89556
89703
  "text": "void"
89557
89704
  }
89558
89705
  },
89559
- "description": "The :state(icon) is used by the 'sbb-expansion-panel'.\nIt needs to be set before the"
89706
+ "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",
89707
+ "inheritedFrom": {
89708
+ "name": "SbbFormAssociatedMixin",
89709
+ "module": "core/mixins/form-associated-mixin.js"
89710
+ }
89560
89711
  },
89561
89712
  {
89562
89713
  "kind": "method",
89563
- "name": "renderTemplate",
89564
- "privacy": "protected",
89714
+ "name": "_checkFileEquality",
89715
+ "privacy": "private",
89565
89716
  "return": {
89566
89717
  "type": {
89567
- "text": "TemplateResult"
89718
+ "text": "boolean"
89568
89719
  }
89569
89720
  },
89570
- "description": "Override this method to render the component template.",
89571
- "inheritedFrom": {
89572
- "name": "SbbActionBaseElement",
89573
- "module": "core/base-elements/action-base-element.js"
89574
- }
89721
+ "parameters": [
89722
+ {
89723
+ "name": "file1",
89724
+ "type": {
89725
+ "text": "Readonly<File>"
89726
+ }
89727
+ },
89728
+ {
89729
+ "name": "file2",
89730
+ "type": {
89731
+ "text": "Readonly<File>"
89732
+ }
89733
+ }
89734
+ ]
89575
89735
  },
89576
89736
  {
89577
- "kind": "field",
89578
- "name": "disabledInteractive",
89579
- "type": {
89580
- "text": "boolean"
89581
- },
89582
- "privacy": "public",
89583
- "default": "false",
89584
- "description": "Whether the button should be aria-disabled but stay interactive.",
89585
- "attribute": "disabled-interactive",
89586
- "reflects": true,
89587
- "inheritedFrom": {
89588
- "name": "SbbDisabledInteractiveMixin",
89589
- "module": "core/mixins/disabled-mixin.js"
89737
+ "kind": "method",
89738
+ "name": "_onFocus",
89739
+ "privacy": "private",
89740
+ "return": {
89741
+ "type": {
89742
+ "text": "void"
89743
+ }
89590
89744
  }
89591
89745
  },
89592
89746
  {
89593
- "kind": "field",
89594
- "name": "disabled",
89595
- "privacy": "public",
89596
- "description": "Whether the component is disabled.",
89597
- "default": "false",
89598
- "type": {
89599
- "text": "boolean"
89600
- },
89601
- "attribute": "disabled",
89602
- "reflects": true,
89603
- "inheritedFrom": {
89604
- "name": "SbbDisabledMixin",
89605
- "module": "core/mixins/disabled-mixin.js"
89747
+ "kind": "method",
89748
+ "name": "_onBlur",
89749
+ "privacy": "private",
89750
+ "return": {
89751
+ "type": {
89752
+ "text": "void"
89753
+ }
89606
89754
  }
89607
89755
  },
89608
89756
  {
89609
- "kind": "field",
89610
- "name": "#disabled",
89757
+ "kind": "method",
89758
+ "name": "_readFiles",
89611
89759
  "privacy": "private",
89612
- "type": {
89613
- "text": "boolean"
89760
+ "return": {
89761
+ "type": {
89762
+ "text": "void"
89763
+ }
89614
89764
  },
89615
- "default": "false",
89616
- "inheritedFrom": {
89617
- "name": "SbbDisabledMixin",
89618
- "module": "core/mixins/disabled-mixin.js"
89619
- }
89765
+ "parameters": [
89766
+ {
89767
+ "name": "event",
89768
+ "type": {
89769
+ "text": "Event"
89770
+ }
89771
+ }
89772
+ ]
89620
89773
  },
89621
89774
  {
89622
89775
  "kind": "method",
89623
- "name": "isDisabledExternally",
89776
+ "name": "createFileList",
89624
89777
  "privacy": "protected",
89625
89778
  "return": {
89626
89779
  "type": {
89627
- "text": "boolean"
89780
+ "text": "void"
89628
89781
  }
89629
89782
  },
89630
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
89631
- "inheritedFrom": {
89632
- "name": "SbbDisabledMixin",
89633
- "module": "core/mixins/disabled-mixin.js"
89783
+ "parameters": [
89784
+ {
89785
+ "name": "files",
89786
+ "type": {
89787
+ "text": "FileList"
89788
+ }
89789
+ }
89790
+ ]
89791
+ },
89792
+ {
89793
+ "kind": "method",
89794
+ "name": "getButtonLabel",
89795
+ "privacy": "protected",
89796
+ "return": {
89797
+ "type": {
89798
+ "text": "string"
89799
+ }
89634
89800
  }
89635
89801
  },
89636
89802
  {
89637
- "kind": "field",
89638
- "name": "iconName",
89639
- "type": {
89640
- "text": "string"
89803
+ "kind": "method",
89804
+ "name": "_removeFile",
89805
+ "privacy": "private",
89806
+ "return": {
89807
+ "type": {
89808
+ "text": "void"
89809
+ }
89641
89810
  },
89642
- "privacy": "public",
89643
- "default": "''",
89644
- "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.",
89645
- "attribute": "icon-name",
89646
- "inheritedFrom": {
89647
- "name": "SbbIconNameMixin",
89648
- "module": "icon/icon-name-mixin.js"
89811
+ "parameters": [
89812
+ {
89813
+ "name": "file",
89814
+ "type": {
89815
+ "text": "Readonly<File>"
89816
+ }
89817
+ }
89818
+ ]
89819
+ },
89820
+ {
89821
+ "kind": "method",
89822
+ "name": "_dispatchFileChangedEvent",
89823
+ "privacy": "private",
89824
+ "return": {
89825
+ "type": {
89826
+ "text": "void"
89827
+ }
89649
89828
  }
89650
89829
  },
89651
89830
  {
89652
89831
  "kind": "method",
89653
- "name": "renderIconSlot",
89654
- "privacy": "protected",
89832
+ "name": "_formatFileSize",
89833
+ "privacy": "private",
89655
89834
  "return": {
89656
89835
  "type": {
89657
- "text": "TemplateResult"
89836
+ "text": "string"
89658
89837
  }
89659
89838
  },
89660
89839
  "parameters": [
89661
89840
  {
89662
- "name": "classname",
89663
- "optional": true,
89841
+ "name": "size",
89664
89842
  "type": {
89665
- "text": "string"
89843
+ "text": "number"
89666
89844
  }
89667
89845
  }
89668
89846
  ],
89669
- "inheritedFrom": {
89670
- "name": "SbbIconNameMixin",
89671
- "module": "icon/icon-name-mixin.js"
89847
+ "description": "Calculates the correct unit for the file's size."
89848
+ },
89849
+ {
89850
+ "kind": "method",
89851
+ "name": "_updateA11yLiveRegion",
89852
+ "privacy": "private",
89853
+ "return": {
89854
+ "type": {
89855
+ "text": "void"
89856
+ }
89672
89857
  }
89673
89858
  },
89674
89859
  {
89675
89860
  "kind": "method",
89676
- "name": "renderIconName",
89677
- "privacy": "protected",
89861
+ "name": "_renderFileList",
89862
+ "privacy": "private",
89678
89863
  "return": {
89679
89864
  "type": {
89680
- "text": "string"
89865
+ "text": "TemplateResult"
89866
+ }
89867
+ }
89868
+ },
89869
+ {
89870
+ "kind": "method",
89871
+ "name": "_onDragEnter",
89872
+ "privacy": "private",
89873
+ "return": {
89874
+ "type": {
89875
+ "text": "void"
89876
+ }
89877
+ },
89878
+ "parameters": [
89879
+ {
89880
+ "name": "event",
89881
+ "type": {
89882
+ "text": "DragEvent"
89883
+ }
89884
+ }
89885
+ ]
89886
+ },
89887
+ {
89888
+ "kind": "method",
89889
+ "name": "_onDragLeave",
89890
+ "privacy": "private",
89891
+ "return": {
89892
+ "type": {
89893
+ "text": "void"
89894
+ }
89895
+ },
89896
+ "parameters": [
89897
+ {
89898
+ "name": "event",
89899
+ "type": {
89900
+ "text": "DragEvent"
89901
+ }
89902
+ }
89903
+ ]
89904
+ },
89905
+ {
89906
+ "kind": "method",
89907
+ "name": "_onFileDrop",
89908
+ "privacy": "private",
89909
+ "return": {
89910
+ "type": {
89911
+ "text": "void"
89912
+ }
89913
+ },
89914
+ "parameters": [
89915
+ {
89916
+ "name": "event",
89917
+ "type": {
89918
+ "text": "DragEvent"
89919
+ }
89920
+ }
89921
+ ]
89922
+ },
89923
+ {
89924
+ "kind": "method",
89925
+ "name": "_blockEvent",
89926
+ "privacy": "private",
89927
+ "return": {
89928
+ "type": {
89929
+ "text": "void"
89930
+ }
89931
+ },
89932
+ "parameters": [
89933
+ {
89934
+ "name": "event",
89935
+ "type": {
89936
+ "text": "DragEvent"
89937
+ }
89681
89938
  }
89682
- },
89683
- "inheritedFrom": {
89684
- "name": "SbbIconNameMixin",
89685
- "module": "icon/icon-name-mixin.js"
89686
- }
89939
+ ]
89687
89940
  },
89688
89941
  {
89689
89942
  "kind": "method",
89690
- "name": "_renderIconName",
89943
+ "name": "_setDragState",
89691
89944
  "privacy": "private",
89692
89945
  "return": {
89693
89946
  "type": {
89694
- "text": "string"
89947
+ "text": "void"
89695
89948
  }
89696
89949
  },
89697
- "inheritedFrom": {
89698
- "name": "SbbIconNameMixin",
89699
- "module": "icon/icon-name-mixin.js"
89700
- }
89701
- },
89702
- {
89703
- "kind": "field",
89704
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
89705
- "type": {
89706
- "text": "array"
89707
- },
89708
- "privacy": "private",
89709
- "readonly": true,
89710
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
89711
- "inheritedFrom": {
89712
- "name": "SbbButtonBaseElement",
89713
- "module": "core/base-elements/button-base-element.js"
89714
- }
89715
- },
89716
- {
89717
- "kind": "field",
89718
- "name": "value",
89719
- "type": {
89720
- "text": "string"
89721
- },
89722
- "privacy": "public",
89723
- "inheritedFrom": {
89724
- "name": "SbbButtonBaseElement",
89725
- "module": "core/base-elements/button-base-element.js"
89726
- },
89727
- "default": "''",
89728
- "description": "Value of the form element.",
89729
- "attribute": "value"
89950
+ "parameters": [
89951
+ {
89952
+ "name": "dragTarget",
89953
+ "default": "undefined",
89954
+ "type": {
89955
+ "text": "HTMLElement | undefined"
89956
+ }
89957
+ },
89958
+ {
89959
+ "name": "isDragEnter",
89960
+ "default": "false",
89961
+ "type": {
89962
+ "text": "boolean"
89963
+ }
89964
+ }
89965
+ ]
89730
89966
  },
89731
89967
  {
89732
89968
  "kind": "field",
89733
- "name": "type",
89969
+ "name": "disabled",
89734
89970
  "privacy": "public",
89735
- "description": "The type attribute to use for the button.",
89736
- "default": "'button'",
89971
+ "description": "Whether the component is disabled.",
89972
+ "default": "false",
89737
89973
  "type": {
89738
- "text": "SbbButtonType"
89974
+ "text": "boolean"
89739
89975
  },
89740
- "attribute": "type",
89976
+ "attribute": "disabled",
89977
+ "reflects": true,
89741
89978
  "inheritedFrom": {
89742
- "name": "SbbButtonBaseElement",
89743
- "module": "core/base-elements/button-base-element.js"
89979
+ "name": "SbbDisabledMixin",
89980
+ "module": "core/mixins/disabled-mixin.js"
89744
89981
  }
89745
89982
  },
89746
89983
  {
89747
89984
  "kind": "field",
89748
- "name": "form",
89749
- "type": {
89750
- "text": "HTMLFormElement | null"
89751
- },
89752
- "privacy": "public",
89753
- "description": "The `<form>` element to associate the button with.",
89754
- "inheritedFrom": {
89755
- "name": "SbbButtonBaseElement",
89756
- "module": "core/base-elements/button-base-element.js"
89757
- },
89758
- "attribute": "form"
89759
- },
89760
- {
89761
- "kind": "field",
89762
- "name": "_formId",
89985
+ "name": "#disabled",
89986
+ "privacy": "private",
89763
89987
  "type": {
89764
- "text": "string"
89988
+ "text": "boolean"
89765
89989
  },
89766
- "privacy": "private",
89767
- "default": "''",
89768
- "inheritedFrom": {
89769
- "name": "SbbButtonBaseElement",
89770
- "module": "core/base-elements/button-base-element.js"
89771
- }
89772
- },
89773
- {
89774
- "kind": "field",
89775
- "name": "_handleButtonClick",
89776
- "privacy": "private",
89990
+ "default": "false",
89777
89991
  "inheritedFrom": {
89778
- "name": "SbbButtonBaseElement",
89779
- "module": "core/base-elements/button-base-element.js"
89992
+ "name": "SbbDisabledMixin",
89993
+ "module": "core/mixins/disabled-mixin.js"
89780
89994
  }
89781
89995
  },
89782
89996
  {
89783
89997
  "kind": "method",
89784
- "name": "_requestSubmit",
89785
- "privacy": "private",
89998
+ "name": "isDisabledExternally",
89999
+ "privacy": "protected",
89786
90000
  "return": {
89787
90001
  "type": {
89788
- "text": "void"
90002
+ "text": "boolean"
89789
90003
  }
89790
90004
  },
89791
- "parameters": [
89792
- {
89793
- "name": "form",
89794
- "type": {
89795
- "text": "HTMLFormElement"
89796
- }
89797
- }
89798
- ],
90005
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
89799
90006
  "inheritedFrom": {
89800
- "name": "SbbButtonBaseElement",
89801
- "module": "core/base-elements/button-base-element.js"
90007
+ "name": "SbbDisabledMixin",
90008
+ "module": "core/mixins/disabled-mixin.js"
89802
90009
  }
89803
90010
  },
89804
90011
  {
89805
90012
  "kind": "field",
89806
- "name": "_formKeyDown",
89807
- "privacy": "private",
90013
+ "name": "formAssociated",
90014
+ "type": {
90015
+ "text": "boolean"
90016
+ },
90017
+ "privacy": "public",
90018
+ "static": true,
90019
+ "default": "true",
89808
90020
  "inheritedFrom": {
89809
- "name": "SbbButtonBaseElement",
89810
- "module": "core/base-elements/button-base-element.js"
90021
+ "name": "SbbFormAssociatedMixin",
90022
+ "module": "core/mixins/form-associated-mixin.js"
89811
90023
  }
89812
90024
  },
89813
90025
  {
89814
90026
  "kind": "field",
89815
- "name": "formAssociated",
90027
+ "name": "form",
89816
90028
  "type": {
89817
- "text": "boolean"
90029
+ "text": "HTMLFormElement | null"
89818
90030
  },
89819
90031
  "privacy": "public",
89820
- "static": true,
89821
- "default": "true",
90032
+ "description": "Returns the form owner of this element.",
90033
+ "readonly": true,
89822
90034
  "inheritedFrom": {
89823
90035
  "name": "SbbFormAssociatedMixin",
89824
90036
  "module": "core/mixins/form-associated-mixin.js"
@@ -89971,21 +90183,6 @@
89971
90183
  "module": "core/mixins/form-associated-mixin.js"
89972
90184
  }
89973
90185
  },
89974
- {
89975
- "kind": "method",
89976
- "name": "updateFormValue",
89977
- "privacy": "protected",
89978
- "return": {
89979
- "type": {
89980
- "text": "void"
89981
- }
89982
- },
89983
- "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",
89984
- "inheritedFrom": {
89985
- "name": "SbbFormAssociatedMixin",
89986
- "module": "core/mixins/form-associated-mixin.js"
89987
- }
89988
- },
89989
90186
  {
89990
90187
  "kind": "method",
89991
90188
  "name": "formState",
@@ -90110,256 +90307,76 @@
90110
90307
  "name": "SbbFormAssociatedMixin",
90111
90308
  "module": "core/mixins/form-associated-mixin.js"
90112
90309
  }
90113
- },
90114
- {
90115
- "kind": "field",
90116
- "name": "role",
90117
- "type": {
90118
- "text": "ElementInternals['role']"
90119
- },
90120
- "privacy": "public",
90121
- "static": true,
90122
- "readonly": true,
90123
- "default": "'button'",
90124
- "inheritedFrom": {
90125
- "name": "SbbButtonLikeBaseElement",
90126
- "module": "core/base-elements/button-base-element.js"
90127
- }
90128
- },
90129
- {
90130
- "kind": "field",
90131
- "name": "_preventScrollOnSpaceKeydown",
90132
- "privacy": "private",
90133
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
90134
- "parameters": [
90135
- {
90136
- "description": "The origin event.",
90137
- "name": "event"
90138
- }
90139
- ],
90140
- "inheritedFrom": {
90141
- "name": "SbbButtonLikeBaseElement",
90142
- "module": "core/base-elements/button-base-element.js"
90143
- }
90144
- },
90145
- {
90146
- "kind": "field",
90147
- "name": "_removeActiveMarker",
90148
- "privacy": "private",
90149
- "inheritedFrom": {
90150
- "name": "SbbButtonLikeBaseElement",
90151
- "module": "core/base-elements/button-base-element.js"
90152
- }
90153
- },
90154
- {
90155
- "kind": "field",
90156
- "name": "_dispatchClickEventOnSpaceKeyup",
90157
- "privacy": "private",
90158
- "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.",
90159
- "parameters": [
90160
- {
90161
- "description": "The origin event.",
90162
- "name": "event"
90163
- }
90164
- ],
90165
- "inheritedFrom": {
90166
- "name": "SbbButtonLikeBaseElement",
90167
- "module": "core/base-elements/button-base-element.js"
90168
- }
90169
- },
90170
- {
90171
- "kind": "field",
90172
- "name": "_dispatchClickEvent",
90173
- "privacy": "private",
90174
- "inheritedFrom": {
90175
- "name": "SbbButtonLikeBaseElement",
90176
- "module": "core/base-elements/button-base-element.js"
90177
- }
90178
- },
90310
+ }
90311
+ ],
90312
+ "events": [
90179
90313
  {
90180
- "kind": "field",
90181
- "name": "maybeDisabled",
90314
+ "name": "input",
90182
90315
  "type": {
90183
- "text": "boolean | undefined"
90316
+ "text": "InputEvent"
90184
90317
  },
90185
- "privacy": "protected",
90186
- "readonly": true,
90187
- "inheritedFrom": {
90188
- "name": "SbbActionBaseElement",
90189
- "module": "core/base-elements/action-base-element.js"
90190
- }
90318
+ "description": "The input event fires when the value has been changed as a direct result of a user action."
90191
90319
  },
90192
90320
  {
90193
- "kind": "field",
90194
- "name": "maybeDisabledInteractive",
90321
+ "name": "change",
90195
90322
  "type": {
90196
- "text": "boolean | undefined"
90197
- },
90198
- "privacy": "protected",
90199
- "readonly": true,
90200
- "inheritedFrom": {
90201
- "name": "SbbActionBaseElement",
90202
- "module": "core/base-elements/action-base-element.js"
90203
- }
90204
- },
90205
- {
90206
- "kind": "method",
90207
- "name": "setupBaseEventHandlers",
90208
- "privacy": "protected",
90209
- "return": {
90210
- "type": {
90211
- "text": "void"
90212
- }
90323
+ "text": "Event"
90213
90324
  },
90214
- "inheritedFrom": {
90215
- "name": "SbbActionBaseElement",
90216
- "module": "core/base-elements/action-base-element.js"
90217
- }
90325
+ "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."
90218
90326
  },
90219
90327
  {
90220
- "kind": "field",
90221
- "name": "_hydrationRequired",
90328
+ "name": "filechanged",
90222
90329
  "type": {
90223
- "text": "boolean"
90330
+ "text": "CustomEvent<Readonly<File>[]>"
90224
90331
  },
90225
- "privacy": "private",
90226
- "default": "!!this.shadowRoot",
90227
- "inheritedFrom": {
90228
- "name": "SbbElement",
90229
- "module": "core/base-elements/element.js"
90230
- }
90231
- },
90232
- {
90233
- "kind": "field",
90234
- "name": "_hydrationComplete",
90235
- "privacy": "private",
90236
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
90237
- "inheritedFrom": {
90238
- "name": "SbbElement",
90239
- "module": "core/base-elements/element.js"
90240
- }
90241
- },
90332
+ "description": "An event which is emitted each time the file list changes."
90333
+ }
90334
+ ],
90335
+ "attributes": [
90242
90336
  {
90243
- "kind": "field",
90244
- "name": "_resolveHydration",
90337
+ "name": "size",
90245
90338
  "type": {
90246
- "text": "(hydrationRequired: boolean) => void"
90339
+ "text": "'s' | 'm'"
90247
90340
  },
90248
- "privacy": "private",
90249
- "inheritedFrom": {
90250
- "name": "SbbElement",
90251
- "module": "core/base-elements/element.js"
90252
- }
90341
+ "description": "Size variant, either s or m.",
90342
+ "default": "'m' / 's' (lean)",
90343
+ "fieldName": "size"
90253
90344
  },
90254
90345
  {
90255
- "kind": "field",
90256
- "name": "hydrationRequired",
90346
+ "name": "multiple",
90257
90347
  "type": {
90258
90348
  "text": "boolean"
90259
90349
  },
90260
- "privacy": "protected",
90261
- "description": "Returns whether hydration is required and not completed.",
90262
- "readonly": true,
90263
- "inheritedFrom": {
90264
- "name": "SbbElement",
90265
- "module": "core/base-elements/element.js"
90266
- },
90267
- "default": "!!this.shadowRoot"
90268
- },
90269
- {
90270
- "kind": "method",
90271
- "name": "toggleState",
90272
- "privacy": "protected",
90273
- "return": {
90274
- "type": {
90275
- "text": "void"
90276
- }
90277
- },
90278
- "parameters": [
90279
- {
90280
- "name": "value",
90281
- "type": {
90282
- "text": "string"
90283
- }
90284
- },
90285
- {
90286
- "name": "force",
90287
- "optional": true,
90288
- "type": {
90289
- "text": "boolean"
90290
- }
90291
- }
90292
- ],
90293
- "inheritedFrom": {
90294
- "name": "SbbElement",
90295
- "module": "core/base-elements/element.js"
90296
- }
90350
+ "default": "false",
90351
+ "description": "Whether more than one file can be selected.",
90352
+ "fieldName": "multiple"
90297
90353
  },
90298
90354
  {
90299
- "kind": "field",
90300
- "name": "['_$sbbElement$']",
90355
+ "name": "multiple-mode",
90301
90356
  "type": {
90302
- "text": "boolean"
90357
+ "text": "'default' | 'persistent'"
90303
90358
  },
90304
- "privacy": "public",
90305
- "static": true,
90306
- "default": "true",
90307
- "inheritedFrom": {
90308
- "name": "SbbElement",
90309
- "module": "core/base-elements/element.js"
90310
- }
90359
+ "default": "'default'",
90360
+ "description": "Whether the newly added files should override the previously added ones.",
90361
+ "fieldName": "multipleMode"
90311
90362
  },
90312
90363
  {
90313
- "kind": "field",
90314
- "name": "_controllers",
90315
- "type": {
90316
- "text": "Set<SbbReactiveController> | undefined"
90317
- },
90318
- "privacy": "private",
90319
- "inheritedFrom": {
90320
- "name": "SbbElement",
90321
- "module": "core/base-elements/element.js"
90322
- }
90323
- }
90324
- ],
90325
- "events": [
90326
- {
90327
- "name": "toggleexpanded",
90364
+ "name": "accept",
90328
90365
  "type": {
90329
- "text": "Event"
90366
+ "text": "string"
90330
90367
  },
90331
- "description": "Notifies that the `sbb-expansion-panel` is about to expand/shrink."
90332
- }
90333
- ],
90334
- "mixins": [
90335
- {
90336
- "name": "SbbDisabledTabIndexActionMixin",
90337
- "module": "core/mixins.js"
90368
+ "default": "''",
90369
+ "description": "A comma-separated list of allowed unique file type specifiers.",
90370
+ "fieldName": "accept"
90338
90371
  },
90339
90372
  {
90340
- "name": "SbbIconNameMixin",
90341
- "module": "icon.js"
90342
- }
90343
- ],
90344
- "superclass": {
90345
- "name": "SbbButtonBaseElement",
90346
- "module": "core/base-elements.js"
90347
- },
90348
- "tagName": "sbb-expansion-panel-header",
90349
- "customElement": true,
90350
- "attributes": [
90351
- {
90352
- "name": "disabled-interactive",
90373
+ "name": "accessibility-label",
90353
90374
  "type": {
90354
- "text": "boolean"
90375
+ "text": "string"
90355
90376
  },
90356
- "default": "false",
90357
- "description": "Whether the button should be aria-disabled but stay interactive.",
90358
- "fieldName": "disabledInteractive",
90359
- "inheritedFrom": {
90360
- "name": "SbbDisabledInteractiveMixin",
90361
- "module": "core/mixins/disabled-mixin.js"
90362
- }
90377
+ "default": "''",
90378
+ "description": "This will be forwarded as aria-label to the native input element.",
90379
+ "fieldName": "accessibilityLabel"
90363
90380
  },
90364
90381
  {
90365
90382
  "name": "disabled",
@@ -90375,66 +90392,33 @@
90375
90392
  }
90376
90393
  },
90377
90394
  {
90378
- "name": "icon-name",
90379
- "type": {
90380
- "text": "string"
90381
- },
90382
- "default": "''",
90383
- "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.",
90384
- "fieldName": "iconName",
90385
- "inheritedFrom": {
90386
- "name": "SbbIconNameMixin",
90387
- "module": "icon/icon-name-mixin.js"
90388
- }
90389
- },
90390
- {
90391
- "name": "value",
90395
+ "name": "name",
90396
+ "description": "Name of the form element. Will be read from name attribute.",
90392
90397
  "type": {
90393
90398
  "text": "string"
90394
90399
  },
90395
- "default": "''",
90396
- "description": "Value of the form element.",
90397
- "fieldName": "value",
90400
+ "fieldName": "name",
90398
90401
  "inheritedFrom": {
90399
- "name": "SbbButtonBaseElement",
90400
- "module": "core/base-elements/button-base-element.js"
90402
+ "name": "SbbFormAssociatedMixin",
90403
+ "module": "core/mixins/form-associated-mixin.js"
90401
90404
  }
90402
- },
90405
+ }
90406
+ ],
90407
+ "mixins": [
90403
90408
  {
90404
- "name": "type",
90405
- "description": "The type attribute to use for the button.",
90406
- "default": "'button'",
90407
- "type": {
90408
- "text": "SbbButtonType"
90409
- },
90410
- "fieldName": "type",
90411
- "inheritedFrom": {
90412
- "name": "SbbButtonBaseElement",
90413
- "module": "core/base-elements/button-base-element.js"
90414
- }
90409
+ "name": "SbbDisabledMixin",
90410
+ "module": "core/mixins.js"
90415
90411
  },
90416
90412
  {
90417
- "name": "form",
90418
- "description": "The `<form>` element to associate the button with.",
90419
- "type": {
90420
- "text": "HTMLFormElement | null"
90421
- },
90422
- "fieldName": "form",
90423
- "inheritedFrom": {
90424
- "name": "SbbButtonBaseElement",
90425
- "module": "core/base-elements/button-base-element.js"
90426
- }
90427
- },
90413
+ "name": "SbbFormAssociatedMixin",
90414
+ "module": "core/mixins.js"
90415
+ }
90416
+ ],
90417
+ "parameters": [
90428
90418
  {
90429
- "name": "name",
90430
- "description": "Name of the form element. Will be read from name attribute.",
90419
+ "name": "superclass",
90431
90420
  "type": {
90432
- "text": "string"
90433
- },
90434
- "fieldName": "name",
90435
- "inheritedFrom": {
90436
- "name": "SbbFormAssociatedMixin",
90437
- "module": "core/mixins/form-associated-mixin.js"
90421
+ "text": "T"
90438
90422
  }
90439
90423
  }
90440
90424
  ]
@@ -90443,10 +90427,26 @@
90443
90427
  "exports": [
90444
90428
  {
90445
90429
  "kind": "js",
90446
- "name": "SbbExpansionPanelHeaderElement",
90430
+ "name": "fileSelectorCommonStyle",
90447
90431
  "declaration": {
90448
- "name": "SbbExpansionPanelHeaderElement",
90449
- "module": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js"
90432
+ "name": "fileSelectorCommonStyle",
90433
+ "module": "file-selector/common/file-selector-common.js"
90434
+ }
90435
+ },
90436
+ {
90437
+ "kind": "js",
90438
+ "name": "SbbFileSelectorCommonElementMixinType",
90439
+ "declaration": {
90440
+ "name": "SbbFileSelectorCommonElementMixinType",
90441
+ "module": "file-selector/common/file-selector-common.js"
90442
+ }
90443
+ },
90444
+ {
90445
+ "kind": "js",
90446
+ "name": "SbbFileSelectorCommonElementMixin",
90447
+ "declaration": {
90448
+ "name": "SbbFileSelectorCommonElementMixin",
90449
+ "module": "file-selector/common/file-selector-common.js"
90450
90450
  }
90451
90451
  }
90452
90452
  ]
@@ -101950,6 +101950,440 @@
101950
101950
  }
101951
101951
  ]
101952
101952
  },
101953
+ {
101954
+ "kind": "javascript-module",
101955
+ "path": "link/block-link-static/block-link-static.component.js",
101956
+ "declarations": [
101957
+ {
101958
+ "kind": "class",
101959
+ "description": "It displays a static link enhanced with the SBB Design.",
101960
+ "name": "SbbBlockLinkStaticElement",
101961
+ "slots": [
101962
+ {
101963
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
101964
+ "name": ""
101965
+ },
101966
+ {
101967
+ "description": "Slot used to display the icon, if one is set.",
101968
+ "name": "icon"
101969
+ }
101970
+ ],
101971
+ "members": [
101972
+ {
101973
+ "kind": "field",
101974
+ "name": "elementName",
101975
+ "type": {
101976
+ "text": "string"
101977
+ },
101978
+ "privacy": "public",
101979
+ "static": true,
101980
+ "readonly": true,
101981
+ "inheritedFrom": {
101982
+ "name": "SbbElement",
101983
+ "module": "core/base-elements/element.js"
101984
+ },
101985
+ "default": "'sbb-block-link-static'"
101986
+ },
101987
+ {
101988
+ "kind": "field",
101989
+ "name": "styles",
101990
+ "type": {
101991
+ "text": "CSSResultGroup"
101992
+ },
101993
+ "privacy": "public",
101994
+ "static": true,
101995
+ "default": "[super.styles, unsafeCSS(blockStyle)]",
101996
+ "inheritedFrom": {
101997
+ "name": "SbbLinkCommonElementMixin",
101998
+ "module": "link/common/link-common.js"
101999
+ }
102000
+ },
102001
+ {
102002
+ "kind": "field",
102003
+ "name": "iconPlacement",
102004
+ "type": {
102005
+ "text": "SbbIconPlacement"
102006
+ },
102007
+ "privacy": "public",
102008
+ "default": "'start'",
102009
+ "description": "Moves the icon to the end of the component if set to true.",
102010
+ "attribute": "icon-placement",
102011
+ "reflects": true,
102012
+ "inheritedFrom": {
102013
+ "name": "SbbBlockLinkCommonElementMixin",
102014
+ "module": "link/common/block-link-common.js"
102015
+ }
102016
+ },
102017
+ {
102018
+ "kind": "method",
102019
+ "name": "renderTemplate",
102020
+ "privacy": "protected",
102021
+ "return": {
102022
+ "type": {
102023
+ "text": "TemplateResult"
102024
+ }
102025
+ },
102026
+ "description": "Override this method to render the component template.",
102027
+ "inheritedFrom": {
102028
+ "name": "SbbActionBaseElement",
102029
+ "module": "core/base-elements/action-base-element.js"
102030
+ }
102031
+ },
102032
+ {
102033
+ "kind": "field",
102034
+ "name": "size",
102035
+ "type": {
102036
+ "text": "SbbLinkSize"
102037
+ },
102038
+ "privacy": "public",
102039
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
102040
+ "default": "'s' / 'xs' (lean)",
102041
+ "attribute": "size",
102042
+ "reflects": true,
102043
+ "inheritedFrom": {
102044
+ "name": "SbbLinkCommonElementMixin",
102045
+ "module": "link/common/link-common.js"
102046
+ }
102047
+ },
102048
+ {
102049
+ "kind": "field",
102050
+ "name": "iconName",
102051
+ "type": {
102052
+ "text": "string"
102053
+ },
102054
+ "privacy": "public",
102055
+ "default": "''",
102056
+ "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.",
102057
+ "attribute": "icon-name",
102058
+ "inheritedFrom": {
102059
+ "name": "SbbIconNameMixin",
102060
+ "module": "icon/icon-name-mixin.js"
102061
+ }
102062
+ },
102063
+ {
102064
+ "kind": "method",
102065
+ "name": "renderIconSlot",
102066
+ "privacy": "protected",
102067
+ "return": {
102068
+ "type": {
102069
+ "text": "TemplateResult"
102070
+ }
102071
+ },
102072
+ "parameters": [
102073
+ {
102074
+ "name": "classname",
102075
+ "optional": true,
102076
+ "type": {
102077
+ "text": "string"
102078
+ }
102079
+ }
102080
+ ],
102081
+ "inheritedFrom": {
102082
+ "name": "SbbIconNameMixin",
102083
+ "module": "icon/icon-name-mixin.js"
102084
+ }
102085
+ },
102086
+ {
102087
+ "kind": "method",
102088
+ "name": "renderIconName",
102089
+ "privacy": "protected",
102090
+ "return": {
102091
+ "type": {
102092
+ "text": "string"
102093
+ }
102094
+ },
102095
+ "inheritedFrom": {
102096
+ "name": "SbbIconNameMixin",
102097
+ "module": "icon/icon-name-mixin.js"
102098
+ }
102099
+ },
102100
+ {
102101
+ "kind": "method",
102102
+ "name": "_renderIconName",
102103
+ "privacy": "private",
102104
+ "return": {
102105
+ "type": {
102106
+ "text": "string"
102107
+ }
102108
+ },
102109
+ "inheritedFrom": {
102110
+ "name": "SbbIconNameMixin",
102111
+ "module": "icon/icon-name-mixin.js"
102112
+ }
102113
+ },
102114
+ {
102115
+ "kind": "field",
102116
+ "name": "disabled",
102117
+ "privacy": "public",
102118
+ "description": "Whether the component is disabled.",
102119
+ "default": "false",
102120
+ "type": {
102121
+ "text": "boolean"
102122
+ },
102123
+ "attribute": "disabled",
102124
+ "reflects": true,
102125
+ "inheritedFrom": {
102126
+ "name": "SbbDisabledMixin",
102127
+ "module": "core/mixins/disabled-mixin.js"
102128
+ }
102129
+ },
102130
+ {
102131
+ "kind": "field",
102132
+ "name": "#disabled",
102133
+ "privacy": "private",
102134
+ "type": {
102135
+ "text": "boolean"
102136
+ },
102137
+ "default": "false",
102138
+ "inheritedFrom": {
102139
+ "name": "SbbDisabledMixin",
102140
+ "module": "core/mixins/disabled-mixin.js"
102141
+ }
102142
+ },
102143
+ {
102144
+ "kind": "method",
102145
+ "name": "isDisabledExternally",
102146
+ "privacy": "protected",
102147
+ "return": {
102148
+ "type": {
102149
+ "text": "boolean"
102150
+ }
102151
+ },
102152
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
102153
+ "inheritedFrom": {
102154
+ "name": "SbbDisabledMixin",
102155
+ "module": "core/mixins/disabled-mixin.js"
102156
+ }
102157
+ },
102158
+ {
102159
+ "kind": "field",
102160
+ "name": "maybeDisabled",
102161
+ "type": {
102162
+ "text": "boolean | undefined"
102163
+ },
102164
+ "privacy": "protected",
102165
+ "readonly": true,
102166
+ "inheritedFrom": {
102167
+ "name": "SbbActionBaseElement",
102168
+ "module": "core/base-elements/action-base-element.js"
102169
+ }
102170
+ },
102171
+ {
102172
+ "kind": "field",
102173
+ "name": "maybeDisabledInteractive",
102174
+ "type": {
102175
+ "text": "boolean | undefined"
102176
+ },
102177
+ "privacy": "protected",
102178
+ "readonly": true,
102179
+ "inheritedFrom": {
102180
+ "name": "SbbActionBaseElement",
102181
+ "module": "core/base-elements/action-base-element.js"
102182
+ }
102183
+ },
102184
+ {
102185
+ "kind": "method",
102186
+ "name": "setupBaseEventHandlers",
102187
+ "privacy": "protected",
102188
+ "return": {
102189
+ "type": {
102190
+ "text": "void"
102191
+ }
102192
+ },
102193
+ "inheritedFrom": {
102194
+ "name": "SbbActionBaseElement",
102195
+ "module": "core/base-elements/action-base-element.js"
102196
+ }
102197
+ },
102198
+ {
102199
+ "kind": "field",
102200
+ "name": "_hydrationRequired",
102201
+ "type": {
102202
+ "text": "boolean"
102203
+ },
102204
+ "privacy": "private",
102205
+ "default": "!!this.shadowRoot",
102206
+ "inheritedFrom": {
102207
+ "name": "SbbElement",
102208
+ "module": "core/base-elements/element.js"
102209
+ }
102210
+ },
102211
+ {
102212
+ "kind": "field",
102213
+ "name": "_hydrationComplete",
102214
+ "privacy": "private",
102215
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
102216
+ "inheritedFrom": {
102217
+ "name": "SbbElement",
102218
+ "module": "core/base-elements/element.js"
102219
+ }
102220
+ },
102221
+ {
102222
+ "kind": "field",
102223
+ "name": "_resolveHydration",
102224
+ "type": {
102225
+ "text": "(hydrationRequired: boolean) => void"
102226
+ },
102227
+ "privacy": "private",
102228
+ "inheritedFrom": {
102229
+ "name": "SbbElement",
102230
+ "module": "core/base-elements/element.js"
102231
+ }
102232
+ },
102233
+ {
102234
+ "kind": "field",
102235
+ "name": "hydrationRequired",
102236
+ "type": {
102237
+ "text": "boolean"
102238
+ },
102239
+ "privacy": "protected",
102240
+ "description": "Returns whether hydration is required and not completed.",
102241
+ "readonly": true,
102242
+ "inheritedFrom": {
102243
+ "name": "SbbElement",
102244
+ "module": "core/base-elements/element.js"
102245
+ },
102246
+ "default": "!!this.shadowRoot"
102247
+ },
102248
+ {
102249
+ "kind": "method",
102250
+ "name": "toggleState",
102251
+ "privacy": "protected",
102252
+ "return": {
102253
+ "type": {
102254
+ "text": "void"
102255
+ }
102256
+ },
102257
+ "parameters": [
102258
+ {
102259
+ "name": "value",
102260
+ "type": {
102261
+ "text": "string"
102262
+ }
102263
+ },
102264
+ {
102265
+ "name": "force",
102266
+ "optional": true,
102267
+ "type": {
102268
+ "text": "boolean"
102269
+ }
102270
+ }
102271
+ ],
102272
+ "inheritedFrom": {
102273
+ "name": "SbbElement",
102274
+ "module": "core/base-elements/element.js"
102275
+ }
102276
+ },
102277
+ {
102278
+ "kind": "field",
102279
+ "name": "['_$sbbElement$']",
102280
+ "type": {
102281
+ "text": "boolean"
102282
+ },
102283
+ "privacy": "public",
102284
+ "static": true,
102285
+ "default": "true",
102286
+ "inheritedFrom": {
102287
+ "name": "SbbElement",
102288
+ "module": "core/base-elements/element.js"
102289
+ }
102290
+ },
102291
+ {
102292
+ "kind": "field",
102293
+ "name": "_controllers",
102294
+ "type": {
102295
+ "text": "Set<SbbReactiveController> | undefined"
102296
+ },
102297
+ "privacy": "private",
102298
+ "inheritedFrom": {
102299
+ "name": "SbbElement",
102300
+ "module": "core/base-elements/element.js"
102301
+ }
102302
+ }
102303
+ ],
102304
+ "mixins": [
102305
+ {
102306
+ "name": "SbbBlockLinkCommonElementMixin",
102307
+ "module": "link/common/block-link-common.js"
102308
+ },
102309
+ {
102310
+ "name": "SbbDisabledMixin",
102311
+ "module": "core/mixins.js"
102312
+ }
102313
+ ],
102314
+ "superclass": {
102315
+ "name": "SbbActionBaseElement",
102316
+ "module": "core/base-elements.js"
102317
+ },
102318
+ "tagName": "sbb-block-link-static",
102319
+ "customElement": true,
102320
+ "attributes": [
102321
+ {
102322
+ "name": "icon-placement",
102323
+ "type": {
102324
+ "text": "SbbIconPlacement"
102325
+ },
102326
+ "default": "'start'",
102327
+ "description": "Moves the icon to the end of the component if set to true.",
102328
+ "fieldName": "iconPlacement",
102329
+ "inheritedFrom": {
102330
+ "name": "SbbBlockLinkCommonElementMixin",
102331
+ "module": "link/common/block-link-common.js"
102332
+ }
102333
+ },
102334
+ {
102335
+ "name": "size",
102336
+ "type": {
102337
+ "text": "SbbLinkSize"
102338
+ },
102339
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
102340
+ "default": "'s' / 'xs' (lean)",
102341
+ "fieldName": "size",
102342
+ "inheritedFrom": {
102343
+ "name": "SbbLinkCommonElementMixin",
102344
+ "module": "link/common/link-common.js"
102345
+ }
102346
+ },
102347
+ {
102348
+ "name": "icon-name",
102349
+ "type": {
102350
+ "text": "string"
102351
+ },
102352
+ "default": "''",
102353
+ "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.",
102354
+ "fieldName": "iconName",
102355
+ "inheritedFrom": {
102356
+ "name": "SbbIconNameMixin",
102357
+ "module": "icon/icon-name-mixin.js"
102358
+ }
102359
+ },
102360
+ {
102361
+ "name": "disabled",
102362
+ "description": "Whether the component is disabled.",
102363
+ "default": "false",
102364
+ "type": {
102365
+ "text": "boolean"
102366
+ },
102367
+ "fieldName": "disabled",
102368
+ "inheritedFrom": {
102369
+ "name": "SbbDisabledMixin",
102370
+ "module": "core/mixins/disabled-mixin.js"
102371
+ }
102372
+ }
102373
+ ]
102374
+ }
102375
+ ],
102376
+ "exports": [
102377
+ {
102378
+ "kind": "js",
102379
+ "name": "SbbBlockLinkStaticElement",
102380
+ "declaration": {
102381
+ "name": "SbbBlockLinkStaticElement",
102382
+ "module": "link/block-link-static/block-link-static.component.js"
102383
+ }
102384
+ }
102385
+ ]
102386
+ },
101953
102387
  {
101954
102388
  "kind": "javascript-module",
101955
102389
  "path": "link/common/block-link-common.js",
@@ -103288,440 +103722,6 @@
103288
103722
  }
103289
103723
  ]
103290
103724
  },
103291
- {
103292
- "kind": "javascript-module",
103293
- "path": "link/block-link-static/block-link-static.component.js",
103294
- "declarations": [
103295
- {
103296
- "kind": "class",
103297
- "description": "It displays a static link enhanced with the SBB Design.",
103298
- "name": "SbbBlockLinkStaticElement",
103299
- "slots": [
103300
- {
103301
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
103302
- "name": ""
103303
- },
103304
- {
103305
- "description": "Slot used to display the icon, if one is set.",
103306
- "name": "icon"
103307
- }
103308
- ],
103309
- "members": [
103310
- {
103311
- "kind": "field",
103312
- "name": "elementName",
103313
- "type": {
103314
- "text": "string"
103315
- },
103316
- "privacy": "public",
103317
- "static": true,
103318
- "readonly": true,
103319
- "inheritedFrom": {
103320
- "name": "SbbElement",
103321
- "module": "core/base-elements/element.js"
103322
- },
103323
- "default": "'sbb-block-link-static'"
103324
- },
103325
- {
103326
- "kind": "field",
103327
- "name": "styles",
103328
- "type": {
103329
- "text": "CSSResultGroup"
103330
- },
103331
- "privacy": "public",
103332
- "static": true,
103333
- "default": "[super.styles, unsafeCSS(blockStyle)]",
103334
- "inheritedFrom": {
103335
- "name": "SbbLinkCommonElementMixin",
103336
- "module": "link/common/link-common.js"
103337
- }
103338
- },
103339
- {
103340
- "kind": "field",
103341
- "name": "iconPlacement",
103342
- "type": {
103343
- "text": "SbbIconPlacement"
103344
- },
103345
- "privacy": "public",
103346
- "default": "'start'",
103347
- "description": "Moves the icon to the end of the component if set to true.",
103348
- "attribute": "icon-placement",
103349
- "reflects": true,
103350
- "inheritedFrom": {
103351
- "name": "SbbBlockLinkCommonElementMixin",
103352
- "module": "link/common/block-link-common.js"
103353
- }
103354
- },
103355
- {
103356
- "kind": "method",
103357
- "name": "renderTemplate",
103358
- "privacy": "protected",
103359
- "return": {
103360
- "type": {
103361
- "text": "TemplateResult"
103362
- }
103363
- },
103364
- "description": "Override this method to render the component template.",
103365
- "inheritedFrom": {
103366
- "name": "SbbActionBaseElement",
103367
- "module": "core/base-elements/action-base-element.js"
103368
- }
103369
- },
103370
- {
103371
- "kind": "field",
103372
- "name": "size",
103373
- "type": {
103374
- "text": "SbbLinkSize"
103375
- },
103376
- "privacy": "public",
103377
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
103378
- "default": "'s' / 'xs' (lean)",
103379
- "attribute": "size",
103380
- "reflects": true,
103381
- "inheritedFrom": {
103382
- "name": "SbbLinkCommonElementMixin",
103383
- "module": "link/common/link-common.js"
103384
- }
103385
- },
103386
- {
103387
- "kind": "field",
103388
- "name": "iconName",
103389
- "type": {
103390
- "text": "string"
103391
- },
103392
- "privacy": "public",
103393
- "default": "''",
103394
- "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.",
103395
- "attribute": "icon-name",
103396
- "inheritedFrom": {
103397
- "name": "SbbIconNameMixin",
103398
- "module": "icon/icon-name-mixin.js"
103399
- }
103400
- },
103401
- {
103402
- "kind": "method",
103403
- "name": "renderIconSlot",
103404
- "privacy": "protected",
103405
- "return": {
103406
- "type": {
103407
- "text": "TemplateResult"
103408
- }
103409
- },
103410
- "parameters": [
103411
- {
103412
- "name": "classname",
103413
- "optional": true,
103414
- "type": {
103415
- "text": "string"
103416
- }
103417
- }
103418
- ],
103419
- "inheritedFrom": {
103420
- "name": "SbbIconNameMixin",
103421
- "module": "icon/icon-name-mixin.js"
103422
- }
103423
- },
103424
- {
103425
- "kind": "method",
103426
- "name": "renderIconName",
103427
- "privacy": "protected",
103428
- "return": {
103429
- "type": {
103430
- "text": "string"
103431
- }
103432
- },
103433
- "inheritedFrom": {
103434
- "name": "SbbIconNameMixin",
103435
- "module": "icon/icon-name-mixin.js"
103436
- }
103437
- },
103438
- {
103439
- "kind": "method",
103440
- "name": "_renderIconName",
103441
- "privacy": "private",
103442
- "return": {
103443
- "type": {
103444
- "text": "string"
103445
- }
103446
- },
103447
- "inheritedFrom": {
103448
- "name": "SbbIconNameMixin",
103449
- "module": "icon/icon-name-mixin.js"
103450
- }
103451
- },
103452
- {
103453
- "kind": "field",
103454
- "name": "disabled",
103455
- "privacy": "public",
103456
- "description": "Whether the component is disabled.",
103457
- "default": "false",
103458
- "type": {
103459
- "text": "boolean"
103460
- },
103461
- "attribute": "disabled",
103462
- "reflects": true,
103463
- "inheritedFrom": {
103464
- "name": "SbbDisabledMixin",
103465
- "module": "core/mixins/disabled-mixin.js"
103466
- }
103467
- },
103468
- {
103469
- "kind": "field",
103470
- "name": "#disabled",
103471
- "privacy": "private",
103472
- "type": {
103473
- "text": "boolean"
103474
- },
103475
- "default": "false",
103476
- "inheritedFrom": {
103477
- "name": "SbbDisabledMixin",
103478
- "module": "core/mixins/disabled-mixin.js"
103479
- }
103480
- },
103481
- {
103482
- "kind": "method",
103483
- "name": "isDisabledExternally",
103484
- "privacy": "protected",
103485
- "return": {
103486
- "type": {
103487
- "text": "boolean"
103488
- }
103489
- },
103490
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
103491
- "inheritedFrom": {
103492
- "name": "SbbDisabledMixin",
103493
- "module": "core/mixins/disabled-mixin.js"
103494
- }
103495
- },
103496
- {
103497
- "kind": "field",
103498
- "name": "maybeDisabled",
103499
- "type": {
103500
- "text": "boolean | undefined"
103501
- },
103502
- "privacy": "protected",
103503
- "readonly": true,
103504
- "inheritedFrom": {
103505
- "name": "SbbActionBaseElement",
103506
- "module": "core/base-elements/action-base-element.js"
103507
- }
103508
- },
103509
- {
103510
- "kind": "field",
103511
- "name": "maybeDisabledInteractive",
103512
- "type": {
103513
- "text": "boolean | undefined"
103514
- },
103515
- "privacy": "protected",
103516
- "readonly": true,
103517
- "inheritedFrom": {
103518
- "name": "SbbActionBaseElement",
103519
- "module": "core/base-elements/action-base-element.js"
103520
- }
103521
- },
103522
- {
103523
- "kind": "method",
103524
- "name": "setupBaseEventHandlers",
103525
- "privacy": "protected",
103526
- "return": {
103527
- "type": {
103528
- "text": "void"
103529
- }
103530
- },
103531
- "inheritedFrom": {
103532
- "name": "SbbActionBaseElement",
103533
- "module": "core/base-elements/action-base-element.js"
103534
- }
103535
- },
103536
- {
103537
- "kind": "field",
103538
- "name": "_hydrationRequired",
103539
- "type": {
103540
- "text": "boolean"
103541
- },
103542
- "privacy": "private",
103543
- "default": "!!this.shadowRoot",
103544
- "inheritedFrom": {
103545
- "name": "SbbElement",
103546
- "module": "core/base-elements/element.js"
103547
- }
103548
- },
103549
- {
103550
- "kind": "field",
103551
- "name": "_hydrationComplete",
103552
- "privacy": "private",
103553
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
103554
- "inheritedFrom": {
103555
- "name": "SbbElement",
103556
- "module": "core/base-elements/element.js"
103557
- }
103558
- },
103559
- {
103560
- "kind": "field",
103561
- "name": "_resolveHydration",
103562
- "type": {
103563
- "text": "(hydrationRequired: boolean) => void"
103564
- },
103565
- "privacy": "private",
103566
- "inheritedFrom": {
103567
- "name": "SbbElement",
103568
- "module": "core/base-elements/element.js"
103569
- }
103570
- },
103571
- {
103572
- "kind": "field",
103573
- "name": "hydrationRequired",
103574
- "type": {
103575
- "text": "boolean"
103576
- },
103577
- "privacy": "protected",
103578
- "description": "Returns whether hydration is required and not completed.",
103579
- "readonly": true,
103580
- "inheritedFrom": {
103581
- "name": "SbbElement",
103582
- "module": "core/base-elements/element.js"
103583
- },
103584
- "default": "!!this.shadowRoot"
103585
- },
103586
- {
103587
- "kind": "method",
103588
- "name": "toggleState",
103589
- "privacy": "protected",
103590
- "return": {
103591
- "type": {
103592
- "text": "void"
103593
- }
103594
- },
103595
- "parameters": [
103596
- {
103597
- "name": "value",
103598
- "type": {
103599
- "text": "string"
103600
- }
103601
- },
103602
- {
103603
- "name": "force",
103604
- "optional": true,
103605
- "type": {
103606
- "text": "boolean"
103607
- }
103608
- }
103609
- ],
103610
- "inheritedFrom": {
103611
- "name": "SbbElement",
103612
- "module": "core/base-elements/element.js"
103613
- }
103614
- },
103615
- {
103616
- "kind": "field",
103617
- "name": "['_$sbbElement$']",
103618
- "type": {
103619
- "text": "boolean"
103620
- },
103621
- "privacy": "public",
103622
- "static": true,
103623
- "default": "true",
103624
- "inheritedFrom": {
103625
- "name": "SbbElement",
103626
- "module": "core/base-elements/element.js"
103627
- }
103628
- },
103629
- {
103630
- "kind": "field",
103631
- "name": "_controllers",
103632
- "type": {
103633
- "text": "Set<SbbReactiveController> | undefined"
103634
- },
103635
- "privacy": "private",
103636
- "inheritedFrom": {
103637
- "name": "SbbElement",
103638
- "module": "core/base-elements/element.js"
103639
- }
103640
- }
103641
- ],
103642
- "mixins": [
103643
- {
103644
- "name": "SbbBlockLinkCommonElementMixin",
103645
- "module": "link/common/block-link-common.js"
103646
- },
103647
- {
103648
- "name": "SbbDisabledMixin",
103649
- "module": "core/mixins.js"
103650
- }
103651
- ],
103652
- "superclass": {
103653
- "name": "SbbActionBaseElement",
103654
- "module": "core/base-elements.js"
103655
- },
103656
- "tagName": "sbb-block-link-static",
103657
- "customElement": true,
103658
- "attributes": [
103659
- {
103660
- "name": "icon-placement",
103661
- "type": {
103662
- "text": "SbbIconPlacement"
103663
- },
103664
- "default": "'start'",
103665
- "description": "Moves the icon to the end of the component if set to true.",
103666
- "fieldName": "iconPlacement",
103667
- "inheritedFrom": {
103668
- "name": "SbbBlockLinkCommonElementMixin",
103669
- "module": "link/common/block-link-common.js"
103670
- }
103671
- },
103672
- {
103673
- "name": "size",
103674
- "type": {
103675
- "text": "SbbLinkSize"
103676
- },
103677
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
103678
- "default": "'s' / 'xs' (lean)",
103679
- "fieldName": "size",
103680
- "inheritedFrom": {
103681
- "name": "SbbLinkCommonElementMixin",
103682
- "module": "link/common/link-common.js"
103683
- }
103684
- },
103685
- {
103686
- "name": "icon-name",
103687
- "type": {
103688
- "text": "string"
103689
- },
103690
- "default": "''",
103691
- "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.",
103692
- "fieldName": "iconName",
103693
- "inheritedFrom": {
103694
- "name": "SbbIconNameMixin",
103695
- "module": "icon/icon-name-mixin.js"
103696
- }
103697
- },
103698
- {
103699
- "name": "disabled",
103700
- "description": "Whether the component is disabled.",
103701
- "default": "false",
103702
- "type": {
103703
- "text": "boolean"
103704
- },
103705
- "fieldName": "disabled",
103706
- "inheritedFrom": {
103707
- "name": "SbbDisabledMixin",
103708
- "module": "core/mixins/disabled-mixin.js"
103709
- }
103710
- }
103711
- ]
103712
- }
103713
- ],
103714
- "exports": [
103715
- {
103716
- "kind": "js",
103717
- "name": "SbbBlockLinkStaticElement",
103718
- "declaration": {
103719
- "name": "SbbBlockLinkStaticElement",
103720
- "module": "link/block-link-static/block-link-static.component.js"
103721
- }
103722
- }
103723
- ]
103724
- },
103725
103725
  {
103726
103726
  "kind": "javascript-module",
103727
103727
  "path": "link/link/link.component.js",
@@ -121048,332 +121048,120 @@
121048
121048
  }
121049
121049
  }
121050
121050
  ],
121051
- "attributes": [
121052
- {
121053
- "name": "color",
121054
- "type": {
121055
- "text": "'white' | 'milk'"
121056
- },
121057
- "default": "'white'",
121058
- "description": "Background color of the sidebar. Either `white` or `milk`.",
121059
- "fieldName": "color"
121060
- },
121061
- {
121062
- "name": "mode",
121063
- "type": {
121064
- "text": "'side' | 'over'"
121065
- },
121066
- "default": "'side'",
121067
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
121068
- "fieldName": "mode"
121069
- },
121070
- {
121071
- "name": "position",
121072
- "type": {
121073
- "text": "'start' | 'end'"
121074
- },
121075
- "default": "'start'",
121076
- "description": "The side that the sidebar is attached to.",
121077
- "fieldName": "position"
121078
- },
121079
- {
121080
- "name": "opened",
121081
- "type": {
121082
- "text": "boolean"
121083
- },
121084
- "default": "false",
121085
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
121086
- "fieldName": "opened"
121087
- },
121088
- {
121089
- "name": "focus-on-open",
121090
- "type": {
121091
- "text": "boolean"
121092
- },
121093
- "default": "false",
121094
- "description": "Whether the sidebar should focus the first focusable element automatically when opened.\nDefaults to false in when mode is set to `side`, otherwise defaults to true.\nIf explicitly enabled, focus will be moved into the sidebar in `side` mode as well.",
121095
- "fieldName": "focusOnOpen"
121096
- }
121097
- ],
121098
- "mixins": [
121099
- {
121100
- "name": "SbbAnimationCompleteMixin",
121101
- "module": "core/mixins.js"
121102
- }
121103
- ],
121104
- "superclass": {
121105
- "name": "SbbOpenCloseBaseElement",
121106
- "module": "core/base-elements.js"
121107
- },
121108
- "tagName": "sbb-sidebar",
121109
- "customElement": true,
121110
- "events": [
121111
- {
121112
- "name": "beforeopen",
121113
- "type": {
121114
- "text": "Event"
121115
- },
121116
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
121117
- "inheritedFrom": {
121118
- "name": "SbbOpenCloseBaseElement",
121119
- "module": "core/base-elements/open-close-base-element.js"
121120
- }
121121
- },
121122
- {
121123
- "name": "open",
121124
- "type": {
121125
- "text": "Event"
121126
- },
121127
- "description": "Emits whenever the component is opened.",
121128
- "inheritedFrom": {
121129
- "name": "SbbOpenCloseBaseElement",
121130
- "module": "core/base-elements/open-close-base-element.js"
121131
- }
121132
- },
121133
- {
121134
- "name": "beforeclose",
121135
- "type": {
121136
- "text": "Event"
121137
- },
121138
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
121139
- "inheritedFrom": {
121140
- "name": "SbbOpenCloseBaseElement",
121141
- "module": "core/base-elements/open-close-base-element.js"
121142
- }
121143
- },
121144
- {
121145
- "name": "close",
121146
- "type": {
121147
- "text": "Event"
121148
- },
121149
- "description": "Emits whenever the component is closed.",
121150
- "inheritedFrom": {
121151
- "name": "SbbOpenCloseBaseElement",
121152
- "module": "core/base-elements/open-close-base-element.js"
121153
- }
121154
- }
121155
- ]
121156
- }
121157
- ],
121158
- "exports": [
121159
- {
121160
- "kind": "js",
121161
- "name": "SbbSidebarElement",
121162
- "declaration": {
121163
- "name": "SbbSidebarElement",
121164
- "module": "sidebar/sidebar/sidebar.component.js"
121165
- }
121166
- }
121167
- ]
121168
- },
121169
- {
121170
- "kind": "javascript-module",
121171
- "path": "sidebar/sidebar-container/sidebar-container.component.js",
121172
- "declarations": [
121173
- {
121174
- "kind": "class",
121175
- "description": "This is the parent component to one or two `<sbb-sidebar>`s that validates the state internally\nand coordinates the backdrop and content styling.",
121176
- "name": "SbbSidebarContainerElement",
121177
- "slots": [
121178
- {
121179
- "description": "Use the unnamed slot to add `sbb-sidebar` and `sbb-sidebar-content` elements.",
121180
- "name": ""
121181
- }
121182
- ],
121183
- "members": [
121184
- {
121185
- "kind": "field",
121186
- "name": "elementName",
121187
- "type": {
121188
- "text": "string"
121189
- },
121190
- "privacy": "public",
121191
- "static": true,
121192
- "readonly": true,
121193
- "default": "'sbb-sidebar-container'",
121194
- "inheritedFrom": {
121195
- "name": "SbbElement",
121196
- "module": "core/base-elements/element.js"
121197
- }
121198
- },
121199
- {
121200
- "kind": "field",
121201
- "name": "sidebars",
121202
- "type": {
121203
- "text": "SbbSidebarElement[]"
121204
- },
121205
- "privacy": "public",
121206
- "description": "The sidebar children.",
121207
- "readonly": true
121208
- },
121209
- {
121210
- "kind": "field",
121211
- "name": "start",
121212
- "type": {
121213
- "text": "SbbSidebarElement | null"
121214
- },
121215
- "privacy": "public",
121216
- "description": "The sidebar child with the `start` position.",
121217
- "readonly": true
121218
- },
121219
- {
121220
- "kind": "field",
121221
- "name": "end",
121222
- "type": {
121223
- "text": "SbbSidebarElement | null"
121224
- },
121225
- "privacy": "public",
121226
- "description": "The sidebar child with the `end` position.",
121227
- "readonly": true
121228
- },
121229
- {
121230
- "kind": "field",
121231
- "name": "_forcedClosedSidebars",
121232
- "privacy": "private",
121233
- "default": "new WeakSet<SbbSidebarElement>()"
121234
- },
121235
- {
121236
- "kind": "method",
121237
- "name": "_handleWidthChange",
121238
- "privacy": "private",
121239
- "return": {
121240
- "type": {
121241
- "text": "void"
121242
- }
121243
- }
121244
- },
121245
- {
121246
- "kind": "method",
121247
- "name": "_calculateSpaceState",
121248
- "privacy": "private",
121249
- "return": {
121250
- "type": {
121251
- "text": "Promise<void>"
121252
- }
121253
- },
121254
- "description": "Closes and opens sidebars depending on available width\nof the container and its parent container."
121255
- },
121256
- {
121257
- "kind": "field",
121258
- "name": "_hydrationRequired",
121259
- "type": {
121260
- "text": "boolean"
121261
- },
121262
- "privacy": "private",
121263
- "default": "!!this.shadowRoot",
121264
- "inheritedFrom": {
121265
- "name": "SbbElement",
121266
- "module": "core/base-elements/element.js"
121267
- }
121268
- },
121269
- {
121270
- "kind": "field",
121271
- "name": "_hydrationComplete",
121272
- "privacy": "private",
121273
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
121274
- "inheritedFrom": {
121275
- "name": "SbbElement",
121276
- "module": "core/base-elements/element.js"
121277
- }
121278
- },
121279
- {
121280
- "kind": "field",
121281
- "name": "_resolveHydration",
121282
- "type": {
121283
- "text": "(hydrationRequired: boolean) => void"
121284
- },
121285
- "privacy": "private",
121286
- "inheritedFrom": {
121287
- "name": "SbbElement",
121288
- "module": "core/base-elements/element.js"
121289
- }
121290
- },
121291
- {
121292
- "kind": "field",
121293
- "name": "hydrationRequired",
121294
- "type": {
121295
- "text": "boolean"
121296
- },
121297
- "privacy": "protected",
121298
- "description": "Returns whether hydration is required and not completed.",
121299
- "readonly": true,
121300
- "inheritedFrom": {
121301
- "name": "SbbElement",
121302
- "module": "core/base-elements/element.js"
121303
- },
121304
- "default": "!!this.shadowRoot"
121305
- },
121306
- {
121307
- "kind": "method",
121308
- "name": "toggleState",
121309
- "privacy": "protected",
121310
- "return": {
121311
- "type": {
121312
- "text": "void"
121313
- }
121314
- },
121315
- "parameters": [
121316
- {
121317
- "name": "value",
121318
- "type": {
121319
- "text": "string"
121320
- }
121321
- },
121322
- {
121323
- "name": "force",
121324
- "optional": true,
121325
- "type": {
121326
- "text": "boolean"
121327
- }
121328
- }
121329
- ],
121330
- "inheritedFrom": {
121331
- "name": "SbbElement",
121332
- "module": "core/base-elements/element.js"
121333
- }
121334
- },
121335
- {
121336
- "kind": "field",
121337
- "name": "['_$sbbElement$']",
121338
- "type": {
121339
- "text": "boolean"
121340
- },
121341
- "privacy": "public",
121342
- "static": true,
121343
- "default": "true",
121344
- "inheritedFrom": {
121345
- "name": "SbbElement",
121346
- "module": "core/base-elements/element.js"
121347
- }
121348
- },
121349
- {
121350
- "kind": "field",
121351
- "name": "_controllers",
121352
- "type": {
121353
- "text": "Set<SbbReactiveController> | undefined"
121354
- },
121355
- "privacy": "private",
121356
- "inheritedFrom": {
121357
- "name": "SbbElement",
121358
- "module": "core/base-elements/element.js"
121359
- }
121360
- }
121361
- ],
121051
+ "attributes": [
121052
+ {
121053
+ "name": "color",
121054
+ "type": {
121055
+ "text": "'white' | 'milk'"
121056
+ },
121057
+ "default": "'white'",
121058
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
121059
+ "fieldName": "color"
121060
+ },
121061
+ {
121062
+ "name": "mode",
121063
+ "type": {
121064
+ "text": "'side' | 'over'"
121065
+ },
121066
+ "default": "'side'",
121067
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
121068
+ "fieldName": "mode"
121069
+ },
121070
+ {
121071
+ "name": "position",
121072
+ "type": {
121073
+ "text": "'start' | 'end'"
121074
+ },
121075
+ "default": "'start'",
121076
+ "description": "The side that the sidebar is attached to.",
121077
+ "fieldName": "position"
121078
+ },
121079
+ {
121080
+ "name": "opened",
121081
+ "type": {
121082
+ "text": "boolean"
121083
+ },
121084
+ "default": "false",
121085
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
121086
+ "fieldName": "opened"
121087
+ },
121088
+ {
121089
+ "name": "focus-on-open",
121090
+ "type": {
121091
+ "text": "boolean"
121092
+ },
121093
+ "default": "false",
121094
+ "description": "Whether the sidebar should focus the first focusable element automatically when opened.\nDefaults to false in when mode is set to `side`, otherwise defaults to true.\nIf explicitly enabled, focus will be moved into the sidebar in `side` mode as well.",
121095
+ "fieldName": "focusOnOpen"
121096
+ }
121097
+ ],
121098
+ "mixins": [
121099
+ {
121100
+ "name": "SbbAnimationCompleteMixin",
121101
+ "module": "core/mixins.js"
121102
+ }
121103
+ ],
121362
121104
  "superclass": {
121363
- "name": "SbbElement",
121105
+ "name": "SbbOpenCloseBaseElement",
121364
121106
  "module": "core/base-elements.js"
121365
121107
  },
121366
- "tagName": "sbb-sidebar-container",
121367
- "customElement": true
121108
+ "tagName": "sbb-sidebar",
121109
+ "customElement": true,
121110
+ "events": [
121111
+ {
121112
+ "name": "beforeopen",
121113
+ "type": {
121114
+ "text": "Event"
121115
+ },
121116
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
121117
+ "inheritedFrom": {
121118
+ "name": "SbbOpenCloseBaseElement",
121119
+ "module": "core/base-elements/open-close-base-element.js"
121120
+ }
121121
+ },
121122
+ {
121123
+ "name": "open",
121124
+ "type": {
121125
+ "text": "Event"
121126
+ },
121127
+ "description": "Emits whenever the component is opened.",
121128
+ "inheritedFrom": {
121129
+ "name": "SbbOpenCloseBaseElement",
121130
+ "module": "core/base-elements/open-close-base-element.js"
121131
+ }
121132
+ },
121133
+ {
121134
+ "name": "beforeclose",
121135
+ "type": {
121136
+ "text": "Event"
121137
+ },
121138
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
121139
+ "inheritedFrom": {
121140
+ "name": "SbbOpenCloseBaseElement",
121141
+ "module": "core/base-elements/open-close-base-element.js"
121142
+ }
121143
+ },
121144
+ {
121145
+ "name": "close",
121146
+ "type": {
121147
+ "text": "Event"
121148
+ },
121149
+ "description": "Emits whenever the component is closed.",
121150
+ "inheritedFrom": {
121151
+ "name": "SbbOpenCloseBaseElement",
121152
+ "module": "core/base-elements/open-close-base-element.js"
121153
+ }
121154
+ }
121155
+ ]
121368
121156
  }
121369
121157
  ],
121370
121158
  "exports": [
121371
121159
  {
121372
121160
  "kind": "js",
121373
- "name": "SbbSidebarContainerElement",
121161
+ "name": "SbbSidebarElement",
121374
121162
  "declaration": {
121375
- "name": "SbbSidebarContainerElement",
121376
- "module": "sidebar/sidebar-container/sidebar-container.component.js"
121163
+ "name": "SbbSidebarElement",
121164
+ "module": "sidebar/sidebar/sidebar.component.js"
121377
121165
  }
121378
121166
  }
121379
121167
  ]
@@ -122398,6 +122186,218 @@
122398
122186
  }
122399
122187
  ]
122400
122188
  },
122189
+ {
122190
+ "kind": "javascript-module",
122191
+ "path": "sidebar/sidebar-container/sidebar-container.component.js",
122192
+ "declarations": [
122193
+ {
122194
+ "kind": "class",
122195
+ "description": "This is the parent component to one or two `<sbb-sidebar>`s that validates the state internally\nand coordinates the backdrop and content styling.",
122196
+ "name": "SbbSidebarContainerElement",
122197
+ "slots": [
122198
+ {
122199
+ "description": "Use the unnamed slot to add `sbb-sidebar` and `sbb-sidebar-content` elements.",
122200
+ "name": ""
122201
+ }
122202
+ ],
122203
+ "members": [
122204
+ {
122205
+ "kind": "field",
122206
+ "name": "elementName",
122207
+ "type": {
122208
+ "text": "string"
122209
+ },
122210
+ "privacy": "public",
122211
+ "static": true,
122212
+ "readonly": true,
122213
+ "default": "'sbb-sidebar-container'",
122214
+ "inheritedFrom": {
122215
+ "name": "SbbElement",
122216
+ "module": "core/base-elements/element.js"
122217
+ }
122218
+ },
122219
+ {
122220
+ "kind": "field",
122221
+ "name": "sidebars",
122222
+ "type": {
122223
+ "text": "SbbSidebarElement[]"
122224
+ },
122225
+ "privacy": "public",
122226
+ "description": "The sidebar children.",
122227
+ "readonly": true
122228
+ },
122229
+ {
122230
+ "kind": "field",
122231
+ "name": "start",
122232
+ "type": {
122233
+ "text": "SbbSidebarElement | null"
122234
+ },
122235
+ "privacy": "public",
122236
+ "description": "The sidebar child with the `start` position.",
122237
+ "readonly": true
122238
+ },
122239
+ {
122240
+ "kind": "field",
122241
+ "name": "end",
122242
+ "type": {
122243
+ "text": "SbbSidebarElement | null"
122244
+ },
122245
+ "privacy": "public",
122246
+ "description": "The sidebar child with the `end` position.",
122247
+ "readonly": true
122248
+ },
122249
+ {
122250
+ "kind": "field",
122251
+ "name": "_forcedClosedSidebars",
122252
+ "privacy": "private",
122253
+ "default": "new WeakSet<SbbSidebarElement>()"
122254
+ },
122255
+ {
122256
+ "kind": "method",
122257
+ "name": "_handleWidthChange",
122258
+ "privacy": "private",
122259
+ "return": {
122260
+ "type": {
122261
+ "text": "void"
122262
+ }
122263
+ }
122264
+ },
122265
+ {
122266
+ "kind": "method",
122267
+ "name": "_calculateSpaceState",
122268
+ "privacy": "private",
122269
+ "return": {
122270
+ "type": {
122271
+ "text": "Promise<void>"
122272
+ }
122273
+ },
122274
+ "description": "Closes and opens sidebars depending on available width\nof the container and its parent container."
122275
+ },
122276
+ {
122277
+ "kind": "field",
122278
+ "name": "_hydrationRequired",
122279
+ "type": {
122280
+ "text": "boolean"
122281
+ },
122282
+ "privacy": "private",
122283
+ "default": "!!this.shadowRoot",
122284
+ "inheritedFrom": {
122285
+ "name": "SbbElement",
122286
+ "module": "core/base-elements/element.js"
122287
+ }
122288
+ },
122289
+ {
122290
+ "kind": "field",
122291
+ "name": "_hydrationComplete",
122292
+ "privacy": "private",
122293
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
122294
+ "inheritedFrom": {
122295
+ "name": "SbbElement",
122296
+ "module": "core/base-elements/element.js"
122297
+ }
122298
+ },
122299
+ {
122300
+ "kind": "field",
122301
+ "name": "_resolveHydration",
122302
+ "type": {
122303
+ "text": "(hydrationRequired: boolean) => void"
122304
+ },
122305
+ "privacy": "private",
122306
+ "inheritedFrom": {
122307
+ "name": "SbbElement",
122308
+ "module": "core/base-elements/element.js"
122309
+ }
122310
+ },
122311
+ {
122312
+ "kind": "field",
122313
+ "name": "hydrationRequired",
122314
+ "type": {
122315
+ "text": "boolean"
122316
+ },
122317
+ "privacy": "protected",
122318
+ "description": "Returns whether hydration is required and not completed.",
122319
+ "readonly": true,
122320
+ "inheritedFrom": {
122321
+ "name": "SbbElement",
122322
+ "module": "core/base-elements/element.js"
122323
+ },
122324
+ "default": "!!this.shadowRoot"
122325
+ },
122326
+ {
122327
+ "kind": "method",
122328
+ "name": "toggleState",
122329
+ "privacy": "protected",
122330
+ "return": {
122331
+ "type": {
122332
+ "text": "void"
122333
+ }
122334
+ },
122335
+ "parameters": [
122336
+ {
122337
+ "name": "value",
122338
+ "type": {
122339
+ "text": "string"
122340
+ }
122341
+ },
122342
+ {
122343
+ "name": "force",
122344
+ "optional": true,
122345
+ "type": {
122346
+ "text": "boolean"
122347
+ }
122348
+ }
122349
+ ],
122350
+ "inheritedFrom": {
122351
+ "name": "SbbElement",
122352
+ "module": "core/base-elements/element.js"
122353
+ }
122354
+ },
122355
+ {
122356
+ "kind": "field",
122357
+ "name": "['_$sbbElement$']",
122358
+ "type": {
122359
+ "text": "boolean"
122360
+ },
122361
+ "privacy": "public",
122362
+ "static": true,
122363
+ "default": "true",
122364
+ "inheritedFrom": {
122365
+ "name": "SbbElement",
122366
+ "module": "core/base-elements/element.js"
122367
+ }
122368
+ },
122369
+ {
122370
+ "kind": "field",
122371
+ "name": "_controllers",
122372
+ "type": {
122373
+ "text": "Set<SbbReactiveController> | undefined"
122374
+ },
122375
+ "privacy": "private",
122376
+ "inheritedFrom": {
122377
+ "name": "SbbElement",
122378
+ "module": "core/base-elements/element.js"
122379
+ }
122380
+ }
122381
+ ],
122382
+ "superclass": {
122383
+ "name": "SbbElement",
122384
+ "module": "core/base-elements.js"
122385
+ },
122386
+ "tagName": "sbb-sidebar-container",
122387
+ "customElement": true
122388
+ }
122389
+ ],
122390
+ "exports": [
122391
+ {
122392
+ "kind": "js",
122393
+ "name": "SbbSidebarContainerElement",
122394
+ "declaration": {
122395
+ "name": "SbbSidebarContainerElement",
122396
+ "module": "sidebar/sidebar-container/sidebar-container.component.js"
122397
+ }
122398
+ }
122399
+ ]
122400
+ },
122401
122401
  {
122402
122402
  "kind": "javascript-module",
122403
122403
  "path": "sidebar/sidebar-content/sidebar-content.component.js",