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

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 +2081 -2081
  2. package/package.json +2 -2
@@ -87784,85 +87784,115 @@
87784
87784
  },
87785
87785
  {
87786
87786
  "kind": "javascript-module",
87787
- "path": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js",
87787
+ "path": "file-selector/common/file-selector-common.js",
87788
87788
  "declarations": [
87789
+ {
87790
+ "kind": "variable",
87791
+ "name": "fileSelectorCommonStyle"
87792
+ },
87789
87793
  {
87790
87794
  "kind": "class",
87791
- "description": "It acts as a native `summary` tag for the `sbb-expansion-panel` component.",
87792
- "name": "SbbExpansionPanelHeaderElement",
87793
- "slots": [
87795
+ "description": "",
87796
+ "name": "SbbFileSelectorCommonElementMixinType",
87797
+ "members": [
87794
87798
  {
87795
- "description": "Use the unnamed slot to add content to the `sbb-expansion-panel-header`.",
87796
- "name": ""
87799
+ "kind": "field",
87800
+ "name": "size",
87801
+ "type": {
87802
+ "text": "'s' | 'm'"
87803
+ },
87804
+ "privacy": "public"
87797
87805
  },
87798
87806
  {
87799
- "description": "Slot used to render the `sbb-expansion-panel-header` icon.",
87800
- "name": "icon"
87801
- }
87802
- ],
87803
- "members": [
87807
+ "kind": "field",
87808
+ "name": "multiple",
87809
+ "type": {
87810
+ "text": "boolean"
87811
+ },
87812
+ "privacy": "public"
87813
+ },
87804
87814
  {
87805
87815
  "kind": "field",
87806
- "name": "elementName",
87816
+ "name": "multipleMode",
87817
+ "type": {
87818
+ "text": "'default' | 'persistent'"
87819
+ },
87820
+ "privacy": "public"
87821
+ },
87822
+ {
87823
+ "kind": "field",
87824
+ "name": "accept",
87807
87825
  "type": {
87808
87826
  "text": "string"
87809
87827
  },
87810
- "privacy": "public",
87811
- "static": true,
87812
- "readonly": true,
87813
- "inheritedFrom": {
87814
- "name": "SbbElement",
87815
- "module": "core/base-elements/element.js"
87828
+ "privacy": "public"
87829
+ },
87830
+ {
87831
+ "kind": "field",
87832
+ "name": "accessibilityLabel",
87833
+ "type": {
87834
+ "text": "string"
87816
87835
  },
87817
- "default": "'sbb-expansion-panel-header'"
87836
+ "privacy": "public"
87818
87837
  },
87819
87838
  {
87820
87839
  "kind": "field",
87821
- "name": "events",
87822
- "privacy": "public",
87823
- "static": true,
87824
- "readonly": true,
87825
- "default": "{ toggleexpanded: 'toggleexpanded', }",
87840
+ "name": "files",
87826
87841
  "type": {
87827
- "text": "{\n toggleexpanded: 'toggleexpanded',\n }"
87828
- }
87842
+ "text": "Readonly<File>[]"
87843
+ },
87844
+ "privacy": "public"
87829
87845
  },
87830
87846
  {
87831
87847
  "kind": "field",
87832
- "name": "_mediaMatcher",
87833
- "privacy": "private",
87834
- "default": "new SbbMediaMatcherController(this, { [SbbMediaQueryHover]: (m) => (this._isHover = m), })"
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
+ }
87835
87857
  },
87836
87858
  {
87837
87859
  "kind": "field",
87838
- "name": "_isHover",
87860
+ "name": "loadButton",
87839
87861
  "type": {
87840
- "text": "boolean"
87862
+ "text": "SbbSecondaryButtonStaticElement"
87841
87863
  },
87842
- "privacy": "private"
87864
+ "privacy": "protected"
87843
87865
  },
87844
87866
  {
87845
87867
  "kind": "field",
87846
- "name": "_previousSize",
87868
+ "name": "language",
87847
87869
  "type": {
87848
- "text": "string | undefined"
87870
+ "text": "SbbLanguageController"
87849
87871
  },
87850
- "privacy": "private"
87872
+ "privacy": "protected"
87851
87873
  },
87852
87874
  {
87853
87875
  "kind": "method",
87854
- "name": "_emitExpandedEvent",
87855
- "privacy": "private",
87876
+ "name": "renderTemplate",
87877
+ "privacy": "protected",
87856
87878
  "return": {
87857
87879
  "type": {
87858
- "text": "void"
87880
+ "text": "TemplateResult"
87859
87881
  }
87860
- }
87882
+ },
87883
+ "parameters": [
87884
+ {
87885
+ "name": "input",
87886
+ "type": {
87887
+ "text": "TemplateResult"
87888
+ }
87889
+ }
87890
+ ]
87861
87891
  },
87862
87892
  {
87863
87893
  "kind": "method",
87864
- "name": "_onMouseMovement",
87865
- "privacy": "private",
87894
+ "name": "createFileList",
87895
+ "privacy": "protected",
87866
87896
  "return": {
87867
87897
  "type": {
87868
87898
  "text": "void"
@@ -87870,54 +87900,56 @@
87870
87900
  },
87871
87901
  "parameters": [
87872
87902
  {
87873
- "name": "toggleDataAttribute",
87903
+ "name": "files",
87874
87904
  "type": {
87875
- "text": "boolean"
87905
+ "text": "FileList"
87876
87906
  }
87877
87907
  }
87878
87908
  ]
87879
87909
  },
87880
87910
  {
87881
87911
  "kind": "method",
87882
- "name": "_setIconState",
87883
- "privacy": "private",
87912
+ "name": "getButtonLabel",
87913
+ "privacy": "protected",
87884
87914
  "return": {
87885
87915
  "type": {
87886
- "text": "void"
87916
+ "text": "string"
87887
87917
  }
87888
- },
87889
- "description": "The :state(icon) is used by the 'sbb-expansion-panel'.\nIt needs to be set before the"
87918
+ }
87890
87919
  },
87891
87920
  {
87892
87921
  "kind": "method",
87893
- "name": "renderTemplate",
87894
- "privacy": "protected",
87922
+ "name": "formResetCallback",
87923
+ "privacy": "public",
87895
87924
  "return": {
87896
87925
  "type": {
87897
- "text": "TemplateResult"
87926
+ "text": "void"
87898
87927
  }
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"
87904
87928
  }
87905
87929
  },
87906
87930
  {
87907
- "kind": "field",
87908
- "name": "disabledInteractive",
87909
- "type": {
87910
- "text": "boolean"
87911
- },
87931
+ "kind": "method",
87932
+ "name": "formStateRestoreCallback",
87912
87933
  "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
- }
87934
+ "return": {
87935
+ "type": {
87936
+ "text": "void"
87937
+ }
87938
+ },
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
+ ]
87921
87953
  },
87922
87954
  {
87923
87955
  "kind": "field",
@@ -87965,112 +87997,16 @@
87965
87997
  },
87966
87998
  {
87967
87999
  "kind": "field",
87968
- "name": "iconName",
87969
- "type": {
87970
- "text": "string"
87971
- },
87972
- "privacy": "public",
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",
87976
- "inheritedFrom": {
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",
88000
+ "name": "formAssociated",
88049
88001
  "type": {
88050
- "text": "string"
88051
- },
88052
- "privacy": "public",
88053
- "inheritedFrom": {
88054
- "name": "SbbButtonBaseElement",
88055
- "module": "core/base-elements/button-base-element.js"
88002
+ "text": "boolean"
88056
88003
  },
88057
- "default": "''",
88058
- "description": "Value of the form element.",
88059
- "attribute": "value"
88060
- },
88061
- {
88062
- "kind": "field",
88063
- "name": "type",
88064
88004
  "privacy": "public",
88065
- "description": "The type attribute to use for the button.",
88066
- "default": "'button'",
88067
- "type": {
88068
- "text": "SbbButtonType"
88069
- },
88070
- "attribute": "type",
88005
+ "static": true,
88006
+ "default": "true",
88071
88007
  "inheritedFrom": {
88072
- "name": "SbbButtonBaseElement",
88073
- "module": "core/base-elements/button-base-element.js"
88008
+ "name": "SbbFormAssociatedMixin",
88009
+ "module": "core/mixins/form-associated-mixin.js"
88074
88010
  }
88075
88011
  },
88076
88012
  {
@@ -88080,75 +88016,8 @@
88080
88016
  "text": "HTMLFormElement | null"
88081
88017
  },
88082
88018
  "privacy": "public",
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",
88019
+ "description": "Returns the form owner of this element.",
88020
+ "readonly": true,
88152
88021
  "inheritedFrom": {
88153
88022
  "name": "SbbFormAssociatedMixin",
88154
88023
  "module": "core/mixins/form-associated-mixin.js"
@@ -88441,111 +88310,6 @@
88441
88310
  "module": "core/mixins/form-associated-mixin.js"
88442
88311
  }
88443
88312
  },
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
- },
88549
88313
  {
88550
88314
  "kind": "field",
88551
88315
  "name": "_hydrationRequired",
@@ -88641,56 +88405,46 @@
88641
88405
  },
88642
88406
  {
88643
88407
  "kind": "field",
88644
- "name": "_controllers",
88408
+ "name": "elementName",
88645
88409
  "type": {
88646
- "text": "Set<SbbReactiveController> | undefined"
88410
+ "text": "string"
88647
88411
  },
88648
- "privacy": "private",
88412
+ "privacy": "public",
88413
+ "static": true,
88414
+ "readonly": true,
88649
88415
  "inheritedFrom": {
88650
88416
  "name": "SbbElement",
88651
88417
  "module": "core/base-elements/element.js"
88652
88418
  }
88653
- }
88654
- ],
88655
- "events": [
88419
+ },
88656
88420
  {
88657
- "name": "toggleexpanded",
88421
+ "kind": "field",
88422
+ "name": "_controllers",
88658
88423
  "type": {
88659
- "text": "Event"
88424
+ "text": "Set<SbbReactiveController> | undefined"
88660
88425
  },
88661
- "description": "Notifies that the `sbb-expansion-panel` is about to expand/shrink."
88426
+ "privacy": "private",
88427
+ "inheritedFrom": {
88428
+ "name": "SbbElement",
88429
+ "module": "core/base-elements/element.js"
88430
+ }
88662
88431
  }
88663
88432
  ],
88664
88433
  "mixins": [
88665
88434
  {
88666
- "name": "SbbDisabledTabIndexActionMixin",
88435
+ "name": "SbbDisabledMixin",
88667
88436
  "module": "core/mixins.js"
88668
88437
  },
88669
88438
  {
88670
- "name": "SbbIconNameMixin",
88671
- "module": "icon.js"
88439
+ "name": "SbbFormAssociatedMixin",
88440
+ "module": "core/mixins.js"
88672
88441
  }
88673
88442
  ],
88674
88443
  "superclass": {
88675
- "name": "SbbButtonBaseElement",
88444
+ "name": "SbbElement",
88676
88445
  "module": "core/base-elements.js"
88677
88446
  },
88678
- "tagName": "sbb-expansion-panel-header",
88679
- "customElement": true,
88680
88447
  "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
- },
88694
88448
  {
88695
88449
  "name": "disabled",
88696
88450
  "description": "Whether the component is disabled.",
@@ -88705,102 +88459,46 @@
88705
88459
  }
88706
88460
  },
88707
88461
  {
88708
- "name": "icon-name",
88462
+ "name": "name",
88463
+ "description": "Name of the form element. Will be read from name attribute.",
88709
88464
  "type": {
88710
88465
  "text": "string"
88711
88466
  },
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",
88467
+ "fieldName": "name",
88715
88468
  "inheritedFrom": {
88716
- "name": "SbbIconNameMixin",
88717
- "module": "icon/icon-name-mixin.js"
88718
- }
88719
- },
88720
- {
88721
- "name": "value",
88722
- "type": {
88723
- "text": "string"
88724
- },
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
- }
88732
- },
88733
- {
88734
- "name": "type",
88735
- "description": "The type attribute to use for the button.",
88736
- "default": "'button'",
88737
- "type": {
88738
- "text": "SbbButtonType"
88739
- },
88740
- "fieldName": "type",
88741
- "inheritedFrom": {
88742
- "name": "SbbButtonBaseElement",
88743
- "module": "core/base-elements/button-base-element.js"
88744
- }
88745
- },
88746
- {
88747
- "name": "form",
88748
- "description": "The `<form>` element to associate the button with.",
88749
- "type": {
88750
- "text": "HTMLFormElement | null"
88751
- },
88752
- "fieldName": "form",
88753
- "inheritedFrom": {
88754
- "name": "SbbButtonBaseElement",
88755
- "module": "core/base-elements/button-base-element.js"
88756
- }
88757
- },
88758
- {
88759
- "name": "name",
88760
- "description": "Name of the form element. Will be read from name attribute.",
88761
- "type": {
88762
- "text": "string"
88763
- },
88764
- "fieldName": "name",
88765
- "inheritedFrom": {
88766
- "name": "SbbFormAssociatedMixin",
88767
- "module": "core/mixins/form-associated-mixin.js"
88469
+ "name": "SbbFormAssociatedMixin",
88470
+ "module": "core/mixins/form-associated-mixin.js"
88768
88471
  }
88769
88472
  }
88770
88473
  ]
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
88474
  },
88792
88475
  {
88793
- "kind": "class",
88476
+ "kind": "mixin",
88794
88477
  "description": "",
88795
- "name": "SbbFileSelectorCommonElementMixinType",
88478
+ "name": "SbbFileSelectorCommonElementMixin",
88796
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 }"
88489
+ }
88490
+ },
88797
88491
  {
88798
88492
  "kind": "field",
88799
88493
  "name": "size",
88800
88494
  "type": {
88801
88495
  "text": "'s' | 'm'"
88802
88496
  },
88803
- "privacy": "public"
88497
+ "privacy": "public",
88498
+ "description": "Size variant, either s or m.",
88499
+ "default": "'m' / 's' (lean)",
88500
+ "attribute": "size",
88501
+ "reflects": true
88804
88502
  },
88805
88503
  {
88806
88504
  "kind": "field",
@@ -88808,7 +88506,10 @@
88808
88506
  "type": {
88809
88507
  "text": "boolean"
88810
88508
  },
88811
- "privacy": "public"
88509
+ "privacy": "public",
88510
+ "default": "false",
88511
+ "description": "Whether more than one file can be selected.",
88512
+ "attribute": "multiple"
88812
88513
  },
88813
88514
  {
88814
88515
  "kind": "field",
@@ -88816,7 +88517,10 @@
88816
88517
  "type": {
88817
88518
  "text": "'default' | 'persistent'"
88818
88519
  },
88819
- "privacy": "public"
88520
+ "privacy": "public",
88521
+ "default": "'default'",
88522
+ "description": "Whether the newly added files should override the previously added ones.",
88523
+ "attribute": "multiple-mode"
88820
88524
  },
88821
88525
  {
88822
88526
  "kind": "field",
@@ -88824,7 +88528,10 @@
88824
88528
  "type": {
88825
88529
  "text": "string"
88826
88530
  },
88827
- "privacy": "public"
88531
+ "privacy": "public",
88532
+ "default": "''",
88533
+ "description": "A comma-separated list of allowed unique file type specifiers.",
88534
+ "attribute": "accept"
88828
88535
  },
88829
88536
  {
88830
88537
  "kind": "field",
@@ -88832,27 +88539,77 @@
88832
88539
  "type": {
88833
88540
  "text": "string"
88834
88541
  },
88835
- "privacy": "public"
88542
+ "privacy": "public",
88543
+ "default": "''",
88544
+ "description": "This will be forwarded as aria-label to the native input element.",
88545
+ "attribute": "accessibility-label"
88546
+ },
88547
+ {
88548
+ "kind": "field",
88549
+ "name": "value",
88550
+ "type": {
88551
+ "text": "string | null"
88552
+ },
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
+ }
88836
88559
  },
88837
88560
  {
88838
88561
  "kind": "field",
88839
88562
  "name": "files",
88563
+ "privacy": "public",
88564
+ "description": "The list of selected files.",
88565
+ "type": {
88566
+ "text": "Readonly<File>[]"
88567
+ }
88568
+ },
88569
+ {
88570
+ "kind": "field",
88571
+ "name": "_files",
88840
88572
  "type": {
88841
88573
  "text": "Readonly<File>[]"
88842
88574
  },
88843
- "privacy": "public"
88575
+ "privacy": "private",
88576
+ "default": "[]"
88844
88577
  },
88845
88578
  {
88846
88579
  "kind": "field",
88847
- "name": "value",
88580
+ "name": "type",
88848
88581
  "type": {
88849
- "text": "string | null"
88582
+ "text": "string"
88850
88583
  },
88851
88584
  "privacy": "public",
88852
- "inheritedFrom": {
88853
- "name": "SbbFormAssociatedMixin",
88854
- "module": "core/mixins/form-associated-mixin.js"
88855
- }
88585
+ "description": "Form type of element.",
88586
+ "default": "'file'",
88587
+ "readonly": true
88588
+ },
88589
+ {
88590
+ "kind": "field",
88591
+ "name": "_hiddenInput",
88592
+ "type": {
88593
+ "text": "HTMLInputElement"
88594
+ },
88595
+ "privacy": "private"
88596
+ },
88597
+ {
88598
+ "kind": "field",
88599
+ "name": "_suffixes",
88600
+ "type": {
88601
+ "text": "string[]"
88602
+ },
88603
+ "privacy": "private",
88604
+ "default": "['B', 'kB', 'MB', 'GB', 'TB']"
88605
+ },
88606
+ {
88607
+ "kind": "field",
88608
+ "name": "_liveRegion",
88609
+ "type": {
88610
+ "text": "HTMLParagraphElement"
88611
+ },
88612
+ "privacy": "private"
88856
88613
  },
88857
88614
  {
88858
88615
  "kind": "field",
@@ -88865,10 +88622,25 @@
88865
88622
  {
88866
88623
  "kind": "field",
88867
88624
  "name": "language",
88625
+ "privacy": "protected",
88626
+ "default": "new SbbLanguageController(this)"
88627
+ },
88628
+ {
88629
+ "kind": "field",
88630
+ "name": "_counter",
88868
88631
  "type": {
88869
- "text": "SbbLanguageController"
88632
+ "text": "number"
88870
88633
  },
88871
- "privacy": "protected"
88634
+ "privacy": "private",
88635
+ "default": "0"
88636
+ },
88637
+ {
88638
+ "kind": "field",
88639
+ "name": "_dragTarget",
88640
+ "type": {
88641
+ "text": "HTMLElement | undefined"
88642
+ },
88643
+ "privacy": "private"
88872
88644
  },
88873
88645
  {
88874
88646
  "kind": "method",
@@ -88888,6 +88660,118 @@
88888
88660
  }
88889
88661
  ]
88890
88662
  },
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
+ },
88891
88775
  {
88892
88776
  "kind": "method",
88893
88777
  "name": "createFileList",
@@ -88918,8 +88802,26 @@
88918
88802
  },
88919
88803
  {
88920
88804
  "kind": "method",
88921
- "name": "formResetCallback",
88922
- "privacy": "public",
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",
88923
88825
  "return": {
88924
88826
  "type": {
88925
88827
  "text": "void"
@@ -88928,8 +88830,47 @@
88928
88830
  },
88929
88831
  {
88930
88832
  "kind": "method",
88931
- "name": "formStateRestoreCallback",
88932
- "privacy": "public",
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",
88854
+ "return": {
88855
+ "type": {
88856
+ "text": "void"
88857
+ }
88858
+ }
88859
+ },
88860
+ {
88861
+ "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",
88933
88874
  "return": {
88934
88875
  "type": {
88935
88876
  "text": "void"
@@ -88937,15 +88878,89 @@
88937
88878
  },
88938
88879
  "parameters": [
88939
88880
  {
88940
- "name": "state",
88881
+ "name": "event",
88941
88882
  "type": {
88942
- "text": "FormRestoreState | null"
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",
88946
+ "return": {
88947
+ "type": {
88948
+ "text": "void"
88949
+ }
88950
+ },
88951
+ "parameters": [
88952
+ {
88953
+ "name": "dragTarget",
88954
+ "default": "undefined",
88955
+ "type": {
88956
+ "text": "HTMLElement | undefined"
88943
88957
  }
88944
88958
  },
88945
88959
  {
88946
- "name": "reason",
88960
+ "name": "isDragEnter",
88961
+ "default": "false",
88947
88962
  "type": {
88948
- "text": "FormRestoreReason"
88963
+ "text": "boolean"
88949
88964
  }
88950
88965
  }
88951
88966
  ]
@@ -89169,21 +89184,6 @@
89169
89184
  "module": "core/mixins/form-associated-mixin.js"
89170
89185
  }
89171
89186
  },
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,361 +89308,221 @@
89308
89308
  "name": "SbbFormAssociatedMixin",
89309
89309
  "module": "core/mixins/form-associated-mixin.js"
89310
89310
  }
89311
- },
89311
+ }
89312
+ ],
89313
+ "events": [
89312
89314
  {
89313
- "kind": "field",
89314
- "name": "_hydrationRequired",
89315
+ "name": "input",
89315
89316
  "type": {
89316
- "text": "boolean"
89317
+ "text": "InputEvent"
89317
89318
  },
89318
- "privacy": "private",
89319
- "default": "!!this.shadowRoot",
89320
- "inheritedFrom": {
89321
- "name": "SbbElement",
89322
- "module": "core/base-elements/element.js"
89323
- }
89324
- },
89325
- {
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
- }
89319
+ "description": "The input event fires when the value has been changed as a direct result of a user action."
89334
89320
  },
89335
89321
  {
89336
- "kind": "field",
89337
- "name": "_resolveHydration",
89322
+ "name": "change",
89338
89323
  "type": {
89339
- "text": "(hydrationRequired: boolean) => void"
89324
+ "text": "Event"
89340
89325
  },
89341
- "privacy": "private",
89342
- "inheritedFrom": {
89343
- "name": "SbbElement",
89344
- "module": "core/base-elements/element.js"
89345
- }
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."
89346
89327
  },
89347
89328
  {
89348
- "kind": "field",
89349
- "name": "hydrationRequired",
89329
+ "name": "filechanged",
89350
89330
  "type": {
89351
- "text": "boolean"
89331
+ "text": "CustomEvent<Readonly<File>[]>"
89352
89332
  },
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"
89359
- },
89360
- "default": "!!this.shadowRoot"
89361
- },
89362
- {
89363
- "kind": "method",
89364
- "name": "toggleState",
89365
- "privacy": "protected",
89366
- "return": {
89367
- "type": {
89368
- "text": "void"
89369
- }
89370
- },
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
- }
89390
- },
89391
- {
89392
- "kind": "field",
89393
- "name": "['_$sbbElement$']",
89394
- "type": {
89395
- "text": "boolean"
89396
- },
89397
- "privacy": "public",
89398
- "static": true,
89399
- "default": "true",
89400
- "inheritedFrom": {
89401
- "name": "SbbElement",
89402
- "module": "core/base-elements/element.js"
89403
- }
89404
- },
89405
- {
89406
- "kind": "field",
89407
- "name": "elementName",
89408
- "type": {
89409
- "text": "string"
89410
- },
89411
- "privacy": "public",
89412
- "static": true,
89413
- "readonly": true,
89414
- "inheritedFrom": {
89415
- "name": "SbbElement",
89416
- "module": "core/base-elements/element.js"
89417
- }
89418
- },
89419
- {
89420
- "kind": "field",
89421
- "name": "_controllers",
89422
- "type": {
89423
- "text": "Set<SbbReactiveController> | undefined"
89424
- },
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"
89436
- },
89437
- {
89438
- "name": "SbbFormAssociatedMixin",
89439
- "module": "core/mixins.js"
89333
+ "description": "An event which is emitted each time the file list changes."
89440
89334
  }
89441
89335
  ],
89442
- "superclass": {
89443
- "name": "SbbElement",
89444
- "module": "core/base-elements.js"
89445
- },
89446
89336
  "attributes": [
89447
89337
  {
89448
- "name": "disabled",
89449
- "description": "Whether the component is disabled.",
89450
- "default": "false",
89451
- "type": {
89452
- "text": "boolean"
89453
- },
89454
- "fieldName": "disabled",
89455
- "inheritedFrom": {
89456
- "name": "SbbDisabledMixin",
89457
- "module": "core/mixins/disabled-mixin.js"
89458
- }
89459
- },
89460
- {
89461
- "name": "name",
89462
- "description": "Name of the form element. Will be read from name attribute.",
89463
- "type": {
89464
- "text": "string"
89465
- },
89466
- "fieldName": "name",
89467
- "inheritedFrom": {
89468
- "name": "SbbFormAssociatedMixin",
89469
- "module": "core/mixins/form-associated-mixin.js"
89470
- }
89471
- }
89472
- ]
89473
- },
89474
- {
89475
- "kind": "mixin",
89476
- "description": "",
89477
- "name": "SbbFileSelectorCommonElementMixin",
89478
- "members": [
89479
- {
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
- }
89489
- },
89490
- {
89491
- "kind": "field",
89492
89338
  "name": "size",
89493
89339
  "type": {
89494
89340
  "text": "'s' | 'm'"
89495
89341
  },
89496
- "privacy": "public",
89497
89342
  "description": "Size variant, either s or m.",
89498
89343
  "default": "'m' / 's' (lean)",
89499
- "attribute": "size",
89500
- "reflects": true
89344
+ "fieldName": "size"
89501
89345
  },
89502
89346
  {
89503
- "kind": "field",
89504
89347
  "name": "multiple",
89505
89348
  "type": {
89506
89349
  "text": "boolean"
89507
89350
  },
89508
- "privacy": "public",
89509
89351
  "default": "false",
89510
89352
  "description": "Whether more than one file can be selected.",
89511
- "attribute": "multiple"
89353
+ "fieldName": "multiple"
89512
89354
  },
89513
89355
  {
89514
- "kind": "field",
89515
- "name": "multipleMode",
89356
+ "name": "multiple-mode",
89516
89357
  "type": {
89517
89358
  "text": "'default' | 'persistent'"
89518
89359
  },
89519
- "privacy": "public",
89520
89360
  "default": "'default'",
89521
89361
  "description": "Whether the newly added files should override the previously added ones.",
89522
- "attribute": "multiple-mode"
89362
+ "fieldName": "multipleMode"
89523
89363
  },
89524
89364
  {
89525
- "kind": "field",
89526
89365
  "name": "accept",
89527
89366
  "type": {
89528
89367
  "text": "string"
89529
89368
  },
89530
- "privacy": "public",
89531
89369
  "default": "''",
89532
89370
  "description": "A comma-separated list of allowed unique file type specifiers.",
89533
- "attribute": "accept"
89371
+ "fieldName": "accept"
89534
89372
  },
89535
89373
  {
89536
- "kind": "field",
89537
- "name": "accessibilityLabel",
89374
+ "name": "accessibility-label",
89538
89375
  "type": {
89539
89376
  "text": "string"
89540
89377
  },
89541
- "privacy": "public",
89542
89378
  "default": "''",
89543
89379
  "description": "This will be forwarded as aria-label to the native input element.",
89544
- "attribute": "accessibility-label"
89380
+ "fieldName": "accessibilityLabel"
89545
89381
  },
89546
89382
  {
89547
- "kind": "field",
89548
- "name": "value",
89383
+ "name": "disabled",
89384
+ "description": "Whether the component is disabled.",
89385
+ "default": "false",
89549
89386
  "type": {
89550
- "text": "string | null"
89387
+ "text": "boolean"
89551
89388
  },
89552
- "privacy": "public",
89553
- "description": "The path of the first selected file. Empty string ('') if no file is selected",
89389
+ "fieldName": "disabled",
89554
89390
  "inheritedFrom": {
89555
- "name": "SbbFormAssociatedMixin",
89556
- "module": "core/mixins/form-associated-mixin.js"
89391
+ "name": "SbbDisabledMixin",
89392
+ "module": "core/mixins/disabled-mixin.js"
89557
89393
  }
89558
89394
  },
89559
89395
  {
89560
- "kind": "field",
89561
- "name": "files",
89562
- "privacy": "public",
89563
- "description": "The list of selected files.",
89396
+ "name": "name",
89397
+ "description": "Name of the form element. Will be read from name attribute.",
89564
89398
  "type": {
89565
- "text": "Readonly<File>[]"
89399
+ "text": "string"
89400
+ },
89401
+ "fieldName": "name",
89402
+ "inheritedFrom": {
89403
+ "name": "SbbFormAssociatedMixin",
89404
+ "module": "core/mixins/form-associated-mixin.js"
89566
89405
  }
89406
+ }
89407
+ ],
89408
+ "mixins": [
89409
+ {
89410
+ "name": "SbbDisabledMixin",
89411
+ "module": "core/mixins.js"
89567
89412
  },
89568
89413
  {
89569
- "kind": "field",
89570
- "name": "_files",
89414
+ "name": "SbbFormAssociatedMixin",
89415
+ "module": "core/mixins.js"
89416
+ }
89417
+ ],
89418
+ "parameters": [
89419
+ {
89420
+ "name": "superclass",
89571
89421
  "type": {
89572
- "text": "Readonly<File>[]"
89573
- },
89574
- "privacy": "private",
89575
- "default": "[]"
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": [
89464
+ {
89465
+ "description": "Use the unnamed slot to add content to the `sbb-expansion-panel-header`.",
89466
+ "name": ""
89576
89467
  },
89468
+ {
89469
+ "description": "Slot used to render the `sbb-expansion-panel-header` icon.",
89470
+ "name": "icon"
89471
+ }
89472
+ ],
89473
+ "members": [
89577
89474
  {
89578
89475
  "kind": "field",
89579
- "name": "type",
89476
+ "name": "elementName",
89580
89477
  "type": {
89581
89478
  "text": "string"
89582
89479
  },
89583
89480
  "privacy": "public",
89584
- "description": "Form type of element.",
89585
- "default": "'file'",
89586
- "readonly": true
89481
+ "static": true,
89482
+ "readonly": true,
89483
+ "inheritedFrom": {
89484
+ "name": "SbbElement",
89485
+ "module": "core/base-elements/element.js"
89486
+ },
89487
+ "default": "'sbb-expansion-panel-header'"
89587
89488
  },
89588
89489
  {
89589
89490
  "kind": "field",
89590
- "name": "_hiddenInput",
89491
+ "name": "events",
89492
+ "privacy": "public",
89493
+ "static": true,
89494
+ "readonly": true,
89495
+ "default": "{ toggleexpanded: 'toggleexpanded', }",
89591
89496
  "type": {
89592
- "text": "HTMLInputElement"
89593
- },
89594
- "privacy": "private"
89497
+ "text": "{\n toggleexpanded: 'toggleexpanded',\n }"
89498
+ }
89595
89499
  },
89596
89500
  {
89597
89501
  "kind": "field",
89598
- "name": "_suffixes",
89599
- "type": {
89600
- "text": "string[]"
89601
- },
89502
+ "name": "_mediaMatcher",
89602
89503
  "privacy": "private",
89603
- "default": "['B', 'kB', 'MB', 'GB', 'TB']"
89504
+ "default": "new SbbMediaMatcherController(this, { [SbbMediaQueryHover]: (m) => (this._isHover = m), })"
89604
89505
  },
89605
89506
  {
89606
89507
  "kind": "field",
89607
- "name": "_liveRegion",
89508
+ "name": "_isHover",
89608
89509
  "type": {
89609
- "text": "HTMLParagraphElement"
89510
+ "text": "boolean"
89610
89511
  },
89611
89512
  "privacy": "private"
89612
89513
  },
89613
89514
  {
89614
89515
  "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
- },
89633
- "privacy": "private",
89634
- "default": "0"
89635
- },
89636
- {
89637
- "kind": "field",
89638
- "name": "_dragTarget",
89516
+ "name": "_previousSize",
89639
89517
  "type": {
89640
- "text": "HTMLElement | undefined"
89518
+ "text": "string | undefined"
89641
89519
  },
89642
89520
  "privacy": "private"
89643
89521
  },
89644
89522
  {
89645
89523
  "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",
89524
+ "name": "_emitExpandedEvent",
89525
+ "privacy": "private",
89666
89526
  "return": {
89667
89527
  "type": {
89668
89528
  "text": "void"
@@ -89671,8 +89531,8 @@
89671
89531
  },
89672
89532
  {
89673
89533
  "kind": "method",
89674
- "name": "formStateRestoreCallback",
89675
- "privacy": "public",
89534
+ "name": "_onMouseMovement",
89535
+ "privacy": "private",
89676
89536
  "return": {
89677
89537
  "type": {
89678
89538
  "text": "void"
@@ -89680,267 +89540,248 @@
89680
89540
  },
89681
89541
  "parameters": [
89682
89542
  {
89683
- "name": "state",
89684
- "type": {
89685
- "text": "FormRestoreState | null"
89686
- }
89687
- },
89688
- {
89689
- "name": "_reason",
89690
- "optional": true,
89543
+ "name": "toggleDataAttribute",
89691
89544
  "type": {
89692
- "text": "FormRestoreReason"
89545
+ "text": "boolean"
89693
89546
  }
89694
89547
  }
89695
89548
  ]
89696
89549
  },
89697
89550
  {
89698
89551
  "kind": "method",
89699
- "name": "updateFormValue",
89700
- "privacy": "protected",
89552
+ "name": "_setIconState",
89553
+ "privacy": "private",
89701
89554
  "return": {
89702
89555
  "type": {
89703
89556
  "text": "void"
89704
89557
  }
89705
89558
  },
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
- }
89559
+ "description": "The :state(icon) is used by the 'sbb-expansion-panel'.\nIt needs to be set before the"
89711
89560
  },
89712
89561
  {
89713
89562
  "kind": "method",
89714
- "name": "_checkFileEquality",
89715
- "privacy": "private",
89563
+ "name": "renderTemplate",
89564
+ "privacy": "protected",
89716
89565
  "return": {
89717
89566
  "type": {
89718
- "text": "boolean"
89567
+ "text": "TemplateResult"
89719
89568
  }
89720
89569
  },
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
- ]
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
+ }
89735
89575
  },
89736
89576
  {
89737
- "kind": "method",
89738
- "name": "_onFocus",
89739
- "privacy": "private",
89740
- "return": {
89741
- "type": {
89742
- "text": "void"
89743
- }
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"
89744
89590
  }
89745
89591
  },
89746
89592
  {
89747
- "kind": "method",
89748
- "name": "_onBlur",
89749
- "privacy": "private",
89750
- "return": {
89751
- "type": {
89752
- "text": "void"
89753
- }
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"
89754
89606
  }
89755
89607
  },
89756
89608
  {
89757
- "kind": "method",
89758
- "name": "_readFiles",
89609
+ "kind": "field",
89610
+ "name": "#disabled",
89759
89611
  "privacy": "private",
89760
- "return": {
89761
- "type": {
89762
- "text": "void"
89763
- }
89612
+ "type": {
89613
+ "text": "boolean"
89764
89614
  },
89765
- "parameters": [
89766
- {
89767
- "name": "event",
89768
- "type": {
89769
- "text": "Event"
89770
- }
89771
- }
89772
- ]
89615
+ "default": "false",
89616
+ "inheritedFrom": {
89617
+ "name": "SbbDisabledMixin",
89618
+ "module": "core/mixins/disabled-mixin.js"
89619
+ }
89773
89620
  },
89774
89621
  {
89775
89622
  "kind": "method",
89776
- "name": "createFileList",
89623
+ "name": "isDisabledExternally",
89777
89624
  "privacy": "protected",
89778
89625
  "return": {
89779
89626
  "type": {
89780
- "text": "void"
89627
+ "text": "boolean"
89781
89628
  }
89782
89629
  },
89783
- "parameters": [
89784
- {
89785
- "name": "files",
89786
- "type": {
89787
- "text": "FileList"
89788
- }
89789
- }
89790
- ]
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"
89634
+ }
89791
89635
  },
89792
89636
  {
89793
- "kind": "method",
89794
- "name": "getButtonLabel",
89795
- "privacy": "protected",
89796
- "return": {
89797
- "type": {
89798
- "text": "string"
89799
- }
89637
+ "kind": "field",
89638
+ "name": "iconName",
89639
+ "type": {
89640
+ "text": "string"
89641
+ },
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"
89800
89649
  }
89801
89650
  },
89802
89651
  {
89803
89652
  "kind": "method",
89804
- "name": "_removeFile",
89805
- "privacy": "private",
89653
+ "name": "renderIconSlot",
89654
+ "privacy": "protected",
89806
89655
  "return": {
89807
89656
  "type": {
89808
- "text": "void"
89657
+ "text": "TemplateResult"
89809
89658
  }
89810
89659
  },
89811
89660
  "parameters": [
89812
89661
  {
89813
- "name": "file",
89662
+ "name": "classname",
89663
+ "optional": true,
89814
89664
  "type": {
89815
- "text": "Readonly<File>"
89665
+ "text": "string"
89816
89666
  }
89817
89667
  }
89818
- ]
89668
+ ],
89669
+ "inheritedFrom": {
89670
+ "name": "SbbIconNameMixin",
89671
+ "module": "icon/icon-name-mixin.js"
89672
+ }
89819
89673
  },
89820
89674
  {
89821
89675
  "kind": "method",
89822
- "name": "_dispatchFileChangedEvent",
89823
- "privacy": "private",
89676
+ "name": "renderIconName",
89677
+ "privacy": "protected",
89824
89678
  "return": {
89825
89679
  "type": {
89826
- "text": "void"
89680
+ "text": "string"
89827
89681
  }
89682
+ },
89683
+ "inheritedFrom": {
89684
+ "name": "SbbIconNameMixin",
89685
+ "module": "icon/icon-name-mixin.js"
89828
89686
  }
89829
89687
  },
89830
89688
  {
89831
89689
  "kind": "method",
89832
- "name": "_formatFileSize",
89690
+ "name": "_renderIconName",
89833
89691
  "privacy": "private",
89834
89692
  "return": {
89835
89693
  "type": {
89836
89694
  "text": "string"
89837
89695
  }
89838
89696
  },
89839
- "parameters": [
89840
- {
89841
- "name": "size",
89842
- "type": {
89843
- "text": "number"
89844
- }
89845
- }
89846
- ],
89847
- "description": "Calculates the correct unit for the file's size."
89697
+ "inheritedFrom": {
89698
+ "name": "SbbIconNameMixin",
89699
+ "module": "icon/icon-name-mixin.js"
89700
+ }
89848
89701
  },
89849
89702
  {
89850
- "kind": "method",
89851
- "name": "_updateA11yLiveRegion",
89703
+ "kind": "field",
89704
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
89705
+ "type": {
89706
+ "text": "array"
89707
+ },
89852
89708
  "privacy": "private",
89853
- "return": {
89854
- "type": {
89855
- "text": "void"
89856
- }
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"
89857
89714
  }
89858
89715
  },
89859
89716
  {
89860
- "kind": "method",
89861
- "name": "_renderFileList",
89862
- "privacy": "private",
89863
- "return": {
89864
- "type": {
89865
- "text": "TemplateResult"
89866
- }
89867
- }
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"
89868
89730
  },
89869
89731
  {
89870
- "kind": "method",
89871
- "name": "_onDragEnter",
89872
- "privacy": "private",
89873
- "return": {
89874
- "type": {
89875
- "text": "void"
89876
- }
89732
+ "kind": "field",
89733
+ "name": "type",
89734
+ "privacy": "public",
89735
+ "description": "The type attribute to use for the button.",
89736
+ "default": "'button'",
89737
+ "type": {
89738
+ "text": "SbbButtonType"
89877
89739
  },
89878
- "parameters": [
89879
- {
89880
- "name": "event",
89881
- "type": {
89882
- "text": "DragEvent"
89883
- }
89884
- }
89885
- ]
89740
+ "attribute": "type",
89741
+ "inheritedFrom": {
89742
+ "name": "SbbButtonBaseElement",
89743
+ "module": "core/base-elements/button-base-element.js"
89744
+ }
89886
89745
  },
89887
89746
  {
89888
- "kind": "method",
89889
- "name": "_onDragLeave",
89890
- "privacy": "private",
89891
- "return": {
89892
- "type": {
89893
- "text": "void"
89894
- }
89747
+ "kind": "field",
89748
+ "name": "form",
89749
+ "type": {
89750
+ "text": "HTMLFormElement | null"
89895
89751
  },
89896
- "parameters": [
89897
- {
89898
- "name": "event",
89899
- "type": {
89900
- "text": "DragEvent"
89901
- }
89902
- }
89903
- ]
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"
89904
89759
  },
89905
89760
  {
89906
- "kind": "method",
89907
- "name": "_onFileDrop",
89908
- "privacy": "private",
89909
- "return": {
89910
- "type": {
89911
- "text": "void"
89912
- }
89761
+ "kind": "field",
89762
+ "name": "_formId",
89763
+ "type": {
89764
+ "text": "string"
89913
89765
  },
89914
- "parameters": [
89915
- {
89916
- "name": "event",
89917
- "type": {
89918
- "text": "DragEvent"
89919
- }
89920
- }
89921
- ]
89766
+ "privacy": "private",
89767
+ "default": "''",
89768
+ "inheritedFrom": {
89769
+ "name": "SbbButtonBaseElement",
89770
+ "module": "core/base-elements/button-base-element.js"
89771
+ }
89922
89772
  },
89923
89773
  {
89924
- "kind": "method",
89925
- "name": "_blockEvent",
89774
+ "kind": "field",
89775
+ "name": "_handleButtonClick",
89926
89776
  "privacy": "private",
89927
- "return": {
89928
- "type": {
89929
- "text": "void"
89930
- }
89931
- },
89932
- "parameters": [
89933
- {
89934
- "name": "event",
89935
- "type": {
89936
- "text": "DragEvent"
89937
- }
89938
- }
89939
- ]
89777
+ "inheritedFrom": {
89778
+ "name": "SbbButtonBaseElement",
89779
+ "module": "core/base-elements/button-base-element.js"
89780
+ }
89940
89781
  },
89941
89782
  {
89942
89783
  "kind": "method",
89943
- "name": "_setDragState",
89784
+ "name": "_requestSubmit",
89944
89785
  "privacy": "private",
89945
89786
  "return": {
89946
89787
  "type": {
@@ -89949,63 +89790,24 @@
89949
89790
  },
89950
89791
  "parameters": [
89951
89792
  {
89952
- "name": "dragTarget",
89953
- "default": "undefined",
89954
- "type": {
89955
- "text": "HTMLElement | undefined"
89956
- }
89957
- },
89958
- {
89959
- "name": "isDragEnter",
89960
- "default": "false",
89793
+ "name": "form",
89961
89794
  "type": {
89962
- "text": "boolean"
89795
+ "text": "HTMLFormElement"
89963
89796
  }
89964
89797
  }
89965
- ]
89966
- },
89967
- {
89968
- "kind": "field",
89969
- "name": "disabled",
89970
- "privacy": "public",
89971
- "description": "Whether the component is disabled.",
89972
- "default": "false",
89973
- "type": {
89974
- "text": "boolean"
89975
- },
89976
- "attribute": "disabled",
89977
- "reflects": true,
89798
+ ],
89978
89799
  "inheritedFrom": {
89979
- "name": "SbbDisabledMixin",
89980
- "module": "core/mixins/disabled-mixin.js"
89800
+ "name": "SbbButtonBaseElement",
89801
+ "module": "core/base-elements/button-base-element.js"
89981
89802
  }
89982
89803
  },
89983
89804
  {
89984
89805
  "kind": "field",
89985
- "name": "#disabled",
89806
+ "name": "_formKeyDown",
89986
89807
  "privacy": "private",
89987
- "type": {
89988
- "text": "boolean"
89989
- },
89990
- "default": "false",
89991
89808
  "inheritedFrom": {
89992
- "name": "SbbDisabledMixin",
89993
- "module": "core/mixins/disabled-mixin.js"
89994
- }
89995
- },
89996
- {
89997
- "kind": "method",
89998
- "name": "isDisabledExternally",
89999
- "privacy": "protected",
90000
- "return": {
90001
- "type": {
90002
- "text": "boolean"
90003
- }
90004
- },
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.",
90006
- "inheritedFrom": {
90007
- "name": "SbbDisabledMixin",
90008
- "module": "core/mixins/disabled-mixin.js"
89809
+ "name": "SbbButtonBaseElement",
89810
+ "module": "core/base-elements/button-base-element.js"
90009
89811
  }
90010
89812
  },
90011
89813
  {
@@ -90022,20 +89824,6 @@
90022
89824
  "module": "core/mixins/form-associated-mixin.js"
90023
89825
  }
90024
89826
  },
90025
- {
90026
- "kind": "field",
90027
- "name": "form",
90028
- "type": {
90029
- "text": "HTMLFormElement | null"
90030
- },
90031
- "privacy": "public",
90032
- "description": "Returns the form owner of this element.",
90033
- "readonly": true,
90034
- "inheritedFrom": {
90035
- "name": "SbbFormAssociatedMixin",
90036
- "module": "core/mixins/form-associated-mixin.js"
90037
- }
90038
- },
90039
89827
  {
90040
89828
  "kind": "field",
90041
89829
  "name": "name",
@@ -90183,6 +89971,21 @@
90183
89971
  "module": "core/mixins/form-associated-mixin.js"
90184
89972
  }
90185
89973
  },
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
+ },
90186
89989
  {
90187
89990
  "kind": "method",
90188
89991
  "name": "formState",
@@ -90307,76 +90110,256 @@
90307
90110
  "name": "SbbFormAssociatedMixin",
90308
90111
  "module": "core/mixins/form-associated-mixin.js"
90309
90112
  }
90310
- }
90311
- ],
90312
- "events": [
90113
+ },
90313
90114
  {
90314
- "name": "input",
90115
+ "kind": "field",
90116
+ "name": "role",
90315
90117
  "type": {
90316
- "text": "InputEvent"
90118
+ "text": "ElementInternals['role']"
90317
90119
  },
90318
- "description": "The input event fires when the value has been changed as a direct result of a user action."
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
+ }
90319
90128
  },
90320
90129
  {
90321
- "name": "change",
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
+ },
90179
+ {
90180
+ "kind": "field",
90181
+ "name": "maybeDisabled",
90322
90182
  "type": {
90323
- "text": "Event"
90183
+ "text": "boolean | undefined"
90324
90184
  },
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."
90185
+ "privacy": "protected",
90186
+ "readonly": true,
90187
+ "inheritedFrom": {
90188
+ "name": "SbbActionBaseElement",
90189
+ "module": "core/base-elements/action-base-element.js"
90190
+ }
90326
90191
  },
90327
90192
  {
90328
- "name": "filechanged",
90193
+ "kind": "field",
90194
+ "name": "maybeDisabledInteractive",
90329
90195
  "type": {
90330
- "text": "CustomEvent<Readonly<File>[]>"
90196
+ "text": "boolean | undefined"
90331
90197
  },
90332
- "description": "An event which is emitted each time the file list changes."
90333
- }
90334
- ],
90335
- "attributes": [
90198
+ "privacy": "protected",
90199
+ "readonly": true,
90200
+ "inheritedFrom": {
90201
+ "name": "SbbActionBaseElement",
90202
+ "module": "core/base-elements/action-base-element.js"
90203
+ }
90204
+ },
90336
90205
  {
90337
- "name": "size",
90206
+ "kind": "method",
90207
+ "name": "setupBaseEventHandlers",
90208
+ "privacy": "protected",
90209
+ "return": {
90210
+ "type": {
90211
+ "text": "void"
90212
+ }
90213
+ },
90214
+ "inheritedFrom": {
90215
+ "name": "SbbActionBaseElement",
90216
+ "module": "core/base-elements/action-base-element.js"
90217
+ }
90218
+ },
90219
+ {
90220
+ "kind": "field",
90221
+ "name": "_hydrationRequired",
90338
90222
  "type": {
90339
- "text": "'s' | 'm'"
90223
+ "text": "boolean"
90340
90224
  },
90341
- "description": "Size variant, either s or m.",
90342
- "default": "'m' / 's' (lean)",
90343
- "fieldName": "size"
90225
+ "privacy": "private",
90226
+ "default": "!!this.shadowRoot",
90227
+ "inheritedFrom": {
90228
+ "name": "SbbElement",
90229
+ "module": "core/base-elements/element.js"
90230
+ }
90344
90231
  },
90345
90232
  {
90346
- "name": "multiple",
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
+ },
90242
+ {
90243
+ "kind": "field",
90244
+ "name": "_resolveHydration",
90245
+ "type": {
90246
+ "text": "(hydrationRequired: boolean) => void"
90247
+ },
90248
+ "privacy": "private",
90249
+ "inheritedFrom": {
90250
+ "name": "SbbElement",
90251
+ "module": "core/base-elements/element.js"
90252
+ }
90253
+ },
90254
+ {
90255
+ "kind": "field",
90256
+ "name": "hydrationRequired",
90347
90257
  "type": {
90348
90258
  "text": "boolean"
90349
90259
  },
90350
- "default": "false",
90351
- "description": "Whether more than one file can be selected.",
90352
- "fieldName": "multiple"
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"
90353
90268
  },
90354
90269
  {
90355
- "name": "multiple-mode",
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
+ }
90297
+ },
90298
+ {
90299
+ "kind": "field",
90300
+ "name": "['_$sbbElement$']",
90356
90301
  "type": {
90357
- "text": "'default' | 'persistent'"
90302
+ "text": "boolean"
90358
90303
  },
90359
- "default": "'default'",
90360
- "description": "Whether the newly added files should override the previously added ones.",
90361
- "fieldName": "multipleMode"
90304
+ "privacy": "public",
90305
+ "static": true,
90306
+ "default": "true",
90307
+ "inheritedFrom": {
90308
+ "name": "SbbElement",
90309
+ "module": "core/base-elements/element.js"
90310
+ }
90362
90311
  },
90363
90312
  {
90364
- "name": "accept",
90313
+ "kind": "field",
90314
+ "name": "_controllers",
90365
90315
  "type": {
90366
- "text": "string"
90316
+ "text": "Set<SbbReactiveController> | undefined"
90367
90317
  },
90368
- "default": "''",
90369
- "description": "A comma-separated list of allowed unique file type specifiers.",
90370
- "fieldName": "accept"
90318
+ "privacy": "private",
90319
+ "inheritedFrom": {
90320
+ "name": "SbbElement",
90321
+ "module": "core/base-elements/element.js"
90322
+ }
90323
+ }
90324
+ ],
90325
+ "events": [
90326
+ {
90327
+ "name": "toggleexpanded",
90328
+ "type": {
90329
+ "text": "Event"
90330
+ },
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"
90371
90338
  },
90372
90339
  {
90373
- "name": "accessibility-label",
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",
90374
90353
  "type": {
90375
- "text": "string"
90354
+ "text": "boolean"
90376
90355
  },
90377
- "default": "''",
90378
- "description": "This will be forwarded as aria-label to the native input element.",
90379
- "fieldName": "accessibilityLabel"
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
+ }
90380
90363
  },
90381
90364
  {
90382
90365
  "name": "disabled",
@@ -90392,33 +90375,66 @@
90392
90375
  }
90393
90376
  },
90394
90377
  {
90395
- "name": "name",
90396
- "description": "Name of the form element. Will be read from name attribute.",
90378
+ "name": "icon-name",
90397
90379
  "type": {
90398
90380
  "text": "string"
90399
90381
  },
90400
- "fieldName": "name",
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",
90401
90385
  "inheritedFrom": {
90402
- "name": "SbbFormAssociatedMixin",
90403
- "module": "core/mixins/form-associated-mixin.js"
90386
+ "name": "SbbIconNameMixin",
90387
+ "module": "icon/icon-name-mixin.js"
90404
90388
  }
90405
- }
90406
- ],
90407
- "mixins": [
90389
+ },
90408
90390
  {
90409
- "name": "SbbDisabledMixin",
90410
- "module": "core/mixins.js"
90391
+ "name": "value",
90392
+ "type": {
90393
+ "text": "string"
90394
+ },
90395
+ "default": "''",
90396
+ "description": "Value of the form element.",
90397
+ "fieldName": "value",
90398
+ "inheritedFrom": {
90399
+ "name": "SbbButtonBaseElement",
90400
+ "module": "core/base-elements/button-base-element.js"
90401
+ }
90411
90402
  },
90412
90403
  {
90413
- "name": "SbbFormAssociatedMixin",
90414
- "module": "core/mixins.js"
90415
- }
90416
- ],
90417
- "parameters": [
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
+ }
90415
+ },
90418
90416
  {
90419
- "name": "superclass",
90417
+ "name": "form",
90418
+ "description": "The `<form>` element to associate the button with.",
90420
90419
  "type": {
90421
- "text": "T"
90420
+ "text": "HTMLFormElement | null"
90421
+ },
90422
+ "fieldName": "form",
90423
+ "inheritedFrom": {
90424
+ "name": "SbbButtonBaseElement",
90425
+ "module": "core/base-elements/button-base-element.js"
90426
+ }
90427
+ },
90428
+ {
90429
+ "name": "name",
90430
+ "description": "Name of the form element. Will be read from name attribute.",
90431
+ "type": {
90432
+ "text": "string"
90433
+ },
90434
+ "fieldName": "name",
90435
+ "inheritedFrom": {
90436
+ "name": "SbbFormAssociatedMixin",
90437
+ "module": "core/mixins/form-associated-mixin.js"
90422
90438
  }
90423
90439
  }
90424
90440
  ]
@@ -90427,26 +90443,10 @@
90427
90443
  "exports": [
90428
90444
  {
90429
90445
  "kind": "js",
90430
- "name": "fileSelectorCommonStyle",
90431
- "declaration": {
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",
90446
+ "name": "SbbExpansionPanelHeaderElement",
90447
90447
  "declaration": {
90448
- "name": "SbbFileSelectorCommonElementMixin",
90449
- "module": "file-selector/common/file-selector-common.js"
90448
+ "name": "SbbExpansionPanelHeaderElement",
90449
+ "module": "expansion-panel/expansion-panel-header/expansion-panel-header.component.js"
90450
90450
  }
90451
90451
  }
90452
90452
  ]
@@ -99487,168 +99487,13 @@
99487
99487
  },
99488
99488
  {
99489
99489
  "kind": "field",
99490
- "name": "end",
99491
- "type": {
99492
- "text": "SbbIconSidebarElement | null"
99493
- },
99494
- "privacy": "public",
99495
- "description": "The icon-sidebar child at the end position.",
99496
- "readonly": true
99497
- },
99498
- {
99499
- "kind": "field",
99500
- "name": "_hydrationRequired",
99501
- "type": {
99502
- "text": "boolean"
99503
- },
99504
- "privacy": "private",
99505
- "default": "!!this.shadowRoot",
99506
- "inheritedFrom": {
99507
- "name": "SbbElement",
99508
- "module": "core/base-elements/element.js"
99509
- }
99510
- },
99511
- {
99512
- "kind": "field",
99513
- "name": "_hydrationComplete",
99514
- "privacy": "private",
99515
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
99516
- "inheritedFrom": {
99517
- "name": "SbbElement",
99518
- "module": "core/base-elements/element.js"
99519
- }
99520
- },
99521
- {
99522
- "kind": "field",
99523
- "name": "_resolveHydration",
99524
- "type": {
99525
- "text": "(hydrationRequired: boolean) => void"
99526
- },
99527
- "privacy": "private",
99528
- "inheritedFrom": {
99529
- "name": "SbbElement",
99530
- "module": "core/base-elements/element.js"
99531
- }
99532
- },
99533
- {
99534
- "kind": "field",
99535
- "name": "hydrationRequired",
99536
- "type": {
99537
- "text": "boolean"
99538
- },
99539
- "privacy": "protected",
99540
- "description": "Returns whether hydration is required and not completed.",
99541
- "readonly": true,
99542
- "inheritedFrom": {
99543
- "name": "SbbElement",
99544
- "module": "core/base-elements/element.js"
99545
- },
99546
- "default": "!!this.shadowRoot"
99547
- },
99548
- {
99549
- "kind": "method",
99550
- "name": "toggleState",
99551
- "privacy": "protected",
99552
- "return": {
99553
- "type": {
99554
- "text": "void"
99555
- }
99556
- },
99557
- "parameters": [
99558
- {
99559
- "name": "value",
99560
- "type": {
99561
- "text": "string"
99562
- }
99563
- },
99564
- {
99565
- "name": "force",
99566
- "optional": true,
99567
- "type": {
99568
- "text": "boolean"
99569
- }
99570
- }
99571
- ],
99572
- "inheritedFrom": {
99573
- "name": "SbbElement",
99574
- "module": "core/base-elements/element.js"
99575
- }
99576
- },
99577
- {
99578
- "kind": "field",
99579
- "name": "['_$sbbElement$']",
99580
- "type": {
99581
- "text": "boolean"
99582
- },
99583
- "privacy": "public",
99584
- "static": true,
99585
- "default": "true",
99586
- "inheritedFrom": {
99587
- "name": "SbbElement",
99588
- "module": "core/base-elements/element.js"
99589
- }
99590
- },
99591
- {
99592
- "kind": "field",
99593
- "name": "_controllers",
99594
- "type": {
99595
- "text": "Set<SbbReactiveController> | undefined"
99596
- },
99597
- "privacy": "private",
99598
- "inheritedFrom": {
99599
- "name": "SbbElement",
99600
- "module": "core/base-elements/element.js"
99601
- }
99602
- }
99603
- ],
99604
- "superclass": {
99605
- "name": "SbbElement",
99606
- "module": "core/base-elements.js"
99607
- },
99608
- "tagName": "sbb-icon-sidebar-container",
99609
- "customElement": true
99610
- }
99611
- ],
99612
- "exports": [
99613
- {
99614
- "kind": "js",
99615
- "name": "SbbIconSidebarContainerElement",
99616
- "declaration": {
99617
- "name": "SbbIconSidebarContainerElement",
99618
- "module": "icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js"
99619
- }
99620
- }
99621
- ]
99622
- },
99623
- {
99624
- "kind": "javascript-module",
99625
- "path": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js",
99626
- "declarations": [
99627
- {
99628
- "kind": "class",
99629
- "description": "Container for the icon sidebar content. Intended to be placed inside an `sbb-icon-sidebar-container` element.",
99630
- "name": "SbbIconSidebarContentElement",
99631
- "slots": [
99632
- {
99633
- "description": "Use the unnamed slot to add any content elements.",
99634
- "name": ""
99635
- }
99636
- ],
99637
- "members": [
99638
- {
99639
- "kind": "field",
99640
- "name": "elementName",
99641
- "type": {
99642
- "text": "string"
99643
- },
99644
- "privacy": "public",
99645
- "static": true,
99646
- "readonly": true,
99647
- "default": "'sbb-icon-sidebar-content'",
99648
- "inheritedFrom": {
99649
- "name": "SbbElement",
99650
- "module": "core/base-elements/element.js"
99651
- }
99490
+ "name": "end",
99491
+ "type": {
99492
+ "text": "SbbIconSidebarElement | null"
99493
+ },
99494
+ "privacy": "public",
99495
+ "description": "The icon-sidebar child at the end position.",
99496
+ "readonly": true
99652
99497
  },
99653
99498
  {
99654
99499
  "kind": "field",
@@ -99760,33 +99605,33 @@
99760
99605
  "name": "SbbElement",
99761
99606
  "module": "core/base-elements.js"
99762
99607
  },
99763
- "tagName": "sbb-icon-sidebar-content",
99608
+ "tagName": "sbb-icon-sidebar-container",
99764
99609
  "customElement": true
99765
99610
  }
99766
99611
  ],
99767
99612
  "exports": [
99768
99613
  {
99769
99614
  "kind": "js",
99770
- "name": "SbbIconSidebarContentElement",
99615
+ "name": "SbbIconSidebarContainerElement",
99771
99616
  "declaration": {
99772
- "name": "SbbIconSidebarContentElement",
99773
- "module": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js"
99617
+ "name": "SbbIconSidebarContainerElement",
99618
+ "module": "icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js"
99774
99619
  }
99775
99620
  }
99776
99621
  ]
99777
99622
  },
99778
99623
  {
99779
99624
  "kind": "javascript-module",
99780
- "path": "icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js",
99625
+ "path": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js",
99781
99626
  "declarations": [
99782
99627
  {
99783
99628
  "kind": "class",
99784
- "description": "Link to be placed inside `sbb-icon-sidebar`.",
99785
- "name": "SbbIconSidebarLinkElement",
99629
+ "description": "Container for the icon sidebar content. Intended to be placed inside an `sbb-icon-sidebar-container` element.",
99630
+ "name": "SbbIconSidebarContentElement",
99786
99631
  "slots": [
99787
99632
  {
99788
- "description": "Slot used to display the icon.",
99789
- "name": "icon"
99633
+ "description": "Use the unnamed slot to add any content elements.",
99634
+ "name": ""
99790
99635
  }
99791
99636
  ],
99792
99637
  "members": [
@@ -99799,280 +99644,10 @@
99799
99644
  "privacy": "public",
99800
99645
  "static": true,
99801
99646
  "readonly": true,
99647
+ "default": "'sbb-icon-sidebar-content'",
99802
99648
  "inheritedFrom": {
99803
99649
  "name": "SbbElement",
99804
99650
  "module": "core/base-elements/element.js"
99805
- },
99806
- "default": "'sbb-icon-sidebar-link'"
99807
- },
99808
- {
99809
- "kind": "method",
99810
- "name": "renderTemplate",
99811
- "privacy": "protected",
99812
- "return": {
99813
- "type": {
99814
- "text": "TemplateResult"
99815
- }
99816
- },
99817
- "description": "Override this method to render the component template.",
99818
- "inheritedFrom": {
99819
- "name": "SbbActionBaseElement",
99820
- "module": "core/base-elements/action-base-element.js"
99821
- }
99822
- },
99823
- {
99824
- "kind": "field",
99825
- "name": "iconName",
99826
- "type": {
99827
- "text": "string"
99828
- },
99829
- "privacy": "public",
99830
- "default": "''",
99831
- "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.",
99832
- "attribute": "icon-name",
99833
- "inheritedFrom": {
99834
- "name": "SbbIconNameMixin",
99835
- "module": "icon/icon-name-mixin.js"
99836
- }
99837
- },
99838
- {
99839
- "kind": "method",
99840
- "name": "renderIconSlot",
99841
- "privacy": "protected",
99842
- "return": {
99843
- "type": {
99844
- "text": "TemplateResult"
99845
- }
99846
- },
99847
- "parameters": [
99848
- {
99849
- "name": "classname",
99850
- "optional": true,
99851
- "type": {
99852
- "text": "string"
99853
- }
99854
- }
99855
- ],
99856
- "inheritedFrom": {
99857
- "name": "SbbIconNameMixin",
99858
- "module": "icon/icon-name-mixin.js"
99859
- }
99860
- },
99861
- {
99862
- "kind": "method",
99863
- "name": "renderIconName",
99864
- "privacy": "protected",
99865
- "return": {
99866
- "type": {
99867
- "text": "string"
99868
- }
99869
- },
99870
- "inheritedFrom": {
99871
- "name": "SbbIconNameMixin",
99872
- "module": "icon/icon-name-mixin.js"
99873
- }
99874
- },
99875
- {
99876
- "kind": "method",
99877
- "name": "_renderIconName",
99878
- "privacy": "private",
99879
- "return": {
99880
- "type": {
99881
- "text": "string"
99882
- }
99883
- },
99884
- "inheritedFrom": {
99885
- "name": "SbbIconNameMixin",
99886
- "module": "icon/icon-name-mixin.js"
99887
- }
99888
- },
99889
- {
99890
- "kind": "field",
99891
- "name": "href",
99892
- "type": {
99893
- "text": "string"
99894
- },
99895
- "privacy": "public",
99896
- "default": "''",
99897
- "description": "The href value you want to link to.",
99898
- "attribute": "href",
99899
- "reflects": true,
99900
- "inheritedFrom": {
99901
- "name": "SbbLinkBaseElement",
99902
- "module": "core/base-elements/link-base-element.js"
99903
- }
99904
- },
99905
- {
99906
- "kind": "field",
99907
- "name": "target",
99908
- "type": {
99909
- "text": "LinkTargetType | string"
99910
- },
99911
- "privacy": "public",
99912
- "default": "''",
99913
- "description": "Where to display the linked URL.",
99914
- "attribute": "target",
99915
- "reflects": true,
99916
- "inheritedFrom": {
99917
- "name": "SbbLinkBaseElement",
99918
- "module": "core/base-elements/link-base-element.js"
99919
- }
99920
- },
99921
- {
99922
- "kind": "field",
99923
- "name": "rel",
99924
- "type": {
99925
- "text": "string"
99926
- },
99927
- "privacy": "public",
99928
- "default": "''",
99929
- "description": "The relationship of the linked URL as space-separated link types.",
99930
- "attribute": "rel",
99931
- "reflects": true,
99932
- "inheritedFrom": {
99933
- "name": "SbbLinkBaseElement",
99934
- "module": "core/base-elements/link-base-element.js"
99935
- }
99936
- },
99937
- {
99938
- "kind": "field",
99939
- "name": "download",
99940
- "type": {
99941
- "text": "boolean"
99942
- },
99943
- "privacy": "public",
99944
- "default": "false",
99945
- "description": "Whether the browser will show the download dialog on click.",
99946
- "attribute": "download",
99947
- "reflects": true,
99948
- "inheritedFrom": {
99949
- "name": "SbbLinkBaseElement",
99950
- "module": "core/base-elements/link-base-element.js"
99951
- }
99952
- },
99953
- {
99954
- "kind": "field",
99955
- "name": "accessibilityLabel",
99956
- "type": {
99957
- "text": "string"
99958
- },
99959
- "privacy": "public",
99960
- "default": "''",
99961
- "description": "This will be forwarded as aria-label to the inner anchor element.",
99962
- "attribute": "accessibility-label",
99963
- "inheritedFrom": {
99964
- "name": "SbbLinkBaseElement",
99965
- "module": "core/base-elements/link-base-element.js"
99966
- }
99967
- },
99968
- {
99969
- "kind": "field",
99970
- "name": "accessibilityCurrent",
99971
- "type": {
99972
- "text": "string"
99973
- },
99974
- "privacy": "public",
99975
- "default": "''",
99976
- "description": "This will be forwarded as aria-current to the inner anchor element.",
99977
- "attribute": "accessibility-current",
99978
- "inheritedFrom": {
99979
- "name": "SbbLinkBaseElement",
99980
- "module": "core/base-elements/link-base-element.js"
99981
- }
99982
- },
99983
- {
99984
- "kind": "field",
99985
- "name": "language",
99986
- "privacy": "protected",
99987
- "default": "new SbbLanguageController(this)",
99988
- "inheritedFrom": {
99989
- "name": "SbbLinkBaseElement",
99990
- "module": "core/base-elements/link-base-element.js"
99991
- }
99992
- },
99993
- {
99994
- "kind": "field",
99995
- "name": "anchorRole",
99996
- "type": {
99997
- "text": "string | null"
99998
- },
99999
- "privacy": "protected",
100000
- "readonly": true,
100001
- "default": "null",
100002
- "inheritedFrom": {
100003
- "name": "SbbLinkBaseElement",
100004
- "module": "core/base-elements/link-base-element.js"
100005
- }
100006
- },
100007
- {
100008
- "kind": "field",
100009
- "name": "_evaluateRelAttribute",
100010
- "privacy": "private",
100011
- "inheritedFrom": {
100012
- "name": "SbbLinkBaseElement",
100013
- "module": "core/base-elements/link-base-element.js"
100014
- }
100015
- },
100016
- {
100017
- "kind": "method",
100018
- "name": "renderLink",
100019
- "privacy": "protected",
100020
- "return": {
100021
- "type": {
100022
- "text": "TemplateResult"
100023
- }
100024
- },
100025
- "parameters": [
100026
- {
100027
- "name": "renderContent",
100028
- "type": {
100029
- "text": "TemplateResult"
100030
- }
100031
- }
100032
- ],
100033
- "inheritedFrom": {
100034
- "name": "SbbLinkBaseElement",
100035
- "module": "core/base-elements/link-base-element.js"
100036
- }
100037
- },
100038
- {
100039
- "kind": "field",
100040
- "name": "maybeDisabled",
100041
- "type": {
100042
- "text": "boolean | undefined"
100043
- },
100044
- "privacy": "protected",
100045
- "readonly": true,
100046
- "inheritedFrom": {
100047
- "name": "SbbActionBaseElement",
100048
- "module": "core/base-elements/action-base-element.js"
100049
- }
100050
- },
100051
- {
100052
- "kind": "field",
100053
- "name": "maybeDisabledInteractive",
100054
- "type": {
100055
- "text": "boolean | undefined"
100056
- },
100057
- "privacy": "protected",
100058
- "readonly": true,
100059
- "inheritedFrom": {
100060
- "name": "SbbActionBaseElement",
100061
- "module": "core/base-elements/action-base-element.js"
100062
- }
100063
- },
100064
- {
100065
- "kind": "method",
100066
- "name": "setupBaseEventHandlers",
100067
- "privacy": "protected",
100068
- "return": {
100069
- "type": {
100070
- "text": "void"
100071
- }
100072
- },
100073
- "inheritedFrom": {
100074
- "name": "SbbActionBaseElement",
100075
- "module": "core/base-elements/action-base-element.js"
100076
99651
  }
100077
99652
  },
100078
99653
  {
@@ -100181,139 +99756,36 @@
100181
99756
  }
100182
99757
  }
100183
99758
  ],
100184
- "mixins": [
100185
- {
100186
- "name": "SbbIconNameMixin",
100187
- "module": "icon.js"
100188
- }
100189
- ],
100190
99759
  "superclass": {
100191
- "name": "SbbLinkBaseElement",
99760
+ "name": "SbbElement",
100192
99761
  "module": "core/base-elements.js"
100193
99762
  },
100194
- "tagName": "sbb-icon-sidebar-link",
100195
- "customElement": true,
100196
- "attributes": [
100197
- {
100198
- "name": "icon-name",
100199
- "type": {
100200
- "text": "string"
100201
- },
100202
- "default": "''",
100203
- "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.",
100204
- "fieldName": "iconName",
100205
- "inheritedFrom": {
100206
- "name": "SbbIconNameMixin",
100207
- "module": "icon/icon-name-mixin.js"
100208
- }
100209
- },
100210
- {
100211
- "name": "href",
100212
- "type": {
100213
- "text": "string"
100214
- },
100215
- "default": "''",
100216
- "description": "The href value you want to link to.",
100217
- "fieldName": "href",
100218
- "inheritedFrom": {
100219
- "name": "SbbLinkBaseElement",
100220
- "module": "core/base-elements/link-base-element.js"
100221
- }
100222
- },
100223
- {
100224
- "name": "target",
100225
- "type": {
100226
- "text": "LinkTargetType | string"
100227
- },
100228
- "default": "''",
100229
- "description": "Where to display the linked URL.",
100230
- "fieldName": "target",
100231
- "inheritedFrom": {
100232
- "name": "SbbLinkBaseElement",
100233
- "module": "core/base-elements/link-base-element.js"
100234
- }
100235
- },
100236
- {
100237
- "name": "rel",
100238
- "type": {
100239
- "text": "string"
100240
- },
100241
- "default": "''",
100242
- "description": "The relationship of the linked URL as space-separated link types.",
100243
- "fieldName": "rel",
100244
- "inheritedFrom": {
100245
- "name": "SbbLinkBaseElement",
100246
- "module": "core/base-elements/link-base-element.js"
100247
- }
100248
- },
100249
- {
100250
- "name": "download",
100251
- "type": {
100252
- "text": "boolean"
100253
- },
100254
- "default": "false",
100255
- "description": "Whether the browser will show the download dialog on click.",
100256
- "fieldName": "download",
100257
- "inheritedFrom": {
100258
- "name": "SbbLinkBaseElement",
100259
- "module": "core/base-elements/link-base-element.js"
100260
- }
100261
- },
100262
- {
100263
- "name": "accessibility-label",
100264
- "type": {
100265
- "text": "string"
100266
- },
100267
- "default": "''",
100268
- "description": "This will be forwarded as aria-label to the inner anchor element.",
100269
- "fieldName": "accessibilityLabel",
100270
- "inheritedFrom": {
100271
- "name": "SbbLinkBaseElement",
100272
- "module": "core/base-elements/link-base-element.js"
100273
- }
100274
- },
100275
- {
100276
- "name": "accessibility-current",
100277
- "type": {
100278
- "text": "string"
100279
- },
100280
- "default": "''",
100281
- "description": "This will be forwarded as aria-current to the inner anchor element.",
100282
- "fieldName": "accessibilityCurrent",
100283
- "inheritedFrom": {
100284
- "name": "SbbLinkBaseElement",
100285
- "module": "core/base-elements/link-base-element.js"
100286
- }
100287
- }
100288
- ]
99763
+ "tagName": "sbb-icon-sidebar-content",
99764
+ "customElement": true
100289
99765
  }
100290
99766
  ],
100291
99767
  "exports": [
100292
99768
  {
100293
99769
  "kind": "js",
100294
- "name": "SbbIconSidebarLinkElement",
99770
+ "name": "SbbIconSidebarContentElement",
100295
99771
  "declaration": {
100296
- "name": "SbbIconSidebarLinkElement",
100297
- "module": "icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js"
99772
+ "name": "SbbIconSidebarContentElement",
99773
+ "module": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js"
100298
99774
  }
100299
99775
  }
100300
99776
  ]
100301
99777
  },
100302
99778
  {
100303
99779
  "kind": "javascript-module",
100304
- "path": "link/block-link/block-link.component.js",
99780
+ "path": "icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js",
100305
99781
  "declarations": [
100306
99782
  {
100307
99783
  "kind": "class",
100308
- "description": "It displays a link enhanced with the SBB Design.",
100309
- "name": "SbbBlockLinkElement",
99784
+ "description": "Link to be placed inside `sbb-icon-sidebar`.",
99785
+ "name": "SbbIconSidebarLinkElement",
100310
99786
  "slots": [
100311
99787
  {
100312
- "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
100313
- "name": ""
100314
- },
100315
- {
100316
- "description": "Slot used to display the icon, if one is set.",
99788
+ "description": "Slot used to display the icon.",
100317
99789
  "name": "icon"
100318
99790
  }
100319
99791
  ],
@@ -100331,37 +99803,7 @@
100331
99803
  "name": "SbbElement",
100332
99804
  "module": "core/base-elements/element.js"
100333
99805
  },
100334
- "default": "'sbb-block-link'"
100335
- },
100336
- {
100337
- "kind": "field",
100338
- "name": "styles",
100339
- "type": {
100340
- "text": "CSSResultGroup"
100341
- },
100342
- "privacy": "public",
100343
- "static": true,
100344
- "default": "[super.styles, unsafeCSS(blockStyle)]",
100345
- "inheritedFrom": {
100346
- "name": "SbbLinkCommonElementMixin",
100347
- "module": "link/common/link-common.js"
100348
- }
100349
- },
100350
- {
100351
- "kind": "field",
100352
- "name": "iconPlacement",
100353
- "type": {
100354
- "text": "SbbIconPlacement"
100355
- },
100356
- "privacy": "public",
100357
- "default": "'start'",
100358
- "description": "Moves the icon to the end of the component if set to true.",
100359
- "attribute": "icon-placement",
100360
- "reflects": true,
100361
- "inheritedFrom": {
100362
- "name": "SbbBlockLinkCommonElementMixin",
100363
- "module": "link/common/block-link-common.js"
100364
- }
99806
+ "default": "'sbb-icon-sidebar-link'"
100365
99807
  },
100366
99808
  {
100367
99809
  "kind": "method",
@@ -100378,22 +99820,6 @@
100378
99820
  "module": "core/base-elements/action-base-element.js"
100379
99821
  }
100380
99822
  },
100381
- {
100382
- "kind": "field",
100383
- "name": "size",
100384
- "type": {
100385
- "text": "SbbLinkSize"
100386
- },
100387
- "privacy": "public",
100388
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
100389
- "default": "'s' / 'xs' (lean)",
100390
- "attribute": "size",
100391
- "reflects": true,
100392
- "inheritedFrom": {
100393
- "name": "SbbLinkCommonElementMixin",
100394
- "module": "link/common/link-common.js"
100395
- }
100396
- },
100397
99823
  {
100398
99824
  "kind": "field",
100399
99825
  "name": "iconName",
@@ -100460,50 +99886,6 @@
100460
99886
  "module": "icon/icon-name-mixin.js"
100461
99887
  }
100462
99888
  },
100463
- {
100464
- "kind": "field",
100465
- "name": "disabled",
100466
- "privacy": "public",
100467
- "description": "Whether the component is disabled.",
100468
- "default": "false",
100469
- "type": {
100470
- "text": "boolean"
100471
- },
100472
- "attribute": "disabled",
100473
- "reflects": true,
100474
- "inheritedFrom": {
100475
- "name": "SbbDisabledMixin",
100476
- "module": "core/mixins/disabled-mixin.js"
100477
- }
100478
- },
100479
- {
100480
- "kind": "field",
100481
- "name": "#disabled",
100482
- "privacy": "private",
100483
- "type": {
100484
- "text": "boolean"
100485
- },
100486
- "default": "false",
100487
- "inheritedFrom": {
100488
- "name": "SbbDisabledMixin",
100489
- "module": "core/mixins/disabled-mixin.js"
100490
- }
100491
- },
100492
- {
100493
- "kind": "method",
100494
- "name": "isDisabledExternally",
100495
- "privacy": "protected",
100496
- "return": {
100497
- "type": {
100498
- "text": "boolean"
100499
- }
100500
- },
100501
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
100502
- "inheritedFrom": {
100503
- "name": "SbbDisabledMixin",
100504
- "module": "core/mixins/disabled-mixin.js"
100505
- }
100506
- },
100507
99889
  {
100508
99890
  "kind": "field",
100509
99891
  "name": "href",
@@ -100801,47 +100183,17 @@
100801
100183
  ],
100802
100184
  "mixins": [
100803
100185
  {
100804
- "name": "SbbBlockLinkCommonElementMixin",
100805
- "module": "link/common/block-link-common.js"
100806
- },
100807
- {
100808
- "name": "SbbDisabledMixin",
100809
- "module": "core/mixins.js"
100186
+ "name": "SbbIconNameMixin",
100187
+ "module": "icon.js"
100810
100188
  }
100811
100189
  ],
100812
100190
  "superclass": {
100813
100191
  "name": "SbbLinkBaseElement",
100814
100192
  "module": "core/base-elements.js"
100815
100193
  },
100816
- "tagName": "sbb-block-link",
100194
+ "tagName": "sbb-icon-sidebar-link",
100817
100195
  "customElement": true,
100818
100196
  "attributes": [
100819
- {
100820
- "name": "icon-placement",
100821
- "type": {
100822
- "text": "SbbIconPlacement"
100823
- },
100824
- "default": "'start'",
100825
- "description": "Moves the icon to the end of the component if set to true.",
100826
- "fieldName": "iconPlacement",
100827
- "inheritedFrom": {
100828
- "name": "SbbBlockLinkCommonElementMixin",
100829
- "module": "link/common/block-link-common.js"
100830
- }
100831
- },
100832
- {
100833
- "name": "size",
100834
- "type": {
100835
- "text": "SbbLinkSize"
100836
- },
100837
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
100838
- "default": "'s' / 'xs' (lean)",
100839
- "fieldName": "size",
100840
- "inheritedFrom": {
100841
- "name": "SbbLinkCommonElementMixin",
100842
- "module": "link/common/link-common.js"
100843
- }
100844
- },
100845
100197
  {
100846
100198
  "name": "icon-name",
100847
100199
  "type": {
@@ -100855,19 +100207,6 @@
100855
100207
  "module": "icon/icon-name-mixin.js"
100856
100208
  }
100857
100209
  },
100858
- {
100859
- "name": "disabled",
100860
- "description": "Whether the component is disabled.",
100861
- "default": "false",
100862
- "type": {
100863
- "text": "boolean"
100864
- },
100865
- "fieldName": "disabled",
100866
- "inheritedFrom": {
100867
- "name": "SbbDisabledMixin",
100868
- "module": "core/mixins/disabled-mixin.js"
100869
- }
100870
- },
100871
100210
  {
100872
100211
  "name": "href",
100873
100212
  "type": {
@@ -100952,25 +100291,25 @@
100952
100291
  "exports": [
100953
100292
  {
100954
100293
  "kind": "js",
100955
- "name": "SbbBlockLinkElement",
100294
+ "name": "SbbIconSidebarLinkElement",
100956
100295
  "declaration": {
100957
- "name": "SbbBlockLinkElement",
100958
- "module": "link/block-link/block-link.component.js"
100296
+ "name": "SbbIconSidebarLinkElement",
100297
+ "module": "icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js"
100959
100298
  }
100960
100299
  }
100961
100300
  ]
100962
100301
  },
100963
100302
  {
100964
100303
  "kind": "javascript-module",
100965
- "path": "link/block-link-static/block-link-static.component.js",
100304
+ "path": "link/block-link/block-link.component.js",
100966
100305
  "declarations": [
100967
100306
  {
100968
100307
  "kind": "class",
100969
- "description": "It displays a static link enhanced with the SBB Design.",
100970
- "name": "SbbBlockLinkStaticElement",
100308
+ "description": "It displays a link enhanced with the SBB Design.",
100309
+ "name": "SbbBlockLinkElement",
100971
100310
  "slots": [
100972
100311
  {
100973
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
100312
+ "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
100974
100313
  "name": ""
100975
100314
  },
100976
100315
  {
@@ -100992,7 +100331,7 @@
100992
100331
  "name": "SbbElement",
100993
100332
  "module": "core/base-elements/element.js"
100994
100333
  },
100995
- "default": "'sbb-block-link-static'"
100334
+ "default": "'sbb-block-link'"
100996
100335
  },
100997
100336
  {
100998
100337
  "kind": "field",
@@ -101165,6 +100504,155 @@
101165
100504
  "module": "core/mixins/disabled-mixin.js"
101166
100505
  }
101167
100506
  },
100507
+ {
100508
+ "kind": "field",
100509
+ "name": "href",
100510
+ "type": {
100511
+ "text": "string"
100512
+ },
100513
+ "privacy": "public",
100514
+ "default": "''",
100515
+ "description": "The href value you want to link to.",
100516
+ "attribute": "href",
100517
+ "reflects": true,
100518
+ "inheritedFrom": {
100519
+ "name": "SbbLinkBaseElement",
100520
+ "module": "core/base-elements/link-base-element.js"
100521
+ }
100522
+ },
100523
+ {
100524
+ "kind": "field",
100525
+ "name": "target",
100526
+ "type": {
100527
+ "text": "LinkTargetType | string"
100528
+ },
100529
+ "privacy": "public",
100530
+ "default": "''",
100531
+ "description": "Where to display the linked URL.",
100532
+ "attribute": "target",
100533
+ "reflects": true,
100534
+ "inheritedFrom": {
100535
+ "name": "SbbLinkBaseElement",
100536
+ "module": "core/base-elements/link-base-element.js"
100537
+ }
100538
+ },
100539
+ {
100540
+ "kind": "field",
100541
+ "name": "rel",
100542
+ "type": {
100543
+ "text": "string"
100544
+ },
100545
+ "privacy": "public",
100546
+ "default": "''",
100547
+ "description": "The relationship of the linked URL as space-separated link types.",
100548
+ "attribute": "rel",
100549
+ "reflects": true,
100550
+ "inheritedFrom": {
100551
+ "name": "SbbLinkBaseElement",
100552
+ "module": "core/base-elements/link-base-element.js"
100553
+ }
100554
+ },
100555
+ {
100556
+ "kind": "field",
100557
+ "name": "download",
100558
+ "type": {
100559
+ "text": "boolean"
100560
+ },
100561
+ "privacy": "public",
100562
+ "default": "false",
100563
+ "description": "Whether the browser will show the download dialog on click.",
100564
+ "attribute": "download",
100565
+ "reflects": true,
100566
+ "inheritedFrom": {
100567
+ "name": "SbbLinkBaseElement",
100568
+ "module": "core/base-elements/link-base-element.js"
100569
+ }
100570
+ },
100571
+ {
100572
+ "kind": "field",
100573
+ "name": "accessibilityLabel",
100574
+ "type": {
100575
+ "text": "string"
100576
+ },
100577
+ "privacy": "public",
100578
+ "default": "''",
100579
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
100580
+ "attribute": "accessibility-label",
100581
+ "inheritedFrom": {
100582
+ "name": "SbbLinkBaseElement",
100583
+ "module": "core/base-elements/link-base-element.js"
100584
+ }
100585
+ },
100586
+ {
100587
+ "kind": "field",
100588
+ "name": "accessibilityCurrent",
100589
+ "type": {
100590
+ "text": "string"
100591
+ },
100592
+ "privacy": "public",
100593
+ "default": "''",
100594
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
100595
+ "attribute": "accessibility-current",
100596
+ "inheritedFrom": {
100597
+ "name": "SbbLinkBaseElement",
100598
+ "module": "core/base-elements/link-base-element.js"
100599
+ }
100600
+ },
100601
+ {
100602
+ "kind": "field",
100603
+ "name": "language",
100604
+ "privacy": "protected",
100605
+ "default": "new SbbLanguageController(this)",
100606
+ "inheritedFrom": {
100607
+ "name": "SbbLinkBaseElement",
100608
+ "module": "core/base-elements/link-base-element.js"
100609
+ }
100610
+ },
100611
+ {
100612
+ "kind": "field",
100613
+ "name": "anchorRole",
100614
+ "type": {
100615
+ "text": "string | null"
100616
+ },
100617
+ "privacy": "protected",
100618
+ "readonly": true,
100619
+ "default": "null",
100620
+ "inheritedFrom": {
100621
+ "name": "SbbLinkBaseElement",
100622
+ "module": "core/base-elements/link-base-element.js"
100623
+ }
100624
+ },
100625
+ {
100626
+ "kind": "field",
100627
+ "name": "_evaluateRelAttribute",
100628
+ "privacy": "private",
100629
+ "inheritedFrom": {
100630
+ "name": "SbbLinkBaseElement",
100631
+ "module": "core/base-elements/link-base-element.js"
100632
+ }
100633
+ },
100634
+ {
100635
+ "kind": "method",
100636
+ "name": "renderLink",
100637
+ "privacy": "protected",
100638
+ "return": {
100639
+ "type": {
100640
+ "text": "TemplateResult"
100641
+ }
100642
+ },
100643
+ "parameters": [
100644
+ {
100645
+ "name": "renderContent",
100646
+ "type": {
100647
+ "text": "TemplateResult"
100648
+ }
100649
+ }
100650
+ ],
100651
+ "inheritedFrom": {
100652
+ "name": "SbbLinkBaseElement",
100653
+ "module": "core/base-elements/link-base-element.js"
100654
+ }
100655
+ },
101168
100656
  {
101169
100657
  "kind": "field",
101170
100658
  "name": "maybeDisabled",
@@ -101322,10 +100810,10 @@
101322
100810
  }
101323
100811
  ],
101324
100812
  "superclass": {
101325
- "name": "SbbActionBaseElement",
100813
+ "name": "SbbLinkBaseElement",
101326
100814
  "module": "core/base-elements.js"
101327
100815
  },
101328
- "tagName": "sbb-block-link-static",
100816
+ "tagName": "sbb-block-link",
101329
100817
  "customElement": true,
101330
100818
  "attributes": [
101331
100819
  {
@@ -101379,6 +100867,84 @@
101379
100867
  "name": "SbbDisabledMixin",
101380
100868
  "module": "core/mixins/disabled-mixin.js"
101381
100869
  }
100870
+ },
100871
+ {
100872
+ "name": "href",
100873
+ "type": {
100874
+ "text": "string"
100875
+ },
100876
+ "default": "''",
100877
+ "description": "The href value you want to link to.",
100878
+ "fieldName": "href",
100879
+ "inheritedFrom": {
100880
+ "name": "SbbLinkBaseElement",
100881
+ "module": "core/base-elements/link-base-element.js"
100882
+ }
100883
+ },
100884
+ {
100885
+ "name": "target",
100886
+ "type": {
100887
+ "text": "LinkTargetType | string"
100888
+ },
100889
+ "default": "''",
100890
+ "description": "Where to display the linked URL.",
100891
+ "fieldName": "target",
100892
+ "inheritedFrom": {
100893
+ "name": "SbbLinkBaseElement",
100894
+ "module": "core/base-elements/link-base-element.js"
100895
+ }
100896
+ },
100897
+ {
100898
+ "name": "rel",
100899
+ "type": {
100900
+ "text": "string"
100901
+ },
100902
+ "default": "''",
100903
+ "description": "The relationship of the linked URL as space-separated link types.",
100904
+ "fieldName": "rel",
100905
+ "inheritedFrom": {
100906
+ "name": "SbbLinkBaseElement",
100907
+ "module": "core/base-elements/link-base-element.js"
100908
+ }
100909
+ },
100910
+ {
100911
+ "name": "download",
100912
+ "type": {
100913
+ "text": "boolean"
100914
+ },
100915
+ "default": "false",
100916
+ "description": "Whether the browser will show the download dialog on click.",
100917
+ "fieldName": "download",
100918
+ "inheritedFrom": {
100919
+ "name": "SbbLinkBaseElement",
100920
+ "module": "core/base-elements/link-base-element.js"
100921
+ }
100922
+ },
100923
+ {
100924
+ "name": "accessibility-label",
100925
+ "type": {
100926
+ "text": "string"
100927
+ },
100928
+ "default": "''",
100929
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
100930
+ "fieldName": "accessibilityLabel",
100931
+ "inheritedFrom": {
100932
+ "name": "SbbLinkBaseElement",
100933
+ "module": "core/base-elements/link-base-element.js"
100934
+ }
100935
+ },
100936
+ {
100937
+ "name": "accessibility-current",
100938
+ "type": {
100939
+ "text": "string"
100940
+ },
100941
+ "default": "''",
100942
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
100943
+ "fieldName": "accessibilityCurrent",
100944
+ "inheritedFrom": {
100945
+ "name": "SbbLinkBaseElement",
100946
+ "module": "core/base-elements/link-base-element.js"
100947
+ }
101382
100948
  }
101383
100949
  ]
101384
100950
  }
@@ -101386,10 +100952,10 @@
101386
100952
  "exports": [
101387
100953
  {
101388
100954
  "kind": "js",
101389
- "name": "SbbBlockLinkStaticElement",
100955
+ "name": "SbbBlockLinkElement",
101390
100956
  "declaration": {
101391
- "name": "SbbBlockLinkStaticElement",
101392
- "module": "link/block-link-static/block-link-static.component.js"
100957
+ "name": "SbbBlockLinkElement",
100958
+ "module": "link/block-link/block-link.component.js"
101393
100959
  }
101394
100960
  }
101395
100961
  ]
@@ -103722,6 +103288,440 @@
103722
103288
  }
103723
103289
  ]
103724
103290
  },
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,120 +121048,332 @@
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
- ],
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
+ ],
121104
121362
  "superclass": {
121105
- "name": "SbbOpenCloseBaseElement",
121363
+ "name": "SbbElement",
121106
121364
  "module": "core/base-elements.js"
121107
121365
  },
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
- ]
121366
+ "tagName": "sbb-sidebar-container",
121367
+ "customElement": true
121156
121368
  }
121157
121369
  ],
121158
121370
  "exports": [
121159
121371
  {
121160
121372
  "kind": "js",
121161
- "name": "SbbSidebarElement",
121373
+ "name": "SbbSidebarContainerElement",
121162
121374
  "declaration": {
121163
- "name": "SbbSidebarElement",
121164
- "module": "sidebar/sidebar/sidebar.component.js"
121375
+ "name": "SbbSidebarContainerElement",
121376
+ "module": "sidebar/sidebar-container/sidebar-container.component.js"
121165
121377
  }
121166
121378
  }
121167
121379
  ]
@@ -122186,218 +122398,6 @@
122186
122398
  }
122187
122399
  ]
122188
122400
  },
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",