@sbb-esta/lyne-elements-dev 4.13.0-dev.1780374881 → 4.13.0-dev.1780400290

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 +2036 -2036
  2. package/package.json +2 -2
@@ -85456,6 +85456,340 @@
85456
85456
  }
85457
85457
  ]
85458
85458
  },
85459
+ {
85460
+ "kind": "javascript-module",
85461
+ "path": "dialog/dialog-actions/dialog-actions.component.js",
85462
+ "declarations": [
85463
+ {
85464
+ "kind": "class",
85465
+ "description": "Use this component to display a footer into an `sbb-dialog` with an action group.",
85466
+ "name": "SbbDialogActionsElement",
85467
+ "slots": [
85468
+ {
85469
+ "description": "Use the unnamed slot to add `sbb-block-link` or `sbb-button` elements to the `sbb-dialog-actions`.",
85470
+ "name": "",
85471
+ "inheritedFrom": {
85472
+ "name": "SbbActionGroupElement",
85473
+ "module": "action-group/action-group.component.js"
85474
+ }
85475
+ }
85476
+ ],
85477
+ "members": [
85478
+ {
85479
+ "kind": "field",
85480
+ "name": "elementName",
85481
+ "type": {
85482
+ "text": "string"
85483
+ },
85484
+ "privacy": "public",
85485
+ "static": true,
85486
+ "readonly": true,
85487
+ "default": "'sbb-dialog-actions'",
85488
+ "inheritedFrom": {
85489
+ "name": "SbbElement",
85490
+ "module": "core/base-elements/element.js"
85491
+ }
85492
+ },
85493
+ {
85494
+ "kind": "field",
85495
+ "name": "buttonSize",
85496
+ "type": {
85497
+ "text": "SbbButtonSize"
85498
+ },
85499
+ "privacy": "public",
85500
+ "description": "Size of the nested sbb-button instances.\nThis will overwrite the size attribute of nested sbb-button instances.",
85501
+ "default": "'m' / 's' (lean)",
85502
+ "attribute": "button-size",
85503
+ "reflects": true,
85504
+ "inheritedFrom": {
85505
+ "name": "SbbActionGroupElement",
85506
+ "module": "action-group/action-group.component.js"
85507
+ }
85508
+ },
85509
+ {
85510
+ "kind": "field",
85511
+ "name": "linkSize",
85512
+ "type": {
85513
+ "text": "SbbLinkSize"
85514
+ },
85515
+ "privacy": "public",
85516
+ "description": "Size of the nested sbb-block-link instances.\nThis will overwrite the size attribute of nested sbb-block-link instances.",
85517
+ "default": "'s' / 'xs' (lean)",
85518
+ "attribute": "link-size",
85519
+ "reflects": true,
85520
+ "inheritedFrom": {
85521
+ "name": "SbbActionGroupElement",
85522
+ "module": "action-group/action-group.component.js"
85523
+ }
85524
+ },
85525
+ {
85526
+ "kind": "field",
85527
+ "name": "alignGroup",
85528
+ "type": {
85529
+ "text": "'start' | 'center' | 'stretch' | 'end'"
85530
+ },
85531
+ "privacy": "public",
85532
+ "default": "'start'",
85533
+ "description": "Set the slotted `<sbb-action-group>` children's alignment.",
85534
+ "attribute": "align-group",
85535
+ "reflects": true,
85536
+ "inheritedFrom": {
85537
+ "name": "SbbActionGroupElement",
85538
+ "module": "action-group/action-group.component.js"
85539
+ }
85540
+ },
85541
+ {
85542
+ "kind": "field",
85543
+ "name": "horizontalFrom",
85544
+ "type": {
85545
+ "text": "SbbHorizontalFrom"
85546
+ },
85547
+ "privacy": "public",
85548
+ "default": "'large'",
85549
+ "description": "Overrides the behavior of `orientation` property.",
85550
+ "attribute": "horizontal-from",
85551
+ "reflects": true,
85552
+ "inheritedFrom": {
85553
+ "name": "SbbActionGroupElement",
85554
+ "module": "action-group/action-group.component.js"
85555
+ }
85556
+ },
85557
+ {
85558
+ "kind": "field",
85559
+ "name": "orientation",
85560
+ "type": {
85561
+ "text": "SbbOrientation"
85562
+ },
85563
+ "privacy": "public",
85564
+ "default": "'horizontal'",
85565
+ "description": "Indicates the orientation of the components inside the `<sbb-action-group>`.",
85566
+ "attribute": "orientation",
85567
+ "reflects": true,
85568
+ "inheritedFrom": {
85569
+ "name": "SbbActionGroupElement",
85570
+ "module": "action-group/action-group.component.js"
85571
+ }
85572
+ },
85573
+ {
85574
+ "kind": "method",
85575
+ "name": "_syncButtons",
85576
+ "privacy": "private",
85577
+ "return": {
85578
+ "type": {
85579
+ "text": "void"
85580
+ }
85581
+ },
85582
+ "inheritedFrom": {
85583
+ "name": "SbbActionGroupElement",
85584
+ "module": "action-group/action-group.component.js"
85585
+ }
85586
+ },
85587
+ {
85588
+ "kind": "method",
85589
+ "name": "_syncLinks",
85590
+ "privacy": "private",
85591
+ "return": {
85592
+ "type": {
85593
+ "text": "void"
85594
+ }
85595
+ },
85596
+ "inheritedFrom": {
85597
+ "name": "SbbActionGroupElement",
85598
+ "module": "action-group/action-group.component.js"
85599
+ }
85600
+ },
85601
+ {
85602
+ "kind": "field",
85603
+ "name": "_hydrationRequired",
85604
+ "type": {
85605
+ "text": "boolean"
85606
+ },
85607
+ "privacy": "private",
85608
+ "default": "!!this.shadowRoot",
85609
+ "inheritedFrom": {
85610
+ "name": "SbbElement",
85611
+ "module": "core/base-elements/element.js"
85612
+ }
85613
+ },
85614
+ {
85615
+ "kind": "field",
85616
+ "name": "_hydrationComplete",
85617
+ "privacy": "private",
85618
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
85619
+ "inheritedFrom": {
85620
+ "name": "SbbElement",
85621
+ "module": "core/base-elements/element.js"
85622
+ }
85623
+ },
85624
+ {
85625
+ "kind": "field",
85626
+ "name": "_resolveHydration",
85627
+ "type": {
85628
+ "text": "(hydrationRequired: boolean) => void"
85629
+ },
85630
+ "privacy": "private",
85631
+ "inheritedFrom": {
85632
+ "name": "SbbElement",
85633
+ "module": "core/base-elements/element.js"
85634
+ }
85635
+ },
85636
+ {
85637
+ "kind": "field",
85638
+ "name": "hydrationRequired",
85639
+ "type": {
85640
+ "text": "boolean"
85641
+ },
85642
+ "privacy": "protected",
85643
+ "description": "Returns whether hydration is required and not completed.",
85644
+ "readonly": true,
85645
+ "inheritedFrom": {
85646
+ "name": "SbbElement",
85647
+ "module": "core/base-elements/element.js"
85648
+ },
85649
+ "default": "!!this.shadowRoot"
85650
+ },
85651
+ {
85652
+ "kind": "method",
85653
+ "name": "toggleState",
85654
+ "privacy": "protected",
85655
+ "return": {
85656
+ "type": {
85657
+ "text": "void"
85658
+ }
85659
+ },
85660
+ "parameters": [
85661
+ {
85662
+ "name": "value",
85663
+ "type": {
85664
+ "text": "string"
85665
+ }
85666
+ },
85667
+ {
85668
+ "name": "force",
85669
+ "optional": true,
85670
+ "type": {
85671
+ "text": "boolean"
85672
+ }
85673
+ }
85674
+ ],
85675
+ "inheritedFrom": {
85676
+ "name": "SbbElement",
85677
+ "module": "core/base-elements/element.js"
85678
+ }
85679
+ },
85680
+ {
85681
+ "kind": "field",
85682
+ "name": "['_$sbbElement$']",
85683
+ "type": {
85684
+ "text": "boolean"
85685
+ },
85686
+ "privacy": "public",
85687
+ "static": true,
85688
+ "default": "true",
85689
+ "inheritedFrom": {
85690
+ "name": "SbbElement",
85691
+ "module": "core/base-elements/element.js"
85692
+ }
85693
+ },
85694
+ {
85695
+ "kind": "field",
85696
+ "name": "_controllers",
85697
+ "type": {
85698
+ "text": "Set<SbbReactiveController> | undefined"
85699
+ },
85700
+ "privacy": "private",
85701
+ "inheritedFrom": {
85702
+ "name": "SbbElement",
85703
+ "module": "core/base-elements/element.js"
85704
+ }
85705
+ }
85706
+ ],
85707
+ "superclass": {
85708
+ "name": "SbbActionGroupElement",
85709
+ "module": "action-group.js"
85710
+ },
85711
+ "tagName": "sbb-dialog-actions",
85712
+ "customElement": true,
85713
+ "attributes": [
85714
+ {
85715
+ "name": "align-group",
85716
+ "type": {
85717
+ "text": "'start' | 'center' | 'stretch' | 'end'"
85718
+ },
85719
+ "default": "'start'",
85720
+ "description": "Set the slotted `<sbb-action-group>` children's alignment.",
85721
+ "fieldName": "alignGroup",
85722
+ "inheritedFrom": {
85723
+ "name": "SbbActionGroupElement",
85724
+ "module": "action-group/action-group.component.js"
85725
+ }
85726
+ },
85727
+ {
85728
+ "name": "horizontal-from",
85729
+ "type": {
85730
+ "text": "SbbHorizontalFrom"
85731
+ },
85732
+ "default": "'large'",
85733
+ "description": "Overrides the behavior of `orientation` property.",
85734
+ "fieldName": "horizontalFrom",
85735
+ "inheritedFrom": {
85736
+ "name": "SbbActionGroupElement",
85737
+ "module": "action-group/action-group.component.js"
85738
+ }
85739
+ },
85740
+ {
85741
+ "name": "orientation",
85742
+ "type": {
85743
+ "text": "SbbOrientation"
85744
+ },
85745
+ "default": "'horizontal'",
85746
+ "description": "Indicates the orientation of the components inside the `<sbb-action-group>`.",
85747
+ "fieldName": "orientation",
85748
+ "inheritedFrom": {
85749
+ "name": "SbbActionGroupElement",
85750
+ "module": "action-group/action-group.component.js"
85751
+ }
85752
+ },
85753
+ {
85754
+ "name": "button-size",
85755
+ "type": {
85756
+ "text": "SbbButtonSize"
85757
+ },
85758
+ "description": "Size of the nested sbb-button instances.\nThis will overwrite the size attribute of nested sbb-button instances.",
85759
+ "default": "'l' / 's' (lean)",
85760
+ "fieldName": "buttonSize",
85761
+ "inheritedFrom": {
85762
+ "name": "SbbActionGroupElement",
85763
+ "module": "action-group/action-group.component.js"
85764
+ }
85765
+ },
85766
+ {
85767
+ "name": "link-size",
85768
+ "type": {
85769
+ "text": "SbbLinkSize"
85770
+ },
85771
+ "description": "Size of the nested sbb-block-link instances.\nThis will overwrite the size attribute of nested sbb-block-link instances.",
85772
+ "default": "'m' / 'xs' (lean)",
85773
+ "fieldName": "linkSize",
85774
+ "inheritedFrom": {
85775
+ "name": "SbbActionGroupElement",
85776
+ "module": "action-group/action-group.component.js"
85777
+ }
85778
+ }
85779
+ ]
85780
+ }
85781
+ ],
85782
+ "exports": [
85783
+ {
85784
+ "kind": "js",
85785
+ "name": "SbbDialogActionsElement",
85786
+ "declaration": {
85787
+ "name": "SbbDialogActionsElement",
85788
+ "module": "dialog/dialog-actions/dialog-actions.component.js"
85789
+ }
85790
+ }
85791
+ ]
85792
+ },
85459
85793
  {
85460
85794
  "kind": "javascript-module",
85461
85795
  "path": "dialog/dialog-close-button/dialog-close-button.component.js",
@@ -86476,340 +86810,6 @@
86476
86810
  }
86477
86811
  ]
86478
86812
  },
86479
- {
86480
- "kind": "javascript-module",
86481
- "path": "dialog/dialog-actions/dialog-actions.component.js",
86482
- "declarations": [
86483
- {
86484
- "kind": "class",
86485
- "description": "Use this component to display a footer into an `sbb-dialog` with an action group.",
86486
- "name": "SbbDialogActionsElement",
86487
- "slots": [
86488
- {
86489
- "description": "Use the unnamed slot to add `sbb-block-link` or `sbb-button` elements to the `sbb-dialog-actions`.",
86490
- "name": "",
86491
- "inheritedFrom": {
86492
- "name": "SbbActionGroupElement",
86493
- "module": "action-group/action-group.component.js"
86494
- }
86495
- }
86496
- ],
86497
- "members": [
86498
- {
86499
- "kind": "field",
86500
- "name": "elementName",
86501
- "type": {
86502
- "text": "string"
86503
- },
86504
- "privacy": "public",
86505
- "static": true,
86506
- "readonly": true,
86507
- "default": "'sbb-dialog-actions'",
86508
- "inheritedFrom": {
86509
- "name": "SbbElement",
86510
- "module": "core/base-elements/element.js"
86511
- }
86512
- },
86513
- {
86514
- "kind": "field",
86515
- "name": "buttonSize",
86516
- "type": {
86517
- "text": "SbbButtonSize"
86518
- },
86519
- "privacy": "public",
86520
- "description": "Size of the nested sbb-button instances.\nThis will overwrite the size attribute of nested sbb-button instances.",
86521
- "default": "'m' / 's' (lean)",
86522
- "attribute": "button-size",
86523
- "reflects": true,
86524
- "inheritedFrom": {
86525
- "name": "SbbActionGroupElement",
86526
- "module": "action-group/action-group.component.js"
86527
- }
86528
- },
86529
- {
86530
- "kind": "field",
86531
- "name": "linkSize",
86532
- "type": {
86533
- "text": "SbbLinkSize"
86534
- },
86535
- "privacy": "public",
86536
- "description": "Size of the nested sbb-block-link instances.\nThis will overwrite the size attribute of nested sbb-block-link instances.",
86537
- "default": "'s' / 'xs' (lean)",
86538
- "attribute": "link-size",
86539
- "reflects": true,
86540
- "inheritedFrom": {
86541
- "name": "SbbActionGroupElement",
86542
- "module": "action-group/action-group.component.js"
86543
- }
86544
- },
86545
- {
86546
- "kind": "field",
86547
- "name": "alignGroup",
86548
- "type": {
86549
- "text": "'start' | 'center' | 'stretch' | 'end'"
86550
- },
86551
- "privacy": "public",
86552
- "default": "'start'",
86553
- "description": "Set the slotted `<sbb-action-group>` children's alignment.",
86554
- "attribute": "align-group",
86555
- "reflects": true,
86556
- "inheritedFrom": {
86557
- "name": "SbbActionGroupElement",
86558
- "module": "action-group/action-group.component.js"
86559
- }
86560
- },
86561
- {
86562
- "kind": "field",
86563
- "name": "horizontalFrom",
86564
- "type": {
86565
- "text": "SbbHorizontalFrom"
86566
- },
86567
- "privacy": "public",
86568
- "default": "'large'",
86569
- "description": "Overrides the behavior of `orientation` property.",
86570
- "attribute": "horizontal-from",
86571
- "reflects": true,
86572
- "inheritedFrom": {
86573
- "name": "SbbActionGroupElement",
86574
- "module": "action-group/action-group.component.js"
86575
- }
86576
- },
86577
- {
86578
- "kind": "field",
86579
- "name": "orientation",
86580
- "type": {
86581
- "text": "SbbOrientation"
86582
- },
86583
- "privacy": "public",
86584
- "default": "'horizontal'",
86585
- "description": "Indicates the orientation of the components inside the `<sbb-action-group>`.",
86586
- "attribute": "orientation",
86587
- "reflects": true,
86588
- "inheritedFrom": {
86589
- "name": "SbbActionGroupElement",
86590
- "module": "action-group/action-group.component.js"
86591
- }
86592
- },
86593
- {
86594
- "kind": "method",
86595
- "name": "_syncButtons",
86596
- "privacy": "private",
86597
- "return": {
86598
- "type": {
86599
- "text": "void"
86600
- }
86601
- },
86602
- "inheritedFrom": {
86603
- "name": "SbbActionGroupElement",
86604
- "module": "action-group/action-group.component.js"
86605
- }
86606
- },
86607
- {
86608
- "kind": "method",
86609
- "name": "_syncLinks",
86610
- "privacy": "private",
86611
- "return": {
86612
- "type": {
86613
- "text": "void"
86614
- }
86615
- },
86616
- "inheritedFrom": {
86617
- "name": "SbbActionGroupElement",
86618
- "module": "action-group/action-group.component.js"
86619
- }
86620
- },
86621
- {
86622
- "kind": "field",
86623
- "name": "_hydrationRequired",
86624
- "type": {
86625
- "text": "boolean"
86626
- },
86627
- "privacy": "private",
86628
- "default": "!!this.shadowRoot",
86629
- "inheritedFrom": {
86630
- "name": "SbbElement",
86631
- "module": "core/base-elements/element.js"
86632
- }
86633
- },
86634
- {
86635
- "kind": "field",
86636
- "name": "_hydrationComplete",
86637
- "privacy": "private",
86638
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
86639
- "inheritedFrom": {
86640
- "name": "SbbElement",
86641
- "module": "core/base-elements/element.js"
86642
- }
86643
- },
86644
- {
86645
- "kind": "field",
86646
- "name": "_resolveHydration",
86647
- "type": {
86648
- "text": "(hydrationRequired: boolean) => void"
86649
- },
86650
- "privacy": "private",
86651
- "inheritedFrom": {
86652
- "name": "SbbElement",
86653
- "module": "core/base-elements/element.js"
86654
- }
86655
- },
86656
- {
86657
- "kind": "field",
86658
- "name": "hydrationRequired",
86659
- "type": {
86660
- "text": "boolean"
86661
- },
86662
- "privacy": "protected",
86663
- "description": "Returns whether hydration is required and not completed.",
86664
- "readonly": true,
86665
- "inheritedFrom": {
86666
- "name": "SbbElement",
86667
- "module": "core/base-elements/element.js"
86668
- },
86669
- "default": "!!this.shadowRoot"
86670
- },
86671
- {
86672
- "kind": "method",
86673
- "name": "toggleState",
86674
- "privacy": "protected",
86675
- "return": {
86676
- "type": {
86677
- "text": "void"
86678
- }
86679
- },
86680
- "parameters": [
86681
- {
86682
- "name": "value",
86683
- "type": {
86684
- "text": "string"
86685
- }
86686
- },
86687
- {
86688
- "name": "force",
86689
- "optional": true,
86690
- "type": {
86691
- "text": "boolean"
86692
- }
86693
- }
86694
- ],
86695
- "inheritedFrom": {
86696
- "name": "SbbElement",
86697
- "module": "core/base-elements/element.js"
86698
- }
86699
- },
86700
- {
86701
- "kind": "field",
86702
- "name": "['_$sbbElement$']",
86703
- "type": {
86704
- "text": "boolean"
86705
- },
86706
- "privacy": "public",
86707
- "static": true,
86708
- "default": "true",
86709
- "inheritedFrom": {
86710
- "name": "SbbElement",
86711
- "module": "core/base-elements/element.js"
86712
- }
86713
- },
86714
- {
86715
- "kind": "field",
86716
- "name": "_controllers",
86717
- "type": {
86718
- "text": "Set<SbbReactiveController> | undefined"
86719
- },
86720
- "privacy": "private",
86721
- "inheritedFrom": {
86722
- "name": "SbbElement",
86723
- "module": "core/base-elements/element.js"
86724
- }
86725
- }
86726
- ],
86727
- "superclass": {
86728
- "name": "SbbActionGroupElement",
86729
- "module": "action-group.js"
86730
- },
86731
- "tagName": "sbb-dialog-actions",
86732
- "customElement": true,
86733
- "attributes": [
86734
- {
86735
- "name": "align-group",
86736
- "type": {
86737
- "text": "'start' | 'center' | 'stretch' | 'end'"
86738
- },
86739
- "default": "'start'",
86740
- "description": "Set the slotted `<sbb-action-group>` children's alignment.",
86741
- "fieldName": "alignGroup",
86742
- "inheritedFrom": {
86743
- "name": "SbbActionGroupElement",
86744
- "module": "action-group/action-group.component.js"
86745
- }
86746
- },
86747
- {
86748
- "name": "horizontal-from",
86749
- "type": {
86750
- "text": "SbbHorizontalFrom"
86751
- },
86752
- "default": "'large'",
86753
- "description": "Overrides the behavior of `orientation` property.",
86754
- "fieldName": "horizontalFrom",
86755
- "inheritedFrom": {
86756
- "name": "SbbActionGroupElement",
86757
- "module": "action-group/action-group.component.js"
86758
- }
86759
- },
86760
- {
86761
- "name": "orientation",
86762
- "type": {
86763
- "text": "SbbOrientation"
86764
- },
86765
- "default": "'horizontal'",
86766
- "description": "Indicates the orientation of the components inside the `<sbb-action-group>`.",
86767
- "fieldName": "orientation",
86768
- "inheritedFrom": {
86769
- "name": "SbbActionGroupElement",
86770
- "module": "action-group/action-group.component.js"
86771
- }
86772
- },
86773
- {
86774
- "name": "button-size",
86775
- "type": {
86776
- "text": "SbbButtonSize"
86777
- },
86778
- "description": "Size of the nested sbb-button instances.\nThis will overwrite the size attribute of nested sbb-button instances.",
86779
- "default": "'l' / 's' (lean)",
86780
- "fieldName": "buttonSize",
86781
- "inheritedFrom": {
86782
- "name": "SbbActionGroupElement",
86783
- "module": "action-group/action-group.component.js"
86784
- }
86785
- },
86786
- {
86787
- "name": "link-size",
86788
- "type": {
86789
- "text": "SbbLinkSize"
86790
- },
86791
- "description": "Size of the nested sbb-block-link instances.\nThis will overwrite the size attribute of nested sbb-block-link instances.",
86792
- "default": "'m' / 'xs' (lean)",
86793
- "fieldName": "linkSize",
86794
- "inheritedFrom": {
86795
- "name": "SbbActionGroupElement",
86796
- "module": "action-group/action-group.component.js"
86797
- }
86798
- }
86799
- ]
86800
- }
86801
- ],
86802
- "exports": [
86803
- {
86804
- "kind": "js",
86805
- "name": "SbbDialogActionsElement",
86806
- "declaration": {
86807
- "name": "SbbDialogActionsElement",
86808
- "module": "dialog/dialog-actions/dialog-actions.component.js"
86809
- }
86810
- }
86811
- ]
86812
- },
86813
86813
  {
86814
86814
  "kind": "javascript-module",
86815
86815
  "path": "dialog/dialog-content/dialog-content.component.js",
@@ -99736,6 +99736,161 @@
99736
99736
  }
99737
99737
  ]
99738
99738
  },
99739
+ {
99740
+ "kind": "javascript-module",
99741
+ "path": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js",
99742
+ "declarations": [
99743
+ {
99744
+ "kind": "class",
99745
+ "description": "Container for the icon sidebar content. Intended to be placed inside an `sbb-icon-sidebar-container` element.",
99746
+ "name": "SbbIconSidebarContentElement",
99747
+ "slots": [
99748
+ {
99749
+ "description": "Use the unnamed slot to add any content elements.",
99750
+ "name": ""
99751
+ }
99752
+ ],
99753
+ "members": [
99754
+ {
99755
+ "kind": "field",
99756
+ "name": "elementName",
99757
+ "type": {
99758
+ "text": "string"
99759
+ },
99760
+ "privacy": "public",
99761
+ "static": true,
99762
+ "readonly": true,
99763
+ "default": "'sbb-icon-sidebar-content'",
99764
+ "inheritedFrom": {
99765
+ "name": "SbbElement",
99766
+ "module": "core/base-elements/element.js"
99767
+ }
99768
+ },
99769
+ {
99770
+ "kind": "field",
99771
+ "name": "_hydrationRequired",
99772
+ "type": {
99773
+ "text": "boolean"
99774
+ },
99775
+ "privacy": "private",
99776
+ "default": "!!this.shadowRoot",
99777
+ "inheritedFrom": {
99778
+ "name": "SbbElement",
99779
+ "module": "core/base-elements/element.js"
99780
+ }
99781
+ },
99782
+ {
99783
+ "kind": "field",
99784
+ "name": "_hydrationComplete",
99785
+ "privacy": "private",
99786
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
99787
+ "inheritedFrom": {
99788
+ "name": "SbbElement",
99789
+ "module": "core/base-elements/element.js"
99790
+ }
99791
+ },
99792
+ {
99793
+ "kind": "field",
99794
+ "name": "_resolveHydration",
99795
+ "type": {
99796
+ "text": "(hydrationRequired: boolean) => void"
99797
+ },
99798
+ "privacy": "private",
99799
+ "inheritedFrom": {
99800
+ "name": "SbbElement",
99801
+ "module": "core/base-elements/element.js"
99802
+ }
99803
+ },
99804
+ {
99805
+ "kind": "field",
99806
+ "name": "hydrationRequired",
99807
+ "type": {
99808
+ "text": "boolean"
99809
+ },
99810
+ "privacy": "protected",
99811
+ "description": "Returns whether hydration is required and not completed.",
99812
+ "readonly": true,
99813
+ "inheritedFrom": {
99814
+ "name": "SbbElement",
99815
+ "module": "core/base-elements/element.js"
99816
+ },
99817
+ "default": "!!this.shadowRoot"
99818
+ },
99819
+ {
99820
+ "kind": "method",
99821
+ "name": "toggleState",
99822
+ "privacy": "protected",
99823
+ "return": {
99824
+ "type": {
99825
+ "text": "void"
99826
+ }
99827
+ },
99828
+ "parameters": [
99829
+ {
99830
+ "name": "value",
99831
+ "type": {
99832
+ "text": "string"
99833
+ }
99834
+ },
99835
+ {
99836
+ "name": "force",
99837
+ "optional": true,
99838
+ "type": {
99839
+ "text": "boolean"
99840
+ }
99841
+ }
99842
+ ],
99843
+ "inheritedFrom": {
99844
+ "name": "SbbElement",
99845
+ "module": "core/base-elements/element.js"
99846
+ }
99847
+ },
99848
+ {
99849
+ "kind": "field",
99850
+ "name": "['_$sbbElement$']",
99851
+ "type": {
99852
+ "text": "boolean"
99853
+ },
99854
+ "privacy": "public",
99855
+ "static": true,
99856
+ "default": "true",
99857
+ "inheritedFrom": {
99858
+ "name": "SbbElement",
99859
+ "module": "core/base-elements/element.js"
99860
+ }
99861
+ },
99862
+ {
99863
+ "kind": "field",
99864
+ "name": "_controllers",
99865
+ "type": {
99866
+ "text": "Set<SbbReactiveController> | undefined"
99867
+ },
99868
+ "privacy": "private",
99869
+ "inheritedFrom": {
99870
+ "name": "SbbElement",
99871
+ "module": "core/base-elements/element.js"
99872
+ }
99873
+ }
99874
+ ],
99875
+ "superclass": {
99876
+ "name": "SbbElement",
99877
+ "module": "core/base-elements.js"
99878
+ },
99879
+ "tagName": "sbb-icon-sidebar-content",
99880
+ "customElement": true
99881
+ }
99882
+ ],
99883
+ "exports": [
99884
+ {
99885
+ "kind": "js",
99886
+ "name": "SbbIconSidebarContentElement",
99887
+ "declaration": {
99888
+ "name": "SbbIconSidebarContentElement",
99889
+ "module": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js"
99890
+ }
99891
+ }
99892
+ ]
99893
+ },
99739
99894
  {
99740
99895
  "kind": "javascript-module",
99741
99896
  "path": "icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js",
@@ -100260,161 +100415,6 @@
100260
100415
  }
100261
100416
  ]
100262
100417
  },
100263
- {
100264
- "kind": "javascript-module",
100265
- "path": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js",
100266
- "declarations": [
100267
- {
100268
- "kind": "class",
100269
- "description": "Container for the icon sidebar content. Intended to be placed inside an `sbb-icon-sidebar-container` element.",
100270
- "name": "SbbIconSidebarContentElement",
100271
- "slots": [
100272
- {
100273
- "description": "Use the unnamed slot to add any content elements.",
100274
- "name": ""
100275
- }
100276
- ],
100277
- "members": [
100278
- {
100279
- "kind": "field",
100280
- "name": "elementName",
100281
- "type": {
100282
- "text": "string"
100283
- },
100284
- "privacy": "public",
100285
- "static": true,
100286
- "readonly": true,
100287
- "default": "'sbb-icon-sidebar-content'",
100288
- "inheritedFrom": {
100289
- "name": "SbbElement",
100290
- "module": "core/base-elements/element.js"
100291
- }
100292
- },
100293
- {
100294
- "kind": "field",
100295
- "name": "_hydrationRequired",
100296
- "type": {
100297
- "text": "boolean"
100298
- },
100299
- "privacy": "private",
100300
- "default": "!!this.shadowRoot",
100301
- "inheritedFrom": {
100302
- "name": "SbbElement",
100303
- "module": "core/base-elements/element.js"
100304
- }
100305
- },
100306
- {
100307
- "kind": "field",
100308
- "name": "_hydrationComplete",
100309
- "privacy": "private",
100310
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
100311
- "inheritedFrom": {
100312
- "name": "SbbElement",
100313
- "module": "core/base-elements/element.js"
100314
- }
100315
- },
100316
- {
100317
- "kind": "field",
100318
- "name": "_resolveHydration",
100319
- "type": {
100320
- "text": "(hydrationRequired: boolean) => void"
100321
- },
100322
- "privacy": "private",
100323
- "inheritedFrom": {
100324
- "name": "SbbElement",
100325
- "module": "core/base-elements/element.js"
100326
- }
100327
- },
100328
- {
100329
- "kind": "field",
100330
- "name": "hydrationRequired",
100331
- "type": {
100332
- "text": "boolean"
100333
- },
100334
- "privacy": "protected",
100335
- "description": "Returns whether hydration is required and not completed.",
100336
- "readonly": true,
100337
- "inheritedFrom": {
100338
- "name": "SbbElement",
100339
- "module": "core/base-elements/element.js"
100340
- },
100341
- "default": "!!this.shadowRoot"
100342
- },
100343
- {
100344
- "kind": "method",
100345
- "name": "toggleState",
100346
- "privacy": "protected",
100347
- "return": {
100348
- "type": {
100349
- "text": "void"
100350
- }
100351
- },
100352
- "parameters": [
100353
- {
100354
- "name": "value",
100355
- "type": {
100356
- "text": "string"
100357
- }
100358
- },
100359
- {
100360
- "name": "force",
100361
- "optional": true,
100362
- "type": {
100363
- "text": "boolean"
100364
- }
100365
- }
100366
- ],
100367
- "inheritedFrom": {
100368
- "name": "SbbElement",
100369
- "module": "core/base-elements/element.js"
100370
- }
100371
- },
100372
- {
100373
- "kind": "field",
100374
- "name": "['_$sbbElement$']",
100375
- "type": {
100376
- "text": "boolean"
100377
- },
100378
- "privacy": "public",
100379
- "static": true,
100380
- "default": "true",
100381
- "inheritedFrom": {
100382
- "name": "SbbElement",
100383
- "module": "core/base-elements/element.js"
100384
- }
100385
- },
100386
- {
100387
- "kind": "field",
100388
- "name": "_controllers",
100389
- "type": {
100390
- "text": "Set<SbbReactiveController> | undefined"
100391
- },
100392
- "privacy": "private",
100393
- "inheritedFrom": {
100394
- "name": "SbbElement",
100395
- "module": "core/base-elements/element.js"
100396
- }
100397
- }
100398
- ],
100399
- "superclass": {
100400
- "name": "SbbElement",
100401
- "module": "core/base-elements.js"
100402
- },
100403
- "tagName": "sbb-icon-sidebar-content",
100404
- "customElement": true
100405
- }
100406
- ],
100407
- "exports": [
100408
- {
100409
- "kind": "js",
100410
- "name": "SbbIconSidebarContentElement",
100411
- "declaration": {
100412
- "name": "SbbIconSidebarContentElement",
100413
- "module": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js"
100414
- }
100415
- }
100416
- ]
100417
- },
100418
100418
  {
100419
100419
  "kind": "javascript-module",
100420
100420
  "path": "link/block-link/block-link.component.js",
@@ -102066,440 +102066,6 @@
102066
102066
  }
102067
102067
  ]
102068
102068
  },
102069
- {
102070
- "kind": "javascript-module",
102071
- "path": "link/block-link-static/block-link-static.component.js",
102072
- "declarations": [
102073
- {
102074
- "kind": "class",
102075
- "description": "It displays a static link enhanced with the SBB Design.",
102076
- "name": "SbbBlockLinkStaticElement",
102077
- "slots": [
102078
- {
102079
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
102080
- "name": ""
102081
- },
102082
- {
102083
- "description": "Slot used to display the icon, if one is set.",
102084
- "name": "icon"
102085
- }
102086
- ],
102087
- "members": [
102088
- {
102089
- "kind": "field",
102090
- "name": "elementName",
102091
- "type": {
102092
- "text": "string"
102093
- },
102094
- "privacy": "public",
102095
- "static": true,
102096
- "readonly": true,
102097
- "inheritedFrom": {
102098
- "name": "SbbElement",
102099
- "module": "core/base-elements/element.js"
102100
- },
102101
- "default": "'sbb-block-link-static'"
102102
- },
102103
- {
102104
- "kind": "field",
102105
- "name": "styles",
102106
- "type": {
102107
- "text": "CSSResultGroup"
102108
- },
102109
- "privacy": "public",
102110
- "static": true,
102111
- "default": "[super.styles, unsafeCSS(blockStyle)]",
102112
- "inheritedFrom": {
102113
- "name": "SbbLinkCommonElementMixin",
102114
- "module": "link/common/link-common.js"
102115
- }
102116
- },
102117
- {
102118
- "kind": "field",
102119
- "name": "iconPlacement",
102120
- "type": {
102121
- "text": "SbbIconPlacement"
102122
- },
102123
- "privacy": "public",
102124
- "default": "'start'",
102125
- "description": "Moves the icon to the end of the component if set to true.",
102126
- "attribute": "icon-placement",
102127
- "reflects": true,
102128
- "inheritedFrom": {
102129
- "name": "SbbBlockLinkCommonElementMixin",
102130
- "module": "link/common/block-link-common.js"
102131
- }
102132
- },
102133
- {
102134
- "kind": "method",
102135
- "name": "renderTemplate",
102136
- "privacy": "protected",
102137
- "return": {
102138
- "type": {
102139
- "text": "TemplateResult"
102140
- }
102141
- },
102142
- "description": "Override this method to render the component template.",
102143
- "inheritedFrom": {
102144
- "name": "SbbActionBaseElement",
102145
- "module": "core/base-elements/action-base-element.js"
102146
- }
102147
- },
102148
- {
102149
- "kind": "field",
102150
- "name": "size",
102151
- "type": {
102152
- "text": "SbbLinkSize"
102153
- },
102154
- "privacy": "public",
102155
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
102156
- "default": "'s' / 'xs' (lean)",
102157
- "attribute": "size",
102158
- "reflects": true,
102159
- "inheritedFrom": {
102160
- "name": "SbbLinkCommonElementMixin",
102161
- "module": "link/common/link-common.js"
102162
- }
102163
- },
102164
- {
102165
- "kind": "field",
102166
- "name": "iconName",
102167
- "type": {
102168
- "text": "string"
102169
- },
102170
- "privacy": "public",
102171
- "default": "''",
102172
- "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.",
102173
- "attribute": "icon-name",
102174
- "inheritedFrom": {
102175
- "name": "SbbIconNameMixin",
102176
- "module": "icon/icon-name-mixin.js"
102177
- }
102178
- },
102179
- {
102180
- "kind": "method",
102181
- "name": "renderIconSlot",
102182
- "privacy": "protected",
102183
- "return": {
102184
- "type": {
102185
- "text": "TemplateResult"
102186
- }
102187
- },
102188
- "parameters": [
102189
- {
102190
- "name": "classname",
102191
- "optional": true,
102192
- "type": {
102193
- "text": "string"
102194
- }
102195
- }
102196
- ],
102197
- "inheritedFrom": {
102198
- "name": "SbbIconNameMixin",
102199
- "module": "icon/icon-name-mixin.js"
102200
- }
102201
- },
102202
- {
102203
- "kind": "method",
102204
- "name": "renderIconName",
102205
- "privacy": "protected",
102206
- "return": {
102207
- "type": {
102208
- "text": "string"
102209
- }
102210
- },
102211
- "inheritedFrom": {
102212
- "name": "SbbIconNameMixin",
102213
- "module": "icon/icon-name-mixin.js"
102214
- }
102215
- },
102216
- {
102217
- "kind": "method",
102218
- "name": "_renderIconName",
102219
- "privacy": "private",
102220
- "return": {
102221
- "type": {
102222
- "text": "string"
102223
- }
102224
- },
102225
- "inheritedFrom": {
102226
- "name": "SbbIconNameMixin",
102227
- "module": "icon/icon-name-mixin.js"
102228
- }
102229
- },
102230
- {
102231
- "kind": "field",
102232
- "name": "disabled",
102233
- "privacy": "public",
102234
- "description": "Whether the component is disabled.",
102235
- "default": "false",
102236
- "type": {
102237
- "text": "boolean"
102238
- },
102239
- "attribute": "disabled",
102240
- "reflects": true,
102241
- "inheritedFrom": {
102242
- "name": "SbbDisabledMixin",
102243
- "module": "core/mixins/disabled-mixin.js"
102244
- }
102245
- },
102246
- {
102247
- "kind": "field",
102248
- "name": "#disabled",
102249
- "privacy": "private",
102250
- "type": {
102251
- "text": "boolean"
102252
- },
102253
- "default": "false",
102254
- "inheritedFrom": {
102255
- "name": "SbbDisabledMixin",
102256
- "module": "core/mixins/disabled-mixin.js"
102257
- }
102258
- },
102259
- {
102260
- "kind": "method",
102261
- "name": "isDisabledExternally",
102262
- "privacy": "protected",
102263
- "return": {
102264
- "type": {
102265
- "text": "boolean"
102266
- }
102267
- },
102268
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
102269
- "inheritedFrom": {
102270
- "name": "SbbDisabledMixin",
102271
- "module": "core/mixins/disabled-mixin.js"
102272
- }
102273
- },
102274
- {
102275
- "kind": "field",
102276
- "name": "maybeDisabled",
102277
- "type": {
102278
- "text": "boolean | undefined"
102279
- },
102280
- "privacy": "protected",
102281
- "readonly": true,
102282
- "inheritedFrom": {
102283
- "name": "SbbActionBaseElement",
102284
- "module": "core/base-elements/action-base-element.js"
102285
- }
102286
- },
102287
- {
102288
- "kind": "field",
102289
- "name": "maybeDisabledInteractive",
102290
- "type": {
102291
- "text": "boolean | undefined"
102292
- },
102293
- "privacy": "protected",
102294
- "readonly": true,
102295
- "inheritedFrom": {
102296
- "name": "SbbActionBaseElement",
102297
- "module": "core/base-elements/action-base-element.js"
102298
- }
102299
- },
102300
- {
102301
- "kind": "method",
102302
- "name": "setupBaseEventHandlers",
102303
- "privacy": "protected",
102304
- "return": {
102305
- "type": {
102306
- "text": "void"
102307
- }
102308
- },
102309
- "inheritedFrom": {
102310
- "name": "SbbActionBaseElement",
102311
- "module": "core/base-elements/action-base-element.js"
102312
- }
102313
- },
102314
- {
102315
- "kind": "field",
102316
- "name": "_hydrationRequired",
102317
- "type": {
102318
- "text": "boolean"
102319
- },
102320
- "privacy": "private",
102321
- "default": "!!this.shadowRoot",
102322
- "inheritedFrom": {
102323
- "name": "SbbElement",
102324
- "module": "core/base-elements/element.js"
102325
- }
102326
- },
102327
- {
102328
- "kind": "field",
102329
- "name": "_hydrationComplete",
102330
- "privacy": "private",
102331
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
102332
- "inheritedFrom": {
102333
- "name": "SbbElement",
102334
- "module": "core/base-elements/element.js"
102335
- }
102336
- },
102337
- {
102338
- "kind": "field",
102339
- "name": "_resolveHydration",
102340
- "type": {
102341
- "text": "(hydrationRequired: boolean) => void"
102342
- },
102343
- "privacy": "private",
102344
- "inheritedFrom": {
102345
- "name": "SbbElement",
102346
- "module": "core/base-elements/element.js"
102347
- }
102348
- },
102349
- {
102350
- "kind": "field",
102351
- "name": "hydrationRequired",
102352
- "type": {
102353
- "text": "boolean"
102354
- },
102355
- "privacy": "protected",
102356
- "description": "Returns whether hydration is required and not completed.",
102357
- "readonly": true,
102358
- "inheritedFrom": {
102359
- "name": "SbbElement",
102360
- "module": "core/base-elements/element.js"
102361
- },
102362
- "default": "!!this.shadowRoot"
102363
- },
102364
- {
102365
- "kind": "method",
102366
- "name": "toggleState",
102367
- "privacy": "protected",
102368
- "return": {
102369
- "type": {
102370
- "text": "void"
102371
- }
102372
- },
102373
- "parameters": [
102374
- {
102375
- "name": "value",
102376
- "type": {
102377
- "text": "string"
102378
- }
102379
- },
102380
- {
102381
- "name": "force",
102382
- "optional": true,
102383
- "type": {
102384
- "text": "boolean"
102385
- }
102386
- }
102387
- ],
102388
- "inheritedFrom": {
102389
- "name": "SbbElement",
102390
- "module": "core/base-elements/element.js"
102391
- }
102392
- },
102393
- {
102394
- "kind": "field",
102395
- "name": "['_$sbbElement$']",
102396
- "type": {
102397
- "text": "boolean"
102398
- },
102399
- "privacy": "public",
102400
- "static": true,
102401
- "default": "true",
102402
- "inheritedFrom": {
102403
- "name": "SbbElement",
102404
- "module": "core/base-elements/element.js"
102405
- }
102406
- },
102407
- {
102408
- "kind": "field",
102409
- "name": "_controllers",
102410
- "type": {
102411
- "text": "Set<SbbReactiveController> | undefined"
102412
- },
102413
- "privacy": "private",
102414
- "inheritedFrom": {
102415
- "name": "SbbElement",
102416
- "module": "core/base-elements/element.js"
102417
- }
102418
- }
102419
- ],
102420
- "mixins": [
102421
- {
102422
- "name": "SbbBlockLinkCommonElementMixin",
102423
- "module": "link/common/block-link-common.js"
102424
- },
102425
- {
102426
- "name": "SbbDisabledMixin",
102427
- "module": "core/mixins.js"
102428
- }
102429
- ],
102430
- "superclass": {
102431
- "name": "SbbActionBaseElement",
102432
- "module": "core/base-elements.js"
102433
- },
102434
- "tagName": "sbb-block-link-static",
102435
- "customElement": true,
102436
- "attributes": [
102437
- {
102438
- "name": "icon-placement",
102439
- "type": {
102440
- "text": "SbbIconPlacement"
102441
- },
102442
- "default": "'start'",
102443
- "description": "Moves the icon to the end of the component if set to true.",
102444
- "fieldName": "iconPlacement",
102445
- "inheritedFrom": {
102446
- "name": "SbbBlockLinkCommonElementMixin",
102447
- "module": "link/common/block-link-common.js"
102448
- }
102449
- },
102450
- {
102451
- "name": "size",
102452
- "type": {
102453
- "text": "SbbLinkSize"
102454
- },
102455
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
102456
- "default": "'s' / 'xs' (lean)",
102457
- "fieldName": "size",
102458
- "inheritedFrom": {
102459
- "name": "SbbLinkCommonElementMixin",
102460
- "module": "link/common/link-common.js"
102461
- }
102462
- },
102463
- {
102464
- "name": "icon-name",
102465
- "type": {
102466
- "text": "string"
102467
- },
102468
- "default": "''",
102469
- "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.",
102470
- "fieldName": "iconName",
102471
- "inheritedFrom": {
102472
- "name": "SbbIconNameMixin",
102473
- "module": "icon/icon-name-mixin.js"
102474
- }
102475
- },
102476
- {
102477
- "name": "disabled",
102478
- "description": "Whether the component is disabled.",
102479
- "default": "false",
102480
- "type": {
102481
- "text": "boolean"
102482
- },
102483
- "fieldName": "disabled",
102484
- "inheritedFrom": {
102485
- "name": "SbbDisabledMixin",
102486
- "module": "core/mixins/disabled-mixin.js"
102487
- }
102488
- }
102489
- ]
102490
- }
102491
- ],
102492
- "exports": [
102493
- {
102494
- "kind": "js",
102495
- "name": "SbbBlockLinkStaticElement",
102496
- "declaration": {
102497
- "name": "SbbBlockLinkStaticElement",
102498
- "module": "link/block-link-static/block-link-static.component.js"
102499
- }
102500
- }
102501
- ]
102502
- },
102503
102069
  {
102504
102070
  "kind": "javascript-module",
102505
102071
  "path": "link/common/block-link-common.js",
@@ -103838,6 +103404,440 @@
103838
103404
  }
103839
103405
  ]
103840
103406
  },
103407
+ {
103408
+ "kind": "javascript-module",
103409
+ "path": "link/block-link-static/block-link-static.component.js",
103410
+ "declarations": [
103411
+ {
103412
+ "kind": "class",
103413
+ "description": "It displays a static link enhanced with the SBB Design.",
103414
+ "name": "SbbBlockLinkStaticElement",
103415
+ "slots": [
103416
+ {
103417
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
103418
+ "name": ""
103419
+ },
103420
+ {
103421
+ "description": "Slot used to display the icon, if one is set.",
103422
+ "name": "icon"
103423
+ }
103424
+ ],
103425
+ "members": [
103426
+ {
103427
+ "kind": "field",
103428
+ "name": "elementName",
103429
+ "type": {
103430
+ "text": "string"
103431
+ },
103432
+ "privacy": "public",
103433
+ "static": true,
103434
+ "readonly": true,
103435
+ "inheritedFrom": {
103436
+ "name": "SbbElement",
103437
+ "module": "core/base-elements/element.js"
103438
+ },
103439
+ "default": "'sbb-block-link-static'"
103440
+ },
103441
+ {
103442
+ "kind": "field",
103443
+ "name": "styles",
103444
+ "type": {
103445
+ "text": "CSSResultGroup"
103446
+ },
103447
+ "privacy": "public",
103448
+ "static": true,
103449
+ "default": "[super.styles, unsafeCSS(blockStyle)]",
103450
+ "inheritedFrom": {
103451
+ "name": "SbbLinkCommonElementMixin",
103452
+ "module": "link/common/link-common.js"
103453
+ }
103454
+ },
103455
+ {
103456
+ "kind": "field",
103457
+ "name": "iconPlacement",
103458
+ "type": {
103459
+ "text": "SbbIconPlacement"
103460
+ },
103461
+ "privacy": "public",
103462
+ "default": "'start'",
103463
+ "description": "Moves the icon to the end of the component if set to true.",
103464
+ "attribute": "icon-placement",
103465
+ "reflects": true,
103466
+ "inheritedFrom": {
103467
+ "name": "SbbBlockLinkCommonElementMixin",
103468
+ "module": "link/common/block-link-common.js"
103469
+ }
103470
+ },
103471
+ {
103472
+ "kind": "method",
103473
+ "name": "renderTemplate",
103474
+ "privacy": "protected",
103475
+ "return": {
103476
+ "type": {
103477
+ "text": "TemplateResult"
103478
+ }
103479
+ },
103480
+ "description": "Override this method to render the component template.",
103481
+ "inheritedFrom": {
103482
+ "name": "SbbActionBaseElement",
103483
+ "module": "core/base-elements/action-base-element.js"
103484
+ }
103485
+ },
103486
+ {
103487
+ "kind": "field",
103488
+ "name": "size",
103489
+ "type": {
103490
+ "text": "SbbLinkSize"
103491
+ },
103492
+ "privacy": "public",
103493
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
103494
+ "default": "'s' / 'xs' (lean)",
103495
+ "attribute": "size",
103496
+ "reflects": true,
103497
+ "inheritedFrom": {
103498
+ "name": "SbbLinkCommonElementMixin",
103499
+ "module": "link/common/link-common.js"
103500
+ }
103501
+ },
103502
+ {
103503
+ "kind": "field",
103504
+ "name": "iconName",
103505
+ "type": {
103506
+ "text": "string"
103507
+ },
103508
+ "privacy": "public",
103509
+ "default": "''",
103510
+ "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.",
103511
+ "attribute": "icon-name",
103512
+ "inheritedFrom": {
103513
+ "name": "SbbIconNameMixin",
103514
+ "module": "icon/icon-name-mixin.js"
103515
+ }
103516
+ },
103517
+ {
103518
+ "kind": "method",
103519
+ "name": "renderIconSlot",
103520
+ "privacy": "protected",
103521
+ "return": {
103522
+ "type": {
103523
+ "text": "TemplateResult"
103524
+ }
103525
+ },
103526
+ "parameters": [
103527
+ {
103528
+ "name": "classname",
103529
+ "optional": true,
103530
+ "type": {
103531
+ "text": "string"
103532
+ }
103533
+ }
103534
+ ],
103535
+ "inheritedFrom": {
103536
+ "name": "SbbIconNameMixin",
103537
+ "module": "icon/icon-name-mixin.js"
103538
+ }
103539
+ },
103540
+ {
103541
+ "kind": "method",
103542
+ "name": "renderIconName",
103543
+ "privacy": "protected",
103544
+ "return": {
103545
+ "type": {
103546
+ "text": "string"
103547
+ }
103548
+ },
103549
+ "inheritedFrom": {
103550
+ "name": "SbbIconNameMixin",
103551
+ "module": "icon/icon-name-mixin.js"
103552
+ }
103553
+ },
103554
+ {
103555
+ "kind": "method",
103556
+ "name": "_renderIconName",
103557
+ "privacy": "private",
103558
+ "return": {
103559
+ "type": {
103560
+ "text": "string"
103561
+ }
103562
+ },
103563
+ "inheritedFrom": {
103564
+ "name": "SbbIconNameMixin",
103565
+ "module": "icon/icon-name-mixin.js"
103566
+ }
103567
+ },
103568
+ {
103569
+ "kind": "field",
103570
+ "name": "disabled",
103571
+ "privacy": "public",
103572
+ "description": "Whether the component is disabled.",
103573
+ "default": "false",
103574
+ "type": {
103575
+ "text": "boolean"
103576
+ },
103577
+ "attribute": "disabled",
103578
+ "reflects": true,
103579
+ "inheritedFrom": {
103580
+ "name": "SbbDisabledMixin",
103581
+ "module": "core/mixins/disabled-mixin.js"
103582
+ }
103583
+ },
103584
+ {
103585
+ "kind": "field",
103586
+ "name": "#disabled",
103587
+ "privacy": "private",
103588
+ "type": {
103589
+ "text": "boolean"
103590
+ },
103591
+ "default": "false",
103592
+ "inheritedFrom": {
103593
+ "name": "SbbDisabledMixin",
103594
+ "module": "core/mixins/disabled-mixin.js"
103595
+ }
103596
+ },
103597
+ {
103598
+ "kind": "method",
103599
+ "name": "isDisabledExternally",
103600
+ "privacy": "protected",
103601
+ "return": {
103602
+ "type": {
103603
+ "text": "boolean"
103604
+ }
103605
+ },
103606
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
103607
+ "inheritedFrom": {
103608
+ "name": "SbbDisabledMixin",
103609
+ "module": "core/mixins/disabled-mixin.js"
103610
+ }
103611
+ },
103612
+ {
103613
+ "kind": "field",
103614
+ "name": "maybeDisabled",
103615
+ "type": {
103616
+ "text": "boolean | undefined"
103617
+ },
103618
+ "privacy": "protected",
103619
+ "readonly": true,
103620
+ "inheritedFrom": {
103621
+ "name": "SbbActionBaseElement",
103622
+ "module": "core/base-elements/action-base-element.js"
103623
+ }
103624
+ },
103625
+ {
103626
+ "kind": "field",
103627
+ "name": "maybeDisabledInteractive",
103628
+ "type": {
103629
+ "text": "boolean | undefined"
103630
+ },
103631
+ "privacy": "protected",
103632
+ "readonly": true,
103633
+ "inheritedFrom": {
103634
+ "name": "SbbActionBaseElement",
103635
+ "module": "core/base-elements/action-base-element.js"
103636
+ }
103637
+ },
103638
+ {
103639
+ "kind": "method",
103640
+ "name": "setupBaseEventHandlers",
103641
+ "privacy": "protected",
103642
+ "return": {
103643
+ "type": {
103644
+ "text": "void"
103645
+ }
103646
+ },
103647
+ "inheritedFrom": {
103648
+ "name": "SbbActionBaseElement",
103649
+ "module": "core/base-elements/action-base-element.js"
103650
+ }
103651
+ },
103652
+ {
103653
+ "kind": "field",
103654
+ "name": "_hydrationRequired",
103655
+ "type": {
103656
+ "text": "boolean"
103657
+ },
103658
+ "privacy": "private",
103659
+ "default": "!!this.shadowRoot",
103660
+ "inheritedFrom": {
103661
+ "name": "SbbElement",
103662
+ "module": "core/base-elements/element.js"
103663
+ }
103664
+ },
103665
+ {
103666
+ "kind": "field",
103667
+ "name": "_hydrationComplete",
103668
+ "privacy": "private",
103669
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
103670
+ "inheritedFrom": {
103671
+ "name": "SbbElement",
103672
+ "module": "core/base-elements/element.js"
103673
+ }
103674
+ },
103675
+ {
103676
+ "kind": "field",
103677
+ "name": "_resolveHydration",
103678
+ "type": {
103679
+ "text": "(hydrationRequired: boolean) => void"
103680
+ },
103681
+ "privacy": "private",
103682
+ "inheritedFrom": {
103683
+ "name": "SbbElement",
103684
+ "module": "core/base-elements/element.js"
103685
+ }
103686
+ },
103687
+ {
103688
+ "kind": "field",
103689
+ "name": "hydrationRequired",
103690
+ "type": {
103691
+ "text": "boolean"
103692
+ },
103693
+ "privacy": "protected",
103694
+ "description": "Returns whether hydration is required and not completed.",
103695
+ "readonly": true,
103696
+ "inheritedFrom": {
103697
+ "name": "SbbElement",
103698
+ "module": "core/base-elements/element.js"
103699
+ },
103700
+ "default": "!!this.shadowRoot"
103701
+ },
103702
+ {
103703
+ "kind": "method",
103704
+ "name": "toggleState",
103705
+ "privacy": "protected",
103706
+ "return": {
103707
+ "type": {
103708
+ "text": "void"
103709
+ }
103710
+ },
103711
+ "parameters": [
103712
+ {
103713
+ "name": "value",
103714
+ "type": {
103715
+ "text": "string"
103716
+ }
103717
+ },
103718
+ {
103719
+ "name": "force",
103720
+ "optional": true,
103721
+ "type": {
103722
+ "text": "boolean"
103723
+ }
103724
+ }
103725
+ ],
103726
+ "inheritedFrom": {
103727
+ "name": "SbbElement",
103728
+ "module": "core/base-elements/element.js"
103729
+ }
103730
+ },
103731
+ {
103732
+ "kind": "field",
103733
+ "name": "['_$sbbElement$']",
103734
+ "type": {
103735
+ "text": "boolean"
103736
+ },
103737
+ "privacy": "public",
103738
+ "static": true,
103739
+ "default": "true",
103740
+ "inheritedFrom": {
103741
+ "name": "SbbElement",
103742
+ "module": "core/base-elements/element.js"
103743
+ }
103744
+ },
103745
+ {
103746
+ "kind": "field",
103747
+ "name": "_controllers",
103748
+ "type": {
103749
+ "text": "Set<SbbReactiveController> | undefined"
103750
+ },
103751
+ "privacy": "private",
103752
+ "inheritedFrom": {
103753
+ "name": "SbbElement",
103754
+ "module": "core/base-elements/element.js"
103755
+ }
103756
+ }
103757
+ ],
103758
+ "mixins": [
103759
+ {
103760
+ "name": "SbbBlockLinkCommonElementMixin",
103761
+ "module": "link/common/block-link-common.js"
103762
+ },
103763
+ {
103764
+ "name": "SbbDisabledMixin",
103765
+ "module": "core/mixins.js"
103766
+ }
103767
+ ],
103768
+ "superclass": {
103769
+ "name": "SbbActionBaseElement",
103770
+ "module": "core/base-elements.js"
103771
+ },
103772
+ "tagName": "sbb-block-link-static",
103773
+ "customElement": true,
103774
+ "attributes": [
103775
+ {
103776
+ "name": "icon-placement",
103777
+ "type": {
103778
+ "text": "SbbIconPlacement"
103779
+ },
103780
+ "default": "'start'",
103781
+ "description": "Moves the icon to the end of the component if set to true.",
103782
+ "fieldName": "iconPlacement",
103783
+ "inheritedFrom": {
103784
+ "name": "SbbBlockLinkCommonElementMixin",
103785
+ "module": "link/common/block-link-common.js"
103786
+ }
103787
+ },
103788
+ {
103789
+ "name": "size",
103790
+ "type": {
103791
+ "text": "SbbLinkSize"
103792
+ },
103793
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
103794
+ "default": "'s' / 'xs' (lean)",
103795
+ "fieldName": "size",
103796
+ "inheritedFrom": {
103797
+ "name": "SbbLinkCommonElementMixin",
103798
+ "module": "link/common/link-common.js"
103799
+ }
103800
+ },
103801
+ {
103802
+ "name": "icon-name",
103803
+ "type": {
103804
+ "text": "string"
103805
+ },
103806
+ "default": "''",
103807
+ "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.",
103808
+ "fieldName": "iconName",
103809
+ "inheritedFrom": {
103810
+ "name": "SbbIconNameMixin",
103811
+ "module": "icon/icon-name-mixin.js"
103812
+ }
103813
+ },
103814
+ {
103815
+ "name": "disabled",
103816
+ "description": "Whether the component is disabled.",
103817
+ "default": "false",
103818
+ "type": {
103819
+ "text": "boolean"
103820
+ },
103821
+ "fieldName": "disabled",
103822
+ "inheritedFrom": {
103823
+ "name": "SbbDisabledMixin",
103824
+ "module": "core/mixins/disabled-mixin.js"
103825
+ }
103826
+ }
103827
+ ]
103828
+ }
103829
+ ],
103830
+ "exports": [
103831
+ {
103832
+ "kind": "js",
103833
+ "name": "SbbBlockLinkStaticElement",
103834
+ "declaration": {
103835
+ "name": "SbbBlockLinkStaticElement",
103836
+ "module": "link/block-link-static/block-link-static.component.js"
103837
+ }
103838
+ }
103839
+ ]
103840
+ },
103841
103841
  {
103842
103842
  "kind": "javascript-module",
103843
103843
  "path": "link/link/link.component.js",
@@ -110073,176 +110073,6 @@
110073
110073
  }
110074
110074
  ]
110075
110075
  },
110076
- {
110077
- "kind": "javascript-module",
110078
- "path": "navigation/common/navigation-action-common.js",
110079
- "declarations": [
110080
- {
110081
- "kind": "class",
110082
- "description": "",
110083
- "name": "SbbNavigationActionCommonElementMixinType",
110084
- "members": [
110085
- {
110086
- "kind": "field",
110087
- "name": "size",
110088
- "type": {
110089
- "text": "SbbNavigationActionSize"
110090
- },
110091
- "privacy": "public"
110092
- },
110093
- {
110094
- "kind": "field",
110095
- "name": "marker",
110096
- "type": {
110097
- "text": "SbbNavigationMarkerElement | null"
110098
- },
110099
- "privacy": "public",
110100
- "readonly": true
110101
- },
110102
- {
110103
- "kind": "field",
110104
- "name": "section",
110105
- "type": {
110106
- "text": "SbbNavigationSectionElement | null"
110107
- },
110108
- "privacy": "public",
110109
- "readonly": true
110110
- },
110111
- {
110112
- "kind": "field",
110113
- "name": "connectedSection",
110114
- "type": {
110115
- "text": "SbbNavigationSectionElement | undefined"
110116
- },
110117
- "privacy": "public"
110118
- }
110119
- ]
110120
- },
110121
- {
110122
- "kind": "mixin",
110123
- "description": "",
110124
- "name": "SbbNavigationActionCommonElementMixin",
110125
- "members": [
110126
- {
110127
- "kind": "field",
110128
- "name": "styles",
110129
- "type": {
110130
- "text": "CSSResultGroup"
110131
- },
110132
- "privacy": "public",
110133
- "static": true,
110134
- "default": "[boxSizingStyles, unsafeCSS(style)]"
110135
- },
110136
- {
110137
- "kind": "field",
110138
- "name": "size",
110139
- "type": {
110140
- "text": "SbbNavigationActionSize"
110141
- },
110142
- "privacy": "public",
110143
- "description": "Action size variant, either s, m or l.",
110144
- "default": "'l' / 's' (lean)",
110145
- "attribute": "size",
110146
- "reflects": true
110147
- },
110148
- {
110149
- "kind": "field",
110150
- "name": "connectedSection",
110151
- "type": {
110152
- "text": "SbbNavigationSectionElement | undefined"
110153
- },
110154
- "privacy": "public",
110155
- "description": "The section that is being controlled by the action, if any."
110156
- },
110157
- {
110158
- "kind": "field",
110159
- "name": "marker",
110160
- "type": {
110161
- "text": "SbbNavigationMarkerElement | null"
110162
- },
110163
- "privacy": "public",
110164
- "description": "The navigation marker in which the action is nested.",
110165
- "readonly": true
110166
- },
110167
- {
110168
- "kind": "field",
110169
- "name": "section",
110170
- "type": {
110171
- "text": "SbbNavigationSectionElement | null"
110172
- },
110173
- "privacy": "public",
110174
- "description": "The section in which the action is nested.",
110175
- "readonly": true
110176
- },
110177
- {
110178
- "kind": "field",
110179
- "name": "_navigationMarker",
110180
- "type": {
110181
- "text": "SbbNavigationMarkerElement | null"
110182
- },
110183
- "privacy": "private",
110184
- "default": "null"
110185
- },
110186
- {
110187
- "kind": "field",
110188
- "name": "_navigationSection",
110189
- "type": {
110190
- "text": "SbbNavigationSectionElement | null"
110191
- },
110192
- "privacy": "private",
110193
- "default": "null"
110194
- },
110195
- {
110196
- "kind": "method",
110197
- "name": "renderTemplate",
110198
- "privacy": "protected",
110199
- "return": {
110200
- "type": {
110201
- "text": "TemplateResult"
110202
- }
110203
- }
110204
- }
110205
- ],
110206
- "attributes": [
110207
- {
110208
- "name": "size",
110209
- "type": {
110210
- "text": "SbbNavigationActionSize"
110211
- },
110212
- "description": "Action size variant, either s, m or l.",
110213
- "default": "'l' / 's' (lean)",
110214
- "fieldName": "size"
110215
- }
110216
- ],
110217
- "parameters": [
110218
- {
110219
- "name": "superClass",
110220
- "type": {
110221
- "text": "T"
110222
- }
110223
- }
110224
- ]
110225
- }
110226
- ],
110227
- "exports": [
110228
- {
110229
- "kind": "js",
110230
- "name": "SbbNavigationActionCommonElementMixinType",
110231
- "declaration": {
110232
- "name": "SbbNavigationActionCommonElementMixinType",
110233
- "module": "navigation/common/navigation-action-common.js"
110234
- }
110235
- },
110236
- {
110237
- "kind": "js",
110238
- "name": "SbbNavigationActionCommonElementMixin",
110239
- "declaration": {
110240
- "name": "SbbNavigationActionCommonElementMixin",
110241
- "module": "navigation/common/navigation-action-common.js"
110242
- }
110243
- }
110244
- ]
110245
- },
110246
110076
  {
110247
110077
  "kind": "javascript-module",
110248
110078
  "path": "mini-calendar/mini-calendar-month/mini-calendar-month.component.js",
@@ -110461,6 +110291,176 @@
110461
110291
  }
110462
110292
  ]
110463
110293
  },
110294
+ {
110295
+ "kind": "javascript-module",
110296
+ "path": "navigation/common/navigation-action-common.js",
110297
+ "declarations": [
110298
+ {
110299
+ "kind": "class",
110300
+ "description": "",
110301
+ "name": "SbbNavigationActionCommonElementMixinType",
110302
+ "members": [
110303
+ {
110304
+ "kind": "field",
110305
+ "name": "size",
110306
+ "type": {
110307
+ "text": "SbbNavigationActionSize"
110308
+ },
110309
+ "privacy": "public"
110310
+ },
110311
+ {
110312
+ "kind": "field",
110313
+ "name": "marker",
110314
+ "type": {
110315
+ "text": "SbbNavigationMarkerElement | null"
110316
+ },
110317
+ "privacy": "public",
110318
+ "readonly": true
110319
+ },
110320
+ {
110321
+ "kind": "field",
110322
+ "name": "section",
110323
+ "type": {
110324
+ "text": "SbbNavigationSectionElement | null"
110325
+ },
110326
+ "privacy": "public",
110327
+ "readonly": true
110328
+ },
110329
+ {
110330
+ "kind": "field",
110331
+ "name": "connectedSection",
110332
+ "type": {
110333
+ "text": "SbbNavigationSectionElement | undefined"
110334
+ },
110335
+ "privacy": "public"
110336
+ }
110337
+ ]
110338
+ },
110339
+ {
110340
+ "kind": "mixin",
110341
+ "description": "",
110342
+ "name": "SbbNavigationActionCommonElementMixin",
110343
+ "members": [
110344
+ {
110345
+ "kind": "field",
110346
+ "name": "styles",
110347
+ "type": {
110348
+ "text": "CSSResultGroup"
110349
+ },
110350
+ "privacy": "public",
110351
+ "static": true,
110352
+ "default": "[boxSizingStyles, unsafeCSS(style)]"
110353
+ },
110354
+ {
110355
+ "kind": "field",
110356
+ "name": "size",
110357
+ "type": {
110358
+ "text": "SbbNavigationActionSize"
110359
+ },
110360
+ "privacy": "public",
110361
+ "description": "Action size variant, either s, m or l.",
110362
+ "default": "'l' / 's' (lean)",
110363
+ "attribute": "size",
110364
+ "reflects": true
110365
+ },
110366
+ {
110367
+ "kind": "field",
110368
+ "name": "connectedSection",
110369
+ "type": {
110370
+ "text": "SbbNavigationSectionElement | undefined"
110371
+ },
110372
+ "privacy": "public",
110373
+ "description": "The section that is being controlled by the action, if any."
110374
+ },
110375
+ {
110376
+ "kind": "field",
110377
+ "name": "marker",
110378
+ "type": {
110379
+ "text": "SbbNavigationMarkerElement | null"
110380
+ },
110381
+ "privacy": "public",
110382
+ "description": "The navigation marker in which the action is nested.",
110383
+ "readonly": true
110384
+ },
110385
+ {
110386
+ "kind": "field",
110387
+ "name": "section",
110388
+ "type": {
110389
+ "text": "SbbNavigationSectionElement | null"
110390
+ },
110391
+ "privacy": "public",
110392
+ "description": "The section in which the action is nested.",
110393
+ "readonly": true
110394
+ },
110395
+ {
110396
+ "kind": "field",
110397
+ "name": "_navigationMarker",
110398
+ "type": {
110399
+ "text": "SbbNavigationMarkerElement | null"
110400
+ },
110401
+ "privacy": "private",
110402
+ "default": "null"
110403
+ },
110404
+ {
110405
+ "kind": "field",
110406
+ "name": "_navigationSection",
110407
+ "type": {
110408
+ "text": "SbbNavigationSectionElement | null"
110409
+ },
110410
+ "privacy": "private",
110411
+ "default": "null"
110412
+ },
110413
+ {
110414
+ "kind": "method",
110415
+ "name": "renderTemplate",
110416
+ "privacy": "protected",
110417
+ "return": {
110418
+ "type": {
110419
+ "text": "TemplateResult"
110420
+ }
110421
+ }
110422
+ }
110423
+ ],
110424
+ "attributes": [
110425
+ {
110426
+ "name": "size",
110427
+ "type": {
110428
+ "text": "SbbNavigationActionSize"
110429
+ },
110430
+ "description": "Action size variant, either s, m or l.",
110431
+ "default": "'l' / 's' (lean)",
110432
+ "fieldName": "size"
110433
+ }
110434
+ ],
110435
+ "parameters": [
110436
+ {
110437
+ "name": "superClass",
110438
+ "type": {
110439
+ "text": "T"
110440
+ }
110441
+ }
110442
+ ]
110443
+ }
110444
+ ],
110445
+ "exports": [
110446
+ {
110447
+ "kind": "js",
110448
+ "name": "SbbNavigationActionCommonElementMixinType",
110449
+ "declaration": {
110450
+ "name": "SbbNavigationActionCommonElementMixinType",
110451
+ "module": "navigation/common/navigation-action-common.js"
110452
+ }
110453
+ },
110454
+ {
110455
+ "kind": "js",
110456
+ "name": "SbbNavigationActionCommonElementMixin",
110457
+ "declaration": {
110458
+ "name": "SbbNavigationActionCommonElementMixin",
110459
+ "module": "navigation/common/navigation-action-common.js"
110460
+ }
110461
+ }
110462
+ ]
110463
+ },
110464
110464
  {
110465
110465
  "kind": "javascript-module",
110466
110466
  "path": "navigation/navigation/navigation.component.js",
@@ -120548,28 +120548,20 @@
120548
120548
  },
120549
120549
  {
120550
120550
  "kind": "javascript-module",
120551
- "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
120551
+ "path": "sidebar/sidebar/sidebar.component.js",
120552
120552
  "declarations": [
120553
120553
  {
120554
120554
  "kind": "class",
120555
- "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
120556
- "name": "SbbSidebarCloseButtonElement",
120555
+ "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
120556
+ "name": "SbbSidebarElement",
120557
120557
  "slots": [
120558
120558
  {
120559
- "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
120560
- "name": "",
120561
- "inheritedFrom": {
120562
- "name": "SbbSecondaryButtonElement",
120563
- "module": "button/secondary-button/secondary-button.component.js"
120564
- }
120559
+ "description": "Use the unnamed slot to slot any content into the sidebar.",
120560
+ "name": ""
120565
120561
  },
120566
120562
  {
120567
- "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
120568
- "name": "icon",
120569
- "inheritedFrom": {
120570
- "name": "SbbSecondaryButtonElement",
120571
- "module": "button/secondary-button/secondary-button.component.js"
120572
- }
120563
+ "description": "Use the title slot to add an <sbb-title>.",
120564
+ "name": "title"
120573
120565
  }
120574
120566
  ],
120575
120567
  "members": [
@@ -120586,507 +120578,539 @@
120586
120578
  "name": "SbbElement",
120587
120579
  "module": "core/base-elements/element.js"
120588
120580
  },
120589
- "default": "'sbb-sidebar-close-button'"
120581
+ "default": "'sbb-sidebar'"
120590
120582
  },
120591
120583
  {
120592
120584
  "kind": "field",
120593
- "name": "_languageController",
120594
- "privacy": "private",
120595
- "default": "new SbbLanguageController(this)"
120596
- },
120597
- {
120598
- "kind": "method",
120599
- "name": "renderTemplate",
120600
- "privacy": "protected",
120601
- "return": {
120602
- "type": {
120603
- "text": "TemplateResult"
120604
- }
120585
+ "name": "color",
120586
+ "type": {
120587
+ "text": "'white' | 'milk'"
120605
120588
  },
120606
- "description": "Override this method to render the component template.",
120607
- "inheritedFrom": {
120608
- "name": "SbbActionBaseElement",
120609
- "module": "core/base-elements/action-base-element.js"
120610
- }
120589
+ "privacy": "public",
120590
+ "default": "'white'",
120591
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
120592
+ "attribute": "color",
120593
+ "reflects": true
120611
120594
  },
120612
120595
  {
120613
- "kind": "method",
120614
- "name": "renderIconName",
120615
- "privacy": "protected",
120616
- "return": {
120617
- "type": {
120618
- "text": "string"
120619
- }
120596
+ "kind": "field",
120597
+ "name": "mode",
120598
+ "type": {
120599
+ "text": "'side' | 'over'"
120620
120600
  },
120621
- "inheritedFrom": {
120622
- "name": "SbbIconNameMixin",
120623
- "module": "icon/icon-name-mixin.js"
120624
- }
120601
+ "privacy": "public",
120602
+ "default": "'side'",
120603
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
120604
+ "attribute": "mode",
120605
+ "reflects": true
120625
120606
  },
120626
120607
  {
120627
120608
  "kind": "field",
120628
- "name": "size",
120609
+ "name": "position",
120629
120610
  "type": {
120630
- "text": "SbbButtonSize"
120611
+ "text": "'start' | 'end'"
120631
120612
  },
120632
120613
  "privacy": "public",
120633
- "description": "Size variant, either l, m or s.",
120634
- "default": "'s'",
120635
- "attribute": "size",
120636
- "reflects": true,
120637
- "inheritedFrom": {
120638
- "name": "SbbButtonCommonElementMixin",
120639
- "module": "button/common/button-common.js"
120640
- }
120614
+ "default": "'start'",
120615
+ "description": "The side that the sidebar is attached to.",
120616
+ "attribute": "position",
120617
+ "reflects": true
120641
120618
  },
120642
120619
  {
120643
120620
  "kind": "field",
120644
- "name": "loading",
120621
+ "name": "opened",
120645
120622
  "type": {
120646
120623
  "text": "boolean"
120647
120624
  },
120648
120625
  "privacy": "public",
120649
120626
  "default": "false",
120650
- "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
120651
- "attribute": "loading",
120652
- "reflects": true,
120653
- "inheritedFrom": {
120654
- "name": "SbbButtonCommonElementMixin",
120655
- "module": "button/common/button-common.js"
120656
- }
120627
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
120628
+ "attribute": "opened",
120629
+ "reflects": true
120657
120630
  },
120658
120631
  {
120659
120632
  "kind": "field",
120660
- "name": "negative",
120633
+ "name": "focusOnOpen",
120661
120634
  "type": {
120662
120635
  "text": "boolean"
120663
120636
  },
120664
120637
  "privacy": "public",
120665
120638
  "default": "false",
120666
- "description": "Negative coloring variant flag.",
120667
- "attribute": "negative",
120668
- "reflects": true,
120669
- "inheritedFrom": {
120670
- "name": "SbbNegativeMixin",
120671
- "module": "core/mixins/negative-mixin.js"
120672
- }
120639
+ "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.",
120640
+ "attribute": "focus-on-open"
120673
120641
  },
120674
120642
  {
120675
120643
  "kind": "field",
120676
- "name": "iconName",
120644
+ "name": "container",
120677
120645
  "type": {
120678
- "text": "string"
120646
+ "text": "SbbSidebarContainerElement | null"
120679
120647
  },
120680
120648
  "privacy": "public",
120681
- "default": "''",
120682
- "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.",
120683
- "attribute": "icon-name",
120684
- "inheritedFrom": {
120685
- "name": "SbbIconNameMixin",
120686
- "module": "icon/icon-name-mixin.js"
120687
- }
120649
+ "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
120650
+ "readonly": true,
120651
+ "default": "null"
120652
+ },
120653
+ {
120654
+ "kind": "field",
120655
+ "name": "_container",
120656
+ "type": {
120657
+ "text": "SbbSidebarContainerElement | null"
120658
+ },
120659
+ "privacy": "private",
120660
+ "default": "null"
120661
+ },
120662
+ {
120663
+ "kind": "field",
120664
+ "name": "_lastFocusedElement",
120665
+ "type": {
120666
+ "text": "HTMLElement | null"
120667
+ },
120668
+ "privacy": "private",
120669
+ "default": "null"
120670
+ },
120671
+ {
120672
+ "kind": "field",
120673
+ "name": "_focusTrapController",
120674
+ "privacy": "private",
120675
+ "default": "new SbbFocusTrapController(this)"
120676
+ },
120677
+ {
120678
+ "kind": "field",
120679
+ "name": "_escapableOverlayController",
120680
+ "privacy": "private",
120681
+ "default": "new SbbEscapableOverlayController(this)"
120682
+ },
120683
+ {
120684
+ "kind": "field",
120685
+ "name": "_closeOnNavigation",
120686
+ "privacy": "private"
120688
120687
  },
120689
120688
  {
120690
120689
  "kind": "method",
120691
- "name": "renderIconSlot",
120692
- "privacy": "protected",
120690
+ "name": "toggle",
120691
+ "privacy": "public",
120693
120692
  "return": {
120694
120693
  "type": {
120695
- "text": "TemplateResult"
120694
+ "text": "void"
120696
120695
  }
120697
120696
  },
120698
- "parameters": [
120699
- {
120700
- "name": "classname",
120701
- "optional": true,
120702
- "type": {
120703
- "text": "string"
120704
- }
120697
+ "description": "Toggles the sidebar visibility."
120698
+ },
120699
+ {
120700
+ "kind": "method",
120701
+ "name": "open",
120702
+ "privacy": "public",
120703
+ "return": {
120704
+ "type": {
120705
+ "text": "void"
120705
120706
  }
120706
- ],
120707
+ },
120708
+ "description": "Opens the sidebar.",
120707
120709
  "inheritedFrom": {
120708
- "name": "SbbIconNameMixin",
120709
- "module": "icon/icon-name-mixin.js"
120710
+ "name": "SbbOpenCloseBaseElement",
120711
+ "module": "core/base-elements/open-close-base-element.js"
120710
120712
  }
120711
120713
  },
120712
120714
  {
120713
120715
  "kind": "method",
120714
- "name": "_renderIconName",
120716
+ "name": "_isZeroAnimationDuration",
120715
120717
  "privacy": "private",
120716
120718
  "return": {
120717
120719
  "type": {
120718
- "text": "string"
120720
+ "text": "boolean"
120719
120721
  }
120720
- },
120721
- "inheritedFrom": {
120722
- "name": "SbbIconNameMixin",
120723
- "module": "icon/icon-name-mixin.js"
120724
120722
  }
120725
120723
  },
120726
120724
  {
120727
- "kind": "field",
120728
- "name": "disabledInteractive",
120729
- "type": {
120730
- "text": "boolean"
120731
- },
120732
- "privacy": "public",
120733
- "default": "false",
120734
- "description": "Whether the button should be aria-disabled but stay interactive.",
120735
- "attribute": "disabled-interactive",
120736
- "reflects": true,
120737
- "inheritedFrom": {
120738
- "name": "SbbDisabledInteractiveMixin",
120739
- "module": "core/mixins/disabled-mixin.js"
120725
+ "kind": "method",
120726
+ "name": "_handleOpening",
120727
+ "privacy": "private",
120728
+ "return": {
120729
+ "type": {
120730
+ "text": "void"
120731
+ }
120740
120732
  }
120741
120733
  },
120742
120734
  {
120743
- "kind": "field",
120744
- "name": "disabled",
120735
+ "kind": "method",
120736
+ "name": "close",
120745
120737
  "privacy": "public",
120746
- "description": "Whether the component is disabled.",
120747
- "default": "false",
120748
- "type": {
120749
- "text": "boolean"
120738
+ "return": {
120739
+ "type": {
120740
+ "text": "void"
120741
+ }
120750
120742
  },
120751
- "attribute": "disabled",
120752
- "reflects": true,
120743
+ "description": "Closes the sidebar.",
120753
120744
  "inheritedFrom": {
120754
- "name": "SbbDisabledMixin",
120755
- "module": "core/mixins/disabled-mixin.js"
120745
+ "name": "SbbOpenCloseBaseElement",
120746
+ "module": "core/base-elements/open-close-base-element.js"
120756
120747
  }
120757
120748
  },
120758
120749
  {
120759
- "kind": "field",
120760
- "name": "#disabled",
120750
+ "kind": "method",
120751
+ "name": "_handleClosing",
120761
120752
  "privacy": "private",
120762
- "type": {
120763
- "text": "boolean"
120764
- },
120765
- "default": "false",
120766
- "inheritedFrom": {
120767
- "name": "SbbDisabledMixin",
120768
- "module": "core/mixins/disabled-mixin.js"
120753
+ "return": {
120754
+ "type": {
120755
+ "text": "void"
120756
+ }
120769
120757
  }
120770
120758
  },
120771
120759
  {
120772
120760
  "kind": "method",
120773
- "name": "isDisabledExternally",
120761
+ "name": "_takeFocus",
120762
+ "privacy": "private",
120763
+ "return": {
120764
+ "type": {
120765
+ "text": "void"
120766
+ }
120767
+ }
120768
+ },
120769
+ {
120770
+ "kind": "method",
120771
+ "name": "cedeFocus",
120774
120772
  "privacy": "protected",
120775
120773
  "return": {
120776
120774
  "type": {
120777
- "text": "boolean"
120775
+ "text": "void"
120778
120776
  }
120779
- },
120780
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
120781
- "inheritedFrom": {
120782
- "name": "SbbDisabledMixin",
120783
- "module": "core/mixins/disabled-mixin.js"
120784
120777
  }
120785
120778
  },
120786
120779
  {
120787
- "kind": "field",
120788
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
120789
- "type": {
120790
- "text": "array"
120780
+ "kind": "method",
120781
+ "name": "_updateSidebarWidth",
120782
+ "privacy": "private",
120783
+ "return": {
120784
+ "type": {
120785
+ "text": "void"
120786
+ }
120791
120787
  },
120788
+ "parameters": [
120789
+ {
120790
+ "name": "oldPosition",
120791
+ "optional": true,
120792
+ "type": {
120793
+ "text": "this['position']"
120794
+ }
120795
+ }
120796
+ ]
120797
+ },
120798
+ {
120799
+ "kind": "method",
120800
+ "name": "_buildCssWidthVar",
120792
120801
  "privacy": "private",
120793
- "readonly": true,
120794
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
120795
- "inheritedFrom": {
120796
- "name": "SbbButtonBaseElement",
120797
- "module": "core/base-elements/button-base-element.js"
120802
+ "return": {
120803
+ "type": {
120804
+ "text": "string"
120805
+ }
120806
+ },
120807
+ "parameters": [
120808
+ {
120809
+ "name": "position",
120810
+ "default": "this.position"
120811
+ }
120812
+ ]
120813
+ },
120814
+ {
120815
+ "kind": "method",
120816
+ "name": "_isModeOver",
120817
+ "privacy": "private",
120818
+ "return": {
120819
+ "type": {
120820
+ "text": "boolean"
120821
+ }
120798
120822
  }
120799
120823
  },
120800
120824
  {
120801
- "kind": "field",
120802
- "name": "value",
120803
- "type": {
120804
- "text": "string"
120805
- },
120806
- "privacy": "public",
120807
- "inheritedFrom": {
120808
- "name": "SbbButtonBaseElement",
120809
- "module": "core/base-elements/button-base-element.js"
120825
+ "kind": "method",
120826
+ "name": "_onTransitionEnd",
120827
+ "privacy": "private",
120828
+ "return": {
120829
+ "type": {
120830
+ "text": "void"
120831
+ }
120810
120832
  },
120811
- "default": "''",
120812
- "description": "Value of the form element.",
120813
- "attribute": "value"
120833
+ "parameters": [
120834
+ {
120835
+ "name": "event",
120836
+ "type": {
120837
+ "text": "TransitionEvent"
120838
+ }
120839
+ }
120840
+ ]
120814
120841
  },
120815
120842
  {
120816
- "kind": "field",
120817
- "name": "type",
120818
- "privacy": "public",
120819
- "description": "The type attribute to use for the button.",
120820
- "default": "'button'",
120821
- "type": {
120822
- "text": "SbbButtonType"
120823
- },
120824
- "attribute": "type",
120825
- "inheritedFrom": {
120826
- "name": "SbbButtonBaseElement",
120827
- "module": "core/base-elements/button-base-element.js"
120843
+ "kind": "method",
120844
+ "name": "_detectScrolledState",
120845
+ "privacy": "private",
120846
+ "return": {
120847
+ "type": {
120848
+ "text": "void"
120849
+ }
120828
120850
  }
120829
120851
  },
120830
120852
  {
120831
120853
  "kind": "field",
120832
- "name": "form",
120854
+ "name": "isAnimating",
120833
120855
  "type": {
120834
- "text": "HTMLFormElement | null"
120856
+ "text": "boolean"
120835
120857
  },
120836
120858
  "privacy": "public",
120837
- "description": "The `<form>` element to associate the button with.",
120859
+ "default": "false",
120860
+ "description": "Whether the component is currently animating.",
120838
120861
  "inheritedFrom": {
120839
- "name": "SbbButtonBaseElement",
120840
- "module": "core/base-elements/button-base-element.js"
120841
- },
120842
- "attribute": "form"
120862
+ "name": "SbbAnimationCompleteMixin",
120863
+ "module": "core/mixins/animation-complete-mixin.js"
120864
+ }
120843
120865
  },
120844
120866
  {
120845
120867
  "kind": "field",
120846
- "name": "_formId",
120868
+ "name": "animationComplete",
120847
120869
  "type": {
120848
- "text": "string"
120870
+ "text": "Promise<void>"
120849
120871
  },
120850
- "privacy": "private",
120851
- "default": "''",
120872
+ "privacy": "public",
120873
+ "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
120874
+ "readonly": true,
120852
120875
  "inheritedFrom": {
120853
- "name": "SbbButtonBaseElement",
120854
- "module": "core/base-elements/button-base-element.js"
120876
+ "name": "SbbAnimationCompleteMixin",
120877
+ "module": "core/mixins/animation-complete-mixin.js"
120855
120878
  }
120856
120879
  },
120857
120880
  {
120858
120881
  "kind": "field",
120859
- "name": "_handleButtonClick",
120882
+ "name": "_animationPromise",
120883
+ "type": {
120884
+ "text": "Promise<void>"
120885
+ },
120860
120886
  "privacy": "private",
120861
120887
  "inheritedFrom": {
120862
- "name": "SbbButtonBaseElement",
120863
- "module": "core/base-elements/button-base-element.js"
120888
+ "name": "SbbAnimationCompleteMixin",
120889
+ "module": "core/mixins/animation-complete-mixin.js"
120864
120890
  }
120865
120891
  },
120866
120892
  {
120867
120893
  "kind": "method",
120868
- "name": "_requestSubmit",
120869
- "privacy": "private",
120894
+ "name": "startAnimation",
120895
+ "privacy": "protected",
120870
120896
  "return": {
120871
120897
  "type": {
120872
120898
  "text": "void"
120873
120899
  }
120874
120900
  },
120875
- "parameters": [
120876
- {
120877
- "name": "form",
120878
- "type": {
120879
- "text": "HTMLFormElement"
120880
- }
120881
- }
120882
- ],
120883
120901
  "inheritedFrom": {
120884
- "name": "SbbButtonBaseElement",
120885
- "module": "core/base-elements/button-base-element.js"
120902
+ "name": "SbbAnimationCompleteMixin",
120903
+ "module": "core/mixins/animation-complete-mixin.js"
120886
120904
  }
120887
120905
  },
120888
120906
  {
120889
- "kind": "field",
120890
- "name": "_formKeyDown",
120891
- "privacy": "private",
120907
+ "kind": "method",
120908
+ "name": "stopAnimation",
120909
+ "privacy": "protected",
120910
+ "return": {
120911
+ "type": {
120912
+ "text": "void"
120913
+ }
120914
+ },
120915
+ "description": "Overriding stopAnimation() breaks functionality.",
120892
120916
  "inheritedFrom": {
120893
- "name": "SbbButtonBaseElement",
120894
- "module": "core/base-elements/button-base-element.js"
120917
+ "name": "SbbAnimationCompleteMixin",
120918
+ "module": "core/mixins/animation-complete-mixin.js"
120895
120919
  }
120896
120920
  },
120897
120921
  {
120898
- "kind": "field",
120899
- "name": "formAssociated",
120900
- "type": {
120901
- "text": "boolean"
120922
+ "kind": "method",
120923
+ "name": "_enqueueAnimation",
120924
+ "privacy": "private",
120925
+ "return": {
120926
+ "type": {
120927
+ "text": "Promise<void>"
120928
+ }
120902
120929
  },
120903
- "privacy": "public",
120904
- "static": true,
120905
- "default": "true",
120906
120930
  "inheritedFrom": {
120907
- "name": "SbbFormAssociatedMixin",
120908
- "module": "core/mixins/form-associated-mixin.js"
120931
+ "name": "SbbAnimationCompleteMixin",
120932
+ "module": "core/mixins/animation-complete-mixin.js"
120909
120933
  }
120910
120934
  },
120911
120935
  {
120912
120936
  "kind": "field",
120913
- "name": "name",
120937
+ "name": "events",
120914
120938
  "privacy": "public",
120915
- "description": "Name of the form element. Will be read from name attribute.",
120939
+ "static": true,
120940
+ "readonly": true,
120941
+ "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
120916
120942
  "type": {
120917
- "text": "string"
120943
+ "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
120918
120944
  },
120919
- "attribute": "name",
120920
120945
  "inheritedFrom": {
120921
- "name": "SbbFormAssociatedMixin",
120922
- "module": "core/mixins/form-associated-mixin.js"
120946
+ "name": "SbbOpenCloseBaseElement",
120947
+ "module": "core/base-elements/open-close-base-element.js"
120923
120948
  }
120924
120949
  },
120925
120950
  {
120926
120951
  "kind": "field",
120927
- "name": "validity",
120952
+ "name": "state",
120953
+ "privacy": "protected",
120954
+ "description": "The state of the component.",
120928
120955
  "type": {
120929
- "text": "ValidityState"
120956
+ "text": "SbbOpenedClosedState"
120930
120957
  },
120931
- "privacy": "public",
120932
- "description": "Returns the ValidityState object for this element.",
120933
- "readonly": true,
120958
+ "default": "'closed'",
120934
120959
  "inheritedFrom": {
120935
- "name": "SbbFormAssociatedMixin",
120936
- "module": "core/mixins/form-associated-mixin.js"
120960
+ "name": "SbbOpenCloseBaseElement",
120961
+ "module": "core/base-elements/open-close-base-element.js"
120937
120962
  }
120938
120963
  },
120939
120964
  {
120940
120965
  "kind": "field",
120941
- "name": "validationMessage",
120966
+ "name": "_state",
120942
120967
  "type": {
120943
- "text": "string"
120968
+ "text": "SbbOpenedClosedState"
120944
120969
  },
120945
- "privacy": "public",
120946
- "description": "Returns the current error message, if available, which corresponds\nto the current validation state.\nPlease note that only one message is returned at a time (e.g. if\nmultiple validity states are invalid, only the chronologically first one\nis returned until it is fixed, at which point the next message might be\nreturned, if it is still applicable). Also, a custom validity message\n(see below) has precedence over native validation messages.",
120947
- "readonly": true,
120970
+ "privacy": "private",
120948
120971
  "inheritedFrom": {
120949
- "name": "SbbFormAssociatedMixin",
120950
- "module": "core/mixins/form-associated-mixin.js"
120972
+ "name": "SbbOpenCloseBaseElement",
120973
+ "module": "core/base-elements/open-close-base-element.js"
120951
120974
  }
120952
120975
  },
120953
120976
  {
120954
120977
  "kind": "field",
120955
- "name": "willValidate",
120978
+ "name": "isOpen",
120956
120979
  "type": {
120957
120980
  "text": "boolean"
120958
120981
  },
120959
120982
  "privacy": "public",
120960
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
120983
+ "description": "Whether the element is open.",
120961
120984
  "readonly": true,
120962
120985
  "inheritedFrom": {
120963
- "name": "SbbFormAssociatedMixin",
120964
- "module": "core/mixins/form-associated-mixin.js"
120965
- }
120966
- },
120967
- {
120968
- "kind": "field",
120969
- "name": "_validityStates",
120970
- "privacy": "private",
120971
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
120972
- "inheritedFrom": {
120973
- "name": "SbbFormAssociatedMixin",
120974
- "module": "core/mixins/form-associated-mixin.js"
120975
- }
120976
- },
120977
- {
120978
- "kind": "field",
120979
- "name": "formDisabled",
120980
- "type": {
120981
- "text": "boolean"
120982
- },
120983
- "privacy": "protected",
120984
- "default": "false",
120985
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
120986
- "inheritedFrom": {
120987
- "name": "SbbFormAssociatedMixin",
120988
- "module": "core/mixins/form-associated-mixin.js"
120986
+ "name": "SbbOpenCloseBaseElement",
120987
+ "module": "core/base-elements/open-close-base-element.js"
120989
120988
  }
120990
120989
  },
120991
120990
  {
120992
120991
  "kind": "method",
120993
- "name": "checkValidity",
120992
+ "name": "escapeStrategy",
120994
120993
  "privacy": "public",
120995
120994
  "return": {
120996
120995
  "type": {
120997
- "text": "boolean"
120996
+ "text": "void"
120998
120997
  }
120999
120998
  },
121000
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
120999
+ "description": "The method which is called on escape key press. Defaults to calling close()",
121001
121000
  "inheritedFrom": {
121002
- "name": "SbbFormAssociatedMixin",
121003
- "module": "core/mixins/form-associated-mixin.js"
121001
+ "name": "SbbOpenCloseBaseElement",
121002
+ "module": "core/base-elements/open-close-base-element.js"
121004
121003
  }
121005
121004
  },
121006
121005
  {
121007
121006
  "kind": "method",
121008
- "name": "reportValidity",
121009
- "privacy": "public",
121007
+ "name": "dispatchBeforeOpenEvent",
121008
+ "privacy": "protected",
121010
121009
  "return": {
121011
121010
  "type": {
121012
121011
  "text": "boolean"
121013
121012
  }
121014
121013
  },
121015
- "description": "Returns true if this element has no validity problems; otherwise,\nreturns false, fires an invalid event at the element,\nand (if the event isn't canceled) reports the problem to the user.",
121016
121014
  "inheritedFrom": {
121017
- "name": "SbbFormAssociatedMixin",
121018
- "module": "core/mixins/form-associated-mixin.js"
121015
+ "name": "SbbOpenCloseBaseElement",
121016
+ "module": "core/base-elements/open-close-base-element.js"
121019
121017
  }
121020
121018
  },
121021
121019
  {
121022
121020
  "kind": "method",
121023
- "name": "setCustomValidity",
121024
- "privacy": "public",
121021
+ "name": "dispatchOpenEvent",
121022
+ "privacy": "protected",
121025
121023
  "return": {
121026
121024
  "type": {
121027
- "text": "void"
121025
+ "text": "boolean"
121028
121026
  }
121029
121027
  },
121030
- "parameters": [
121031
- {
121032
- "name": "message",
121033
- "type": {
121034
- "text": "string"
121035
- }
121036
- }
121037
- ],
121038
- "description": "Sets the custom validity message for this element. Use the empty string\nto indicate that the element does not have a custom validity error.",
121039
121028
  "inheritedFrom": {
121040
- "name": "SbbFormAssociatedMixin",
121041
- "module": "core/mixins/form-associated-mixin.js"
121029
+ "name": "SbbOpenCloseBaseElement",
121030
+ "module": "core/base-elements/open-close-base-element.js"
121042
121031
  }
121043
121032
  },
121044
121033
  {
121045
121034
  "kind": "method",
121046
- "name": "_hasDisabledAncestor",
121047
- "privacy": "private",
121035
+ "name": "dispatchBeforeCloseEvent",
121036
+ "privacy": "protected",
121048
121037
  "return": {
121049
121038
  "type": {
121050
121039
  "text": "boolean"
121051
121040
  }
121052
121041
  },
121053
121042
  "inheritedFrom": {
121054
- "name": "SbbFormAssociatedMixin",
121055
- "module": "core/mixins/form-associated-mixin.js"
121043
+ "name": "SbbOpenCloseBaseElement",
121044
+ "module": "core/base-elements/open-close-base-element.js"
121056
121045
  }
121057
121046
  },
121058
121047
  {
121059
121048
  "kind": "method",
121060
- "name": "updateFormValue",
121049
+ "name": "dispatchCloseEvent",
121061
121050
  "privacy": "protected",
121062
121051
  "return": {
121063
121052
  "type": {
121064
- "text": "void"
121053
+ "text": "boolean"
121065
121054
  }
121066
121055
  },
121067
- "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",
121068
121056
  "inheritedFrom": {
121069
- "name": "SbbFormAssociatedMixin",
121070
- "module": "core/mixins/form-associated-mixin.js"
121057
+ "name": "SbbOpenCloseBaseElement",
121058
+ "module": "core/base-elements/open-close-base-element.js"
121071
121059
  }
121072
121060
  },
121073
121061
  {
121074
- "kind": "method",
121075
- "name": "formState",
121076
- "privacy": "protected",
121077
- "return": {
121078
- "type": {
121079
- "text": "FormRestoreState"
121080
- }
121062
+ "kind": "field",
121063
+ "name": "_hydrationRequired",
121064
+ "type": {
121065
+ "text": "boolean"
121081
121066
  },
121067
+ "privacy": "private",
121068
+ "default": "!!this.shadowRoot",
121082
121069
  "inheritedFrom": {
121083
- "name": "SbbFormAssociatedMixin",
121084
- "module": "core/mixins/form-associated-mixin.js"
121070
+ "name": "SbbElement",
121071
+ "module": "core/base-elements/element.js"
121072
+ }
121073
+ },
121074
+ {
121075
+ "kind": "field",
121076
+ "name": "_hydrationComplete",
121077
+ "privacy": "private",
121078
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
121079
+ "inheritedFrom": {
121080
+ "name": "SbbElement",
121081
+ "module": "core/base-elements/element.js"
121085
121082
  }
121086
121083
  },
121084
+ {
121085
+ "kind": "field",
121086
+ "name": "_resolveHydration",
121087
+ "type": {
121088
+ "text": "(hydrationRequired: boolean) => void"
121089
+ },
121090
+ "privacy": "private",
121091
+ "inheritedFrom": {
121092
+ "name": "SbbElement",
121093
+ "module": "core/base-elements/element.js"
121094
+ }
121095
+ },
121096
+ {
121097
+ "kind": "field",
121098
+ "name": "hydrationRequired",
121099
+ "type": {
121100
+ "text": "boolean"
121101
+ },
121102
+ "privacy": "protected",
121103
+ "description": "Returns whether hydration is required and not completed.",
121104
+ "readonly": true,
121105
+ "inheritedFrom": {
121106
+ "name": "SbbElement",
121107
+ "module": "core/base-elements/element.js"
121108
+ },
121109
+ "default": "!!this.shadowRoot"
121110
+ },
121087
121111
  {
121088
121112
  "kind": "method",
121089
- "name": "setValidityFlag",
121113
+ "name": "toggleState",
121090
121114
  "privacy": "protected",
121091
121115
  "return": {
121092
121116
  "type": {
@@ -121095,192 +121119,227 @@
121095
121119
  },
121096
121120
  "parameters": [
121097
121121
  {
121098
- "name": "flag",
121099
- "type": {
121100
- "text": "T"
121101
- }
121102
- },
121103
- {
121104
- "name": "message",
121122
+ "name": "value",
121105
121123
  "type": {
121106
121124
  "text": "string"
121107
121125
  }
121108
121126
  },
121109
121127
  {
121110
- "name": "flagValue",
121128
+ "name": "force",
121111
121129
  "optional": true,
121112
121130
  "type": {
121113
- "text": "ValidityStateFlags[T]"
121131
+ "text": "boolean"
121114
121132
  }
121115
121133
  }
121116
121134
  ],
121117
- "description": "Marks this element as suffering from the constraint indicated by the\nflag argument and associates the given message to it.\nNote that only one message is displayed at a time and custom messages by\nconsumers are always displayed before internal messages and internal\nmessages are displayed in the order they were added.\nTo set/define custom validity state flags, you need to extend the\nValidityState prototype (and the CustomValidityState interface).",
121118
121135
  "inheritedFrom": {
121119
- "name": "SbbFormAssociatedMixin",
121120
- "module": "core/mixins/form-associated-mixin.js"
121136
+ "name": "SbbElement",
121137
+ "module": "core/base-elements/element.js"
121121
121138
  }
121122
121139
  },
121123
121140
  {
121124
- "kind": "method",
121125
- "name": "removeValidityFlag",
121126
- "privacy": "protected",
121127
- "return": {
121128
- "type": {
121129
- "text": "void"
121130
- }
121141
+ "kind": "field",
121142
+ "name": "['_$sbbElement$']",
121143
+ "type": {
121144
+ "text": "boolean"
121131
121145
  },
121132
- "parameters": [
121133
- {
121134
- "name": "flag",
121135
- "type": {
121136
- "text": "T"
121137
- }
121138
- }
121139
- ],
121140
- "description": "Removes the validity state flag entry and updates validity state.",
121146
+ "privacy": "public",
121147
+ "static": true,
121148
+ "default": "true",
121141
121149
  "inheritedFrom": {
121142
- "name": "SbbFormAssociatedMixin",
121143
- "module": "core/mixins/form-associated-mixin.js"
121150
+ "name": "SbbElement",
121151
+ "module": "core/base-elements/element.js"
121144
121152
  }
121145
121153
  },
121146
121154
  {
121147
- "kind": "method",
121148
- "name": "validate",
121149
- "privacy": "protected",
121150
- "return": {
121151
- "type": {
121152
- "text": "void"
121153
- }
121155
+ "kind": "field",
121156
+ "name": "_controllers",
121157
+ "type": {
121158
+ "text": "Set<SbbReactiveController> | undefined"
121154
121159
  },
121155
- "description": "To be called whenever the current element needs to be validated.",
121160
+ "privacy": "private",
121156
121161
  "inheritedFrom": {
121157
- "name": "SbbFormAssociatedMixin",
121158
- "module": "core/mixins/form-associated-mixin.js"
121162
+ "name": "SbbElement",
121163
+ "module": "core/base-elements/element.js"
121159
121164
  }
121165
+ }
121166
+ ],
121167
+ "attributes": [
121168
+ {
121169
+ "name": "color",
121170
+ "type": {
121171
+ "text": "'white' | 'milk'"
121172
+ },
121173
+ "default": "'white'",
121174
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
121175
+ "fieldName": "color"
121160
121176
  },
121161
121177
  {
121162
- "kind": "method",
121163
- "name": "shouldValidate",
121164
- "privacy": "protected",
121165
- "return": {
121166
- "type": {
121167
- "text": "boolean"
121168
- }
121178
+ "name": "mode",
121179
+ "type": {
121180
+ "text": "'side' | 'over'"
121169
121181
  },
121170
- "parameters": [
121171
- {
121172
- "name": "name",
121173
- "type": {
121174
- "text": "PropertyKey | undefined"
121175
- }
121176
- }
121177
- ],
121178
- "description": "Whether validation should be run on a property change with the given name.",
121179
- "inheritedFrom": {
121180
- "name": "SbbFormAssociatedMixin",
121181
- "module": "core/mixins/form-associated-mixin.js"
121182
- }
121182
+ "default": "'side'",
121183
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
121184
+ "fieldName": "mode"
121183
121185
  },
121184
121186
  {
121185
- "kind": "method",
121186
- "name": "_setInternalValidity",
121187
- "privacy": "private",
121188
- "return": {
121189
- "type": {
121190
- "text": "void"
121191
- }
121187
+ "name": "position",
121188
+ "type": {
121189
+ "text": "'start' | 'end'"
121192
121190
  },
121193
- "inheritedFrom": {
121194
- "name": "SbbFormAssociatedMixin",
121195
- "module": "core/mixins/form-associated-mixin.js"
121196
- }
121191
+ "default": "'start'",
121192
+ "description": "The side that the sidebar is attached to.",
121193
+ "fieldName": "position"
121197
121194
  },
121198
121195
  {
121199
- "kind": "field",
121200
- "name": "role",
121196
+ "name": "opened",
121201
121197
  "type": {
121202
- "text": "ElementInternals['role']"
121198
+ "text": "boolean"
121203
121199
  },
121204
- "privacy": "public",
121205
- "static": true,
121206
- "readonly": true,
121207
- "default": "'button'",
121200
+ "default": "false",
121201
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
121202
+ "fieldName": "opened"
121203
+ },
121204
+ {
121205
+ "name": "focus-on-open",
121206
+ "type": {
121207
+ "text": "boolean"
121208
+ },
121209
+ "default": "false",
121210
+ "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.",
121211
+ "fieldName": "focusOnOpen"
121212
+ }
121213
+ ],
121214
+ "mixins": [
121215
+ {
121216
+ "name": "SbbAnimationCompleteMixin",
121217
+ "module": "core/mixins.js"
121218
+ }
121219
+ ],
121220
+ "superclass": {
121221
+ "name": "SbbOpenCloseBaseElement",
121222
+ "module": "core/base-elements.js"
121223
+ },
121224
+ "tagName": "sbb-sidebar",
121225
+ "customElement": true,
121226
+ "events": [
121227
+ {
121228
+ "name": "beforeopen",
121229
+ "type": {
121230
+ "text": "Event"
121231
+ },
121232
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
121208
121233
  "inheritedFrom": {
121209
- "name": "SbbButtonLikeBaseElement",
121210
- "module": "core/base-elements/button-base-element.js"
121234
+ "name": "SbbOpenCloseBaseElement",
121235
+ "module": "core/base-elements/open-close-base-element.js"
121211
121236
  }
121212
121237
  },
121213
121238
  {
121214
- "kind": "field",
121215
- "name": "_preventScrollOnSpaceKeydown",
121216
- "privacy": "private",
121217
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
121218
- "parameters": [
121219
- {
121220
- "description": "The origin event.",
121221
- "name": "event"
121222
- }
121223
- ],
121239
+ "name": "open",
121240
+ "type": {
121241
+ "text": "Event"
121242
+ },
121243
+ "description": "Emits whenever the component is opened.",
121224
121244
  "inheritedFrom": {
121225
- "name": "SbbButtonLikeBaseElement",
121226
- "module": "core/base-elements/button-base-element.js"
121245
+ "name": "SbbOpenCloseBaseElement",
121246
+ "module": "core/base-elements/open-close-base-element.js"
121227
121247
  }
121228
121248
  },
121229
121249
  {
121230
- "kind": "field",
121231
- "name": "_removeActiveMarker",
121232
- "privacy": "private",
121250
+ "name": "beforeclose",
121251
+ "type": {
121252
+ "text": "Event"
121253
+ },
121254
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
121233
121255
  "inheritedFrom": {
121234
- "name": "SbbButtonLikeBaseElement",
121235
- "module": "core/base-elements/button-base-element.js"
121256
+ "name": "SbbOpenCloseBaseElement",
121257
+ "module": "core/base-elements/open-close-base-element.js"
121236
121258
  }
121237
121259
  },
121238
121260
  {
121239
- "kind": "field",
121240
- "name": "_dispatchClickEventOnSpaceKeyup",
121241
- "privacy": "private",
121242
- "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.",
121243
- "parameters": [
121244
- {
121245
- "description": "The origin event.",
121246
- "name": "event"
121247
- }
121248
- ],
121261
+ "name": "close",
121262
+ "type": {
121263
+ "text": "Event"
121264
+ },
121265
+ "description": "Emits whenever the component is closed.",
121266
+ "inheritedFrom": {
121267
+ "name": "SbbOpenCloseBaseElement",
121268
+ "module": "core/base-elements/open-close-base-element.js"
121269
+ }
121270
+ }
121271
+ ]
121272
+ }
121273
+ ],
121274
+ "exports": [
121275
+ {
121276
+ "kind": "js",
121277
+ "name": "SbbSidebarElement",
121278
+ "declaration": {
121279
+ "name": "SbbSidebarElement",
121280
+ "module": "sidebar/sidebar/sidebar.component.js"
121281
+ }
121282
+ }
121283
+ ]
121284
+ },
121285
+ {
121286
+ "kind": "javascript-module",
121287
+ "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
121288
+ "declarations": [
121289
+ {
121290
+ "kind": "class",
121291
+ "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
121292
+ "name": "SbbSidebarCloseButtonElement",
121293
+ "slots": [
121294
+ {
121295
+ "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
121296
+ "name": "",
121249
121297
  "inheritedFrom": {
121250
- "name": "SbbButtonLikeBaseElement",
121251
- "module": "core/base-elements/button-base-element.js"
121298
+ "name": "SbbSecondaryButtonElement",
121299
+ "module": "button/secondary-button/secondary-button.component.js"
121252
121300
  }
121253
121301
  },
121254
121302
  {
121255
- "kind": "field",
121256
- "name": "_dispatchClickEvent",
121257
- "privacy": "private",
121303
+ "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
121304
+ "name": "icon",
121258
121305
  "inheritedFrom": {
121259
- "name": "SbbButtonLikeBaseElement",
121260
- "module": "core/base-elements/button-base-element.js"
121306
+ "name": "SbbSecondaryButtonElement",
121307
+ "module": "button/secondary-button/secondary-button.component.js"
121261
121308
  }
121262
- },
121309
+ }
121310
+ ],
121311
+ "members": [
121263
121312
  {
121264
121313
  "kind": "field",
121265
- "name": "maybeDisabled",
121314
+ "name": "elementName",
121266
121315
  "type": {
121267
- "text": "boolean | undefined"
121316
+ "text": "string"
121268
121317
  },
121269
- "privacy": "protected",
121318
+ "privacy": "public",
121319
+ "static": true,
121270
121320
  "readonly": true,
121271
121321
  "inheritedFrom": {
121272
- "name": "SbbActionBaseElement",
121273
- "module": "core/base-elements/action-base-element.js"
121274
- }
121322
+ "name": "SbbElement",
121323
+ "module": "core/base-elements/element.js"
121324
+ },
121325
+ "default": "'sbb-sidebar-close-button'"
121275
121326
  },
121276
121327
  {
121277
121328
  "kind": "field",
121278
- "name": "maybeDisabledInteractive",
121279
- "type": {
121280
- "text": "boolean | undefined"
121281
- },
121329
+ "name": "_languageController",
121330
+ "privacy": "private",
121331
+ "default": "new SbbLanguageController(this)"
121332
+ },
121333
+ {
121334
+ "kind": "method",
121335
+ "name": "renderTemplate",
121282
121336
  "privacy": "protected",
121283
- "readonly": true,
121337
+ "return": {
121338
+ "type": {
121339
+ "text": "TemplateResult"
121340
+ }
121341
+ },
121342
+ "description": "Override this method to render the component template.",
121284
121343
  "inheritedFrom": {
121285
121344
  "name": "SbbActionBaseElement",
121286
121345
  "module": "core/base-elements/action-base-element.js"
@@ -121288,518 +121347,483 @@
121288
121347
  },
121289
121348
  {
121290
121349
  "kind": "method",
121291
- "name": "setupBaseEventHandlers",
121350
+ "name": "renderIconName",
121292
121351
  "privacy": "protected",
121293
121352
  "return": {
121294
121353
  "type": {
121295
- "text": "void"
121354
+ "text": "string"
121296
121355
  }
121297
121356
  },
121298
121357
  "inheritedFrom": {
121299
- "name": "SbbActionBaseElement",
121300
- "module": "core/base-elements/action-base-element.js"
121358
+ "name": "SbbIconNameMixin",
121359
+ "module": "icon/icon-name-mixin.js"
121301
121360
  }
121302
121361
  },
121303
121362
  {
121304
121363
  "kind": "field",
121305
- "name": "_hydrationRequired",
121364
+ "name": "size",
121306
121365
  "type": {
121307
- "text": "boolean"
121366
+ "text": "SbbButtonSize"
121308
121367
  },
121309
- "privacy": "private",
121310
- "default": "!!this.shadowRoot",
121368
+ "privacy": "public",
121369
+ "description": "Size variant, either l, m or s.",
121370
+ "default": "'s'",
121371
+ "attribute": "size",
121372
+ "reflects": true,
121311
121373
  "inheritedFrom": {
121312
- "name": "SbbElement",
121313
- "module": "core/base-elements/element.js"
121374
+ "name": "SbbButtonCommonElementMixin",
121375
+ "module": "button/common/button-common.js"
121314
121376
  }
121315
121377
  },
121316
121378
  {
121317
121379
  "kind": "field",
121318
- "name": "_hydrationComplete",
121319
- "privacy": "private",
121320
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
121380
+ "name": "loading",
121381
+ "type": {
121382
+ "text": "boolean"
121383
+ },
121384
+ "privacy": "public",
121385
+ "default": "false",
121386
+ "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
121387
+ "attribute": "loading",
121388
+ "reflects": true,
121321
121389
  "inheritedFrom": {
121322
- "name": "SbbElement",
121323
- "module": "core/base-elements/element.js"
121390
+ "name": "SbbButtonCommonElementMixin",
121391
+ "module": "button/common/button-common.js"
121324
121392
  }
121325
121393
  },
121326
121394
  {
121327
121395
  "kind": "field",
121328
- "name": "_resolveHydration",
121396
+ "name": "negative",
121329
121397
  "type": {
121330
- "text": "(hydrationRequired: boolean) => void"
121398
+ "text": "boolean"
121331
121399
  },
121332
- "privacy": "private",
121400
+ "privacy": "public",
121401
+ "default": "false",
121402
+ "description": "Negative coloring variant flag.",
121403
+ "attribute": "negative",
121404
+ "reflects": true,
121333
121405
  "inheritedFrom": {
121334
- "name": "SbbElement",
121335
- "module": "core/base-elements/element.js"
121406
+ "name": "SbbNegativeMixin",
121407
+ "module": "core/mixins/negative-mixin.js"
121336
121408
  }
121337
121409
  },
121338
121410
  {
121339
121411
  "kind": "field",
121340
- "name": "hydrationRequired",
121412
+ "name": "iconName",
121341
121413
  "type": {
121342
- "text": "boolean"
121414
+ "text": "string"
121343
121415
  },
121344
- "privacy": "protected",
121345
- "description": "Returns whether hydration is required and not completed.",
121346
- "readonly": true,
121416
+ "privacy": "public",
121417
+ "default": "''",
121418
+ "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.",
121419
+ "attribute": "icon-name",
121347
121420
  "inheritedFrom": {
121348
- "name": "SbbElement",
121349
- "module": "core/base-elements/element.js"
121350
- },
121351
- "default": "!!this.shadowRoot"
121421
+ "name": "SbbIconNameMixin",
121422
+ "module": "icon/icon-name-mixin.js"
121423
+ }
121352
121424
  },
121353
121425
  {
121354
121426
  "kind": "method",
121355
- "name": "toggleState",
121427
+ "name": "renderIconSlot",
121356
121428
  "privacy": "protected",
121357
121429
  "return": {
121358
121430
  "type": {
121359
- "text": "void"
121431
+ "text": "TemplateResult"
121360
121432
  }
121361
121433
  },
121362
121434
  "parameters": [
121363
121435
  {
121364
- "name": "value",
121365
- "type": {
121366
- "text": "string"
121367
- }
121368
- },
121369
- {
121370
- "name": "force",
121436
+ "name": "classname",
121371
121437
  "optional": true,
121372
121438
  "type": {
121373
- "text": "boolean"
121439
+ "text": "string"
121374
121440
  }
121375
121441
  }
121376
121442
  ],
121377
121443
  "inheritedFrom": {
121378
- "name": "SbbElement",
121379
- "module": "core/base-elements/element.js"
121380
- }
121381
- },
121382
- {
121383
- "kind": "field",
121384
- "name": "['_$sbbElement$']",
121385
- "type": {
121386
- "text": "boolean"
121387
- },
121388
- "privacy": "public",
121389
- "static": true,
121390
- "default": "true",
121391
- "inheritedFrom": {
121392
- "name": "SbbElement",
121393
- "module": "core/base-elements/element.js"
121444
+ "name": "SbbIconNameMixin",
121445
+ "module": "icon/icon-name-mixin.js"
121394
121446
  }
121395
121447
  },
121396
121448
  {
121397
- "kind": "field",
121398
- "name": "_controllers",
121399
- "type": {
121400
- "text": "Set<SbbReactiveController> | undefined"
121401
- },
121449
+ "kind": "method",
121450
+ "name": "_renderIconName",
121402
121451
  "privacy": "private",
121403
- "inheritedFrom": {
121404
- "name": "SbbElement",
121405
- "module": "core/base-elements/element.js"
121406
- }
121407
- }
121408
- ],
121409
- "superclass": {
121410
- "name": "SbbSecondaryButtonElement",
121411
- "module": "button.pure.js"
121412
- },
121413
- "tagName": "sbb-sidebar-close-button",
121414
- "customElement": true,
121415
- "attributes": [
121416
- {
121417
- "name": "size",
121418
- "type": {
121419
- "text": "SbbButtonSize"
121452
+ "return": {
121453
+ "type": {
121454
+ "text": "string"
121455
+ }
121420
121456
  },
121421
- "description": "Size variant, either l, m or s.",
121422
- "default": "'l' / 's' (lean)",
121423
- "fieldName": "size",
121424
121457
  "inheritedFrom": {
121425
- "name": "SbbButtonCommonElementMixin",
121426
- "module": "button/common/button-common.js"
121458
+ "name": "SbbIconNameMixin",
121459
+ "module": "icon/icon-name-mixin.js"
121427
121460
  }
121428
121461
  },
121429
121462
  {
121430
- "name": "loading",
121463
+ "kind": "field",
121464
+ "name": "disabledInteractive",
121431
121465
  "type": {
121432
121466
  "text": "boolean"
121433
121467
  },
121468
+ "privacy": "public",
121434
121469
  "default": "false",
121435
- "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
121436
- "fieldName": "loading",
121470
+ "description": "Whether the button should be aria-disabled but stay interactive.",
121471
+ "attribute": "disabled-interactive",
121472
+ "reflects": true,
121437
121473
  "inheritedFrom": {
121438
- "name": "SbbButtonCommonElementMixin",
121439
- "module": "button/common/button-common.js"
121474
+ "name": "SbbDisabledInteractiveMixin",
121475
+ "module": "core/mixins/disabled-mixin.js"
121440
121476
  }
121441
121477
  },
121442
121478
  {
121443
- "name": "negative",
121479
+ "kind": "field",
121480
+ "name": "disabled",
121481
+ "privacy": "public",
121482
+ "description": "Whether the component is disabled.",
121483
+ "default": "false",
121444
121484
  "type": {
121445
121485
  "text": "boolean"
121446
121486
  },
121447
- "default": "false",
121448
- "description": "Negative coloring variant flag.",
121449
- "fieldName": "negative",
121487
+ "attribute": "disabled",
121488
+ "reflects": true,
121450
121489
  "inheritedFrom": {
121451
- "name": "SbbNegativeMixin",
121452
- "module": "core/mixins/negative-mixin.js"
121490
+ "name": "SbbDisabledMixin",
121491
+ "module": "core/mixins/disabled-mixin.js"
121453
121492
  }
121454
121493
  },
121455
121494
  {
121456
- "name": "icon-name",
121495
+ "kind": "field",
121496
+ "name": "#disabled",
121497
+ "privacy": "private",
121457
121498
  "type": {
121458
- "text": "string"
121499
+ "text": "boolean"
121459
121500
  },
121460
- "default": "''",
121461
- "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.",
121462
- "fieldName": "iconName",
121501
+ "default": "false",
121463
121502
  "inheritedFrom": {
121464
- "name": "SbbIconNameMixin",
121465
- "module": "icon/icon-name-mixin.js"
121503
+ "name": "SbbDisabledMixin",
121504
+ "module": "core/mixins/disabled-mixin.js"
121466
121505
  }
121467
121506
  },
121468
121507
  {
121469
- "name": "disabled-interactive",
121470
- "type": {
121471
- "text": "boolean"
121508
+ "kind": "method",
121509
+ "name": "isDisabledExternally",
121510
+ "privacy": "protected",
121511
+ "return": {
121512
+ "type": {
121513
+ "text": "boolean"
121514
+ }
121472
121515
  },
121473
- "default": "false",
121474
- "description": "Whether the button should be aria-disabled but stay interactive.",
121475
- "fieldName": "disabledInteractive",
121516
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
121476
121517
  "inheritedFrom": {
121477
- "name": "SbbDisabledInteractiveMixin",
121518
+ "name": "SbbDisabledMixin",
121478
121519
  "module": "core/mixins/disabled-mixin.js"
121479
121520
  }
121480
121521
  },
121481
121522
  {
121482
- "name": "disabled",
121483
- "description": "Whether the component is disabled.",
121484
- "default": "false",
121523
+ "kind": "field",
121524
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
121485
121525
  "type": {
121486
- "text": "boolean"
121526
+ "text": "array"
121487
121527
  },
121488
- "fieldName": "disabled",
121528
+ "privacy": "private",
121529
+ "readonly": true,
121530
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
121489
121531
  "inheritedFrom": {
121490
- "name": "SbbDisabledMixin",
121491
- "module": "core/mixins/disabled-mixin.js"
121532
+ "name": "SbbButtonBaseElement",
121533
+ "module": "core/base-elements/button-base-element.js"
121492
121534
  }
121493
121535
  },
121494
121536
  {
121537
+ "kind": "field",
121495
121538
  "name": "value",
121496
121539
  "type": {
121497
121540
  "text": "string"
121498
121541
  },
121499
- "default": "''",
121500
- "description": "Value of the form element.",
121501
- "fieldName": "value",
121542
+ "privacy": "public",
121502
121543
  "inheritedFrom": {
121503
121544
  "name": "SbbButtonBaseElement",
121504
121545
  "module": "core/base-elements/button-base-element.js"
121505
- }
121546
+ },
121547
+ "default": "''",
121548
+ "description": "Value of the form element.",
121549
+ "attribute": "value"
121506
121550
  },
121507
121551
  {
121552
+ "kind": "field",
121508
121553
  "name": "type",
121554
+ "privacy": "public",
121509
121555
  "description": "The type attribute to use for the button.",
121510
121556
  "default": "'button'",
121511
121557
  "type": {
121512
121558
  "text": "SbbButtonType"
121513
121559
  },
121514
- "fieldName": "type",
121560
+ "attribute": "type",
121515
121561
  "inheritedFrom": {
121516
121562
  "name": "SbbButtonBaseElement",
121517
121563
  "module": "core/base-elements/button-base-element.js"
121518
121564
  }
121519
121565
  },
121520
121566
  {
121567
+ "kind": "field",
121521
121568
  "name": "form",
121522
- "description": "The `<form>` element to associate the button with.",
121523
121569
  "type": {
121524
121570
  "text": "HTMLFormElement | null"
121525
121571
  },
121526
- "fieldName": "form",
121572
+ "privacy": "public",
121573
+ "description": "The `<form>` element to associate the button with.",
121527
121574
  "inheritedFrom": {
121528
121575
  "name": "SbbButtonBaseElement",
121529
121576
  "module": "core/base-elements/button-base-element.js"
121530
- }
121577
+ },
121578
+ "attribute": "form"
121531
121579
  },
121532
121580
  {
121533
- "name": "name",
121534
- "description": "Name of the form element. Will be read from name attribute.",
121581
+ "kind": "field",
121582
+ "name": "_formId",
121535
121583
  "type": {
121536
121584
  "text": "string"
121537
121585
  },
121538
- "fieldName": "name",
121586
+ "privacy": "private",
121587
+ "default": "''",
121539
121588
  "inheritedFrom": {
121540
- "name": "SbbFormAssociatedMixin",
121541
- "module": "core/mixins/form-associated-mixin.js"
121589
+ "name": "SbbButtonBaseElement",
121590
+ "module": "core/base-elements/button-base-element.js"
121542
121591
  }
121543
- }
121544
- ],
121545
- "cssProperties": [
121592
+ },
121546
121593
  {
121547
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
121548
- "name": "--sbb-button-loading-delay",
121549
- "default": "300ms",
121594
+ "kind": "field",
121595
+ "name": "_handleButtonClick",
121596
+ "privacy": "private",
121550
121597
  "inheritedFrom": {
121551
- "name": "SbbSecondaryButtonElement",
121552
- "module": "button/secondary-button/secondary-button.component.js"
121598
+ "name": "SbbButtonBaseElement",
121599
+ "module": "core/base-elements/button-base-element.js"
121553
121600
  }
121554
- }
121555
- ]
121556
- }
121557
- ],
121558
- "exports": [
121559
- {
121560
- "kind": "js",
121561
- "name": "SbbSidebarCloseButtonElement",
121562
- "declaration": {
121563
- "name": "SbbSidebarCloseButtonElement",
121564
- "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
121565
- }
121566
- }
121567
- ]
121568
- },
121569
- {
121570
- "kind": "javascript-module",
121571
- "path": "sidebar/sidebar/sidebar.component.js",
121572
- "declarations": [
121573
- {
121574
- "kind": "class",
121575
- "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
121576
- "name": "SbbSidebarElement",
121577
- "slots": [
121578
- {
121579
- "description": "Use the unnamed slot to slot any content into the sidebar.",
121580
- "name": ""
121581
121601
  },
121582
121602
  {
121583
- "description": "Use the title slot to add an <sbb-title>.",
121584
- "name": "title"
121585
- }
121586
- ],
121587
- "members": [
121588
- {
121589
- "kind": "field",
121590
- "name": "elementName",
121591
- "type": {
121592
- "text": "string"
121603
+ "kind": "method",
121604
+ "name": "_requestSubmit",
121605
+ "privacy": "private",
121606
+ "return": {
121607
+ "type": {
121608
+ "text": "void"
121609
+ }
121593
121610
  },
121594
- "privacy": "public",
121595
- "static": true,
121596
- "readonly": true,
121611
+ "parameters": [
121612
+ {
121613
+ "name": "form",
121614
+ "type": {
121615
+ "text": "HTMLFormElement"
121616
+ }
121617
+ }
121618
+ ],
121597
121619
  "inheritedFrom": {
121598
- "name": "SbbElement",
121599
- "module": "core/base-elements/element.js"
121600
- },
121601
- "default": "'sbb-sidebar'"
121620
+ "name": "SbbButtonBaseElement",
121621
+ "module": "core/base-elements/button-base-element.js"
121622
+ }
121602
121623
  },
121603
121624
  {
121604
121625
  "kind": "field",
121605
- "name": "color",
121606
- "type": {
121607
- "text": "'white' | 'milk'"
121608
- },
121609
- "privacy": "public",
121610
- "default": "'white'",
121611
- "description": "Background color of the sidebar. Either `white` or `milk`.",
121612
- "attribute": "color",
121613
- "reflects": true
121626
+ "name": "_formKeyDown",
121627
+ "privacy": "private",
121628
+ "inheritedFrom": {
121629
+ "name": "SbbButtonBaseElement",
121630
+ "module": "core/base-elements/button-base-element.js"
121631
+ }
121614
121632
  },
121615
121633
  {
121616
121634
  "kind": "field",
121617
- "name": "mode",
121635
+ "name": "formAssociated",
121618
121636
  "type": {
121619
- "text": "'side' | 'over'"
121637
+ "text": "boolean"
121620
121638
  },
121621
121639
  "privacy": "public",
121622
- "default": "'side'",
121623
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
121624
- "attribute": "mode",
121625
- "reflects": true
121640
+ "static": true,
121641
+ "default": "true",
121642
+ "inheritedFrom": {
121643
+ "name": "SbbFormAssociatedMixin",
121644
+ "module": "core/mixins/form-associated-mixin.js"
121645
+ }
121626
121646
  },
121627
121647
  {
121628
121648
  "kind": "field",
121629
- "name": "position",
121630
- "type": {
121631
- "text": "'start' | 'end'"
121632
- },
121649
+ "name": "name",
121633
121650
  "privacy": "public",
121634
- "default": "'start'",
121635
- "description": "The side that the sidebar is attached to.",
121636
- "attribute": "position",
121637
- "reflects": true
121638
- },
121639
- {
121640
- "kind": "field",
121641
- "name": "opened",
121651
+ "description": "Name of the form element. Will be read from name attribute.",
121642
121652
  "type": {
121643
- "text": "boolean"
121653
+ "text": "string"
121644
121654
  },
121645
- "privacy": "public",
121646
- "default": "false",
121647
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
121648
- "attribute": "opened",
121649
- "reflects": true
121655
+ "attribute": "name",
121656
+ "inheritedFrom": {
121657
+ "name": "SbbFormAssociatedMixin",
121658
+ "module": "core/mixins/form-associated-mixin.js"
121659
+ }
121650
121660
  },
121651
121661
  {
121652
121662
  "kind": "field",
121653
- "name": "focusOnOpen",
121663
+ "name": "validity",
121654
121664
  "type": {
121655
- "text": "boolean"
121665
+ "text": "ValidityState"
121656
121666
  },
121657
121667
  "privacy": "public",
121658
- "default": "false",
121659
- "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.",
121660
- "attribute": "focus-on-open"
121668
+ "description": "Returns the ValidityState object for this element.",
121669
+ "readonly": true,
121670
+ "inheritedFrom": {
121671
+ "name": "SbbFormAssociatedMixin",
121672
+ "module": "core/mixins/form-associated-mixin.js"
121673
+ }
121661
121674
  },
121662
121675
  {
121663
121676
  "kind": "field",
121664
- "name": "container",
121677
+ "name": "validationMessage",
121665
121678
  "type": {
121666
- "text": "SbbSidebarContainerElement | null"
121679
+ "text": "string"
121667
121680
  },
121668
121681
  "privacy": "public",
121669
- "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
121682
+ "description": "Returns the current error message, if available, which corresponds\nto the current validation state.\nPlease note that only one message is returned at a time (e.g. if\nmultiple validity states are invalid, only the chronologically first one\nis returned until it is fixed, at which point the next message might be\nreturned, if it is still applicable). Also, a custom validity message\n(see below) has precedence over native validation messages.",
121670
121683
  "readonly": true,
121671
- "default": "null"
121672
- },
121673
- {
121674
- "kind": "field",
121675
- "name": "_container",
121676
- "type": {
121677
- "text": "SbbSidebarContainerElement | null"
121678
- },
121679
- "privacy": "private",
121680
- "default": "null"
121684
+ "inheritedFrom": {
121685
+ "name": "SbbFormAssociatedMixin",
121686
+ "module": "core/mixins/form-associated-mixin.js"
121687
+ }
121681
121688
  },
121682
121689
  {
121683
121690
  "kind": "field",
121684
- "name": "_lastFocusedElement",
121691
+ "name": "willValidate",
121685
121692
  "type": {
121686
- "text": "HTMLElement | null"
121693
+ "text": "boolean"
121687
121694
  },
121688
- "privacy": "private",
121689
- "default": "null"
121690
- },
121691
- {
121692
- "kind": "field",
121693
- "name": "_focusTrapController",
121694
- "privacy": "private",
121695
- "default": "new SbbFocusTrapController(this)"
121695
+ "privacy": "public",
121696
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
121697
+ "readonly": true,
121698
+ "inheritedFrom": {
121699
+ "name": "SbbFormAssociatedMixin",
121700
+ "module": "core/mixins/form-associated-mixin.js"
121701
+ }
121696
121702
  },
121697
121703
  {
121698
121704
  "kind": "field",
121699
- "name": "_escapableOverlayController",
121705
+ "name": "_validityStates",
121700
121706
  "privacy": "private",
121701
- "default": "new SbbEscapableOverlayController(this)"
121707
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
121708
+ "inheritedFrom": {
121709
+ "name": "SbbFormAssociatedMixin",
121710
+ "module": "core/mixins/form-associated-mixin.js"
121711
+ }
121702
121712
  },
121703
121713
  {
121704
121714
  "kind": "field",
121705
- "name": "_closeOnNavigation",
121706
- "privacy": "private"
121707
- },
121708
- {
121709
- "kind": "method",
121710
- "name": "toggle",
121711
- "privacy": "public",
121712
- "return": {
121713
- "type": {
121714
- "text": "void"
121715
- }
121716
- },
121717
- "description": "Toggles the sidebar visibility."
121718
- },
121719
- {
121720
- "kind": "method",
121721
- "name": "open",
121722
- "privacy": "public",
121723
- "return": {
121724
- "type": {
121725
- "text": "void"
121726
- }
121715
+ "name": "formDisabled",
121716
+ "type": {
121717
+ "text": "boolean"
121727
121718
  },
121728
- "description": "Opens the sidebar.",
121719
+ "privacy": "protected",
121720
+ "default": "false",
121721
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
121729
121722
  "inheritedFrom": {
121730
- "name": "SbbOpenCloseBaseElement",
121731
- "module": "core/base-elements/open-close-base-element.js"
121723
+ "name": "SbbFormAssociatedMixin",
121724
+ "module": "core/mixins/form-associated-mixin.js"
121732
121725
  }
121733
121726
  },
121734
121727
  {
121735
121728
  "kind": "method",
121736
- "name": "_isZeroAnimationDuration",
121737
- "privacy": "private",
121729
+ "name": "checkValidity",
121730
+ "privacy": "public",
121738
121731
  "return": {
121739
121732
  "type": {
121740
121733
  "text": "boolean"
121741
121734
  }
121735
+ },
121736
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
121737
+ "inheritedFrom": {
121738
+ "name": "SbbFormAssociatedMixin",
121739
+ "module": "core/mixins/form-associated-mixin.js"
121742
121740
  }
121743
121741
  },
121744
121742
  {
121745
121743
  "kind": "method",
121746
- "name": "_handleOpening",
121747
- "privacy": "private",
121744
+ "name": "reportValidity",
121745
+ "privacy": "public",
121748
121746
  "return": {
121749
121747
  "type": {
121750
- "text": "void"
121748
+ "text": "boolean"
121751
121749
  }
121750
+ },
121751
+ "description": "Returns true if this element has no validity problems; otherwise,\nreturns false, fires an invalid event at the element,\nand (if the event isn't canceled) reports the problem to the user.",
121752
+ "inheritedFrom": {
121753
+ "name": "SbbFormAssociatedMixin",
121754
+ "module": "core/mixins/form-associated-mixin.js"
121752
121755
  }
121753
121756
  },
121754
121757
  {
121755
121758
  "kind": "method",
121756
- "name": "close",
121759
+ "name": "setCustomValidity",
121757
121760
  "privacy": "public",
121758
121761
  "return": {
121759
121762
  "type": {
121760
121763
  "text": "void"
121761
121764
  }
121762
121765
  },
121763
- "description": "Closes the sidebar.",
121766
+ "parameters": [
121767
+ {
121768
+ "name": "message",
121769
+ "type": {
121770
+ "text": "string"
121771
+ }
121772
+ }
121773
+ ],
121774
+ "description": "Sets the custom validity message for this element. Use the empty string\nto indicate that the element does not have a custom validity error.",
121764
121775
  "inheritedFrom": {
121765
- "name": "SbbOpenCloseBaseElement",
121766
- "module": "core/base-elements/open-close-base-element.js"
121776
+ "name": "SbbFormAssociatedMixin",
121777
+ "module": "core/mixins/form-associated-mixin.js"
121767
121778
  }
121768
121779
  },
121769
121780
  {
121770
121781
  "kind": "method",
121771
- "name": "_handleClosing",
121782
+ "name": "_hasDisabledAncestor",
121772
121783
  "privacy": "private",
121773
121784
  "return": {
121774
121785
  "type": {
121775
- "text": "void"
121786
+ "text": "boolean"
121776
121787
  }
121788
+ },
121789
+ "inheritedFrom": {
121790
+ "name": "SbbFormAssociatedMixin",
121791
+ "module": "core/mixins/form-associated-mixin.js"
121777
121792
  }
121778
121793
  },
121779
121794
  {
121780
121795
  "kind": "method",
121781
- "name": "_takeFocus",
121782
- "privacy": "private",
121796
+ "name": "updateFormValue",
121797
+ "privacy": "protected",
121783
121798
  "return": {
121784
121799
  "type": {
121785
121800
  "text": "void"
121786
121801
  }
121802
+ },
121803
+ "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",
121804
+ "inheritedFrom": {
121805
+ "name": "SbbFormAssociatedMixin",
121806
+ "module": "core/mixins/form-associated-mixin.js"
121787
121807
  }
121788
121808
  },
121789
121809
  {
121790
121810
  "kind": "method",
121791
- "name": "cedeFocus",
121811
+ "name": "formState",
121792
121812
  "privacy": "protected",
121793
121813
  "return": {
121794
121814
  "type": {
121795
- "text": "void"
121815
+ "text": "FormRestoreState"
121796
121816
  }
121817
+ },
121818
+ "inheritedFrom": {
121819
+ "name": "SbbFormAssociatedMixin",
121820
+ "module": "core/mixins/form-associated-mixin.js"
121797
121821
  }
121798
121822
  },
121799
121823
  {
121800
121824
  "kind": "method",
121801
- "name": "_updateSidebarWidth",
121802
- "privacy": "private",
121825
+ "name": "setValidityFlag",
121826
+ "privacy": "protected",
121803
121827
  "return": {
121804
121828
  "type": {
121805
121829
  "text": "void"
@@ -121807,44 +121831,35 @@
121807
121831
  },
121808
121832
  "parameters": [
121809
121833
  {
121810
- "name": "oldPosition",
121811
- "optional": true,
121834
+ "name": "flag",
121812
121835
  "type": {
121813
- "text": "this['position']"
121836
+ "text": "T"
121814
121837
  }
121815
- }
121816
- ]
121817
- },
121818
- {
121819
- "kind": "method",
121820
- "name": "_buildCssWidthVar",
121821
- "privacy": "private",
121822
- "return": {
121823
- "type": {
121824
- "text": "string"
121825
- }
121826
- },
121827
- "parameters": [
121838
+ },
121828
121839
  {
121829
- "name": "position",
121830
- "default": "this.position"
121831
- }
121832
- ]
121833
- },
121834
- {
121835
- "kind": "method",
121836
- "name": "_isModeOver",
121837
- "privacy": "private",
121838
- "return": {
121839
- "type": {
121840
- "text": "boolean"
121840
+ "name": "message",
121841
+ "type": {
121842
+ "text": "string"
121843
+ }
121844
+ },
121845
+ {
121846
+ "name": "flagValue",
121847
+ "optional": true,
121848
+ "type": {
121849
+ "text": "ValidityStateFlags[T]"
121850
+ }
121841
121851
  }
121852
+ ],
121853
+ "description": "Marks this element as suffering from the constraint indicated by the\nflag argument and associates the given message to it.\nNote that only one message is displayed at a time and custom messages by\nconsumers are always displayed before internal messages and internal\nmessages are displayed in the order they were added.\nTo set/define custom validity state flags, you need to extend the\nValidityState prototype (and the CustomValidityState interface).",
121854
+ "inheritedFrom": {
121855
+ "name": "SbbFormAssociatedMixin",
121856
+ "module": "core/mixins/form-associated-mixin.js"
121842
121857
  }
121843
121858
  },
121844
121859
  {
121845
121860
  "kind": "method",
121846
- "name": "_onTransitionEnd",
121847
- "privacy": "private",
121861
+ "name": "removeValidityFlag",
121862
+ "privacy": "protected",
121848
121863
  "return": {
121849
121864
  "type": {
121850
121865
  "text": "void"
@@ -121852,230 +121867,173 @@
121852
121867
  },
121853
121868
  "parameters": [
121854
121869
  {
121855
- "name": "event",
121870
+ "name": "flag",
121856
121871
  "type": {
121857
- "text": "TransitionEvent"
121872
+ "text": "T"
121858
121873
  }
121859
121874
  }
121860
- ]
121861
- },
121862
- {
121863
- "kind": "method",
121864
- "name": "_detectScrolledState",
121865
- "privacy": "private",
121866
- "return": {
121867
- "type": {
121868
- "text": "void"
121869
- }
121870
- }
121871
- },
121872
- {
121873
- "kind": "field",
121874
- "name": "isAnimating",
121875
- "type": {
121876
- "text": "boolean"
121877
- },
121878
- "privacy": "public",
121879
- "default": "false",
121880
- "description": "Whether the component is currently animating.",
121881
- "inheritedFrom": {
121882
- "name": "SbbAnimationCompleteMixin",
121883
- "module": "core/mixins/animation-complete-mixin.js"
121884
- }
121885
- },
121886
- {
121887
- "kind": "field",
121888
- "name": "animationComplete",
121889
- "type": {
121890
- "text": "Promise<void>"
121891
- },
121892
- "privacy": "public",
121893
- "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
121894
- "readonly": true,
121895
- "inheritedFrom": {
121896
- "name": "SbbAnimationCompleteMixin",
121897
- "module": "core/mixins/animation-complete-mixin.js"
121898
- }
121899
- },
121900
- {
121901
- "kind": "field",
121902
- "name": "_animationPromise",
121903
- "type": {
121904
- "text": "Promise<void>"
121905
- },
121906
- "privacy": "private",
121875
+ ],
121876
+ "description": "Removes the validity state flag entry and updates validity state.",
121907
121877
  "inheritedFrom": {
121908
- "name": "SbbAnimationCompleteMixin",
121909
- "module": "core/mixins/animation-complete-mixin.js"
121878
+ "name": "SbbFormAssociatedMixin",
121879
+ "module": "core/mixins/form-associated-mixin.js"
121910
121880
  }
121911
121881
  },
121912
121882
  {
121913
121883
  "kind": "method",
121914
- "name": "startAnimation",
121884
+ "name": "validate",
121915
121885
  "privacy": "protected",
121916
121886
  "return": {
121917
121887
  "type": {
121918
121888
  "text": "void"
121919
121889
  }
121920
121890
  },
121891
+ "description": "To be called whenever the current element needs to be validated.",
121921
121892
  "inheritedFrom": {
121922
- "name": "SbbAnimationCompleteMixin",
121923
- "module": "core/mixins/animation-complete-mixin.js"
121893
+ "name": "SbbFormAssociatedMixin",
121894
+ "module": "core/mixins/form-associated-mixin.js"
121924
121895
  }
121925
121896
  },
121926
121897
  {
121927
121898
  "kind": "method",
121928
- "name": "stopAnimation",
121899
+ "name": "shouldValidate",
121929
121900
  "privacy": "protected",
121930
121901
  "return": {
121931
121902
  "type": {
121932
- "text": "void"
121903
+ "text": "boolean"
121933
121904
  }
121934
121905
  },
121935
- "description": "Overriding stopAnimation() breaks functionality.",
121906
+ "parameters": [
121907
+ {
121908
+ "name": "name",
121909
+ "type": {
121910
+ "text": "PropertyKey | undefined"
121911
+ }
121912
+ }
121913
+ ],
121914
+ "description": "Whether validation should be run on a property change with the given name.",
121936
121915
  "inheritedFrom": {
121937
- "name": "SbbAnimationCompleteMixin",
121938
- "module": "core/mixins/animation-complete-mixin.js"
121916
+ "name": "SbbFormAssociatedMixin",
121917
+ "module": "core/mixins/form-associated-mixin.js"
121939
121918
  }
121940
121919
  },
121941
121920
  {
121942
121921
  "kind": "method",
121943
- "name": "_enqueueAnimation",
121922
+ "name": "_setInternalValidity",
121944
121923
  "privacy": "private",
121945
121924
  "return": {
121946
121925
  "type": {
121947
- "text": "Promise<void>"
121926
+ "text": "void"
121948
121927
  }
121949
121928
  },
121950
121929
  "inheritedFrom": {
121951
- "name": "SbbAnimationCompleteMixin",
121952
- "module": "core/mixins/animation-complete-mixin.js"
121930
+ "name": "SbbFormAssociatedMixin",
121931
+ "module": "core/mixins/form-associated-mixin.js"
121953
121932
  }
121954
121933
  },
121955
121934
  {
121956
121935
  "kind": "field",
121957
- "name": "events",
121936
+ "name": "role",
121937
+ "type": {
121938
+ "text": "ElementInternals['role']"
121939
+ },
121958
121940
  "privacy": "public",
121959
121941
  "static": true,
121960
121942
  "readonly": true,
121961
- "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
121962
- "type": {
121963
- "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
121964
- },
121943
+ "default": "'button'",
121965
121944
  "inheritedFrom": {
121966
- "name": "SbbOpenCloseBaseElement",
121967
- "module": "core/base-elements/open-close-base-element.js"
121945
+ "name": "SbbButtonLikeBaseElement",
121946
+ "module": "core/base-elements/button-base-element.js"
121968
121947
  }
121969
121948
  },
121970
121949
  {
121971
121950
  "kind": "field",
121972
- "name": "state",
121973
- "privacy": "protected",
121974
- "description": "The state of the component.",
121975
- "type": {
121976
- "text": "SbbOpenedClosedState"
121977
- },
121978
- "default": "'closed'",
121951
+ "name": "_preventScrollOnSpaceKeydown",
121952
+ "privacy": "private",
121953
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
121954
+ "parameters": [
121955
+ {
121956
+ "description": "The origin event.",
121957
+ "name": "event"
121958
+ }
121959
+ ],
121979
121960
  "inheritedFrom": {
121980
- "name": "SbbOpenCloseBaseElement",
121981
- "module": "core/base-elements/open-close-base-element.js"
121961
+ "name": "SbbButtonLikeBaseElement",
121962
+ "module": "core/base-elements/button-base-element.js"
121982
121963
  }
121983
121964
  },
121984
121965
  {
121985
121966
  "kind": "field",
121986
- "name": "_state",
121987
- "type": {
121988
- "text": "SbbOpenedClosedState"
121989
- },
121967
+ "name": "_removeActiveMarker",
121990
121968
  "privacy": "private",
121991
121969
  "inheritedFrom": {
121992
- "name": "SbbOpenCloseBaseElement",
121993
- "module": "core/base-elements/open-close-base-element.js"
121970
+ "name": "SbbButtonLikeBaseElement",
121971
+ "module": "core/base-elements/button-base-element.js"
121994
121972
  }
121995
121973
  },
121996
121974
  {
121997
121975
  "kind": "field",
121998
- "name": "isOpen",
121999
- "type": {
122000
- "text": "boolean"
122001
- },
122002
- "privacy": "public",
122003
- "description": "Whether the element is open.",
122004
- "readonly": true,
122005
- "inheritedFrom": {
122006
- "name": "SbbOpenCloseBaseElement",
122007
- "module": "core/base-elements/open-close-base-element.js"
122008
- }
122009
- },
122010
- {
122011
- "kind": "method",
122012
- "name": "escapeStrategy",
122013
- "privacy": "public",
122014
- "return": {
122015
- "type": {
122016
- "text": "void"
121976
+ "name": "_dispatchClickEventOnSpaceKeyup",
121977
+ "privacy": "private",
121978
+ "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.",
121979
+ "parameters": [
121980
+ {
121981
+ "description": "The origin event.",
121982
+ "name": "event"
122017
121983
  }
122018
- },
122019
- "description": "The method which is called on escape key press. Defaults to calling close()",
121984
+ ],
122020
121985
  "inheritedFrom": {
122021
- "name": "SbbOpenCloseBaseElement",
122022
- "module": "core/base-elements/open-close-base-element.js"
121986
+ "name": "SbbButtonLikeBaseElement",
121987
+ "module": "core/base-elements/button-base-element.js"
122023
121988
  }
122024
121989
  },
122025
121990
  {
122026
- "kind": "method",
122027
- "name": "dispatchBeforeOpenEvent",
122028
- "privacy": "protected",
122029
- "return": {
122030
- "type": {
122031
- "text": "boolean"
122032
- }
122033
- },
121991
+ "kind": "field",
121992
+ "name": "_dispatchClickEvent",
121993
+ "privacy": "private",
122034
121994
  "inheritedFrom": {
122035
- "name": "SbbOpenCloseBaseElement",
122036
- "module": "core/base-elements/open-close-base-element.js"
121995
+ "name": "SbbButtonLikeBaseElement",
121996
+ "module": "core/base-elements/button-base-element.js"
122037
121997
  }
122038
121998
  },
122039
121999
  {
122040
- "kind": "method",
122041
- "name": "dispatchOpenEvent",
122042
- "privacy": "protected",
122043
- "return": {
122044
- "type": {
122045
- "text": "boolean"
122046
- }
122000
+ "kind": "field",
122001
+ "name": "maybeDisabled",
122002
+ "type": {
122003
+ "text": "boolean | undefined"
122047
122004
  },
122005
+ "privacy": "protected",
122006
+ "readonly": true,
122048
122007
  "inheritedFrom": {
122049
- "name": "SbbOpenCloseBaseElement",
122050
- "module": "core/base-elements/open-close-base-element.js"
122008
+ "name": "SbbActionBaseElement",
122009
+ "module": "core/base-elements/action-base-element.js"
122051
122010
  }
122052
122011
  },
122053
122012
  {
122054
- "kind": "method",
122055
- "name": "dispatchBeforeCloseEvent",
122056
- "privacy": "protected",
122057
- "return": {
122058
- "type": {
122059
- "text": "boolean"
122060
- }
122013
+ "kind": "field",
122014
+ "name": "maybeDisabledInteractive",
122015
+ "type": {
122016
+ "text": "boolean | undefined"
122061
122017
  },
122018
+ "privacy": "protected",
122019
+ "readonly": true,
122062
122020
  "inheritedFrom": {
122063
- "name": "SbbOpenCloseBaseElement",
122064
- "module": "core/base-elements/open-close-base-element.js"
122021
+ "name": "SbbActionBaseElement",
122022
+ "module": "core/base-elements/action-base-element.js"
122065
122023
  }
122066
122024
  },
122067
122025
  {
122068
122026
  "kind": "method",
122069
- "name": "dispatchCloseEvent",
122027
+ "name": "setupBaseEventHandlers",
122070
122028
  "privacy": "protected",
122071
122029
  "return": {
122072
122030
  "type": {
122073
- "text": "boolean"
122031
+ "text": "void"
122074
122032
  }
122075
122033
  },
122076
122034
  "inheritedFrom": {
122077
- "name": "SbbOpenCloseBaseElement",
122078
- "module": "core/base-elements/open-close-base-element.js"
122035
+ "name": "SbbActionBaseElement",
122036
+ "module": "core/base-elements/action-base-element.js"
122079
122037
  }
122080
122038
  },
122081
122039
  {
@@ -122184,108 +122142,150 @@
122184
122142
  }
122185
122143
  }
122186
122144
  ],
122145
+ "superclass": {
122146
+ "name": "SbbSecondaryButtonElement",
122147
+ "module": "button.pure.js"
122148
+ },
122149
+ "tagName": "sbb-sidebar-close-button",
122150
+ "customElement": true,
122187
122151
  "attributes": [
122188
122152
  {
122189
- "name": "color",
122153
+ "name": "size",
122190
122154
  "type": {
122191
- "text": "'white' | 'milk'"
122155
+ "text": "SbbButtonSize"
122192
122156
  },
122193
- "default": "'white'",
122194
- "description": "Background color of the sidebar. Either `white` or `milk`.",
122195
- "fieldName": "color"
122157
+ "description": "Size variant, either l, m or s.",
122158
+ "default": "'l' / 's' (lean)",
122159
+ "fieldName": "size",
122160
+ "inheritedFrom": {
122161
+ "name": "SbbButtonCommonElementMixin",
122162
+ "module": "button/common/button-common.js"
122163
+ }
122196
122164
  },
122197
122165
  {
122198
- "name": "mode",
122166
+ "name": "loading",
122199
122167
  "type": {
122200
- "text": "'side' | 'over'"
122168
+ "text": "boolean"
122201
122169
  },
122202
- "default": "'side'",
122203
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
122204
- "fieldName": "mode"
122170
+ "default": "false",
122171
+ "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
122172
+ "fieldName": "loading",
122173
+ "inheritedFrom": {
122174
+ "name": "SbbButtonCommonElementMixin",
122175
+ "module": "button/common/button-common.js"
122176
+ }
122205
122177
  },
122206
122178
  {
122207
- "name": "position",
122179
+ "name": "negative",
122208
122180
  "type": {
122209
- "text": "'start' | 'end'"
122181
+ "text": "boolean"
122210
122182
  },
122211
- "default": "'start'",
122212
- "description": "The side that the sidebar is attached to.",
122213
- "fieldName": "position"
122183
+ "default": "false",
122184
+ "description": "Negative coloring variant flag.",
122185
+ "fieldName": "negative",
122186
+ "inheritedFrom": {
122187
+ "name": "SbbNegativeMixin",
122188
+ "module": "core/mixins/negative-mixin.js"
122189
+ }
122214
122190
  },
122215
122191
  {
122216
- "name": "opened",
122192
+ "name": "icon-name",
122217
122193
  "type": {
122218
- "text": "boolean"
122194
+ "text": "string"
122219
122195
  },
122220
- "default": "false",
122221
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
122222
- "fieldName": "opened"
122196
+ "default": "''",
122197
+ "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.",
122198
+ "fieldName": "iconName",
122199
+ "inheritedFrom": {
122200
+ "name": "SbbIconNameMixin",
122201
+ "module": "icon/icon-name-mixin.js"
122202
+ }
122223
122203
  },
122224
122204
  {
122225
- "name": "focus-on-open",
122205
+ "name": "disabled-interactive",
122226
122206
  "type": {
122227
122207
  "text": "boolean"
122228
122208
  },
122229
122209
  "default": "false",
122230
- "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.",
122231
- "fieldName": "focusOnOpen"
122232
- }
122233
- ],
122234
- "mixins": [
122210
+ "description": "Whether the button should be aria-disabled but stay interactive.",
122211
+ "fieldName": "disabledInteractive",
122212
+ "inheritedFrom": {
122213
+ "name": "SbbDisabledInteractiveMixin",
122214
+ "module": "core/mixins/disabled-mixin.js"
122215
+ }
122216
+ },
122235
122217
  {
122236
- "name": "SbbAnimationCompleteMixin",
122237
- "module": "core/mixins.js"
122238
- }
122239
- ],
122240
- "superclass": {
122241
- "name": "SbbOpenCloseBaseElement",
122242
- "module": "core/base-elements.js"
122243
- },
122244
- "tagName": "sbb-sidebar",
122245
- "customElement": true,
122246
- "events": [
122218
+ "name": "disabled",
122219
+ "description": "Whether the component is disabled.",
122220
+ "default": "false",
122221
+ "type": {
122222
+ "text": "boolean"
122223
+ },
122224
+ "fieldName": "disabled",
122225
+ "inheritedFrom": {
122226
+ "name": "SbbDisabledMixin",
122227
+ "module": "core/mixins/disabled-mixin.js"
122228
+ }
122229
+ },
122247
122230
  {
122248
- "name": "beforeopen",
122231
+ "name": "value",
122249
122232
  "type": {
122250
- "text": "Event"
122233
+ "text": "string"
122251
122234
  },
122252
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
122235
+ "default": "''",
122236
+ "description": "Value of the form element.",
122237
+ "fieldName": "value",
122253
122238
  "inheritedFrom": {
122254
- "name": "SbbOpenCloseBaseElement",
122255
- "module": "core/base-elements/open-close-base-element.js"
122239
+ "name": "SbbButtonBaseElement",
122240
+ "module": "core/base-elements/button-base-element.js"
122256
122241
  }
122257
122242
  },
122258
122243
  {
122259
- "name": "open",
122244
+ "name": "type",
122245
+ "description": "The type attribute to use for the button.",
122246
+ "default": "'button'",
122260
122247
  "type": {
122261
- "text": "Event"
122248
+ "text": "SbbButtonType"
122262
122249
  },
122263
- "description": "Emits whenever the component is opened.",
122250
+ "fieldName": "type",
122264
122251
  "inheritedFrom": {
122265
- "name": "SbbOpenCloseBaseElement",
122266
- "module": "core/base-elements/open-close-base-element.js"
122252
+ "name": "SbbButtonBaseElement",
122253
+ "module": "core/base-elements/button-base-element.js"
122267
122254
  }
122268
122255
  },
122269
122256
  {
122270
- "name": "beforeclose",
122257
+ "name": "form",
122258
+ "description": "The `<form>` element to associate the button with.",
122271
122259
  "type": {
122272
- "text": "Event"
122260
+ "text": "HTMLFormElement | null"
122273
122261
  },
122274
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
122262
+ "fieldName": "form",
122275
122263
  "inheritedFrom": {
122276
- "name": "SbbOpenCloseBaseElement",
122277
- "module": "core/base-elements/open-close-base-element.js"
122264
+ "name": "SbbButtonBaseElement",
122265
+ "module": "core/base-elements/button-base-element.js"
122278
122266
  }
122279
122267
  },
122280
122268
  {
122281
- "name": "close",
122269
+ "name": "name",
122270
+ "description": "Name of the form element. Will be read from name attribute.",
122282
122271
  "type": {
122283
- "text": "Event"
122272
+ "text": "string"
122284
122273
  },
122285
- "description": "Emits whenever the component is closed.",
122274
+ "fieldName": "name",
122286
122275
  "inheritedFrom": {
122287
- "name": "SbbOpenCloseBaseElement",
122288
- "module": "core/base-elements/open-close-base-element.js"
122276
+ "name": "SbbFormAssociatedMixin",
122277
+ "module": "core/mixins/form-associated-mixin.js"
122278
+ }
122279
+ }
122280
+ ],
122281
+ "cssProperties": [
122282
+ {
122283
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
122284
+ "name": "--sbb-button-loading-delay",
122285
+ "default": "300ms",
122286
+ "inheritedFrom": {
122287
+ "name": "SbbSecondaryButtonElement",
122288
+ "module": "button/secondary-button/secondary-button.component.js"
122289
122289
  }
122290
122290
  }
122291
122291
  ]
@@ -122294,10 +122294,10 @@
122294
122294
  "exports": [
122295
122295
  {
122296
122296
  "kind": "js",
122297
- "name": "SbbSidebarElement",
122297
+ "name": "SbbSidebarCloseButtonElement",
122298
122298
  "declaration": {
122299
- "name": "SbbSidebarElement",
122300
- "module": "sidebar/sidebar/sidebar.component.js"
122299
+ "name": "SbbSidebarCloseButtonElement",
122300
+ "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
122301
122301
  }
122302
122302
  }
122303
122303
  ]